Home
last modified time | relevance | path

Searched refs:mac_ops (Results 1 – 25 of 38) sorted by relevance

12

/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_cgx.c424 struct mac_ops *mac_ops; in rvu_cgx_enadis_rx_bp() local
434 mac_ops = get_mac_ops(cgxd); in rvu_cgx_enadis_rx_bp()
437 mac_ops->mac_enadis_rx_pause_fwding(cgxd, lmac_id, true); in rvu_cgx_enadis_rx_bp()
439 mac_ops->mac_enadis_rx_pause_fwding(cgxd, lmac_id, false); in rvu_cgx_enadis_rx_bp()
445 struct mac_ops *mac_ops; in rvu_cgx_config_rxtx() local
454 mac_ops = get_mac_ops(cgxd); in rvu_cgx_config_rxtx()
456 return mac_ops->mac_rx_tx_enable(cgxd, lmac_id, start); in rvu_cgx_config_rxtx()
462 struct mac_ops *mac_ops; in rvu_cgx_tx_enable() local
471 mac_ops = get_mac_ops(cgxd); in rvu_cgx_tx_enable()
473 return mac_ops->mac_tx_enable(cgxd, lmac_id, enable); in rvu_cgx_tx_enable()
[all …]
Dcgx.c102 struct mac_ops *get_mac_ops(void *cgxd) in get_mac_ops()
107 return ((struct cgx *)cgxd)->mac_ops; in get_mac_ops()
112 writeq(val, cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_write()
118 return readq(cgx->reg_base + (lmac << cgx->mac_ops->lmac_offset) + in cgx_read()
246 struct mac_ops *mac_ops; in cgx_lmac_addr_set() local
251 mac_ops = cgx_dev->mac_ops; in cgx_lmac_addr_set()
275 struct mac_ops *mac_ops; in cgx_read_dmac_ctrl() local
283 mac_ops = cgx->mac_ops; in cgx_read_dmac_ctrl()
290 struct mac_ops *mac_ops; in cgx_read_dmac_entry() local
297 mac_ops = cgx->mac_ops; in cgx_read_dmac_entry()
[all …]
Dlmac_common.h49 struct mac_ops { struct
126 struct mac_ops *mac_ops; member
143 struct mac_ops *rpm_get_mac_ops(void);
Drpm.c11 static struct mac_ops rpm_mac_ops = {
38 struct mac_ops *rpm_get_mac_ops(void) in rpm_get_mac_ops()
212 idx += lmac_id * rpm->mac_ops->rx_stats_cnt; in rpm_get_rx_stats()
240 idx += lmac_id * rpm->mac_ops->tx_stats_cnt; in rpm_get_tx_stats()
272 fifo_len = rpm->mac_ops->fifo_len; in rpm_get_lmac_fifo_len()
273 num_lmacs = rpm->mac_ops->get_nr_lmacs(rpm); in rpm_get_lmac_fifo_len()
302 lmac_type = rpm->mac_ops->get_lmac_type(rpm, lmac_id); in rpm_lmac_internal_loopback()
Dcgx.h43 #define CGXX_CMRX_RX_DMAC_CTL0 (0x1F8 + mac_ops->csr_offset)
49 #define CGXX_CMRX_RX_DMAC_CAM0 (0x200 + mac_ops->csr_offset)
165 struct mac_ops *get_mac_ops(void *cgxd);
Drvu_debugfs.c403 struct mac_ops *mac_ops; in rvu_dbg_rvu_pf_cgx_map_display() local
411 mac_ops = get_mac_ops(rvu_first_cgx_pdata(rvu)); in rvu_dbg_rvu_pf_cgx_map_display()
413 if (!mac_ops) in rvu_dbg_rvu_pf_cgx_map_display()
416 mac_ops->name); in rvu_dbg_rvu_pf_cgx_map_display()
437 sprintf(cgx, "%s%d", mac_ops->name, cgx_id); in rvu_dbg_rvu_pf_cgx_map_display()
1953 struct mac_ops *mac_ops; in cgx_print_stats() local
1965 mac_ops = get_mac_ops(cgxd); in cgx_print_stats()
1967 if (!mac_ops) in cgx_print_stats()
1980 mac_ops->name); in cgx_print_stats()
2003 mac_ops->name); in cgx_print_stats()
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dvf.c985 .mac_ops = &ixgbevf_mac_ops,
990 .mac_ops = &ixgbevf_hv_mac_ops,
995 .mac_ops = &ixgbevf_mac_ops,
1000 .mac_ops = &ixgbevf_hv_mac_ops,
1005 .mac_ops = &ixgbevf_mac_ops,
1010 .mac_ops = &ixgbevf_hv_mac_ops,
1015 .mac_ops = &ixgbevf_mac_ops,
1020 .mac_ops = &ixgbevf_hv_mac_ops,
1025 .mac_ops = &ixgbevf_mac_ops,
Dvf.h150 const struct ixgbe_mac_operations *mac_ops; member
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c240 pdata->mac_ops->get_drop_cnt(pdata, &rx_drop, &tx_drop); in xgene_get_extd_stats()
311 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_set_pauseparam()
312 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_set_pauseparam()
321 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_set_pauseparam()
322 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_set_pauseparam()
Dxgene_enet_hw.c543 pdata->mac_ops->enable_tx_pause(pdata, enable); in xgene_gmac_flowctl_tx()
789 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_enet_flowctrl_cfg()
794 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_enet_flowctrl_cfg()
803 const struct xgene_mac_ops *mac_ops = pdata->mac_ops; in xgene_enet_adjust_link() local
809 mac_ops->set_speed(pdata); in xgene_enet_adjust_link()
810 mac_ops->rx_enable(pdata); in xgene_enet_adjust_link()
811 mac_ops->tx_enable(pdata); in xgene_enet_adjust_link()
817 mac_ops->rx_disable(pdata); in xgene_enet_adjust_link()
818 mac_ops->tx_disable(pdata); in xgene_enet_adjust_link()
Dxgene_enet_main.c296 pdata->mac_ops->set_mss(pdata, mss, i); in xgene_enet_setup_mss()
870 pdata->mac_ops->reset(pdata); in xgene_enet_timeout()
994 const struct xgene_mac_ops *mac_ops = pdata->mac_ops; in xgene_enet_open() local
1019 mac_ops->tx_enable(pdata); in xgene_enet_open()
1020 mac_ops->rx_enable(pdata); in xgene_enet_open()
1029 const struct xgene_mac_ops *mac_ops = pdata->mac_ops; in xgene_enet_close() local
1033 mac_ops->tx_disable(pdata); in xgene_enet_close()
1034 mac_ops->rx_disable(pdata); in xgene_enet_close()
1517 pdata->mac_ops->set_mac_addr(pdata); in xgene_enet_set_mac_address()
1534 pdata->mac_ops->set_framesize(pdata, frame_size); in xgene_change_mtu()
[all …]
Dxgene_enet_main.h218 const struct xgene_mac_ops *mac_ops; member
Dxgene_enet_xgmac.c282 pdata->mac_ops->enable_tx_pause(pdata, enable); in xgene_xgmac_flowctl_tx()
Dxgene_enet_sgmac.c321 p->mac_ops->enable_tx_pause(p, enable); in xgene_sgmac_flowctl_tx()
/drivers/net/phy/
Dphylink.c45 const struct phylink_mac_ops *mac_ops; member
161 pl->mac_ops->validate(pl->config, supported, state); in phylink_validate()
435 pl->mac_ops->mac_config(pl->config, pl->cur_link_an_mode, state); in phylink_mac_config()
446 pl->mac_ops->mac_an_restart(pl->config); in phylink_mac_pcs_an_restart()
457 if (pl->mac_ops->mac_prepare) { in phylink_major_config()
458 err = pl->mac_ops->mac_prepare(pl->config, pl->cur_link_an_mode, in phylink_major_config()
484 if (pl->mac_ops->mac_finish) { in phylink_major_config()
485 err = pl->mac_ops->mac_finish(pl->config, pl->cur_link_an_mode, in phylink_major_config()
551 else if (pl->mac_ops->mac_pcs_get_state) in phylink_mac_pcs_get_state()
552 pl->mac_ops->mac_pcs_get_state(pl->config, state); in phylink_mac_pcs_get_state()
[all …]
/drivers/net/ethernet/intel/e1000e/
D82571.c1963 .mac_ops = &e82571_mac_ops,
1981 .mac_ops = &e82571_mac_ops,
1999 .mac_ops = &e82571_mac_ops,
2024 .mac_ops = &e82571_mac_ops,
2046 .mac_ops = &e82571_mac_ops,
Dich8lan.c5865 .mac_ops = &ich8_mac_ops,
5882 .mac_ops = &ich8_mac_ops,
5899 .mac_ops = &ich8_mac_ops,
5918 .mac_ops = &ich8_mac_ops,
5939 .mac_ops = &ich8_mac_ops,
5960 .mac_ops = &ich8_mac_ops,
5980 .mac_ops = &ich8_mac_ops,
6000 .mac_ops = &ich8_mac_ops,
6020 .mac_ops = &ich8_mac_ops,
6040 .mac_ops = &ich8_mac_ops,
De1000.h343 const struct e1000_mac_operations *mac_ops; member
/drivers/net/ethernet/intel/igc/
Digc_base.c423 .mac_ops = &igc_mac_ops_base,
Digc_hw.h76 struct igc_mac_operations *mac_ops; member
/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c531 .mac_ops = &mac_ops_vf,
Dfm10k_type.h640 const struct fm10k_mac_ops *mac_ops; member
/drivers/net/ethernet/intel/igb/
De1000_hw.h356 struct e1000_mac_operations *mac_ops; member
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x550.c4059 .mac_ops = &mac_ops_X550,
4069 .mac_ops = &mac_ops_X550EM_x,
4080 .mac_ops = &mac_ops_X550EM_x_fw,
4090 .mac_ops = &mac_ops_x550em_a,
4100 .mac_ops = &mac_ops_x550em_a_fw,
Dixgbe_x540.c917 .mac_ops = &mac_ops_X540,

12