| /linux/drivers/net/ethernet/freescale/fman/ |
| H A D | mac.c | 42 static void mac_exception(struct mac_device *mac_dev, in mac_exception() argument 47 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception() 49 dev_err(mac_dev->dev, "10G MAC got RX FIFO Error = %x\n", ex); in mac_exception() 52 dev_dbg(mac_dev->dev, "%s:%s() -> %d\n", KBUILD_BASENAME ".c", in mac_exception() 59 struct mac_device *mac_dev) in dpaa_eth_add_device() argument 67 priv = mac_dev->priv; in dpaa_eth_add_device() 69 data.mac_dev = mac_dev; in dpaa_eth_add_device() 80 pdev->dev.parent = mac_dev->dev; in dpaa_eth_add_device() 114 int (*init)(struct mac_device *mac_dev, struct device_node *mac_node, in mac_probe() 118 struct mac_device *mac_dev; in mac_probe() local [all …]
|
| H A D | mac.h | 42 int (*enable)(struct fman_mac *mac_dev); 43 void (*disable)(struct fman_mac *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); 48 int (*set_exception)(struct fman_mac *mac_dev, 50 int (*add_hash_mac_addr)(struct fman_mac *mac_dev, 52 int (*remove_hash_mac_addr)(struct fman_mac *mac_dev, 64 void (*update_speed)(struct mac_device *mac_dev, int speed); [all …]
|
| H A D | fman_memac.c | 703 struct mac_device *mac_dev = fman_config_to_mac(config); in memac_mac_config() local 704 struct memac_regs __iomem *regs = mac_dev->fman_mac->regs; in memac_mac_config() 718 struct mac_device *mac_dev = fman_config_to_mac(config); in memac_link_up() local 719 struct fman_mac *memac = mac_dev->fman_mac; in memac_link_up() 759 mac_dev->update_speed(mac_dev, speed); in memac_link_up() 1082 static struct fman_mac *memac_config(struct mac_device *mac_dev, in memac_config() argument 1105 memac->addr = ENET_ADDR_TO_UINT64(mac_dev->addr); in memac_config() 1107 memac->regs = mac_dev->vaddr; in memac_config() 1113 memac->dev_id = mac_dev; in memac_config() 1138 static bool memac_supports(struct mac_device *mac_dev, phy_interface_t iface) in memac_supports() argument [all …]
|
| H A D | fman_tgec.c | 443 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->phylink_ops = &tgec_mac_ops; in tgec_initialization() 767 mac_dev->set_promisc = tgec_set_promiscuous; in tgec_initialization() [all …]
|
| H A D | fman_dtsec.c | 901 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 D | fman_memac.h | 16 int memac_initialization(struct mac_device *mac_dev,
|
| H A D | fman_tgec.h | 13 int tgec_initialization(struct mac_device *mac_dev,
|
| H A D | fman_dtsec.h | 13 int dtsec_initialization(struct mac_device *mac_dev,
|
| /linux/drivers/net/ethernet/altera/ |
| H A D | altera_tse_ethtool.c | 67 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 D | altera_tse_main.c | 98 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() 649 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr() 650 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr() 664 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac() 667 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac() 671 if (tse_bit_is_clear(priv->mac_dev, tse_csroffs(command_config), in reset_mac() 678 dat = csrrd32(priv->mac_dev, tse_csroffs(command_config)); in reset_mac() [all …]
|
| H A D | altera_tse.h | 402 struct altera_tse_mac __iomem *mac_dev; member
|
| /linux/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_ethtool.c | 60 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 = priv->mac_dev; in dpaa_get_pauseparam() local 108 phylink_ethtool_get_pauseparam(mac_dev->phylink, epause); in dpaa_get_pauseparam() 115 struct mac_device *mac_dev = priv->mac_dev; in dpaa_set_pauseparam() local 117 return phylink_ethtool_set_pauseparam(mac_dev->phylink, epause); in dpaa_set_pauseparam() [all …]
|
| H A D | dpaa_eth.c | 200 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 D | dpaa_eth_sysfs.c | 17 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 D | dpaa_eth.h | 138 struct mac_device *mac_dev; member
|