Home
last modified time | relevance | path

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

12345678910>>...42

/linux/block/partitions/
H A 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 …]
H A 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/lib/
H A 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/arch/arm64/boot/dts/freescale/
H A 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 …]
H A 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/arch/mips/pci/
H A 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/arch/sh/mm/
H A 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/fs/btrfs/
H A 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/drivers/nvdimm/
H A 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 …]
H A 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/drivers/virt/nitro_enclaves/
H A 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/virt/kvm/
H A 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 - slo in __kvm_gmem_prepare_folio()
56 kvm_gmem_prepare_folio(struct kvm * kvm,struct kvm_memory_slot * slot,gfn_t gfn,struct folio * folio) kvm_gmem_prepare_folio() argument
109 struct kvm_memory_slot *slot; kvm_gmem_invalidate_begin() local
252 struct kvm_memory_slot *slot; kvm_gmem_release() local
294 kvm_gmem_get_file(struct kvm_memory_slot * slot) kvm_gmem_get_file() argument
395 __kvm_gmem_create(struct kvm * kvm,loff_t size,u64 flags) __kvm_gmem_create() argument
452 loff_t size = args->size; kvm_gmem_create() local
465 kvm_gmem_bind(struct kvm * kvm,struct kvm_memory_slot * slot,unsigned int fd,loff_t offset) kvm_gmem_bind() argument
468 loff_t size = slot->npages << PAGE_SHIFT; kvm_gmem_bind() local
527 kvm_gmem_unbind(struct kvm_memory_slot * slot) kvm_gmem_unbind() argument
555 __kvm_gmem_get_pfn(struct file * file,struct kvm_memory_slot * slot,gfn_t gfn,kvm_pfn_t * pfn,bool * is_prepared,int * max_order) __kvm_gmem_get_pfn() argument
592 kvm_gmem_get_pfn(struct kvm * kvm,struct kvm_memory_slot * slot,gfn_t gfn,kvm_pfn_t * pfn,int * max_order) kvm_gmem_get_pfn() argument
627 struct kvm_memory_slot *slot; kvm_gmem_populate() local
[all...]
H A Ddirty_ring.c1 // SPDX-License-Identifier: GPL-2.0-only
26 lockdep_assert_held(&kvm->slots_lock); in kvm_use_dirty_bitmap()
28 return !kvm->dirty_ring_size || kvm->dirty_ring_with_bitmap; in kvm_use_dirty_bitmap()
40 return READ_ONCE(ring->dirty_index) - READ_ONCE(ring->reset_index); in kvm_dirty_ring_used()
45 return kvm_dirty_ring_used(ring) >= ring->soft_limit; in kvm_dirty_ring_soft_full()
50 return kvm_dirty_ring_used(ring) >= ring->size; in kvm_dirty_ring_full()
53 static void kvm_reset_dirty_gfn(struct kvm *kvm, u32 slot, u64 offset, u64 mask) in kvm_reset_dirty_gfn() argument
61 as_id = slot >> 16; in kvm_reset_dirty_gfn()
62 id = (u16)slot; in kvm_reset_dirty_gfn()
69 if (!memslot || (offset + __fls(mask)) >= memslot->npages) in kvm_reset_dirty_gfn()
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A 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/drivers/media/dvb-core/
H A 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/arch/arm/boot/dts/intel/ixp/
H A 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 …]
H A Dintel-ixp43x-gateworks-gw2358.dts1 // SPDX-License-Identifier: ISC
3 * Device Tree file for Gateworks IXP43x-based Cambria GW2358
6 /dts-v1/;
8 #include "intel-ixp43x.dtsi"
13 #address-cells = <1>;
14 #size-cells = <1>;
24 stdout-path = "uart0:115200n8";
32 compatible = "gpio-leds";
33 led-user {
36 default-state = "on";
[all …]
/linux/fs/netfs/
H A Drolling_buffer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 * netfs_folioq_alloc - Allocate a folio_queue struct
34 fq->debug_id = atomic_inc_return(&debug_ids); in netfs_folioq_alloc()
42 * netfs_folioq_free - Free a folio_queue struct
69 return -ENOMEM; in rolling_buffer_init()
71 roll->head = fq; in rolling_buffer_init()
72 roll->tail = fq; in rolling_buffer_init()
73 iov_iter_folio_queue(&roll->iter, direction, fq, 0, 0, 0); in rolling_buffer_init()
82 struct folio_queue *fq, *head = roll->head; in rolling_buffer_make_space()
87 fq = netfs_folioq_alloc(head->rreq_id, GFP_NOFS, netfs_trace_folioq_make_space); in rolling_buffer_make_space()
[all …]
/linux/arch/powerpc/mm/book3s64/
H A 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 …]
/linux/arch/alpha/kernel/
H A Dsys_ruffian.c1 // SPDX-License-Identifier: GPL-2.0
93 /* This only causes re-entry to ARCSBIOS */ in ruffian_kill_arch()
105 * 21052 13 - - - -
106 * SIO 14 23 - - -
107 * 21143 15 44 - - -
108 * Slot 0 17 43 42 41 40
112 * Slot 0 8 (18) 19 18 17 16
113 * Slot 1 9 (19) 31 30 29 28
114 * Slot 2 10 (20) 27 26 25 24
115 * Slot 3 11 (21) 39 38 37 36
[all …]
/linux/drivers/gpu/drm/qxl/
H A Dqxl_kms.c26 #include <linux/io-mapping.h>
38 struct qxl_rom *rom = qdev->rom; in qxl_check_device()
40 if (rom->magic != 0x4f525851) { in qxl_check_device()
41 DRM_ERROR("bad rom signature %x\n", rom->magic); in qxl_check_device()
45 DRM_INFO("Device Version %d.%d\n", rom->id, rom->update_id); in qxl_check_device()
46 DRM_INFO("Compression level %d log level %d\n", rom->compression_level, in qxl_check_device()
47 rom->log_level); in qxl_check_device()
49 rom->num_io_pages, rom->pages_offset); in qxl_check_device()
51 rom->surface0_area_size, rom->draw_area_offset); in qxl_check_device()
53 qdev->vram_size = rom->surface0_area_size; in qxl_check_device()
[all …]
/linux/arch/arm/boot/dts/arm/
H A Dintegratorap.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
13 compatible = "arm,integrator-ap";
16 #address-cells = <1>;
17 #size-cells = <0>;
27 /* compatible = "arm,arm926ej-s"; */
30 * The documentation in ARM DUI 0138E page 3-12 states
32 * but painful trial-and-error has proved to me that it
[all …]
/linux/drivers/md/dm-vdo/indexer/
H A Dopen-chapter.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include "open-chapter.h"
11 #include "memory-alloc.h"
16 #include "hash-utils.h"
24 * records is 1-based so that record number 0 can be used to indicate an unused hash slot.
49 #define OPEN_CHAPTER_MAGIC_LENGTH (sizeof(OPEN_CHAPTER_MAGIC) - 1)
50 #define OPEN_CHAPTER_VERSION_LENGTH (sizeof(OPEN_CHAPTER_VERSION) - 1)
55 return sizeof(struct uds_volume_record) * (1 + open_chapter->capacity); in records_size()
68 size_t capacity = geometry->records_per_chapter / zone_count; in uds_make_open_chapter()
77 open_chapter->slot_count = slot_count; in uds_make_open_chapter()
[all …]
/linux/drivers/usb/early/
H A Dehci-dbgp.c1 // SPDX-License-Identifier: GPL-2.0
28 #include <asm/pci-direct.h>
67 u32 slot; member
82 dbgp_printk(" Debug control: %08x", readl(&ehci_debug->control)); in dbgp_ehci_status()
83 dbgp_printk(" ehci cmd : %08x", readl(&ehci_regs->command)); in dbgp_ehci_status()
85 readl(&ehci_regs->configured_flag)); in dbgp_ehci_status()
86 dbgp_printk(" ehci status : %08x", readl(&ehci_regs->status)); in dbgp_ehci_status()
88 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status()
167 ret = readl_poll_timeout_atomic(&ehci_debug->control, ctrl, in dbgp_wait_until_complete()
170 return -DBGP_TIMEOUT; in dbgp_wait_until_complete()
[all …]
/linux/Documentation/devicetree/bindings/pci/
H A Dv3,v360epc-pci.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/pci/v3,v360epc-pci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
16 - $ref: /schemas/pci/pci-host-bridge.yaml#
21 - const: arm,integrator-ap-pci
22 - const: v3,v360epc-pci
26 - description: V3 host bridge controller
27 - description: Configuration space
[all …]

12345678910>>...42