Home | History | Annotate | Download | only in ata

Lines Matching refs:blkcnt

536 static u32 fsl_sata_rw_cmd(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write)
555 cfis->sector_count = (u8)(blkcnt & 0xff);
557 fsl_sata_exec_cmd(sata, cfis, CMD_ATA, 0, buffer, ATA_SECT_SIZE * blkcnt);
558 return blkcnt;
575 static u32 fsl_sata_rw_cmd_ext(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write)
598 cfis->sector_count_exp = (blkcnt >> 8) & 0xff;
599 cfis->sector_count = blkcnt & 0xff;
601 fsl_sata_exec_cmd(sata, cfis, CMD_ATA, 0, buffer, ATA_SECT_SIZE * blkcnt);
602 return blkcnt;
605 static u32 fsl_sata_rw_ncq_cmd(int dev, u32 start, u32 blkcnt, u8 *buffer,
636 cfis->features_exp = (blkcnt >> 8) & 0xff;
637 cfis->features = blkcnt & 0xff;
645 fsl_sata_exec_cmd(sata, cfis, CMD_NCQ, ncq_channel, buffer, ATA_SECT_SIZE * blkcnt);
646 return blkcnt;
693 static u32 ata_low_level_rw_lba48(int dev, u32 blknr, lbaint_t blkcnt,
701 blks = blkcnt;
725 return blkcnt;
728 static u32 ata_low_level_rw_lba28(int dev, u32 blknr, u32 blkcnt,
736 blks = blkcnt;
754 return blkcnt;
760 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
766 rc = ata_low_level_rw_lba48(dev, blknr, blkcnt, buffer, READ_CMD);
768 rc = ata_low_level_rw_lba28(dev, blknr, blkcnt, buffer, READ_CMD);
772 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer)
778 rc = ata_low_level_rw_lba48(dev, blknr, blkcnt, buffer, WRITE_CMD);
782 rc = ata_low_level_rw_lba28(dev, blknr, blkcnt, buffer, WRITE_CMD);