Lines Matching refs:cc
117 struct cuse_conn *cc = NULL, *pos; in cuse_open() local
125 cc = pos; in cuse_open()
131 if (!cc) in cuse_open()
138 rc = fuse_do_open(&cc->fm, 0, file, 0); in cuse_open()
140 fuse_conn_put(&cc->fc); in cuse_open()
159 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_ioctl() local
162 if (cc->unrestricted_ioctl) in cuse_file_ioctl()
172 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_compat_ioctl() local
175 if (cc->unrestricted_ioctl) in cuse_file_compat_ioctl()
327 struct cuse_conn *cc = fc_to_cc(fc), *pos; in cuse_process_init_reply() local
344 cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL; in cuse_process_init_reply()
373 dev_set_drvdata(dev, cc); in cuse_process_init_reply()
402 cc->dev = dev; in cuse_process_init_reply()
403 cc->cdev = cdev; in cuse_process_init_reply()
406 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
429 static int cuse_send_init(struct cuse_conn *cc) in cuse_send_init() argument
433 struct fuse_mount *fm = &cc->fm; in cuse_send_init()
503 struct cuse_conn *cc; in cuse_channel_open() local
507 cc = kzalloc(sizeof(*cc), GFP_KERNEL); in cuse_channel_open()
508 if (!cc) in cuse_channel_open()
515 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open()
518 cc->fc.release = cuse_fc_release; in cuse_channel_open()
519 fud = fuse_dev_alloc_install(&cc->fc); in cuse_channel_open()
520 fuse_conn_put(&cc->fc); in cuse_channel_open()
524 INIT_LIST_HEAD(&cc->list); in cuse_channel_open()
526 cc->fc.initialized = 1; in cuse_channel_open()
527 rc = cuse_send_init(cc); in cuse_channel_open()
551 struct cuse_conn *cc = fc_to_cc(fud->fc); in cuse_channel_release() local
555 list_del_init(&cc->list); in cuse_channel_release()
559 if (cc->dev) in cuse_channel_release()
560 device_unregister(cc->dev); in cuse_channel_release()
561 if (cc->cdev) { in cuse_channel_release()
562 unregister_chrdev_region(cc->cdev->dev, 1); in cuse_channel_release()
563 cdev_del(cc->cdev); in cuse_channel_release()
581 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_waiting_show() local
583 return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); in cuse_class_waiting_show()
591 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_abort_store() local
593 fuse_abort_conn(&cc->fc); in cuse_class_abort_store()