Lines Matching refs:transport
73 int (*init)(const struct device *transport);
74 int (*send_message)(const struct device *transport,
77 int (*setup_chan)(const struct device *transport,
80 int (*read_message)(const struct device *transport,
83 bool (*channel_is_free)(const struct device *transport,
85 struct scmi_channel *(*request_channel)(const struct device *transport,
110 scmi_transport_request_channel(const struct device *transport, in scmi_transport_request_channel() argument
114 (const struct scmi_transport_api *)transport->api; in scmi_transport_request_channel()
117 return api->request_channel(transport, proto, tx); in scmi_transport_request_channel()
142 static inline int scmi_transport_init(const struct device *transport) in scmi_transport_init() argument
145 (const struct scmi_transport_api *)transport->api; in scmi_transport_init()
148 return api->init(transport); in scmi_transport_init()
170 static inline int scmi_transport_setup_chan(const struct device *transport, in scmi_transport_setup_chan() argument
175 (const struct scmi_transport_api *)transport->api; in scmi_transport_setup_chan()
181 return api->setup_chan(transport, chan, tx); in scmi_transport_setup_chan()
199 static inline int scmi_transport_send_message(const struct device *transport, in scmi_transport_send_message() argument
204 (const struct scmi_transport_api *)transport->api; in scmi_transport_send_message()
210 return api->send_message(transport, chan, msg); in scmi_transport_send_message()
225 static inline int scmi_transport_read_message(const struct device *transport, in scmi_transport_read_message() argument
230 (const struct scmi_transport_api *)transport->api; in scmi_transport_read_message()
236 return api->read_message(transport, chan, msg); in scmi_transport_read_message()
250 static inline bool scmi_transport_channel_is_free(const struct device *transport, in scmi_transport_channel_is_free() argument
254 (const struct scmi_transport_api *)transport->api; in scmi_transport_channel_is_free()
260 return api->channel_is_free(transport, chan); in scmi_transport_channel_is_free()
272 int scmi_core_transport_init(const struct device *transport);