Home
last modified time | relevance | path

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

/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()
/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.c610 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local
616 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
/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()
/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()
/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()
/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()
/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()
/drivers/net/ethernet/sis/
Dsis900.c2408 unsigned int bit_nr; in set_rx_mode() local
2410 bit_nr = sis900_mcast_bitnr(ha->addr, in set_rx_mode()
2412 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()
/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()
/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()
/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()
/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()
/drivers/net/ethernet/cortina/
Dgemini.c1874 unsigned int bit_nr; in gmac_set_rx_mode() local
1890 bit_nr = ~crc32_le(~0, ha->addr, ETH_ALEN) & 0x3f; in gmac_set_rx_mode()
1891 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode()
/drivers/net/ethernet/realtek/
D8139cp.c911 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in __cp_set_rx_mode() local
913 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode()
D8139too.c2576 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in __set_rx_mode() local
2578 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode()
Dr8169_main.c2600 u32 bit_nr = eth_hw_addr_crc(ha) >> 26; in rtl_set_rx_mode() local
2601 mc_filter[bit_nr >> 5] |= BIT(bit_nr & 31); in rtl_set_rx_mode()
/drivers/net/ethernet/
Djme.c2296 int bit_nr; in jme_set_multi() local
2300 bit_nr = ether_crc(ETH_ALEN, ha->addr) & 0x3F; in jme_set_multi()
2301 mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); in jme_set_multi()
/drivers/hid/
Dhid-core.c1365 unsigned int bit_nr = 0; in __extract() local
1372 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1374 bit_nr += bits_to_copy; in __extract()
/drivers/net/ethernet/via/
Dvia-rhine.c2266 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in rhine_set_rx_mode() local
2268 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rhine_set_rx_mode()
/drivers/net/usb/
Dr8152.c2563 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in _rtl8152_set_rx_mode() local
2565 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in _rtl8152_set_rx_mode()