• Home
  • Raw
  • Download

Lines Matching refs:rec

36 static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode)  in hfs_cat_build_record()  argument
40 memset(rec, 0, sizeof(*rec)); in hfs_cat_build_record()
42 rec->type = HFS_CDR_DIR; in hfs_cat_build_record()
43 rec->dir.DirID = cpu_to_be32(cnid); in hfs_cat_build_record()
44 rec->dir.CrDat = mtime; in hfs_cat_build_record()
45 rec->dir.MdDat = mtime; in hfs_cat_build_record()
46 rec->dir.BkDat = 0; in hfs_cat_build_record()
47 rec->dir.UsrInfo.frView = cpu_to_be16(0xff); in hfs_cat_build_record()
51 rec->type = HFS_CDR_FIL; in hfs_cat_build_record()
52 rec->file.Flags = HFS_FIL_USED | HFS_FIL_THD; in hfs_cat_build_record()
54 rec->file.Flags |= HFS_FIL_LOCK; in hfs_cat_build_record()
55 rec->file.FlNum = cpu_to_be32(cnid); in hfs_cat_build_record()
56 rec->file.CrDat = mtime; in hfs_cat_build_record()
57 rec->file.MdDat = mtime; in hfs_cat_build_record()
58 rec->file.BkDat = 0; in hfs_cat_build_record()
59 rec->file.UsrWds.fdType = HFS_SB(inode->i_sb)->s_type; in hfs_cat_build_record()
60 rec->file.UsrWds.fdCreator = HFS_SB(inode->i_sb)->s_creator; in hfs_cat_build_record()
66 hfs_cat_rec *rec, int type, in hfs_cat_build_thread() argument
69 rec->type = type; in hfs_cat_build_thread()
70 memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); in hfs_cat_build_thread()
71 rec->thread.ParID = cpu_to_be32(parentid); in hfs_cat_build_thread()
72 hfs_asc2mac(sb, &rec->thread.CName, name); in hfs_cat_build_thread()
190 hfs_cat_rec rec; in hfs_cat_find_brec() local
194 res = hfs_brec_read(fd, &rec, sizeof(rec)); in hfs_cat_find_brec()
198 type = rec.type; in hfs_cat_find_brec()
204 fd->search_key->cat.ParID = rec.thread.ParID; in hfs_cat_find_brec()
205 len = fd->search_key->cat.CName.len = rec.thread.CName.len; in hfs_cat_find_brec()
210 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); in hfs_cat_find_brec()