Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.c29 struct hnae3_ae_dev *ae_dev, in hnae3_set_client_init_flag() argument
32 if (!client || !ae_dev) in hnae3_set_client_init_flag()
37 hnae3_set_bit(ae_dev->flag, HNAE3_KNIC_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag()
40 hnae3_set_bit(ae_dev->flag, HNAE3_ROCE_CLIENT_INITED_B, inited); in hnae3_set_client_init_flag()
49 struct hnae3_ae_dev *ae_dev) in hnae3_get_client_init_flag() argument
55 inited = hnae3_get_bit(ae_dev->flag, in hnae3_get_client_init_flag()
59 inited = hnae3_get_bit(ae_dev->flag, in hnae3_get_client_init_flag()
70 struct hnae3_ae_dev *ae_dev) in hnae3_init_client_instance() argument
76 hnae3_get_bit(ae_dev->flag, HNAE3_DEV_INITED_B))) { in hnae3_init_client_instance()
80 ret = ae_dev->ops->init_client_instance(client, ae_dev); in hnae3_init_client_instance()
[all …]
Dhnae3.h63 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_ROCE_B)
66 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_DCB_B)
69 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_FD_B)
72 hnae3_get_bit((hdev)->ae_dev->flag, HNAE3_DEV_SUPPORT_GRO_B)
371 int (*init_ae_dev)(struct hnae3_ae_dev *ae_dev);
372 void (*uninit_ae_dev)(struct hnae3_ae_dev *ae_dev);
373 void (*flr_prepare)(struct hnae3_ae_dev *ae_dev);
374 void (*flr_done)(struct hnae3_ae_dev *ae_dev);
376 struct hnae3_ae_dev *ae_dev);
378 struct hnae3_ae_dev *ae_dev);
[all …]
Dhns3_enet.h589 static inline bool hns3_dev_ongoing_func_reset(struct hnae3_ae_dev *ae_dev) in hns3_dev_ongoing_func_reset() argument
591 return (ae_dev && (ae_dev->reset_type == HNAE3_FUNC_RESET || in hns3_dev_ongoing_func_reset()
592 ae_dev->reset_type == HNAE3_FLR_RESET || in hns3_dev_ongoing_func_reset()
593 ae_dev->reset_type == HNAE3_VF_FUNC_RESET || in hns3_dev_ongoing_func_reset()
594 ae_dev->reset_type == HNAE3_VF_FULL_RESET || in hns3_dev_ongoing_func_reset()
595 ae_dev->reset_type == HNAE3_VF_PF_FUNC_RESET)); in hns3_dev_ongoing_func_reset()
Dhns3_enet.c1869 struct hnae3_ae_dev *ae_dev) in hns3_get_dev_capability() argument
1872 hnae3_set_bit(ae_dev->flag, HNAE3_DEV_SUPPORT_FD_B, 1); in hns3_get_dev_capability()
1873 hnae3_set_bit(ae_dev->flag, HNAE3_DEV_SUPPORT_GRO_B, 1); in hns3_get_dev_capability()
1889 struct hnae3_ae_dev *ae_dev; in hns3_probe() local
1892 ae_dev = devm_kzalloc(&pdev->dev, sizeof(*ae_dev), GFP_KERNEL); in hns3_probe()
1893 if (!ae_dev) { in hns3_probe()
1898 ae_dev->pdev = pdev; in hns3_probe()
1899 ae_dev->flag = ent->driver_data; in hns3_probe()
1900 ae_dev->reset_type = HNAE3_NONE_RESET; in hns3_probe()
1901 hns3_get_dev_capability(pdev, ae_dev); in hns3_probe()
[all …]
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_err.c1125 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_mpf_ras_error() local
1145 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1151 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1160 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1166 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1174 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1180 set_bit(HNAE3_GLOBAL_RESET, &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1187 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1195 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
1203 &ae_dev->hw_err_reset_req); in hclge_handle_mpf_ras_error()
[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_mbx.c587 struct hnae3_ae_dev *ae_dev = hdev->ae_dev; in hclge_handle_ncsi_error() local
589 ae_dev->ops->set_default_reset_request(ae_dev, HNAE3_GLOBAL_RESET); in hclge_handle_ncsi_error()
591 ae_dev->ops->reset_event(hdev->pdev, NULL); in hclge_handle_ncsi_error()
Dhclge_main.c61 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,
3389 static enum hnae3_reset_type hclge_get_reset_level(struct hnae3_ae_dev *ae_dev, in hclge_get_reset_level() argument
3393 struct hclge_dev *hdev = ae_dev->priv; in hclge_get_reset_level()
3647 ret = hclge_reset_ae_dev(hdev->ae_dev); in hclge_reset_stack()
3660 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclge_reset() local
3667 ae_dev->reset_type = hdev->reset_type; in hclge_reset()
3735 ae_dev->reset_type = HNAE3_NONE_RESET; in hclge_reset()
3741 reset_level = hclge_get_reset_level(ae_dev, in hclge_reset()
3757 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hclge_reset_event() local
[all …]
Dhclge_main.h715 struct hnae3_ae_dev *ae_dev; member
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c1371 static void hclgevf_flr_done(struct hnae3_ae_dev *ae_dev) in hclgevf_flr_done() argument
1373 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_flr_done()
1535 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); in hclgevf_reset() local
1541 ae_dev->reset_type = hdev->reset_type; in hclgevf_reset()
1587 ae_dev->reset_type = HNAE3_NONE_RESET; in hclgevf_reset()
1633 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hclgevf_reset_event() local
1634 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_reset_event()
1652 static void hclgevf_set_def_reset_request(struct hnae3_ae_dev *ae_dev, in hclgevf_set_def_reset_request() argument
1655 struct hclgevf_dev *hdev = ae_dev->priv; in hclgevf_set_def_reset_request()
1660 static void hclgevf_flr_prepare(struct hnae3_ae_dev *ae_dev) in hclgevf_flr_prepare() argument
[all …]
Dhclgevf_main.h239 struct hnae3_ae_dev *ae_dev; member
/Linux-v5.4/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()
1343 dsaf_dev->ae_dev.name, ret); in hns_dsaf_sbm_init()
1361 dsaf_dev->ae_dev.name, flag, cnt); in hns_dsaf_sbm_init()
1400 "hns_dsaf_init_hw begin %s !\n", dsaf_dev->ae_dev.name); in hns_dsaf_init_hw()
1625 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_set_mac_uc_entry()
1642 dsaf_dev->ae_dev.name, in hns_dsaf_set_mac_uc_entry()
1650 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_set_mac_uc_entry()
1685 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_rm_mac_addr()
1698 dsaf_dev->ae_dev.name, in hns_dsaf_rm_mac_addr()
[all …]
Dhns_ae_adapt.c27 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev()
1002 struct hnae_ae_dev *ae_dev = &dsaf_dev->ae_dev; in hns_dsaf_ae_init() local
1016 snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", DSAF_DEVICE_NAME, in hns_dsaf_ae_init()
1018 ae_dev->ops = &hns_dsaf_ops; in hns_dsaf_ae_init()
1019 ae_dev->dev = dsaf_dev->dev; in hns_dsaf_ae_init()
1021 return hnae_ae_register(ae_dev, THIS_MODULE); in hns_dsaf_ae_init()
1026 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
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c5221 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns_roce_v2_msix_interrupt_abn() local
5222 const struct hnae3_ae_ops *ops = ae_dev->ops; in hns_roce_v2_msix_interrupt_abn()
5231 ops->set_default_reset_request(ae_dev, in hns_roce_v2_msix_interrupt_abn()