Lines Matching refs:txi
187 struct tx_item *txi; in v_send_ret() local
193 txi = list_first_entry(&udc->tx_queue, struct tx_item, in v_send_ret()
195 list_del(&txi->tx_entry); in v_send_ret()
198 switch (txi->type) { in v_send_ret()
200 ret = v_send_ret_submit(udc, txi->s); in v_send_ret()
203 ret = v_send_ret_unlink(udc, txi->u); in v_send_ret()
206 kfree(txi); in v_send_ret()
246 struct tx_item *txi; in v_enqueue_ret_unlink() local
249 txi = kzalloc(sizeof(*txi), GFP_ATOMIC); in v_enqueue_ret_unlink()
250 if (!txi) { in v_enqueue_ret_unlink()
256 kfree(txi); in v_enqueue_ret_unlink()
263 txi->type = TX_UNLINK; in v_enqueue_ret_unlink()
264 txi->u = unlink; in v_enqueue_ret_unlink()
266 list_add_tail(&txi->tx_entry, &udc->tx_queue); in v_enqueue_ret_unlink()
272 struct tx_item *txi; in v_enqueue_ret_submit() local
274 txi = kzalloc(sizeof(*txi), GFP_ATOMIC); in v_enqueue_ret_submit()
275 if (!txi) { in v_enqueue_ret_submit()
280 txi->type = TX_SUBMIT; in v_enqueue_ret_submit()
281 txi->s = urb_p; in v_enqueue_ret_submit()
283 list_add_tail(&txi->tx_entry, &udc->tx_queue); in v_enqueue_ret_submit()