/lib/ |
D | cpumask.c | 53 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but() argument 58 for_each_cpu(i, mask) in cpumask_any_but() 77 int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap) in cpumask_next_wrap() argument 82 next = cpumask_next(n, mask); in cpumask_next_wrap() 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() 118 if (!*mask) { in alloc_cpumask_var_node() 124 return *mask != NULL; 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() [all …]
|
D | kfifo.c | 21 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused() 39 fifo->mask = 0; in __kfifo_alloc() 46 fifo->mask = 0; in __kfifo_alloc() 49 fifo->mask = size - 1; in __kfifo_alloc() 62 fifo->mask = 0; in __kfifo_free() 80 fifo->mask = 0; in __kfifo_init() 83 fifo->mask = size - 1; in __kfifo_init() 92 unsigned int size = fifo->mask + 1; in kfifo_copy_in() 96 off &= fifo->mask; in kfifo_copy_in() 131 unsigned int size = fifo->mask + 1; in kfifo_copy_out() [all …]
|
D | stmp_device.c | 26 static int stmp_clear_poll_bit(void __iomem *addr, u32 mask) in stmp_clear_poll_bit() argument 30 writel(mask, addr + STMP_OFFSET_REG_CLR); in stmp_clear_poll_bit() 32 while ((readl(addr) & mask) && --timeout) in stmp_clear_poll_bit()
|
D | nmi_backtrace.c | 36 void nmi_trigger_cpumask_backtrace(const cpumask_t *mask, in nmi_trigger_cpumask_backtrace() argument 38 void (*raise)(cpumask_t *mask)) in nmi_trigger_cpumask_backtrace() argument 51 cpumask_copy(to_cpumask(backtrace_mask), mask); in nmi_trigger_cpumask_backtrace()
|
D | devres.c | 369 int pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name) in pcim_iomap_regions() argument 381 if (!(mask & (1 << i))) in pcim_iomap_regions() 404 if (!(mask & (1 << i))) in pcim_iomap_regions() 422 int pcim_iomap_regions_request_all(struct pci_dev *pdev, int mask, in pcim_iomap_regions_request_all() argument 425 int request_mask = ((1 << 6) - 1) & ~mask; in pcim_iomap_regions_request_all() 432 rc = pcim_iomap_regions(pdev, mask, name); in pcim_iomap_regions_request_all() 446 void pcim_iounmap_regions(struct pci_dev *pdev, int mask) in pcim_iounmap_regions() argument 456 if (!(mask & (1 << i))) in pcim_iounmap_regions()
|
D | test_bitfield.c | 102 #define CHECK(tp, mask) do { \ argument 105 for (v = 0; v < 1 << hweight32(mask); v++) \ 106 if (tp##_encode_bits(v, mask) != v << __ffs64(mask)) \
|
D | bitmap.c | 106 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right() local 119 upper &= mask; in __bitmap_shift_right() 124 lower &= mask; in __bitmap_shift_right() 1039 unsigned long mask; /* bitmask for one long of region */ in __reg_op() local 1057 mask = (1UL << (nbitsinlong - 1)); in __reg_op() 1058 mask += mask - 1; in __reg_op() 1059 mask <<= offset; in __reg_op() 1064 if (bitmap[index + i] & mask) in __reg_op() 1072 bitmap[index + i] |= mask; in __reg_op() 1077 bitmap[index + i] &= ~mask; in __reg_op()
|
D | cpu_rmap.c | 95 const struct cpumask *mask, u16 dist) in cpu_rmap_copy_neigh() argument 99 for_each_cpu(neigh, mask) { in cpu_rmap_copy_neigh() 250 irq_cpu_rmap_notify(struct irq_affinity_notify *notify, const cpumask_t *mask) in irq_cpu_rmap_notify() argument 256 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify()
|
D | bch.c | 446 unsigned int tmp, mask; in solve_linear_system() local 450 mask = 1 << m; in solve_linear_system() 458 if (rows[r] & mask) { in solve_linear_system() 472 if (rows[r] & mask) in solve_linear_system() 479 mask >>= 1; in solve_linear_system() 506 mask = rows[r] & (tmp|1); in solve_linear_system() 507 tmp |= parity(mask) << (m-r); in solve_linear_system() 524 unsigned int mask = 0xff, t, rows[16] = {0,}; in find_affine4_roots() local 542 for (j = 8; j != 0; j >>= 1, mask ^= (mask << j)) { in find_affine4_roots() 544 t = ((rows[k] >> j)^rows[k+j]) & mask; in find_affine4_roots()
|
D | sbitmap.c | 17 unsigned long mask, val; in sbitmap_deferred_clear() local 29 mask = xchg(&sb->map[index].cleared, 0); in sbitmap_deferred_clear() 36 } while (cmpxchg(&sb->map[index].word, val, val & ~mask) != val); in sbitmap_deferred_clear() 245 unsigned long mask = word->word & ~word->cleared; in sbitmap_any_bit_clear() local 248 ret = find_first_zero_bit(&mask, word->depth); in sbitmap_any_bit_clear()
|
D | dynamic_debug.c | 141 unsigned int flags, unsigned int mask) in ddebug_change() argument 190 newflags = (dp->flags & mask) | flags; in ddebug_change() 448 unsigned int flags = 0, mask = 0; in ddebug_exec_query() local 460 if (ddebug_parse_flags(words[nwords-1], &flags, &mask)) { in ddebug_exec_query() 469 nfound = ddebug_change(&query, flags, mask); in ddebug_exec_query()
|
D | xarray.c | 415 unsigned long mask = xas_size(xas) - 1; in xas_max() local 416 max |= mask; in xas_max() 417 if (mask == max) in xas_max() 1835 unsigned long mask; in xas_sibling() local 1839 mask = (XA_CHUNK_SIZE << node->shift) - 1; in xas_sibling() 1840 return (xas->xa_index & mask) > (xas->xa_offset << node->shift); in xas_sibling()
|
D | vsprintf.c | 460 int mask = spec.base - 1; in number() local 466 tmp[i++] = (hex_asc_upper[((unsigned char)num) & mask] | locase); in number() 1838 unsigned long mask; in format_flags() local 1841 mask = names->mask; in format_flags() 1842 if ((flags & mask) != mask) in format_flags() 1847 flags &= ~mask; in format_flags()
|
/lib/zlib_inflate/ |
D | inftrees.c | 38 unsigned mask; /* mask for low root bits */ in zlib_inflate_table() local 195 mask = used - 1; /* mask for comparing low */ in zlib_inflate_table() 246 if (len > root && (huff & mask) != low) { in zlib_inflate_table() 270 low = huff & mask; in zlib_inflate_table() 289 if (drop != 0 && (huff & mask) != low) { in zlib_inflate_table()
|
/lib/vdso/ |
D | gettimeofday.c | 35 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument 37 return ((cycles - last) & mask) * mult; in vdso_calc_delta() 56 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres()
|
/lib/xz/ |
D | xz_dec_bcj.c | 214 uint32_t mask; in bcj_ia64() local 223 mask = branch_table[buf[i] & 0x1F]; in bcj_ia64() 225 if (((mask >> slot) & 1) == 0) in bcj_ia64()
|
D | xz_dec_lzma2.c | 555 uint32_t mask; in rc_direct() local 561 mask = (uint32_t)0 - (rc->code >> 31); in rc_direct() 562 rc->code += rc->range & mask; in rc_direct() 563 *dest = (*dest << 1) + (mask + 1); in rc_direct()
|
/lib/zstd/ |
D | compress.c | 1791 #define NEXT_IN_CHAIN(d, mask) chainTable[(d)&mask] argument
|