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
28 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket()
35 const char *name, int namelen, in omfs_scan_list() argument
56 if (strncmp(oi->i_name, name, namelen) == 0) in omfs_scan_list()
68 const char *name, int namelen) in omfs_find_entry() argument
74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry()
81 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry()
115 int namelen = dentry->d_name.len; in omfs_add_link() local
123 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_add_link()
139 memcpy(oi->i_name, name, namelen); in omfs_add_link()
140 memset(oi->i_name + namelen, 0, OMFS_NAMELEN - namelen); in omfs_add_link()
161 int namelen = dentry->d_name.len; in omfs_delete_entry() local
170 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_delete_entry()
177 bh2 = omfs_scan_list(dir, block, name, namelen, &prev); in omfs_delete_entry()