| /linux/block/partitions/ |
| H A D | acorn.c | 1 // 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 D | msdos.c | 1 // 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 D | objpool.c | 1 // 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/drivers/pci/hotplug/ |
| H A D | acpiphp_ibm.c | 1 // 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/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-lx2162a-qds.dts | 1 // 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 …]
|
| H A D | fsl-lx2160a-qds.dts | 1 // 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 …]
|
| /linux/arch/sh/mm/ |
| H A D | ioremap_fixed.c | 1 // 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/arch/mips/pci/ |
| H A D | pci-xtalk-bridge.c | 1 // 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/fs/btrfs/ |
| H A D | tree-checker.c | 1 // 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/virt/nitro_enclaves/ |
| H A D | ne_pci_dev.h | 1 /* 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/drivers/nvdimm/ |
| H A D | label.c | 1 // 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 D | label.h | 1 /* 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/virt/kvm/ |
| H A D | guest_memfd.c | 1 // 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 …]
|
| H A D | dirty_ring.c | 1 // 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 58 as_id = slot >> 16; in kvm_reset_dirty_gfn() 59 id = (u16)slot; in kvm_reset_dirty_gfn() 66 if (!memslot || (offset + __fls(mask)) >= memslot->npages) in kvm_reset_dirty_gfn() [all …]
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | mm.c | 1 // 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 D | dvb_ca_en50221.c | 1 // 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 D | intel-ixp4xx-reference-design.dtsi | 1 // 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 D | intel-ixp43x-gateworks-gw2358.dts | 1 // 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 D | rolling_buffer.c | 1 // 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/alpha/kernel/ |
| H A D | sys_ruffian.c | 1 // 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 D | qxl_kms.c | 26 #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 D | integratorap.dts | 1 // 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 D | open-chapter.c | 1 // 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/Documentation/devicetree/bindings/pci/ |
| H A D | v3,v360epc-pci.yaml | 1 # 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 …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | fsl,qmc-audio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/fsl,qmc-audio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 16 if only one QMC channel is used by the DAI or it is working in non-interleaved 20 - $ref: dai-common.yaml# 24 const: fsl,qmc-audio 26 '#address-cells': 28 '#size-cells': [all …]
|