/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 …]
|
/linux/drivers/gpu/drm/tests/ |
H A D | drm_gem_shmem_test.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/dma-buf.h> 11 #include <linux/iosys-map.h> 45 struct drm_device *drm_dev = test->priv; in drm_gem_shmem_test_obj_create() 50 KUNIT_EXPECT_EQ(test, shmem->base.size, TEST_SIZE); in drm_gem_shmem_test_obj_create() 51 KUNIT_EXPECT_NOT_NULL(test, shmem->base.filp); in drm_gem_shmem_test_obj_create() 52 KUNIT_EXPECT_NOT_NULL(test, shmem->base.funcs); in drm_gem_shmem_test_obj_create() 58 * Test creating a shmem GEM object from a scatter/gather table exported 59 * via a DMA-BUF. The test case succeed if the GEM object is successfully 61 * attribute pointing to the scatter/gather table that has been imported. [all …]
|
/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 …]
|
/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 …]
|
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_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 * ----------------------------------------- 42 /* Each Scatter/Gather entry sent to hardwar hold four pointers. [all …]
|
/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 * ----------------------------------------- 42 /* Each Scatter/Gather entry sent to hardwar hold four pointers. [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_hmm.c | 1 // SPDX-License-Identifier: MIT 8 #include <linux/dma-mapping.h> 19 return (end - start) >> PAGE_SHIFT; in xe_npages_in_range() 23 * xe_mark_range_accessed() - mark a range is accessed, so core mm 36 npages = xe_npages_in_range(range->start, range->end); in xe_mark_range_accessed() 38 page = hmm_pfn_to_page(range->hmm_pfns[i]); in xe_mark_range_accessed() 47 * xe_build_sg() - build a scatter gather table for all the physical pages/pfn 48 * in a hmm_range. dma-map pages if necessary. dma-address is save in sg table 51 * @xe: the xe device who will access the dma-address in sg table 52 * @range: the hmm range that we build the sg table from. range->hmm_pfns[] [all …]
|
/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->me [all...] |
/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 …]
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A 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/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
|
/linux/drivers/firmware/efi/ |
H A 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/kernel/dma/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 99 pools as needed. To reduce run-time kernel memory requirements, you 123 <Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt> 128 # Should be selected if we can mmap non-coherent mappings to userspace. 165 to allocate big physically-contiguous blocks of memory for use with 166 hardware components that do not support I/O map nor scatter-gather. 250 bool "Enable debugging of DMA-API usage" 255 drivers like double-freeing of DMA mappings or freeing mappings that 264 bool "Debug DMA scatter-gather usage" 274 preparing literal scatter-gather descriptors, where there is a risk of [all …]
|
/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
|
/linux/Documentation/driver-api/dmaengine/ |
H A D | provider.rst | 20 DMA-eligible devices to the controller itself. Whenever the device 44 transfer into smaller sub-transfers. 49 non-contiguous buffers to a contiguous buffer, which is called 50 scatter-gather. 53 scatter-gather. So we're left with two cases here: either we have a 56 that implements in hardware scatter-gather. 79 These were just the general memory-to-memory (also called mem2mem) or 80 memory-to-device (mem2dev) kind of transfers. Most devices often 98 documentation file in Documentation/crypto/async-tx-api.rst. 104 ------------------------------------ [all …]
|
/linux/drivers/crypto/amcc/ |
H A 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/drivers/message/fusion/ |
H A 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
|