| /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-4.19/fs/jfs/ |
| D | jfs_unicode.h | 2 * Copyright (C) International Business Machines Corp., 2000-2002 3 * Portions Copyright (C) Christoph Hellwig, 2001-2002 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 27 wchar_t start; member 37 #define free_UCSname(COMP) kfree((COMP)->name) 44 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() 60 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le() 64 while (n--) /* Pad with nulls */ in UniStrncpy_le() 70 * UniStrncmp_le: Compare length limited string - native to little-endian 77 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le() [all …]
|
| /kernel/linux/linux-4.19/fs/cifs/ |
| D | cifs_unicode.h | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 91 wchar_t start; member 135 __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat() 138 ucs1--; /* Return to the null */ in UniStrcat() 176 return (int) *ucs1 - (int) *ucs2; in UniStrcmp() 185 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy() 230 ucs1--; /* point to null terminator of s1 */ in UniStrncat() 231 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat() 247 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp() 251 return (int) *ucs1 - (int) *ucs2; in UniStrncmp() [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-4.19/arch/arm/plat-samsung/include/plat/ |
| 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-4.19/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-4.19/include/linux/ |
| D | u64_stats_sync.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * we provide a synchronization point, that is a noop on 64bit or UP kernels. 11 * 2) Whole thing is a noop on 64bit arches or UP kernels. 28 * (On UP, there is no seqcount_t protection, a reader allowing interrupts could 42 * u64_stats_update_begin(&stats->syncp); 43 * stats->bytes64 += len; // non atomic operation 44 * stats->packets64++; // non atomic operation 45 * u64_stats_update_end(&stats->syncp); 51 * unsigned int start; 54 * start = u64_stats_fetch_begin(&stats->syncp); [all …]
|
| /kernel/linux/linux-4.19/arch/unicore32/boot/compressed/ |
| D | head.S | 6 * Copyright (C) 2001-2010 GUAN Xue-tao 19 .section ".start", #alloc, #execinstr 21 start: label 22 .type start,#function 41 * up various pointers: 42 * r5 - zImage base address (_start) 43 * r7 - GOT start 44 * r8 - GOT end 51 * we need to fix up pointers into the BSS region. 52 * r2 - BSS start [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-4.19/mm/ |
| D | readahead.c | 2 * mm/readahead.c - address_space-level file readahead. 15 #include <linux/backing-dev.h> 22 #include <linux/blk-cgroup.h> 34 ra->ra_pages = inode_to_bdi(mapping->host)->ra_pages; in file_ra_state_init() 35 ra->prev_pos = -1; in file_ra_state_init() 41 * - the caller of read_cache_pages() may have set PG_private or PG_fscache 43 * on disk, thus we need to give the fs a chance to clean up in the event of 52 page->mapping = mapping; in read_cache_pages_invalidate_page() 54 page->mapping = NULL; in read_cache_pages_invalidate_page() 70 list_del(&victim->lru); in read_cache_pages_invalidate_pages() [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() 42 if (offset_in_page(start)) in SYSCALL_DEFINE3() [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-4.19/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() 48 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node() 49 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node() [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-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/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-4.19/arch/mips/pci/ |
| D | pci-malta.c | 7 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 20 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 30 #include <asm/mips-cps.h> 31 #include <asm/mips-boards/generic.h> 32 #include <asm/mips-boards/bonito64.h> 33 #include <asm/mips-boards/msc01_pci.h> 42 .start = 0x00000000UL, 48 .name = "GT-64120 PCI MEM", 53 .name = "GT-64120 PCI I/O", 93 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local [all …]
|
| /kernel/linux/linux-4.19/arch/x86/mm/ |
| D | init.c | 41 * WC and WT fall back to UC-. pat_init() updates these values to support 43 * for the details. Note, __early_ioremap() used during early boot-time 136 * By default need 3 4k for initial PMD_SIZE, 3 4k for 0-ISA_END_ADDRESS. 165 unsigned long start; member 197 /* Except when with PTI where the kernel is mostly non-Global: */ in probe_page_size_mask() 220 * This can't be cr4_set_bits_and_update_boot() -- the in setup_pcid() 227 * Instead, we brute-force it and set CR4.PCIDE manually in in setup_pcid() 233 * INVPCID's single-context modes (2/3) only work if we set in setup_pcid() 265 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr() 286 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask() local [all …]
|
| D | mpx.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * mpx.c - Memory Protection eXtensions 16 #include <asm/insn-eval.h> 44 * bounds tables (the bounds directory is user-allocated). 48 struct mm_struct *mm = current->mm; in mpx_mmap() 53 return -EINVAL; in mpx_mmap() 55 down_write(&mm->mmap_sem); in mpx_mmap() 58 up_write(&mm->mmap_sem); in mpx_mmap() 73 not_copied = copy_from_user(buf, (void __user *)regs->ip, sizeof(buf)); in mpx_insn_decode() 74 nr_copied = sizeof(buf) - not_copied; in mpx_insn_decode() [all …]
|
| /kernel/linux/linux-4.19/sound/hda/ |
| D | hdac_stream.c | 2 * HD-audio stream operations 16 * snd_hdac_stream_init - initialize each stream (aka device) 17 * @bus: HD-audio core bus 18 * @azx_dev: HD-audio core stream object to initialize 28 azx_dev->bus = bus; in snd_hdac_stream_init() 30 azx_dev->sd_addr = bus->remap_addr + (0x20 * idx + 0x80); in snd_hdac_stream_init() 32 azx_dev->sd_int_sta_mask = 1 << idx; in snd_hdac_stream_init() 33 azx_dev->index = idx; in snd_hdac_stream_init() 34 azx_dev->direction = direction; in snd_hdac_stream_init() 35 azx_dev->stream_tag = tag; in snd_hdac_stream_init() [all …]
|