/linux-3.4.99/drivers/usb/host/ |
D | ohci-q.c | 130 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link() 155 *prev_p = cpu_to_hc32(ohci, ed->dma); in periodic_link() 197 ohci->ed_controltail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 217 ohci->ed_bulktail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule() 277 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_unlink() 305 ed->hwINFO |= cpu_to_hc32 (ohci, ED_SKIP); in ed_deschedule() 418 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get() 451 ed->hwINFO = cpu_to_hc32(ohci, info); in ed_get() 471 ed->hwINFO |= cpu_to_hc32 (ohci, ED_DEQUEUE); in start_ed_unlink() 542 td->hwINFO = cpu_to_hc32 (ohci, info); in td_fill() [all …]
|
D | ehci.h | 228 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) 257 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) 258 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) 259 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) 272 #define QTD_MASK(ehci) cpu_to_hc32 (ehci, ~0x1f) 279 #define Q_NEXT_TYPE(ehci,dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) 295 #define QH_NEXT(ehci,dma) (cpu_to_hc32(ehci, (((u32)dma)&~0x01f)|Q_TYPE_QH)) 298 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */ 475 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE) 520 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehci, SITD_STS_ACTIVE) [all …]
|
D | uhci-hcd.h | 81 #define UHCI_PTR_BITS(uhci) cpu_to_hc32((uhci), 0x000F) 82 #define UHCI_PTR_TERM(uhci) cpu_to_hc32((uhci), 0x0001) 83 #define UHCI_PTR_QH(uhci) cpu_to_hc32((uhci), 0x0002) 84 #define UHCI_PTR_DEPTH(uhci) cpu_to_hc32((uhci), 0x0004) 85 #define UHCI_PTR_BREADTH(uhci) cpu_to_hc32((uhci), 0x0000) 190 cpu_to_hc32((uhci), (qh)->dma_handle)) 281 #define LINK_TO_TD(uhci, td) (cpu_to_hc32((uhci), (td)->dma_handle)) 635 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function 652 static inline __hc32 cpu_to_hc32(const struct uhci_hcd *uhci, const u32 x) in cpu_to_hc32() function
|
D | ehci-sched.c | 146 if (hw->hw_info2 & cpu_to_hc32(ehci, 1 << uframe)) in periodic_usecs() 149 if (hw->hw_info2 & cpu_to_hc32(ehci, in periodic_usecs() 174 if (q->sitd->hw_uframe & cpu_to_hc32(ehci, in periodic_usecs() 177 cpu_to_hc32(ehci, 1<<31)) in periodic_usecs() 185 cpu_to_hc32(ehci, 1 << (8 + uframe))) { in periodic_usecs() 582 if (type == cpu_to_hc32(ehci, Q_TYPE_QH)) in qh_link_periodic() 685 || (cpu_to_hc32(ehci, QH_CMASK) in intr_deschedule() 797 *c_maskp = cpu_to_hc32(ehci, mask << 8); in check_intr_schedule() 808 *c_maskp = cpu_to_hc32(ehci, mask << 8); in check_intr_schedule() 880 hw->hw_info2 &= cpu_to_hc32(ehci, ~(QH_CMASK | QH_SMASK)); in qh_schedule() [all …]
|
D | ehci-q.c | 53 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 54 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 65 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 66 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 79 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 103 if (!(hw->hw_info1 & cpu_to_hc32(ehci, 1 << 14))) { in qh_update() 109 hw->hw_token &= ~cpu_to_hc32(ehci, QTD_TOGGLE); in qh_update() 114 hw->hw_token &= cpu_to_hc32(ehci, QTD_TOGGLE | QTD_STS_PING); in qh_update() 138 if (cpu_to_hc32(ehci, qtd->qtd_dma) == qh->hw->hw_current) { in qh_refresh() 415 qtd->hw_token = cpu_to_hc32(ehci, in qh_completions() [all …]
|
D | ohci-mem.c | 94 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc() 110 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
|
D | uhci-q.c | 32 uhci->term_td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_set_next_interrupt() 37 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() 408 td->token ^= cpu_to_hc32(uhci, in uhci_fixup_toggles() 889 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_control() 1032 td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_submit_common() 1044 qh->dummy_td->status |= cpu_to_hc32(uhci, TD_CTRL_ACTIVE); in uhci_submit_common() 1347 td->status |= cpu_to_hc32(uhci, TD_CTRL_IOC); in uhci_submit_isochronous() [all …]
|
D | ehci-mem.c | 43 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init()
|
D | ehci-hcd.c | 673 hw->hw_info1 = cpu_to_hc32(ehci, QH_HEAD); in ehci_init() 675 hw->hw_info1 |= cpu_to_hc32(ehci, (1 << 7)); /* I = 1 */ in ehci_init() 677 hw->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_init()
|
D | ohci.h | 605 static inline __hc32 cpu_to_hc32 (const struct ohci_hcd *ohci, const u32 x) in cpu_to_hc32() function
|
D | ehci-dbg.c | 466 (cpu_to_hc32(ehci, QTD_TOGGLE) & hw->hw_token) in qh_lines() 479 else if (hw->hw_qtd_next == cpu_to_hc32(ehci, td->qtd_dma)) in qh_lines()
|
D | uhci-debug.c | 192 if (element & cpu_to_hc32(uhci, 8)) in uhci_show_qh()
|
D | ehci-fsl.c | 440 pdata->pm_portsc &= cpu_to_hc32(ehci, ~PORT_RWC_BITS); in ehci_fsl_mpc512x_drv_suspend()
|
D | ohci-dbg.c | 615 cpu_to_hc32(ohci, ED_H)) ? in fill_periodic_buffer()
|
D | ohci-hcd.c | 943 ed->hwINFO |= cpu_to_hc32(ohci, ED_DEQUEUE); in ohci_restart()
|
/linux-3.4.99/drivers/usb/gadget/ |
D | fsl_udc_core.c | 130 static inline u32 cpu_to_hc32(const u32 x) in cpu_to_hc32() function 148 #define cpu_to_hc32(x) cpu_to_le32(x) macro 508 p_QH->max_pkt_length = cpu_to_hc32(tmp); in struct_ep_qh_setup() 705 qh->next_dtd_ptr = cpu_to_hc32(td->td_dma in fsl_prime_ep() 709 qh->size_ioc_int_sts &= cpu_to_hc32(~(EP_QUEUE_HEAD_STATUS_ACTIVE in fsl_prime_ep() 738 cpu_to_hc32(req->head->td_dma & DTD_ADDR_MASK); in fsl_queue_td() 790 dtd->size_ioc_sts = cpu_to_hc32(swap_temp); in fsl_build_dtd() 794 dtd->buff_ptr0 = cpu_to_hc32(swap_temp); in fsl_build_dtd() 795 dtd->buff_ptr1 = cpu_to_hc32(swap_temp + 0x1000); in fsl_build_dtd() 796 dtd->buff_ptr2 = cpu_to_hc32(swap_temp + 0x2000); in fsl_build_dtd() [all …]
|