/drivers/input/keyboard/ |
D | bcm-keypad.c | 72 #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()
|
D | st-keyscan.c | 44 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/ |
D | dwmac100_core.c | 121 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()
|
D | dwmac1000_core.c | 182 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()
|
D | dwmac4_core.c | 610 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/ |
D | xgmac.c | 1296 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/ |
D | main_usb.c | 851 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/ |
D | adm8211.c | 1331 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/ |
D | epic100.c | 1376 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/ |
D | virtio_ccw.c | 109 u64 bit_nr; member 129 int bit_nr; member 619 &thinint_area->bit_nr, in virtio_ccw_register_adapter_ind()
|
/drivers/net/ethernet/sis/ |
D | sis900.c | 2408 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()
|
D | sis190.c | 859 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/ |
D | gl520sm.c | 652 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/ |
D | device_main.c | 1493 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/ |
D | starfire.c | 1815 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/ |
D | sxgbe_main.c | 1874 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/ |
D | gemini.c | 1874 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/ |
D | 8139cp.c | 911 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()
|
D | 8139too.c | 2576 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()
|
D | r8169_main.c | 2600 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/ |
D | jme.c | 2296 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/ |
D | hid-core.c | 1365 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/ |
D | via-rhine.c | 2266 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/ |
D | r8152.c | 2563 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()
|