Searched refs:tscale (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.1/sys/mips/atheros/ |
| H A D | uart_dev_ar933x.c | 132 unsigned int tscale; in ar933x_uart_get_scale_step() local 141 for (tscale = 0; tscale < AR933X_UART_MAX_SCALE; tscale++) { in ar933x_uart_get_scale_step() 145 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step() 152 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step() 155 *scale = tscale; in ar933x_uart_get_scale_step()
|
| /freebsd-13.1/sys/dev/cxgbe/common/ |
| H A D | t4_hw.c | 9607 unsigned i, tscale = 1; in t4_init_sge_params() local 9617 tscale = G_TSCALE(r); in t4_init_sge_params() 9618 if (tscale == 0) in t4_init_sge_params() 9619 tscale = 1; in t4_init_sge_params() 9621 tscale += 2; in t4_init_sge_params() 9625 sp->timer_val[0] = core_ticks_to_us(adapter, G_TIMERVALUE0(r)) * tscale; in t4_init_sge_params() 9626 sp->timer_val[1] = core_ticks_to_us(adapter, G_TIMERVALUE1(r)) * tscale; in t4_init_sge_params() 9628 sp->timer_val[2] = core_ticks_to_us(adapter, G_TIMERVALUE2(r)) * tscale; in t4_init_sge_params() 9629 sp->timer_val[3] = core_ticks_to_us(adapter, G_TIMERVALUE3(r)) * tscale; in t4_init_sge_params() 9631 sp->timer_val[4] = core_ticks_to_us(adapter, G_TIMERVALUE4(r)) * tscale; in t4_init_sge_params() [all …]
|
| /freebsd-13.1/sys/dev/cxgbe/ |
| H A D | t4_sge.c | 189 static int tscale = 1; variable 190 SYSCTL_INT(_hw_cxgbe, OID_AUTO, tscale, CTLFLAG_RDTUN, &tscale, 0, 562 if (tscale != 1 && (tscale < 3 || tscale > 17)) { in t4_sge_modload() 564 " using 1 instead.\n", tscale); in t4_sge_modload() 565 tscale = 1; in t4_sge_modload() 794 if (tscale == 1) in t4_tweak_chip_settings() 797 v = V_TSCALE(tscale - 2); in t4_tweak_chip_settings()
|