Lines Matching refs:baselen
335 int sz = 0, extlen, baselen, i, numtail_baselen, numtail2_baselen; in vfat_create_shortname() local
381 for (baselen = i = 0, p = base, ip = uname; i < sz; i++, ip++) { in vfat_create_shortname()
387 if (baselen < 2 && (baselen + chl) > 2) in vfat_create_shortname()
388 numtail2_baselen = baselen; in vfat_create_shortname()
389 if (baselen < 6 && (baselen + chl) > 6) in vfat_create_shortname()
390 numtail_baselen = baselen; in vfat_create_shortname()
393 baselen++; in vfat_create_shortname()
394 if (baselen >= 8) in vfat_create_shortname()
397 if (baselen >= 8) { in vfat_create_shortname()
403 if (baselen == 0) { in vfat_create_shortname()
431 base[baselen] = '\0'; in vfat_create_shortname()
443 memcpy(name_res, base, baselen); in vfat_create_shortname()
479 if (baselen > 6) { in vfat_create_shortname()
480 baselen = numtail_baselen; in vfat_create_shortname()
483 name_res[baselen] = '~'; in vfat_create_shortname()
485 name_res[baselen + 1] = i + '0'; in vfat_create_shortname()
492 if (baselen > 2) { in vfat_create_shortname()
493 baselen = numtail2_baselen; in vfat_create_shortname()
496 name_res[baselen + 4] = '~'; in vfat_create_shortname()
497 name_res[baselen + 5] = '1' + sz; in vfat_create_shortname()
500 memcpy(&name_res[baselen], buf, 4); in vfat_create_shortname()