Lines Matching refs:rc
41 int rc; in ecryptfs_acquire_free_msg_ctx() local
49 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
56 rc = 0; in ecryptfs_acquire_free_msg_ctx()
60 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
62 return rc; in ecryptfs_acquire_free_msg_ctx()
104 int rc; in ecryptfs_find_daemon_by_euid() local
110 rc = 0; in ecryptfs_find_daemon_by_euid()
114 rc = -EINVAL; in ecryptfs_find_daemon_by_euid()
116 return rc; in ecryptfs_find_daemon_by_euid()
132 int rc = 0; in ecryptfs_spawn_daemon() local
136 rc = -ENOMEM; in ecryptfs_spawn_daemon()
147 return rc; in ecryptfs_spawn_daemon()
159 int rc = 0; in ecryptfs_exorcise_daemon() local
164 rc = -EBUSY; in ecryptfs_exorcise_daemon()
180 return rc; in ecryptfs_exorcise_daemon()
211 int rc; in ecryptfs_process_response() local
214 rc = -EINVAL; in ecryptfs_process_response()
224 rc = -EINVAL; in ecryptfs_process_response()
229 rc = -EINVAL; in ecryptfs_process_response()
238 rc = -ENOMEM; in ecryptfs_process_response()
243 rc = 0; in ecryptfs_process_response()
247 return rc; in ecryptfs_process_response()
266 int rc; in ecryptfs_send_message_locked() local
268 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_send_message_locked()
269 if (rc) { in ecryptfs_send_message_locked()
270 rc = -ENOTCONN; in ecryptfs_send_message_locked()
274 rc = ecryptfs_acquire_free_msg_ctx(msg_ctx); in ecryptfs_send_message_locked()
275 if (rc) { in ecryptfs_send_message_locked()
284 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
286 if (rc) in ecryptfs_send_message_locked()
288 "userspace daemon; rc = [%d]\n", __func__, rc); in ecryptfs_send_message_locked()
290 return rc; in ecryptfs_send_message_locked()
306 int rc; in ecryptfs_send_message() local
309 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
312 return rc; in ecryptfs_send_message()
330 int rc = 0; in ecryptfs_wait_for_response() local
342 rc = -ENOMSG; in ecryptfs_wait_for_response()
350 return rc; in ecryptfs_wait_for_response()
356 int rc = 0; in ecryptfs_init_messaging() local
372 rc = -ENOMEM; in ecryptfs_init_messaging()
384 rc = -ENOMEM; in ecryptfs_init_messaging()
404 rc = ecryptfs_init_ecryptfs_miscdev(); in ecryptfs_init_messaging()
405 if (rc) in ecryptfs_init_messaging()
408 return rc; in ecryptfs_init_messaging()
432 int rc; in ecryptfs_release_messaging() local
437 rc = ecryptfs_exorcise_daemon(daemon); in ecryptfs_release_messaging()
438 if (rc) in ecryptfs_release_messaging()
443 __func__, rc); in ecryptfs_release_messaging()