Lines Matching refs:used

189 	u32 used = le32_to_cpu(rec->used);  in mi_enum_attr()  local
198 if (used > total) in mi_enum_attr()
201 if (off >= used || off < MFTRECORD_FIXUP_OFFSET_1 || in mi_enum_attr()
214 if (off >= used) in mi_enum_attr()
230 if (off + 8 > used) { in mi_enum_attr()
246 if (off + asize > used) in mi_enum_attr()
361 } else if (rno >= sbi->mft.used) { in mi_format_new()
433 u32 used = le32_to_cpu(rec->used); in mi_insert_attr() local
438 if (used + asize > mi->sbi->record_size) in mi_insert_attr()
460 attr = Add2Ptr(rec, used - 8); in mi_insert_attr()
462 tail = used - PtrOffset(rec, attr); in mi_insert_attr()
477 rec->used = cpu_to_le32(used + asize); in mi_insert_attr()
494 u32 used = le32_to_cpu(rec->used); in mi_remove_attr() local
497 if (aoff + asize > used) in mi_remove_attr()
505 used -= asize; in mi_remove_attr()
506 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr()
507 rec->used = cpu_to_le32(used); in mi_remove_attr()
518 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
521 int tail = (int)(used - aoff - asize); in mi_resize_attr()
525 if (tail < 0 || aoff >= used) in mi_resize_attr()
536 if (used + dsize > total) in mi_resize_attr()
542 used += dsize; in mi_resize_attr()
550 used -= dsize; in mi_resize_attr()
554 rec->used = cpu_to_le32(used); in mi_resize_attr()
572 u32 used = le32_to_cpu(rec->used); in mi_pack_runs() local
578 u32 tail = used - aoff - asize; in mi_pack_runs()
579 u32 dsize = sbi->record_size - used; in mi_pack_runs()
598 rec->used = cpu_to_le32(used + new_run_size - run_size); in mi_pack_runs()