Lines Matching refs:yaffs_obj

41 static int yaffs_wr_data_obj(struct yaffs_obj *in, int inode_chunk,
288 struct yaffs_obj *yaffs_root(struct yaffs_dev *dev) in yaffs_root()
293 struct yaffs_obj *yaffs_lost_n_found(struct yaffs_dev *dev) in yaffs_lost_n_found()
667 void yaffs_set_obj_name(struct yaffs_obj *obj, const YCHAR * name) in yaffs_set_obj_name()
679 void yaffs_set_obj_name_from_oh(struct yaffs_obj *obj, in yaffs_set_obj_name_from_oh()
987 static int yaffs_find_chunk_in_file(struct yaffs_obj *in, int inode_chunk, in yaffs_find_chunk_in_file()
1014 static int yaffs_find_del_file_chunk(struct yaffs_obj *in, int inode_chunk, in yaffs_find_del_file_chunk()
1046 int yaffs_put_chunk_in_file(struct yaffs_obj *in, int inode_chunk, in yaffs_put_chunk_in_file()
1203 static int yaffs_soft_del_worker(struct yaffs_obj *in, struct yaffs_tnode *tn, in yaffs_soft_del_worker()
1249 static void yaffs_remove_obj_from_dir(struct yaffs_obj *obj) in yaffs_remove_obj_from_dir()
1252 struct yaffs_obj *parent; in yaffs_remove_obj_from_dir()
1268 void yaffs_add_obj_to_dir(struct yaffs_obj *directory, struct yaffs_obj *obj) in yaffs_add_obj_to_dir()
1308 static int yaffs_change_obj_name(struct yaffs_obj *obj, in yaffs_change_obj_name()
1309 struct yaffs_obj *new_dir, in yaffs_change_obj_name()
1314 struct yaffs_obj *existing_target; in yaffs_change_obj_name()
1368 static int yaffs_obj_cache_dirty(struct yaffs_obj *obj) in yaffs_obj_cache_dirty()
1384 static void yaffs_flush_file_cache(struct yaffs_obj *obj) in yaffs_flush_file_cache()
1435 struct yaffs_obj *obj; in yaffs_flush_whole_cache()
1475 struct yaffs_obj *the_obj; in yaffs_grab_chunk_cache()
1520 static struct yaffs_cache *yaffs_find_chunk_cache(const struct yaffs_obj *obj, in yaffs_find_chunk_cache()
1568 static void yaffs_invalidate_chunk_cache(struct yaffs_obj *object, int chunk_id) in yaffs_invalidate_chunk_cache()
1583 static void yaffs_invalidate_whole_cache(struct yaffs_obj *in) in yaffs_invalidate_whole_cache()
1597 static void yaffs_unhash_obj(struct yaffs_obj *obj) in yaffs_unhash_obj()
1611 static void yaffs_free_obj(struct yaffs_obj *obj) in yaffs_free_obj()
1642 void yaffs_handle_defered_free(struct yaffs_obj *obj) in yaffs_handle_defered_free()
1648 static int yaffs_generic_obj_del(struct yaffs_obj *in) in yaffs_generic_obj_del()
1668 static void yaffs_soft_del_file(struct yaffs_obj *obj) in yaffs_soft_del_file()
1796 static struct yaffs_obj *yaffs_alloc_empty_obj(struct yaffs_dev *dev) in yaffs_alloc_empty_obj()
1798 struct yaffs_obj *obj = yaffs_alloc_raw_obj(dev); in yaffs_alloc_empty_obj()
1807 memset(obj, 0, sizeof(struct yaffs_obj)); in yaffs_alloc_empty_obj()
1876 if (list_entry(i, struct yaffs_obj, in yaffs_new_obj_id()
1886 static void yaffs_hash_obj(struct yaffs_obj *in) in yaffs_hash_obj()
1895 struct yaffs_obj *yaffs_find_by_number(struct yaffs_dev *dev, u32 number) in yaffs_find_by_number()
1899 struct yaffs_obj *in; in yaffs_find_by_number()
1903 in = list_entry(i, struct yaffs_obj, hash_link); in yaffs_find_by_number()
1915 struct yaffs_obj *yaffs_new_obj(struct yaffs_dev *dev, int number, in yaffs_new_obj()
1918 struct yaffs_obj *the_obj = NULL; in yaffs_new_obj()
1970 static struct yaffs_obj *yaffs_create_fake_dir(struct yaffs_dev *dev, in yaffs_create_fake_dir()
1974 struct yaffs_obj *obj = in yaffs_create_fake_dir()
2007 struct yaffs_obj *yaffs_find_or_create_by_number(struct yaffs_dev *dev, in yaffs_find_or_create_by_number()
2011 struct yaffs_obj *the_obj = NULL; in yaffs_find_or_create_by_number()
2056 static void yaffs_update_parent(struct yaffs_obj *obj) in yaffs_update_parent()
2083 struct yaffs_obj *obj; in yaffs_update_dirty_dirs()
2095 obj = list_entry(o_v, struct yaffs_obj, variant); in yaffs_update_dirty_dirs()
2112 static struct yaffs_obj *yaffs_create_obj(enum yaffs_obj_type type, in yaffs_create_obj()
2113 struct yaffs_obj *parent, in yaffs_create_obj()
2118 struct yaffs_obj *equiv_obj, in yaffs_create_obj()
2121 struct yaffs_obj *in; in yaffs_create_obj()
2189 struct yaffs_obj *yaffs_create_file(struct yaffs_obj *parent, in yaffs_create_file()
2197 struct yaffs_obj *yaffs_create_dir(struct yaffs_obj *parent, const YCHAR *name, in yaffs_create_dir()
2204 struct yaffs_obj *yaffs_create_special(struct yaffs_obj *parent, in yaffs_create_special()
2212 struct yaffs_obj *yaffs_create_symlink(struct yaffs_obj *parent, in yaffs_create_symlink()
2221 struct yaffs_obj *yaffs_link_obj(struct yaffs_obj *parent, const YCHAR * name, in yaffs_link_obj()
2222 struct yaffs_obj *equiv_obj) in yaffs_link_obj()
2392 struct yaffs_obj *object; in yaffs_gc_process_chunk()
2601 struct yaffs_obj *object = in yaffs_gc_block()
2907 static int yaffs_rd_data_obj(struct yaffs_obj *in, int inode_chunk, u8 * buffer) in yaffs_rd_data_obj()
2983 static int yaffs_wr_data_obj(struct yaffs_obj *in, int inode_chunk, in yaffs_wr_data_obj()
3041 static int yaffs_do_xattrib_mod(struct yaffs_obj *obj, int set, in yaffs_do_xattrib_mod()
3063 static int yaffs_apply_xattrib_mod(struct yaffs_obj *obj, char *buffer, in yaffs_apply_xattrib_mod()
3086 static int yaffs_do_xattrib_fetch(struct yaffs_obj *obj, const YCHAR *name, in yaffs_do_xattrib_fetch()
3137 int yaffs_set_xattrib(struct yaffs_obj *obj, const YCHAR * name, in yaffs_set_xattrib()
3143 int yaffs_remove_xattrib(struct yaffs_obj *obj, const YCHAR * name) in yaffs_remove_xattrib()
3148 int yaffs_get_xattrib(struct yaffs_obj *obj, const YCHAR * name, void *value, in yaffs_get_xattrib()
3154 int yaffs_list_xattrib(struct yaffs_obj *obj, char *buffer, int size) in yaffs_list_xattrib()
3159 static void yaffs_check_obj_details_loaded(struct yaffs_obj *in) in yaffs_check_obj_details_loaded()
3259 int yaffs_update_oh(struct yaffs_obj *in, const YCHAR *name, int force, in yaffs_update_oh()
3413 int yaffs_file_rd(struct yaffs_obj *in, u8 * buffer, loff_t offset, int n_bytes) in yaffs_file_rd()
3492 int yaffs_do_file_wr(struct yaffs_obj *in, const u8 *buffer, loff_t offset, in yaffs_do_file_wr()
3663 int yaffs_wr_file(struct yaffs_obj *in, const u8 *buffer, loff_t offset, in yaffs_wr_file()
3672 static void yaffs_prune_chunks(struct yaffs_obj *in, loff_t new_size) in yaffs_prune_chunks()
3722 void yaffs_resize_file_down(struct yaffs_obj *obj, loff_t new_size) in yaffs_resize_file_down()
3752 int yaffs_resize_file(struct yaffs_obj *in, loff_t new_size) in yaffs_resize_file()
3790 int yaffs_flush_file(struct yaffs_obj *in, int update_time, int data_sync) in yaffs_flush_file()
3812 static int yaffs_unlink_file_if_needed(struct yaffs_obj *in) in yaffs_unlink_file_if_needed()
3841 int yaffs_del_file(struct yaffs_obj *in) in yaffs_del_file()
3876 int yaffs_is_non_empty_dir(struct yaffs_obj *obj) in yaffs_is_non_empty_dir()
3883 static int yaffs_del_dir(struct yaffs_obj *obj) in yaffs_del_dir()
3892 static int yaffs_del_symlink(struct yaffs_obj *in) in yaffs_del_symlink()
3900 static int yaffs_del_link(struct yaffs_obj *in) in yaffs_del_link()
3909 int yaffs_del_obj(struct yaffs_obj *obj) in yaffs_del_obj()
3942 static int yaffs_unlink_worker(struct yaffs_obj *obj) in yaffs_unlink_worker()
3971 struct yaffs_obj *hl; in yaffs_unlink_worker()
3972 struct yaffs_obj *parent; in yaffs_unlink_worker()
3976 hl = list_entry(obj->hard_links.next, struct yaffs_obj, in yaffs_unlink_worker()
4021 static int yaffs_unlink_obj(struct yaffs_obj *obj) in yaffs_unlink_obj()
4029 int yaffs_unlinker(struct yaffs_obj *dir, const YCHAR *name) in yaffs_unlinker()
4031 struct yaffs_obj *obj; in yaffs_unlinker()
4040 int yaffs_rename_obj(struct yaffs_obj *old_dir, const YCHAR *old_name, in yaffs_rename_obj()
4041 struct yaffs_obj *new_dir, const YCHAR *new_name) in yaffs_rename_obj()
4043 struct yaffs_obj *obj = NULL; in yaffs_rename_obj()
4044 struct yaffs_obj *existing_target = NULL; in yaffs_rename_obj()
4120 struct yaffs_obj *obj; in yaffs_handle_shadowed_obj()
4149 struct yaffs_obj *hl; in yaffs_link_fixup()
4150 struct yaffs_obj *in; in yaffs_link_fixup()
4153 hl = list_entry(lh, struct yaffs_obj, hard_links); in yaffs_link_fixup()
4178 struct yaffs_obj *l; in yaffs_strip_deleted_objs()
4186 l = list_entry(i, struct yaffs_obj, siblings); in yaffs_strip_deleted_objs()
4191 l = list_entry(i, struct yaffs_obj, siblings); in yaffs_strip_deleted_objs()
4214 static int yaffs_has_null_parent(struct yaffs_dev *dev, struct yaffs_obj *obj) in yaffs_has_null_parent()
4222 struct yaffs_obj *obj; in yaffs_fix_hanging_objs()
4223 struct yaffs_obj *parent; in yaffs_fix_hanging_objs()
4240 obj = list_entry(lh, struct yaffs_obj, hash_link); in yaffs_fix_hanging_objs()
4284 static void yaffs_del_dir_contents(struct yaffs_obj *dir) in yaffs_del_dir_contents()
4286 struct yaffs_obj *obj; in yaffs_del_dir_contents()
4294 obj = list_entry(lh, struct yaffs_obj, siblings); in yaffs_del_dir_contents()
4310 struct yaffs_obj *yaffs_find_by_name(struct yaffs_obj *directory, in yaffs_find_by_name()
4316 struct yaffs_obj *l; in yaffs_find_by_name()
4338 l = list_entry(i, struct yaffs_obj, siblings); in yaffs_find_by_name()
4366 struct yaffs_obj *yaffs_get_equivalent_obj(struct yaffs_obj *obj) in yaffs_get_equivalent_obj()
4394 static void yaffs_fix_null_name(struct yaffs_obj *obj, YCHAR *name, in yaffs_fix_null_name()
4416 int yaffs_get_obj_name(struct yaffs_obj *obj, YCHAR *name, int buffer_size) in yaffs_get_obj_name()
4447 loff_t yaffs_get_obj_length(struct yaffs_obj *obj) in yaffs_get_obj_length()
4465 int yaffs_get_obj_link_count(struct yaffs_obj *obj) in yaffs_get_obj_link_count()
4479 int yaffs_get_obj_inode(struct yaffs_obj *obj) in yaffs_get_obj_inode()
4486 unsigned yaffs_get_obj_type(struct yaffs_obj *obj) in yaffs_get_obj_type()
4520 YCHAR *yaffs_get_symlink_alias(struct yaffs_obj *obj) in yaffs_get_symlink_alias()