/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_tm.h | 11 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 *hde [all...] |
H A D | hclge_tm.c | 138 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 *hde [all...] |
H A D | hclge_mdio.h | 9 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 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr); 17 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
|
H A D | hclge_ptp.h | 11 struct hclge_dev; 59 struct hclge_dev *hdev; 125 static inline struct hclge_dev *hclge_ptp_get_hdev(struct ptp_clock_info *info) in hclge_ptp_get_hdev() 133 void hclge_ptp_clean_tx_hwts(struct hclge_dev *hdev); 136 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr); 137 int hclge_ptp_set_cfg(struct hclge_dev *hdev, struct ifreq *ifr); 138 int hclge_ptp_init(struct hclge_dev *hdev); 139 void hclge_ptp_uninit(struct hclge_dev *hdev); 142 int hclge_ptp_cfg_qry(struct hclge_dev *hdev, u32 *cfg);
|
H A D | hclge_err.h | 182 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);
|
H A D | hclge_dcb.c | 11 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 *hde [all...] |
H A D | hclge_main.c | 46 static int hclge_set_mac_mtu(struct hclge_dev *hdev, int new_mps); 47 static int hclge_init_vlan_config(struct hclge_dev *hdev); 48 static void hclge_sync_vlan_filter(struct hclge_dev *hdev); 51 static void hclge_rfs_filter_expire(struct hclge_dev *hdev); 52 static int hclge_clear_arfs_rules(struct hclge_dev *hdev); 55 static int hclge_set_default_loopback(struct hclge_dev *hdev); 57 static void hclge_sync_mac_table(struct hclge_dev *hdev); 58 static void hclge_restore_hw_table(struct hclge_dev *hdev); 59 static void hclge_sync_promisc_mode(struct hclge_dev *hdev); 60 static void hclge_sync_fd_table(struct hclge_dev *hde [all...] |
H A D | hclge_ptp.c | 8 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_adjfine() 58 struct hclge_dev *hdev = vport->back; in hclge_ptp_set_tx_info() 74 void hclge_ptp_clean_tx_hwts(struct hclge_dev *hdev) in hclge_ptp_clean_tx_hwts() 106 struct hclge_dev *hdev = vport->back; in hclge_ptp_get_rx_hwts() 131 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_gettimex() 151 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_settime() 170 struct hclge_dev *hdev = hclge_ptp_get_hdev(ptp); in hclge_ptp_adjtime() 203 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr) in hclge_ptp_get_cfg() 212 static int hclge_ptp_int_en(struct hclge_dev *hde [all...] |
H A D | hclge_mdio.c | 46 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 *hde [all...] |
H A D | hclge_devlink.h | 10 struct hclge_dev *hdev; 13 int hclge_devlink_init(struct hclge_dev *hdev); 14 void hclge_devlink_uninit(struct hclge_dev *hdev);
|
H A D | hclge_debugfs.c | 136 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset, in hclge_dbg_get_dfx_bd_num() 164 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send() 189 hclge_dbg_dump_reg_tqp(struct hclge_dev *hdev, in hclge_dbg_dump_reg_tqp() 243 hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common() 305 static int hclge_dbg_dump_mac_enable_status(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_enable_status() 335 static int hclge_dbg_dump_mac_frame_size(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_frame_size() 361 static int hclge_dbg_dump_mac_speed_duplex(struct hclge_dev *hdev, char *buf, in hclge_dbg_dump_mac_speed_duplex() 392 static int hclge_dbg_dump_mac(struct hclge_dev *hdev, char *buf, int len) in hclge_dbg_dump_mac() 408 static int hclge_dbg_dump_dcb_qset(struct hclge_dev *hdev, char *buf, int len, in hclge_dbg_dump_dcb_qset() 439 static int hclge_dbg_dump_dcb_pri(struct hclge_dev *hde [all...] |
H A D | hclge_devlink.c | 15 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_info_get() 38 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_down() 73 struct hclge_dev *hdev = priv->hdev; in hclge_devlink_reload_up() 102 int hclge_devlink_init(struct hclge_dev *hdev) in hclge_devlink_init() 121 void hclge_devlink_uninit(struct hclge_dev *hdev) in hclge_devlink_uninit()
|
H A D | hclge_err.c | 1358 * @hdev: pointer to struct hclge_dev 1365 static int hclge_cmd_query_error(struct hclge_dev *hdev, in hclge_cmd_query_error() 1386 static int hclge_clear_mac_tnl_int(struct hclge_dev *hdev) in hclge_clear_mac_tnl_int() 1396 static int hclge_config_common_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_common_hw_err_int() 1433 static int hclge_config_ncsi_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ncsi_hw_err_int() 1455 static int hclge_config_igu_egu_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_igu_egu_hw_err_int() 1494 static int hclge_config_ppp_error_interrupt(struct hclge_dev *hdev, u32 cmd, in hclge_config_ppp_error_interrupt() 1543 static int hclge_config_ppp_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_ppp_hw_err_int() 1558 static int hclge_config_tm_hw_err_int(struct hclge_dev *hdev, bool en) in hclge_config_tm_hw_err_int() 1591 static int hclge_config_mac_err_int(struct hclge_dev *hde [all...] |
H A D | hclge_mbx.c | 36 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 95 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg() 142 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf() 186 struct hclge_dev *hdev = vport->back; in hclge_get_ring_chain_from_mbx() 265 struct hclge_dev *hdev = vport->back; in hclge_query_ring_vector_map() 338 struct hclge_dev *hdev = vport->back; in hclge_set_vf_promisc_mode() 360 struct hclge_dev *hdev = vport->back; in hclge_set_vf_uc_mac_addr() 402 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mc_mac_addr() 443 struct hclge_dev *hdev = vport->back; in hclge_set_vf_vlan_cfg() 517 struct hclge_dev *hde in hclge_get_vf_queue_info() [all...] |
H A D | hclge_regs.c | 173 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 *hde [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_tm.h | 161 int hclge_tm_schd_init(struct hclge_dev *hdev); 162 int hclge_tm_vport_map_update(struct hclge_dev *hdev); 163 int hclge_pause_setup_hw(struct hclge_dev *hdev, bool init); 164 int hclge_tm_schd_setup_hw(struct hclge_dev *hdev); 165 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc); 166 void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc); 167 void hclge_tm_pfc_info_update(struct hclge_dev *hdev); 168 int hclge_tm_dwrr_cfg(struct hclge_dev *hdev); 169 int hclge_tm_init_hw(struct hclge_dev *hdev, bool init); 170 int hclge_pfc_pause_en_cfg(struct hclge_dev *hde [all...] |
H A D | hclge_tm.c | 114 static int hclge_pfc_stats_get(struct hclge_dev *hdev, in hclge_pfc_stats_get() 150 int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_rx_stats_get() 155 int hclge_pfc_tx_stats_get(struct hclge_dev *hdev, u64 *stats) in hclge_pfc_tx_stats_get() 160 int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx) in hclge_mac_pause_en_cfg() 172 int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, in hclge_pfc_pause_en_cfg() 186 static int hclge_pause_param_cfg(struct hclge_dev *hdev, const u8 *addr, in hclge_pause_param_cfg() 204 int hclge_pause_addr_cfg(struct hclge_dev *hdev, const u8 *mac_addr) in hclge_pause_addr_cfg() 226 static int hclge_fill_pri_array(struct hclge_dev *hdev, u8 *pri, u8 pri_id) in hclge_fill_pri_array() 249 static int hclge_up_to_tc_map(struct hclge_dev *hdev) in hclge_up_to_tc_map() 267 static int hclge_tm_pg_to_pri_map_cfg(struct hclge_dev *hde [all...] |
H A D | hclge_main.c | 60 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); 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 int hclge_mac_link_status_wait(struct hclge_dev *hdev, int link_ret, 422 static int hclge_mac_update_stats_defective(struct hclge_dev *hde [all...] |
H A D | hclge_dcb.c | 12 static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev, in hclge_ieee_ets_to_tm_info() 45 static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev, in hclge_tm_info_to_ieee_ets() 73 struct hclge_dev *hdev = vport->back; in hclge_ieee_getets() 80 static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, in hclge_dcb_common_validate() 111 static u8 hclge_ets_tc_changed(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_tc_changed() 129 static int hclge_ets_sch_mode_validate(struct hclge_dev *hdev, in hclge_ets_sch_mode_validate() 179 static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets, in hclge_ets_validate() 202 static int hclge_map_update(struct hclge_dev *hdev) in hclge_map_update() 223 static int hclge_client_setup_tc(struct hclge_dev *hdev) in hclge_client_setup_tc() 246 static int hclge_notify_down_uinit(struct hclge_dev *hde [all...] |
H A D | hclge_mdio.h | 7 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);
|
H A D | hclge_cmd.c | 59 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() 258 struct hclge_dev *hdev = container_of(hw, struct hclge_dev, hw); in hclge_cmd_send() 333 static void hclge_set_default_capability(struct hclge_dev *hdev) in hclge_set_default_capability() 342 static void hclge_parse_capability(struct hclge_dev *hdev, in hclge_parse_capability() 361 hclge_cmd_query_version_and_capability(struct hclge_dev *hdev) in hclge_cmd_query_version_and_capability() 389 int hclge_cmd_queue_init(struct hclge_dev *hde [all...] |
H A D | hclge_err.h | 120 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,
|
H A D | hclge_mbx.c | 35 struct hclge_dev *hdev = vport->back; in hclge_gen_resp_to_vf() 90 struct hclge_dev *hdev = vport->back; in hclge_send_mbx_msg() 124 struct hclge_dev *hdev = vport->back; in hclge_inform_reset_assert_to_vf() 176 struct hclge_dev *hdev = vport->back; in hclge_get_ring_chain_from_mbx() 286 struct hclge_dev *hdev = vport->back; in hclge_set_vf_uc_mac_addr() 328 struct hclge_dev *hdev = vport->back; in hclge_set_vf_mc_mac_addr() 440 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_info() 466 struct hclge_dev *hdev = vport->back; in hclge_get_vf_queue_depth() 483 struct hclge_dev *hdev = vport->back; in hclge_get_vf_media_type() 498 struct hclge_dev *hde in hclge_get_link_info() [all...] |
H A D | hclge_mdio.c | 46 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()
|
H A D | hclge_debugfs.c | 74 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset) in hclge_dbg_get_dfx_bd_num() 93 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send() 117 static void hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common() 176 static void hclge_dbg_dump_mac_enable_status(struct hclge_dev *hdev) in hclge_dbg_dump_mac_enable_status() 225 static void hclge_dbg_dump_mac_frame_size(struct hclge_dev *hdev) in hclge_dbg_dump_mac_frame_size() 247 static void hclge_dbg_dump_mac_speed_duplex(struct hclge_dev *hdev) in hclge_dbg_dump_mac_speed_duplex() 275 static void hclge_dbg_dump_mac(struct hclge_dev *hdev) in hclge_dbg_dump_mac() 284 static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_dcb() 400 static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_reg_cmd() 431 static void hclge_print_tc_info(struct hclge_dev *hde [all...] |