/linux/net/netlabel/ |
H A D | netlabel_addrlist.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * NetLabel Network Address Lists 5 * This file contains network address list functions used to manage ordered 10 * Author: Paul Moore <paul@paul-moore.com> 14 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 32 * Address List Functions 36 * netlbl_af4list_search - Search for a matching IPv4 address entry 37 * @addr: IPv4 address 41 * Searches the IPv4 address list given by @head. If a matching address entry 52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() [all …]
|
H A D | netlabel_domainhash.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Author: Paul Moore <paul@paul-moore.com> 14 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 55 * netlbl_domhsh_free_entry - Frees a domain hash table entry 56 * @entry: the entry's RCU field 60 * function so that the memory allocated to a hash table entry can be released 64 static void netlbl_domhsh_free_entry(struct rcu_head *entry) in netlbl_domhsh_free_entry() argument 74 ptr = container_of(entry, struct netlbl_dom_map, rcu); in netlbl_domhsh_free_entry() 75 if (ptr->def.type == NETLBL_NLTYPE_ADDRSELECT) { in netlbl_domhsh_free_entry() 77 &ptr->def.addrsel->list4) { in netlbl_domhsh_free_entry() [all …]
|
H A D | netlabel_unlabeled.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Author: Paul Moore <paul@paul-moore.com> 13 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006 - 2008 54 * LSM. The hash table is used to lookup the network interface entry 55 * (struct netlbl_unlhsh_iface) and then the interface entry is used to 56 * lookup an IP address match from an ordered list. If a network interface 57 * match can not be found in the hash table then the default entry 58 * (netlbl_unlhsh_def) is used. The IP address entry list 126 .len = IFNAMSIZ - 1 }, 135 * netlbl_unlhsh_free_iface - Frees an interface entry from the hash table [all …]
|
/linux/arch/sh/mm/ |
H A D | tlbex_32.c | 5 * Copyright (C) 2003 - 2012 Paul Mundt 24 unsigned long address) in handle_tlbmiss() argument 31 pte_t entry; in handle_tlbmiss() local 36 * 29-bit mode, or due to PMB configuration in 32-bit mode. in handle_tlbmiss() 38 if (address >= P3SEG && address < P3_ADDR_MAX) { in handle_tlbmiss() 39 pgd = pgd_offset_k(address); in handle_tlbmiss() 41 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss() 44 pgd = pgd_offset(current->mm, address); in handle_tlbmiss() 47 p4d = p4d_offset(pgd, address); in handle_tlbmiss() 50 pud = pud_offset(p4d, address); in handle_tlbmiss() [all …]
|
/linux/mm/ |
H A D | page_vma_mapped.c | 1 // SPDX-License-Identifier: GPL-2.0 20 if (pvmw->flags & PVMW_SYNC) { in map_pte() 22 pvmw->pte = pte_offset_map_lock(pvmw->vma->vm_mm, pvmw->pmd, in map_pte() 23 pvmw->address, in map_pte() 46 swp_entry_t entry; map_pte() local 102 swp_entry_t entry; check_pte() local 113 swp_entry_t entry; check_pte() local 243 swp_entry_t entry; page_vma_mapped_walk() local [all...] |
/linux/drivers/platform/x86/intel/pmt/ |
H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <linux/io-64-nonatomic-lo-hi.h> 34 return !!(ivdev->quirks & VSEC_QUIRK_EARLY_HW); in intel_pmt_is_early_client_hw() 45 return -EFAULT; in pmt_memcpy64_fromio() 64 if (cb && cb->read_telem) in pmt_telem_read_mmio() 65 return cb->read_telem(pdev, guid, buf, count); in pmt_telem_read_mmio() 68 /* PUNIT on SPR only supports aligned 64-bit read */ in pmt_telem_read_mmio() 85 struct intel_pmt_entry *entry = container_of(attr, in intel_pmt_read() local 90 return -EINVAL; in intel_pmt_read() 92 if (off >= entry->size) in intel_pmt_read() [all …]
|
/linux/drivers/scsi/ |
H A D | qla1280.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 77 /* Command retry count (0-65535) */ 85 /* ISP request and response entry counts (37-65535) */ 95 /* NOTE: the sp->cmd will be NULL when this completion is 126 #define ISP_CFG1_F128 BIT_6 /* 128-byte FIFO threshold */ 127 #define ISP_CFG1_F64 BIT_4|BIT_5 /* 128-byte FIFO threshold */ 128 #define ISP_CFG1_F32 BIT_5 /* 128-byte FIFO threshold */ 129 #define ISP_CFG1_F16 BIT_4 /* 128-byte FIFO threshold */ 139 #define PCI_64BIT_SLOT BIT_14 /* PCI 64-bit slot indicator. */ 150 uint16_t flash_address; /* Flash BIOS address */ [all …]
|
/linux/arch/x86/boot/compressed/ |
H A D | idt_64.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 unsigned long address = (unsigned long)handler; in set_idt_entry() local 10 gate_desc entry; in set_idt_entry() local 12 memset(&entry, 0, sizeof(entry)); in set_idt_entry() 14 entry.offset_low = (u16)(address & 0xffff); in set_idt_entry() 15 entry.segment = __KERNEL_CS; in set_idt_entry() 16 entry.bits.type = GATE_TRAP; in set_idt_entry() 17 entry.bits.p = 1; in set_idt_entry() 18 entry.offset_middle = (u16)((address >> 16) & 0xffff); in set_idt_entry() 19 entry.offset_high = (u32)(address >> 32); in set_idt_entry() [all …]
|
/linux/Documentation/locking/ |
H A D | robust-futex-ABI.rst | 42 The pointer 'head' points to a structure in the threads address space 48 kernel, then it can actually have two such structures - one using 32 bit 58 to itself, 'head'. The last 'lock entry' points back to the 'head'. 61 address of the associated 'lock entry', plus or minus, of what will 62 be called the 'lock word', from that 'lock entry'. The 'lock word' 69 the address of the 'lock entry', during list insertion and removal, 73 Each 'lock entry' on the single linked list starting at 'head' consists 74 of just a single word, pointing to the next 'lock entry', or back to 76 entry', at an offset from the 'lock entry' specified by the 'offset' 83 mechanism to register the address of that 'lock word' with the kernel. [all …]
|
/linux/arch/s390/mm/ |
H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0 38 #include <asm/asm-extable.h> 39 #include <asm/asm-offsets.h> 47 #include "../kernel/entry.h" 66 * Find out which address space caused the exception. 70 union teid teid = { .val = regs->int_parm_long }; in get_fault_type() 78 gmap = (struct gmap *)get_lowcore()->gmap; in get_fault_type() 79 if (gmap && gmap->asce == regs->cr1) in get_fault_type() 88 /* Home space -> access via kernel ASCE */ in get_fault_type() 94 union teid teid = { .val = regs->int_parm_long }; in get_fault_address() [all …]
|
/linux/arch/arm/mm/ |
H A D | proc-arm946.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/arm946.S: utility functions for ARM946E-S 5 * Copyright (C) 2004-2006 Hyok S. Choi (hyok.choi@samsung.com) 7 * (Many of cache codes are from proc-arm926.S) 15 #include <asm/pgtable-hwdef.h> 17 #include "proc-macros.S" 20 * ARM946E-S is synthesizable to have 0KB to 1MB sized D-Cache, 49 bic r0, r0, #0x00001000 @ i-cache 50 bic r0, r0, #0x00000004 @ d-cache 57 * Params : r0 = address to jump to [all …]
|
H A D | proc-arm925.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * Copyright (C) 2002-2003 MontaVista Software, Inc. 10 * Update for Linux-2.6 and cache flush improvements 13 * hacked for non-paged-MM by Hyok S. Choi, 2004. 18 * CONFIG_CPU_ARM925_CPU_IDLE -> nohlt 20 * Some additional notes based on deciphering the TI TRM on OMAP-5910: 22 * NOTE1: The TI925T Configuration Register bit "D-cache clean and flush 23 * entry mode" must be 0 to flush the entries in both segments 24 * at once. This is the default value. See TRM 2-20 and 2-24 for 27 * NOTE2: Default is the "D-cache clean and flush entry mode". It looks [all …]
|
H A D | proc-arm926.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm926.S: MMU functions for ARM926EJ-S 5 * Copyright (C) 1999-2001 ARM Limited 7 * hacked for non-paged-MM by Hyok S. Choi, 2003. 12 * CONFIG_CPU_ARM926_CPU_IDLE -> nohlt 20 #include <asm/pgtable-hwdef.h> 23 #include "proc-macros.S" 27 * using the single invalidate entry instructions. Anything larger 121 * address space. 150 * specified address range. [all …]
|
/linux/net/appletalk/ |
H A D | aarp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * Jaume Grau - flush caches on AARP_PROBE 21 * Rob Newberry - Added proxy AARP and AARP proc fs, 23 * Arnaldo C. Melo - don't mangle rx packets 46 * struct aarp_entry - AARP entry 50 * @expires_at: Entry expiry time 51 * @target_addr: DDP Address 53 * @hwaddr: Physical i/f address of target/router 55 * @next: Next entry in chain 89 skb_queue_purge(&a->packet_queue); in __aarp_expire() [all …]
|
/linux/drivers/crypto/ |
H A D | n2_asm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * o3: address of queue handle return 16 ENTRY(sun4v_ncs_qconf) 25 * %o1: address of queue type return 26 * %o2: address of queue base address return 27 * %o3: address of queue num entries return 29 ENTRY(sun4v_ncs_qinfo) 43 * %o1: address of head offset return 45 ENTRY(sun4v_ncs_gethead) 55 * %o1: address of tail offset return [all …]
|
/linux/sound/isa/gus/ |
H A D | gus_mem_proc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 unsigned int address; member 19 static ssize_t snd_gf1_mem_proc_dump(struct snd_info_entry *entry, in snd_gf1_mem_proc_dump() argument 24 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_dump() 25 struct snd_gus_card *gus = priv->gus; in snd_gf1_mem_proc_dump() 28 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump() 34 static void snd_gf1_mem_proc_free(struct snd_info_entry *entry) in snd_gf1_mem_proc_free() argument 36 struct gus_proc_private *priv = entry->private_data; in snd_gf1_mem_proc_free() 49 struct snd_info_entry *entry; in snd_gf1_mem_proc_init() local 52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_pt_walk.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 * struct xe_ptw - base class for driver pagetable subclassing. 15 * Drivers could subclass this, and if it's a page-directory, typically 23 * struct xe_pt_walk - Embeddable struct for walk parameters 29 * @shifts: Array of page-table entry shifts used for the 31 * page-shift as the first entry. It's legal for this pointer to be 39 * to the address range and called only for entries that are 40 * shared with other address ranges. Such entries are referred to 47 * typedef xe_pt_entry_fn - gpu page-table-walk callback-function 51 * @addr: The virtual address. [all …]
|
/linux/include/soc/fsl/ |
H A D | dpaa2-fd.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * Copyright 2014-2016 Freescale Semiconductor Inc. 14 * DOC: DPAA2 FD - Frame Descriptor APIs for DPAA2 27 * struct dpaa2_fd - Struct describing FDs 29 * @addr: address in the FD 32 * @format_offset: format, offset, and short-length fields 35 * @flc: flow context address 99 * dpaa2_fd_get_addr() - get the addr field of frame descriptor 102 * Return the address in the frame descriptor. 106 return (dma_addr_t)le64_to_cpu(fd->simple.addr); in dpaa2_fd_get_addr() [all …]
|
/linux/arch/arc/kernel/ |
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Traps/Non-MMU Exception handling for ARC 5 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 8 * -user-space unaligned access emulation 19 #include <asm/entry.h> 25 void die(const char *str, struct pt_regs *regs, unsigned long address) in die() argument 27 show_kernel_fault_diag(str, regs, address); in die() 35 * -for user faults enqueues requested signal 36 * -for kernel, chk if due to copy_(to|from)_user, otherwise die() 45 tsk->thread.fault_address = (__force unsigned int)addr; in unhandled_exception() [all …]
|
/linux/drivers/net/dsa/microchip/ |
H A D | ksz9477_acl.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * - Matching Rules: These registers define the criteria for matching incoming 13 * - Action Rules: These registers define how the ACL should modify the packet's 18 * - Processing Rules: These registers control the overall behavior of the ACL, 23 * +----------------------+ 24 * +----------------------+ | (optional) | 27 * +----------------------+ +----------------------+ 31 * +----------------------+ 35 * +----------------------+ 38 * +----------------------+ [all …]
|
/linux/kernel/dma/ |
H A D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #define pr_fmt(fmt) "DMA-API: " fmt 12 #include <linux/dma-map-ops.h> 31 #define HASH_FN_MASK (HASH_SIZE - 1) 53 * struct dma_debug_entry - track a dma_map* or dma_alloc_coherent mapping 54 * @list: node on pre-allocated free_entries list 56 * @dev_addr: dma address 62 * @pfn: page frame of the start address 95 /* List of pre-allocated dma_debug_entry's */ 100 /* Global disable flag - will be set in case of an error */ [all …]
|
/linux/scripts/gdb/linux/ |
H A D | pgtable.py | 1 # SPDX-License-Identifier: GPL-2.0-only 44 return (bit_start, bit_end), data >> bit_start & ((1 << (1 + bit_end - bit_start)) - 1) 81 {'next entry physical address': <30} {hex(self.next_entry_physical_address)} 82 --- 89 def __init__(self, address, level): argument 91 memoryview(gdb.selected_inferior().read_memory(address, 8)), 132 self.address = address 140 next_level = self.page_hierarchy_level - 1 148 {'entry address': <30} {hex(self.address)} 149 {'page entry binary data': <30} {hex(self.page_entry_binary_data)} [all …]
|
/linux/arch/riscv/kernel/ |
H A D | kexec_relocate.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2019 FORTH-ICS/CARV 16 * s0: Pointer to the current entry 17 * s1: (const) Phys address to jump to after relocation 18 * s2: (const) Phys address of the FDT image 21 * s5: Pointer to the destination address for the relocation 22 * s6: (const) Physical address of the main loop 41 * deal with this we set stvec to the physical address at 50 * With C-extension, here we get 42 Bytes and the next 59 REG_L t0, 0(s0) /* t0 = *image->entry */ [all …]
|
/linux/drivers/acpi/apei/ |
H A D | apei-base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * apei-base.c - ACPI Platform Error Interface (APEI) supporting 33 #include "apei-internal.h" 50 ctx->ins_table = ins_table; in apei_exec_ctx_init() 51 ctx->instructions = instructions; in apei_exec_ctx_init() 52 ctx->action_table = action_table; in apei_exec_ctx_init() 53 ctx->entries = entries; in apei_exec_ctx_init() 57 int __apei_exec_read_register(struct acpi_whea_header *entry, u64 *val) in __apei_exec_read_register() argument 61 rc = apei_read(val, &entry->register_region); in __apei_exec_read_register() 64 *val >>= entry->register_region.bit_offset; in __apei_exec_read_register() [all …]
|
/linux/arch/arm64/include/asm/ |
H A D | kvm_pgtable.h | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #define KVM_PGTABLE_FIRST_LEVEL -1 18 * The largest supported block sizes for KVM (no 52-bit PA support): 19 * - 4K (level 1): 1GB 20 * - 16K (level 2): 32MB 21 * - 64K (level 2): 512MB 60 #define KVM_PHYS_INVALID (-1ULL) 99 * Used to indicate a pte for which a 'break-before-make' sequence is in 184 * struct kvm_pgtable_mm_ops - Memory management callbacks. 202 * @phys_to_virt: Convert a physical address into a virtual [all …]
|