| /linux/rust/kernel/ |
| H A D | device_id.rs | 1 // SPDX-License-Identifier: GPL-2.0 8 use core::mem::MaybeUninit; 13 /// guarantee (at compile-time) zero-termination of device id tables provided by drivers. 17 /// Implementers must ensure that `Self` is layout-compatible with [`RawDeviceId::RawType`]; 29 /// Id tables created from [`Self`] are going to hold this type in its zero-terminated array. 36 /// that is used to store a pointer-sized value (e.g., an index or context pointer). 52 fn index(&self) -> usize; in index() 55 /// A zero-terminated device id array. 64 pub const fn size(&self) -> usize { in size() 65 core::mem::size_of::<Self>() in size() [all …]
|
| /linux/Documentation/devicetree/bindings/reserved-memory/ |
| H A D | qcom,rmtfs-mem.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reserved-memory/qcom,rmtfs-mem.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Bjorn Andersson <bjorn.andersson@linaro.org> 18 - $ref: reserved-memory.yaml 22 const: qcom,rmtfs-mem 24 qcom,client-id: 29 qcom,use-guard-pages: 41 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_array_access.c | 1 // SPDX-License-Identifier: GPL-2.0 53 __description("valid map access into an array with a constant") 60 *(u64*)(r10 - 8) = r1; \ in an_array_with_a_constant_1() 62 r2 += -8; \ in an_array_with_a_constant_1() 77 __description("valid map access into an array with a register") 84 *(u64*)(r10 - 8) = r1; \ in __flag() 86 r2 += -8; \ in __flag() 104 __description("valid map access into an array with a variable") 111 *(u64*)(r10 - 8) = r1; \ in __flag() 113 r2 += -8; \ in __flag() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | barrier.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 64 * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise 65 * @index: array element index 66 * @size: number of elements in array 69 * 0 - (@index < @size) 122 "amswap_db.w %[tmp], %[val], %[mem] \n" \ 123 : [mem] "+ZB" (*(u32 *)&p), [tmp] "=&r" (__tmp) \ 129 "amswap_db.d %[tmp], %[val], %[mem] \n" \ 130 : [mem] "+ZB" (*(u64 *)&p), [tmp] "=&r" (__tmp) \ [all …]
|
| /linux/drivers/net/ipa/ |
| H A D | ipa.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2018-2024 Linaro Ltd. 25 * struct ipa - IPA information 44 * @mem_addr: DMA address of IPA-local memory space 45 * @mem_virt: Virtual address of IPA-local memory space 48 * @mem_count: Number of entries in the mem array 49 * @mem: Array of IPA-local memory region descriptors 54 * @zero_addr: DMA address of preallocated zero-filled memory 55 * @zero_virt: Virtual address of preallocated zero-filled memory [all …]
|
| /linux/drivers/firmware/efi/ |
| H A D | cper.c | 1 // SPDX-License-Identifier: GPL-2.0 33 * multiple boot may co-exist in ERST. 74 * cper_print_bits - print strings for set bits 77 * @strs: string array, indexed by bit position 78 * @strs_size: size of the string array: @strs 104 len += scnprintf(buf+len, sizeof(buf)-len, ", %s", str); in cper_print_bits() 111 * cper_bits_to_str - return a string for set bits 115 * @strs: string array, indexed by bit position 116 * @strs_size: size of the string array: @strs 154 len--; in cper_bits_to_str() [all …]
|
| /linux/include/linux/ |
| H A D | swiotlb.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include <linux/dma-direction.h> 48 * struct io_tlb_pool - IO TLB memory pool descriptor 64 * @areas: Array of memory area descriptors. 65 * @slots: Array of slot descriptors. 88 * struct io_tlb_mem - Software IO TLB allocator 131 * swiotlb_find_pool() - find swiotlb pool to which a physical address belongs 145 struct io_tlb_mem *mem = dev->dma_io_tlb_mem; in swiotlb_find_pool() local 147 if (!mem) in swiotlb_find_pool() 157 * dev->dma_uses_io_tlb here and mem->pools in __swiotlb_find_pool(). in swiotlb_find_pool() [all …]
|
| /linux/mm/ |
| H A D | cma_debug.c | 1 // SPDX-License-Identifier: GPL-2.0 38 spin_lock_irq(&cma->lock); in cma_used_get() 39 *val = cma->count - cma->available_count; in cma_used_get() 40 spin_unlock_irq(&cma->lock); in cma_used_get() 55 spin_lock_irq(&cma->lock); in cma_maxchunk_get() 56 for (r = 0; r < cma->nranges; r++) { in cma_maxchunk_get() 57 cmr = &cma->ranges[r]; in cma_maxchunk_get() 59 for_each_clear_bitrange(start, end, cmr->bitmap, bitmap_maxno) in cma_maxchunk_get() 60 maxchunk = max(end - start, maxchunk); in cma_maxchunk_get() 62 spin_unlock_irq(&cma->lock); in cma_maxchunk_get() [all …]
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 21 regulator-max-microvolt: 24 regulator-microvolt-offset: 28 regulator-min-microamp: [all …]
|
| /linux/drivers/usb/gadget/ |
| H A D | config.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * usb/gadget/config.c -- simplify building config descriptors 22 * usb_descriptor_fillbuf - fill buffer with descriptors 25 * @src: Array of descriptor pointers, terminated by null pointer. 40 return -EINVAL; in usb_descriptor_fillbuf() 44 unsigned len = (*src)->bLength; in usb_descriptor_fillbuf() 47 return -EINVAL; in usb_descriptor_fillbuf() 49 buflen -= len; in usb_descriptor_fillbuf() 52 return dest - (u8 *)buf; in usb_descriptor_fillbuf() 57 * usb_copy_descriptors - copy a vector of USB descriptors [all …]
|
| /linux/arch/powerpc/platforms/44x/ |
| H A D | hsta_msi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <asm/ppc-pci.h> 30 /* An array mapping offsets to hardware IRQs */ 45 /* We don't support MSI-X */ in hsta_setup_msi_irqs() 47 pr_debug("%s: MSI-X not supported.\n", __func__); in hsta_setup_msi_irqs() 48 return -EINVAL; in hsta_setup_msi_irqs() 51 msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) { in hsta_setup_msi_irqs() 62 return -EINVAL; in hsta_setup_msi_irqs() 66 * HSTA generates interrupts on writes to 128-bit aligned in hsta_setup_msi_irqs() 84 return -EINVAL; in hsta_setup_msi_irqs() [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | intel_scu_ipc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (C) Copyright 2008-2010,2015 Intel Corporation 10 * SCU has two IPC mechanism IPC-1 and IPC-2. IPC-1 is used between IA32 and 11 * SCU where IPC-2 is used between P-Unit and SCU. This driver delas with 12 * IPC-1 Driver provides an API for power control unit registers (e.g. MSIC) 35 #define IPC_CMD_PCNTRL_M 2 /* Register read-modify-write */ 41 * To read or write information to the SCU, driver writes to IPC-1 memory 48 * the IPC-1 register block, causing an interrupt to the SCU 90 * intel_scu_ipc_dev_get() - Get SCU IPC instance 106 get_device(&ipcdev->dev); in intel_scu_ipc_dev_get() [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | nxp,dwmac-imx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Clark Wang <xiaoning.wang@nxp.com> 11 - Shawn Guo <shawnguo@kernel.org> 12 - NXP Linux Team <linux-imx@nxp.com> 20 - nxp,imx8mp-dwmac-eqos 21 - nxp,imx8dxl-dwmac-eqos 22 - nxp,imx93-dwmac-eqos [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_ccamisc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 44 * This is a pre-allocated memory for the device status array 71 if (t->type != TOKTYPE_CCA_INTERNAL) { in cca_check_secaeskeytoken() 74 __func__, (int)t->type, TOKTYPE_CCA_INTERNAL); in cca_check_secaeskeytoken() 75 return -EINVAL; in cca_check_secaeskeytoken() 77 if (t->version != TOKVER_CCA_AES) { in cca_check_secaeskeytoken() 80 __func__, (int)t->version, TOKVER_CCA_AES); in cca_check_secaeskeytoken() 81 return -EINVAL; in cca_check_secaeskeytoken() 83 if (keybitsize > 0 && t->bitsize != keybitsize) { in cca_check_secaeskeytoken() 86 __func__, (int)t->bitsize, keybitsize); in cca_check_secaeskeytoken() [all …]
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-css-fw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #define IMGU_FW_NAME "intel/ipu3-fw.bin" 11 "intel/irci_irci_ecr-master_20161208_0213_20170112_1500.bin" 13 "intel/ipu/irci_irci_ecr-master_20161208_0213_20170112_1500.bin" 29 IMGU_FW_ACC_STANDALONE, /* Stand-alone acceleration */ 33 u32 offset; /* Offset in isp_<mem> config, params, etc. */ 79 } array[IMGU_ABI_PARAM_CLASS_NUM]; member 110 u32 host_sp_queue; /* Host <-> SP queues */ 111 u32 host_sp_com; /* Host <-> SP commands */ 119 /* input system perf count array */ [all …]
|
| H A D | ipu3-css-pool.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * struct imgu_css_map - store DMA mapping info for buffer 28 * struct imgu_css_pool - circular buffer pool definition 30 * @entry: array with IPU3_CSS_POOL_SIZE elements. 31 * @entry.param: a &struct imgu_css_map for storing the mem mapping.
|
| /linux/Documentation/arch/x86/ |
| H A D | zero-page.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 The additional fields in struct boot_params as a part of 32-bit boot 7 protocol of kernel. These should be filled by bootloader or 16-bit 8 real-mode setup code of the kernel. References/settings to it mainly 34 1E0/004 ALL alt_mem_k Alternative mem check, in KB 45 (array of struct e820_entry) 46 D00/1EC ALL eddbuf EDD data (array of struct edd_info)
|
| /linux/Documentation/devicetree/bindings/pci/ |
| H A D | ti,j721e-pci-ep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: http://devicetree.org/schemas/pci/ti,j721e-pci-ep.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Kishon Vijay Abraham I <kishon@ti.com> 16 - const: ti,j721e-pcie-ep 17 - const: ti,j784s4-pcie-ep 18 - description: PCIe EP controller in AM64 20 - const: ti,am64-pcie-ep [all …]
|
| /linux/tools/lib/perf/include/perf/ |
| H A D | event.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * Only valid for fixed-size scalar fields — for trailing arrays like 17 #define event_contains(obj, mem) \ 18 ((obj).header.size >= offsetof(typeof(obj), mem) + sizeof((obj).mem)) 152 __u64 array[]; 165 * The kernel part will be in the sample callchain array after 177 * Array o 11 event_contains(obj,mem) global() argument 145 __u64 array[]; global() member [all...] |
| /linux/drivers/net/wireless/ti/wl18xx/ |
| H A D | wl18xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 43 /* number of keys requiring extra spare mem-blocks */ 57 * Array of host Tx descriptors, where fw_release_idx 63 * is short lived, for multi-channel Tx requirements. 114 /* Tx rate or Tx rate estimate pre-calculated by fw in mbps units */ 144 /* Cumulative counter of total released mem blocks since FW-reset */ 165 /* PN16 of last TKIP/AES seq-num per HLID */ 174 /* Tx rate or Tx rate estimate pre-calculated by fw in mbps units */ 204 /* Cumulative counter of total released mem blocks since FW-reset */
|
| /linux/drivers/xen/ |
| H A D | mem-reservation.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (c) 2003-2004, M Williamson, K Fraser 16 #include <xen/mem-reservation.h> 26 #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1) 85 /* @frames is an array of PFNs */ 101 /* @frames is an array of GFNs */
|
| /linux/tools/power/pm-graph/ |
| H A D | README | 8 pm-graph: suspend/resume/boot timing analysis tools 11 …Home Page: https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overvi… 13 Report bugs/issues at bugzilla.kernel.org Tools/pm-graph 14 - https://bugzilla.kernel.org/buglist.cgi?component=pm-graph&product=Tools 17 - Getting Started: 20 - Feature Summary: 21 https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/features.html 23 - upstream version in git: 24 git clone https://github.com/intel/pm-graph/ 27 - Overview [all …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-tpdm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2023-2025 Qualcomm Innovation Center, Inc. All rights reserved. 143 #define tpdm_simple_dataset_ro(name, mem, idx) \ argument 147 mem, \ 152 #define tpdm_simple_dataset_rw(name, mem, idx) \ argument 157 mem, \ 162 #define tpdm_patt_enable_ts(name, mem) \ argument 167 mem, \ 229 * struct dsb_dataset - specifics associated to dsb dataset 292 * struct tpdm_drvdata - specifics associated to an TPDM component [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | ingenic_rproc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 33 "Auto-boot the remote processor [default=false]"); 53 * struct vpu - Ingenic VPU remoteproc private structure 57 * @mem_info: array of struct vpu_mem_info, which contain the mapping info of 71 struct vpu *vpu = rproc->priv; in ingenic_rproc_prepare() 75 ret = clk_bulk_prepare_enable(ARRAY_SIZE(vpu->clks), vpu->clks); in ingenic_rproc_prepare() 77 dev_err(vpu->dev, "Unable to start clocks: %d\n", ret); in ingenic_rproc_prepare() 84 struct vpu *vpu = rproc->priv; in ingenic_rproc_unprepare() 86 clk_bulk_disable_unprepare(ARRAY_SIZE(vpu->clks), vpu->clks); in ingenic_rproc_unprepare() 93 struct vpu *vpu = rproc->priv; in ingenic_rproc_start() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_controlq.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 (&(((struct idpf_ctlq_desc *)((R)->desc_ring.va))[i])) 18 ((u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->ring_size) + \ 19 (R)->next_to_clean - (R)->next_to_use - 1)) 64 /* Flags sub-structure 92 u32 chnl_opcode; /* avoid confusion with desc->opcode */ 93 u32 chnl_retval; /* ditto for desc->retval */ 114 /* Array of remaining LAN BAR regions */ 120 /* control queue - send and receive */ 141 void *idpf_alloc_dma_mem(struct idpf_hw *hw, struct idpf_dma_mem *mem, [all …]
|