Home
last modified time | relevance | path

Searched +full:slot +full:- +full:size (Results 1 – 25 of 1054) sorted by relevance

12345678910>>...43

/linux-6.12.1/mm/
Dearly_ioremap.c1 // SPDX-License-Identifier: GPL-2.0
36 unsigned long size, in early_memremap_pgprot_adjust() argument
77 slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i); in early_ioremap_setup()
100 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
106 int i, slot; in __early_ioremap() local
110 slot = -1; in __early_ioremap()
113 slot = i; in __early_ioremap()
118 if (WARN(slot < 0, "%s(%pa, %08lx) not found slot\n", in __early_ioremap()
119 __func__, &phys_addr, size)) in __early_ioremap()
122 /* Don't allow wraparound or zero size */ in __early_ioremap()
[all …]
/linux-6.12.1/block/partitions/
Dacorn.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 1996-2000 Russell King.
26 unsigned long first_sector, int slot) in adfs_partition() argument
36 if (dr->disc_size == 0 && dr->disc_size_high == 0) in adfs_partition()
39 nr_sects = (le32_to_cpu(dr->disc_size_high) << 23) | in adfs_partition()
40 (le32_to_cpu(dr->disc_size) >> 9); in adfs_partition()
43 strlcat(state->pp_buf, " [", PAGE_SIZE); in adfs_partition()
44 strlcat(state->pp_buf, name, PAGE_SIZE); in adfs_partition()
45 strlcat(state->pp_buf, "]", PAGE_SIZE); in adfs_partition()
47 put_partition(state, slot, first_sector, nr_sects); in adfs_partition()
[all …]
Dcmdline.c1 // SPDX-License-Identifier: GPL-2.0
14 * For further information, see "Documentation/block/cmdline-partition.rst"
30 sector_t size; member
51 return -ENOMEM; in parse_subpart()
53 if (*partdef == '-') { in parse_subpart()
54 new_subpart->size = (sector_t)(~0ULL); in parse_subpart()
57 new_subpart->size = (sector_t)memparse(partdef, &partdef); in parse_subpart()
58 if (new_subpart->size < (sector_t)PAGE_SIZE) { in parse_subpart()
59 pr_warn("cmdline partition size is invalid."); in parse_subpart()
60 ret = -EINVAL; in parse_subpart()
[all …]
Dmsdos.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 1991-1998 Linus Torvalds
9 * in the early extended-partition checks and added DM partitions
14 * /dev/hda *must* have a "DOS" type 0x51 partition in the first slot (hda1).
16 * More flexible handling of extended partitions - aeb, 950831
20 * Re-organised Feb 1998 Russell King
43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects()
48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect()
53 return (p->sys_ind == DOS_EXTENDED_PARTITION || in is_extended_partition()
54 p->sys_ind == WIN98_EXTENDED_PARTITION || in is_extended_partition()
[all …]
/linux-6.12.1/lib/
Dobjpool.c1 // SPDX-License-Identifier: GPL-2.0
12 * objpool: ring-array based lockless MPMC/FIFO queues
20 struct objpool_slot *slot, in objpool_init_percpu_slot() argument
24 void *obj = (void *)&slot->entries[pool->capacity]; in objpool_init_percpu_slot()
28 slot->mask = pool->capacity - 1; in objpool_init_percpu_slot()
36 slot->entries[slot->tail & slot->mask] = obj; in objpool_init_percpu_slot()
37 obj = obj + pool->obj_size; in objpool_init_percpu_slot()
38 slot->tail++; in objpool_init_percpu_slot()
39 slot->last = slot->tail; in objpool_init_percpu_slot()
40 pool->nr_objs++; in objpool_init_percpu_slot()
[all …]
/linux-6.12.1/drivers/pci/hotplug/
Dacpiphp_ibm.c1 // SPDX-License-Identifier: GPL-2.0+
40 /* these are the names for the IBM ACPI pseudo-device */
44 #define hpslot_to_sun(A) (to_slot(A)->sun)
46 /* union apci_descriptor - allows access to the
67 } slot; member
74 /* struct notification - keeps info about the device
82 static int ibm_set_attention_status(struct hotplug_slot *slot, u8 status);
83 static int ibm_get_attention_status(struct hotplug_slot *slot, u8 *status);
88 char *buffer, loff_t pos, size_t size);
112 * ibm_slot_from_id - workaround for bad ibm hardware
[all …]
/linux-6.12.1/arch/arm64/boot/dts/freescale/
Dfsl-lx2160a-qds.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
9 #include "fsl-lx2160a.dtsi"
13 compatible = "fsl,lx2160a-qds", "fsl,lx2160a";
23 stdout-path = "serial0:115200n8";
26 sb_3v3: regulator-sb3v3 {
27 compatible = "regulator-fixed";
28 regulator-name = "MC34717-3.3VSB";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
[all …]
Dfsl-lx2162a-qds.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
9 #include "fsl-lx2160a.dtsi"
13 compatible = "fsl,lx2162a-qds", "fsl,lx2160a";
23 stdout-path = "serial0:115200n8";
26 sb_3v3: regulator-sb3v3 {
27 compatible = "regulator-fixed";
28 regulator-name = "LTM4619-3.3VSB";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
[all …]
/linux-6.12.1/arch/sh/mm/
Dioremap_fixed.c1 // SPDX-License-Identifier: GPL-2.0
3 * Re-map IO memory to kernel address space so that we can access it.
30 unsigned long size; member
43 map->fixmap_addr = __fix_to_virt(FIX_IOREMAP_BEGIN + i); in ioremap_fixed_init()
48 ioremap_fixed(phys_addr_t phys_addr, unsigned long size, pgprot_t prot) in ioremap_fixed() argument
54 int i, slot; in ioremap_fixed() local
57 * Mappings have to be page-aligned in ioremap_fixed()
61 size = PAGE_ALIGN(phys_addr + size) - phys_addr; in ioremap_fixed()
63 slot = -1; in ioremap_fixed()
66 if (!map->addr) { in ioremap_fixed()
[all …]
/linux-6.12.1/arch/mips/pci/
Dpci-xtalk-bridge.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 1999, 2000, 04 Ralf Baechle (ralf@linux-mips.org)
11 #include <linux/dma-direct.h>
13 #include <linux/platform_data/xtalk-bridge.h>
14 #include <linux/nvmem-consumer.h>
27 * Common phys<->dma mapping for platforms using pci xtalk bridge
32 struct bridge_controller *bc = BRIDGE_CONTROLLER(pdev->bus); in phys_to_dma()
34 return bc->baddr + paddr; in phys_to_dma()
46 static int ioc3_cfg_rd(void *addr, int where, int size, u32 *value, u32 sid) in ioc3_cfg_rd() argument
68 mask = 0xffffffffU >> ((4 - size) << 3); in ioc3_cfg_rd()
[all …]
/linux-6.12.1/include/linux/
Dfolio_queue.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
9 * Documentation/core-api/folio_queue.rst
22 * iterator. The possibility exists of inserting non-folio elements into the
34 unsigned long marks; /* 1-bit mark per folio */
35 unsigned long marks2; /* Second 1-bit mark per folio */
36 unsigned long marks3; /* Third 1-bit mark per folio */
43 * folioq_init - Initialise a folio queue segment
51 folio_batch_init(&folioq->vec); in folioq_init()
52 folioq->next = NULL; in folioq_init()
53 folioq->prev = NULL; in folioq_init()
[all …]
/linux-6.12.1/fs/btrfs/
Dtree-checker.c1 // SPDX-License-Identifier: GPL-2.0
20 #include <linux/error-injection.h>
23 #include "tree-checker.h"
29 #include "file-item.h"
30 #include "inode-item.h"
31 #include "dir-item.h"
32 #include "extent-tree.h"
51 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt.
56 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
59 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err()
[all …]
/linux-6.12.1/drivers/virt/nitro_enclaves/
Dne_pci_dev.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
21 * PCI_DEVICE_ID_NE - Nitro Enclaves PCI device id.
25 * PCI_BAR_NE - Nitro Enclaves PCI device MMIO BAR.
34 * NE_ENABLE - (1 byte) Register to notify the device that the driver is using
42 * NE_VERSION - (2 bytes) Register to select the device run-time version
49 * NE_COMMAND - (4 bytes) Register to notify the device what command was
50 * requested (Write-Only).
55 * NE_EVTCNT - (4 bytes) Register to notify the driver that a reply or a device
56 * event is available (Read-Only):
[all …]
/linux-6.12.1/drivers/nvdimm/
Dlabel.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
11 #include "nd-core.h"
47 return ndd->nslabel_size; in sizeof_namespace_label()
59 return (ndd->nsarea.config_size - index_size * 2) / in __nvdimm_num_label_slots()
67 tmp_nslot = ndd->nsarea.config_size / sizeof_namespace_label(ndd); in nvdimm_num_label_slots()
75 u32 nslot, space, size; in sizeof_namespace_index() local
78 * Per UEFI 2.7, the minimum size of the Label Storage Area is large in sizeof_namespace_index()
80 * block size is 256 bytes. The label size is 128 for namespaces in sizeof_namespace_index()
84 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd); in sizeof_namespace_index()
[all …]
Dlabel.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
19 NSLABEL_FLAG_ROLABEL = 0x1, /* read-only label */
20 NSLABEL_FLAG_LOCAL = 0x2, /* DIMM-local namespace */
26 BTTINFO_FLAG_ERROR = 0x1, /* error state (read-only) */
34 * struct nd_namespace_index - label set superblock
37 * @labelsize: log2 size (v1 labels 128 bytes v2 labels 256 bytes)
40 * @mysize: size of this index struct
42 * @labeloff: offset of first label slot
49 * The size of free[] is rounded up so the total struct size is a
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dmm.c1 // SPDX-License-Identifier: GPL-2.0-only
35 static int __pkvm_create_mappings(unsigned long start, unsigned long size, in __pkvm_create_mappings() argument
41 err = kvm_pgtable_hyp_map(&pkvm_pgtable, start, size, phys, prot); in __pkvm_create_mappings()
47 static int __pkvm_alloc_private_va_range(unsigned long start, size_t size) in __pkvm_alloc_private_va_range() argument
54 return -EINVAL; in __pkvm_alloc_private_va_range()
56 /* The allocated size is always a multiple of PAGE_SIZE */ in __pkvm_alloc_private_va_range()
57 cur = start + PAGE_ALIGN(size); in __pkvm_alloc_private_va_range()
61 return -ENOMEM; in __pkvm_alloc_private_va_range()
69 * pkvm_alloc_private_va_range - Allocates a private VA range.
70 * @size: The size of the VA range to reserve.
[all …]
/linux-6.12.1/virt/kvm/
Dguest_memfd.c1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/backing-dev.h>
17 * folio_file_pfn - like folio_file_page, but return a pfn.
25 return folio_pfn(folio) + (index & (folio_nr_pages(folio) - 1)); in folio_file_pfn()
28 static int __kvm_gmem_prepare_folio(struct kvm *kvm, struct kvm_memory_slot *slot, in __kvm_gmem_prepare_folio() argument
33 gfn_t gfn = slot->base_gfn + index - slot->gmem.pgoff; in __kvm_gmem_prepare_folio()
52 * The folio must be locked and the gfn must be contained in @slot.
54 * leaking host data and the up-to-date flag is set.
56 static int kvm_gmem_prepare_folio(struct kvm *kvm, struct kvm_memory_slot *slot, in kvm_gmem_prepare_folio() argument
75 * huge page table entries for GPA->HPA mapping. in kvm_gmem_prepare_folio()
[all …]
/linux-6.12.1/Documentation/core-api/
Dswiotlb.rst1 .. SPDX-License-Identifier: GPL-2.0
19 These APIs use the device DMA attributes and kernel-wide settings to determine
30 ---------------
33 only provide 32-bit DMA addresses. By allocating bounce buffer memory below
40 directed to guest memory that is unencrypted. CoCo VMs set a kernel-wide option
54 IOMMU access control is per-granule, the untrusted device can gain access to
60 ------------------
63 specified size in bytes and returns the physical address of the buffer. The
85 ------------------------------
89 pre-allocated at boot time (but see Dynamic swiotlb below). Because swiotlb
[all …]
/linux-6.12.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptlf.h1 /* SPDX-License-Identifier: GPL-2.0-only
20 * CPT instruction queue size passed to HW is in units of 40*CPT_INST_S
28 #define OTX2_CPT_INST_QLEN_MSGS ((OTX2_CPT_SIZE_DIV40 - 1) * 40)
33 * size by 320 and give 320 entries less for SW/NIX RX as a workaround.
73 u32 size; member
87 int msix_offset; /* MSI-X interrupts offset */
91 u8 slot; /* Slot number of this LF */ member
123 int global_slot; /* Global slot across the blocks */
134 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_free_instruction_queues()
135 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
[all …]
/linux-6.12.1/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2016-2019 Bootlin
14 #include <media/videobuf2-dma-contig.h>
15 #include <media/videobuf2-v4l2.h>
38 writel(CSI_CPT_CTRL_VIDEO_START, csi->regs + CSI_CPT_CTRL_REG); in sun4i_csi_capture_start()
43 writel(0, csi->regs + CSI_CPT_CTRL_REG); in sun4i_csi_capture_stop()
53 unsigned int num_planes = csi->fmt.num_planes; in sun4i_csi_queue_setup()
58 return -EINVAL; in sun4i_csi_queue_setup()
61 if (sizes[i] < csi->fmt.plane_fmt[i].sizeimage) in sun4i_csi_queue_setup()
62 return -EINVAL; in sun4i_csi_queue_setup()
[all …]
/linux-6.12.1/arch/mips/sgi-ip27/
Dip27-memory.c6 * Copyright (C) 2000, 05 by Ralf Baechle (ralf@linux-mips.org)
32 #include "ip27-common.h"
34 #define SLOT_PFNSHIFT (SLOT_SHIFT - PAGE_SHIFT)
35 #define PFN_NASIDSHFT (NASID_SHFT - PAGE_SHIFT)
64 if (router_a->rou_rflag == 1) in router_recurse()
70 router_a->rou_rflag = 1; in router_recurse()
73 if (router_a->rou_port[port].port_nasid == INVALID_NASID) in router_recurse()
77 router_a->rou_port[port].port_nasid, in router_recurse()
78 router_a->rou_port[port].port_offset); in router_recurse()
80 if (brd->brd_type == KLTYPE_ROUTER) { in router_recurse()
[all …]
/linux-6.12.1/drivers/media/dvb-core/
Ddvb_ca_en50221.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * Copyright (C) 1999-2002 Ralph Metzler
58 #define CMDREG_SW 2 /* Size write */
59 #define CMDREG_SR 4 /* Size read */
79 /* Information on a CA slot */
84 /* mutex used for serializing access to one CI slot */
102 /* size of the buffer to use when talking to the CAM */
108 /* timer used during various states of the slot */
112 /* Private CA-interface information */
128 /* information on each slot */
[all …]
/linux-6.12.1/arch/arm/boot/dts/intel/ixp/
Dintel-ixp4xx-reference-design.dtsi1 // SPDX-License-Identifier: ISC
5 * set-up for IXDP425, IXCDP1100, KIXRP435 and IXDP465.
20 stdout-path = "uart0:115200n8";
28 compatible = "i2c-gpio";
29 sda-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
30 scl-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31 #address-cells = <1>;
32 #size-cells = <0>;
36 * Philips PCF8582C-2T/03 512byte I2C EEPROM
42 size = <512>;
[all …]
/linux-6.12.1/drivers/md/dm-vdo/
Dpacker.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include "memory-alloc.h"
14 #include "string-utils.h"
16 #include "admin-state.h"
19 #include "data-vio.h"
22 #include "io-submitter.h"
23 #include "physical-zone.h"
24 #include "status-codes.h"
36 * vdo_get_compressed_block_fragment() - Get a reference to a compressed fragment from a compressed
41 * @fragment_size [out] The size of the fragment.
[all …]
/linux-6.12.1/arch/powerpc/mm/book3s64/
Dhash_hugepage.c30 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local
63 * THPs are only supported on platforms that can do mixed page size in __hash_page_thp()
70 * Find the slot index details for this ea, using base page size. in __hash_page_thp()
81 * base page size. This is because demote_segment won't flush in __hash_page_thp()
88 * With THP, we also clear the slot information with in __hash_page_thp()
91 * don't find the slot valid when we fault with 4k in __hash_page_thp()
92 * base page size. in __hash_page_thp()
106 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
107 slot += hidx & _PTEIDX_GROUP_IX; in __hash_page_thp()
109 ret = mmu_hash_ops.hpte_updatepp(slot, rflags, vpn, in __hash_page_thp()
[all …]

12345678910>>...43