Home
last modified time | relevance | path

Searched refs:hclge_dev (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.h144 int hclge_tm_schd_init(struct hclge_dev *hdev);
145 int hclge_tm_vport_map_update(struct hclge_dev *hdev);
146 int hclge_pause_setup_hw(struct hclge_dev *hdev, bool init);
147 int hclge_tm_schd_setup_hw(struct hclge_dev *hdev);
148 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
149 void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc);
150 void hclge_tm_pfc_info_update(struct hclge_dev *hdev);
151 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev);
152 int hclge_tm_init_hw(struct hclge_dev *hdev, bool init);
153 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx);
[all …]
Dhclge_tm.c115 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get()
151 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get()
156 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get()
161 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg()
173 static int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg()
187 static int hclge_pause_param_cfg(struct hclge_dev *hdev, const u8 *addr, in hclge_pause_param_cfg()
205 int hclge_pause_addr_cfg(struct hclge_dev *hdev, const u8 *mac_addr) in hclge_pause_addr_cfg()
227 static int hclge_fill_pri_array(struct hclge_dev *hdev, u8 *pri, u8 pri_id) in hclge_fill_pri_array()
250 static int hclge_up_to_tc_map(struct hclge_dev *hdev) in hclge_up_to_tc_map()
268 static int hclge_tm_pg_to_pri_map_cfg(struct hclge_dev *hdev, in hclge_tm_pg_to_pri_map_cfg()
[all …]
Dhclge_dcb.c10 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info()
43 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets()
68 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets()
75 static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, in hclge_dcb_common_validate()
106 static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_validate()
157 static int hclge_map_update(struct hclge_dev *hdev) in hclge_map_update()
178 static int hclge_client_setup_tc(struct hclge_dev *hdev) in hclge_client_setup_tc()
201 static int hclge_notify_down_uinit(struct hclge_dev *hdev) in hclge_notify_down_uinit()
212 static int hclge_notify_init_up(struct hclge_dev *hdev) in hclge_notify_init_up()
227 struct hclge_dev *hdev = vport->back; in hclge_ieee_setets()
[all …]
Dhclge_main.c58 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps);
59 static int hclge_init_vlan_config(struct hclge_dev *hdev);
60 static void hclge_sync_vlan_filter(struct hclge_dev *hdev);
63 static int hclge_set_umv_space(struct hclge_dev *hdev, u16 space_size,
65 static void hclge_rfs_filter_expire(struct hclge_dev *hdev);
69 static int hclge_set_default_loopback(struct hclge_dev *hdev);
414 static int hclge_mac_update_stats_defective(struct hclge_dev *hdev) in hclge_mac_update_stats_defective()
453 static int hclge_mac_update_stats_complete(struct hclge_dev *hdev, u32 desc_num) in hclge_mac_update_stats_complete()
497 static int hclge_mac_query_reg_num(struct hclge_dev *hdev, u32 *desc_num) in hclge_mac_query_reg_num()
518 static int hclge_mac_update_stats(struct hclge_dev *hdev) in hclge_mac_update_stats()
[all …]
Dhclge_err.h120 int (*config_err_int)(struct hclge_dev *hdev, bool en);
129 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en);
130 int hclge_config_nic_hw_error(struct hclge_dev *hdev, bool state);
131 int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en);
134 int hclge_handle_hw_msix_error(struct hclge_dev *hdev,
Dhclge_mdio.h7 int hclge_mac_mdio_config(struct hclge_dev *hdev);
10 void hclge_mac_start_phy(struct hclge_dev *hdev);
11 void hclge_mac_stop_phy(struct hclge_dev *hdev);
Dhclge_mdio.c46 struct hclge_dev *hdev = bus->priv; in hclge_mdio_write()
84 struct hclge_dev *hdev = bus->priv; in hclge_mdio_read()
123 int hclge_mac_mdio_config(struct hclge_dev *hdev) in hclge_mac_mdio_config()
179 struct hclge_dev *hdev = vport->back; in hclge_mac_adjust_link()
202 struct hclge_dev *hdev = vport->back; in hclge_mac_connect_phy()
242 struct hclge_dev *hdev = vport->back; in hclge_mac_disconnect_phy()
251 void hclge_mac_start_phy(struct hclge_dev *hdev) in hclge_mac_start_phy()
261 void hclge_mac_stop_phy(struct hclge_dev *hdev) in hclge_mac_stop_phy()
Dhclge_main.h713 struct hclge_dev { struct
913 struct hclge_dev *back; /* Back reference to associated dev */
950 static inline bool hclge_is_reset_pending(struct hclge_dev *hdev) in hclge_is_reset_pending()
956 int hclge_cfg_mac_speed_dup(struct hclge_dev *hdev, int speed, u8 duplex);
961 int hclge_buffer_alloc(struct hclge_dev *hdev);
962 int hclge_rss_init_hw(struct hclge_dev *hdev);
963 void hclge_rss_indir_init_cfg(struct hclge_dev *hdev);
965 void hclge_mbx_handler(struct hclge_dev *hdev);
968 int hclge_cfg_flowctrl(struct hclge_dev *hdev);
969 int hclge_func_reset_cmd(struct hclge_dev *hdev, int func_id);
[all …]
Dhclge_mbx.c21 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
63 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg()
88 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf()
220 struct hclge_dev *hdev = vport->back; in hclge_set_vf_uc_mac_addr()
264 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mc_mac_addr()
390 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_info()
407 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_depth()
419 struct hclge_dev *hdev = vport->back; in hclge_get_vf_media_type()
431 struct hclge_dev *hdev = vport->back; in hclge_get_link_info()
454 struct hclge_dev *hdev = vport->back; in hclge_get_link_mode()
[all …]
Dhclge_cmd.c61 static int hclge_alloc_cmd_queue(struct hclge_dev *hdev, int ring_type) in hclge_alloc_cmd_queue()
104 struct hclge_dev *hdev = ring->dev; in hclge_cmd_config_regs()
139 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_csq_clean()
260 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_send()
353 int hclge_cmd_queue_init(struct hclge_dev *hdev) in hclge_cmd_queue_init()
389 static int hclge_firmware_compat_config(struct hclge_dev *hdev) in hclge_firmware_compat_config()
406 int hclge_cmd_init(struct hclge_dev *hdev) in hclge_cmd_init()
496 void hclge_cmd_uninit(struct hclge_dev *hdev) in hclge_cmd_uninit()
Dhclge_err.c658 static int hclge_cmd_query_error(struct hclge_dev *hdev, in hclge_cmd_query_error()
679 static int hclge_clear_mac_tnl_int(struct hclge_dev *hdev) in hclge_clear_mac_tnl_int()
689 static int hclge_config_common_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_common_hw_err_int()
726 static int hclge_config_ncsi_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ncsi_hw_err_int()
748 static int hclge_config_igu_egu_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_igu_egu_hw_err_int()
786 static int hclge_config_ppp_error_interrupt(struct hclge_dev *hdev, u32 cmd, in hclge_config_ppp_error_interrupt()
835 static int hclge_config_ppp_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ppp_hw_err_int()
850 static int hclge_config_tm_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_tm_hw_err_int()
886 static int hclge_config_mac_err_int(struct hclge_dev *hdev, bool en) in hclge_config_mac_err_int()
907 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en) in hclge_config_mac_tnl_int()
[all …]
Dhclge_dcb.h10 void hclge_dcb_ops_set(struct hclge_dev *hdev);
12 static inline void hclge_dcb_ops_set(struct hclge_dev *hdev) {} in hclge_dcb_ops_set()
Dhclge_debugfs.c74 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset) in hclge_dbg_get_dfx_bd_num()
95 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send()
119 static void hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common()
180 static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_dcb()
280 static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_reg_cmd()
306 static void hclge_title_idx_print(struct hclge_dev *hdev, bool flag, int index, in hclge_title_idx_print()
318 static void hclge_dbg_dump_tc(struct hclge_dev *hdev) in hclge_dbg_dump_tc()
349 static void hclge_dbg_dump_tm_pg(struct hclge_dev *hdev) in hclge_dbg_dump_tm_pg()
440 static void hclge_dbg_dump_tm(struct hclge_dev *hdev) in hclge_dbg_dump_tm()
552 static void hclge_dbg_dump_tm_map(struct hclge_dev *hdev, in hclge_dbg_dump_tm_map()
[all …]
Dhclge_cmd.h11 struct hclge_dev;
27 struct hclge_dev *dev;
1066 int hclge_cmd_init(struct hclge_dev *hdev);
1093 int hclge_cmd_set_promisc_mode(struct hclge_dev *hdev,
1101 void hclge_cmd_uninit(struct hclge_dev *hdev);
1102 int hclge_cmd_queue_init(struct hclge_dev *hdev);