• Home
  • Raw
  • Download

Lines Matching refs:nr_slots

281 			  wchar_t **unicode, unsigned char *nr_slots)  in fat_parse_long()  argument
302 *nr_slots = slots; in fat_parse_long()
336 *nr_slots = 0; in fat_parse_long()
469 unsigned char nr_slots; in fat_search_long() local
480 nr_slots = 0; in fat_search_long()
489 &unicode, &nr_slots); in fat_search_long()
514 if (nr_slots) { in fat_search_long()
526 nr_slots++; /* include the de */ in fat_search_long()
527 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
528 sinfo->nr_slots = nr_slots; in fat_search_long()
560 unsigned char nr_slots; in __fat_readdir() local
592 nr_slots = 0; in __fat_readdir()
611 &unicode, &nr_slots); in __fat_readdir()
623 if (nr_slots) { in __fat_readdir()
657 ctx->pos = cpos - (nr_slots + 1) * sizeof(struct msdos_dir_entry); in __fat_readdir()
965 sinfo->nr_slots = 1; in fat_scan()
989 sinfo->nr_slots = 1; in fat_scan_logstart()
997 static int __fat_remove_entries(struct inode *dir, loff_t pos, int nr_slots) in __fat_remove_entries() argument
1004 while (nr_slots) { in __fat_remove_entries()
1011 orig_slots = nr_slots; in __fat_remove_entries()
1013 while (nr_slots && de < endp) { in __fat_remove_entries()
1016 nr_slots--; in __fat_remove_entries()
1026 pos += ((orig_slots - nr_slots) * sizeof(*de)) - sizeof(*de); in __fat_remove_entries()
1037 int err = 0, nr_slots; in fat_remove_entries() local
1043 nr_slots = sinfo->nr_slots; in fat_remove_entries()
1048 while (nr_slots && de >= (struct msdos_dir_entry *)bh->b_data) { in fat_remove_entries()
1051 nr_slots--; in fat_remove_entries()
1061 if (nr_slots) { in fat_remove_entries()
1067 err = __fat_remove_entries(dir, sinfo->slot_off, nr_slots); in fat_remove_entries()
1195 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_new_entries() argument
1211 size = nr_slots * sizeof(struct msdos_dir_entry); in fat_add_new_entries()
1275 int fat_add_entries(struct inode *dir, void *slots, int nr_slots, in fat_add_entries() argument
1285 sinfo->nr_slots = nr_slots; in fat_add_entries()
1304 if (free_slots == nr_slots) in fat_add_entries()
1326 nr_slots -= free_slots; in fat_add_entries()
1335 int long_bhs = nr_bhs - (nr_slots == 0); in fat_add_entries()
1362 if (nr_slots) { in fat_add_entries()
1370 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, in fat_add_entries()