Lines Matching refs:BLOCK_SIZE
585 #define BLOCK_SIZE 512 macro
657 return (size + BLOCK_SIZE - 1) / BLOCK_SIZE; in fix_blocks()
718 int offset = offset_block * BLOCK_SIZE; in StorageWriteLba()
724 if (!fwrite(data, blocks * BLOCK_SIZE, 1, file)) { in StorageWriteLba()
741 int offset = offset_block * BLOCK_SIZE; in StorageReadLba()
746 if (!fread(data, blocks * BLOCK_SIZE, 1, file)) { in StorageReadLba()
761 int blocks = len / BLOCK_SIZE; in write_data()
765 int left = len % BLOCK_SIZE; in write_data()
767 char buf[BLOCK_SIZE] = "\0"; in write_data()
768 memcpy(buf, data + blocks * BLOCK_SIZE, left); in write_data()
825 content->load_addr = malloc(blocks * BLOCK_SIZE); in load_content()
845 tests_dump_file(content->path, data, blocks * BLOCK_SIZE); in load_content_data()
852 char buf[BLOCK_SIZE]; in get_entry()
943 void *data = malloc(blocks * BLOCK_SIZE); in load_file()
1281 long int offset = entry.content_offset * BLOCK_SIZE; in dump_file()
1287 char buf[BLOCK_SIZE]; in dump_file()
1291 n = len > BLOCK_SIZE ? BLOCK_SIZE : len; in dump_file()
1328 char buf[BLOCK_SIZE]; in unpack_image()
1333 if (!fread(buf, BLOCK_SIZE, 1, image_file)) { in unpack_image()
1367 if (!fread(buf, BLOCK_SIZE, 1, image_file)) { in unpack_image()