Lines Matching full:used

201 	u32 used = le32_to_cpu(rec->used);  in mi_enum_attr()  local
211 if (used > total) in mi_enum_attr()
214 if (off >= used || off < MFTRECORD_FIXUP_OFFSET_1 || in mi_enum_attr()
244 if (off + 8 > used) { in mi_enum_attr()
269 if (off + asize < off || off + asize > used) in mi_enum_attr()
273 if (off + 9 > used) in mi_enum_attr()
427 } else if (rno >= sbi->mft.used) { in mi_format_new()
479 u32 used = le32_to_cpu(rec->used); in mi_insert_attr() local
483 if (used + asize > sbi->record_size) in mi_insert_attr()
505 attr = Add2Ptr(rec, used - 8); in mi_insert_attr()
508 tail = used - PtrOffset(rec, attr); in mi_insert_attr()
523 rec->used = cpu_to_le32(used + asize); in mi_insert_attr()
540 u32 used = le32_to_cpu(rec->used); in mi_remove_attr() local
543 if (aoff + asize > used) in mi_remove_attr()
556 used -= asize; in mi_remove_attr()
557 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr()
558 rec->used = cpu_to_le32(used); in mi_remove_attr()
569 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
572 int tail = (int)(used - aoff - asize); in mi_resize_attr()
576 if (tail < 0 || aoff >= used) in mi_resize_attr()
587 if (used + dsize > total) in mi_resize_attr()
593 used += dsize; in mi_resize_attr()
601 used -= dsize; in mi_resize_attr()
605 rec->used = cpu_to_le32(used); in mi_resize_attr()
627 u32 used = le32_to_cpu(rec->used); in mi_pack_runs() local
633 u32 tail = used - aoff - asize; in mi_pack_runs()
634 u32 dsize = sbi->record_size - used; in mi_pack_runs()
653 rec->used = cpu_to_le32(used + new_run_size - run_size); in mi_pack_runs()