Home
last modified time | relevance | path

Searched refs:emac (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth.c61 static void prueth_cleanup_rx_chns(struct prueth_emac *emac, in prueth_cleanup_rx_chns() argument
72 static void prueth_cleanup_tx_chns(struct prueth_emac *emac) in prueth_cleanup_tx_chns() argument
76 for (i = 0; i < emac->tx_ch_num; i++) { in prueth_cleanup_tx_chns()
77 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_cleanup_tx_chns()
92 static void prueth_ndev_del_tx_napi(struct prueth_emac *emac, int num) in prueth_ndev_del_tx_napi() argument
97 struct prueth_tx_chn *tx_chn = &emac->tx_chns[i]; in prueth_ndev_del_tx_napi()
141 static int emac_tx_complete_packets(struct prueth_emac *emac, int chn, in emac_tx_complete_packets() argument
144 struct net_device *ndev = emac->ndev; in emac_tx_complete_packets()
154 tx_chn = &emac->tx_chns[chn]; in emac_tx_complete_packets()
163 if (atomic_dec_and_test(&emac in emac_tx_complete_packets()
207 struct prueth_emac *emac = tx_chn->emac; emac_napi_tx_poll() local
231 prueth_ndev_add_tx_napi(struct prueth_emac *emac) prueth_ndev_add_tx_napi() argument
257 prueth_init_tx_chns(struct prueth_emac *emac) prueth_init_tx_chns() argument
337 prueth_init_rx_chns(struct prueth_emac *emac, struct prueth_rx_chn *rx_chn, char *name, u32 max_rflows, u32 max_desc_num) prueth_init_rx_chns() argument
439 prueth_dma_rx_push(struct prueth_emac *emac, struct sk_buff *skb, struct prueth_rx_chn *rx_chn) prueth_dma_rx_push() argument
491 emac_rx_timestamp(struct prueth_emac *emac, struct sk_buff *skb, u32 *psdata) emac_rx_timestamp() argument
507 emac_rx_packet(struct prueth_emac *emac, u32 flow_id) emac_rx_packet() argument
599 emac_get_tx_ts(struct prueth_emac *emac, struct emac_tx_ts_response *rsp) emac_get_tx_ts() argument
619 tx_ts_work(struct prueth_emac *emac) tx_ts_work() argument
664 prueth_tx_ts_cookie_get(struct prueth_emac *emac) prueth_tx_ts_cookie_get() argument
694 struct prueth_emac *emac = netdev_priv(ndev); emac_ndo_start_xmit() local
868 struct prueth_emac *emac = dev_id; prueth_tx_ts_irq() local
878 struct prueth_emac *emac = dev_id; prueth_rx_irq() local
905 prueth_emac_start(struct prueth *prueth, struct prueth_emac *emac) prueth_emac_start() argument
956 prueth_emac_stop(struct prueth_emac *emac) prueth_emac_stop() argument
979 prueth_cleanup_tx_ts(struct prueth_emac *emac) prueth_cleanup_tx_ts() argument
994 struct prueth_emac *emac = netdev_priv(ndev); emac_adjust_link() local
1058 struct prueth_emac *emac = prueth_napi_to_emac(napi_rx); emac_napi_rx_poll() local
1085 prueth_prepare_rx_chan(struct prueth_emac *emac, struct prueth_rx_chn *chn, int buf_size) prueth_prepare_rx_chan() argument
1110 prueth_reset_tx_chan(struct prueth_emac *emac, int ch_num, bool free_skb) prueth_reset_tx_chan() argument
1136 emac_phy_connect(struct prueth_emac *emac) emac_phy_connect() argument
1166 struct prueth_emac *emac = clockops_data; prueth_iep_gettime() local
1203 struct prueth_emac *emac = clockops_data; prueth_iep_settime() local
1243 struct prueth_emac *emac = clockops_data; prueth_perout_enable() local
1306 struct prueth_emac *emac = netdev_priv(ndev); emac_ndo_open() local
1442 struct prueth_emac *emac = netdev_priv(ndev); emac_ndo_stop() local
1516 struct prueth_emac *emac = container_of(work, struct prueth_emac, rx_mode_work); emac_ndo_set_rx_mode_work() local
1554 struct prueth_emac *emac = netdev_priv(ndev); emac_ndo_set_rx_mode() local
1561 struct prueth_emac *emac = netdev_priv(ndev); emac_set_ts_config() local
1610 struct prueth_emac *emac = netdev_priv(ndev); emac_get_ts_config() local
1638 struct prueth_emac *emac = netdev_priv(ndev); emac_ndo_get_stats64() local
1708 struct prueth_emac *emac; prueth_netdev_init() local
1850 struct prueth_emac *emac; prueth_netdev_exit() local
[all...]
H A Dicssg_ethtool.c14 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_drvinfo() local
15 struct prueth *prueth = emac->prueth; in emac_get_drvinfo()
24 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_msglevel() local
26 return emac->msg_enable; in emac_get_msglevel()
31 struct prueth_emac *emac = netdev_priv(ndev); in emac_set_msglevel() local
33 emac->msg_enable = value; in emac_set_msglevel()
102 struct prueth_emac *emac = netdev_priv(ndev); in emac_get_ethtool_stats() local
105 emac_update_hardware_stats(emac); in emac_get_ethtool_stats()
109 *(data++) = emac->stats[i]; in emac_get_ethtool_stats()
115 struct prueth_emac *emac in emac_get_ts_info() local
135 struct prueth_emac *emac = netdev_priv(ndev); emac_set_channels() local
151 struct prueth_emac *emac = netdev_priv(ndev); emac_get_channels() local
172 struct prueth_emac *emac = netdev_priv(ndev); emac_get_rmon_stats() local
[all...]
H A Dicssg_config.c108 static void icssg_config_mii_init(struct prueth_emac *emac) in icssg_config_mii_init() argument
111 struct prueth *prueth = emac->prueth; in icssg_config_mii_init()
112 int slice = prueth_emac_slice(emac); in icssg_config_mii_init()
133 if (emac->phy_if == PHY_INTERFACE_MODE_MII && slice == ICSS_MII0) in icssg_config_mii_init()
135 else if (emac->phy_if != PHY_INTERFACE_MODE_MII && slice == ICSS_MII1) in icssg_config_mii_init()
201 void icssg_config_ipg(struct prueth_emac *emac) in icssg_config_ipg() argument
203 struct prueth *prueth = emac->prueth; in icssg_config_ipg()
204 int slice = prueth_emac_slice(emac); in icssg_config_ipg()
206 switch (emac->speed) { in icssg_config_ipg()
219 netdev_err(emac in icssg_config_ipg()
224 emac_r30_cmd_init(struct prueth_emac *emac) emac_r30_cmd_init() argument
235 emac_r30_is_done(struct prueth_emac *emac) emac_r30_is_done() argument
252 prueth_emac_buffer_setup(struct prueth_emac *emac) prueth_emac_buffer_setup() argument
328 icssg_config(struct prueth *prueth, struct prueth_emac *emac, int slice) icssg_config() argument
403 emac_set_port_state(struct prueth_emac *emac, enum icssg_port_state_cmd cmd) emac_set_port_state() argument
436 icssg_config_set_speed(struct prueth_emac *emac) icssg_config_set_speed() argument
[all...]
H A Dicssg_stats.c19 void emac_update_hardware_stats(struct prueth_emac *emac) in emac_update_hardware_stats() argument
21 struct prueth *prueth = emac->prueth; in emac_update_hardware_stats()
22 int slice = prueth_emac_slice(emac); in emac_update_hardware_stats()
39 emac->stats[i] += val; in emac_update_hardware_stats()
41 emac->stats[i] -= tx_pkt_cnt * 8; in emac_update_hardware_stats()
47 struct prueth_emac *emac = container_of(work, struct prueth_emac, in emac_stats_work_handler() local
49 emac_update_hardware_stats(emac); in emac_stats_work_handler()
51 queue_delayed_work(system_long_wq, &emac->stats_work, in emac_stats_work_handler()
52 msecs_to_jiffies((STATS_TIME_LIMIT_1G_MS * 1000) / emac->speed)); in emac_stats_work_handler()
55 int emac_get_stat_by_name(struct prueth_emac *emac, cha argument
[all...]
H A Dicssg_prueth.h82 * In emac mode there are 2 real ports i.e. 2 mac addrs.
104 struct prueth_emac *emac; member
128 /* data for each emac port */
201 * @emac: private EMAC data structure
224 struct prueth_emac *emac[PRUETH_NUM_MACS]; member
246 static inline int prueth_emac_slice(struct prueth_emac *emac) in prueth_emac_slice() argument
248 switch (emac->port_id) { in prueth_emac_slice()
268 void icssg_config_ipg(struct prueth_emac *emac);
269 int icssg_config(struct prueth *prueth, struct prueth_emac *emac,
271 int emac_set_port_state(struct prueth_emac *emac,
[all...]
H A Dicssg_mii_cfg.c44 void icssg_update_rgmii_cfg(struct regmap *miig_rt, struct prueth_emac *emac) in icssg_update_rgmii_cfg() argument
47 int slice = prueth_emac_slice(emac); in icssg_update_rgmii_cfg()
52 if (emac->speed == SPEED_1000) in icssg_update_rgmii_cfg()
58 if (emac->speed == SPEED_10 && phy_interface_mode_is_rgmii(emac->phy_if)) in icssg_update_rgmii_cfg()
64 if (emac->duplex == DUPLEX_FULL) in icssg_update_rgmii_cfg()
H A Dicssg_mii_rt.h145 void icssg_update_rgmii_cfg(struct regmap *miig_rt, struct prueth_emac *emac);
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/
H A DMakefile6 obj-$(CONFIG_QCOM_EMAC) += qcom-emac.o
8 qcom-emac-objs := emac.o emac-mac.o emac-phy.o emac-sgmii.o emac-ethtool.o \
9 emac-sgmii-fsm9900.o emac-sgmii-qdf2432.o \
10 emac
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qualcomm/emac/
H A DMakefile6 obj-$(CONFIG_QCOM_EMAC) += qcom-emac.o
8 qcom-emac-objs := emac.o emac-mac.o emac-phy.o emac-sgmii.o emac-ethtool.o \
9 emac-sgmii-fsm9900.o emac-sgmii-qdf2432.o \
10 emac
[all...]
/kernel/linux/linux-6.6/net/ethtool/
H A Dstats.c473 struct ethtool_eth_mac_stats pmac, emac; in ethtool_aggregate_mac_stats() local
475 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_mac_stats()
477 emac.src = ETHTOOL_MAC_STATS_SRC_EMAC; in ethtool_aggregate_mac_stats()
480 ops->get_eth_mac_stats(dev, &emac); in ethtool_aggregate_mac_stats()
483 ethtool_aggregate_stats(mac_stats, &emac, &pmac, in ethtool_aggregate_mac_stats()
493 struct ethtool_eth_phy_stats pmac, emac; in ethtool_aggregate_phy_stats() local
495 memset(&emac, 0xff, sizeof(emac)); in ethtool_aggregate_phy_stats()
497 emac in ethtool_aggregate_phy_stats()
513 struct ethtool_eth_ctrl_stats pmac, emac; ethtool_aggregate_ctrl_stats() local
533 struct ethtool_pause_stats pmac, emac; ethtool_aggregate_pause_stats() local
554 struct ethtool_rmon_stats pmac, emac; ethtool_aggregate_rmon_stats() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/arc/
H A Demac_rockchip.c3 * emac-rockchip.c - Rockchip EMAC specific glue layer
16 #include "emac.h"
28 struct arc_emac_priv emac; member
38 struct rockchip_priv_data *emac = priv; in emac_rockchip_set_mac_speed() local
39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed()
55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
77 .compatible = "rockchip,rk3036-emac",
81 .compatible = "rockchip,rk3066-emac",
85 .compatible = "rockchip,rk3188-emac",
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/arc/
H A Demac_rockchip.c3 * emac-rockchip.c - Rockchip EMAC specific glue layer
16 #include "emac.h"
28 struct arc_emac_priv emac; member
38 struct rockchip_priv_data *emac = priv; in emac_rockchip_set_mac_speed() local
39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed()
55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
77 .compatible = "rockchip,rk3036-emac",
81 .compatible = "rockchip,rk3066-emac",
85 .compatible = "rockchip,rk3188-emac",
[all...]
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dtreeboot-akebono.c72 void *emac; in ibm_akebono_fixups() local
85 emac = finddevice("/plb/opb/ethernet"); in ibm_akebono_fixups()
86 if (emac > 0) { in ibm_akebono_fixups()
88 setprop(emac, "local-mac-address", in ibm_akebono_fixups()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Dtreeboot-akebono.c72 void *emac; in ibm_akebono_fixups() local
85 emac = finddevice("/plb/opb/ethernet"); in ibm_akebono_fixups()
86 if (emac > 0) { in ibm_akebono_fixups()
88 setprop(emac, "local-mac-address", in ibm_akebono_fixups()
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/
H A DMakefile12 obj-y += emac/
/kernel/linux/linux-6.6/drivers/net/ethernet/qualcomm/
H A DMakefile12 obj-y += emac/
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/
H A Ddebug.h3 * drivers/net/ethernet/ibm/emac/debug.h
32 # define DBG(d,f,x...) EMAC_DBG(d, emac, f, ##x)
/kernel/linux/linux-6.6/drivers/net/ethernet/ibm/emac/
H A Ddebug.h3 * drivers/net/ethernet/ibm/emac/debug.h
32 # define DBG(d,f,x...) EMAC_DBG(d, emac, f, ##x)
/kernel/linux/linux-5.10/drivers/clk/davinci/
H A Dpsc-dm365.c70 LPSC(40, 0, emac, pll1_sysclk4, emac_clkdev, 0),
H A Dpsc-dm644x.c40 LPSC(6, 0, emac, pll1_sysclk5, emac_clkdev, 0),
H A Dpsc-dm646x.c43 LPSC(14, 0, emac, pll1_sysclk3, emac_clkdev, 0),
H A Dpsc-da850.c110 LPSC(5, 0, emac, pll0_sysclk4, emac_clkdev, 0),
H A Dpsc-da830.c87 LPSC(5, 0, emac, pll0_sysclk4, emac_clkdev, 0),
/kernel/linux/linux-6.6/arch/arm/mach-at91/
H A Dpm.c1140 { .compatible = "microchip,sama7g5-emac" },
1220 struct at91_pm_quirk_eth *emac = &soc_pm.quirks.eth[AT91_PM_E_ETH]; in at91_pm_modes_init() local
1279 emac->np = np; in at91_pm_modes_init()
1280 ret = at91_pm_get_eth_clks(np, emac->clks); in at91_pm_modes_init()
1283 of_node_put(emac->np); in at91_pm_modes_init()
1285 emac->np = NULL; in at91_pm_modes_init()
/kernel/linux/linux-6.6/drivers/clk/davinci/
H A Dpsc-da850.c110 LPSC(5, 0, emac, pll0_sysclk4, emac_clkdev, 0),

Completed in 12 milliseconds

12