Lines Matching refs:bytes
44 size_t bytes, bytes_read = 0; in do_avb_read_part() local
57 bytes = simple_strtoul(argv[3], NULL, 16); in do_avb_read_part()
60 if (avb_ops->read_from_partition(avb_ops, part, offset, bytes, in do_avb_read_part()
77 size_t bytes, bytes_read = 0; in do_avb_read_part_hex() local
90 bytes = simple_strtoul(argv[3], NULL, 16); in do_avb_read_part_hex()
92 buffer = malloc(bytes); in do_avb_read_part_hex()
97 memset(buffer, 0, bytes); in do_avb_read_part_hex()
99 if (avb_ops->read_from_partition(avb_ops, part, offset, bytes, buffer, in do_avb_read_part_hex()
101 printf("Requested %zu, read %zu bytes\n", bytes, bytes_read); in do_avb_read_part_hex()
123 size_t bytes; in do_avb_write_part() local
136 bytes = simple_strtoul(argv[3], NULL, 16); in do_avb_write_part()
139 if (avb_ops->write_to_partition(avb_ops, part, offset, bytes, buffer) == in do_avb_write_part()
141 printf("Wrote %zu bytes\n", bytes); in do_avb_write_part()
355 size_t bytes; in do_avb_read_pvalue() local
369 bytes = simple_strtoul(argv[2], &endp, 10); in do_avb_read_pvalue()
373 buffer = malloc(bytes); in do_avb_read_pvalue()
377 if (avb_ops->read_persistent_value(avb_ops, name, bytes, buffer, in do_avb_read_pvalue()