Home
last modified time | relevance | path

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

/linux-4.1.27/net/mac80211/
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()
50 sg_set_buf(&ct[0], mic, GMAC_MIC_LEN); in ieee80211_aes_gmac()
Daes_gcm.c34 sg_set_buf(&ct[0], data, data_len); in ieee80211_aes_gcm_encrypt()
35 sg_set_buf(&ct[1], mic, IEEE80211_GCMP_MIC_LEN); in ieee80211_aes_gcm_encrypt()
61 sg_set_buf(&ct[0], data, data_len); in ieee80211_aes_gcm_decrypt()
62 sg_set_buf(&ct[1], mic, IEEE80211_GCMP_MIC_LEN); in ieee80211_aes_gcm_decrypt()
Daes_ccm.c38 sg_set_buf(&ct[0], data, data_len); in ieee80211_aes_ccm_encrypt()
39 sg_set_buf(&ct[1], mic, mic_len); in ieee80211_aes_ccm_encrypt()
66 sg_set_buf(&ct[0], data, data_len); in ieee80211_aes_ccm_decrypt()
67 sg_set_buf(&ct[1], mic, mic_len); in ieee80211_aes_ccm_decrypt()
/linux-4.1.27/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.1.27/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.c263 sg_set_buf(&sg[k], xbuf[k], PAGE_SIZE); in sg_init_aead()
265 sg_set_buf(&sg[k], xbuf[k], rem); in sg_init_aead()
485 sg_set_buf(sg, tvmem[0] + *keysize, in test_cipher_speed()
488 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_cipher_speed()
683 sg_set_buf(sg + i, tvmem[i], PAGE_SIZE); in test_hash_sg_init()
1162 sg_set_buf(sg, tvmem[0] + *keysize, in test_acipher_speed()
1167 sg_set_buf(sg + j, tvmem[j], PAGE_SIZE); in test_acipher_speed()
1172 sg_set_buf(sg + j, tvmem[j], k); in test_acipher_speed()
1175 sg_set_buf(sg, tvmem[0] + *keysize, *b_size); in test_acipher_speed()
Dccm.c331 sg_set_buf(pctx->src, odata, 16); in crypto_ccm_encrypt()
337 sg_set_buf(pctx->dst, odata, 16); in crypto_ccm_encrypt()
402 sg_set_buf(pctx->src, authtag, 16); in crypto_ccm_decrypt()
408 sg_set_buf(pctx->dst, authtag, 16); in crypto_ccm_decrypt()
Dgcm.c203 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_crypt()
209 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_crypt()
1154 sg_set_buf(payload, req->iv, 8); in crypto_rfc4543_crypt()
1169 sg_set_buf(assoc, rctx->assocbuf, req->assoclen); in crypto_rfc4543_crypt()
Dauthenc.c345 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_genicv()
500 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_iverify()
Dtestmgr.c320 sg_set_buf(&sg[k], in __test_hash()
644 sg_set_buf(&sg[k], q, template[i].tap[k]); in __test_aead()
652 sg_set_buf(&sgout[k], q, template[i].tap[k]); in __test_aead()
691 sg_set_buf(&asg[k], in __test_aead()
1069 sg_set_buf(&sg[k], q, template[i].tap[k]); in __test_skcipher()
1074 sg_set_buf(&sgout[k], q, template[i].tap[k]); in __test_skcipher()
Dauthencesn.c409 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_esn_genicv()
577 sg_set_buf(cipher, iv, ivsize); in crypto_authenc_esn_iverify()
/linux-4.1.27/net/ceph/
Dcrypto.c185 sg_set_buf(&sg_in[0], src, src_len); in ceph_aes_encrypt()
186 sg_set_buf(&sg_in[1], pad, zero_padding); in ceph_aes_encrypt()
245 sg_set_buf(&sg_in[0], src1, src1_len); in ceph_aes_encrypt2()
246 sg_set_buf(&sg_in[1], src2, src2_len); in ceph_aes_encrypt2()
247 sg_set_buf(&sg_in[2], pad, zero_padding); in ceph_aes_encrypt2()
303 sg_set_buf(&sg_out[0], dst, *dst_len); in ceph_aes_decrypt()
304 sg_set_buf(&sg_out[1], pad, sizeof(pad)); in ceph_aes_decrypt()
368 sg_set_buf(&sg_out[0], dst1, *dst1_len); in ceph_aes_decrypt2()
369 sg_set_buf(&sg_out[1], dst2, *dst2_len); in ceph_aes_decrypt2()
370 sg_set_buf(&sg_out[2], pad, sizeof(pad)); in ceph_aes_decrypt2()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/net/ipv6/
Desp6.c240 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp6_output()
242 sg_set_buf(asg + 1, seqhi, seqhilen); in esp6_output()
243 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp6_output()
390 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp6_input()
392 sg_set_buf(asg + 1, seqhi, seqhilen); in esp6_input()
393 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp6_input()
Dah6.c431 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_output()
609 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah6_input()
/linux-4.1.27/net/ipv4/
Desp4.c248 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp_output()
250 sg_set_buf(asg + 1, seqhi, seqhilen); in esp_output()
251 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp_output()
436 sg_set_buf(asg, &esph->spi, sizeof(__be32)); in esp_input()
438 sg_set_buf(asg + 1, seqhi, seqhilen); in esp_input()
439 sg_set_buf(asg + 2, &esph->seq_no, sizeof(__be32)); in esp_input()
Dah4.c228 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_output()
396 sg_set_buf(seqhisg, seqhi, seqhi_len); in ah_input()
Dtcp.c2960 sg_set_buf(&sg, ((u8 *) tp) + header_len, head_data_len); in tcp_md5_hash_skb_data()
/linux-4.1.27/net/mac802154/
Dllsec.c663 sg_set_buf(&assoc[0], skb_mac_header(skb), skb->mac_len); in llsec_do_encrypt_auth()
670 sg_set_buf(&assoc[1], data, 0); in llsec_do_encrypt_auth()
672 sg_set_buf(&assoc[1], data, datalen); in llsec_do_encrypt_auth()
680 sg_set_buf(&dst[0], data, datalen); in llsec_do_encrypt_auth()
681 sg_set_buf(&dst[1], skb_put(skb, authlen), authlen); in llsec_do_encrypt_auth()
872 sg_set_buf(&assoc[0], skb_mac_header(skb), skb->mac_len); in llsec_do_decrypt_auth()
879 sg_set_buf(&assoc[1], data, 0); in llsec_do_decrypt_auth()
881 sg_set_buf(&assoc[1], data, datalen - authlen); in llsec_do_decrypt_auth()
/linux-4.1.27/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.1.27/drivers/scsi/arm/
Dscsi.h36 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
/linux-4.1.27/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.c503 sg_set_buf(&sgt->sgl[i], sg_buf, min); in spi_map_buf()
/linux-4.1.27/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c885 sg_set_buf(sg, &zeroconstant, 4); in krb5_rc4_setup_seq_key()
896 sg_set_buf(sg, cksum, 8); in krb5_rc4_setup_seq_key()
955 sg_set_buf(sg, zeroconstant, 4); in krb5_rc4_setup_enc_key()
971 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.1.27/drivers/net/
Dvirtio_net.c544 sg_set_buf(rq->sg, hdr, vi->hdr_len); in add_recvbuf_small()
571 sg_set_buf(&rq->sg[i], page_address(first), PAGE_SIZE); in add_recvbuf_big()
587 sg_set_buf(&rq->sg[0], p, vi->hdr_len); in add_recvbuf_big()
591 sg_set_buf(&rq->sg[1], p + offset, PAGE_SIZE - offset); in add_recvbuf_big()
903 sg_set_buf(sq->sg, hdr, hdr_len); in xmit_skb()
1200 sg_set_buf(&sg[0], mac_data, in virtnet_set_rx_mode()
1211 sg_set_buf(&sg[1], mac_data, in virtnet_set_rx_mode()
/linux-4.1.27/include/linux/
Dscatterlist.h111 static inline void sg_set_buf(struct scatterlist *sg, const void *buf, in sg_set_buf() function
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c513 sg_set_buf(&sg[0], hdr, 16); in michael_mic()
514 sg_set_buf(&sg[1], data, data_len); in michael_mic()
/linux-4.1.27/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.1.27/drivers/staging/rtl8192e/
Drtllib_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.1.27/lib/
Dscatterlist.c128 sg_set_buf(sg, buf, buflen); in sg_init_one()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dicm.c121 sg_set_buf(mem, buf, PAGE_SIZE << order); in mlx4_alloc_icm_coherent()
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_aux.c578 sg_set_buf(sg, addr, PAGE_SIZE); in zfcp_sg_setup_table()
/linux-4.1.27/drivers/net/ppp/
Dppp_mppe.c70 sg_set_buf(sg, address, length); in setup_sg()
/linux-4.1.27/drivers/mmc/card/
Dqueue.c469 sg_set_buf(__sg, buf + offset, len); in mmc_queue_packed_map_sg()
/linux-4.1.27/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.c597 sg_set_buf(&dd->in_sgl, buf_in, dd->total); in omap_aes_copy_sgs()
601 sg_set_buf(&dd->out_sgl, buf_out, dd->total); in omap_aes_copy_sgs()
Dbfin_crc.c371 sg_set_buf(ctx->bufsl, ctx->buflast, ctx->buflast_len); in bfin_crypto_crc_handle_queue()
Dsahara.c1000 sg_set_buf(rctx->in_sg_chain, rctx->rembuf, rctx->buf_cnt); in sahara_sha_prepare_request()
Dixp4xx_crypto.c1049 sg_set_buf(&req_ctx->ivlist, iv, ivsize); in aead_perform()
Dtalitos.c1737 sg_set_buf(req_ctx->bufsl, req_ctx->buf, req_ctx->nbuf); in ahash_process_req()
/linux-4.1.27/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.1.27/net/9p/
Dtrans_virtio.c198 sg_set_buf(&sg[index++], data, s); in pack_sg_list()
/linux-4.1.27/drivers/crypto/qce/
Dsha.c298 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
/linux-4.1.27/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.1.27/drivers/infiniband/hw/mthca/
Dmthca_memfree.c131 sg_set_buf(mem, buf, PAGE_SIZE << order); in mthca_alloc_icm_coherent()
/linux-4.1.27/drivers/target/
Dtarget_core_file.c292 sg_set_buf(fd_prot->prot_sg, buf, prot_size); in fd_do_prot_rw()
/linux-4.1.27/drivers/net/usb/
Dusbnet.c1270 sg_set_buf(&urb->sg[s++], skb->data, skb_headlen(skb)); in build_dma_sg()
1344 sg_set_buf(&urb->sg[urb->num_sgs++], in usbnet_start_xmit()
/linux-4.1.27/drivers/tty/serial/
Dimx.c535 sg_set_buf(sgl, xmit->buf + xmit->tail, in imx_dma_tx()
537 sg_set_buf(sgl + 1, xmit->buf, xmit->head); in imx_dma_tx()
/linux-4.1.27/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.1.27/drivers/hsi/clients/
Dssi_protocol.c189 sg_set_buf(sg, skb->data, skb_headlen(skb)); in ssip_skb_to_msg()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dbcmsdh.c589 sg_set_buf(sgl, pkt_data, sg_data_sz); in brcmf_sdiod_sglist_rw()
/linux-4.1.27/drivers/usb/core/
Ddevio.c1464 sg_set_buf(&as->urb->sg[i], buf, u); in proc_do_submiturb()
/linux-4.1.27/drivers/usb/misc/
Dusbtest.c520 sg_set_buf(&sg[i], buf, size); in alloc_sglist()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_receiver.c4992 sg_set_buf(&sg, peers_ch, pi.size); in drbd_do_auth()
5042 sg_set_buf(&sg, my_challenge, CHALLENGE_LEN); in drbd_do_auth()
/linux-4.1.27/net/core/
Dskbuff.c3371 sg_set_buf(sg, skb->data + offset, copy); in __skb_to_sgvec()