Searched refs:mask (Results 1 – 7 of 7) sorted by relevance
/lib/ |
D | cpumask.c | 28 int __any_online_cpu(const cpumask_t *mask) in __any_online_cpu() argument 32 for_each_cpu_mask(cpu, *mask) { in __any_online_cpu() 66 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but() argument 71 for_each_cpu(i, mask) in cpumask_any_but() 93 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in alloc_cpumask_var_node() argument 96 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node() 102 *mask = NULL; in alloc_cpumask_var_node() 105 if (!*mask) { in alloc_cpumask_var_node() 111 if (*mask) { in alloc_cpumask_var_node() 114 memset(cpumask_bits(*mask) + cpumask_size() - tail, in alloc_cpumask_var_node() [all …]
|
D | prio_tree.c | 192 unsigned long r_index, h_index, index, mask; in prio_tree_insert() local 202 mask = 1UL << (root->index_bits - 1); in prio_tree_insert() 204 while (mask) { in prio_tree_insert() 229 if (index & mask) { in prio_tree_insert() 247 mask >>= 1; in prio_tree_insert() 249 if (!mask) { in prio_tree_insert() 250 mask = 1UL << (BITS_PER_LONG - 1); in prio_tree_insert() 326 iter->mask >>= 1; in prio_tree_left() 327 if (iter->mask) { in prio_tree_left() 335 iter->mask = ULONG_MAX; in prio_tree_left() [all …]
|
D | devres.c | 255 int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name) in pcim_iomap_regions() argument 267 if (!(mask & (1 << i))) in pcim_iomap_regions() 290 if (!(mask & (1 << i))) in pcim_iomap_regions() 308 int pcim_iomap_regions_request_all(struct pci_dev *pdev, u16 mask, in pcim_iomap_regions_request_all() argument 311 int request_mask = ((1 << 6) - 1) & ~mask; in pcim_iomap_regions_request_all() 318 rc = pcim_iomap_regions(pdev, mask, name); in pcim_iomap_regions_request_all() 332 void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask) in pcim_iounmap_regions() argument 342 if (!(mask & (1 << i))) in pcim_iounmap_regions()
|
D | bitmap.c | 114 unsigned long mask = (1UL << left) - 1; in __bitmap_shift_right() local 127 upper &= mask; in __bitmap_shift_right() 131 lower &= mask; in __bitmap_shift_right() 134 dst[k] &= mask; in __bitmap_shift_right() 890 unsigned long mask; /* bitmask for one long of region */ in __reg_op() local 908 mask = (1UL << (nbitsinlong - 1)); in __reg_op() 909 mask += mask - 1; in __reg_op() 910 mask <<= offset; in __reg_op() 915 if (bitmap[index + i] & mask) in __reg_op() 923 bitmap[index + i] |= mask; in __reg_op() [all …]
|
D | swiotlb.c | 380 unsigned long mask; in map_single() local 384 mask = dma_get_seg_boundary(hwdev); in map_single() 385 start_dma_addr = swiotlb_virt_to_bus(hwdev, io_tlb_start) & mask; in map_single() 392 max_slots = mask + 1 in map_single() 393 ? ALIGN(mask + 1, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT in map_single() 933 swiotlb_dma_supported(struct device *hwdev, u64 mask) in swiotlb_dma_supported() argument 935 return swiotlb_virt_to_bus(hwdev, io_tlb_end - 1) <= mask; in swiotlb_dma_supported()
|
D | vsprintf.c | 445 int mask = base - 1; in number() local 449 tmp[i++] = (digits[((unsigned char)num) & mask] | locase); in number()
|
/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()
|