Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/mm/
Dearly_ioremap.c1 // SPDX-License-Identifier: GPL-2.0
35 unsigned long size, in early_memremap_pgprot_adjust() argument
84 slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i); in early_ioremap_setup()
106 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() argument
112 int i, slot; in __early_ioremap() local
116 slot = -1; in __early_ioremap()
119 slot = i; in __early_ioremap()
124 if (WARN(slot < 0, "%s(%pa, %08lx) not found slot\n", in __early_ioremap()
125 __func__, &phys_addr, size)) in __early_ioremap()
128 /* Don't allow wraparound or zero size */ in __early_ioremap()
[all …]
/kernel/linux/linux-5.10/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"
18 #include <linux/cmdline-parser.h>
25 static int add_part(int slot, struct cmdline_subpart *subpart, void *param) in add_part() argument
29 char tmp[sizeof(info->volname) + 4]; in add_part()
32 if (slot >= state->limit) in add_part()
35 put_partition(state, slot, subpart->from >> 9, in add_part()
36 subpart->size >> 9); in add_part()
38 info = &state->parts[slot].info; in add_part()
40 label_min = min_t(int, sizeof(info->volname) - 1, in add_part()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/fs/btrfs/
Dtree-checker.c1 // SPDX-License-Identifier: GPL-2.0
20 #include <linux/error-injection.h>
22 #include "tree-checker.h"
23 #include "disk-io.h"
45 * Append generic "corrupt leaf/node root=%llu block=%llu slot=%d: " to @fmt.
50 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() argument
53 const struct btrfs_fs_info *fs_info = eb->fs_info; in generic_err()
63 "corrupt %s: root=%llu block=%llu slot=%d, %pV", in generic_err()
65 btrfs_header_owner(eb), btrfs_header_bytenr(eb), slot, &vaf); in generic_err()
75 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() argument
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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>
26 * Common phys<->dma mapping for platforms using pci xtalk bridge
31 struct bridge_controller *bc = BRIDGE_CONTROLLER(pdev->bus); in phys_to_dma()
33 return bc->baddr + paddr; in phys_to_dma()
45 static int ioc3_cfg_rd(void *addr, int where, int size, u32 *value, u32 sid) in ioc3_cfg_rd() argument
67 mask = 0xffffffffU >> ((4 - size) << 3); in ioc3_cfg_rd()
[all …]
/kernel/linux/linux-6.6/fs/btrfs/
Dtree-checker.c1 // SPDX-License-Identifier: GPL-2.0
20 #include <linux/error-injection.h>
23 #include "tree-checker.h"
24 #include "disk-io.h"
30 #include "file-item.h"
31 #include "inode-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 …]
/kernel/linux/linux-5.10/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"
39 return ndd->nslabel_size; in sizeof_namespace_label()
51 return (ndd->nsarea.config_size - index_size * 2) / in __nvdimm_num_label_slots()
59 tmp_nslot = ndd->nsarea.config_size / sizeof_namespace_label(ndd); in nvdimm_num_label_slots()
67 u32 nslot, space, size; in sizeof_namespace_index() local
70 * Per UEFI 2.7, the minimum size of the Label Storage Area is large in sizeof_namespace_index()
72 * block size is 256 bytes. The label size is 128 for namespaces in sizeof_namespace_index()
76 space = ndd->nsarea.config_size - nslot * sizeof_namespace_label(ndd); in sizeof_namespace_index()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/arch/mips/sgi-ip27/
Dip27-memory.c6 * Copyright (C) 2000, 05 by Ralf Baechle (ralf@linux-mips.org)
31 #include "ip27-common.h"
33 #define SLOT_PFNSHIFT (SLOT_SHIFT - PAGE_SHIFT)
34 #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 …]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/
Dotx2_cptlf.h1 /* SPDX-License-Identifier: GPL-2.0-only
19 * CPT instruction queue size passed to HW is in units of 40*CPT_INST_S
27 #define OTX2_CPT_INST_QLEN_MSGS ((OTX2_CPT_SIZE_DIV40 - 1) * 40)
32 * size by 320 and give 320 entries less for SW/NIX RX as a workaround.
72 u32 size; member
86 int msix_offset; /* MSI-X interrupts offset */
90 u8 slot; /* Slot number of this LF */ member
127 for (i = 0; i < lfs->lfs_num; i++) { in otx2_cpt_free_instruction_queues()
128 iq = &lfs->lf[i].iqueue; in otx2_cpt_free_instruction_queues()
129 if (iq->real_vaddr) in otx2_cpt_free_instruction_queues()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]

12345678910>>...43