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
249 round_period(unsigned int period, const struct sx_period *sx_table)
253 for (x = 1; sx_table[x].period_ns; x++) {
254 if ((period <= sx_table[x - 0].period_ns) &&
255 (period > sx_table[x - 1].period_ns)) {
267 const struct sx_period *sx_table)
270 * value in 'sx_table' is two times the actually used transfer period.
281 result = sx_table[round_period(period,sx_table)].reg_value;
294 /* 'period' is a "normal"-mode value, like the ones in 'sx_table'. The
985 / 4, 0, 0, hostdata->sx_table);
1009 0, hostdata->sx_table);
1036 hostdata->sx_table);
1039 0, hostdata->sx_table);
1477 DEFAULT_SX_OFF, 0, hostdata->sx_table));
1529 0, hostdata->sx_table);
1781 * frequency (/MHz) and fill 'sx_table'.
1783 * The original driver used to rely on a fixed sx_table, containing periods
1810 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9])
1822 sx_table[0].period_ns = 1;
1823 sx_table[0].reg_value = 0x20;
1825 sx_table[i].period_ns = round_4((i+1)*d / 100);
1826 sx_table[i].reg_value = (i+1)*0x10;
1828 sx_table[7].reg_value = 0;
1829 sx_table[8].period_ns = 0;
1830 sx_table[8].reg_value = 0;
1889 calc_sx_table(i, hostdata->sx_table);
1898 0, hostdata->sx_table);
1932 calc_sx_table(val, hostdata->sx_table);
1943 hostdata->sx_table[round_period((unsigned int) val,
1944 hostdata->sx_table)].period_ns;
2035 hd->sx_table[round_period((unsigned int) x,
2036 hd->sx_table)].period_ns;