/drivers/usb/host/ |
D | uhci-q.c | 249 struct uhci_qh *qh; in uhci_alloc_qh() local 251 qh = dma_pool_alloc(uhci->qh_pool, GFP_ATOMIC, &dma_handle); in uhci_alloc_qh() 252 if (!qh) in uhci_alloc_qh() 255 memset(qh, 0, sizeof(*qh)); in uhci_alloc_qh() 256 qh->dma_handle = dma_handle; in uhci_alloc_qh() 258 qh->element = UHCI_PTR_TERM(uhci); in uhci_alloc_qh() 259 qh->link = UHCI_PTR_TERM(uhci); in uhci_alloc_qh() 261 INIT_LIST_HEAD(&qh->queue); in uhci_alloc_qh() 262 INIT_LIST_HEAD(&qh->node); in uhci_alloc_qh() 265 qh->type = usb_endpoint_type(&hep->desc); in uhci_alloc_qh() [all …]
|
D | ehci-q.c | 88 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 90 struct ehci_qh_hw *hw = qh->hw; in qh_update() 93 BUG_ON(qh->qh_state != QH_STATE_IDLE); in qh_update() 106 is_out = qh->is_out; in qh_update() 108 if (unlikely (!usb_gettoggle (qh->dev, epnum, is_out))) { in qh_update() 110 usb_settoggle (qh->dev, epnum, is_out, 1); in qh_update() 122 qh_refresh (struct ehci_hcd *ehci, struct ehci_qh *qh) in qh_refresh() argument 126 if (list_empty (&qh->qtd_list)) in qh_refresh() 127 qtd = qh->dummy; in qh_refresh() 129 qtd = list_entry (qh->qtd_list.next, in qh_refresh() [all …]
|
D | oxu210hp-hcd.c | 603 static void oxu_qh_free(struct oxu_hcd *oxu, struct ehci_qh *qh) in oxu_qh_free() argument 609 index = qh - &oxu->mem->qh_pool[0]; in oxu_qh_free() 617 struct ehci_qh *qh = container_of(kref, struct ehci_qh, kref); in qh_destroy() local 618 struct oxu_hcd *oxu = qh->oxu; in qh_destroy() 621 if (!list_empty(&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy() 625 if (qh->dummy) in qh_destroy() 626 oxu_qtd_free(oxu, qh->dummy); in qh_destroy() 627 oxu_qh_free(oxu, qh); in qh_destroy() 633 struct ehci_qh *qh = NULL; in oxu_qh_alloc() local 642 qh = (struct ehci_qh *) &oxu->mem->qh_pool[i]; in oxu_qh_alloc() [all …]
|
D | ehci-mem.c | 67 static void qh_destroy(struct ehci_qh *qh) in qh_destroy() argument 69 struct ehci_hcd *ehci = qh->ehci; in qh_destroy() 72 if (!list_empty (&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy() 76 if (qh->dummy) in qh_destroy() 77 ehci_qtd_free (ehci, qh->dummy); in qh_destroy() 78 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma); in qh_destroy() 79 kfree(qh); in qh_destroy() 84 struct ehci_qh *qh; in ehci_qh_alloc() local 87 qh = kzalloc(sizeof *qh, GFP_ATOMIC); in ehci_qh_alloc() 88 if (!qh) in ehci_qh_alloc() [all …]
|
D | ehci-sched.c | 73 return &periodic->qh->qh_next; in periodic_next_shadow() 91 return &periodic->qh->hw->hw_next; in shadow_next_periodic() 144 hw = q->qh->hw; in periodic_usecs() 147 usecs += q->qh->usecs; in periodic_usecs() 151 usecs += q->qh->c_usecs; in periodic_usecs() 153 q = &q->qh->qh_next; in periodic_usecs() 284 if (same_tt(dev, q->qh->dev)) { in periodic_tt_usecs() 285 uf = tt_start_uframe(ehci, q->qh->hw->hw_info2); in periodic_tt_usecs() 286 tt_usecs[uf] += q->qh->tt_usecs; in periodic_tt_usecs() 288 hw_p = &q->qh->hw->hw_next; in periodic_tt_usecs() [all …]
|
D | isp1760-hcd.c | 391 struct isp1760_qh *qh; in qh_alloc() local 393 qh = kmem_cache_zalloc(qh_cachep, flags); in qh_alloc() 394 if (!qh) in qh_alloc() 397 INIT_LIST_HEAD(&qh->qh_list); in qh_alloc() 398 INIT_LIST_HEAD(&qh->qtd_list); in qh_alloc() 399 qh->slot = -1; in qh_alloc() 401 return qh; in qh_alloc() 404 static void qh_free(struct isp1760_qh *qh) in qh_free() argument 406 WARN_ON(!list_empty(&qh->qtd_list)); in qh_free() 407 WARN_ON(qh->slot > -1); in qh_free() [all …]
|
D | uhci-debug.c | 109 out += sprintf(out, "qh [%p] ", urbp->qh); in uhci_show_urbp() 124 (urbp->qh->type == USB_ENDPOINT_XFER_CONTROL ? in uhci_show_urbp() 133 if (urbp->qh->type != USB_ENDPOINT_XFER_ISOC && in uhci_show_urbp() 154 struct uhci_qh *qh, char *buf, int len, int space) in uhci_show_qh() argument 158 __hc32 element = qh_element(qh); in uhci_show_qh() 165 switch (qh->type) { in uhci_show_qh() 174 space, "", qh, qtype, in uhci_show_qh() 175 hc32_to_cpu(uhci, qh->link), in uhci_show_qh() 177 if (qh->type == USB_ENDPOINT_XFER_ISOC) in uhci_show_qh() 180 space, "", qh->period, qh->phase, qh->load, in uhci_show_qh() [all …]
|
D | ehci-hcd.c | 670 ehci->async->qh_next.qh = NULL; in ehci_init() 1032 static void unlink_async (struct ehci_hcd *ehci, struct ehci_qh *qh) in unlink_async() argument 1042 if (qh->qh_state != QH_STATE_LINKED) { in unlink_async() 1043 if (qh->qh_state == QH_STATE_COMPLETING) in unlink_async() 1044 qh->needs_rescan = 1; in unlink_async() 1056 qh->qh_state = QH_STATE_UNLINK_WAIT; in unlink_async() 1057 last->reclaim = qh; in unlink_async() 1061 start_unlink_async (ehci, qh); in unlink_async() 1071 struct ehci_qh *qh; in ehci_urb_dequeue() local 1084 qh = (struct ehci_qh *) urb->hcpriv; in ehci_urb_dequeue() [all …]
|
D | ehci-dbg.c | 138 dbg_qh (const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) in dbg_qh() argument 140 struct ehci_qh_hw *hw = qh->hw; in dbg_qh() 143 qh, hw->hw_next, hw->hw_info1, hw->hw_info2, hw->hw_current); in dbg_qh() 300 dbg_qh (char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) in dbg_qh() argument 429 struct ehci_qh *qh, in qh_lines() argument 443 struct ehci_qh_hw *hw = qh->hw; in qh_lines() 461 qh, scratch & 0x007f, in qh_lines() 473 list_for_each (entry, &qh->qtd_list) { in qh_lines() 525 struct ehci_qh *qh; in fill_async_buffer() local 539 for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh) in fill_async_buffer() [all …]
|
D | uhci-hcd.h | 187 #define qh_element(qh) ACCESS_ONCE((qh)->element) argument 189 #define LINK_TO_QH(uhci, qh) (UHCI_PTR_QH((uhci)) | \ argument 190 cpu_to_hc32((uhci), (qh)->dma_handle)) 485 struct uhci_qh *qh; /* QH for this URB */ member
|
D | uhci-hcd.c | 770 struct uhci_qh *qh; in uhci_hcd_endpoint_disable() local 773 qh = (struct uhci_qh *) hep->hcpriv; in uhci_hcd_endpoint_disable() 774 if (qh == NULL) in uhci_hcd_endpoint_disable() 777 while (qh->state != QH_STATE_IDLE) { in uhci_hcd_endpoint_disable() 781 qh->state == QH_STATE_IDLE); in uhci_hcd_endpoint_disable() 786 uhci_free_qh(uhci, qh); in uhci_hcd_endpoint_disable()
|
D | isp1760-hcd.h | 108 struct isp1760_qh *qh; member 114 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
|
D | oxu210hp.h | 263 struct ehci_qh *qh; /* Q_TYPE_QH */ member
|
/drivers/usb/musb/ |
D | musb_host.c | 186 static void musb_ep_set_qh(struct musb_hw_ep *ep, int is_in, struct musb_qh *qh) in musb_ep_set_qh() argument 189 ep->in_qh = qh; in musb_ep_set_qh() 191 ep->out_qh = qh; in musb_ep_set_qh() 206 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) in musb_start_urb() argument 211 struct urb *urb = next_urb(qh); in musb_start_urb() 214 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() 220 qh->offset = 0; in musb_start_urb() 221 qh->segsize = 0; in musb_start_urb() 224 switch (qh->type) { in musb_start_urb() 233 qh->iso_idx = 0; in musb_start_urb() [all …]
|
D | musb_host.h | 96 static inline struct urb *next_urb(struct musb_qh *qh) in next_urb() argument 100 if (!qh) in next_urb() 102 queue = &qh->hep->urb_list; in next_urb()
|
/drivers/usb/host/whci/ |
D | debug.c | 47 qset->qh.info1 & 0x0f, in qset_print() 48 (qset->qh.info1 >> 4) & 0x1 ? "in" : "out", in qset_print() 49 qh_type[(qset->qh.info1 >> 5) & 0x7], in qset_print() 50 (qset->qh.info1 >> 16) & 0xffff); in qset_print() 52 seq_printf(s, " -> %08x\n", (u32)qset->qh.link); in qset_print() 54 qset->qh.info1, qset->qh.info2, qset->qh.info3); in qset_print() 56 qset->qh.status, qset->qh.err_count, qset->qh.cur_window); in qset_print() 58 qset->qh.overlay.qtd.status, qset->qh.overlay.qtd.options); in qset_print()
|
D | qset.c | 90 qset->qh.info1 = cpu_to_le32( in qset_fill_qh() 97 qset->qh.info2 = cpu_to_le32( in qset_fill_qh() 108 qset->qh.info3 = cpu_to_le32( in qset_fill_qh() 113 qset->qh.cur_window = cpu_to_le32((1 << qset->max_burst) - 1); in qset_fill_qh() 127 qset->qh.link = cpu_to_le64(QH_LINK_NTDS(8) | QH_LINK_T); in qset_clear() 128 qset->qh.status = qset->qh.status & QH_STATUS_SEQ_MASK; in qset_clear() 129 qset->qh.err_count = 0; in qset_clear() 130 qset->qh.scratch[0] = 0; in qset_clear() 131 qset->qh.scratch[1] = 0; in qset_clear() 132 qset->qh.scratch[2] = 0; in qset_clear() [all …]
|
D | asl.c | 61 whc_qset_set_link_ptr(&qset->qh.link, next->qset_dma); in asl_qset_insert() 62 whc_qset_set_link_ptr(&prev->qh.link, qset->qset_dma); in asl_qset_insert() 83 whc_qset_set_link_ptr(&prev->qh.link, next->qset_dma); in asl_qset_remove()
|
D | whci-hc.h | 242 struct whc_qhead qh; member
|
/drivers/usb/gadget/ |
D | ci13xxx_udc.c | 1216 i, (u32)mEpRx->qh.dma, (u32)mEpTx->qh.dma); in show_qheads() 1220 *((u32 *)mEpRx->qh.ptr + j), in show_qheads() 1221 *((u32 *)mEpTx->qh.ptr + j)); in show_qheads() 1326 list_for_each(ptr, &udc->ci13xxx_ep[i].qh.queue) in show_requests() 1505 if (!list_empty(&mEp->qh.queue)) { in _hardware_enqueue() 1510 mReqPrev = list_entry(mEp->qh.queue.prev, in _hardware_enqueue() 1529 mEp->qh.ptr->td.next = mReq->dma; /* TERMINATE = 0 */ in _hardware_enqueue() 1530 mEp->qh.ptr->td.token &= ~TD_STATUS; /* clear status */ in _hardware_enqueue() 1531 mEp->qh.ptr->cap |= QH_ZLT; in _hardware_enqueue() 1608 while (!list_empty(&mEp->qh.queue)) { in _ep_nuke() [all …]
|
D | fsl_udc_core.c | 702 struct ep_queue_head *qh = get_qh_by_ep(ep); in fsl_prime_ep() local 705 qh->next_dtd_ptr = cpu_to_hc32(td->td_dma in fsl_prime_ep() 709 qh->size_ioc_int_sts &= cpu_to_hc32(~(EP_QUEUE_HEAD_STATUS_ACTIVE in fsl_prime_ep() 1063 struct ep_queue_head *qh; in fsl_ep_fifo_status() local 1074 qh = get_qh_by_ep(ep); in fsl_ep_fifo_status() 1080 size = (qh->size_ioc_int_sts & DTD_PACKET_SIZE) in fsl_ep_fifo_status() 1558 struct ep_queue_head *qh; in tripwire_handler() local 1561 qh = &udc->ep_qh[ep_num * 2 + EP_DIR_OUT]; in tripwire_handler() 1576 u32 *s = (u32 *)qh->setup_buffer; in tripwire_handler() 1582 memcpy(buffer_ptr, (u8 *) qh->setup_buffer, 8); in tripwire_handler() [all …]
|
D | fsl_usb2_udc.h | 452 struct ep_queue_head *qh; member 576 return ep->qh; in get_qh_by_ep()
|
D | ci13xxx_udc.h | 94 } qh; member
|
/drivers/scsi/qla2xxx/ |
D | qla_dbg.c | 385 struct qla2xxx_mqueue_header *qh; in qla25xx_copy_mqueues() local 410 qh = ptr; in qla25xx_copy_mqueues() 411 qh->queue = __constant_htonl(TYPE_REQUEST_QUEUE); in qla25xx_copy_mqueues() 412 qh->number = htonl(que); in qla25xx_copy_mqueues() 413 qh->size = htonl(req->length * sizeof(request_t)); in qla25xx_copy_mqueues() 438 qh = ptr; in qla25xx_copy_mqueues() 439 qh->queue = __constant_htonl(TYPE_RESPONSE_QUEUE); in qla25xx_copy_mqueues() 440 qh->number = htonl(que); in qla25xx_copy_mqueues() 441 qh->size = htonl(rsp->length * sizeof(response_t)); in qla25xx_copy_mqueues()
|
/drivers/scsi/bfa/ |
D | bfa_fcs_lport.c | 4850 struct list_head *qh, *qe; in bfa_fcs_lport_get_rport() local 4862 qh = &port->rport_q; in bfa_fcs_lport_get_rport() 4863 qe = bfa_q_first(qh); in bfa_fcs_lport_get_rport() 4865 while ((qe != qh) && (i < nrports)) { in bfa_fcs_lport_get_rport() 4898 struct list_head *qh, *qe; in bfa_fcs_lport_get_rports() local 4910 qh = &port->rport_q; in bfa_fcs_lport_get_rports() 4911 qe = bfa_q_first(qh); in bfa_fcs_lport_get_rports() 4913 while ((qe != qh) && (i < *nrports)) { in bfa_fcs_lport_get_rports() 4942 struct list_head *qh, *qe; in bfa_fcs_lport_get_rport_max_speed() local 4961 qh = &port->rport_q; in bfa_fcs_lport_get_rport_max_speed() [all …]
|