• Home
  • Raw
  • Download

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()
326 int rc; in ecryptfs_miscdev_response() local
332 rc = -EINVAL; in ecryptfs_miscdev_response()
335 rc = ecryptfs_process_response(daemon, msg, seq); in ecryptfs_miscdev_response()
336 if (rc) in ecryptfs_miscdev_response()
338 "Error processing response message; rc = [%d]\n", rc); in ecryptfs_miscdev_response()
340 return rc; in ecryptfs_miscdev_response()
361 ssize_t rc; in ecryptfs_miscdev_write() local
382 rc = ecryptfs_parse_packet_length(packet_size_peek, &packet_size, in ecryptfs_miscdev_write()
384 if (rc) { in ecryptfs_miscdev_write()
386 "rc = [%zd]\n", __func__, rc); in ecryptfs_miscdev_write()
387 return rc; in ecryptfs_miscdev_write()
414 rc = -EINVAL; in ecryptfs_miscdev_write()
419 rc = ecryptfs_miscdev_response(file->private_data, in ecryptfs_miscdev_write()
422 if (rc) { in ecryptfs_miscdev_write()
425 __func__, rc); in ecryptfs_miscdev_write()
436 rc = -EINVAL; in ecryptfs_miscdev_write()
439 rc = count; in ecryptfs_miscdev_write()
442 return rc; in ecryptfs_miscdev_write()
474 int rc; in ecryptfs_init_ecryptfs_miscdev() local
477 rc = misc_register(&ecryptfs_miscdev); in ecryptfs_init_ecryptfs_miscdev()
478 if (rc) in ecryptfs_init_ecryptfs_miscdev()
481 __func__, rc); in ecryptfs_init_ecryptfs_miscdev()
482 return rc; in ecryptfs_init_ecryptfs_miscdev()