HomeSort by relevance Sort by last modified time
    Searched refs:BDRV_SECTOR_SIZE (Results 1 - 3 of 3) sorted by null

  /external/qemu/block/
raw-posix.c 390 ret = raw_pread(bs, sector_num * BDRV_SECTOR_SIZE, buf,
391 nb_sectors * BDRV_SECTOR_SIZE);
392 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
479 ret = raw_pwrite(bs, sector_num * BDRV_SECTOR_SIZE, buf,
480 nb_sectors * BDRV_SECTOR_SIZE);
481 if (ret == (nb_sectors * BDRV_SECTOR_SIZE))
494 if ((uintptr_t) qiov->iov[i].iov_base % BDRV_SECTOR_SIZE) {
703 total_size = options->value.n / BDRV_SECTOR_SIZE;
713 if (ftruncate(fd, total_size * BDRV_SECTOR_SIZE) != 0) {
976 total_size = options->value.n / BDRV_SECTOR_SIZE;
    [all...]
  /external/qemu/
block.c 796 buf = g_malloc(COMMIT_BUF_SECTORS * BDRV_SECTOR_SIZE);
901 return bdrv_check_byte_request(bs, sector_num * BDRV_SECTOR_SIZE,
902 nb_sectors * BDRV_SECTOR_SIZE);
978 uint8_t tmp_buf[BDRV_SECTOR_SIZE];
985 len = (BDRV_SECTOR_SIZE - offset) & (BDRV_SECTOR_SIZE - 1);
992 memcpy(buf, tmp_buf + (offset & (BDRV_SECTOR_SIZE - 1)), len);
1023 uint8_t tmp_buf[BDRV_SECTOR_SIZE];
1030 len = (BDRV_SECTOR_SIZE - offset) & (BDRV_SECTOR_SIZE - 1)
    [all...]
  /external/qemu/include/block/
block.h 41 #define BDRV_SECTOR_SIZE (1ULL << BDRV_SECTOR_BITS)
42 #define BDRV_SECTOR_MASK ~(BDRV_SECTOR_SIZE - 1)

Completed in 111 milliseconds