/lib/ |
D | cpumask.c | 51 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but() argument 56 for_each_cpu(i, mask) in cpumask_any_but() 75 int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap) in cpumask_next_wrap() argument 80 next = cpumask_next(n, mask); in cpumask_next_wrap() 111 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in alloc_cpumask_var_node() argument 113 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node() 116 if (!*mask) { in alloc_cpumask_var_node() 122 return *mask != NULL; in alloc_cpumask_var_node() 126 bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in zalloc_cpumask_var_node() argument 128 return alloc_cpumask_var_node(mask, flags | __GFP_ZERO, node); in zalloc_cpumask_var_node() [all …]
|
D | kfifo.c | 35 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused() 53 fifo->mask = 0; in __kfifo_alloc() 60 fifo->mask = 0; in __kfifo_alloc() 63 fifo->mask = size - 1; in __kfifo_alloc() 76 fifo->mask = 0; in __kfifo_free() 94 fifo->mask = 0; in __kfifo_init() 97 fifo->mask = size - 1; in __kfifo_init() 106 unsigned int size = fifo->mask + 1; in kfifo_copy_in() 110 off &= fifo->mask; in kfifo_copy_in() 145 unsigned int size = fifo->mask + 1; in kfifo_copy_out() [all …]
|
D | stmp_device.c | 30 static int stmp_clear_poll_bit(void __iomem *addr, u32 mask) in stmp_clear_poll_bit() argument 34 writel(mask, addr + STMP_OFFSET_REG_CLR); in stmp_clear_poll_bit() 36 while ((readl(addr) & mask) && --timeout) in stmp_clear_poll_bit()
|
D | devres.c | 337 int pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name) in pcim_iomap_regions() argument 349 if (!(mask & (1 << i))) in pcim_iomap_regions() 372 if (!(mask & (1 << i))) in pcim_iomap_regions() 390 int pcim_iomap_regions_request_all(struct pci_dev *pdev, int mask, in pcim_iomap_regions_request_all() argument 393 int request_mask = ((1 << 6) - 1) & ~mask; in pcim_iomap_regions_request_all() 400 rc = pcim_iomap_regions(pdev, mask, name); in pcim_iomap_regions_request_all() 414 void pcim_iounmap_regions(struct pci_dev *pdev, int mask) in pcim_iounmap_regions() argument 424 if (!(mask & (1 << i))) in pcim_iounmap_regions()
|
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 | bitmap.c | 91 unsigned long mask = BITMAP_LAST_WORD_MASK(nbits); in __bitmap_shift_right() local 104 upper &= mask; in __bitmap_shift_right() 109 lower &= mask; in __bitmap_shift_right() 998 unsigned long mask; /* bitmask for one long of region */ in __reg_op() local 1016 mask = (1UL << (nbitsinlong - 1)); in __reg_op() 1017 mask += mask - 1; in __reg_op() 1018 mask <<= offset; in __reg_op() 1023 if (bitmap[index + i] & mask) in __reg_op() 1031 bitmap[index + i] |= mask; in __reg_op() 1036 bitmap[index + i] &= ~mask; in __reg_op() [all …]
|
D | iommu-common.c | 102 unsigned long mask, in iommu_tbl_range_alloc() argument 154 if (limit + shift > mask) { in iommu_tbl_range_alloc() 155 limit = mask - shift + 1; in iommu_tbl_range_alloc() 160 if ((start & mask) >= limit || pass > 0) { in iommu_tbl_range_alloc() 166 start &= mask; in iommu_tbl_range_alloc()
|
D | cpu_rmap.c | 98 const struct cpumask *mask, u16 dist) in cpu_rmap_copy_neigh() argument 102 for_each_cpu(neigh, mask) { in cpu_rmap_copy_neigh() 253 irq_cpu_rmap_notify(struct irq_affinity_notify *notify, const cpumask_t *mask) in irq_cpu_rmap_notify() argument 259 rc = cpu_rmap_update(glue->rmap, glue->index, mask); in irq_cpu_rmap_notify()
|
D | swiotlb.c | 501 unsigned long mask; in swiotlb_tbl_map_single() local 511 mask = dma_get_seg_boundary(hwdev); in swiotlb_tbl_map_single() 513 tbl_dma_addr &= mask; in swiotlb_tbl_map_single() 520 max_slots = mask + 1 in swiotlb_tbl_map_single() 521 ? ALIGN(mask + 1, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT in swiotlb_tbl_map_single() 1082 swiotlb_dma_supported(struct device *hwdev, u64 mask) in swiotlb_dma_supported() argument 1084 return swiotlb_phys_to_dma(hwdev, io_tlb_end - 1) <= mask; in swiotlb_dma_supported()
|
D | bch.c | 436 unsigned int tmp, mask; in solve_linear_system() local 440 mask = 1 << m; in solve_linear_system() 448 if (rows[r] & mask) { in solve_linear_system() 462 if (rows[r] & mask) in solve_linear_system() 469 mask >>= 1; in solve_linear_system() 496 mask = rows[r] & (tmp|1); in solve_linear_system() 497 tmp |= parity(mask) << (m-r); in solve_linear_system() 514 unsigned int mask = 0xff, t, rows[16] = {0,}; in find_affine4_roots() local 532 for (j = 8; j != 0; j >>= 1, mask ^= (mask << j)) { in find_affine4_roots() 534 t = ((rows[k] >> j)^rows[k+j]) & mask; in find_affine4_roots()
|
D | dynamic_debug.c | 139 unsigned int flags, unsigned int mask) in ddebug_change() argument 188 newflags = (dp->flags & mask) | flags; in ddebug_change() 446 unsigned int flags = 0, mask = 0; in ddebug_exec_query() local 458 if (ddebug_parse_flags(words[nwords-1], &flags, &mask)) { in ddebug_exec_query() 467 nfound = ddebug_change(&query, flags, mask); in ddebug_exec_query()
|
D | vsprintf.c | 448 int mask = spec.base - 1; in number() local 454 tmp[i++] = (hex_asc_upper[((unsigned char)num) & mask] | locase); in number() 1464 unsigned long mask; in format_flags() local 1477 mask = names->mask; in format_flags() 1478 if ((flags & mask) != mask) in format_flags() 1483 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/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
|