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()
323 struct cuse_conn *cc = fc_to_cc(fc), *pos; in cuse_process_init_reply() local
340 cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL; in cuse_process_init_reply()
369 dev_set_drvdata(dev, cc); in cuse_process_init_reply()
398 cc->dev = dev; in cuse_process_init_reply()
399 cc->cdev = cdev; in cuse_process_init_reply()
402 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
425 static int cuse_send_init(struct cuse_conn *cc) in cuse_send_init() argument
429 struct fuse_mount *fm = &cc->fm; in cuse_send_init()
477 struct cuse_conn *cc = fc_to_cc(fc); in cuse_fc_release() local
478 kfree_rcu(cc, fc.rcu); in cuse_fc_release()
499 struct cuse_conn *cc; in cuse_channel_open() local
503 cc = kzalloc(sizeof(*cc), GFP_KERNEL); in cuse_channel_open()
504 if (!cc) in cuse_channel_open()
511 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open()
514 cc->fc.release = cuse_fc_release; in cuse_channel_open()
515 fud = fuse_dev_alloc_install(&cc->fc); in cuse_channel_open()
516 fuse_conn_put(&cc->fc); in cuse_channel_open()
520 INIT_LIST_HEAD(&cc->list); in cuse_channel_open()
522 cc->fc.initialized = 1; in cuse_channel_open()
523 rc = cuse_send_init(cc); in cuse_channel_open()
547 struct cuse_conn *cc = fc_to_cc(fud->fc); in cuse_channel_release() local
552 list_del_init(&cc->list); in cuse_channel_release()
556 if (cc->dev) in cuse_channel_release()
557 device_unregister(cc->dev); in cuse_channel_release()
558 if (cc->cdev) { in cuse_channel_release()
559 unregister_chrdev_region(cc->cdev->dev, 1); in cuse_channel_release()
560 cdev_del(cc->cdev); in cuse_channel_release()
580 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_waiting_show() local
582 return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); in cuse_class_waiting_show()
590 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_abort_store() local
592 fuse_abort_conn(&cc->fc); in cuse_class_abort_store()