Lines Matching refs:count
62 uint32_t index_offset = metadata->size_int - metadata->count - 1; in check_size()
67 LOG_ALWAYS_FATAL_IF(metadata->size_int < (metadata->count + 1), in check_size()
73 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
94 memmove((uint32_t *)metadata + new_size_int - (metadata->count + 1), in check_size()
95 (uint32_t *)metadata + metadata->size_int - (metadata->count + 1), in check_size()
96 (metadata->count + 1) * sizeof(uint32_t)); in check_size()
125 index_offset = metadata->size_int - metadata->count - 1; in add_metadata()
136 metadata->count++; in add_metadata()
152 if (index >= metadata->count) { in get_entry_at_index()
166 LOG_ALWAYS_FATAL_IF(metadata->size_int < (metadata->count + 1), in get_entry_at_index()
168 metadata->size_int, metadata->count); in get_entry_at_index()
170 max_offset = metadata->size_int - metadata->count - 1 - min_entry_size_int; in get_entry_at_index()
287 for (index = 0; index < src_metadata_buf->count; index++) { in radio_metadata_add_metadata()
306 uint32_t count; in radio_metadata_check() local
321 if ((metadata_buf->count * min_entry_size_int + metadata_buf->count + 1 + in radio_metadata_check()
328 for (count = 0; count < metadata_buf->count; count++) { in radio_metadata_check()
329 radio_metadata_entry_t *entry = get_entry_at_index(metadata_buf, count, true); in radio_metadata_check()
342 next_entry = get_entry_at_index(metadata_buf, count + 1, false); in radio_metadata_check()
370 return (int)metadata_buf->count; in radio_metadata_get_count()
388 if (index >= metadata_buf->count) { in radio_metadata_get_at_index()
407 uint32_t count; in radio_metadata_get_from_key() local
419 for (count = 0; count < metadata_buf->count; entry = NULL, count++) { in radio_metadata_get_from_key()
420 entry = get_entry_at_index(metadata_buf, count, false); in radio_metadata_get_from_key()