Lines Matching full:dx
87 u64 dx; /* the x-projection of the 1st segment */ member
99 u64 dx; /* the x-projection of the 1st segment */ member
359 * dx: psched_us
439 /* convert d (us) into dx (psched us) */
443 u64 dx; in d2dx() local
445 dx = ((u64)d * PSCHED_TICKS_PER_SEC); in d2dx()
446 dx += USEC_PER_SEC - 1; in d2dx()
447 do_div(dx, USEC_PER_SEC); in d2dx()
448 return dx; in d2dx()
461 /* convert dx (psched us) into d (us) */
463 dx2d(u64 dx) in dx2d() argument
467 d = dx * USEC_PER_SEC; in dx2d()
477 isc->dx = d2dx(sc->d); in sc2isc()
478 isc->dy = seg_x2y(isc->dx, isc->sm1); in sc2isc()
494 rtsc->dx = isc->dx; in rtsc_init()
514 x = rtsc->x + rtsc->dx; in rtsc_y2x()
519 x = rtsc->x + rtsc->dx in rtsc_y2x()
532 else if (x <= rtsc->x + rtsc->dx) in rtsc_x2y()
538 + seg_x2y(x - rtsc->x - rtsc->dx, rtsc->sm2); in rtsc_x2y()
549 u64 y1, y2, dx, dy; in rtsc_min() local
567 * y2: at (x + dx) in rtsc_min()
575 y2 = rtsc_x2y(rtsc, x + isc->dx); in rtsc_min()
580 rtsc->dx = isc->dx; in rtsc_min()
587 * compute the offsets (dx, dy) using the reverse in rtsc_min()
589 * seg_x2y(dx, sm1) == seg_x2y(dx, sm2) + (y1 - y) in rtsc_min()
591 dx = (y1 - y) << SM_SHIFT; in rtsc_min()
593 do_div(dx, dsm); in rtsc_min()
598 if (rtsc->x + rtsc->dx > x) in rtsc_min()
599 dx += rtsc->x + rtsc->dx - x; in rtsc_min()
600 dy = seg_x2y(dx, isc->sm1); in rtsc_min()
604 rtsc->dx = dx; in rtsc_min()
623 cl->cl_eligible.dx = 0; in init_ed()
882 cl->cl_eligible.dx = 0; in hfsc_change_rsc()
1275 tsc.d = dx2d(sc->dx); in hfsc_dump_sc()