Lines Matching refs:sx_table

96 #define optimum_sx_per(hostdata) (hostdata)->sx_table[1].period_ns
318 round_period(unsigned int period, const struct sx_period *sx_table) in round_period() argument
322 for (x = 1; sx_table[x].period_ns; x++) { in round_period()
323 if ((period <= sx_table[x - 0].period_ns) && in round_period()
324 (period > sx_table[x - 1].period_ns)) { in round_period()
336 const struct sx_period *sx_table) in calc_sync_xfer() argument
350 result = sx_table[round_period(period,sx_table)].reg_value; in calc_sync_xfer()
1051 / 4, 0, 0, hostdata->sx_table); in wd33c93_intr()
1075 0, hostdata->sx_table); in wd33c93_intr()
1102 hostdata->sx_table); in wd33c93_intr()
1105 0, hostdata->sx_table); in wd33c93_intr()
1540 DEFAULT_SX_OFF, 0, hostdata->sx_table)); in reset_wd33c93()
1591 0, hostdata->sx_table); in wd33c93_host_reset()
1870 calc_sx_table(unsigned int mhz, struct sx_period sx_table[9]) in calc_sx_table()
1882 sx_table[0].period_ns = 1; in calc_sx_table()
1883 sx_table[0].reg_value = 0x20; in calc_sx_table()
1885 sx_table[i].period_ns = round_4((i+1)*d / 100); in calc_sx_table()
1886 sx_table[i].reg_value = (i+1)*0x10; in calc_sx_table()
1888 sx_table[7].reg_value = 0; in calc_sx_table()
1889 sx_table[8].period_ns = 0; in calc_sx_table()
1890 sx_table[8].reg_value = 0; in calc_sx_table()
1949 calc_sx_table(i, hostdata->sx_table); in wd33c93_init()
1958 0, hostdata->sx_table); in wd33c93_init()
1992 calc_sx_table(val, hostdata->sx_table); in wd33c93_init()
2003 hostdata->sx_table[round_period((unsigned int) val, in wd33c93_init()
2004 hostdata->sx_table)].period_ns; in wd33c93_init()
2095 hd->sx_table[round_period((unsigned int) x, in wd33c93_write_info()
2096 hd->sx_table)].period_ns; in wd33c93_write_info()