Home
last modified time | relevance | path

Searched refs:mac_dev (Results 1 – 9 of 9) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/freescale/fman/
Dmac.c69 int (*enable)(struct fman_mac *mac_dev, enum comm_mode mode);
70 int (*disable)(struct fman_mac *mac_dev, enum comm_mode mode);
80 struct mac_device *mac_dev; in mac_exception() local
83 mac_dev = handle; in mac_exception()
84 priv = mac_dev->priv; in mac_exception()
88 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception()
97 static int set_fman_mac_params(struct mac_device *mac_dev, in set_fman_mac_params() argument
100 struct mac_priv_s *priv = mac_dev->priv; in set_fman_mac_params()
103 devm_ioremap(priv->dev, mac_dev->res->start, in set_fman_mac_params()
104 resource_size(mac_dev->res)); in set_fman_mac_params()
[all …]
Dmac.h64 int (*init)(struct mac_device *mac_dev);
65 int (*start)(struct mac_device *mac_dev);
66 int (*stop)(struct mac_device *mac_dev);
67 void (*adjust_link)(struct mac_device *mac_dev);
68 int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
69 int (*change_addr)(struct fman_mac *mac_dev, const enet_addr_t *enet_addr);
70 int (*set_allmulti)(struct fman_mac *mac_dev, bool enable);
71 int (*set_tstamp)(struct fman_mac *mac_dev, bool enable);
73 struct mac_device *mac_dev);
74 int (*set_rx_pause)(struct fman_mac *mac_dev, bool en);
[all …]
/linux-5.19.10/drivers/net/ethernet/altera/
Daltera_tse_ethtool.c67 u32 rev = ioread32(&priv->mac_dev->megacore_revision); in tse_get_drvinfo()
89 buf[0] = csrrd32(priv->mac_dev, in tse_fill_stats()
91 buf[1] = csrrd32(priv->mac_dev, in tse_fill_stats()
93 buf[2] = csrrd32(priv->mac_dev, in tse_fill_stats()
95 buf[3] = csrrd32(priv->mac_dev, in tse_fill_stats()
99 ext = (u64) csrrd32(priv->mac_dev, in tse_fill_stats()
102 ext |= csrrd32(priv->mac_dev, in tse_fill_stats()
107 ext = (u64) csrrd32(priv->mac_dev, in tse_fill_stats()
110 ext |= csrrd32(priv->mac_dev, in tse_fill_stats()
114 buf[6] = csrrd32(priv->mac_dev, in tse_fill_stats()
[all …]
Daltera_tse_main.c93 return csrrd32(priv->mac_dev, in sgmii_pcs_read()
100 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4); in sgmii_pcs_write()
118 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read()
122 return csrrd32(priv->mac_dev, in altera_tse_mdio_read()
133 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write()
137 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
638 u32 cfg_reg = ioread32(&priv->mac_dev->command_config); in altera_tse_adjust_link()
678 iowrite32(cfg_reg, &priv->mac_dev->command_config); in altera_tse_adjust_link()
865 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
866 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
[all …]
Daltera_tse.h412 struct altera_tse_mac __iomem *mac_dev; member
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c121 struct mac_device *mac_dev; in dpaa_get_pauseparam() local
125 mac_dev = priv->mac_dev; in dpaa_get_pauseparam()
130 epause->autoneg = mac_dev->autoneg_pause; in dpaa_get_pauseparam()
131 epause->rx_pause = mac_dev->rx_pause_active; in dpaa_get_pauseparam()
132 epause->tx_pause = mac_dev->tx_pause_active; in dpaa_get_pauseparam()
138 struct mac_device *mac_dev; in dpaa_set_pauseparam() local
145 mac_dev = priv->mac_dev; in dpaa_set_pauseparam()
160 mac_dev->autoneg_pause = !!epause->autoneg; in dpaa_set_pauseparam()
161 mac_dev->rx_pause_req = !!epause->rx_pause; in dpaa_set_pauseparam()
162 mac_dev->tx_pause_req = !!epause->tx_pause; in dpaa_set_pauseparam()
[all …]
Ddpaa_eth.c219 mac_addr = priv->mac_dev->addr; in dpaa_netdev_init()
221 net_dev->mem_start = priv->mac_dev->res->start; in dpaa_netdev_init()
222 net_dev->mem_end = priv->mac_dev->res->end; in dpaa_netdev_init()
249 err = priv->mac_dev->change_addr(priv->mac_dev->fman_mac, in dpaa_netdev_init()
278 struct mac_device *mac_dev; in dpaa_stop() local
283 mac_dev = priv->mac_dev; in dpaa_stop()
291 err = mac_dev->stop(mac_dev); in dpaa_stop()
296 for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) { in dpaa_stop()
297 error = fman_port_disable(mac_dev->port[i]); in dpaa_stop()
393 struct mac_device *mac_dev; in dpaa_mac_dev_get() local
[all …]
Ddpaa_eth_sysfs.c17 struct mac_device *mac_dev = priv->mac_dev; in dpaa_eth_show_addr() local
19 if (mac_dev) in dpaa_eth_show_addr()
21 (unsigned long long)mac_dev->res->start); in dpaa_eth_show_addr()
Ddpaa_eth.h141 struct mac_device *mac_dev; member