Lines Matching refs:ch_drive
212 KASSERT(chp->ch_ndrives == 0 || chp->ch_drive != NULL);
257 chp->ch_drive[0].drive_type = ATA_DRIVET_ATAPI;
259 chp->ch_drive[0].drive_type = ATA_DRIVET_ATA;
266 chp->ch_drive[0].drive_type = ATA_DRIVET_NONE;
321 chp->ch_drive[1].drive_type == ATA_DRIVET_ATA) {
330 if (chp->ch_drive[0].drive_type == ATA_DRIVET_ATA) {
341 if ((chp->ch_drive[0].drive_type != ATA_DRIVET_ATA ||
344 chp->ch_drive[1].drive_type != ATA_DRIVET_ATA ||
357 chp->ch_drive[0].drive_type != ATA_DRIVET_ATAPI)
358 chp->ch_drive[0].drive_type = ATA_DRIVET_NONE;
360 chp->ch_drive[1].drive_type != ATA_DRIVET_ATAPI)
361 chp->ch_drive[1].drive_type = ATA_DRIVET_NONE;
377 chp->ch_drive[i].n_dmaerrs = NERRS_MAX - 1;
384 chp->ch_drive[i].drive_flags |= ATA_DRIVE_CAP32;
387 if (chp->ch_drive[i].drive_type == ATA_DRIVET_NONE)
400 error = ata_get_params(&chp->ch_drive[i],
411 error = ata_get_params(&chp->ch_drive[i],
419 if (chp->ch_drive[i].drive_type != ATA_DRIVET_ATA ||
421 chp->ch_drive[i].drive_type = ATA_DRIVET_NONE;
447 chp->ch_drive[i].drive_type = ATA_DRIVET_NONE;
456 chp->ch_drive[i].drive_type = ATA_DRIVET_NONE;
468 chp->ch_drive[i].drive_type = ATA_DRIVET_NONE;
472 if (chp->ch_drive[i].drive_type !=
474 chp->ch_drive[j].drive_type =
771 if (chp->ch_drive != NULL) {
773 chp->ch_drive[drive].drive_type = ATA_DRIVET_ATAPI;
775 chp->ch_drive[drive].drive_type = ATA_DRIVET_ATA;
1041 drv_mask1 = (chp->ch_drive[0].drive_type != ATA_DRIVET_NONE)
1044 drv_mask1 |= (chp->ch_drive[1].drive_type != ATA_DRIVET_NONE)
1517 chp->ch_drive[xfer->c_drive].drive_flags;
1523 drive_flags = chp->ch_drive[xfer->c_drive].drive_flags;