Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 27) sorted by relevance

12

/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
Dio_block.c135 assert(((region->offset % cur->dev_spec->block_size) == 0) && in block_open()
136 ((region->length % cur->dev_spec->block_size) == 0)); in block_open()
176 size_t aligned_length, skip, count, left, padding, block_size; in block_read() local
184 block_size = cur->dev_spec->block_size; in block_read()
189 if ((buffer & (block_size - 1)) != 0) { in block_read()
200 skip = cur->file_pos % block_size; in block_read()
201 aligned_length = ((skip + length) + (block_size - 1)) & in block_read()
202 ~(block_size - 1); in block_read()
206 lba = (cur->file_pos + cur->base) / block_size; in block_read()
269 skip = cur->file_pos % block_size; in block_read()
[all …]
/device/linaro/hikey/l-loader/
Dgen_loader_hikey.py37 block_size = 512 variable in generator
66 blocks = (fsize + self.block_size - 1) / self.block_size
77 if (self.p_file < (lba * self.block_size - 2048)):
78 self.p_file = lba * self.block_size - 2048
88 left_bytes = fsize % self.block_size
90 left_bytes = self.block_size - left_bytes
95 buf = fimg.read(self.block_size)
101 self.p_file += self.block_size
105 …print 'p_file: ', self.p_file, 'last block is ', fsize % self.block_size, 'bytes', ' tell: ', sel…
Dgen_loader.py32 block_size = 512 variable in generator
69 fptable.read(self.block_size)
88 fptable.read(self.block_size - 84)
108 blocks = (fsize + self.block_size - 1) / self.block_size
122 for i in range (0, self.block_size):
125 self.p_file += self.block_size
138 left_bytes = fsize % self.block_size
140 left_bytes = self.block_size - left_bytes
145 buf = fimg.read(self.block_size)
150 self.p_file += self.block_size
[all …]
/device/linaro/bootloader/arm-trusted-firmware/lib/aarch64/
Dmisc_helpers.S192 block_size .req x3 /* Size of a block in bytes as read in DCZID_EL0 */
218 mrs block_size, dczid_el0
224 ubfx block_size, block_size, #0, #4
226 lsl block_size, tmp2, block_size
233 cmp block_size, #16
243 cmp length, block_size
251 sub block_mask, block_size, #1
343 add cursor, cursor, block_size
410 .unreq block_size
/device/linaro/bootloader/arm-trusted-firmware/bl1/
Dbl1_fwu.c28 unsigned int block_size,
223 unsigned int block_size, in bl1_fwu_image_copy() argument
258 if ((!image_src) || (!block_size) || in bl1_fwu_image_copy()
259 check_uptr_overflow(image_src, block_size - 1)) { in bl1_fwu_image_copy()
337 if (block_size > remaining) { in bl1_fwu_image_copy()
339 block_size = remaining; in bl1_fwu_image_copy()
343 if (bl1_plat_mem_check(image_src, block_size, flags)) { in bl1_fwu_image_copy()
355 memcpy((void *) dest_addr, (const void *) image_src, block_size); in bl1_fwu_image_copy()
356 flush_dcache_range(dest_addr, block_size); in bl1_fwu_image_copy()
358 image_desc->copied_size += block_size; in bl1_fwu_image_copy()
[all …]
/device/google/crosshatch/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h137 uint32_t block_size; member
/device/google/sunfish/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h138 uint32_t block_size; member
/device/google/coral/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h138 uint32_t block_size; member
/device/google/bonito/gpt-utils/
Dgpt-utils.cpp1128 uint32_t block_size = 0; in gpt_get_block_size() local
1134 if (ioctl(fd, BLKSSZGET, &block_size) != 0) { in gpt_get_block_size()
1140 return block_size; in gpt_get_block_size()
1150 uint32_t block_size = 0; in gpt_set_header() local
1157 block_size = gpt_get_block_size(fd); in gpt_set_header()
1158 ALOGI("%s: Block size is : %d", __func__, block_size); in gpt_set_header()
1159 if (block_size == 0) { in gpt_set_header()
1164 gpt_header_offset = block_size; in gpt_set_header()
1166 gpt_header_offset = lseek64(fd, 0, SEEK_END) - block_size; in gpt_set_header()
1173 if (blk_rw(fd, 1, gpt_header_offset, gpt_header, block_size)) { in gpt_set_header()
[all …]
Dgpt-utils.h138 uint32_t block_size; member
/device/google/cuttlefish/host/commands/assemble_cvd/
Dcf_bpttool.py321 self.block_size = 4096
333 block_size, self._num_total_blocks, self._num_total_chunks,
349 self.block_size = block_size
368 if data_sz != (chunk_sz * self.block_size):
371 format(data_sz, chunk_sz*self.block_size))
375 chunk_sz*self.block_size,
388 chunk_sz*self.block_size,
398 chunk_sz*self.block_size,
410 output_offset += chunk_sz * self.block_size
453 assert num_bytes % self.block_size == 0
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/scp/
Dcss_bom_bootloader.c45 uint32_t block_size; member
173 cmd_data_payload->block_size = image_size; in css_scp_boot_image_xfer()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_urllib.py279 def hooktester(count, block_size, total_size, count_holder=[0]): argument
281 self.assertIsInstance(block_size, int)
293 def hooktester(count, block_size, total_size, _report=report): argument
294 _report.append((count, block_size, total_size))
307 def hooktester(count, block_size, total_size, _report=report): argument
308 _report.append((count, block_size, total_size))
321 def hooktester(count, block_size, total_size, _report=report): argument
322 _report.append((count, block_size, total_size))
/device/linaro/bootloader/arm-trusted-firmware/include/drivers/io/
Dio_block.h21 size_t block_size; member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_hashopenssl.c266 long block_size; in EVP_get_block_size() local
267 block_size = EVP_MD_CTX_block_size(&self->ctx); in EVP_get_block_size()
268 return PyLong_FromLong(block_size); in EVP_get_block_size()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dhmac.py54 blocksize = self.inner.block_size
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey/
Dhikey_io_storage.c65 .block_size = EMMC_BLOCK_SIZE,
/device/linaro/bootloader/arm-trusted-firmware/plat/socionext/uniphier/
Duniphier_usb.c166 .block_size = 512,
Duniphier_nand.c270 uniphier_nand_dev_spec.block_size = uniphier_nand.page_size; in uniphier_nand_init()
Duniphier_emmc.c234 .block_size = 512,
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/
Dhikey960_io_storage.c57 .block_size = UFS_BLOCK_SIZE,
/device/linaro/bootloader/arm-trusted-firmware/docs/
Dfirmware-update.rst208 unsigned int block_size
221 if (image_addr + block_size overflows) return -ENOMEM
234 The ``image_addr`` and ``block_size`` specify the source memory block to copy from.
237 If ``block_size`` is greater than the amount of remaining bytes to copy for this

12