/linux/include/uapi/linux/ |
H A D | libc-compat.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 20 * (a) Include libc-compat.h in the UAPI header. 21 * e.g. #include <linux/libc-compat.h> 24 * (b) In libc-compat.h add enough code to detect that the comflicting 28 * guard macros of the form __UAPI_DEF_FOO and set their values to 1, else 65 /* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ 72 #else /* _NET_IF_H */ 74 /* Linux headers included first, and we must define everything 82 /* Everything up to IFF_DYNAMIC, matches net/if.h until glibc 2.23 */ 108 #else [all …]
|
/linux/drivers/pmdomain/amlogic/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 tristate "Amlogic Meson Everything-Else Power Domains driver" 12 Say yes to expose Amlogic Meson Everything-Else Power Domains as
|
/linux/arch/x86/kernel/cpu/mtrr/ |
H A D | cyrix.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <asm/processor-cyrix.h> 7 #include <asm/processor-flags.h> 38 * Power of two, at least 4K on ARR0-ARR6, 256K on ARR7 in cyrix_get_arr() 42 *size = (reg < 7 ? 0x1UL : 0x40UL) << (shift - 1); in cyrix_get_arr() 43 else in cyrix_get_arr() 46 /* Bit 0 is Cache Enable on ARR7, Cache Disable on ARR0-ARR6 */ in cyrix_get_arr() 63 } else { in cyrix_get_arr() 83 * cyrix_get_free_region - get a free ARR. 88 * Returns: the index of the region on success, else -1 on error. [all …]
|
/linux/arch/mips/sibyte/sb1250/ |
H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 unsigned int irq = d->irq; in sb1250_set_affinity() 114 unsigned int irq = d->irq; in disable_sb1250_irq() 121 unsigned int irq = d->irq; in enable_sb1250_irq() 129 unsigned int irq = d->irq; in ack_sb1250_irq() 148 #else in ack_sb1250_irq() 162 * Pass 2, the LDT world may be edge-triggered, but in ack_sb1250_irq() 164 * level-sensitive, the EOI is required. in ack_sb1250_irq() 173 .name = "SB1250-IMR", 205 * PCI and LDT to one cpu and everything else to the other [all …]
|
/linux/Documentation/driver-api/ |
H A D | isa.rst | 27 now (for oldisa-only drivers) become:: 52 unsigned int id`` pair directly -- with the device creation completely 59 ALSA would want to keep the old non-load behaviour, it could stick all 61 everything was found to be present and accounted for. If it wanted the 64 do everything in .probe() as before. 70 values have been passed in) and .probe() for everything else. This is 85 if (dev->platform_data == isa_driver) { 86 if (!isa_driver->match || 87 isa_driver->match(dev, to_isa_dev(dev)->id)) 89 dev->platform_data = NULL; [all …]
|
/linux/arch/mips/sibyte/bcm1480/ |
H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 irq -= BCM1480_NR_IRQS_HALF; in bcm1480_mask_irq() 68 irq -= BCM1480_NR_IRQS_HALF; in bcm1480_unmask_irq() 80 unsigned int irq_dirty, irq = d->irq; in bcm1480_set_affinity() 97 irq_dirty -= BCM1480_NR_IRQS_HALF; in bcm1480_set_affinity() 127 unsigned int irq = d->irq; in disable_bcm1480_irq() 134 unsigned int irq = d->irq; in enable_bcm1480_irq() 142 unsigned int irq_dirty, irq = d->irq; in ack_bcm1480_irq() 154 irq_dirty -= BCM1480_NR_IRQS_HALF; in ack_bcm1480_irq() 171 #else in ack_bcm1480_irq() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | TODO.txt | 2 ----------------- 4 - For discrete memory manager, merge enough dg1 to be able to refactor it to 8 - Come up with a plan what to do with drm/scheduler and how to get there. 10 - Roll out dma_fence critical section annotations. 12 - There's a lot of complexity added past few years to make relocations faster. 15 1. Land a modern pre-bound uapi like VM_BIND 19 refcounts, caching, ... on everything. 23 - i915_sw_fence seems to be the main structure for the i915-gem dma_fence model. 24 How-to-dma_fence is core and drivers really shouldn't build their own world 25 here, treating everything else as a fixed platform. i915_sw_fence concepts [all …]
|
/linux/Documentation/devicetree/bindings/power/ |
H A D | amlogic,meson-ee-pwrc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Amlogic Meson Everything-Else Power Domains 11 - Neil Armstrong <neil.armstrong@linaro.org> 14 The Everything-Else Power Domains node should be the child of a syscon 17 - compatible: Should be the following: 18 "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon" 26 - amlogic,meson8-pwrc [all …]
|
/linux/drivers/net/ipa/ |
H A D | ipa_qmi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2018-2024 Linaro Ltd. 20 * both sides know when everything is ready to begin operating. The AP 49 * - Whenever the AP learns the modem has booted and its IPA QMI service 52 * - On the initial boot, the modem sets up the IPA microcontroller, and 54 * - When the modem is ready to receive an INIT_COMPLETE indication from 56 * - On the initial modem boot, everything is ready when: 57 * - AP has received a success response from its INIT_DRIVER request 58 * - AP has responded to a DRIVER_INIT_COMPLETE request [all …]
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_fw_startstop.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 22 /* Setup AXI-ACE config. Set everything to outer cache. */ in rogue_axi_ace_list_init() 43 pc_dma_addr = pvr_vm_get_page_table_root_addr(pvr_dev->kernel_vm_ctx); in rogue_bif_init() 89 * pvr_fw_start() - Start FW processor and boot firmware 105 else in pvr_fw_start() 117 /* Set Rogue in soft-reset. */ in pvr_fw_start() 122 /* Read soft-reset to fence previous write in order to clear the SOCIF pipeline. */ in pvr_fw_start() 137 /* Take everything out of reset but the FW processor. */ in pvr_fw_start() 151 pvr_dev->fw_dev.defs->wrapper_init(pvr_dev); in pvr_fw_start() 153 /* We must init the AXI-ACE interface before first BIF transaction. */ in pvr_fw_start() [all …]
|
/linux/sound/arm/ |
H A D | pxa2xx-ac97-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Based on sound/arm/pxa2xx-ac97.c and sound/soc/pxa/pxa2xx-ac97.c 22 #include <sound/pxa2xx-lib.h> 24 #include <linux/platform_data/asoc-pxa.h> 26 #include "pxa2xx-ac97-regs.h" 48 int val = -ENODEV; in pxa2xx_ac97_read() 52 return -ENODEV; in pxa2xx_ac97_read() 60 else in pxa2xx_ac97_read() 75 val = -ETIMEDOUT; in pxa2xx_ac97_read() 102 else in pxa2xx_ac97_write() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | custom_sec_handlers.c | 1 // SPDX-License-Identifier: GPL-2.0 25 opts->prog_flags |= BPF_F_SLEEPABLE; in custom_prepare_load_prog() 26 else if (cookie == COOKIE_ABC1) in custom_prepare_load_prog() 44 /* no auto-attach for SEC("xyz") and SEC("kprobe") */ in custom_attach_prog() 49 return -EINVAL; in custom_attach_prog() 114 /* fallback treats everything as BPF_PROG_TYPE_SYSCALL program to test in test_custom_sec_handlers() 133 ASSERT_EQ(bpf_program__type(skel->progs.abc1), BPF_PROG_TYPE_RAW_TRACEPOINT, "abc1_type"); in test_custom_sec_handlers() 134 ASSERT_FALSE(bpf_program__autoload(skel->progs.abc1), "abc1_autoload"); in test_custom_sec_handlers() 136 ASSERT_EQ(bpf_program__type(skel->progs.abc2), BPF_PROG_TYPE_RAW_TRACEPOINT, "abc2_type"); in test_custom_sec_handlers() 137 ASSERT_EQ(bpf_program__type(skel->progs.custom1), BPF_PROG_TYPE_TRACEPOINT, "custom1_type"); in test_custom_sec_handlers() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | kvm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2010-2011 Freescale Semiconductor, Inc. 23 #include <asm/ppc-opcode.h> 26 #define KVM_MAGIC_PAGE (-4096L) 81 #else in kvm_patch_ins_ll() 90 #else in kvm_patch_ins_ld() 104 #else in kvm_patch_ins_std() 136 if ((kvm_tmp_index + len) > (kvm_tmp_end - kvm_tmp)) { in kvm_alloc() 166 /* Find out where we are and put everything there */ in kvm_patch_ins_mtmsrd() 167 distance_start = (ulong)p - (ulong)inst; in kvm_patch_ins_mtmsrd() [all …]
|
/linux/Documentation/core-api/ |
H A D | index.rst | 12 massive grab-bag of kerneldoc info left over from the docbook days; it 19 kernel-api 22 printk-basics 23 printk-formats 24 printk-index 25 symbol-namespaces 26 asm-annotations 28 Data structures and low-level utilities 44 circular-buffers 46 generic-radix-tree [all …]
|
/linux/arch/mips/pci/ |
H A D | pci-sb1250.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 8 * BCM1250-specific PCI support 15 * To access configuration space, we use ioremap. In the 32-bit 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) 56 * HT's level-sensitive interrupts require EOI, which is generated 57 * through a 4MB memory-mapped region 63 * Read/write 32-bit values in config space. 77 return dev->irq; in pcibios_map_irq() 88 * In PCI Device Mode, hide everything on bus 0 except the LDT host [all …]
|
H A D | pci-bcm1480.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 8 * BCM1x80/1x55-specific PCI support 15 * To access configuration space, we use ioremap. In the 32-bit 20 * XXX: AT THIS TIME, ONLY the NATIVE PCI-X INTERFACE IS SUPPORTED. 41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) 53 * Read/write 32-bit values in config space. 68 return -1; in pcibios_map_irq() 70 return K_BCM1480_INT_PCI_INTA - 1 + pin; in pcibios_map_irq() 81 * In PCI Device Mode, hide everything on bus 0 except the LDT host [all …]
|
/linux/drivers/usb/storage/ |
H A D | karma.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * (c) 2006 Keith Bennett <keith@mcs.st-and.ac.uk> 21 #define DRV_NAME "ums-karma" 24 MODULE_AUTHOR("Bob Copeland <me@bobcopeland.com>, Keith Bennett <keith@mcs.st-and.ac.uk>"); 89 * with a 512-byte packet with the high four bits set and everything 90 * else null. Then we send 'RIOP\x80' followed by a zero and the 99 struct karma_data *data = (struct karma_data *) us->extra; in rio_karma_send_command() 102 memset(us->iobuf, 0, RIO_SEND_LEN); in rio_karma_send_command() 103 memcpy(us->iobuf, RIO_PREFIX, RIO_PREFIX_LEN); in rio_karma_send_command() 104 us->iobuf[5] = cmd; in rio_karma_send_command() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_preempt_fence.c | 1 // SPDX-License-Identifier: MIT 18 struct xe_exec_queue *q = pfence->q; in preempt_fence_work_func() 20 if (pfence->error) { in preempt_fence_work_func() 21 dma_fence_set_error(&pfence->base, pfence->error); in preempt_fence_work_func() 22 } else if (!q->ops->reset_status(q)) { in preempt_fence_work_func() 23 int err = q->ops->suspend_wait(q); in preempt_fence_work_func() 26 dma_fence_set_error(&pfence->base, err); in preempt_fence_work_func() 27 } else { in preempt_fence_work_func() 28 dma_fence_set_error(&pfence->base, -ENOENT); in preempt_fence_work_func() 31 dma_fence_signal(&pfence->base); in preempt_fence_work_func() [all …]
|
/linux/arch/arm/mach-sa1100/ |
H A D | jornada720_ssp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch/arm/mac-sa1100/jornada720_ssp.c 28 * jornada_ssp_reverse - reverses input byte 32 * returns : 01110111 -> 11101110 49 * jornada_ssp_byte - waits for ready ssp bus and sends byte 56 * : %-ETIMEDOUT on timeout 64 if (!--timeout) { in jornada_ssp_byte() 66 return -ETIMEDOUT; in jornada_ssp_byte() 81 * jornada_ssp_inout - decide if input is command or trading byte 85 * : %-ETIMEDOUT on timeout failure [all …]
|
/linux/arch/powerpc/include/asm/nohash/32/ |
H A D | pgtable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 #include <asm-generic/pgtable-nopmd.h> 10 #include <asm/mmu.h> /* For sub-arch specific PPC_PIN_SIZE */ 17 #define PGD_INDEX_SIZE (32 - PGDIR_SHIFT) 28 #define PMD_MASKED_BITS (PTE_TABLE_SIZE - 1) 35 * The normal case is that PTEs are 32-bits and we have a 1-page 36 * 1024-entry pgdir pointing to 1-page 1024-entry PTE pages. -- paulus 38 * For any >32-bit physical address platform, we can use the following 41 * level has 2048 entries and the second level has 512 64-bit PTE entries. 42 * -Matt [all …]
|
/linux/arch/powerpc/sysdev/ |
H A D | cpm2_pic.c | 9 * 1999-2001 (c) Dan Malek <dan@embeddedalley.com> 19 * There are two 32-bit registers (high/low) for up to 64 51 static unsigned long ppc_cached_irq_mask[2]; /* 2 32-bit registers */ 86 out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]); in cpm2_mask_irq() 98 out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]); in cpm2_unmask_irq() 109 out_be32(&cpm2_intctl->ic_sipnrh + word, 1 << bit); in cpm2_ack() 121 out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]); in cpm2_end_irq() 146 } else { in cpm2_set_irq_type() 157 else in cpm2_set_irq_type() 164 edibit = (14 - (src - CPM2_IRQ_EXT1)); in cpm2_set_irq_type() [all …]
|
/linux/Documentation/devicetree/bindings/dma/ |
H A D | dma-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/dma/dma-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinod Koul <vkoul@kernel.org> 13 - $ref: dma-common.yaml# 15 # Everything else is described in the common file 18 pattern: "^dma-controller(@.*)?$"
|
/linux/arch/riscv/include/asm/ |
H A D | extable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * with the main instruction path. This means when everything is well, 27 (a)->fixup = (b)->fixup + (delta); \ 28 (b)->fixup = (tmp).fixup - (delta); \ 29 (a)->type = (b)->type; \ 30 (b)->type = (tmp).type; \ 31 (a)->data = (b)->data; \ 32 (b)->data = (tmp).data; \ 37 #else 43 #else
|
/linux/tools/perf/util/ |
H A D | smt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 else in smt_on() 27 /* If not everything running on a core is being recorded then we can't use core_wide. */ in core_wide()
|
/linux/arch/alpha/include/asm/ |
H A D | tlbflush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 if (vma->vm_flags & VM_EXEC) in ev5_flush_tlb_current_page() 34 else in ev5_flush_tlb_current_page() 51 flush_tlb_current(current->active_mm); in flush_tlb() 54 /* Flush someone else's user mapping. */ 58 unsigned long *mmc = &mm->context[smp_processor_id()]; in flush_tlb_other() 65 /* Flush everything (kernel mapping may also have changed 76 if (mm == current->active_mm) in flush_tlb_mm() 78 else in flush_tlb_mm() 82 /* Page-granular tlb flush. */ [all …]
|