Lines Matching refs:t

177 static void ide_timing_quantize(struct ide_timing *t, struct ide_timing *q, int T, int UT)  in ide_timing_quantize()  argument
179 q->setup = EZ(t->setup * 1000, T); in ide_timing_quantize()
180 q->act8b = EZ(t->act8b * 1000, T); in ide_timing_quantize()
181 q->rec8b = EZ(t->rec8b * 1000, T); in ide_timing_quantize()
182 q->cyc8b = EZ(t->cyc8b * 1000, T); in ide_timing_quantize()
183 q->active = EZ(t->active * 1000, T); in ide_timing_quantize()
184 q->recover = EZ(t->recover * 1000, T); in ide_timing_quantize()
185 q->cycle = EZ(t->cycle * 1000, T); in ide_timing_quantize()
186 q->udma = EZ(t->udma * 1000, UT); in ide_timing_quantize()
203 struct ide_timing *t; in ide_timing_find_mode() local
205 for (t = ide_timing; t->mode != speed; t++) in ide_timing_find_mode()
206 if (t->mode < 0) in ide_timing_find_mode()
208 return t; in ide_timing_find_mode()
211 static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing *t, int T, int UT) in ide_timing_compute() argument
244 ide_timing_merge(&p, t, t, IDE_TIMING_CYCLE | IDE_TIMING_CYC8B); in ide_timing_compute()
251 ide_timing_quantize(s, t, T, UT); in ide_timing_compute()
261 ide_timing_merge(&p, t, t, IDE_TIMING_ALL); in ide_timing_compute()
268 if (t->act8b + t->rec8b < t->cyc8b) { in ide_timing_compute()
269 t->act8b += (t->cyc8b - (t->act8b + t->rec8b)) / 2; in ide_timing_compute()
270 t->rec8b = t->cyc8b - t->act8b; in ide_timing_compute()
273 if (t->active + t->recover < t->cycle) { in ide_timing_compute()
274 t->active += (t->cycle - (t->active + t->recover)) / 2; in ide_timing_compute()
275 t->recover = t->cycle - t->active; in ide_timing_compute()