/Linux-v4.19/include/asm-generic/bitops/ |
D | non-atomic.h | 19 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit() 27 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit() 44 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit() 61 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit() 80 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit() 92 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_change_bit() 106 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in test_bit()
|
D | atomic.h | 16 p += BIT_WORD(nr); in set_bit() 22 p += BIT_WORD(nr); in clear_bit() 28 p += BIT_WORD(nr); in change_bit() 37 p += BIT_WORD(nr); in test_and_set_bit() 50 p += BIT_WORD(nr); in test_and_clear_bit() 63 p += BIT_WORD(nr); in test_and_change_bit()
|
D | lock.h | 24 p += BIT_WORD(nr); in test_and_set_bit_lock() 42 p += BIT_WORD(nr); in clear_bit_unlock() 62 p += BIT_WORD(nr); in __clear_bit_unlock() 84 p += BIT_WORD(nr); in clear_bit_unlock_is_negative_byte()
|
/Linux-v4.19/arch/sh/include/asm/ |
D | bitops-op32.h | 32 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit() 50 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit() 77 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit() 95 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit() 114 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit() 126 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_change_bit() 140 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in test_bit()
|
/Linux-v4.19/arch/openrisc/include/asm/bitops/ |
D | atomic.h | 15 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in set_bit() 32 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in clear_bit() 49 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in change_bit() 66 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_set_bit() 86 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_clear_bit() 106 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_change_bit()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | bitops.h | 95 set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in DEFINE_BITOP() 100 clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in clear_bit() 105 clear_bits_unlock(BIT_MASK(nr), addr + BIT_WORD(nr)); in clear_bit_unlock() 110 change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in change_bit() 148 return test_and_set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in test_and_set_bit() 155 addr + BIT_WORD(nr)) != 0; in test_and_set_bit_lock() 161 return test_and_clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in test_and_clear_bit() 167 return test_and_change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0; in test_and_change_bit() 175 unsigned long *p = (unsigned long *)addr + BIT_WORD(nr); in clear_bit_unlock_return_word()
|
/Linux-v4.19/arch/arm/include/asm/ |
D | bitops.h | 41 p += BIT_WORD(bit); in ____atomic_set_bit() 53 p += BIT_WORD(bit); in ____atomic_clear_bit() 65 p += BIT_WORD(bit); in ____atomic_change_bit() 79 p += BIT_WORD(bit); in ____atomic_test_and_set_bit() 96 p += BIT_WORD(bit); in ____atomic_test_and_clear_bit() 113 p += BIT_WORD(bit); in ____atomic_test_and_change_bit()
|
/Linux-v4.19/drivers/gpio/ |
D | gpio-gpio-mm.c | 198 word_index = BIT_WORD(bits_offset); in gpiomm_gpio_get_multiple() 255 if (!mask[BIT_WORD(i)]) { in gpiomm_gpio_set_multiple() 256 i = (BIT_WORD(i) + 1) * BITS_PER_LONG - gpio_reg_size; in gpiomm_gpio_set_multiple() 262 bitmask = mask[BIT_WORD(i)] & bits[BIT_WORD(i)]; in gpiomm_gpio_set_multiple() 267 gpiommgpio->out_state[port] &= ~mask[BIT_WORD(i)]; in gpiomm_gpio_set_multiple() 274 mask[BIT_WORD(i)] >>= gpio_reg_size; in gpiomm_gpio_set_multiple() 275 bits[BIT_WORD(i)] >>= gpio_reg_size; in gpiomm_gpio_set_multiple()
|
D | gpio-104-dio-48e.c | 209 word_index = BIT_WORD(bits_offset); in dio48e_gpio_get_multiple() 265 if (!mask[BIT_WORD(i)]) { in dio48e_gpio_set_multiple() 266 i = (BIT_WORD(i) + 1) * BITS_PER_LONG - gpio_reg_size; in dio48e_gpio_set_multiple() 272 bitmask = mask[BIT_WORD(i)] & bits[BIT_WORD(i)]; in dio48e_gpio_set_multiple() 277 dio48egpio->out_state[port] &= ~mask[BIT_WORD(i)]; in dio48e_gpio_set_multiple() 284 mask[BIT_WORD(i)] >>= gpio_reg_size; in dio48e_gpio_set_multiple() 285 bits[BIT_WORD(i)] >>= gpio_reg_size; in dio48e_gpio_set_multiple()
|
D | gpio-ws16c48.c | 156 word_index = BIT_WORD(bits_offset); in ws16c48_gpio_get_multiple() 216 if (!mask[BIT_WORD(i)]) { in ws16c48_gpio_set_multiple() 217 i = (BIT_WORD(i) + 1) * BITS_PER_LONG - gpio_reg_size; in ws16c48_gpio_set_multiple() 224 iomask = mask[BIT_WORD(i)] & ~ws16c48gpio->io_state[port]; in ws16c48_gpio_set_multiple() 225 bitmask = iomask & bits[BIT_WORD(i)]; in ws16c48_gpio_set_multiple() 237 mask[BIT_WORD(i)] >>= gpio_reg_size; in ws16c48_gpio_set_multiple() 238 bits[BIT_WORD(i)] >>= gpio_reg_size; in ws16c48_gpio_set_multiple()
|
/Linux-v4.19/net/rfkill/ |
D | input.c | 281 .keybit = { [BIT_WORD(KEY_WLAN)] = BIT_MASK(KEY_WLAN) }, 286 .keybit = { [BIT_WORD(KEY_BLUETOOTH)] = BIT_MASK(KEY_BLUETOOTH) }, 291 .keybit = { [BIT_WORD(KEY_UWB)] = BIT_MASK(KEY_UWB) }, 296 .keybit = { [BIT_WORD(KEY_WIMAX)] = BIT_MASK(KEY_WIMAX) }, 301 .keybit = { [BIT_WORD(KEY_RFKILL)] = BIT_MASK(KEY_RFKILL) }, 306 .swbit = { [BIT_WORD(SW_RFKILL_ALL)] = BIT_MASK(SW_RFKILL_ALL) },
|
/Linux-v4.19/drivers/input/joystick/ |
D | spaceball.c | 231 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_9); in spaceball_connect() 232 input_dev->keybit[BIT_WORD(BTN_A)] |= BIT_MASK(BTN_A) | in spaceball_connect() 237 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_2) | in spaceball_connect() 243 input_dev->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_1) | in spaceball_connect()
|
D | a3d.c | 329 input_dev->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_RIGHT) | in a3d_connect() 332 input_dev->keybit[BIT_WORD(BTN_JOYSTICK)] |= in a3d_connect() 352 input_dev->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_RIGHT) | in a3d_connect()
|
/Linux-v4.19/drivers/input/mouse/ |
D | touchkit_ps2.c | 88 dev->keybit[BIT_WORD(BTN_MOUSE)] = 0; in touchkit_ps2_detect() 89 dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in touchkit_ps2_detect()
|
D | alps.c | 3044 dev1->evbit[BIT_WORD(EV_KEY)] |= BIT_MASK(EV_KEY); in alps_init() 3045 dev1->keybit[BIT_WORD(BTN_TOUCH)] |= BIT_MASK(BTN_TOUCH); in alps_init() 3046 dev1->keybit[BIT_WORD(BTN_TOOL_FINGER)] |= BIT_MASK(BTN_TOOL_FINGER); in alps_init() 3047 dev1->keybit[BIT_WORD(BTN_LEFT)] |= in alps_init() 3050 dev1->evbit[BIT_WORD(EV_ABS)] |= BIT_MASK(EV_ABS); in alps_init() 3055 dev1->evbit[BIT_WORD(EV_REL)] |= BIT_MASK(EV_REL); in alps_init() 3056 dev1->relbit[BIT_WORD(REL_WHEEL)] |= BIT_MASK(REL_WHEEL); in alps_init() 3060 dev1->keybit[BIT_WORD(BTN_FORWARD)] |= BIT_MASK(BTN_FORWARD); in alps_init() 3061 dev1->keybit[BIT_WORD(BTN_BACK)] |= BIT_MASK(BTN_BACK); in alps_init() 3065 dev1->keybit[BIT_WORD(BTN_0)] |= BIT_MASK(BTN_0); in alps_init() [all …]
|
D | atarimouse.c | 137 atamouse_dev->keybit[BIT_WORD(BTN_LEFT)] = BIT_MASK(BTN_LEFT) | in atamouse_init()
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | bitops.h | 56 : "=r" (__res), "+A" (addr[BIT_WORD(nr)]) \ 65 : "+A" (addr[BIT_WORD(nr)]) \
|
/Linux-v4.19/tools/include/linux/ |
D | bitmap.h | 90 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_set_bit() 107 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in test_and_clear_bit()
|
D | bitops.h | 17 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) macro
|
/Linux-v4.19/include/linux/ |
D | bits.h | 9 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) macro
|
/Linux-v4.19/drivers/input/tablet/ |
D | kbtab.c | 149 input_dev->keybit[BIT_WORD(BTN_LEFT)] |= in kbtab_probe() 151 input_dev->keybit[BIT_WORD(BTN_DIGI)] |= in kbtab_probe()
|
/Linux-v4.19/drivers/input/misc/ |
D | powermate.c | 370 input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); in powermate_probe() 371 input_dev->relbit[BIT_WORD(REL_DIAL)] = BIT_MASK(REL_DIAL); in powermate_probe() 372 input_dev->mscbit[BIT_WORD(MSC_PULSELED)] = BIT_MASK(MSC_PULSELED); in powermate_probe()
|
/Linux-v4.19/drivers/hid/usbhid/ |
D | usbmouse.c | 180 input_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | in usb_mouse_probe() 183 input_dev->keybit[BIT_WORD(BTN_MOUSE)] |= BIT_MASK(BTN_SIDE) | in usb_mouse_probe()
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | bitops.h | 182 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in __test_bit()
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_labels.c | 66 if (BIT_WORD(bits) >= NF_CT_LABELS_MAX_SIZE / sizeof(long)) in nf_connlabels_get()
|