Home
last modified time | relevance | path

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

12

/linux-6.6.21/kernel/sched/
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-6.6.21/drivers/input/keyboard/
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()
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()
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-6.6.21/arch/arm64/kvm/vgic/
Dvgic-v3.c308 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local
323 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status()
330 status = val & (1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
342 val &= ~(1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
400 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local
413 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_save_pending_tables()
423 stored = val & (1U << bit_nr); in vgic_v3_save_pending_tables()
434 val |= 1 << bit_nr; in vgic_v3_save_pending_tables()
436 val &= ~(1 << bit_nr); in vgic_v3_save_pending_tables()
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
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()
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()
Ddwmac4_core.c646 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local
652 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
/linux-6.6.21/mm/
Dfilemap.c1098 if (test_bit(key->bit_nr, &key->folio->flags)) in wake_page_function()
1101 if (test_and_set_bit(key->bit_nr, &key->folio->flags)) in wake_page_function()
1133 static void folio_wake_bit(struct folio *folio, int bit_nr) in folio_wake_bit() argument
1141 key.bit_nr = bit_nr; in folio_wake_bit()
1206 static inline bool folio_trylock_flag(struct folio *folio, int bit_nr, in folio_trylock_flag() argument
1210 if (test_and_set_bit(bit_nr, &folio->flags)) in folio_trylock_flag()
1212 } else if (test_bit(bit_nr, &folio->flags)) in folio_trylock_flag()
1222 static inline int folio_wait_bit_common(struct folio *folio, int bit_nr, in folio_wait_bit_common() argument
1233 if (bit_nr == PG_locked && in folio_wait_bit_common()
1243 wait_page.bit_nr = bit_nr; in folio_wait_bit_common()
[all …]
/linux-6.6.21/include/linux/
Dwait_bit.h12 int bit_nr; member
22 { .flags = word, .bit_nr = bit, }
Dpagemap.h979 int bit_nr; member
985 int bit_nr; member
996 if (wait_page->bit_nr != key->bit_nr) in wake_page_match()
1121 void folio_wait_bit(struct folio *folio, int bit_nr);
1122 int folio_wait_bit_killable(struct folio *folio, int bit_nr);
/linux-6.6.21/arch/openrisc/kernel/
Dsetup.c218 short bit_nr, short width) in extract_value_bits() argument
220 return (reg >> bit_nr) & (0 << width); in extract_value_bits()
/linux-6.6.21/drivers/net/ethernet/calxeda/
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-6.6.21/drivers/staging/vt6656/
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-6.6.21/drivers/net/wireless/admtek/
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-6.6.21/drivers/s390/virtio/
Dvirtio_ccw.c111 u64 bit_nr; member
131 int bit_nr; member
619 &thinint_area->bit_nr, in virtio_ccw_register_adapter_ind()
/linux-6.6.21/drivers/net/ethernet/smsc/
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-6.6.21/drivers/hwmon/
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-6.6.21/drivers/net/ethernet/sis/
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()
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-6.6.21/fs/reiserfs/
Djournal.c214 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-6.6.21/drivers/staging/vt6655/
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-6.6.21/drivers/net/ethernet/adaptec/
Dstarfire.c1817 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-6.6.21/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c1877 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()
/linux-6.6.21/drivers/net/ethernet/cortina/
Dgemini.c1873 unsigned int bit_nr; in gmac_set_rx_mode() local
1889 bit_nr = ~crc32_le(~0, ha->addr, ETH_ALEN) & 0x3f; in gmac_set_rx_mode()
1890 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode()

12