Home
last modified time | relevance | path

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

12

/linux/drivers/usb/dwc2/
A Dhcd_queue.c531 qh, qh->device_us, in dwc2_qh_schedule_print()
711 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split()
993 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_hs()
999 qh->hs_transfers[0].duration_us = qh->host_us; in dwc2_uframe_schedule_hs()
1016 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_ls()
1335 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size()
1626 qh, qh->host_us, qh->device_us); in dwc2_qh_init()
1628 qh, qh->host_interval, qh->device_interval); in dwc2_qh_init()
1631 qh, dwc2_get_ls_map(hsotg, qh)); in dwc2_qh_init()
1655 qh = kzalloc(sizeof(*qh), mem_flags); in dwc2_hcd_qh_create()
[all …]
A Dhcd_ddma.c85 (qh->host_interval + 8 - 1) / 8 : qh->host_interval; in dwc2_frame_incr_val()
284 inc = (8 + qh->host_interval - 1) / qh->host_interval; in dwc2_update_frame_list()
322 qh->ntd = 0; in dwc2_release_channel_ddma()
369 qh->ntd = 0; in dwc2_hcd_qh_init_ddma()
530 qh->td_first = qh->td_last = dwc2_frame_to_desc_idx(qh, fr_idx); in dwc2_recalc_initial_desc_idx()
564 qh->ntd++; in dwc2_fill_host_isoc_dma_desc()
952 qh->ntd--; in dwc2_cmpl_host_isoc_dma_desc()
971 qh = chan->qh; in dwc2_complete_isoc_xfer_ddma()
1156 struct dwc2_qh *qh = chan->qh; in dwc2_process_non_isoc_desc() local
1227 struct dwc2_qh *qh = chan->qh; in dwc2_complete_non_isoc_xfer_ddma() local
[all …]
A Dhcd.h162 struct dwc2_qh *qh; member
447 struct dwc2_qh *qh; member
576 struct dwc2_qh *qh);
581 struct dwc2_qh *qh) in dwc2_hcd_qtd_unlink_and_free() argument
589 struct dwc2_qh *qh);
615 static inline bool dbg_qh(struct dwc2_qh *qh) in dbg_qh() argument
737 struct dwc2_qh *qh = ep->hcpriv; in dwc2_hcd_is_bandwidth_allocated() local
739 if (qh && !list_empty(&qh->qh_list_entry)) in dwc2_hcd_is_bandwidth_allocated()
748 struct dwc2_qh *qh = ep->hcpriv; in dwc2_hcd_get_ep_bandwidth() local
750 if (!qh) { in dwc2_hcd_get_ep_bandwidth()
[all …]
A Dhcd_intr.c104 if (!chan->qh) in dwc2_hc_handle_tt_clear()
143 struct dwc2_qh *qh; in dwc2_sof_intr() local
623 if (chan->qh->do_split && in dwc2_update_isoc_urb_state()
664 if (dbg_qh(qh)) in dwc2_deactivate_qh()
666 hsotg, qh, free_qtd); in dwc2_deactivate_qh()
687 qh->channel = NULL; in dwc2_deactivate_qh()
1016 if (chan->qh->do_split) { in dwc2_hc_xfercomp_intr()
1424 struct dwc2_qh *qh = chan->qh; in dwc2_hc_nyet_intr() local
1463 qh->ep_is_in) in dwc2_hc_nyet_intr()
2035 if (!qh) in dwc2_check_qtd_still_ok()
[all …]
A Dhcd.c1638 if (qh->channel && qh->channel->qh == qh) in dwc2_qh_list_free()
1639 qh->channel->qh = NULL; in dwc2_qh_list_free()
1945 qh = urb_qtd->qh; in dwc2_hcd_urb_dequeue()
1946 if (!qh) { in dwc2_hcd_urb_dequeue()
2033 if (qh->channel && qh->channel->qh == qh) in dwc2_hcd_endpoint_disable()
2034 qh->channel->qh = NULL; in dwc2_hcd_endpoint_disable()
2055 if (!qh) in dwc2_hcd_endpoint_reset()
2696 chan->qh = qh; in dwc2_assign_and_init_hc()
4797 if (qh_allocated && qh->channel && qh->channel->qh == qh) in _dwc2_hcd_urb_enqueue()
4798 qh->channel->qh = NULL; in _dwc2_hcd_urb_enqueue()
[all …]
/linux/drivers/usb/host/
A Duhci-q.c252 if (!qh) in uhci_alloc_qh()
650 qh->period, qh->phase, minimax_load, qh->load); in uhci_check_bandwidth()
686 qh->period, qh->phase, load); in uhci_reserve_bandwidth()
719 qh->period, qh->phase, load); in uhci_release_bandwidth()
1173 struct uhci_qh *qh = urbp->qh; in uhci_result_common() local
1373 struct uhci_qh *qh = urbp->qh; in uhci_result_isochronous() local
1402 qh->iso_frame += qh->period; in uhci_result_isochronous()
1435 urbp->qh = qh; in uhci_urb_enqueue()
1493 qh = ((struct urb_priv *) urb->hcpriv)->qh; in uhci_urb_dequeue()
1711 if (qh->post_td && qh_element(qh) == in uhci_advance_check()
[all …]
A Dehci-q.c361 qh); in qh_completions()
774 if (!qh) in qh_make()
833 qh->ps.bw_period = qh->ps.bw_uperiod >> 3; in qh_make()
865 qh->ps.bw_uperiod = qh->ps.bw_period << 3; in qh_make()
1001 head->qh_next.qh = qh; in qh_link_async()
1267 while (prev->qh_next.qh != qh) in single_unlink_async()
1273 ehci->qh_scan_next = qh->qh_next.qh; in single_unlink_async()
1410 qh->qh_next.qh = NULL; in end_unlink_async()
1431 for (qh = ehci->async->qh_next.qh; qh; qh = qh->qh_next.qh) { in unlink_empty_async()
1462 qh = ehci->async->qh_next.qh; in unlink_empty_async_suspended()
[all …]
A Doxu210hp-hcd.c1947 head->qh_next.qh = qh; in qh_link_async()
2090 qh->qh_next.qh = NULL; in end_unlink_async()
2197 qh = qh_get(qh); in scan_async()
2219 qh = qh->qh_next.qh; in scan_async()
2359 qh, qh->start, qh->usecs, qh->c_usecs); in qh_link_periodic()
2392 if (qh != here.qh) { in qh_link_periodic()
2397 prev->qh = qh; in qh_link_periodic()
2406 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
2439 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
2446 qh, qh->start, qh->usecs, qh->c_usecs); in qh_unlink_periodic()
[all …]
A Dfotg210-hcd.c469 for (qh = fotg210->async->qh_next.qh; size > 0 && qh; in fill_async_buffer()
470 qh = qh->qh_next.qh) in fill_async_buffer()
478 qh = qh->unlink_next) in fill_async_buffer()
2929 head->qh_next.qh = qh; in qh_link_async()
3141 qh->qh_next.qh = NULL; in end_unlink_async()
3169 next = qh->qh_next.qh; in unlink_empty_async()
3523 if (qh != here.qh) { in qh_link_periodic()
3528 prev->qh = qh; in qh_link_periodic()
3537 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
3578 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
[all …]
A Dehci-sched.c529 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic()
554 while (here.ptr && qh != here.qh) { in qh_link_periodic()
562 if (qh != here.qh) { in qh_link_periodic()
567 prev->qh = qh; in qh_link_periodic()
577 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_link_periodic()
615 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_unlink_periodic()
622 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_unlink_periodic()
820 qh->ps.bw_uperiod, qh->ps.c_usecs)) in check_intr_schedule()
823 qh->ps.bw_uperiod, qh->ps.c_usecs)) in check_intr_schedule()
888 qh->ps.bw_phase = qh->ps.phase & (qh->ps.bw_period - 1); in qh_schedule()
[all …]
A Dehci-mem.c57 if (!list_empty (&qh->qtd_list) || qh->qh_next.ptr) { in qh_destroy()
61 if (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()
72 qh = kzalloc(sizeof *qh, GFP_ATOMIC); in ehci_qh_alloc()
73 if (!qh) in ehci_qh_alloc()
77 if (!qh->hw) in ehci_qh_alloc()
79 qh->qh_dma = dma; in ehci_qh_alloc()
91 return qh; in ehci_qh_alloc()
93 dma_pool_free(ehci->qh_pool, qh->hw, qh->qh_dma); in ehci_qh_alloc()
[all …]
A Duhci-debug.c173 switch (qh->type) { in uhci_show_qh()
182 space, "", qh, qtype, in uhci_show_qh()
188 space, "", qh->period, qh->phase, qh->load, in uhci_show_qh()
189 qh->iso_frame, qh->iso_packet_desc); in uhci_show_qh()
192 space, "", qh->period, qh->phase, qh->load); in uhci_show_qh()
211 if (list_empty(&qh->queue)) { in uhci_show_qh()
247 if (qh->dummy_td) { in uhci_show_qh()
378 struct uhci_qh *qh; in uhci_sprint_schedule() local
486 qh = uhci->skelqh[i]; in uhci_sprint_schedule()
506 head = &qh->node; in uhci_sprint_schedule()
[all …]
A Dehci-hcd.c922 struct ehci_qh *qh; in ehci_urb_dequeue() local
974 struct ehci_qh *qh; in ehci_endpoint_disable() local
981 qh = ep->hcpriv; in ehci_endpoint_disable()
982 if (!qh) in ehci_endpoint_disable()
988 if (qh->hw == NULL) { in ehci_endpoint_disable()
1001 switch (qh->qh_state) { in ehci_endpoint_disable()
1020 if (qh->clearing_tt) in ehci_endpoint_disable()
1034 qh, ep->desc.bEndpointAddress, qh->qh_state, in ehci_endpoint_disable()
1047 struct ehci_qh *qh; in ehci_endpoint_reset() local
1057 qh = ep->hcpriv; in ehci_endpoint_reset()
[all …]
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 …]
A Dehci-dbg.c98 struct ehci_qh_hw *hw = qh->hw; in dbg_qh()
401 qh, scratch & 0x007f, 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()
666 hw = p.qh->hw; in fill_periodic_buffer()
668 p.qh->ps.period, in fill_periodic_buffer()
673 p.qh); in fill_periodic_buffer()
680 if (p.qh->qh_next.ptr) { in fill_periodic_buffer()
691 hw, p.qh, size); in fill_periodic_buffer()
694 seen[seen_count++].qh = p.qh; in fill_periodic_buffer()
[all …]
/linux/drivers/usb/musb/
A Dmusb_host.c377 if (qh != NULL && qh->is_ready) { in musb_advance_schedule()
561 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
592 if (qh->hb_mult == 1 || (qh->hb_mult > 1 && in musb_tx_dma_set_mode_mentor()
683 qh->h_addr_reg, qh->h_port_reg, in musb_ep_program()
1376 if (qh->segsize < qh->maxpacket) in musb_host_tx()
2035 diff -= (qh->maxpacket * qh->hb_mult); in musb_schedule()
2086 qh->hb_mult, qh->maxpacket); in musb_schedule()
2101 qh->hep->hcpriv = qh; in musb_schedule()
2151 qh = kzalloc(sizeof *qh, mem_flags); in musb_urb_enqueue()
2182 qh->hb_mult, qh->maxpacket & 0x7ff); in musb_urb_enqueue()
[all …]
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()
A Dmediatek.c354 static u16 mtk_musb_get_toggle(struct musb_qh *qh, int is_out) in mtk_musb_get_toggle() argument
356 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle()
357 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle()
364 static u16 mtk_musb_set_toggle(struct musb_qh *qh, int is_out, struct urb *urb) in mtk_musb_set_toggle() argument
366 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle()
367 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle()
370 toggle = usb_gettoggle(urb->dev, qh->epnum, is_out); in mtk_musb_set_toggle()
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/soc/ti/
A Dknav_qmss_queue.c98 qh->notifier_fn(qh->notifier_fn_arg); in knav_queue_notify()
222 qh = devm_kzalloc(inst->kdev->dev, sizeof(*qh), GFP_KERNEL); in __knav_queue_open()
223 if (!qh) in __knav_queue_open()
233 qh->inst = inst; in __knav_queue_open()
251 return qh; in __knav_queue_open()
254 if (qh->stats) in __knav_queue_open()
287 return qh; in knav_queue_open_by_id()
312 return qh; in knav_queue_open_by_type()
455 qh, in knav_queue_debug_show_instance()
542 return qh; in knav_queue_open()
[all …]
/linux/drivers/usb/isp1760/
A Disp1760-hcd.c664 if (!qh) in qh_alloc()
671 return qh; in qh_alloc()
1039 slots[slot].qh = qh; in start_bus_transfer()
1151 if (slots[curr_slot].qh == qh) in enqueue_qtds()
1408 qh = slots[slot].qh; in handle_done_ptds()
1937 if (qh) { in isp1760_urb_enqueue()
1984 priv->atl_slots[qh->slot].qh = NULL; in kill_transfer()
1992 priv->int_slots[qh->slot].qh = NULL; in kill_transfer()
2049 if (!qh) { in isp1760_urb_dequeue()
2080 if (!qh) in isp1760_endpoint_disable()
[all …]
/linux/include/net/
A Dsch_generic.h983 qh->head = NULL; in qdisc_skb_head_init()
984 qh->tail = NULL; in qdisc_skb_head_init()
985 qh->qlen = 0; in qdisc_skb_head_init()
1001 qh->qlen++; in __qdisc_enqueue_tail()
1016 if (!qh->head) in __qdisc_enqueue_head()
1018 qh->head = skb; in __qdisc_enqueue_head()
1019 qh->qlen++; in __qdisc_enqueue_head()
1028 qh->qlen--; in __qdisc_dequeue_head()
1166 if (qh->qlen) { in __qdisc_reset_queue()
1167 rtnl_kfree_skbs(qh->head, qh->tail); in __qdisc_reset_queue()
[all …]
/linux/net/netfilter/
A Dnf_queue.c34 void nf_register_queue_handler(const struct nf_queue_handler *qh) in nf_register_queue_handler() argument
38 rcu_assign_pointer(nf_queue_handler, qh); in nf_register_queue_handler()
108 const struct nf_queue_handler *qh; in nf_queue_nf_hook_drop() local
111 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop()
112 if (qh) in nf_queue_nf_hook_drop()
113 qh->nf_hook_drop(net); in nf_queue_nf_hook_drop()
151 const struct nf_queue_handler *qh; in __nf_queue() local
156 qh = rcu_dereference(nf_queue_handler); in __nf_queue()
157 if (!qh) in __nf_queue()
201 status = qh->outfn(entry, queuenum); in __nf_queue()
/linux/drivers/usb/chipidea/
A Dudc.c590 if (!list_empty(&hwep->qh.queue)) { in _hardware_enqueue()
623 hwep->qh.ptr->td.token &= in _hardware_enqueue()
658 hwep->qh.ptr->td.token &= in reprime_dtd()
804 !list_empty(&hwep->qh.queue) && in _ep_set_halt()
943 if (!list_empty(&hwep->qh.queue)) { in _ep_queue()
1368 if (!list_empty(&hwep->qh.queue)) { in ep_enable()
1549 list_empty(&hwep->qh.queue)) in ep_dequeue()
1859 INIT_LIST_HEAD(&hwep->qh.queue); in init_eps()
1861 &hwep->qh.dma); in init_eps()
1862 if (hwep->qh.ptr == NULL) in init_eps()
[all …]
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()

Completed in 117 milliseconds

12