Home
last modified time | relevance | path

Searched refs:cnid (Results 1 – 21 of 21) sorted by relevance

/linux/fs/hfsplus/
H A Dattributes.c40 k1_cnid = k1->attr.cnid; in hfsplus_attr_bin_cmp_key()
41 k2_cnid = k2->attr.cnid; in hfsplus_attr_bin_cmp_key()
51 u32 cnid, const char *name) in hfsplus_attr_build_key() argument
56 key->attr.cnid = cpu_to_be32(cnid); in hfsplus_attr_build_key()
97 u32 cnid, const void *value, size_t size) in hfsplus_attr_build_record() argument
137 int hfsplus_find_attr(struct super_block *sb, u32 cnid, in hfsplus_find_attr() argument
142 hfs_dbg(ATTR_MOD, "find_attr: %s,%d\n", name ? name : NULL, cnid); in hfsplus_find_attr()
150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr()
157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr()
266 static int __hfsplus_delete_attr(struct inode *inode, u32 cnid, in __hfsplus_delete_attr() argument
[all …]
H A Ddir.c23 struct inode *inode, u32 cnid) in hfsplus_instantiate() argument
25 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_instantiate()
38 u32 cnid, linkid = 0; in hfsplus_lookup() local
68 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup()
69 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
75 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup()
95 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_lookup()
98 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
111 dentry->d_fsdata = (void *)(unsigned long)cnid; in hfsplus_lookup()
118 inode = hfsplus_iget(dir->i_sb, cnid); in hfsplus_lookup()
[all …]
H A Dbnode.c65 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_read_key()
294 __be32 cnid; in hfs_bnode_dump() local
311 node->tree->cnid == HFSPLUS_ATTR_CNID) in hfs_bnode_dump()
316 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
317 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
332 __be32 cnid; in hfs_bnode_unlink() local
340 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
341 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
352 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
353 hfs_bnode_write(tmp, &cnid, in hfs_bnode_unlink()
[all …]
H A Dcatalog.c106 u32 cnid, struct inode *inode) in hfsplus_cat_build_record() argument
136 file->id = cpu_to_be32(cnid); in hfsplus_cat_build_record()
142 if (cnid == inode->i_ino) { in hfsplus_cat_build_record()
194 int hfsplus_find_cat(struct super_block *sb, u32 cnid, in hfsplus_find_cat() argument
201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat()
253 int hfsplus_create_cat(u32 cnid, struct inode *dir, in hfsplus_create_cat() argument
263 str->name, cnid, inode->i_nlink); in hfsplus_create_cat()
276 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
300 entry_size = hfsplus_cat_build_record(&entry, cnid, inode); in hfsplus_create_cat()
322 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat()
[all …]
H A Dbrec.c41 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen()
70 __be32 cnid; in hfs_brec_insert() local
154 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
155 entry = &cnid; in hfs_brec_insert()
156 entry_len = sizeof(cnid); in hfs_brec_insert()
166 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_insert()
382 (tree->cnid == HFSPLUS_ATTR_CNID)) in hfs_brec_update_parent()
430 __be32 cnid; in hfs_brec_update_parent() local
439 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
442 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
[all …]
H A Dbfind.c27 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
38 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
52 if (bnode->tree->cnid == HFSPLUS_EXT_CNID) { in hfs_find_1st_rec_by_cnid()
53 cur_cnid = fd->key->ext.cnid; in hfs_find_1st_rec_by_cnid()
54 search_cnid = fd->search_key->ext.cnid; in hfs_find_1st_rec_by_cnid()
55 } else if (bnode->tree->cnid == HFSPLUS_CAT_CNID) { in hfs_find_1st_rec_by_cnid()
58 } else if (bnode->tree->cnid == HFSPLUS_ATTR_CNID) { in hfs_find_1st_rec_by_cnid()
59 cur_cnid = fd->key->attr.cnid; in hfs_find_1st_rec_by_cnid()
60 search_cnid = fd->search_key->attr.cnid; in hfs_find_1st_rec_by_cnid()
H A Dhfsplus_fs.h78 u32 cnid; member
369 u32 cnid, const char *name);
372 int hfsplus_find_attr(struct super_block *sb, u32 cnid, const char *name,
378 int hfsplus_delete_all_attrs(struct inode *dir, u32 cnid);
408 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid);
446 int hfsplus_find_cat(struct super_block *sb, u32 cnid,
448 int hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str,
450 int hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str);
451 int hfsplus_rename_cat(u32 cnid, struct inode *src_dir, const struct qstr *src_name,
464 int hfsplus_free_fork(struct super_block *sb, u32 cnid,
[all …]
H A Dextents.c26 k1id = k1->ext.cnid; in hfsplus_ext_cmp_key()
27 k2id = k2->ext.cnid; in hfsplus_ext_cmp_key()
41 static void hfsplus_ext_build_key(hfsplus_btree_key *key, u32 cnid, in hfsplus_ext_build_key() argument
45 key->ext.cnid = cpu_to_be32(cnid); in hfsplus_ext_build_key()
158 u32 cnid, u32 block, u8 type) in __hfsplus_ext_read_extent() argument
162 hfsplus_ext_build_key(fd->search_key, cnid, block, type); in __hfsplus_ext_read_extent()
163 fd->key->ext.cnid = 0; in __hfsplus_ext_read_extent()
167 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
396 int hfsplus_free_fork(struct super_block *sb, u32 cnid, in hfsplus_free_fork() argument
422 res = __hfsplus_ext_read_extent(&fd, ext_entry, cnid, in hfsplus_free_fork()
H A Dioctl.c34 u32 cnid = (unsigned long)dentry->d_fsdata; in hfsplus_ioctl_bless() local
50 vh->finder_info[1] = bvh->finder_info[1] = cpu_to_be32(cnid); in hfsplus_ioctl_bless()
H A Dbtree.c149 tree->cnid = id; in hfs_btree_open()
273 node->tree->cnid, node->this, in hfs_btree_close()
318 __be32 cnid; in hfs_bmap_new_bmap() local
326 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
327 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
H A Dhfsplus_raw.h347 hfsplus_cnid cnid; member
364 hfsplus_cnid cnid; member
H A Dxattr.c730 if (be32_to_cpu(attr_key.cnid) != inode->i_ino) in hfsplus_listxattr()
/linux/fs/hfs/
H A Dbnode.c145 __be32 cnid; in hfs_bnode_dump() local
167 hfs_bnode_read(node, &cnid, key_off + tmp, 4); in hfs_bnode_dump()
168 hfs_dbg_cont(BNODE_MOD, ",%d)", be32_to_cpu(cnid)); in hfs_bnode_dump()
183 __be32 cnid; in hfs_bnode_unlink() local
191 cnid = cpu_to_be32(tmp->next); in hfs_bnode_unlink()
192 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bnode_unlink()
202 cnid = cpu_to_be32(tmp->prev); in hfs_bnode_unlink()
203 hfs_bnode_write(tmp, &cnid, offsetof(struct hfs_bnode_desc, prev), 4); in hfs_bnode_unlink()
226 struct hfs_bnode *hfs_bnode_findhash(struct hfs_btree *tree, u32 cnid) in hfs_bnode_findhash() argument
230 if (cnid >= tree->node_count) { in hfs_bnode_findhash()
[all …]
H A Dcatalog.c36 static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode) in hfs_cat_build_record() argument
43 rec->dir.DirID = cpu_to_be32(cnid); in hfs_cat_build_record()
55 rec->file.FlNum = cpu_to_be32(cnid); in hfs_cat_build_record()
82 int hfs_cat_create(u32 cnid, struct inode *dir, const struct qstr *str, struct inode *inode) in hfs_cat_create() argument
91 str->name, cnid, inode->i_nlink); in hfs_cat_create()
108 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
123 entry_size = hfs_cat_build_record(&entry, cnid, inode); in hfs_cat_create()
142 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create()
187 int hfs_cat_find_brec(struct super_block *sb, u32 cnid, in hfs_cat_find_brec() argument
193 hfs_cat_build_key(sb, fd->search_key, cnid, NULL); in hfs_cat_find_brec()
[all …]
H A Dbrec.c72 __be32 cnid; in hfs_brec_insert() local
154 cnid = cpu_to_be32(new_node->this); in hfs_brec_insert()
155 entry = &cnid; in hfs_brec_insert()
156 entry_len = sizeof(cnid); in hfs_brec_insert()
426 __be32 cnid; in hfs_brec_update_parent() local
435 cnid = cpu_to_be32(new_node->this); in hfs_brec_update_parent()
438 hfs_brec_insert(fd, &cnid, sizeof(cnid)); in hfs_brec_update_parent()
463 __be32 cnid; in hfs_btree_inc_height() local
517 cnid = cpu_to_be32(node->this); in hfs_btree_inc_height()
518 hfs_bnode_write(new_node, &cnid, 14 + key_size, 4); in hfs_btree_inc_height()
H A Dbtree.c35 tree->cnid = id; in hfs_btree_open()
152 node->tree->cnid, node->this, in hfs_btree_close()
196 __be32 cnid; in hfs_bmap_new_bmap() local
206 cnid = cpu_to_be32(idx); in hfs_bmap_new_bmap()
207 hfs_bnode_write(prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); in hfs_bmap_new_bmap()
H A Dextent.c21 static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type) in hfs_ext_build_key() argument
25 key->ext.FNum = cpu_to_be32(cnid); in hfs_ext_build_key()
151 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument
155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent()
291 u32 cnid = be32_to_cpu(file->FlNum); in hfs_free_fork() local
320 res = __hfs_ext_read_extent(&fd, extent, cnid, total_blocks, type); in hfs_free_fork()
H A Dbfind.c27 tree->cnid, __builtin_return_address(0)); in hfs_find_init()
28 switch (tree->cnid) { in hfs_find_init()
49 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit()
H A Dinode.c391 u32 cnid; in hfs_iget() local
395 cnid = be32_to_cpu(rec->dir.DirID); in hfs_iget()
398 cnid = be32_to_cpu(rec->file.FlNum); in hfs_iget()
403 inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data); in hfs_iget()
H A Dbtree.h29 u32 cnid; member
/linux/sound/pci/hda/
H A Dhda_local.h167 #define snd_hda_create_spdif_out_ctls(codec, anid, cnid) \ argument
168 snd_hda_create_dig_out_ctls(codec, anid, cnid, HDA_PCM_TYPE_SPDIF)