Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/altera/
H A 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 …]
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c200 static void dpaa_eth_cgr_set_speed(struct mac_device *mac_dev, int speed);
208 struct mac_device *mac_dev = priv->mac_dev; in dpaa_netdev_init() local
222 mac_addr = mac_dev->addr; in dpaa_netdev_init()
224 net_dev->mem_start = (unsigned long)priv->mac_dev->res->start; in dpaa_netdev_init()
225 net_dev->mem_end = (unsigned long)priv->mac_dev->res->end; in dpaa_netdev_init()
257 err = mac_dev->change_addr(mac_dev->fman_mac, in dpaa_netdev_init()
273 mac_dev->phylink_config.dev = &net_dev->dev; in dpaa_netdev_init()
274 mac_dev->phylink_config.type = PHYLINK_NETDEV; in dpaa_netdev_init()
275 mac_dev->update_speed = dpaa_eth_cgr_set_speed; in dpaa_netdev_init()
276 mac_dev->phylink = phylink_create(&mac_dev->phylink_config, in dpaa_netdev_init()
[all …]
H A 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()
H A Ddpaa_eth.h138 struct mac_device *mac_dev; member
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_dtsec.c901 struct mac_device *mac_dev = fman_config_to_mac(config); in dtsec_mac_config() local
902 struct dtsec_regs __iomem *regs = mac_dev->fman_mac->regs; in dtsec_mac_config()
921 dev_warn(mac_dev->dev, "cannot configure dTSEC for %s\n", in dtsec_mac_config()
933 struct mac_device *mac_dev = fman_config_to_mac(config); in dtsec_link_up() local
934 struct fman_mac *dtsec = mac_dev->fman_mac; in dtsec_link_up()
962 mac_dev->update_speed(mac_dev, speed); in dtsec_link_up()
1344 static struct fman_mac *dtsec_config(struct mac_device *mac_dev, in dtsec_config() argument
1365 dtsec->regs = mac_dev->vaddr; in dtsec_config()
1366 dtsec->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in dtsec_config()
1367 dtsec->phy_if = mac_dev->phy_if; in dtsec_config()
[all …]
H A Dfman_memac.h16 int memac_initialization(struct mac_device *mac_dev,
H A Dfman_dtsec.h13 int dtsec_initialization(struct mac_device *mac_dev,
H A Dfman_tgec.h13 int tgec_initialization(struct mac_device *mac_dev,