Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 61) sorted by relevance

123

/tools/testing/radix-tree/linux/bitops/
Dnon-atomic.h20 unsigned long mask = BITOP_MASK(nr); in __set_bit() local
23 *p |= mask; in __set_bit()
28 unsigned long mask = BITOP_MASK(nr); in __clear_bit() local
31 *p &= ~mask; in __clear_bit()
45 unsigned long mask = BITOP_MASK(nr); in __change_bit() local
48 *p ^= mask; in __change_bit()
62 unsigned long mask = BITOP_MASK(nr); in __test_and_set_bit() local
66 *p = old | mask; in __test_and_set_bit()
67 return (old & mask) != 0; in __test_and_set_bit()
81 unsigned long mask = BITOP_MASK(nr); in __test_and_clear_bit() local
[all …]
/tools/testing/radix-tree/linux/
Dbitops.h20 unsigned long mask = BITOP_MASK(nr); in __set_bit() local
23 *p |= mask; in __set_bit()
28 unsigned long mask = BITOP_MASK(nr); in __clear_bit() local
31 *p &= ~mask; in __clear_bit()
45 unsigned long mask = BITOP_MASK(nr); in __change_bit() local
48 *p ^= mask; in __change_bit()
62 unsigned long mask = BITOP_MASK(nr); in __test_and_set_bit() local
66 *p = old | mask; in __test_and_set_bit()
67 return (old & mask) != 0; in __test_and_set_bit()
81 unsigned long mask = BITOP_MASK(nr); in __test_and_clear_bit() local
[all …]
Dslab.h10 static inline int gfpflags_allow_blocking(gfp_t mask) in gfpflags_allow_blocking() argument
/tools/perf/trace/beauty/
Dfutex_op.c35 P_FUTEX_OP(WAIT); arg->mask |= SCF_VAL3|SCF_UADDR2; break; in syscall_arg__scnprintf_futex_op()
36 P_FUTEX_OP(WAKE); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
37 P_FUTEX_OP(FD); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
38 P_FUTEX_OP(REQUEUE); arg->mask |= SCF_VAL3|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
39 P_FUTEX_OP(CMP_REQUEUE); arg->mask |= SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
40 P_FUTEX_OP(CMP_REQUEUE_PI); arg->mask |= SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
42 P_FUTEX_OP(LOCK_PI); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
43 P_FUTEX_OP(UNLOCK_PI); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
44 P_FUTEX_OP(TRYLOCK_PI); arg->mask |= SCF_VAL3|SCF_UADDR2; break; in syscall_arg__scnprintf_futex_op()
45 P_FUTEX_OP(WAIT_BITSET); arg->mask |= SCF_UADDR2; break; in syscall_arg__scnprintf_futex_op()
[all …]
/tools/testing/selftests/powerpc/
Dutils.c65 cpu_set_t mask; in pick_online_cpu() local
68 CPU_ZERO(&mask); in pick_online_cpu()
70 if (sched_getaffinity(0, sizeof(mask), &mask)) { in pick_online_cpu()
77 if (CPU_ISSET(cpu, &mask)) in pick_online_cpu()
82 if (CPU_ISSET(cpu, &mask)) in pick_online_cpu()
/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c41 cpu_set_t mask; in check_cpu_dscr_thread() local
45 CPU_ZERO(&mask); in check_cpu_dscr_thread()
46 CPU_SET(cpu, &mask); in check_cpu_dscr_thread()
47 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/tools/perf/util/
Dperf_regs.c13 u64 mask = regs->mask; in perf_reg_value() local
18 if (!(mask & (1ULL << id))) in perf_reg_value()
22 if (mask & (1ULL << i)) in perf_reg_value()
Dperf_regs.h11 uint64_t mask; member
13 #define SMPL_REG(n, b) { .name = #n, .mask = 1ULL << (b) }
Dutil.c719 size_t i, j, mask; in print_binary() local
725 mask = bytes_per_line - 1; in print_binary()
729 if ((i & mask) == 0) { in print_binary()
736 if (((i & mask) == mask) || i == len - 1) { in print_binary()
737 for (j = 0; j < mask-(i & mask); j++) in print_binary()
741 for (j = i & ~mask; j <= i; j++) in print_binary()
743 for (j = 0; j < mask-(i & mask); j++) in print_binary()
Dmem-events.c241 u64 mask = PERF_MEM_LOCK_NA; in perf_mem__lck_scnprintf() local
245 mask = mem_info->data_src.mem_lock; in perf_mem__lck_scnprintf()
247 if (mask & PERF_MEM_LOCK_NA) in perf_mem__lck_scnprintf()
249 else if (mask & PERF_MEM_LOCK_LOCKED) in perf_mem__lck_scnprintf()
/tools/gpio/
Dlsgpio.c31 unsigned long mask; member
37 .mask = GPIOLINE_FLAG_KERNEL,
41 .mask = GPIOLINE_FLAG_IS_OUT,
45 .mask = GPIOLINE_FLAG_ACTIVE_LOW,
49 .mask = GPIOLINE_FLAG_OPEN_DRAIN,
53 .mask = GPIOLINE_FLAG_OPEN_SOURCE,
63 if (flags & flagnames[i].mask) { in print_flags()
/tools/testing/selftests/powerpc/pmu/ebb/
Debb_lmr.c52 unsigned long *mask = section_masks; in ebb_lmr_section_test() local
55 for (; *mask; mask++) { in ebb_lmr_section_test()
56 mtspr(SPRN_LMSER, *mask); in ebb_lmr_section_test()
62 if (*mask & (1UL << (63 - i))) in ebb_lmr_section_test()
Dcycles_with_freeze_test.c26 uint64_t mask, val; in ebb_callee() local
28 mask = MMCR0_PMAO | MMCR0_FC; in ebb_callee()
45 mask &= ~MMCR0_FC; in ebb_callee()
50 reset_ebb_with_clear_mask(mask); in ebb_callee()
/tools/lguest/
Dlguest.c1255 static void ioread(u16 off, u32 v, u32 mask, u32 *val) in ioread() argument
1258 assert(mask == 0xFF || mask == 0xFFFF || mask == 0xFFFFFFFF); in ioread()
1259 *val = (v >> (off * 8)) & mask; in ioread()
1263 static void iowrite(u16 off, u32 v, u32 mask, u32 *dst) in iowrite() argument
1266 assert(mask == 0xFF || mask == 0xFFFF || mask == 0xFFFFFFFF); in iowrite()
1267 *dst &= ~(mask << (off * 8)); in iowrite()
1268 *dst |= (v & mask) << (off * 8); in iowrite()
1334 static bool pci_addr_iowrite(u16 port, u32 mask, u32 val) in pci_addr_iowrite() argument
1336 iowrite(port - PCI_CONFIG_ADDR, val, mask, in pci_addr_iowrite()
1340 val, mask, in pci_addr_iowrite()
[all …]
/tools/perf/tests/
Dcpumap.c17 struct cpu_map_mask *mask; in process_event_mask() local
26 mask = (struct cpu_map_mask *)data->data; in process_event_mask()
28 TEST_ASSERT_VAL("wrong nr", mask->nr == 1); in process_event_mask()
31 TEST_ASSERT_VAL("wrong cpu", test_bit(i, mask->mask)); in process_event_mask()
Dsample-parsing.c99 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
101 COMP(user_regs.mask); in samples_same()
130 size_t sz = hweight_long(s1->intr_regs.mask) * sizeof(u64); in samples_same()
132 COMP(intr_regs.mask); in samples_same()
191 .mask = sample_regs, in do_test()
204 .mask = sample_regs, in do_test()
/tools/virtio/virtio-trace/
Dtrace-agent-rw.c96 cpu_set_t mask; in bind_cpu() local
98 CPU_ZERO(&mask); in bind_cpu()
99 CPU_SET(cpu_num, &mask); in bind_cpu()
102 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
/tools/testing/radix-tree/
Dmultiorder.c234 int mask = (1 << order[i]) - 1; in multiorder_iteration() local
236 assert(iter.index >= (index[i] &~ mask)); in multiorder_iteration()
237 assert(iter.index <= (index[i] | mask)); in multiorder_iteration()
272 int mask, k; in multiorder_tagged_iteration() local
284 mask = (1 << order[k]) - 1; in multiorder_tagged_iteration()
286 assert(iter.index >= (tag_index[i] &~ mask)); in multiorder_tagged_iteration()
287 assert(iter.index <= (tag_index[i] | mask)); in multiorder_tagged_iteration()
296 int mask, k; in multiorder_tagged_iteration() local
308 mask = (1 << order[k]) - 1; in multiorder_tagged_iteration()
310 assert(iter.index >= (tag_index[i] &~ mask)); in multiorder_tagged_iteration()
[all …]
/tools/testing/selftests/powerpc/pmu/
Dlib.c20 cpu_set_t mask; in bind_to_cpu() local
24 CPU_ZERO(&mask); in bind_to_cpu()
25 CPU_SET(cpu, &mask); in bind_to_cpu()
27 return sched_setaffinity(0, sizeof(mask), &mask); in bind_to_cpu()
/tools/include/linux/
Dbitmap.h61 unsigned long mask = BIT_MASK(nr); in test_and_set_bit() local
66 *p = old | mask; in test_and_set_bit()
68 return (old & mask) != 0; in test_and_set_bit()
Dkernel.h11 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
/tools/iio/
Diio_utils.h49 uint64_t mask; member
64 unsigned *shift, uint64_t *mask, unsigned *be,
/tools/testing/selftests/net/
Dpsock_fanout.c310 cpu_set_t mask; in set_cpuaffinity() local
312 CPU_ZERO(&mask); in set_cpuaffinity()
313 CPU_SET(cpuid, &mask); in set_cpuaffinity()
314 if (sched_setaffinity(0, sizeof(mask), &mask)) { in set_cpuaffinity()
/tools/testing/selftests/x86/
Dmpx-hw.h76 unsigned long mask = (1UL << total_nr_bits)-1; in GET_BITS() local
77 return (val >> bottombit) & mask; in GET_BITS()
/tools/arch/s390/include/uapi/asm/
Dsie.h229 #define INSN_DECODE_IPA0(ipa0, insn, rshift, mask) \ argument
231 ((ipa0 << 8) | ((insn >> rshift) & mask)) :

123