Home
last modified time | relevance | path

Searched refs:cdev_ctx (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/dma/idxd/
H A Dcdev.c41 struct idxd_cdev_context *cdev_ctx; in idxd_cdev_dev_release() local
44 cdev_ctx = &ictx[wq->idxd->type]; in idxd_cdev_dev_release()
45 ida_simple_remove(&cdev_ctx->minor_ida, idxd_cdev->minor); in idxd_cdev_dev_release()
203 struct idxd_cdev_context *cdev_ctx; in idxd_wq_add_cdev() local
213 cdev_ctx = &ictx[wq->idxd->type]; in idxd_wq_add_cdev()
214 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev()
225 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev()
251 struct idxd_cdev_context *cdev_ctx; in idxd_wq_del_cdev() local
253 cdev_ctx = &ictx[wq->idxd->type]; in idxd_wq_del_cdev()
/kernel/linux/linux-6.6/drivers/dma/idxd/
H A Dcdev.c164 struct idxd_cdev_context *cdev_ctx; in idxd_cdev_dev_release() local
167 cdev_ctx = &ictx[wq->idxd->data->type]; in idxd_cdev_dev_release()
168 ida_simple_remove(&cdev_ctx->minor_ida, idxd_cdev->minor); in idxd_cdev_dev_release()
454 struct idxd_cdev_context *cdev_ctx; in idxd_wq_add_cdev() local
465 cdev_ctx = &ictx[wq->idxd->data->type]; in idxd_wq_add_cdev()
466 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev()
477 dev->devt = MKDEV(MAJOR(cdev_ctx->devt), minor); in idxd_wq_add_cdev()

Completed in 2 milliseconds