Lines Matching refs:sectors
262 lbaint_t sectors, in mmc_read_and_flush() argument
274 if ((start + sectors) > (part->info.start + part->info.size)) { in mmc_read_and_flush()
275 sectors = part->info.start + part->info.size - start; in mmc_read_and_flush()
277 __func__, sectors); in mmc_read_and_flush()
289 if (sectors > buf_size / part->info.blksz) in mmc_read_and_flush()
290 sectors = buf_size / part->info.blksz; in mmc_read_and_flush()
296 start, sectors, tmp_buf); in mmc_read_and_flush()
298 flush_cache((ulong)tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
301 memcpy(buffer, tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
307 lbaint_t sectors, void *buffer) in mmc_write() argument
317 if ((start + sectors) > (part->info.start + part->info.size)) { in mmc_write()
318 sectors = part->info.start + part->info.size - start; in mmc_write()
320 __func__, sectors); in mmc_write()
326 if (sectors > buf_size / part->info.blksz) in mmc_write()
327 sectors = buf_size / part->info.blksz; in mmc_write()
329 memcpy(tmp_buf, buffer, sectors * part->info.blksz); in mmc_write()
335 start, sectors, tmp_buf); in mmc_write()
397 u64 start_offset, start_sector, sectors, residue; in mmc_byte_io() local
414 sectors = num_bytes / part->info.blksz; in mmc_byte_io()
476 if (sectors) { in mmc_byte_io()
481 sectors, buffer); in mmc_byte_io()
486 sectors, buffer); in mmc_byte_io()