Lines Matching defs:mac_drv
61 static void hns_gmac_enable(void *mac_drv, enum mac_commom_mode mode) in hns_gmac_enable()
76 static void hns_gmac_disable(void *mac_drv, enum mac_commom_mode mode) in hns_gmac_disable()
96 static void hns_gmac_get_en(void *mac_drv, u32 *rx, u32 *tx) in hns_gmac_get_en()
106 static void hns_gmac_free(void *mac_drv) in hns_gmac_free()
117 static void hns_gmac_set_tx_auto_pause_frames(void *mac_drv, u16 newval) in hns_gmac_set_tx_auto_pause_frames()
125 static void hns_gmac_get_tx_auto_pause_frames(void *mac_drv, u16 *newval) in hns_gmac_get_tx_auto_pause_frames()
133 static void hns_gmac_config_max_frame_length(void *mac_drv, u16 newval) in hns_gmac_config_max_frame_length()
144 static void hns_gmac_config_pad_and_crc(void *mac_drv, u8 newval) in hns_gmac_config_pad_and_crc()
155 static void hns_gmac_config_an_mode(void *mac_drv, u8 newval) in hns_gmac_config_an_mode()
163 static void hns_gmac_tx_loop_pkt_dis(void *mac_drv) in hns_gmac_tx_loop_pkt_dis()
174 static void hns_gmac_get_duplex_type(void *mac_drv, in hns_gmac_get_duplex_type()
183 static void hns_gmac_get_port_mode(void *mac_drv, enum hns_port_mode *port_mode) in hns_gmac_get_port_mode()
191 static void hns_gmac_port_mode_get(void *mac_drv, in hns_gmac_port_mode_get()
222 static void hns_gmac_pause_frm_cfg(void *mac_drv, u32 rx_pause_en, in hns_gmac_pause_frm_cfg()
234 static void hns_gmac_get_pausefrm_cfg(void *mac_drv, u32 *rx_pause_en, in hns_gmac_get_pausefrm_cfg()
246 static bool hns_gmac_need_adjust_link(void *mac_drv, enum mac_speed speed, in hns_gmac_need_adjust_link()
256 static int hns_gmac_adjust_link(void *mac_drv, enum mac_speed speed, in hns_gmac_adjust_link()
290 static void hns_gmac_set_uc_match(void *mac_drv, u16 en) in hns_gmac_set_uc_match()
300 static void hns_gmac_set_promisc(void *mac_drv, u8 en) in hns_gmac_set_promisc()
308 static int hns_gmac_wait_fifo_clean(void *mac_drv) in hns_gmac_wait_fifo_clean()
332 static void hns_gmac_init(void *mac_drv) in hns_gmac_init()
362 static void hns_gmac_update_stats(void *mac_drv) in hns_gmac_update_stats()
453 static void hns_gmac_set_mac_addr(void *mac_drv, const char *mac_addr) in hns_gmac_set_mac_addr()
470 static int hns_gmac_config_loopback(void *mac_drv, enum hnae_loop loop_mode, in hns_gmac_config_loopback()
488 static void hns_gmac_get_info(void *mac_drv, struct mac_info *mac_info) in hns_gmac_get_info()
533 static void hns_gmac_autoneg_stat(void *mac_drv, u32 *enable) in hns_gmac_autoneg_stat()
541 static void hns_gmac_get_link_status(void *mac_drv, u32 *link_stat) in hns_gmac_get_link_status()
549 static void hns_gmac_get_regs(void *mac_drv, void *data) in hns_gmac_get_regs()
657 static void hns_gmac_get_stats(void *mac_drv, u64 *data) in hns_gmac_get_stats()
699 struct mac_driver *mac_drv; in hns_gmac_config() local