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()
241 if (off + 8 > used) { in mi_enum_attr()
263 if (off + asize < off || off + asize > used) in mi_enum_attr()
417 } else if (rno >= sbi->mft.used) { in mi_format_new()
469 u32 used = le32_to_cpu(rec->used); in mi_insert_attr() local
473 if (used + asize > sbi->record_size) in mi_insert_attr()
495 attr = Add2Ptr(rec, used - 8); in mi_insert_attr()
498 tail = used - PtrOffset(rec, attr); in mi_insert_attr()
513 rec->used = cpu_to_le32(used + asize); in mi_insert_attr()
530 u32 used = le32_to_cpu(rec->used); in mi_remove_attr() local
533 if (aoff + asize > used) in mi_remove_attr()
546 used -= asize; in mi_remove_attr()
547 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr()
548 rec->used = cpu_to_le32(used); in mi_remove_attr()
559 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
562 int tail = (int)(used - aoff - asize); in mi_resize_attr()
566 if (tail < 0 || aoff >= used) in mi_resize_attr()
577 if (used + dsize > total) in mi_resize_attr()
583 used += dsize; in mi_resize_attr()
591 used -= dsize; in mi_resize_attr()
595 rec->used = cpu_to_le32(used); in mi_resize_attr()
617 u32 used = le32_to_cpu(rec->used); in mi_pack_runs() local
623 u32 tail = used - aoff - asize; in mi_pack_runs()
624 u32 dsize = sbi->record_size - used; in mi_pack_runs()
643 rec->used = cpu_to_le32(used + new_run_size - run_size); in mi_pack_runs()