Home | History | Annotate | Download | only in ata

Lines Matching refs:blkcnt

657 static u32 mv_sata_rw_cmd_ext(int port, lbaint_t start, u32 blkcnt,
678 cfis.sector_count_exp = (blkcnt >> 8) & 0xff;
679 cfis.sector_count = blkcnt & 0xff;
681 res = mv_ata_exec_ata_cmd(port, &cfis, buffer, ATA_SECT_SIZE * blkcnt,
684 return res >= 0 ? blkcnt : res;
687 static u32 mv_sata_rw_cmd(int port, lbaint_t start, u32 blkcnt, u8 *buffer,
706 cfis.sector_count = (u8)(blkcnt & 0xff);
708 res = mv_ata_exec_ata_cmd(port, &cfis, buffer, ATA_SECT_SIZE * blkcnt,
711 return res >= 0 ? blkcnt : res;
714 static u32 ata_low_level_rw(int dev, lbaint_t blknr, lbaint_t blkcnt,
721 debug("%s: %ld %ld\n", __func__, blknr, blkcnt);
724 blks = blkcnt;
754 return blkcnt;
884 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
886 return ata_low_level_rw(dev, blknr, blkcnt, buffer, READ_CMD);
889 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer)
891 return ata_low_level_rw(dev, blknr, blkcnt, (void *)buffer, WRITE_CMD);