Home
last modified time | relevance | path

Searched refs:hns (Results 1 – 23 of 23) sorted by relevance

/dpdk/drivers/net/hns3/
H A Dhns3_ptp.c21 struct hns3_hw *hw = &hns->hw; in hns3_mbuf_dyn_rx_timestamp_register()
81 struct hns3_hw *hw = &hns->hw; in hns3_timesync_configure()
82 struct hns3_pf *pf = &hns->pf; in hns3_timesync_configure()
119 struct hns3_hw *hw = &hns->hw; in hns3_timesync_enable()
120 struct hns3_pf *pf = &hns->pf; in hns3_timesync_enable()
140 struct hns3_hw *hw = &hns->hw; in hns3_timesync_disable()
141 struct hns3_pf *pf = &hns->pf; in hns3_timesync_disable()
164 struct hns3_hw *hw = &hns->hw; in hns3_timesync_read_rx_timestamp()
165 struct hns3_pf *pf = &hns->pf; in hns3_timesync_read_rx_timestamp()
188 struct hns3_hw *hw = &hns->hw; in hns3_timesync_read_tx_timestamp()
[all …]
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()
677 hns3_schedule_reset(hns); in hns3vf_interrupt_handler()
1570 hns3_rss_uninit(hns); in hns3vf_uninit_vf()
1636 hns3vf_do_stop(hns); in hns3vf_dev_stop()
1664 hns3_reset_abort(hns); in hns3vf_dev_close()
1809 (void)hns3vf_do_stop(hns); in hns3vf_dev_start()
1911 wait_data->hns = hns; in hns3vf_wait_hardware_ready()
1967 hns3vf_do_stop(hns); in hns3vf_stop_service()
2336 hns->is_vf = true; in hns3vf_dev_init()
[all …]
H A Dhns3_ethdev.c125 struct hns3_hw *hw = &hns->hw; in hns3_proc_imp_reset_event()
314 hns3_handle_error(hns); in hns3_interrupt_handler()
317 hns3_schedule_reset(hns); in hns3_interrupt_handler()
2091 hns->pf.mps = mps; in hns3_config_mtu()
4723 hns3_rss_uninit(hns); in hns3_uninit_pf()
5149 (void)hns3_do_stop(hns); in hns3_dev_start()
5215 hns3_do_stop(hns); in hns3_dev_stop()
5243 hns3_reset_abort(hns); in hns3_dev_close()
5639 wait_data->hns = hns; in hns3_wait_hardware_ready()
5827 hns3_do_stop(hns); in hns3_stop_service()
[all …]
H A Dhns3_intr.h157 int (*enable_err_intr)(struct hns3_adapter *hns, bool en);
173 int hns3_enable_hw_error_intr(struct hns3_adapter *hns, bool state);
174 void hns3_handle_msix_error(struct hns3_adapter *hns, uint64_t *levels);
175 void hns3_handle_ras_error(struct hns3_adapter *hns, uint64_t *levels);
177 void hns3_handle_error(struct hns3_adapter *hns);
184 void hns3_schedule_reset(struct hns3_adapter *hns);
185 void hns3_schedule_delayed_reset(struct hns3_adapter *hns);
186 int hns3_reset_req_hw_reset(struct hns3_adapter *hns);
187 int hns3_reset_process(struct hns3_adapter *hns,
189 void hns3_reset_abort(struct hns3_adapter *hns);
H A Dhns3_intr.c2373 hns3_schedule_reset(hns); in hns3_handle_error()
2377 hns3_schedule_reset(hns); in hns3_handle_error()
2453 struct hns3_adapter *hns = data->hns; in hns3_wait_callback() local
2485 hns3_schedule_reset(hns); in hns3_wait_callback()
2508 hw->reset.wait_data->hns = hns; in hns3_reset_req_hw_reset()
2592 if (is_reset_pending(hns)) { in hns3_reset_err_handle()
2783 hns3_schedule_reset(hns); in hns3_reset_fail_handle()
2831 if (is_reset_pending(hns)) { in hns3_reset_process()
2842 ret = hns3_reset_pre(hns); in hns3_reset_process()
2867 ret = hns3_reset_post(hns); in hns3_reset_process()
[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()
144 if (!hns->is_vf) { in hns3_dev_infos_get()
235 struct hns3_hw *hw = &hns->hw; in hns3_parse_devargs()
242 hns->dev_caps_mask = 0; in hns3_parse_devargs()
266 hns->rx_func_hint = rx_func_hint; in hns3_parse_devargs()
270 hns->tx_func_hint = tx_func_hint; in hns3_parse_devargs()
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()
612 if (!hns->is_vf) { in hns3_init_mac_addrs()
[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()
825 if (hns->is_vf) in hns3_xstats_calc_num()
838 struct hns3_hw *hw = &hns->hw; in hns3_queue_stats_get()
1067 if (!hns->is_vf) { in hns3_dev_xstats_get()
1242 if (!hns->is_vf) { in hns3_dev_xstats_get_names()
1485 if (hns->is_vf) in hns3_dev_xstats_reset()
[all …]
H A Dhns3_fdir.h181 int hns3_init_fd_config(struct hns3_adapter *hns);
182 int hns3_fdir_filter_init(struct hns3_adapter *hns);
183 void hns3_fdir_filter_uninit(struct hns3_adapter *hns);
184 int hns3_fdir_filter_program(struct hns3_adapter *hns,
186 int hns3_clear_all_fdir_filter(struct hns3_adapter *hns);
188 int hns3_restore_all_fdir_filter(struct hns3_adapter *hns);
H A Dhns3_ethdev_dump.c61 struct hns3_hw *hw = &hns->hw; in get_dev_mac_info()
62 struct hns3_pf *pf = &hns->pf; in get_dev_mac_info()
195 struct hns3_hw *hw = &hns->hw; in get_device_basic_info()
820 struct hns3_hw *hw = &hns->hw; in is_link_fc_mode()
821 struct hns3_pf *pf = &hns->pf; in is_link_fc_mode()
836 struct hns3_hw *hw = &hns->hw; in get_link_fc_info()
844 if (!is_link_fc_mode(hns)) in get_link_fc_info()
878 struct hns3_hw *hw = &hns->hw; in get_flow_ctrl_info()
895 struct hns3_hw *hw = &hns->hw; in hns3_eth_dev_priv_dump()
903 if (hns->is_vf) in hns3_eth_dev_priv_dump()
[all …]
H A Dhns3_fdir.c278 struct hns3_pf *pf = &hns->pf; in hns3_set_fd_key_config()
279 struct hns3_hw *hw = &hns->hw; in hns3_set_fd_key_config()
305 struct hns3_pf *pf = &hns->pf; in hns3_init_fd_config()
306 struct hns3_hw *hw = &hns->hw; in hns3_init_fd_config()
718 struct hns3_pf *pf = &hns->pf; in hns3_config_key()
719 struct hns3_hw *hw = &hns->hw; in hns3_config_key()
825 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_init()
867 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_uninit()
959 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_program()
962 struct hns3_hw *hw = &hns->hw; in hns3_fdir_filter_program()
[all …]
H A Dhns3_dcb.c186 struct hns3_pf *pf = &hns->pf; in hns3_pg_to_pri_map()
762 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_init()
808 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl2_schd_mode_cfg()
828 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl34_schd_mode_cfg()
900 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pri_dwrr_cfg()
937 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pg_dwrr_cfg()
1056 struct hns3_pf *pf = &hns->pf; in hns3_pri_q_qs_cfg()
1345 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pause_setup_hw()
1397 struct hns3_hw *hw = &hns->hw; in hns3_dcb_parse_num_tc()
1415 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_cfg()
[all …]
H A Dhns3_ethdev.h374 void *hns; member
384 int (*stop_service)(struct hns3_adapter *hns);
385 int (*prepare_reset)(struct hns3_adapter *hns);
387 int (*reinit_dev)(struct hns3_adapter *hns);
388 int (*restore_conf)(struct hns3_adapter *hns);
389 int (*start_service)(struct hns3_adapter *hns);
1050 int hns3_restore_ptp(struct hns3_adapter *hns);
1068 is_reset_pending(struct hns3_adapter *hns) in is_reset_pending() argument
1071 if (hns->is_vf) in is_reset_pending()
1072 ret = hns3vf_is_reset_pending(hns); in is_reset_pending()
[all …]
H A Dhns3_rxtx.c117 hns = rxq->hns; in hns3_rx_queue_release_lock()
138 hns = txq->hns; in hns3_tx_queue_release_lock()
161 hns = rxq->hns; in hns3_fake_rx_queue_release()
162 hw = &hns->hw; in hns3_fake_rx_queue_release()
188 hns = txq->hns; in hns3_fake_tx_queue_release()
189 hw = &hns->hw; in hns3_fake_tx_queue_release()
819 if (hns->is_vf) in hns3_reset_all_tqps()
1414 rxq->hns = hns; in hns3_fake_rx_queue_setup()
1506 txq->hns = hns; in hns3_fake_tx_queue_setup()
1861 rxq->hns = hns; in hns3_rx_queue_setup()
[all …]
H A Dhns3_flow.c146 struct hns3_pf *pf = &hns->pf; in hns3_counter_lookup()
161 struct hns3_pf *pf = &hns->pf; in hns3_counter_new()
162 struct hns3_hw *hw = &hns->hw; in hns3_counter_new()
212 if (hns->is_vf) in hns3_counter_query()
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()
393 struct hns3_pf *pf = &hns->pf; in hns3_handle_actions()
1223 if (hns->is_vf) in hns3_parse_fdir_filter()
1375 struct hns3_hw *hw = &hns->hw; in hns3_parse_rss_filter()
[all …]
H A Dhns3_rss.c424 struct hns3_adapter *hns = dev->data->dev_private; in hns3_dev_rss_hash_conf_get() local
425 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_hash_conf_get()
457 struct hns3_adapter *hns = dev->data->dev_private; in hns3_dev_rss_reta_update() local
458 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_update()
513 struct hns3_adapter *hns = dev->data->dev_private; in hns3_dev_rss_reta_query() local
514 struct hns3_hw *hw = &hns->hw; in hns3_dev_rss_reta_query()
551 if (hns->is_vf) { in hns3_set_rss_tc_mode_entry()
651 hns3_config_rss(struct hns3_adapter *hns) in hns3_config_rss() argument
653 struct hns3_hw *hw = &hns->hw; in hns3_config_rss()
703 hns3_rss_uninit(struct hns3_adapter *hns) in hns3_rss_uninit() argument
[all …]
H A Dhns3_regs.c121 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_get_regs_length() local
129 if (hns->is_vf) in hns3_get_regs_length()
140 if (!hns->is_vf) { in hns3_get_regs_length()
294 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_direct_access_regs() local
306 if (hns->is_vf) in hns3_direct_access_regs()
311 if (hns->is_vf) in hns3_direct_access_regs()
479 struct hns3_adapter *hns = eth_dev->data->dev_private; in hns3_get_regs() local
480 struct hns3_hw *hw = &hns->hw; in hns3_get_regs()
507 if (hns->is_vf) in hns3_get_regs()
H A Dhns3_cmd.c309 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_cmd_poll_reply() local
322 if (is_reset_pending(hns)) { in hns3_cmd_poll_reply()
448 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_mask_capability() local
452 if (hns->dev_caps_mask == 0) in hns3_mask_capability()
457 caps_new = caps_org ^ (caps_org & hns->dev_caps_mask); in hns3_mask_capability()
684 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_cmd_init() local
731 if (hns->is_vf) in hns3_cmd_init()
779 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_cmd_uninit() local
781 if (!hns->is_vf) in hns3_cmd_uninit()
H A Dhns3_common.h44 int hns3_configure_all_mc_mac_addr(struct hns3_adapter *hns, bool del);
45 int hns3_configure_all_mac_addr(struct hns3_adapter *hns, bool del);
H A Dhns3_mbx.c67 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_get_mbx_resp() local
78 mbx_time_limit = (uint32_t)hns->mbx_time_limit_ms * US_PER_MS; in hns3_get_mbx_resp()
86 if (is_reset_pending(hns)) { in hns3_get_mbx_resp()
446 struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); in hns3_dev_handle_mbx_msg() local
457 !rte_thread_is_intr()) && hns->is_vf; in hns3_dev_handle_mbx_msg()
502 handle_out = hns->is_vf && desc->opcode == 0; in hns3_dev_handle_mbx_msg()
H A Dhns3_rxtx_vec.c20 struct hns3_adapter *hns = dev->data->dev_private; in hns3_tx_check_vec_support() local
21 struct hns3_pf *pf = &hns->pf; in hns3_tx_check_vec_support()
237 struct hns3_adapter *hns = dev->data->dev_private; in hns3_rx_check_vec_support() local
238 struct hns3_pf *pf = &hns->pf; in hns3_rx_check_vec_support()
H A Dhns3_rss.h107 int hns3_config_rss(struct hns3_adapter *hns);
108 void hns3_rss_uninit(struct hns3_adapter *hns);
H A Dhns3_rxtx.h352 struct hns3_adapter *hns; member
525 struct hns3_adapter *hns; member
682 int hns3_reset_all_tqps(struct hns3_adapter *hns);
687 int hns3_init_queues(struct hns3_adapter *hns, bool reset_queue);
692 void hns3_dev_release_mbufs(struct hns3_adapter *hns);
H A Dhns3_dcb.h194 int hns3_dcb_configure(struct hns3_adapter *hns);
210 int hns3_update_queue_map_configure(struct hns3_adapter *hns);