Lines Matching refs:rs_total
41 union drbd_dev_state state, unsigned long *rs_total,
46 typecheck(unsigned long, device->rs_total);
47 *rs_total = device->rs_total;
49 /* note: both rs_total and rs_left are in bits, i.e. in
59 if (*bits_left > *rs_total) {
61 * between state change and reset of rs_total.
63 *bits_left = *rs_total;
64 *per_mil_done = *rs_total ? 0 : 1000;
75 unsigned int shift = *rs_total > UINT_MAX ? 16 : 10;
77 unsigned long total = 1UL + (*rs_total >> shift);
93 unsigned long db, dt, dbdt, rt, rs_total, rs_left;
98 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res);
117 if (rs_total > (4UL << (30 - BM_BLOCK_SHIFT)))
120 (unsigned long) Bit2KB(rs_total >> 10));
124 (unsigned long) Bit2KB(rs_total));
177 db = rs_total - rs_left;