Home
last modified time | relevance | path

Searched full:block_size (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/openbmc/linux/drivers/s390/char/
H A Dtape_char.c98 tapechar_check_idalbuffer(struct tape_device *device, size_t block_size) in tapechar_check_idalbuffer() argument
103 device->char_data.idal_buf->size == block_size) in tapechar_check_idalbuffer()
106 if (block_size > MAX_BLOCKSIZE) { in tapechar_check_idalbuffer()
108 block_size, MAX_BLOCKSIZE); in tapechar_check_idalbuffer()
113 new = idal_buffer_alloc(block_size, 0); in tapechar_check_idalbuffer()
133 size_t block_size; in tapechar_read() local
149 if (device->char_data.block_size != 0) { in tapechar_read()
150 if (count < device->char_data.block_size) { in tapechar_read()
155 block_size = device->char_data.block_size; in tapechar_read()
157 block_size = count; in tapechar_read()
[all …]
/openbmc/linux/fs/befs/
H A Dsuper.c34 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
76 if ((befs_sb->block_size != 1024) in befs_check_sb()
77 && (befs_sb->block_size != 2048) in befs_check_sb()
78 && (befs_sb->block_size != 4096) in befs_check_sb()
79 && (befs_sb->block_size != 8192)) { in befs_check_sb()
80 befs_error(sb, "invalid blocksize: %u", befs_sb->block_size); in befs_check_sb()
84 if (befs_sb->block_size > PAGE_SIZE) { in befs_check_sb()
86 "than system pagesize(%lu)", befs_sb->block_size, in befs_check_sb()
92 * block_shift and block_size encode the same information in befs_check_sb()
96 if ((1 << befs_sb->block_shift) != befs_sb->block_size) { in befs_check_sb()
[all …]
/openbmc/phosphor-mboxd/vpnor/test/
H A Dtoc_flags.cpp11 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
25 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
30 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
35 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
41 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
46 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
51 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
56 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
61 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
67 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
[all …]
H A Ddump_flash.cpp27 static constexpr auto BLOCK_SIZE = 4096; variable
28 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
30 static constexpr auto WINDOW_SIZE = 2 * BLOCK_SIZE;
32 static constexpr auto PNOR_SIZE = (4 * BLOCK_SIZE);
71 test::VpnorRoot root(tctx->ctx, toc, BLOCK_SIZE); in main()
78 while (pos < (PNOR_SIZE / BLOCK_SIZE)) in main()
82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
H A Dcreate_pnor_partition_table.cpp16 static const auto BLOCK_SIZE = 4 * 1024; variable
17 static const auto ERASE_SIZE = BLOCK_SIZE;
21 static const auto WINDOW_SIZE = BLOCK_SIZE;
37 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
46 expectedTable.data.block_size = BLOCK_SIZE; in main()
48 (PNOR_SIZE) / expectedTable.data.block_size; in main()
H A Dcreate_read_window_oob.cpp21 static constexpr auto BLOCK_SIZE = 4096; variable
22 static constexpr auto MEM_SIZE = (BLOCK_SIZE * 2);
23 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
25 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
26 static constexpr auto PNOR_SIZE = (BLOCK_SIZE * 4);
51 test::VpnorRoot root(ctx, toc, BLOCK_SIZE); in main()
/openbmc/hiomapd/vpnor/test/
H A Dwrite_toc.cpp19 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
20 static constexpr auto PNOR_SIZE = 2 * BLOCK_SIZE;
21 static constexpr auto MEM_SIZE = BLOCK_SIZE;
22 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
24 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
25 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
62 erased = malloc(BLOCK_SIZE); in main()
65 memset(erased, 0xff, BLOCK_SIZE); in main()
71 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
85 rc = memcmp(ctx->mem, erased, BLOCK_SIZE); in main()
[all …]
H A Dtoc_flags.cpp13 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
27 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
32 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
37 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
43 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
48 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
53 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
58 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
63 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
69 vpnor::parseTocLine(line, BLOCK_SIZE, part); in main()
[all …]
H A Dcreate_pnor_partition_table.cpp18 static const auto BLOCK_SIZE = 4 * 1024; variable
19 static const auto ERASE_SIZE = BLOCK_SIZE;
23 static const auto WINDOW_SIZE = BLOCK_SIZE;
39 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
48 expectedTable.data.block_size = BLOCK_SIZE; in main()
50 (PNOR_SIZE) / expectedTable.data.block_size; in main()
H A Dforce_readonly_toc.cpp21 static constexpr auto BLOCK_SIZE = 4 * 1024; variable
22 static constexpr auto PNOR_SIZE = BLOCK_SIZE;
23 static constexpr auto MEM_SIZE = BLOCK_SIZE;
24 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
26 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
27 static constexpr auto TOC_PART_SIZE = BLOCK_SIZE;
56 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
H A Ddump_flash.cpp28 static constexpr auto BLOCK_SIZE = 4096; variable
29 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
31 static constexpr auto WINDOW_SIZE = 2 * BLOCK_SIZE;
33 static constexpr auto PNOR_SIZE = (4 * BLOCK_SIZE);
72 test::VpnorRoot root(&tctx->ctx->backend, toc, BLOCK_SIZE); in main()
78 while (pos < (PNOR_SIZE / BLOCK_SIZE)) in main()
82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
H A Dcreate_read_window_oob.cpp22 static constexpr auto BLOCK_SIZE = 4096; variable
23 static constexpr auto MEM_SIZE = (BLOCK_SIZE * 2);
24 static constexpr auto ERASE_SIZE = BLOCK_SIZE;
26 static constexpr auto WINDOW_SIZE = BLOCK_SIZE;
27 static constexpr auto PNOR_SIZE = (BLOCK_SIZE * 4);
52 test::VpnorRoot root(&ctx->backend, toc, BLOCK_SIZE); in main()
/openbmc/linux/sound/soc/intel/avs/
H A Dtopology.c36 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup() argument
40 while (block_size > 0) { in avs_tplg_vendor_array_lookup()
44 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup()
53 block_size -= tuples_size; in avs_tplg_vendor_array_lookup()
72 u32 block_size, u32 token, u32 *offset) in avs_tplg_vendor_array_lookup_next() argument
77 if (tuples_size > block_size) in avs_tplg_vendor_array_lookup_next()
81 block_size -= tuples_size; in avs_tplg_vendor_array_lookup_next()
83 ret = avs_tplg_vendor_array_lookup(tuples, block_size, token, offset); in avs_tplg_vendor_array_lookup_next()
94 * assigned to @block_size as the entire block belongs to the current
101 u32 block_size, u32 entry_id_token, u32 *size) in avs_tplg_vendor_entry_size() argument
[all …]
/openbmc/qemu/hw/audio/
H A Dmarvell_88w8618.c71 int pos, block_size; in mv88w8618_audio_callback() local
82 block_size = s->threshold / 2; in mv88w8618_audio_callback()
83 if (free_out - s->last_free < block_size) { in mv88w8618_audio_callback()
86 if (block_size > 4096) { in mv88w8618_audio_callback()
89 cpu_physical_memory_read(s->target_buffer + s->play_pos, buf, block_size); in mv88w8618_audio_callback()
93 codec_buffer = wm8750_dac_buffer(s->wm, block_size >> 1); in mv88w8618_audio_callback()
94 for (pos = 0; pos < block_size; pos += 2) { in mv88w8618_audio_callback()
100 memcpy(wm8750_dac_buffer(s->wm, block_size >> 2), in mv88w8618_audio_callback()
101 (uint32_t *)mem_buffer, block_size); in mv88w8618_audio_callback()
105 codec_buffer = wm8750_dac_buffer(s->wm, block_size); in mv88w8618_audio_callback()
[all …]
/openbmc/qemu/block/
H A Dcloop.c38 uint32_t block_size; member
87 ret = bdrv_pread(bs->file, 128, 4, &s->block_size, 0); in cloop_open()
91 s->block_size = be32_to_cpu(s->block_size); in cloop_open()
92 if (s->block_size % 512) { in cloop_open()
93 error_setg(errp, "block_size %" PRIu32 " must be a multiple of 512", in cloop_open()
94 s->block_size); in cloop_open()
97 if (s->block_size == 0) { in cloop_open()
98 error_setg(errp, "block_size cannot be zero"); in cloop_open()
106 if (s->block_size > MAX_BLOCK_SIZE) { in cloop_open()
107 error_setg(errp, "block_size %" PRIu32 " must be %u MB or less", in cloop_open()
[all …]
H A Dvdi.c166 uint32_t block_size; member
183 uint32_t block_size; member
208 header->block_size = le32_to_cpu(header->block_size); in vdi_header_to_cpu()
232 header->block_size = cpu_to_le32(header->block_size); in vdi_header_to_le()
260 logout("block size 0x%04x\n", header->block_size); in vdi_header_print()
339 bdi->cluster_size = s->block_size; in vdi_co_get_info()
448 } else if (header.block_size != DEFAULT_CLUSTER_SIZE) { in vdi_open()
451 header.block_size, DEFAULT_CLUSTER_SIZE); in vdi_open()
455 (uint64_t)header.blocks_in_image * header.block_size) { in vdi_open()
459 (uint64_t)header.blocks_in_image * header.block_size); in vdi_open()
[all …]
H A Discsi.c71 int block_size; member
424 return sector * iscsilun->block_size / BDRV_SECTOR_SIZE; in sector_lun2qemu()
429 return sector * BDRV_SECTOR_SIZE / iscsilun->block_size; in sector_qemu2lun()
435 if (offset % iscsilun->block_size || bytes % iscsilun->block_size) { in is_byte_request_lun_aligned()
437 "iscsilun->block_size %u, offset %" PRIi64 in is_byte_request_lun_aligned()
439 iscsilun->block_size, offset, bytes); in is_byte_request_lun_aligned()
469 DIV_ROUND_UP(iscsilun->num_blocks * iscsilun->block_size, in iscsi_allocmap_init()
633 NULL, num_sectors * iscsilun->block_size, in iscsi_co_writev()
634 iscsilun->block_size, 0, 0, fua, 0, 0, in iscsi_co_writev()
639 NULL, num_sectors * iscsilun->block_size, in iscsi_co_writev()
[all …]
/openbmc/qemu/contrib/elf2dmp/
H A Dpdb.c122 nBlocks = (size + header->block_size - 1) / header->block_size; in pdb_ds_read()
124 buffer = g_malloc(nBlocks * header->block_size); in pdb_ds_read()
127 memcpy(buffer + i * header->block_size, (const char *)header + in pdb_ds_read()
128 block_list[i] * header->block_size, header->block_size); in pdb_ds_read()
137 uint32_t block_size; in pdb_ds_read_file() local
153 block_size = r->ds.header->block_size; in pdb_ds_read_file()
156 block_list += (file_size[i] + block_size - 1) / block_size; in pdb_ds_read_file()
212 if (hdr->block_size == 0) { in pdb_reader_ds_init()
219 hdr->toc_page * hdr->block_size), hdr->toc_size); in pdb_reader_ds_init()
/openbmc/hiomapd/test/
H A Dwindows_equally_evictable.c23 #define BLOCK_SIZE 4096 macro
24 #define ERASE_SIZE BLOCK_SIZE
26 #define WINDOW_SIZE BLOCK_SIZE
66 while (pos < ((PNOR_SIZE - BLOCK_SIZE) / BLOCK_SIZE)) in main()
70 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
81 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
/openbmc/qemu/tests/qemu-iotests/
H A D075.out11 == block_size must be a multiple of 512 ==
12 qemu-io: can't open device TEST_DIR/simple-pattern.cloop: block_size 513 must be a multiple of 512
14 == block_size cannot be zero ==
15 qemu-io: can't open device TEST_DIR/simple-pattern.cloop: block_size cannot be zero
17 == huge block_size ===
18 qemu-io: can't open device TEST_DIR/simple-pattern.cloop: block_size 4294966784 must be 64 MB or le…
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c65 unsigned int block_size = in ccp_do_sha_update() local
74 if (!final && (len <= block_size)) { in ccp_do_sha_update()
86 rctx->hash_rem = final ? 0 : len & (block_size - 1); in ccp_do_sha_update()
90 rctx->hash_cnt -= block_size; in ccp_do_sha_update()
91 rctx->hash_rem = block_size; in ccp_do_sha_update()
189 unsigned int block_size = in ccp_sha_init() local
199 memcpy(rctx->buf, ctx->u.sha.ipad, block_size); in ccp_sha_init()
200 rctx->buf_count = block_size; in ccp_sha_init()
277 unsigned int block_size = crypto_shash_blocksize(shash); in ccp_sha_setkey() local
289 if (key_len > block_size) { in ccp_sha_setkey()
[all …]
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A Dsdio.c29 u32 block_size; member
50 u32 block_size; member
102 func->cur_blksize = cmd->block_size; in wilc_sdio_cmd53()
104 size = cmd->count * cmd->block_size; in wilc_sdio_cmd53()
331 u32 block_size) in wilc_sdio_set_block_size() argument
341 cmd.data = (u8)block_size; in wilc_sdio_set_block_size()
350 cmd.data = (u8)(block_size >> 8); in wilc_sdio_set_block_size()
404 cmd.block_size = sdio_priv->block_size; in wilc_sdio_write_reg()
418 u32 block_size = sdio_priv->block_size; in wilc_sdio_write() local
438 nblk = size / block_size; in wilc_sdio_write()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvirtio-mem.c206 offset = first_zero_bit * vmem->block_size; in virtio_mem_for_each_unplugged_range()
209 size = (last_zero_bit - first_zero_bit + 1) * vmem->block_size; in virtio_mem_for_each_unplugged_range()
230 offset = first_bit * vmem->block_size; in virtio_mem_for_each_plugged_range()
233 size = (last_bit - first_bit + 1) * vmem->block_size; in virtio_mem_for_each_plugged_range()
278 first_bit = s->offset_within_region / vmem->block_size; in virtio_mem_for_each_plugged_section()
283 offset = first_bit * vmem->block_size; in virtio_mem_for_each_plugged_section()
286 size = (last_bit - first_bit + 1) * vmem->block_size; in virtio_mem_for_each_plugged_section()
310 first_bit = s->offset_within_region / vmem->block_size; in virtio_mem_for_each_unplugged_section()
315 offset = first_bit * vmem->block_size; in virtio_mem_for_each_unplugged_section()
318 size = (last_bit - first_bit + 1) * vmem->block_size; in virtio_mem_for_each_unplugged_section()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_scatterlist.c86 u64 block_size, offset, prev_end; in i915_rsgt_from_mm_node() local
115 block_size = node->size << PAGE_SHIFT; in i915_rsgt_from_mm_node()
118 while (block_size) { in i915_rsgt_from_mm_node()
133 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_mm_node()
138 block_size -= len; in i915_rsgt_from_mm_node()
203 u64 block_size, offset; in i915_rsgt_from_buddy_resource() local
205 block_size = min_t(u64, size, drm_buddy_block_size(mm, block)); in i915_rsgt_from_buddy_resource()
208 while (block_size) { in i915_rsgt_from_buddy_resource()
223 len = min_t(u64, block_size, max_segment - sg->length); in i915_rsgt_from_buddy_resource()
228 block_size -= len; in i915_rsgt_from_buddy_resource()
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dfilemap.py104 self.block_size = get_block_size(self._f_image)
109 self.blocks_cnt = self.image_size + self.block_size - 1
110 self.blocks_cnt //= self.block_size
126 % (self.block_size, self.blocks_cnt, self.image_size))
229 os.ftruncate(tmp_obj.fileno(), self.block_size)
247 offs = _lseek(self._f_image, block * self.block_size, _SEEK_DATA)
251 result = (offs // self.block_size == block)
264 end = start * self.block_size
265 limit = end + count * self.block_size
274 end = self.blocks_cnt * self.block_size
[all …]

12345678910>>...21