/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_main.c | 41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() argument 51 struct device_node *np = dsaf_dev->dev->of_node, *np_temp; in hns_dsaf_get_cfg() 52 struct platform_device *pdev = to_platform_device(dsaf_dev->dev); in hns_dsaf_get_cfg() 54 if (dev_of_node(dsaf_dev->dev)) { in hns_dsaf_get_cfg() 56 dsaf_dev->dsaf_ver = AE_VERSION_1; in hns_dsaf_get_cfg() 58 dsaf_dev->dsaf_ver = AE_VERSION_2; in hns_dsaf_get_cfg() 59 } else if (is_acpi_node(dsaf_dev->dev->fwnode)) { in hns_dsaf_get_cfg() 61 dsaf_dev->dsaf_ver = AE_VERSION_1; in hns_dsaf_get_cfg() 63 dsaf_dev->dsaf_ver = AE_VERSION_2; in hns_dsaf_get_cfg() 67 dev_err(dsaf_dev in hns_dsaf_get_cfg() 212 hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_link_sram_init_en() argument 223 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) hns_dsaf_reg_cnt_clr_ce() argument 235 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) hns_dsaf_ppe_qid_cfg() argument 247 hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_mix_def_qid_cfg() argument 264 hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_inner_qid_cfg() argument 291 hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, enum dsaf_sw_port_type port_type) hns_dsaf_sw_port_type_cfg() argument 309 hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, enum dsaf_stp_port_type port_type) hns_dsaf_stp_port_type_cfg() argument 328 hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_cfg() argument 347 hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_cfg_mib_en() argument 392 hns_dsaf_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_bp_wl_cfg() argument 471 hns_dsafv2_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) hns_dsafv2_sbm_bp_wl_cfg() argument 561 hns_dsaf_voq_bp_all_thrd_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_voq_bp_all_thrd_cfg() argument 590 hns_dsaf_tbl_tcam_match_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_data *ptbl_tcam_data) hns_dsaf_tbl_tcam_match_cfg() argument 605 hns_dsaf_tbl_tcam_data_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_data *ptbl_tcam_data) hns_dsaf_tbl_tcam_data_cfg() argument 620 hns_dsaf_tbl_tcam_mcast_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_mcast_cfg *mcast) hns_dsaf_tbl_tcam_mcast_cfg() argument 654 hns_dsaf_tbl_tcam_ucast_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_ucast_cfg *tbl_tcam_ucast) hns_dsaf_tbl_tcam_ucast_cfg() argument 680 hns_dsaf_tbl_line_cfg(struct dsaf_device *dsaf_dev, struct dsaf_tbl_line_cfg *tbl_lin) hns_dsaf_tbl_line_cfg() argument 700 hns_dsaf_tbl_tcam_mcast_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_mcast_pul() argument 715 hns_dsaf_tbl_line_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_line_pul() argument 730 hns_dsaf_tbl_tcam_data_mcast_pul( struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_data_mcast_pul() argument 748 hns_dsaf_tbl_tcam_data_ucast_pul( struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_data_ucast_pul() argument 762 hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en) hns_dsaf_set_promisc_mode() argument 773 hns_dsaf_tbl_stat_en(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_stat_en() argument 789 hns_dsaf_rocee_bp_en(struct dsaf_device *dsaf_dev) hns_dsaf_rocee_bp_en() argument 797 hns_dsaf_int_xge_msk_set(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 mask_set) hns_dsaf_int_xge_msk_set() argument 804 hns_dsaf_int_ppe_msk_set(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 msk_set) hns_dsaf_int_ppe_msk_set() argument 811 hns_dsaf_int_rocee_msk_set(struct dsaf_device *dsaf_dev, u32 chnn, u32 msk_set) hns_dsaf_int_rocee_msk_set() argument 819 hns_dsaf_int_tbl_msk_set(struct dsaf_device *dsaf_dev, u32 msk_set) hns_dsaf_int_tbl_msk_set() argument 825 hns_dsaf_int_xge_src_clr(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 int_src) hns_dsaf_int_xge_src_clr() argument 832 hns_dsaf_int_ppe_src_clr(struct dsaf_device *dsaf_dev, u32 chnn, u32 int_src) hns_dsaf_int_ppe_src_clr() argument 839 hns_dsaf_int_rocee_src_clr(struct dsaf_device *dsaf_dev, u32 chnn, u32 int_src) hns_dsaf_int_rocee_src_clr() argument 846 hns_dsaf_int_tbl_src_clr(struct dsaf_device *dsaf_dev, u32 int_src) hns_dsaf_int_tbl_src_clr() argument 858 hns_dsaf_single_line_tbl_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_line_cfg *ptbl_line) hns_dsaf_single_line_tbl_cfg() argument 883 hns_dsaf_tcam_uc_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_ucast_cfg *ptbl_tcam_ucast) hns_dsaf_tcam_uc_cfg() argument 910 hns_dsaf_tcam_mc_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_data *ptbl_tcam_mask, struct dsaf_tbl_tcam_mcast_cfg *ptbl_tcam_mcast) hns_dsaf_tcam_mc_cfg() argument 942 hns_dsaf_tcam_uc_cfg_vague(struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *tcam_data, struct dsaf_tbl_tcam_data *tcam_mask, struct dsaf_tbl_tcam_ucast_cfg *tcam_uc) hns_dsaf_tcam_uc_cfg_vague() argument 971 hns_dsaf_tcam_mc_cfg_vague(struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *tcam_data, struct dsaf_tbl_tcam_data *tcam_mask, struct dsaf_tbl_tcam_mcast_cfg *tcam_mc) hns_dsaf_tcam_mc_cfg_vague() argument 997 hns_dsaf_tcam_mc_invld(struct dsaf_device *dsaf_dev, u32 address) hns_dsaf_tcam_mc_invld() argument 1035 hns_dsaf_tcam_uc_get( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_ucast_cfg *ptbl_tcam_ucast) hns_dsaf_tcam_uc_get() argument 1088 hns_dsaf_tcam_mc_get( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_mcast_cfg *ptbl_tcam_mcast) hns_dsaf_tcam_mc_get() argument 1135 hns_dsaf_tbl_line_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_line_init() argument 1149 hns_dsaf_tbl_tcam_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_init() argument 1166 hns_dsaf_pfc_en_cfg(struct dsaf_device *dsaf_dev, int mac_id, int tc_en) hns_dsaf_pfc_en_cfg() argument 1172 hns_dsaf_set_pfc_pause(struct dsaf_device *dsaf_dev, int mac_id, int tx_en, int rx_en) hns_dsaf_set_pfc_pause() argument 1188 hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, u32 en) hns_dsaf_set_rx_mac_pause_en() argument 1204 hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, u32 *en) hns_dsaf_get_rx_mac_pause_en() argument 1219 hns_dsaf_comm_init(struct dsaf_device *dsaf_dev) hns_dsaf_comm_init() argument 1272 hns_dsaf_inode_init(struct dsaf_device *dsaf_dev) hns_dsaf_inode_init() argument 1324 hns_dsaf_sbm_init(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_init() argument 1378 hns_dsaf_tbl_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_init() argument 1390 hns_dsaf_voq_init(struct dsaf_device *dsaf_dev) hns_dsaf_voq_init() argument 1399 hns_dsaf_init_hw(struct dsaf_device *dsaf_dev) hns_dsaf_init_hw() argument 1433 hns_dsaf_remove_hw(struct dsaf_device *dsaf_dev) hns_dsaf_remove_hw() argument 1444 hns_dsaf_init(struct dsaf_device *dsaf_dev) hns_dsaf_init() argument 1488 hns_dsaf_free(struct dsaf_device *dsaf_dev) hns_dsaf_free() argument 1505 hns_dsaf_find_soft_mac_entry( struct dsaf_device *dsaf_dev, struct dsaf_drv_tbl_tcam_key *mac_key) hns_dsaf_find_soft_mac_entry() argument 1532 hns_dsaf_find_empty_mac_entry(struct dsaf_device *dsaf_dev) hns_dsaf_find_empty_mac_entry() argument 1556 hns_dsaf_find_empty_mac_entry_reverse(struct dsaf_device *dsaf_dev) hns_dsaf_find_empty_mac_entry_reverse() argument 1580 hns_dsaf_set_mac_key( struct dsaf_device *dsaf_dev, struct dsaf_drv_tbl_tcam_key *mac_key, u16 vlan_id, u8 in_port_num, u8 *addr) hns_dsaf_set_mac_key() argument 1612 hns_dsaf_set_mac_uc_entry( struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_set_mac_uc_entry() argument 1678 hns_dsaf_rm_mac_addr( struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_rm_mac_addr() argument 1727 hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev, u8 port_num, u8 *mask, u8 *addr) hns_dsaf_setup_mc_mask() argument 1751 hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_add_mac_mc_port() argument 1861 hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id, u8 in_port_num, u8 *addr) hns_dsaf_del_mac_entry() argument 1910 hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_del_mac_mc_port() argument 2018 hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev, u8 mac_id, u8 port_num) hns_dsaf_clr_mac_mc_port() argument 2090 struct dsaf_device *dsaf_dev; hns_dsaf_alloc_dev() local 2108 hns_dsaf_free_dev(struct dsaf_device *dsaf_dev) hns_dsaf_free_dev() argument 2119 hns_dsaf_pfc_unit_cnt(struct dsaf_device *dsaf_dev, int mac_id, enum dsaf_port_rate_mode rate) hns_dsaf_pfc_unit_cnt() argument 2151 hns_dsaf_port_work_rate_cfg(struct dsaf_device *dsaf_dev, int mac_id, enum dsaf_port_rate_mode rate_mode) hns_dsaf_port_work_rate_cfg() argument 2178 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_dsaf_fix_mac_mode() local 2203 hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num) hns_dsaf_update_stats() argument 2593 hns_dsaf_get_node_stats_strings(char *data, int node, struct dsaf_device *dsaf_dev) hns_dsaf_get_node_stats_strings() argument 2703 hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset) hns_dsaf_get_sset_count() argument 2723 hns_dsaf_get_strings(int stringset, u8 *data, int port, struct dsaf_device *dsaf_dev) hns_dsaf_get_strings() argument 2760 set_promisc_tcam_enable(struct dsaf_device *dsaf_dev, u32 port) set_promisc_tcam_enable() argument 2864 set_promisc_tcam_disable(struct dsaf_device *dsaf_dev, u32 port) set_promisc_tcam_disable() argument 2913 hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev, u32 port, bool enable) hns_dsaf_set_promisc_tcam() argument 2922 hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port) hns_dsaf_wait_pkt_clean() argument 2958 struct dsaf_device *dsaf_dev; hns_dsaf_probe() local 3012 struct dsaf_device *dsaf_dev = dev_get_drvdata(&pdev->dev); hns_dsaf_remove() local 3054 struct dsaf_device *dsaf_dev; hns_dsaf_roce_reset() local [all...] |
H A D | hns_dsaf_misc.c | 33 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub() argument 35 if (dsaf_dev->sub_ctrl) in dsaf_write_sub() 36 dsaf_write_syscon(dsaf_dev->sub_ctrl, reg, val); in dsaf_write_sub() 38 dsaf_write_reg(dsaf_dev->sc_base, reg, val); in dsaf_write_sub() 41 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub() argument 46 if (dsaf_dev->sub_ctrl) { in dsaf_read_sub() 47 err = dsaf_read_syscon(dsaf_dev->sub_ctrl, reg, &ret); in dsaf_read_sub() 49 dev_err(dsaf_dev->dev, "dsaf_read_syscon error %d!\n", in dsaf_read_sub() 52 ret = dsaf_read_reg(dsaf_dev->sc_base, reg); in dsaf_read_sub() 250 static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u argument 278 hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_rst() argument 295 hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_rst_acpi() argument 302 hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_xge_srst_by_port() argument 322 hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_xge_srst_by_port_acpi() argument 341 hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) hns_dsaf_srst_chns() argument 365 hns_dsaf_srst_chns_acpi(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) hns_dsaf_srst_chns_acpi() argument 372 hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_roce_srst() argument 386 hns_dsaf_roce_srst_acpi(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_roce_srst_acpi() argument 392 hns_dsaf_ge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_ge_srst_by_port() argument 450 hns_dsaf_ge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_ge_srst_by_port_acpi() argument 457 hns_ppe_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_ppe_srst_by_port() argument 474 hns_ppe_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_ppe_srst_by_port_acpi() argument 480 hns_ppe_com_srst(struct dsaf_device *dsaf_dev, bool dereset) hns_ppe_com_srst() argument 714 hns_misc_op_get(struct dsaf_device *dsaf_dev) hns_misc_op_get() argument [all...] |
H A D | hns_dsaf_ppe.c | 63 return ppe_common->dsaf_dev->ppe_base + PPE_COMMON_REG_OFFSET; in hns_ppe_common_get_ioaddr() 68 * @dsaf_dev: dasf device 72 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() argument 77 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) in hns_ppe_common_get_cfg() 82 ppe_common = devm_kzalloc(dsaf_dev->dev, in hns_ppe_common_get_cfg() 89 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg() 91 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) in hns_ppe_common_get_cfg() 95 ppe_common->dev = dsaf_dev->dev; in hns_ppe_common_get_cfg() 99 dsaf_dev in hns_ppe_common_get_cfg() 105 hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) hns_ppe_common_free_cfg() argument 200 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; hns_ppe_common_init_hw() local 306 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; hns_ppe_init_hw() local 354 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; hns_ppe_uninit_hw() local 372 hns_ppe_uninit(struct dsaf_device *dsaf_dev) hns_ppe_uninit() argument 390 hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) hns_ppe_reset_common() argument 519 hns_ppe_init(struct dsaf_device *dsaf_dev) hns_ppe_init() argument [all...] |
H A D | hns_dsaf_mac.c | 103 ret = mac_cb->dsaf_dev->misc_op->get_sfp_prsnt(mac_cb, in hns_mac_get_link_status() 178 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_adjust_link() 198 if (mac_cb->dsaf_dev->dsaf_mode <= DSAF_MODE_ENABLE) { in hns_mac_get_inner_port_num() 202 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 206 } else if (mac_cb->dsaf_dev->dsaf_mode < DSAF_MODE_MAX) { in hns_mac_get_inner_port_num() 210 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 216 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 220 if (vmid >= mac_cb->dsaf_dev->rcb_common[0]->max_vfn) { in hns_mac_get_inner_port_num() 222 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 226 q_num_per_vf = mac_cb->dsaf_dev in hns_mac_get_inner_port_num() 276 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_change_vf_addr() local 317 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_add_uc_addr() local 337 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_rm_uc_addr() local 358 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_set_multi() local 385 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_clr_multicast() local 417 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_port_config_bc_en() local 450 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_vm_config_bc_en() local 998 hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb, u32 mac_mode_idx) hns_mac_get_vaddr() argument 1018 hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) hns_mac_get_cfg() argument 1059 hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev) hns_mac_get_max_port_num() argument 1086 hns_mac_init(struct dsaf_device *dsaf_dev) hns_mac_init() argument 1150 hns_mac_uninit(struct dsaf_device *dsaf_dev) hns_mac_uninit() argument [all...] |
H A D | hns_dsaf_main.h | 212 struct dsaf_device *dsaf_dev; member 305 void (*dsaf_reset)(struct dsaf_device *dsaf_dev, bool dereset); 306 void (*xge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 307 void (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 308 void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 309 void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset); 310 void (*hns_dsaf_srst_chns)(struct dsaf_device *dsaf_dev, u32 msk, 312 void (*hns_dsaf_roce_srst)(struct dsaf_device *dsaf_dev, bool dereset); 353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument 355 return (void *)((u8 *)dsaf_dev in hns_dsaf_dev_priv() 395 hns_dsaf_tbl_tcam_addr_cfg(struct dsaf_device *dsaf_dev, u32 tab_tcam_addr) hns_dsaf_tbl_tcam_addr_cfg() argument 403 hns_dsaf_tbl_tcam_load_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_load_pul() argument 414 hns_dsaf_tbl_line_addr_cfg(struct dsaf_device *dsaf_dev, u32 tab_line_addr) hns_dsaf_tbl_line_addr_cfg() argument [all...] |
H A D | hns_ae_adapt.c | 34 ppe_comm = vf_cb->dsaf_dev->ppe_common[0]; in hns_get_ppe_cb() 41 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf() 43 return dsaf_dev->rcb_common[0]->max_q_per_vf; in hns_ae_get_q_num_per_vf() 47 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port() 49 return dsaf_dev->rcb_common[0]->max_vfn; in hns_ae_get_vf_num_per_port() 53 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair() 55 struct rcb_common_cb *rcb_comm = dsaf_dev->rcb_common[0]; in hns_ae_get_base_ring_pair() 73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() local 78 dsaf_dev = hns_ae_get_dsaf_dev(dev); in hns_ae_get_handle() 80 ring_pair_cb = hns_ae_get_base_ring_pair(dsaf_dev, port_i in hns_ae_get_handle() 40 hns_ae_get_q_num_per_vf( struct dsaf_device *dsaf_dev, int port) hns_ae_get_q_num_per_vf() argument 46 hns_ae_get_vf_num_per_port( struct dsaf_device *dsaf_dev, int port) hns_ae_get_vf_num_per_port() argument 52 hns_ae_get_base_ring_pair( struct dsaf_device *dsaf_dev, int port) hns_ae_get_base_ring_pair() argument 152 struct dsaf_device *dsaf_dev; hns_ae_wait_flow_down() local 479 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_get_pauseparam() local 520 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_set_pauseparam() local 555 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_max_coalesced_frames() local 584 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_set_coalesce_frames() local 614 struct dsaf_device *dsaf_dev; hns_ae_get_coalesce_range() local 644 struct dsaf_device *dsaf_dev; hns_ae_update_stats() local 761 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_strings() local 791 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_sset_count() local 813 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_config_loopback() local 998 hns_dsaf_ae_init(struct dsaf_device *dsaf_dev) hns_dsaf_ae_init() argument 1022 hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev) hns_dsaf_ae_uninit() argument [all...] |
H A D | hns_dsaf_rcb.c | 307 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_set_port_timeout() 310 } else if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) { in hns_rcb_set_port_timeout() 332 if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_get_port_num() 382 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_common_init_hw() 391 if (!AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver) && in hns_rcb_common_init_hw() 392 !HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_init_hw() 402 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_common_init_hw() 450 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg() 466 desc_num = rcb_common->dsaf_dev->desc_num; in hns_rcb_ring_get_cfg() 501 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev in hns_rcb_get_base_irq_idx() 728 hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) hns_rcb_get_ring_num() argument 766 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; hns_rcb_common_get_vaddr() local 773 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; hns_rcb_common_get_paddr() local 778 hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) hns_rcb_common_get_cfg() argument 812 hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) hns_rcb_common_free_cfg() argument 822 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; hns_rcb_update_stats() local [all...] |
H A D | hns_dsaf_ppe.h | 87 struct dsaf_device *dsaf_dev; member 100 int hns_ppe_init(struct dsaf_device *dsaf_dev); 102 void hns_ppe_uninit(struct dsaf_device *dsaf_dev); 104 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
|
H A D | hns_dsaf_rcb.h | 103 struct dsaf_device *dsaf_dev; member 116 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index); 117 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
|
H A D | hns_dsaf_gmac.c | 109 struct dsaf_device *dsaf_dev in hns_gmac_free() local 114 dsaf_dev->misc_op->ge_srst(dsaf_dev, mac_id, 0); in hns_gmac_free() 352 struct dsaf_device *dsaf_dev in hns_gmac_init() local 357 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 0); in hns_gmac_init() 359 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 1); in hns_gmac_init()
|
H A D | hns_dsaf_misc.h | 32 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
|
H A D | hns_dsaf_xgmac.c | 209 struct dsaf_device *dsaf_dev in hns_xgmac_init() local 213 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 0); in hns_xgmac_init() 215 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 1); in hns_xgmac_init() 425 struct dsaf_device *dsaf_dev in hns_xgmac_free() local 430 dsaf_dev->misc_op->xge_srst(dsaf_dev, mac_id, 0); in hns_xgmac_free()
|
H A D | hns_dsaf_mac.h | 305 struct dsaf_device *dsaf_dev; member 428 int hns_mac_init(struct dsaf_device *dsaf_dev); 438 void hns_mac_uninit(struct dsaf_device *dsaf_dev);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_main.c | 41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() argument 51 struct device_node *np = dsaf_dev->dev->of_node, *np_temp; in hns_dsaf_get_cfg() 52 struct platform_device *pdev = to_platform_device(dsaf_dev->dev); in hns_dsaf_get_cfg() 54 if (dev_of_node(dsaf_dev->dev)) { in hns_dsaf_get_cfg() 56 dsaf_dev->dsaf_ver = AE_VERSION_1; in hns_dsaf_get_cfg() 58 dsaf_dev->dsaf_ver = AE_VERSION_2; in hns_dsaf_get_cfg() 59 } else if (is_acpi_node(dsaf_dev->dev->fwnode)) { in hns_dsaf_get_cfg() 61 dsaf_dev->dsaf_ver = AE_VERSION_1; in hns_dsaf_get_cfg() 63 dsaf_dev->dsaf_ver = AE_VERSION_2; in hns_dsaf_get_cfg() 67 dev_err(dsaf_dev in hns_dsaf_get_cfg() 212 hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_link_sram_init_en() argument 223 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) hns_dsaf_reg_cnt_clr_ce() argument 235 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) hns_dsaf_ppe_qid_cfg() argument 247 hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_mix_def_qid_cfg() argument 264 hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_inner_qid_cfg() argument 291 hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, enum dsaf_sw_port_type port_type) hns_dsaf_sw_port_type_cfg() argument 309 hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, enum dsaf_stp_port_type port_type) hns_dsaf_stp_port_type_cfg() argument 328 hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_cfg() argument 347 hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_cfg_mib_en() argument 392 hns_dsaf_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_bp_wl_cfg() argument 471 hns_dsafv2_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) hns_dsafv2_sbm_bp_wl_cfg() argument 561 hns_dsaf_voq_bp_all_thrd_cfg(struct dsaf_device *dsaf_dev) hns_dsaf_voq_bp_all_thrd_cfg() argument 590 hns_dsaf_tbl_tcam_match_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_data *ptbl_tcam_data) hns_dsaf_tbl_tcam_match_cfg() argument 605 hns_dsaf_tbl_tcam_data_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_data *ptbl_tcam_data) hns_dsaf_tbl_tcam_data_cfg() argument 620 hns_dsaf_tbl_tcam_mcast_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_mcast_cfg *mcast) hns_dsaf_tbl_tcam_mcast_cfg() argument 654 hns_dsaf_tbl_tcam_ucast_cfg( struct dsaf_device *dsaf_dev, struct dsaf_tbl_tcam_ucast_cfg *tbl_tcam_ucast) hns_dsaf_tbl_tcam_ucast_cfg() argument 680 hns_dsaf_tbl_line_cfg(struct dsaf_device *dsaf_dev, struct dsaf_tbl_line_cfg *tbl_lin) hns_dsaf_tbl_line_cfg() argument 700 hns_dsaf_tbl_tcam_mcast_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_mcast_pul() argument 715 hns_dsaf_tbl_line_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_line_pul() argument 730 hns_dsaf_tbl_tcam_data_mcast_pul( struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_data_mcast_pul() argument 748 hns_dsaf_tbl_tcam_data_ucast_pul( struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_data_ucast_pul() argument 762 hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en) hns_dsaf_set_promisc_mode() argument 773 hns_dsaf_tbl_stat_en(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_stat_en() argument 789 hns_dsaf_rocee_bp_en(struct dsaf_device *dsaf_dev) hns_dsaf_rocee_bp_en() argument 797 hns_dsaf_int_xge_msk_set(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 mask_set) hns_dsaf_int_xge_msk_set() argument 804 hns_dsaf_int_ppe_msk_set(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 msk_set) hns_dsaf_int_ppe_msk_set() argument 811 hns_dsaf_int_rocee_msk_set(struct dsaf_device *dsaf_dev, u32 chnn, u32 msk_set) hns_dsaf_int_rocee_msk_set() argument 819 hns_dsaf_int_tbl_msk_set(struct dsaf_device *dsaf_dev, u32 msk_set) hns_dsaf_int_tbl_msk_set() argument 825 hns_dsaf_int_xge_src_clr(struct dsaf_device *dsaf_dev, u32 chnn_num, u32 int_src) hns_dsaf_int_xge_src_clr() argument 832 hns_dsaf_int_ppe_src_clr(struct dsaf_device *dsaf_dev, u32 chnn, u32 int_src) hns_dsaf_int_ppe_src_clr() argument 839 hns_dsaf_int_rocee_src_clr(struct dsaf_device *dsaf_dev, u32 chnn, u32 int_src) hns_dsaf_int_rocee_src_clr() argument 846 hns_dsaf_int_tbl_src_clr(struct dsaf_device *dsaf_dev, u32 int_src) hns_dsaf_int_tbl_src_clr() argument 858 hns_dsaf_single_line_tbl_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_line_cfg *ptbl_line) hns_dsaf_single_line_tbl_cfg() argument 883 hns_dsaf_tcam_uc_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_ucast_cfg *ptbl_tcam_ucast) hns_dsaf_tcam_uc_cfg() argument 910 hns_dsaf_tcam_mc_cfg( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_data *ptbl_tcam_mask, struct dsaf_tbl_tcam_mcast_cfg *ptbl_tcam_mcast) hns_dsaf_tcam_mc_cfg() argument 942 hns_dsaf_tcam_uc_cfg_vague(struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *tcam_data, struct dsaf_tbl_tcam_data *tcam_mask, struct dsaf_tbl_tcam_ucast_cfg *tcam_uc) hns_dsaf_tcam_uc_cfg_vague() argument 971 hns_dsaf_tcam_mc_cfg_vague(struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *tcam_data, struct dsaf_tbl_tcam_data *tcam_mask, struct dsaf_tbl_tcam_mcast_cfg *tcam_mc) hns_dsaf_tcam_mc_cfg_vague() argument 997 hns_dsaf_tcam_mc_invld(struct dsaf_device *dsaf_dev, u32 address) hns_dsaf_tcam_mc_invld() argument 1035 hns_dsaf_tcam_uc_get( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_ucast_cfg *ptbl_tcam_ucast) hns_dsaf_tcam_uc_get() argument 1088 hns_dsaf_tcam_mc_get( struct dsaf_device *dsaf_dev, u32 address, struct dsaf_tbl_tcam_data *ptbl_tcam_data, struct dsaf_tbl_tcam_mcast_cfg *ptbl_tcam_mcast) hns_dsaf_tcam_mc_get() argument 1135 hns_dsaf_tbl_line_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_line_init() argument 1149 hns_dsaf_tbl_tcam_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_init() argument 1166 hns_dsaf_pfc_en_cfg(struct dsaf_device *dsaf_dev, int mac_id, int tc_en) hns_dsaf_pfc_en_cfg() argument 1172 hns_dsaf_set_pfc_pause(struct dsaf_device *dsaf_dev, int mac_id, int tx_en, int rx_en) hns_dsaf_set_pfc_pause() argument 1188 hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, u32 en) hns_dsaf_set_rx_mac_pause_en() argument 1204 hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, u32 *en) hns_dsaf_get_rx_mac_pause_en() argument 1219 hns_dsaf_comm_init(struct dsaf_device *dsaf_dev) hns_dsaf_comm_init() argument 1272 hns_dsaf_inode_init(struct dsaf_device *dsaf_dev) hns_dsaf_inode_init() argument 1324 hns_dsaf_sbm_init(struct dsaf_device *dsaf_dev) hns_dsaf_sbm_init() argument 1378 hns_dsaf_tbl_init(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_init() argument 1390 hns_dsaf_voq_init(struct dsaf_device *dsaf_dev) hns_dsaf_voq_init() argument 1399 hns_dsaf_init_hw(struct dsaf_device *dsaf_dev) hns_dsaf_init_hw() argument 1433 hns_dsaf_remove_hw(struct dsaf_device *dsaf_dev) hns_dsaf_remove_hw() argument 1444 hns_dsaf_init(struct dsaf_device *dsaf_dev) hns_dsaf_init() argument 1488 hns_dsaf_free(struct dsaf_device *dsaf_dev) hns_dsaf_free() argument 1505 hns_dsaf_find_soft_mac_entry( struct dsaf_device *dsaf_dev, struct dsaf_drv_tbl_tcam_key *mac_key) hns_dsaf_find_soft_mac_entry() argument 1532 hns_dsaf_find_empty_mac_entry(struct dsaf_device *dsaf_dev) hns_dsaf_find_empty_mac_entry() argument 1556 hns_dsaf_find_empty_mac_entry_reverse(struct dsaf_device *dsaf_dev) hns_dsaf_find_empty_mac_entry_reverse() argument 1580 hns_dsaf_set_mac_key( struct dsaf_device *dsaf_dev, struct dsaf_drv_tbl_tcam_key *mac_key, u16 vlan_id, u8 in_port_num, u8 *addr) hns_dsaf_set_mac_key() argument 1612 hns_dsaf_set_mac_uc_entry( struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_set_mac_uc_entry() argument 1678 hns_dsaf_rm_mac_addr( struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_rm_mac_addr() argument 1727 hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev, u8 port_num, u8 *mask, u8 *addr) hns_dsaf_setup_mc_mask() argument 1751 hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_add_mac_mc_port() argument 1861 hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id, u8 in_port_num, u8 *addr) hns_dsaf_del_mac_entry() argument 1910 hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev, struct dsaf_drv_mac_single_dest_entry *mac_entry) hns_dsaf_del_mac_mc_port() argument 2018 hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev, u8 mac_id, u8 port_num) hns_dsaf_clr_mac_mc_port() argument 2090 struct dsaf_device *dsaf_dev; hns_dsaf_alloc_dev() local 2108 hns_dsaf_free_dev(struct dsaf_device *dsaf_dev) hns_dsaf_free_dev() argument 2119 hns_dsaf_pfc_unit_cnt(struct dsaf_device *dsaf_dev, int mac_id, enum dsaf_port_rate_mode rate) hns_dsaf_pfc_unit_cnt() argument 2151 hns_dsaf_port_work_rate_cfg(struct dsaf_device *dsaf_dev, int mac_id, enum dsaf_port_rate_mode rate_mode) hns_dsaf_port_work_rate_cfg() argument 2178 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_dsaf_fix_mac_mode() local 2203 hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num) hns_dsaf_update_stats() argument 2593 hns_dsaf_get_node_stats_strings(char *data, int node, struct dsaf_device *dsaf_dev) hns_dsaf_get_node_stats_strings() argument 2703 hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset) hns_dsaf_get_sset_count() argument 2723 hns_dsaf_get_strings(int stringset, u8 *data, int port, struct dsaf_device *dsaf_dev) hns_dsaf_get_strings() argument 2760 set_promisc_tcam_enable(struct dsaf_device *dsaf_dev, u32 port) set_promisc_tcam_enable() argument 2864 set_promisc_tcam_disable(struct dsaf_device *dsaf_dev, u32 port) set_promisc_tcam_disable() argument 2913 hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev, u32 port, bool enable) hns_dsaf_set_promisc_tcam() argument 2922 hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port) hns_dsaf_wait_pkt_clean() argument 2958 struct dsaf_device *dsaf_dev; hns_dsaf_probe() local 3012 struct dsaf_device *dsaf_dev = dev_get_drvdata(&pdev->dev); hns_dsaf_remove() local 3054 struct dsaf_device *dsaf_dev; hns_dsaf_roce_reset() local [all...] |
H A D | hns_dsaf_misc.c | 33 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub() argument 35 if (dsaf_dev->sub_ctrl) in dsaf_write_sub() 36 dsaf_write_syscon(dsaf_dev->sub_ctrl, reg, val); in dsaf_write_sub() 38 dsaf_write_reg(dsaf_dev->sc_base, reg, val); in dsaf_write_sub() 41 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub() argument 46 if (dsaf_dev->sub_ctrl) { in dsaf_read_sub() 47 err = dsaf_read_syscon(dsaf_dev->sub_ctrl, reg, &ret); in dsaf_read_sub() 49 dev_err(dsaf_dev->dev, "dsaf_read_syscon error %d!\n", in dsaf_read_sub() 52 ret = dsaf_read_reg(dsaf_dev->sc_base, reg); in dsaf_read_sub() 250 static void hns_dsaf_acpi_srst_by_port(struct dsaf_device *dsaf_dev, u argument 278 hns_dsaf_rst(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_rst() argument 295 hns_dsaf_rst_acpi(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_rst_acpi() argument 302 hns_dsaf_xge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_xge_srst_by_port() argument 322 hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_xge_srst_by_port_acpi() argument 341 hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) hns_dsaf_srst_chns() argument 365 hns_dsaf_srst_chns_acpi(struct dsaf_device *dsaf_dev, u32 msk, bool dereset) hns_dsaf_srst_chns_acpi() argument 372 hns_dsaf_roce_srst(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_roce_srst() argument 386 hns_dsaf_roce_srst_acpi(struct dsaf_device *dsaf_dev, bool dereset) hns_dsaf_roce_srst_acpi() argument 392 hns_dsaf_ge_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_ge_srst_by_port() argument 450 hns_dsaf_ge_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_dsaf_ge_srst_by_port_acpi() argument 457 hns_ppe_srst_by_port(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_ppe_srst_by_port() argument 474 hns_ppe_srst_by_port_acpi(struct dsaf_device *dsaf_dev, u32 port, bool dereset) hns_ppe_srst_by_port_acpi() argument 480 hns_ppe_com_srst(struct dsaf_device *dsaf_dev, bool dereset) hns_ppe_com_srst() argument 714 hns_misc_op_get(struct dsaf_device *dsaf_dev) hns_misc_op_get() argument [all...] |
H A D | hns_ae_adapt.c | 34 ppe_comm = vf_cb->dsaf_dev->ppe_common[0]; in hns_get_ppe_cb() 41 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_q_num_per_vf() 43 return dsaf_dev->rcb_common[0]->max_q_per_vf; in hns_ae_get_q_num_per_vf() 47 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_vf_num_per_port() 49 return dsaf_dev->rcb_common[0]->max_vfn; in hns_ae_get_vf_num_per_port() 53 struct dsaf_device *dsaf_dev, int port) in hns_ae_get_base_ring_pair() 55 struct rcb_common_cb *rcb_comm = dsaf_dev->rcb_common[0]; in hns_ae_get_base_ring_pair() 73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() local 78 dsaf_dev = hns_ae_get_dsaf_dev(dev); in hns_ae_get_handle() 80 ring_pair_cb = hns_ae_get_base_ring_pair(dsaf_dev, port_i in hns_ae_get_handle() 40 hns_ae_get_q_num_per_vf( struct dsaf_device *dsaf_dev, int port) hns_ae_get_q_num_per_vf() argument 46 hns_ae_get_vf_num_per_port( struct dsaf_device *dsaf_dev, int port) hns_ae_get_vf_num_per_port() argument 52 hns_ae_get_base_ring_pair( struct dsaf_device *dsaf_dev, int port) hns_ae_get_base_ring_pair() argument 151 struct dsaf_device *dsaf_dev; hns_ae_wait_flow_down() local 476 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_get_pauseparam() local 499 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_set_pauseparam() local 534 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_max_coalesced_frames() local 563 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_set_coalesce_frames() local 593 struct dsaf_device *dsaf_dev; hns_ae_get_coalesce_range() local 623 struct dsaf_device *dsaf_dev; hns_ae_update_stats() local 740 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_strings() local 770 struct dsaf_device *dsaf_dev = hns_ae_get_dsaf_dev(handle->dev); hns_ae_get_sset_count() local 792 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_ae_config_loopback() local 975 hns_dsaf_ae_init(struct dsaf_device *dsaf_dev) hns_dsaf_ae_init() argument 999 hns_dsaf_ae_uninit(struct dsaf_device *dsaf_dev) hns_dsaf_ae_uninit() argument [all...] |
H A D | hns_dsaf_ppe.c | 60 return ppe_common->dsaf_dev->ppe_base + PPE_COMMON_REG_OFFSET; in hns_ppe_common_get_ioaddr() 65 * @dsaf_dev: dasf device 69 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() argument 74 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) in hns_ppe_common_get_cfg() 79 ppe_common = devm_kzalloc(dsaf_dev->dev, in hns_ppe_common_get_cfg() 86 ppe_common->dsaf_dev = dsaf_dev; in hns_ppe_common_get_cfg() 88 if (!HNS_DSAF_IS_DEBUG(dsaf_dev)) in hns_ppe_common_get_cfg() 92 ppe_common->dev = dsaf_dev->dev; in hns_ppe_common_get_cfg() 96 dsaf_dev in hns_ppe_common_get_cfg() 102 hns_ppe_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) hns_ppe_common_free_cfg() argument 197 struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; hns_ppe_common_init_hw() local 303 struct dsaf_device *dsaf_dev = ppe_common_cb->dsaf_dev; hns_ppe_init_hw() local 351 struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; hns_ppe_uninit_hw() local 369 hns_ppe_uninit(struct dsaf_device *dsaf_dev) hns_ppe_uninit() argument 387 hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index) hns_ppe_reset_common() argument 505 hns_ppe_init(struct dsaf_device *dsaf_dev) hns_ppe_init() argument [all...] |
H A D | hns_dsaf_mac.c | 103 ret = mac_cb->dsaf_dev->misc_op->get_sfp_prsnt(mac_cb, in hns_mac_get_link_status() 178 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_adjust_link() 198 if (mac_cb->dsaf_dev->dsaf_mode <= DSAF_MODE_ENABLE) { in hns_mac_get_inner_port_num() 202 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 206 } else if (mac_cb->dsaf_dev->dsaf_mode < DSAF_MODE_MAX) { in hns_mac_get_inner_port_num() 210 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 216 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 220 if (vmid >= mac_cb->dsaf_dev->rcb_common[0]->max_vfn) { in hns_mac_get_inner_port_num() 222 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 226 q_num_per_vf = mac_cb->dsaf_dev in hns_mac_get_inner_port_num() 276 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_change_vf_addr() local 317 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_add_uc_addr() local 337 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_rm_uc_addr() local 358 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_set_multi() local 385 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_clr_multicast() local 417 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_port_config_bc_en() local 450 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; hns_mac_vm_config_bc_en() local 997 hns_mac_get_vaddr(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb, u32 mac_mode_idx) hns_mac_get_vaddr() argument 1017 hns_mac_get_cfg(struct dsaf_device *dsaf_dev, struct hns_mac_cb *mac_cb) hns_mac_get_cfg() argument 1058 hns_mac_get_max_port_num(struct dsaf_device *dsaf_dev) hns_mac_get_max_port_num() argument 1085 hns_mac_init(struct dsaf_device *dsaf_dev) hns_mac_init() argument 1153 hns_mac_uninit(struct dsaf_device *dsaf_dev) hns_mac_uninit() argument [all...] |
H A D | hns_dsaf_main.h | 212 struct dsaf_device *dsaf_dev; member 305 void (*dsaf_reset)(struct dsaf_device *dsaf_dev, bool dereset); 306 void (*xge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 307 void (*ge_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 308 void (*ppe_srst)(struct dsaf_device *dsaf_dev, u32 port, bool dereset); 309 void (*ppe_comm_srst)(struct dsaf_device *dsaf_dev, bool dereset); 310 void (*hns_dsaf_srst_chns)(struct dsaf_device *dsaf_dev, u32 msk, 312 void (*hns_dsaf_roce_srst)(struct dsaf_device *dsaf_dev, bool dereset); 353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument 355 return (void *)((u8 *)dsaf_dev in hns_dsaf_dev_priv() 395 hns_dsaf_tbl_tcam_addr_cfg(struct dsaf_device *dsaf_dev, u32 tab_tcam_addr) hns_dsaf_tbl_tcam_addr_cfg() argument 403 hns_dsaf_tbl_tcam_load_pul(struct dsaf_device *dsaf_dev) hns_dsaf_tbl_tcam_load_pul() argument 414 hns_dsaf_tbl_line_addr_cfg(struct dsaf_device *dsaf_dev, u32 tab_line_addr) hns_dsaf_tbl_line_addr_cfg() argument [all...] |
H A D | hns_dsaf_rcb.c | 303 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_set_port_timeout() 306 } else if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) { in hns_rcb_set_port_timeout() 328 if (!HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_get_port_num() 378 dev_err(rcb_common->dsaf_dev->dev, in hns_rcb_common_init_hw() 387 if (!AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver) && in hns_rcb_common_init_hw() 388 !HNS_DSAF_IS_DEBUG(rcb_common->dsaf_dev)) in hns_rcb_common_init_hw() 398 if (AE_IS_VER1(rcb_common->dsaf_dev->dsaf_ver)) { in hns_rcb_common_init_hw() 446 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg() 462 desc_num = rcb_common->dsaf_dev->desc_num; in hns_rcb_ring_get_cfg() 497 bool is_ver1 = AE_IS_VER1(rcb_common->dsaf_dev in hns_rcb_get_base_irq_idx() 724 hns_rcb_get_ring_num(struct dsaf_device *dsaf_dev) hns_rcb_get_ring_num() argument 762 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; hns_rcb_common_get_vaddr() local 769 struct dsaf_device *dsaf_dev = rcb_common->dsaf_dev; hns_rcb_common_get_paddr() local 774 hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) hns_rcb_common_get_cfg() argument 808 hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index) hns_rcb_common_free_cfg() argument 818 struct dsaf_device *dsaf_dev = ring->rcb_common->dsaf_dev; hns_rcb_update_stats() local [all...] |
H A D | hns_dsaf_ppe.h | 87 struct dsaf_device *dsaf_dev; member 100 int hns_ppe_init(struct dsaf_device *dsaf_dev); 102 void hns_ppe_uninit(struct dsaf_device *dsaf_dev); 104 void hns_ppe_reset_common(struct dsaf_device *dsaf_dev, u8 ppe_common_index);
|
H A D | hns_dsaf_rcb.h | 103 struct dsaf_device *dsaf_dev; member 116 int hns_rcb_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index); 117 void hns_rcb_common_free_cfg(struct dsaf_device *dsaf_dev, u32 comm_index);
|
H A D | hns_dsaf_gmac.c | 109 struct dsaf_device *dsaf_dev in hns_gmac_free() local 114 dsaf_dev->misc_op->ge_srst(dsaf_dev, mac_id, 0); in hns_gmac_free() 336 struct dsaf_device *dsaf_dev in hns_gmac_init() local 341 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 0); in hns_gmac_init() 343 dsaf_dev->misc_op->ge_srst(dsaf_dev, port, 1); in hns_gmac_init()
|
H A D | hns_dsaf_misc.h | 32 struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
|
H A D | hns_dsaf_xgmac.c | 209 struct dsaf_device *dsaf_dev in hns_xgmac_init() local 213 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 0); in hns_xgmac_init() 215 dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 1); in hns_xgmac_init() 412 struct dsaf_device *dsaf_dev in hns_xgmac_free() local 417 dsaf_dev->misc_op->xge_srst(dsaf_dev, mac_id, 0); in hns_xgmac_free()
|