• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:sx_table

75  * of transfer periods in sx_table to the actual input-clock.
96 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns
318 round_period(unsigned int period, const struct sx_period *sx_table)
322 for (x = 1; sx_table[x].period_ns; x++) {
323 if ((period <= sx_table[x - 0].period_ns) &&
324 (period > sx_table[x - 1].period_ns)) {
336 const struct sx_period *sx_table)
339 * value in 'sx_table' is two times the actually used transfer period.
350 result = sx_table[round_period(period,sx_table)].reg_value;
363 /* 'period' is a "normal"-mode value, like the ones in 'sx_table'. The
1034 / 4, 0, 0, hostdata->sx_table);
1058 0, hostdata->sx_table);
1085 hostdata->sx_table);
1088 0, hostdata->sx_table);
1524 DEFAULT_SX_OFF, 0, hostdata->sx_table));
1575 0, hostdata->sx_table);
1826 * frequency (/MHz) and fill 'sx_table'.
1828 * The original driver used to rely on a fixed sx_table, containing periods
1854 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9])
1866 sx_table[0].period_ns = 1;
1867 sx_table[0].reg_value = 0x20;
1869 sx_table[i].period_ns = round_4((i+1)*d / 100);
1870 sx_table[i].reg_value = (i+1)*0x10;
1872 sx_table[7].reg_value = 0;
1873 sx_table[8].period_ns = 0;
1874 sx_table[8].reg_value = 0;
1933 calc_sx_table(i, hostdata->sx_table);
1942 0, hostdata->sx_table);
1976 calc_sx_table(val, hostdata->sx_table);
1987 hostdata->sx_table[round_period((unsigned int) val,
1988 hostdata->sx_table)].period_ns;
2087 hd->sx_table[round_period((unsigned int) x,
2088 hd->sx_table)].period_ns;