Lines Matching refs:next

35 	struct char_device_struct *next;  member
56 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show()
77 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major()
134 for (curr = chrdevs[i]; curr; prev = curr, curr = curr->next) { in __register_chrdev_region()
156 cd->next = curr; in __register_chrdev_region()
159 cd->next = prev->next; in __register_chrdev_region()
160 prev->next = cd; in __register_chrdev_region()
178 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __unregister_chrdev_region()
185 *cp = cd->next; in __unregister_chrdev_region()
204 dev_t n, next; in register_chrdev_region() local
206 for (n = from; n < to; n = next) { in register_chrdev_region()
207 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
208 if (next > to) in register_chrdev_region()
209 next = to; in register_chrdev_region()
211 next - n, name); in register_chrdev_region()
218 for (n = from; n < to; n = next) { in register_chrdev_region()
219 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
220 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in register_chrdev_region()
314 dev_t n, next; in unregister_chrdev_region() local
316 for (n = from; n < to; n = next) { in unregister_chrdev_region()
317 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
318 if (next > to) in unregister_chrdev_region()
319 next = to; in unregister_chrdev_region()
320 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in unregister_chrdev_region()
440 inode = container_of(cdev->list.next, struct inode, i_devices); in cdev_purge()