Home
last modified time | relevance | path

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

12

/Linux-v5.10/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(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-v5.10/drivers/input/keyboard/
Dbcm-keypad.c72 #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()
Dst-keyscan.c44 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-v5.10/arch/arm64/kvm/vgic/
Dvgic-v3.c317 int byte_offset, bit_nr; in vgic_v3_lpi_sync_pending_status() local
332 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_lpi_sync_pending_status()
339 status = val & (1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
351 val &= ~(1 << bit_nr); in vgic_v3_lpi_sync_pending_status()
372 int byte_offset, bit_nr; in vgic_v3_save_pending_tables() local
384 bit_nr = irq->intid % BITS_PER_BYTE; in vgic_v3_save_pending_tables()
394 stored = val & (1U << bit_nr); in vgic_v3_save_pending_tables()
399 val |= 1 << bit_nr; in vgic_v3_save_pending_tables()
401 val &= ~(1 << bit_nr); in vgic_v3_save_pending_tables()
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/
Ddwmac100_core.c121 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()
Ddwmac1000_core.c182 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()
Ddwmac4_core.c651 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local
657 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
/Linux-v5.10/include/linux/
Dpagemap.h565 int bit_nr; member
571 int bit_nr; member
582 if (wait_page->bit_nr != key->bit_nr) in wake_page_match()
661 extern void wait_on_page_bit(struct page *page, int bit_nr);
662 extern int wait_on_page_bit_killable(struct page *page, int bit_nr);
Dwait_bit.h12 int bit_nr; member
22 { .flags = word, .bit_nr = bit, }
/Linux-v5.10/mm/
Dfilemap.c1061 if (test_bit(key->bit_nr, &key->page->flags)) in wake_page_function()
1064 if (test_and_set_bit(key->bit_nr, &key->page->flags)) in wake_page_function()
1096 static void wake_up_page_bit(struct page *page, int bit_nr) in wake_up_page_bit() argument
1104 key.bit_nr = bit_nr; in wake_up_page_bit()
1176 static inline bool trylock_page_bit_common(struct page *page, int bit_nr, in trylock_page_bit_common() argument
1180 if (test_and_set_bit(bit_nr, &page->flags)) in trylock_page_bit_common()
1182 } else if (test_bit(bit_nr, &page->flags)) in trylock_page_bit_common()
1193 struct page *page, int bit_nr, int state, enum behavior behavior) in wait_on_page_bit_common() argument
1202 if (bit_nr == PG_locked && in wait_on_page_bit_common()
1215 wait_page.bit_nr = bit_nr; in wait_on_page_bit_common()
[all …]
/Linux-v5.10/arch/openrisc/kernel/
Dsetup.c232 short bit_nr, short width) in extract_value_bits() argument
234 return (reg >> bit_nr) & (0 << width); in extract_value_bits()
/Linux-v5.10/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-v5.10/drivers/staging/vt6656/
Dmain_usb.c851 u32 bit_nr; in vnt_prepare_multicast() local
854 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast()
855 mc_filter |= BIT_ULL(bit_nr); in vnt_prepare_multicast()
/Linux-v5.10/drivers/net/wireless/admtek/
Dadm8211.c1331 unsigned int bit_nr; in adm8211_prepare_multicast() local
1338 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in adm8211_prepare_multicast()
1340 bit_nr &= 0x3F; in adm8211_prepare_multicast()
1341 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
/Linux-v5.10/fs/cachefiles/
Drdwr.c34 key->flags, key->bit_nr); in cachefiles_read_waiter()
37 key->bit_nr != PG_locked) in cachefiles_read_waiter()
/Linux-v5.10/drivers/s390/virtio/
Dvirtio_ccw.c109 u64 bit_nr; member
129 int bit_nr; member
619 &thinint_area->bit_nr, in virtio_ccw_register_adapter_ind()
/Linux-v5.10/drivers/net/ethernet/smsc/
Depic100.c1376 unsigned int bit_nr = in set_rx_mode() local
1378 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode()
/Linux-v5.10/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-v5.10/drivers/net/ethernet/sis/
Dsis900.c2410 unsigned int bit_nr; in set_rx_mode() local
2412 bit_nr = sis900_mcast_bitnr(ha->addr, in set_rx_mode()
2414 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-v5.10/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
483 test_bit(bit_nr, in reiserfs_in_journal()
491 bit_nr + 1); in reiserfs_in_journal()
497 bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr; in reiserfs_in_journal()
/Linux-v5.10/drivers/staging/vt6655/
Ddevice_main.c1493 u32 bit_nr = 0; in vnt_prepare_multicast() local
1496 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast()
1498 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c1874 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, 6)) >> 26; in sxgbe_set_rx_mode() local
1880 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
/Linux-v5.10/drivers/net/ethernet/adaptec/
Dstarfire.c1815 int bit_nr = ether_crc_le(ETH_ALEN, ha->addr) >> 23; in set_rx_mode() local
1816 __le32 *fptr = (__le32 *) &mc_filter[(bit_nr >> 4) & ~1]; in set_rx_mode()
1818 *fptr |= cpu_to_le32(1 << (bit_nr & 31)); in set_rx_mode()
/Linux-v5.10/drivers/net/ethernet/cortina/
Dgemini.c1849 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()

12