Lines Matching refs:cc

118 	struct cuse_conn *cc = NULL, *pos;  in cuse_open()  local
126 cc = pos; in cuse_open()
132 if (!cc) in cuse_open()
139 rc = fuse_do_open(&cc->fm, 0, file, 0); in cuse_open()
141 fuse_conn_put(&cc->fc); in cuse_open()
160 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_ioctl() local
163 if (cc->unrestricted_ioctl) in cuse_file_ioctl()
173 struct cuse_conn *cc = fc_to_cc(ff->fm->fc); in cuse_file_compat_ioctl() local
176 if (cc->unrestricted_ioctl) in cuse_file_compat_ioctl()
328 struct cuse_conn *cc = fc_to_cc(fc), *pos; in cuse_process_init_reply() local
345 cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL; in cuse_process_init_reply()
374 dev_set_drvdata(dev, cc); in cuse_process_init_reply()
403 cc->dev = dev; in cuse_process_init_reply()
404 cc->cdev = cdev; in cuse_process_init_reply()
407 list_add(&cc->list, cuse_conntbl_head(devt)); in cuse_process_init_reply()
430 static int cuse_send_init(struct cuse_conn *cc) in cuse_send_init() argument
434 struct fuse_mount *fm = &cc->fm; in cuse_send_init()
504 struct cuse_conn *cc; in cuse_channel_open() local
508 cc = kzalloc_obj(*cc); in cuse_channel_open()
509 if (!cc) in cuse_channel_open()
516 fuse_conn_init(&cc->fc, &cc->fm, file->f_cred->user_ns, in cuse_channel_open()
519 cc->fc.release = cuse_fc_release; in cuse_channel_open()
520 fud = fuse_dev_alloc_install(&cc->fc); in cuse_channel_open()
521 fuse_conn_put(&cc->fc); in cuse_channel_open()
525 INIT_LIST_HEAD(&cc->list); in cuse_channel_open()
527 cc->fc.initialized = 1; in cuse_channel_open()
528 rc = cuse_send_init(cc); in cuse_channel_open()
552 struct cuse_conn *cc = fc_to_cc(fud->fc); in cuse_channel_release() local
556 list_del_init(&cc->list); in cuse_channel_release()
560 if (cc->dev) in cuse_channel_release()
561 device_unregister(cc->dev); in cuse_channel_release()
562 if (cc->cdev) { in cuse_channel_release()
563 unregister_chrdev_region(cc->cdev->dev, 1); in cuse_channel_release()
564 cdev_del(cc->cdev); in cuse_channel_release()
582 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_waiting_show() local
584 return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); in cuse_class_waiting_show()
592 struct cuse_conn *cc = dev_get_drvdata(dev); in cuse_class_abort_store() local
594 fuse_abort_conn(&cc->fc); in cuse_class_abort_store()