Lines Matching defs:bytep
78 static int ata_promise_apkt(u_int8_t *bytep, struct ata_request *request);
1198 ata_promise_apkt(u_int8_t *bytep, struct ata_request *request)
1202 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_PDC_WAIT_NBUSY|ATA_DRIVE;
1203 bytep[i++] = ATA_D_IBM | ATA_D_LBA | ATA_DEV(request->unit);
1204 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_CTL;
1205 bytep[i++] = ATA_A_4BIT;
1208 bytep[i++] = ATA_PDC_2B | ATA_PDC_WRITE_REG | ATA_FEATURE;
1209 bytep[i++] = request->u.ata.feature >> 8;
1210 bytep[i++] = request->u.ata.feature;
1211 bytep[i++] = ATA_PDC_2B | ATA_PDC_WRITE_REG | ATA_COUNT;
1212 bytep[i++] = request->u.ata.count >> 8;
1213 bytep[i++] = request->u.ata.count;
1214 bytep[i++] = ATA_PDC_2B | ATA_PDC_WRITE_REG | ATA_SECTOR;
1215 bytep[i++] = request->u.ata.lba >> 24;
1216 bytep[i++] = request->u.ata.lba;
1217 bytep[i++] = ATA_PDC_2B | ATA_PDC_WRITE_REG | ATA_CYL_LSB;
1218 bytep[i++] = request->u.ata.lba >> 32;
1219 bytep[i++] = request->u.ata.lba >> 8;
1220 bytep[i++] = ATA_PDC_2B | ATA_PDC_WRITE_REG | ATA_CYL_MSB;
1221 bytep[i++] = request->u.ata.lba >> 40;
1222 bytep[i++] = request->u.ata.lba >> 16;
1223 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_DRIVE;
1224 bytep[i++] = ATA_D_LBA | ATA_DEV(request->unit);
1227 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_FEATURE;
1228 bytep[i++] = request->u.ata.feature;
1229 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_COUNT;
1230 bytep[i++] = request->u.ata.count;
1231 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_SECTOR;
1232 bytep[i++] = request->u.ata.lba;
1233 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_CYL_LSB;
1234 bytep[i++] = request->u.ata.lba >> 8;
1235 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_CYL_MSB;
1236 bytep[i++] = request->u.ata.lba >> 16;
1237 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_REG | ATA_DRIVE;
1238 bytep[i++] = ATA_D_LBA | ATA_D_IBM | ATA_DEV(request->unit) |
1241 bytep[i++] = ATA_PDC_1B | ATA_PDC_WRITE_END | ATA_COMMAND;
1242 bytep[i++] = request->u.ata.command;