Lines Matching defs:block_size

194 int ATA_ReadBlock(UInt32 deviceID, ATA_INFO info, UInt32 block_size, UInt32 block, UInt8 *address);
195 int ATA_WriteBlock(UInt32 deviceID, ATA_INFO info, UInt32 block_size, UInt32 block, UInt8 *address);
201 int ATAPI_ReadBlock(UInt32 deviceID, UInt32 block_size, UInt32 block, UInt8 *address);
203 int ATAPI_ReadCapacity(UInt32 deviceID, uint32_t *block_size, uint32_t *blocks);
521 long block_size;
539 block_size = a->m.grain;
540 block = offset / block_size;
541 block_count = count / block_size;
545 if (ATA_ReadBlock(a->id, &a->info, block_size, block, buffer) == 0) {
549 buffer += block_size;
564 long block_size;
582 block_size = a->m.grain;
583 block = offset / block_size;
584 block_count = count / block_size;
588 if (ATA_WriteBlock(a->id, &a->info, block_size, block, buffer) == 0) {
592 buffer += block_size;
626 ATA_ReadBlock(UInt32 deviceID, ATA_INFO info, UInt32 block_size, UInt32 block, UInt8 *address)
640 pb.ataPBLogicalBlockSize = block_size;
642 pb.ataPBByteCount = block_size;
680 ATA_WriteBlock(UInt32 deviceID, ATA_INFO info, UInt32 block_size, UInt32 block, UInt8 *address)
694 pb.ataPBLogicalBlockSize = block_size;
696 pb.ataPBByteCount = block_size;
776 uint32_t block_size;
800 if (ATAPI_ReadCapacity(id, &block_size, &blocks) == 0) {
801 block_size = 2048;
804 a->m.grain = block_size;
832 long block_size;
850 block_size = a->m.grain;
851 block = offset / block_size;
852 block_count = count / block_size;
856 if (ATAPI_ReadBlock(a->id, block_size, block, buffer) == 0) {
860 buffer += block_size;
876 ATAPI_ReadBlock(UInt32 deviceID, UInt32 block_size, UInt32 block, UInt8 *address)
893 pb.ataPBByteCount = block_size;
894 pb.ataPBTaskFile.ataTFCylinder = block_size;
977 ATAPI_ReadCapacity(UInt32 deviceID, uint32_t *block_size, uint32_t *blocks)
1023 *block_size = rcd.size;