| /linux/drivers/usb/dwc2/ |
| A D | hcd_queue.c | 465 qh, qh->device_us, in dwc2_qh_schedule_print() 645 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() 927 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_hs() 933 qh->hs_transfers[0].duration_us = qh->host_us; in dwc2_uframe_schedule_hs() 950 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_ls() 1269 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size() 1560 qh, qh->host_us, qh->device_us); in dwc2_qh_init() 1562 qh, qh->host_interval, qh->device_interval); in dwc2_qh_init() 1565 qh, dwc2_get_ls_map(hsotg, qh)); in dwc2_qh_init() 1589 qh = kzalloc(sizeof(*qh), mem_flags); in dwc2_hcd_qh_create() [all …]
|
| A D | hcd_ddma.c | 55 (qh->host_interval + 8 - 1) / 8 : qh->host_interval; in dwc2_frame_incr_val() 254 inc = (8 + qh->host_interval - 1) / qh->host_interval; in dwc2_update_frame_list() 292 qh->ntd = 0; in dwc2_release_channel_ddma() 339 qh->ntd = 0; in dwc2_hcd_qh_init_ddma() 500 qh->td_first = qh->td_last = dwc2_frame_to_desc_idx(qh, fr_idx); in dwc2_recalc_initial_desc_idx() 534 qh->ntd++; in dwc2_fill_host_isoc_dma_desc() 929 qh->ntd--; in dwc2_cmpl_host_isoc_dma_desc() 948 qh = chan->qh; in dwc2_complete_isoc_xfer_ddma() 1133 struct dwc2_qh *qh = chan->qh; in dwc2_process_non_isoc_desc() local 1204 struct dwc2_qh *qh = chan->qh; in dwc2_complete_non_isoc_xfer_ddma() local [all …]
|
| A D | hcd.h | 133 struct dwc2_qh *qh; member 418 struct dwc2_qh *qh; member 547 struct dwc2_qh *qh); 552 struct dwc2_qh *qh) in dwc2_hcd_qtd_unlink_and_free() argument 560 struct dwc2_qh *qh); 586 static inline bool dbg_qh(struct dwc2_qh *qh) in dbg_qh() argument 708 struct dwc2_qh *qh = ep->hcpriv; in dwc2_hcd_is_bandwidth_allocated() local 710 if (qh && !list_empty(&qh->qh_list_entry)) in dwc2_hcd_is_bandwidth_allocated() 719 struct dwc2_qh *qh = ep->hcpriv; in dwc2_hcd_get_ep_bandwidth() local 721 if (!qh) { in dwc2_hcd_get_ep_bandwidth() [all …]
|
| A D | hcd_intr.c | 74 if (!chan->qh) in dwc2_hc_handle_tt_clear() 113 struct dwc2_qh *qh; in dwc2_sof_intr() local 593 if (chan->qh->do_split && in dwc2_update_isoc_urb_state() 634 if (dbg_qh(qh)) in dwc2_deactivate_qh() 636 hsotg, qh, free_qtd); in dwc2_deactivate_qh() 657 qh->channel = NULL; in dwc2_deactivate_qh() 986 if (chan->qh->do_split) { in dwc2_hc_xfercomp_intr() 1394 struct dwc2_qh *qh = chan->qh; in dwc2_hc_nyet_intr() local 1433 qh->ep_is_in) in dwc2_hc_nyet_intr() 2005 if (!qh) in dwc2_check_qtd_still_ok() [all …]
|
| A D | hcd.c | 1609 if (qh->channel && qh->channel->qh == qh) in dwc2_qh_list_free() 1610 qh->channel->qh = NULL; in dwc2_qh_list_free() 1916 qh = urb_qtd->qh; in dwc2_hcd_urb_dequeue() 1917 if (!qh) { in dwc2_hcd_urb_dequeue() 2004 if (qh->channel && qh->channel->qh == qh) in dwc2_hcd_endpoint_disable() 2005 qh->channel->qh = NULL; in dwc2_hcd_endpoint_disable() 2026 if (!qh) in dwc2_hcd_endpoint_reset() 2667 chan->qh = qh; in dwc2_assign_and_init_hc() 4777 if (qh_allocated && qh->channel && qh->channel->qh == qh) in _dwc2_hcd_urb_enqueue() 4778 qh->channel->qh = NULL; in _dwc2_hcd_urb_enqueue() [all …]
|
| /linux/drivers/usb/host/ |
| A D | uhci-q.c | 252 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 D | ehci-q.c | 358 qh); in qh_completions() 771 if (!qh) in qh_make() 830 qh->ps.bw_period = qh->ps.bw_uperiod >> 3; in qh_make() 862 qh->ps.bw_uperiod = qh->ps.bw_period << 3; in qh_make() 998 head->qh_next.qh = qh; in qh_link_async() 1264 while (prev->qh_next.qh != qh) in single_unlink_async() 1270 ehci->qh_scan_next = qh->qh_next.qh; in single_unlink_async() 1407 qh->qh_next.qh = NULL; in end_unlink_async() 1428 for (qh = ehci->async->qh_next.qh; qh; qh = qh->qh_next.qh) { in unlink_empty_async() 1459 qh = ehci->async->qh_next.qh; in unlink_empty_async_suspended() [all …]
|
| A D | oxu210hp-hcd.c | 1922 head->qh_next.qh = qh; in qh_link_async() 2065 qh->qh_next.qh = NULL; in end_unlink_async() 2172 qh = qh_get(qh); in scan_async() 2194 qh = qh->qh_next.qh; in scan_async() 2334 qh, qh->start, qh->usecs, qh->c_usecs); in qh_link_periodic() 2367 if (qh != here.qh) { in qh_link_periodic() 2372 prev->qh = qh; in qh_link_periodic() 2381 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic() 2414 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic() 2421 qh, qh->start, qh->usecs, qh->c_usecs); in qh_unlink_periodic() [all …]
|
| A D | ehci-mem.c | 57 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 D | ehci-sched.c | 530 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic() 555 while (here.ptr && qh != here.qh) { in qh_link_periodic() 563 if (qh != here.qh) { in qh_link_periodic() 568 prev->qh = qh; in qh_link_periodic() 578 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_link_periodic() 616 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_unlink_periodic() 623 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_unlink_periodic() 821 qh->ps.bw_uperiod, qh->ps.c_usecs)) in check_intr_schedule() 824 qh->ps.bw_uperiod, qh->ps.c_usecs)) in check_intr_schedule() 889 qh->ps.bw_phase = qh->ps.phase & (qh->ps.bw_period - 1); in qh_schedule() [all …]
|
| A D | uhci-debug.c | 173 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 D | ehci-hcd.c | 926 struct ehci_qh *qh; in ehci_urb_dequeue() local 978 struct ehci_qh *qh; in ehci_endpoint_disable() local 985 qh = ep->hcpriv; in ehci_endpoint_disable() 986 if (!qh) in ehci_endpoint_disable() 992 if (qh->hw == NULL) { in ehci_endpoint_disable() 1005 switch (qh->qh_state) { in ehci_endpoint_disable() 1024 if (qh->clearing_tt) in ehci_endpoint_disable() 1038 qh, ep->desc.bEndpointAddress, qh->qh_state, in ehci_endpoint_disable() 1051 struct ehci_qh *qh; in ehci_endpoint_reset() local 1061 qh = ep->hcpriv; in ehci_endpoint_reset() [all …]
|
| A D | ehci-timer.c | 223 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 D | ehci-dbg.c | 98 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 D | musb_host.c | 333 if (qh && list_empty(&qh->hep->urb_list)) { in musb_advance_schedule() 383 if (qh != NULL && qh->is_ready) { in musb_advance_schedule() 598 if (qh->hb_mult == 1 || (qh->hb_mult > 1 && in musb_tx_dma_set_mode_mentor() 689 qh->h_addr_reg, qh->h_port_reg, in musb_ep_program() 1382 if (qh->segsize < qh->maxpacket) in musb_host_tx() 2041 diff -= (qh->maxpacket * qh->hb_mult); in musb_schedule() 2092 qh->hb_mult, qh->maxpacket); in musb_schedule() 2107 qh->hep->hcpriv = qh; in musb_schedule() 2157 qh = kzalloc(sizeof *qh, mem_flags); in musb_urb_enqueue() 2188 qh->hb_mult, qh->maxpacket & 0x7ff); in musb_urb_enqueue() [all …]
|
| A D | musb_host.h | 112 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 D | mediatek.c | 303 static u16 mtk_musb_get_toggle(struct musb_qh *qh, int is_out) in mtk_musb_get_toggle() argument 305 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle() 306 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle() 313 static u16 mtk_musb_set_toggle(struct musb_qh *qh, int is_out, struct urb *urb) in mtk_musb_set_toggle() argument 315 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle() 316 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle() 319 toggle = usb_gettoggle(urb->dev, qh->epnum, is_out); in mtk_musb_set_toggle()
|
| A D | musb_io.h | 35 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/fotg210/ |
| A D | fotg210-hcd.c | 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() 470 qh = qh->unlink_next) in fill_async_buffer() 2921 head->qh_next.qh = qh; in qh_link_async() 3133 qh->qh_next.qh = NULL; in end_unlink_async() 3161 next = qh->qh_next.qh; in unlink_empty_async() 3515 if (qh != here.qh) { in qh_link_periodic() 3520 prev->qh = qh; in qh_link_periodic() 3529 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic() 3570 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic() [all …]
|
| /linux/drivers/soc/ti/ |
| A D | knav_qmss_queue.c | 100 qh->notifier_fn(qh->notifier_fn_arg); in knav_queue_notify() 224 qh = devm_kzalloc(inst->kdev->dev, sizeof(*qh), GFP_KERNEL); in __knav_queue_open() 225 if (!qh) in __knav_queue_open() 235 qh->inst = inst; in __knav_queue_open() 253 return qh; in __knav_queue_open() 256 if (qh->stats) in __knav_queue_open() 289 return qh; in knav_queue_open_by_id() 314 return qh; in knav_queue_open_by_type() 457 qh, in knav_queue_debug_show_instance() 544 return qh; in knav_queue_open() [all …]
|
| /linux/drivers/usb/isp1760/ |
| A D | isp1760-hcd.c | 664 if (!qh) in qh_alloc() 671 return qh; in qh_alloc() 1038 slots[slot].qh = qh; in start_bus_transfer() 1150 if (slots[curr_slot].qh == qh) in enqueue_qtds() 1407 qh = slots[slot].qh; in handle_done_ptds() 1934 if (qh) { in isp1760_urb_enqueue() 1981 priv->atl_slots[qh->slot].qh = NULL; in kill_transfer() 1989 priv->int_slots[qh->slot].qh = NULL; in kill_transfer() 2046 if (!qh) { in isp1760_urb_dequeue() 2077 if (!qh) in isp1760_endpoint_disable() [all …]
|
| /linux/net/netfilter/ |
| A D | nf_queue.c | 34 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() 117 const struct nf_queue_handler *qh; in nf_queue_nf_hook_drop() local 120 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop() 121 if (qh) in nf_queue_nf_hook_drop() 122 qh->nf_hook_drop(net); in nf_queue_nf_hook_drop() 160 const struct nf_queue_handler *qh; in __nf_queue() local 165 qh = rcu_dereference(nf_queue_handler); in __nf_queue() 166 if (!qh) in __nf_queue() 225 status = qh->outfn(entry, queuenum); in __nf_queue()
|
| /linux/include/net/ |
| A D | sch_generic.h | 994 qh->tail = skb; in __qdisc_enqueue_tail() 996 qh->tail = skb; in __qdisc_enqueue_tail() 997 qh->head = skb; in __qdisc_enqueue_tail() 999 qh->qlen++; in __qdisc_enqueue_tail() 1014 if (!qh->head) in __qdisc_enqueue_head() 1016 qh->head = skb; in __qdisc_enqueue_head() 1017 qh->qlen++; in __qdisc_enqueue_head() 1026 qh->qlen--; in __qdisc_dequeue_head() 1195 if (qh->qlen) { in __qdisc_reset_queue() 1196 rtnl_kfree_skbs(qh->head, qh->tail); in __qdisc_reset_queue() [all …]
|
| /linux/drivers/usb/chipidea/ |
| A D | debug.c | 138 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()
|
| A D | udc.c | 590 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() 805 !list_empty(&hwep->qh.queue) && in _ep_set_halt() 950 if (!list_empty(&hwep->qh.queue)) { in _ep_queue() 1378 if (!list_empty(&hwep->qh.queue)) { in ep_enable() 1559 list_empty(&hwep->qh.queue)) in ep_dequeue() 1890 INIT_LIST_HEAD(&hwep->qh.queue); in init_eps() 1892 &hwep->qh.dma); in init_eps() 1893 if (hwep->qh.ptr == NULL) in init_eps() [all …]
|