Lines Matching refs:buffer
304 const uint8_t *buffer, size_t *size) in buffer_to_index_validate() argument
309 block_index = (buffer - ch_conf->blocks_ptr) / ch_conf->block_size; in buffer_to_index_validate()
313 if (expected == NULL || expected != buffer) { in buffer_to_index_validate()
337 uint8_t **buffer, k_timeout_t timeout) in alloc_tx_buffer() argument
418 *buffer = block->data; in alloc_tx_buffer()
500 static int release_tx_buffer(struct backend_data *dev_data, const uint8_t *buffer, in release_tx_buffer() argument
507 tx_block_index = buffer_to_index_validate(&conf->tx, buffer, &size); in release_tx_buffer()
554 static int send_release(struct backend_data *dev_data, const uint8_t *buffer, in send_release() argument
560 rx_block_index = buffer_to_index_validate(&conf->rx, buffer, NULL); in send_release()
651 uint8_t *buffer; in match_bound_msg() local
659 buffer = block->data; in match_bound_msg()
660 ept_index = find_ept_by_name(dev_data, buffer); in match_bound_msg()
681 r = send_release(dev_data, buffer, MSG_RELEASE_BOUND, ept_addr); in match_bound_msg()
700 uint8_t *buffer; in send_bound_message() local
705 r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_FOREVER); in send_bound_message()
707 strcpy(buffer, ept->cfg->name); in send_bound_message()
849 uint8_t *buffer; in received_data() local
855 buffer = buffer_from_index_validate(&conf->rx, rx_block_index, &size, true); in received_data()
857 if (buffer == NULL || ept == NULL) { in received_data()
867 ept->cfg->cb.received(buffer, size, ept->cfg->priv); in received_data()
872 send_release(dev_data, buffer, MSG_RELEASE_DATA, 0); in received_data()
884 uint8_t *buffer; in received_release_data() local
889 buffer = buffer_from_index_validate(&conf->tx, tx_block_index, &size, false); in received_release_data()
890 if (buffer == NULL) { in received_release_data()
912 uint8_t *buffer; in received_bound() local
915 buffer = buffer_from_index_validate(&conf->rx, rx_block_index, &size, true); in received_bound()
916 if (buffer == NULL) { in received_bound()
1059 uint8_t *buffer; in send() local
1064 r = alloc_tx_buffer(dev_data, &alloc_size, &buffer, K_NO_WAIT); in send()
1070 memcpy(buffer, msg, len); in send()
1226 uint8_t *buffer = data; in hold_rx_buffer() local
1229 rx_block_index = buffer_to_index_validate(&conf->rx, buffer, NULL); in hold_rx_buffer()