Home
last modified time | relevance | path

Searched refs:qh (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/usb/dwc2/
H A Dhcd_queue.c81 struct dwc2_qh *qh) in dwc2_check_periodic_bandwidth() argument
88 if (qh->dev_speed == USB_SPEED_HIGH || qh->do_split) { in dwc2_check_periodic_bandwidth()
93 max_claimed_usecs = 100 - qh->host_us; in dwc2_check_periodic_bandwidth()
99 max_claimed_usecs = 900 - qh->host_us; in dwc2_check_periodic_bandwidth()
105 __func__, hsotg->periodic_usecs, qh->host_us); in dwc2_check_periodic_bandwidth()
346 struct dwc2_qh *qh) in dwc2_get_ls_map() argument
351 if (WARN_ON(!qh->dwc_tt)) in dwc2_get_ls_map()
355 map = qh->dwc_tt->periodic_bitmaps; in dwc2_get_ls_map()
356 if (qh->dwc_tt->usb_tt->multi) in dwc2_get_ls_map()
357 map += DWC2_ELEMENTS_PER_LS_BITMAP * (qh->ttport - 1); in dwc2_get_ls_map()
[all …]
H A Dhcd_ddma.c45 static u16 dwc2_max_desc_num(struct dwc2_qh *qh) in dwc2_max_desc_num() argument
47 return (qh->ep_type == USB_ENDPOINT_XFER_ISOC && in dwc2_max_desc_num()
48 qh->dev_speed == USB_SPEED_HIGH) ? in dwc2_max_desc_num()
52 static u16 dwc2_frame_incr_val(struct dwc2_qh *qh) in dwc2_frame_incr_val() argument
54 return qh->dev_speed == USB_SPEED_HIGH ? in dwc2_frame_incr_val()
55 (qh->host_interval + 8 - 1) / 8 : qh->host_interval; in dwc2_frame_incr_val()
58 static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_desc_list_alloc() argument
63 if (qh->ep_type == USB_ENDPOINT_XFER_ISOC && in dwc2_desc_list_alloc()
64 qh->dev_speed == USB_SPEED_HIGH) in dwc2_desc_list_alloc()
69 qh->desc_list_sz = sizeof(struct dwc2_dma_desc) * in dwc2_desc_list_alloc()
[all …]
H A Dhcd.h133 struct dwc2_qh *qh; member
418 struct dwc2_qh *qh; member
539 void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
540 int dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
541 void dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
542 void dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
547 struct dwc2_qh *qh);
552 struct dwc2_qh *qh) in dwc2_hcd_qtd_unlink_and_free() argument
560 struct dwc2_qh *qh);
565 int dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
[all …]
H A Dhcd.c407 struct dwc2_qh *qh; in dwc2_dump_channel_info() local
438 dev_dbg(hsotg->dev, " qh: %p\n", chan->qh); in dwc2_dump_channel_info()
440 list_for_each_entry(qh, &hsotg->non_periodic_sched_inactive, in dwc2_dump_channel_info()
442 dev_dbg(hsotg->dev, " %p\n", qh); in dwc2_dump_channel_info()
444 list_for_each_entry(qh, &hsotg->non_periodic_sched_waiting, in dwc2_dump_channel_info()
446 dev_dbg(hsotg->dev, " %p\n", qh); in dwc2_dump_channel_info()
448 list_for_each_entry(qh, &hsotg->non_periodic_sched_active, in dwc2_dump_channel_info()
450 dev_dbg(hsotg->dev, " %p\n", qh); in dwc2_dump_channel_info()
1021 wire_frame = dwc2_frame_num_inc(chan->qh->next_active_frame, 1); in dwc2_hc_set_even_odd_frame()
1033 chan->qh, wire_frame, frame_number, in dwc2_hc_set_even_odd_frame()
[all …]
/linux/drivers/usb/host/
H A Duhci-q.c249 struct uhci_qh *qh; in uhci_alloc_qh() local
251 qh = dma_pool_zalloc(uhci->qh_pool, GFP_ATOMIC, &dma_handle); in uhci_alloc_qh()
252 if (!qh) in uhci_alloc_qh()
255 qh->dma_handle = dma_handle; in uhci_alloc_qh()
257 qh->element = UHCI_PTR_TERM(uhci); in uhci_alloc_qh()
258 qh->link = UHCI_PTR_TERM(uhci); in uhci_alloc_qh()
260 INIT_LIST_HEAD(&qh->queue); in uhci_alloc_qh()
261 INIT_LIST_HEAD(&qh->node); in uhci_alloc_qh()
264 qh->type = usb_endpoint_type(&hep->desc); in uhci_alloc_qh()
265 if (qh->type != USB_ENDPOINT_XFER_ISOC) { in uhci_alloc_qh()
[all …]
H A Doxu210hp-hcd.c270 struct ehci_qh *qh; /* Q_TYPE_QH */ member
1006 static void oxu_qh_free(struct oxu_hcd *oxu, struct ehci_qh *qh) in oxu_qh_free() argument
1012 index = qh - &oxu->mem->qh_pool[0]; in oxu_qh_free()
1020 struct ehci_qh *qh = container_of(kref, struct ehci_qh, kref); in qh_destroy() local
1021 struct oxu_hcd *oxu = qh->oxu; in qh_destroy()
1024 if (!list_empty(&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy()
1028 if (qh->dummy) in qh_destroy()
1029 oxu_qtd_free(oxu, qh->dummy); in qh_destroy()
1030 oxu_qh_free(oxu, qh); in qh_destroy()
1036 struct ehci_qh *qh = NULL; in oxu_qh_alloc() local
[all …]
H A Dehci-mem.c54 static void qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh) in qh_destroy() argument
57 if (!list_empty (&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy()
61 if (qh->dummy) in qh_destroy()
62 ehci_qtd_free (ehci, qh->dummy); in qh_destroy()
63 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma); in qh_destroy()
64 kfree(qh); in qh_destroy()
69 struct ehci_qh *qh; in ehci_qh_alloc() local
72 qh = kzalloc_obj(*qh, GFP_ATOMIC); in ehci_qh_alloc()
73 if (!qh) in ehci_qh_alloc()
75 qh->hw = (struct ehci_qh_hw *) in ehci_qh_alloc()
[all …]
H A Dehci-sched.c37 return &periodic->qh->qh_next; in periodic_next_shadow()
55 return &periodic->qh->hw->hw_next; in shadow_next_periodic()
206 struct ehci_qh *qh, int sign) in reserve_release_intr_bandwidth() argument
210 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth()
211 int c_usecs = qh->ps.c_usecs; in reserve_release_intr_bandwidth()
212 int tt_usecs = qh->ps.tt_usecs; in reserve_release_intr_bandwidth()
215 if (qh->ps.phase == NO_FRAME) /* Bandwidth wasn't reserved */ in reserve_release_intr_bandwidth()
217 start_uf = qh->ps.bw_phase << 3; in reserve_release_intr_bandwidth()
219 bandwidth_dbg(ehci, sign, "intr", &qh->ps); in reserve_release_intr_bandwidth()
228 for (i = start_uf + qh->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE; in reserve_release_intr_bandwidth()
[all …]
H A Duhci-debug.c111 out += sprintf(out, "qh [%p] ", urbp->qh); in uhci_show_urbp()
128 (urbp->qh->type == USB_ENDPOINT_XFER_CONTROL ? in uhci_show_urbp()
140 if (urbp->qh->type != USB_ENDPOINT_XFER_ISOC && in uhci_show_urbp()
166 struct uhci_qh *qh, char *buf, int len, int space) in uhci_show_qh() argument
170 __hc32 element = qh_element(qh); in uhci_show_qh()
173 switch (qh->type) { in uhci_show_qh()
182 space, "", qh, qtype, in uhci_show_qh()
183 hc32_to_cpu(uhci, qh->link), in uhci_show_qh()
185 if (qh->type == USB_ENDPOINT_XFER_ISOC) in uhci_show_qh()
188 space, "", qh->period, qh->phase, qh->load, in uhci_show_qh()
[all …]
H A Dehci-timer.c223 struct ehci_qh *qh; in ehci_handle_start_intr_unlinks() local
225 qh = list_first_entry(&ehci->intr_unlink_wait, in ehci_handle_start_intr_unlinks()
227 if (!stopped && (qh->unlink_cycle == in ehci_handle_start_intr_unlinks()
230 list_del_init(&qh->unlink_node); in ehci_handle_start_intr_unlinks()
231 qh->unlink_reason |= QH_UNLINK_QUEUE_EMPTY; in ehci_handle_start_intr_unlinks()
232 start_unlink_intr(ehci, qh); in ehci_handle_start_intr_unlinks()
256 struct ehci_qh *qh; in ehci_handle_intr_unlinks() local
258 qh = list_first_entry(&ehci->intr_unlink, struct ehci_qh, in ehci_handle_intr_unlinks()
260 if (!stopped && qh->unlink_cycle == ehci->intr_unlink_cycle) in ehci_handle_intr_unlinks()
262 list_del_init(&qh->unlink_node); in ehci_handle_intr_unlinks()
[all …]
H A Dehci-dbg.c96 dbg_qh(const char *label, struct ehci_hcd *ehci, struct ehci_qh *qh) in dbg_qh() argument
98 struct ehci_qh_hw *hw = qh->hw; in dbg_qh()
101 qh, hw->hw_next, hw->hw_info1, hw->hw_info2, hw->hw_current); in dbg_qh()
370 static void qh_lines(struct ehci_hcd *ehci, struct ehci_qh *qh, in qh_lines() argument
382 struct ehci_qh_hw *hw = qh->hw; in qh_lines()
401 qh, scratch & 0x007f, in qh_lines()
416 list_for_each(entry, &qh->qtd_list) { in qh_lines()
477 struct ehci_qh *qh; in fill_async_buffer() local
492 for (qh = ehci->async->qh_next.qh; size > 0 && qh; qh = qh->qh_next.qh) in fill_async_buffer()
493 qh_lines(ehci, qh, &next, &size); in fill_async_buffer()
[all …]
H A Duhci-hcd.h191 #define qh_element(qh) READ_ONCE((qh)->element) argument
193 #define LINK_TO_QH(uhci, qh) (UHCI_PTR_QH((uhci)) | \ argument
194 cpu_to_hc32((uhci), (qh)->dma_handle))
485 struct uhci_qh *qh; /* QH for this URB */ member
H A Duhci-hcd.c771 struct uhci_qh *qh; in uhci_hcd_endpoint_disable() local
774 qh = (struct uhci_qh *) hep->hcpriv; in uhci_hcd_endpoint_disable()
775 if (qh == NULL) in uhci_hcd_endpoint_disable()
778 while (qh->state != QH_STATE_IDLE) { in uhci_hcd_endpoint_disable()
782 qh->state == QH_STATE_IDLE); in uhci_hcd_endpoint_disable()
787 uhci_free_qh(uhci, qh); in uhci_hcd_endpoint_disable()
/linux/drivers/usb/fotg210/
H A Dfotg210-hcd.c131 dbg_qh(const char *label, struct fotg210_hcd *fotg210, struct fotg210_qh *qh) in dbg_qh() argument
133 struct fotg210_qh_hw *hw = qh->hw; in dbg_qh()
135 fotg210_dbg(fotg210, "%s qh %p n%08x info %x %x qtd %x\n", label, qh, in dbg_qh()
353 static void qh_lines(struct fotg210_hcd *fotg210, struct fotg210_qh *qh, in qh_lines() argument
364 struct fotg210_qh_hw *hw = qh->hw; in qh_lines()
382 qh, scratch & 0x007f, in qh_lines()
394 list_for_each_entry(td, &qh->qtd_list, qtd_list) { in qh_lines()
447 struct fotg210_qh *qh; in fill_async_buffer() local
461 for (qh = fotg210->async->qh_next.qh; size > 0 && qh; in fill_async_buffer()
462 qh = qh->qh_next.qh) in fill_async_buffer()
[all …]
/linux/drivers/usb/isp1760/
H A Disp1760-hcd.c41 typedef void (packet_enqueue)(struct usb_hcd *hcd, struct isp1760_qh *qh,
661 struct isp1760_qh *qh; in qh_alloc() local
663 qh = kmem_cache_zalloc(qh_cachep, flags); in qh_alloc()
664 if (!qh) in qh_alloc()
667 INIT_LIST_HEAD(&qh->qh_list); in qh_alloc()
668 INIT_LIST_HEAD(&qh->qtd_list); in qh_alloc()
669 qh->slot = -1; in qh_alloc()
671 return qh; in qh_alloc()
674 static void qh_free(struct isp1760_qh *qh) in qh_free() argument
676 WARN_ON(!list_empty(&qh->qtd_list)); in qh_free()
[all …]
H A Disp1760-hcd.h16 struct isp1760_qh *qh; member
/linux/net/netfilter/
H A Dnf_queue.c35 void nf_register_queue_handler(const struct nf_queue_handler *qh) in nf_register_queue_handler() argument
39 rcu_assign_pointer(nf_queue_handler, qh); in nf_register_queue_handler()
134 const struct nf_queue_handler *qh; in nf_queue_nf_hook_drop() local
137 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop()
138 if (qh) in nf_queue_nf_hook_drop()
139 qh->nf_hook_drop(net); in nf_queue_nf_hook_drop()
177 const struct nf_queue_handler *qh; in __nf_queue() local
182 qh = rcu_dereference(nf_queue_handler); in __nf_queue()
183 if (!qh) in __nf_queue()
242 status = qh->outfn(entry, queuenum); in __nf_queue()
/linux/include/net/
H A Dsch_generic.h1094 struct qdisc_skb_head *qh) in __qdisc_enqueue_tail() argument
1096 struct sk_buff *last = qh->tail; in __qdisc_enqueue_tail()
1101 qh->tail = skb; in __qdisc_enqueue_tail()
1103 qh->tail = skb; in __qdisc_enqueue_tail()
1104 qh->head = skb; in __qdisc_enqueue_tail()
1106 WRITE_ONCE(qh->qlen, qh->qlen + 1); in __qdisc_enqueue_tail()
1117 struct qdisc_skb_head *qh) in __qdisc_enqueue_head() argument
1119 skb->next = qh->head; in __qdisc_enqueue_head()
1121 if (!qh->head) in __qdisc_enqueue_head()
1122 qh->tail = skb; in __qdisc_enqueue_head()
[all …]
/linux/drivers/usb/musb/
H A Dmusb_host.h112 static inline struct urb *next_urb(struct musb_qh *qh) in next_urb() argument
116 if (!qh) in next_urb()
118 queue = &qh->hep->urb_list; in next_urb()
H A Dmusb_io.h35 u16 (*get_toggle)(struct musb_qh *qh, int is_out);
36 u16 (*set_toggle)(struct musb_qh *qh, int is_out, struct urb *urb);
/linux/drivers/usb/chipidea/
H A Ddebug.c138 i, (u32)hweprx->qh.dma, (u32)hweptx->qh.dma); in ci_qheads_show()
141 *((u32 *)hweprx->qh.ptr + j), in ci_qheads_show()
142 *((u32 *)hweptx->qh.ptr + j)); in ci_qheads_show()
168 list_for_each_entry(req, &ci->ci_hw_ep[i].qh.queue, queue) { in ci_requests_show()
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c870 u8 qh, ql, pmap; in mvpp2_port_c2_cls_init() local
896 qh = (port->first_rxq >> 3) & MVPP22_CLS_C2_ATTR0_QHIGH_MASK; in mvpp2_port_c2_cls_init()
899 c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | in mvpp2_port_c2_cls_init()
993 u8 qh, ql; in mvpp2_rss_port_c2_enable() local
1000 qh = (ctx >> 3) & MVPP22_CLS_C2_ATTR0_QHIGH_MASK; in mvpp2_rss_port_c2_enable()
1003 c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | in mvpp2_rss_port_c2_enable()
1014 u8 qh, ql; in mvpp2_rss_port_c2_disable() local
1019 qh = (port->first_rxq >> 3) & MVPP22_CLS_C2_ATTR0_QHIGH_MASK; in mvpp2_rss_port_c2_disable()
1022 c2.attr[0] = MVPP22_CLS_C2_ATTR0_QHIGH(qh) | in mvpp2_rss_port_c2_disable()
1088 u8 qh, ql, pmap; in mvpp2_port_c2_tcam_rule_add() local
[all …]
H A Dmvpp2_debugfs.c209 u8 qh, ql; in mvpp2_dbgfs_flow_c2_rxq_show() local
213 qh = (c2.attr[0] >> MVPP22_CLS_C2_ATTR0_QHIGH_OFFS) & in mvpp2_dbgfs_flow_c2_rxq_show()
219 seq_printf(s, "%d\n", (qh << 3 | ql)); in mvpp2_dbgfs_flow_c2_rxq_show()
/linux/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c699 struct ep_queue_head *qh = get_qh_by_ep(ep); in fsl_prime_ep() local
702 qh->next_dtd_ptr = cpu_to_hc32(td->td_dma in fsl_prime_ep()
706 qh->size_ioc_int_sts &= cpu_to_hc32(~(EP_QUEUE_HEAD_STATUS_ACTIVE in fsl_prime_ep()
1047 struct ep_queue_head *qh; in fsl_ep_fifo_status() local
1059 qh = get_qh_by_ep(ep); in fsl_ep_fifo_status()
1065 size = (qh->size_ioc_int_sts & DTD_PACKET_SIZE) in fsl_ep_fifo_status()
1556 struct ep_queue_head *qh; in tripwire_handler() local
1559 qh = &udc->ep_qh[ep_num * 2 + EP_DIR_OUT]; in tripwire_handler()
1574 u32 *s = (u32 *)qh->setup_buffer; in tripwire_handler()
1580 memcpy(buffer_ptr, (u8 *) qh->setup_buffer, 8); in tripwire_handler()
[all …]
H A Dfsl_usb2_udc.h462 struct ep_queue_head *qh; member
539 return ep->qh; in get_qh_by_ep()

12