| /kernel/linux/linux-5.10/fs/jfs/ |
| D | jfs_unicode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 4 * Portions Copyright (C) Christoph Hellwig, 2001-2002 14 wchar_t start; member 24 #define free_UCSname(COMP) kfree((COMP)->name) 31 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() 47 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le() 51 while (n--) /* Pad with nulls */ in UniStrncpy_le() 57 * UniStrncmp_le: Compare length limited string - native to little-endian 64 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le() [all …]
|
| /kernel/linux/linux-5.10/fs/cifs/ |
| D | cifs_unicode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 76 wchar_t start; member 120 __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat() 123 ucs1--; /* Return to the null */ in UniStrcat() 161 return (int) *ucs1 - (int) *ucs2; in UniStrcmp() 170 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() 215 ucs1--; /* point to null terminator of s1 */ in UniStrncat() 216 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat() 232 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp() 236 return (int) *ucs1 - (int) *ucs2; in UniStrncmp() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/radix-tree/ |
| D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/radix-tree.h> 15 void __gang_check(unsigned long middle, long down, long up, int chunk, int hop) in __gang_check() argument 22 for (idx = -down; idx < up; idx++) in __gang_check() 25 item_check_absent(&tree, middle - down - 1); in __gang_check() 26 for (idx = -down; idx < up; idx++) in __gang_check() 28 item_check_absent(&tree, middle + up); in __gang_check() 31 item_gang_check_present(&tree, middle - down, up + down, in __gang_check() 33 item_full_scan(&tree, middle - down, down + up, chunk); in __gang_check() 50 unsigned long start; in __big_gang_check() local [all …]
|
| /kernel/linux/linux-6.6/tools/testing/radix-tree/ |
| D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/radix-tree.h> 15 void __gang_check(unsigned long middle, long down, long up, int chunk, int hop) in __gang_check() argument 22 for (idx = -down; idx < up; idx++) in __gang_check() 25 item_check_absent(&tree, middle - down - 1); in __gang_check() 26 for (idx = -down; idx < up; idx++) in __gang_check() 28 item_check_absent(&tree, middle + up); in __gang_check() 31 item_gang_check_present(&tree, middle - down, up + down, in __gang_check() 33 item_full_scan(&tree, middle - down, down + up, chunk); in __gang_check() 50 unsigned long start; in __big_gang_check() local [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/mm/kasan/ |
| D | init_book3s_64.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * KASAN for 64-bit Book3S powerpc 5 * Copyright 2019-2022, Daniel Axtens, IBM Corporation. 10 * like the device-tree parser, so it uses this in conjunction with a hook in 24 static void __init kasan_init_phys_region(void *start, void *end) in kasan_init_phys_region() argument 29 if (start >= end) in kasan_init_phys_region() 32 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region() 35 va = memblock_alloc(k_end - k_start, PAGE_SIZE); in kasan_init_phys_region() 50 * This takes us up to where we start at c00e... in kasan_init() 55 phys_addr_t start, end; in kasan_init() local [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | gpio-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * S3C Platform - GPIO pin configuration 13 * changing the pull-{up,down} configurations. 27 /* forward declaration if gpio-core.h hasn't been included */ 41 * per-bank configuration information that other systems such as the 73 * s3c_gpio_cfgpin() - Change the GPIO function of a pin. 85 * If a bank of GPIOs all needs to be set to special-function 2, then 88 * for (gpio = start; gpio < end; gpio++) 98 * s3c_gpio_getcfg - Read the current function for a GPIO pin 109 * s3c_gpio_cfgpin_range() - Change the GPIO function for configuring pin range [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-s3c/ |
| D | gpio-cfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * S3C Platform - GPIO pin configuration 13 * changing the pull-{up,down} configurations. 27 /* forward declaration if gpio-core.h hasn't been included */ 41 * per-bank configuration information that other systems such as the 73 * s3c_gpio_cfgpin() - Change the GPIO function of a pin. 85 * If a bank of GPIOs all needs to be set to special-function 2, then 88 * for (gpio = start; gpio < end; gpio++) 98 * s3c_gpio_cfgpin_range() - Change the GPIO function for configuring pin range 99 * @start: The pin number to start at [all …]
|
| /kernel/linux/linux-6.6/fs/jfs/ |
| D | jfs_unicode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 4 * Portions Copyright (C) Christoph Hellwig, 2001-2002 17 #define free_UCSname(COMP) kfree((COMP)->name) 24 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() 40 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le() 44 while (n--) /* Pad with nulls */ in UniStrncpy_le() 50 * UniStrncmp_le: Compare length limited string - native to little-endian 57 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le() 61 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/tests/shell/ |
| D | daemon.sh | 3 # SPDX-License-Identifier: GPL-2.0 12 local up=$6 45 if [ "${up}" != "${line_up}" ]; then 46 echo "FAILED: wrong up" 60 local up=$8 107 if [ "${up}" != "${line_up}" ]; then 108 echo "FAILED: wrong up" 118 line=`perf daemon --config ${config} -x: | head -1` 123 trap - SIGINT SIGTERM 126 perf daemon stop --config ${config} [all …]
|
| /kernel/linux/linux-6.6/tools/perf/Documentation/ |
| D | perf-daemon.txt | 1 perf-daemon(1) 6 ---- 7 perf-daemon - Run record sessions on background 11 -------- 15 'perf daemon start' [<options>] 22 ----------- 31 1 916507 ... perf daemon start 32 …916507 916508 ... \_ perf record --control=fifo:control,ack -m 10M -e cycles --overwrite --switc… 33 …916507 916509 ... \_ perf record --control=fifo:control,ack -m 20M -e sched:* --overwrite --swit… 38 to produce data periodically, like with --switch-output configuration [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | u64_stats_sync.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Protect against 64-bit values tearing on 32-bit architectures. This is 11 * - Use a seqcount on 32-bit SMP, only disable preemption for 32-bit UP. 12 * - The whole thing is a no-op on 64-bit architectures. 34 * seqcounts are not used for UP kernels). 32-bit UP stat readers could read 35 * corrupted 64-bit values otherwise. 45 * u64_stats_update_begin(&stats->syncp); 46 * u64_stats_add(&stats->bytes64, len); // non atomic operation 47 * u64_stats_inc(&stats->packets64); // non atomic operation 48 * u64_stats_update_end(&stats->syncp); [all …]
|
| /kernel/linux/linux-6.6/arch/mips/pci/ |
| D | pci-malta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 18 #include <asm/mips-cps.h> 19 #include <asm/mips-boards/generic.h> 20 #include <asm/mips-boards/bonito64.h> 21 #include <asm/mips-boards/msc01_pci.h> 30 .start = 0x00000000UL, 36 .name = "GT-64120 PCI MEM", 41 .name = "GT-64120 PCI I/O", 81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local [all …]
|
| /kernel/linux/linux-5.10/arch/mips/pci/ |
| D | pci-malta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 18 #include <asm/mips-cps.h> 19 #include <asm/mips-boards/generic.h> 20 #include <asm/mips-boards/bonito64.h> 21 #include <asm/mips-boards/msc01_pci.h> 30 .start = 0x00000000UL, 36 .name = "GT-64120 PCI MEM", 41 .name = "GT-64120 PCI I/O", 81 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | readahead.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mm/readahead.c - address_space-level file readahead. 16 #include <linux/backing-dev.h> 23 #include <linux/blk-cgroup.h> 36 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 37 ra->prev_pos = -1; in file_ra_state_init() 43 * - the caller of read_cache_pages() may have set PG_private or PG_fscache 45 * on disk, thus we need to give the fs a chance to clean up in the event of 54 page->mapping = mapping; in read_cache_pages_invalidate_page() 56 page->mapping = NULL; in read_cache_pages_invalidate_page() [all …]
|
| D | msync.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1994-1999 Linus Torvalds 19 * MS_SYNC syncs the entire file - including mappings. 21 * MS_ASYNC does not start I/O (it used to, up to 2.5.67). 22 * Nor does it marks the relevant pages dirty (it used to up to 2.6.17). 27 * Or the application may run fadvise(FADV_DONTNEED) against the fd to start 32 SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) in SYSCALL_DEFINE3() argument 35 struct mm_struct *mm = current->mm; in SYSCALL_DEFINE3() 38 int error = -EINVAL; in SYSCALL_DEFINE3() 40 start = untagged_addr(start); in SYSCALL_DEFINE3() [all …]
|
| /kernel/linux/linux-5.10/arch/sh/mm/ |
| D | numa.c | 2 * arch/sh/mm/numa.c - Multiple node support for SH machines 22 * in node 0, and other memory blocks in to node 1 and up, ordered by 23 * latency. Each node's pgdat is node-local at the beginning of the node, 26 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument 33 start_pfn = PFN_DOWN(start); in setup_bootmem_node() 36 pmb_bolt_mapping((unsigned long)__va(start), start, end - start, in setup_bootmem_node() 39 memblock_add(start, end - start); in setup_bootmem_node() 43 /* Node-local pgdat */ in setup_bootmem_node() 51 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node() 52 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node() [all …]
|
| /kernel/linux/linux-6.6/arch/sh/mm/ |
| D | numa.c | 2 * arch/sh/mm/numa.c - Multiple node support for SH machines 22 * in node 0, and other memory blocks in to node 1 and up, ordered by 23 * latency. Each node's pgdat is node-local at the beginning of the node, 26 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument 33 start_pfn = PFN_DOWN(start); in setup_bootmem_node() 36 pmb_bolt_mapping((unsigned long)__va(start), start, end - start, in setup_bootmem_node() 39 memblock_add(start, end - start); in setup_bootmem_node() 43 /* Node-local pgdat */ in setup_bootmem_node() 51 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node() 52 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node() [all …]
|
| /kernel/linux/linux-6.6/mm/ |
| D | msync.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1994-1999 Linus Torvalds 19 * MS_SYNC syncs the entire file - including mappings. 21 * MS_ASYNC does not start I/O (it used to, up to 2.5.67). 22 * Nor does it marks the relevant pages dirty (it used to up to 2.6.17). 27 * Or the application may run fadvise(FADV_DONTNEED) against the fd to start 32 SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags) in SYSCALL_DEFINE3() argument 35 struct mm_struct *mm = current->mm; in SYSCALL_DEFINE3() 38 int error = -EINVAL; in SYSCALL_DEFINE3() 40 start = untagged_addr(start); in SYSCALL_DEFINE3() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kexec/ |
| D | file_load_64.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * Based on kexec-tools' kexec-ppc64.c, kexec-elf-rel-ppc64.c, fs2dt.c. 27 #include <asm/crashdump-ppc64.h> 30 u64 *buf; /* data buffer for usable-memory property */ 35 /* usable memory ranges to look up */ 46 * get_exclude_memory_ranges - Get exclude memory ranges. This list includes 47 * regions like opal/rtas, tce-table, initrd, 49 * setting up kexec load segments. 95 * get_usable_memory_ranges - Get usable memory ranges. This list includes 96 * regions like crashkernel, opal/rtas & tce-table, [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
| D | 8250_ioc3.c | 1 // SPDX-License-Identifier: GPL-2.0 26 return readb(p->membase + (offset ^ 3)); in ioc3_serial_in() 31 writeb(value, p->membase + (offset ^ 3)); in ioc3_serial_out() 37 struct uart_8250_port up; in serial8250_ioc3_probe() local 44 return -ENODEV; in serial8250_ioc3_probe() 46 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in serial8250_ioc3_probe() 48 return -ENOMEM; in serial8250_ioc3_probe() 50 membase = devm_ioremap(&pdev->dev, r->start, resource_size(r)); in serial8250_ioc3_probe() 52 return -ENOMEM; in serial8250_ioc3_probe() 56 irq = 0; /* no interrupt -> use polling */ in serial8250_ioc3_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/serial/8250/ |
| D | 8250_ioc3.c | 1 // SPDX-License-Identifier: GPL-2.0 26 return readb(p->membase + (offset ^ 3)); in ioc3_serial_in() 31 writeb(value, p->membase + (offset ^ 3)); in ioc3_serial_out() 37 struct uart_8250_port up; in serial8250_ioc3_probe() local 44 return -ENODEV; in serial8250_ioc3_probe() 46 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in serial8250_ioc3_probe() 48 return -ENOMEM; in serial8250_ioc3_probe() 50 membase = devm_ioremap(&pdev->dev, r->start, resource_size(r)); in serial8250_ioc3_probe() 52 return -ENOMEM; in serial8250_ioc3_probe() 56 irq = 0; /* no interrupt -> use polling */ in serial8250_ioc3_probe() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/include/asm/ |
| D | tlbflush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <asm/processor-flags.h> 18 #define TLB_FLUSH_ALL -1UL 70 * are on. This means that it may not match current->active_mm, 75 * LOADED_MM_SWITCHING during the brief interrupts-off window 95 * - Actively using an mm. Our CPU's bit will be set in 98 * - Not using a real mm. loaded_mm == &init_mm. Our CPU's bit 101 * - Lazily using a real mm. loaded_mm != &init_mm, our bit 104 * skipped more than makes up for the overhead added by 112 * This tells us to go invalidate all the non-loaded ctxs[] [all …]
|
| /kernel/linux/linux-6.6/Documentation/filesystems/ |
| D | netfs_library.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 - Overview. 10 - Per-inode context. 11 - Inode context helper functions. 12 - Buffered read helpers. 13 - Read helper functions. 14 - Read helper structures. 15 - Read helper operations. 16 - Read helper procedure. 17 - Read helper cache API. [all …]
|
| /kernel/linux/linux-6.6/arch/x86/mm/ |
| D | init.c | 27 #include <asm/text-patching.h> 43 * WC and WT fall back to UC-. pat_init() updates these values to support 45 * for the details. Note, __early_ioremap() used during early boot-time 82 * Check that the write-protect PAT entry is set for write-protect. 83 * To do this without making assumptions how PAT has been set up (Xen has 169 * the 0-ISA_END_ADDRESS range and secondly for the initial PMD_SIZE mapping. 206 unsigned long start; member 216 * up after us can get the correct flags. Invoked on the boot CPU. 251 /* Except when with PTI where the kernel is mostly non-Global: */ in probe_page_size_mask() 291 boot_cpu_data.microcode < invlpg_miss_match->driver_data) { in setup_pcid() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/mm/ |
| D | init.c | 29 #include <asm/text-patching.h> 46 * WC and WT fall back to UC-. pat_init() updates these values to support 48 * for the details. Note, __early_ioremap() used during early boot-time 85 * Check that the write-protect PAT entry is set for write-protect. 86 * To do this without making assumptions how PAT has been set up (Xen has 173 * By default need 3 4k for initial PMD_SIZE, 3 4k for 0-ISA_END_ADDRESS. 202 unsigned long start; member 212 * up after us can get the correct flags. Invoked on the boot CPU. 247 /* Except when with PTI where the kernel is mostly non-Global: */ in probe_page_size_mask() 294 * This can't be cr4_set_bits_and_update_boot() -- the in setup_pcid() [all …]
|