Lines Matching refs:nr_slots

281 			  wchar_t **unicode, unsigned char *nr_slots)  in fat_parse_long()  argument
301 *nr_slots = slots; in fat_parse_long()
335 *nr_slots = 0; in fat_parse_long()
470 unsigned char nr_slots; in fat_search_long() local
481 nr_slots = 0; in fat_search_long()
490 &unicode, &nr_slots); in fat_search_long()
515 if (nr_slots) { in fat_search_long()
527 nr_slots++; /* include the de */ in fat_search_long()
528 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
529 sinfo->nr_slots = nr_slots; in fat_search_long()
561 unsigned char nr_slots; in __fat_readdir() local
593 nr_slots = 0; in __fat_readdir()
612 &unicode, &nr_slots); in __fat_readdir()
624 if (nr_slots) { in __fat_readdir()
658 ctx->pos = cpos - (nr_slots + 1) * sizeof(struct msdos_dir_entry); in __fat_readdir()
962 sinfo->nr_slots = 1; in fat_scan()
986 sinfo->nr_slots = 1; in fat_scan_logstart()
994 static int __fat_remove_entries(struct inode *dir, loff_t pos, int nr_slots) in __fat_remove_entries() argument
1001 while (nr_slots) { in __fat_remove_entries()
1008 orig_slots = nr_slots; in __fat_remove_entries()
1010 while (nr_slots && de < endp) { in __fat_remove_entries()
1013 nr_slots--; in __fat_remove_entries()
1023 pos += ((orig_slots - nr_slots) * sizeof(*de)) - sizeof(*de); in __fat_remove_entries()
1034 int err = 0, nr_slots; in fat_remove_entries() local
1040 nr_slots = sinfo->nr_slots; in fat_remove_entries()
1045 while (nr_slots && de >= (struct msdos_dir_entry *)bh->b_data) { in fat_remove_entries()
1048 nr_slots--; in fat_remove_entries()
1058 if (nr_slots) { in fat_remove_entries()
1064 err = __fat_remove_entries(dir, sinfo->slot_off, nr_slots); in fat_remove_entries()
1198 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_new_entries() argument
1214 size = nr_slots * sizeof(struct msdos_dir_entry); in fat_add_new_entries()
1281 int fat_add_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_entries() argument
1291 sinfo->nr_slots = nr_slots; in fat_add_entries()
1310 if (free_slots == nr_slots) in fat_add_entries()
1332 nr_slots -= free_slots; in fat_add_entries()
1341 int long_bhs = nr_bhs - (nr_slots == 0); in fat_add_entries()
1368 if (nr_slots) { in fat_add_entries()
1376 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, in fat_add_entries()