Lines Matching refs:scpi_chan
147 struct scpi_chan { struct
166 struct scpi_chan *channels; argument
263 static void scpi_process_cmd(struct scpi_chan *ch, u32 cmd) in scpi_process_cmd()
296 struct scpi_chan *ch = container_of(c, struct scpi_chan, cl); in scpi_handle_remote_msg()
307 struct scpi_chan *ch = container_of(c, struct scpi_chan, cl); in scpi_tx_prepare()
323 static struct scpi_xfer *get_scpi_xfer(struct scpi_chan *ch) in get_scpi_xfer()
338 static void put_scpi_xfer(struct scpi_xfer *t, struct scpi_chan *ch) in put_scpi_xfer()
351 struct scpi_chan *scpi_chan; in scpi_send_message() local
354 scpi_chan = scpi_info->channels + chan; in scpi_send_message()
356 msg = get_scpi_xfer(scpi_chan); in scpi_send_message()
368 ret = mbox_send_message(scpi_chan->chan, msg); in scpi_send_message()
379 scpi_process_cmd(scpi_chan, msg->cmd); in scpi_send_message()
381 put_scpi_xfer(msg, scpi_chan); in scpi_send_message()
605 scpi_free_channels(struct device *dev, struct scpi_chan *pchan, int count) in scpi_free_channels()
640 static int scpi_alloc_xfer_list(struct device *dev, struct scpi_chan *ch) in scpi_alloc_xfer_list()
659 struct scpi_chan *scpi_chan; in scpi_probe() local
673 scpi_chan = devm_kcalloc(dev, count, sizeof(*scpi_chan), GFP_KERNEL); in scpi_probe()
674 if (!scpi_chan) in scpi_probe()
679 struct scpi_chan *pchan = scpi_chan + idx; in scpi_probe()
721 scpi_free_channels(dev, scpi_chan, idx); in scpi_probe()
726 scpi_info->channels = scpi_chan; in scpi_probe()