Lines Matching defs:oh
743 const struct yaffs_obj_hdr *oh)
748 yaffs_load_name_from_oh(obj->my_dev, tmp_name, oh->name,
752 yaffs_set_obj_name(obj, oh->name);
2538 struct yaffs_obj_hdr *oh;
2539 oh = (struct yaffs_obj_hdr *) buffer;
2541 oh->is_shrink = 0;
2543 oh->shadows_obj = 0;
2544 oh->inband_shadowed_obj_id = 0;
2549 yaffs_oh_size_load(oh,
2555 yaffs_verify_oh(object, oh, &tags, 1);
2557 yaffs_write_new_chunk(dev, (u8 *) oh, &tags, 1);
3219 struct yaffs_obj_hdr *oh;
3233 oh = (struct yaffs_obj_hdr *)buf;
3235 in->yst_mode = oh->yst_mode;
3236 yaffs_load_attribs(in, oh);
3237 yaffs_set_obj_name_from_oh(in, oh);
3241 yaffs_clone_str(oh->alias);
3266 struct yaffs_obj_hdr *oh = NULL;
3278 oh = (struct yaffs_obj_hdr *)buffer;
3286 yaffs_verify_oh(in, oh, &old_tags, 0);
3287 memcpy(old_name, oh->name, sizeof(oh->name));
3293 oh->type = in->variant_type;
3294 oh->yst_mode = in->yst_mode;
3295 oh->shadows_obj = oh->inband_shadowed_obj_id = shadows;
3297 yaffs_load_attribs_oh(oh, in);
3300 oh->parent_obj_id = in->parent->obj_id;
3302 oh->parent_obj_id = 0;
3305 memset(oh->name, 0, sizeof(oh->name));
3306 yaffs_load_oh_from_name(dev, oh->name, name);
3308 memcpy(oh->name, old_name, sizeof(oh->name));
3310 memset(oh->name, 0, sizeof(oh->name));
3313 oh->is_shrink = is_shrink;
3320 if (oh->parent_obj_id != YAFFS_OBJECTID_DELETED &&
3321 oh->parent_obj_id != YAFFS_OBJECTID_UNLINKED)
3323 yaffs_oh_size_load(oh, file_size);
3326 oh->equiv_id = in->variant.hardlink_variant.equiv_id;
3338 strncpy(oh->alias, alias, YAFFS_MAX_ALIAS_LENGTH);
3339 oh->alias[YAFFS_MAX_ALIAS_LENGTH] = 0;
3356 new_tags.extra_parent_id = oh->parent_obj_id;
3358 new_tags.extra_is_shrink = oh->is_shrink;
3359 new_tags.extra_equiv_id = oh->equiv_id;
3360 new_tags.extra_shadows = (oh->shadows_obj > 0) ? 1 : 0;
3362 yaffs_verify_oh(in, oh, &new_tags, 1);
4453 * starting at oh->name[1].
4490 struct yaffs_obj_hdr *oh = (struct yaffs_obj_hdr *)buffer;
4499 yaffs_load_name_from_oh(obj->my_dev, name, oh->name,
5103 void yaffs_oh_size_load(struct yaffs_obj_hdr *oh, loff_t fsize)
5105 oh->file_size_low = (fsize & 0xFFFFFFFF);
5106 oh->file_size_high = ((fsize >> 32) & 0xFFFFFFFF);
5109 loff_t yaffs_oh_to_size(struct yaffs_obj_hdr *oh)
5113 if (sizeof(loff_t) >= 8 && ~(oh->file_size_high))
5114 retval = (((loff_t) oh->file_size_high) << 32) |
5115 (((loff_t) oh->file_size_low) & 0xFFFFFFFF);
5117 retval = (loff_t) oh->file_size_low;