• Home
  • Raw
  • Download

Lines Matching refs:oh

679 				const struct yaffs_obj_hdr *oh)  in yaffs_set_obj_name_from_oh()  argument
684 yaffs_load_name_from_oh(obj->my_dev, tmp_name, oh->name, in yaffs_set_obj_name_from_oh()
688 yaffs_set_obj_name(obj, oh->name); in yaffs_set_obj_name_from_oh()
2481 struct yaffs_obj_hdr *oh; in yaffs_gc_process_chunk() local
2482 oh = (struct yaffs_obj_hdr *) buffer; in yaffs_gc_process_chunk()
2484 oh->is_shrink = 0; in yaffs_gc_process_chunk()
2486 oh->shadows_obj = 0; in yaffs_gc_process_chunk()
2487 oh->inband_shadowed_obj_id = 0; in yaffs_gc_process_chunk()
2492 yaffs_oh_size_load(oh, in yaffs_gc_process_chunk()
2498 yaffs_verify_oh(object, oh, &tags, 1); in yaffs_gc_process_chunk()
2500 yaffs_write_new_chunk(dev, (u8 *) oh, &tags, 1); in yaffs_gc_process_chunk()
3161 struct yaffs_obj_hdr *oh; in yaffs_check_obj_details_loaded() local
3173 oh = (struct yaffs_obj_hdr *)buf; in yaffs_check_obj_details_loaded()
3175 in->yst_mode = oh->yst_mode; in yaffs_check_obj_details_loaded()
3176 yaffs_load_attribs(in, oh); in yaffs_check_obj_details_loaded()
3177 yaffs_set_obj_name_from_oh(in, oh); in yaffs_check_obj_details_loaded()
3181 yaffs_clone_str(oh->alias); in yaffs_check_obj_details_loaded()
3272 struct yaffs_obj_hdr *oh = NULL; in yaffs_update_oh() local
3284 oh = (struct yaffs_obj_hdr *)buffer; in yaffs_update_oh()
3292 yaffs_verify_oh(in, oh, &old_tags, 0); in yaffs_update_oh()
3293 memcpy(old_name, oh->name, sizeof(oh->name)); in yaffs_update_oh()
3299 oh->type = in->variant_type; in yaffs_update_oh()
3300 oh->yst_mode = in->yst_mode; in yaffs_update_oh()
3301 oh->shadows_obj = oh->inband_shadowed_obj_id = shadows; in yaffs_update_oh()
3303 yaffs_load_attribs_oh(oh, in); in yaffs_update_oh()
3306 oh->parent_obj_id = in->parent->obj_id; in yaffs_update_oh()
3308 oh->parent_obj_id = 0; in yaffs_update_oh()
3311 memset(oh->name, 0, sizeof(oh->name)); in yaffs_update_oh()
3312 yaffs_load_oh_from_name(dev, oh->name, name); in yaffs_update_oh()
3314 memcpy(oh->name, old_name, sizeof(oh->name)); in yaffs_update_oh()
3316 memset(oh->name, 0, sizeof(oh->name)); in yaffs_update_oh()
3319 oh->is_shrink = is_shrink; in yaffs_update_oh()
3326 if (oh->parent_obj_id != YAFFS_OBJECTID_DELETED && in yaffs_update_oh()
3327 oh->parent_obj_id != YAFFS_OBJECTID_UNLINKED) in yaffs_update_oh()
3329 yaffs_oh_size_load(oh, file_size); in yaffs_update_oh()
3332 oh->equiv_id = in->variant.hardlink_variant.equiv_id; in yaffs_update_oh()
3344 yaffs_strncpy(oh->alias, alias, YAFFS_MAX_ALIAS_LENGTH); in yaffs_update_oh()
3345 oh->alias[YAFFS_MAX_ALIAS_LENGTH] = 0; in yaffs_update_oh()
3362 new_tags.extra_parent_id = oh->parent_obj_id; in yaffs_update_oh()
3364 new_tags.extra_is_shrink = oh->is_shrink; in yaffs_update_oh()
3365 new_tags.extra_equiv_id = oh->equiv_id; in yaffs_update_oh()
3366 new_tags.extra_shadows = (oh->shadows_obj > 0) ? 1 : 0; in yaffs_update_oh()
3368 yaffs_verify_oh(in, oh, &new_tags, 1); in yaffs_update_oh()
4426 struct yaffs_obj_hdr *oh = (struct yaffs_obj_hdr *)buffer; in yaffs_get_obj_name() local
4435 yaffs_load_name_from_oh(obj->my_dev, name, oh->name, in yaffs_get_obj_name()
4991 void yaffs_oh_size_load(struct yaffs_obj_hdr *oh, loff_t fsize) in yaffs_oh_size_load() argument
4993 oh->file_size_low = (fsize & 0xFFFFFFFF); in yaffs_oh_size_load()
4994 oh->file_size_high = ((fsize >> 32) & 0xFFFFFFFF); in yaffs_oh_size_load()
4997 loff_t yaffs_oh_to_size(struct yaffs_obj_hdr *oh) in yaffs_oh_to_size() argument
5001 if (~(oh->file_size_high)) in yaffs_oh_to_size()
5002 retval = (((loff_t) oh->file_size_high) << 32) | in yaffs_oh_to_size()
5003 (((loff_t) oh->file_size_low) & 0xFFFFFFFF); in yaffs_oh_to_size()
5005 retval = (loff_t) oh->file_size_low; in yaffs_oh_to_size()