Lines Matching refs:next
32 struct char_device_struct *next; member
54 for (cd = chrdevs[offset]; cd; cd = cd->next) in chrdev_show()
112 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region()
139 cd->next = *cp; in __register_chrdev_region()
156 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __unregister_chrdev_region()
163 *cp = cd->next; in __unregister_chrdev_region()
182 dev_t n, next; in register_chrdev_region() local
184 for (n = from; n < to; n = next) { in register_chrdev_region()
185 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
186 if (next > to) in register_chrdev_region()
187 next = to; in register_chrdev_region()
189 next - n, name); in register_chrdev_region()
196 for (n = from; n < to; n = next) { in register_chrdev_region()
197 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
198 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in register_chrdev_region()
292 dev_t n, next; in unregister_chrdev_region() local
294 for (n = from; n < to; n = next) { in unregister_chrdev_region()
295 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
296 if (next > to) in unregister_chrdev_region()
297 next = to; in unregister_chrdev_region()
298 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in unregister_chrdev_region()
418 inode = container_of(cdev->list.next, struct inode, i_devices); in cdev_purge()