Home
last modified time | relevance | path

Searched refs:tscale (Results 1 – 3 of 3) sorted by relevance

/freebsd-12.1/sys/mips/atheros/
H A Duart_dev_ar933x.c135 unsigned int tscale; in ar933x_uart_get_scale_step() local
144 for (tscale = 0; tscale < AR933X_UART_MAX_SCALE; tscale++) { in ar933x_uart_get_scale_step()
148 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step()
155 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step()
158 *scale = tscale; in ar933x_uart_get_scale_step()
/freebsd-12.1/sys/dev/cxgbe/common/
H A Dt4_hw.c9175 unsigned i, tscale = 1; in t4_init_sge_params() local
9185 tscale = G_TSCALE(r); in t4_init_sge_params()
9186 if (tscale == 0) in t4_init_sge_params()
9187 tscale = 1; in t4_init_sge_params()
9189 tscale += 2; in t4_init_sge_params()
9193 sp->timer_val[0] = core_ticks_to_us(adapter, G_TIMERVALUE0(r)) * tscale; in t4_init_sge_params()
9194 sp->timer_val[1] = core_ticks_to_us(adapter, G_TIMERVALUE1(r)) * tscale; in t4_init_sge_params()
9196 sp->timer_val[2] = core_ticks_to_us(adapter, G_TIMERVALUE2(r)) * tscale; in t4_init_sge_params()
9197 sp->timer_val[3] = core_ticks_to_us(adapter, G_TIMERVALUE3(r)) * tscale; in t4_init_sge_params()
9199 sp->timer_val[4] = core_ticks_to_us(adapter, G_TIMERVALUE4(r)) * tscale; in t4_init_sge_params()
[all …]
/freebsd-12.1/sys/dev/cxgbe/
H A Dt4_sge.c193 static int tscale = 1; variable
194 SYSCTL_INT(_hw_cxgbe, OID_AUTO, tscale, CTLFLAG_RDTUN, &tscale, 0,
544 if (tscale != 1 && (tscale < 3 || tscale > 17)) { in t4_sge_modload()
546 " using 1 instead.\n", tscale); in t4_sge_modload()
547 tscale = 1; in t4_sge_modload()
745 if (tscale == 1) in t4_tweak_chip_settings()
748 v = V_TSCALE(tscale - 2); in t4_tweak_chip_settings()