Lines Matching refs:t
60 static void ata_timing_quantize(const struct ata_timing *t, in ata_timing_quantize() argument
63 q->setup = EZ(t->setup, T); in ata_timing_quantize()
64 q->act8b = EZ(t->act8b, T); in ata_timing_quantize()
65 q->rec8b = EZ(t->rec8b, T); in ata_timing_quantize()
66 q->cyc8b = EZ(t->cyc8b, T); in ata_timing_quantize()
67 q->active = EZ(t->active, T); in ata_timing_quantize()
68 q->recover = EZ(t->recover, T); in ata_timing_quantize()
69 q->dmack_hold = EZ(t->dmack_hold, T); in ata_timing_quantize()
70 q->cycle = EZ(t->cycle, T); in ata_timing_quantize()
71 q->udma = EZ(t->udma, UT); in ata_timing_quantize()
100 const struct ata_timing *t = ata_timing; in ata_timing_find_mode() local
102 while (xfer_mode > t->mode) in ata_timing_find_mode()
103 t++; in ata_timing_find_mode()
105 if (xfer_mode == t->mode) in ata_timing_find_mode()
106 return t; in ata_timing_find_mode()
116 struct ata_timing *t, int T, int UT) in ata_timing_compute() argument
129 memcpy(t, s, sizeof(*s)); in ata_timing_compute()
148 ata_timing_merge(&p, t, t, ATA_TIMING_CYCLE | ATA_TIMING_CYC8B); in ata_timing_compute()
155 ata_timing_quantize(t, t, T, UT); in ata_timing_compute()
165 ata_timing_merge(&p, t, t, ATA_TIMING_ALL); in ata_timing_compute()
172 if (t->act8b + t->rec8b < t->cyc8b) { in ata_timing_compute()
173 t->act8b += (t->cyc8b - (t->act8b + t->rec8b)) / 2; in ata_timing_compute()
174 t->rec8b = t->cyc8b - t->act8b; in ata_timing_compute()
177 if (t->active + t->recover < t->cycle) { in ata_timing_compute()
178 t->active += (t->cycle - (t->active + t->recover)) / 2; in ata_timing_compute()
179 t->recover = t->cycle - t->active; in ata_timing_compute()
187 if (t->active + t->recover > t->cycle) in ata_timing_compute()
188 t->cycle = t->active + t->recover; in ata_timing_compute()