Home
last modified time | relevance | path

Searched refs:bctx (Results 1 – 17 of 17) sorted by relevance

/third_party/libdrm/nouveau/
Dbufctx.c56 nouveau_bufctx(struct nouveau_bufctx *bctx) in nouveau_bufctx() argument
58 return (struct nouveau_bufctx_priv *)bctx; in nouveau_bufctx()
99 nouveau_bufctx_reset(struct nouveau_bufctx *bctx, int bin) in nouveau_bufctx_reset() argument
101 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_reset()
112 bctx->relocs -= pbin->relocs; in nouveau_bufctx_reset()
117 nouveau_bufctx_refn(struct nouveau_bufctx *bctx, int bin, in nouveau_bufctx_refn() argument
120 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_refn()
134 DRMLISTADDTAIL(&pref->base.thead, &bctx->pending); in nouveau_bufctx_refn()
135 pref->bufctx = bctx; in nouveau_bufctx_refn()
144 nouveau_bufctx_mthd(struct nouveau_bufctx *bctx, int bin, uint32_t packet, in nouveau_bufctx_mthd() argument
[all …]
Dpushbuf.c403 struct nouveau_bufctx *bctx, *btmp; in pushbuf_flush() local
430 DRMLISTFOREACHENTRYSAFE(bctx, btmp, &nvpb->bctx_list, head) { in pushbuf_flush()
431 DRMLISTJOIN(&bctx->current, &bctx->pending); in pushbuf_flush()
432 DRMINITLISTHEAD(&bctx->current); in pushbuf_flush()
433 DRMLISTDELINIT(&bctx->head); in pushbuf_flush()
493 struct nouveau_bufctx *bctx = push->bufctx; in pushbuf_validate() local
495 int relocs = bctx ? bctx->relocs * 2: 0; in pushbuf_validate()
499 if (ret || bctx == NULL) in pushbuf_validate()
505 DRMLISTDEL(&bctx->head); in pushbuf_validate()
506 DRMLISTADD(&bctx->head, &nvpb->bctx_list); in pushbuf_validate()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_chacha20_poly1305_hw.c15 static int chacha_poly1305_tls_init(PROV_CIPHER_CTX *bctx, in chacha_poly1305_tls_init() argument
19 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha_poly1305_tls_init()
27 if (!bctx->enc) { in chacha_poly1305_tls_init()
45 static int chacha_poly1305_tls_iv_set_fixed(PROV_CIPHER_CTX *bctx, in chacha_poly1305_tls_iv_set_fixed() argument
48 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha_poly1305_tls_iv_set_fixed()
58 static int chacha20_poly1305_initkey(PROV_CIPHER_CTX *bctx, in chacha20_poly1305_initkey() argument
61 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha20_poly1305_initkey()
69 if (bctx->enc) in chacha20_poly1305_initkey()
75 static int chacha20_poly1305_initiv(PROV_CIPHER_CTX *bctx) in chacha20_poly1305_initiv() argument
77 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha20_poly1305_initiv()
[all …]
Dcipher_chacha20_hw.c14 static int chacha20_initkey(PROV_CIPHER_CTX *bctx, const uint8_t *key, in chacha20_initkey() argument
17 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initkey()
28 static int chacha20_initiv(PROV_CIPHER_CTX *bctx) in chacha20_initiv() argument
30 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initiv()
33 if (bctx->iv_set) { in chacha20_initiv()
35 ctx->counter[i / 4] = CHACHA_U8TOU32(bctx->oiv + i); in chacha20_initiv()
41 static int chacha20_cipher(PROV_CIPHER_CTX *bctx, unsigned char *out, in chacha20_cipher() argument
44 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_cipher()
Dcipher_rc4_hmac_md5_hw.c35 static int cipher_hw_rc4_hmac_md5_initkey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_initkey() argument
38 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_initkey()
45 bctx->removetlsfixed = MD5_DIGEST_LENGTH; in cipher_hw_rc4_hmac_md5_initkey()
49 static int cipher_hw_rc4_hmac_md5_cipher(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_cipher() argument
53 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_cipher()
165 static int cipher_hw_rc4_hmac_md5_tls_init(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_tls_init() argument
168 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_tls_init()
176 if (!bctx->enc) { in cipher_hw_rc4_hmac_md5_tls_init()
190 static void cipher_hw_rc4_hmac_md5_init_mackey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_init_mackey() argument
194 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_init_mackey()
Dcipher_blowfish_hw.c21 PROV_BLOWFISH_CTX *bctx = (PROV_BLOWFISH_CTX *)ctx; in cipher_hw_blowfish_initkey() local
23 BF_set_key(&bctx->ks.ks, keylen, key); in cipher_hw_blowfish_initkey()
Dcipher_cast5_hw.c21 PROV_CAST_CTX *bctx = (PROV_CAST_CTX *)ctx; in cipher_hw_cast5_initkey() local
23 CAST_set_key(&(bctx->ks.ks), keylen, key); in cipher_hw_cast5_initkey()
/third_party/openssl/providers/implementations/ciphers/
Dcipher_chacha20_poly1305_hw.c15 static int chacha_poly1305_tls_init(PROV_CIPHER_CTX *bctx, in chacha_poly1305_tls_init() argument
19 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha_poly1305_tls_init()
27 if (!bctx->enc) { in chacha_poly1305_tls_init()
45 static int chacha_poly1305_tls_iv_set_fixed(PROV_CIPHER_CTX *bctx, in chacha_poly1305_tls_iv_set_fixed() argument
48 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha_poly1305_tls_iv_set_fixed()
58 static int chacha20_poly1305_initkey(PROV_CIPHER_CTX *bctx, in chacha20_poly1305_initkey() argument
61 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha20_poly1305_initkey()
69 if (bctx->enc) in chacha20_poly1305_initkey()
75 static int chacha20_poly1305_initiv(PROV_CIPHER_CTX *bctx) in chacha20_poly1305_initiv() argument
77 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)bctx; in chacha20_poly1305_initiv()
[all …]
Dcipher_chacha20_hw.c14 static int chacha20_initkey(PROV_CIPHER_CTX *bctx, const uint8_t *key, in chacha20_initkey() argument
17 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initkey()
28 static int chacha20_initiv(PROV_CIPHER_CTX *bctx) in chacha20_initiv() argument
30 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initiv()
33 if (bctx->iv_set) { in chacha20_initiv()
35 ctx->counter[i / 4] = CHACHA_U8TOU32(bctx->oiv + i); in chacha20_initiv()
41 static int chacha20_cipher(PROV_CIPHER_CTX *bctx, unsigned char *out, in chacha20_cipher() argument
44 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_cipher()
Dcipher_rc4_hmac_md5_hw.c35 static int cipher_hw_rc4_hmac_md5_initkey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_initkey() argument
38 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_initkey()
45 bctx->removetlsfixed = MD5_DIGEST_LENGTH; in cipher_hw_rc4_hmac_md5_initkey()
49 static int cipher_hw_rc4_hmac_md5_cipher(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_cipher() argument
53 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_cipher()
165 static int cipher_hw_rc4_hmac_md5_tls_init(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_tls_init() argument
168 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_tls_init()
176 if (!bctx->enc) { in cipher_hw_rc4_hmac_md5_tls_init()
190 static void cipher_hw_rc4_hmac_md5_init_mackey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_init_mackey() argument
194 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_init_mackey()
Dcipher_blowfish_hw.c21 PROV_BLOWFISH_CTX *bctx = (PROV_BLOWFISH_CTX *)ctx; in cipher_hw_blowfish_initkey() local
23 BF_set_key(&bctx->ks.ks, keylen, key); in cipher_hw_blowfish_initkey()
Dcipher_cast5_hw.c21 PROV_CAST_CTX *bctx = (PROV_CAST_CTX *)ctx; in cipher_hw_cast5_initkey() local
23 CAST_set_key(&(bctx->ks.ks), keylen, key); in cipher_hw_cast5_initkey()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_transfer.c21 struct nouveau_bufctx *bctx = nvc0->bufctx; in nvc0_m2mf_transfer_rect() local
32 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nvc0_m2mf_transfer_rect()
33 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nvc0_m2mf_transfer_rect()
34 nouveau_pushbuf_bufctx(push, bctx); in nvc0_m2mf_transfer_rect()
106 nouveau_bufctx_reset(bctx, 0); in nvc0_m2mf_transfer_rect()
130 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect() local
138 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nve4_m2mf_transfer_rect()
139 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nve4_m2mf_transfer_rect()
140 nouveau_pushbuf_bufctx(push, bctx); in nve4_m2mf_transfer_rect()
195 nouveau_bufctx_reset(bctx, 0); in nve4_m2mf_transfer_rect()
[all …]
Dnvc0_winsys.h38 #define BCTX_REFN(bctx, bin, res, acc) \ argument
39 nvc0_add_resident(bctx, NVC0_BIND_##bin, res, NOUVEAU_BO_##acc)
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_transfer.c64 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_2d_transfer_rect() local
67 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nv50_2d_transfer_rect()
68 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nv50_2d_transfer_rect()
69 nouveau_pushbuf_bufctx(push, bctx); in nv50_2d_transfer_rect()
160 nouveau_bufctx_reset(bctx, 0); in nv50_2d_transfer_rect()
170 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_m2mf_transfer_rect() local
197 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nv50_m2mf_transfer_rect()
198 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nv50_m2mf_transfer_rect()
199 nouveau_pushbuf_bufctx(push, bctx); in nv50_m2mf_transfer_rect()
271 nouveau_bufctx_reset(bctx, 0); in nv50_m2mf_transfer_rect()
[all …]
Dnv50_winsys.h39 #define BCTX_REFN(bctx, bin, res, acc) \ argument
40 nv50_add_bufctx_resident(bctx, NV50_BIND_##bin, res, NOUVEAU_BO_##acc)
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state_validate.c468 struct nouveau_bufctx *bctx = nv30->bufctx; in nv30_state_validate() local
501 nouveau_pushbuf_bufctx(push, bctx); in nv30_state_validate()
523 LIST_FOR_EACH_ENTRY(bref, &bctx->current, thead) { in nv30_state_validate()