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