Home
last modified time | relevance | path

Searched +full:mem +full:- +full:array (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/linux/rust/kernel/
H A Ddevice_id.rs1 // 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/drivers/infiniband/sw/siw/
H A Dsiw.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
4 /* Copyright (c) 2008-2019, IBM Corporation */
17 #include <rdma/siw-abi.h>
150 u8 is_pbl; /* PBL or user space mem */
163 struct siw_mem *mem; member
192 struct siw_mem *mem[SIW_MAX_SGE]; /* per sge's resolved mem */ member
207 struct rdma_user_mmap_entry *cq_entry; /* mmap info for CQE array */
250 struct rdma_user_mmap_entry *srq_entry; /* mmap info for SRQ array */
323 * Valid, according to wqe->wr_status
435 struct siw_sqe *sendq; /* send queue element array */
[all …]
H A Dsiw_mem.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 /* Copyright (c) 2008-2019, IBM Corporation */
9 #include <linux/dma-mapping.h>
29 struct siw_mem *mem; in siw_mem_id2obj() local
32 mem = xa_load(&sdev->mem_xa, stag_index); in siw_mem_id2obj()
33 if (likely(mem && kref_get_unless_zero(&mem->ref))) { in siw_mem_id2obj()
35 return mem; in siw_mem_id2obj()
44 int i, num_pages = umem->num_pages; in siw_umem_release()
46 if (umem->base_mem) in siw_umem_release()
47 ib_umem_release(umem->base_mem); in siw_umem_release()
[all …]
/linux/drivers/platform/x86/intel/
H A Dvsec_tpmi.c1 // SPDX-License-Identifier: GPL-2.0-only
23 * Intel Out-of-Band (OOB) device, which is handled by the Intel VSEC
42 * "intel_vsec.tpmi-" prefix which is followed by a specific name of the
43 * given PM feature (for example, "intel_vsec.tpmi-rapl.0").
64 * struct intel_tpmi_pfs_entry - TPMI PM Feature Structure (PFS) entry
68 * @entry_size: Interface instance entry size in 32-bit words.
71 * @attribute: Feature attribute: 0=BIOS. 1=OS. 2-3=Reserved.
87 * struct intel_tpmi_pm_feature - TPMI PM Feature information for a TPMI ID
103 * struct intel_tpmi_info - TPMI information for all IDs in an instance
125 * struct tpmi_info_header - CPU package ID to PCI device mapping information
[all …]
/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dqcom,rmtfs-mem.yaml1 # 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 Dverifier_array_access.c1 // 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 Dbarrier.h1 /* 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/firmware/efi/
H A Dcper.c1 // 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/drivers/net/ipa/
H A Dipa.h1 /* 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/kernel/trace/
H A Dtrace_seq.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2008-2014 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
28 #define TRACE_SEQ_BUF_LEFT(s) seq_buf_buffer_left(&(s)->seq)
35 if (unlikely(!s->seq.size)) in __trace_seq_init()
40 * trace_print_seq - move the contents of trace_seq into a seq_file
54 ret = seq_buf_print_seq(m, &s->seq); in trace_print_seq()
68 * trace_seq_printf - sequence printing of trace information
80 unsigned int save_len = s->seq.len; in trace_seq_printf()
83 if (s->full) in trace_seq_printf()
89 seq_buf_vprintf(&s->seq, fmt, ap); in trace_seq_printf()
[all …]
/linux/include/linux/
H A Dswiotlb.h1 /* 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/drivers/usb/gadget/
H A Dconfig.c1 // 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/drivers/platform/x86/
H A Dintel_scu_ipc.c1 // 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/arch/powerpc/platforms/44x/
H A Dhsta_msi.c1 // 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/tools/lib/perf/include/perf/
H A Devent.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 #define event_contains(obj, mem) ((obj).header.size > offsetof(typeof(obj), mem)) argument
145 __u64 array[]; member
158 * The kernel part will be in the sample callchain array after
170 * Array of u64 id follows here but we cannot use a flexible array
178 /* Returns the pointer to id array based on the actual attr size. */
180 ((void *)&(evt)->attr.attr + (evt)->attr.attr.size)
189 * Array encoding of a perf_cpu_map where nr is the number of entries in cpu[]
197 /* Bitmap encoding of a perf_cpu_map where bitmap entries are 32-bit. */
207 /* Bitmap encoding of a perf_cpu_map where bitmap entries are 64-bit. */
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dnxp,dwmac-imx.yaml1 # 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/staging/media/ipu3/
H A Dipu3-css-fw.h1 /* 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 …]
/linux/Documentation/arch/x86/
H A Dzero-page.rst1 .. 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/lib/
H A Dseq_buf.c1 // SPDX-License-Identifier: GPL-2.0
31 * seq_buf_can_fit - can the new data fit in the current buffer?
40 return s->len + len <= s->size; in seq_buf_can_fit()
44 * seq_buf_print_seq - move the contents of seq_buf into a seq_file
48 * Returns: zero on success, non-zero otherwise.
54 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
58 * seq_buf_vprintf - sequence printing of information.
65 * Returns: zero on success, -1 on overflow.
71 WARN_ON(s->size == 0); in seq_buf_vprintf()
73 if (s->len < s->size) { in seq_buf_vprintf()
[all …]
H A DKconfig.ubsan1 # SPDX-License-Identifier: GPL-2.0-only
10 Compile-time instrumentation is used to detect various undefined
12 Documentation/dev-tools/ubsan.rst
28 trade-off.
39 def_bool $(cc-option,-fsanitize=bounds-strict)
41 The -fsanitize=bounds-strict option is only available on GCC,
44 -fsanitize=bounds.
47 def_bool $(cc-option,-fsanitize=array-bounds)
49 Under Clang, the -fsanitize=bounds option is actually composed
50 of two more specific options, -fsanitize=array-bounds and
[all …]
/linux/Documentation/devicetree/bindings/pci/
H A Dti,j721e-pci-ep.yaml1 # 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/drivers/net/wireless/ti/wl18xx/
H A Dwl18xx.h1 /* 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/kernel/bpf/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux Socket Filter - Kernel level socket filtering
8 * Copyright (c) 2011 - 2014 PLUMgrid, http://plumgrid.com
16 * Andi Kleen - Fix a few bad bugs and races.
17 * Kris Katterjohn - Added many additional checks in bpf_check_classic()
61 #define DST regs[insn->dst_reg]
62 #define SRC regs[insn->src_reg]
67 #define OFF insn->off
68 #define IMM insn->imm
82 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper()
[all …]
/linux/drivers/pci/
H A Dp2pdma.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2016-2018, Logan Gunthorpe
6 * Copyright (c) 2016-2017, Microsemi Corporation
11 #define pr_fmt(fmt) "pci-p2pdma: " fmt
13 #include <linux/dma-map-ops.h>
14 #include <linux/pci-p2pdma.h>
19 #include <linux/percpu-refcount.h>
28 struct p2pdma_provider mem[PCI_STD_NUM_BARS]; member
33 struct p2pdma_provider *mem; member
49 p2pdma = rcu_dereference(pdev->p2pdma); in size_show()
[all …]
/linux/tools/power/pm-graph/
H A DREADME8 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 …]

12345678910>>...16