Lines Matching full:tx
53 struct scmi_channel *chan, bool tx) in scmi_core_setup_chan() argument
66 if (!tx) { in scmi_core_setup_chan()
76 ret = scmi_transport_setup_chan(transport, chan, tx); in scmi_core_setup_chan()
96 ret = scmi_transport_send_message(proto->transport, proto->tx, msg); in scmi_send_message_pre_kernel()
108 while (!scmi_transport_channel_is_free(proto->transport, proto->tx)) { in scmi_send_message_pre_kernel()
111 ret = scmi_transport_read_message(proto->transport, proto->tx, reply); in scmi_send_message_pre_kernel()
125 if (!proto->tx) { in scmi_send_message_post_kernel()
130 ret = k_mutex_lock(&proto->tx->lock, K_USEC(SCMI_CHAN_LOCK_TIMEOUT_USEC)); in scmi_send_message_post_kernel()
136 ret = scmi_transport_send_message(proto->transport, proto->tx, msg); in scmi_send_message_post_kernel()
143 ret = k_sem_take(&proto->tx->sem, K_USEC(SCMI_CHAN_SEM_TIMEOUT_USEC)); in scmi_send_message_post_kernel()
149 ret = scmi_transport_read_message(proto->transport, proto->tx, reply); in scmi_send_message_post_kernel()
156 k_mutex_unlock(&proto->tx->lock); in scmi_send_message_post_kernel()
164 if (!proto->tx) { in scmi_send_message()
168 if (!proto->tx->ready) { in scmi_send_message()
188 it->tx = scmi_transport_request_channel(transport, it->id, true); in scmi_core_protocol_setup()
191 if (!it->tx) { in scmi_core_protocol_setup()
195 ret = scmi_core_setup_chan(transport, it->tx, true); in scmi_core_protocol_setup()