/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | fotg210.h | 310 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) 339 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) 340 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) 341 #define STATUS_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_STS) 354 #define QTD_MASK(fotg210) cpu_to_hc32(fotg210, ~0x1f) 361 #define Q_NEXT_TYPE(fotg210, dma) ((dma) & cpu_to_hc32(fotg210, 3 << 1)) 378 (cpu_to_hc32(fotg210, (((u32)dma)&~0x01f)|Q_TYPE_QH)) 382 cpu_to_hc32(fotg210, 1) /* "null pointer" to hw */ 554 #define ITD_ACTIVE(fotg210) cpu_to_hc32(fotg210, FOTG210_ISOC_ACTIVE) 665 static inline __hc32 cpu_to_hc32(cons function [all...] |
H A D | ohci-q.c | 148 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link() 173 *prev_p = cpu_to_hc32(ohci, ed->dma); in periodic_link() 210 ohci->ed_controltail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 230 ohci->ed_bulktail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 292 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_unlink() 319 ed->hwINFO |= cpu_to_hc32 (ohci, ED_SKIP); in ed_deschedule() 433 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 466 ed->hwINFO = cpu_to_hc32(ohci, info); in ed_get() 486 ed->hwINFO |= cpu_to_hc32 (ohci, ED_DEQUEUE); in start_ed_unlink() 557 td->hwINFO = cpu_to_hc32 (ohc in td_fill() [all...] |
H A D | ehci.h | 278 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) 307 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) 308 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) 309 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) 322 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) 329 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) 346 (cpu_to_hc32(ehci, (((u32) dma) & ~0x01f) | Q_TYPE_QH)) 349 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */ 520 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE) 565 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehc 815 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() function 840 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() function [all...] |
H A D | uhci-hcd.h | 85 #define UHCI_PTR_BITS(uhci) cpu_to_hc32((uhci), 0x000F) 86 #define UHCI_PTR_TERM(uhci) cpu_to_hc32((uhci), 0x0001) 87 #define UHCI_PTR_QH(uhci) cpu_to_hc32((uhci), 0x0002) 88 #define UHCI_PTR_DEPTH(uhci) cpu_to_hc32((uhci), 0x0004) 89 #define UHCI_PTR_BREADTH(uhci) cpu_to_hc32((uhci), 0x0000) 194 cpu_to_hc32((uhci), (qh)->dma_handle)) 281 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle)) 686 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function 703 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function
|
H A D | ehci-sched.c | 93 *hw_p = cpu_to_hc32(ehci, ehci->dummy->qh_dma); in periodic_unlink() 538 if (type == cpu_to_hc32(ehci, Q_TYPE_QH)) in qh_link_periodic() 889 hw->hw_info2 &= cpu_to_hc32(ehci, ~(QH_CMASK | QH_SMASK)); in qh_schedule() 890 hw->hw_info2 |= cpu_to_hc32(ehci, qh->ps.cs_mask); in qh_schedule() 1042 stream->buf0 = cpu_to_hc32(ehci, (epnum << 8) | dev->devnum); in iso_stream_init() 1043 stream->buf1 = cpu_to_hc32(ehci, buf1); in iso_stream_init() 1044 stream->buf2 = cpu_to_hc32(ehci, multi); in iso_stream_init() 1108 stream->address = cpu_to_hc32(ehci, addr); in iso_stream_init() 1204 uframe->transaction = cpu_to_hc32(ehci, trans); in itd_sched_init() 1444 stream->splits = cpu_to_hc32(ehc in sitd_slot_ok() [all...] |
H A D | ehci-q.c | 44 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 45 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 56 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 57 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 70 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 94 if (!(hw->hw_info1 & cpu_to_hc32(ehci, QH_TOGGLE_CTL))) { in qh_update() 100 hw->hw_token &= ~cpu_to_hc32(ehci, QTD_TOGGLE); in qh_update() 105 hw->hw_token &= cpu_to_hc32(ehci, QTD_TOGGLE | QTD_STS_PING); in qh_update() 387 qtd->hw_token = cpu_to_hc32(ehci, in qh_completions() 390 hw->hw_token = cpu_to_hc32(ehc in qh_completions() [all...] |
H A D | ohci-mem.c | 103 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc() 120 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
|
H A D | fotg210-hcd.c | 388 (cpu_to_hc32(fotg210, QTD_TOGGLE) & hw->hw_token) in qh_lines() 400 else if (hw->hw_qtd_next == cpu_to_hc32(fotg210, td->qtd_dma)) in qh_lines() 1809 qtd->hw_token = cpu_to_hc32(fotg210, QTD_STS_HALT); in fotg210_qtd_init() 1997 qtd->hw_buf[0] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill() 1998 qtd->hw_buf_hi[0] = cpu_to_hc32(fotg210, (u32)(addr >> 32)); in qtd_fill() 2009 qtd->hw_buf[i] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill() 2010 qtd->hw_buf_hi[i] = cpu_to_hc32(fotg210, in qtd_fill() 2023 qtd->hw_token = cpu_to_hc32(fotg210, (count << 16) | token); in qtd_fill() 2045 if (!(hw->hw_info1 & cpu_to_hc32(fotg210, QH_TOGGLE_CTL))) { in qh_update() 2051 hw->hw_token &= ~cpu_to_hc32(fotg21 in qh_update() [all...] |
H A D | ehci-mem.c | 30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init() 209 ehci->periodic[i] = cpu_to_hc32(ehci, in ehci_mem_init()
|
H A D | uhci-q.c | 33 uhci->term_td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_set_next_interrupt() 38 uhci->term_td->status &= ~cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_clear_next_interrupt() 137 td->status = cpu_to_hc32(uhci, status); in uhci_fill_td() 138 td->token = cpu_to_hc32(uhci, token); in uhci_fill_td() 139 td->buffer = cpu_to_hc32(uhci, buffer); in uhci_fill_td() 407 td->token ^= cpu_to_hc32(uhci, in uhci_fixup_toggles() 888 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_control() 1031 td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_submit_common() 1043 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_common() 1349 td->status |= cpu_to_hc32(uhc in uhci_submit_isochronous() [all...] |
H A D | ehci-hcd.c | 522 hw->hw_info1 = cpu_to_hc32(ehci, QH_HEAD); in ehci_init() 524 hw->hw_info1 |= cpu_to_hc32(ehci, QH_INACTIVATE); in ehci_init() 526 hw->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_init()
|
H A D | ohci.h | 606 static inline __hc32 cpu_to_hc32 (const struct ohci_hcd *ohci, const u32 x) in cpu_to_hc32() function
|
/kernel/linux/linux-6.6/drivers/usb/fotg210/ |
H A D | fotg210-hcd.h | 308 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) 337 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) 338 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) 339 #define STATUS_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_STS) 352 #define QTD_MASK(fotg210) cpu_to_hc32(fotg210, ~0x1f) 359 #define Q_NEXT_TYPE(fotg210, dma) ((dma) & cpu_to_hc32(fotg210, 3 << 1)) 376 (cpu_to_hc32(fotg210, (((u32)dma)&~0x01f)|Q_TYPE_QH)) 380 cpu_to_hc32(fotg210, 1) /* "null pointer" to hw */ 552 #define ITD_ACTIVE(fotg210) cpu_to_hc32(fotg210, FOTG210_ISOC_ACTIVE) 663 static inline __hc32 cpu_to_hc32(cons function [all...] |
H A D | fotg210-hcd.c | 387 (cpu_to_hc32(fotg210, QTD_TOGGLE) & hw->hw_token) in qh_lines() 399 else if (hw->hw_qtd_next == cpu_to_hc32(fotg210, td->qtd_dma)) in qh_lines() 1809 qtd->hw_token = cpu_to_hc32(fotg210, QTD_STS_HALT); in fotg210_qtd_init() 1998 qtd->hw_buf[0] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill() 1999 qtd->hw_buf_hi[0] = cpu_to_hc32(fotg210, (u32)(addr >> 32)); in qtd_fill() 2010 qtd->hw_buf[i] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill() 2011 qtd->hw_buf_hi[i] = cpu_to_hc32(fotg210, in qtd_fill() 2024 qtd->hw_token = cpu_to_hc32(fotg210, (count << 16) | token); in qtd_fill() 2046 if (!(hw->hw_info1 & cpu_to_hc32(fotg210, QH_TOGGLE_CTL))) { in qh_update() 2052 hw->hw_token &= ~cpu_to_hc32(fotg21 in qh_update() [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-q.c | 148 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link() 173 *prev_p = cpu_to_hc32(ohci, ed->dma); in periodic_link() 210 ohci->ed_controltail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 230 ohci->ed_bulktail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 292 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_unlink() 319 ed->hwINFO |= cpu_to_hc32 (ohci, ED_SKIP); in ed_deschedule() 433 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 466 ed->hwINFO = cpu_to_hc32(ohci, info); in ed_get() 486 ed->hwINFO |= cpu_to_hc32 (ohci, ED_DEQUEUE); in start_ed_unlink() 557 td->hwINFO = cpu_to_hc32 (ohc in td_fill() [all...] |
H A D | ehci.h | 281 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) 310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) 311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) 312 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) 325 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) 332 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) 349 (cpu_to_hc32(ehci, (((u32) dma) & ~0x01f) | Q_TYPE_QH)) 352 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */ 523 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE) 568 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehc 827 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() function 852 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x) cpu_to_hc32() function [all...] |
H A D | uhci-hcd.h | 85 #define UHCI_PTR_BITS(uhci) cpu_to_hc32((uhci), 0x000F) 86 #define UHCI_PTR_TERM(uhci) cpu_to_hc32((uhci), 0x0001) 87 #define UHCI_PTR_QH(uhci) cpu_to_hc32((uhci), 0x0002) 88 #define UHCI_PTR_DEPTH(uhci) cpu_to_hc32((uhci), 0x0004) 89 #define UHCI_PTR_BREADTH(uhci) cpu_to_hc32((uhci), 0x0000) 194 cpu_to_hc32((uhci), (qh)->dma_handle)) 281 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle)) 692 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function 709 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function
|
H A D | ehci-sched.c | 93 *hw_p = cpu_to_hc32(ehci, ehci->dummy->qh_dma); in periodic_unlink() 545 if (type == cpu_to_hc32(ehci, Q_TYPE_QH)) in qh_link_periodic() 896 hw->hw_info2 &= cpu_to_hc32(ehci, ~(QH_CMASK | QH_SMASK)); in qh_schedule() 897 hw->hw_info2 |= cpu_to_hc32(ehci, qh->ps.cs_mask); in qh_schedule() 1049 stream->buf0 = cpu_to_hc32(ehci, (epnum << 8) | dev->devnum); in iso_stream_init() 1050 stream->buf1 = cpu_to_hc32(ehci, buf1); in iso_stream_init() 1051 stream->buf2 = cpu_to_hc32(ehci, multi); in iso_stream_init() 1115 stream->address = cpu_to_hc32(ehci, addr); in iso_stream_init() 1209 uframe->transaction = cpu_to_hc32(ehci, trans); in itd_sched_init() 1455 stream->splits = cpu_to_hc32(ehc in sitd_slot_ok() [all...] |
H A D | ehci-q.c | 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 46 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 57 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 58 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 71 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 95 if (!(hw->hw_info1 & cpu_to_hc32(ehci, QH_TOGGLE_CTL))) { in qh_update() 101 hw->hw_token &= ~cpu_to_hc32(ehci, QTD_TOGGLE); in qh_update() 106 hw->hw_token &= cpu_to_hc32(ehci, QTD_TOGGLE | QTD_STS_PING); in qh_update() 388 qtd->hw_token = cpu_to_hc32(ehci, in qh_completions() 391 hw->hw_token = cpu_to_hc32(ehc in qh_completions() [all...] |
H A D | ohci-mem.c | 103 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc() 120 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
|
H A D | ehci-mem.c | 30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init() 208 ehci->periodic[i] = cpu_to_hc32(ehci, in ehci_mem_init()
|
H A D | uhci-q.c | 33 uhci->term_td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_set_next_interrupt() 38 uhci->term_td->status &= ~cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_clear_next_interrupt() 137 td->status = cpu_to_hc32(uhci, status); in uhci_fill_td() 138 td->token = cpu_to_hc32(uhci, token); in uhci_fill_td() 139 td->buffer = cpu_to_hc32(uhci, buffer); in uhci_fill_td() 407 td->token ^= cpu_to_hc32(uhci, in uhci_fixup_toggles() 888 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_control() 1031 td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_submit_common() 1043 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_common() 1349 td->status |= cpu_to_hc32(uhc in uhci_submit_isochronous() [all...] |
H A D | ehci-hcd.c | 523 hw->hw_info1 = cpu_to_hc32(ehci, QH_HEAD); in ehci_init() 525 hw->hw_info1 |= cpu_to_hc32(ehci, QH_INACTIVATE); in ehci_init() 527 hw->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_init()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | fsl_udc_core.c | 126 static inline u32 cpu_to_hc32(const u32 x) in cpu_to_hc32() function 144 #define cpu_to_hc32(x) cpu_to_le32(x) macro 511 p_QH->max_pkt_length = cpu_to_hc32(tmp); in struct_ep_qh_setup() 706 qh->next_dtd_ptr = cpu_to_hc32(td->td_dma in fsl_prime_ep() 710 qh->size_ioc_int_sts &= cpu_to_hc32(~(EP_QUEUE_HEAD_STATUS_ACTIVE in fsl_prime_ep() 739 cpu_to_hc32(req->head->td_dma & DTD_ADDR_MASK); in fsl_queue_td() 791 dtd->size_ioc_sts = cpu_to_hc32(swap_temp); in fsl_build_dtd() 795 dtd->buff_ptr0 = cpu_to_hc32(swap_temp); in fsl_build_dtd() 796 dtd->buff_ptr1 = cpu_to_hc32(swap_temp + 0x1000); in fsl_build_dtd() 797 dtd->buff_ptr2 = cpu_to_hc32(swap_tem in fsl_build_dtd() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/ |
H A D | fsl_udc_core.c | 124 static inline u32 cpu_to_hc32(const u32 x) in cpu_to_hc32() function 142 #define cpu_to_hc32(x) cpu_to_le32(x) macro 507 p_QH->max_pkt_length = cpu_to_hc32(tmp); in struct_ep_qh_setup() 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() 735 cpu_to_hc32(req->head->td_dma & DTD_ADDR_MASK); in fsl_queue_td() 787 dtd->size_ioc_sts = cpu_to_hc32(swap_temp); in fsl_build_dtd() 791 dtd->buff_ptr0 = cpu_to_hc32(swap_temp); in fsl_build_dtd() 792 dtd->buff_ptr1 = cpu_to_hc32(swap_temp + 0x1000); in fsl_build_dtd() 793 dtd->buff_ptr2 = cpu_to_hc32(swap_tem in fsl_build_dtd() [all...] |