/openbmc/linux/lib/ |
H A D | sg_split.c | 17 struct scatterlist *out_sg; member 85 out_sg = split->out_sg; in sg_split_phys() 87 *out_sg = *in_sg; in sg_split_phys() 92 out_sg->offset = 0; in sg_split_phys() 94 sg_dma_address(out_sg) = 0; in sg_split_phys() 95 sg_dma_len(out_sg) = 0; in sg_split_phys() 99 sg_mark_end(out_sg - 1); in sg_split_phys() 111 out_sg = split->out_sg; in sg_split_mapped() 171 if (!splitters[i].out_sg) in sg_split() 188 out[i] = splitters[i].out_sg; in sg_split() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-aes-xcbc.c | 63 struct nx_sg *in_sg, *out_sg; in nx_xcbc_empty() local 87 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *) keys, &len, in nx_xcbc_empty() 94 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty() 115 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_xcbc_empty() 122 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty() 173 struct nx_sg *out_sg; in nx_xcbc_update() local 202 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_xcbc_update() 210 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_update() 297 struct nx_sg *in_sg, *out_sg; in nx_xcbc_final() local 333 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_xcbc_final() [all …]
|
H A D | nx-sha256.c | 67 struct nx_sg *out_sg; in nx_sha256_update() local 98 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_sha256_update() 100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_update() 186 struct nx_sg *in_sg, *out_sg; in nx_sha256_final() local 224 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, max_sg_len); in nx_sha256_final() 232 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_final()
|
H A D | nx-sha512.c | 67 struct nx_sg *out_sg; in nx_sha512_update() local 98 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_sha512_update() 100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_update() 189 struct nx_sg *in_sg, *out_sg; in nx_sha512_final() local 233 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_sha512_final() 237 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_final()
|
H A D | nx.c | 270 struct nx_sg *nx_outsg = nx_ctx->out_sg; in nx_build_sg_lists() 295 nx_ctx->op.outlen = trim_sg_list(nx_ctx->out_sg, nx_outsg, delta, nbytes); in nx_build_sg_lists() 315 nx_ctx->op.out = __pa(nx_ctx->out_sg); in nx_ctx_init() 323 nx_ctx->op_aead.out = __pa(nx_ctx->out_sg); in nx_ctx_init() 678 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init() 682 (struct nx_csbcpb *)((u8 *)nx_ctx->out_sg + in nx_crypto_ctx_init() 754 nx_ctx->out_sg = NULL; in nx_crypto_ctx_exit()
|
H A D | nx-aes-gcm.c | 249 struct nx_sg *in_sg, *out_sg; in gcm_empty() local 276 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *) out, &len, in gcm_empty() 283 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in gcm_empty()
|
/openbmc/qemu/fsdev/ |
H A D | 9p-iov-marshal.c | 60 static ssize_t v9fs_unpack(void *dst, struct iovec *out_sg, int out_num, in v9fs_unpack() argument 63 return v9fs_packunpack(dst, out_sg, out_num, offset, size, 0); in v9fs_unpack() 72 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset, in v9fs_iov_vunmarshal() argument 89 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal() 100 copied = v9fs_unpack(&val, out_sg, out_num, offset, sizeof(val)); in v9fs_iov_vunmarshal() 121 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() 126 copied = v9fs_unpack(str->data, out_sg, out_num, offset, in v9fs_iov_vunmarshal() 138 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() 145 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() 160 copied = v9fs_iov_unmarshal(out_sg, out_num, offset, bswap, in v9fs_iov_vunmarshal() [all …]
|
H A D | 9p-iov-marshal.h | 9 ssize_t v9fs_iov_unmarshal(struct iovec *out_sg, int out_num, size_t offset, 14 ssize_t v9fs_iov_vunmarshal(struct iovec *out_sg, int out_num, size_t offset,
|
/openbmc/linux/drivers/crypto/ |
H A D | omap-des.c | 148 struct scatterlist *out_sg; member 383 scatterwalk_start(&dd->out_walk, dd->out_sg); in omap_des_crypt_dma() 534 dd->out_sg = req->dst; in omap_des_prepare_req() 870 BUG_ON(!dd->out_sg); in omap_des_irq() 872 BUG_ON(_calc_walked(out) > dd->out_sg->length); in omap_des_irq() 874 dst = sg_virt(dd->out_sg) + _calc_walked(out); in omap_des_irq() 879 if (dd->out_sg->length == _calc_walked(out)) { in omap_des_irq() 880 dd->out_sg = sg_next(dd->out_sg); in omap_des_irq() 881 if (dd->out_sg) { in omap_des_irq() 883 dd->out_sg); in omap_des_irq() [all …]
|
H A D | omap-aes-gcm.c | 37 dd->out_sg = NULL; in omap_aes_gcm_finish_req() 57 dma_sync_sg_for_device(dd->dev, dd->out_sg, dd->out_sg_len, in omap_aes_gcm_done_task() 60 dma_unmap_sg(dd->dev, dd->out_sg, dd->out_sg_len, DMA_FROM_DEVICE); in omap_aes_gcm_done_task() 63 omap_crypto_cleanup(dd->out_sg, dd->orig_out, in omap_aes_gcm_done_task() 153 dd->out_sg = req->dst; in omap_aes_gcm_copy_buffers() 156 dd->out_sg = scatterwalk_ffwd(sg_arr, req->dst, req->assoclen); in omap_aes_gcm_copy_buffers() 159 if (req->src == req->dst || dd->out_sg == sg_arr) in omap_aes_gcm_copy_buffers() 163 ret = omap_crypto_align_sg(&dd->out_sg, cryptlen, in omap_aes_gcm_copy_buffers() 172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
H A D | omap-aes.c | 267 struct scatterlist *out_sg, in omap_aes_crypt_dma() argument 277 scatterwalk_start(&dd->out_walk, dd->out_sg); in omap_aes_crypt_dma() 441 dd->out_sg = req->dst; in omap_aes_prepare_req() 905 BUG_ON(!dd->out_sg); in omap_aes_irq() 907 BUG_ON(_calc_walked(out) > dd->out_sg->length); in omap_aes_irq() 909 dst = sg_virt(dd->out_sg) + _calc_walked(out); in omap_aes_irq() 914 if (dd->out_sg->length == _calc_walked(out)) { in omap_aes_irq() 915 dd->out_sg = sg_next(dd->out_sg); in omap_aes_irq() 916 if (dd->out_sg) { in omap_aes_irq() 918 dd->out_sg); in omap_aes_irq() [all …]
|
H A D | atmel-tdes.c | 118 struct scatterlist *out_sg; member 304 dma_unmap_sg(dd->dev, dd->out_sg, 1, DMA_FROM_DEVICE); in atmel_tdes_crypt_pdc_stop() 499 IS_ALIGNED(dd->out_sg->length, dd->ctx->block_size); in atmel_tdes_crypt_start() 502 if (sg_dma_len(dd->in_sg) != sg_dma_len(dd->out_sg)) in atmel_tdes_crypt_start() 509 count = min_t(size_t, count, sg_dma_len(dd->out_sg)); in atmel_tdes_crypt_start() 517 err = dma_map_sg(dd->dev, dd->out_sg, 1, in atmel_tdes_crypt_start() 527 addr_out = sg_dma_address(dd->out_sg); in atmel_tdes_crypt_start() 551 dma_unmap_sg(dd->dev, dd->out_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start() 627 dd->out_sg = req->dst; in atmel_tdes_handle_queue() 1059 dd->out_sg = sg_next(dd->out_sg); in atmel_tdes_done_task() [all …]
|
/openbmc/qemu/hw/9pfs/ |
H A D | xen-9p-backend.c | 99 struct iovec *out_sg, in xen_9pfs_out_sg() argument 112 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg() 113 out_sg[0].iov_len = ring->out_size; in xen_9pfs_out_sg() 118 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg() 121 out_sg[1].iov_base = ring->ring.out; in xen_9pfs_out_sg() 122 out_sg[1].iov_len = ring->out_size - in xen_9pfs_out_sg() 127 out_sg[0].iov_base = ring->ring.out + masked_cons; in xen_9pfs_out_sg() 128 out_sg[0].iov_len = ring->out_size; in xen_9pfs_out_sg() 164 struct iovec out_sg[2]; in xen_9pfs_pdu_vunmarshal() local 169 out_sg, &num, pdu->idx); in xen_9pfs_pdu_vunmarshal() [all …]
|
H A D | 9p-proxy.h | 30 #define proxy_marshal(out_sg, offset, fmt, args...) \ argument 31 v9fs_iov_marshal(out_sg, 1, offset, 0, fmt, ##args)
|
H A D | virtio-9p-device.c | 69 len = iov_to_buf(elem->out_sg, elem->out_num, 0, &out, 7); in handle_9p_output() 146 ret = v9fs_iov_vunmarshal(elem->out_sg, elem->out_num, offset, 1, fmt, ap); in virtio_pdu_vunmarshal() 181 size_t buf_size = iov_size(elem->out_sg, elem->out_num); in virtio_init_out_iov_from_pdu() 191 *piov = elem->out_sg; in virtio_init_out_iov_from_pdu()
|
/openbmc/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()
|
/openbmc/qemu/tests/ |
H A D | vhost-user-bridge.c | 185 struct iovec sg[VIRTQUEUE_MAX_SIZE], *out_sg; in vubr_handle_tx() local 193 out_sg = elem->out_sg; in vubr_handle_tx() 199 iov_hexdump(out_sg, out_num, stderr, "TX:", 1024); in vubr_handle_tx() 204 out_sg, out_num, in vubr_handle_tx() 207 out_sg = sg; in vubr_handle_tx() 213 .msg_iov = out_sg, in vubr_handle_tx()
|
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-cipher.c | 29 struct scatterlist *out_sg = areq->dst; in sun8i_ss_need_fallback() local 77 out_sg = areq->dst; in sun8i_ss_need_fallback() 78 while (in_sg && out_sg) { in sun8i_ss_need_fallback() 79 if (in_sg->length != out_sg->length) in sun8i_ss_need_fallback() 82 out_sg = sg_next(out_sg); in sun8i_ss_need_fallback() 84 if (in_sg || out_sg) in sun8i_ss_need_fallback()
|
/openbmc/qemu/hw/audio/ |
H A D | virtio-snd.c | 166 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_info() 295 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_set_params() 515 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_prepare() 541 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_start_stop() 607 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in virtio_snd_handle_pcm_release() 666 size_t msg_sz = iov_to_buf(cmd->elem->out_sg, in process_cmd() 875 msg_sz = iov_to_buf(elem->out_sg, in virtio_snd_handle_tx_xfer() 896 size = iov_size(elem->out_sg, elem->out_num) - msg_sz; in virtio_snd_handle_tx_xfer() 956 msg_sz = iov_to_buf(elem->out_sg, in virtio_snd_handle_rx_xfer() 1163 iov_to_buf(buffer->elem->out_sg, in virtio_snd_pcm_out_cb()
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-shadow-virtqueue.c | 176 const struct iovec *out_sg, size_t out_num, in vhost_svq_add_split() argument 194 ok = vhost_svq_vring_write_descs(svq, sgs, out_sg, out_num, in_num > 0, in vhost_svq_add_split() 249 int vhost_svq_add(VhostShadowVirtqueue *svq, const struct iovec *out_sg, in vhost_svq_add() argument 261 ok = vhost_svq_add_split(svq, out_sg, out_num, in_sg, in_num, &qemu_head); in vhost_svq_add() 277 return vhost_svq_add(svq, elem->out_sg, elem->out_num, elem->in_sg, in vhost_svq_add_element()
|
/openbmc/linux/crypto/ |
H A D | rsa-pkcs1pad.c | 102 struct scatterlist in_sg[2], out_sg[1]; member 355 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_decrypt() 364 req_ctx->out_sg, req->src_len, in pkcs1pad_decrypt() 545 pkcs1pad_sg_set_buf(req_ctx->out_sg, req_ctx->out_buf, in pkcs1pad_verify() 554 req_ctx->out_sg, sig_size, ctx->key_size); in pkcs1pad_verify()
|
/openbmc/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()
|
/openbmc/qemu/contrib/vhost-user-scsi/ |
H A D | vhost-user-scsi.c | 265 if (elem->out_sg[0].iov_len < sizeof(VirtIOSCSICmdReq)) { in vus_proc_req() 270 req = (VirtIOSCSICmdReq *)elem->out_sg[0].iov_base; in vus_proc_req() 280 req, &elem->out_sg[1], elem->out_num - 1, in vus_proc_req()
|
/openbmc/qemu/contrib/vhost-user-blk/ |
H A D | vhost-user-blk.c | 257 if (elem->out_sg[0].iov_len < sizeof(struct virtio_blk_outhdr)) { in vub_virtio_process_req() 261 req->out = (struct virtio_blk_outhdr *)elem->out_sg[0].iov_base; in vub_virtio_process_req() 279 ret = vub_writev(req, &elem->out_sg[1], out_num); in vub_virtio_process_req() 308 rc = vub_discard_write_zeroes(req, &elem->out_sg[1], out_num, type); in vub_virtio_process_req()
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.h | 46 struct iovec *out_sg; member
|