/linux/Documentation/devicetree/bindings/display/ |
H A D | solomon,ssd1307fb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Maxime Ripard <mripard@kernel.org> 11 - Javier Martinez Canillas <javierm@redhat.com> 17 - enum: 18 - solomon,ssd1305fb-i2c 19 - solomon,ssd1306fb-i2c 20 - solomon,ssd1307fb-i2c 21 - solomon,ssd1309fb-i2c [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | mremap_test.c | 1 // SPDX-License-Identifier: GPL-2.0 47 _1KB = 1ULL << 10, /* 1KB -> not page aligned */ 84 unsigned long mid = low + (high - low) / 2; in get_sqrt() 91 high = mid - 1; in get_sqrt() 97 * Returns false if the requested remap region overlaps with an 108 -1, 0); in is_remap_region_valid() 163 while (getline(&line, &len, maps_fp) != -1) { in is_range_mapped() 164 if (sscanf(line, "%lx- in is_range_mapped() 243 char *remap, *start; mremap_expand_merge() local 283 char *remap, *start; mremap_expand_merge_offset() local [all...] |
/linux/Documentation/admin-guide/mm/ |
H A D | numa_memory_policy.rst | 10 supported platforms with Non-Uniform Memory Access architectures since 2.4.?. 16 (``Documentation/admin-guide/cgroup-v1/cpusets.rst``) 19 programming interface that a NUMA-aware application can take advantage of. When 28 ------------------------ 41 not to overload the initial boot node with boot-time 45 this is an optional, per-task policy. When defined for a 56 executable image that has no awareness of memory policy. See the 61 In a multi-threaded task, task policies apply only to the thread 98 mapping-- i.e., at Copy-On-Write. 101 virtual address space--a.k.a. threads--independent of when [all …]
|
/linux/arch/sh/mm/ |
H A D | ioremap.c | 5 * (C) Copyright 2005 - 2010 Paul Mundt 7 * Re-map IO memory to kernel address space so that we can access it. 9 * 640k-1MB IO memory area on PC's 31 * On 32-bit SH, we traditionally have the whole physical address space mapped 33 * anything but place the address in the proper segment. This is true for P1 42 phys_addr_t last_addr = offset + size - 1; in __ioremap_29bit() 47 * In the P3 case or for addresses outside of the 29-bit space, in __ioremap_29bit() 96 * First try to remap through the PMB. in ioremap_prot() 97 * PMB entries are all pre-faulted. in ioremap_prot() 109 * Simple checks for non-translatable mappings. [all …]
|
/linux/drivers/acpi/ |
H A D | pci_irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pci_irq.c - ACPI PCI Interrupt Routing ($Revision: 11 $) 8 * (c) Copyright 2008 Hewlett-Packard Development Company, L.P. 35 return 'A' + pin - 1; in pin_name() 38 /* -------------------------------------------------------------------------- 40 -------------------------------------------------------------------------- */ 45 .ident = "Medion MD9580-F laptop", 71 DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), 81 unsigned int segment; member 89 #define PCI_INTX_PIN(c) (c - 'A' + 1) [all …]
|
/linux/Documentation/arch/powerpc/ |
H A D | pci_iov_resource_on_powernv.rst | 57 - For DMA we then provide an entire address space for each PE that can 63 - For MSIs, we have two windows in the address space (one at the top of 64 the 32-bit space and one much higher) which, via a combination of the 70 - Error messages just use the RTT. 81 - The M32 window: 87 32-bit PCIe accesses. We configure that window at boot from FW and 96 maps each segment to a PE#. That allows portions of the MMIO space 97 to be assigned to PEs on a segment granularity. For a 2GB window, 98 the segment granularity is 2GB/256 = 8MB. 101 SR-IOV). We basically use the trick of forcing the bridge MMIO windows [all …]
|
/linux/fs/proc/ |
H A D | vmcore.c | 1 // SPDX-License-Identifier: GPL-2.0-only 86 INIT_LIST_HEAD(&cb->next); in register_vmcore_cb() 88 list_add_tail(&cb->next, &vmcore_cb_list); in register_vmcore_cb() 95 if (!vmcore_open && cb->get_device_ram) in register_vmcore_cb() 104 list_del_rcu(&cb->next); in unregister_vmcore_cb() 125 if (unlikely(!cb->pfn_is_ram)) in pfn_is_ram() 127 ret = cb->pfn_is_ram(cb, pfn); in pfn_is_ram() 141 return -EBUSY; in open_vmcore() 152 vmcore_open--; in release_vmcore() 175 if (count > (PAGE_SIZE - offset)) in read_from_oldmem() [all …]
|
/linux/kernel/dma/ |
H A D | swiotlb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright (C) 2000, 2003 Hewlett-Packard Co 10 * David Mosberger-Tang <davidm@hpl.hp.com> 12 * 03/05/07 davidm Switch from PCI-DMA to generic device DMA API. 14 * unnecessary i-cache flushing. 27 #include <linux/dma-direct.h> 28 #include <linux/dma-map-ops.h> 33 #include <linux/iommu-helper.h> 55 #define SLABS_PER_PAGE (1 << (PAGE_SHIFT - IO_TLB_SHIFT)) 67 * struct io_tlb_slot - IO TLB slot descriptor [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_pt.c | 1 // SPDX-License-Identifier: MIT 6 #include <linux/dma-fence-array.h> 29 /** @children: Array of page-table child nodes */ 31 /** @staging: Array of page-table staging nodes */ 36 #define xe_pt_set_addr(__xe_pt, __addr) ((__xe_pt)->addr = (__addr)) 37 #define xe_pt_addr(__xe_pt) ((__xe_pt)->addr) 46 #define XE_PT_HIGHEST_LEVEL (ARRAY_SIZE(xe_normal_pt_shifts) - 1) 56 return container_of(pt_dir->staging[index], struct xe_pt, base); in xe_pt_entry_staging() 63 u16 pat_index = xe->pat.idx[XE_CACHE_WB]; in __xe_pt_empty_pte() 64 u8 id = tile->id; in __xe_pt_empty_pte() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | jazz.h | 6 * Copyright (C) 1995 - 1998 by Andreas Busse and Ralf Baechle 24 * 0xf0000000 - Rev1 25 * 0xf0000001 - Rev2 26 * 0xf0000002 - Rev3 31 * The segments of the seven segment LED are mapped 35 * --------- 39 * --------- 43 * --------- . (0) 146 * JAZZ timer registers and interrupt no. 191 * we remap the Jazz interrupts to the usual ISA style interrupt numbers. [all …]
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_edif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 if (cmd == e->cmd) in sc_to_str() 50 return e->str; in sc_to_str() 60 spin_lock_irqsave(&vha->e_dbell.db_lock, flags); in qla_edb_getnext() 62 /* db nodes are fifo - no qualifications done */ in qla_edb_getnext() 63 if (!list_empty(&vha->e_dbell.head)) { in qla_edb_getnext() 64 edbnode = list_first_entry(&vha->e_dbell.head, in qla_edb_getnext() 66 list_del_init(&edbnode->list); in qla_edb_getnext() 69 spin_unlock_irqrestore(&vha->e_dbell.db_lock, flags); in qla_edb_getnext() 76 list_del_init(&node->list); in qla_edb_node_free() [all …]
|
/linux/tools/testing/selftests/kvm/s390/ |
H A D | ucontrol_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 TEST_REQUIRE((data->effective & CAP_TO_MASK(CAP_SYS_ADMIN)) > 0); in require_ucontrol_admin() 131 self->kvm_fd = open_kvm_dev_path_or_exit(); in FIXTURE_SETUP() 132 self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL); in FIXTURE_SETUP() 133 ASSERT_GE(self->vm_fd, 0); in FIXTURE_SETUP() 135 kvm_device_attr_get(self->vm_fd, KVM_S390_VM_CPU_MODEL, in FIXTURE_SETUP() 139 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0); in FIXTURE_SETUP() 140 ASSERT_GE(self->vcpu_fd, 0); in FIXTURE_SETUP() 142 self->kvm_run_size = ioctl(self->kvm_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in FIXTURE_SETUP() 143 ASSERT_GE(self->kvm_run_size, sizeof(struct kvm_run)) in FIXTURE_SETUP() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-yapp43-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; 24 num-interpolated-steps = <8>; [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | head_book3s_32.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 9 * Low-level exception handlers and MMU support 14 * This file contains the low-level support and setup for the 30 #include <asm/asm-offsets.h> 34 #include <asm/feature-fixups.h> 40 /* see the comment for clear_bats() -- Cort */ \ 65 * -- Cort 77 * pointer (r1) points to just below the end of the half-meg region 78 * from 0x380000 - 0x400000, which is mapped in already. [all …]
|
/linux/drivers/iommu/intel/ |
H A D | dmar.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Intel Corporation 14 * These routines are used by both DMA-remapping and Interrupt-remapping 35 #include "../iommu-pages.h" 50 * 1) The hotplug framework guarentees that DMAR unit will be hot-added 52 * 2) The hotplug framework guarantees that DMAR unit will be hot-removed 76 if (drhd->include_all) in dmar_register_drhd_unit() 77 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 79 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 89 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_color.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 38 * - Input gamma LUT (de-normalized) 39 * - Input CSC (normalized) 40 * - Surface degamma LUT (normalized) 41 * - Surface CSC (normalized) 42 * - Surface regamma LUT (normalized) 43 * - Output CSC (normalized) 49 * Plane CTM -> Plane degamma -> Plane CTM -> Plane regamma -> Plane CTM 59 * support any CRTC props with correct blending with multiple planes - but we 70 * Plane DGM Bypass -> Plane CTM Bypass -> Plane RGM Bypass -> ... [all …]
|
/linux/drivers/video/fbdev/ |
H A D | ssd1307fb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 122 array->type = type; in ssd1307fb_alloc_array() 136 dev_err(&client->dev, "Couldn't send I2C command.\n"); in ssd1307fb_write_array() 150 return -ENOMEM; in ssd1307fb_write_cmd() 152 array->data[0] = cmd; in ssd1307fb_write_cmd() 163 u8 col_end = col_start + cols - 1; in ssd1307fb_set_col_range() 166 if (col_start == par->col_start && col_end == par->col_end) in ssd1307fb_set_col_range() 169 ret = ssd1307fb_write_cmd(par->client, SSD1307FB_SET_COL_RANGE); in ssd1307fb_set_col_range() 173 ret = ssd1307fb_write_cmd(par->client, col_start); in ssd1307fb_set_col_range() 177 ret = ssd1307fb_write_cmd(par->client, col_end); in ssd1307fb_set_col_range() [all …]
|
/linux/drivers/gpu/drm/solomon/ |
H A D | ssd130x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 245 return regmap_bulk_write(ssd130x->regmap, SSD13XX_DATA, values, count); in ssd130x_write_data() 267 ret = regmap_write(ssd130x->regmap, SSD13XX_COMMAND, value); in ssd130x_write_cmd() 270 } while (--count); in ssd130x_write_cmd() 282 u8 col_end = col_start + cols - 1; in ssd130x_set_col_range() 285 if (col_start == ssd130x->col_start && col_end == ssd130x->col_end) in ssd130x_set_col_range() 292 ssd130x->col_start = col_start; in ssd130x_set_col_range() 293 ssd130x->col_end = col_end; in ssd130x_set_col_range() 300 u8 page_end = page_start + pages - 1; in ssd130x_set_page_range() 303 if (page_start == ssd130x->page_start && page_end == ssd130x->page_end) in ssd130x_set_page_range() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/ |
H A D | dml2_pmo_dcn3.c | 1 // SPDX-License-Identifier: MIT 11 for (int i = 0; i < list_a_size - 1; i++) { in sort() 13 for (int j = i; j < list_a_size - 1; j++) { in sort() 25 for (unsigned int i = 0; i < config->display_config.num_planes; i++) { in get_max_reserved_time_on_all_planes_with_stream_index() 26 plane_descriptor = &config->display_config.plane_descriptors[i]; in get_max_reserved_time_on_all_planes_with_stream_index() 28 if (plane_descriptor->stream_index == stream_index) in get_max_reserved_time_on_all_planes_with_stream_index() 29 if (plane_descriptor->overrides.reserved_vblank_time_ns > max_reserved_time_ns) in get_max_reserved_time_on_all_planes_with_stream_index() 30 max_reserved_time_ns = plane_descriptor->overrides.reserved_vblank_time_ns; in get_max_reserved_time_on_all_planes_with_stream_index() 41 for (unsigned int i = 0; i < config->display_config.num_planes; i++) { in set_reserved_time_on_all_planes_with_stream_index() 42 plane_descriptor = &config->display_config.plane_descriptors[i]; in set_reserved_time_on_all_planes_with_stream_index() [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-v3-semi.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Based on the code from arch/arm/mach-integrator/pci_v3.c 8 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd 134 /* PCI BASE bits (PCI -> Local Bus) */ 141 /* PCI MAP bits (PCI -> Local bus) */ 150 /* LB_BASE0,1 bits (Local bus -> PCI) */ 172 /* LB_MAP0,1 bits (Local bus -> PCI) */ 185 /* LB_BASE2 bits (Local bus -> PCI IO) */ 192 /* LB_MAP2 bits (Local bus -> PCI IO) */ 229 /* ARM Integrator-specific extended control registers */ [all …]
|
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_glue.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * of PCI-SCSI IO processors. 6 * Copyright (C) 1999-2001 Gerard Roudier <groudier@free.fr> 7 * Copyright (c) 2003-2005 Matthew Wilcox <matthew@wil.cx> 10 * Copyright (C) 1998-2000 Gerard Roudier 13 * a port of the FreeBSD ncr driver to Linux-1.2.13. 17 * Stefan Esser <se@mi.Uni-Koeln.de> 25 *----------------------------------------------------------------------------- 65 MODULE_PARM_DESC(diff, "0 for no differential mode, 1 for BIOS, 2 for always, 3 for not GPIO3"); 122 #define SYM_SOFTC_PTR(cmd) sym_get_hcb(cmd->device->host) [all …]
|
/linux/drivers/platform/x86/ |
H A D | samsung-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009,2011 Greg Kroah-Hartman (gregkh@suse.de) 35 * We have 0 - 8 as valid brightness levels. The specs say that level 0 should 37 * userspace that the value is 0 - 7 and then just tell the hardware 1 - 8 74 * Brightness is 0 - 8, as described above. 82 * 0x00 - wireless is off 83 * 0x01 - wireless is on 85 * 0x02 - 3G is off 86 * 0x03 - 3G is on 97 * 0x80 or 0x00 - no action [all …]
|
/linux/arch/s390/kvm/ |
H A D | vsie.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #include "kvm-s390.h" 66 __u8 reserved[0x0700 - 0x0268]; /* 0x0268 */ 75 scb->ipa = 0x1000; in set_validity_icpt() 76 scb->ipb = ((__u32) reason_code) << 16; in set_validity_icpt() 77 scb->icptcode = ICPT_VALIDITY; in set_validity_icpt() 84 atomic_or(PROG_REQUEST, &vsie_page->scb_s.prog20); in prefix_unmapped() 91 if (vsie_page->scb_s.prog0c & PROG_IN_SIE) in prefix_unmapped_sync() 92 atomic_or(CPUSTAT_STOP_INT, &vsie_page->scb_s.cpuflags); in prefix_unmapped_sync() 93 while (vsie_page->scb_s.prog0c & PROG_IN_SIE) in prefix_unmapped_sync() [all …]
|
/linux/include/linux/ |
H A D | fs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/radix-tree.h> 33 #include <linux/percpu-rwsem.h> 168 /* File is stream-like */ 191 /* File is capable of returning -EAGAIN if I/O will block */ 202 * for a file. These are the possible values of (f->f_mode & 205 * FMODE_NONOTIFY - suppress all (incl. non-permission) events. 206 * FMODE_NONOTIFY_PERM - suppress permission (incl. pre-content) events. 207 * FMODE_NONOTIFY | FMODE_NONOTIFY_PERM - suppress only pre-content events. 226 * Attribute flags. These should be or-ed together to figure out what [all …]
|
/linux/fs/jfs/ |
H A D | jfs_txnmgr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) International Business Machines Corp., 2000-2005 4 * Portions Copyright (C) Christoph Hellwig, 2001-2002 17 * (no hashlist for mp -> tlock). 20 * tlock on in-memory inode: 21 * in-place tlock in the in-memory inode itself; 84 static int nTxBlock = -1; /* number of transaction blocks */ 89 static int nTxLock = -1; /* number of transaction locks */ 172 * --------------------------------- 207 TxAnchor.tlocksInUse--; in txLockFree() [all …]
|