Lines Matching refs:next
32 struct char_device_struct *next; member
54 for (cd = chrdevs[offset]; cd; cd = cd->next) in chrdev_show()
108 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __register_chrdev_region()
135 cd->next = *cp; in __register_chrdev_region()
152 for (cp = &chrdevs[i]; *cp; cp = &(*cp)->next) in __unregister_chrdev_region()
159 *cp = cd->next; in __unregister_chrdev_region()
178 dev_t n, next; in register_chrdev_region() local
180 for (n = from; n < to; n = next) { in register_chrdev_region()
181 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
182 if (next > to) in register_chrdev_region()
183 next = to; in register_chrdev_region()
185 next - n, name); in register_chrdev_region()
192 for (n = from; n < to; n = next) { in register_chrdev_region()
193 next = MKDEV(MAJOR(n)+1, 0); in register_chrdev_region()
194 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in register_chrdev_region()
288 dev_t n, next; in unregister_chrdev_region() local
290 for (n = from; n < to; n = next) { in unregister_chrdev_region()
291 next = MKDEV(MAJOR(n)+1, 0); in unregister_chrdev_region()
292 if (next > to) in unregister_chrdev_region()
293 next = to; in unregister_chrdev_region()
294 kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n)); in unregister_chrdev_region()
413 inode = container_of(cdev->list.next, struct inode, i_devices); in cdev_purge()