Lines Matching refs:msg

16 				    struct cec_msg *msg, u8 reason)  in cec_feature_abort_reason()  argument
24 if (msg->msg[1] == CEC_MSG_FEATURE_ABORT) in cec_feature_abort_reason()
27 if (cec_msg_initiator(msg) == CEC_LOG_ADDR_UNREGISTERED) in cec_feature_abort_reason()
29 cec_msg_set_reply_to(&tx_msg, msg); in cec_feature_abort_reason()
30 cec_msg_feature_abort(&tx_msg, msg->msg[1], reason); in cec_feature_abort_reason()
38 struct cec_msg msg; in cec_port_out_active_source() local
43 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_port_out_active_source()
44 cec_msg_active_source(&msg, adap->phys_addr); in cec_port_out_active_source()
45 cec_transmit_msg(adap, &msg, false); in cec_port_out_active_source()
61 struct cec_msg msg; in cec_port_out_standby() local
65 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_port_out_standby()
66 cec_msg_standby(&msg); in cec_port_out_standby()
67 cec_transmit_msg(adap, &msg, false); in cec_port_out_standby()
84 struct cec_msg msg; in cec_port_out_wakeup() local
88 cec_msg_init(&msg, la, 0); in cec_port_out_wakeup()
89 msg.len = 2; in cec_port_out_wakeup()
90 msg.msg[1] = opcode; in cec_port_out_wakeup()
91 cec_transmit_msg(adap, &msg, false); in cec_port_out_wakeup()
153 struct cec_msg msg; in cec_out_passthrough() local
157 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_out_passthrough()
158 msg.len = in_msg->len; in cec_out_passthrough()
159 memcpy(msg.msg + 1, in_msg->msg + 1, msg.len - 1); in cec_out_passthrough()
160 cec_transmit_msg(adap, &msg, false); in cec_out_passthrough()
246 struct cec_msg msg; in cec_out_request_current_latency() local
250 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_out_request_current_latency()
251 cec_msg_request_current_latency(&msg, true, adap->phys_addr); in cec_out_request_current_latency()
252 if (cec_transmit_msg(adap, &msg, false)) in cec_out_request_current_latency()
254 p->out_request_current_latency_seq = msg.sequence | (1U << 31); in cec_out_request_current_latency()
340 struct cec_msg msg; in cec_out_give_device_power_status() local
345 cec_msg_init(&msg, adap->log_addrs.log_addr[0], 0); in cec_out_give_device_power_status()
346 cec_msg_give_device_power_status(&msg, true); in cec_out_give_device_power_status()
347 if (cec_transmit_msg(adap, &msg, false)) in cec_out_give_device_power_status()
349 p->out_give_device_power_status_seq = msg.sequence | (1U << 31); in cec_out_give_device_power_status()
359 int cec_splitter_received_input(struct cec_splitter_port *p, struct cec_msg *msg) in cec_splitter_received_input() argument
361 if (!cec_msg_status_is_ok(msg)) in cec_splitter_received_input()
364 if (msg->len < 2) in cec_splitter_received_input()
367 switch (msg->msg[1]) { in cec_splitter_received_input()
384 cec_out_wakeup(p->splitter, msg->msg[1]); in cec_splitter_received_input()
392 cec_out_passthrough(p->splitter, msg); in cec_splitter_received_input()
397 cec_msg_initiator(msg); in cec_splitter_received_input()
399 cec_feature_abort_reason(p->adap, msg, in cec_splitter_received_input()
407 cec_msg_initiator(msg); in cec_splitter_received_input()
408 cec_ops_request_current_latency(msg, &pa); in cec_splitter_received_input()
411 cec_feature_abort_reason(p->adap, msg, in cec_splitter_received_input()
423 const struct cec_msg *msg, in cec_splitter_nb_transmit_canceled_output() argument
427 u32 seq = msg->sequence | (1U << 31); in cec_splitter_nb_transmit_canceled_output()
437 if ((cec_msg_recv_is_tx_result(msg) && !(msg->tx_status & CEC_TX_STATUS_OK)) || in cec_splitter_nb_transmit_canceled_output()
438 (cec_msg_recv_is_rx_result(msg) && !(msg->rx_status & CEC_RX_STATUS_OK))) { in cec_splitter_nb_transmit_canceled_output()
439 u8 tx_op = msg->msg[1]; in cec_splitter_nb_transmit_canceled_output()
441 if (msg->len < 2) in cec_splitter_nb_transmit_canceled_output()
443 if (cec_msg_recv_is_rx_result(msg) && in cec_splitter_nb_transmit_canceled_output()
444 (msg->rx_status & CEC_RX_STATUS_FEATURE_ABORT)) in cec_splitter_nb_transmit_canceled_output()
445 tx_op = msg->msg[2]; in cec_splitter_nb_transmit_canceled_output()
469 if (cec_msg_recv_is_tx_result(msg)) { in cec_splitter_nb_transmit_canceled_output()
472 p->out_request_current_latency_ts = ns_to_ktime(msg->tx_ts); in cec_splitter_nb_transmit_canceled_output()
481 int cec_splitter_received_output(struct cec_splitter_port *p, struct cec_msg *msg, in cec_splitter_received_output() argument
486 u32 seq = msg->sequence | (1U << 31); in cec_splitter_received_output()
490 if (!adap->is_configured || msg->len < 2) in cec_splitter_received_output()
493 switch (msg->msg[1]) { in cec_splitter_received_output()
497 cec_ops_report_power_status(msg, &pwr); in cec_splitter_received_output()
517 cec_ops_report_current_latency(msg, &pa, in cec_splitter_received_output()
537 cec_ops_active_source(msg, &pa); in cec_splitter_received_output()
545 cec_msg_set_reply_to(&reply, msg); in cec_splitter_received_output()
551 cec_msg_set_reply_to(&reply, msg); in cec_splitter_received_output()
559 cec_ops_set_stream_path(msg, &pa); in cec_splitter_received_output()
561 cec_msg_set_reply_to(&reply, msg); in cec_splitter_received_output()