Lines Matching refs:next
50 struct char_device_struct *next; member
72 for (cd = chrdevs[offset]; cd; cd = cd->next) in chrdev_show()
127 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region()
154 cd->next = *cp; in __register_chrdev_region()
171 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __unregister_chrdev_region()
178 *cp = cd->next; in __unregister_chrdev_region()
197 dev_t n, next; in register_chrdev_region() local
199 for (n = from; n < to; n = next) { in register_chrdev_region()
200 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
201 if (next > to) in register_chrdev_region()
202 next = to; in register_chrdev_region()
204 next - n, name); in register_chrdev_region()
211 for (n = from; n < to; n = next) { in register_chrdev_region()
212 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
213 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in register_chrdev_region()
310 dev_t n, next; in unregister_chrdev_region() local
312 for (n = from; n < to; n = next) { in unregister_chrdev_region()
313 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
314 if (next > to) in unregister_chrdev_region()
315 next = to; in unregister_chrdev_region()
316 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in unregister_chrdev_region()
421 inode = container_of(cdev->list.next, struct inode, i_devices); in cdev_purge()