Lines Matching refs:sl
146 int fl, sl; in mapping_insert() local
151 sl = tlsf_cast(int, size) >> 2; in mapping_insert()
156 sl = tlsf_cast(int, size >> (fl - SL_INDEX_COUNT_LOG2)) ^ (1 << SL_INDEX_COUNT_LOG2); in mapping_insert()
160 *sli = sl; in mapping_insert()
177 int sl = *sli; in search_suitable_block() local
183 unsigned int sl_map = control->sl_bitmap[fl] & (~0U << sl); in search_suitable_block()
199 sl = tlsf_ffs(sl_map); in search_suitable_block()
200 *sli = sl; in search_suitable_block()
203 return control->blocks[fl][sl]; in search_suitable_block()
207 …always_inline__)) void remove_free_block(control_t* control, block_header_t* block, int fl, int sl) in remove_free_block() argument
217 if (control->blocks[fl][sl] == block) in remove_free_block()
219 control->blocks[fl][sl] = next; in remove_free_block()
224 control->sl_bitmap[fl] &= ~(1 << sl); in remove_free_block()
236 …always_inline__)) void insert_free_block(control_t* control, block_header_t* block, int fl, int sl) in insert_free_block() argument
238 block_header_t* current = control->blocks[fl][sl]; in insert_free_block()
251 control->blocks[fl][sl] = block; in insert_free_block()
253 control->sl_bitmap[fl] |= (1 << sl); in insert_free_block()
259 int fl, sl; in block_remove() local
260 mapping_insert(block_size(block), &fl, &sl); in block_remove()
261 remove_free_block(control, block, fl, sl); in block_remove()
267 int fl, sl; in block_insert() local
268 mapping_insert(block_size(block), &fl, &sl); in block_insert()
269 insert_free_block(control, block, fl, sl); in block_insert()
426 int fl = 0, sl = 0; in block_locate_free() local
431 mapping_search(size, &fl, &sl); in block_locate_free()
441 block = search_suitable_block(control, &fl, &sl); in block_locate_free()
448 remove_free_block(control, block, fl, sl); in block_locate_free()
705 int fl = 0, sl = 0; in tlsf_remove_pool() local
711 mapping_insert(block_size(block), &fl, &sl); in tlsf_remove_pool()
712 remove_free_block(control, block, fl, sl); in tlsf_remove_pool()