Home
last modified time | relevance | path

Searched refs:fman_mac (Results 1 – 10 of 10) sorted by relevance

/drivers/net/ethernet/freescale/fman/
Dfman_dtsec.h38 struct fman_mac *dtsec_config(struct fman_mac_params *params);
39 int dtsec_set_promiscuous(struct fman_mac *dtsec, bool new_val);
40 int dtsec_modify_mac_address(struct fman_mac *dtsec, enet_addr_t *enet_addr);
41 int dtsec_adjust_link(struct fman_mac *dtsec,
43 int dtsec_restart_autoneg(struct fman_mac *dtsec);
44 int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val);
45 int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val);
46 int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode);
47 int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode);
48 int dtsec_init(struct fman_mac *dtsec);
[all …]
Dfman_memac.h41 struct fman_mac *memac_config(struct fman_mac_params *params);
42 int memac_set_promiscuous(struct fman_mac *memac, bool new_val);
43 int memac_modify_mac_address(struct fman_mac *memac, enet_addr_t *enet_addr);
44 int memac_adjust_link(struct fman_mac *memac, u16 speed);
45 int memac_cfg_max_frame_len(struct fman_mac *memac, u16 new_val);
46 int memac_cfg_reset_on_init(struct fman_mac *memac, bool enable);
47 int memac_cfg_fixed_link(struct fman_mac *memac,
49 int memac_enable(struct fman_mac *memac, enum comm_mode mode);
50 int memac_disable(struct fman_mac *memac, enum comm_mode mode);
51 int memac_init(struct fman_mac *memac);
[all …]
Dfman_tgec.h38 struct fman_mac *tgec_config(struct fman_mac_params *params);
39 int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val);
40 int tgec_modify_mac_address(struct fman_mac *tgec, enet_addr_t *enet_addr);
41 int tgec_cfg_max_frame_len(struct fman_mac *tgec, u16 new_val);
42 int tgec_enable(struct fman_mac *tgec, enum comm_mode mode);
43 int tgec_disable(struct fman_mac *tgec, enum comm_mode mode);
44 int tgec_init(struct fman_mac *tgec);
45 int tgec_free(struct fman_mac *tgec);
46 int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en);
47 int tgec_set_tx_pause_frames(struct fman_mac *tgec, u8 priority,
[all …]
Dmac.h44 struct fman_mac;
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);
74 int (*set_rx_pause)(struct fman_mac *mac_dev, bool en);
75 int (*set_tx_pause)(struct fman_mac *mac_dev, u8 priority,
77 int (*set_exception)(struct fman_mac *mac_dev,
79 int (*add_hash_mac_addr)(struct fman_mac *mac_dev,
81 int (*remove_hash_mac_addr)(struct fman_mac *mac_dev,
[all …]
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);
88 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception()
135 mac_dev->fman_mac = tgec_config(&params); in tgec_initialization()
136 if (!mac_dev->fman_mac) { in tgec_initialization()
141 err = tgec_cfg_max_frame_len(mac_dev->fman_mac, fman_get_max_frm()); in tgec_initialization()
145 err = tgec_init(mac_dev->fman_mac); in tgec_initialization()
150 err = mac_dev->set_exception(mac_dev->fman_mac, in tgec_initialization()
155 err = tgec_get_version(mac_dev->fman_mac, &version); in tgec_initialization()
164 tgec_free(mac_dev->fman_mac); in tgec_initialization()
[all …]
Dfman_tgec.c203 struct fman_mac { struct
270 static int check_init_parameters(struct fman_mac *tgec) in check_init_parameters()
354 struct fman_mac *tgec = (struct fman_mac *)handle; in tgec_err_exception()
399 static void free_init_resources(struct fman_mac *tgec) in free_init_resources()
422 int tgec_enable(struct fman_mac *tgec, enum comm_mode mode) in tgec_enable()
440 int tgec_disable(struct fman_mac *tgec, enum comm_mode mode) in tgec_disable()
458 int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val) in tgec_set_promiscuous()
476 int tgec_cfg_max_frame_len(struct fman_mac *tgec, u16 new_val) in tgec_cfg_max_frame_len()
486 int tgec_set_tx_pause_frames(struct fman_mac *tgec, u8 __maybe_unused priority, in tgec_set_tx_pause_frames()
499 int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en) in tgec_accept_rx_pause_frames()
[all …]
Dfman_memac.c331 struct fman_mac { struct
510 static void setup_sgmii_internal_phy(struct fman_mac *memac, in setup_sgmii_internal_phy()
569 static void setup_sgmii_internal_phy_base_x(struct fman_mac *memac) in setup_sgmii_internal_phy_base_x()
597 static int check_init_parameters(struct fman_mac *memac) in check_init_parameters()
638 struct fman_mac *memac = (struct fman_mac *)handle; in memac_err_exception()
664 struct fman_mac *memac = (struct fman_mac *)handle; in memac_exception()
685 static void free_init_resources(struct fman_mac *memac) in free_init_resources()
711 int memac_enable(struct fman_mac *memac, enum comm_mode mode) in memac_enable()
730 int memac_disable(struct fman_mac *memac, enum comm_mode mode) in memac_disable()
749 int memac_set_promiscuous(struct fman_mac *memac, bool new_val) in memac_set_promiscuous()
[all …]
Dfman_dtsec.c322 struct fman_mac { struct
552 static int check_init_parameters(struct fman_mac *dtsec) in check_init_parameters()
668 static u16 dtsec_get_max_frame_length(struct fman_mac *dtsec) in dtsec_get_max_frame_length()
680 struct fman_mac *dtsec = (struct fman_mac *)handle; in dtsec_isr()
810 struct fman_mac *dtsec = (struct fman_mac *)handle; in dtsec_1588_isr()
827 static void free_init_resources(struct fman_mac *dtsec) in free_init_resources()
843 int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val) in dtsec_cfg_max_frame_len()
853 int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val) in dtsec_cfg_pad_and_crc()
863 static void graceful_start(struct fman_mac *dtsec, enum comm_mode mode) in graceful_start()
875 static void graceful_stop(struct fman_mac *dtsec, enum comm_mode mode) in graceful_stop()
[all …]
Dfman_mac.h43 struct fman_mac;
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c272 err = priv->mac_dev->change_addr(priv->mac_dev->fman_mac, in dpaa_netdev_init()
452 err = mac_dev->change_addr(mac_dev->fman_mac, in dpaa_set_mac_address()
475 err = priv->mac_dev->set_promisc(priv->mac_dev->fman_mac, in dpaa_set_rx_mode()
485 err = priv->mac_dev->set_allmulti(priv->mac_dev->fman_mac, in dpaa_set_rx_mode()
2692 priv->mac_dev->set_tstamp(priv->mac_dev->fman_mac, true); in dpaa_ts_ioctl()
2705 priv->mac_dev->set_tstamp(priv->mac_dev->fman_mac, true); in dpaa_ts_ioctl()