Lines Matching refs:api
113 const struct scmi_transport_api *api = in scmi_transport_request_channel() local
114 (const struct scmi_transport_api *)transport->api; in scmi_transport_request_channel()
116 if (api->request_channel) { in scmi_transport_request_channel()
117 return api->request_channel(transport, proto, tx); in scmi_transport_request_channel()
144 const struct scmi_transport_api *api = in scmi_transport_init() local
145 (const struct scmi_transport_api *)transport->api; in scmi_transport_init()
147 if (api->init) { in scmi_transport_init()
148 return api->init(transport); in scmi_transport_init()
174 const struct scmi_transport_api *api = in scmi_transport_setup_chan() local
175 (const struct scmi_transport_api *)transport->api; in scmi_transport_setup_chan()
177 if (!api || !api->setup_chan) { in scmi_transport_setup_chan()
181 return api->setup_chan(transport, chan, tx); in scmi_transport_setup_chan()
203 const struct scmi_transport_api *api = in scmi_transport_send_message() local
204 (const struct scmi_transport_api *)transport->api; in scmi_transport_send_message()
206 if (!api || !api->send_message) { in scmi_transport_send_message()
210 return api->send_message(transport, chan, msg); in scmi_transport_send_message()
229 const struct scmi_transport_api *api = in scmi_transport_read_message() local
230 (const struct scmi_transport_api *)transport->api; in scmi_transport_read_message()
232 if (!api || !api->read_message) { in scmi_transport_read_message()
236 return api->read_message(transport, chan, msg); in scmi_transport_read_message()
253 const struct scmi_transport_api *api = in scmi_transport_channel_is_free() local
254 (const struct scmi_transport_api *)transport->api; in scmi_transport_channel_is_free()
256 if (!api || !api->channel_is_free) { in scmi_transport_channel_is_free()
260 return api->channel_is_free(transport, chan); in scmi_transport_channel_is_free()