/lib/ |
D | test-string_helpers.c | 14 static __init bool test_string_check_buf(const char *name, unsigned int flags, in test_string_check_buf() argument 22 pr_warn("Test '%s' failed: flags = %u\n", name, flags); in test_string_check_buf() 37 unsigned int flags; member 44 .flags = UNESCAPE_SPACE, 49 .flags = UNESCAPE_OCTAL, 54 .flags = UNESCAPE_HEX, 59 .flags = UNESCAPE_SPECIAL, 63 static void __init test_string_unescape(const char *name, unsigned int flags, in test_string_unescape() argument 84 if (flags & strings[i].flags) { in test_string_unescape() 96 if (flags == UNESCAPE_ANY) in test_string_unescape() [all …]
|
D | atomic64.c | 47 unsigned long flags; in atomic64_read() local 51 raw_spin_lock_irqsave(lock, flags); in atomic64_read() 53 raw_spin_unlock_irqrestore(lock, flags); in atomic64_read() 60 unsigned long flags; in atomic64_set() local 63 raw_spin_lock_irqsave(lock, flags); in atomic64_set() 65 raw_spin_unlock_irqrestore(lock, flags); in atomic64_set() 72 unsigned long flags; \ 75 raw_spin_lock_irqsave(lock, flags); \ 77 raw_spin_unlock_irqrestore(lock, flags); \ 84 unsigned long flags; \ [all …]
|
D | percpu-refcount.c | 61 unsigned int flags, gfp_t gfp) in percpu_ref_init() argument 72 ref->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init() 73 ref->allow_reinit = flags & PERCPU_REF_ALLOW_REINIT; in percpu_ref_init() 75 if (flags & (PERCPU_REF_INIT_ATOMIC | PERCPU_REF_INIT_DEAD)) { in percpu_ref_init() 82 if (flags & PERCPU_REF_INIT_DEAD) in percpu_ref_init() 264 unsigned long flags; in percpu_ref_switch_to_atomic() local 266 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic() 271 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic() 310 unsigned long flags; in percpu_ref_switch_to_percpu() local 312 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_percpu() [all …]
|
D | percpu_counter.c | 63 unsigned long flags; in percpu_counter_set() local 65 raw_spin_lock_irqsave(&fbc->lock, flags); in percpu_counter_set() 71 raw_spin_unlock_irqrestore(&fbc->lock, flags); in percpu_counter_set() 89 unsigned long flags; in percpu_counter_add_batch() local 90 raw_spin_lock_irqsave(&fbc->lock, flags); in percpu_counter_add_batch() 93 raw_spin_unlock_irqrestore(&fbc->lock, flags); in percpu_counter_add_batch() 109 unsigned long flags; in __percpu_counter_sum() local 111 raw_spin_lock_irqsave(&fbc->lock, flags); in __percpu_counter_sum() 117 raw_spin_unlock_irqrestore(&fbc->lock, flags); in __percpu_counter_sum() 125 unsigned long flags __maybe_unused; in __percpu_counter_init() [all …]
|
D | debugobjects.c | 133 unsigned long flags; in fill_pool() local 143 raw_spin_lock_irqsave(&pool_lock, flags); in fill_pool() 155 raw_spin_unlock_irqrestore(&pool_lock, flags); in fill_pool() 173 raw_spin_lock_irqsave(&pool_lock, flags); in fill_pool() 179 raw_spin_unlock_irqrestore(&pool_lock, flags); in fill_pool() 291 unsigned long flags; in free_obj_work() local 295 if (!raw_spin_trylock_irqsave(&pool_lock, flags)) in free_obj_work() 315 raw_spin_unlock_irqrestore(&pool_lock, flags); in free_obj_work() 329 raw_spin_unlock_irqrestore(&pool_lock, flags); in free_obj_work() 342 unsigned long flags; in __free_object() local [all …]
|
D | flex_proportions.c | 67 unsigned long flags; in fprop_new_period() local 69 local_irq_save(flags); in fprop_new_period() 75 local_irq_restore(flags); in fprop_new_period() 85 local_irq_restore(flags); in fprop_new_period() 110 unsigned long flags; in fprop_reflect_period_single() local 115 raw_spin_lock_irqsave(&pl->lock, flags); in fprop_reflect_period_single() 118 raw_spin_unlock_irqrestore(&pl->lock, flags); in fprop_reflect_period_single() 127 raw_spin_unlock_irqrestore(&pl->lock, flags); in fprop_reflect_period_single() 193 unsigned long flags; in fprop_reflect_period_percpu() local 198 raw_spin_lock_irqsave(&pl->lock, flags); in fprop_reflect_period_percpu() [all …]
|
D | cpumask.c | 113 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in alloc_cpumask_var_node() argument 115 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node() 128 bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in zalloc_cpumask_var_node() argument 130 return alloc_cpumask_var_node(mask, flags | __GFP_ZERO, node); in zalloc_cpumask_var_node() 144 bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) in alloc_cpumask_var() argument 146 return alloc_cpumask_var_node(mask, flags, NUMA_NO_NODE); in alloc_cpumask_var() 150 bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) in zalloc_cpumask_var() argument 152 return alloc_cpumask_var(mask, flags | __GFP_ZERO); in zalloc_cpumask_var()
|
D | asn1_decoder.c | 181 unsigned char flags = 0; in asn1_ber_decoder() local 216 if ((op & ASN1_OP_MATCH__COND && flags & FLAG_MATCHED) || in asn1_ber_decoder() 218 flags &= ~FLAG_LAST_MATCHED; in asn1_ber_decoder() 223 flags = 0; in asn1_ber_decoder() 242 flags |= optag & FLAG_CONS; in asn1_ber_decoder() 258 flags |= FLAG_MATCHED; in asn1_ber_decoder() 266 flags |= FLAG_INDEFINITE_LENGTH; in asn1_ber_decoder() 288 if (flags & FLAG_CONS) { in asn1_ber_decoder() 296 if (!(flags & FLAG_INDEFINITE_LENGTH)) { in asn1_ber_decoder() 306 tag, len, flags & FLAG_CONS ? " CONS" : ""); in asn1_ber_decoder() [all …]
|
D | pci_iomap.c | 35 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap_range() local 43 if (flags & IORESOURCE_IO) in pci_iomap_range() 45 if (flags & IORESOURCE_MEM) in pci_iomap_range() 75 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap_wc_range() local 78 if (flags & IORESOURCE_IO) in pci_iomap_wc_range() 89 if (flags & IORESOURCE_MEM) in pci_iomap_wc_range()
|
D | string_helpers.c | 268 int string_unescape(char *src, char *dst, size_t size, unsigned int flags) in string_unescape() argument 277 if (flags & UNESCAPE_SPACE && in string_unescape() 281 if (flags & UNESCAPE_OCTAL && in string_unescape() 285 if (flags & UNESCAPE_HEX && in string_unescape() 289 if (flags & UNESCAPE_SPECIAL && in string_unescape() 498 unsigned int flags, const char *only) in string_escape_mem() argument 518 if ((flags & ESCAPE_NP && isprint(c)) || in string_escape_mem() 522 if (flags & ESCAPE_SPACE && escape_space(c, &p, end)) in string_escape_mem() 525 if (flags & ESCAPE_SPECIAL && escape_special(c, &p, end)) in string_escape_mem() 528 if (flags & ESCAPE_NULL && escape_null(c, &p, end)) in string_escape_mem() [all …]
|
D | once.c | 37 bool __do_once_start(bool *done, unsigned long *flags) in __do_once_start() argument 40 spin_lock_irqsave(&once_lock, *flags); in __do_once_start() 42 spin_unlock_irqrestore(&once_lock, *flags); in __do_once_start() 56 unsigned long *flags) in __do_once_done() argument 60 spin_unlock_irqrestore(&once_lock, *flags); in __do_once_done()
|
D | ts_kmp.c | 47 const int icase = conf->flags & TS_IGNORECASE; in kmp_find() 75 unsigned int *prefix_tbl, int flags) in compute_prefix_tbl() argument 78 const u8 icase = flags & TS_IGNORECASE; in compute_prefix_tbl() 92 gfp_t gfp_mask, int flags) in kmp_init() argument 104 conf->flags = flags; in kmp_init() 107 compute_prefix_tbl(pattern, len, kmp->prefix_tbl, flags); in kmp_init() 109 if (flags & TS_IGNORECASE) in kmp_init()
|
D | ratelimit.c | 29 unsigned long flags; in ___ratelimit() local 41 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit() 49 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { in ___ratelimit() 66 raw_spin_unlock_irqrestore(&rs->lock, flags); in ___ratelimit()
|
D | ts_bm.c | 64 const u8 icase = conf->flags & TS_IGNORECASE; in bm_find() 114 static void compute_prefix_tbl(struct ts_bm *bm, int flags) in compute_prefix_tbl() argument 122 if (flags & TS_IGNORECASE) in compute_prefix_tbl() 142 gfp_t gfp_mask, int flags) in bm_init() argument 154 conf->flags = flags; in bm_init() 158 if (flags & TS_IGNORECASE) in bm_init() 163 compute_prefix_tbl(bm, flags); in bm_init()
|
D | vsprintf.c | 406 unsigned int flags:8; /* flags to number() */ member 423 int need_pfx = ((spec.flags & SPECIAL) && spec.base != 10); in number() 431 locase = (spec.flags & SMALL); in number() 432 if (spec.flags & LEFT) in number() 433 spec.flags &= ~ZEROPAD; in number() 435 if (spec.flags & SIGN) { in number() 440 } else if (spec.flags & PLUS) { in number() 443 } else if (spec.flags & SPACE) { in number() 478 if (!(spec.flags & (ZEROPAD | LEFT))) { in number() 505 if (!(spec.flags & LEFT)) { in number() [all …]
|
D | irq_poll.c | 29 unsigned long flags; in irq_poll_sched() local 36 local_irq_save(flags); in irq_poll_sched() 39 local_irq_restore(flags); in irq_poll_sched() 70 unsigned long flags; in irq_poll_complete() local 72 local_irq_save(flags); in irq_poll_complete() 74 local_irq_restore(flags); in irq_poll_complete()
|
D | dump_stack.c | 90 unsigned long flags; in dump_stack() local 100 local_irq_save(flags); in dump_stack() 108 local_irq_restore(flags); in dump_stack() 123 local_irq_restore(flags); in dump_stack()
|
D | dec_and_lock.c | 38 unsigned long *flags) in _atomic_dec_and_lock_irqsave() argument 45 spin_lock_irqsave(lock, *flags); in _atomic_dec_and_lock_irqsave() 48 spin_unlock_irqrestore(lock, *flags); in _atomic_dec_and_lock_irqsave()
|
D | bug.c | 169 warning = (bug->flags & BUGFLAG_WARNING) != 0; in report_bug() 170 once = (bug->flags & BUGFLAG_ONCE) != 0; in report_bug() 171 done = (bug->flags & BUGFLAG_DONE) != 0; in report_bug() 180 bug->flags |= BUGFLAG_DONE; in report_bug() 190 if ((bug->flags & BUGFLAG_NO_CUT_HERE) == 0) in report_bug() 214 bug->flags &= ~BUGFLAG_DONE; in clear_once_table()
|
D | dynamic_debug.c | 99 if (dp->flags & opt_array[i].flag) in ddebug_describe_flags() 141 unsigned int flags, unsigned int mask) in ddebug_change() argument 190 newflags = (dp->flags & mask) | flags; in ddebug_change() 191 if (newflags == dp->flags) in ddebug_change() 194 if (dp->flags & _DPRINTK_FLAGS_PRINT) { in ddebug_change() 195 if (!(flags & _DPRINTK_FLAGS_PRINT)) in ddebug_change() 197 } else if (flags & _DPRINTK_FLAGS_PRINT) in ddebug_change() 200 dp->flags = newflags; in ddebug_change() 398 unsigned flags = 0; in ddebug_parse_flags() local 416 flags |= opt_array[i].flag; in ddebug_parse_flags() [all …]
|
D | lru_cache.c | 31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \ 35 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \ 59 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock() 68 old = lc->flags & LC_PARANOIA; in lc_try_lock() 70 val = cmpxchg(&lc->flags, old, new); in lc_try_lock() 208 lc->flags = 0; in lc_reset() 361 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get() argument 366 if (lc->flags & LC_STARVING) { in __lc_get() 382 if (!(flags & LC_GET_MAY_USE_UNCOMMITTED)) in __lc_get() 400 if (!(flags & LC_GET_MAY_CHANGE)) in __lc_get() [all …]
|
D | idr.c | 384 unsigned long flags; in ida_alloc_range() local 394 xas_lock_irqsave(&xas, flags); in ida_alloc_range() 452 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 464 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 472 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 489 unsigned long flags; in ida_free() local 493 xas_lock_irqsave(&xas, flags); in ida_free() 517 xas_unlock_irqrestore(&xas, flags); in ida_free() 520 xas_unlock_irqrestore(&xas, flags); in ida_free() 540 unsigned long flags; in ida_destroy() local [all …]
|
D | logic_pio.c | 54 if (range->flags == LOGIC_PIO_CPU_MMIO && in logic_pio_register_range() 55 new_range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_register_range() 64 } else if (range->flags == LOGIC_PIO_INDIRECT && in logic_pio_register_range() 65 new_range->flags == LOGIC_PIO_INDIRECT) { in logic_pio_register_range() 71 if (new_range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_register_range() 82 } else if (new_range->flags == LOGIC_PIO_INDIRECT) { in logic_pio_register_range() 193 if (!range || range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_trans_hwaddr() 211 if (range->flags != LOGIC_PIO_CPU_MMIO) in logic_pio_trans_cpuaddr()
|
D | test_printf.c | 548 flags(void) in flags() function 550 unsigned long flags; in flags() local 554 flags = 0; in flags() 555 test("", "%pGp", &flags); in flags() 558 flags = 1UL << NR_PAGEFLAGS; in flags() 559 test("", "%pGp", &flags); in flags() 561 flags |= 1UL << PG_uptodate | 1UL << PG_dirty | 1UL << PG_lru in flags() 563 test("uptodate|dirty|lru|active|swapbacked", "%pGp", &flags); in flags() 566 flags = VM_READ | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC in flags() 568 test("read|exec|mayread|maywrite|mayexec|denywrite", "%pGv", &flags); in flags() [all …]
|
D | crc32test.c | 670 unsigned long flags; in crc32c_test() local 685 local_irq_save(flags); in crc32c_test() 696 local_irq_restore(flags); in crc32c_test() 752 unsigned long flags; in crc32_test() local 770 local_irq_save(flags); in crc32_test() 785 local_irq_restore(flags); in crc32_test()
|