/linux-6.3-rc2/drivers/usb/dwc2/ |
A D | hcd_queue.c | 501 qh, qh->device_us, in dwc2_qh_schedule_print() 681 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() 963 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_hs() 969 qh->hs_transfers[0].duration_us = qh->host_us; in dwc2_uframe_schedule_hs() 986 WARN_ON(qh->host_us != qh->device_us); in dwc2_uframe_schedule_ls() 1305 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size() 1596 qh, qh->host_us, qh->device_us); in dwc2_qh_init() 1598 qh, qh->host_interval, qh->device_interval); in dwc2_qh_init() 1601 qh, dwc2_get_ls_map(hsotg, qh)); in dwc2_qh_init() 1625 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() 922 qh->ntd--; in dwc2_cmpl_host_isoc_dma_desc() 941 qh = chan->qh; in dwc2_complete_isoc_xfer_ddma() 1126 struct dwc2_qh *qh = chan->qh; in dwc2_process_non_isoc_desc() local 1197 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() 4769 if (qh_allocated && qh->channel && qh->channel->qh == qh) in _dwc2_hcd_urb_enqueue() 4770 qh->channel->qh = NULL; in _dwc2_hcd_urb_enqueue() [all …]
|
/linux-6.3-rc2/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 | 362 qh); in qh_completions() 775 if (!qh) in qh_make() 834 qh->ps.bw_period = qh->ps.bw_uperiod >> 3; in qh_make() 866 qh->ps.bw_uperiod = qh->ps.bw_period << 3; in qh_make() 1002 head->qh_next.qh = qh; in qh_link_async() 1268 while (prev->qh_next.qh != qh) in single_unlink_async() 1274 ehci->qh_scan_next = qh->qh_next.qh; in single_unlink_async() 1411 qh->qh_next.qh = NULL; in end_unlink_async() 1432 for (qh = ehci->async->qh_next.qh; qh; qh = qh->qh_next.qh) { in unlink_empty_async() 1463 qh = ehci->async->qh_next.qh; in unlink_empty_async_suspended() [all …]
|
A D | oxu210hp-hcd.c | 1947 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 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 | 529 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 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 | 922 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 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-6.3-rc2/drivers/usb/musb/ |
A D | musb_host.c | 377 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 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 | 302 static u16 mtk_musb_get_toggle(struct musb_qh *qh, int is_out) in mtk_musb_get_toggle() argument 304 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle() 305 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle() 312 static u16 mtk_musb_set_toggle(struct musb_qh *qh, int is_out, struct urb *urb) in mtk_musb_set_toggle() argument 314 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle() 315 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle() 318 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-6.3-rc2/drivers/usb/fotg210/ |
A D | fotg210-hcd.c | 468 for (qh = fotg210->async->qh_next.qh; size > 0 && qh; in fill_async_buffer() 469 qh = qh->qh_next.qh) in fill_async_buffer() 477 qh = qh->unlink_next) in fill_async_buffer() 2928 head->qh_next.qh = qh; in qh_link_async() 3140 qh->qh_next.qh = NULL; in end_unlink_async() 3168 next = qh->qh_next.qh; in unlink_empty_async() 3522 if (qh != here.qh) { in qh_link_periodic() 3527 prev->qh = qh; in qh_link_periodic() 3536 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic() 3577 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic() [all …]
|
/linux-6.3-rc2/drivers/soc/ti/ |
A D | knav_qmss_queue.c | 98 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-6.3-rc2/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-6.3-rc2/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() 119 const struct nf_queue_handler *qh; in nf_queue_nf_hook_drop() local 122 qh = rcu_dereference(nf_queue_handler); in nf_queue_nf_hook_drop() 123 if (qh) in nf_queue_nf_hook_drop() 124 qh->nf_hook_drop(net); in nf_queue_nf_hook_drop() 162 const struct nf_queue_handler *qh; in __nf_queue() local 167 qh = rcu_dereference(nf_queue_handler); in __nf_queue() 168 if (!qh) in __nf_queue() 227 status = qh->outfn(entry, queuenum); in __nf_queue()
|
/linux-6.3-rc2/include/net/ |
A D | sch_generic.h | 951 qh->tail = skb; in __qdisc_enqueue_tail() 953 qh->tail = skb; in __qdisc_enqueue_tail() 954 qh->head = skb; in __qdisc_enqueue_tail() 956 qh->qlen++; in __qdisc_enqueue_tail() 971 if (!qh->head) in __qdisc_enqueue_head() 973 qh->head = skb; in __qdisc_enqueue_head() 974 qh->qlen++; in __qdisc_enqueue_head() 983 qh->qlen--; in __qdisc_dequeue_head() 1121 if (qh->qlen) { in __qdisc_reset_queue() 1122 rtnl_kfree_skbs(qh->head, qh->tail); in __qdisc_reset_queue() [all …]
|
/linux-6.3-rc2/drivers/usb/chipidea/ |
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() 804 !list_empty(&hwep->qh.queue) && in _ep_set_halt() 943 if (!list_empty(&hwep->qh.queue)) { in _ep_queue() 1371 if (!list_empty(&hwep->qh.queue)) { in ep_enable() 1552 list_empty(&hwep->qh.queue)) in ep_dequeue() 1876 INIT_LIST_HEAD(&hwep->qh.queue); in init_eps() 1878 &hwep->qh.dma); in init_eps() 1879 if (hwep->qh.ptr == NULL) in init_eps() [all …]
|
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()
|