Lines Matching refs:sx_table
66 * of transfer periods in sx_table to the actual input-clock.
87 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns
309 round_period(unsigned int period, const struct sx_period *sx_table)
313 for (x = 1; sx_table[x].period_ns; x++) {
314 if ((period <= sx_table[x - 0].period_ns) &&
315 (period > sx_table[x - 1].period_ns)) {
327 const struct sx_period *sx_table)
330 * value in 'sx_table' is two times the actually used transfer period.
341 result = sx_table[round_period(period,sx_table)].reg_value;
354 /* 'period' is a "normal"-mode value, like the ones in 'sx_table'. The
1042 / 4, 0, 0, hostdata->sx_table);
1066 0, hostdata->sx_table);
1093 hostdata->sx_table);
1096 0, hostdata->sx_table);
1531 DEFAULT_SX_OFF, 0, hostdata->sx_table));
1583 0, hostdata->sx_table);
1835 * frequency (/MHz) and fill 'sx_table'.
1837 * The original driver used to rely on a fixed sx_table, containing periods
1864 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9])
1876 sx_table[0].period_ns = 1;
1877 sx_table[0].reg_value = 0x20;
1879 sx_table[i].period_ns = round_4((i+1)*d / 100);
1880 sx_table[i].reg_value = (i+1)*0x10;
1882 sx_table[7].reg_value = 0;
1883 sx_table[8].period_ns = 0;
1884 sx_table[8].reg_value = 0;
1943 calc_sx_table(i, hostdata->sx_table);
1952 0, hostdata->sx_table);
1986 calc_sx_table(val, hostdata->sx_table);
1997 hostdata->sx_table[round_period((unsigned int) val,
1998 hostdata->sx_table)].period_ns;
2089 hd->sx_table[round_period((unsigned int) x,
2090 hd->sx_table)].period_ns;