Home
last modified time | relevance | path

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

/linux-4.4.14/net/mac80211/
Daes_gcm.c31 sg_set_buf(&sg[0], &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_gcm_encrypt()
32 sg_set_buf(&sg[1], data, data_len); in ieee80211_aes_gcm_encrypt()
33 sg_set_buf(&sg[2], mic, IEEE80211_GCMP_MIC_LEN); in ieee80211_aes_gcm_encrypt()
57 sg_set_buf(&sg[0], &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_gcm_decrypt()
58 sg_set_buf(&sg[1], data, data_len); in ieee80211_aes_gcm_decrypt()
59 sg_set_buf(&sg[2], mic, IEEE80211_GCMP_MIC_LEN); in ieee80211_aes_gcm_decrypt()
Daes_ccm.c35 sg_set_buf(&sg[0], &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_ccm_encrypt()
36 sg_set_buf(&sg[1], data, data_len); in ieee80211_aes_ccm_encrypt()
37 sg_set_buf(&sg[2], mic, mic_len); in ieee80211_aes_ccm_encrypt()
62 sg_set_buf(&sg[0], &aad[2], be16_to_cpup((__be16 *)aad)); in ieee80211_aes_ccm_decrypt()
63 sg_set_buf(&sg[1], data, data_len); in ieee80211_aes_ccm_decrypt()
64 sg_set_buf(&sg[2], mic, mic_len); in ieee80211_aes_ccm_decrypt()
Daes_gmac.c41 sg_set_buf(&sg[0], aad, AAD_LEN); in ieee80211_aes_gmac()
42 sg_set_buf(&sg[1], data, data_len - GMAC_MIC_LEN); in ieee80211_aes_gmac()
43 sg_set_buf(&sg[2], zero, GMAC_MIC_LEN); in ieee80211_aes_gmac()
44 sg_set_buf(&sg[3], mic, GMAC_MIC_LEN); in ieee80211_aes_gmac()
/linux-4.4.14/tools/virtio/
Dvringh_test.c352 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
353 sg_set_buf(&sg[1], (void *)dbuf + 1, 2); in parallel_test()
354 sg_set_buf(&sg[2], (void *)dbuf + 3, 1); in parallel_test()
358 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
359 sg_set_buf(&sg[1], (void *)dbuf + 1, 3); in parallel_test()
363 sg_set_buf(&sg[0], (void *)dbuf, 4); in parallel_test()
367 sg_set_buf(&sg[0], (void *)dbuf, 1); in parallel_test()
368 sg_set_buf(&sg[1], (void *)dbuf + 1, 1); in parallel_test()
369 sg_set_buf(&sg[2], (void *)dbuf + 2, 1); in parallel_test()
370 sg_set_buf(&sg[3], (void *)dbuf + 3, 1); in parallel_test()
[all …]
/linux-4.4.14/crypto/
Dcts.c104 sg_set_buf(&sgsrc[0], s, bsize); in cts_cbc_encrypt()
105 sg_set_buf(&sgdst[0], tmp, bsize); in cts_cbc_encrypt()
112 sg_set_buf(&sgsrc[0], s + bsize, bsize); in cts_cbc_encrypt()
113 sg_set_buf(&sgdst[0], tmp2, bsize); in cts_cbc_encrypt()
189 sg_set_buf(&sgsrc[0], s, bsize); in cts_cbc_decrypt()
190 sg_set_buf(&sgdst[0], tmp, bsize); in cts_cbc_decrypt()
207 sg_set_buf(&sgsrc[0], s + bsize, bsize); in cts_cbc_decrypt()
208 sg_set_buf(&sgdst[0], d, bsize); in cts_cbc_decrypt()
Deseqiv.c112 sg_set_buf(reqctx->src, giv, ivsize); in eseqiv_givencrypt()
118 sg_set_buf(reqctx->dst, giv, ivsize); in eseqiv_givencrypt()
Dtcrypt.c296 sg_set_buf(&sg[k + 1], xbuf[k], PAGE_SIZE); in sg_init_aead()
298 sg_set_buf(&sg[k + 1], xbuf[k], rem); in sg_init_aead()
418 sg_set_buf(&sg[0], assoc, aad_size); in test_aead_speed()
419 sg_set_buf(&sgout[0], assoc, aad_size); in test_aead_speed()
523 sg_set_buf(sg, tvmem[0] + *keysize, in test_cipher_speed()
526 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_cipher_speed()
721 sg_set_buf(sg + i, tvmem[i], PAGE_SIZE); in test_hash_sg_init()
1191 sg_set_buf(sg, tvmem[0] + *keysize, in test_acipher_speed()
1196 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_acipher_speed()
1201 sg_set_buf(sg + j, tvmem[j], k); in test_acipher_speed()
[all …]
Dchacha20poly1305.c185 sg_set_buf(preq->src, &preq->tail, sizeof(preq->tail)); in poly_tail()
216 sg_set_buf(preq->src, &preq->pad, padlen); in poly_cipherpad()
277 sg_set_buf(preq->src, preq->pad, padlen); in poly_adpad()
328 sg_set_buf(preq->src, rctx->key, sizeof(rctx->key)); in poly_setkey()
388 sg_set_buf(creq->src, rctx->key, sizeof(rctx->key)); in poly_genkey()
Dccm.c329 sg_set_buf(pctx->src, tag, 16); in crypto_ccm_init_crypt()
336 sg_set_buf(pctx->dst, tag, 16); in crypto_ccm_init_crypt()
725 sg_set_buf(rctx->src, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
732 sg_set_buf(rctx->dst, iv + 16, req->assoclen - 8); in crypto_rfc4309_crypt()
Dtestmgr.c330 sg_set_buf(&sg[k], in __test_hash()
548 sg_set_buf(&sg[0], assoc, template[i].alen); in __test_aead()
549 sg_set_buf(&sg[k], input, in __test_aead()
555 sg_set_buf(&sgout[0], assoc, template[i].alen); in __test_aead()
559 sg_set_buf(&sgout[k], output, in __test_aead()
655 sg_set_buf(&sg[k], in __test_aead()
662 sg_set_buf(&sgout[k], in __test_aead()
676 sg_set_buf(&sg[template[i].anp + k], in __test_aead()
685 sg_set_buf(&sgout[template[i].anp + k], in __test_aead()
1101 sg_set_buf(&sg[k], q, template[i].tap[k]); in __test_skcipher()
[all …]
Dgcm.c206 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
213 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
840 sg_set_buf(rctx->src, iv + 12, req->assoclen - 8); in crypto_rfc4106_crypt()
847 sg_set_buf(rctx->dst, iv + 12, req->assoclen - 8); in crypto_rfc4106_crypt()
/linux-4.4.14/net/ceph/
Dcrypto.c181 sg_set_buf(&sg_in[0], src, src_len); in ceph_aes_encrypt()
182 sg_set_buf(&sg_in[1], pad, zero_padding); in ceph_aes_encrypt()
241 sg_set_buf(&sg_in[0], src1, src1_len); in ceph_aes_encrypt2()
242 sg_set_buf(&sg_in[1], src2, src2_len); in ceph_aes_encrypt2()
243 sg_set_buf(&sg_in[2], pad, zero_padding); in ceph_aes_encrypt2()
299 sg_set_buf(&sg_out[0], dst, *dst_len); in ceph_aes_decrypt()
300 sg_set_buf(&sg_out[1], pad, sizeof(pad)); in ceph_aes_decrypt()
364 sg_set_buf(&sg_out[0], dst1, *dst1_len); in ceph_aes_decrypt2()
365 sg_set_buf(&sg_out[1], dst2, *dst2_len); in ceph_aes_decrypt2()
366 sg_set_buf(&sg_out[2], pad, sizeof(pad)); in ceph_aes_decrypt2()
/linux-4.4.14/drivers/net/wireless/orinoco/
Dmic.c69 sg_set_buf(&sg[0], hdr, sizeof(hdr)); in orinoco_mic()
70 sg_set_buf(&sg[1], data, data_len); in orinoco_mic()
/linux-4.4.14/drivers/usb/wusbcore/
Dcrypto.c255 sg_set_buf(&sg[0], &b0, sizeof(b0)); in wusb_ccm_mac()
256 sg_set_buf(&sg[1], &b1, sizeof(b1)); in wusb_ccm_mac()
257 sg_set_buf(&sg[2], b, blen); in wusb_ccm_mac()
259 sg_set_buf(&sg[3], bzero, zero_padding); in wusb_ccm_mac()
/linux-4.4.14/tools/virtio/linux/
Dscatterlist.h177 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
187 sg_set_buf(sg, buf, buflen); in sg_init_one()
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c487 sg_set_buf(&sg_in[0], epayload->decrypted_data, in derived_key_encrypt()
489 sg_set_buf(&sg_in[1], pad, padlen); in derived_key_encrypt()
492 sg_set_buf(sg_out, epayload->encrypted_data, encrypted_datalen); in derived_key_encrypt()
583 sg_set_buf(sg_in, epayload->encrypted_data, encrypted_datalen); in derived_key_decrypt()
584 sg_set_buf(&sg_out[0], epayload->decrypted_data, in derived_key_decrypt()
586 sg_set_buf(&sg_out[1], pad, sizeof pad); in derived_key_decrypt()
/linux-4.4.14/drivers/scsi/arm/
Dscsi.h36 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
/linux-4.4.14/drivers/spi/
Dspi-pxa2xx-dma.c59 sg_set_buf(sg, pbuf, bytes); in pxa2xx_spi_map_dma_buffer()
61 sg_set_buf(sg, drv_data->dummy, bytes); in pxa2xx_spi_map_dma_buffer()
Dspi.c722 sg_set_buf(&sgt->sgl[i], sg_buf, min); in spi_map_buf()
/linux-4.4.14/drivers/net/
Dvirtio_net.c550 sg_set_buf(rq->sg, hdr, vi->hdr_len); in add_recvbuf_small()
577 sg_set_buf(&rq->sg[i], page_address(first), PAGE_SIZE); in add_recvbuf_big()
593 sg_set_buf(&rq->sg[0], p, vi->hdr_len); in add_recvbuf_big()
597 sg_set_buf(&rq->sg[1], p + offset, PAGE_SIZE - offset); in add_recvbuf_big()
909 sg_set_buf(sq->sg, hdr, hdr_len); in xmit_skb()
1204 sg_set_buf(&sg[0], mac_data, in virtnet_set_rx_mode()
1215 sg_set_buf(&sg[1], mac_data, in virtnet_set_rx_mode()
/linux-4.4.14/include/linux/
Dscatterlist.h136 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
/linux-4.4.14/drivers/net/irda/
Dsa1100_ir.c180 sg_set_buf(&si->dma_rx.sg, si->dma_rx.skb->data, HPSIR_MAX_RXLEN); in sa1100_irda_rx_alloc()
263 sg_set_buf(&si->dma_tx.sg, si->tx_buff.data, si->tx_buff.len); in sa1100_irda_sir_tx_start()
399 sg_set_buf(&si->dma_tx.sg, skb->data, skb->len); in sa1100_irda_fir_tx_start()
/linux-4.4.14/net/ipv4/
Dah4.c228 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output()
398 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
Dtcp.c3032 sg_set_buf(&sg, ((u8 *) tp) + header_len, head_data_len); in tcp_md5_hash_skb_data()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c516 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
517 sg_set_buf(&sg[1], data, data_len); in michael_mic()
/linux-4.4.14/drivers/i2c/busses/
Di2c-mxs.c263 sg_set_buf(&i2c->sg_io[0], &i2c->addr_data, 1); in mxs_i2c_dma_setup_xfer()
264 sg_set_buf(&i2c->sg_io[1], msg->buf, msg->len); in mxs_i2c_dma_setup_xfer()
/linux-4.4.14/net/ipv6/
Dah6.c431 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_output()
611 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_input()
/linux-4.4.14/net/wireless/
Dlib80211_crypt_tkip.c519 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
520 sg_set_buf(&sg[1], data, data_len); in michael_mic()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_crypt_tkip.c514 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
515 sg_set_buf(&sg[1], data, data_len); in michael_mic()
/linux-4.4.14/net/sunrpc/xprtrdma/
Dfrwr_ops.c350 sg_set_buf(&frmr->sg[i], seg->mr_offset, in frwr_op_map()
/linux-4.4.14/lib/
Dscatterlist.c156 sg_set_buf(sg, buf, buflen); in sg_init_one()
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c894 sg_set_buf(sg, cksum, 8); in krb5_rc4_setup_seq_key()
967 sg_set_buf(sg, seqnumarray, 4); in krb5_rc4_setup_enc_key()
Dgss_krb5_mech.c454 sg_set_buf(sg, sigkeyconstant, slen); in context_derive_keys_rc4()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dicm.c121 sg_set_buf(mem, buf, PAGE_SIZE << order); in mlx4_alloc_icm_coherent()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_aux.c578 sg_set_buf(sg, addr, PAGE_SIZE); in zfcp_sg_setup_table()
/linux-4.4.14/drivers/net/ppp/
Dppp_mppe.c70 sg_set_buf(sg, address, length); in setup_sg()
/linux-4.4.14/drivers/mmc/card/
Dqueue.c467 sg_set_buf(__sg, buf + offset, len); in mmc_queue_packed_map_sg()
/linux-4.4.14/drivers/crypto/
Domap-des.c579 sg_set_buf(&dd->in_sgl, buf_in, dd->total); in omap_des_copy_sgs()
583 sg_set_buf(&dd->out_sgl, buf_out, dd->total); in omap_des_copy_sgs()
Domap-aes.c598 sg_set_buf(&dd->in_sgl, buf_in, total); in omap_aes_copy_sgs()
602 sg_set_buf(&dd->out_sgl, buf_out, total); in omap_aes_copy_sgs()
Dbfin_crc.c351 sg_set_buf(ctx->bufsl, ctx->buflast, ctx->buflast_len); in bfin_crypto_crc_handle_queue()
Dsahara.c955 sg_set_buf(rctx->in_sg_chain, rctx->rembuf, rctx->buf_cnt); in sahara_sha_prepare_request()
Dtalitos.c1886 sg_set_buf(req_ctx->bufsl, req_ctx->buf, req_ctx->nbuf); in ahash_process_req()
/linux-4.4.14/net/rxrpc/
Drxkad.c701 sg_set_buf(&sg[0], buf, buflen); in rxkad_sg_set_buf2()
705 sg_set_buf(&sg[1], buf + sg[0].length, buflen - sg[0].length); in rxkad_sg_set_buf2()
/linux-4.4.14/net/9p/
Dtrans_virtio.c198 sg_set_buf(&sg[index++], data, s); in pack_sg_list()
/linux-4.4.14/drivers/crypto/qce/
Dsha.c294 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
/linux-4.4.14/net/sunrpc/
Dxdr.c1465 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf()
1505 sg_set_buf(sg, buf->tail[0].iov_base + offset, thislen); in xdr_process_buf()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_memfree.c131 sg_set_buf(mem, buf, PAGE_SIZE << order); in mthca_alloc_icm_coherent()
/linux-4.4.14/drivers/net/usb/
Dusbnet.c1288 sg_set_buf(&urb->sg[s++], skb->data, skb_headlen(skb)); in build_dma_sg()
1362 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
/linux-4.4.14/drivers/tty/serial/
Dimx.c538 sg_set_buf(sgl, xmit->buf + xmit->tail, in imx_dma_tx()
540 sg_set_buf(sgl + 1, xmit->buf, xmit->head); in imx_dma_tx()
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dsdio.c249 sg_set_buf(sg, scat_req->scat_list[i].buf, in ath6kl_sdio_setup_scat_data()
/linux-4.4.14/drivers/hsi/clients/
Dssi_protocol.c189 sg_set_buf(sg, skb->data, skb_headlen(skb)); in ssip_skb_to_msg()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dbcmsdh.c590 sg_set_buf(sgl, pkt_data, sg_data_sz); in brcmf_sdiod_sglist_rw()
/linux-4.4.14/drivers/usb/misc/
Dusbtest.c533 sg_set_buf(&sg[i], buf, size); in alloc_sglist()
/linux-4.4.14/drivers/usb/core/
Ddevio.c1467 sg_set_buf(&as->urb->sg[i], buf, u); in proc_do_submiturb()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_receiver.c4993 sg_set_buf(&sg, peers_ch, pi.size); in drbd_do_auth()
5043 sg_set_buf(&sg, my_challenge, CHALLENGE_LEN); in drbd_do_auth()
/linux-4.4.14/drivers/infiniband/ulp/isert/
Dib_isert.c1321 sg_set_buf(&isert_cmd->sg, &rx_desc->data[0], imm_data_len); in isert_handle_scsi_cmd()
/linux-4.4.14/net/core/
Dskbuff.c3371 sg_set_buf(sg, skb->data + offset, copy); in __skb_to_sgvec()