Lines Matching refs:uctx

27 	struct fwctl_uctx *uctx;  member
58 struct fwctl_device *fwctl = ucmd->uctx->fwctl; in fwctl_cmd_info()
71 fwctl->ops->info(ucmd->uctx, &driver_info_len); in fwctl_cmd_info()
88 struct fwctl_device *fwctl = ucmd->uctx->fwctl; in fwctl_cmd_rpc()
125 ucmd->uctx, cmd->scope, inbuf, cmd->in_len, &out_len); in fwctl_cmd_rpc()
171 struct fwctl_uctx *uctx = filp->private_data; in fwctl_fops_ioctl() local
186 ucmd.uctx = uctx; in fwctl_fops_ioctl()
201 guard(rwsem_read)(&uctx->fwctl->registration_lock); in fwctl_fops_ioctl()
202 if (!uctx->fwctl->ops) in fwctl_fops_ioctl()
217 struct fwctl_uctx *uctx __free(kfree) = in fwctl_fops_open()
219 if (!uctx) in fwctl_fops_open()
222 uctx->fwctl = fwctl; in fwctl_fops_open()
223 ret = fwctl->ops->open_uctx(uctx); in fwctl_fops_open()
228 list_add_tail(&uctx->uctx_list_entry, &fwctl->uctx_list); in fwctl_fops_open()
232 filp->private_data = no_free_ptr(uctx); in fwctl_fops_open()
236 static void fwctl_destroy_uctx(struct fwctl_uctx *uctx) in fwctl_destroy_uctx() argument
238 lockdep_assert_held(&uctx->fwctl->uctx_list_lock); in fwctl_destroy_uctx()
239 list_del(&uctx->uctx_list_entry); in fwctl_destroy_uctx()
240 uctx->fwctl->ops->close_uctx(uctx); in fwctl_destroy_uctx()
245 struct fwctl_uctx *uctx = filp->private_data; in fwctl_fops_release() local
246 struct fwctl_device *fwctl = uctx->fwctl; in fwctl_fops_release()
255 fwctl_destroy_uctx(uctx); in fwctl_fops_release()
259 kfree(uctx); in fwctl_fops_release()
374 struct fwctl_uctx *uctx; in fwctl_unregister() local
381 while ((uctx = list_first_entry_or_null(&fwctl->uctx_list, in fwctl_unregister()
384 fwctl_destroy_uctx(uctx); in fwctl_unregister()