Lines Matching refs:xfers
53 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in xfer_ready()
54 if (dev->xfers[i].sft && in xfer_ready()
55 dev->xfers[i].sft <= dev->cec_sft) { in xfer_ready()
77 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in adjust_sfts()
78 if (dev->xfers[i].sft <= CEC_SIGNAL_FREE_TIME_RETRY) in adjust_sfts()
80 initiator = dev->xfers[i].msg[0] >> 4; in adjust_sfts()
82 dev->xfers[i].sft = CEC_SIGNAL_FREE_TIME_NEXT_XFER; in adjust_sfts()
84 dev->xfers[i].sft = CEC_SIGNAL_FREE_TIME_NEW_INITIATOR; in adjust_sfts()
128 for (i = 0; i < ARRAY_SIZE(dev->xfers); i++) { in vivid_cec_bus_thread()
129 if (!dev->xfers[i].sft || dev->xfers[i].sft > last_sft) in vivid_cec_bus_thread()
134 xfers_on_bus[first_idx].adap = dev->xfers[i].adap; in vivid_cec_bus_thread()
135 memcpy(first_msg.msg, dev->xfers[i].msg, dev->xfers[i].len); in vivid_cec_bus_thread()
136 first_msg.len = dev->xfers[i].len; in vivid_cec_bus_thread()
138 xfers_on_bus[i].adap = dev->xfers[i].adap; in vivid_cec_bus_thread()
147 dev->xfers[i].sft = 0; in vivid_cec_bus_thread()
248 dev->xfers[idx].adap = adap; in vivid_cec_adap_transmit()
249 memcpy(dev->xfers[idx].msg, msg->msg, CEC_MAX_MSG_SIZE); in vivid_cec_adap_transmit()
250 dev->xfers[idx].len = msg->len; in vivid_cec_adap_transmit()
251 dev->xfers[idx].sft = CEC_SIGNAL_FREE_TIME_RETRY; in vivid_cec_adap_transmit()
254 dev->xfers[idx].sft = CEC_SIGNAL_FREE_TIME_NEXT_XFER; in vivid_cec_adap_transmit()
256 dev->xfers[idx].sft = CEC_SIGNAL_FREE_TIME_NEW_INITIATOR; in vivid_cec_adap_transmit()