Home
last modified time | relevance | path

Searched refs:ireason (Results 1 – 4 of 4) sorted by relevance

/drivers/ide/
Dide-atapi.c314 u8 stat, ireason, dsc = 0; in ide_pc_intr() local
399 ide_read_bcount_and_ireason(drive, &bcount, &ireason); in ide_pc_intr()
401 if (ireason & ATAPI_COD) { in ide_pc_intr()
406 if (((ireason & ATAPI_IO) == ATAPI_IO) == in ide_pc_intr()
411 (ireason & ATAPI_IO) ? "Write" : "Read", in ide_pc_intr()
412 (ireason & ATAPI_IO) ? "Read" : "Write"); in ide_pc_intr()
471 static u8 ide_wait_ireason(ide_drive_t *drive, u8 ireason) in ide_wait_ireason() argument
475 while (retries-- && ((ireason & ATAPI_COD) == 0 || in ide_wait_ireason()
476 (ireason & ATAPI_IO))) { in ide_wait_ireason()
480 ireason = ide_read_ireason(drive); in ide_wait_ireason()
[all …]
Dide-cd.c527 int len, int ireason, int rw) in ide_cd_check_ireason() argument
532 __func__, ireason, rw); in ide_cd_check_ireason()
538 if (ireason == (!rw << 1)) in ide_cd_check_ireason()
540 else if (ireason == (rw << 1)) { in ide_cd_check_ireason()
547 } else if (rw == 0 && ireason == 1) { in ide_cd_check_ireason()
557 drive->name, __func__, ireason); in ide_cd_check_ireason()
771 u8 ireason; in cdrom_newpc_intr() local
805 ide_read_bcount_and_ireason(drive, &len, &ireason); in cdrom_newpc_intr()
842 if (ide_cd_check_ireason(drive, rq, len, ireason, write)) in cdrom_newpc_intr()
869 if (ireason == 0) { in cdrom_newpc_intr()
[all …]
Dide-iops.c365 void ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) in ide_read_bcount_and_ireason() argument
376 *ireason = task.tf.nsect & 3; in ide_read_bcount_and_ireason()
/drivers/ata/
Dlibata-sff.c1055 unsigned int ireason, bc_lo, bc_hi, bytes; in atapi_pio_bytes() local
1065 ireason = qc->result_tf.nsect; in atapi_pio_bytes()
1071 if (unlikely(ireason & (1 << 0))) in atapi_pio_bytes()
1075 i_write = ((ireason & (1 << 1)) == 0) ? 1 : 0; in atapi_pio_bytes()
1092 ireason, bytes); in atapi_pio_bytes()