Home
last modified time | relevance | path

Searched refs:bit_nr (Results 1 – 25 of 37) sorted by relevance

12

/linux/kernel/sched/
H A Dwait_bit.c27 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_acquire(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/
H A Dbcm-keypad.c62 #define BIT_TO_ROW_SSRN(bit_nr, reg_n) (((bit_nr) >> 3) + 4 * (reg_n)) argument
63 #define BIT_TO_COL(bit_nr) ((bit_nr) % 8) argument
96 int bit_nr; in bcm_kp_report_keys() local
108 for_each_set_bit(bit_nr, &change, BITS_PER_LONG) { in bcm_kp_report_keys()
109 key_press = state & BIT(bit_nr); in bcm_kp_report_keys()
112 row = BIT_TO_ROW_SSRN(bit_nr, reg_num); in bcm_kp_report_keys()
113 col = BIT_TO_COL(bit_nr); in bcm_kp_report_keys()
H A Dmt6779-keypad.c54 unsigned int bit_nr, key; in mt6779_keypad_irq_handler() local
65 for_each_set_bit(bit_nr, change, MTK_KPD_NUM_BITS) { in mt6779_keypad_irq_handler()
70 if (bit_nr % 32 >= 16) in mt6779_keypad_irq_handler()
73 key = bit_nr / 32 * 16 + bit_nr % 32; in mt6779_keypad_irq_handler()
78 pressed = !test_bit(bit_nr, new_state); in mt6779_keypad_irq_handler()
H A Dst-keyscan.c46 int bit_nr; in keyscan_isr() local
52 for_each_set_bit(bit_nr, &change, BITS_PER_LONG) in keyscan_isr()
54 keycode[bit_nr], state & BIT(bit_nr)); in keyscan_isr()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-v3.c320 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local
335 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status()
342 status = val & (1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
354 val &= ~(1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
413 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local
426 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_save_pending_tables()
436 stored = val & (1U << bit_nr); in vgic_v3_save_pending_tables()
447 val |= 1 << bit_nr; in vgic_v3_save_pending_tables()
449 val &= ~(1 << bit_nr); in vgic_v3_save_pending_tables()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac100_core.c113 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in dwmac100_set_filter() local
118 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter()
H A Ddwmac1000_core.c173 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac1000_set_filter() local
180 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
H A Ddwmac4_core.c667 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local
673 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
/linux/mm/
H A Dfilemap.c1132 if (test_bit(key->bit_nr, &key->folio->flags)) in wake_page_function()
1135 if (test_and_set_bit(key->bit_nr, &key->folio->flags)) in wake_page_function()
1174 key.bit_nr = bit_nr; in folio_wake_bit()
1218 if (test_and_set_bit(bit_nr, &folio->flags)) in folio_trylock_flag()
1220 } else if (test_bit(bit_nr, &folio->flags)) in folio_trylock_flag()
1241 if (bit_nr == PG_locked && in folio_wait_bit_common()
1251 wait_page.bit_nr = bit_nr; in folio_wait_bit_common()
1277 if (!folio_trylock_flag(folio, bit_nr, wait)) in folio_wait_bit_common()
1404 wait_page.bit_nr = PG_locked; in migration_entry_wait_on_locked()
1446 void folio_wait_bit(struct folio *folio, int bit_nr) in folio_wait_bit() argument
[all …]
/linux/include/linux/
H A Dwait_bit.h12 int bit_nr; member
22 { .flags = word, .bit_nr = bit, }
H A Dpagemap.h1068 int bit_nr; member
1074 int bit_nr; member
1085 if (wait_page->bit_nr != key->bit_nr) in wake_page_match()
1210 void folio_wait_bit(struct folio *folio, int bit_nr);
1211 int folio_wait_bit_killable(struct folio *folio, int bit_nr);
/linux/arch/openrisc/kernel/
H A Dsetup.c218 short bit_nr, short width) in extract_value_bits() argument
220 return (reg >> bit_nr) & (0 << width); in extract_value_bits()
/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c1296 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/
H A Dmain_usb.c849 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/
H A Dadm8211.c1330 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/drivers/net/ethernet/smsc/
H A Depic100.c1378 unsigned int bit_nr = in set_rx_mode() local
1380 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode()
/linux/drivers/s390/virtio/
H A Dvirtio_ccw.c142 u64 bit_nr; member
163 int bit_nr; member
658 &thinint_area->bit_nr, in virtio_ccw_register_adapter_ind()
/linux/drivers/hwmon/
H A Dgl520sm.c652 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/drivers/net/ethernet/sis/
H A Dsis900.c2415 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()
H A Dsis190.c859 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/fs/reiserfs/
H A Djournal.c213 unsigned int bit_nr = block % (sb->s_blocksize << 3); in set_bit_in_list_bitmap() local
218 set_bit(bit_nr, (unsigned long *)jb->bitmaps[bmap_nr]->data); in set_bit_in_list_bitmap()
459 unsigned int bmap_nr, int bit_nr, int search_all, in reiserfs_in_journal() argument
481 test_bit(bit_nr, in reiserfs_in_journal()
489 bit_nr + 1); in reiserfs_in_journal()
495 bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr; in reiserfs_in_journal()
/linux/drivers/staging/vt6655/
H A Ddevice_main.c1556 u32 bit_nr = 0; in vnt_prepare_multicast() local
1559 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast()
1561 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c1876 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, 6)) >> 26; in sxgbe_set_rx_mode() local
1882 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c1809 int bit_nr = ether_crc_le(ETH_ALEN, ha->addr) >> 23; in set_rx_mode() local
1810 __le32 *fptr = (__le32 *) &mc_filter[(bit_nr >> 4) & ~1]; in set_rx_mode()
1812 *fptr |= cpu_to_le32(1 << (bit_nr & 31)); in set_rx_mode()
/linux/drivers/net/ethernet/cortina/
H A Dgemini.c1880 unsigned int bit_nr; in gmac_set_rx_mode() local
1896 bit_nr = ~crc32_le(~0, ha->addr, ETH_ALEN) & 0x3f; in gmac_set_rx_mode()
1897 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode()

12