Lines Matching defs:chan
75 static bool channel_set_busy(struct scmi_msg_channel *chan)
81 channel_is_busy = chan->busy;
84 chan->busy = true;
92 static void channel_release_busy(struct scmi_msg_channel *chan)
94 chan->busy = false;
97 static struct smt_header *channel_to_smt_hdr(struct scmi_msg_channel *chan)
99 return (struct smt_header *)chan->shm_addr;
110 struct scmi_msg_channel *chan;
117 chan = plat_scmi_get_channel(agent_id);
118 if (chan == NULL) {
122 smt_hdr = channel_to_smt_hdr(chan);
127 if (!channel_set_busy(chan)) {
151 msg.out_size = chan->shm_size - sizeof(*smt_hdr);
167 channel_release_busy(chan);
192 void scmi_smt_init_agent_channel(struct scmi_msg_channel *chan)
194 if (chan != NULL) {
195 struct smt_header *smt_header = channel_to_smt_hdr(chan);