Home
last modified time | relevance | path

Searched +full:start +full:- +full:up (Results 1 – 25 of 1062) sorted by relevance

12345678910>>...43

/linux/tools/testing/radix-tree/
H A Dmain.c1 // 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 …]
/linux/arch/arm/mach-s3c/
H A Dgpio-cfg.h1 /* 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 …]
/linux/arch/powerpc/mm/kasan/
H A Dinit_book3s_64.c1 // 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
22 static void __init kasan_init_phys_region(void *start, void *end) in kasan_init_phys_region() argument
27 if (start >= end) in kasan_init_phys_region()
30 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region()
33 va = memblock_alloc_or_panic(k_end - k_start, PAGE_SIZE); in kasan_init_phys_region()
48 * This takes us up to where we start at c00e... in kasan_init()
53 phys_addr_t start, end; in kasan_init() local
[all …]
/linux/fs/jfs/
H A Djfs_unicode.h1 /* 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 …]
/linux/tools/perf/tests/shell/
H A Ddaemon.sh3 # 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 …]
/linux/tools/perf/Documentation/
H A Dperf-daemon.txt1 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 …]
/linux/arch/x86/mm/
H A Dinit.c28 #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
172 * the 0-ISA_END_ADDRESS range and secondly for the initial PMD_SIZE mapping.
205 unsigned long start; member
215 * up after us can get the correct flags. Invoked on the boot CPU.
250 /* Except when with PTI where the kernel is mostly non-Global: */ in probe_page_size_mask()
290 boot_cpu_data.microcode < invlpg_miss_match->driver_data) { in setup_pcid()
[all …]
/linux/mm/
H A Dmsync.c1 // 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 …]
H A Dreadahead.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mm/readahead.c - address_space-level file readahead.
17 * folio is present but not up-to-date, readahead will not try to read
18 * it. In that case a simple ->read_folio() will be requested.
29 * contains ->size being the total number of pages, and ->async_size
37 * to be determined: the start of the region to read, the size of the
40 * The start of the region is simply the first page address at or after
46 * this would be less than zero - then zero is used. NOTE THIS
47 * CALCULATION IS WRONG WHEN THE START OF THE REGION IS NOT THE ACCESSED
57 * page to the start of the new readahead. In these cases, the size of
[all …]
/linux/arch/sh/mm/
H A Dnuma.c2 * arch/sh/mm/numa.c - Multiple node support for SH machines
19 * in node 0, and other memory blocks in to node 1 and up, ordered by
20 * latency. Each node's pgdat is node-local at the beginning of the node,
23 void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) in setup_bootmem_node() argument
30 start_pfn = PFN_DOWN(start); in setup_bootmem_node()
33 pmb_bolt_mapping((unsigned long)__va(start), start, end - start, in setup_bootmem_node()
36 memblock_add(start, end - start); in setup_bootmem_node()
40 /* 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 …]
/linux/drivers/scsi/aacraid/
H A Dsa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * Copyright (c) 2000-2010 Adaptec, Inc.
10 * 2010-2015 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
11 * 2016-2017 Microsemi Corp. (aacraid@microsemi.com)
53 } else if (intstat & DOORBELL_1) { // dev -> Host Normal Command Ready in aac_sa_intr()
55 aac_command_normal(&dev->queues->queue[HostNormCmdQueue]); in aac_sa_intr()
56 } else if (intstat & DOORBELL_2) { // dev -> Host Normal Response Ready in aac_sa_intr()
58 aac_response_normal(&dev->queues->queue[HostNormRespQueue]); in aac_sa_intr()
59 } else if (intstat & DOORBELL_3) { // dev -> Host Normal Command Not Full in aac_sa_intr()
61 } else if (intstat & DOORBELL_4) { // dev -> Host Normal Response Not Full in aac_sa_intr()
[all …]
H A Dsrc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * Copyright (c) 2000-2010 Adaptec, Inc.
10 * 2010-2015 PMC-Sierra, Inc. (aacraid@pmc-sierra.com)
11 * 2016-2017 Microsemi Corp. (aacraid@microsemi.com)
46 dev = ctx->dev; in aac_src_intr_message()
47 vector_no = ctx->vector_no; in aac_src_intr_message()
49 if (dev->msi_enabled) { in aac_src_intr_message()
83 if (!aac_sync_mode && !dev->msi_enabled) { in aac_src_intr_message()
88 if (dev->sync_fib) { in aac_src_intr_message()
89 if (dev->sync_fib->callback) in aac_src_intr_message()
[all …]
/linux/arch/arm64/lib/
H A Ddelay.c1 // SPDX-License-Identifier: GPL-2.0-only
28 cycles_t start = get_cycles(); in __delay() local
31 u64 end = start + cycles; in __delay()
34 * Start with WFIT. If an interrupt makes us resume in __delay()
38 while ((get_cycles() - start) < cycles) in __delay()
44 while ((get_cycles() - start + timer_evt_period) < cycles) in __delay()
48 while ((get_cycles() - start) < cycles) in __delay()
61 __const_udelay(usecs * 0x10C7UL); /* 2**32 / 1000000 (rounded up) */ in __udelay()
67 __const_udelay(nsecs * 0x5UL); /* 2**32 / 1000000000 (rounded up) */ in __ndelay()
/linux/fs/xfs/scrub/
H A Dbitmap.h1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2018-2023 Oracle. All Rights Reserved.
18 int xbitmap64_clear(struct xbitmap64 *bitmap, uint64_t start, uint64_t len);
19 int xbitmap64_set(struct xbitmap64 *bitmap, uint64_t start, uint64_t len);
25 * and non-zero to stop iterating. Any non-zero value will be passed up to the
26 * iteration caller. The special value -ECANCELED can be used to stop
30 typedef int (*xbitmap64_walk_fn)(uint64_t start, uint64_t len, void *priv);
35 bool xbitmap64_test(struct xbitmap64 *bitmap, uint64_t start, uint64_t *len);
46 int xbitmap32_clear(struct xbitmap32 *bitmap, uint32_t start, uint32_t len);
47 int xbitmap32_set(struct xbitmap32 *bitmap, uint32_t start, uint32_t len);
[all …]
/linux/sound/hda/core/
H A Dstream.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HD-audio stream operations
26 * +--+---
684 snd_hdac_stream_timecounter_init(struct hdac_stream * azx_dev,unsigned int streams,bool start) snd_hdac_stream_timecounter_init() argument
744 snd_hdac_stream_sync(struct hdac_stream * azx_dev,bool start,unsigned int streams) snd_hdac_stream_sync() argument
974 snd_hdac_dsp_trigger(struct hdac_stream * azx_dev,bool start) snd_hdac_dsp_trigger() argument
[all...]
/linux/fs/nls/
H A Dnls_ucs2_utils.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
52 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ in UniStrcat()
56 ucs1--; /* Return to the null */ in UniStrcat()
93 return (int)*ucs1 - (int)*ucs2; in UniStrcmp()
101 wchar_t *anchor = ucs1; /* save the start of result string */ in UniStrcpy()
145 ucs1--; /* point to null terminator of s1 */ in UniStrncat()
146 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat()
161 while ((*ucs1 == *ucs2) && *ucs1 && --n) { in UniStrncmp()
165 return (int)*ucs1 - (int)*ucs2; in UniStrncmp()
169 * UniStrncmp_le: Compare length limited string - native to little-endian
[all …]
/linux/arch/arm64/include/asm/
H A Dcacheflush.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 1999-2002 Russell King.
26 * Start addresses are inclusive and end addresses are exclusive; start
27 * addresses should be rounded down, end addresses up.
29 * See Documentation/core-api/cachetlb.rst for more information. Please note that
30 * the implementation assumes non-aliasing VIPT D-cache and (aliasing)
31 * VIPT I-cache.
33 * All functions below apply to the interval [start, end)
34 * - start - virtual start address (inclusive)
35 * - end - virtual end address (exclusive)
[all …]
/linux/drivers/mtd/maps/
H A Dsun_uflash.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* sun_uflash.c - Driver for user-programmable flash on
5 * This driver does NOT provide access to the OBP-flash for
6 * safety reasons-- use <linux>/drivers/sbus/char/flash.c instead.
31 #define UFLASH_BUSWIDTH 1 /* EBus is 8-bit */
34 MODULE_DESCRIPTION("User-programmable flash device on Sun Microsystems boardsets");
45 .name = "SUNW,???-????",
52 struct uflash_dev *up; in uflash_devinit() local
54 if (op->resource[1].flags) { in uflash_devinit()
55 /* Non-CFI userflash device-- once I find one we in uflash_devinit()
[all …]
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common.h1 /* SPDX-License-Identifier: GPL-2.0-only */
12 #include <linux/pinctrl/pinconf-generic.h>
14 #include "mtk-eint.h"
61 #define SET_ADDR(x, y) (x + (y->devdata->port_align))
62 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1))
71 * struct mtk_drv_group_desc - Provide driving group data.
96 * struct mtk_pin_drv_grp - Provide each pin driving info.
119 * - For special pins' pull up/down setting which resides in same register
121 * @offset: The offset of special pull up/down setting register.
122 * @pupd_bit: The pull up/down bit in this register.
[all …]
/linux/include/drm/
H A Ddrm_vma_manager.h32 /* We make up offsets for buffer objects so we can recognize them at
34 * that the faked up offset will fit
69 unsigned long start,
84 * drm_vma_offset_exact_lookup_locked() - Look up node by exact address
86 * @start: Start address (page-based, not byte-based)
87 * @pages: Size of object (page-based)
90 * It only returns the exact object with the given start address.
93 * Node at exact start address @start.
97 unsigned long start, in drm_vma_offset_exact_lookup_locked() argument
102 node = drm_vma_offset_lookup_locked(mgr, start, pages); in drm_vma_offset_exact_lookup_locked()
[all …]
/linux/arch/sparc/kernel/
H A Dtrampoline_32.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * trampoline.S: SMP cpu boot-up trampoline code.
23 /* When we start up a cpu for the first time it enters this routine.
45 /* Set up a sane %psr -- PIL<0xf> S<0x1> PS<0x1> CWP<0x0> */
65 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
66 or %sp, %lo(THREAD_SIZE - STACKFRAME_SZ), %sp
80 /* Start this processor. */
99 /* Set up a sane %psr -- PIL<0xf> S<0x1> PS<0x1> CWP<0x0> */
109 /* Set tbr - we use just one trap table. */
126 sethi %hi(THREAD_SIZE - STACKFRAME_SZ), %sp
[all …]
/linux/arch/riscv/include/asm/
H A Dxip_fixup.h1 /* SPDX-License-Identifier: GPL-2.0-only */
12 /* Fix-up address in Flash into address in RAM early during boot before
13 * MMU is up. Because generated code "thinks" data is in Flash, but it
15 * read-only, thus we need to use the data residing in RAM).
17 * The start of data in Flash is _sdata and the start of data in RAM is
18 * CONFIG_PHYS_RAM_BASE. So this fix-up essentially does this:
19 * reg += CONFIG_PHYS_RAM_BASE - _start
27 /* In linker script, at the transition from read-only section to
32 * Consequently, early during boot before MMU is up, the generated code
/linux/fs/squashfs/
H A Did.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Squashfs - a compressed read only filesystem for Linux
15 * converted to 32-bit uids/gids using an id look up table. This table is
30 * Map uid/gid index into real 32-bit uid/gid using the id look up table
35 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_id()
42 if (index >= msblk->ids) in squashfs_get_id()
43 return -EINVAL; in squashfs_get_id()
45 start_block = le64_to_cpu(msblk->id_table[block]); in squashfs_get_id()
67 u64 start, end; in squashfs_read_id_index_table() local
75 return ERR_PTR(-EINVAL); in squashfs_read_id_index_table()
[all …]
/linux/arch/s390/kernel/
H A Dvdso.c1 // SPDX-License-Identifier: GPL-2.0
32 current->mm->context.vdso_base = vma->vm_start; in vdso_mremap()
57 struct mm_struct *mm = current->mm; in map_vdso()
63 return -EINTR; in map_vdso()
66 vdso_text_len = vdso32_end - vdso32_start; in map_vdso()
69 vdso_text_len = vdso64_end - vdso64_start; in map_vdso()
90 current->mm->context.vdso_base = vdso_text_start; in map_vdso()
98 static unsigned long vdso_addr(unsigned long start, unsigned long len) in vdso_addr() argument
103 * Round up the start address. It can start out unaligned as a result in vdso_addr()
104 * of stack start randomization. in vdso_addr()
[all …]
/linux/arch/hexagon/include/asm/
H A Dcacheflush.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
15 * - flush_cache_all() flushes entire cache
16 * - flush_cache_mm(mm) flushes the specified mm context's cache lines
17 * - flush_cache_page(mm, vmaddr, pfn) flushes a single page
18 * - flush_cache_range(vma, start, end) flushes a range of pages
19 * - flush_icache_range(start, end) flush a range of instructions
20 * - flush_dcache_page(pg) flushes(wback&invalidates) a page for dcache
21 * - flush_icache_pages(vma, pg, nr) flushes(invalidates) nr pages for icache
31 extern void flush_dcache_range(unsigned long start, unsigned long end);
[all …]

12345678910>>...43