Lines Matching refs:blkcnt

266 static ulong sil_sata_rw_cmd(int dev, ulong start, ulong blkcnt,  in sil_sata_rw_cmd()  argument
293 pcmd->prb.fis.sector_count = (u8)blkcnt & 0xff; in sil_sata_rw_cmd()
296 pcmd->sge.cnt = cpu_to_le32(blkcnt * ATA_SECT_SIZE); in sil_sata_rw_cmd()
308 return blkcnt; in sil_sata_rw_cmd()
311 static ulong sil_sata_rw_cmd_ext(int dev, ulong start, ulong blkcnt, in sil_sata_rw_cmd_ext() argument
340 pcmd->prb.fis.sector_count_exp = (blkcnt >> 8) & 0xff; in sil_sata_rw_cmd_ext()
341 pcmd->prb.fis.sector_count = blkcnt & 0xff; in sil_sata_rw_cmd_ext()
344 pcmd->sge.cnt = cpu_to_le32(blkcnt * ATA_SECT_SIZE); in sil_sata_rw_cmd_ext()
356 return blkcnt; in sil_sata_rw_cmd_ext()
359 static ulong sil_sata_rw_lba28(int dev, ulong blknr, lbaint_t blkcnt, in sil_sata_rw_lba28() argument
366 blks = blkcnt; in sil_sata_rw_lba28()
384 return blkcnt; in sil_sata_rw_lba28()
387 static ulong sil_sata_rw_lba48(int dev, ulong blknr, lbaint_t blkcnt, in sil_sata_rw_lba48() argument
394 blks = blkcnt; in sil_sata_rw_lba48()
414 return blkcnt; in sil_sata_rw_lba48()
477 ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer) in sata_read() argument
483 rc = sil_sata_rw_lba48(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read()
485 rc = sil_sata_rw_lba28(dev, blknr, blkcnt, buffer, READ_CMD); in sata_read()
493 ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer) in sata_write() argument
499 rc = sil_sata_rw_lba48(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write()
503 rc = sil_sata_rw_lba28(dev, blknr, blkcnt, buffer, WRITE_CMD); in sata_write()