Home
last modified time | relevance | path

Searched refs:hns3_hw (Results 1 – 22 of 22) sorted by relevance

/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_dcb.c151 hns3_up_to_tc_map(struct hns3_hw *hw) in hns3_up_to_tc_map()
186 hns3_pg_to_pri_map(struct hns3_hw *hw) in hns3_pg_to_pri_map()
988 hns3_q_to_qs_map(struct hns3_hw *hw) in hns3_q_to_qs_map()
1353 struct hns3_hw *hw = &hns->hw; in hns3_dcb_cfg_validate()
1392 struct hns3_hw *hw = &hns->hw; in hns3_dcb_info_cfg()
1447 struct hns3_hw *hw = &hns->hw; in hns3_dcb_info_update()
1488 struct hns3_hw *hw = &hns->hw; in hns3_dcb_hw_configure()
1559 struct hns3_hw *hw = &hns->hw; in hns3_dcb_configure()
1601 hns3_dcb_init(struct hns3_hw *hw) in hns3_dcb_init()
1665 struct hns3_hw *hw = &hns->hw; in hns3_update_queue_map_configure()
[all …]
H A Dhns3_ethdev_vf.c349 struct hns3_hw *hw = &hns->hw; in hns3vf_configure_mac_addr()
537 struct hns3_hw *hw = &hns->hw; in hns3vf_configure_all_mc_mac_addr()
611 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_promiscuous_enable()
626 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_promiscuous_disable()
640 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_allmulticast_enable()
657 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_allmulticast_disable()
673 struct hns3_hw *hw = &hns->hw; in hns3vf_restore_promisc()
775 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_configure()
947 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_infos_get()
1055 struct hns3_hw *hw = &hns->hw; in hns3vf_check_event_cause()
[all …]
H A Dhns3_cmd.c105 hns3_alloc_cmd_queue(struct hns3_hw *hw, int ring_type) in hns3_alloc_cmd_queue()
145 hns3_cmd_clear_regs(struct hns3_hw *hw) in hns3_cmd_clear_regs()
187 hns3_cmd_init_regs(struct hns3_hw *hw) in hns3_cmd_init_regs()
194 hns3_cmd_csq_clean(struct hns3_hw *hw) in hns3_cmd_csq_clean()
218 hns3_cmd_csq_done(struct hns3_hw *hw) in hns3_cmd_csq_done()
281 hns3_cmd_get_hardware_reply(struct hns3_hw *hw, in hns3_cmd_get_hardware_reply()
307 static int hns3_cmd_poll_reply(struct hns3_hw *hw) in hns3_cmd_poll_reply()
457 hns3_cmd_init_queue(struct hns3_hw *hw) in hns3_cmd_init_queue()
500 hns3_cmd_init(struct hns3_hw *hw) in hns3_cmd_init()
566 hns3_cmd_destroy_queue(struct hns3_hw *hw) in hns3_cmd_destroy_queue()
[all …]
H A Dhns3_ethdev.c120 struct hns3_hw *hw = &hns->hw; in hns3_check_event_cause()
233 struct hns3_hw *hw = &hns->hw; in hns3_interrupt_handler()
266 struct hns3_hw *hw = &hns->hw; in hns3_set_port_vlan_filter()
315 struct hns3_hw *hw = &hns->hw; in hns3_add_dev_vlan_table()
339 struct hns3_hw *hw = &hns->hw; in hns3_restore_vlan_table()
363 struct hns3_hw *hw = &hns->hw; in hns3_vlan_filter_configure()
400 struct hns3_hw *hw = &hns->hw; in hns3_vlan_filter_set()
415 struct hns3_hw *hw = &hns->hw; in hns3_vlan_tpid_configure()
468 struct hns3_hw *hw = &hns->hw; in hns3_vlan_tpid_set()
482 struct hns3_hw *hw = &hns->hw; in hns3_set_vlan_rx_offload_cfg()
[all …]
H A Dhns3_rss.h105 void hns3_set_default_rss_args(struct hns3_hw *hw);
106 int hns3_set_rss_indir_table(struct hns3_hw *hw, uint16_t *indir,
108 int hns3_rss_reset_indir_table(struct hns3_hw *hw);
111 int hns3_set_rss_tuple_by_rss_hf(struct hns3_hw *hw,
114 int hns3_set_rss_algo_key(struct hns3_hw *hw, const uint8_t *key);
H A Dhns3_dcb.h192 int hns3_pause_addr_cfg(struct hns3_hw *hw, const uint8_t *mac_addr);
196 int hns3_dcb_init(struct hns3_hw *hw);
198 int hns3_dcb_init_hw(struct hns3_hw *hw);
200 int hns3_dcb_info_init(struct hns3_hw *hw);
207 int hns3_queue_to_tc_mapping(struct hns3_hw *hw, uint16_t nb_rx_q,
211 int hns3_dcb_port_shaper_cfg(struct hns3_hw *hw);
H A Dhns3_mbx.c66 hns3_get_mbx_resp(struct hns3_hw *hw, uint16_t code0, uint16_t code1, in hns3_get_mbx_resp()
134 hns3_send_mbx_msg(struct hns3_hw *hw, uint16_t code, uint16_t subcode, in hns3_send_mbx_msg()
196 hns3_cmd_crq_empty(struct hns3_hw *hw) in hns3_cmd_crq_empty()
204 hns3_mbx_handler(struct hns3_hw *hw) in hns3_mbx_handler()
258 hns3_update_resp_position(struct hns3_hw *hw, uint32_t resp_msg) in hns3_update_resp_position()
283 hns3_link_fail_parse(struct hns3_hw *hw, uint8_t link_fail_code) in hns3_link_fail_parse()
304 hns3_handle_link_change_event(struct hns3_hw *hw, in hns3_handle_link_change_event()
317 hns3_update_port_base_vlan_info(struct hns3_hw *hw, in hns3_update_port_base_vlan_info()
341 hns3_handle_promisc_info(struct hns3_hw *hw, uint16_t promisc_en) in hns3_handle_promisc_info()
356 hns3_dev_handle_mbx_msg(struct hns3_hw *hw) in hns3_dev_handle_mbx_msg()
H A Dhns3_rss.c248 hns3_set_rss_input_tuple(struct hns3_hw *hw) in hns3_set_rss_input_tuple()
321 hns3_rss_reset_indir_table(struct hns3_hw *hw) in hns3_rss_reset_indir_table()
407 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_hash_update()
473 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_hash_conf_get()
506 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_update()
562 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_query()
589 hns3_set_rss_tc_mode(struct hns3_hw *hw) in hns3_set_rss_tc_mode()
634 hns3_rss_tuple_uninit(struct hns3_hw *hw) in hns3_rss_tuple_uninit()
657 hns3_set_default_rss_args(struct hns3_hw *hw) in hns3_set_default_rss_args()
680 struct hns3_hw *hw = &hns->hw; in hns3_config_rss()
[all …]
H A Dhns3_rxtx.h608 void hns3_dev_all_rx_queue_intr_enable(struct hns3_hw *hw, bool en);
611 void hns3_enable_all_queues(struct hns3_hw *hw, bool en);
613 void hns3_start_tqps(struct hns3_hw *hw);
614 void hns3_stop_tqps(struct hns3_hw *hw);
656 void hns3_set_queue_intr_gl(struct hns3_hw *hw, uint16_t queue_id,
658 void hns3_set_queue_intr_rl(struct hns3_hw *hw, uint16_t queue_id,
660 void hns3_set_queue_intr_ql(struct hns3_hw *hw, uint16_t queue_id,
664 int hns3_config_gro(struct hns3_hw *hw, bool en);
665 int hns3_restore_gro_conf(struct hns3_hw *hw);
666 void hns3_update_all_queues_pvid_proc_en(struct hns3_hw *hw);
[all …]
H A Dhns3_stats.c398 struct hns3_hw *hw = &hns->hw; in hns3_mac_query_reg_num()
431 struct hns3_hw *hw = &hns->hw; in hns3_query_update_mac_stats()
445 hns3_update_tqp_stats(struct hns3_hw *hw) in hns3_update_tqp_stats()
501 struct hns3_hw *hw = &hns->hw; in hns3_stats_get()
551 struct hns3_hw *hw = &hns->hw; in hns3_stats_reset()
619 struct hns3_hw *hw = &hns->hw; in hns3_mac_stats_reset()
657 struct hns3_hw *hw = &hns->hw; in hns3_get_queue_stats()
720 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get()
930 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get_by_id()
1004 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get_names_by_id()
[all …]
H A Dhns3_rxtx.c143 struct hns3_hw *hw; in hns3_fake_rx_queue_release()
170 struct hns3_hw *hw; in hns3_fake_tx_queue_release()
197 struct hns3_hw *hw = &hns->hw; in hns3_free_rx_queues()
222 struct hns3_hw *hw = &hns->hw; in hns3_free_tx_queues()
699 struct hns3_hw *hw = &hns->hw; in hns3_reset_tqp()
710 struct hns3_hw *hw = &hns->hw; in hns3_reset_all_tqps()
957 struct hns3_hw *hw = &hns->hw; in hns3_init_rxq()
986 struct hns3_hw *hw = &hns->hw; in hns3_init_fake_rxq()
1019 struct hns3_hw *hw = &hns->hw; in hns3_init_tx_ring_tc()
1044 struct hns3_hw *hw = &hns->hw; in hns3_init_rx_queues()
[all …]
H A Dhns3_regs.c81 hns3_get_regs_num(struct hns3_hw *hw, uint32_t *regs_num_32_bit, in hns3_get_regs_num()
102 hns3_get_regs_length(struct hns3_hw *hw, uint32_t *length) in hns3_get_regs_length()
138 hns3_get_32_bit_regs(struct hns3_hw *hw, uint32_t regs_num, void *data) in hns3_get_32_bit_regs()
195 hns3_get_64_bit_regs(struct hns3_hw *hw, uint32_t regs_num, void *data) in hns3_get_64_bit_regs()
252 hns3_direct_access_regs(struct hns3_hw *hw, uint32_t *data) in hns3_direct_access_regs()
309 struct hns3_hw *hw = &hns->hw; in hns3_get_regs()
H A Dhns3_mbx.h164 struct hns3_hw;
165 void hns3_dev_handle_mbx_msg(struct hns3_hw *hw);
166 int hns3_send_mbx_msg(struct hns3_hw *hw, uint16_t code, uint16_t subcode,
H A Dhns3_fdir.c246 static int hns3_get_fd_allocation(struct hns3_hw *hw, in hns3_get_fd_allocation()
279 struct hns3_hw *hw = &hns->hw; in hns3_set_fd_key_config()
306 struct hns3_hw *hw = &hns->hw; in hns3_init_fd_config()
414 static int hns3_fd_ad_config(struct hns3_hw *hw, int loc, in hns3_fd_ad_config()
541 static bool hns3_fd_convert_tuple(struct hns3_hw *hw, in hns3_fd_convert_tuple()
706 struct hns3_hw *hw = &hns->hw; in hns3_config_key()
902 static int hns3_insert_fdir_filter(struct hns3_hw *hw, in hns3_insert_fdir_filter()
928 static int hns3_remove_fdir_filter(struct hns3_hw *hw, in hns3_remove_fdir_filter()
961 struct hns3_hw *hw = &hns->hw; in hns3_fdir_filter_program()
1028 struct hns3_hw *hw = &hns->hw; in hns3_clear_all_fdir_filter()
[all …]
H A Dhns3_intr.c1075 struct hns3_hw *hw = &hns->hw; in hns3_config_ncsi_hw_err_int()
1095 struct hns3_hw *hw = &hns->hw; in enable_igu_egu_err_intr()
1134 struct hns3_hw *hw = &hns->hw; in config_ppp_err_intr()
1196 struct hns3_hw *hw = &hns->hw; in enable_ssu_err_intr()
1254 struct hns3_hw *hw = &hns->hw; in config_ppu_err_intrs()
1304 struct hns3_hw *hw = &hns->hw; in enable_ppu_err_intr()
1331 struct hns3_hw *hw = &hns->hw; in enable_tm_err_intr()
1370 struct hns3_hw *hw = &hns->hw; in enable_common_err_intr()
1411 struct hns3_hw *hw = &hns->hw; in enable_mac_err_intr()
1487 struct hns3_hw *hw = &hns->hw; in hns3_find_highest_level()
[all …]
H A Dhns3_cmd.h16 struct hns3_hw;
30 struct hns3_hw *hw;
879 int hns3_cmd_send(struct hns3_hw *hw, struct hns3_cmd_desc *desc, int num);
880 int hns3_cmd_init_queue(struct hns3_hw *hw);
881 int hns3_cmd_init(struct hns3_hw *hw);
882 void hns3_cmd_destroy_queue(struct hns3_hw *hw);
883 void hns3_cmd_uninit(struct hns3_hw *hw);
H A Dhns3_intr.h105 void hns3_notify_reset_ready(struct hns3_hw *hw, bool enable);
106 int hns3_reset_init(struct hns3_hw *hw);
H A Dhns3_ethdev.h321 typedef bool (*check_completion_func)(struct hns3_hw *hw);
420 struct hns3_hw { struct
737 struct hns3_hw hw;
931 int hns3_buffer_alloc(struct hns3_hw *hw);
937 void hns3_update_link_status(struct hns3_hw *hw);
951 hns3_txvlan_cap_get(struct hns3_hw *hw) in hns3_txvlan_cap_get()
H A Dhns3_stats.h152 int hns3_tqp_stats_init(struct hns3_hw *hw);
153 void hns3_tqp_stats_uninit(struct hns3_hw *hw);
H A Dhns3_flow.c226 struct hns3_hw *hw = &hns->hw; in hns3_counter_release()
265 struct hns3_hw *hw = &hns->hw; in hns3_handle_action_queue()
291 struct hns3_hw *hw = &hns->hw; in hns3_handle_action_queue_region()
1345 struct hns3_hw *hw = &hns->hw; in hns3_parse_rss_filter()
1515 struct hns3_hw *hw = &hns->hw; in hns3_update_indir_table()
1544 struct hns3_hw *hw = &hns->hw; in hns3_config_rss_filter()
1641 struct hns3_hw *hw = &hns->hw; in hns3_clear_rss_filter()
1674 struct hns3_hw *hw = &hns->hw; in hns3_restore_rss_filter()
1688 struct hns3_hw *hw = &hns->hw; in hns3_flow_parse_rss()
1763 struct hns3_hw *hw = &hns->hw; in hns3_flow_create()
[all …]
H A Dhns3_mp.c124 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in mp_req_on_rxtx()
H A Dhns3_fdir.h222 int hns3_get_count(struct hns3_hw *hw, uint32_t id, uint64_t *value);