itdev 129 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 134 drivers/ata/pata_it821x.c if (itdev->clock_mode == ATA_66) itdev 156 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 163 drivers/ata/pata_it821x.c if (itdev->clock_mode == ATA_66) itdev 167 drivers/ata/pata_it821x.c if (itdev->timing10 == 0) itdev 188 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 197 drivers/ata/pata_it821x.c if (itdev->want[0][0] > itdev->want[1][0]) { itdev 198 drivers/ata/pata_it821x.c clock = itdev->want[0][1]; itdev 199 drivers/ata/pata_it821x.c altclock = itdev->want[1][1]; itdev 201 drivers/ata/pata_it821x.c clock = itdev->want[1][1]; itdev 202 drivers/ata/pata_it821x.c altclock = itdev->want[0][1]; itdev 213 drivers/ata/pata_it821x.c if (clock == itdev->clock_mode) itdev 218 drivers/ata/pata_it821x.c itdev->clock_mode = ATA_66; itdev 220 drivers/ata/pata_it821x.c itdev->clock_mode = ATA_50; itdev 232 drivers/ata/pata_it821x.c if (pair && itdev->udma[1-unit] != UDMA_OFF) { itdev 233 drivers/ata/pata_it821x.c it821x_program_udma(ap, pair, itdev->udma[1-unit]); itdev 234 drivers/ata/pata_it821x.c it821x_program(ap, pair, itdev->pio[1-unit]); itdev 240 drivers/ata/pata_it821x.c if (itdev->udma[unit] != UDMA_OFF) { itdev 241 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); itdev 242 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); itdev 261 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 266 drivers/ata/pata_it821x.c itdev->want[unit][1] = pio_want[mode_wanted]; itdev 267 drivers/ata/pata_it821x.c itdev->want[unit][0] = 1; /* PIO is lowest priority */ itdev 268 drivers/ata/pata_it821x.c itdev->pio[unit] = pio[mode_wanted]; itdev 270 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); itdev 293 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 301 drivers/ata/pata_it821x.c itdev->want[unit][1] = udma_want[mode_wanted]; itdev 302 drivers/ata/pata_it821x.c itdev->want[unit][0] = 3; /* UDMA is high priority */ itdev 303 drivers/ata/pata_it821x.c itdev->mwdma[unit] = MWDMA_OFF; itdev 304 drivers/ata/pata_it821x.c itdev->udma[unit] = udma[mode_wanted]; itdev 306 drivers/ata/pata_it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ itdev 310 drivers/ata/pata_it821x.c if (itdev->timing10) itdev 316 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); itdev 320 drivers/ata/pata_it821x.c itdev->want[unit][1] = mwdma_want[mode_wanted]; itdev 321 drivers/ata/pata_it821x.c itdev->want[unit][0] = 2; /* MWDMA is low priority */ itdev 322 drivers/ata/pata_it821x.c itdev->mwdma[unit] = dma[mode_wanted]; itdev 323 drivers/ata/pata_it821x.c itdev->udma[unit] = UDMA_OFF; itdev 327 drivers/ata/pata_it821x.c if (itdev->timing10) itdev 349 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 352 drivers/ata/pata_it821x.c if (itdev->mwdma[unit] != MWDMA_OFF) itdev 353 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->mwdma[unit]); itdev 354 drivers/ata/pata_it821x.c else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10) itdev 355 drivers/ata/pata_it821x.c it821x_program_udma(ap, adev, itdev->udma[unit]); itdev 372 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 376 drivers/ata/pata_it821x.c if (itdev->mwdma[unit] != MWDMA_OFF) itdev 377 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[unit]); itdev 392 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 393 drivers/ata/pata_it821x.c if (itdev && device != itdev->last_device) { itdev 395 drivers/ata/pata_it821x.c it821x_program(ap, adev, itdev->pio[adev->devno]); itdev 396 drivers/ata/pata_it821x.c itdev->last_device = device; itdev 578 drivers/ata/pata_it821x.c struct it821x_dev *itdev = ap->private_data; itdev 585 drivers/ata/pata_it821x.c if (itdev->smart) itdev 588 drivers/ata/pata_it821x.c if (itdev->timing10) itdev 738 drivers/ata/pata_it821x.c struct it821x_dev *itdev; itdev 745 drivers/ata/pata_it821x.c itdev = devm_kzalloc(&pdev->dev, sizeof(struct it821x_dev), GFP_KERNEL); itdev 746 drivers/ata/pata_it821x.c if (itdev == NULL) itdev 748 drivers/ata/pata_it821x.c ap->private_data = itdev; itdev 753 drivers/ata/pata_it821x.c itdev->smart = 1; itdev 762 drivers/ata/pata_it821x.c itdev->clock_mode = ATA_50; itdev 764 drivers/ata/pata_it821x.c itdev->clock_mode = ATA_66; itdev 766 drivers/ata/pata_it821x.c itdev->want[0][1] = ATA_ANY; itdev 767 drivers/ata/pata_it821x.c itdev->want[1][1] = ATA_ANY; itdev 768 drivers/ata/pata_it821x.c itdev->last_device = -1; itdev 771 drivers/ata/pata_it821x.c itdev->timing10 = 1; itdev 773 drivers/ata/pata_it821x.c if (!itdev->smart) itdev 116 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 121 drivers/ide/it821x.c if(itdev->clock_mode == ATA_66) itdev 142 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 147 drivers/ide/it821x.c if(itdev->clock_mode == ATA_66) itdev 152 drivers/ide/it821x.c if (itdev->timing10 == 0) itdev 172 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 177 drivers/ide/it821x.c if(itdev->want[0][0] > itdev->want[1][0]) { itdev 178 drivers/ide/it821x.c clock = itdev->want[0][1]; itdev 179 drivers/ide/it821x.c altclock = itdev->want[1][1]; itdev 181 drivers/ide/it821x.c clock = itdev->want[1][1]; itdev 182 drivers/ide/it821x.c altclock = itdev->want[0][1]; itdev 196 drivers/ide/it821x.c if(clock == itdev->clock_mode) itdev 201 drivers/ide/it821x.c itdev->clock_mode = ATA_66; itdev 203 drivers/ide/it821x.c itdev->clock_mode = ATA_50; itdev 216 drivers/ide/it821x.c if(pair && itdev->udma[1-unit] != UDMA_OFF) { itdev 217 drivers/ide/it821x.c it821x_program_udma(pair, itdev->udma[1-unit]); itdev 218 drivers/ide/it821x.c it821x_program(pair, itdev->pio[1-unit]); itdev 224 drivers/ide/it821x.c if(itdev->udma[unit] != UDMA_OFF) { itdev 225 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); itdev 226 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); itdev 241 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 263 drivers/ide/it821x.c itdev->want[unit][1] = pio_want[set_pio]; itdev 264 drivers/ide/it821x.c itdev->want[unit][0] = 1; /* PIO is lowest priority */ itdev 265 drivers/ide/it821x.c itdev->pio[unit] = pio_timings[set_pio]; itdev 267 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); itdev 285 drivers/ide/it821x.c struct it821x_dev *itdev = (void *)ide_get_hwifdata(hwif); itdev 291 drivers/ide/it821x.c itdev->want[unit][1] = mwdma_want[mode_wanted]; itdev 292 drivers/ide/it821x.c itdev->want[unit][0] = 2; /* MWDMA is low priority */ itdev 293 drivers/ide/it821x.c itdev->mwdma[unit] = dma[mode_wanted]; itdev 294 drivers/ide/it821x.c itdev->udma[unit] = UDMA_OFF; itdev 298 drivers/ide/it821x.c if (itdev->timing10) itdev 322 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 328 drivers/ide/it821x.c itdev->want[unit][1] = udma_want[mode_wanted]; itdev 329 drivers/ide/it821x.c itdev->want[unit][0] = 3; /* UDMA is high priority */ itdev 330 drivers/ide/it821x.c itdev->mwdma[unit] = MWDMA_OFF; itdev 331 drivers/ide/it821x.c itdev->udma[unit] = udma[mode_wanted]; itdev 333 drivers/ide/it821x.c itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ itdev 337 drivers/ide/it821x.c if (itdev->timing10) itdev 344 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); itdev 364 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 367 drivers/ide/it821x.c if(itdev->mwdma[unit] != MWDMA_OFF) itdev 368 drivers/ide/it821x.c it821x_program(drive, itdev->mwdma[unit]); itdev 369 drivers/ide/it821x.c else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10) itdev 370 drivers/ide/it821x.c it821x_program_udma(drive, itdev->udma[unit]); itdev 386 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(hwif); itdev 390 drivers/ide/it821x.c if(itdev->mwdma[unit] != MWDMA_OFF) itdev 391 drivers/ide/it821x.c it821x_program(drive, itdev->pio[unit]); itdev 444 drivers/ide/it821x.c struct it821x_dev *itdev = ide_get_hwifdata(drive->hwif); itdev 447 drivers/ide/it821x.c if (!itdev->smart) { itdev 1446 drivers/media/rc/ite-cir.c struct ite_dev *itdev = NULL; itdev 1454 drivers/media/rc/ite-cir.c itdev = kzalloc(sizeof(struct ite_dev), GFP_KERNEL); itdev 1455 drivers/media/rc/ite-cir.c if (!itdev) itdev 1462 drivers/media/rc/ite-cir.c itdev->rdev = rdev; itdev 1495 drivers/media/rc/ite-cir.c itdev->cir_addr = pnp_port_start(pdev, io_rsrc_no); itdev 1496 drivers/media/rc/ite-cir.c itdev->cir_irq = pnp_irq(pdev, 0); itdev 1499 drivers/media/rc/ite-cir.c spin_lock_init(&itdev->lock); itdev 1502 drivers/media/rc/ite-cir.c pnp_set_drvdata(pdev, itdev); itdev 1503 drivers/media/rc/ite-cir.c itdev->pdev = pdev; itdev 1506 drivers/media/rc/ite-cir.c init_waitqueue_head(&itdev->tx_queue); itdev 1507 drivers/media/rc/ite-cir.c init_waitqueue_head(&itdev->tx_ended); itdev 1510 drivers/media/rc/ite-cir.c itdev->params = *dev_desc; itdev 1514 drivers/media/rc/ite-cir.c itdev->params.sample_period = sample_period; itdev 1517 drivers/media/rc/ite-cir.c itdev->params.tx_carrier_freq = tx_carrier_freq; itdev 1520 drivers/media/rc/ite-cir.c itdev->params.tx_duty_cycle = tx_duty_cycle; itdev 1523 drivers/media/rc/ite-cir.c itdev->params.rx_low_carrier_freq = rx_low_carrier_freq; itdev 1526 drivers/media/rc/ite-cir.c itdev->params.rx_high_carrier_freq = rx_high_carrier_freq; itdev 1530 drivers/media/rc/ite-cir.c itdev->params.hw_tx_capable); itdev 1532 drivers/media/rc/ite-cir.c itdev->params.sample_period); itdev 1534 drivers/media/rc/ite-cir.c itdev->params.tx_carrier_freq); itdev 1536 drivers/media/rc/ite-cir.c itdev->params.tx_duty_cycle); itdev 1538 drivers/media/rc/ite-cir.c itdev->params.rx_low_carrier_freq); itdev 1540 drivers/media/rc/ite-cir.c itdev->params.rx_high_carrier_freq); itdev 1543 drivers/media/rc/ite-cir.c itdev->params.init_hardware(itdev); itdev 1546 drivers/media/rc/ite-cir.c rdev->priv = itdev; itdev 1554 drivers/media/rc/ite-cir.c itdev->params.sample_period; itdev 1558 drivers/media/rc/ite-cir.c itdev->params.sample_period; itdev 1560 drivers/media/rc/ite-cir.c itdev->params.sample_period; itdev 1563 drivers/media/rc/ite-cir.c if (itdev->params.hw_tx_capable) { itdev 1583 drivers/media/rc/ite-cir.c if (!request_region(itdev->cir_addr, itdev 1587 drivers/media/rc/ite-cir.c if (request_irq(itdev->cir_irq, ite_cir_isr, IRQF_SHARED, itdev 1588 drivers/media/rc/ite-cir.c ITE_DRIVER_NAME, (void *)itdev)) itdev 1596 drivers/media/rc/ite-cir.c release_region(itdev->cir_addr, itdev->params.io_region_size); itdev 1602 drivers/media/rc/ite-cir.c kfree(itdev);