Searched refs:calc_index (Results 1 – 2 of 2) sorted by relevance
/linux/kernel/time/ |
H A D | timer.c | 567 static inline unsigned calc_index(unsigned long expires, unsigned lvl, in calc_index() function 591 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index() 593 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index() 595 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index() 597 idx = calc_index(expires, 3, bucket_expiry); in calc_wheel_index() 599 idx = calc_index(expires, 4, bucket_expiry); in calc_wheel_index() 601 idx = calc_index(expires, 5, bucket_expiry); in calc_wheel_index() 603 idx = calc_index(expires, 6, bucket_expiry); in calc_wheel_index() 605 idx = calc_index(expires, 7, bucket_expiry); in calc_wheel_index() 617 idx = calc_index(expires, LVL_DEPTH - 1, bucket_expiry); in calc_wheel_index()
|
/linux/drivers/gpu/drm/i915/gvt/ |
H A D | handlers.c | 884 static unsigned int calc_index(unsigned int offset, i915_reg_t _start, in calc_index() function 899 calc_index(offset, FDI_RX_CTL(PIPE_A), FDI_RX_CTL(PIPE_B), FDI_RX_CTL(PIPE_C)) 902 calc_index(offset, FDI_TX_CTL(PIPE_A), FDI_TX_CTL(PIPE_B), FDI_TX_CTL(PIPE_C)) 905 calc_index(offset, FDI_RX_IMR(PIPE_A), FDI_RX_IMR(PIPE_B), FDI_RX_IMR(PIPE_C)) 949 calc_index(offset, DP_TP_CTL(PORT_A), DP_TP_CTL(PORT_B), DP_TP_CTL(PORT_E)) 1013 calc_index(offset, DSPSURF(dev_priv, PIPE_A), DSPSURF(dev_priv, PIPE_B), DSPSURF(dev_priv, PIPE_C)) 1036 calc_index(offset, SPRSURF(PIPE_A), SPRSURF(PIPE_B), SPRSURF(PIPE_C))
|