Searched refs:rs_total (Results 1 - 7 of 7) sorted by relevance

/linux-master/drivers/block/drbd/
H A Ddrbd_proc.c41 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_MA
40 drbd_get_syncer_progress(struct drbd_device *device, union drbd_dev_state state, unsigned long *rs_total, unsigned long *bits_left, unsigned int *per_mil_done) argument
93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; local
[all...]
H A Ddrbd_worker.c601 if (device->rs_total == 0) {
887 db = device->rs_total;
931 if (device->use_csums && device->rs_total) {
933 const unsigned long t = device->rs_total;
941 Bit2KB(device->rs_total - device->rs_same_csum),
942 Bit2KB(device->rs_total));
1016 device->rs_total = 0;
1834 device->rs_total = tw;
1860 (unsigned long) device->rs_total << (BM_BLOCK_SHIFT-10),
1861 (unsigned long) device->rs_total);
[all...]
H A Ddrbd_state.c1231 device->rs_total = drbd_bm_bits(device);
1242 if (bit >= device->rs_total) {
1244 BM_BIT_TO_SECT(device->rs_total - 1);
1245 device->rs_total = 1;
1247 device->rs_total -= bit;
1250 device->ov_left = device->rs_total;
1804 device->rs_total = 0;
H A Ddrbd_int.h818 unsigned long rs_total; member in struct:drbd_device
H A Ddrbd_receiver.c2933 device->rs_total = device->ov_left;
5185 device->rs_total = 0;
H A Ddrbd_nl.c1764 device->rs_total = 0;
3787 device->rs_total) ||
H A Ddrbd_main.c2034 device->rs_total =

Completed in 316 milliseconds