Lines Matching refs:itdev
116 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program() local
121 if(itdev->clock_mode == ATA_66) in it821x_program()
142 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_program_udma() local
147 if(itdev->clock_mode == ATA_66) in it821x_program_udma()
152 if (itdev->timing10 == 0) in it821x_program_udma()
172 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_clock_strategy() local
177 if(itdev->want[0][0] > itdev->want[1][0]) { in it821x_clock_strategy()
178 clock = itdev->want[0][1]; in it821x_clock_strategy()
179 altclock = itdev->want[1][1]; in it821x_clock_strategy()
181 clock = itdev->want[1][1]; in it821x_clock_strategy()
182 altclock = itdev->want[0][1]; in it821x_clock_strategy()
196 if(clock == itdev->clock_mode) in it821x_clock_strategy()
201 itdev->clock_mode = ATA_66; in it821x_clock_strategy()
203 itdev->clock_mode = ATA_50; in it821x_clock_strategy()
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy()
217 it821x_program_udma(pair, itdev->udma[1-unit]); in it821x_clock_strategy()
218 it821x_program(pair, itdev->pio[1-unit]); in it821x_clock_strategy()
224 if(itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy()
225 it821x_program_udma(drive, itdev->udma[unit]); in it821x_clock_strategy()
226 it821x_program(drive, itdev->pio[unit]); in it821x_clock_strategy()
241 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_set_pio_mode() local
263 itdev->want[unit][1] = pio_want[set_pio]; in it821x_set_pio_mode()
264 itdev->want[unit][0] = 1; /* PIO is lowest priority */ in it821x_set_pio_mode()
265 itdev->pio[unit] = pio_timings[set_pio]; in it821x_set_pio_mode()
267 it821x_program(drive, itdev->pio[unit]); in it821x_set_pio_mode()
285 struct it821x_dev *itdev = (void *)ide_get_hwifdata(hwif); in it821x_tune_mwdma() local
291 itdev->want[unit][1] = mwdma_want[mode_wanted]; in it821x_tune_mwdma()
292 itdev->want[unit][0] = 2; /* MWDMA is low priority */ in it821x_tune_mwdma()
293 itdev->mwdma[unit] = dma[mode_wanted]; in it821x_tune_mwdma()
294 itdev->udma[unit] = UDMA_OFF; in it821x_tune_mwdma()
298 if (itdev->timing10) in it821x_tune_mwdma()
322 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_tune_udma() local
328 itdev->want[unit][1] = udma_want[mode_wanted]; in it821x_tune_udma()
329 itdev->want[unit][0] = 3; /* UDMA is high priority */ in it821x_tune_udma()
330 itdev->mwdma[unit] = MWDMA_OFF; in it821x_tune_udma()
331 itdev->udma[unit] = udma[mode_wanted]; in it821x_tune_udma()
333 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ in it821x_tune_udma()
337 if (itdev->timing10) in it821x_tune_udma()
344 it821x_program_udma(drive, itdev->udma[unit]); in it821x_tune_udma()
364 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_dma_start() local
367 if(itdev->mwdma[unit] != MWDMA_OFF) in it821x_dma_start()
368 it821x_program(drive, itdev->mwdma[unit]); in it821x_dma_start()
369 else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10) in it821x_dma_start()
370 it821x_program_udma(drive, itdev->udma[unit]); in it821x_dma_start()
386 struct it821x_dev *itdev = ide_get_hwifdata(hwif); in it821x_dma_end() local
390 if(itdev->mwdma[unit] != MWDMA_OFF) in it821x_dma_end()
391 it821x_program(drive, itdev->pio[unit]); in it821x_dma_end()
444 struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif); in it821x_quirkproc() local
447 if (!itdev->smart) { in it821x_quirkproc()