Lines Matching refs:conf

182 	const struct icbmsg_config *conf;/* Backend instance config. */  member
338 const struct icbmsg_config *conf = dev_data->conf; in alloc_tx_buffer() local
340 size_t num_blocks = DIV_ROUND_UP(total_size, conf->tx.block_size); in alloc_tx_buffer()
353 r = sys_bitarray_alloc(conf->tx_usage_bitmap, num_blocks, in alloc_tx_buffer()
378 r = sys_bitarray_alloc(conf->tx_usage_bitmap, num_blocks, &tx_block_index); in alloc_tx_buffer()
400 for (next_bit = tx_block_index + 1; next_bit < conf->tx.block_count; in alloc_tx_buffer()
402 r = sys_bitarray_test_and_set_bit(conf->tx_usage_bitmap, next_bit, in alloc_tx_buffer()
414 *size = conf->tx.block_size * num_blocks - BLOCK_HEADER_SIZE; in alloc_tx_buffer()
415 block = block_from_index(&conf->tx, tx_block_index); in alloc_tx_buffer()
438 const struct icbmsg_config *conf = dev_data->conf; in release_tx_blocks() local
449 num_blocks = DIV_ROUND_UP(total_size, conf->tx.block_size); in release_tx_blocks()
454 new_num_blocks = DIV_ROUND_UP(new_total_size, conf->tx.block_size); in release_tx_blocks()
461 block = block_from_index(&conf->tx, tx_block_index); in release_tx_blocks()
472 r = sys_bitarray_free(conf->tx_usage_bitmap, num_blocks, in release_tx_blocks()
502 const struct icbmsg_config *conf = dev_data->conf; in release_tx_buffer() local
506 tx_block_index = buffer_to_index_validate(&conf->tx, buffer, &size); in release_tx_buffer()
522 const struct icbmsg_config *conf = dev_data->conf; in send_control_message() local
533 r = icmsg_send(&conf->control_config, &dev_data->control_data, &message, in send_control_message()
556 const struct icbmsg_config *conf = dev_data->conf; in send_release() local
559 rx_block_index = buffer_to_index_validate(&conf->rx, buffer, NULL); in send_release()
586 block = block_from_index(&dev_data->conf->tx, tx_block_index); in send_block()
610 const struct channel_config *rx_conf = &dev_data->conf->rx; in find_ept_by_name()
648 const struct icbmsg_config *conf = dev_data->conf; in match_bound_msg() local
657 block = block_from_index(&conf->rx, rx_block_index); in match_bound_msg()
847 const struct icbmsg_config *conf = dev_data->conf; in received_data() local
854 buffer = buffer_from_index_validate(&conf->rx, rx_block_index, &size, true); in received_data()
863 sys_bitarray_clear_bit(conf->rx_hold_bitmap, rx_block_index); in received_data()
869 sys_bitarray_test_bit(conf->rx_hold_bitmap, rx_block_index, &bit_val); in received_data()
882 const struct icbmsg_config *conf = dev_data->conf; in received_release_data() local
888 buffer = buffer_from_index_validate(&conf->tx, tx_block_index, &size, false); in received_release_data()
909 const struct icbmsg_config *conf = dev_data->conf; in received_bound() local
914 buffer = buffer_from_index_validate(&conf->rx, rx_block_index, &size, true); in received_bound()
1022 const struct icbmsg_config *conf = instance->config; in open() local
1034 (uint32_t)conf->tx.block_count, in open()
1035 (uint32_t)conf->tx.block_size, in open()
1036 (uint32_t)conf->tx.blocks_ptr, in open()
1037 (uint32_t)(conf->tx.block_size * conf->tx.block_count - in open()
1040 (uint32_t)conf->rx.block_count, in open()
1041 (uint32_t)conf->rx.block_size, in open()
1042 (uint32_t)conf->rx.blocks_ptr, in open()
1043 (uint32_t)(conf->rx.block_size * conf->rx.block_count - in open()
1046 return icmsg_open(&conf->control_config, &dev_data->control_data, &cb, in open()
1162 const struct icbmsg_config *conf = instance->config; in get_tx_buffer_size() local
1164 return conf->tx.block_size * conf->tx.block_count - BLOCK_HEADER_SIZE; in get_tx_buffer_size()
1224 const struct icbmsg_config *conf = instance->config; in hold_rx_buffer() local
1229 rx_block_index = buffer_to_index_validate(&conf->rx, buffer, NULL); in hold_rx_buffer()
1231 return sys_bitarray_set_bit(conf->rx_hold_bitmap, rx_block_index); in hold_rx_buffer()
1249 MAYBE_CONST struct icbmsg_config *conf = (struct icbmsg_config *)instance->config; in backend_init() local
1256 native_emb_addr_remap((void **)&conf->tx.blocks_ptr); in backend_init()
1257 native_emb_addr_remap((void **)&conf->rx.blocks_ptr); in backend_init()
1270 dev_data->conf = conf; in backend_init()
1271 dev_data->is_initiator = (conf->rx.blocks_ptr < conf->tx.blocks_ptr); in backend_init()