• Home
  • Raw
  • Download

Lines Matching refs:obj

210 adfs_dir2obj(struct adfs_dir *dir, struct object_info *obj,  in adfs_dir2obj()  argument
213 obj->name_len = adfs_readname(obj->name, de->dirobname, ADFS_F_NAME_LEN); in adfs_dir2obj()
214 obj->file_id = adfs_readval(de->dirinddiscadd, 3); in adfs_dir2obj()
215 obj->loadaddr = adfs_readval(de->dirload, 4); in adfs_dir2obj()
216 obj->execaddr = adfs_readval(de->direxec, 4); in adfs_dir2obj()
217 obj->size = adfs_readval(de->dirlen, 4); in adfs_dir2obj()
218 obj->attr = de->newdiratts; in adfs_dir2obj()
219 obj->filetype = -1; in adfs_dir2obj()
225 if ((0 == (obj->attr & ADFS_NDA_DIRECTORY)) && in adfs_dir2obj()
226 (0xfff00000 == (0xfff00000 & obj->loadaddr))) { in adfs_dir2obj()
227 obj->filetype = (__u16) ((0x000fff00 & obj->loadaddr) >> 8); in adfs_dir2obj()
231 obj->name_len += in adfs_dir2obj()
233 &obj->name[obj->name_len], in adfs_dir2obj()
234 obj->filetype); in adfs_dir2obj()
242 adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj) in adfs_obj2dir() argument
244 adfs_writeval(de->dirinddiscadd, 3, obj->file_id); in adfs_obj2dir()
245 adfs_writeval(de->dirload, 4, obj->loadaddr); in adfs_obj2dir()
246 adfs_writeval(de->direxec, 4, obj->execaddr); in adfs_obj2dir()
247 adfs_writeval(de->dirlen, 4, obj->size); in adfs_obj2dir()
248 de->newdiratts = obj->attr; in adfs_obj2dir()
256 __adfs_dir_get(struct adfs_dir *dir, int pos, struct object_info *obj) in __adfs_dir_get() argument
280 adfs_dir2obj(dir, obj, &de); in __adfs_dir_get()
286 __adfs_dir_put(struct adfs_dir *dir, int pos, struct object_info *obj) in __adfs_dir_put() argument
313 adfs_obj2dir(&de, obj); in __adfs_dir_put()
338 struct object_info obj; in adfs_dir_find_entry() local
340 if (!__adfs_dir_get(dir, pos, &obj)) in adfs_dir_find_entry()
343 if (obj.file_id == object_id) { in adfs_dir_find_entry()
380 adfs_f_getnext(struct adfs_dir *dir, struct object_info *obj) in adfs_f_getnext() argument
384 ret = __adfs_dir_get(dir, dir->pos, obj); in adfs_f_getnext()
392 adfs_f_update(struct adfs_dir *dir, struct object_info *obj) in adfs_f_update() argument
397 ret = adfs_dir_find_entry(dir, obj->file_id); in adfs_f_update()
403 __adfs_dir_put(dir, ret, obj); in adfs_f_update()