Lines Matching refs:blk
830 u_int32_t blk; in find_free() local
864 for (blk = 0; blk < part->BlocksPerUnit; blk++) in find_free()
865 if (BLOCK_FREE(le32_to_cpu(part->bam_cache[blk]))) break; in find_free()
866 if (blk == part->BlocksPerUnit) { in find_free()
875 DEBUG(2, "ftl_cs: found free block at %d in %d\n", blk, eun); in find_free()
876 return blk; in find_free()
1008 u_int32_t bsize, blk, le_virt_addr; in set_bam_entry() local
1020 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry()
1021 offset = (part->EUNInfo[eun].Offset + blk * sizeof(u_int32_t) + in set_bam_entry()
1048 if (le32_to_cpu(part->bam_cache[blk]) != old_addr) { in set_bam_entry()
1055 le32_to_cpu(part->bam_cache[blk]), old_addr); in set_bam_entry()
1060 part->bam_cache[blk] = le_virt_addr; in set_bam_entry()
1076 u_int32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local
1104 blk = find_free(part); in ftl_write()
1105 if (blk == 0) { in ftl_write()
1114 log_addr = part->bam_index * bsize + blk * SECTOR_SIZE; in ftl_write()
1121 blk * SECTOR_SIZE); in ftl_write()