Lines Matching refs:cinfo
123 struct scmi_chan_info *cinfo; member
339 static void scmi_optee_clear_channel(struct scmi_chan_info *cinfo) in scmi_optee_clear_channel() argument
341 struct scmi_optee_channel *channel = cinfo->transport_info; in scmi_optee_clear_channel()
354 dev_err(channel->cinfo->dev, "shmem allocation failed\n"); in setup_dynamic_shmem()
366 static int setup_static_shmem(struct device *dev, struct scmi_chan_info *cinfo, in setup_static_shmem() argument
374 np = of_parse_phandle(cinfo->dev->of_node, "shmem", 0); in setup_static_shmem()
403 static int setup_shmem(struct device *dev, struct scmi_chan_info *cinfo, in setup_shmem() argument
406 if (of_find_property(cinfo->dev->of_node, "shmem", NULL)) in setup_shmem()
407 return setup_static_shmem(dev, cinfo, channel); in setup_shmem()
412 static int scmi_optee_chan_setup(struct scmi_chan_info *cinfo, struct device *dev, bool tx) in scmi_optee_chan_setup() argument
425 ret = of_property_read_u32_index(cinfo->dev->of_node, "linaro,optee-channel-id", in scmi_optee_chan_setup()
430 cinfo->transport_info = channel; in scmi_optee_chan_setup()
431 channel->cinfo = cinfo; in scmi_optee_chan_setup()
435 ret = setup_shmem(dev, cinfo, channel); in scmi_optee_chan_setup()
448 cinfo->no_completion_irq = true; in scmi_optee_chan_setup()
467 struct scmi_chan_info *cinfo = p; in scmi_optee_chan_free() local
468 struct scmi_optee_channel *channel = cinfo->transport_info; in scmi_optee_chan_free()
481 cinfo->transport_info = NULL; in scmi_optee_chan_free()
482 channel->cinfo = NULL; in scmi_optee_chan_free()
484 scmi_free_channel(cinfo, data, id); in scmi_optee_chan_free()
489 static int scmi_optee_send_message(struct scmi_chan_info *cinfo, in scmi_optee_send_message() argument
492 struct scmi_optee_channel *channel = cinfo->transport_info; in scmi_optee_send_message()
501 shmem_tx_prepare(channel->req.shmem, xfer, cinfo); in scmi_optee_send_message()
511 static void scmi_optee_fetch_response(struct scmi_chan_info *cinfo, in scmi_optee_fetch_response() argument
514 struct scmi_optee_channel *channel = cinfo->transport_info; in scmi_optee_fetch_response()
522 static void scmi_optee_mark_txdone(struct scmi_chan_info *cinfo, int ret, in scmi_optee_mark_txdone() argument
525 struct scmi_optee_channel *channel = cinfo->transport_info; in scmi_optee_mark_txdone()