Lines Matching refs:list

187     struct major_list *list;  in devfs_alloc_major()  local
189 list = (type == DEVFS_SPECIAL_CHR) ? &char_major_list : &block_major_list; in devfs_alloc_major()
190 spin_lock (&list->lock); in devfs_alloc_major()
191 major = find_first_zero_bit (list->bits, 256); in devfs_alloc_major()
192 if (major < 256) __set_bit (major, list->bits); in devfs_alloc_major()
194 spin_unlock (&list->lock); in devfs_alloc_major()
210 struct major_list *list; in devfs_dealloc_major() local
213 list = (type == DEVFS_SPECIAL_CHR) ? &char_major_list : &block_major_list; in devfs_dealloc_major()
214 spin_lock (&list->lock); in devfs_dealloc_major()
215 was_set = __test_and_clear_bit (major, list->bits); in devfs_dealloc_major()
216 spin_unlock (&list->lock); in devfs_dealloc_major()
254 struct device_list *list; in devfs_alloc_devnum() local
260 list = &char_list; in devfs_alloc_devnum()
265 list = &block_list; in devfs_alloc_devnum()
267 if (list->none_free) return NODEV; /* Fast test */ in devfs_alloc_devnum()
269 if (list->none_free) in devfs_alloc_devnum()
274 for (entry = list->first; entry != NULL; entry = entry->next) in devfs_alloc_devnum()
285 list->none_free = 1; in devfs_alloc_devnum()
292 list->none_free = 1; in devfs_alloc_devnum()
298 if (list->first == NULL) list->first = entry; in devfs_alloc_devnum()
299 else list->last->next = entry; in devfs_alloc_devnum()
300 list->last = entry; in devfs_alloc_devnum()
319 struct device_list *list; in devfs_dealloc_devnum() local
326 list = &char_list; in devfs_dealloc_devnum()
331 list = &block_list; in devfs_dealloc_devnum()
336 for (entry = list->first; entry != NULL; entry = entry->next) in devfs_dealloc_devnum()
342 if (was_set) list->none_free = 0; in devfs_dealloc_devnum()