Lines Matching refs:dsaf_device

41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev)  in hns_dsaf_get_cfg()
212 static void hns_dsaf_sbm_link_sram_init_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_link_sram_init_en()
223 hns_dsaf_reg_cnt_clr_ce(struct dsaf_device *dsaf_dev, u32 reg_cnt_clr_ce) in hns_dsaf_reg_cnt_clr_ce()
235 hns_dsaf_ppe_qid_cfg(struct dsaf_device *dsaf_dev, u32 qid_cfg) in hns_dsaf_ppe_qid_cfg()
247 static void hns_dsaf_mix_def_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_mix_def_qid_cfg()
264 static void hns_dsaf_inner_qid_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_inner_qid_cfg()
291 static void hns_dsaf_sw_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_sw_port_type_cfg()
309 static void hns_dsaf_stp_port_type_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_stp_port_type_cfg()
328 static void hns_dsaf_sbm_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg()
347 static int hns_dsaf_sbm_cfg_mib_en(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_cfg_mib_en()
392 static void hns_dsaf_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_bp_wl_cfg()
471 static void hns_dsafv2_sbm_bp_wl_cfg(struct dsaf_device *dsaf_dev) in hns_dsafv2_sbm_bp_wl_cfg()
561 static void hns_dsaf_voq_bp_all_thrd_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_voq_bp_all_thrd_cfg()
591 struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_match_cfg()
606 struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_data_cfg()
621 struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_mcast_cfg()
655 struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_tcam_ucast_cfg()
680 static void hns_dsaf_tbl_line_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_tbl_line_cfg()
700 static void hns_dsaf_tbl_tcam_mcast_pul(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_mcast_pul()
715 static void hns_dsaf_tbl_line_pul(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_line_pul()
731 struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_data_mcast_pul()
749 struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_data_ucast_pul()
762 void hns_dsaf_set_promisc_mode(struct dsaf_device *dsaf_dev, u32 en) in hns_dsaf_set_promisc_mode()
773 static void hns_dsaf_tbl_stat_en(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_stat_en()
789 static void hns_dsaf_rocee_bp_en(struct dsaf_device *dsaf_dev) in hns_dsaf_rocee_bp_en()
797 static void hns_dsaf_int_xge_msk_set(struct dsaf_device *dsaf_dev, in hns_dsaf_int_xge_msk_set()
804 static void hns_dsaf_int_ppe_msk_set(struct dsaf_device *dsaf_dev, in hns_dsaf_int_ppe_msk_set()
811 static void hns_dsaf_int_rocee_msk_set(struct dsaf_device *dsaf_dev, in hns_dsaf_int_rocee_msk_set()
819 hns_dsaf_int_tbl_msk_set(struct dsaf_device *dsaf_dev, u32 msk_set) in hns_dsaf_int_tbl_msk_set()
825 static void hns_dsaf_int_xge_src_clr(struct dsaf_device *dsaf_dev, in hns_dsaf_int_xge_src_clr()
832 static void hns_dsaf_int_ppe_src_clr(struct dsaf_device *dsaf_dev, in hns_dsaf_int_ppe_src_clr()
839 static void hns_dsaf_int_rocee_src_clr(struct dsaf_device *dsaf_dev, in hns_dsaf_int_rocee_src_clr()
846 static void hns_dsaf_int_tbl_src_clr(struct dsaf_device *dsaf_dev, in hns_dsaf_int_tbl_src_clr()
859 struct dsaf_device *dsaf_dev, in hns_dsaf_single_line_tbl_cfg()
884 struct dsaf_device *dsaf_dev, u32 address, in hns_dsaf_tcam_uc_cfg()
911 struct dsaf_device *dsaf_dev, u32 address, in hns_dsaf_tcam_mc_cfg()
942 static void hns_dsaf_tcam_uc_cfg_vague(struct dsaf_device *dsaf_dev, in hns_dsaf_tcam_uc_cfg_vague()
971 static void hns_dsaf_tcam_mc_cfg_vague(struct dsaf_device *dsaf_dev, in hns_dsaf_tcam_mc_cfg_vague()
997 static void hns_dsaf_tcam_mc_invld(struct dsaf_device *dsaf_dev, u32 address) in hns_dsaf_tcam_mc_invld()
1036 struct dsaf_device *dsaf_dev, u32 address, in hns_dsaf_tcam_uc_get()
1089 struct dsaf_device *dsaf_dev, u32 address, in hns_dsaf_tcam_mc_get()
1135 static void hns_dsaf_tbl_line_init(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_line_init()
1149 static void hns_dsaf_tbl_tcam_init(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_tcam_init()
1166 static void hns_dsaf_pfc_en_cfg(struct dsaf_device *dsaf_dev, in hns_dsaf_pfc_en_cfg()
1172 static void hns_dsaf_set_pfc_pause(struct dsaf_device *dsaf_dev, in hns_dsaf_set_pfc_pause()
1188 int hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, in hns_dsaf_set_rx_mac_pause_en()
1204 void hns_dsaf_get_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, in hns_dsaf_get_rx_mac_pause_en()
1219 static void hns_dsaf_comm_init(struct dsaf_device *dsaf_dev) in hns_dsaf_comm_init()
1272 static void hns_dsaf_inode_init(struct dsaf_device *dsaf_dev) in hns_dsaf_inode_init()
1324 static int hns_dsaf_sbm_init(struct dsaf_device *dsaf_dev) in hns_dsaf_sbm_init()
1378 static void hns_dsaf_tbl_init(struct dsaf_device *dsaf_dev) in hns_dsaf_tbl_init()
1390 static void hns_dsaf_voq_init(struct dsaf_device *dsaf_dev) in hns_dsaf_voq_init()
1399 static int hns_dsaf_init_hw(struct dsaf_device *dsaf_dev) in hns_dsaf_init_hw()
1433 static void hns_dsaf_remove_hw(struct dsaf_device *dsaf_dev) in hns_dsaf_remove_hw()
1444 static int hns_dsaf_init(struct dsaf_device *dsaf_dev) in hns_dsaf_init()
1488 static void hns_dsaf_free(struct dsaf_device *dsaf_dev) in hns_dsaf_free()
1506 struct dsaf_device *dsaf_dev, in hns_dsaf_find_soft_mac_entry()
1532 static u16 hns_dsaf_find_empty_mac_entry(struct dsaf_device *dsaf_dev) in hns_dsaf_find_empty_mac_entry()
1556 static u16 hns_dsaf_find_empty_mac_entry_reverse(struct dsaf_device *dsaf_dev) in hns_dsaf_find_empty_mac_entry_reverse()
1581 struct dsaf_device *dsaf_dev, in hns_dsaf_set_mac_key()
1613 struct dsaf_device *dsaf_dev, in hns_dsaf_set_mac_uc_entry()
1679 struct dsaf_device *dsaf_dev, in hns_dsaf_rm_mac_addr()
1727 static void hns_dsaf_setup_mc_mask(struct dsaf_device *dsaf_dev, in hns_dsaf_setup_mc_mask()
1751 int hns_dsaf_add_mac_mc_port(struct dsaf_device *dsaf_dev, in hns_dsaf_add_mac_mc_port()
1861 int hns_dsaf_del_mac_entry(struct dsaf_device *dsaf_dev, u16 vlan_id, in hns_dsaf_del_mac_entry()
1910 int hns_dsaf_del_mac_mc_port(struct dsaf_device *dsaf_dev, in hns_dsaf_del_mac_mc_port()
2018 int hns_dsaf_clr_mac_mc_port(struct dsaf_device *dsaf_dev, u8 mac_id, in hns_dsaf_clr_mac_mc_port()
2087 static struct dsaf_device *hns_dsaf_alloc_dev(struct device *dev, in hns_dsaf_alloc_dev()
2090 struct dsaf_device *dsaf_dev; in hns_dsaf_alloc_dev()
2108 static void hns_dsaf_free_dev(struct dsaf_device *dsaf_dev) in hns_dsaf_free_dev()
2119 static void hns_dsaf_pfc_unit_cnt(struct dsaf_device *dsaf_dev, int mac_id, in hns_dsaf_pfc_unit_cnt()
2151 hns_dsaf_port_work_rate_cfg(struct dsaf_device *dsaf_dev, int mac_id, in hns_dsaf_port_work_rate_cfg()
2178 struct dsaf_device *dsaf_dev = mac_cb->dsaf_dev; in hns_dsaf_fix_mac_mode()
2203 void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num) in hns_dsaf_update_stats()
2265 void hns_dsaf_get_regs(struct dsaf_device *ddev, u32 port, void *data) in hns_dsaf_get_regs()
2594 struct dsaf_device *dsaf_dev) in hns_dsaf_get_node_stats_strings()
2644 static u64 *hns_dsaf_get_node_stats(struct dsaf_device *ddev, u64 *data, in hns_dsaf_get_node_stats()
2684 void hns_dsaf_get_stats(struct dsaf_device *ddev, u64 *data, int port) in hns_dsaf_get_stats()
2703 int hns_dsaf_get_sset_count(struct dsaf_device *dsaf_dev, int stringset) in hns_dsaf_get_sset_count()
2724 struct dsaf_device *dsaf_dev) in hns_dsaf_get_strings()
2760 static void set_promisc_tcam_enable(struct dsaf_device *dsaf_dev, u32 port) in set_promisc_tcam_enable()
2864 static void set_promisc_tcam_disable(struct dsaf_device *dsaf_dev, u32 port) in set_promisc_tcam_disable()
2913 void hns_dsaf_set_promisc_tcam(struct dsaf_device *dsaf_dev, in hns_dsaf_set_promisc_tcam()
2922 int hns_dsaf_wait_pkt_clean(struct dsaf_device *dsaf_dev, int port) in hns_dsaf_wait_pkt_clean()
2958 struct dsaf_device *dsaf_dev; in hns_dsaf_probe()
3012 struct dsaf_device *dsaf_dev = dev_get_drvdata(&pdev->dev); in hns_dsaf_remove()
3054 struct dsaf_device *dsaf_dev; in hns_dsaf_roce_reset()