Searched refs:req (Results 1 – 3 of 3) sorted by relevance
45 struct usb_request *req; member65 ept->req = 0; in usb_endpoint_alloc()114 struct usb_request *req; in usb_request_alloc() local115 req = alloc(sizeof(*req)); in usb_request_alloc()116 req->buf = alloc(bufsiz); in usb_request_alloc()117 req->item = alloc(32); in usb_request_alloc()118 return req; in usb_request_alloc()121 int usb_queue_req(struct usb_endpoint *ept, struct usb_request *req) in usb_queue_req() argument123 struct ept_queue_item *item = req->item; in usb_queue_req()124 unsigned phys = (unsigned) req->buf; in usb_queue_req()[all …]
249 static void usb_rx_cmd_complete(struct usb_request *req, unsigned actual, int status);250 static void usb_rx_data_complete(struct usb_request *req, unsigned actual, int status);254 struct usb_request *req = rx_req; in rx_cmd() local255 req->buf = cmdbuf; in rx_cmd()256 req->length = 4096; in rx_cmd()257 req->complete = usb_rx_cmd_complete; in rx_cmd()258 usb_queue_req(ep1out, req); in rx_cmd()263 struct usb_request *req = rx_req; in rx_data() local264 req->buf = (void*) rx_addr; in rx_data()265 req->length = (rx_length > 4096) ? 4096 : rx_length; in rx_data()[all …]
74 void (*complete)(struct usb_request *req, unsigned actual, int status);80 int usb_queue_req(struct usb_endpoint *ept, struct usb_request *req);