fman_mac
err = mac_dev->change_addr(mac_dev->fman_mac,
err = priv->mac_dev->enable(mac_dev->fman_mac);
priv->mac_dev->set_tstamp(priv->mac_dev->fman_mac, true);
priv->mac_dev->set_tstamp(priv->mac_dev->fman_mac, true);
mac_dev->disable(mac_dev->fman_mac);
err = mac_dev->change_addr(mac_dev->fman_mac,
return priv->mac_dev->add_hash_mac_addr(priv->mac_dev->fman_mac,
return priv->mac_dev->remove_hash_mac_addr(priv->mac_dev->fman_mac,
err = priv->mac_dev->set_promisc(priv->mac_dev->fman_mac,
err = priv->mac_dev->set_allmulti(priv->mac_dev->fman_mac,
mac_dev->get_pause_stats(mac_dev->fman_mac, s);
mac_dev->get_rmon_stats(mac_dev->fman_mac, s, ranges);
mac_dev->get_eth_ctrl_stats(mac_dev->fman_mac, s);
mac_dev->get_eth_mac_stats(mac_dev->fman_mac, s);
static int dtsec_add_hash_mac_address(struct fman_mac *dtsec,
static int dtsec_set_allmulti(struct fman_mac *dtsec, bool enable)
static int dtsec_set_tstamp(struct fman_mac *dtsec, bool enable)
static int dtsec_del_hash_mac_address(struct fman_mac *dtsec,
static int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val)
static int dtsec_set_exception(struct fman_mac *dtsec,
static int dtsec_init(struct fman_mac *dtsec)
static int dtsec_free(struct fman_mac *dtsec)
static struct fman_mac *dtsec_config(struct mac_device *mac_dev,
struct fman_mac *dtsec;
struct fman_mac *dtsec;
mac_dev->fman_mac = dtsec_config(mac_dev, params);
if (!mac_dev->fman_mac) {
dtsec = mac_dev->fman_mac;
static int check_init_parameters(struct fman_mac *dtsec)
static u16 dtsec_get_max_frame_length(struct fman_mac *dtsec)
struct fman_mac *dtsec = (struct fman_mac *)handle;
struct fman_mac *dtsec = (struct fman_mac *)handle;
static void free_init_resources(struct fman_mac *dtsec)
static struct fman_mac *pcs_to_dtsec(struct phylink_pcs *pcs)
return container_of(pcs, struct fman_mac, pcs);
struct fman_mac *dtsec = pcs_to_dtsec(pcs);
struct fman_mac *dtsec = pcs_to_dtsec(pcs);
struct fman_mac *dtsec = pcs_to_dtsec(pcs);
static void graceful_start(struct fman_mac *dtsec)
static void graceful_stop(struct fman_mac *dtsec)
static int dtsec_enable(struct fman_mac *dtsec)
static void dtsec_disable(struct fman_mac *dtsec)
static int dtsec_set_tx_pause_frames(struct fman_mac *dtsec,
static int dtsec_accept_rx_pause_frames(struct fman_mac *dtsec, bool en)
struct fman_mac *dtsec = fman_config_to_mac(config)->fman_mac;
struct dtsec_regs __iomem *regs = mac_dev->fman_mac->regs;
struct fman_mac *dtsec = mac_dev->fman_mac;
struct fman_mac *dtsec = fman_config_to_mac(config)->fman_mac;
static int dtsec_modify_mac_address(struct fman_mac *dtsec,
struct fman_mac;
static int memac_free(struct fman_mac *memac)
static struct fman_mac *memac_config(struct mac_device *mac_dev,
struct fman_mac *memac;
if (!mac_dev->fman_mac->serdes)
return !phy_validate(mac_dev->fman_mac->serdes, PHY_MODE_ETHERNET,
struct fman_mac *memac;
mac_dev->fman_mac = memac_config(mac_dev, params);
if (!mac_dev->fman_mac)
memac = mac_dev->fman_mac;
err = memac_init(mac_dev->fman_mac);
memac_free(mac_dev->fman_mac);
static int check_init_parameters(struct fman_mac *memac)
struct fman_mac *memac = (struct fman_mac *)handle;
struct fman_mac *memac = (struct fman_mac *)handle;
static void free_init_resources(struct fman_mac *memac)
static int memac_enable(struct fman_mac *memac)
static void memac_disable(struct fman_mac *memac)
static int memac_set_promiscuous(struct fman_mac *memac, bool new_val)
static int memac_set_tx_pause_frames(struct fman_mac *memac, u8 priority,
static int memac_accept_rx_pause_frames(struct fman_mac *memac, bool en)
struct fman_mac *memac = fman_config_to_mac(config)->fman_mac;
struct fman_mac *memac = fman_config_to_mac(config)->fman_mac;
struct fman_mac *memac = fman_config_to_mac(config)->fman_mac;
struct memac_regs __iomem *regs = mac_dev->fman_mac->regs;
struct fman_mac *memac = mac_dev->fman_mac;
struct fman_mac *memac = fman_config_to_mac(config)->fman_mac;
static int memac_modify_mac_address(struct fman_mac *memac,
static int memac_add_hash_mac_address(struct fman_mac *memac,
static int memac_set_allmulti(struct fman_mac *memac, bool enable)
static int memac_set_tstamp(struct fman_mac *memac, bool enable)
static int memac_del_hash_mac_address(struct fman_mac *memac,
static int memac_set_exception(struct fman_mac *memac,
static void memac_get_pause_stats(struct fman_mac *memac,
static void memac_get_rmon_stats(struct fman_mac *memac,
static void memac_get_eth_ctrl_stats(struct fman_mac *memac,
static void memac_get_eth_mac_stats(struct fman_mac *memac,
static int memac_init(struct fman_mac *memac)
static int check_init_parameters(struct fman_mac *tgec)
struct fman_mac *tgec = (struct fman_mac *)handle;
static void free_init_resources(struct fman_mac *tgec)
static int tgec_enable(struct fman_mac *tgec)
static void tgec_disable(struct fman_mac *tgec)
static int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val)
static int tgec_set_tx_pause_frames(struct fman_mac *tgec,
static int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en)
struct fman_mac *tgec = mac_dev->fman_mac;
struct fman_mac *tgec = fman_config_to_mac(config)->fman_mac;
static int tgec_modify_mac_address(struct fman_mac *tgec,
static int tgec_add_hash_mac_address(struct fman_mac *tgec,
static int tgec_set_allmulti(struct fman_mac *tgec, bool enable)
static int tgec_set_tstamp(struct fman_mac *tgec, bool enable)
static int tgec_del_hash_mac_address(struct fman_mac *tgec,
static int tgec_set_exception(struct fman_mac *tgec,
static int tgec_init(struct fman_mac *tgec)
static int tgec_free(struct fman_mac *tgec)
static struct fman_mac *tgec_config(struct mac_device *mac_dev,
struct fman_mac *tgec;
struct fman_mac *tgec;
mac_dev->fman_mac = tgec_config(mac_dev, params);
if (!mac_dev->fman_mac) {
tgec = mac_dev->fman_mac;
tgec_free(mac_dev->fman_mac);
mac_dev->set_exception(mac_dev->fman_mac,
struct fman_mac;
int (*enable)(struct fman_mac *mac_dev);
void (*disable)(struct fman_mac *mac_dev);
int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
int (*change_addr)(struct fman_mac *mac_dev, const enet_addr_t *enet_addr);
int (*set_allmulti)(struct fman_mac *mac_dev, bool enable);
int (*set_tstamp)(struct fman_mac *mac_dev, bool enable);
int (*set_exception)(struct fman_mac *mac_dev,
int (*add_hash_mac_addr)(struct fman_mac *mac_dev,
int (*remove_hash_mac_addr)(struct fman_mac *mac_dev,
void (*get_pause_stats)(struct fman_mac *memac,
void (*get_rmon_stats)(struct fman_mac *memac,
void (*get_eth_ctrl_stats)(struct fman_mac *memac,
void (*get_eth_mac_stats)(struct fman_mac *memac,
struct fman_mac *fman_mac;