Lines Matching refs:req

45 	struct dbc_request	*req;
51 req = list_entry(pool->next, struct dbc_request, list_pool);
52 len = dbc_send_packet(port, req->buf, DBC_MAX_PACKET);
57 req->length = len;
58 list_del(&req->list_pool);
61 status = dbc_ep_queue(req);
65 list_add(&req->list_pool, pool);
80 struct dbc_request *req;
88 req = list_entry(pool->next, struct dbc_request, list_pool);
89 list_del(&req->list_pool);
90 req->length = DBC_MAX_PACKET;
93 status = dbc_ep_queue(req);
97 list_add(&req->list_pool, pool);
104 dbc_read_complete(struct xhci_dbc *dbc, struct dbc_request *req)
110 list_add_tail(&req->list_pool, &port->read_queue);
115 static void dbc_write_complete(struct xhci_dbc *dbc, struct dbc_request *req)
121 list_add(&req->list_pool, &port->write_pool);
122 switch (req->status) {
130 req->status);
136 static void xhci_dbc_free_req(struct dbc_request *req)
138 kfree(req->buf);
139 dbc_free_request(req);
148 struct dbc_request *req;
151 req = dbc_alloc_request(dbc, direction, GFP_KERNEL);
152 if (!req)
155 req->length = DBC_MAX_PACKET;
156 req->buf = kmalloc(req->length, GFP_KERNEL);
157 if (!req->buf) {
158 dbc_free_request(req);
162 req->complete = fn;
163 list_add_tail(&req->list_pool, head);
172 struct dbc_request *req;
175 req = list_entry(head->next, struct dbc_request, list_pool);
176 list_del(&req->list_pool);
177 xhci_dbc_free_req(req);
293 struct dbc_request *req;
304 req = list_first_entry(queue, struct dbc_request, list_pool);
309 switch (req->status) {
317 req->status);
321 if (req->actual) {
322 char *packet = req->buf;
323 unsigned int n, size = req->actual;
343 list_move(&req->list_pool, &port->read_pool);