Searched refs:hns_mac_cb (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.h | 303 struct hns_mac_cb { struct 396 struct hns_mac_cb *mac_cb; 414 const struct hns_mac_cb *mac_cb) in hns_mac_get_drv() 419 void *hns_gmac_config(struct hns_mac_cb *mac_cb, 421 void *hns_xgmac_config(struct hns_mac_cb *mac_cb, 425 bool hns_mac_need_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex); 426 void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status); 427 int hns_mac_change_vf_addr(struct hns_mac_cb *mac_cb, u32 vmid, 429 int hns_mac_set_multi(struct hns_mac_cb *mac_cb, 431 int hns_mac_vm_config_bc_en(struct hns_mac_cb *mac_cb, u32 vm, bool enable); [all …]
|
D | hns_dsaf_mac.c | 55 static enum mac_mode hns_get_enet_interface(const struct hns_mac_cb *mac_cb) in hns_get_enet_interface() 90 void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status) in hns_mac_get_link_status() 120 int hns_mac_get_port_info(struct hns_mac_cb *mac_cb, in hns_mac_get_port_info() 149 bool hns_mac_need_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) in hns_mac_need_adjust_link() 162 void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) in hns_mac_adjust_link() 192 int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num) in hns_mac_get_inner_port_num() 271 int hns_mac_change_vf_addr(struct hns_mac_cb *mac_cb, in hns_mac_change_vf_addr() 314 int hns_mac_add_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, in hns_mac_add_uc_addr() 334 int hns_mac_rm_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, in hns_mac_rm_uc_addr() 354 int hns_mac_set_multi(struct hns_mac_cb *mac_cb, in hns_mac_set_multi() [all …]
|
D | hns_dsaf_main.h | 13 struct hns_mac_cb; 211 struct hns_mac_cb *mac_cb; 299 void (*cpld_set_led)(struct hns_mac_cb *mac_cb, int link_status, 301 void (*cpld_reset_led)(struct hns_mac_cb *mac_cb); 302 int (*cpld_set_led_id)(struct hns_mac_cb *mac_cb, 314 phy_interface_t (*get_phy_if)(struct hns_mac_cb *mac_cb); 315 int (*get_sfp_prsnt)(struct hns_mac_cb *mac_cb, int *sfp_prsnt); 317 int (*cfg_serdes_loopback)(struct hns_mac_cb *mac_cb, bool en); 344 struct hns_mac_cb *mac_cb[DSAF_MAX_PORT_NUM]; 436 void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb);
|
D | hns_ae_adapt.c | 16 static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) in hns_get_mac_cb() 212 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_set_mac_address() 232 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_add_uc_address() 243 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_rm_uc_address() 255 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_set_multicast_one() 286 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_clr_multicast() 296 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_set_mtu() 336 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_start() 360 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_stop() 416 struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); in hns_ae_get_link_status() [all …]
|
D | hns_dsaf_misc.c | 58 static void hns_dsaf_acpi_ledctrl_by_port(struct hns_mac_cb *mac_cb, u8 op_type, in hns_dsaf_acpi_ledctrl_by_port() 86 static void hns_dsaf_acpi_locate_ledctrl_by_port(struct hns_mac_cb *mac_cb, in hns_dsaf_acpi_locate_ledctrl_by_port() 113 static void hns_cpld_set_led(struct hns_mac_cb *mac_cb, int link_status, in hns_cpld_set_led() 153 static void hns_cpld_set_led_acpi(struct hns_mac_cb *mac_cb, int link_status, in hns_cpld_set_led_acpi() 165 static void cpld_led_reset(struct hns_mac_cb *mac_cb) in cpld_led_reset() 175 static void cpld_led_reset_acpi(struct hns_mac_cb *mac_cb) in cpld_led_reset_acpi() 189 static int cpld_set_led_id(struct hns_mac_cb *mac_cb, in cpld_set_led_id() 224 static int cpld_set_led_id_acpi(struct hns_mac_cb *mac_cb, in cpld_set_led_id_acpi() 512 static phy_interface_t hns_mac_get_phy_if(struct hns_mac_cb *mac_cb) in hns_mac_get_phy_if() 544 static phy_interface_t hns_mac_get_phy_if_acpi(struct hns_mac_cb *mac_cb) in hns_mac_get_phy_if_acpi() [all …]
|
D | hns_dsaf_gmac.c | 250 struct hns_mac_cb *mac_cb = drv->mac_cb; in hns_gmac_need_adjust_link() 697 void *hns_gmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param) in hns_gmac_config()
|
D | hns_dsaf_xgmac.c | 780 void *hns_xgmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param) in hns_xgmac_config()
|
D | hns_dsaf_main.c | 2175 void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb) in hns_dsaf_fix_mac_mode() 2773 struct hns_mac_cb *mac_cb; in set_promisc_tcam_enable()
|