Lines Matching refs:wq_dev
283 struct wq_device *wq_dev; /* I: for sysfs interface */ member
5457 struct wq_device *wq_dev = container_of(dev, struct wq_device, dev); in dev_to_wq() local
5459 return wq_dev->wq; in dev_to_wq()
5713 struct wq_device *wq_dev = container_of(dev, struct wq_device, dev); in wq_device_release() local
5715 kfree(wq_dev); in wq_device_release()
5735 struct wq_device *wq_dev; in workqueue_sysfs_register() local
5746 wq->wq_dev = wq_dev = kzalloc(sizeof(*wq_dev), GFP_KERNEL); in workqueue_sysfs_register()
5747 if (!wq_dev) in workqueue_sysfs_register()
5750 wq_dev->wq = wq; in workqueue_sysfs_register()
5751 wq_dev->dev.bus = &wq_subsys; in workqueue_sysfs_register()
5752 wq_dev->dev.release = wq_device_release; in workqueue_sysfs_register()
5753 dev_set_name(&wq_dev->dev, "%s", wq->name); in workqueue_sysfs_register()
5759 dev_set_uevent_suppress(&wq_dev->dev, true); in workqueue_sysfs_register()
5761 ret = device_register(&wq_dev->dev); in workqueue_sysfs_register()
5763 put_device(&wq_dev->dev); in workqueue_sysfs_register()
5764 wq->wq_dev = NULL; in workqueue_sysfs_register()
5772 ret = device_create_file(&wq_dev->dev, attr); in workqueue_sysfs_register()
5774 device_unregister(&wq_dev->dev); in workqueue_sysfs_register()
5775 wq->wq_dev = NULL; in workqueue_sysfs_register()
5781 dev_set_uevent_suppress(&wq_dev->dev, false); in workqueue_sysfs_register()
5782 kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); in workqueue_sysfs_register()
5794 struct wq_device *wq_dev = wq->wq_dev; in workqueue_sysfs_unregister() local
5796 if (!wq->wq_dev) in workqueue_sysfs_unregister()
5799 wq->wq_dev = NULL; in workqueue_sysfs_unregister()
5800 device_unregister(&wq_dev->dev); in workqueue_sysfs_unregister()