Lines Matching refs:ide_outb
217 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
226 ide_outb(device, ATA_ERROR_REG, 0); /* no DMA, no overlaped */ in atapi_issue()
227 ide_outb(device, ATA_SECT_CNT, 0); in atapi_issue()
228 ide_outb(device, ATA_SECT_NUM, 0); in atapi_issue()
229 ide_outb(device, ATA_CYL_LOW, (unsigned char) (buflen & 0xFF)); in atapi_issue()
230 ide_outb(device, ATA_CYL_HIGH, in atapi_issue()
232 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
234 ide_outb(device, ATA_COMMAND, ATAPI_CMD_PACKET); in atapi_issue()
555 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
573 ide_outb(device, ATA_COMMAND, ATAPI_CMD_IDENT); in ide_ident()
585 ide_outb(device, ATA_COMMAND, ATA_CMD_IDENT); in ide_ident()
602 ide_outb(device, ATA_DEV_HD, in ide_ident()
605 ide_outb(device, ATA_COMMAND, 0x08); in ide_ident()
611 ide_outb(device, ATA_DEV_HD, in ide_ident()
694 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
696 ide_outb(device, ATA_SECT_CNT, 1); in ide_ident()
697 ide_outb(device, ATA_LBA_LOW, 0); in ide_ident()
698 ide_outb(device, ATA_LBA_MID, 0); in ide_ident()
699 ide_outb(device, ATA_LBA_HIGH, 0); in ide_ident()
700 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_ident()
701 ide_outb(device, ATA_COMMAND, 0xe3); in ide_ident()
707 __weak void ide_outb(int dev, int port, unsigned char val) in ide_outb() function
777 ide_outb(dev, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(dev)); in ide_init()
959 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_read()
969 ide_outb(device, ATA_COMMAND, ATA_CMD_CHK_PWR); in ide_read()
998 ide_outb(device, ATA_SECT_CNT, 0); in ide_read()
999 ide_outb(device, ATA_LBA_LOW, (blknr >> 24) & 0xFF); in ide_read()
1001 ide_outb(device, ATA_LBA_MID, (blknr >> 32) & 0xFF); in ide_read()
1002 ide_outb(device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF); in ide_read()
1004 ide_outb(device, ATA_LBA_MID, 0); in ide_read()
1005 ide_outb(device, ATA_LBA_HIGH, 0); in ide_read()
1009 ide_outb(device, ATA_SECT_CNT, 1); in ide_read()
1010 ide_outb(device, ATA_LBA_LOW, (blknr >> 0) & 0xFF); in ide_read()
1011 ide_outb(device, ATA_LBA_MID, (blknr >> 8) & 0xFF); in ide_read()
1012 ide_outb(device, ATA_LBA_HIGH, (blknr >> 16) & 0xFF); in ide_read()
1016 ide_outb(device, ATA_DEV_HD, in ide_read()
1018 ide_outb(device, ATA_COMMAND, ATA_CMD_READ_EXT); in ide_read()
1023 ide_outb(device, ATA_DEV_HD, ATA_LBA | in ide_read()
1025 ide_outb(device, ATA_COMMAND, ATA_CMD_READ); in ide_read()
1083 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in ide_write()
1095 ide_outb(device, ATA_SECT_CNT, 0); in ide_write()
1096 ide_outb(device, ATA_LBA_LOW, (blknr >> 24) & 0xFF); in ide_write()
1098 ide_outb(device, ATA_LBA_MID, (blknr >> 32) & 0xFF); in ide_write()
1099 ide_outb(device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF); in ide_write()
1101 ide_outb(device, ATA_LBA_MID, 0); in ide_write()
1102 ide_outb(device, ATA_LBA_HIGH, 0); in ide_write()
1106 ide_outb(device, ATA_SECT_CNT, 1); in ide_write()
1107 ide_outb(device, ATA_LBA_LOW, (blknr >> 0) & 0xFF); in ide_write()
1108 ide_outb(device, ATA_LBA_MID, (blknr >> 8) & 0xFF); in ide_write()
1109 ide_outb(device, ATA_LBA_HIGH, (blknr >> 16) & 0xFF); in ide_write()
1113 ide_outb(device, ATA_DEV_HD, in ide_write()
1115 ide_outb(device, ATA_COMMAND, ATA_CMD_WRITE_EXT); in ide_write()
1120 ide_outb(device, ATA_DEV_HD, ATA_LBA | in ide_write()
1122 ide_outb(device, ATA_COMMAND, ATA_CMD_WRITE); in ide_write()