HelenOS sources
block_size 56 uspace/app/blkdump/blkdump.c static int print_blocks(aoff64_t block_offset, aoff64_t block_count, size_t block_size);
block_size 68 uspace/app/blkdump/blkdump.c size_t block_size;
block_size 158 uspace/app/blkdump/blkdump.c rc = block_get_bsize(service_id, &block_size);
block_size 169 uspace/app/blkdump/blkdump.c printf("Device %s has %" PRIuOFF64 " blocks, %" PRIuOFF64 " bytes each\n", dev_path, dev_nblocks, (aoff64_t) block_size);
block_size 175 uspace/app/blkdump/blkdump.c ret = print_blocks(block_offset, block_count, block_size);
block_size 182 uspace/app/blkdump/blkdump.c static int print_blocks(aoff64_t block_offset, aoff64_t block_count, size_t block_size)
block_size 190 uspace/app/blkdump/blkdump.c data = malloc(block_size);
block_size 192 uspace/app/blkdump/blkdump.c printf(NAME ": Error allocating data buffer of %" PRIuOFF64 " bytes", (aoff64_t) block_size);
block_size 205 uspace/app/blkdump/blkdump.c printf("---- Block %" PRIuOFF64 " (at %" PRIuOFF64 ") ----\n", current, current * block_size);
block_size 207 uspace/app/blkdump/blkdump.c for (data_offset = 0; data_offset < block_size; data_offset += 16) {
block_size 211 uspace/app/blkdump/blkdump.c printf("%8" PRIxOFF64 ": ", current * block_size + data_offset);
block_size 213 uspace/app/blkdump/blkdump.c print_hex_row(data + data_offset, block_size - data_offset, 16);
block_size 124 uspace/app/df/df.c static errno_t size_to_human_readable(uint64_t nblocks, size_t block_size, char **rptr)
block_size 128 uspace/app/df/df.c capa_from_blocks(nblocks, block_size, &capa);
block_size 46 uspace/app/hbench/disk/randread.c size_t block_size;
block_size 83 uspace/app/hbench/disk/randread.c rc = block_get_bsize(svcid, &block_size);
block_size 101 uspace/app/hbench/disk/randread.c buf = malloc(block_size * nb);
block_size 104 uspace/app/hbench/disk/randread.c block_size * nb);
block_size 46 uspace/app/hbench/disk/seqread.c size_t block_size;
block_size 83 uspace/app/hbench/disk/seqread.c rc = block_get_bsize(svcid, &block_size);
block_size 101 uspace/app/hbench/disk/seqread.c buf = malloc(block_size);
block_size 104 uspace/app/hbench/disk/seqread.c block_size);
block_size 78 uspace/app/mkmfs/mkmfs.c uint32_t block_size;
block_size 124 uspace/app/mkmfs/mkmfs.c sb.block_size = MFS_MAX_BLOCKSIZE;
block_size 148 uspace/app/mkmfs/mkmfs.c sb.block_size = MFS_BLOCKSIZE;
block_size 155 uspace/app/mkmfs/mkmfs.c sb.block_size = MFS_BLOCKSIZE;
block_size 161 uspace/app/mkmfs/mkmfs.c sb.block_size = (uint32_t) strtol(optarg, NULL, 10);
block_size 173 uspace/app/mkmfs/mkmfs.c if (sb.block_size < MFS_MIN_BLOCKSIZE ||
block_size 174 uspace/app/mkmfs/mkmfs.c sb.block_size > MFS_MAX_BLOCKSIZE) {
block_size 177 uspace/app/mkmfs/mkmfs.c } else if (!is_power_of_two(sb.block_size)) {
block_size 181 uspace/app/mkmfs/mkmfs.c } else if (sb.block_size > MFS_BLOCKSIZE &&
block_size 192 uspace/app/mkmfs/mkmfs.c if (sb.block_size == MFS_MIN_BLOCKSIZE)
block_size 194 uspace/app/mkmfs/mkmfs.c else if (sb.block_size == MFS_MAX_BLOCKSIZE)
block_size 305 uspace/app/mkmfs/mkmfs.c root_block = malloc(sb->block_size);
block_size 306 uspace/app/mkmfs/mkmfs.c memset(root_block, 0x00, sb->block_size);
block_size 360 uspace/app/mkmfs/mkmfs.c itable_buf = malloc(sb->block_size);
block_size 365 uspace/app/mkmfs/mkmfs.c memset(itable_buf, 0x00, sb->block_size);
block_size 431 uspace/app/mkmfs/mkmfs.c ino_buf = malloc(sb->block_size);
block_size 436 uspace/app/mkmfs/mkmfs.c memset(ino_buf, 0x00, sb->block_size);
block_size 490 uspace/app/mkmfs/mkmfs.c ind = sb->block_size / ptrsize;
block_size 493 uspace/app/mkmfs/mkmfs.c sb->max_file_size = zones * sb->block_size;
block_size 498 uspace/app/mkmfs/mkmfs.c if (INT32_MAX / sb->block_size < zones)
block_size 500 uspace/app/mkmfs/mkmfs.c sb->ino_per_block = V3_INODES_PER_BLOCK(sb->block_size);
block_size 501 uspace/app/mkmfs/mkmfs.c sb->n_zones /= (sb->block_size / MFS_MIN_BLOCKSIZE);
block_size 521 uspace/app/mkmfs/mkmfs.c sb->ibmap_blocks = UPPER(sb->n_inodes, sb->block_size * 8);
block_size 527 uspace/app/mkmfs/mkmfs.c sb->zbmap_blocks = UPPER(sb->n_zones, sb->block_size * 8);
block_size 543 uspace/app/mkmfs/mkmfs.c printf(NAME ": %d block size\n", sb->block_size);
block_size 618 uspace/app/mkmfs/mkmfs.c sb->s_block_size = sbi->block_size;
block_size 642 uspace/app/mkmfs/mkmfs.c ibmap_buf = malloc(ibmap_nblocks * sb->block_size);
block_size 643 uspace/app/mkmfs/mkmfs.c zbmap_buf = malloc(zbmap_nblocks * sb->block_size);
block_size 650 uspace/app/mkmfs/mkmfs.c memset(ibmap_buf, 0xFF, ibmap_nblocks * sb->block_size);
block_size 651 uspace/app/mkmfs/mkmfs.c memset(zbmap_buf, 0xFF, zbmap_nblocks * sb->block_size);
block_size 666 uspace/app/mkmfs/mkmfs.c 1, (ibmap_buf8 + i * sb->block_size))) != EOK)
block_size 674 uspace/app/mkmfs/mkmfs.c 1, (zbmap_buf8 + i * sb->block_size))) != EOK)
block_size 204 uspace/drv/block/ahci/ahci.c static errno_t get_block_size(ddf_fun_t *fun, size_t *block_size)
block_size 207 uspace/drv/block/ahci/ahci.c *block_size = sata->block_size;
block_size 228 uspace/drv/block/ahci/ahci.c errno_t rc = dmamem_map_anonymous(sata->block_size, DMAMEM_4GiB,
block_size 235 uspace/drv/block/ahci/ahci.c memset(buf, 0, sata->block_size);
block_size 244 uspace/drv/block/ahci/ahci.c memcpy((void *) (((uint8_t *) buf) + (sata->block_size * cur)),
block_size 245 uspace/drv/block/ahci/ahci.c ibuf, sata->block_size);
block_size 271 uspace/drv/block/ahci/ahci.c errno_t rc = dmamem_map_anonymous(sata->block_size, DMAMEM_4GiB,
block_size 281 uspace/drv/block/ahci/ahci.c memcpy(ibuf, (void *) (((uint8_t *) buf) + (sata->block_size * cur)),
block_size 282 uspace/drv/block/ahci/ahci.c sata->block_size);
block_size 501 uspace/drv/block/ahci/ahci.c sata->block_size = SATA_DEFAULT_SECTOR_SIZE;
block_size 504 uspace/drv/block/ahci/ahci.c sata->block_size = SATA_DEFAULT_SECTOR_SIZE;
block_size 707 uspace/drv/block/ahci/ahci.c prdt->dbc = sata->block_size - 1;
block_size 794 uspace/drv/block/ahci/ahci.c prdt->dbc = sata->block_size - 1;
block_size 97 uspace/drv/block/ahci/ahci.h size_t block_size;
block_size 279 uspace/drv/block/usbmast/main.c uint32_t nblocks, block_size;
block_size 281 uspace/drv/block/usbmast/main.c rc = usbmast_read_capacity(mfun, &nblocks, &block_size);
block_size 290 uspace/drv/block/usbmast/main.c "block_size=%" PRIu32 "\n", nblocks, block_size);
block_size 293 uspace/drv/block/usbmast/main.c mfun->block_size = block_size;
block_size 354 uspace/drv/block/usbmast/main.c if (size < cnt * mfun->block_size)
block_size 374 uspace/drv/block/usbmast/main.c if (size < cnt * mfun->block_size)
block_size 384 uspace/drv/block/usbmast/main.c *rsize = mfun->block_size;
block_size 277 uspace/drv/block/usbmast/scsi_ms.c uint32_t *block_size)
block_size 314 uspace/drv/block/usbmast/scsi_ms.c *block_size = uint32_t_be2host(data.block_size);
block_size 348 uspace/drv/block/usbmast/scsi_ms.c cmd.data_in_size = nblocks * mfun->block_size;
block_size 364 uspace/drv/block/usbmast/scsi_ms.c if (cmd.rcvd_size < nblocks * mfun->block_size) {
block_size 404 uspace/drv/block/usbmast/scsi_ms.c cmd.data_out_size = nblocks * mfun->block_size;
block_size 72 uspace/drv/block/usbmast/usbmast.h size_t block_size;
block_size 167 uspace/lib/ata/include/ata/ata.h size_t block_size;
block_size 494 uspace/lib/ata/src/ata.c size_t block_size;
block_size 619 uspace/lib/ata/src/ata.c rc = ata_pcmd_read_capacity(d, &nblocks, &block_size);
block_size 627 uspace/lib/ata/src/ata.c d->block_size = block_size;
block_size 630 uspace/lib/ata/src/ata.c d->block_size = 512;
block_size 656 uspace/lib/ata/src/ata.c if (size < cnt * device->block_size) {
block_size 669 uspace/lib/ata/src/ata.c device->block_size);
block_size 677 uspace/lib/ata/src/ata.c buf += device->block_size * nb;
block_size 706 uspace/lib/ata/src/ata.c if (size < cnt * device->block_size)
block_size 719 uspace/lib/ata/src/ata.c buf += device->block_size * nb;
block_size 730 uspace/lib/ata/src/ata.c *rbsize = device->block_size;
block_size 1208 uspace/lib/ata/src/ata.c size_t *block_size)
block_size 1226 uspace/lib/ata/src/ata.c *block_size = uint32_t_be2host(data.block_size);
block_size 1365 uspace/lib/ata/src/ata.c blk_cnt * device->block_size, ata_dma_read);
block_size 1374 uspace/lib/ata/src/ata.c rc = ata_pio_data_in(device, buf, blk_cnt * device->block_size,
block_size 1375 uspace/lib/ata/src/ata.c device->block_size, blk_cnt);
block_size 1442 uspace/lib/ata/src/ata.c cnt * device->block_size, ata_dma_write);
block_size 1451 uspace/lib/ata/src/ata.c rc = ata_pio_data_out(device, buf, cnt * device->block_size,
block_size 1452 uspace/lib/ata/src/ata.c device->block_size, cnt);
block_size 1534 uspace/lib/ata/src/ata.c dma_maxnb = d->chan->params.max_dma_xfer / d->block_size;
block_size 89 uspace/lib/bithenge/src/helenos/block.c .size = block_size,
block_size 707 uspace/lib/block/block.c size_t block_size;
block_size 712 uspace/lib/block/block.c block_size = devcon->pblock_size;
block_size 738 uspace/lib/block/block.c rc = read_blocks(devcon, *pos / block_size, 1, buf,
block_size 745 uspace/lib/block/block.c *buflen = block_size;
block_size 64 uspace/lib/c/generic/capa.c void capa_from_blocks(uint64_t nblocks, size_t block_size, capa_spec_t *capa)
block_size 68 uspace/lib/c/generic/capa.c tsize = nblocks * block_size;
block_size 85 uspace/lib/c/generic/capa.c errno_t capa_to_blocks(capa_spec_t *capa, capa_vsel_t cvsel, size_t block_size,
block_size 127 uspace/lib/c/generic/capa.c rem = bytes % block_size;
block_size 131 uspace/lib/c/generic/capa.c blocks = (bytes + rem) / block_size;
block_size 38 uspace/lib/c/test/capa.c int block_size = 4;
block_size 94 uspace/lib/c/test/capa.c for (x = 0; x < block_size; x++) {
block_size 101 uspace/lib/c/test/capa.c PCUT_ASSERT_STR_EQUALS(out[x + (block_size * i)], str);
block_size 110 uspace/lib/c/test/capa.c PCUT_ASSERT_STR_EQUALS(out[x + (block_size * i)], str);
block_size 636 uspace/lib/cpp/include/__bits/random.hpp static constexpr size_t block_size = p;
block_size 60 uspace/lib/device/include/vbd.h size_t block_size;
block_size 183 uspace/lib/device/src/bd_srv.c size_t block_size;
block_size 190 uspace/lib/device/src/bd_srv.c rc = srv->srvs->ops->get_block_size(srv, &block_size);
block_size 191 uspace/lib/device/src/bd_srv.c async_answer_1(call, rc, block_size);
block_size 95 uspace/lib/ext4/src/balloc.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 106 uspace/lib/ext4/src/balloc.c ino_blocks -= block_size / EXT4_INODE_BLOCK_SIZE;
block_size 168 uspace/lib/ext4/src/balloc.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 179 uspace/lib/ext4/src/balloc.c ino_blocks -= count * (block_size / EXT4_INODE_BLOCK_SIZE);
block_size 302 uspace/lib/ext4/src/balloc.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 303 uspace/lib/ext4/src/balloc.c uint32_t inode_block_count = inode_size / block_size;
block_size 305 uspace/lib/ext4/src/balloc.c if (inode_size % block_size != 0)
block_size 355 uspace/lib/ext4/src/balloc.c uint32_t block_size;
block_size 589 uspace/lib/ext4/src/balloc.c block_size = ext4_superblock_get_block_size(sb);
block_size 599 uspace/lib/ext4/src/balloc.c ino_blocks += block_size / EXT4_INODE_BLOCK_SIZE;
block_size 676 uspace/lib/ext4/src/balloc.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 686 uspace/lib/ext4/src/balloc.c ino_blocks += block_size / EXT4_INODE_BLOCK_SIZE;
block_size 245 uspace/lib/ext4/src/directory.c uint32_t block_size =
block_size 247 uspace/lib/ext4/src/directory.c aoff64_t current_block_idx = it->current_offset / block_size;
block_size 248 uspace/lib/ext4/src/directory.c aoff64_t next_block_idx = pos / block_size;
block_size 280 uspace/lib/ext4/src/directory.c return ext4_directory_iterator_set(it, block_size);
block_size 292 uspace/lib/ext4/src/directory.c uint32_t block_size)
block_size 296 uspace/lib/ext4/src/directory.c uint32_t offset_in_block = it->current_offset % block_size;
block_size 303 uspace/lib/ext4/src/directory.c if (offset_in_block > block_size - 8)
block_size 311 uspace/lib/ext4/src/directory.c if (offset_in_block + length > block_size)
block_size 359 uspace/lib/ext4/src/directory.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 360 uspace/lib/ext4/src/directory.c assert(entry_len <= block_size);
block_size 415 uspace/lib/ext4/src/directory.c uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
block_size 417 uspace/lib/ext4/src/directory.c uint32_t total_blocks = inode_size / block_size;
block_size 463 uspace/lib/ext4/src/directory.c memset(new_block->data, 0, block_size);
block_size 465 uspace/lib/ext4/src/directory.c ext4_directory_write_entry(fs->superblock, block_entry, block_size,
block_size 515 uspace/lib/ext4/src/directory.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 517 uspace/lib/ext4/src/directory.c uint32_t total_blocks = inode_size / block_size;
block_size 636 uspace/lib/ext4/src/directory.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 644 uspace/lib/ext4/src/directory.c ext4_directory_entry_ll_t *stop = target_block->data + block_size;
block_size 269 uspace/lib/ext4/src/directory_index.c uint32_t block_size =
block_size 272 uspace/lib/ext4/src/directory_index.c block_size - 2 * sizeof(ext4_directory_dx_dot_entry_t) -
block_size 294 uspace/lib/ext4/src/directory_index.c ext4_directory_entry_ll_set_entry_length(block_entry, block_size);
block_size 345 uspace/lib/ext4/src/directory_index.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 346 uspace/lib/ext4/src/directory_index.c uint32_t entry_space = block_size;
block_size 737 uspace/lib/ext4/src/directory_index.c uint32_t block_size =
block_size 739 uspace/lib/ext4/src/directory_index.c void *entry_buffer = malloc(block_size);
block_size 745 uspace/lib/ext4/src/directory_index.c block_size / sizeof(ext4_directory_dx_dot_entry_t);
block_size 765 uspace/lib/ext4/src/directory_index.c while ((void *)dentry < old_data_block->data + block_size) {
block_size 853 uspace/lib/ext4/src/directory_index.c block_size - offset);
block_size 870 uspace/lib/ext4/src/directory_index.c block_size - offset);
block_size 954 uspace/lib/ext4/src/directory_index.c uint32_t block_size =
block_size 978 uspace/lib/ext4/src/directory_index.c block_size - sizeof(ext4_fake_directory_entry_t);
block_size 1012 uspace/lib/ext4/src/directory_index.c block_size - sizeof(ext4_fake_directory_entry_t);
block_size 382 uspace/lib/ext4/src/extent.c uint32_t block_size =
block_size 385 uspace/lib/ext4/src/extent.c uint32_t last_idx = (inode_size - 1) / block_size;
block_size 772 uspace/lib/ext4/src/extent.c uint32_t block_size =
block_size 806 uspace/lib/ext4/src/extent.c memset(block->data, 0, block_size);
block_size 815 uspace/lib/ext4/src/extent.c limit = (block_size - sizeof(ext4_extent_header_t)) /
block_size 820 uspace/lib/ext4/src/extent.c limit = (block_size - sizeof(ext4_extent_header_t)) /
block_size 874 uspace/lib/ext4/src/extent.c memset(block->data, 0, block_size);
block_size 900 uspace/lib/ext4/src/extent.c limit = (block_size - sizeof(ext4_extent_header_t)) /
block_size 907 uspace/lib/ext4/src/extent.c limit = (block_size - sizeof(ext4_extent_header_t)) /
block_size 969 uspace/lib/ext4/src/extent.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 974 uspace/lib/ext4/src/extent.c if ((inode_size % block_size) != 0)
block_size 975 uspace/lib/ext4/src/extent.c inode_size += block_size - (inode_size % block_size);
block_size 977 uspace/lib/ext4/src/extent.c new_block_idx = inode_size / block_size;
block_size 1015 uspace/lib/ext4/src/extent.c ext4_inode_set_size(inode_ref->inode, inode_size + block_size);
block_size 1043 uspace/lib/ext4/src/extent.c ext4_inode_set_size(inode_ref->inode, inode_size + block_size);
block_size 1079 uspace/lib/ext4/src/extent.c ext4_inode_set_size(inode_ref->inode, inode_size + block_size);
block_size 95 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(temp_superblock);
block_size 96 uspace/lib/ext4/src/filesystem.c if (block_size > EXT4_MAX_BLOCK_SIZE) {
block_size 102 uspace/lib/ext4/src/filesystem.c rc = block_cache_init(service_id, block_size, 0, cmode);
block_size 107 uspace/lib/ext4/src/filesystem.c uint32_t block_ids_per_block = block_size / sizeof(uint32_t);
block_size 609 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 653 uspace/lib/ext4/src/filesystem.c memset(block->data, 0, block_size);
block_size 762 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 763 uspace/lib/ext4/src/filesystem.c memset(bitmap, 0, block_size);
block_size 831 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(bg_ref->fs->superblock);
block_size 837 uspace/lib/ext4/src/filesystem.c uint32_t end_bit = block_size * 8;
block_size 863 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 888 uspace/lib/ext4/src/filesystem.c memset(block->data, 0, block_size);
block_size 1055 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 1067 uspace/lib/ext4/src/filesystem.c return ROUND_UP(itable_size, block_size) / block_size;
block_size 1162 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
block_size 1166 uspace/lib/ext4/src/filesystem.c aoff64_t block_id = inode_table_start + (byte_offset_in_group / block_size);
block_size 1174 uspace/lib/ext4/src/filesystem.c uint32_t offset_in_block = byte_offset_in_group % block_size;
block_size 1394 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
block_size 1395 uspace/lib/ext4/src/filesystem.c uint32_t count = block_size / sizeof(uint32_t);
block_size 1543 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 1544 uspace/lib/ext4/src/filesystem.c uint32_t diff_blocks_count = size_diff / block_size;
block_size 1545 uspace/lib/ext4/src/filesystem.c if (size_diff % block_size != 0)
block_size 1548 uspace/lib/ext4/src/filesystem.c uint32_t old_blocks_count = old_size / block_size;
block_size 1549 uspace/lib/ext4/src/filesystem.c if (old_size % block_size != 0)
block_size 1734 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
block_size 1769 uspace/lib/ext4/src/filesystem.c memset(new_block->data, 0, block_size);
block_size 1809 uspace/lib/ext4/src/filesystem.c memset(new_block->data, 0, block_size);
block_size 1982 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 1985 uspace/lib/ext4/src/filesystem.c if ((inode_size % block_size) != 0)
block_size 1986 uspace/lib/ext4/src/filesystem.c inode_size += block_size - (inode_size % block_size);
block_size 1989 uspace/lib/ext4/src/filesystem.c uint32_t new_block_idx = inode_size / block_size;
block_size 2006 uspace/lib/ext4/src/filesystem.c ext4_inode_set_size(inode_ref->inode, inode_size + block_size);
block_size 2023 uspace/lib/ext4/src/filesystem.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 2025 uspace/lib/ext4/src/filesystem.c return block_size / inode_size;
block_size 51 uspace/lib/ext4/src/inode.c static uint32_t ext4_inode_block_bits_count(uint32_t block_size)
block_size 54 uspace/lib/ext4/src/inode.c uint32_t size = block_size;
block_size 308 uspace/lib/ext4/src/inode.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 309 uspace/lib/ext4/src/inode.c uint32_t block_bits = ext4_inode_block_bits_count(block_size);
block_size 355 uspace/lib/ext4/src/inode.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 356 uspace/lib/ext4/src/inode.c uint32_t block_bits = ext4_inode_block_bits_count(block_size);
block_size 1208 uspace/lib/ext4/src/ops.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 1209 uspace/lib/ext4/src/ops.c aoff64_t file_block = pos / block_size;
block_size 1210 uspace/lib/ext4/src/ops.c uint32_t offset_in_block = pos % block_size;
block_size 1211 uspace/lib/ext4/src/ops.c uint32_t bytes = min(block_size - offset_in_block, size);
block_size 1257 uspace/lib/ext4/src/ops.c assert(offset_in_block + bytes <= block_size);
block_size 1303 uspace/lib/ext4/src/ops.c uint32_t block_size = ext4_superblock_get_block_size(fs->superblock);
block_size 1306 uspace/lib/ext4/src/ops.c uint32_t bytes = min(len, block_size - (pos % block_size));
block_size 1309 uspace/lib/ext4/src/ops.c if (bytes == block_size)
block_size 1312 uspace/lib/ext4/src/ops.c uint32_t iblock = pos / block_size;
block_size 1331 uspace/lib/ext4/src/ops.c block_size;
block_size 1377 uspace/lib/ext4/src/ops.c memset(write_block->data, 0, block_size);
block_size 1380 uspace/lib/ext4/src/ops.c (pos % block_size), bytes);
block_size 1472 uspace/lib/ext4/src/superblock.c uint32_t block_size = ext4_superblock_get_block_size(sb);
block_size 1486 uspace/lib/ext4/src/superblock.c gdt_table = ROUND_UP(bg_count * bg_desc_sz, block_size) /
block_size 1487 uspace/lib/ext4/src/superblock.c block_size;
block_size 230 uspace/lib/fdisk/src/fdisk.c capa_from_blocks(vinfo.nblocks, vinfo.block_size, capa);
block_size 297 uspace/lib/fdisk/src/fdisk.c capa_from_blocks(part->nblocks, dev->dinfo.block_size,
block_size 540 uspace/lib/fdisk/src/fdisk.c capa_from_blocks(dev->dinfo.nblocks, dev->dinfo.block_size, capa);
block_size 701 uspace/lib/fdisk/src/fdisk.c capa_from_blocks(nb, dev->dinfo.block_size, capa);
block_size 729 uspace/lib/fdisk/src/fdisk.c capa_from_blocks(totb, dev->dinfo.block_size, capa);
block_size 950 uspace/lib/fdisk/src/fdisk.c rc = capa_to_blocks(&pspec->capacity, cv_nom, dev->dinfo.block_size,
block_size 955 uspace/lib/fdisk/src/fdisk.c rc = capa_to_blocks(&pspec->capacity, cv_min, dev->dinfo.block_size,
block_size 960 uspace/lib/fdisk/src/fdisk.c rc = capa_to_blocks(&pspec->capacity, cv_max, dev->dinfo.block_size,
block_size 1068 uspace/lib/fdisk/src/fdisk.c avail_cap = dev->dinfo.anblocks * dev->dinfo.block_size;
block_size 1076 uspace/lib/fdisk/src/fdisk.c dev->align = align_bytes / dev->dinfo.block_size;
block_size 186 uspace/lib/label/include/types/liblabel.h size_t block_size;
block_size 106 uspace/lib/label/src/dummy.c label->block_size = bsize;
block_size 80 uspace/lib/label/src/empty.c static void calc_num_check_blocks(aoff64_t nblocks, size_t block_size,
block_size 86 uspace/lib/label/src/empty.c n = (min_empty_bytes + block_size - 1) / block_size;
block_size 106 uspace/lib/label/src/empty.c size_t block_size;
block_size 109 uspace/lib/label/src/empty.c rc = bd->ops->get_bsize(bd->arg, &block_size);
block_size 125 uspace/lib/label/src/empty.c calc_num_check_blocks(nblocks, block_size, &n);
block_size 127 uspace/lib/label/src/empty.c buf = calloc(block_size, 1);
block_size 145 uspace/lib/label/src/empty.c if (!mem_is_zero(buf, block_size)) {
block_size 160 uspace/lib/label/src/empty.c if (!mem_is_zero(buf, block_size)) {
block_size 183 uspace/lib/label/src/empty.c size_t block_size;
block_size 185 uspace/lib/label/src/empty.c rc = bd->ops->get_bsize(bd->arg, &block_size);
block_size 201 uspace/lib/label/src/empty.c calc_num_check_blocks(nblocks, block_size, &n);
block_size 203 uspace/lib/label/src/empty.c buf = calloc(block_size, 1);
block_size 246 uspace/lib/label/src/empty.c size_t block_size;
block_size 251 uspace/lib/label/src/empty.c block_size = part->label->block_size;
block_size 255 uspace/lib/label/src/empty.c calc_num_check_blocks(nblocks, block_size, &n);
block_size 257 uspace/lib/label/src/empty.c buf = calloc(block_size, 1);
block_size 325 uspace/lib/label/src/gpt.c label->block_size = bsize;
block_size 477 uspace/lib/label/src/gpt.c label->block_size = bsize;
block_size 527 uspace/lib/label/src/gpt.c gpt_hdr = calloc(1, label->block_size);
block_size 544 uspace/lib/label/src/gpt.c label->block_size);
block_size 562 uspace/lib/label/src/gpt.c rc = gpt_pmbr_destroy(&label->bd, label->block_size);
block_size 882 uspace/lib/label/src/gpt.c buf = calloc(1, label->block_size * label->lt.gpt.pt_blocks);
block_size 936 uspace/lib/label/src/gpt.c gpt_hdr = calloc(1, label->block_size);
block_size 183 uspace/lib/label/src/mbr.c label->block_size = bsize;
block_size 219 uspace/lib/label/src/mbr.c ebr = calloc(1, label->block_size);
block_size 356 uspace/lib/label/src/mbr.c label->block_size = bsize;
block_size 405 uspace/lib/label/src/mbr.c mbr = calloc(1, label->block_size);
block_size 1025 uspace/lib/label/src/mbr.c br = calloc(1, label->block_size);
block_size 1083 uspace/lib/label/src/mbr.c br = calloc(1, label->block_size);
block_size 1116 uspace/lib/label/src/mbr.c br = calloc(1, label->block_size);
block_size 1145 uspace/lib/label/src/mbr.c br = calloc(1, label->block_size);
block_size 133 uspace/lib/scsi/include/scsi/sbc.h uint32_t block_size;
block_size 60 uspace/srv/bd/file_bd/file_bd.c static size_t block_size;
block_size 98 uspace/srv/bd/file_bd/file_bd.c block_size = DEFAULT_BLOCK_SIZE;
block_size 111 uspace/srv/bd/file_bd/file_bd.c rc = str_size_t(argv[1], NULL, 10, true, &block_size);
block_size 112 uspace/srv/bd/file_bd/file_bd.c if (rc != EOK || block_size == 0) {
block_size 202 uspace/srv/bd/file_bd/file_bd.c num_blocks = img_size / block_size;
block_size 244 uspace/srv/bd/file_bd/file_bd.c if (size < cnt * block_size)
block_size 258 uspace/srv/bd/file_bd/file_bd.c if (fseek(img, ba * block_size, SEEK_SET) < 0) {
block_size 263 uspace/srv/bd/file_bd/file_bd.c n_rd = fread(buf, block_size, cnt, img);
block_size 284 uspace/srv/bd/file_bd/file_bd.c if (size < cnt * block_size)
block_size 298 uspace/srv/bd/file_bd/file_bd.c if (fseek(img, ba * block_size, SEEK_SET) < 0) {
block_size 303 uspace/srv/bd/file_bd/file_bd.c n_wr = fwrite(buf, block_size, cnt, img);
block_size 323 uspace/srv/bd/file_bd/file_bd.c *rsize = block_size;
block_size 68 uspace/srv/bd/rd/rd.c static const size_t block_size = 512;
block_size 119 uspace/srv/bd/rd/rd.c if ((ba + cnt) * block_size > rd_size) {
block_size 125 uspace/srv/bd/rd/rd.c memcpy(buf, rd_addr + ba * block_size, min(block_size * cnt, size));
block_size 135 uspace/srv/bd/rd/rd.c if ((ba + cnt) * block_size > rd_size) {
block_size 141 uspace/srv/bd/rd/rd.c memcpy(rd_addr + ba * block_size, buf, min(block_size * cnt, size));
block_size 164 uspace/srv/bd/rd/rd.c rd_size = ALIGN_UP(size, block_size);
block_size 203 uspace/srv/bd/rd/rd.c *rsize = block_size;
block_size 210 uspace/srv/bd/rd/rd.c *rnb = rd_size / block_size;
block_size 107 uspace/srv/bd/sata_bd/sata_bd.c &disk[disk_count].block_size);
block_size 118 uspace/srv/bd/sata_bd/sata_bd.c (long unsigned int) disk[disk_count].block_size);
block_size 211 uspace/srv/bd/sata_bd/sata_bd.c if (size < cnt * sbd->block_size)
block_size 223 uspace/srv/bd/sata_bd/sata_bd.c if (size < cnt * sbd->block_size)
block_size 234 uspace/srv/bd/sata_bd/sata_bd.c *rsize = sbd->block_size;
block_size 59 uspace/srv/bd/sata_bd/sata_bd.h size_t block_size;
block_size 475 uspace/srv/bd/vbd/disk.c size_t block_size;
block_size 509 uspace/srv/bd/vbd/disk.c rc = block_get_bsize(sid, &block_size);
block_size 539 uspace/srv/bd/vbd/disk.c disk->block_size = block_size;
block_size 637 uspace/srv/bd/vbd/disk.c info->block_size = disk->block_size;
block_size 640 uspace/srv/bd/vbd/disk.c info->block_size);
block_size 983 uspace/srv/bd/vbd/disk.c if (cnt * part->disk->block_size < size) {
block_size 1033 uspace/srv/bd/vbd/disk.c if (cnt * part->disk->block_size < size) {
block_size 1055 uspace/srv/bd/vbd/disk.c *rsize = part->disk->block_size;
block_size 101 uspace/srv/bd/vbd/types/vbd.h size_t block_size;
block_size 169 uspace/srv/fs/cdfs/cdfs_ops.c uint16_t_lb block_size;
block_size 944 uspace/srv/fs/cdfs/cdfs_ops.c uint16_t block_size = uint16_lb(vol_desc->data.prisec.block_size);
block_size 945 uspace/srv/fs/cdfs/cdfs_ops.c if (block_size != BLOCK_SIZE) {
block_size 1009 uspace/srv/fs/cdfs/cdfs_ops.c uint16_t block_size = uint16_lb(vol_desc->data.prisec.block_size);
block_size 1010 uspace/srv/fs/cdfs/cdfs_ops.c if (block_size != BLOCK_SIZE) {
block_size 91 uspace/srv/fs/mfs/mfs.h int block_size;
block_size 196 uspace/srv/fs/mfs/mfs_balloc.c for (i = 0; i < sbi->block_size / sizeof(bitchunk_t); ++i) {
block_size 261 uspace/srv/fs/mfs/mfs_balloc.c uint32_t block = idx / (sbi->block_size * 8) + start_block;
block_size 268 uspace/srv/fs/mfs/mfs_balloc.c idx %= (sbi->block_size * 8);
block_size 320 uspace/srv/fs/mfs/mfs_balloc.c bits_per_block = sbi->block_size * 8;
block_size 335 uspace/srv/fs/mfs/mfs_balloc.c freebit = find_free_bit_and_set(b->data, sbi->block_size,
block_size 69 uspace/srv/fs/mfs/mfs_dentry.c unsigned dentries_per_zone = sbi->block_size / sbi->dirsize;
block_size 114 uspace/srv/fs/mfs/mfs_dentry.c const unsigned dirs_per_block = sbi->block_size / sbi->dirsize;
block_size 328 uspace/srv/fs/mfs/mfs_inode.c const size_t bs = sbi->block_size;
block_size 223 uspace/srv/fs/mfs/mfs_ops.c sbi->block_size = conv16(native, sb3->s_block_size);
block_size 224 uspace/srv/fs/mfs/mfs_ops.c sbi->ino_per_block = V3_INODES_PER_BLOCK(sbi->block_size);
block_size 234 uspace/srv/fs/mfs/mfs_ops.c sbi->block_size = MFS_BLOCKSIZE;
block_size 329 uspace/srv/fs/mfs/mfs_ops.c rc = block_cache_init(service_id, sbi->block_size, 0, cmode);
block_size 887 uspace/srv/fs/mfs/mfs_ops.c bytes = min(len, sbi->block_size - pos % sbi->block_size);
block_size 899 uspace/srv/fs/mfs/mfs_ops.c uint8_t *buf = malloc(sbi->block_size);
block_size 904 uspace/srv/fs/mfs/mfs_ops.c memset(buf, 0, sizeof(sbi->block_size));
block_size 906 uspace/srv/fs/mfs/mfs_ops.c buf + pos % sbi->block_size, bytes);
block_size 916 uspace/srv/fs/mfs/mfs_ops.c pos % sbi->block_size, bytes);
block_size 959 uspace/srv/fs/mfs/mfs_ops.c const size_t bs = sbi->block_size;
block_size 992 uspace/srv/fs/mfs/mfs_ops.c memset(b->data, 0, sbi->block_size);
block_size 1141 uspace/srv/fs/mfs/mfs_ops.c if (!is_power_of_two(sbi->block_size) ||
block_size 1142 uspace/srv/fs/mfs/mfs_ops.c sbi->block_size < MFS_MIN_BLOCKSIZE ||
block_size 1143 uspace/srv/fs/mfs/mfs_ops.c sbi->block_size > MFS_MAX_BLOCKSIZE)
block_size 1205 uspace/srv/fs/mfs/mfs_ops.c *size = inst->sbi->block_size;
block_size 67 uspace/srv/fs/mfs/mfs_rw.c const int block_size = sbi->block_size;
block_size 70 uspace/srv/fs/mfs/mfs_rw.c int rblock = pos / block_size;
block_size 72 uspace/srv/fs/mfs/mfs_rw.c if (ROUND_UP(mnode->ino_i->i_size, sbi->block_size) < pos) {
block_size 96 uspace/srv/fs/mfs/mfs_rw.c int rblock = pos / sbi->block_size;
block_size 122 uspace/srv/fs/mfs/mfs_rw.c ptrs_per_block = sbi->block_size / sizeof(uint32_t);
block_size 258 uspace/srv/fs/mfs/mfs_rw.c ptrs_per_block = sbi->block_size / sizeof(uint32_t);
block_size 261 uspace/srv/fs/mfs/mfs_rw.c rblock = new_size / sbi->block_size;
block_size 365 uspace/srv/fs/mfs/mfs_rw.c for (i = 0; i < sbi->block_size / sizeof(uint16_t); ++i)
block_size 370 uspace/srv/fs/mfs/mfs_rw.c for (i = 0; i < sbi->block_size / sizeof(uint32_t); ++i)
block_size 392 uspace/srv/fs/mfs/mfs_rw.c for (i = 0; i < sbi->block_size / sizeof(uint16_t); ++i)
block_size 397 uspace/srv/fs/mfs/mfs_rw.c for (i = 0; i < sbi->block_size / sizeof(uint32_t); ++i)
HelenOS homepage, sources at GitHub