Lines Matching full:backend
19 const struct ipc_service_backend *backend; in ipc_service_open_instance() local
26 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_open_instance()
28 if (!backend) { in ipc_service_open_instance()
29 LOG_ERR("Invalid backend configuration"); in ipc_service_open_instance()
33 if (!backend->open_instance) { in ipc_service_open_instance()
34 /* maybe not needed on backend */ in ipc_service_open_instance()
38 return backend->open_instance(instance); in ipc_service_open_instance()
43 const struct ipc_service_backend *backend; in ipc_service_close_instance() local
50 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_close_instance()
52 if (!backend) { in ipc_service_close_instance()
53 LOG_ERR("Invalid backend configuration"); in ipc_service_close_instance()
57 if (!backend->close_instance) { in ipc_service_close_instance()
58 /* maybe not needed on backend */ in ipc_service_close_instance()
62 return backend->close_instance(instance); in ipc_service_close_instance()
69 const struct ipc_service_backend *backend; in ipc_service_register_endpoint() local
76 backend = (const struct ipc_service_backend *) instance->api; in ipc_service_register_endpoint()
78 if (!backend || !backend->register_endpoint) { in ipc_service_register_endpoint()
79 LOG_ERR("Invalid backend configuration"); in ipc_service_register_endpoint()
87 return backend->register_endpoint(instance, &ept->token, cfg); in ipc_service_register_endpoint()
92 const struct ipc_service_backend *backend; in ipc_service_deregister_endpoint() local
105 backend = ept->instance->api; in ipc_service_deregister_endpoint()
107 if (!backend || !backend->deregister_endpoint) { in ipc_service_deregister_endpoint()
108 LOG_ERR("Invalid backend configuration"); in ipc_service_deregister_endpoint()
112 err = backend->deregister_endpoint(ept->instance, ept->token); in ipc_service_deregister_endpoint()
125 const struct ipc_service_backend *backend; in ipc_service_send() local
137 backend = ept->instance->api; in ipc_service_send()
139 if (!backend || !backend->send) { in ipc_service_send()
140 LOG_ERR("Invalid backend configuration"); in ipc_service_send()
144 return backend->send(ept->instance, ept->token, data, len); in ipc_service_send()
149 const struct ipc_service_backend *backend; in ipc_service_get_tx_buffer_size() local
161 backend = ept->instance->api; in ipc_service_get_tx_buffer_size()
163 if (!backend) { in ipc_service_get_tx_buffer_size()
164 LOG_ERR("Invalid backend configuration"); in ipc_service_get_tx_buffer_size()
168 if (!backend->get_tx_buffer_size) { in ipc_service_get_tx_buffer_size()
173 return backend->get_tx_buffer_size(ept->instance, ept->token); in ipc_service_get_tx_buffer_size()
178 const struct ipc_service_backend *backend; in ipc_service_get_tx_buffer() local
190 backend = ept->instance->api; in ipc_service_get_tx_buffer()
192 if (!backend) { in ipc_service_get_tx_buffer()
193 LOG_ERR("Invalid backend configuration"); in ipc_service_get_tx_buffer()
197 if (!backend->send_nocopy || !backend->get_tx_buffer) { in ipc_service_get_tx_buffer()
202 return backend->get_tx_buffer(ept->instance, ept->token, data, len, wait); in ipc_service_get_tx_buffer()
207 const struct ipc_service_backend *backend; in ipc_service_drop_tx_buffer() local
219 backend = ept->instance->api; in ipc_service_drop_tx_buffer()
221 if (!backend) { in ipc_service_drop_tx_buffer()
222 LOG_ERR("Invalid backend configuration"); in ipc_service_drop_tx_buffer()
226 if (!backend->drop_tx_buffer) { in ipc_service_drop_tx_buffer()
231 return backend->drop_tx_buffer(ept->instance, ept->token, data); in ipc_service_drop_tx_buffer()
236 const struct ipc_service_backend *backend; in ipc_service_send_nocopy() local
248 backend = ept->instance->api; in ipc_service_send_nocopy()
250 if (!backend) { in ipc_service_send_nocopy()
251 LOG_ERR("Invalid backend configuration"); in ipc_service_send_nocopy()
255 if (!backend->get_tx_buffer || !backend->send_nocopy) { in ipc_service_send_nocopy()
260 return backend->send_nocopy(ept->instance, ept->token, data, len); in ipc_service_send_nocopy()
265 const struct ipc_service_backend *backend; in ipc_service_hold_rx_buffer() local
277 backend = ept->instance->api; in ipc_service_hold_rx_buffer()
279 if (!backend) { in ipc_service_hold_rx_buffer()
280 LOG_ERR("Invalid backend configuration"); in ipc_service_hold_rx_buffer()
285 if (!backend->release_rx_buffer || !backend->hold_rx_buffer) { in ipc_service_hold_rx_buffer()
290 return backend->hold_rx_buffer(ept->instance, ept->token, data); in ipc_service_hold_rx_buffer()
294 const struct ipc_service_backend *backend; in ipc_service_release_rx_buffer() local
306 backend = ept->instance->api; in ipc_service_release_rx_buffer()
308 if (!backend) { in ipc_service_release_rx_buffer()
309 LOG_ERR("Invalid backend configuration"); in ipc_service_release_rx_buffer()
314 if (!backend->hold_rx_buffer || !backend->release_rx_buffer) { in ipc_service_release_rx_buffer()
319 return backend->release_rx_buffer(ept->instance, ept->token, data); in ipc_service_release_rx_buffer()