Searched refs:tmp_index (Results 1 – 2 of 2) sorted by relevance
325 int tmp_index = 0; in fat32_fill_shortname() local327 for (tmp_index = 0; tmp_index < min(8, dEntry->name_length); ++tmp_index) in fat32_fill_shortname()329 if (dEntry->name[tmp_index] == '.') in fat32_fill_shortname()331 if (fat32_check_char_available_in_short_name(dEntry->name[tmp_index], tmp_index)) in fat32_fill_shortname()332 target->DIR_Name[tmp_index] = dEntry->name[tmp_index]; in fat32_fill_shortname()334 target->DIR_Name[tmp_index] = 0x20; in fat32_fill_shortname()338 while (tmp_index < 8) in fat32_fill_shortname()341 target->DIR_Name[tmp_index] = 0x20; in fat32_fill_shortname()342 ++tmp_index; in fat32_fill_shortname()346 while (tmp_index < 11) in fat32_fill_shortname()[all …]
411 int tmp_index = -1; in do_open() local416 tmp_index = i; in do_open()423 if (tmp_index > 0) in do_open()426 path[tmp_index] = '\0'; in do_open()439 dentry = vfs_alloc_dentry(path_len - tmp_index); in do_open()441 dentry->name_length = path_len - tmp_index - 2; in do_open()444 strncpy(dentry->name, path + tmp_index + 1, dentry->name_length); in do_open()