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()
210 int rc; in ecryptfs_process_response() local
213 rc = -EINVAL; in ecryptfs_process_response()
223 rc = -EINVAL; in ecryptfs_process_response()
228 rc = -EINVAL; in ecryptfs_process_response()
237 rc = -ENOMEM; in ecryptfs_process_response()
242 rc = 0; in ecryptfs_process_response()
246 return rc; in ecryptfs_process_response()
264 int rc; in ecryptfs_send_message_locked() local
266 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_send_message_locked()
267 if (rc) { in ecryptfs_send_message_locked()
268 rc = -ENOTCONN; in ecryptfs_send_message_locked()
272 rc = ecryptfs_acquire_free_msg_ctx(msg_ctx); in ecryptfs_send_message_locked()
273 if (rc) { in ecryptfs_send_message_locked()
282 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
284 if (rc) in ecryptfs_send_message_locked()
286 "userspace daemon; rc = [%d]\n", __func__, rc); in ecryptfs_send_message_locked()
288 return rc; in ecryptfs_send_message_locked()
304 int rc; in ecryptfs_send_message() local
307 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
310 return rc; in ecryptfs_send_message()
328 int rc = 0; in ecryptfs_wait_for_response() local
340 rc = -ENOMSG; in ecryptfs_wait_for_response()
348 return rc; in ecryptfs_wait_for_response()
354 int rc = 0; in ecryptfs_init_messaging() local
371 rc = -ENOMEM; in ecryptfs_init_messaging()
383 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()