| /kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
| D | uapi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 struct tegra_drm_mapping *mapping = in tegra_drm_mapping_release() local 20 host1x_bo_unpin(mapping->map); in tegra_drm_mapping_release() 21 host1x_bo_put(mapping->bo); in tegra_drm_mapping_release() 23 kfree(mapping); in tegra_drm_mapping_release() 26 void tegra_drm_mapping_put(struct tegra_drm_mapping *mapping) in tegra_drm_mapping_put() argument 28 kref_put(&mapping->ref, tegra_drm_mapping_release); in tegra_drm_mapping_put() 33 struct tegra_drm_mapping *mapping; in tegra_drm_channel_context_close() local 36 if (context->memory_context) in tegra_drm_channel_context_close() 37 host1x_memory_context_put(context->memory_context); in tegra_drm_channel_context_close() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
| D | uvc_ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * uvc_ctrl.c -- USB Video Class driver - Controls 5 * Copyright (C) 2005-2010 21 #include <media/v4l2-ctrls.h> 33 /* ------------------------------------------------------------------------ 366 static s32 uvc_ctrl_get_zoom(struct uvc_control_mapping *mapping, in uvc_ctrl_get_zoom() argument 367 u8 query, const u8 *data) in uvc_ctrl_get_zoom() argument 369 s8 zoom = (s8)data[0]; in uvc_ctrl_get_zoom() 373 return (zoom == 0) ? 0 : (zoom > 0 ? data[2] : -data[2]); in uvc_ctrl_get_zoom() 380 return data[2]; in uvc_ctrl_get_zoom() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/uvc/ |
| D | uvc_ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * uvc_ctrl.c -- USB Video Class driver - Controls 5 * Copyright (C) 2005-2010 23 #include <media/v4l2-ctrls.h> 35 /* ------------------------------------------------------------------------ 373 * device. The custom menu_mapping in the control @mapping is used when 380 * The function returns -EINVAL if the V4L2 menu index @idx isn't valid for the 384 static int uvc_mapping_get_menu_value(const struct uvc_control_mapping *mapping, in uvc_mapping_get_menu_value() argument 387 if (!test_bit(idx, &mapping->menu_mask)) in uvc_mapping_get_menu_value() 388 return -EINVAL; in uvc_mapping_get_menu_value() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | pagemap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 unsigned long invalidate_mapping_pages(struct address_space *mapping, 26 if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || in invalidate_remote_inode() 27 S_ISLNK(inode->i_mode)) in invalidate_remote_inode() 28 invalidate_mapping_pages(inode->i_mapping, 0, -1); in invalidate_remote_inode() 30 int invalidate_inode_pages2(struct address_space *mapping); 31 int invalidate_inode_pages2_range(struct address_space *mapping, 39 int filemap_fdatawait_keep_errors(struct address_space *mapping); 41 int filemap_fdatawait_range_keep_errors(struct address_space *mapping, 44 static inline int filemap_fdatawait(struct address_space *mapping) in filemap_fdatawait() argument [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | pagemap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 22 * Bits in mapping->flags. 36 * mapping_set_error - record a writeback error in the address_space 37 * @mapping: the mapping in which an error should be set 38 * @error: the error to set in the mapping 46 * mapping_set_error to record the error in the mapping so that it can be 49 static inline void mapping_set_error(struct address_space *mapping, int error) in mapping_set_error() argument 55 __filemap_set_wb_err(mapping, error); in mapping_set_error() 58 if (mapping->host) in mapping_set_error() 59 errseq_set(&mapping->host->i_sb->s_wb_err, error); in mapping_set_error() [all …]
|
| /kernel/linux/linux-5.10/include/linux/spi/ |
| D | spi-mem.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 59 * enum spi_mem_data_dir - describes the direction of a SPI memory data 61 * @SPI_MEM_NO_DATA: no data transferred 62 * @SPI_MEM_DATA_IN: data coming from the SPI memory 63 * @SPI_MEM_DATA_OUT: data sent to the SPI memory 72 * struct spi_mem_op - describes a SPI memory operation 74 * sent MSB-first. 90 * @data.buswidth: number of IO lanes used to send/receive the data 91 * @data.dtr: whether the data should be sent in DTR mode or not 92 * @data.dir: direction of the transfer [all …]
|
| /kernel/linux/linux-6.6/include/linux/spi/ |
| D | spi-mem.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 59 * enum spi_mem_data_dir - describes the direction of a SPI memory data 61 * @SPI_MEM_NO_DATA: no data transferred 62 * @SPI_MEM_DATA_IN: data coming from the SPI memory 63 * @SPI_MEM_DATA_OUT: data sent to the SPI memory 72 * struct spi_mem_op - describes a SPI memory operation 74 * sent MSB-first. 90 * @data.buswidth: number of IO lanes used to send/receive the data 91 * @data.dtr: whether the data should be sent in DTR mode or not 92 * @data.ecc: whether error correction is required or not [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wwan/iosm/ |
| D | iosm_ipc_pcie.h | 1 /* SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-21 Intel Corporation. 35 * enum ipc_pcie_sleep_state - Enum type to different sleep state transitions 45 * struct iosm_pcie - IPC_PCIE struct. 54 * @imem: Pointer to imem data struct 81 * struct ipc_skb_cb - Struct definition of the socket buffer which is mapped to 83 * @mapping: Store physical or IOVA mapped address of skb virtual add. 89 dma_addr_t mapping; member 96 * enum ipc_ul_usr_op - Control operation to execute the right action on 110 * ipc_pcie_addr_map - Maps the kernel's virtual address to either IOVA [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/gasket/ |
| D | gasket_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * Pair of kernel device and user-specified pointer. Used in lookups in sysfs 12 * "show" functions to return user data. 17 * The device bound to this mapping. If this is NULL, then this mapping 34 /* Tracks active users of this mapping. */ 39 * Data needed to manage users of this sysfs utility. 44 * 'Global' (file-scoped) list of mappings between devices and gasket_data 50 /* Callback when a mapping's refcount goes to zero. */ 56 /* Look up mapping information for the given device. */ 71 dev_dbg(device, "%s: Mapping to device %s not found\n", in get_mapping() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/xen-netback/ |
| D | hash.c | 46 memcpy(new->tag, tag, len); in xenvif_add_hash() 47 new->len = len; in xenvif_add_hash() 48 new->val = val; in xenvif_add_hash() 50 spin_lock_irqsave(&vif->hash.cache.lock, flags); in xenvif_add_hash() 54 list_for_each_entry_rcu(entry, &vif->hash.cache.list, link, in xenvif_add_hash() 55 lockdep_is_held(&vif->hash.cache.lock)) { in xenvif_add_hash() 57 if (entry->len == len && in xenvif_add_hash() 58 memcmp(entry->tag, tag, len) == 0) in xenvif_add_hash() 60 if (!oldest || entry->seq < oldest->seq) in xenvif_add_hash() 65 new->seq = atomic_inc_return(&vif->hash.cache.seq); in xenvif_add_hash() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/xen-netback/ |
| D | hash.c | 46 memcpy(new->tag, tag, len); in xenvif_add_hash() 47 new->len = len; in xenvif_add_hash() 48 new->val = val; in xenvif_add_hash() 50 spin_lock_irqsave(&vif->hash.cache.lock, flags); in xenvif_add_hash() 54 list_for_each_entry_rcu(entry, &vif->hash.cache.list, link, in xenvif_add_hash() 55 lockdep_is_held(&vif->hash.cache.lock)) { in xenvif_add_hash() 57 if (entry->len == len && in xenvif_add_hash() 58 memcmp(entry->tag, tag, len) == 0) in xenvif_add_hash() 60 if (!oldest || entry->seq < oldest->seq) in xenvif_add_hash() 65 new->seq = atomic_inc_return(&vif->hash.cache.seq); in xenvif_add_hash() [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
| D | dm-zoned.rst | 2 dm-zoned 5 The dm-zoned device mapper target exposes a zoned block device (ZBC and 7 pattern constraints. In effect, it implements a drive-managed zoned 10 host-managed zoned block devices and can mitigate the potential 11 device-side performance degradation due to excessive random writes on 12 host-aware zoned block devices. 21 http://www.t13.org/Documents/UploadedDocuments/docs2015/di537r05-Zoned_Device_ATA_Command_Set_ZAC.p… 23 The dm-zoned implementation is simple and minimizes system overhead (CPU 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 29 dm-zoned target devices are formatted and checked using the dmzadm [all …]
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/ |
| D | dm-zoned.rst | 2 dm-zoned 5 The dm-zoned device mapper target exposes a zoned block device (ZBC and 7 pattern constraints. In effect, it implements a drive-managed zoned 10 host-managed zoned block devices and can mitigate the potential 11 device-side performance degradation due to excessive random writes on 12 host-aware zoned block devices. 21 http://www.t13.org/Documents/UploadedDocuments/docs2015/di537r05-Zoned_Device_ATA_Command_Set_ZAC.p… 23 The dm-zoned implementation is simple and minimizes system overhead (CPU 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 29 dm-zoned target devices are formatted and checked using the dmzadm [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| D | flush.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2002 Russell King 48 : "r" (to), "r" (to + PAGE_SIZE - 1), "r" (zero) in flush_pfn_alias() 55 unsigned long offset = vaddr & (PAGE_SIZE - 1); in flush_icache_alias() 94 if (vma->vm_flags & VM_EXEC) in flush_cache_range() 110 if (vma->vm_flags & VM_EXEC && icache_is_vivt_asid_tagged()) in flush_cache_page() 145 /* VIPT non-aliasing D-cache */ in __flush_ptrace_access() 163 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) in flush_ptrace_access() 165 if (vma->vm_flags & VM_EXEC) in flush_ptrace_access() 179 * Copy user data from/to a page which is mapped into a different [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 28 #include <linux/error-injection.h> 31 #include <linux/backing-dev.h> 63 * finished 'unifying' the page and buffer cache and SMP-threaded the 64 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 66 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de> 72 * ->i_mmap_rwsem (truncate_pagecache) 73 * ->private_lock (__free_pte->__set_page_dirty_buffers) 74 * ->swap_lock (exclusive_swap_page, others) [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_xdp.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2016-2017 Broadcom Limited 25 dma_addr_t mapping, u32 len) in bnxt_xmit_bd() argument 32 prod = txr->tx_prod; in bnxt_xmit_bd() 33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 35 txbd = &txr->tx_desc_ring[TX_RING(prod)][TX_IDX(prod)]; in bnxt_xmit_bd() 38 txbd->tx_bd_len_flags_type = cpu_to_le32(flags); in bnxt_xmit_bd() 39 txbd->tx_bd_opaque = prod; in bnxt_xmit_bd() 40 txbd->tx_bd_haddr = cpu_to_le64(mapping); in bnxt_xmit_bd() 43 txr->tx_prod = prod; in bnxt_xmit_bd() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mm/ |
| D | flush.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2002 Russell King 48 : "r" (to), "r" (to + PAGE_SIZE - 1), "r" (zero) in flush_pfn_alias() 55 unsigned long offset = vaddr & (PAGE_SIZE - 1); in flush_icache_alias() 94 if (vma->vm_flags & VM_EXEC) in flush_cache_range() 110 if (vma->vm_flags & VM_EXEC && icache_is_vivt_asid_tagged()) in flush_cache_pages() 145 /* VIPT non-aliasing D-cache */ in __flush_ptrace_access() 163 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) in flush_ptrace_access() 165 if (vma->vm_flags & VM_EXEC) in flush_ptrace_access() 179 * Copy user data from/to a page which is mapped into a different [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/panel/ |
| D | lvds.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 11 - Thierry Reding <thierry.reding@gmail.com> 14 LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple 15 incompatible data link layers have been used over time to transmit image data 19 [JEIDA] "Digital Interface Standards for Monitor", JEIDA-59-1999, February 27 FPD-Link and FlatLink brands. 30 - $ref: panel-common.yaml# [all …]
|
| /kernel/linux/linux-6.6/mm/ |
| D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 30 #include <linux/error-injection.h> 33 #include <linux/backing-dev.h> 70 * finished 'unifying' the page and buffer cache and SMP-threaded the 71 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 73 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de> 79 * ->i_mmap_rwsem (truncate_pagecache) 80 * ->private_lock (__free_pte->block_dirty_folio) 81 * ->swap_lock (exclusive_swap_page, others) [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-mem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <linux/spi/spi-mem.h> 18 * spi_controller_dma_map_mem_op_data() - DMA-map the buffer attached to a 22 * @sgt: a pointer to a non-initialized sg_table that will be filled by this 25 * Some controllers might want to do DMA on the data buffer embedded in @op. 26 * This helper prepares everything for you and provides a ready-to-use 30 * op->data.buf.{in,out} is DMA-able before calling this function. 40 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data() 41 return -EINVAL; in spi_controller_dma_map_mem_op_data() 43 if (op->data.dir == SPI_MEM_DATA_OUT && ctlr->dma_tx) in spi_controller_dma_map_mem_op_data() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_of.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <linux/media-bus-format.h> 25 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node 39 if (tmp->port == port) in drm_of_crtc_port_mask() 50 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port 83 * drm_of_component_match_add - Add a component helper OF node match rule 101 * drm_of_component_probe - Generic probe function for a component based master 121 if (!dev->of_node) in drm_of_component_probe() 122 return -EINVAL; in drm_of_component_probe() 129 port = of_parse_phandle(dev->of_node, "ports", i); in drm_of_component_probe() [all …]
|
| /kernel/linux/linux-6.6/fs/xfs/ |
| D | xfs_aops.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2005 Silicon Graphics, Inc. 4 * Copyright (c) 2016-2018 Christoph Hellwig. 36 * Fast and loose check if this write could update the on-disk inode size. 40 return ioend->io_offset + ioend->io_size > in xfs_ioend_is_append() 41 XFS_I(ioend->io_inode)->i_disk_size; in xfs_ioend_is_append() 45 * Update on-disk file size now that data has been written to disk. 53 struct xfs_mount *mp = ip->i_mount; in xfs_setfilesize() 58 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_fsyncts, 0, 0, 0, &tp); in xfs_setfilesize() 72 ip->i_disk_size = isize; in xfs_setfilesize() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/ |
| D | qede_fp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 30 dma_addr_t mapping; in qede_alloc_rx_buffer() local 31 struct page *data; in qede_alloc_rx_buffer() local 33 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer() 37 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer() 38 rxq->filled_buffers--; in qede_alloc_rx_buffer() 42 data = alloc_pages(GFP_ATOMIC, 0); in qede_alloc_rx_buffer() 43 if (unlikely(!data)) in qede_alloc_rx_buffer() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/ |
| D | qede_fp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 31 dma_addr_t mapping; in qede_alloc_rx_buffer() local 32 struct page *data; in qede_alloc_rx_buffer() local 34 /* In case lazy-allocation is allowed, postpone allocation until the in qede_alloc_rx_buffer() 38 if (allow_lazy && likely(rxq->filled_buffers > 12)) { in qede_alloc_rx_buffer() 39 rxq->filled_buffers--; in qede_alloc_rx_buffer() 43 data = alloc_pages(GFP_ATOMIC, 0); in qede_alloc_rx_buffer() 44 if (unlikely(!data)) in qede_alloc_rx_buffer() [all …]
|
| /kernel/linux/linux-5.10/Documentation/core-api/ |
| D | dma-api-howto.rst | 2 Dynamic DMA mapping Guide 10 with example pseudo-code. For a concise description of the API, see 11 DMA-API.txt. 39 supports 64-bit addresses for main memory and PCI BARs, it may use an IOMMU 40 so devices only need to use 32-bit DMA addresses. 49 +-------+ +------+ +------+ 52 C +-------+ --------> B +------+ ----------> +------+ A 53 | | mapping | | by host | | 54 +-----+ | | | | bridge | | +--------+ 55 | | | | +------+ | | | | [all …]
|