Home
last modified time | relevance | path

Searched refs:ae_dev (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhnae3.c16 struct hnae3_ae_dev *ae_dev; in hnae3_unregister_ae_algo_prepare() local
56 if (!client || !ae_dev) in hnae3_set_client_init_flag()
104 ret = ae_dev->ops->init_client_instance(client, ae_dev); in hnae3_init_client_instance()
121 ae_dev->ops->uninit_client_instance(client, ae_dev); in hnae3_uninit_client_instance()
283 ae_dev->ops = NULL; in hnae3_unregister_ae_algo()
302 if (!ae_dev) in hnae3_register_ae_dev()
322 ret = ae_dev->ops->init_ae_dev(ae_dev); in hnae3_register_ae_dev()
350 list_del(&ae_dev->node); in hnae3_register_ae_dev()
366 if (!ae_dev) in hnae3_unregister_ae_dev()
384 ae_dev->ops = NULL; in hnae3_unregister_ae_dev()
[all …]
H A Dhnae3.h108 #define hnae3_ae_dev_fd_supported(ae_dev) \ argument
109 test_bit(HNAE3_DEV_SUPPORT_FD_B, (ae_dev)->caps)
111 #define hnae3_ae_dev_gro_supported(ae_dev) \ argument
112 test_bit(HNAE3_DEV_SUPPORT_GRO_B, (ae_dev)->caps)
165 #define hnae3_ae_dev_cq_supported(ae_dev) \ argument
166 test_bit(HNAE3_DEV_SUPPORT_CQ_B, (ae_dev)->caps)
171 #define hnae3_ae_dev_lane_num_supported(ae_dev) \ argument
174 #define hnae3_ae_dev_wol_supported(ae_dev) \ argument
586 struct hnae3_ae_dev *ae_dev);
588 struct hnae3_ae_dev *ae_dev);
[all …]
H A Dhns3_ethtool.c156 struct hnae3_ae_dev *ae_dev; in hns3_lp_setup_skb() local
173 ae_dev = pci_get_drvdata(handle->pdev); in hns3_lp_setup_skb()
174 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup_skb()
956 return ae_dev->dev_specs.rss_ind_tbl_size; in hns3_get_rss_indir_size()
1400 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1407 ae_dev->dev_specs.max_int_gl); in hns3_check_gl_coalesce_para()
1469 !ae_dev->dev_specs.int_ql_max) { in hns3_check_ql_coalesce_param()
1478 ae_dev->dev_specs.int_ql_max); in hns3_check_ql_coalesce_param()
1493 !hnae3_ae_dev_cq_supported(ae_dev)) { in hns3_check_cqe_coalesce_param()
2088 if (!hnae3_ae_dev_wol_supported(ae_dev)) in hns3_get_wol()
[all …]
H A Dhns3_enet.c3129 ae_dev->ops->clean_vf_config(ae_dev, num_vfs); in hns3_clean_vf_config()
3197 if (ae_dev && hns3_is_phys_func(ae_dev->pdev)) { in hns3_suspend()
3199 if (ae_dev->ops && ae_dev->ops->reset_prepare) in hns3_suspend()
3210 if (ae_dev && hns3_is_phys_func(ae_dev->pdev)) { in hns3_resume()
3212 if (ae_dev->ops && ae_dev->ops->reset_done) in hns3_resume()
3213 ae_dev->ops->reset_done(ae_dev); in hns3_resume()
3230 if (!ae_dev || !ae_dev->ops) { in hns3_error_detected()
3251 if (!ae_dev || !ae_dev->ops) in hns3_slot_reset()
3277 if (ae_dev && ae_dev->ops && ae_dev->ops->reset_prepare) in hns3_reset_prepare()
3286 if (ae_dev && ae_dev->ops && ae_dev->ops->reset_done) in hns3_reset_done()
[all …]
H A Dhns3_debugfs.c634 struct hnae3_ae_dev *ae_dev, char **result, in hns3_dump_rx_queue_info() argument
664 if (hnae3_ae_dev_tqp_txrx_indep_supported(ae_dev)) in hns3_dump_rx_queue_info()
681 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_rx_queue_info() local
710 hns3_dump_rx_queue_info(ring, ae_dev, result, i); in hns3_dbg_rx_queue_info()
736 struct hnae3_ae_dev *ae_dev, char **result, in hns3_dump_tx_queue_info() argument
767 if (hnae3_ae_dev_tqp_txrx_indep_supported(ae_dev)) in hns3_dump_tx_queue_info()
784 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_tx_queue_info() local
814 hns3_dump_tx_queue_info(ring, ae_dev, result, i); in hns3_dbg_tx_queue_info()
1029 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_dev_caps() local
1031 unsigned long *caps = ae_dev->caps; in hns3_dbg_dev_caps()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_cmd.c55 set_bit(HNAE3_DEV_SUPPORT_GRO_B, ae_dev->caps); in hclge_comm_set_default_capability()
57 set_bit(HNAE3_DEV_SUPPORT_FD_B, ae_dev->caps); in hclge_comm_set_default_capability()
58 set_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps); in hclge_comm_set_default_capability()
59 set_bit(HNAE3_DEV_SUPPORT_PAUSE_B, ae_dev->caps); in hclge_comm_set_default_capability()
90 if (hclge_comm_dev_phy_imp_supported(ae_dev)) in hclge_comm_firmware_compat_config()
203 set_bit(caps_map[i].local_bit, ae_dev->caps); in hclge_comm_parse_capability()
244 ae_dev->dev_version |= ae_dev->pdev->revision; in hclge_comm_cmd_query_version_and_capability()
251 hclge_comm_parse_capability(ae_dev, is_pf, resp); in hclge_comm_cmd_query_version_and_capability()
620 dev_err(&ae_dev->pdev->dev, in hclge_comm_cmd_init()
626 dev_info(&ae_dev->pdev->dev, in hclge_comm_cmd_init()
[all …]
H A Dhclge_comm_rss.c18 hclge_comm_init_rss_tuple(struct hnae3_ae_dev *ae_dev, in hclge_comm_init_rss_tuple() argument
28 ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2 ? in hclge_comm_init_rss_tuple()
35 struct hnae3_ae_dev *ae_dev, in hclge_comm_rss_init_cfg() argument
38 u16 rss_ind_tbl_size = ae_dev->dev_specs.rss_ind_tbl_size; in hclge_comm_rss_init_cfg()
45 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hclge_comm_rss_init_cfg()
61 hclge_comm_rss_indir_init_cfg(ae_dev, rss_cfg); in hclge_comm_rss_init_cfg()
147 int hclge_comm_set_rss_tuple(struct hnae3_ae_dev *ae_dev, in hclge_comm_set_rss_tuple() argument
217 for (i = 0; i < ae_dev->dev_specs.rss_ind_tbl_size; i++) in hclge_comm_rss_indir_init_cfg()
280 rss_cfg_tbl_num = ae_dev->dev_specs.rss_ind_tbl_size / in hclge_comm_set_rss_indir_table()
439 struct hnae3_ae_dev *ae_dev, in hclge_comm_init_rss_tuple_cmd() argument
[all …]
H A Dhclge_comm_rss.h98 void hclge_comm_rss_indir_init_cfg(struct hnae3_ae_dev *ae_dev,
112 struct hnae3_ae_dev *ae_dev,
117 int hclge_comm_set_rss_indir_table(struct hnae3_ae_dev *ae_dev,
120 struct hnae3_ae_dev *ae_dev,
129 int hclge_comm_set_rss_tuple(struct hnae3_ae_dev *ae_dev,
H A Dhclge_comm_cmd.h25 #define hclge_comm_dev_phy_imp_supported(ae_dev) \ argument
26 test_bit(HNAE3_DEV_SUPPORT_PHY_IMP_B, (ae_dev)->caps)
456 int hclge_comm_cmd_query_version_and_capability(struct hnae3_ae_dev *ae_dev,
463 int hclge_comm_firmware_compat_config(struct hnae3_ae_dev *ae_dev,
469 void hclge_comm_cmd_uninit(struct hnae3_ae_dev *ae_dev,
472 int hclge_comm_cmd_init(struct hnae3_ae_dev *ae_dev, struct hclge_comm_hw *hw,
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c121 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclgevf_get_basic_info() local
1174 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclgevf_enable_vlan_filter() local
2053 struct pci_dev *pdev = ae_dev->pdev; in hclgevf_alloc_hdev()
2061 hdev->ae_dev = ae_dev; in hclgevf_alloc_hdev()
2062 ae_dev->priv = hdev; in hclgevf_alloc_hdev()
2441 struct hnae3_ae_dev *ae_dev) in hclgevf_init_client_instance() argument
2489 struct hnae3_ae_dev *ae_dev) in hclgevf_uninit_client_instance() argument
2675 ae_dev->dev_specs.rss_ind_tbl_size = in hclgevf_parse_dev_specs()
2991 struct pci_dev *pdev = ae_dev->pdev; in hclgevf_init_ae_dev()
2994 ret = hclgevf_alloc_hdev(ae_dev); in hclgevf_init_ae_dev()
[all …]
H A Dhclgevf_main.h211 struct hnae3_ae_dev *ae_dev; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_err.c1830 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_mpf_ras_error() local
1850 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1856 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1865 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1871 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1879 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1892 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1900 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1988 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_pf_ras_error() local
2393 if (ae_dev->hw_err_reset_req) in hclge_handle_hw_ras_error()
[all …]
H A Dhclge_main.c1330 ae_dev->dev_specs.tnl_num = 0; in hclge_set_default_dev_specs()
4407 hclge_get_reset_level(ae_dev, in hclge_reset_event()
4478 if (ae_dev->hw_err_reset_req) { in hclge_handle_err_reset_request()
4495 ae_dev->hw_err_reset_req = 0; in hclge_handle_err_recovery()
4848 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_init_rss_tc_mode() local
9436 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_set_vport_vlan_filter() local
11133 dev_err(&ae_dev->pdev->dev, in hclge_init_nic_client_instance()
11187 dev_err(&ae_dev->pdev->dev, in hclge_init_roce_client_instance()
11629 hdev->ae_dev = ae_dev; in hclge_init_ae_dev()
11632 ae_dev->priv = hdev; in hclge_init_ae_dev()
[all …]
H A Dhclge_err.h223 void hclge_handle_all_hns_hw_errors(struct hnae3_ae_dev *ae_dev);
226 pci_ers_result_t hclge_handle_hw_ras_error(struct hnae3_ae_dev *ae_dev);
229 int hclge_handle_error_info_log(struct hnae3_ae_dev *ae_dev);
H A Dhclge_mbx.c464 hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3 ? in hclge_set_vf_vlan_cfg()
494 struct hnae3_ae_dev *ae_dev = vport->back->ae_dev; in hclge_get_basic_info() local
504 if (test_bit(HNAE3_DEV_SUPPORT_VLAN_FLTR_MDF_B, ae_dev->caps)) in hclge_get_basic_info()
663 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_notify_vf_config() local
680 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V3 && in hclge_notify_vf_config()
810 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_ncsi_error() local
812 ae_dev->ops->set_default_reset_request(ae_dev, HNAE3_GLOBAL_RESET); in hclge_handle_ncsi_error()
814 ae_dev->ops->reset_event(hdev->pdev, NULL); in hclge_handle_ncsi_error()
H A Dhclge_regs.c391 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_get_dfx_reg_len() local
419 HCLGE_REG_TLV_SIZE) * ae_dev->dev_specs.tnl_num; in hclge_get_dfx_reg_len()
430 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_get_dfx_rpu_tnl_reg() local
434 for (i = HCLGE_REG_RPU_TNL_ID_0; i <= ae_dev->dev_specs.tnl_num; i++) { in hclge_get_dfx_rpu_tnl_reg()
H A Dhclge_tm.c474 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_port_shaper_cfg()
598 max_tx_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_qs_shaper_cfg()
602 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_qs_shaper_cfg()
801 hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_info_init()
847 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hclge_tm_pfc_info_update()
885 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_shaper_cfg()
1047 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_tc_base_shaper_cfg()
1098 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_pri_vnet_base_shaper_pri_cfg()
1128 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_vnet_base_shaper_qs_cfg()
1729 if (hdev->ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2) { in hclge_tm_get_qset_num()
[all …]
H A Dhclge_ptp.c473 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_ptp_init() local
477 if (!test_bit(HNAE3_DEV_SUPPORT_PTP_B, ae_dev->caps)) in hclge_ptp_init()
H A Dhclge_debugfs.c1595 if (!hnae3_ae_dev_fd_supported(hdev->ae_dev)) { in hclge_dbg_dump_fd_tcam()
1663 if (!hnae3_ae_dev_fd_supported(hdev->ae_dev)) in hclge_dbg_dump_fd_counter()
2190 if (!test_bit(HNAE3_DEV_SUPPORT_PORT_VLAN_BYPASS_B, hdev->ae_dev->caps)) in hclge_get_port_vlan_filter_bypass_state()
2277 hdev->ae_dev->caps) ? state_str[bypass] : "NA"; in hclge_dbg_dump_vlan_filter_config()
H A Dhclge_dcb.c217 hclge_comm_rss_indir_init_cfg(hdev->ae_dev, &hdev->rss_cfg); in hclge_map_update()
H A Dhclge_main.h853 struct hnae3_ae_dev *ae_dev; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_ae_adapt.c25 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev()
977 struct hnae_ae_dev *ae_dev = &dsaf_dev->ae_dev; in hns_dsaf_ae_init() local
991 snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", DSAF_DEVICE_NAME, in hns_dsaf_ae_init()
993 ae_dev->ops = &hns_dsaf_ops; in hns_dsaf_ae_init()
994 ae_dev->dev = dsaf_dev->dev; in hns_dsaf_ae_init()
996 return hnae_ae_register(ae_dev, THIS_MODULE); in hns_dsaf_ae_init()
1001 hnae_ae_unregister(&dsaf_dev->ae_dev); in hns_dsaf_ae_uninit()
H A Dhns_dsaf_main.c380 dsaf_dev->ae_dev.name, i); in hns_dsaf_sbm_cfg_mib_en()
1347 dsaf_dev->ae_dev.name, ret); in hns_dsaf_sbm_init()
1365 dsaf_dev->ae_dev.name, flag, cnt); in hns_dsaf_sbm_init()
1646 dsaf_dev->ae_dev.name, in hns_dsaf_set_mac_uc_entry()
1654 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_set_mac_uc_entry()
1702 dsaf_dev->ae_dev.name, in hns_dsaf_rm_mac_addr()
1886 dsaf_dev->ae_dev.name, in hns_dsaf_del_mac_entry()
1970 dsaf_dev->ae_dev.name, in hns_dsaf_del_mac_mc_port()
2833 dsaf_dev->ae_dev.name, port, in set_promisc_tcam_enable()
2845 dsaf_dev->ae_dev.name, port_num, in set_promisc_tcam_enable()
[all …]
H A Dhns_dsaf_mac.c178 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_adjust_link()
202 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num()
210 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num()
216 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
222 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
255 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
374 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_set_multi()
H A Dhns_dsaf_main.h323 struct hnae_ae_dev ae_dev; member

12