Lines Matching refs:cc
114 struct cuse_conn *cc = NULL, *pos; in cuse_open() local
122 cc = pos; in cuse_open()
128 if (!cc) in cuse_open()
135 rc = fuse_do_open(&cc->fc, 0, file, 0); in cuse_open()
137 fuse_conn_put(&cc->fc); in cuse_open()
156 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_ioctl() local
159 if (cc->unrestricted_ioctl) in cuse_file_ioctl()
169 struct cuse_conn *cc = fc_to_cc(ff->fc); in cuse_file_compat_ioctl() local
172 if (cc->unrestricted_ioctl) in cuse_file_compat_ioctl()
309 struct cuse_conn *cc = fc_to_cc(fc), *pos; in cuse_process_init_reply() local
328 cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL; in cuse_process_init_reply()
357 dev_set_drvdata(dev, cc); in cuse_process_init_reply()
386 cc->dev = dev; in cuse_process_init_reply()
387 cc->cdev = cdev; in cuse_process_init_reply()
390 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
413 static int cuse_send_init(struct cuse_conn *cc) in cuse_send_init() argument
418 struct fuse_conn *fc = &cc->fc; in cuse_send_init()
471 struct cuse_conn *cc = fc_to_cc(fc); in cuse_fc_release() local
472 kfree_rcu(cc, fc.rcu); in cuse_fc_release()
493 struct cuse_conn *cc; in cuse_channel_open() local
497 cc = kzalloc(sizeof(*cc), GFP_KERNEL); in cuse_channel_open()
498 if (!cc) in cuse_channel_open()
501 fuse_conn_init(&cc->fc); in cuse_channel_open()
503 fud = fuse_dev_alloc(&cc->fc); in cuse_channel_open()
505 kfree(cc); in cuse_channel_open()
509 INIT_LIST_HEAD(&cc->list); in cuse_channel_open()
510 cc->fc.release = cuse_fc_release; in cuse_channel_open()
512 cc->fc.initialized = 1; in cuse_channel_open()
513 rc = cuse_send_init(cc); in cuse_channel_open()
537 struct cuse_conn *cc = fc_to_cc(fud->fc); in cuse_channel_release() local
542 list_del_init(&cc->list); in cuse_channel_release()
546 if (cc->dev) in cuse_channel_release()
547 device_unregister(cc->dev); in cuse_channel_release()
548 if (cc->cdev) { in cuse_channel_release()
549 unregister_chrdev_region(cc->cdev->dev, 1); in cuse_channel_release()
550 cdev_del(cc->cdev); in cuse_channel_release()
553 fuse_conn_put(&cc->fc); in cuse_channel_release()
572 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_waiting_show() local
574 return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); in cuse_class_waiting_show()
582 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_abort_store() local
584 fuse_abort_conn(&cc->fc); in cuse_class_abort_store()