Home
last modified time | relevance | path

Searched refs:fman_mac (Results 1 – 9 of 9) 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.h40 struct fman_mac *memac_config(struct fman_mac_params *params);
41 int memac_set_promiscuous(struct fman_mac *memac, bool new_val);
42 int memac_modify_mac_address(struct fman_mac *memac, enet_addr_t *enet_addr);
43 int memac_adjust_link(struct fman_mac *memac, u16 speed);
44 int memac_cfg_max_frame_len(struct fman_mac *memac, u16 new_val);
45 int memac_cfg_reset_on_init(struct fman_mac *memac, bool enable);
46 int memac_cfg_fixed_link(struct fman_mac *memac,
48 int memac_enable(struct fman_mac *memac, enum comm_mode mode);
49 int memac_disable(struct fman_mac *memac, enum comm_mode mode);
50 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.c71 int (*enable)(struct fman_mac *mac_dev, enum comm_mode mode);
72 int (*disable)(struct fman_mac *mac_dev, enum comm_mode mode);
90 mac_dev->set_exception(mac_dev->fman_mac, in mac_exception()
130 mac_dev->fman_mac = tgec_config(&params); in tgec_initialization()
131 if (!mac_dev->fman_mac) { in tgec_initialization()
136 err = tgec_cfg_max_frame_len(mac_dev->fman_mac, fman_get_max_frm()); in tgec_initialization()
140 err = tgec_init(mac_dev->fman_mac); in tgec_initialization()
145 err = mac_dev->set_exception(mac_dev->fman_mac, in tgec_initialization()
150 err = tgec_get_version(mac_dev->fman_mac, &version); in tgec_initialization()
159 tgec_free(mac_dev->fman_mac); in tgec_initialization()
[all …]
Dmac.h44 struct fman_mac;
66 int (*set_promisc)(struct fman_mac *mac_dev, bool enable);
67 int (*change_addr)(struct fman_mac *mac_dev, enet_addr_t *enet_addr);
70 int (*set_rx_pause)(struct fman_mac *mac_dev, bool en);
71 int (*set_tx_pause)(struct fman_mac *mac_dev, u8 priority,
73 int (*set_exception)(struct fman_mac *mac_dev,
75 int (*add_hash_mac_addr)(struct fman_mac *mac_dev,
77 int (*remove_hash_mac_addr)(struct fman_mac *mac_dev,
80 struct fman_mac *fman_mac; member
Dfman_memac.c330 struct fman_mac { struct
505 static void setup_sgmii_internal_phy(struct fman_mac *memac, in setup_sgmii_internal_phy()
564 static void setup_sgmii_internal_phy_base_x(struct fman_mac *memac) in setup_sgmii_internal_phy_base_x()
592 static int check_init_parameters(struct fman_mac *memac) in check_init_parameters()
637 struct fman_mac *memac = (struct fman_mac *)handle; in memac_err_exception()
663 struct fman_mac *memac = (struct fman_mac *)handle; in memac_exception()
684 static void free_init_resources(struct fman_mac *memac) in free_init_resources()
710 int memac_enable(struct fman_mac *memac, enum comm_mode mode) in memac_enable()
729 int memac_disable(struct fman_mac *memac, enum comm_mode mode) in memac_disable()
748 int memac_set_promiscuous(struct fman_mac *memac, bool new_val) in memac_set_promiscuous()
[all …]
Dfman_tgec.c202 struct fman_mac { struct
268 static int check_init_parameters(struct fman_mac *tgec) in check_init_parameters()
356 struct fman_mac *tgec = (struct fman_mac *)handle; in tgec_err_exception()
401 static void free_init_resources(struct fman_mac *tgec) in free_init_resources()
424 int tgec_enable(struct fman_mac *tgec, enum comm_mode mode) in tgec_enable()
442 int tgec_disable(struct fman_mac *tgec, enum comm_mode mode) in tgec_disable()
460 int tgec_set_promiscuous(struct fman_mac *tgec, bool new_val) in tgec_set_promiscuous()
478 int tgec_cfg_max_frame_len(struct fman_mac *tgec, u16 new_val) in tgec_cfg_max_frame_len()
488 int tgec_set_tx_pause_frames(struct fman_mac *tgec, u8 __maybe_unused priority, in tgec_set_tx_pause_frames()
501 int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en) in tgec_accept_rx_pause_frames()
[all …]
Dfman_dtsec.c320 struct fman_mac { struct
545 static int check_init_parameters(struct fman_mac *dtsec) in check_init_parameters()
665 static u16 dtsec_get_max_frame_length(struct fman_mac *dtsec) in dtsec_get_max_frame_length()
677 struct fman_mac *dtsec = (struct fman_mac *)handle; in dtsec_isr()
807 struct fman_mac *dtsec = (struct fman_mac *)handle; in dtsec_1588_isr()
824 static void free_init_resources(struct fman_mac *dtsec) in free_init_resources()
840 int dtsec_cfg_max_frame_len(struct fman_mac *dtsec, u16 new_val) in dtsec_cfg_max_frame_len()
850 int dtsec_cfg_pad_and_crc(struct fman_mac *dtsec, bool new_val) in dtsec_cfg_pad_and_crc()
860 int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode) in dtsec_enable()
888 int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode) in dtsec_disable()
[all …]
Dfman_mac.h43 struct fman_mac;