Home
last modified time | relevance | path

Searched refs:mac_drv (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_gmac.c61 static void hns_gmac_enable(void *mac_drv, enum mac_commom_mode mode) in hns_gmac_enable() argument
63 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_enable()
76 static void hns_gmac_disable(void *mac_drv, enum mac_commom_mode mode) in hns_gmac_disable() argument
78 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_disable()
96 static void hns_gmac_get_en(void *mac_drv, u32 *rx, u32 *tx) in hns_gmac_get_en() argument
98 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_get_en()
106 static void hns_gmac_free(void *mac_drv) in hns_gmac_free() argument
108 struct mac_driver *drv = (struct mac_driver *)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() argument
119 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_set_tx_auto_pause_frames()
[all …]
Dhns_dsaf_xgmac.c111 static void hns_xgmac_lf_rf_insert(struct mac_driver *mac_drv, u32 mode) in hns_xgmac_lf_rf_insert() argument
113 dsaf_set_dev_field(mac_drv, XGMAC_MAC_TX_LF_RF_CONTROL_REG, in hns_xgmac_lf_rf_insert()
121 static void hns_xgmac_lf_rf_control_init(struct mac_driver *mac_drv) in hns_xgmac_lf_rf_control_init() argument
128 dsaf_write_dev(mac_drv, XGMAC_MAC_TX_LF_RF_CONTROL_REG, val); in hns_xgmac_lf_rf_control_init()
136 static void hns_xgmac_enable(void *mac_drv, enum mac_commom_mode mode) in hns_xgmac_enable() argument
138 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_xgmac_enable()
160 static void hns_xgmac_disable(void *mac_drv, enum mac_commom_mode mode) in hns_xgmac_disable() argument
162 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_xgmac_disable()
206 static void hns_xgmac_init(void *mac_drv) in hns_xgmac_init() argument
208 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_xgmac_init()
[all …]
Dhns_dsaf_mac.h343 void (*mac_init)(void *mac_drv);
345 void (*mac_free)(void *mac_drv);
347 void (*mac_enable)(void *mac_drv, enum mac_commom_mode mode);
349 void (*mac_disable)(void *mac_drv, enum mac_commom_mode mode);
351 void (*set_mac_addr)(void *mac_drv, const char *mac_addr);
353 int (*adjust_link)(void *mac_drv, enum mac_speed speed,
356 bool (*need_adjust_link)(void *mac_drv, enum mac_speed speed,
359 void (*set_an_mode)(void *mac_drv, u8 enable);
361 int (*config_loopback)(void *mac_drv, enum hnae_loop loop_mode,
364 void (*config_max_frame_length)(void *mac_drv, u16 newval);
[all …]
Dhns_dsaf_mac.c537 struct mac_driver *mac_drv = hns_mac_get_drv(mac_cb); in hns_mac_start() local
540 if (mac_drv->mac_en_flg == MAC_EN_FLAG_V) { in hns_mac_start()
542 mac_drv->virt_dev_num += 1; in hns_mac_start()
546 if (mac_drv->mac_enable) { in hns_mac_start()
547 mac_drv->mac_enable(mac_cb->priv.mac, MAC_COMM_MODE_RX_AND_TX); in hns_mac_start()
548 mac_drv->mac_en_flg = MAC_EN_FLAG_V; in hns_mac_start()