/linux-5.19.10/drivers/net/wireless/ath/carl9170/ |
D | mac.c | 285 int carl9170_update_multicast(struct ar9170 *ar, const u64 mc_hash) in carl9170_update_multicast() argument 290 carl9170_regwrite(AR9170_MAC_REG_GROUP_HASH_TBL_H, mc_hash >> 32); in carl9170_update_multicast() 291 carl9170_regwrite(AR9170_MAC_REG_GROUP_HASH_TBL_L, mc_hash); in carl9170_update_multicast() 297 ar->cur_mc_hash = mc_hash; in carl9170_update_multicast()
|
/linux-5.19.10/net/ipv4/ |
D | igmp.c | 1387 struct ip_mc_list __rcu **mc_hash; in ip_mc_hash_add() local 1390 mc_hash = rtnl_dereference(in_dev->mc_hash); in ip_mc_hash_add() 1391 if (mc_hash) { in ip_mc_hash_add() 1393 im->next_hash = mc_hash[hash]; in ip_mc_hash_add() 1394 rcu_assign_pointer(mc_hash[hash], im); in ip_mc_hash_add() 1402 mc_hash = kzalloc(sizeof(struct ip_mc_list *) << MC_HASH_SZ_LOG, in ip_mc_hash_add() 1404 if (!mc_hash) in ip_mc_hash_add() 1409 im->next_hash = mc_hash[hash]; in ip_mc_hash_add() 1410 RCU_INIT_POINTER(mc_hash[hash], im); in ip_mc_hash_add() 1413 rcu_assign_pointer(in_dev->mc_hash, mc_hash); in ip_mc_hash_add() [all …]
|
D | devinet.c | 243 kfree(rcu_dereference_protected(idev->mc_hash, 1)); in in_dev_finish_destroy()
|
/linux-5.19.10/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 139 unsigned long mc_hash[16]; member 1186 memset(data->mc_hash, 0, sizeof(data->mc_hash)); in tsi108_set_rx_mode() 1193 __set_bit(hash, &data->mc_hash[0]); in tsi108_set_rx_mode() 1206 data->mc_hash[i]); in tsi108_set_rx_mode()
|
/linux-5.19.10/drivers/net/ |
D | macvlan.c | 251 static unsigned int mc_hash(const struct macvlan_dev *vlan, in mc_hash() function 279 hash = mc_hash(vlan, eth->h_dest); in macvlan_broadcast() 478 hash = mc_hash(NULL, eth->h_dest); in macvlan_handle_frame() 793 __set_bit(mc_hash(vlan, ha->addr), filter); in macvlan_compute_filter() 796 __set_bit(mc_hash(vlan, dev->broadcast), filter); in macvlan_compute_filter()
|
/linux-5.19.10/drivers/net/ethernet/sfc/falcon/ |
D | farch.c | 2853 union ef4_multicast_hash *mc_hash = &efx->multicast_hash; in ef4_farch_filter_sync_rx_mode() local 2866 memset(mc_hash, 0xff, sizeof(*mc_hash)); in ef4_farch_filter_sync_rx_mode() 2868 memset(mc_hash, 0x00, sizeof(*mc_hash)); in ef4_farch_filter_sync_rx_mode() 2872 __set_bit_le(bit, mc_hash); in ef4_farch_filter_sync_rx_mode() 2879 __set_bit_le(0xff, mc_hash); in ef4_farch_filter_sync_rx_mode()
|
D | falcon.c | 1262 union ef4_multicast_hash *mc_hash = &efx->multicast_hash; in falcon_push_multicast_hash() local 1266 ef4_writeo(efx, &mc_hash->oword[0], FR_AB_MAC_MC_HASH_REG0); in falcon_push_multicast_hash() 1267 ef4_writeo(efx, &mc_hash->oword[1], FR_AB_MAC_MC_HASH_REG1); in falcon_push_multicast_hash()
|
/linux-5.19.10/drivers/net/ethernet/sfc/siena/ |
D | farch.c | 2960 union efx_multicast_hash *mc_hash = &efx->multicast_hash; in efx_farch_filter_sync_rx_mode() local 2973 memset(mc_hash, 0xff, sizeof(*mc_hash)); in efx_farch_filter_sync_rx_mode() 2975 memset(mc_hash, 0x00, sizeof(*mc_hash)); in efx_farch_filter_sync_rx_mode() 2979 __set_bit_le(bit, mc_hash); in efx_farch_filter_sync_rx_mode() 2986 __set_bit_le(0xff, mc_hash); in efx_farch_filter_sync_rx_mode()
|
/linux-5.19.10/drivers/net/ethernet/atheros/alx/ |
D | main.c | 558 static void alx_add_mc_addr(struct alx_hw *hw, const u8 *addr, u32 *mc_hash) in alx_add_mc_addr() argument 566 mc_hash[reg] |= BIT(bit); in alx_add_mc_addr() 574 u32 mc_hash[2] = {}; in __alx_set_rx_mode() local 578 alx_add_mc_addr(hw, ha->addr, mc_hash); in __alx_set_rx_mode() 580 alx_write_mem32(hw, ALX_HASH_TBL0, mc_hash[0]); in __alx_set_rx_mode() 581 alx_write_mem32(hw, ALX_HASH_TBL1, mc_hash[1]); in __alx_set_rx_mode()
|
D | hw.h | 479 u32 mc_hash[2]; member
|
/linux-5.19.10/drivers/edac/ |
D | igen6_edac.c | 346 u32 mc_hash; in adl_err_addr_to_imc_addr() local 351 mc_hash = readl(imc->window + MAD_MC_HASH_OFFSET); in adl_err_addr_to_imc_addr() 353 intlv_bit = MAC_MC_HASH_LSB(mc_hash) + 6; in adl_err_addr_to_imc_addr()
|
/linux-5.19.10/include/linux/ |
D | inetdevice.h | 34 struct ip_mc_list __rcu * __rcu *mc_hash; member
|
/linux-5.19.10/drivers/net/ethernet/ |
D | jme.c | 2269 u32 mc_hash[2] = {}; in jme_set_multi() local 2286 mc_hash[bit_nr >> 5] |= 1 << (bit_nr & 0x1F); in jme_set_multi() 2289 jwrite32(jme, JME_RXMCHT_LO, mc_hash[0]); in jme_set_multi() 2290 jwrite32(jme, JME_RXMCHT_HI, mc_hash[1]); in jme_set_multi()
|