Home
last modified time | relevance | path

Searched refs:hash_reg (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_hw.c174 u32 hash_bit, hash_reg; in atl1e_hash_set() local
186 hash_reg = (hash_value >> 31) & 0x1; in atl1e_hash_set()
189 mta = AT_READ_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg); in atl1e_hash_set()
193 AT_WRITE_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg, mta); in atl1e_hash_set()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c395 u32 hash_bit, hash_reg, mta; in igb_mta_set() local
406 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
409 mta = array_rd32(E1000_MTA, hash_reg); in igb_mta_set()
413 array_wr32(E1000_MTA, hash_reg, mta); in igb_mta_set()
527 u32 hash_value, hash_bit, hash_reg; in igb_update_mc_addr_list() local
537 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list()
540 hw->mac.mta_shadow[hash_reg] |= BIT(hash_bit); in igb_update_mc_addr_list()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_mac.c860 u32 hash_value, hash_bit, hash_reg; in igc_update_mc_addr_list() local
870 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igc_update_mc_addr_list()
873 hw->mac.mta_shadow[hash_reg] |= BIT(hash_bit); in igc_update_mc_addr_list()
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_hw.c223 u32 hash_bit, hash_reg; in atl1c_hash_set() local
235 hash_reg = (hash_value >> 31) & 0x1; in atl1c_hash_set()
238 mta = AT_READ_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg); in atl1c_hash_set()
242 AT_WRITE_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg, mta); in atl1c_hash_set()
/openbmc/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c318 u32 hash_value, hash_bit, hash_reg; in e1000e_update_mc_addr_list_generic() local
328 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in e1000e_update_mc_addr_list_generic()
331 hw->mac.mta_shadow[hash_reg] |= BIT(hash_bit); in e1000e_update_mc_addr_list_generic()
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A Datl2.c2329 u32 hash_bit, hash_reg; in atl2_hash_set() local
2340 hash_reg = (hash_value >> 31) & 0x1; in atl2_hash_set()
2343 mta = ATL2_READ_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg); in atl2_hash_set()
2347 ATL2_WRITE_REG_ARRAY(hw, REG_RX_HASH_TABLE, hash_reg, mta); in atl2_hash_set()
H A Datl1.c562 u32 hash_bit, hash_reg; in atl1_hash_set() local
574 hash_reg = (hash_value >> 31) & 0x1; in atl1_hash_set()
576 mta = ioread32((hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2)); in atl1_hash_set()
578 iowrite32(mta, (hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2)); in atl1_hash_set()
/openbmc/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-hw.c334 unsigned int hash_reg; in xlgmac_set_mac_hash_table() local
356 hash_reg = MAC_HTR0; in xlgmac_set_mac_hash_table()
358 writel(hash_table[i], pdata->mac_regs + hash_reg); in xlgmac_set_mac_hash_table()
359 hash_reg += MAC_HTR_INC; in xlgmac_set_mac_hash_table()
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c1052 unsigned int hash_reg; in xgbe_set_mac_hash_table() local
1076 hash_reg = MAC_HTR0; in xgbe_set_mac_hash_table()
1078 XGMAC_IOWRITE(pdata, hash_reg, hash_table[i]); in xgbe_set_mac_hash_table()
1079 hash_reg += MAC_HTR_INC; in xgbe_set_mac_hash_table()
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_main.c2297 u32 hash_reg, hash_bit, mta; in e1000_set_rx_mode() local
2299 hash_reg = (hash_value >> 5) & 0x7F; in e1000_set_rx_mode()
2302 mcarray[hash_reg] |= mta; in e1000_set_rx_mode()