Lines Matching refs:sx_table

87 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns
249 round_period(unsigned int period, const struct sx_period *sx_table) in round_period() argument
253 for (x = 1; sx_table[x].period_ns; x++) { in round_period()
254 if ((period <= sx_table[x - 0].period_ns) && in round_period()
255 (period > sx_table[x - 1].period_ns)) { in round_period()
267 const struct sx_period *sx_table) in calc_sync_xfer() argument
281 result = sx_table[round_period(period,sx_table)].reg_value; in calc_sync_xfer()
985 / 4, 0, 0, hostdata->sx_table); in wd33c93_intr()
1009 0, hostdata->sx_table); in wd33c93_intr()
1036 hostdata->sx_table); in wd33c93_intr()
1039 0, hostdata->sx_table); in wd33c93_intr()
1477 DEFAULT_SX_OFF, 0, hostdata->sx_table)); in reset_wd33c93()
1529 0, hostdata->sx_table); in wd33c93_host_reset()
1810 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9]) in calc_sx_table()
1822 sx_table[0].period_ns = 1; in calc_sx_table()
1823 sx_table[0].reg_value = 0x20; in calc_sx_table()
1825 sx_table[i].period_ns = round_4((i+1)*d / 100); in calc_sx_table()
1826 sx_table[i].reg_value = (i+1)*0x10; in calc_sx_table()
1828 sx_table[7].reg_value = 0; in calc_sx_table()
1829 sx_table[8].period_ns = 0; in calc_sx_table()
1830 sx_table[8].reg_value = 0; in calc_sx_table()
1889 calc_sx_table(i, hostdata->sx_table); in wd33c93_init()
1898 0, hostdata->sx_table); in wd33c93_init()
1932 calc_sx_table(val, hostdata->sx_table); in wd33c93_init()
1943 hostdata->sx_table[round_period((unsigned int) val, in wd33c93_init()
1944 hostdata->sx_table)].period_ns; in wd33c93_init()
2035 hd->sx_table[round_period((unsigned int) x, in wd33c93_write_info()
2036 hd->sx_table)].period_ns; in wd33c93_write_info()