Lines Matching refs:name_len
21 …nt __fat32_search_long_short(struct vfs_index_node_t *parent_inode, const char *name, int name_len,
56 …nt __fat32_search_long_short(struct vfs_index_node_t *parent_inode, const char *name, int name_len, in __fat32_search_long_short() argument
105 if (js >= name_len && (tmp_ldEntry->LDIR_Name1[x] == 0xffff)) in __fat32_search_long_short()
107 else if (js > name_len || in __fat32_search_long_short()
115 if (js >= name_len && (tmp_ldEntry->LDIR_Name2[x] == 0xffff)) in __fat32_search_long_short()
117 else if (js > name_len || in __fat32_search_long_short()
125 if (js >= name_len && (tmp_ldEntry->LDIR_Name3[x] == 0xffff)) in __fat32_search_long_short()
127 else if (js > name_len || in __fat32_search_long_short()
132 if (js >= name_len) // 找到需要的目录项,返回 in __fat32_search_long_short()
165 if (js < name_len && tmp_dEntry->DIR_Name[x] == name[js]) // 当前位正确匹配 in __fat32_search_long_short()
170 else if (js == name_len) in __fat32_search_long_short()
182 if (js < name_len && (tmp_dEntry->DIR_Name[x] + 32 == name[js])) in __fat32_search_long_short()
192 if (js < name_len && tmp_dEntry->DIR_Name[x] == name[js]) in __fat32_search_long_short()
202 if (js < name_len && tmp_dEntry->DIR_Name[x] == name[js]) in __fat32_search_long_short()
217 if (js > name_len) in __fat32_search_long_short()
272 if (js > name_len) in __fat32_search_long_short()
1183 int name_len = 0; in fat32_readdir() local
1206 name_len = 0; in fat32_readdir()
1242 name_len = 0; in fat32_readdir()
1250 dir_name[name_len++] = (char)long_dentry->LDIR_Name1[k]; in fat32_readdir()
1257 dir_name[name_len++] = (char)long_dentry->LDIR_Name2[k]; in fat32_readdir()
1264 dir_name[name_len++] = (char)long_dentry->LDIR_Name3[k]; in fat32_readdir()
1277 name_len = 0; in fat32_readdir()
1286 dir_name[name_len++] = dentry->DIR_Name[j] + 32; in fat32_readdir()
1288 dir_name[name_len++] = dentry->DIR_Name[j]; in fat32_readdir()
1299 dir_name[name_len++] = '.'; in fat32_readdir()
1309 dir_name[name_len++] = dentry->DIR_Name[j] + 32; in fat32_readdir()
1311 dir_name[name_len++] = dentry->DIR_Name[j]; in fat32_readdir()
1315 dir_name[--name_len] = '\0'; in fat32_readdir()
1339 return filler(dirent, 0, dir_name, name_len, dentry_type, 0); in fat32_readdir()