Home
last modified time | relevance | path

Searched refs:cpu_to_hc32 (Results 1 – 10 of 10) sorted by relevance

/drivers/usb/host/
Dohci-q.c126 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_link()
151 *prev_p = cpu_to_hc32(ohci, ed->dma); in periodic_link()
193 ohci->ed_controltail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule()
213 ohci->ed_bulktail->hwNextED = cpu_to_hc32 (ohci, in ed_schedule()
273 (ed->hwINFO & cpu_to_hc32 (ohci, ED_ISO)) ? "iso " : "", in periodic_unlink()
301 ed->hwINFO |= cpu_to_hc32 (ohci, ED_SKIP); in ed_deschedule()
414 ed->hwTailP = cpu_to_hc32 (ohci, td->td_dma); in ed_get()
447 ed->hwINFO = cpu_to_hc32(ohci, info); in ed_get()
467 ed->hwINFO |= cpu_to_hc32 (ohci, ED_DEQUEUE); in start_ed_unlink()
538 td->hwINFO = cpu_to_hc32 (ohci, info); in td_fill()
[all …]
Dehci.h235 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma)
264 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE)
265 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT)
266 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS)
279 #define QTD_MASK(ehci) cpu_to_hc32 (ehci, ~0x1f)
286 #define Q_NEXT_TYPE(ehci,dma) ((dma) & cpu_to_hc32(ehci, 3 << 1))
302 #define QH_NEXT(ehci,dma) (cpu_to_hc32(ehci, (((u32)dma)&~0x01f)|Q_TYPE_QH))
305 #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 …]
Dehci-q.c53 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()
101 if (!(qh->hw_info1 & cpu_to_hc32(ehci, 1 << 14))) { in qh_update()
104 is_out = !(qtd->hw_token & cpu_to_hc32(ehci, 1 << 8)); in qh_update()
107 qh->hw_token &= ~cpu_to_hc32(ehci, QTD_TOGGLE); in qh_update()
114 qh->hw_token &= cpu_to_hc32(ehci, QTD_TOGGLE | QTD_STS_PING); in qh_update()
132 if (cpu_to_hc32(ehci, qtd->qtd_dma) == qh->hw_current) in qh_refresh()
[all …]
Dehci-sched.c101 if (q->qh->hw_info2 & cpu_to_hc32(ehci, 1 << uframe)) in periodic_usecs()
104 if (q->qh->hw_info2 & cpu_to_hc32(ehci, in periodic_usecs()
129 if (q->sitd->hw_uframe & cpu_to_hc32(ehci, in periodic_usecs()
132 cpu_to_hc32(ehci, 1<<31)) in periodic_usecs()
140 cpu_to_hc32(ehci, 1 << (8 + uframe))) { in periodic_usecs()
517 if (type == cpu_to_hc32(ehci, Q_TYPE_QH)) in qh_link_periodic()
607 || (cpu_to_hc32(ehci, QH_CMASK) in intr_deschedule()
704 *c_maskp = cpu_to_hc32(ehci, mask << 8); in check_intr_schedule()
715 *c_maskp = cpu_to_hc32(ehci, mask << 8); in check_intr_schedule()
784 qh->hw_info2 &= cpu_to_hc32(ehci, ~(QH_CMASK | QH_SMASK)); in qh_schedule()
[all …]
Dohci-mem.c94 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()
Dehci-hcd.c512 ehci->async->hw_info1 = cpu_to_hc32(ehci, QH_HEAD); in ehci_init()
513 ehci->async->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_init()
Dehci-dbg.c425 (cpu_to_hc32(ehci, QTD_TOGGLE) & qh->hw_token) in qh_lines()
438 else if (qh->hw_qtd_next == cpu_to_hc32(ehci, td->qtd_dma)) in qh_lines()
Dohci.h599 static inline __hc32 cpu_to_hc32 (const struct ohci_hcd *ohci, const u32 x) in cpu_to_hc32() function
Dohci-hcd.c941 ed->hwINFO |= cpu_to_hc32(ohci, ED_DEQUEUE); in ohci_restart()
Dohci-dbg.c598 cpu_to_hc32(ohci, ED_H)) ? in fill_periodic_buffer()