Lines Matching refs:rs_total
41 union drbd_dev_state state, unsigned long *rs_total, in drbd_get_syncer_progress() argument
46 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress()
47 *rs_total = device->rs_total; in drbd_get_syncer_progress()
59 if (*bits_left > *rs_total) { in drbd_get_syncer_progress()
63 *bits_left = *rs_total; in drbd_get_syncer_progress()
64 *per_mil_done = *rs_total ? 0 : 1000; in drbd_get_syncer_progress()
75 unsigned int shift = *rs_total > UINT_MAX ? 16 : 10; in drbd_get_syncer_progress()
77 unsigned long total = 1UL + (*rs_total >> shift); in drbd_get_syncer_progress()
93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
98 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res); in drbd_syncer_progress()
117 if (rs_total > (4UL << (30 - BM_BLOCK_SHIFT))) in drbd_syncer_progress()
120 (unsigned long) Bit2KB(rs_total >> 10)); in drbd_syncer_progress()
124 (unsigned long) Bit2KB(rs_total)); in drbd_syncer_progress()
177 db = rs_total - rs_left; in drbd_syncer_progress()