Lines Matching defs:dev
29 typedef int device_probe_t(device_t dev);
72 * foo_probe(device_t dev)
74 * if (pci_get_vendor(dev) == FOOVENDOR &&
75 * pci_get_device(dev) == FOODEVICE) {
76 * device_set_desc(dev, "Foo device");
90 * @param dev the device to probe
104 static __inline int DEVICE_PROBE(device_t dev)
107 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_probe);
108 return ((device_probe_t *) _m)(dev);
151 typedef int device_attach_t(device_t dev);
167 * @param dev the device to probe
176 static __inline int DEVICE_ATTACH(device_t dev)
179 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_attach);
180 return ((device_attach_t *) _m)(dev);
186 typedef int device_detach_t(device_t dev);
201 * @param dev the device to detach
210 static __inline int DEVICE_DETACH(device_t dev)
213 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_detach);
214 return ((device_detach_t *) _m)(dev);
220 typedef int device_shutdown_t(device_t dev);
236 static __inline int DEVICE_SHUTDOWN(device_t dev)
239 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_shutdown);
240 return ((device_shutdown_t *) _m)(dev);
246 typedef int device_suspend_t(device_t dev);
262 * @param dev the device being suspended
271 static __inline int DEVICE_SUSPEND(device_t dev)
274 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_suspend);
275 return ((device_suspend_t *) _m)(dev);
281 typedef int device_resume_t(device_t dev);
292 * @param dev the device being resumed
301 static __inline int DEVICE_RESUME(device_t dev)
304 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_resume);
305 return ((device_resume_t *) _m)(dev);
311 typedef int device_quiesce_t(device_t dev);
326 * @param dev the device being quiesced
335 static __inline int DEVICE_QUIESCE(device_t dev)
338 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_quiesce);
339 return ((device_quiesce_t *) _m)(dev);
345 typedef void * device_register_t(device_t dev);
357 * @param dev the device for which handlers are being registered
364 static __inline void * DEVICE_REGISTER(device_t dev)
367 KOBJOPLOOKUP(((kobj_t)dev)->ops,device_register);
368 return ((device_register_t *) _m)(dev);