Home
last modified time | relevance | path

Searched refs:scaled_div (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/clk/bcm/
Dclk-kona.c101 divider(struct bcm_clk_div *div, u64 scaled_div) in divider() argument
103 BUG_ON(scaled_div < scaled_div_min(div)); in divider()
104 BUG_ON(scaled_div > scaled_div_max(div)); in divider()
106 return (u32)(scaled_div - ((u64)1 << div->u.s.frac_width)); in divider()
598 if (div->u.s.scaled_div == BAD_SCALED_DIV_VALUE) { in __div_commit()
602 div->u.s.scaled_div = scaled_div_value(div, reg_div); in __div_commit()
608 reg_div = divider(div, div->u.s.scaled_div); in __div_commit()
649 u64 scaled_div) in divider_write() argument
657 previous = div->u.s.scaled_div; in divider_write()
658 if (previous == scaled_div) in divider_write()
[all …]
Dclk-kona.h266 u64 scaled_div; /* scaled divider value */ member
296 .u.s.scaled_div = BAD_SCALED_DIV_VALUE, \
307 .u.s.scaled_div = BAD_SCALED_DIV_VALUE, \
/linux-6.1.9/net/dccp/ccids/lib/
Dtfrc.h27 static inline u64 scaled_div(u64 a, u64 b) in scaled_div() function
35 u64 result = scaled_div(a, b); in scaled_div32()
Dtfrc_equation.c652 result = scaled_div(s, R); in tfrc_calc_x()
701 return max_t(u32, scaled_div(1, loss_event_rate), TFRC_SMALLEST_P); in tfrc_invert_loss_event_rate()
/linux-6.1.9/net/dccp/ccids/
Dccid3.c77 return scaled_div(w_init << 6, hc->tx_rtt); in rfc3390_initial_rate()
141 scaled_div(((__u64)hc->tx_s) << 6, hc->tx_rtt)); in ccid3_hc_tx_update_x()
697 fval = scaled_div(hc->rx_s, hc->rx_rtt); in ccid3_first_li()
704 return p == 0 ? ~0U : scaled_div(1, p); in ccid3_first_li()