/drivers/net/ethernet/hisilicon/hns3/ |
D | hnae3.c | 40 struct hnae3_ae_dev *ae_dev, bool is_reg) in hnae3_match_n_instantiate() argument 45 if (!(hnae3_client_match(client->type, ae_dev->dev_type) && in hnae3_match_n_instantiate() 46 hnae_get_bit(ae_dev->flag, HNAE3_DEV_INITED_B))) { in hnae3_match_n_instantiate() 52 ret = ae_dev->ops->init_client_instance(client, ae_dev); in hnae3_match_n_instantiate() 54 dev_err(&ae_dev->pdev->dev, in hnae3_match_n_instantiate() 59 ae_dev->ops->uninit_client_instance(client, ae_dev); in hnae3_match_n_instantiate() 66 struct hnae3_ae_dev *ae_dev; in hnae3_register_client() local 79 list_for_each_entry(ae_dev, &hnae3_ae_dev_list, node) { in hnae3_register_client() 83 ret = hnae3_match_n_instantiate(client, ae_dev, true); in hnae3_register_client() 85 dev_err(&ae_dev->pdev->dev, in hnae3_register_client() [all …]
|
D | hnae3.h | 59 hnae_get_bit(hdev->ae_dev->flag, HNAE3_DEV_SUPPORT_ROCE_B) 62 hnae_get_bit(hdev->ae_dev->flag, HNAE3_DEV_SUPPORT_DCB_B) 264 int (*init_ae_dev)(struct hnae3_ae_dev *ae_dev); 265 void (*uninit_ae_dev)(struct hnae3_ae_dev *ae_dev); 268 struct hnae3_ae_dev *ae_dev); 270 struct hnae3_ae_dev *ae_dev); 447 int hnae3_register_ae_dev(struct hnae3_ae_dev *ae_dev); 448 void hnae3_unregister_ae_dev(struct hnae3_ae_dev *ae_dev);
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_main.c | 88 "%s prs mode str fail!\n", dsaf_dev->ae_dev.name); in hns_dsaf_get_cfg() 384 dsaf_dev->ae_dev.name, i); in hns_dsaf_sbm_cfg_mib_en() 1346 dsaf_dev->ae_dev.name, ret); in hns_dsaf_sbm_init() 1364 dsaf_dev->ae_dev.name, flag, cnt); in hns_dsaf_sbm_init() 1403 "hns_dsaf_init_hw begin %s !\n", dsaf_dev->ae_dev.name); in hns_dsaf_init_hw() 1630 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_set_mac_uc_entry() 1647 dsaf_dev->ae_dev.name, in hns_dsaf_set_mac_uc_entry() 1655 dsaf_dev->ae_dev.name, mac_key.high.val, in hns_dsaf_set_mac_uc_entry() 1690 dsaf_dev->ae_dev.name, mac_entry->addr); in hns_dsaf_rm_mac_addr() 1703 dsaf_dev->ae_dev.name, in hns_dsaf_rm_mac_addr() [all …]
|
D | hns_ae_adapt.c | 31 return container_of(dev, struct dsaf_device, ae_dev); in hns_ae_get_dsaf_dev() 1006 struct hnae_ae_dev *ae_dev = &dsaf_dev->ae_dev; in hns_dsaf_ae_init() local 1020 snprintf(ae_dev->name, AE_NAME_SIZE, "%s%d", DSAF_DEVICE_NAME, in hns_dsaf_ae_init() 1022 ae_dev->ops = &hns_dsaf_ops; in hns_dsaf_ae_init() 1023 ae_dev->dev = dsaf_dev->dev; in hns_dsaf_ae_init() 1025 return hnae_ae_register(ae_dev, THIS_MODULE); in hns_dsaf_ae_init() 1030 hnae_ae_unregister(&dsaf_dev->ae_dev); in hns_dsaf_ae_uninit()
|
D | hns_dsaf_mac.c | 153 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_adjust_link() 177 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 185 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_get_inner_port_num() 191 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 197 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 230 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 349 mac_cb->dsaf_dev->ae_dev.name, in hns_mac_set_multi()
|
D | hns_dsaf_main.h | 327 struct hnae_ae_dev ae_dev; member
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hns3_enet.c | 1352 struct hnae3_ae_dev *ae_dev; in hns3_probe() local 1355 ae_dev = devm_kzalloc(&pdev->dev, sizeof(*ae_dev), in hns3_probe() 1357 if (!ae_dev) { in hns3_probe() 1362 ae_dev->pdev = pdev; in hns3_probe() 1363 ae_dev->flag = ent->driver_data; in hns3_probe() 1364 ae_dev->dev_type = HNAE3_DEV_KNIC; in hns3_probe() 1365 pci_set_drvdata(pdev, ae_dev); in hns3_probe() 1367 return hnae3_register_ae_dev(ae_dev); in hns3_probe() 1375 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev); in hns3_remove() local 1377 hnae3_unregister_ae_dev(ae_dev); in hns3_remove() [all …]
|
D | hclge_main.c | 1248 if (hdev->ae_dev->dev_type == HNAE3_DEV_KNIC) { in hclge_vport_setup() 3943 struct hnae3_ae_dev *ae_dev) in hclge_init_client_instance() argument 3945 struct hclge_dev *hdev = ae_dev->priv; in hclge_init_client_instance() 4008 struct hnae3_ae_dev *ae_dev) in hclge_uninit_client_instance() argument 4010 struct hclge_dev *hdev = ae_dev->priv; in hclge_uninit_client_instance() 4100 static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev) in hclge_init_ae_dev() argument 4102 struct pci_dev *pdev = ae_dev->pdev; in hclge_init_ae_dev() 4114 hdev->ae_dev = ae_dev; in hclge_init_ae_dev() 4115 ae_dev->priv = hdev; in hclge_init_ae_dev() 4215 static void hclge_uninit_ae_dev(struct hnae3_ae_dev *ae_dev) in hclge_uninit_ae_dev() argument [all …]
|
D | hclge_main.h | 393 struct hnae3_ae_dev *ae_dev; member
|