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