Lines Matching refs:ret

61     int ret;  in hdmicec_add_logical_address()  local
68 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address()
69 if (ret) in hdmicec_add_logical_address()
70 return ret; in hdmicec_add_logical_address()
130 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_add_logical_address()
131 if (ret) { in hdmicec_add_logical_address()
133 return ret; in hdmicec_add_logical_address()
145 int ret; in hdmicec_clear_logical_address() local
148 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in hdmicec_clear_logical_address()
149 if (ret) in hdmicec_clear_logical_address()
156 int ret = ioctl(ctx->cec_fd, CEC_ADAP_G_PHYS_ADDR, addr); in hdmicec_get_physical_address() local
157 if (ret) in hdmicec_get_physical_address()
160 return ret; in hdmicec_get_physical_address()
167 int ret; in hdmicec_send_message() local
177 ret = ioctl(ctx->cec_fd, CEC_TRANSMIT, &cec_msg); in hdmicec_send_message()
178 if (ret) { in hdmicec_send_message()
225 int ret; in hdmicec_get_port_info() local
227 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_PHYS_ADDR, &ctx->port_info.physical_address); in hdmicec_get_port_info()
228 if (ret) in hdmicec_get_port_info()
258 int ret; in hdmicec_is_connected() local
262 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_PHYS_ADDR, in hdmicec_is_connected()
264 if (ret) { in hdmicec_is_connected()
266 return ret; in hdmicec_is_connected()
278 int ret; in event_thread() local
292 ret = poll(ufds, 3, -1); in event_thread()
294 if (ret <= 0) in event_thread()
304 ret = ioctl(ctx->cec_fd, CEC_DQEVENT, &ev); in event_thread()
305 if (ret) in event_thread()
329 ret = ioctl(ctx->cec_fd, CEC_RECEIVE, &msg); in event_thread()
330 if (ret) { in event_thread()
393 int ret; in cec_init() local
396 ret = ioctl(ctx->cec_fd, CEC_ADAP_G_CAPS, &caps); in cec_init()
397 if (ret) in cec_init()
398 return ret; in cec_init()
410 ret = ioctl(ctx->cec_fd, CEC_S_MODE, &mode); in cec_init()
411 if (ret) in cec_init()
412 return ret; in cec_init()
432 ret = ioctl(ctx->cec_fd, CEC_ADAP_S_LOG_ADDRS, &laddrs); in cec_init()
433 if (ret) in cec_init()
434 return ret; in cec_init()
438 return ret; in cec_init()
446 int ret; in open_hdmi_cec() local
486 ret = cec_init(ctx); in open_hdmi_cec()
487 if (ret) in open_hdmi_cec()