Lines Matching refs:_dev
26 typedef struct resource * bus_alloc_resource_t(device_t _dev, device_t _child,
42 * @param _dev the parent device of @p _child
60 static __inline struct resource * BUS_ALLOC_RESOURCE(device_t _dev,
69 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_alloc_resource);
70 return ((bus_alloc_resource_t *) _m)(_dev, _child, _type, _rid, _start, _end, _count, _flags);
75 typedef int bus_child_pnpinfo_str_t(device_t _dev, device_t _child, char *_buf,
91 * @param _dev the parent device of @p _child
98 static __inline int BUS_CHILD_PNPINFO_STR(device_t _dev, device_t _child,
102 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_child_pnpinfo_str);
103 return ((bus_child_pnpinfo_str_t *) _m)(_dev, _child, _buf, _buflen);
109 typedef int bus_child_location_str_t(device_t _dev, device_t _child, char *_buf,
124 * @param _dev the parent device of @p _child
131 static __inline int BUS_CHILD_LOCATION_STR(device_t _dev, device_t _child,
135 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_child_location_str);
136 return ((bus_child_location_str_t *) _m)(_dev, _child, _buf, _buflen);
142 typedef int bus_print_child_t(device_t _dev, device_t _child);
153 * @param _dev the device whose child is being printed
159 static __inline int BUS_PRINT_CHILD(device_t _dev, device_t _child)
162 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_print_child);
163 return ((bus_print_child_t *) _m)(_dev, _child);
169 typedef void bus_probe_nomatch_t(device_t _dev, device_t _child);
176 * @param _dev the device whose child was being probed
180 static __inline void BUS_PROBE_NOMATCH(device_t _dev, device_t _child)
183 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_probe_nomatch);
184 ((bus_probe_nomatch_t *) _m)(_dev, _child);
190 typedef int bus_read_ivar_t(device_t _dev, device_t _child, int _index,
208 * @param _dev the device whose child was being examined
217 * _dev
220 static __inline int BUS_READ_IVAR(device_t _dev, device_t _child, int _index,
224 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_read_ivar);
225 return ((bus_read_ivar_t *) _m)(_dev, _child, _index, _result);
231 typedef int bus_write_ivar_t(device_t _dev, device_t _child, int _indx,
238 * @param _dev the device whose child was being updated
246 * _dev
251 static __inline int BUS_WRITE_IVAR(device_t _dev, device_t _child, int _indx,
255 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_write_ivar);
256 return ((bus_write_ivar_t *) _m)(_dev, _child, _indx, _value);
262 typedef void bus_child_deleted_t(device_t _dev, device_t _child);
269 * @param _dev the device whose child is being deleted
273 static __inline void BUS_CHILD_DELETED(device_t _dev, device_t _child)
276 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_child_deleted);
277 ((bus_child_deleted_t *) _m)(_dev, _child);
283 typedef void bus_child_detached_t(device_t _dev, device_t _child);
290 * @param _dev the device whose child changed state
294 static __inline void BUS_CHILD_DETACHED(device_t _dev, device_t _child)
297 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_child_detached);
298 ((bus_child_detached_t *) _m)(_dev, _child);
304 typedef void bus_driver_added_t(device_t _dev, driver_t *_driver);
312 * @param _dev the device whose devclass had a new driver
317 static __inline void BUS_DRIVER_ADDED(device_t _dev, driver_t *_driver)
320 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_driver_added);
321 ((bus_driver_added_t *) _m)(_dev, _driver);
327 typedef device_t bus_add_child_t(device_t _dev, u_int _order, const char *_name,
339 * @param _dev the bus device which will be the parent of the
342 * children of @p _dev - devices created using
344 * _dev's list of children
351 static __inline device_t BUS_ADD_CHILD(device_t _dev, u_int _order,
355 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_add_child);
356 return ((bus_add_child_t *) _m)(_dev, _order, _name, _unit);
362 typedef int bus_rescan_t(device_t _dev);
370 * @param _dev the bus device
373 static __inline int BUS_RESCAN(device_t _dev)
376 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_rescan);
377 return ((bus_rescan_t *) _m)(_dev);
383 typedef int bus_child_present_t(device_t _dev, device_t _child);
396 * @param _dev the parent device of @p _child
400 static __inline int BUS_CHILD_PRESENT(device_t _dev, device_t _child)
403 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_child_present);
404 return ((bus_child_present_t *) _m)(_dev, _child);
412 typedef void bus_hinted_child_t(device_t _dev, const char *_dname, int _dunit);
425 * @param _dev the bus device
430 static __inline void BUS_HINTED_CHILD(device_t _dev, const char *_dname,
434 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_hinted_child);
435 ((bus_hinted_child_t *) _m)(_dev, _dname, _dunit);
443 typedef void bus_hint_device_unit_t(device_t _dev, device_t _child,
448 * @param _dev the parent device of @p _child
454 static __inline void BUS_HINT_DEVICE_UNIT(device_t _dev, device_t _child,
458 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_hint_device_unit);
459 ((bus_hint_device_unit_t *) _m)(_dev, _child, _name, _unitp);
465 typedef void bus_new_pass_t(device_t _dev);
469 * @param _dev the bus device
472 static __inline void BUS_NEW_PASS(device_t _dev)
475 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_new_pass);
476 ((bus_new_pass_t *) _m)(_dev);
482 typedef int bus_suspend_child_t(device_t _dev, device_t _child);
486 * @param _dev the parent device of @p _child
490 static __inline int BUS_SUSPEND_CHILD(device_t _dev, device_t _child)
493 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_suspend_child);
494 return ((bus_suspend_child_t *) _m)(_dev, _child);
500 typedef int bus_resume_child_t(device_t _dev, device_t _child);
504 * @param _dev the parent device of @p _child
508 static __inline int BUS_RESUME_CHILD(device_t _dev, device_t _child)
511 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_resume_child);
512 return ((bus_resume_child_t *) _m)(_dev, _child);
518 typedef int bus_get_domain_t(device_t _dev, device_t _child, int *_domain);
522 * @param _dev the bus device
527 static __inline int BUS_GET_DOMAIN(device_t _dev, device_t _child, int *_domain)
530 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_get_domain);
531 return ((bus_get_domain_t *) _m)(_dev, _child, _domain);
538 typedef int bus_reset_prepare_t(device_t _dev, device_t _child);
549 * @param _dev the bus device
553 static __inline int BUS_RESET_PREPARE(device_t _dev, device_t _child)
556 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_reset_prepare);
557 return ((bus_reset_prepare_t *) _m)(_dev, _child);
563 typedef int bus_reset_post_t(device_t _dev, device_t _child);
570 * @param _dev the bus device
574 static __inline int BUS_RESET_POST(device_t _dev, device_t _child)
577 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_reset_post);
578 return ((bus_reset_post_t *) _m)(_dev, _child);
584 typedef int bus_reset_child_t(device_t _dev, device_t _child, int _flags);
588 * @param _dev the bus device
593 static __inline int BUS_RESET_CHILD(device_t _dev, device_t _child, int _flags)
596 KOBJOPLOOKUP(((kobj_t)_dev)->ops,bus_reset_child);
597 return ((bus_reset_child_t *) _m)(_dev, _child, _flags);