Home
last modified time | relevance | path

Searched refs:mac_dev (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
H A 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 in set_fman_mac_params()
122 tgec_initialization(struct mac_device *mac_dev) tgec_initialization() argument
170 dtsec_initialization(struct mac_device *mac_dev) dtsec_initialization() argument
222 memac_initialization(struct mac_device *mac_dev) memac_initialization() argument
270 start(struct mac_device *mac_dev) start() argument
283 stop(struct mac_device *mac_dev) stop() argument
293 set_multi(struct net_device *net_dev, struct mac_device *mac_dev) set_multi() argument
345 fman_set_mac_active_pause(struct mac_device *mac_dev, bool rx, bool tx) fman_set_mac_active_pause() argument
381 fman_get_pause_cfg(struct mac_device *mac_dev, bool *rx_pause, bool *tx_pause) fman_get_pause_cfg() argument
427 adjust_link_void(struct mac_device *mac_dev) adjust_link_void() argument
431 adjust_link_dtsec(struct mac_device *mac_dev) adjust_link_dtsec() argument
453 adjust_link_memac(struct mac_device *mac_dev) adjust_link_memac() argument
470 setup_dtsec(struct mac_device *mac_dev) setup_dtsec() argument
490 setup_tgec(struct mac_device *mac_dev) setup_tgec() argument
510 setup_memac(struct mac_device *mac_dev) setup_memac() argument
557 dpaa_eth_add_device(int fman_id, struct mac_device *mac_dev) dpaa_eth_add_device() argument
615 struct mac_device *mac_dev; mac_probe() local
889 struct mac_device *mac_dev = platform_get_drvdata(pdev); mac_remove() local
[all...]
H A 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, 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, boo
89 struct mac_device *mac_dev; global() member
[all...]
/kernel/linux/linux-5.10/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...]
H A 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_csroff in tse_update_mac_addr()
[all...]
H A Daltera_tse.h412 struct altera_tse_mac __iomem *mac_dev; member
/kernel/linux/linux-6.6/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...]
H A Daltera_tse_main.c100 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read()
104 return csrrd32(priv->mac_dev, in altera_tse_mdio_read()
115 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write()
119 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
652 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
653 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
667 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
670 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
674 if (tse_bit_is_clear(priv->mac_dev, tse_csroffs(command_config), in reset_mac()
681 dat = csrrd32(priv->mac_dev, tse_csroff in reset_mac()
[all...]
H A Daltera_tse.h402 struct altera_tse_mac __iomem *mac_dev; member
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fman/
H A Dmac.c46 static void mac_exception(struct mac_device *mac_dev, in mac_exception() argument
51 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception()
53 dev_err(mac_dev->dev, "10G MAC got RX FIFO Error = %x\n", ex); in mac_exception()
56 dev_dbg(mac_dev->dev, "%s:%s() -> %d\n", KBUILD_BASENAME ".c", in mac_exception()
60 int fman_set_multi(struct net_device *net_dev, struct mac_device *mac_dev) in fman_set_multi() argument
68 priv = mac_dev->priv; in fman_set_multi()
73 err = mac_dev->remove_hash_mac_addr(mac_dev->fman_mac, addr); in fman_set_multi()
84 err = mac_dev in fman_set_multi()
100 dpaa_eth_add_device(int fman_id, struct mac_device *mac_dev) dpaa_eth_add_device() argument
160 struct mac_device *mac_dev; mac_probe() local
337 struct mac_device *mac_dev = platform_get_drvdata(pdev); mac_remove() local
[all...]
H A Dmac.h36 int (*enable)(struct fman_mac *mac_dev);
37 void (*disable)(struct fman_mac *mac_dev);
38 int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
39 int (*change_addr)(struct fman_mac *mac_dev, const enet_addr_t *enet_addr);
40 int (*set_allmulti)(struct fman_mac *mac_dev, bool enable);
41 int (*set_tstamp)(struct fman_mac *mac_dev, bool enable);
43 struct mac_device *mac_dev);
44 int (*set_exception)(struct fman_mac *mac_dev,
46 int (*add_hash_mac_addr)(struct fman_mac *mac_dev,
48 int (*remove_hash_mac_addr)(struct fman_mac *mac_dev,
64 struct mac_device *mac_dev; global() member
[all...]
H A Dfman_memac.c702 struct mac_device *mac_dev = fman_config_to_mac(config); in memac_mac_config() local
703 struct memac_regs __iomem *regs = mac_dev->fman_mac->regs; in memac_mac_config()
717 struct mac_device *mac_dev = fman_config_to_mac(config); in memac_link_up() local
718 struct fman_mac *memac = mac_dev->fman_mac; in memac_link_up()
758 mac_dev->update_speed(mac_dev, speed); in memac_link_up()
998 static struct fman_mac *memac_config(struct mac_device *mac_dev, in memac_config() argument
1021 memac->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in memac_config()
1023 memac->regs = mac_dev->vaddr; in memac_config()
1029 memac->dev_id = mac_dev; in memac_config()
1054 memac_supports(struct mac_device *mac_dev, phy_interface_t iface) memac_supports() argument
1066 memac_initialization(struct mac_device *mac_dev, struct device_node *mac_node, struct fman_mac_params *params) memac_initialization() argument
[all...]
H A Dfman_tgec.c443 struct mac_device *mac_dev = fman_config_to_mac(config); in tgec_link_up() local
444 struct fman_mac *tgec = mac_dev->fman_mac; in tgec_link_up()
452 mac_dev->update_speed(mac_dev, speed); in tgec_link_up()
707 static struct fman_mac *tgec_config(struct mac_device *mac_dev, in tgec_config() argument
730 tgec->regs = mac_dev->vaddr; in tgec_config()
731 tgec->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in tgec_config()
750 tgec->dev_id = mac_dev; in tgec_config()
759 int tgec_initialization(struct mac_device *mac_dev, in tgec_initialization() argument
766 mac_dev in tgec_initialization()
[all...]
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 in dtsec_config()
1400 dtsec_initialization(struct mac_device *mac_dev, struct device_node *mac_node, struct fman_mac_params *params) dtsec_initialization() argument
[all...]
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,
H A Dfman_memac.h16 int memac_initialization(struct mac_device *mac_dev,
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c60 struct mac_device *mac_dev = priv->mac_dev; in dpaa_get_link_ksettings() local
62 return phylink_ethtool_ksettings_get(mac_dev->phylink, cmd); in dpaa_get_link_ksettings()
69 struct mac_device *mac_dev = priv->mac_dev; in dpaa_set_link_ksettings() local
71 return phylink_ethtool_ksettings_set(mac_dev->phylink, cmd); in dpaa_set_link_ksettings()
97 struct mac_device *mac_dev = priv->mac_dev; in dpaa_nway_reset() local
99 return phylink_ethtool_nway_reset(mac_dev->phylink); in dpaa_nway_reset()
106 struct mac_device *mac_dev in dpaa_get_pauseparam() local
115 struct mac_device *mac_dev = priv->mac_dev; dpaa_set_pauseparam() local
334 struct mac_device *mac_dev; dpaa_set_hash() local
[all...]
H A Ddpaa_eth.c201 static void dpaa_eth_cgr_set_speed(struct mac_device *mac_dev, int speed);
209 struct mac_device *mac_dev = priv->mac_dev; in dpaa_netdev_init() local
223 mac_addr = mac_dev->addr; in dpaa_netdev_init()
225 net_dev->mem_start = (unsigned long)priv->mac_dev->res->start; in dpaa_netdev_init()
226 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 in dpaa_netdev_init()
301 struct mac_device *mac_dev; dpaa_stop() local
414 struct mac_device *mac_dev; dpaa_mac_dev_get() local
434 struct mac_device *mac_dev; dpaa_set_mac_address() local
882 dpaa_eth_cgr_set_speed(struct mac_device *mac_dev, int speed) dpaa_eth_cgr_set_speed() argument
1319 dpaa_eth_init_ports(struct mac_device *mac_dev, struct dpaa_bp *bp, struct fm_port_fqs *port_fqs, struct dpaa_buffer_layout *buf_layout, struct device *dev) dpaa_eth_init_ports() argument
2920 struct mac_device *mac_dev; dpaa_open() local
3287 struct mac_device *mac_dev; dpaa_eth_probe() local
[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.h142 struct mac_device *mac_dev; member
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth.c242 mac_addr = priv->mac_dev->addr; in dpaa_netdev_init()
244 net_dev->mem_start = priv->mac_dev->res->start; in dpaa_netdev_init()
245 net_dev->mem_end = priv->mac_dev->res->end; in dpaa_netdev_init()
272 err = priv->mac_dev->change_addr(priv->mac_dev->fman_mac, in dpaa_netdev_init()
301 struct mac_device *mac_dev; in dpaa_stop() local
306 mac_dev = priv->mac_dev; in dpaa_stop()
314 err = mac_dev->stop(mac_dev); in dpaa_stop()
416 struct mac_device *mac_dev; dpaa_mac_dev_get() local
436 struct mac_device *mac_dev; dpaa_set_mac_address() local
1272 dpaa_eth_init_ports(struct mac_device *mac_dev, struct dpaa_bp *bp, struct fm_port_fqs *port_fqs, struct dpaa_buffer_layout *buf_layout, struct device *dev) dpaa_eth_init_ports() argument
2577 struct mac_device *mac_dev; dpaa_adjust_link() local
2591 struct mac_device *mac_dev; dpaa_phy_init() local
2625 struct mac_device *mac_dev; dpaa_open() local
2886 struct mac_device *mac_dev; dpaa_eth_probe() local
[all...]
H A Ddpaa_ethtool.c147 struct mac_device *mac_dev; in dpaa_get_pauseparam() local
151 mac_dev = priv->mac_dev; in dpaa_get_pauseparam()
156 epause->autoneg = mac_dev->autoneg_pause; in dpaa_get_pauseparam()
157 epause->rx_pause = mac_dev->rx_pause_active; in dpaa_get_pauseparam()
158 epause->tx_pause = mac_dev->tx_pause_active; in dpaa_get_pauseparam()
164 struct mac_device *mac_dev; in dpaa_set_pauseparam() local
171 mac_dev = priv->mac_dev; in dpaa_set_pauseparam()
186 mac_dev in dpaa_set_pauseparam()
418 struct mac_device *mac_dev; dpaa_set_hash() local
[all...]
H A Ddpaa_eth_sysfs.c43 struct mac_device *mac_dev = priv->mac_dev; in dpaa_eth_show_addr() local
45 if (mac_dev) in dpaa_eth_show_addr()
47 (unsigned long long)mac_dev->res->start); in dpaa_eth_show_addr()
H A Ddpaa_eth.h155 struct mac_device *mac_dev; member

Completed in 20 milliseconds