hns_mac_cb 18 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) hns_mac_cb 215 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 235 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 246 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 258 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 289 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 299 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 339 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 363 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 419 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 429 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 437 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 445 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 480 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 501 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 521 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 647 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 727 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 761 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 792 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 814 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb = hns_get_mac_cb(handle); hns_mac_cb 837 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 850 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c struct hns_mac_cb *mac_cb; hns_mac_cb 266 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct hns_mac_cb *mac_cb = drv->mac_cb; hns_mac_cb 716 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c void *hns_gmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param) hns_mac_cb 55 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static enum mac_mode hns_get_enet_interface(const struct hns_mac_cb *mac_cb) hns_mac_cb 69 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status) hns_mac_cb 91 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_port_info(struct hns_mac_cb *mac_cb, hns_mac_cb 120 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c bool hns_mac_need_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) hns_mac_cb 133 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex) hns_mac_cb 163 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num) hns_mac_cb 242 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_change_vf_addr(struct hns_mac_cb *mac_cb, hns_mac_cb 285 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_add_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, hns_mac_cb 305 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_rm_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, hns_mac_cb 325 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_set_multi(struct hns_mac_cb *mac_cb, hns_mac_cb 354 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_clr_multicast(struct hns_mac_cb *mac_cb, int vfn) hns_mac_cb 367 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct hns_mac_cb *mac_cb) hns_mac_cb 383 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static int hns_mac_port_config_bc_en(struct hns_mac_cb *mac_cb, hns_mac_cb 417 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_vm_config_bc_en(struct hns_mac_cb *mac_cb, u32 vmid, bool enable) hns_mac_cb 449 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_wait_fifo_clean(struct hns_mac_cb *mac_cb) hns_mac_cb 459 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_reset(struct hns_mac_cb *mac_cb) hns_mac_cb 483 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_set_mtu(struct hns_mac_cb *mac_cb, u32 new_mtu, u32 buf_size) hns_mac_cb 505 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_start(struct hns_mac_cb *mac_cb) hns_mac_cb 522 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_stop(struct hns_mac_cb *mac_cb) hns_mac_cb 548 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_autoneg(struct hns_mac_cb *mac_cb, u32 *auto_neg) hns_mac_cb 565 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_pauseparam(struct hns_mac_cb *mac_cb, u32 *rx_en, u32 *tx_en) hns_mac_cb 583 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_set_autoneg(struct hns_mac_cb *mac_cb, u8 enable) hns_mac_cb 605 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_set_pauseparam(struct hns_mac_cb *mac_cb, u32 rx_en, u32 tx_en) hns_mac_cb 628 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static int hns_mac_init_ex(struct hns_mac_cb *mac_cb) hns_mac_cb 686 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_register_phydev(struct mii_bus *mdio, struct hns_mac_cb *mac_cb, hns_mac_cb 730 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static int hns_mac_register_phy(struct hns_mac_cb *mac_cb) hns_mac_cb 777 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static void hns_mac_remove_phydev(struct hns_mac_cb *mac_cb) hns_mac_cb 806 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c static int hns_mac_get_info(struct hns_mac_cb *mac_cb) hns_mac_cb 970 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct hns_mac_cb *mac_cb, u32 mac_mode_idx) hns_mac_cb 989 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) hns_mac_cb 1038 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_enable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode) hns_mac_cb 1045 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_disable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode) hns_mac_cb 1063 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct hns_mac_cb *mac_cb; hns_mac_cb 1136 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_config_mac_loopback(struct hns_mac_cb *mac_cb, hns_mac_cb 1150 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_update_stats(struct hns_mac_cb *mac_cb) hns_mac_cb 1157 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_stats(struct hns_mac_cb *mac_cb, u64 *data) hns_mac_cb 1164 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_strings(struct hns_mac_cb *mac_cb, hns_mac_cb 1172 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_sset_count(struct hns_mac_cb *mac_cb, int stringset) hns_mac_cb 1179 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_set_promisc(struct hns_mac_cb *mac_cb, u8 en) hns_mac_cb 1189 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_regs_count(struct hns_mac_cb *mac_cb) hns_mac_cb 1196 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_get_regs(struct hns_mac_cb *mac_cb, void *data) hns_mac_cb 1203 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_set_led_opt(struct hns_mac_cb *mac_cb) hns_mac_cb 1220 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_cpld_led_set_id(struct hns_mac_cb *mac_cb, hns_mac_cb 400 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h struct hns_mac_cb *mac_cb; hns_mac_cb 418 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h const struct hns_mac_cb *mac_cb) hns_mac_cb 423 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void *hns_gmac_config(struct hns_mac_cb *mac_cb, hns_mac_cb 425 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void *hns_xgmac_config(struct hns_mac_cb *mac_cb, hns_mac_cb 430 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h bool hns_mac_need_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex); hns_mac_cb 431 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status); hns_mac_cb 432 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_change_vf_addr(struct hns_mac_cb *mac_cb, u32 vmid, char *addr); hns_mac_cb 433 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_set_multi(struct hns_mac_cb *mac_cb, hns_mac_cb 435 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_vm_config_bc_en(struct hns_mac_cb *mac_cb, u32 vm, bool enable); hns_mac_cb 436 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_start(struct hns_mac_cb *mac_cb); hns_mac_cb 437 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_stop(struct hns_mac_cb *mac_cb); hns_mac_cb 439 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_adjust_link(struct hns_mac_cb *mac_cb, int speed, int duplex); hns_mac_cb 440 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_reset(struct hns_mac_cb *mac_cb); hns_mac_cb 441 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_autoneg(struct hns_mac_cb *mac_cb, u32 *auto_neg); hns_mac_cb 442 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_pauseparam(struct hns_mac_cb *mac_cb, u32 *rx_en, u32 *tx_en); hns_mac_cb 443 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_set_autoneg(struct hns_mac_cb *mac_cb, u8 enable); hns_mac_cb 444 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_set_pauseparam(struct hns_mac_cb *mac_cb, u32 rx_en, u32 tx_en); hns_mac_cb 445 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_set_mtu(struct hns_mac_cb *mac_cb, u32 new_mtu, u32 buf_size); hns_mac_cb 446 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_get_port_info(struct hns_mac_cb *mac_cb, hns_mac_cb 448 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_config_mac_loopback(struct hns_mac_cb *mac_cb, hns_mac_cb 450 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_update_stats(struct hns_mac_cb *mac_cb); hns_mac_cb 451 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_stats(struct hns_mac_cb *mac_cb, u64 *data); hns_mac_cb 452 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_strings(struct hns_mac_cb *mac_cb, int stringset, u8 *data); hns_mac_cb 453 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_get_sset_count(struct hns_mac_cb *mac_cb, int stringset); hns_mac_cb 454 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_get_regs(struct hns_mac_cb *mac_cb, void *data); hns_mac_cb 455 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_get_regs_count(struct hns_mac_cb *mac_cb); hns_mac_cb 456 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_set_led_opt(struct hns_mac_cb *mac_cb); hns_mac_cb 457 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_cpld_led_set_id(struct hns_mac_cb *mac_cb, hns_mac_cb 459 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_set_promisc(struct hns_mac_cb *mac_cb, u8 en); hns_mac_cb 460 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, hns_mac_cb 462 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_add_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, hns_mac_cb 464 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_rm_uc_addr(struct hns_mac_cb *mac_cb, u8 vf_id, hns_mac_cb 466 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_clr_multicast(struct hns_mac_cb *mac_cb, int vfn); hns_mac_cb 467 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_enable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode); hns_mac_cb 468 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_disable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode); hns_mac_cb 469 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_wait_fifo_clean(struct hns_mac_cb *mac_cb); hns_mac_cb 2170 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb) hns_mac_cb 2765 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c struct hns_mac_cb *mac_cb; hns_mac_cb 13 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h struct hns_mac_cb; hns_mac_cb 211 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h struct hns_mac_cb *mac_cb; hns_mac_cb 299 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h void (*cpld_set_led)(struct hns_mac_cb *mac_cb, int link_status, hns_mac_cb 301 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h void (*cpld_reset_led)(struct hns_mac_cb *mac_cb); hns_mac_cb 302 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h int (*cpld_set_led_id)(struct hns_mac_cb *mac_cb, hns_mac_cb 314 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h phy_interface_t (*get_phy_if)(struct hns_mac_cb *mac_cb); hns_mac_cb 315 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h int (*get_sfp_prsnt)(struct hns_mac_cb *mac_cb, int *sfp_prsnt); hns_mac_cb 317 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h int (*cfg_serdes_loopback)(struct hns_mac_cb *mac_cb, bool en); hns_mac_cb 344 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h struct hns_mac_cb *mac_cb[DSAF_MAX_PORT_NUM]; hns_mac_cb 436 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h void hns_dsaf_fix_mac_mode(struct hns_mac_cb *mac_cb); hns_mac_cb 58 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void hns_dsaf_acpi_ledctrl_by_port(struct hns_mac_cb *mac_cb, u8 op_type, hns_mac_cb 86 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void hns_dsaf_acpi_locate_ledctrl_by_port(struct hns_mac_cb *mac_cb, hns_mac_cb 113 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void hns_cpld_set_led(struct hns_mac_cb *mac_cb, int link_status, hns_mac_cb 153 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void hns_cpld_set_led_acpi(struct hns_mac_cb *mac_cb, int link_status, hns_mac_cb 165 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void cpld_led_reset(struct hns_mac_cb *mac_cb) hns_mac_cb 175 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static void cpld_led_reset_acpi(struct hns_mac_cb *mac_cb) hns_mac_cb 189 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static int cpld_set_led_id(struct hns_mac_cb *mac_cb, hns_mac_cb 224 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static int cpld_set_led_id_acpi(struct hns_mac_cb *mac_cb, hns_mac_cb 506 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static phy_interface_t hns_mac_get_phy_if(struct hns_mac_cb *mac_cb) hns_mac_cb 538 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static phy_interface_t hns_mac_get_phy_if_acpi(struct hns_mac_cb *mac_cb) hns_mac_cb 568 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static int hns_mac_get_sfp_prsnt(struct hns_mac_cb *mac_cb, int *sfp_prsnt) hns_mac_cb 586 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static int hns_mac_get_sfp_prsnt_acpi(struct hns_mac_cb *mac_cb, int *sfp_prsnt) hns_mac_cb 617 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c static int hns_mac_config_sds_loopback(struct hns_mac_cb *mac_cb, bool en) hns_mac_cb 678 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c hns_mac_config_sds_loopback_acpi(struct hns_mac_cb *mac_cb, bool en) hns_mac_cb 795 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c void *hns_xgmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param)