Lines Matching refs:total

195         uint64_t start, end, total;  member
309 .total = UINT64_MAX, in context_new()
550 static uint64_t charge_size(Context *context, uint64_t total, uint64_t amount) { in charge_size() argument
553 assert(amount <= total); in charge_size()
554 return LESS_BY(total, round_up_size(amount, context->grain_size)); in charge_size()
557 static uint64_t charge_weight(uint64_t total, uint64_t amount) { in charge_weight() argument
558 assert(amount <= total); in charge_weight()
559 return total - amount; in charge_weight()
1575 assert(context->total == UINT64_MAX); in context_load_partition_table()
1893 context->total = nsectors; in context_load_partition_table()
1942 context->total = UINT64_MAX; in context_unload_partition_table()
2100 uint64_t from, to, total; in context_bar_char_process_partition() local
2117 assert(context->total > 0); in context_bar_char_process_partition()
2118 total = context->total; in context_bar_char_process_partition()
2120 assert(from <= total); in context_bar_char_process_partition()
2121 x = from * n / total; in context_bar_char_process_partition()
2123 assert(to <= total); in context_bar_char_process_partition()
2124 y = to * n / total; in context_bar_char_process_partition()
3483 r = context_wipe_range(context, 0, context->total); in context_write_partition_table()
3489 r = context_discard_range(context, 0, context->total); in context_write_partition_table()
4795 if (c->total != UINT64_MAX) in determine_auto_size()
4798 FORMAT_BYTES(sum), FORMAT_BYTES(c->total)); in determine_auto_size()