Searched refs:mac_dev (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/freescale/fman/ |
D | mac.c | 69 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 …]
|
D | mac.h | 64 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, bool en); [all …]
|
/drivers/net/ethernet/altera/ |
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 …]
|
D | altera_tse_main.c | 93 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 …]
|
D | altera_tse.h | 412 struct altera_tse_mac __iomem *mac_dev; member
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 242 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() 319 for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) { in dpaa_stop() 320 error = fman_port_disable(mac_dev->port[i]); in dpaa_stop() 416 struct mac_device *mac_dev; in dpaa_mac_dev_get() local [all …]
|
D | dpaa_ethtool.c | 147 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->autoneg_pause = !!epause->autoneg; in dpaa_set_pauseparam() 187 mac_dev->rx_pause_req = !!epause->rx_pause; in dpaa_set_pauseparam() 188 mac_dev->tx_pause_req = !!epause->tx_pause; in dpaa_set_pauseparam() [all …]
|
D | dpaa_eth_sysfs.c | 43 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()
|
D | dpaa_eth.h | 155 struct mac_device *mac_dev; member
|