• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching refs:itdev

116 	struct it821x_dev *itdev = ide_get_hwifdata(hwif);
121 if(itdev->clock_mode == ATA_66)
142 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
147 if(itdev->clock_mode == ATA_66)
152 if (itdev->timing10 == 0)
172 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
177 if(itdev->want[0][0] > itdev->want[1][0]) {
178 clock = itdev->want[0][1];
179 altclock = itdev->want[1][1];
181 clock = itdev->want[1][1];
182 altclock = itdev->want[0][1];
196 if(clock == itdev->clock_mode)
201 itdev->clock_mode = ATA_66;
203 itdev->clock_mode = ATA_50;
216 if(pair && itdev->udma[1-unit] != UDMA_OFF) {
217 it821x_program_udma(pair, itdev->udma[1-unit]);
218 it821x_program(pair, itdev->pio[1-unit]);
224 if(itdev->udma[unit] != UDMA_OFF) {
225 it821x_program_udma(drive, itdev->udma[unit]);
226 it821x_program(drive, itdev->pio[unit]);
241 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
263 itdev->want[unit][1] = pio_want[set_pio];
264 itdev->want[unit][0] = 1; /* PIO is lowest priority */
265 itdev->pio[unit] = pio_timings[set_pio];
267 it821x_program(drive, itdev->pio[unit]);
285 struct it821x_dev *itdev = (void *)ide_get_hwifdata(hwif);
291 itdev->want[unit][1] = mwdma_want[mode_wanted];
292 itdev->want[unit][0] = 2; /* MWDMA is low priority */
293 itdev->mwdma[unit] = dma[mode_wanted];
294 itdev->udma[unit] = UDMA_OFF;
298 if (itdev->timing10)
305 /* it821x_program(drive, itdev->mwdma[unit]); */
321 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
327 itdev->want[unit][1] = udma_want[mode_wanted];
328 itdev->want[unit][0] = 3; /* UDMA is high priority */
329 itdev->mwdma[unit] = MWDMA_OFF;
330 itdev->udma[unit] = udma[mode_wanted];
332 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */
336 if (itdev->timing10)
343 it821x_program_udma(drive, itdev->udma[unit]);
351 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
354 if(itdev->mwdma[unit] != MWDMA_OFF)
355 it821x_program(drive, itdev->mwdma[unit]);
356 else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10)
357 it821x_program_udma(drive, itdev->udma[unit]);
373 struct it821x_dev *itdev = ide_get_hwifdata(hwif);
377 if(itdev->mwdma[unit] != MWDMA_OFF)
378 it821x_program(drive, itdev->pio[unit]);
423 struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif);
426 if (!itdev->smart) {