Home
last modified time | relevance | path

Searched refs:sg_set_buf (Results 1 – 25 of 72) sorted by relevance

123

/linux-6.15/net/mac80211/
H A Daes_gmac.c42 sg_set_buf(&sg[0], __aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
43 sg_set_buf(&sg[1], zero, 8); in ieee80211_aes_gmac()
44 sg_set_buf(&sg[2], data + 8, data_len - 8 - GMAC_MIC_LEN); in ieee80211_aes_gmac()
45 sg_set_buf(&sg[3], zero, GMAC_MIC_LEN); in ieee80211_aes_gmac()
46 sg_set_buf(&sg[4], mic, GMAC_MIC_LEN); in ieee80211_aes_gmac()
49 sg_set_buf(&sg[0], __aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
50 sg_set_buf(&sg[1], data, data_len - GMAC_MIC_LEN); in ieee80211_aes_gmac()
51 sg_set_buf(&sg[2], zero, GMAC_MIC_LEN); in ieee80211_aes_gmac()
52 sg_set_buf(&sg[3], mic, GMAC_MIC_LEN); in ieee80211_aes_gmac()
H A Daead_api.c36 sg_set_buf(&sg[0], __aad, aad_len); in aead_encrypt()
37 sg_set_buf(&sg[1], data, data_len); in aead_encrypt()
38 sg_set_buf(&sg[2], mic, mic_len); in aead_encrypt()
71 sg_set_buf(&sg[0], __aad, aad_len); in aead_decrypt()
72 sg_set_buf(&sg[1], data, data_len); in aead_decrypt()
73 sg_set_buf(&sg[2], mic, mic_len); in aead_decrypt()
/linux-6.15/tools/virtio/
H A Dvringh_test.c359 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
360 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
361 sg_set_buf(&sg[2], (void *)dbuf + 3, 1); in parallel_test()
365 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
366 sg_set_buf(&sg[1], (void *)dbuf + 1, 3); in parallel_test()
370 sg_set_buf(&sg[0], (void *)dbuf, 4); in parallel_test()
374 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
375 sg_set_buf(&sg[1], (void *)dbuf + 1, 1); in parallel_test()
376 sg_set_buf(&sg[2], (void *)dbuf + 2, 1); in parallel_test()
576 sg_set_buf(&guest_sg[i], in main()
[all …]
/linux-6.15/tools/virtio/linux/
H A Dscatterlist.h161 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
171 sg_set_buf(sg, buf, buflen); in sg_init_one()
/linux-6.15/net/tls/
H A Dtls_device_fallback.c77 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
78 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
291 sg_set_buf(&sg_out[0], dummy_buf, sync_size); in fill_sg_out()
292 sg_set_buf(&sg_out[1], nskb->data + tcp_payload_offset, payload_len); in fill_sg_out()
295 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag); in fill_sg_out()
/linux-6.15/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_crypto_ccmp.c212 sg_set_buf(&sg[0], aad, aad_len); in libipw_ccmp_encrypt()
213 sg_set_buf(&sg[1], skb->data + hdr_len + CCMP_HDR_LEN, in libipw_ccmp_encrypt()
313 sg_set_buf(&sg[0], aad, aad_len); in libipw_ccmp_decrypt()
314 sg_set_buf(&sg[1], pos, data_len); in libipw_ccmp_decrypt()
/linux-6.15/drivers/crypto/bcm/
H A Dcipher.c157 sg_set_buf(sg++, rctx->msg_buf.c.supdt_tweak, in spu_skcipher_rx_sg_create()
216 sg_set_buf(sg++, rctx->msg_buf.bcm_spu_req_hdr, in spu_skcipher_tx_sg_create()
234 sg_set_buf(sg++, rctx->msg_buf.spu_req_pad, pad_len); in spu_skcipher_tx_sg_create()
239 sg_set_buf(sg, rctx->msg_buf.tx_stat, stat_len); in spu_skcipher_tx_sg_create()
546 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_ahash_rx_sg_create()
598 sg_set_buf(sg++, rctx->msg_buf.bcm_spu_req_hdr, in spu_ahash_tx_sg_create()
602 sg_set_buf(sg++, rctx->hash_carry, hash_carry_len); in spu_ahash_tx_sg_create()
621 sg_set_buf(sg, rctx->msg_buf.tx_stat, stat_len); in spu_ahash_tx_sg_create()
1121 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_aead_rx_sg_create()
1190 sg_set_buf(sg++, rctx->msg_buf.bcm_spu_req_hdr, in spu_aead_tx_sg_create()
[all …]
/linux-6.15/drivers/crypto/
H A Domap-crypto.c81 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
150 sg_set_buf(new_sg, sg_virt(*sg), (*sg)->length); in omap_crypto_align_sg()
H A Ds5p-sss.c519 sg_set_buf(*dst, pages, len); in s5p_make_sg_cpy()
1027 sg_set_buf(ctx->sgl, buf, len); in s5p_hash_copy_sgs()
1074 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sg_lists()
1173 sg_set_buf(ctx->sgl, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_prepare_sgs()
1259 sg_set_buf(ctx->sgl, ctx->dd->xmit_buf, xmit_len); in s5p_hash_prepare_request()
/linux-6.15/crypto/
H A Dccm.c188 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
193 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
215 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
270 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
277 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
622 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
629 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
H A Dtcrypt.c121 sg_set_buf(&sg[0], assoc, aad_size); in sg_init_aead()
126 sg_set_buf(&sg[k + 1], xbuf[k], PAGE_SIZE); in sg_init_aead()
129 sg_set_buf(&sg[k + 1], xbuf[k], rem); in sg_init_aead()
707 sg_set_buf(sg + i, tvmem[i], PAGE_SIZE); in test_hash_sg_init()
862 sg_set_buf(data[i].sg + j, data[i].xbuf[j], PAGE_SIZE); in test_mb_ahash_speed()
1368 sg_set_buf(cur->sg + p, cur->xbuf[p], in test_mb_skcipher_speed()
1375 sg_set_buf(cur->sg + p, cur->xbuf[p], k); in test_mb_skcipher_speed()
1576 sg_set_buf(sg, tvmem[0] + *keysize, in test_skcipher_speed()
1581 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_skcipher_speed()
1586 sg_set_buf(sg + j, tvmem[j], k); in test_skcipher_speed()
[all …]
H A Dgcm.c163 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
170 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
735 sg_set_buf(rctx->src, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
742 sg_set_buf(rctx->dst, iv + GCM_AES_IV_SIZE, req->assoclen - 8); in crypto_rfc4106_crypt()
H A Dessiv.c232 sg_set_buf(rctx->sg, rctx->assoc, ssize); in essiv_aead_crypt()
238 sg_set_buf(rctx->sg + 1, iv, ivsize); in essiv_aead_crypt()
/linux-6.15/drivers/mtd/nand/
H A Decc-mxic.c572 sg_set_buf(&ctx->sg[0], req->databuf.out, req->datalen); in mxic_ecc_prepare_io_req_external()
573 sg_set_buf(&ctx->sg[1], ctx->oobwithstat, in mxic_ecc_prepare_io_req_external()
630 sg_set_buf(&ctx->sg[0], req->databuf.in, req->datalen); in mxic_ecc_finish_io_req_external()
631 sg_set_buf(&ctx->sg[1], ctx->oobwithstat, in mxic_ecc_finish_io_req_external()
684 sg_set_buf(&ctx->sg[0], req->databuf.in, req->datalen); in mxic_ecc_prepare_io_req_pipelined()
685 sg_set_buf(&ctx->sg[1], ctx->oobwithstat, in mxic_ecc_prepare_io_req_pipelined()
H A Dqpic_common.c265 sg_set_buf(&bam_txn->cmd_sgl[bam_txn->cmd_sgl_pos], in qcom_prep_bam_dma_desc_cmd()
300 sg_set_buf(&bam_txn->data_sgl[bam_txn->rx_sgl_pos], in qcom_prep_bam_dma_desc_data()
304 sg_set_buf(&bam_txn->data_sgl[bam_txn->tx_sgl_pos], in qcom_prep_bam_dma_desc_data()
/linux-6.15/security/keys/encrypted-keys/
H A Dencrypted.c473 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt()
478 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
581 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
582 sg_set_buf(&sg_out[0], epayload->decrypted_data, in derived_key_decrypt()
584 sg_set_buf(&sg_out[1], pad, AES_BLOCK_SIZE); in derived_key_decrypt()
/linux-6.15/drivers/hwtracing/intel_th/
H A Dmsu-sink.c77 sg_set_buf(sg_ptr, block, PAGE_SIZE); in msu_sink_alloc_window()
/linux-6.15/crypto/krb5/
H A Drfc8009_aes2.c225 sg_set_buf(&bsg[0], ad, krb5_aead_ivsize(aead)); in rfc8009_encrypt()
281 sg_set_buf(&bsg[0], ad, krb5_aead_ivsize(aead)); in rfc8009_decrypt()
/linux-6.15/drivers/scsi/arm/
H A Darm_scsi.h42 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
/linux-6.15/drivers/crypto/cavium/nitrox/
H A Dnitrox_req.h576 sg_set_buf(sg, buf, buflen); in create_single_sg()
602 sg_set_buf(sg, sg_virt(from_sg), sglen); in create_multi_sg()
H A Dnitrox_aead.c405 sg_set_buf(rctx->src, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
412 sg_set_buf(rctx->dst, rctx->assoc, assoclen); in nitrox_rfc4106_set_aead_rctx_sglist()
/linux-6.15/drivers/char/tpm/
H A Dtpm2-sessions.c515 sg_set_buf(&s[0], x, EC_PT_SZ); in tpm_buf_append_salt()
516 sg_set_buf(&s[1], y, EC_PT_SZ); in tpm_buf_append_salt()
547 sg_set_buf(&s[0], chip->null_ec_key_x, EC_PT_SZ); in tpm_buf_append_salt()
548 sg_set_buf(&s[1], chip->null_ec_key_y, EC_PT_SZ); in tpm_buf_append_salt()
/linux-6.15/drivers/mmc/core/
H A Dsdio_ops.c161 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
/linux-6.15/net/ipv4/
H A Dah4.c229 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output()
404 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
/linux-6.15/drivers/i2c/busses/
H A Di2c-mxs.c260 sg_set_buf(&i2c->sg_io[0], &i2c->addr_data, 1); in mxs_i2c_dma_setup_xfer()
261 sg_set_buf(&i2c->sg_io[1], buf, msg->len); in mxs_i2c_dma_setup_xfer()

123