Home | History | Annotate | Download | only in chfs

Lines Matching defs:nhdr

77 chfs_scan_check_node_hdr(struct chfs_flash_node_hdr *nhdr)
82 magic = le16toh(nhdr->magic);
89 hdr_crc = le32toh(nhdr->hdr_crc);
90 crc = crc32(0, (uint8_t *)nhdr, CHFS_NODE_HDR_SIZE - 4);
436 struct chfs_flash_node_hdr *nhdr;
476 nhdr = (struct chfs_flash_node_hdr *)buf;
478 err = chfs_scan_check_node_hdr(nhdr);
494 switch (le16toh(nhdr->type)) {
498 len = le32toh(nhdr->length) - CHFS_NODE_HDR_SIZE;
521 len = le32toh(nhdr->length) - CHFS_NODE_HDR_SIZE;
575 le32toh(nhdr->length));
583 le32toh(nhdr->length));
589 ofs += le32toh(nhdr->length) - CHFS_NODE_HDR_SIZE;