| /linux/net/mac80211/ |
| H A D | aes_gmac.c | 43 sg_set_buf(&sg[0], __aad, GMAC_AAD_LEN); in ieee80211_aes_gmac() 44 sg_set_buf(&sg[1], zero, 8); in ieee80211_aes_gmac() 45 sg_set_buf(&sg[2], data + 8, in ieee80211_aes_gmac() 47 sg_set_buf(&sg[3], zero, IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac() 48 sg_set_buf(&sg[4], mic, IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac() 51 sg_set_buf(&sg[0], __aad, GMAC_AAD_LEN); in ieee80211_aes_gmac() 52 sg_set_buf(&sg[1], data, data_len - IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac() 53 sg_set_buf(&sg[2], zero, IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac() 54 sg_set_buf(&sg[3], mic, IEEE80211_GMAC_MIC_LEN); in ieee80211_aes_gmac()
|
| H A D | aead_api.c | 36 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/tools/virtio/ |
| H A D | vringh_test.c | 359 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() 377 sg_set_buf(&sg[3], (void *)dbuf + 3, 1); in parallel_test() [all …]
|
| /linux/tools/virtio/linux/ |
| H A D | scatterlist.h | 161 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/net/tls/ |
| H A D | tls_device_fallback.c | 77 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() 288 sg_set_buf(&sg_out[0], dummy_buf, sync_size); in fill_sg_out() 289 sg_set_buf(&sg_out[1], nskb->data + tcp_payload_offset, payload_len); in fill_sg_out() 292 sg_set_buf(&sg_out[2], dummy_buf, cipher_desc->tag); in fill_sg_out()
|
| H A D | tls_sw.c | 377 sg_set_buf(&rec->sg_aead_in[0], rec->aad_space, prot->aad_size); in tls_get_rec() 381 sg_set_buf(&rec->sg_aead_out[0], rec->aad_space, prot->aad_size); in tls_get_rec() 812 sg_set_buf(&rec->sg_content_type, &rec->content_type, 1); in tls_push_record() 1637 sg_set_buf(&sgin[0], dctx->aad, prot->aad_size); in tls_decrypt_sg() 1646 sg_set_buf(&sgout[0], dctx->aad, prot->aad_size); in tls_decrypt_sg() 1654 sg_set_buf(&sgout[0], dctx->aad, prot->aad_size); in tls_decrypt_sg() 1663 sg_set_buf(&sgout[pages + 1], &dctx->tail, in tls_decrypt_sg()
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_crypto_ccmp.c | 212 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/drivers/crypto/bcm/ |
| H A D | cipher.c | 151 sg_set_buf(sg++, rctx->msg_buf.spu_resp_hdr, ctx->spu_resp_hdr_len); in spu_skcipher_rx_sg_create() 156 sg_set_buf(sg++, rctx->msg_buf.c.supdt_tweak, in spu_skcipher_rx_sg_create() 169 sg_set_buf(sg++, rctx->msg_buf.rx_stat_pad, stat_pad_len); in spu_skcipher_rx_sg_create() 172 sg_set_buf(sg, rctx->msg_buf.rx_stat, spu->spu_rx_status_len()); in spu_skcipher_rx_sg_create() 214 sg_set_buf(sg++, rctx->msg_buf.bcm_spu_req_hdr, in spu_skcipher_tx_sg_create() 220 sg_set_buf(sg++, rctx->msg_buf.iv_ctr, SPU_XTS_TWEAK_SIZE); in spu_skcipher_tx_sg_create() 232 sg_set_buf(sg++, rctx->msg_buf.spu_req_pad, pad_len); in spu_skcipher_tx_sg_create() 237 sg_set_buf(sg, rctx->msg_buf.tx_stat, stat_len); in spu_skcipher_tx_sg_create() 540 sg_set_buf(sg++, rctx->msg_buf.spu_resp_hdr, ctx->spu_resp_hdr_len); in spu_ahash_rx_sg_create() 543 sg_set_buf(sg++, rctx->msg_buf.digest, digestsize); in spu_ahash_rx_sg_create() [all …]
|
| /linux/drivers/crypto/ |
| H A D | omap-crypto.c | 81 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()
|
| /linux/security/keys/encrypted-keys/ |
| H A D | encrypted.c | 447 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt() 452 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt() 554 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt() 555 sg_set_buf(&sg_out[0], epayload->decrypted_data, in derived_key_decrypt() 557 sg_set_buf(&sg_out[1], pad, AES_BLOCK_SIZE); in derived_key_decrypt()
|
| /linux/drivers/hwtracing/intel_th/ |
| H A D | msu-sink.c | 77 sg_set_buf(sg_ptr, block, PAGE_SIZE); in msu_sink_alloc_window()
|
| /linux/drivers/scsi/arm/ |
| H A D | arm_scsi.h | 42 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
|
| /linux/drivers/mtd/nand/ |
| H A D | qpic_common.c | 275 sg_set_buf(&bam_txn->cmd_sgl[bam_txn->cmd_sgl_pos], in qcom_prep_bam_dma_desc_cmd() 315 sg_set_buf(&bam_txn->data_sgl[bam_txn->rx_sgl_pos], in qcom_prep_bam_dma_desc_data() 324 sg_set_buf(&bam_txn->data_sgl[bam_txn->tx_sgl_pos], in qcom_prep_bam_dma_desc_data()
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_req.h | 576 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 D | nitrox_aead.c | 405 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/drivers/char/tpm/ |
| H A D | tpm2-sessions.c | 517 sg_set_buf(&s[0], x, EC_PT_SZ); in tpm_buf_append_salt() 518 sg_set_buf(&s[1], y, EC_PT_SZ); in tpm_buf_append_salt() 549 sg_set_buf(&s[0], chip->null_ec_key_x, EC_PT_SZ); in tpm_buf_append_salt() 550 sg_set_buf(&s[1], chip->null_ec_key_y, EC_PT_SZ); in tpm_buf_append_salt()
|
| /linux/drivers/mmc/core/ |
| H A D | sdio_ops.c | 161 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-mxs.c | 260 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()
|
| /linux/crypto/ |
| H A D | essiv.c | 230 sg_set_buf(rctx->sg, rctx->assoc, ssize); in essiv_aead_crypt() 236 sg_set_buf(rctx->sg + 1, iv, ivsize); in essiv_aead_crypt()
|
| /linux/net/ipv4/ |
| H A D | ah4.c | 234 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output() 414 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
|
| /linux/net/ipv6/ |
| H A D | ah6.c | 440 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_output() 625 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_input()
|
| /linux/net/ceph/ |
| H A D | messenger_v2.c | 907 sg_set_buf(*sg, buf, buf_len); in init_sgs() 912 sg_set_buf(*sg, pad, padding_len(buf_len)); in init_sgs() 935 sg_set_buf(*sg, pad, padding_len(data_len)); in init_sgs_cursor() 969 sg_set_buf(*sg, pad, padding_len(dlen)); in init_sgs_pages() 1027 sg_set_buf(cur_sg, epilogue, in setup_message_sgs() 1051 sg_set_buf(&sgs[0], con->v2.in_kvecs[0].iov_base, rem_len); in decrypt_control_remainder() 1052 sg_set_buf(&sgs[1], con->v2.in_buf, pt_len); in decrypt_control_remainder() 1274 sg_set_buf(&sgs[0], base, rem - base); in prepare_head_secure_big() 1275 sg_set_buf(&sgs[1], pmbl_tag, CEPH_GCM_TAG_LEN); in prepare_head_secure_big()
|
| /linux/net/rxrpc/ |
| H A D | rxgk.c | 368 sg_set_buf(&sg[0], txb->data, txb->alloc_size); in rxgk_secure_packet_integrity() 409 sg_set_buf(&sg[0], txb->data, txb->alloc_size); in rxgk_secure_packet_encrypted()
|
| /linux/net/9p/ |
| H A D | trans_virtio.c | 183 sg_set_buf(&sg[index++], data, s); in pack_sg_list()
|
| /linux/drivers/net/ |
| H A D | virtio_net.c | 1557 sg_set_buf(sq->sg, xdpf->data, xdpf->len); in __virtnet_xdp_xmit_one() 2661 sg_set_buf(&rq->sg[i], page_address(first), PAGE_SIZE); in add_recvbuf_big() 2677 sg_set_buf(&rq->sg[0], p, vi->hdr_len); in add_recvbuf_big() 2681 sg_set_buf(&rq->sg[1], p + offset, PAGE_SIZE - offset); in add_recvbuf_big() 3319 sg_set_buf(sq->sg, hdr, hdr_len); in xmit_skb() 3868 sg_set_buf(&sg[0], mac_data, in virtnet_rx_mode_work() 3881 sg_set_buf(&sg[1], mac_data, in virtnet_rx_mode_work() 4199 sg_set_buf(&sgs[0], vi->rss_hdr, virtnet_rss_hdr_size(vi)); in virtnet_commit_rss_command() 4200 sg_set_buf(&sgs[1], &vi->rss_trailer, virtnet_rss_trailer_size(vi)); in virtnet_commit_rss_command()
|