| /linux/lib/ |
| H A D | sg_split.c | 17 struct scatterlist *out_sg; member 80 struct scatterlist *in_sg, *out_sg; in sg_split_phys() local 85 out_sg = split->out_sg; in sg_split_phys() 86 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_phys() 87 *out_sg = *in_sg; in sg_split_phys() 89 out_sg->offset += split->skip_sg0; in sg_split_phys() 90 out_sg->length -= split->skip_sg0; in sg_split_phys() 92 sg_dma_address(out_sg) = 0; in sg_split_phys() 93 sg_dma_len(out_sg) = 0; in sg_split_phys() 96 out_sg[-1].length = split->length_last_sg; in sg_split_phys() [all …]
|
| /linux/drivers/crypto/stm32/ |
| H A D | stm32-cryp.c | 216 struct scatterlist *out_sg; member 924 dma_sync_sg_for_device(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_callback() 926 if (cryp->in_sg != cryp->out_sg) in stm32_cryp_dma_callback() 929 dma_unmap_sg(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_callback() 938 kfree(cryp->out_sg); in stm32_cryp_dma_callback() 942 if (cryp->out_sg != cryp->req->dst) in stm32_cryp_dma_callback() 943 kfree(cryp->out_sg); in stm32_cryp_dma_callback() 1019 if (cryp->in_sg != cryp->out_sg) { in stm32_cryp_dma_start() 1027 ret = dma_map_sg(cryp->dev, cryp->out_sg, cryp->out_sg_len, DMA_FROM_DEVICE); in stm32_cryp_dma_start() 1046 tx_out = dmaengine_prep_slave_sg(cryp->dma_lch_out, cryp->out_sg, cryp->out_sg_len, in stm32_cryp_dma_start() [all …]
|
| /linux/drivers/crypto/gemini/ |
| H A D | sl3516-ce-cipher.c | 31 struct scatterlist *out_sg; in sl3516_ce_need_fallback() local 88 out_sg = areq->dst; in sl3516_ce_need_fallback() 89 while (in_sg && out_sg) { in sl3516_ce_need_fallback() 90 if (in_sg->length != out_sg->length) { in sl3516_ce_need_fallback() 95 out_sg = sg_next(out_sg); in sl3516_ce_need_fallback() 97 if (in_sg || out_sg) in sl3516_ce_need_fallback()
|
| /linux/net/vmw_vsock/ |
| H A D | virtio_transport.c | 104 int ret, in_sg = 0, out_sg = 0; in virtio_transport_send_skb() local 108 sg_init_one(sgs[out_sg], virtio_vsock_hdr(skb), in virtio_transport_send_skb() 110 out_sg++; in virtio_transport_send_skb() 114 sg_init_one(sgs[out_sg], skb->data, skb->len); in virtio_transport_send_skb() 115 out_sg++; in virtio_transport_send_skb() 139 sg_init_one(sgs[out_sg], in virtio_transport_send_skb() 142 out_sg++; in virtio_transport_send_skb() 146 ret = virtqueue_add_sgs(vq, sgs, out_sg, in_sg, skb, gfp); in virtio_transport_send_skb()
|
| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss-cipher.c | 183 struct scatterlist *out_sg = areq->dst; in sun4i_ss_cipher_poll() local 230 while (out_sg && no_chunk == 1) { in sun4i_ss_cipher_poll() 231 if ((out_sg->length | out_sg->offset) & 3u) in sun4i_ss_cipher_poll() 233 out_sg = sg_next(out_sg); in sun4i_ss_cipher_poll()
|
| /linux/arch/um/drivers/ |
| H A D | virtio_pcidev.c | 95 struct scatterlist out_sg, extra_sg, in_sg; in virtio_pcidev_send_cmd() local 97 [0] = &out_sg, in virtio_pcidev_send_cmd() 150 sg_init_one(&out_sg, cmd, cmd_size); in virtio_pcidev_send_cmd()
|
| /linux/drivers/virtio/ |
| H A D | virtio_rtc_driver.c | 416 struct scatterlist out_sg[1]; in viortc_msg_xfer() local 424 sgs[0] = out_sg; in viortc_msg_xfer() 427 sg_init_one(out_sg, msg->req, msg->req_size); in viortc_msg_xfer()
|
| /linux/drivers/crypto/aspeed/ |
| H A D | aspeed-acry.c | 303 struct scatterlist *out_sg = req->dst; in aspeed_acry_rsa_transfer() local 334 scatterwalk_map_and_copy(dram_buffer, out_sg, 0, result_nbytes, in aspeed_acry_rsa_transfer()
|
| /linux/net/tls/ |
| H A D | tls_sw.c | 1508 struct scatterlist *out_sg, in tls_decrypt_sg() argument 1533 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg() 1540 n_sgout = sg_nents(out_sg); in tls_decrypt_sg() 1638 } else if (out_sg) { in tls_decrypt_sg() 1639 memcpy(sgout, out_sg, n_sgout * sizeof(*sgout)); in tls_decrypt_sg()
|