/u-boot/tools/ |
A D | endian-swap.py | 29 chunk = bytearray(chunk_orig) 32 chunk_len = len(chunk) 35 chunk += b'\x00' * (4 - pad_len) 37 chunk[0::4], chunk[1::4], chunk[2::4], chunk[3::4] =\ 38 chunk[3::4], chunk[2::4], chunk[1::4], chunk[0::4] 40 return chunk 48 chunk = bytearray(input_bin.read(args.chunk_size)) 49 if not chunk: 52 output_bin.write(swap_chunk(chunk))
|
/u-boot/fs/yaffs2/ |
A D | yaffs_bitmap.c | 35 chunk < 0 || chunk >= dev->param.chunks_per_block) { in yaffs_verify_chunk_bit_id() 38 blk, chunk); in yaffs_verify_chunk_bit_id() 50 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_clear_chunk_bit() argument 54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit() 55 blk_bits[chunk / 8] &= ~(1 << (chunk & 7)); in yaffs_clear_chunk_bit() 58 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_set_chunk_bit() argument 62 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_set_chunk_bit() 63 blk_bits[chunk / 8] |= (1 << (chunk & 7)); in yaffs_set_chunk_bit() 66 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_check_chunk_bit() argument 70 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_check_chunk_bit() [all …]
|
A D | yaffs_bitmap.h | 25 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk); 27 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk); 28 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk); 29 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk);
|
A D | yaffs_yaffs1.c | 27 int chunk; in yaffs1_scan() local 96 chunk = blk * dev->param.chunks_per_block + c; in yaffs1_scan() 98 yaffs_rd_chunk_tags_nand(dev, chunk, NULL, &tags); in yaffs1_scan() 153 (in, tags.chunk_id, chunk, 1)) in yaffs1_scan() 183 yaffs_rd_chunk_tags_nand(dev, chunk, in yaffs1_scan() 250 yaffs_chunk_del(dev, chunk, 1, in yaffs1_scan() 266 in->hdr_chunk = chunk; in yaffs1_scan() 277 in->hdr_chunk = chunk; in yaffs1_scan()
|
A D | yaffs_checkptrw.c | 110 int chunk = i * dev->param.chunks_per_block; in yaffs2_checkpt_find_block() local 111 int realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_find_block() 205 int chunk; in yaffs2_checkpt_flush_buffer() local 231 chunk = in yaffs2_checkpt_flush_buffer() 237 chunk, dev->checkpt_cur_block, dev->checkpt_cur_chunk, in yaffs2_checkpt_flush_buffer() 240 realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_flush_buffer() 293 int chunk; in yaffs2_checkpt_rd() local 318 chunk = dev->checkpt_cur_block * in yaffs2_checkpt_rd() 322 realigned_chunk = chunk - dev->chunk_offset; in yaffs2_checkpt_rd()
|
A D | yaffs_guts.c | 51 int chunk; in yaffs_addr_to_chunk() local 64 chunk /= dev->chunk_div; in yaffs_addr_to_chunk() 70 *chunk_out = chunk; in yaffs_addr_to_chunk() 507 int chunk; in yaffs_write_new_chunk() local 516 if (chunk < 0) { in yaffs_write_new_chunk() 556 chunk); in yaffs_write_new_chunk() 589 chunk = -1; in yaffs_write_new_chunk() 598 return chunk; in yaffs_write_new_chunk() 3415 int chunk; in yaffs_file_rd() local 3427 chunk++; in yaffs_file_rd() [all …]
|
A D | yaffs_yaffs2.c | 951 int chunk = blk * dev->param.chunks_per_block + chunk_in_block; in yaffs2_scan_chunk() local 962 yaffs_rd_chunk_tags_nand(dev, chunk, NULL, &tags); in yaffs2_scan_chunk() 1059 chunk, -1)) in yaffs2_scan_chunk() 1081 yaffs_chunk_del(dev, chunk, 1, __LINE__); in yaffs2_scan_chunk() 1117 yaffs_rd_chunk_tags_nand(dev, chunk, chunk_data, NULL); in yaffs2_scan_chunk() 1142 tags.obj_id, chunk); in yaffs2_scan_chunk() 1189 yaffs_chunk_del(dev, chunk, 1, __LINE__); in yaffs2_scan_chunk() 1198 chunk); in yaffs2_scan_chunk() 1214 in->hdr_chunk = chunk; in yaffs2_scan_chunk() 1219 in->hdr_chunk = chunk; in yaffs2_scan_chunk()
|
/u-boot/drivers/misc/ |
A D | jz4780_efuse.c | 81 size_t chunk; in jz4780_efuse_read() local 84 chunk = jz4780_efuse_chunk_size(count); in jz4780_efuse_read() 85 jz4780_efuse_read_chunk(addr, chunk, buf); in jz4780_efuse_read() 86 addr += chunk; in jz4780_efuse_read() 87 buf += chunk; in jz4780_efuse_read() 88 count -= chunk; in jz4780_efuse_read()
|
/u-boot/fs/btrfs/ |
A D | volumes.c | 387 struct btrfs_chunk *chunk, in btrfs_check_chunk_valid() argument 410 length = btrfs_chunk_length(leaf, chunk); in btrfs_check_chunk_valid() 414 type = btrfs_chunk_type(leaf, chunk); in btrfs_check_chunk_valid() 517 struct btrfs_chunk *chunk, int slot) in read_one_chunk() argument 531 length = btrfs_chunk_length(leaf, chunk); in read_one_chunk() 565 btrfs_stripe_offset_nr(leaf, chunk, i); in read_one_chunk() 568 btrfs_stripe_dev_uuid_nr(chunk, i), in read_one_chunk() 654 struct btrfs_chunk *chunk; in btrfs_read_sys_array() local 786 struct btrfs_chunk *chunk; in btrfs_read_chunk_tree() local 810 struct btrfs_chunk *chunk) in btrfs_stripe_length() argument [all …]
|
A D | volumes.h | 199 struct btrfs_chunk *chunk, 203 struct btrfs_chunk *chunk);
|
/u-boot/lib/ |
A D | sha512.c | 298 int chunk; in sha384_csum_wd() local 307 chunk = end - curr; in sha384_csum_wd() 308 if (chunk > chunk_sz) in sha384_csum_wd() 309 chunk = chunk_sz; in sha384_csum_wd() 310 sha384_update(&ctx, curr, chunk); in sha384_csum_wd() 311 curr += chunk; in sha384_csum_wd() 362 int chunk; in sha512_csum_wd() local 371 chunk = end - curr; in sha512_csum_wd() 372 if (chunk > chunk_sz) in sha512_csum_wd() 373 chunk = chunk_sz; in sha512_csum_wd() [all …]
|
A D | crc32.c | 240 int chunk; in crc32_wd() local 245 chunk = end - curr; in crc32_wd() 246 if (chunk > chunk_sz) in crc32_wd() 247 chunk = chunk_sz; in crc32_wd() 248 crc = crc32(crc, curr, chunk); in crc32_wd() 249 curr += chunk; in crc32_wd()
|
A D | image-sparse.c | 59 unsigned int chunk; in write_sparse_image() local 114 for (chunk = 0; chunk < sparse_header->total_chunks; chunk++) { in write_sparse_image()
|
A D | md5.c | 293 int chunk; in md5_wd() local 302 chunk = end - curr; in md5_wd() 303 if (chunk > chunk_sz) in md5_wd() 304 chunk = chunk_sz; in md5_wd() 305 MD5Update(&context, curr, chunk); in md5_wd() 306 curr += chunk; in md5_wd()
|
A D | sha1.c | 321 int chunk; in sha1_csum_wd() local 330 chunk = end - curr; in sha1_csum_wd() 331 if (chunk > chunk_sz) in sha1_csum_wd() 332 chunk = chunk_sz; in sha1_csum_wd() 333 sha1_update (&ctx, curr, chunk); in sha1_csum_wd() 334 curr += chunk; in sha1_csum_wd()
|
A D | sha256.c | 270 int chunk; in sha256_csum_wd() local 279 chunk = end - curr; in sha256_csum_wd() 280 if (chunk > chunk_sz) in sha256_csum_wd() 281 chunk = chunk_sz; in sha256_csum_wd() 282 sha256_update(&ctx, curr, chunk); in sha256_csum_wd() 283 curr += chunk; in sha256_csum_wd()
|
/u-boot/drivers/net/ |
A D | netconsole.c | 139 int end, chunk; in nc_input_packet() local 158 chunk = len; in nc_input_packet() 161 chunk = sizeof(input_buffer) - end; in nc_input_packet() 163 memcpy(input_buffer, pkt + chunk, len - chunk); in nc_input_packet() 166 memcpy(input_buffer + end, pkt, chunk); in nc_input_packet()
|
/u-boot/test/py/ |
A D | u_boot_console_base.py | 191 chunk = cmd[:self.max_fifo_fill] 193 self.p.send(chunk) 196 chunk = re.escape(chunk) 197 chunk = chunk.replace('\\\n', '[\r\n]') 198 m = self.p.expect([chunk] + self.bad_patterns)
|
/u-boot/drivers/spi/ |
A D | sh_qspi.c | 150 u32 nbyte, chunk; in sh_qspi_xfer_common() local 190 chunk = (nbyte >= 32) ? 32 : 1; in sh_qspi_xfer_common() 193 chunk == 32 ? SPBFCR_TXTRG | SPBFCR_RXTRG : 0); in sh_qspi_xfer_common() 200 for (i = 0; i < chunk; i++) { in sh_qspi_xfer_common() 211 for (i = 0; i < chunk; i++) { in sh_qspi_xfer_common() 217 nbyte -= chunk; in sh_qspi_xfer_common()
|
/u-boot/drivers/dfu/ |
A D | dfu.c | 398 long chunk; in dfu_read_buffer_fill() local 404 chunk = min((long)size, dfu->b_left); in dfu_read_buffer_fill() 406 if (chunk > 0) { in dfu_read_buffer_fill() 407 memcpy(buf, dfu->i_buf, chunk); in dfu_read_buffer_fill() 411 chunk, 0); in dfu_read_buffer_fill() 413 dfu->i_buf += chunk; in dfu_read_buffer_fill() 414 dfu->b_left -= chunk; in dfu_read_buffer_fill() 415 size -= chunk; in dfu_read_buffer_fill() 416 buf += chunk; in dfu_read_buffer_fill() 417 readn += chunk; in dfu_read_buffer_fill()
|
/u-boot/common/ |
A D | dlmalloc.src | 1159 An allocated chunk looks like this: 1176 Where "chunk" is the front of the chunk for the purpose of most of 1205 word before the current chunk size contains the previous chunk 1299 Physical chunk operations 1346 /* check for mmap()'ed chunk */ 1601 /* No checkable chunk is mmapped */ 1765 /* take a chunk off a list */ 2096 chunk borders either a previously allocated and still in-use chunk, 2309 /* Try to use top chunk */ 2579 /* Forward into next chunk */ [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | octeontx_bch.c | 315 int chunk = max_depth + 1; in octeontx_cmd_queue_initialize() local 320 if (max_depth & chunk) /* must be 2^N - 1 */ in octeontx_cmd_queue_initialize() 323 size = NQS * chunk * sizeof(u64); in octeontx_cmd_queue_initialize() 337 int inext = (i + 1) * chunk - 1; in octeontx_cmd_queue_initialize() 339 int jnext = j * chunk; in octeontx_cmd_queue_initialize()
|
A D | pxa3xx_nand.c | 1316 int chunk, ecc_off_buf; in pxa3xx_nand_read_page_raw() local 1330 for (chunk = 0; chunk < info->nfullchunks; chunk++) { in pxa3xx_nand_read_page_raw() 1332 buf + (chunk * info->chunk_size), in pxa3xx_nand_read_page_raw() 1336 (chunk * (info->spare_size)), in pxa3xx_nand_read_page_raw() 1340 (chunk * (info->ecc_size)), in pxa3xx_nand_read_page_raw()
|
/u-boot/fs/zfs/ |
A D | zfs.c | 777 if (chunk >= ZAP_LEAF_NUMCHUNKS(blksft)) in zap_leaf_array_equal() 782 chunk = zfs_to_cpu16(la->la_next, endian); in zap_leaf_array_equal() 791 int chunk, int array_len, char *buf) in zap_leaf_array_get() argument 799 if (chunk >= ZAP_LEAF_NUMCHUNKS(blksft)) in zap_leaf_array_get() 804 chunk = zfs_to_cpu16(la->la_next, endian); in zap_leaf_array_get() 822 uint16_t chunk; in zap_leaf_lookup() local 836 chunk != CHAIN_END; chunk = le->le_next) { in zap_leaf_lookup() 843 le = ZAP_LEAF_ENTRY(l, blksft, chunk); in zap_leaf_lookup() 955 uint16_t chunk; in fzap_iterate() local 992 for (chunk = 0; chunk < ZAP_LEAF_NUMCHUNKS(blksft); chunk++) { in fzap_iterate() [all …]
|
/u-boot/tools/patman/ |
A D | cros_subprocess.py | 194 chunk = input[input_offset : input_offset + 512] 195 bytes_written = os.write(self.stdin.fileno(), chunk)
|