Lines Matching refs:wq_dev

307 	struct wq_device	*wq_dev;	/* I: for sysfs interface */  member
5934 struct wq_device *wq_dev = container_of(dev, struct wq_device, dev); in dev_to_wq() local
5936 return wq_dev->wq; in dev_to_wq()
6208 struct wq_device *wq_dev = container_of(dev, struct wq_device, dev); in wq_device_release() local
6210 kfree(wq_dev); in wq_device_release()
6230 struct wq_device *wq_dev; in workqueue_sysfs_register() local
6241 wq->wq_dev = wq_dev = kzalloc(sizeof(*wq_dev), GFP_KERNEL); in workqueue_sysfs_register()
6242 if (!wq_dev) in workqueue_sysfs_register()
6245 wq_dev->wq = wq; in workqueue_sysfs_register()
6246 wq_dev->dev.bus = &wq_subsys; in workqueue_sysfs_register()
6247 wq_dev->dev.release = wq_device_release; in workqueue_sysfs_register()
6248 dev_set_name(&wq_dev->dev, "%s", wq->name); in workqueue_sysfs_register()
6254 dev_set_uevent_suppress(&wq_dev->dev, true); in workqueue_sysfs_register()
6256 ret = device_register(&wq_dev->dev); in workqueue_sysfs_register()
6258 put_device(&wq_dev->dev); in workqueue_sysfs_register()
6259 wq->wq_dev = NULL; in workqueue_sysfs_register()
6267 ret = device_create_file(&wq_dev->dev, attr); in workqueue_sysfs_register()
6269 device_unregister(&wq_dev->dev); in workqueue_sysfs_register()
6270 wq->wq_dev = NULL; in workqueue_sysfs_register()
6276 dev_set_uevent_suppress(&wq_dev->dev, false); in workqueue_sysfs_register()
6277 kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); in workqueue_sysfs_register()
6289 struct wq_device *wq_dev = wq->wq_dev; in workqueue_sysfs_unregister() local
6291 if (!wq->wq_dev) in workqueue_sysfs_unregister()
6294 wq->wq_dev = NULL; in workqueue_sysfs_unregister()
6295 device_unregister(&wq_dev->dev); in workqueue_sysfs_unregister()