Lines Matching refs:dt
93 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
142 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
143 if (dt > 180) in drbd_syncer_progress()
146 if (!dt) in drbd_syncer_progress()
147 dt++; in drbd_syncer_progress()
149 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
154 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
162 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
163 if (!dt) in drbd_syncer_progress()
164 dt++; in drbd_syncer_progress()
166 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()
174 dt = (jiffies - device->rs_start - device->rs_paused) / HZ; in drbd_syncer_progress()
175 if (dt == 0) in drbd_syncer_progress()
176 dt = 1; in drbd_syncer_progress()
178 dbdt = Bit2KB(db/dt); in drbd_syncer_progress()