Home
last modified time | relevance | path

Searched refs:nameunit (Results 1 – 6 of 6) sorted by relevance

/third_party/FreeBSD/sys/dev/usb/implementation/
Dusb_btree.c83 node->info.nameunit = info->nameunit; in usbd_create_bt_node()
87 BT_DEBUG("[create node] %p %s %d\n", node, node->info.nameunit, node->info.port_no); in usbd_create_bt_node()
94 BT_DEBUG("[free node] %p %s %d\n", node, node->info.nameunit, node->info.port_no); in usbd_free_bt_node()
96 node->info.nameunit = NULL; in usbd_free_bt_node()
113 if (node->info.nameunit != NULL) in usbd_release_bt_node()
126 if (node->info.nameunit == info->nameunit) { in usbd_pre_order_bt_node()
154 if (!strncmp(node->info.nameunit, "uhub", strlen("uhub"))) { in usbd_pre_order_hub_node()
155 BT_DEBUG("[Hub Node] %p %s %d %d\n", node, node->info.nameunit, node->info.port_no, *port_num); in usbd_pre_order_hub_node()
159 if (!strncmp(node->lbt_node->info.nameunit, devname, strlen(devname))) { in usbd_pre_order_hub_node()
188 if (!strncmp(node->info.nameunit, "uhub", strlen("uhub"))) { in usbd_per_order_hub_quantity()
[all …]
Dusb_btree.h46 const char *nameunit; /* Save dev_nameunit address. */ member
/third_party/FreeBSD/sys/kern/
Dsubr_bus.c99 char* nameunit; /**< name+unit e.g. foodev0 */ member
1256 return (dev->nameunit); in device_get_nameunit()
1285 dev->nameunit = bsd_malloc(buflen, M_BUS, M_NOWAIT|M_ZERO); in devclass_add_device()
1286 if (!dev->nameunit) in devclass_add_device()
1290 bsd_free(dev->nameunit, M_BUS); in devclass_add_device()
1291 dev->nameunit = NULL; in devclass_add_device()
1296 if (snprintf_s(dev->nameunit, buflen, buflen - 1, "%s%d", dc->name, dev->unit) < 0) { in devclass_add_device()
1297 bsd_free(dev->nameunit, M_BUS); in devclass_add_device()
1298 dev->nameunit = NULL; in devclass_add_device()
1301 PDEBUG(("dev->nameunit : %s", dev->nameunit)); in devclass_add_device()
[all …]
/third_party/FreeBSD/sys/dev/usb/
Dusb_hub.c1557 cur_info.nameunit = device_get_nameunit(dev); in uhub_attach()
1569 parent_info.nameunit = device_get_nameunit(device); in uhub_attach()
1572 parent_info.nameunit = device_get_nameunit(udev->parent_dev); in uhub_attach()
1576 parent_info.nameunit = device_get_nameunit(dev); in uhub_attach()
1637 parent_info.nameunit = device_get_nameunit(device_get_parent(dev)); in uhub_detach()
1640 cur_info.nameunit = device_get_nameunit(dev); in uhub_detach()
/third_party/FreeBSD/sys/dev/usb/storage/
Dumass.c3342 cur_info.nameunit = device_get_nameunit(dev); in umass_attach_dev_sub()
3349 parent_info.nameunit = device_get_nameunit(device_get_parent(dev)); in umass_attach_dev_sub()
3384 parent_info.nameunit = device_get_nameunit(device_get_parent(dev)); in umass_detach_dev_sub()
3387 cur_info.nameunit = device_get_nameunit(dev); in umass_detach_dev_sub()
3614 dev_unit = usbd_atoi(node->info.nameunit + 5); /* 5 = umass */ in umass_medium_probe()
/third_party/FreeBSD/sys/dev/usb/controller/
Dusb_controller.c138 info.nameunit = device_get_nameunit(dev); in usb_attach()