scpi_chan
struct scpi_chan *channels;
static void scpi_process_cmd(struct scpi_chan *ch, u32 cmd)
struct scpi_chan *ch = container_of(c, struct scpi_chan, cl);
struct scpi_chan *ch = container_of(c, struct scpi_chan, cl);
static struct scpi_xfer *get_scpi_xfer(struct scpi_chan *ch)
static void put_scpi_xfer(struct scpi_xfer *t, struct scpi_chan *ch)
struct scpi_chan *scpi_chan;
scpi_chan = scpi_info->channels + chan;
msg = get_scpi_xfer(scpi_chan);
ret = mbox_send_message(scpi_chan->chan, msg);
scpi_process_cmd(scpi_chan, msg->cmd);
put_scpi_xfer(msg, scpi_chan);
static int scpi_alloc_xfer_list(struct device *dev, struct scpi_chan *ch)
devm_kcalloc(dev, count, sizeof(struct scpi_chan), GFP_KERNEL);
struct scpi_chan *pchan = scpi_drvinfo->channels + idx;