Lines Matching refs:rc
67 int rc; in ecryptfs_miscdev_open() local
70 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_miscdev_open()
71 if (!rc) { in ecryptfs_miscdev_open()
72 rc = -EINVAL; in ecryptfs_miscdev_open()
75 rc = ecryptfs_spawn_daemon(&daemon, file); in ecryptfs_miscdev_open()
76 if (rc) { in ecryptfs_miscdev_open()
78 "rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_open()
83 rc = -EBUSY; in ecryptfs_miscdev_open()
93 return rc; in ecryptfs_miscdev_open()
110 int rc; in ecryptfs_miscdev_release() local
119 rc = ecryptfs_exorcise_daemon(daemon); in ecryptfs_miscdev_release()
121 if (rc) { in ecryptfs_miscdev_release()
124 "bug.\n", __func__, rc); in ecryptfs_miscdev_release()
127 return rc; in ecryptfs_miscdev_release()
219 int rc; in ecryptfs_miscdev_read() local
223 rc = 0; in ecryptfs_miscdev_read()
229 rc = 0; in ecryptfs_miscdev_read()
237 rc = wait_event_interruptible( in ecryptfs_miscdev_read()
240 if (rc < 0) { in ecryptfs_miscdev_read()
241 rc = 0; in ecryptfs_miscdev_read()
246 rc = 0; in ecryptfs_miscdev_read()
260 rc = ecryptfs_write_packet_length(packet_length, in ecryptfs_miscdev_read()
263 if (rc) { in ecryptfs_miscdev_read()
264 rc = 0; in ecryptfs_miscdev_read()
266 "rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_read()
276 rc = 0; in ecryptfs_miscdev_read()
282 rc = -EFAULT; in ecryptfs_miscdev_read()
297 rc = i; in ecryptfs_miscdev_read()
310 return rc; in ecryptfs_miscdev_read()
325 int rc; in ecryptfs_miscdev_response() local
331 rc = -EINVAL; in ecryptfs_miscdev_response()
334 rc = ecryptfs_process_response(daemon, msg, seq); in ecryptfs_miscdev_response()
335 if (rc) in ecryptfs_miscdev_response()
337 "Error processing response message; rc = [%d]\n", rc); in ecryptfs_miscdev_response()
339 return rc; in ecryptfs_miscdev_response()
360 ssize_t rc; in ecryptfs_miscdev_write() local
381 rc = ecryptfs_parse_packet_length(packet_size_peek, &packet_size, in ecryptfs_miscdev_write()
383 if (rc) { in ecryptfs_miscdev_write()
385 "rc = [%zd]\n", __func__, rc); in ecryptfs_miscdev_write()
386 return rc; in ecryptfs_miscdev_write()
413 rc = -EINVAL; in ecryptfs_miscdev_write()
418 rc = ecryptfs_miscdev_response(file->private_data, in ecryptfs_miscdev_write()
421 if (rc) { in ecryptfs_miscdev_write()
424 __func__, rc); in ecryptfs_miscdev_write()
435 rc = -EINVAL; in ecryptfs_miscdev_write()
438 rc = count; in ecryptfs_miscdev_write()
441 return rc; in ecryptfs_miscdev_write()
473 int rc; in ecryptfs_init_ecryptfs_miscdev() local
476 rc = misc_register(&ecryptfs_miscdev); in ecryptfs_init_ecryptfs_miscdev()
477 if (rc) in ecryptfs_init_ecryptfs_miscdev()
480 __func__, rc); in ecryptfs_init_ecryptfs_miscdev()
481 return rc; in ecryptfs_init_ecryptfs_miscdev()