Home
last modified time | relevance | path

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

/linux/drivers/usb/host/
H A Dohci-q.c148 (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 (ohci, info); in td_fill()
[all …]
H A Duhci-hcd.h85 #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 Dehci-sched.c93 *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(ehci, stream->ps.cs_mask); in sitd_slot_ok()
[all …]
H A Dohci-mem.c103 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 Duhci-q.c33 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(uhci, TD_CTRL_IOC); in uhci_submit_isochronous()
[all …]
H A Dehci-mem.c30 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 Dohci.h606 static inline __hc32 cpu_to_hc32 (const struct ohci_hcd *ohci, const u32 x) in cpu_to_hc32() function
H A Duhci-debug.c202 if (element & cpu_to_hc32(uhci, 8)) in uhci_show_qh()
H A Dohci-dbg.c552 cpu_to_hc32(ohci, ED_H)) ? in fill_periodic_buffer()
H A Dohci-hcd.c1058 ed->hwINFO |= cpu_to_hc32(ohci, ED_DEQUEUE); in ohci_restart()
/linux/drivers/usb/fotg210/
H A Dfotg210-hcd.h308 #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(const struct fotg210_hcd *fotg210, const u32 x) in cpu_to_hc32() function
H A Dfotg210-hcd.c387 (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()
1805 qtd->hw_token = cpu_to_hc32(fotg210, QTD_STS_HALT); in fotg210_qtd_init()
1994 qtd->hw_buf[0] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill()
1995 qtd->hw_buf_hi[0] = cpu_to_hc32(fotg210, (u32)(addr >> 32)); in qtd_fill()
2006 qtd->hw_buf[i] = cpu_to_hc32(fotg210, (u32)addr); in qtd_fill()
2007 qtd->hw_buf_hi[i] = cpu_to_hc32(fotg210, in qtd_fill()
2020 qtd->hw_token = cpu_to_hc32(fotg210, (count << 16) | token); in qtd_fill()
2042 if (!(hw->hw_info1 & cpu_to_hc32(fotg210, QH_TOGGLE_CTL))) { in qh_update()
2048 hw->hw_token &= ~cpu_to_hc32(fotg210, QTD_TOGGLE); in qh_update()
[all …]