Lines Matching refs:adummy_dev
32 #define ADUMMY_DEV(dev) ((struct adummy_dev *) (dev)->dev_data)
34 struct adummy_dev { struct
146 struct adummy_dev *adummy_dev; in adummy_init() local
151 adummy_dev = kzalloc(sizeof(struct adummy_dev), in adummy_init()
153 if (!adummy_dev) { in adummy_init()
165 adummy_dev->atm_dev = atm_dev; in adummy_init()
166 atm_dev->dev_data = adummy_dev; in adummy_init()
177 list_add(&adummy_dev->entry, &adummy_devs); in adummy_init()
184 kfree(adummy_dev); in adummy_init()
190 struct adummy_dev *adummy_dev, *next; in adummy_cleanup() local
192 list_for_each_entry_safe(adummy_dev, next, &adummy_devs, entry) { in adummy_cleanup()
193 atm_dev_deregister(adummy_dev->atm_dev); in adummy_cleanup()
194 kfree(adummy_dev); in adummy_cleanup()