Lines Matching refs:ch_conf
230 static struct block_content *block_from_index(const struct channel_config *ch_conf, in block_from_index() argument
233 return (struct block_content *)(ch_conf->blocks_ptr + in block_from_index()
234 block_index * ch_conf->block_size); in block_from_index()
250 static uint8_t *buffer_from_index_validate(const struct channel_config *ch_conf, in buffer_from_index_validate() argument
259 if (block_index >= ch_conf->block_count) { in buffer_from_index_validate()
264 block = block_from_index(ch_conf, block_index); in buffer_from_index_validate()
271 allocable_size = ch_conf->block_count * ch_conf->block_size; in buffer_from_index_validate()
272 end_ptr = ch_conf->blocks_ptr + allocable_size; in buffer_from_index_validate()
302 static int buffer_to_index_validate(const struct channel_config *ch_conf, in buffer_to_index_validate() argument
308 block_index = (buffer - ch_conf->blocks_ptr) / ch_conf->block_size; in buffer_to_index_validate()
310 expected = buffer_from_index_validate(ch_conf, block_index, size, false); in buffer_to_index_validate()