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.c180 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac1000_set_filter() local
187 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
Ddwmac4_core.c435 u32 bit_nr = bitrev32(~crc32_le(~0, ha->addr, in dwmac4_set_filter() local
441 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
/drivers/net/ethernet/calxeda/
Dxgmac.c1294 u32 bit_nr = ~ether_crc(ETH_ALEN, ha->addr) >> 23; in xgmac_set_rx_mode() local
1299 hash_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in xgmac_set_rx_mode()
1319 u32 bit_nr = ~ether_crc(ETH_ALEN, ha->addr) >> 23; in xgmac_set_rx_mode() local
1324 hash_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in xgmac_set_rx_mode()
/drivers/staging/vt6656/
Dmain_usb.c802 u32 bit_nr = 0; in vnt_prepare_multicast() local
805 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast()
807 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
/drivers/net/wireless/admtek/
Dadm8211.c1332 unsigned int bit_nr; in adm8211_prepare_multicast() local
1339 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in adm8211_prepare_multicast()
1341 bit_nr &= 0x3F; in adm8211_prepare_multicast()
1342 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
/drivers/net/ethernet/smsc/
Depic100.c1364 unsigned int bit_nr = in set_rx_mode() local
1366 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.c2401 unsigned int bit_nr; in set_rx_mode() local
2403 bit_nr = sis900_mcast_bitnr(ha->addr, in set_rx_mode()
2405 mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); in set_rx_mode()
Dsis190.c856 int bit_nr = in sis190_set_rx_mode() local
858 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.c1488 u32 bit_nr = 0; in vnt_prepare_multicast() local
1491 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in vnt_prepare_multicast()
1493 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
/drivers/net/ethernet/adaptec/
Dstarfire.c1825 int bit_nr = ether_crc_le(ETH_ALEN, ha->addr) >> 23; in set_rx_mode() local
1826 __le32 *fptr = (__le32 *) &mc_filter[(bit_nr >> 4) & ~1]; in set_rx_mode()
1828 *fptr |= cpu_to_le32(1 << (bit_nr & 31)); in set_rx_mode()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c1867 int bit_nr = bitrev32(~crc32_le(~0, ha->addr, 6)) >> 26; in sxgbe_set_rx_mode() local
1873 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
/drivers/net/ethernet/cortina/
Dgemini.c1863 unsigned int bit_nr; in gmac_set_rx_mode() local
1879 bit_nr = ~crc32_le(~0, ha->addr, ETH_ALEN) & 0x3f; in gmac_set_rx_mode()
1880 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.c4327 u32 bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in rtl_set_rx_mode() local
4328 mc_filter[bit_nr >> 5] |= BIT(bit_nr & 31); in rtl_set_rx_mode()
/drivers/net/ethernet/
Djme.c2307 int bit_nr; in jme_set_multi() local
2311 bit_nr = ether_crc(ETH_ALEN, ha->addr) & 0x3F; in jme_set_multi()
2312 mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); in jme_set_multi()
/drivers/net/ethernet/via/
Dvia-rhine.c2275 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in rhine_set_rx_mode() local
2277 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rhine_set_rx_mode()
/drivers/hid/
Dhid-core.c1344 unsigned int bit_nr = 0; in __extract() local
1351 value |= ((u32)report[idx] >> bit_shift) << bit_nr; in __extract()
1353 bit_nr += bits_to_copy; in __extract()
/drivers/net/usb/
Dr8152.c2358 int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; in _rtl8152_set_rx_mode() local
2360 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in _rtl8152_set_rx_mode()