Searched refs:adummy_dev (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/atm/
H A Dadummy.c31 #define ADUMMY_DEV(dev) ((struct adummy_dev *) (dev)->dev_data)
33 struct adummy_dev { struct
145 struct adummy_dev *adummy_dev; adummy_init() local
150 adummy_dev = kzalloc(sizeof(struct adummy_dev), adummy_init()
152 if (!adummy_dev) { adummy_init()
164 adummy_dev->atm_dev = atm_dev; adummy_init()
165 atm_dev->dev_data = adummy_dev; adummy_init()
176 list_add(&adummy_dev->entry, &adummy_devs); adummy_init()
183 kfree(adummy_dev); adummy_init()
189 struct adummy_dev *adummy_dev, *next; adummy_cleanup() local
191 list_for_each_entry_safe(adummy_dev, next, &adummy_devs, entry) { adummy_cleanup()
192 atm_dev_deregister(adummy_dev->atm_dev); adummy_cleanup()
193 kfree(adummy_dev); adummy_cleanup()

Completed in 100 milliseconds