/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 | find_bit.c | 35 unsigned long tmp, mask; in _find_next_bit() local 46 mask = BITMAP_FIRST_WORD_MASK(start); in _find_next_bit() 48 mask = swab(mask); in _find_next_bit() 50 tmp &= mask; in _find_next_bit()
|
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 | 411 int pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name) in pcim_iomap_regions() argument 423 if (!(mask & (1 << i))) in pcim_iomap_regions() 446 if (!(mask & (1 << i))) in pcim_iomap_regions() 464 int pcim_iomap_regions_request_all(struct pci_dev *pdev, int mask, in pcim_iomap_regions_request_all() argument 467 int request_mask = ((1 << 6) - 1) & ~mask; in pcim_iomap_regions_request_all() 474 rc = pcim_iomap_regions(pdev, mask, name); in pcim_iomap_regions_request_all() 488 void pcim_iounmap_regions(struct pci_dev *pdev, int mask) in pcim_iounmap_regions() argument 498 if (!(mask & (1 << i))) in pcim_iounmap_regions()
|
D | strncpy_from_user.c | 38 unsigned long c, data, mask; in do_strncpy_from_user() local 57 mask = zero_bytemask(data); in do_strncpy_from_user() 58 *(unsigned long *)(dst+res) = c & mask; in do_strncpy_from_user()
|
D | bitfield_kunit.c | 95 #define CHECK(tp, mask) do { \ argument 98 for (v = 0; v < 1 << hweight32(mask); v++) \ 100 tp##_encode_bits(v, mask) != v << __ffs64(mask));\
|
D | bitmap.c | 108 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right() local 121 upper &= mask; in __bitmap_shift_right() 126 lower &= mask; in __bitmap_shift_right() 296 const unsigned long *mask, unsigned int nbits) in __bitmap_replace() argument 302 dst[k] = (old[k] & ~mask[k]) | (new[k] & mask[k]); in __bitmap_replace() 1116 unsigned long mask; /* bitmask for one long of region */ in __reg_op() local 1134 mask = (1UL << (nbitsinlong - 1)); in __reg_op() 1135 mask += mask - 1; in __reg_op() 1136 mask <<= offset; in __reg_op() 1141 if (bitmap[index + i] & mask) in __reg_op() [all …]
|
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() 251 irq_cpu_rmap_notify(struct irq_affinity_notify *notify, const cpumask_t *mask) in irq_cpu_rmap_notify() argument 257 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify()
|
D | bch.c | 503 unsigned int tmp, mask; in solve_linear_system() local 507 mask = 1 << m; in solve_linear_system() 515 if (rows[r] & mask) { in solve_linear_system() 529 if (rows[r] & mask) in solve_linear_system() 536 mask >>= 1; in solve_linear_system() 563 mask = rows[r] & (tmp|1); in solve_linear_system() 564 tmp |= parity(mask) << (m-r); in solve_linear_system() 581 unsigned int mask = 0xff, t, rows[16] = {0,}; in find_affine4_roots() local 599 for (j = 8; j != 0; j >>= 1, mask ^= (mask << j)) { in find_affine4_roots() 601 t = ((rows[k] >> j)^rows[k+j]) & mask; in find_affine4_roots()
|
D | dynamic_debug.c | 67 unsigned int mask; member 205 newflags = (dp->flags & modifiers->mask) | modifiers->flags; in ddebug_change() 474 modifiers->mask = 0; in ddebug_parse_flags() 477 modifiers->mask = ~0U; in ddebug_parse_flags() 480 modifiers->mask = ~modifiers->flags; in ddebug_parse_flags() 484 vpr_info("*flagsp=0x%x *maskp=0x%x\n", modifiers->flags, modifiers->mask); in ddebug_parse_flags()
|
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()
|
D | xarray.c | 418 unsigned long mask = xas_size(xas) - 1; in xas_max() local 419 max |= mask; in xas_max() 420 if (mask == max) in xas_max() 1006 unsigned int mask = xas->xa_sibs; in xas_split_alloc() local 1024 if ((i & mask) == 0) { in xas_split_alloc() 2033 unsigned long mask; in xas_sibling() local 2037 mask = (XA_CHUNK_SIZE << node->shift) - 1; in xas_sibling() 2038 return (xas->xa_index & mask) > in xas_sibling()
|
D | vsprintf.c | 496 int mask = spec.base - 1; in number() local 502 tmp[i++] = (hex_asc_upper[((unsigned char)num) & mask] | locase); in number() 1941 unsigned long mask; in format_flags() local 1944 mask = names->mask; in format_flags() 1945 if ((flags & mask) != mask) in format_flags() 1950 flags &= ~mask; in format_flags()
|
D | nlattr.c | 350 if (value & ~(u64)pt->mask) { in nla_validate_mask()
|
/lib/crypto/ |
D | poly1305-donna32.c | 127 u32 mask; in poly1305_core_emit() local 168 mask = (g4 >> ((sizeof(u32) * 8) - 1)) - 1; in poly1305_core_emit() 169 g0 &= mask; in poly1305_core_emit() 170 g1 &= mask; in poly1305_core_emit() 171 g2 &= mask; in poly1305_core_emit() 172 g3 &= mask; in poly1305_core_emit() 173 g4 &= mask; in poly1305_core_emit() 174 mask = ~mask; in poly1305_core_emit() 176 h0 = (h0 & mask) | g0; in poly1305_core_emit() 177 h1 = (h1 & mask) | g1; in poly1305_core_emit() [all …]
|
D | curve25519-hacl64.c | 705 u64 mask = (((mask0 & mask1) & mask2) & mask3) & mask4; in format_fcontract_trim() local 706 u64 a0_ = a0 - (0x7ffffffffffedLLU & mask); in format_fcontract_trim() 707 u64 a1_ = a1 - (0x7ffffffffffffLLU & mask); in format_fcontract_trim() 708 u64 a2_ = a2 - (0x7ffffffffffffLLU & mask); in format_fcontract_trim() 709 u64 a3_ = a3 - (0x7ffffffffffffLLU & mask); in format_fcontract_trim() 710 u64 a4_ = a4 - (0x7ffffffffffffLLU & mask); in format_fcontract_trim()
|
/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/mpi/ |
D | mpiutil.c | 304 mpi_limb_t mask = ((mpi_limb_t)0) - swap; in mpi_swap_cond() local 315 x = mask & (a->d[i] ^ b->d[i]); in mpi_swap_cond() 320 x = mask & (a->nlimbs ^ b->nlimbs); in mpi_swap_cond() 324 x = mask & (a->sign ^ b->sign); in mpi_swap_cond()
|
D | ec.c | 186 mpi_limb_t mask = ((mpi_limb_t)0) - set; in mpih_set_cond() local 190 x = mask & (wp[i] ^ up[i]); in mpih_set_cond()
|
/lib/vdso/ |
D | gettimeofday.c | 14 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument 16 return ((cycles - last) & mask) * mult; in vdso_calc_delta() 76 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres_timens() 146 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 | 572 uint32_t mask; in rc_direct() local 578 mask = (uint32_t)0 - (rc->code >> 31); in rc_direct() 579 rc->code += rc->range & mask; in rc_direct() 580 *dest = (*dest << 1) + (mask + 1); in rc_direct()
|
/lib/zstd/ |
D | compress.c | 1791 #define NEXT_IN_CHAIN(d, mask) chainTable[(d)&mask] argument
|