Lines Matching refs:ept

66 				  struct ipc_ept *ept,  in ipc_service_register_endpoint()  argument
71 if (!instance || !ept || !cfg) { in ipc_service_register_endpoint()
85 ept->instance = instance; in ipc_service_register_endpoint()
87 return backend->register_endpoint(instance, &ept->token, cfg); in ipc_service_register_endpoint()
90 int ipc_service_deregister_endpoint(struct ipc_ept *ept) in ipc_service_deregister_endpoint() argument
95 if (!ept) { in ipc_service_deregister_endpoint()
100 if (!ept->instance) { in ipc_service_deregister_endpoint()
105 backend = ept->instance->api; in ipc_service_deregister_endpoint()
112 err = backend->deregister_endpoint(ept->instance, ept->token); in ipc_service_deregister_endpoint()
117 ept->instance = 0; in ipc_service_deregister_endpoint()
123 int ipc_service_send(struct ipc_ept *ept, const void *data, size_t len) in ipc_service_send() argument
127 if (!ept) { in ipc_service_send()
132 if (!ept->instance) { in ipc_service_send()
137 backend = ept->instance->api; in ipc_service_send()
144 return backend->send(ept->instance, ept->token, data, len); in ipc_service_send()
147 int ipc_service_get_tx_buffer_size(struct ipc_ept *ept) in ipc_service_get_tx_buffer_size() argument
151 if (!ept) { in ipc_service_get_tx_buffer_size()
156 if (!ept->instance) { in ipc_service_get_tx_buffer_size()
161 backend = ept->instance->api; 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()
176 int ipc_service_get_tx_buffer(struct ipc_ept *ept, void **data, uint32_t *len, k_timeout_t wait) in ipc_service_get_tx_buffer() argument
180 if (!ept || !data || !len) { in ipc_service_get_tx_buffer()
185 if (!ept->instance) { in ipc_service_get_tx_buffer()
190 backend = ept->instance->api; 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()
205 int ipc_service_drop_tx_buffer(struct ipc_ept *ept, const void *data) in ipc_service_drop_tx_buffer() argument
209 if (!ept || !data) { in ipc_service_drop_tx_buffer()
214 if (!ept->instance) { in ipc_service_drop_tx_buffer()
219 backend = ept->instance->api; in ipc_service_drop_tx_buffer()
231 return backend->drop_tx_buffer(ept->instance, ept->token, data); in ipc_service_drop_tx_buffer()
234 int ipc_service_send_nocopy(struct ipc_ept *ept, const void *data, size_t len) in ipc_service_send_nocopy() argument
238 if (!ept) { in ipc_service_send_nocopy()
243 if (!ept->instance) { in ipc_service_send_nocopy()
248 backend = ept->instance->api; in ipc_service_send_nocopy()
260 return backend->send_nocopy(ept->instance, ept->token, data, len); in ipc_service_send_nocopy()
263 int ipc_service_hold_rx_buffer(struct ipc_ept *ept, void *data) in ipc_service_hold_rx_buffer() argument
267 if (!ept) { in ipc_service_hold_rx_buffer()
272 if (!ept->instance) { in ipc_service_hold_rx_buffer()
277 backend = ept->instance->api; in ipc_service_hold_rx_buffer()
290 return backend->hold_rx_buffer(ept->instance, ept->token, data); in ipc_service_hold_rx_buffer()
292 int ipc_service_release_rx_buffer(struct ipc_ept *ept, void *data) in ipc_service_release_rx_buffer() argument
296 if (!ept) { in ipc_service_release_rx_buffer()
301 if (!ept->instance) { in ipc_service_release_rx_buffer()
306 backend = ept->instance->api; in ipc_service_release_rx_buffer()
319 return backend->release_rx_buffer(ept->instance, ept->token, data); in ipc_service_release_rx_buffer()