Lines Matching refs:oh
165 void yaffs_verify_oh(struct yaffs_obj *obj, struct yaffs_obj_hdr *oh, in yaffs_verify_oh() argument
171 if (!(tags && obj && oh)) { in yaffs_verify_oh()
174 tags, obj, oh); in yaffs_verify_oh()
178 if (oh->type <= YAFFS_OBJECT_TYPE_UNKNOWN || in yaffs_verify_oh()
179 oh->type > YAFFS_OBJECT_TYPE_MAX) in yaffs_verify_oh()
182 tags->obj_id, oh->type); in yaffs_verify_oh()
198 tags->obj_id, oh->parent_obj_id); in yaffs_verify_oh()
201 oh->parent_obj_id != obj->parent->obj_id && in yaffs_verify_oh()
202 (oh->parent_obj_id != YAFFS_OBJECTID_UNLINKED || in yaffs_verify_oh()
206 tags->obj_id, oh->parent_obj_id, in yaffs_verify_oh()
209 if (tags->obj_id > 1 && oh->name[0] == 0) /* Null name */ in yaffs_verify_oh()
214 if (tags->obj_id > 1 && ((u8) (oh->name[0])) == 0xff) /* Junk name */ in yaffs_verify_oh()
349 struct yaffs_obj_hdr *oh; in yaffs_verify_obj() local
352 oh = (struct yaffs_obj_hdr *)buffer; in yaffs_verify_obj()
356 yaffs_verify_oh(obj, oh, &tags, 1); in yaffs_verify_obj()