Searched refs:dev_desc (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.7/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); 1381 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_get_desc() local 1384 BUG_ON(dev_desc == NULL); in xhci_get_desc() 1386 if (unlikely(dev_desc == NULL)) in xhci_get_desc() 1395 count = xhci_control_in(id, &ctrl_in_packet, target, port_id, dev_desc->max_packet_size); in xhci_get_desc() 1403 struct usb_device_desc *dev_desc = xhci_hc[id].ports[port_id].dev_desc; in xhci_set_configuration() local 1406 BUG_ON(dev_desc == NULL); in xhci_set_configuration() 1408 if (unlikely(dev_desc == NULL)) in xhci_set_configuration() 1412 count = xhci_control_out(id, &ctrl_out_packet, NULL, port_id, dev_desc->max_packet_size); in xhci_set_configuration() 1527 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
|