Lines Matching refs:blkcnt

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