Home
last modified time | relevance | path

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

123

/linux/net/mac80211/
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/tools/virtio/
H A Dvringh_test.c364 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
365 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
366 sg_set_buf(&sg[2], (void *)dbuf + 3, 1); in parallel_test()
370 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
371 sg_set_buf(&sg[1], (void *)dbuf + 1, 3); in parallel_test()
375 sg_set_buf(&sg[0], (void *)dbuf, 4); in parallel_test()
379 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
380 sg_set_buf(&sg[1], (void *)dbuf + 1, 1); in parallel_test()
381 sg_set_buf(&sg[2], (void *)dbuf + 2, 1); in parallel_test()
382 sg_set_buf(&sg[3], (void *)dbuf + 3, 1); in parallel_test()
[all …]
/linux/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/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()
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 Dtls_sw.c377 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()
661 sg_set_buf(&rec->sg_content_type, &rec->content_type, 1); in tls_push_record()
1366 sg_set_buf(&sgin[0], dctx->aad, prot->aad_size); in tls_decrypt_sg()
1375 sg_set_buf(&sgout[0], dctx->aad, prot->aad_size); in tls_decrypt_sg()
1383 sg_set_buf(&sgout[0], dctx->aad, prot->aad_size); in tls_decrypt_sg()
1392 sg_set_buf(&sgout[pages + 1], &dctx->tail, in tls_decrypt_sg()
/linux/drivers/net/ovpn/
H A Dcrypto_aead.c203 sg_set_buf(sg + ret + 1, skb->data, tag_size); in ovpn_aead_encrypt()
228 sg_set_buf(sg, skb->data, OVPN_AAD_SIZE); in ovpn_aead_encrypt()
299 sg_set_buf(sg, skb->data, OVPN_AAD_SIZE); in ovpn_aead_decrypt()
310 sg_set_buf(sg + ret + 1, skb->data + OVPN_AAD_SIZE, tag_size); in ovpn_aead_decrypt()
/linux/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/crypto/
H A Dccm.c184 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
189 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
211 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
266 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
273 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
618 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
625 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
H A Dessiv.c230 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/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()
/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c295 sg_set_buf(&sg_head[0], cksum, cksum_len); in gss_krb5_mic_build_sg()
312 sg_set_buf(entry, hdr, GSS_KRB5_TOK_HDR_LEN); in gss_krb5_mic_build_sg()
/linux/security/keys/encrypted-keys/
H A Dencrypted.c448 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt()
453 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
555 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
556 sg_set_buf(&sg_out[0], epayload->decrypted_data, in derived_key_decrypt()
558 sg_set_buf(&sg_out[1], pad, AES_BLOCK_SIZE); in derived_key_decrypt()
/linux/drivers/hwtracing/intel_th/
H A Dmsu-sink.c77 sg_set_buf(sg_ptr, block, PAGE_SIZE); in msu_sink_alloc_window()
/linux/drivers/scsi/arm/
H A Darm_scsi.h42 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
/linux/drivers/mtd/nand/
H A Dqpic_common.c275 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 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/drivers/char/tpm/
H A Dtpm2-sessions.c512 sg_set_buf(&s[0], x, EC_PT_SZ); in tpm_buf_append_salt()
513 sg_set_buf(&s[1], y, EC_PT_SZ); in tpm_buf_append_salt()
551 sg_set_buf(&s[0], chip->null_ec_key_x, EC_PT_SZ); in tpm_buf_append_salt()
552 sg_set_buf(&s[1], chip->null_ec_key_y, EC_PT_SZ); in tpm_buf_append_salt()
/linux/drivers/mmc/core/
H A Dsdio_ops.c161 sg_set_buf(sg_ptr, buf + i * seg_size, in mmc_io_rw_extended()
/linux/drivers/crypto/ti/
H A Ddthev2-common.c61 sg_set_buf(to_sg, sg_virt(from_sg), sglen); in dthe_copy_sg()
H A Ddthev2-aes.c399 sg_set_buf(sg, pad_buf, pad_size); in dthe_aes_run()
410 sg_set_buf(sg, pad_buf, pad_size); in dthe_aes_run()
637 sg_set_buf(to_sg, pad_buf, pad_len); in dthe_aead_prep_aad()
694 sg_set_buf(to_sg, pad_buf, pad_len); in dthe_aead_prep_crypt()
/linux/net/ipv4/
H A Dah4.c234 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output()
414 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
/linux/drivers/i2c/busses/
H A Di2c-mxs.c268 sg_set_buf(&i2c->sg_io[0], &i2c->addr_data, 1); in mxs_i2c_dma_setup_xfer()
269 sg_set_buf(&i2c->sg_io[1], buf, msg->len); in mxs_i2c_dma_setup_xfer()
/linux/net/ipv6/
H A Dah6.c447 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_output()
632 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_input()
/linux/net/ceph/
H A Dmessenger_v2.c907 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()

123