Lines Matching refs:uhci_desc_t
124 _static int delete_qh (uhci_t *s, uhci_desc_t *qh);
142 uhci_desc_t *qh; in clean_descs()
148 qh = list_entry (q, uhci_desc_t, horizontal); in clean_descs()
255 _static int alloc_td (uhci_t *s, uhci_desc_t ** new, int flags) in alloc_td()
262 memset (*new, 0, sizeof (uhci_desc_t)); in alloc_td()
274 _static void append_qh(uhci_t *s, uhci_desc_t *td, uhci_desc_t* qh, int flags) in append_qh()
287 _static int insert_td (uhci_t *s, uhci_desc_t *qh, uhci_desc_t* new, int flags) in insert_td()
289 uhci_desc_t *prev; in insert_td()
296 prev = list_entry (new->vertical.prev, uhci_desc_t, vertical); in insert_td()
313 _static int insert_td_horizontal (uhci_t *s, uhci_desc_t *td, uhci_desc_t* new) in insert_td_horizontal()
315 uhci_desc_t *next; in insert_td_horizontal()
320 next = list_entry (td->horizontal.next, uhci_desc_t, horizontal); in insert_td_horizontal()
330 _static int unlink_td (uhci_t *s, uhci_desc_t *element, int phys_unlink) in unlink_td()
332 uhci_desc_t *next, *prev; in unlink_td()
338 next = list_entry (element->vertical.next, uhci_desc_t, vertical); in unlink_td()
342 prev = list_entry (element->horizontal.prev, uhci_desc_t, horizontal); in unlink_td()
345 prev = list_entry (element->vertical.prev, uhci_desc_t, vertical); in unlink_td()
368 _static int delete_desc (uhci_t *s, uhci_desc_t *element) in delete_desc()
375 _static int alloc_qh (uhci_t *s, uhci_desc_t ** new) in alloc_qh()
382 memset (*new, 0, sizeof (uhci_desc_t)); in alloc_qh()
399 _static int insert_qh (uhci_t *s, uhci_desc_t *pos, uhci_desc_t *new, int order) in insert_qh()
401 uhci_desc_t *old; in insert_qh()
408 old = list_entry (pos->horizontal.prev, uhci_desc_t, horizontal); in insert_qh()
416 old = list_entry (pos->horizontal.next, uhci_desc_t, horizontal); in insert_qh()
430 _static int unlink_qh (uhci_t *s, uhci_desc_t *element) in unlink_qh()
432 uhci_desc_t *prev; in unlink_qh()
437 prev = list_entry (element->horizontal.prev, uhci_desc_t, horizontal); in unlink_qh()
441 …list_entry (element->horizontal.next, uhci_desc_t, horizontal),le32_to_cpu(element->hw.qh.head) &~… in unlink_qh()
451 _static int delete_qh (uhci_t *s, uhci_desc_t *qh) in delete_qh()
453 uhci_desc_t *td; in delete_qh()
459 td = list_entry (p, uhci_desc_t, vertical); in delete_qh()
470 _static void clean_td_chain (uhci_t *s, uhci_desc_t *td) in clean_td_chain()
473 uhci_desc_t *td1; in clean_td_chain()
479 td1 = list_entry (p, uhci_desc_t, horizontal); in clean_td_chain()
487 _static void fill_td (uhci_desc_t *td, int status, int info, __u32 buffer) in fill_td()
498 uhci_desc_t *td; in cleanup_skel()
531 uhci_desc_t *qh, *qh1; in cleanup_skel()
535 qh1 = list_entry (p, uhci_desc_t, horizontal); in cleanup_skel()
565 uhci_desc_t *qh, *td; in init_skel()
580 sizeof(uhci_desc_t), 16, 0, in init_skel()
586 s->iso_td = (uhci_desc_t **) kmalloc (1024 * sizeof (uhci_desc_t*), GFP_KERNEL); in init_skel()
653 uhci_desc_t *td; in init_skel()
674 ((uhci_desc_t*) s->iso_td[n])->hw.td.link = cpu_to_le32(s->int_chain[0]->dma_addr); in init_skel()
678 set_td_link(((uhci_desc_t*) s->iso_td[n]), s->int_chain[o]->dma_addr); in init_skel()
705 uhci_desc_t *qh, *td; in uhci_submit_control_urb()
824 uhci_desc_t *qh, *td, *nqh=NULL, *bqh=NULL, *first_td=NULL; in uhci_submit_bulk_urb()
956 uhci_desc_t *td; in uhci_clean_iso_step1()
959 td = list_entry (p, uhci_desc_t, desc_list); in uhci_clean_iso_step1()
967 uhci_desc_t *td; in uhci_clean_iso_step2()
970 td = list_entry (p, uhci_desc_t, desc_list); in uhci_clean_iso_step2()
982 _static void uhci_clean_transfer (uhci_t *s, struct urb *urb, uhci_desc_t *qh, int mode) in uhci_clean_transfer()
984 uhci_desc_t *bqh, *nqh, *prevqh, *prevtd; in uhci_clean_transfer()
1001 prevqh = list_entry (ppriv->desc_list.next, uhci_desc_t, desc_list); in uhci_clean_transfer()
1002 prevtd = list_entry (prevqh->vertical.prev, uhci_desc_t, vertical); in uhci_clean_transfer()
1044 prevqh = list_entry (qh->horizontal.prev, uhci_desc_t, horizontal); in uhci_clean_transfer()
1052 uhci_desc_t * bnqh; in uhci_clean_transfer()
1054 bnqh = list_entry (npriv->desc_list.next, uhci_desc_t, desc_list); in uhci_clean_transfer()
1057 prevqh = list_entry (ppriv->desc_list.next, uhci_desc_t, desc_list); in uhci_clean_transfer()
1127 uhci_desc_t *qh; in uhci_unlink_urb_async()
1158 qh = list_entry (urb_priv->desc_list.next, uhci_desc_t, desc_list); in uhci_unlink_urb_async()
1172 uhci_desc_t *qh; in uhci_unlink_urb_sync()
1199 qh = list_entry (urb_priv->desc_list.next, uhci_desc_t, desc_list); in uhci_unlink_urb_sync()
1443 uhci_desc_t *td; in uhci_submit_int_urb()
1507 uhci_desc_t *td, **tdm; in uhci_submit_iso_urb()
1518 tdm = (uhci_desc_t **) kmalloc (urb->number_of_packets * sizeof (uhci_desc_t*), KMALLOC_FLAG); in uhci_submit_iso_urb()
1525 memset(tdm, 0, urb->number_of_packets * sizeof (uhci_desc_t*)); in uhci_submit_iso_urb()
2289 uhci_desc_t *qh = list_entry (priv->desc_list.next, uhci_desc_t, desc_list); in correct_data_toggles()
2291 uhci_desc_t *td; in correct_data_toggles()
2295 td = list_entry (p, uhci_desc_t, vertical); in correct_data_toggles()
2317 uhci_desc_t *qh = list_entry (qhl, uhci_desc_t, desc_list); in process_transfer()
2319 uhci_desc_t *desc= list_entry (urb_priv->desc_list.prev, uhci_desc_t, desc_list); in process_transfer()
2320 uhci_desc_t *last_desc = list_entry (desc->vertical.prev, uhci_desc_t, vertical); in process_transfer()
2340 desc = list_entry (p, uhci_desc_t, vertical); in process_transfer()
2404 uhci_desc_t *qh = list_entry (next_priv->desc_list.next, uhci_desc_t, desc_list); in process_transfer()
2405 uhci_desc_t *first_td=list_entry (qh->vertical.next, uhci_desc_t, vertical); in process_transfer()
2436 uhci_desc_t *desc = list_entry (urb_priv->desc_list.prev, uhci_desc_t, desc_list); in process_interrupt()
2446 desc = list_entry (p, uhci_desc_t, desc_list); in process_interrupt()
2538 uhci_desc_t *desc = list_entry (urb_priv->desc_list.prev, uhci_desc_t, desc_list); in process_iso()
2551 desc = list_entry (p, uhci_desc_t, desc_list); in process_iso()