Searched refs:dev_desc (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/ |
D | xhci.c | 67 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc); 1379 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_get_desc() local 1382 BUG_ON(dev_desc == NULL); in xhci_get_desc() 1384 if (unlikely(dev_desc == NULL)) in xhci_get_desc() 1393 count = xhci_control_in(id, &ctrl_in_packet, target, port_id, dev_desc->max_packet_size); in xhci_get_desc() 1401 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_set_configuration() local 1404 BUG_ON(dev_desc == NULL); in xhci_set_configuration() 1406 if (unlikely(dev_desc == NULL)) in xhci_set_configuration() 1410 count = xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_set_configuration() 1525 static int xhci_get_descriptor(const int id, const int port_id, struct usb_device_desc *dev_desc) in xhci_get_descriptor() argument [all …]
|
D | xhci.h | 513 struct usb_device_desc *dev_desc; // 指向设备描述符结构体的指针 member
|