Lines Matching refs:rc
54 int rc; in ecryptfs_acquire_free_msg_ctx() local
62 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
69 rc = 0; in ecryptfs_acquire_free_msg_ctx()
73 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx()
75 return rc; in ecryptfs_acquire_free_msg_ctx()
117 int rc; in ecryptfs_find_daemon_by_euid() local
123 rc = 0; in ecryptfs_find_daemon_by_euid()
127 rc = -EINVAL; in ecryptfs_find_daemon_by_euid()
129 return rc; in ecryptfs_find_daemon_by_euid()
145 int rc = 0; in ecryptfs_spawn_daemon() local
149 rc = -ENOMEM; in ecryptfs_spawn_daemon()
162 return rc; in ecryptfs_spawn_daemon()
174 int rc = 0; in ecryptfs_exorcise_daemon() local
179 rc = -EBUSY; in ecryptfs_exorcise_daemon()
195 return rc; in ecryptfs_exorcise_daemon()
225 int rc; in ecryptfs_process_response() local
228 rc = -EINVAL; in ecryptfs_process_response()
238 rc = -EINVAL; in ecryptfs_process_response()
243 rc = -EINVAL; in ecryptfs_process_response()
252 rc = -ENOMEM; in ecryptfs_process_response()
259 rc = 0; in ecryptfs_process_response()
263 return rc; in ecryptfs_process_response()
281 int rc; in ecryptfs_send_message_locked() local
283 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_send_message_locked()
284 if (rc) { in ecryptfs_send_message_locked()
285 rc = -ENOTCONN; in ecryptfs_send_message_locked()
289 rc = ecryptfs_acquire_free_msg_ctx(msg_ctx); in ecryptfs_send_message_locked()
290 if (rc) { in ecryptfs_send_message_locked()
299 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
301 if (rc) in ecryptfs_send_message_locked()
303 "userspace daemon; rc = [%d]\n", __func__, rc); in ecryptfs_send_message_locked()
305 return rc; in ecryptfs_send_message_locked()
321 int rc; in ecryptfs_send_message() local
324 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
327 return rc; in ecryptfs_send_message()
345 int rc = 0; in ecryptfs_wait_for_response() local
357 rc = -ENOMSG; in ecryptfs_wait_for_response()
365 return rc; in ecryptfs_wait_for_response()
371 int rc = 0; in ecryptfs_init_messaging() local
388 rc = -ENOMEM; in ecryptfs_init_messaging()
400 rc = -ENOMEM; in ecryptfs_init_messaging()
422 rc = ecryptfs_init_ecryptfs_miscdev(); in ecryptfs_init_messaging()
423 if (rc) in ecryptfs_init_messaging()
426 return rc; in ecryptfs_init_messaging()
449 int rc; in ecryptfs_release_messaging() local
454 rc = ecryptfs_exorcise_daemon(daemon); in ecryptfs_release_messaging()
455 if (rc) in ecryptfs_release_messaging()
460 __func__, rc); in ecryptfs_release_messaging()