Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_tm.h11 struct hclge_dev;
235 int hclge_tm_schd_init(struct hclge_dev *hdev);
236 int hclge_tm_vport_map_update(struct hclge_dev *hdev);
237 int hclge_pause_setup_hw(struct hclge_dev *hdev, bool init);
238 int hclge_tm_schd_setup_hw(struct hclge_dev *hdev);
239 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
240 void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc);
241 void hclge_tm_pfc_info_update(struct hclge_dev *hdev);
242 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev);
243 int hclge_tm_init_hw(struct hclge_dev *hdev, bool init);
[all …]
H A Dhclge_tm.c138 static void hclge_pfc_stats_get(struct hclge_dev *hdev, bool tx, u64 *stats) in hclge_pfc_stats_get()
152 void hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get()
157 void 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 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 int hclge_up_to_tc_map(struct hclge_dev *hdev) in hclge_up_to_tc_map()
269 static void hclge_dscp_to_prio_map_init(struct hclge_dev *hdev) in hclge_dscp_to_prio_map_init()
[all …]
H A Dhclge_mdio.h9 struct hclge_dev;
11 int hclge_mac_mdio_config(struct hclge_dev *hdev);
14 void hclge_mac_start_phy(struct hclge_dev *hdev);
15 void hclge_mac_stop_phy(struct hclge_dev *hdev);
16 int hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 *val);
17 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
H A Dhclge_err.h195 int (*config_err_int)(struct hclge_dev *hdev, bool en);
207 void (*query_reg_info)(struct hclge_dev *hdev);
257 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en);
258 int hclge_config_nic_hw_error(struct hclge_dev *hdev, bool state);
259 int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en);
261 bool hclge_find_error_source(struct hclge_dev *hdev);
262 void hclge_handle_occurred_error(struct hclge_dev *hdev);
264 int hclge_handle_hw_msix_error(struct hclge_dev *hdev,
267 int hclge_handle_mac_tnl(struct hclge_dev *hdev);
268 int hclge_handle_vf_queue_err_ras(struct hclge_dev *hdev);
H A 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()
72 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets()
79 static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, in hclge_dcb_common_validate()
110 static u8 hclge_ets_tc_changed(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_tc_changed()
128 static int hclge_ets_sch_mode_validate(struct hclge_dev *hdev, in hclge_ets_sch_mode_validate()
178 static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_validate()
201 static int hclge_map_update(struct hclge_dev *hdev) in hclge_map_update()
222 static int hclge_notify_down_uinit(struct hclge_dev *hdev) in hclge_notify_down_uinit()
237 static int hclge_notify_init_up(struct hclge_dev *hdev) in hclge_notify_init_up()
[all …]
H A Dhclge_debugfs.c737 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset, in hclge_dbg_get_dfx_bd_num()
765 int hclge_dbg_cmd_send(struct hclge_dev *hdev, struct hclge_desc *desc_src, in hclge_dbg_cmd_send()
788 hclge_dbg_dump_reg_tqp(struct hclge_dev *hdev, in hclge_dbg_dump_reg_tqp()
840 hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common()
901 static int hclge_dbg_dump_mac_enable_status(struct hclge_dev *hdev, in hclge_dbg_dump_mac_enable_status()
930 static int hclge_dbg_dump_mac_frame_size(struct hclge_dev *hdev, in hclge_dbg_dump_mac_frame_size()
954 static int hclge_dbg_dump_mac_speed_duplex(struct hclge_dev *hdev, in hclge_dbg_dump_mac_speed_duplex()
986 struct hclge_dev *hdev = hclge_seq_file_to_hdev(s); in hclge_dbg_dump_mac()
1000 static int hclge_dbg_dump_dcb_qset(struct hclge_dev *hdev, struct seq_file *s) in hclge_dbg_dump_dcb_qset()
1028 static int hclge_dbg_dump_dcb_pri(struct hclge_dev *hdev, struct seq_file *s) in hclge_dbg_dump_dcb_pri()
[all …]
H A 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()
205 struct hclge_dev *hdev = vport->back; in hclge_mac_connect_phy()
245 struct hclge_dev *hdev = vport->back; in hclge_mac_disconnect_phy()
254 void hclge_mac_start_phy(struct hclge_dev *hdev) in hclge_mac_start_phy()
266 void hclge_mac_stop_phy(struct hclge_dev *hdev) in hclge_mac_stop_phy()
277 int hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 *val) in hclge_read_phy_reg()
299 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val) in hclge_write_phy_reg()
H A Dhclge_devlink.c13 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_scc_info_get()
43 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_info_get()
76 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_down()
111 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_up()
140 int hclge_devlink_init(struct hclge_dev *hdev) in hclge_devlink_init()
159 void hclge_devlink_uninit(struct hclge_dev *hdev) in hclge_devlink_uninit()
H A Dhclge_devlink.h12 struct hclge_dev *hdev;
15 int hclge_devlink_init(struct hclge_dev *hdev);
16 void hclge_devlink_uninit(struct hclge_dev *hdev);
H A Dhclge_main.h869 struct hclge_dev { struct
1070 struct hclge_dev *back; /* Back reference to associated dev */
1130 int hclge_cfg_mac_speed_dup(struct hclge_dev *hdev, int speed, u8 duplex, u8 lane_num);
1135 int hclge_buffer_alloc(struct hclge_dev *hdev);
1136 int hclge_rss_init_hw(struct hclge_dev *hdev);
1138 void hclge_mbx_handler(struct hclge_dev *hdev);
1140 int hclge_cfg_flowctrl(struct hclge_dev *hdev);
1141 int hclge_func_reset_cmd(struct hclge_dev *hdev, int func_id);
1148 int hclge_notify_client(struct hclge_dev *hdev,
1159 void hclge_uninit_vport_vlan_table(struct hclge_dev *hdev);
[all …]
H A Dhclge_regs.c173 static int hclge_get_32_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_32_bit_regs()
227 static int hclge_get_64_bit_regs(struct hclge_dev *hdev, u32 regs_num, in hclge_get_64_bit_regs()
281 int hclge_query_bd_num_cmd_send(struct hclge_dev *hdev, struct hclge_desc *desc) in hclge_query_bd_num_cmd_send()
298 static int hclge_get_dfx_reg_bd_num(struct hclge_dev *hdev, in hclge_get_dfx_reg_bd_num()
324 static int hclge_dfx_reg_cmd_send(struct hclge_dev *hdev, in hclge_dfx_reg_cmd_send()
349 static int hclge_dfx_reg_rpu_tnl_cmd_send(struct hclge_dev *hdev, u32 tnl_id, in hclge_dfx_reg_rpu_tnl_cmd_send()
388 static int hclge_get_dfx_reg_len(struct hclge_dev *hdev, int *len) in hclge_get_dfx_reg_len()
426 static int hclge_get_dfx_rpu_tnl_reg(struct hclge_dev *hdev, u32 *reg, in hclge_get_dfx_rpu_tnl_reg()
448 static int hclge_get_dfx_reg(struct hclge_dev *hdev, void *data) in hclge_get_dfx_reg()
510 static int hclge_fetch_pf_reg(struct hclge_dev *hdev, void *data, in hclge_fetch_pf_reg()
[all …]
H A Dhclge_err.c1554 struct hclge_dev *hdev) in hclge_err_mod_check_support_cmd()
1566 hclge_query_reg_info(struct hclge_dev *hdev, in hclge_query_reg_info()
1597 static void hclge_query_reg_info_of_ssu(struct hclge_dev *hdev) in hclge_query_reg_info_of_ssu()
1788 static int hclge_cmd_query_error(struct hclge_dev *hdev, in hclge_cmd_query_error()
1809 static int hclge_clear_mac_tnl_int(struct hclge_dev *hdev) in hclge_clear_mac_tnl_int()
1819 static int hclge_config_common_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_common_hw_err_int()
1856 static int hclge_config_ncsi_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ncsi_hw_err_int()
1878 static int hclge_config_igu_egu_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_igu_egu_hw_err_int()
1917 static int hclge_config_ppp_error_interrupt(struct hclge_dev *hdev, u32 cmd, in hclge_config_ppp_error_interrupt()
1966 static int hclge_config_ppp_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ppp_hw_err_int()
[all …]
H A 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()
H A 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,
135 int hclge_dbg_cmd_send(struct hclge_dev *hdev, struct hclge_desc *desc_src,
H A Dhclge_regs.h10 struct hclge_dev;
12 int hclge_query_bd_num_cmd_send(struct hclge_dev *hdev,
H A Dhclge_cmd.h12 struct hclge_dev;
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhclge_mbx.h236 struct hclge_dev;