Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/freescale/fman/
Dmac.c44 static void mac_exception(struct mac_device *mac_dev, in mac_exception() argument
49 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception()
51 dev_err(mac_dev->dev, "10G MAC got RX FIFO Error = %x\n", ex); in mac_exception()
54 dev_dbg(mac_dev->dev, "%s:%s() -> %d\n", KBUILD_BASENAME ".c", in mac_exception()
58 int fman_set_multi(struct net_device *net_dev, struct mac_device *mac_dev) in fman_set_multi() argument
66 priv = mac_dev->priv; in fman_set_multi()
71 err = mac_dev->remove_hash_mac_addr(mac_dev->fman_mac, addr); in fman_set_multi()
82 err = mac_dev->add_hash_mac_addr(mac_dev->fman_mac, addr); in fman_set_multi()
110 int fman_set_mac_active_pause(struct mac_device *mac_dev, bool rx, bool tx) in fman_set_mac_active_pause() argument
112 struct fman_mac *fman_mac = mac_dev->fman_mac; in fman_set_mac_active_pause()
[all …]
Dmac.h41 int (*enable)(struct fman_mac *mac_dev);
42 void (*disable)(struct fman_mac *mac_dev);
43 void (*adjust_link)(struct mac_device *mac_dev);
44 int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
45 int (*change_addr)(struct fman_mac *mac_dev, const enet_addr_t *enet_addr);
46 int (*set_allmulti)(struct fman_mac *mac_dev, bool enable);
47 int (*set_tstamp)(struct fman_mac *mac_dev, bool enable);
49 struct mac_device *mac_dev);
50 int (*set_rx_pause)(struct fman_mac *mac_dev, bool en);
51 int (*set_tx_pause)(struct fman_mac *mac_dev, u8 priority,
[all …]
Dfman_memac.c776 static void adjust_link_memac(struct mac_device *mac_dev) in adjust_link_memac() argument
778 struct phy_device *phy_dev = mac_dev->phy_dev; in adjust_link_memac()
783 fman_mac = mac_dev->fman_mac; in adjust_link_memac()
785 mac_dev->update_speed(mac_dev, phy_dev->speed); in adjust_link_memac()
787 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_memac()
788 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_memac()
790 dev_err(mac_dev->dev, "fman_set_mac_active_pause() = %d\n", in adjust_link_memac()
1111 static struct fman_mac *memac_config(struct mac_device *mac_dev, in memac_config() argument
1134 memac->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in memac_config()
1136 memac->regs = mac_dev->vaddr; in memac_config()
[all …]
Dfman_tgec.c604 static void tgec_adjust_link(struct mac_device *mac_dev) in tgec_adjust_link() argument
606 struct phy_device *phy_dev = mac_dev->phy_dev; in tgec_adjust_link()
608 mac_dev->update_speed(mac_dev, phy_dev->speed); in tgec_adjust_link()
731 static struct fman_mac *tgec_config(struct mac_device *mac_dev, in tgec_config() argument
754 tgec->regs = mac_dev->vaddr; in tgec_config()
755 tgec->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in tgec_config()
775 tgec->dev_id = mac_dev; in tgec_config()
784 int tgec_initialization(struct mac_device *mac_dev, in tgec_initialization() argument
791 mac_dev->set_promisc = tgec_set_promiscuous; in tgec_initialization()
792 mac_dev->change_addr = tgec_modify_mac_address; in tgec_initialization()
[all …]
Dfman_dtsec.c1232 static void adjust_link_dtsec(struct mac_device *mac_dev) in adjust_link_dtsec() argument
1234 struct phy_device *phy_dev = mac_dev->phy_dev; in adjust_link_dtsec()
1239 fman_mac = mac_dev->fman_mac; in adjust_link_dtsec()
1247 mac_dev->update_speed(mac_dev, phy_dev->speed); in adjust_link_dtsec()
1248 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_dtsec()
1249 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_dtsec()
1251 dev_err(mac_dev->dev, "fman_set_mac_active_pause() = %d\n", in adjust_link_dtsec()
1414 static struct fman_mac *dtsec_config(struct mac_device *mac_dev, in dtsec_config() argument
1435 dtsec->regs = mac_dev->vaddr; in dtsec_config()
1436 dtsec->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in dtsec_config()
[all …]
Dfman_memac.h16 int memac_initialization(struct mac_device *mac_dev,
Dfman_tgec.h13 int tgec_initialization(struct mac_device *mac_dev,
Dfman_dtsec.h13 int dtsec_initialization(struct mac_device *mac_dev,
/linux-6.1.9/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.c98 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read()
102 return csrrd32(priv->mac_dev, in altera_tse_mdio_read()
113 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write()
117 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
650 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
651 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
665 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
668 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
672 if (tse_bit_is_clear(priv->mac_dev, tse_csroffs(command_config), in reset_mac()
679 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
[all …]
Daltera_tse.h402 struct altera_tse_mac __iomem *mac_dev; member
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa/
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()
252 err = mac_dev->change_addr(mac_dev->fman_mac, in dpaa_netdev_init()
267 mac_dev->net_dev = net_dev; in dpaa_netdev_init()
268 mac_dev->update_speed = dpaa_eth_cgr_set_speed; in dpaa_netdev_init()
284 struct mac_device *mac_dev; in dpaa_stop() local
289 mac_dev = priv->mac_dev; in dpaa_stop()
[all …]
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_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