Searched refs:setup_pkt_ptr (Results 1 – 2 of 2) sorted by relevance
151 #define USB_SETUP_PACKET_INIT_SET_ADDR(setup_pkt_ptr, addr) ({ \ argument152 …(setup_pkt_ptr)->bmRequestType = USB_BM_REQUEST_TYPE_DIR_OUT | USB_BM_REQUEST_TYPE_TYPE_STANDARD |…153 (setup_pkt_ptr)->bRequest = USB_B_REQUEST_SET_ADDRESS; \154 (setup_pkt_ptr)->wValue = (addr); \155 (setup_pkt_ptr)->wIndex = 0; \156 (setup_pkt_ptr)->wLength = 0; \162 #define USB_SETUP_PACKET_INIT_GET_DEVICE_DESC(setup_pkt_ptr) ({ \ argument163 …(setup_pkt_ptr)->bmRequestType = USB_BM_REQUEST_TYPE_DIR_IN | USB_BM_REQUEST_TYPE_TYPE_STANDARD | …164 (setup_pkt_ptr)->bRequest = USB_B_REQUEST_GET_DESCRIPTOR; \165 (setup_pkt_ptr)->wValue = (USB_W_VALUE_DT_DEVICE << 8); \[all …]
111 #define MOCK_MSC_SCSI_REQ_INIT_RESET(setup_pkt_ptr, intf_num) ({ \ argument112 …(setup_pkt_ptr)->bmRequestType = USB_BM_REQUEST_TYPE_DIR_OUT | USB_BM_REQUEST_TYPE_TYPE_CLASS | US…113 (setup_pkt_ptr)->bRequest = 0xFF; \114 (setup_pkt_ptr)->wValue = 0; \115 (setup_pkt_ptr)->wIndex = (intf_num); \116 (setup_pkt_ptr)->wLength = 0; \