Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.h220 int hclge_tm_schd_init(struct hclge_dev *hdev);
221 int hclge_tm_vport_map_update(struct hclge_dev *hdev);
222 int hclge_pause_setup_hw(struct hclge_dev *hdev, bool init);
223 int hclge_tm_schd_setup_hw(struct hclge_dev *hdev);
224 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
225 void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc);
226 void hclge_tm_pfc_info_update(struct hclge_dev *hdev);
227 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev);
228 int hclge_tm_init_hw(struct hclge_dev *hdev, bool init);
229 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx);
[all …]
Dhclge_tm.c116 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get()
152 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get()
157 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get()
162 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg()
174 static int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg()
188 static int hclge_pause_param_cfg(struct hclge_dev *hdev, const u8 *addr, in hclge_pause_param_cfg()
206 int hclge_pause_addr_cfg(struct hclge_dev *hdev, const u8 *mac_addr) in hclge_pause_addr_cfg()
228 static int hclge_fill_pri_array(struct hclge_dev *hdev, u8 *pri, u8 pri_id) in hclge_fill_pri_array()
251 static int hclge_up_to_tc_map(struct hclge_dev *hdev) in hclge_up_to_tc_map()
269 static int hclge_tm_pg_to_pri_map_cfg(struct hclge_dev *hdev, in hclge_tm_pg_to_pri_map_cfg()
[all …]
Dhclge_ptp.h56 struct hclge_dev *hdev;
122 static inline struct hclge_dev *hclge_ptp_get_hdev(struct ptp_clock_info *info) in hclge_ptp_get_hdev()
130 void hclge_ptp_clean_tx_hwts(struct hclge_dev *hdev);
133 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr);
134 int hclge_ptp_set_cfg(struct hclge_dev *hdev, struct ifreq *ifr);
135 int hclge_ptp_init(struct hclge_dev *hdev);
136 void hclge_ptp_uninit(struct hclge_dev *hdev);
139 int hclge_ptp_cfg_qry(struct hclge_dev *hdev, u32 *cfg);
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);
12 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr);
13 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
Dhclge_dcb.c11 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info()
44 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets()
69 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets()
76 static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, in hclge_dcb_common_validate()
107 static u8 hclge_ets_tc_changed(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_tc_changed()
125 static int hclge_ets_sch_mode_validate(struct hclge_dev *hdev, in hclge_ets_sch_mode_validate()
167 static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_validate()
190 static int hclge_map_update(struct hclge_dev *hdev) in hclge_map_update()
211 static int hclge_notify_down_uinit(struct hclge_dev *hdev) in hclge_notify_down_uinit()
222 static int hclge_notify_init_up(struct hclge_dev *hdev) in hclge_notify_init_up()
[all …]
Dhclge_err.h178 int (*config_err_int)(struct hclge_dev *hdev, bool en);
216 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en);
217 int hclge_config_nic_hw_error(struct hclge_dev *hdev, bool state);
218 int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en);
220 bool hclge_find_error_source(struct hclge_dev *hdev);
221 void hclge_handle_occurred_error(struct hclge_dev *hdev);
223 int hclge_handle_hw_msix_error(struct hclge_dev *hdev,
226 int hclge_handle_mac_tnl(struct hclge_dev *hdev);
Dhclge_main.c60 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps);
61 static int hclge_init_vlan_config(struct hclge_dev *hdev);
62 static void hclge_sync_vlan_filter(struct hclge_dev *hdev);
65 static void hclge_rfs_filter_expire(struct hclge_dev *hdev);
66 static int hclge_clear_arfs_rules(struct hclge_dev *hdev);
69 static int hclge_set_default_loopback(struct hclge_dev *hdev);
71 static void hclge_sync_mac_table(struct hclge_dev *hdev);
72 static void hclge_restore_hw_table(struct hclge_dev *hdev);
73 static void hclge_sync_promisc_mode(struct hclge_dev *hdev);
74 static void hclge_sync_fd_table(struct hclge_dev *hdev);
[all …]
Dhclge_ptp.c8 static int hclge_ptp_get_cycle(struct hclge_dev *hdev) in hclge_ptp_get_cycle()
27 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjfreq()
70 struct hclge_dev *hdev = vport->back; in hclge_ptp_set_tx_info()
86 void hclge_ptp_clean_tx_hwts(struct hclge_dev *hdev) in hclge_ptp_clean_tx_hwts()
118 struct hclge_dev *hdev = vport->back; in hclge_ptp_get_rx_hwts()
143 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_gettimex()
163 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_settime()
182 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjtime()
215 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr) in hclge_ptp_get_cfg()
224 static int hclge_ptp_int_en(struct hclge_dev *hdev, bool en) in hclge_ptp_int_en()
[all …]
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()
263 void hclge_mac_stop_phy(struct hclge_dev *hdev) in hclge_mac_stop_phy()
274 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr) in hclge_read_phy_reg()
293 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val) in hclge_write_phy_reg()
Dhclge_mbx.c35 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf()
92 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg()
119 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf()
171 struct hclge_dev *hdev = vport->back; in hclge_get_ring_chain_from_mbx()
248 struct hclge_dev *hdev = vport->back; in hclge_set_vf_promisc_mode()
270 struct hclge_dev *hdev = vport->back; in hclge_set_vf_uc_mac_addr()
312 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mc_mac_addr()
355 struct hclge_dev *hdev = vport->back; in hclge_set_vf_vlan_cfg()
426 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_info()
452 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_depth()
[all …]
Dhclge_devlink.h10 struct hclge_dev *hdev;
13 int hclge_devlink_init(struct hclge_dev *hdev);
14 void hclge_devlink_uninit(struct hclge_dev *hdev);
Dhclge_debugfs.c109 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset, in hclge_dbg_get_dfx_bd_num()
137 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send()
162 hclge_dbg_dump_reg_tqp(struct hclge_dev *hdev, in hclge_dbg_dump_reg_tqp()
216 hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common()
261 static int hclge_dbg_dump_mac_enable_status(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_enable_status()
318 static int hclge_dbg_dump_mac_frame_size(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_frame_size()
344 static int hclge_dbg_dump_mac_speed_duplex(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_speed_duplex()
375 static int hclge_dbg_dump_mac(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac()
391 static int hclge_dbg_dump_dcb_qset(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_qset()
422 static int hclge_dbg_dump_dcb_pri(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_pri()
[all …]
Dhclge_cmd.c59 static int hclge_alloc_cmd_queue(struct hclge_dev *hdev, int ring_type) in hclge_alloc_cmd_queue()
102 struct hclge_dev *hdev = ring->dev; in hclge_cmd_config_regs()
137 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_csq_clean()
268 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_check_result()
314 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_send()
353 static void hclge_set_default_capability(struct hclge_dev *hdev) in hclge_set_default_capability()
382 static void hclge_parse_capability(struct hclge_dev *hdev, in hclge_parse_capability()
405 hclge_cmd_query_version_and_capability(struct hclge_dev *hdev) in hclge_cmd_query_version_and_capability()
434 int hclge_cmd_queue_init(struct hclge_dev *hdev) in hclge_cmd_queue_init()
470 static int hclge_firmware_compat_config(struct hclge_dev *hdev, bool en) in hclge_firmware_compat_config()
[all …]
Dhclge_devlink.c15 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_info_get()
43 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_down()
78 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_up()
107 int hclge_devlink_init(struct hclge_dev *hdev) in hclge_devlink_init()
139 void hclge_devlink_uninit(struct hclge_dev *hdev) in hclge_devlink_uninit()
Dhclge_err.c1351 static int hclge_cmd_query_error(struct hclge_dev *hdev, in hclge_cmd_query_error()
1372 static int hclge_clear_mac_tnl_int(struct hclge_dev *hdev) in hclge_clear_mac_tnl_int()
1382 static int hclge_config_common_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_common_hw_err_int()
1419 static int hclge_config_ncsi_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ncsi_hw_err_int()
1441 static int hclge_config_igu_egu_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_igu_egu_hw_err_int()
1480 static int hclge_config_ppp_error_interrupt(struct hclge_dev *hdev, u32 cmd, in hclge_config_ppp_error_interrupt()
1529 static int hclge_config_ppp_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ppp_hw_err_int()
1544 static int hclge_config_tm_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_tm_hw_err_int()
1577 static int hclge_config_mac_err_int(struct hclge_dev *hdev, bool en) in hclge_config_mac_err_int()
1598 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en) in hclge_config_mac_tnl_int()
[all …]
Dhclge_main.h829 struct hclge_dev { struct
1042 struct hclge_dev *back; /* Back reference to associated dev */
1088 static inline bool hclge_is_reset_pending(struct hclge_dev *hdev) in hclge_is_reset_pending()
1094 int hclge_cfg_mac_speed_dup(struct hclge_dev *hdev, int speed, u8 duplex);
1099 int hclge_buffer_alloc(struct hclge_dev *hdev);
1100 int hclge_rss_init_hw(struct hclge_dev *hdev);
1101 void hclge_rss_indir_init_cfg(struct hclge_dev *hdev);
1103 void hclge_mbx_handler(struct hclge_dev *hdev);
1105 int hclge_cfg_flowctrl(struct hclge_dev *hdev);
1106 int hclge_func_reset_cmd(struct hclge_dev *hdev, int func_id);
[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.h92 int (*dbg_dump)(struct hclge_dev *hdev, char *buf, int len);
93 int (*dbg_dump_reg)(struct hclge_dev *hdev, enum hnae3_dbg_cmd cmd,
Dhclge_trace.h18 struct hclge_dev *hdev,
51 struct hclge_dev *hdev,
Dhclge_cmd.h15 struct hclge_dev;
31 struct hclge_dev *dev;
1243 int hclge_cmd_init(struct hclge_dev *hdev);
1275 void hclge_cmd_uninit(struct hclge_dev *hdev);
1276 int hclge_cmd_queue_init(struct hclge_dev *hdev);