Lines Matching refs:blknr

413 ulong atapi_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt,  in atapi_read()  argument
422 " buffer at %lX\n", device, blknr, blkcnt, (ulong) buffer); in atapi_read()
432 ccb[2] = (unsigned char) (blknr >> 24) & 0xFF; /* MSB Block */ in atapi_read()
433 ccb[3] = (unsigned char) (blknr >> 16) & 0xFF; /* */ in atapi_read()
434 ccb[4] = (unsigned char) (blknr >> 8) & 0xFF; in atapi_read()
435 ccb[5] = (unsigned char) blknr & 0xFF; /* LSB Block */ in atapi_read()
451 blknr += cnt; in atapi_read()
935 ulong ide_read(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in ide_read() argument
938 ulong ide_read(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in ide_read()
953 if (blknr & 0x0000fffff0000000ULL) { in ide_read()
959 device, blknr, blkcnt, (ulong) buffer); in ide_read()
1003 ide_outb(device, ATA_LBA_LOW, (blknr >> 24) & 0xFF); in ide_read()
1005 ide_outb(device, ATA_LBA_MID, (blknr >> 32) & 0xFF); in ide_read()
1006 ide_outb(device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF); in ide_read()
1014 ide_outb(device, ATA_LBA_LOW, (blknr >> 0) & 0xFF); in ide_read()
1015 ide_outb(device, ATA_LBA_MID, (blknr >> 8) & 0xFF); in ide_read()
1016 ide_outb(device, ATA_LBA_HIGH, (blknr >> 16) & 0xFF); in ide_read()
1028 ATA_DEVICE(device) | ((blknr >> 24) & 0xF)); in ide_read()
1046 ": status %#02x\n", device, blknr, c); in ide_read()
1054 ++blknr; in ide_read()
1062 ulong ide_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, in ide_write() argument
1065 ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, in ide_write()
1079 if (blknr & 0x0000fffff0000000ULL) { in ide_write()
1100 ide_outb(device, ATA_LBA_LOW, (blknr >> 24) & 0xFF); in ide_write()
1102 ide_outb(device, ATA_LBA_MID, (blknr >> 32) & 0xFF); in ide_write()
1103 ide_outb(device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF); in ide_write()
1111 ide_outb(device, ATA_LBA_LOW, (blknr >> 0) & 0xFF); in ide_write()
1112 ide_outb(device, ATA_LBA_MID, (blknr >> 8) & 0xFF); in ide_write()
1113 ide_outb(device, ATA_LBA_HIGH, (blknr >> 16) & 0xFF); in ide_write()
1125 ATA_DEVICE(device) | ((blknr >> 24) & 0xF)); in ide_write()
1137 ": status %#02x\n", device, blknr, c); in ide_write()
1144 ++blknr; in ide_write()