/openbmc/linux/drivers/crypto/cavium/zip/ |
H A D | zip_device.h | 2 * Copyright (c) 2003-2017 Cavium, Inc. 55 * pointer to the input gather list buffer when scatter_gather == 1 57 union zip_zptr_s *gather; member 61 * pointer to the output scatter list buffer when scatter_gather == 1 63 union zip_zptr_s *scatter; member 66 * Holds size of the output buffer pointed by scatter list 71 /* for gather data */ 74 /* for scatter data */ 77 /* Number of gather list pointers for gather data */ 80 /* Number of scatter list pointers for scatter data */ [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_tx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #define IQ_SEND_FAILED -1 20 /* Hardware format for Scatter/Gather list 23 * ----------------------------------------- 25 * ----------------------------------------- 27 * ----------------------------------------- 29 * ----------------------------------------- 31 * ----------------------------------------- 33 * ----------------------------------------- 40 /* Each Scatter/Gather entry sent to hardwar hold four pointers. [all …]
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * hinic_cpu_to_be32 - convert data to big endian 32 bit format 32 * hinic_be32_to_cpu - convert data from big endian 32 bit format 50 * hinic_set_sge - set dma area in scatter gather entry 51 * @sge: scatter gather entry 57 sge->hi_addr = upper_32_bits(addr); in hinic_set_sge() 58 sge->lo_addr = lower_32_bits(addr); in hinic_set_sge() 59 sge->len = len; in hinic_set_sge() 63 * hinic_sge_to_dma - get dma address from scatter gather entry 64 * @sge: scatter gather entry [all …]
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | scatter_gather.c | 2 * Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. 19 * This example tests the HVX scatter/gather instructions 24 * _16 16-bit elements and 16-bit offsets 25 * _32 32-bit elements and 32-bit offsets 26 * _16_32 16-bit elements and 32-bit offsets 48 /* define the size of the scatter buffer */ 51 /* fake vtcm - put buffers together and force alignment */ 95 * Do the scatter release followed by a dummy load to complete the in sync_scatter() 223 /* scatter the 16 bit elements using HVX */ 237 /* scatter-accumulate the 16 bit elements using HVX */ [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem_dma_helper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/dma-buf.h> 13 #include <linux/dma-mapping.h> 31 * for devices that do not support scatter-gather DMA (either directly or 35 * the buffer objects are allocated using a traditional page-based 58 * __drm_gem_dma_create - Create a GEM DMA object without allocating memory 67 * A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative 77 if (drm->driver->gem_create_object) { in __drm_gem_dma_create() 78 gem_obj = drm->driver->gem_create_object(drm, size); in __drm_gem_dma_create() 85 return ERR_PTR(-ENOMEM); in __drm_gem_dma_create() [all …]
|
H A D | drm_gem_shmem_helper.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/dma-buf.h> 61 if (dev->driver->gem_create_object) { in __drm_gem_shmem_create() 62 obj = dev->driver->gem_create_object(dev, size); in __drm_gem_shmem_create() 69 return ERR_PTR(-ENOMEM); in __drm_gem_shmem_create() 70 obj = &shmem->base; in __drm_gem_shmem_create() 73 if (!obj->funcs) in __drm_gem_shmem_create() 74 obj->funcs = &drm_gem_shmem_funcs; in __drm_gem_shmem_create() 78 shmem->map_wc = false; /* dma-buf mappings use always writecombine */ in __drm_gem_shmem_create() 91 INIT_LIST_HEAD(&shmem->madv_list); in __drm_gem_shmem_create() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | st_options.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 The compile-time configurable defaults for the Linux SCSI tape driver. 5 Copyright 1995-2003 Kai Makisara. 13 /* If TRY_DIRECT_IO is non-zero, the driver tries to transfer data directly 19 to the user program if ST_NOWAIT is non-zero. This helps if the SCSI 31 /* If ST_RECOVERED_WRITE_FATAL is non-zero, recovered errors while writing 40 Must be non-zero. */ 43 /* Maximum number of scatter/gather segments */ 46 /* The number of scatter/gather segments to allocate at first try (must be 50 /* The size of the first scatter/gather segments (determines the maximum block [all …]
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_mbox.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright (c) 2003-2004 LSI Logic Corporation. 94 #define MBOX_MAX_SG_SIZE 32 // maximum scatter-gather list size 102 #define MBOX_SYNC_DELAY_200 200 // 200 micro-seconds 112 * mbox_ccb_t - command control block specific to mailbox based controllers 117 * @sgl64 : 64-bit scatter-gather list 118 * @sgl32 : 32-bit scatter-gather list 119 * @sgl_dma_h : dma handle for the scatter-gather list 145 * mraid_device_t - adapter soft state structure for mailbox controllers 146 * @una_mbox64 : 64-bit mbox - unaligned [all …]
|
/openbmc/qemu/hw/net/ |
H A D | net_rx_pkt.h | 14 * See the COPYING file in the top-level directory. 58 * @iov: received data scatter-gather list 201 * attach scatter-gather data to rx packet 204 * @iov: received data scatter-gather list 216 * attach scatter-gather data to rx packet 219 * @iov: received data scatter-gather list
|
/openbmc/linux/include/scsi/ |
H A D | sg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * Copyright (C) 1998 - 2014 Douglas Gilbert 27 * Also see: <kernel_source>/Documentation/scsi/scsi-generic.rst 34 { /* call. It defines one scatter-gather element. */ 46 unsigned short iovec_count; /* [i] 0 implies no scatter gather */ 49 or scatter gather list */ 52 unsigned int timeout; /* [i] MAX_UINT->no timeout (unit: millisec) */ 53 unsigned int flags; /* [i] 0 -> default, see SG_FLAG... */ 54 int pack_id; /* [i->o] unused internally (normally) */ 55 void __user * usr_ptr; /* [i->o] unused internally */ [all …]
|
/openbmc/linux/drivers/parisc/ |
H A D | iommu-helpers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * iommu_fill_pdir - Insert coalesced scatter/gather chunks into the I/O Pdir. 7 * @startsg: The scatter/gather list of coalesced chunks. 8 * @nents: The number of entries in the scatter/gather list. 11 * This function inserts the coalesced scatter/gather list chunks into the 28 dma_sg--; in iommu_fill_pdir() 30 while (nents-- > 0) { in iommu_fill_pdir() 36 sg_virt(startsg), startsg->length in iommu_fill_pdir() 57 sg_dma_address(dma_sg) = pide | ioc->ibase; in iommu_fill_pdir() 64 pdirp = &(ioc->pdir_base[pide >> IOVP_SHIFT]); in iommu_fill_pdir() [all …]
|
/openbmc/linux/include/media/ |
H A D | videobuf-dma-sg.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * The functions expect the hardware being able to scatter gather 12 * Highly based on video-buf written originally by: 20 #include <media/videobuf-core.h> 22 /* --------------------------------------------------------------------- */ 34 * see Documentation/core-api/dma-api-howto.rst, these functions to 57 /* for overlay buffers (pci-pci dma) */ 75 * Scatter-gather DMA buffer API. 78 * scatter-gather list from a kernel, userspace of physical address and map the 82 * videobuf-dma-sg uses the same API internally.
|
/openbmc/linux/include/linux/mtd/ |
H A D | ubi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 #include <mtd/ubi-user.h> 17 #define UBI_ALL -1 20 * Maximum number of scatter gather list entries, 26 * enum ubi_open_mode - UBI volume open mode constants. 28 * UBI_READONLY: read-only mode 29 * UBI_READWRITE: read-write mode 31 * UBI_METAONLY: modify only the volume meta-data, 42 * struct ubi_volume_info - UBI volume description data structure. 50 * @corrupted: non-zero if the volume is corrupted (static volumes only) [all …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 16 #define VIRTIO_BLK_F_RO 5 /* Disk is read-only */ 36 /* The capacity (in 512-byte sectors) */ 102 * This comes first in the read scatter-gather list. 104 * this is the first element of the read scatter-gather list. 124 /* And this is the final byte of the write scatter-gather list */
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | ubi.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 15 #include <mtd/ubi-user.h> 19 #define UBI_ALL -1 22 * Maximum number of scatter gather list entries, 28 * enum ubi_open_mode - UBI volume open mode constants. 30 * UBI_READONLY: read-only mode 31 * UBI_READWRITE: read-write mode 33 * UBI_METAONLY: modify only the volume meta-data, 44 * struct ubi_volume_info - UBI volume description data structure. 52 * @corrupted: non-zero if the volume is corrupted (static volumes only) [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | sdk.h | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 38 #include <linux/dma-direction.h> 42 * This header defines the in-kernel API for Innova FPGA client drivers. 48 * enum mlx5_fpga_access_type - Enumerated the different methods possible for 51 * @MLX5_FPGA_ACCESS_TYPE_I2C: Use the slow CX-FPGA I2C bus 63 * struct mlx5_fpga_dma_entry - A scatter-gather DMA entry 70 /** @dma_addr: Private member. Physical DMA-mapped address of the data */ 75 * struct mlx5_fpga_dma_buf - A packet buffer 76 * May contain up to 2 scatter-gather data entries [all …]
|
/openbmc/linux/Documentation/scsi/ |
H A D | st.rst | 1 .. SPDX-License-Identifier: GPL-2.0 23 flexible method and applicable to single-user workstations. However, 32 drive performs auto-detection of the tape format well (like some 33 QIC-drives). The result is that any tape can be read, writing can be 37 does not perform auto-detection well enough and there is a single 40 or not :-). 57 between formats in multi-tape operations (the explicitly overridden 72 limits). Both the auto-rewind (minor equals device number) and 73 non-rewind devices (minor is 128 + device number) are implemented. 128 dev_upper non-rew mode dev-lower [all …]
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_sg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2018-2020 Broadcom. 9 #include <linux/dma-mapping.h> 23 * [U32] addr_l[0] = lower 32-bits of address0 24 * [U32] addr_h[0] = higher 32-bits of address0 26 * [U32] size[N-1] = size of data in addressN-1 27 * [U32] addr_l[N-1] = lower 32-bits of addressN-1 28 * [U32] addr_h[N-1] = higher 32-bits of addressN-1 45 * Scatter-gather DMA buffer API. 48 * scatter-gather list from userspace address and map the memory
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0041-scatter-gather-flag-workaround.patch | 4 Subject: [PATCH] workaround for scatter gather flag check for corstone1000 9 are not implemented in u-boot properly and corstone1000 does not support 11 for on-disk capsule update. 13 Signed-off-by: Emekcan Aras <emekcan.aras@arm.com> 14 Upstream-Status: Inappropriate [Redesign of Capsule update interface is required] 15 --- 16 lib/efi_loader/efi_capsule.c | 7 +++++-- 17 1 file changed, 5 insertions(+), 2 deletions(-) 19 diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c 21 --- a/lib/efi_loader/efi_capsule.c [all …]
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | fcpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 127 tag->u.req_id = id; in fcpio_tag_id_enc() 133 *id = tag->u.req_id; in fcpio_tag_id_dec() 139 tag->u.ex_id.rx_id = rx_id; in fcpio_tag_exid_enc() 140 tag->u.ex_id.ox_id = ox_id; in fcpio_tag_exid_enc() 146 *rx_id = tag->u.ex_id.rx_id; in fcpio_tag_exid_dec() 147 *ox_id = tag->u.ex_id.ox_id; in fcpio_tag_exid_dec() 166 hdr->type = type; in fcpio_header_enc() 167 hdr->status = status; in fcpio_header_enc() 168 hdr->_resvd = 0; in fcpio_header_enc() [all …]
|
/openbmc/linux/Documentation/driver-api/fpga/ |
H A D | fpga-mgr.rst | 5 -------- 13 The FPGA image to be programmed can be in a scatter gather list, a single 15 memory for the buffer should be avoided, users are encouraged to use a scatter 16 gather list instead if possible. 20 FPGA image as well as image-specific particulars such as whether the image was 24 -------------------------------- 39 struct device *dev = &pdev->dev; 46 return -ENOMEM; 97 whole buffer will be passed into .parse_header. If image is in scatter-gather 100 size into info->header_size and return -EAGAIN, then it will be called again [all …]
|
/openbmc/linux/include/xen/interface/io/ |
H A D | vscsiif.h | 1 /* SPDX-License-Identifier: MIT */ 34 *------------------ Backend Device Identification (PRIVATE) ------------------ 36 * p-devname 41 * p-dev 44 * A string specifying the backend device: either a 4-tuple "h:c:t:l" 48 * v-dev 51 * A string specifying the frontend device in form of a 4-tuple "h:c:t:l" 54 *--------------------------------- Features --------------------------------- 56 * feature-sg-grant 60 * Specifies the maximum number of scatter/gather elements in grant pages [all …]
|
/openbmc/linux/net/9p/ |
H A D | trans_virtio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 46 * struct virtio_chan - per-instance transport information 55 * @sg: scatter gather list which is used to pack a request (protected?) 58 * We keep all per-channel information in a structure. 59 * This structure is allocated within the devices dev->mem space. 93 return PAGE_SIZE - offset_in_page(data); in rest_of_page() 97 * p9_virtio_close - reclaim resources of a channel 107 struct virtio_chan *chan = client->trans; in p9_virtio_close() 111 chan->inuse = false; in p9_virtio_close() 116 * req_done - callback which signals activity from the server [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 100 pools as needed. To reduce run-time kernel memory requirements, you 119 <Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt> 124 # Should be selected if we can mmap non-coherent mappings to userspace. 150 to allocate big physically-contiguous blocks of memory for use with 151 hardware components that do not support I/O map nor scatter-gather. 235 bool "Enable debugging of DMA-API usage" 240 drivers like double-freeing of DMA mappings or freeing mappings that 249 bool "Debug DMA scatter-gather usage" 259 preparing literal scatter-gather descriptors, where there is a risk of [all …]
|
/openbmc/linux/drivers/misc/genwqe/ |
H A D | card_ddcb.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Author: Joerg-Stephan Vogt <jsvogt@de.ibm.com> 23 * struct ddcb - Device Driver Control Block DDCB 120 * Accessing HSI/SHI is done 32-bit wide 121 * Normally 16-bit access would work too, but on some platforms the 123 * switching to 32-bit such that those platforms will work too. 139 * Genwqe Scatter Gather list 151 * 0b0010 First entry of a descriptor list. Start from a Buffer-Empty 163 * struct sglist - Scatter gather list 169 * Depending on the command the GenWQE card can use a scatter gather
|