Home
last modified time | relevance | path

Searched refs:cls_dev (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/hisilicon/hns/
Dhnae.c13 #define cls_to_ae_dev(dev) container_of(dev, struct hnae_ae_dev, cls_dev)
339 put_device(&dev->cls_dev); in hnae_get_handle()
364 put_device(&dev->cls_dev); in hnae_get_handle()
388 put_device(&dev->cls_dev); in hnae_put_handle()
417 hdev->cls_dev.parent = hdev->dev; in hnae_ae_register()
418 hdev->cls_dev.class = hnae_class; in hnae_ae_register()
419 hdev->cls_dev.release = hnae_release; in hnae_ae_register()
420 (void)dev_set_name(&hdev->cls_dev, "hnae%d", hdev->id); in hnae_ae_register()
421 ret = device_register(&hdev->cls_dev); in hnae_ae_register()
445 device_unregister(&hdev->cls_dev); in hnae_ae_unregister()
Dhnae.h531 struct device cls_dev; /* the class dev */ member