| /kernel/linux/linux-5.10/drivers/crypto/cavium/zip/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/crypto/cavium/zip/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/scsi/megaraid/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/scsi/ |
| 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 38 { /* call. It defines one scatter-gather element. */ 50 unsigned short iovec_count; /* [i] 0 implies no scatter gather */ 53 or scatter gather list */ 56 unsigned int timeout; /* [i] MAX_UINT->no timeout (unit: millisec) */ 57 unsigned int flags; /* [i] 0 -> default, see SG_FLAG... */ 58 int pack_id; /* [i->o] unused internally (normally) */ 59 void __user * usr_ptr; /* [i->o] unused internally */ [all …]
|
| /kernel/linux/linux-6.6/include/scsi/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_gem_cma_helper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/dma-buf.h> 13 #include <linux/dma-mapping.h> 37 * __drm_gem_cma_create - Create a GEM CMA object without allocating memory 45 * A struct drm_gem_cma_object * on success or an ERR_PTR()-encoded negative 55 if (drm->driver->gem_create_object) in __drm_gem_cma_create() 56 gem_obj = drm->driver->gem_create_object(drm, size); in __drm_gem_cma_create() 60 return ERR_PTR(-ENOMEM); in __drm_gem_cma_create() 81 * drm_gem_cma_create - allocate an object with the given size 90 * A struct drm_gem_cma_object * on success or an ERR_PTR()-encoded negative [all …]
|
| D | drm_gem_shmem_helper.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/dma-buf.h> 47 if (dev->driver->gem_create_object) in __drm_gem_shmem_create() 48 obj = dev->driver->gem_create_object(dev, size); in __drm_gem_shmem_create() 52 return ERR_PTR(-ENOMEM); in __drm_gem_shmem_create() 54 if (!obj->funcs) in __drm_gem_shmem_create() 55 obj->funcs = &drm_gem_shmem_funcs; in __drm_gem_shmem_create() 69 mutex_init(&shmem->pages_lock); in __drm_gem_shmem_create() 70 mutex_init(&shmem->vmap_lock); in __drm_gem_shmem_create() 71 INIT_LIST_HEAD(&shmem->madv_list); in __drm_gem_shmem_create() [all …]
|
| /kernel/linux/linux-5.10/drivers/parisc/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/parisc/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/xen/interface/io/ |
| D | vscsiif.h | 51 *------------------ Backend Device Identification (PRIVATE) ------------------ 53 * p-devname 58 * p-dev 61 * A string specifying the backend device: either a 4-tuple "h:c:t:l" 65 * v-dev 68 * A string specifying the frontend device in form of a 4-tuple "h:c:t:l" 71 *--------------------------------- Features --------------------------------- 73 * feature-sg-grant 77 * Specifies the maximum number of scatter/gather elements in grant pages 85 *----------------------- Request Transport Parameters ----------------------- [all …]
|
| /kernel/linux/linux-6.6/include/media/ |
| 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.
|
| /kernel/linux/linux-5.10/include/media/ |
| 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.
|
| /kernel/linux/linux-6.6/include/linux/mtd/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/linux/mtd/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
| 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 52 /** Use the slow CX-FPGA I2C bus */ 62 * struct mlx5_fpga_dma_entry - A scatter-gather DMA entry 69 /** @dma_addr: Private member. Physical DMA-mapped address of the data */ 74 * struct mlx5_fpga_dma_buf - A packet buffer 75 * May contain up to 2 scatter-gather data entries [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
| 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 …]
|
| /kernel/linux/linux-5.10/kernel/dma/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 88 # Should be selected if we can mmap non-coherent mappings to userspace. 115 to allocate big physically-contiguous blocks of memory for use with 116 hardware components that do not support I/O map nor scatter-gather. 199 bool "Enable debugging of DMA-API usage" 204 drivers like double-freeing of DMA mappings or freeing mappings that 213 bool "Debug DMA scatter-gather usage" 223 preparing literal scatter-gather descriptors, where there is a risk of 225 is technically out-of-spec.
|