Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c16 struct hnae3_ae_dev *ae_dev; in hnae3_unregister_ae_algo_prepare() local
21 list_for_each_entry(ae_dev, &hnae3_ae_dev_list, node) { in hnae3_unregister_ae_algo_prepare()
22 if (!hnae3_get_bit(ae_dev->flag, HNAE3_DEV_INITED_B)) in hnae3_unregister_ae_algo_prepare()
25 pci_id = pci_match_id(ae_algo->pdev_id_table, ae_dev->pdev); in hnae3_unregister_ae_algo_prepare()
29 pci_disable_sriov(ae_dev->pdev); in hnae3_unregister_ae_algo_prepare()
50 struct hnae3_ae_dev *ae_dev, in hnae3_set_client_init_flag() argument
53 if (!client || !ae_dev) in hnae3_set_client_init_flag()
58 hnae3_set_bit(ae_dev->flag, HNAE3_KNIC_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag()
61 hnae3_set_bit(ae_dev->flag, HNAE3_ROCE_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag()
70 struct hnae3_ae_dev *ae_dev) in hnae3_get_client_init_flag() argument
[all …]
Dhnae3.h69 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_ROCE_B)
72 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_DCB_B)
92 test_bit(HNAE3_DEV_SUPPORT_FD_B, (hdev)->ae_dev->caps)
95 test_bit(HNAE3_DEV_SUPPORT_GRO_B, (hdev)->ae_dev->caps)
98 test_bit(HNAE3_DEV_SUPPORT_FEC_B, (hdev)->ae_dev->caps)
101 test_bit(HNAE3_DEV_SUPPORT_UDP_GSO_B, (hdev)->ae_dev->caps)
104 test_bit(HNAE3_DEV_SUPPORT_QB_B, (hdev)->ae_dev->caps)
107 test_bit(HNAE3_DEV_SUPPORT_FD_FORWARD_TC_B, (hdev)->ae_dev->caps)
110 test_bit(HNAE3_DEV_SUPPORT_PTP_B, (hdev)->ae_dev->caps)
113 test_bit(HNAE3_DEV_SUPPORT_INT_QL_B, (hdev)->ae_dev->caps)
[all …]
Dhns3_ethtool.c82 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_lp_setup() local
102 if (ret || ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup()
153 struct hnae3_ae_dev *ae_dev; in hns3_lp_setup_skb() local
170 ae_dev = pci_get_drvdata(handle->pdev); in hns3_lp_setup_skb()
171 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_lp_setup_skb()
793 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_set_link_ksettings() local
815 if (ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hns3_set_link_ksettings()
879 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_set_rss() local
884 if ((ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2 && in hns3_set_rss()
1392 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(handle->pdev); in hns3_get_fecparam() local
[all …]
Dhns3_enet.c638 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_enable_vlan_filter() local
641 if (ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2 && in hns3_enable_vlan_filter()
2141 struct hnae3_ae_dev *ae_dev; in hns3_probe() local
2144 ae_dev = devm_kzalloc(&pdev->dev, sizeof(*ae_dev), GFP_KERNEL); in hns3_probe()
2145 if (!ae_dev) in hns3_probe()
2148 ae_dev->pdev = pdev; in hns3_probe()
2149 ae_dev->flag = ent->driver_data; in hns3_probe()
2150 pci_set_drvdata(pdev, ae_dev); in hns3_probe()
2152 ret = hnae3_register_ae_dev(ae_dev); in hns3_probe()
2164 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_remove() local
[all …]
Dhns3_debugfs.c18 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_queue_info() local
128 if (hnae3_ae_dev_tqp_txrx_indep_supported(ae_dev)) { in hns3_dbg_queue_info()
310 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_dev_caps() local
313 caps = ae_dev->caps; in hns3_dbg_dev_caps()
331 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev); in hns3_dbg_dev_specs() local
332 struct hnae3_dev_specs *dev_specs = &ae_dev->dev_specs; in hns3_dbg_dev_specs()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_err.c732 if (hdev->ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hclge_config_ncsi_hw_err_int()
812 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hclge_config_ppp_error_interrupt()
1045 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) in hclge_config_ssu_hw_err_int()
1126 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_mpf_ras_error() local
1146 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1152 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1161 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1167 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1175 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1181 set_bit(HNAE3_GLOBAL_RESET, &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
[all …]
Dhclge_cmd.c335 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_set_default_capability() local
337 set_bit(HNAE3_DEV_SUPPORT_FD_B, ae_dev->caps); in hclge_set_default_capability()
338 set_bit(HNAE3_DEV_SUPPORT_GRO_B, ae_dev->caps); in hclge_set_default_capability()
339 set_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps); in hclge_set_default_capability()
345 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_parse_capability() local
351 set_bit(HNAE3_DEV_SUPPORT_UDP_GSO_B, ae_dev->caps); in hclge_parse_capability()
353 set_bit(HNAE3_DEV_SUPPORT_PTP_B, ae_dev->caps); in hclge_parse_capability()
355 set_bit(HNAE3_DEV_SUPPORT_INT_QL_B, ae_dev->caps); in hclge_parse_capability()
357 set_bit(HNAE3_DEV_SUPPORT_TQP_TXRX_INDEP_B, ae_dev->caps); in hclge_parse_capability()
363 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_cmd_query_version_and_capability() local
[all …]
Dhclge_err.h132 void hclge_handle_all_hns_hw_errors(struct hnae3_ae_dev *ae_dev);
133 pci_ers_result_t hclge_handle_hw_ras_error(struct hnae3_ae_dev *ae_dev);
Dhclge_main.c63 static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev);
67 static enum hnae3_reset_type hclge_get_reset_level(struct hnae3_ae_dev *ae_dev,
743 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2 || in hclge_get_sset_count()
1364 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_set_default_dev_specs() local
1366 ae_dev->dev_specs.max_non_tso_bd_num = HCLGE_MAX_NON_TSO_BD_NUM; in hclge_set_default_dev_specs()
1367 ae_dev->dev_specs.rss_ind_tbl_size = HCLGE_RSS_IND_TBL_SIZE; in hclge_set_default_dev_specs()
1368 ae_dev->dev_specs.rss_key_size = HCLGE_RSS_KEY_SIZE; in hclge_set_default_dev_specs()
1369 ae_dev->dev_specs.max_tm_rate = HCLGE_ETHER_MAX_RATE; in hclge_set_default_dev_specs()
1375 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_parse_dev_specs() local
1380 ae_dev->dev_specs.max_non_tso_bd_num = req0->max_non_tso_bd_num; in hclge_parse_dev_specs()
[all …]
Dhclge_tm.c409 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_port_shaper_cfg()
525 max_tx_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_qs_shaper_cfg()
529 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_qs_shaper_cfg()
666 hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_info_init()
712 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V3) in hclge_tm_pfc_info_update()
750 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pg_shaper_cfg()
884 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_tc_base_shaper_cfg()
928 hdev->ae_dev->dev_specs.max_tm_rate); in hclge_tm_pri_vnet_base_shaper_pri_cfg()
956 u32 max_tm_rate = hdev->ae_dev->dev_specs.max_tm_rate; in hclge_tm_pri_vnet_base_shaper_qs_cfg()
Dhclge_mbx.c671 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_ncsi_error() local
673 ae_dev->ops->set_default_reset_request(ae_dev, HNAE3_GLOBAL_RESET); in hclge_handle_ncsi_error()
675 ae_dev->ops->reset_event(hdev->pdev, NULL); in hclge_handle_ncsi_error()
Dhclge_main.h725 struct hnae3_ae_dev *ae_dev; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_cmd.c318 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclgevf_set_default_capability() local
320 set_bit(HNAE3_DEV_SUPPORT_FD_B, ae_dev->caps); in hclgevf_set_default_capability()
321 set_bit(HNAE3_DEV_SUPPORT_GRO_B, ae_dev->caps); in hclgevf_set_default_capability()
322 set_bit(HNAE3_DEV_SUPPORT_FEC_B, ae_dev->caps); in hclgevf_set_default_capability()
328 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclgevf_parse_capability() local
334 set_bit(HNAE3_DEV_SUPPORT_UDP_GSO_B, ae_dev->caps); in hclgevf_parse_capability()
336 set_bit(HNAE3_DEV_SUPPORT_INT_QL_B, ae_dev->caps); in hclgevf_parse_capability()
338 set_bit(HNAE3_DEV_SUPPORT_TQP_TXRX_INDEP_B, ae_dev->caps); in hclgevf_parse_capability()
343 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclgevf_cmd_query_version_and_capability() local
357 ae_dev->dev_version = le32_to_cpu(resp->hardware) << in hclgevf_cmd_query_version_and_capability()
[all …]
Dhclgevf_main.c749 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) { in hclgevf_get_rss()
814 if (hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2) { in hclgevf_set_rss()
883 if (hdev->ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hclgevf_set_rss_tuple()
920 if (hdev->ae_dev->dev_version <= HNAE3_DEVICE_VERSION_V2 && in hclgevf_set_rss_tuple()
961 if (hdev->ae_dev->dev_version < HNAE3_DEVICE_VERSION_V2) in hclgevf_get_rss_tuple()
1176 en_bc_pmc = hdev->ae_dev->dev_version >= HNAE3_DEVICE_VERSION_V2; in hclgevf_set_promisc_mode()
2014 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hclgevf_reset_event() local
2015 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_reset_event()
2033 static void hclgevf_set_def_reset_request(struct hnae3_ae_dev *ae_dev, in hclgevf_set_def_reset_request() argument
2036 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_set_def_reset_request()
[all …]
Dhclgevf_main.h266 struct hnae3_ae_dev *ae_dev; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c84 "%s prs mode str fail!\n", dsaf_dev->ae_dev.name); in hns_dsaf_get_cfg()
380 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()
1404 "hns_dsaf_init_hw begin %s !\n", dsaf_dev->ae_dev.name); in hns_dsaf_init_hw()
1629 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_set_mac_uc_entry()
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()
1689 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_rm_mac_addr()
1702 dsaf_dev->ae_dev.name, in hns_dsaf_rm_mac_addr()
[all …]
Dhns_ae_adapt.c25 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev()
1000 struct hnae_ae_dev *ae_dev = &dsaf_dev->ae_dev; in hns_dsaf_ae_init() local
1014 snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", DSAF_DEVICE_NAME, in hns_dsaf_ae_init()
1016 ae_dev->ops = &hns_dsaf_ops; in hns_dsaf_ae_init()
1017 ae_dev->dev = dsaf_dev->dev; in hns_dsaf_ae_init()
1019 return hnae_ae_register(ae_dev, THIS_MODULE); in hns_dsaf_ae_init()
1024 hnae_ae_unregister(&dsaf_dev->ae_dev); in hns_dsaf_ae_uninit()
Dhns_dsaf_mac.c149 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_adjust_link()
173 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num()
181 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num()
187 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
193 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
226 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
345 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_set_multi()
Dhns_dsaf_main.h323 struct hnae_ae_dev ae_dev; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c5652 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns_roce_v2_msix_interrupt_abn() local
5653 const struct hnae3_ae_ops *ops = ae_dev->ops; in hns_roce_v2_msix_interrupt_abn()
5662 ops->set_default_reset_request(ae_dev, in hns_roce_v2_msix_interrupt_abn()