Home
last modified time | relevance | path

Searched defs:dsaf_dev (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_ppe.c72 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() argument
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 Dhns_dsaf_ppe.h87 struct dsaf_device *dsaf_dev; member
H A Dhns_dsaf_xgmac.c209 struct dsaf_device *dsaf_dev in hns_xgmac_init() local
425 struct dsaf_device *dsaf_dev in hns_xgmac_free() local
H A Dhns_dsaf_rcb.h103 struct dsaf_device *dsaf_dev; member
H A Dhns_dsaf_gmac.c109 struct dsaf_device *dsaf_dev in hns_gmac_free() local
352 struct dsaf_device *dsaf_dev in hns_gmac_init() local
H A Dhns_dsaf_rcb.c728 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 Dhns_dsaf_misc.c33 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub() argument
41 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub() argument
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 Dhns_ae_adapt.c73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() local
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 Dhns_dsaf_mac.c276 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 Dhns_dsaf_main.c41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() argument
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 Dhns_dsaf_main.h212 struct dsaf_device *dsaf_dev; member
353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument
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 Dhns_dsaf_mac.h305 struct dsaf_device *dsaf_dev; member
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_ppe.c69 static int hns_ppe_common_get_cfg(struct dsaf_device *dsaf_dev, int comm_index) in hns_ppe_common_get_cfg() argument
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 Dhns_dsaf_ppe.h87 struct dsaf_device *dsaf_dev; member
H A Dhns_dsaf_xgmac.c209 struct dsaf_device *dsaf_dev in hns_xgmac_init() local
412 struct dsaf_device *dsaf_dev in hns_xgmac_free() local
H A Dhns_dsaf_gmac.c109 struct dsaf_device *dsaf_dev in hns_gmac_free() local
336 struct dsaf_device *dsaf_dev in hns_gmac_init() local
H A Dhns_dsaf_rcb.h103 struct dsaf_device *dsaf_dev; member
H A Dhns_dsaf_rcb.c724 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 Dhns_dsaf_misc.c33 static void dsaf_write_sub(struct dsaf_device *dsaf_dev, u32 reg, u32 val) in dsaf_write_sub() argument
41 static u32 dsaf_read_sub(struct dsaf_device *dsaf_dev, u32 reg) in dsaf_read_sub() argument
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 Dhns_dsaf_mac.c276 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 Dhns_ae_adapt.c73 struct dsaf_device *dsaf_dev; in hns_ae_get_handle() local
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 Dhns_dsaf_main.c41 static int hns_dsaf_get_cfg(struct dsaf_device *dsaf_dev) in hns_dsaf_get_cfg() argument
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 Dhns_dsaf_main.h212 struct dsaf_device *dsaf_dev; member
353 static inline void *hns_dsaf_dev_priv(const struct dsaf_device *dsaf_dev) in hns_dsaf_dev_priv() argument
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 Dhns_dsaf_mac.h305 struct dsaf_device *dsaf_dev; member

Completed in 30 milliseconds