Lines Matching full: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()
411 u32 used = le32_to_cpu(rec->used); in mi_insert_attr() local
416 if (used + asize > mi->sbi->record_size) in mi_insert_attr()
436 tail = 8; /* Not used, just to suppress warning. */ in mi_insert_attr()
437 attr = Add2Ptr(rec, used - 8); in mi_insert_attr()
439 tail = used - PtrOffset(rec, attr); in mi_insert_attr()
454 rec->used = cpu_to_le32(used + asize); in mi_insert_attr()
471 u32 used = le32_to_cpu(rec->used); in mi_remove_attr() local
474 if (aoff + asize > used) in mi_remove_attr()
482 used -= asize; in mi_remove_attr()
483 memmove(attr, Add2Ptr(attr, asize), used - aoff); in mi_remove_attr()
484 rec->used = cpu_to_le32(used); in mi_remove_attr()
495 u32 total, used = le32_to_cpu(rec->used); in mi_resize_attr() local
498 int tail = (int)(used - aoff - asize); in mi_resize_attr()
502 if (tail < 0 || aoff >= used) in mi_resize_attr()
513 if (used + dsize > total) in mi_resize_attr()
519 used += dsize; in mi_resize_attr()
527 used -= dsize; in mi_resize_attr()
531 rec->used = cpu_to_le32(used); in mi_resize_attr()
549 u32 used = le32_to_cpu(rec->used); in mi_pack_runs() local
555 u32 tail = used - aoff - asize; in mi_pack_runs()
556 u32 dsize = sbi->record_size - used; in mi_pack_runs()
575 rec->used = cpu_to_le32(used + new_run_size - run_size); in mi_pack_runs()