Searched refs:rtsc (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/net/sched/ |
H A D | sch_hfsc.c | 497 rtsc_init(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y) rtsc_init() argument 499 rtsc->x = x; rtsc_init() 500 rtsc->y = y; rtsc_init() 501 rtsc->sm1 = isc->sm1; rtsc_init() 502 rtsc->ism1 = isc->ism1; rtsc_init() 503 rtsc->dx = isc->dx; rtsc_init() 504 rtsc->dy = isc->dy; rtsc_init() 505 rtsc->sm2 = isc->sm2; rtsc_init() 506 rtsc->ism2 = isc->ism2; rtsc_init() 514 rtsc_y2x(struct runtime_sc *rtsc, u64 y) rtsc_y2x() argument 518 if (y < rtsc->y) rtsc_y2x() 519 x = rtsc->x; rtsc_y2x() 520 else if (y <= rtsc->y + rtsc->dy) { rtsc_y2x() 522 if (rtsc->dy == 0) rtsc_y2x() 523 x = rtsc->x + rtsc->dx; rtsc_y2x() 525 x = rtsc->x + seg_y2x(y - rtsc->y, rtsc->ism1); rtsc_y2x() 528 x = rtsc->x + rtsc->dx rtsc_y2x() 529 + seg_y2x(y - rtsc->y - rtsc->dy, rtsc->ism2); rtsc_y2x() 535 rtsc_x2y(struct runtime_sc *rtsc, u64 x) rtsc_x2y() argument 539 if (x <= rtsc->x) rtsc_x2y() 540 y = rtsc->y; rtsc_x2y() 541 else if (x <= rtsc->x + rtsc->dx) rtsc_x2y() 543 y = rtsc->y + seg_x2y(x - rtsc->x, rtsc->sm1); rtsc_x2y() 546 y = rtsc->y + rtsc->dy rtsc_x2y() 547 + seg_x2y(x - rtsc->x - rtsc->dx, rtsc->sm2); rtsc_x2y() 556 rtsc_min(struct runtime_sc *rtsc, struct internal_sc *isc, u64 x, u64 y) rtsc_min() argument 563 y1 = rtsc_x2y(rtsc, x); rtsc_min() 565 /* the current rtsc is smaller */ rtsc_min() 567 rtsc->x = x; rtsc_min() 568 rtsc->y = y; rtsc_min() 574 * compute the two y values of the current rtsc rtsc_min() 578 y1 = rtsc_x2y(rtsc, x); rtsc_min() 580 /* rtsc is below isc, no change to rtsc */ rtsc_min() 584 y2 = rtsc_x2y(rtsc, x + isc->dx); rtsc_min() 586 /* rtsc is above isc, replace rtsc by isc */ rtsc_min() 587 rtsc->x = x; rtsc_min() 588 rtsc->y = y; rtsc_min() 589 rtsc->dx = isc->dx; rtsc_min() 590 rtsc->dy = isc->dy; rtsc_min() 604 * check if (x, y1) belongs to the 1st segment of rtsc. rtsc_min() 607 if (rtsc->x + rtsc->dx > x) rtsc_min() 608 dx += rtsc->x + rtsc->dx - x; rtsc_min() 611 rtsc->x = x; rtsc_min() 612 rtsc->y = y; rtsc_min() 613 rtsc->dx = dx; rtsc_min() 614 rtsc->dy = dy; rtsc_min()
|
/linux-4.1.27/arch/arc/include/asm/ |
H A D | arcregs.h | 274 unsigned int pad2:15, rtsc:1, pad1:6, t1:1, t0:1, ver:8; member in struct:bcr_timer 276 unsigned int ver:8, t0:1, t1:1, pad1:6, rtsc:1, pad2:15;
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | setup.c | 186 IS_AVAIL2(cpu->timers.rtsc, "64-bit RTSC ", CONFIG_ARC_HAS_RTSC)); arc_cpu_mumbojumbo() 257 if (IS_ENABLED(CONFIG_ARC_HAS_RTSC) && !cpu->timers.rtsc) arc_chk_core_config()
|
H A D | time.c | 89 " rtsc %0, 0 \n" arc_counter_read()
|
Completed in 265 milliseconds