Lines Matching full:de
176 struct adfs_direntry *de) in adfs_dir2obj() argument
181 if (de->dirobname[name_len] < ' ') in adfs_dir2obj()
184 obj->name[name_len] = de->dirobname[name_len]; in adfs_dir2obj()
188 obj->indaddr = adfs_readval(de->dirinddiscadd, 3); in adfs_dir2obj()
189 obj->loadaddr = adfs_readval(de->dirload, 4); in adfs_dir2obj()
190 obj->execaddr = adfs_readval(de->direxec, 4); in adfs_dir2obj()
191 obj->size = adfs_readval(de->dirlen, 4); in adfs_dir2obj()
192 obj->attr = de->newdiratts; in adfs_dir2obj()
201 adfs_obj2dir(struct adfs_direntry *de, struct object_info *obj) in adfs_obj2dir() argument
203 adfs_writeval(de->dirinddiscadd, 3, obj->indaddr); in adfs_obj2dir()
204 adfs_writeval(de->dirload, 4, obj->loadaddr); in adfs_obj2dir()
205 adfs_writeval(de->direxec, 4, obj->execaddr); in adfs_obj2dir()
206 adfs_writeval(de->dirlen, 4, obj->size); in adfs_obj2dir()
207 de->newdiratts = obj->attr; in adfs_obj2dir()
217 struct adfs_direntry de; in __adfs_dir_get() local
220 ret = adfs_dir_copyfrom(&de, dir, pos, 26); in __adfs_dir_get()
224 if (!de.dirobname[0]) in __adfs_dir_get()
227 adfs_dir2obj(dir, obj, &de); in __adfs_dir_get()
273 struct adfs_direntry de; in adfs_f_update() local
276 offset = 5 - (int)sizeof(de); in adfs_f_update()
279 offset += sizeof(de); in adfs_f_update()
280 ret = adfs_dir_copyfrom(&de, dir, offset, sizeof(de)); in adfs_f_update()
285 if (!de.dirobname[0]) { in adfs_f_update()
289 } while (adfs_readval(de.dirinddiscadd, 3) != obj->indaddr); in adfs_f_update()
292 adfs_obj2dir(&de, obj); in adfs_f_update()
295 return adfs_dir_copyto(dir, offset, &de, 26); in adfs_f_update()