Lines Matching refs:idxd_cdev
54 static inline struct idxd_cdev *inode_idxd_cdev(struct inode *inode) in inode_idxd_cdev()
58 return container_of(cdev, struct idxd_cdev, cdev); in inode_idxd_cdev()
61 static inline struct idxd_wq *idxd_cdev_wq(struct idxd_cdev *idxd_cdev) in idxd_cdev_wq() argument
63 return container_of(idxd_cdev, struct idxd_wq, idxd_cdev); in idxd_cdev_wq()
175 struct idxd_cdev *idxd_cdev = &wq->idxd_cdev; in idxd_cdev_poll() local
179 poll_wait(filp, &idxd_cdev->err_queue, wait); in idxd_cdev_poll()
204 struct idxd_cdev *idxd_cdev = &wq->idxd_cdev; in idxd_wq_cdev_dev_setup() local
209 idxd_cdev->dev = kzalloc(sizeof(*idxd_cdev->dev), GFP_KERNEL); in idxd_wq_cdev_dev_setup()
210 if (!idxd_cdev->dev) in idxd_wq_cdev_dev_setup()
213 dev = idxd_cdev->dev; in idxd_wq_cdev_dev_setup()
234 idxd_cdev->minor = minor; in idxd_wq_cdev_dev_setup()
242 idxd_cdev->dev = NULL; in idxd_wq_cdev_dev_setup()
249 struct idxd_cdev *idxd_cdev = &wq->idxd_cdev; in idxd_wq_cdev_cleanup() local
254 cdev_del(&idxd_cdev->cdev); in idxd_wq_cdev_cleanup()
255 device_unregister(idxd_cdev->dev); in idxd_wq_cdev_cleanup()
260 ida_simple_remove(&cdev_ctx->minor_ida, idxd_cdev->minor); in idxd_wq_cdev_cleanup()
261 idxd_cdev->dev = NULL; in idxd_wq_cdev_cleanup()
262 idxd_cdev->minor = -1; in idxd_wq_cdev_cleanup()
267 struct idxd_cdev *idxd_cdev = &wq->idxd_cdev; in idxd_wq_add_cdev() local
268 struct cdev *cdev = &idxd_cdev->cdev; in idxd_wq_add_cdev()
276 dev = idxd_cdev->dev; in idxd_wq_add_cdev()
286 init_waitqueue_head(&idxd_cdev->err_queue); in idxd_wq_add_cdev()