Lines Matching refs:sectors
713 uint32_t sectors; in fill_read_10() local
715 sectors = MIN(CONFIG_USBD_MSC_SCSI_BUFFER_SIZE, ctx->remaining_data) / ctx->sector_size; in fill_read_10()
716 if (disk_access_read(ctx->disk, buf, ctx->lba, sectors) != 0) { in fill_read_10()
718 sectors = 0; in fill_read_10()
720 ctx->lba += sectors; in fill_read_10()
721 return sectors * ctx->sector_size; in fill_read_10()
749 uint32_t sectors; in store_write_10() local
753 sectors = MIN(length, ctx->remaining_data) / ctx->sector_size; in store_write_10()
754 if (disk_access_write(ctx->disk, buf, ctx->lba, sectors) != 0) { in store_write_10()
756 sectors = 0; in store_write_10()
762 if (remaining_sectors - sectors == 0) { in store_write_10()
769 ctx->lba += sectors; in store_write_10()
774 return sectors * ctx->sector_size; in store_write_10()