Lines Matching defs:dev

28 __FBSDID("$FreeBSD: stable/11/sys/dev/ntb/ntb.c 355152 2019-11-28 00:41:42Z mav $");
45 device_t dev;
62 ntb_register_device(device_t dev)
64 struct ntb_child **cpp = device_get_softc(dev);
72 mwt = NTB_MW_COUNT(dev);
74 spadt = NTB_SPAD_COUNT(dev);
76 dbt = flsll(NTB_DB_VALID_MASK(dev));
78 device_printf(dev, "%d memory windows, %d scratchpads, "
81 snprintf(buf, sizeof(buf), "hint.%s.%d.config", device_get_name(dev),
82 device_get_unit(dev));
98 device_printf(dev, "Not enough resources for config\n");
112 nc->dev = device_add_child(dev, name, -1);
113 if (nc->dev == NULL) {
114 ntb_unregister_device(dev);
117 device_set_ivars(nc->dev, nc);
122 device_printf(dev, "%d \"%s\":", i, name);
147 bus_generic_attach(dev);
152 ntb_unregister_device(device_t dev)
154 struct ntb_child **cpp = device_get_softc(dev);
160 error = device_delete_child(dev, nc->dev);
170 ntb_child_location_str(device_t dev, device_t child, char *buf,
180 ntb_print_child(device_t dev, device_t child)
185 retval = bus_print_child_header(dev, child);
202 retval += bus_print_child_domain(dev, child);
203 retval += bus_print_child_footer(dev, child);
216 ntb_link_event(device_t dev)
218 struct ntb_child **cpp = device_get_softc(dev);
224 if (NTB_LINK_IS_UP(dev, &speed, &width)) {
225 device_printf(dev, "Link is up (PCIe %d.x / x%d)\n",
228 device_printf(dev, "Link is down\n");
239 ntb_db_event(device_t dev, uint32_t vec)
241 struct ntb_child **cpp = device_get_softc(dev);
264 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev));
281 struct ntb_child **cpp = device_get_softc(device_get_parent(nc->dev));