Lines Matching refs:namelen
12 static int omfs_hash(const char *name, int namelen, int mod) in omfs_hash() argument
15 for (i = 0; i < namelen; i++) in omfs_hash()
25 const char *name, int namelen, int *ofs) in omfs_get_bucket() argument
29 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket()
36 const char *name, int namelen, in omfs_scan_list() argument
58 if (strncmp(oi->i_name, name, namelen) == 0) in omfs_scan_list()
70 const char *name, int namelen) in omfs_find_entry() argument
76 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry()
83 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry()
118 int namelen = dentry->d_name.len; in omfs_add_link() local
126 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_add_link()
142 memcpy(oi->i_name, name, namelen); in omfs_add_link()
143 memset(oi->i_name + namelen, 0, OMFS_NAMELEN - namelen); in omfs_add_link()
164 int namelen = dentry->d_name.len; in omfs_delete_entry() local
173 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_delete_entry()
180 bh2 = omfs_scan_list(dir, block, name, namelen, &prev); in omfs_delete_entry()