Lines Matching refs:tmp_index
325 int tmp_index = 0; in fat32_fill_shortname() local
327 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()
349 target->DIR_Name[tmp_index] = 0x20; in fat32_fill_shortname()
350 ++tmp_index; in fat32_fill_shortname()