Lines Matching defs:dh
289 lfs_dir_nameptr(const STRUCT_LFS *fs, LFS_DIRHEADER *dh)
292 return (char *)(&dh->u_64 + 1);
294 return (char *)(&dh->u_32 + 1);
299 lfs_dir_getino(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh)
302 return LFS_SWAP_uint64_t(fs, dh->u_64.dh_ino);
304 return LFS_SWAP_uint32_t(fs, dh->u_32.dh_ino);
309 lfs_dir_getreclen(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh)
312 return LFS_SWAP_uint16_t(fs, dh->u_64.dh_reclen);
314 return LFS_SWAP_uint16_t(fs, dh->u_32.dh_reclen);
319 lfs_dir_gettype(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh)
323 return dh->u_64.dh_type;
327 return dh->u_32.dh_type;
332 lfs_dir_getnamlen(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh)
336 return dh->u_64.dh_namlen;
339 return dh->u_32.dh_type;
341 return dh->u_32.dh_namlen;
346 lfs_dir_setino(STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint64_t ino)
349 dh->u_64.dh_ino = LFS_SWAP_uint64_t(fs, ino);
351 dh->u_32.dh_ino = LFS_SWAP_uint32_t(fs, ino);
356 lfs_dir_setreclen(STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint16_t reclen)
359 dh->u_64.dh_reclen = LFS_SWAP_uint16_t(fs, reclen);
361 dh->u_32.dh_reclen = LFS_SWAP_uint16_t(fs, reclen);
366 lfs_dir_settype(const STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint8_t type)
370 dh->u_64.dh_type = type;
375 dh->u_32.dh_type = type;
380 lfs_dir_setnamlen(const STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint8_t namlen)
384 dh->u_64.dh_namlen = namlen;
387 dh->u_32.dh_type = namlen;
389 dh->u_32.dh_namlen = namlen;