| /lib/tests/ |
| A D | string_helpers_kunit.c | 28 unsigned int flags; member 45 .flags = UNESCAPE_HEX, 77 if (flags & strings[i].flags) { in test_string_unescape() 105 unsigned int flags; member 168 .flags = ESCAPE_NP, 204 .flags = ESCAPE_NA, 220 .flags = ESCAPE_HEX, 268 .flags = ESCAPE_NA, 378 if (!flags) in test_string_find_match() 389 if (s1->flags == flags) in test_string_find_match() [all …]
|
| A D | printf_kunit.c | 328 .flags = IORESOURCE_MEM, in struct_resource() 337 .flags = IORESOURCE_MEM, in struct_resource() 345 .flags = IORESOURCE_MEM, in struct_resource() 353 .flags = IORESOURCE_MEM, in struct_resource() 362 .flags = IORESOURCE_IO | in struct_resource() 609 if (flags & PAGEFLAGS_MASK) { in page_flags_test() 634 flags(struct kunit *kunittest) in flags() function 636 unsigned long flags; in flags() local 643 flags = 0; in flags() 646 flags = 1UL << NR_PAGEFLAGS; in flags() [all …]
|
| /lib/ |
| A D | atomic64.c | 47 unsigned long flags; in generic_atomic64_read() local 51 local_irq_save(flags); in generic_atomic64_read() 62 unsigned long flags; in generic_atomic64_set() local 65 local_irq_save(flags); in generic_atomic64_set() 143 unsigned long flags; in generic_atomic64_dec_if_positive() local 147 local_irq_save(flags); in generic_atomic64_dec_if_positive() 160 unsigned long flags; in generic_atomic64_cmpxchg() local 164 local_irq_save(flags); in generic_atomic64_cmpxchg() 177 unsigned long flags; in generic_atomic64_xchg() local 181 local_irq_save(flags); in generic_atomic64_xchg() [all …]
|
| A D | percpu-refcount.c | 64 unsigned int flags, gfp_t gfp) in percpu_ref_init() argument 83 data->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init() 93 if (flags & PERCPU_REF_INIT_DEAD) in percpu_ref_init() 133 unsigned long flags; in percpu_ref_exit() local 140 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_exit() 309 unsigned long flags; in percpu_ref_switch_to_atomic() local 311 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic() 355 unsigned long flags; in percpu_ref_switch_to_percpu() local 386 unsigned long flags; in percpu_ref_kill_and_confirm() local 413 unsigned long count, flags; in percpu_ref_is_zero() local [all …]
|
| A D | closure.c | 18 int r = flags & CLOSURE_REMAINING_MASK; in closure_put_after_sub_checks() 20 if (WARN(flags & CLOSURE_GUARD_MASK, in closure_put_after_sub_checks() 22 flags & CLOSURE_GUARD_MASK, (unsigned) __fls(r))) in closure_put_after_sub_checks() 25 WARN(!r && (flags & ~CLOSURE_DESTRUCTOR), in closure_put_after_sub_checks() 27 flags & ~CLOSURE_DESTRUCTOR, (unsigned) __fls(flags)); in closure_put_after_sub_checks() 32 closure_put_after_sub_checks(flags); in closure_put_after_sub() 34 if (!(flags & CLOSURE_REMAINING_MASK)) { in closure_put_after_sub() 39 if (cl->fn && !(flags & CLOSURE_DESTRUCTOR)) { in closure_put_after_sub() 170 closure_put_after_sub_checks(flags); in closure_return_sync() 232 unsigned long flags; in closure_debug_create() local [all …]
|
| A D | percpu_counter.c | 63 unsigned long flags; in percpu_counter_set() local 96 unsigned long flags; in percpu_counter_add_batch() local 123 unsigned long flags; in percpu_counter_add_batch() local 125 local_irq_save(flags); in percpu_counter_add_batch() 135 local_irq_restore(flags); in percpu_counter_add_batch() 148 unsigned long flags; in percpu_counter_sync() local 175 unsigned long flags; in __percpu_counter_sum() local 332 unsigned long flags; in __percpu_counter_limited_add() local 338 local_irq_save(flags); in __percpu_counter_limited_add() 347 local_irq_restore(flags); in __percpu_counter_limited_add() [all …]
|
| A D | ratelimit.c | 35 unsigned long flags; in ___ratelimit() local 45 if (!(READ_ONCE(rs->flags) & RATELIMIT_INITIALIZED) || (!interval && !burst) || in ___ratelimit() 46 !raw_spin_trylock_irqsave(&rs->lock, flags)) in ___ratelimit() 50 rs->flags &= ~RATELIMIT_INITIALIZED; in ___ratelimit() 60 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) { in ___ratelimit() 61 if (READ_ONCE(rs->flags) & RATELIMIT_INITIALIZED && in ___ratelimit() 67 if (!(rs->flags & RATELIMIT_INITIALIZED)) { in ___ratelimit() 69 rs->flags |= RATELIMIT_INITIALIZED; in ___ratelimit() 83 if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) { in ___ratelimit() 97 raw_spin_unlock_irqrestore(&rs->lock, flags); in ___ratelimit()
|
| A D | ref_tracker.c | 53 unsigned long flags; in ref_tracker_debugfs_mark() local 196 unsigned long flags; in ref_tracker_dir_print() local 198 spin_lock_irqsave(&dir->lock, flags); in ref_tracker_dir_print() 210 unsigned long flags; in ref_tracker_dir_snprint() local 212 spin_lock_irqsave(&dir->lock, flags); in ref_tracker_dir_snprint() 223 unsigned long flags; in ref_tracker_dir_exit() local 232 spin_lock_irqsave(&dir->lock, flags); in ref_tracker_dir_exit() 261 unsigned long flags; in ref_tracker_alloc() local 280 spin_lock_irqsave(&dir->lock, flags); in ref_tracker_alloc() 294 unsigned long flags; in ref_tracker_free() local [all …]
|
| A 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() 69 unsigned long *flags) in _atomic_dec_and_raw_lock_irqsave() argument 76 raw_spin_lock_irqsave(lock, *flags); in _atomic_dec_and_raw_lock_irqsave() 79 raw_spin_unlock_irqrestore(lock, *flags); in _atomic_dec_and_raw_lock_irqsave()
|
| A D | asn1_decoder.c | 181 unsigned char flags = 0; in asn1_ber_decoder() local 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() 327 if (!(flags & FLAG_CONS)) { in asn1_ber_decoder() 328 if (flags & FLAG_INDEFINITE_LENGTH) { in asn1_ber_decoder() 351 if (!(flags & FLAG_CONS)) in asn1_ber_decoder() [all …]
|
| A 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()
|
| A D | debugobjects.c | 735 unsigned long flags; in __debug_object_init() local 809 unsigned long flags; in debug_object_activate() local 866 unsigned long flags; in debug_object_deactivate() local 908 unsigned long flags; in debug_object_destroy() local 955 unsigned long flags; in debug_object_free() local 998 unsigned long flags; in debug_object_assert_init() local 1039 unsigned long flags; in debug_object_active_state() local 1286 unsigned long flags; in check_results() local 1335 unsigned long flags; in debug_objects_selftest() local 1337 local_irq_save(flags); in debug_objects_selftest() [all …]
|
| A D | once.c | 42 bool __do_once_start(bool *done, unsigned long *flags) in __do_once_start() argument 45 spin_lock_irqsave(&once_lock, *flags); in __do_once_start() 47 spin_unlock_irqrestore(&once_lock, *flags); in __do_once_start() 61 unsigned long *flags, struct module *mod) in __do_once_done() argument 65 spin_unlock_irqrestore(&once_lock, *flags); in __do_once_done()
|
| A D | idr.c | 385 unsigned long flags; in ida_alloc_range() local 395 xas_lock_irqsave(&xas, flags); in ida_alloc_range() 453 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 465 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 473 xas_unlock_irqrestore(&xas, flags); in ida_alloc_range() 497 unsigned long flags; in ida_find_first_range() local 506 xa_lock_irqsave(&ida->xa, flags); in ida_find_first_range() 559 unsigned long flags; in ida_free() local 564 xas_lock_irqsave(&xas, flags); in ida_free() 612 unsigned long flags; in ida_destroy() local [all …]
|
| A D | string_helpers.c | 335 if (flags & UNESCAPE_SPACE && in string_unescape() 339 if (flags & UNESCAPE_OCTAL && in string_unescape() 343 if (flags & UNESCAPE_HEX && in string_unescape() 347 if (flags & UNESCAPE_SPECIAL && in string_unescape() 578 unsigned int flags, const char *only) in string_escape_mem() argument 583 bool is_append = flags & ESCAPE_APPEND; in string_escape_mem() 624 if (flags & ESCAPE_SPACE && escape_space(c, &p, end)) in string_escape_mem() 630 if (flags & ESCAPE_NULL && escape_null(c, &p, end)) in string_escape_mem() 634 if (flags & ESCAPE_OCTAL && escape_octal(c, &p, end)) in string_escape_mem() 637 if (flags & ESCAPE_HEX && escape_hex(c, &p, end)) in string_escape_mem() [all …]
|
| A D | ts_bm.c | 82 const u8 icase = conf->flags & TS_IGNORECASE; in bm_find() 133 static void compute_prefix_tbl(struct ts_bm *bm, int flags) in compute_prefix_tbl() argument 141 if (flags & TS_IGNORECASE) in compute_prefix_tbl() 161 gfp_t gfp_mask, int flags) in bm_init() argument 173 conf->flags = flags; in bm_init() 177 if (flags & TS_IGNORECASE) in bm_init() 182 compute_prefix_tbl(bm, flags); in bm_init()
|
| A 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()
|
| A D | logic_pio.c | 43 (new_range->flags == LOGIC_PIO_INDIRECT && !new_range->ops)) in logic_pio_register_range() 56 if (range->flags == LOGIC_PIO_CPU_MMIO && in logic_pio_register_range() 57 new_range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_register_range() 66 } else if (range->flags == LOGIC_PIO_INDIRECT && in logic_pio_register_range() 67 new_range->flags == LOGIC_PIO_INDIRECT) { in logic_pio_register_range() 73 if (new_range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_register_range() 84 } else if (new_range->flags == LOGIC_PIO_INDIRECT) { in logic_pio_register_range() 195 if (!range || range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_trans_hwaddr() 213 if (range->flags != LOGIC_PIO_CPU_MMIO) in logic_pio_trans_cpuaddr()
|
| A D | vsprintf.c | 678 spec.flags |= SIGN; in err_ptr() 743 spec.flags |= SMALL; in pointer_string() 1039 .flags = ZEROPAD, 1046 .flags = ZEROPAD, 1095 .flags = LEFT, in resource_string() 1701 if (!flags) in escaped_string() 2039 flags &= ~mask; in format_flags() 2040 if (flags) { in format_flags() 2047 if (flags) in format_flags() 2125 unsigned long flags; in flags_string() local [all …]
|
| A D | lru_cache.c | 35 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \ 59 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock() 198 lc->flags = 0; in lc_reset() 356 if (test_bit(__LC_STARVING, &lc->flags)) { in __lc_get() 372 if (!(flags & LC_GET_MAY_USE_UNCOMMITTED)) in __lc_get() 390 if (!(flags & LC_GET_MAY_CHANGE)) in __lc_get() 395 test_and_set_bit(__LC_DIRTY, &lc->flags); in __lc_get() 400 if (test_bit(__LC_LOCKED, &lc->flags)) { in __lc_get() 409 set_bit(__LC_STARVING, &lc->flags); in __lc_get() 422 clear_bit(__LC_STARVING, &lc->flags); in __lc_get() [all …]
|
| A D | bug.c | 170 warning = (bug->flags & BUGFLAG_WARNING) != 0; in __report_bug() 171 once = (bug->flags & BUGFLAG_ONCE) != 0; in __report_bug() 172 done = (bug->flags & BUGFLAG_DONE) != 0; in __report_bug() 181 bug->flags |= BUGFLAG_DONE; in __report_bug() 190 if ((bug->flags & BUGFLAG_NO_CUT_HERE) == 0) in __report_bug() 226 bug->flags &= ~BUGFLAG_DONE; in clear_once_table()
|
| /lib/zstd/common/ |
| A D | huf.h | 134 …size_t wkspSize, HUF_CElt* table, const unsigned* count, int flags); /* table is used as scratch s… 136 …ble(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable, int flags); 156 HUF_CElt* hufTable, HUF_repeat* repeat, int flags); 188 int flags); 244 …ble(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable, int flags); 255 HUF_CElt* hufTable, HUF_repeat* repeat, int flags); 257 …t, size_t dstSize, const void* cSrc, size_t cSrcSize, void* workSpace, size_t wkspSize, int flags); 265 …d* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable, int flags); 269 …d* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize, const HUF_DTable* DTable, int flags); 272 …(HUF_DTable* DTable, const void* src, size_t srcSize, void* workSpace, size_t wkspSize, int flags); [all …]
|
| /lib/crypto/mpi/ |
| A D | mpiutil.c | 53 a->flags = 0; in mpi_alloc() 116 if (a->flags & 4) in mpi_free() 121 if (a->flags & ~7) in mpi_free() 142 b->flags = a->flags; in mpi_copy() 143 b->flags &= ~(16|32); /* Reset the immutable and constant flags. */ in mpi_copy()
|
| /lib/kunit/ |
| A D | resource.c | 26 unsigned long flags; in __kunit_add_resource() local 39 spin_lock_irqsave(&test->lock, flags); in __kunit_add_resource() 42 spin_unlock_irqrestore(&test->lock, flags); in __kunit_add_resource() 50 unsigned long flags; in kunit_remove_resource() local 53 spin_lock_irqsave(&test->lock, flags); in kunit_remove_resource() 56 spin_unlock_irqrestore(&test->lock, flags); in kunit_remove_resource()
|
| /lib/zstd/decompress/ |
| A D | huf_decompress.c | 901 if (flags & HUF_flags_bmi2) { in HUF_DGEN() 904 if (!(flags & HUF_flags_disableAsm)) { in HUF_DGEN() 914 if (!(flags & HUF_flags_disableAsm)) { in HUF_DGEN() 919 if (HUF_ENABLE_FAST_DECODE && !(flags & HUF_flags_disableFast)) { in HUF_DGEN() 1723 if (flags & HUF_flags_bmi2) { in HUF_decompress4X2_usingDTable_internal() 1726 if (!(flags & HUF_flags_disableAsm)) { in HUF_decompress4X2_usingDTable_internal() 1736 if (!(flags & HUF_flags_disableAsm)) { in HUF_decompress4X2_usingDTable_internal() 1741 if (HUF_ENABLE_FAST_DECODE && !(flags & HUF_flags_disableFast)) { in HUF_decompress4X2_usingDTable_internal() 1773 workSpace, wkspSize, flags); in HUF_decompress4X2_DCtx_wksp() 1857 cSrcSize, workSpace, wkspSize, flags); in HUF_decompress1X_DCtx_wksp() [all …]
|