Searched refs:NS_TO_CYCLE (Results 1 – 2 of 2) sorted by relevance
28 #define NS_TO_CYCLE(NS, MHz) (((NS) * (MHz)) / NSEC_PER_USEC) macro117 NS_TO_CYCLE(dmcfreq->pd_idle_ns, ddrcon_mhz), in rk3399_dmcfreq_target()120 NS_TO_CYCLE(dmcfreq->standby_idle_ns, ddrcon_mhz), in rk3399_dmcfreq_target()123 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->sr_idle_ns, in rk3399_dmcfreq_target()127 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->sr_mc_gate_idle_ns, in rk3399_dmcfreq_target()131 DIV_ROUND_UP(NS_TO_CYCLE(dmcfreq->srpd_lite_idle_ns, in rk3399_dmcfreq_target()
147 #define NS_TO_CYCLE(n, c) ((n) / (c) + (((n) % (c)) ? 1 : 0)) macro