Lines Matching refs:cinfo

111  * @cinfo: SCMI channel information
123 struct scmi_chan_info *cinfo;
339 static void scmi_optee_clear_channel(struct scmi_chan_info *cinfo)
341 struct scmi_optee_channel *channel = cinfo->transport_info;
354 dev_err(channel->cinfo->dev, "shmem allocation failed\n");
366 static int setup_static_shmem(struct device *dev, struct scmi_chan_info *cinfo,
374 np = of_parse_phandle(cinfo->dev->of_node, "shmem", 0);
403 static int setup_shmem(struct device *dev, struct scmi_chan_info *cinfo,
406 if (of_property_present(cinfo->dev->of_node, "shmem"))
407 return setup_static_shmem(dev, cinfo, channel);
412 static int scmi_optee_chan_setup(struct scmi_chan_info *cinfo, struct device *dev, bool tx)
425 ret = of_property_read_u32_index(cinfo->dev->of_node, "linaro,optee-channel-id",
430 cinfo->transport_info = channel;
431 channel->cinfo = cinfo;
435 ret = setup_shmem(dev, cinfo, channel);
448 cinfo->no_completion_irq = true;
467 struct scmi_chan_info *cinfo = p;
468 struct scmi_optee_channel *channel = cinfo->transport_info;
481 cinfo->transport_info = NULL;
482 channel->cinfo = NULL;
487 static int scmi_optee_send_message(struct scmi_chan_info *cinfo,
490 struct scmi_optee_channel *channel = cinfo->transport_info;
499 shmem_tx_prepare(channel->req.shmem, xfer, cinfo);
509 static void scmi_optee_fetch_response(struct scmi_chan_info *cinfo,
512 struct scmi_optee_channel *channel = cinfo->transport_info;
520 static void scmi_optee_mark_txdone(struct scmi_chan_info *cinfo, int ret,
523 struct scmi_optee_channel *channel = cinfo->transport_info;