/lib/ |
H A D | ratelimit.c | 30 unsigned long flags; local 42 if (!raw_spin_trylock_irqsave(&rs->lock, flags)) 63 raw_spin_unlock_irqrestore(&rs->lock, flags);
|
H A D | pci_iomap.c | 30 unsigned long flags = pci_resource_flags(dev, bar); local 36 if (flags & IORESOURCE_IO) 38 if (flags & IORESOURCE_MEM) { 39 if (flags & IORESOURCE_CACHEABLE)
|
H A D | show_mem.c | 21 unsigned long flags; local 24 pgdat_resize_lock(pgdat, &flags); 36 pgdat_resize_unlock(pgdat, &flags);
|
H A D | atomic64.c | 51 unsigned long flags; local 55 raw_spin_lock_irqsave(lock, flags); 57 raw_spin_unlock_irqrestore(lock, flags); 64 unsigned long flags; local 67 raw_spin_lock_irqsave(lock, flags); 69 raw_spin_unlock_irqrestore(lock, flags); 76 unsigned long flags; \ 79 raw_spin_lock_irqsave(lock, flags); \ 81 raw_spin_unlock_irqrestore(lock, flags); \ 88 unsigned long flags; \ 112 unsigned long flags; local 127 unsigned long flags; local 142 unsigned long flags; local 156 unsigned long flags; local [all...] |
H A D | cpumask.c | 71 * @flags: GFP_ flags 82 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) argument 84 *mask = kmalloc_node(cpumask_size(), flags, node); 104 bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) argument 106 return alloc_cpumask_var_node(mask, flags | __GFP_ZERO, node); 113 * @flags: GFP_ flags 120 bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) argument 122 return alloc_cpumask_var_node(mask, flags, NUMA_NO_NOD 126 zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) argument [all...] |
H A D | percpu-refcount.c | 48 * @flags: PERCPU_REF_INIT_* flags 51 * Initializes @ref. If @flags is zero, @ref starts in percpu mode with a 53 * definitions of PERCPU_REF_INIT_* flags for flag behaviors. 59 unsigned int flags, gfp_t gfp) 70 ref->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; 72 if (flags & (PERCPU_REF_INIT_ATOMIC | PERCPU_REF_INIT_DEAD)) 77 if (flags & PERCPU_REF_INIT_DEAD) 58 percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release, unsigned int flags, gfp_t gfp) argument
|
H A D | textsearch.c | 58 * the pattern to look for and flags. As a flag, you can set TS_IGNORECASE 249 * @flags: search flags 262 unsigned int len, gfp_t gfp_mask, int flags) 278 if (ops == NULL && flags & TS_AUTOLOAD) { 287 conf = ops->init(pattern, len, gfp_mask, flags); 261 textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags) argument
|
H A D | ts_kmp.c | 51 const int icase = conf->flags & TS_IGNORECASE; 79 unsigned int *prefix_tbl, int flags) 82 const u8 icase = flags & TS_IGNORECASE; 96 gfp_t gfp_mask, int flags) 108 conf->flags = flags; 111 compute_prefix_tbl(pattern, len, kmp->prefix_tbl, flags); 113 if (flags & TS_IGNORECASE) 78 compute_prefix_tbl(const u8 *pattern, unsigned int len, unsigned int *prefix_tbl, int flags) argument 95 kmp_init(const void *pattern, unsigned int len, gfp_t gfp_mask, int flags) argument
|
H A D | asn1_decoder.c | 177 unsigned char flags = 0; local 212 flags & FLAG_MATCHED) || 218 flags = 0; 237 flags |= optag & FLAG_CONS; 253 flags |= FLAG_MATCHED; 261 flags |= FLAG_INDEFINITE_LENGTH; 280 if (flags & FLAG_CONS) { 288 if (!(flags & FLAG_INDEFINITE_LENGTH)) { 298 tag, len, flags & FLAG_CONS ? " CONS" : ""); 325 if (!(flags [all...] |
H A D | cpu_rmap.c | 26 * @flags: Allocation flags e.g. %GFP_KERNEL 28 struct cpu_rmap *alloc_cpu_rmap(unsigned int size, gfp_t flags) argument 42 rmap = kzalloc(obj_offset + size * sizeof(rmap->obj[0]), flags);
|
H A D | flex_array.c | 51 * @flags: page allocation flags to use for base array 89 gfp_t flags) 105 ret = kzalloc(sizeof(struct flex_array), flags); 112 if (elements_fit_in_base(ret) && !(flags & __GFP_ZERO)) 166 __fa_get_part(struct flex_array *fa, int part_nr, gfp_t flags) argument 170 part = kmalloc(sizeof(struct flex_array_part), flags); 173 if (!(flags & __GFP_ZERO)) 187 * @flags: page allocation flags t 88 flex_array_alloc(int element_size, unsigned int total, gfp_t flags) argument 198 flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src, gfp_t flags) argument 268 flex_array_prealloc(struct flex_array *fa, unsigned int start, unsigned int nr_elements, gfp_t flags) argument [all...] |
H A D | flex_proportions.c | 66 unsigned long flags; local 68 local_irq_save(flags); 74 local_irq_restore(flags); 84 local_irq_restore(flags); 109 unsigned long flags; local 114 raw_spin_lock_irqsave(&pl->lock, flags); 117 raw_spin_unlock_irqrestore(&pl->lock, flags); 126 raw_spin_unlock_irqrestore(&pl->lock, flags); 192 unsigned long flags; local 197 raw_spin_lock_irqsave(&pl->lock, flags); [all...] |
H A D | percpu_counter.c | 63 unsigned long flags; local 65 raw_spin_lock_irqsave(&fbc->lock, flags); 71 raw_spin_unlock_irqrestore(&fbc->lock, flags); 82 unsigned long flags; local 83 raw_spin_lock_irqsave(&fbc->lock, flags); 86 raw_spin_unlock_irqrestore(&fbc->lock, flags); 102 unsigned long flags; local 104 raw_spin_lock_irqsave(&fbc->lock, flags); 110 raw_spin_unlock_irqrestore(&fbc->lock, flags); 118 unsigned long flags __maybe_unuse 183 unsigned long flags; local [all...] |
H A D | percpu_ida.c | 151 unsigned long flags; local 154 local_irq_save(flags); 160 local_irq_restore(flags); 190 local_irq_restore(flags); 202 local_irq_save(flags); 222 unsigned long flags; local 227 local_irq_save(flags); 259 local_irq_restore(flags); 347 unsigned long flags; local 351 local_irq_save(flags); [all...] |
H A D | proportions.c | 110 unsigned long flags; local 124 local_irq_save(flags); 137 local_irq_restore(flags); 217 unsigned long flags; local 229 raw_spin_lock_irqsave(&pl->lock, flags); 250 raw_spin_unlock_irqrestore(&pl->lock, flags); 347 unsigned long flags; local 359 raw_spin_lock_irqsave(&pl->lock, flags); 370 raw_spin_unlock_irqrestore(&pl->lock, flags);
|
H A D | test-string_helpers.c | 14 static __init bool test_string_check_buf(const char *name, unsigned int flags, argument 22 pr_warn("Test '%s' failed: flags = %u\n", name, flags); 37 unsigned int flags; member in struct:test_string 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, argument 83 /* Copy expected result for given flags */ 116 unsigned int flags; member in struct:test_string_1 241 test_string_find_match(const struct test_string_2 *s2, unsigned int flags) argument 263 test_string_escape(const char *name, const struct test_string_2 *s2, unsigned int flags, const char *esc) argument [all...] |
H A D | ts_bm.c | 68 const u8 icase = conf->flags & TS_IGNORECASE; 118 static void compute_prefix_tbl(struct ts_bm *bm, int flags) argument 126 if (flags & TS_IGNORECASE) 146 gfp_t gfp_mask, int flags) 158 conf->flags = flags; 162 if (flags & TS_IGNORECASE) 167 compute_prefix_tbl(bm, flags); 145 bm_init(const void *pattern, unsigned int len, gfp_t gfp_mask, int flags) argument
|
H A D | ts_fsm.c | 46 /* Map to _ctype flags and some magic numbers */ 260 gfp_t gfp_mask, int flags) 272 if (flags & TS_IGNORECASE) 290 conf->flags = flags; 259 fsm_init(const void *pattern, unsigned int len, gfp_t gfp_mask, int flags) argument
|
H A D | crc32.c | 984 unsigned long flags; local 999 local_irq_save(flags); 1010 local_irq_restore(flags); 1070 unsigned long flags; local 1088 local_irq_save(flags); 1103 local_irq_restore(flags);
|
H A D | lru_cache.c | 43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \ 47 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \ 63 * Because of PARANOIA_ENTRY() above abusing lc->flags as well, 65 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED); 71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); 80 old = lc->flags & LC_PARANOIA; 82 val = cmpxchg(&lc->flags, old, new); 220 lc->flags = 0; 368 /* used as internal flags to __lc_get */ 374 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) argument [all...] |
H A D | random32.c | 248 unsigned long flags; local 262 if (!spin_trylock_irqsave(&lock, flags)) 283 spin_unlock_irqrestore(&lock, flags);
|
H A D | string_helpers.c | 178 * @flags: combination of the flags (bitwise OR): 211 int string_unescape(char *src, char *dst, size_t size, unsigned int flags) argument 220 if (flags & UNESCAPE_SPACE && 224 if (flags & UNESCAPE_OCTAL && 228 if (flags & UNESCAPE_HEX && 232 if (flags & UNESCAPE_SPECIAL && 390 * @flags: combination of the flags (bitwise OR): 423 * 3. The character is checked if it falls into the class given by @flags 440 string_escape_mem(const char *src, size_t isz, char **dst, size_t osz, unsigned int flags, const char *esc) argument [all...] |
H A D | idr.c | 70 unsigned long flags; local 72 spin_lock_irqsave(&idp->lock, flags); 78 spin_unlock_irqrestore(&idp->lock, flags); 163 unsigned long flags; local 168 spin_lock_irqsave(&idp->lock, flags); 170 spin_unlock_irqrestore(&idp->lock, flags); 296 unsigned long flags; local 328 spin_lock_irqsave(&idp->lock, flags); 336 spin_unlock_irqrestore(&idp->lock, flags); 437 * @gfp_mask: memory allocation flags 871 unsigned long flags; local 937 unsigned long flags; local 1084 unsigned long flags; local 1126 unsigned long flags; local [all...] |
H A D | rhashtable.c | 110 static struct bucket_table *bucket_table_alloc(size_t nbuckets, gfp_t flags) argument 116 tbl = kzalloc(size, flags); 203 * @flags: allocation flags 214 int rhashtable_expand(struct rhashtable *ht, gfp_t flags) argument 226 new_tbl = bucket_table_alloc(old_tbl->size * 2, flags); 284 * @flags: allocation flags 292 int rhashtable_shrink(struct rhashtable *ht, gfp_t flags) argument 303 ntbl = bucket_table_alloc(tbl->size / 2, flags); 352 rhashtable_insert(struct rhashtable *ht, struct rhash_head *obj, gfp_t flags) argument 381 rhashtable_remove_pprev(struct rhashtable *ht, struct rhash_head *obj, struct rhash_head __rcu **pprev, gfp_t flags) argument 413 rhashtable_remove(struct rhashtable *ht, struct rhash_head *obj, gfp_t flags) argument [all...] |
/lib/zlib_inflate/ |
H A D | inflate.h | 17 FLAGS, /* i: waiting for method and flags (gzip) */ 19 OS, /* i: waiting for extra flags and operating system (gzip) */ 77 int flags; /* gzip header method and flags (0 if zlib) */ member in struct:inflate_state
|