Lines Matching refs:event
302 hdmi_event_t event; in cec_receive_message() local
303 event.type = HDMI_EVENT_CEC_MESSAGE; in cec_receive_message()
304 event.dev = (hdmi_cec_device *) ctx; in cec_receive_message()
306 event.cec.length = msg[CEC_OFFSET_FRAME_LENGTH] - 1; in cec_receive_message()
307 event.cec.initiator = (cec_logical_address_t) msg[CEC_OFFSET_SENDER_ID]; in cec_receive_message()
308 event.cec.destination = (cec_logical_address_t) msg[CEC_OFFSET_RECEIVER_ID]; in cec_receive_message()
310 size_t copy_size = event.cec.length > sizeof(event.cec.body) ? in cec_receive_message()
311 sizeof(event.cec.body) : event.cec.length; in cec_receive_message()
312 memcpy(event.cec.body, &msg[CEC_OFFSET_OPCODE],copy_size); in cec_receive_message()
313 hex_to_string((char *) event.cec.body, copy_size, dump); in cec_receive_message()
315 ctx->callback.callback_func(&event, ctx->callback.callback_arg); in cec_receive_message()
323 hdmi_event_t event; in cec_hdmi_hotplug() local
324 event.type = HDMI_EVENT_HOT_PLUG; in cec_hdmi_hotplug()
325 event.dev = (hdmi_cec_device *) ctx; in cec_hdmi_hotplug()
326 event.hotplug.connected = connected ? HDMI_CONNECTED : HDMI_NOT_CONNECTED; in cec_hdmi_hotplug()
327 ctx->callback.callback_func(&event, ctx->callback.callback_arg); in cec_hdmi_hotplug()
549 for (uint32_t event = 0; event < ctx->event_data_list.size(); event++) { in event_monitor() local
550 pollfd &poll_fd = ctx->poll_fds[event]; in event_monitor()
553 ctx->event_data_list[event].event_parser(ctx, event); in event_monitor()
567 for (uint32_t event = 0; event < ctx->node_list.size(); event++) { in populate_event_data() local
568 const char *event_name = ctx->node_list.at(event).c_str(); in populate_event_data()
571 err = set_event_params(ctx, event, &event_data); in populate_event_data()
660 for (uint32_t event = 0; event < ctx->poll_fds.size(); event++) { in cec_monitor_deinit() local
661 close(ctx->poll_fds[event].fd); in cec_monitor_deinit()
662 ctx->poll_fds[event].fd = -1; in cec_monitor_deinit()