Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A 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);
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);
235 int hclge_tm_get_pri_num(struct hclge_dev *hdev, u8 *pri_num);
244 int hclge_tm_get_pri_shaper(struct hclge_dev *hdev, u8 pri_id,
253 int hclge_tm_get_pg_shaper(struct hclge_dev *hdev, u8 pg_id,
[all …]
A Dhclge_tm.c551 struct hclge_dev *hdev = vport->back; in hclge_tm_qs_shaper_cfg()
598 struct hclge_dev *hdev = vport->back; in hclge_vport_get_max_rss_size()
619 struct hclge_dev *hdev = vport->back; in hclge_vport_get_tqp_num()
637 struct hclge_dev *hdev = vport->back; in hclge_tm_update_kinfo_rss_size()
675 struct hclge_dev *hdev = vport->back; in hclge_tm_vport_tc_info_update()
1003 struct hclge_dev *hdev = vport->back; in hclge_tm_pri_vnet_base_shaper_pri_cfg()
1039 struct hclge_dev *hdev = vport->back; in hclge_tm_pri_vnet_base_shaper_qs_cfg()
1150 struct hclge_dev *hdev = vport->back; in hclge_tm_pri_vnet_base_dwrr_pri_cfg()
1248 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev) in hclge_tm_dwrr_cfg()
1280 struct hclge_dev *hdev = vport->back; in hclge_tm_schd_mode_vnet_base_cfg()
[all …]
A 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);
A Dhclge_dcb.c11 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info()
69 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets()
190 static int hclge_map_update(struct hclge_dev *hdev) in hclge_map_update()
237 struct hclge_dev *hdev = vport->back; in hclge_ieee_setets()
290 struct hclge_dev *hdev = vport->back; in hclge_ieee_getpfc()
314 struct hclge_dev *hdev = vport->back; in hclge_ieee_setpfc()
366 struct hclge_dev *hdev = vport->back; in hclge_getdcbx()
378 struct hclge_dev *hdev = vport->back; in hclge_setdcbx()
462 static int hclge_config_tc(struct hclge_dev *hdev, in hclge_config_tc()
480 struct hclge_dev *hdev = vport->back; in hclge_setup_tc()
[all …]
A Dhclge_main.c611 struct hclge_dev *hdev = vport->back; in hclge_tqps_update_stats()
790 struct hclge_dev *hdev = vport->back; in hclge_update_stats()
819 struct hclge_dev *hdev = vport->back; in hclge_get_sset_count()
861 struct hclge_dev *hdev = vport->back; in hclge_get_strings()
898 struct hclge_dev *hdev = vport->back; in hclge_get_stats()
910 struct hclge_dev *hdev = vport->back; in hclge_get_mac_stat()
1089 struct hclge_dev *hdev = vport->back; in hclge_check_port_speed()
1805 struct hclge_dev *hdev = vport->back; in hclge_assign_tqp()
3577 struct hclge_dev *hdev = data; in hclge_misc_irq_handle()
4579 struct hclge_dev *hdev = in hclge_service_task()
[all …]
A 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);
A Dhclge_err.h182 int (*config_err_int)(struct hclge_dev *hdev, bool en);
220 int hclge_config_mac_tnl_int(struct hclge_dev *hdev, bool en);
221 int hclge_config_nic_hw_error(struct hclge_dev *hdev, bool state);
222 int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en);
224 bool hclge_find_error_source(struct hclge_dev *hdev);
225 void hclge_handle_occurred_error(struct hclge_dev *hdev);
227 int hclge_handle_hw_msix_error(struct hclge_dev *hdev,
230 int hclge_handle_mac_tnl(struct hclge_dev *hdev);
A 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()
396 struct hclge_dev *hdev = vport->back; in hclge_ptp_get_ts_info()
483 int hclge_ptp_init(struct hclge_dev *hdev) in hclge_ptp_init()
[all …]
A 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 …]
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()
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()
A 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()
375 static int hclge_dbg_dump_mac(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac()
622 static int hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, in hclge_dbg_dump_reg_cmd()
646 static int hclge_dbg_dump_tc(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_tc()
1444 static int hclge_dbg_fd_tcam_read(struct hclge_dev *hdev, bool sel_x, in hclge_dbg_fd_tcam_read()
1800 hclge_dbg_dump_ncl_config(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_ncl_config()
2071 static int hclge_get_vlan_filter_config_cmd(struct hclge_dev *hdev, in hclge_get_vlan_filter_config_cmd()
[all …]
A 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()
494 int hclge_cmd_init(struct hclge_dev *hdev) in hclge_cmd_init()
[all …]
A 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);
A Dhclge_err.c1363 static int hclge_cmd_query_error(struct hclge_dev *hdev, in hclge_cmd_query_error()
1384 static int hclge_clear_mac_tnl_int(struct hclge_dev *hdev) in hclge_clear_mac_tnl_int()
2279 struct hclge_dev *hdev = ae_dev->priv; in hclge_handle_rocee_ras_error()
2359 struct hclge_dev *hdev = ae_dev->priv; in hclge_handle_hw_ras_error()
2637 int hclge_handle_hw_msix_error(struct hclge_dev *hdev, in hclge_handle_hw_msix_error()
2651 int hclge_handle_mac_tnl(struct hclge_dev *hdev) in hclge_handle_mac_tnl()
2688 struct hclge_dev *hdev = ae_dev->priv; in hclge_handle_all_hns_hw_errors()
2737 bool hclge_find_error_source(struct hclge_dev *hdev) in hclge_find_error_source()
2751 void hclge_handle_occurred_error(struct hclge_dev *hdev) in hclge_handle_occurred_error()
2811 struct hclge_dev *hdev = ae_dev->priv; in hclge_handle_error_module_log()
[all …]
A Dhclge_main.h860 struct hclge_dev { struct
1130 int hclge_buffer_alloc(struct hclge_dev *hdev);
1131 int hclge_rss_init_hw(struct hclge_dev *hdev);
1132 void hclge_rss_indir_init_cfg(struct hclge_dev *hdev);
1134 void hclge_mbx_handler(struct hclge_dev *hdev);
1136 int hclge_cfg_flowctrl(struct hclge_dev *hdev);
1144 int hclge_notify_client(struct hclge_dev *hdev,
1155 void hclge_uninit_vport_vlan_table(struct hclge_dev *hdev);
1164 int hclge_query_bd_num_cmd_send(struct hclge_dev *hdev,
1166 void hclge_report_hw_error(struct hclge_dev *hdev,
[all …]
A 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()
127 void hclge_devlink_uninit(struct hclge_dev *hdev) in hclge_devlink_uninit()
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()
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,
A Dhclge_trace.h18 struct hclge_dev *hdev,
51 struct hclge_dev *hdev,
A Dhclge_cmd.h15 struct hclge_dev;
31 struct hclge_dev *dev;
1248 int hclge_cmd_init(struct hclge_dev *hdev);
1280 void hclge_cmd_uninit(struct hclge_dev *hdev);
1281 int hclge_cmd_queue_init(struct hclge_dev *hdev);

Completed in 77 milliseconds