/Linux-v6.1/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 */ 26 /* Each Scatter/Gather entry sent to hardwar hold four pointers. 28 * is for main skb which also goes as a gather buffer to Octeon hardware. 41 u8 gather; member 88 /* Packets sent with an octet count of 1024-1518 */ 123 /* Gather entries sent through this queue. */ 172 /* Base pointer to Scatter/Gather lists for all ring descriptors. */ 175 /* DMA mapped addr of Scatter Gather Lists */ [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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() 89 mutex_init(&shmem->pages_lock); in __drm_gem_shmem_create() [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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.
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/Documentation/scsi/ |
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 …]
|
/Linux-v6.1/drivers/scsi/fnic/ |
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 …]
|
/Linux-v6.1/drivers/misc/bcm-vk/ |
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
|
/Linux-v6.1/kernel/dma/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 92 <Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt> 97 # Should be selected if we can mmap non-coherent mappings to userspace. 123 to allocate big physically-contiguous blocks of memory for use with 124 hardware components that do not support I/O map nor scatter-gather. 207 bool "Enable debugging of DMA-API usage" 212 drivers like double-freeing of DMA mappings or freeing mappings that 221 bool "Debug DMA scatter-gather usage" 231 preparing literal scatter-gather descriptors, where there is a risk of 233 is technically out-of-spec.
|
/Linux-v6.1/Documentation/driver-api/fpga/ |
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 -------------------------------- 38 struct device *dev = &pdev->dev; 45 return -ENOMEM; 95 whole buffer will be passed into .parse_header. If image is in scatter-gather 98 size into info->header_size and return -EAGAIN, then it will be called again [all …]
|
/Linux-v6.1/include/xen/interface/io/ |
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 …]
|
/Linux-v6.1/net/9p/ |
D | trans_virtio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 47 * struct virtio_chan - per-instance transport information 56 * @sg: scatter gather list which is used to pack a request (protected?) 59 * We keep all per-channel information in a structure. 60 * This structure is allocated within the devices dev->mem space. 94 return PAGE_SIZE - offset_in_page(data); in rest_of_page() 98 * p9_virtio_close - reclaim resources of a channel 108 struct virtio_chan *chan = client->trans; in p9_virtio_close() 112 chan->inuse = false; in p9_virtio_close() 117 * req_done - callback which signals activity from the server [all …]
|
/Linux-v6.1/drivers/net/ethernet/cavium/liquidio/ |
D | liquidio_common.h | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 19 * \brief Common: Structures and macros used in PCI-NIC package by core and 50 /* pre-defined host->NIC tag values */ 60 /* Subcodes are used by host driver/apps to identify the sub-operation 85 #define VF_DRV_REMOVED -1 101 #define CVM_DRV_APP_END (CVM_DRV_INVALID_APP - 1) 123 index = index + count - max; in incr_index() 149 /*--------------------------- SCATTER GATHER ENTRY -----------------------*/ 151 /* The Scatter-Gather List Entry. The scatter or gather component used with [all …]
|
/Linux-v6.1/drivers/misc/genwqe/ |
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
|
/Linux-v6.1/drivers/firmware/efi/ |
D | capsule.c | 1 // SPDX-License-Identifier: GPL-2.0 25 static int efi_reset_type = -1; 34 * efi_capsule_pending - has a capsule been passed to the firmware? 47 * A non-racy use is from platform reboot code because we use 74 * efi_capsule_supported - does the firmware support the capsule? 94 return -EINVAL; in efi_capsule_supported() 105 return -ENOSPC; in efi_capsule_supported() 112 * Every scatter gather list (block descriptor) page must end with a 116 #define SGLIST_PER_PAGE ((PAGE_SIZE / sizeof(efi_capsule_block_desc_t)) - 1) 119 * How many scatter gather list (block descriptor) pages do we need [all …]
|
/Linux-v6.1/drivers/message/fusion/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 65 int "Maximum number of scatter gather entries (16 - 128)" 69 This option allows you to specify the maximum number of scatter- 70 gather entries per I/O. The driver default is 128, which matches
|
/Linux-v6.1/drivers/crypto/amcc/ |
D | crypto4xx_core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 35 #define PPC4XX_LAST_PD (PPC4XX_NUM_PD - 1) 37 #define PPC4XX_LAST_GD (PPC4XX_NUM_GD - 1) 39 #define PPC4XX_LAST_SD (PPC4XX_NUM_SD - 1) 59 u32 first_gd; /* first gather discriptor 61 u32 num_gd; /* number of gather discriptor 63 u32 first_sd; /* first scatter discriptor 65 u32 num_sd; /* number of scatter discriptors 82 struct ce_gd *gdr; /* gather descriptor ring */ 84 struct ce_sd *sdr; /* scatter descriptor ring */ [all …]
|
/Linux-v6.1/Documentation/networking/ |
D | driver.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 for a driver implementing scatter-gather this means:: 25 if (TX_BUFFS_AVAIL(dp) <= (skb_shinfo(skb)->nr_frags + 1)) { 29 dev->name); 47 if (netif_queue_stopped(dp->dev) && 49 netif_wake_queue(dp->dev); 51 For a non-scatter-gather supporting card, the three tests simply become:: 62 if (netif_queue_stopped(dp->dev) && 64 netif_wake_queue(dp->dev);
|