/linux/kernel/sched/ |
A D | wait_bit.c | 27 wait_bit->key.bit_nr != key->bit_nr || in wake_bit_function() 28 test_bit(key->bit_nr, key->flags)) in wake_bit_function() 48 if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) in __wait_on_bit() 50 } while (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags) && !ret); in __wait_on_bit() 89 if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) { in __wait_on_bit_lock() 100 if (!test_and_set_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) { in __wait_on_bit_lock() 168 wbq_entry->key.bit_nr != key->bit_nr) in var_wake_function() 179 .bit_nr = -1, in init_wait_var_entry()
|
/linux/drivers/input/keyboard/ |
A D | bcm-keypad.c | 72 #define BIT_TO_ROW_SSRN(bit_nr, reg_n) (((bit_nr) >> 3) + 4 * (reg_n)) argument 73 #define BIT_TO_COL(bit_nr) ((bit_nr) % 8) argument 106 int bit_nr; in bcm_kp_report_keys() local 118 for_each_set_bit(bit_nr, &change, BITS_PER_LONG) { in bcm_kp_report_keys() 119 key_press = state & BIT(bit_nr); in bcm_kp_report_keys() 122 row = BIT_TO_ROW_SSRN(bit_nr, reg_num); in bcm_kp_report_keys() 123 col = BIT_TO_COL(bit_nr); in bcm_kp_report_keys()
|
A D | st-keyscan.c | 44 int bit_nr; in keyscan_isr() local 50 for_each_set_bit(bit_nr, &change, BITS_PER_LONG) in keyscan_isr() 52 keycode[bit_nr], state & BIT(bit_nr)); in keyscan_isr()
|
/linux/arch/arm64/kvm/vgic/ |
A D | vgic-v3.c | 307 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local 322 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status() 329 status = val & (1 << bit_nr); in vgic_v3_lpi_sync_pending_status() 341 val &= ~(1 << bit_nr); in vgic_v3_lpi_sync_pending_status() 402 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local 415 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_save_pending_tables() 425 stored = val & (1U << bit_nr); in vgic_v3_save_pending_tables() 436 val |= 1 << bit_nr; in vgic_v3_save_pending_tables() 438 val &= ~(1 << bit_nr); in vgic_v3_save_pending_tables()
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | dwmac100_core.c | 121 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in dwmac100_set_filter() local 126 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter()
|
A D | dwmac1000_core.c | 182 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac1000_set_filter() local 189 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
|
A D | dwmac4_core.c | 677 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local 683 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
|
/linux/mm/ |
A D | filemap.c | 1158 if (test_bit(key->bit_nr, &key->folio->flags)) in wake_page_function() 1161 if (test_and_set_bit(key->bit_nr, &key->folio->flags)) in wake_page_function() 1193 static void folio_wake_bit(struct folio *folio, int bit_nr) in folio_wake_bit() argument 1201 key.bit_nr = bit_nr; in folio_wake_bit() 1277 if (test_and_set_bit(bit_nr, &folio->flags)) in folio_trylock_flag() 1279 } else if (test_bit(bit_nr, &folio->flags)) in folio_trylock_flag() 1300 if (bit_nr == PG_locked && in folio_wait_bit_common() 1313 wait_page.bit_nr = bit_nr; in folio_wait_bit_common() 1339 if (!folio_trylock_flag(folio, bit_nr, wait)) in folio_wait_bit_common() 1429 void folio_wait_bit(struct folio *folio, int bit_nr) in folio_wait_bit() argument [all …]
|
/linux/include/linux/ |
A D | pagemap.h | 735 int bit_nr; member 741 int bit_nr; member 752 if (wait_page->bit_nr != key->bit_nr) in wake_page_match() 837 void folio_wait_bit(struct folio *folio, int bit_nr); 838 int folio_wait_bit_killable(struct folio *folio, int bit_nr);
|
A D | wait_bit.h | 12 int bit_nr; member 22 { .flags = word, .bit_nr = bit, }
|
/linux/arch/openrisc/kernel/ |
A D | setup.c | 233 short bit_nr, short width) in extract_value_bits() argument 235 return (reg >> bit_nr) & (0 << width); in extract_value_bits()
|
/linux/drivers/net/ethernet/calxeda/ |
A D | xgmac.c | 1296 u32 bit_nr = ~ether_crc(ETH_ALEN, ha->addr) >> 23; in xgmac_set_rx_mode() local 1301 hash_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in xgmac_set_rx_mode() 1321 u32 bit_nr = ~ether_crc(ETH_ALEN, ha->addr) >> 23; in xgmac_set_rx_mode() local 1326 hash_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in xgmac_set_rx_mode()
|
/linux/drivers/staging/vt6656/ |
A D | main_usb.c | 849 u32 bit_nr; in vnt_prepare_multicast() local 852 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast() 853 mc_filter |= BIT_ULL(bit_nr); in vnt_prepare_multicast()
|
/linux/drivers/net/wireless/admtek/ |
A D | adm8211.c | 1330 unsigned int bit_nr; in adm8211_prepare_multicast() local 1337 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in adm8211_prepare_multicast() 1339 bit_nr &= 0x3F; in adm8211_prepare_multicast() 1340 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
|
/linux/fs/cachefiles/ |
A D | rdwr.c | 34 key->folio, key->bit_nr); in cachefiles_read_waiter() 36 if (key->folio != folio || key->bit_nr != PG_locked) in cachefiles_read_waiter()
|
/linux/drivers/s390/virtio/ |
A D | virtio_ccw.c | 109 u64 bit_nr; member 129 int bit_nr; member 597 &thinint_area->bit_nr, in virtio_ccw_register_adapter_ind()
|
/linux/drivers/net/ethernet/smsc/ |
A D | epic100.c | 1378 unsigned int bit_nr = in set_rx_mode() local 1380 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode()
|
/linux/drivers/net/ethernet/sis/ |
A D | sis900.c | 2415 unsigned int bit_nr; in set_rx_mode() local 2417 bit_nr = sis900_mcast_bitnr(ha->addr, in set_rx_mode() 2419 mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); in set_rx_mode()
|
A D | sis190.c | 859 int bit_nr = in sis190_set_rx_mode() local 861 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sis190_set_rx_mode()
|
/linux/drivers/hwmon/ |
A D | gl520sm.c | 652 int bit_nr = to_sensor_dev_attr(attr)->index; in alarm_show() local 655 return sprintf(buf, "%d\n", (data->alarms >> bit_nr) & 1); in alarm_show()
|
/linux/fs/reiserfs/ |
A D | journal.c | 214 unsigned int bit_nr = block % (sb->s_blocksize << 3); in set_bit_in_list_bitmap() local 219 set_bit(bit_nr, (unsigned long *)jb->bitmaps[bmap_nr]->data); in set_bit_in_list_bitmap() 460 unsigned int bmap_nr, int bit_nr, int search_all, in reiserfs_in_journal() argument 482 test_bit(bit_nr, in reiserfs_in_journal() 490 bit_nr + 1); in reiserfs_in_journal() 496 bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr; in reiserfs_in_journal()
|
/linux/drivers/staging/vt6655/ |
A D | device_main.c | 1494 u32 bit_nr = 0; in vnt_prepare_multicast() local 1497 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast() 1499 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
|
/linux/drivers/net/ethernet/cortina/ |
A D | gemini.c | 1849 unsigned int bit_nr; in gmac_set_rx_mode() local 1865 bit_nr = ~crc32_le(~0, ha->addr, ETH_ALEN) & 0x3f; in gmac_set_rx_mode() 1866 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode()
|
/linux/drivers/net/ethernet/adaptec/ |
A D | starfire.c | 1817 int bit_nr = ether_crc_le(ETH_ALEN, ha->addr) >> 23; in set_rx_mode() local 1818 __le32 *fptr = (__le32 *) &mc_filter[(bit_nr >> 4) & ~1]; in set_rx_mode() 1820 *fptr |= cpu_to_le32(1 << (bit_nr & 31)); in set_rx_mode()
|
/linux/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_main.c | 1877 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, 6)) >> 26; in sxgbe_set_rx_mode() local 1883 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
|