Home
last modified time | relevance | path

Searched refs:hw_if (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c289 pdata->hw_if.tx_start_xmit(channel, ring); in xgbe_maybe_stop_tx_queue()
313 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_enable_rx_tx_int() local
325 hw_if->enable_int(channel, int_id); in xgbe_enable_rx_tx_int()
339 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_disable_rx_tx_int() local
351 hw_if->disable_int(channel, int_id); in xgbe_disable_rx_tx_int()
435 pdata->hw_if.disable_ecc_ded(pdata); in xgbe_ecc_isr_task()
443 pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_TX); in xgbe_ecc_isr_task()
449 pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_RX); in xgbe_ecc_isr_task()
454 pdata->hw_if.disable_ecc_sec(pdata, XGBE_ECC_SEC_DESC); in xgbe_ecc_isr_task()
480 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_isr_task() local
[all …]
Dxgbe-dev.c2773 pdata->hw_if.disable_rx(pdata); in xgbe_config_dcb_pfc()
2781 pdata->hw_if.enable_rx(pdata); in xgbe_config_dcb_pfc()
3527 void xgbe_init_function_ptrs_dev(struct xgbe_hw_if *hw_if) in xgbe_init_function_ptrs_dev() argument
3531 hw_if->tx_complete = xgbe_tx_complete; in xgbe_init_function_ptrs_dev()
3533 hw_if->set_mac_address = xgbe_set_mac_address; in xgbe_init_function_ptrs_dev()
3534 hw_if->config_rx_mode = xgbe_config_rx_mode; in xgbe_init_function_ptrs_dev()
3536 hw_if->enable_rx_csum = xgbe_enable_rx_csum; in xgbe_init_function_ptrs_dev()
3537 hw_if->disable_rx_csum = xgbe_disable_rx_csum; in xgbe_init_function_ptrs_dev()
3539 hw_if->enable_rx_vlan_stripping = xgbe_enable_rx_vlan_stripping; in xgbe_init_function_ptrs_dev()
3540 hw_if->disable_rx_vlan_stripping = xgbe_disable_rx_vlan_stripping; in xgbe_init_function_ptrs_dev()
[all …]
Dxgbe-ethtool.c226 pdata->hw_if.read_mmc_stats(pdata); in xgbe_get_ethtool_stats()
450 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_set_coalesce() local
478 rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); in xgbe_set_coalesce()
489 hw_if->riwt_to_usec(pdata, XGMAC_MAX_DMA_RIWT)); in xgbe_set_coalesce()
510 hw_if->config_rx_coalesce(pdata); in xgbe_set_coalesce()
513 hw_if->config_tx_coalesce(pdata); in xgbe_set_coalesce()
573 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_set_rxfh() local
582 ret = hw_if->set_rss_lookup_table(pdata, indir); in xgbe_set_rxfh()
588 ret = hw_if->set_rss_hash_key(pdata, key); in xgbe_set_rxfh()
Dxgbe-desc.c388 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_tx_descriptor_init() local
421 hw_if->tx_desc_init(channel); in xgbe_wrapper_tx_descriptor_init()
429 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_wrapper_rx_descriptor_init() local
464 hw_if->rx_desc_init(channel); in xgbe_wrapper_rx_descriptor_init()
Dxgbe-ptp.c132 nsec = pdata->hw_if.get_tstamp_time(pdata); in xgbe_cc_read()
161 pdata->hw_if.update_tstamp_addend(pdata, addend); in xgbe_adjfreq()
Dxgbe-dcb.c205 pdata->hw_if.config_dcb_tc(pdata); in xgbe_dcb_ieee_setets()
252 pdata->hw_if.config_dcb_pfc(pdata); in xgbe_dcb_ieee_setpfc()
Dxgbe-mdio.c222 pdata->hw_if.set_speed(pdata, SPEED_10000); in xgbe_kr_mode()
231 pdata->hw_if.set_speed(pdata, SPEED_2500); in xgbe_kx_2500_mode()
240 pdata->hw_if.set_speed(pdata, SPEED_1000); in xgbe_kx_1000_mode()
253 pdata->hw_if.set_speed(pdata, SPEED_10000); in xgbe_sfi_mode()
262 pdata->hw_if.set_speed(pdata, SPEED_1000); in xgbe_x_mode()
271 pdata->hw_if.set_speed(pdata, SPEED_1000); in xgbe_sgmii_1000_mode()
280 pdata->hw_if.set_speed(pdata, SPEED_1000); in xgbe_sgmii_100_mode()
1115 pdata->hw_if.config_tx_flow_control(pdata); in xgbe_phy_adjust_link()
1121 pdata->hw_if.config_rx_flow_control(pdata); in xgbe_phy_adjust_link()
Dxgbe-main.c165 xgbe_init_function_ptrs_dev(&pdata->hw_if); in xgbe_init_all_fptrs()
283 ret = pdata->hw_if.exit(pdata); in xgbe_config_netdev()
Dxgbe-phy-v2.c613 return pdata->hw_if.write_ext_mii_regs(pdata, addr, reg, val); in xgbe_phy_mdio_mii_write()
673 return pdata->hw_if.read_ext_mii_regs(pdata, addr, reg); in xgbe_phy_mdio_mii_read()
997 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, in xgbe_phy_find_phy_device()
1899 return pdata->hw_if.write_ext_mii_regs(pdata, phy_data->redrv_addr, in xgbe_phy_set_redrv_mode_mdio()
2651 ret = pdata->hw_if.set_gpio(pdata, phy_data->mdio_reset_gpio); in xgbe_phy_int_mdio_reset()
2655 ret = pdata->hw_if.clr_gpio(pdata, phy_data->mdio_reset_gpio); in xgbe_phy_int_mdio_reset()
3004 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, in xgbe_phy_start()
3303 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, in xgbe_phy_init()
3314 ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, in xgbe_phy_init()
Dxgbe-common.h1685 ((_pdata)->hw_if.read_mmd_regs((_pdata), 0, \
1692 ((_pdata)->hw_if.write_mmd_regs((_pdata), 0, \
Dxgbe.h1099 struct xgbe_hw_if hw_if; member