Lines Matching defs:ataio
1537 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA)) {
1569 (ccb->ataio.cmd.flags & (CAM_ATAIO_CONTROL | CAM_ATAIO_NEEDRESULT))) {
1590 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA))
1612 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA)) {
1618 (ccb->ataio.cmd.flags & (CAM_ATAIO_CONTROL | CAM_ATAIO_NEEDRESULT)))
1695 (ccb->ataio.cmd.flags & CAM_ATAIO_CONTROL)) {
1696 if (ccb->ataio.cmd.control & ATA_A_RESET) {
1720 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA)) {
1734 (ccb->ataio.cmd.command == ATA_DEVICE_RESET || softreset)) {
1953 struct ata_res *res = &ccb->ataio.res;
1956 (ccb->ataio.cmd.flags & CAM_ATAIO_NEEDRESULT)) {
1986 (ccb->ataio.cmd.flags & CAM_ATAIO_CONTROL) &&
1987 (ccb->ataio.cmd.control & ATA_A_RESET) == 0) {
1996 if ((ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) == 0 &&
1999 ccb->ataio.resid =
2000 ccb->ataio.dxfer_len - le32toh(clp->bytecount);
2078 (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA)) {
2092 (ccb->ataio.cmd.flags & CAM_ATAIO_CONTROL) &&
2093 (ccb->ataio.cmd.control & ATA_A_RESET) &&
2095 ccb->ataio.cmd.control &= ~ATA_A_RESET;
2152 struct ccb_ataio *ataio;
2186 ataio = &ccb->ataio;
2187 ataio->data_ptr = malloc(512, M_AHCI, M_NOWAIT);
2188 if (ataio->data_ptr == NULL) {
2194 ataio->dxfer_len = 512;
2195 bzero(&ataio->cmd, sizeof(ataio->cmd));
2196 ataio->cmd.flags = CAM_ATAIO_48BIT;
2197 ataio->cmd.command = 0x2F; /* READ LOG EXT */
2198 ataio->cmd.sector_count = 1;
2199 ataio->cmd.sector_count_exp = 0;
2200 ataio->cmd.lba_low = 0x10;
2201 ataio->cmd.lba_mid = 0;
2202 ataio->cmd.lba_mid_exp = 0;
2234 data = ccb->ataio.data_ptr;
2243 res = &ch->hold[i]->ataio.res;
2279 free(ccb->ataio.data_ptr, M_AHCI);
2569 } else if ((ccb->ataio.cmd.flags & CAM_ATAIO_CONTROL) == 0) {
2571 fis[2] = ccb->ataio.cmd.command;
2572 fis[3] = ccb->ataio.cmd.features;
2573 fis[4] = ccb->ataio.cmd.lba_low;
2574 fis[5] = ccb->ataio.cmd.lba_mid;
2575 fis[6] = ccb->ataio.cmd.lba_high;
2576 fis[7] = ccb->ataio.cmd.device;
2577 fis[8] = ccb->ataio.cmd.lba_low_exp;
2578 fis[9] = ccb->ataio.cmd.lba_mid_exp;
2579 fis[10] = ccb->ataio.cmd.lba_high_exp;
2580 fis[11] = ccb->ataio.cmd.features_exp;
2581 fis[12] = ccb->ataio.cmd.sector_count;
2582 if (ccb->ataio.cmd.flags & CAM_ATAIO_FPDMA) {
2586 fis[13] = ccb->ataio.cmd.sector_count_exp;
2587 if (ccb->ataio.ata_flags & ATA_FLAG_ICC)
2588 fis[14] = ccb->ataio.icc;
2590 if (ccb->ataio.ata_flags & ATA_FLAG_AUX) {
2591 fis[16] = ccb->ataio.aux & 0xff;
2592 fis[17] = (ccb->ataio.aux >> 8) & 0xff;
2593 fis[18] = (ccb->ataio.aux >> 16) & 0xff;
2594 fis[19] = (ccb->ataio.aux >> 24) & 0xff;
2597 fis[15] = ccb->ataio.cmd.control;