Home
last modified time | relevance | path

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

12

/dpdk/drivers/net/hns3/
H A Dhns3_ethdev_vf.c352 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_promiscuous_enable()
367 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_promiscuous_disable()
381 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_allmulticast_enable()
398 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_allmulticast_disable()
414 struct hns3_hw *hw = &hns->hw; in hns3vf_restore_promisc()
460 struct hns3_hw *hw = &hns->hw; in hns3vf_dev_configure()
615 struct hns3_hw *hw = &hns->hw; in hns3vf_check_event_cause()
663 struct hns3_hw *hw = &hns->hw; in hns3vf_interrupt_handler()
1088 struct hns3_hw *hw = &hns->hw; in hns3vf_vlan_filter_configure()
1106 struct hns3_hw *hw = &hns->hw; in hns3vf_vlan_filter_set()
[all …]
H A Dhns3_dcb.c148 hns3_up_to_tc_map(struct hns3_hw *hw) in hns3_up_to_tc_map()
183 hns3_pg_to_pri_map(struct hns3_hw *hw) in hns3_pg_to_pri_map()
1032 hns3_q_to_qs_map(struct hns3_hw *hw) in hns3_q_to_qs_map()
1081 hns3_dcb_map_cfg(struct hns3_hw *hw) in hns3_dcb_map_cfg()
1397 struct hns3_hw *hw = &hns->hw; in hns3_dcb_parse_num_tc()
1416 struct hns3_hw *hw = &hns->hw; in hns3_dcb_info_cfg()
1471 struct hns3_hw *hw = &hns->hw; in hns3_dcb_info_update()
1512 struct hns3_hw *hw = &hns->hw; in hns3_dcb_hw_configure()
1578 struct hns3_hw *hw = &hns->hw; in hns3_dcb_configure()
1617 hns3_dcb_init(struct hns3_hw *hw) in hns3_dcb_init()
[all …]
H A Dhns3_ptp.c21 struct hns3_hw *hw = &hns->hw; in hns3_mbuf_dyn_rx_timestamp_register()
40 hns3_ptp_int_en(struct hns3_hw *hw, bool en) in hns3_ptp_int_en()
60 hns3_ptp_init(struct hns3_hw *hw) in hns3_ptp_init()
81 struct hns3_hw *hw = &hns->hw; in hns3_timesync_configure()
119 struct hns3_hw *hw = &hns->hw; in hns3_timesync_enable()
140 struct hns3_hw *hw = &hns->hw; in hns3_timesync_disable()
164 struct hns3_hw *hw = &hns->hw; in hns3_timesync_read_rx_timestamp()
188 struct hns3_hw *hw = &hns->hw; in hns3_timesync_read_tx_timestamp()
220 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_timesync_read_time()
240 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_timesync_write_time()
[all …]
H A Dhns3_ethdev.c125 struct hns3_hw *hw = &hns->hw; in hns3_proc_imp_reset_event()
145 struct hns3_hw *hw = &hns->hw; in hns3_proc_global_reset_event()
165 struct hns3_hw *hw = &hns->hw; in hns3_check_event_cause()
293 struct hns3_hw *hw = &hns->hw; in hns3_interrupt_handler()
336 struct hns3_hw *hw = &hns->hw; in hns3_set_port_vlan_filter()
385 struct hns3_hw *hw = &hns->hw; in hns3_add_dev_vlan_table()
409 struct hns3_hw *hw = &hns->hw; in hns3_restore_vlan_table()
433 struct hns3_hw *hw = &hns->hw; in hns3_vlan_filter_configure()
470 struct hns3_hw *hw = &hns->hw; in hns3_vlan_filter_set()
485 struct hns3_hw *hw = &hns->hw; in hns3_vlan_tpid_configure()
[all …]
H A Dhns3_cmd.c139 hns3_cmd_clear_regs(struct hns3_hw *hw) in hns3_cmd_clear_regs()
181 hns3_cmd_init_regs(struct hns3_hw *hw) in hns3_cmd_init_regs()
188 hns3_cmd_csq_clean(struct hns3_hw *hw) in hns3_cmd_csq_clean()
215 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()
443 hns3_mask_capability(struct hns3_hw *hw, in hns3_mask_capability()
471 hns3_parse_capability(struct hns3_hw *hw, in hns3_parse_capability()
550 hns3_cmd_init_queue(struct hns3_hw *hw) in hns3_cmd_init_queue()
682 hns3_cmd_init(struct hns3_hw *hw) in hns3_cmd_init()
770 hns3_cmd_destroy_queue(struct hns3_hw *hw) in hns3_cmd_destroy_queue()
[all …]
H A Dhns3_mbx.c61 hns3_get_mbx_resp(struct hns3_hw *hw, uint16_t code, uint16_t subcode, in hns3_get_mbx_resp()
211 hns3_cmd_crq_empty(struct hns3_hw *hw) in hns3_cmd_crq_empty()
219 hns3vf_handle_link_change_event(struct hns3_hw *hw, in hns3vf_handle_link_change_event()
237 hns3_handle_asserting_reset(struct hns3_hw *hw, in hns3_handle_asserting_reset()
265 hns3_update_resp_position(struct hns3_hw *hw, uint32_t resp_msg) in hns3_update_resp_position()
330 hns3_link_fail_parse(struct hns3_hw *hw, uint8_t link_fail_code) in hns3_link_fail_parse()
351 hns3pf_handle_link_change_event(struct hns3_hw *hw, in hns3pf_handle_link_change_event()
364 hns3_update_port_base_vlan_info(struct hns3_hw *hw, in hns3_update_port_base_vlan_info()
388 hns3_handle_promisc_info(struct hns3_hw *hw, uint16_t promisc_en) in hns3_handle_promisc_info()
403 hns3_handle_mbx_msg_out_intr(struct hns3_hw *hw) in hns3_handle_mbx_msg_out_intr()
[all …]
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_port_shaper_update(struct hns3_hw *hw, uint32_t speed);
212 uint8_t hns3_txq_mapped_tc_get(struct hns3_hw *hw, uint16_t txq_no);
H A Dhns3_rss.h103 void hns3_rss_set_default_args(struct hns3_hw *hw);
104 int hns3_set_rss_indir_table(struct hns3_hw *hw, uint16_t *indir,
106 int hns3_rss_reset_indir_table(struct hns3_hw *hw);
109 int hns3_set_rss_tuple_by_rss_hf(struct hns3_hw *hw, uint64_t rss_hf);
110 int hns3_rss_set_algo_key(struct hns3_hw *hw, const uint8_t *key);
H A Dhns3_ethdev.h371 typedef bool (*check_completion_func)(struct hns3_hw *hw);
429 int (*add_mc_mac_addr)(struct hns3_hw *hw,
431 int (*del_mc_mac_addr)(struct hns3_hw *hw,
433 int (*add_uc_mac_addr)(struct hns3_hw *hw,
435 int (*del_uc_mac_addr)(struct hns3_hw *hw,
487 struct hns3_hw { struct
857 struct hns3_hw hw;
909 static inline struct hns3_pf *HNS3_DEV_HW_TO_PF(struct hns3_hw *hw) in HNS3_DEV_HW_TO_PF()
1040 uint32_t hns3_get_speed_capa(struct hns3_hw *hw);
1042 int hns3_buffer_alloc(struct hns3_hw *hw);
[all …]
H A Dhns3_stats.c413 struct hns3_hw *hw = &hns->hw; in hns3_query_update_mac_stats()
624 struct hns3_hw *hw = &hns->hw; in hns3_stats_get()
694 struct hns3_hw *hw = &hns->hw; in hns3_stats_reset()
772 struct hns3_hw *hw = &hns->hw; in hns3_mac_stats_reset()
792 struct hns3_hw *hw = &hns->hw; in hns3_get_imissed_stats_num()
838 struct hns3_hw *hw = &hns->hw; in hns3_queue_stats_get()
1007 struct hns3_hw *hw = &hns->hw; in hns3_imissed_stats_get()
1045 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get()
1324 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get_by_id()
1404 struct hns3_hw *hw = &hns->hw; in hns3_dev_xstats_get_names_by_id()
[all …]
H A Dhns3_ethdev_dump.c61 struct hns3_hw *hw = &hns->hw; in get_dev_mac_info()
81 get_dev_feature_capability(FILE *file, struct hns3_hw *hw) in get_dev_feature_capability()
195 struct hns3_hw *hw = &hns->hw; in get_device_basic_info()
442 get_vlan_filter_cfg(FILE *file, struct hns3_hw *hw) in get_vlan_filter_cfg()
487 get_vlan_rx_offload_cfg(FILE *file, struct hns3_hw *hw) in get_vlan_rx_offload_cfg()
609 get_port_pvid_info(FILE *file, struct hns3_hw *hw) in get_port_pvid_info()
616 get_vlan_config_info(FILE *file, struct hns3_hw *hw) in get_vlan_config_info()
820 struct hns3_hw *hw = &hns->hw; in is_link_fc_mode()
836 struct hns3_hw *hw = &hns->hw; in get_link_fc_info()
878 struct hns3_hw *hw = &hns->hw; in get_flow_ctrl_info()
[all …]
H A Dhns3_common.c20 struct hns3_hw *hw = &hns->hw; in hns3_fw_version_get()
47 struct hns3_hw *hw = &hns->hw; in hns3_dev_infos_get()
235 struct hns3_hw *hw = &hns->hw; in hns3_parse_devargs()
326 hns3_set_mc_addr_chk_param(struct hns3_hw *hw, in hns3_set_mc_addr_chk_param()
398 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_set_mc_mac_addr_list()
446 struct hns3_hw *hw = &hns->hw; in hns3_configure_all_mc_mac_addr()
473 struct hns3_hw *hw = &hns->hw; in hns3_configure_all_mac_addr()
645 hns3_init_ring_with_vector(struct hns3_hw *hw) in hns3_init_ring_with_vector()
772 struct hns3_hw *hw = &hns->hw; in hns3_unmap_rx_interrupt()
800 hns3_restore_rx_interrupt(struct hns3_hw *hw) in hns3_restore_rx_interrupt()
[all …]
H A Dhns3_rss.c192 hns3_rss_set_algo_key(struct hns3_hw *hw, const uint8_t *key) in hns3_rss_set_algo_key()
292 hns3_rss_reset_indir_table(struct hns3_hw *hw) in hns3_rss_reset_indir_table()
313 hns3_set_rss_tuple_by_rss_hf(struct hns3_hw *hw, uint64_t rss_hf) in hns3_set_rss_tuple_by_rss_hf()
425 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_hash_conf_get()
458 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_update()
514 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_query()
576 hns3_set_rss_tc_mode(struct hns3_hw *hw) in hns3_set_rss_tc_mode()
612 hns3_rss_tuple_uninit(struct hns3_hw *hw) in hns3_rss_tuple_uninit()
630 hns3_rss_set_default_args(struct hns3_hw *hw) in hns3_rss_set_default_args()
653 struct hns3_hw *hw = &hns->hw; in hns3_config_rss()
[all …]
H A Dhns3_regs.c18 static int hns3_get_dfx_reg_line(struct hns3_hw *hw, uint32_t *length);
98 hns3_get_regs_num(struct hns3_hw *hw, uint32_t *regs_num_32_bit, in hns3_get_regs_num()
119 hns3_get_regs_length(struct hns3_hw *hw, uint32_t *length) in hns3_get_regs_length()
166 hns3_get_32_bit_regs(struct hns3_hw *hw, uint32_t regs_num, void *data) in hns3_get_32_bit_regs()
223 hns3_get_64_bit_regs(struct hns3_hw *hw, uint32_t regs_num, void *data) in hns3_get_64_bit_regs()
292 hns3_direct_access_regs(struct hns3_hw *hw, uint32_t *data) in hns3_direct_access_regs()
338 hns3_get_dfx_reg_bd_num(struct hns3_hw *hw, uint32_t *bd_num_list, in hns3_get_dfx_reg_bd_num()
373 hns3_dfx_reg_cmd_send(struct hns3_hw *hw, struct hns3_cmd_desc *desc, in hns3_dfx_reg_cmd_send()
415 hns3_get_dfx_reg_line(struct hns3_hw *hw, uint32_t *lines) in hns3_get_dfx_reg_line()
437 hns3_get_dfx_regs(struct hns3_hw *hw, void **data) in hns3_get_dfx_regs()
[all …]
H A Dhns3_rxtx.h686 void hns3_enable_all_queues(struct hns3_hw *hw, bool en);
688 void hns3_start_tqps(struct hns3_hw *hw);
689 void hns3_stop_tqps(struct hns3_hw *hw);
734 void hns3_set_queue_intr_gl(struct hns3_hw *hw, uint16_t queue_id,
736 void hns3_set_queue_intr_rl(struct hns3_hw *hw, uint16_t queue_id,
738 void hns3_set_queue_intr_ql(struct hns3_hw *hw, uint16_t queue_id,
742 int hns3_config_gro(struct hns3_hw *hw, bool en);
743 int hns3_restore_gro_conf(struct hns3_hw *hw);
744 void hns3_update_all_queues_pvid_proc_en(struct hns3_hw *hw);
758 void hns3_restore_tqp_enable_state(struct hns3_hw *hw);
[all …]
H A Dhns3_common.h57 int hns3_init_ring_with_vector(struct hns3_hw *hw);
60 int hns3_restore_rx_interrupt(struct hns3_hw *hw);
62 int hns3_get_pci_revision_id(struct hns3_hw *hw, uint8_t *revision_id);
H A Dhns3_tm.c31 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_tm_conf_init()
57 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_tm_conf_uninit()
121 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_tm_capabilities_get()
172 struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); in hns3_tm_shaper_profile_param_check()
902 hns3_tm_config_port_rate(struct hns3_hw *hw, in hns3_tm_config_port_rate()
930 hns3_tm_config_tc_rate(struct hns3_hw *hw, uint8_t tc_no, in hns3_tm_config_tc_rate()
1004 hns3_tm_hierarchy_do_commit(struct hns3_hw *hw, in hns3_tm_hierarchy_do_commit()
1100 hns3_tm_node_shaper_do_update(struct hns3_hw *hw, in hns3_tm_node_shaper_do_update()
1245 hns3_tm_dev_start_proc(struct hns3_hw *hw) in hns3_tm_dev_start_proc()
1268 hns3_tm_dev_stop_proc(struct hns3_hw *hw) in hns3_tm_dev_stop_proc()
[all …]
H A Dhns3_tm.h111 void hns3_tm_dev_start_proc(struct hns3_hw *hw);
112 void hns3_tm_dev_stop_proc(struct hns3_hw *hw);
113 int hns3_tm_conf_update(struct hns3_hw *hw);
H A Dhns3_rxtx.c155 struct hns3_hw *hw; in hns3_fake_rx_queue_release()
182 struct hns3_hw *hw; in hns3_fake_tx_queue_release()
209 struct hns3_hw *hw = &hns->hw; in hns3_free_rx_queues()
234 struct hns3_hw *hw = &hns->hw; in hns3_free_tx_queues()
805 struct hns3_hw *hw = &hns->hw; in hns3_reset_all_tqps()
1077 struct hns3_hw *hw = &hns->hw; in hns3_init_rxq()
1106 struct hns3_hw *hw = &hns->hw; in hns3_init_fake_rxq()
1139 struct hns3_hw *hw = &hns->hw; in hns3_init_tx_ring_tc()
1164 struct hns3_hw *hw = &hns->hw; in hns3_init_rx_queues()
1211 struct hns3_hw *hw = &hns->hw; in hns3_init_tx_queues()
[all …]
H A Dhns3_intr.c1492 struct hns3_hw *hw = &hns->hw; in hns3_config_ncsi_hw_err_int()
1512 struct hns3_hw *hw = &hns->hw; in enable_igu_egu_err_intr()
1551 struct hns3_hw *hw = &hns->hw; in config_ppp_err_intr()
1613 struct hns3_hw *hw = &hns->hw; in enable_ssu_err_intr()
1691 struct hns3_hw *hw = &hns->hw; in config_ppu_err_intrs()
1741 struct hns3_hw *hw = &hns->hw; in enable_ppu_err_intr()
1768 struct hns3_hw *hw = &hns->hw; in enable_tm_err_intr()
1803 struct hns3_hw *hw = &hns->hw; in enable_common_err_intr()
1844 struct hns3_hw *hw = &hns->hw; in enable_mac_err_intr()
1920 struct hns3_hw *hw = &hns->hw; in hns3_find_highest_level()
[all …]
H A Dhns3_stats.h164 int hns3_stats_init(struct hns3_hw *hw);
165 void hns3_stats_uninit(struct hns3_hw *hw);
166 int hns3_query_mac_stats_reg_num(struct hns3_hw *hw);
167 void hns3_update_hw_stats(struct hns3_hw *hw);
H A Dhns3_mbx.h166 struct hns3_hw;
167 void hns3_dev_handle_mbx_msg(struct hns3_hw *hw);
168 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()
427 static int hns3_fd_ad_config(struct hns3_hw *hw, int loc, in hns3_fd_ad_config()
554 static bool hns3_fd_convert_tuple(struct hns3_hw *hw, in hns3_fd_convert_tuple()
719 struct hns3_hw *hw = &hns->hw; in hns3_config_key()
910 static int hns3_insert_fdir_filter(struct hns3_hw *hw, in hns3_insert_fdir_filter()
932 static int hns3_remove_fdir_filter(struct hns3_hw *hw, in hns3_remove_fdir_filter()
962 struct hns3_hw *hw = &hns->hw; in hns3_fdir_filter_program()
1027 struct hns3_hw *hw = &hns->hw; in hns3_clear_all_fdir_filter()
[all …]
H A Dhns3_flow.c162 struct hns3_hw *hw = &hns->hw; in hns3_counter_new()
240 struct hns3_hw *hw = &hns->hw; in hns3_counter_release()
293 struct hns3_hw *hw = &hns->hw; in hns3_handle_action_queue()
319 struct hns3_hw *hw = &hns->hw; in hns3_handle_action_queue_region()
1375 struct hns3_hw *hw = &hns->hw; in hns3_parse_rss_filter()
1525 struct hns3_hw *hw = &hns->hw; in hns3_update_indir_table()
1553 struct hns3_hw *hw = &hns->hw; in hns3_config_rss_filter()
1649 struct hns3_hw *hw = &hns->hw; in hns3_clear_rss_filter()
1681 struct hns3_hw *hw = &hns->hw; in hns3_restore_rss_filter()
1695 struct hns3_hw *hw = &hns->hw; in hns3_flow_parse_rss()
[all …]
H A Dhns3_intr.h176 void hns3_config_mac_tnl_int(struct hns3_hw *hw, bool en);
181 void hns3_notify_reset_ready(struct hns3_hw *hw, bool enable);
182 int hns3_reset_init(struct hns3_hw *hw);

12