Lines Matching refs:sl

529     int fl, sl;  in mapping_insert()  local
533 sl = tlsf_cast(int, size) / (SMALL_BLOCK_SIZE / SL_INDEX_COUNT); in mapping_insert()
537 sl = tlsf_cast(int, size >> (fl - SL_INDEX_COUNT_LOG2)) ^ (1 << SL_INDEX_COUNT_LOG2); in mapping_insert()
541 *sli = sl; in mapping_insert()
557 int sl = *sli; in search_suitable_block() local
563 unsigned int sl_map = control->sl_bitmap[fl] & (~0U << sl); in search_suitable_block()
577 sl = tlsf_ffs(sl_map); in search_suitable_block()
578 *sli = sl; in search_suitable_block()
581 return control->blocks[fl][sl]; in search_suitable_block()
585 static void remove_free_block(control_t * control, block_header_t * block, int fl, int sl) in remove_free_block() argument
595 if(control->blocks[fl][sl] == block) { in remove_free_block()
596 control->blocks[fl][sl] = next; in remove_free_block()
600 control->sl_bitmap[fl] &= ~(1U << sl); in remove_free_block()
611 static void insert_free_block(control_t * control, block_header_t * block, int fl, int sl) in insert_free_block() argument
613 block_header_t * current = control->blocks[fl][sl]; in insert_free_block()
626 control->blocks[fl][sl] = block; in insert_free_block()
628 control->sl_bitmap[fl] |= (1U << sl); in insert_free_block()
634 int fl, sl; in block_remove() local
635 mapping_insert(block_size(block), &fl, &sl); in block_remove()
636 remove_free_block(control, block, fl, sl); in block_remove()
642 int fl, sl; in block_insert() local
643 mapping_insert(block_size(block), &fl, &sl); in block_insert()
644 insert_free_block(control, block, fl, sl); in block_insert()
756 int fl = 0, sl = 0; in block_locate_free() local
760 mapping_search(size, &fl, &sl); in block_locate_free()
769 block = search_suitable_block(control, &fl, &sl); in block_locate_free()
775 remove_free_block(control, block, fl, sl); in block_locate_free()
1019 int fl = 0, sl = 0; in lv_tlsf_remove_pool() local
1025 mapping_insert(block_size(block), &fl, &sl); in lv_tlsf_remove_pool()
1026 remove_free_block(control, block, fl, sl); in lv_tlsf_remove_pool()