Lines Matching refs:sx_table

87 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns
309 round_period(unsigned int period, const struct sx_period *sx_table) in round_period() argument
313 for (x = 1; sx_table[x].period_ns; x++) { in round_period()
314 if ((period <= sx_table[x - 0].period_ns) && in round_period()
315 (period > sx_table[x - 1].period_ns)) { in round_period()
327 const struct sx_period *sx_table) in calc_sync_xfer() argument
341 result = sx_table[round_period(period,sx_table)].reg_value; in calc_sync_xfer()
1042 / 4, 0, 0, hostdata->sx_table); in wd33c93_intr()
1066 0, hostdata->sx_table); in wd33c93_intr()
1093 hostdata->sx_table); in wd33c93_intr()
1096 0, hostdata->sx_table); in wd33c93_intr()
1531 DEFAULT_SX_OFF, 0, hostdata->sx_table)); in reset_wd33c93()
1583 0, hostdata->sx_table); in wd33c93_host_reset()
1864 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9]) in calc_sx_table()
1876 sx_table[0].period_ns = 1; in calc_sx_table()
1877 sx_table[0].reg_value = 0x20; in calc_sx_table()
1879 sx_table[i].period_ns = round_4((i+1)*d / 100); in calc_sx_table()
1880 sx_table[i].reg_value = (i+1)*0x10; in calc_sx_table()
1882 sx_table[7].reg_value = 0; in calc_sx_table()
1883 sx_table[8].period_ns = 0; in calc_sx_table()
1884 sx_table[8].reg_value = 0; in calc_sx_table()
1943 calc_sx_table(i, hostdata->sx_table); in wd33c93_init()
1952 0, hostdata->sx_table); in wd33c93_init()
1986 calc_sx_table(val, hostdata->sx_table); in wd33c93_init()
1997 hostdata->sx_table[round_period((unsigned int) val, in wd33c93_init()
1998 hostdata->sx_table)].period_ns; in wd33c93_init()
2089 hd->sx_table[round_period((unsigned int) x, in wd33c93_write_info()
2090 hd->sx_table)].period_ns; in wd33c93_write_info()