Searched refs:tipc_fd (Results 1 – 2 of 2) sorted by relevance
/system/core/trusty/storage/proxy/ |
D | ipc.c | 33 static int tipc_fd = -1; variable 40 assert(tipc_fd == -1); in ipc_connect() 55 tipc_fd = rc; in ipc_connect() 61 assert(tipc_fd >= 0); in ipc_disconnect() 63 tipc_close(tipc_fd); in ipc_disconnect() 64 tipc_fd = -1; in ipc_disconnect() 72 assert(tipc_fd >= 0); in ipc_get_msg() 74 rc = readv(tipc_fd, iovs, 2); in ipc_get_msg() 101 assert(tipc_fd >= 0); in ipc_respond() 105 rc = writev(tipc_fd, iovs, out ? 2 : 1); in ipc_respond()
|
/system/core/trusty/apploader/ |
D | apploader.cpp | 166 static ssize_t send_load_message(int tipc_fd, int package_fd, off64_t package_size) { in send_load_message() argument 178 return tipc_send(tipc_fd, tx, 2, &shm, 1); in send_load_message() 181 static ssize_t read_response(int tipc_fd) { in read_response() argument 183 ssize_t rc = read(tipc_fd, &resp, sizeof(resp)); in read_response() 233 int tipc_fd = -1; in send_app_package() local 242 tipc_fd = tipc_connect(dev_name, APPLOADER_PORT); in send_app_package() 243 if (tipc_fd < 0) { in send_app_package() 244 LOG(ERROR) << "Failed to connect to Trusty app loader: " << strerror(-tipc_fd); in send_app_package() 245 rc = tipc_fd; in send_app_package() 249 rc = send_load_message(tipc_fd, package_fd, package_size); in send_app_package() [all …]
|