Searched refs:shdr (Results 1 - 3 of 3) sorted by relevance
/openwrt/package/system/mtd/src/ |
H A D | seama.c | 54 seama_fix_md5(struct seama_entity_header *shdr, int fd, size_t data_offset, size_t data_size) argument 80 if (!memcmp(digest, shdr->md5, sizeof(digest))) { 95 shdr->size = htonl(data_size); 98 memcpy(shdr->md5, digest, sizeof(digest)); 114 struct seama_entity_header *shdr; local 147 shdr = (struct seama_entity_header *)(first_block + offset); 148 if (shdr->magic != htonl(SEAMA_MAGIC)) { 151 } else if (!ntohl(shdr->size)) { 156 data_offset = offset + sizeof(struct seama_entity_header) + ntohs(shdr->metasize); 159 if (data_size > ntohl(shdr [all...] |
/openwrt/tools/firmware-utils/src/ |
H A D | seama.c | 189 seamahdr_t shdr; local 210 if (fread(&shdr, sizeof(shdr), 1, fh) != 1) break; 213 if (shdr.magic != htonl(SEAMA_MAGIC)) ERRBREAK("Invalid SEAMA magic. Probably no more SEAMA!\n"); 216 isize = ntohl(shdr.size); 217 msize = ntohs(shdr.metasize); 237 printf(" magic : %08x\n", ntohl(shdr.magic)); 275 seamahdr_t shdr; local 286 shdr.magic = htonl(SEAMA_MAGIC); 287 shdr 426 seamahdr_t shdr; local [all...] |
/openwrt/target/linux/adm8668/files-3.18/drivers/mtd/maps/ |
H A D | adm8668.c | 180 struct squashfs_super_block shdr; local 187 memset(&shdr, 0xe5, sizeof(shdr)); 192 if (mtd->_read(mtd, off, sizeof(shdr), &len, (char *)&shdr) || 193 len != sizeof(shdr)) 196 if (shdr.s_magic == SQUASHFS_MAGIC) { 197 uint32_t fs_size = (uint32_t)shdr.bytes_used;
|
Completed in 87 milliseconds