/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/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 …]
|
H A D | mbox_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright (c) 2003-2004 LSI Logic Corporation. 137 * struct mbox_t - Driver and f/w handshake structure. 144 * @numsge : number of scatter gather elements in sg list 154 * structure must be allocated by the driver and aligned at 8-byte boundary. 176 * mbox64_t - 64-bit extension for the mailbox 177 * @segment_lo : the low 32-bits of the address of the scatter-gather list 178 * @segment_hi : the upper 32-bits of the address of the scatter-gather list 179 * @mbox : 32-bit mailbox, whose xferadder field must be set to 182 * This is the extension of the 32-bit mailbox to be able to perform DMA [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 - UB [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/hid/intel-thc-hid/intel-thc/ |
H A D | intel-thc-dma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #include <linux/dma-mapping.h> 24 * so don't need to send the lower 10-bits of address. 69 * given by scatter-gather list allocation). 88 * struct thc_dma_configuration - THC DMA configure 93 * @sgls: Array of pointers to scatter-gather lists 94 * @sgls_nent: Actual number of entries per scatter-gather list 121 * struct thc_dma_context - THC DMA context
|
/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/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/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/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/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() 34 if (mmu_interval_read_retry(range->notifier, range->notifier_seq)) { in xe_alloc_sg() 36 return -EAGAIN; in xe_alloc_sg() 39 npages = xe_npages_in_range(range->start, range->end); in xe_alloc_sg() 43 hmm_pfn = range->hmm_pfns[i]; in xe_alloc_sg() 48 /* If order > 0 the page may extend beyond range->start */ in xe_alloc_sg() 49 len -= (hmm_pfn & ~HMM_PFN_FLAGS) & (len - 1); in xe_alloc_sg() 59 * xe_build_sg() - build a scatter gather table for all the physical pages/pfn [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
|
/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/tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/ |
H A D | pipeline.json | 123 …"PublicDescription": "This event counts aborted requests in L1D pipelines that due to store-load i… 126 …"BriefDescription": "This event counts aborted requests in L1D pipelines that due to store-load in… 141 …"PublicDescription": "This event counts the number of times where 2 elements of the gather instruc… 144 …"BriefDescription": "This event counts the number of times where 2 elements of the gather instruct… 147 …"PublicDescription": "This event counts the number of times where 2 elements of the gather instruc… 150 …"BriefDescription": "This event counts the number of times where 2 elements of the gather instruct… 153 …"PublicDescription": "This event counts the number of times where 2 elements of the gather instruc… 156 …"BriefDescription": "This event counts the number of times where 2 elements of the gather instruct… 159 "PublicDescription": "This event counts the number of flows of the scatter instructions.", 162 "BriefDescription": "This event counts the number of flows of the scatter instructions."
|
/linux/drivers/scsi/mpt3sas/ |
H A D | Kconfig | 5 # Copyright (C) 2012-2014 LSI Corporation 6 # (mailto:DL-MPTFusionLinux@lsi.com) 21 # LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 40 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 50 This driver supports PCI-Express SAS 12Gb/s Host Adapters. 53 int "LSI MPT Fusion SAS 2.0 Max number of SG Entries (16 - 256)" 58 This option allows you to specify the maximum number of scatter- 59 gather entries per I/O. The driver default is 128, which matches 65 int "LSI MPT Fusion SAS 3.0 Max number of SG Entries (16 - 256)" 70 This option allows you to specify the maximum number of scatter- [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_scatterlist.h | 2 * SPDX-License-Identifier: MIT 12 #include <linux/dma-mapping.h> 37 s.max = s.curr = s.sgp->offset; in __sgt_iter() 43 s.max += s.sgp->length; in __sgt_iter() 52 return sg->length >> PAGE_SHIFT; in __sg_page_count() 69 * __sg_next - return the next scatterlist entry in a list 83 * __for_each_sgt_daddr - iterate over the device addresses of the given sg_table 90 for ((__iter) = __sgt_iter((__sgt)->sgl, true); \ 95 * __for_each_daddr_next - iterates over the device addresses with pre-initialized iterator. 106 * for_each_sgt_page - iterate over the pages of the given sg_table [all …]
|