Lines Matching refs:hcchar

408 	u32 hcchar;  in dwc2_dump_channel_info()  local
417 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_dump_channel_info()
424 hcchar, hcsplt); in dwc2_dump_channel_info()
655 u32 hcchar; in dwc2_hc_init() local
673 hcchar = chan->dev_addr << HCCHAR_DEVADDR_SHIFT & HCCHAR_DEVADDR_MASK; in dwc2_hc_init()
674 hcchar |= chan->ep_num << HCCHAR_EPNUM_SHIFT & HCCHAR_EPNUM_MASK; in dwc2_hc_init()
676 hcchar |= HCCHAR_EPDIR; in dwc2_hc_init()
678 hcchar |= HCCHAR_LSPDDEV; in dwc2_hc_init()
679 hcchar |= chan->ep_type << HCCHAR_EPTYPE_SHIFT & HCCHAR_EPTYPE_MASK; in dwc2_hc_init()
680 hcchar |= chan->max_packet << HCCHAR_MPS_SHIFT & HCCHAR_MPS_MASK; in dwc2_hc_init()
681 dwc2_writel(hsotg, hcchar, HCCHAR(hc_num)); in dwc2_hc_init()
684 hc_num, hcchar); in dwc2_hc_init()
769 u32 nptxsts, hptxsts, hcchar; in dwc2_hc_halt() local
821 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_halt()
822 if (!(hcchar & HCCHAR_CHENA)) { in dwc2_hc_halt()
849 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_halt()
856 hcchar |= HCCHAR_CHENA; in dwc2_hc_halt()
861 hcchar |= HCCHAR_CHDIS; in dwc2_hc_halt()
866 hcchar |= HCCHAR_CHENA; in dwc2_hc_halt()
875 hcchar &= ~HCCHAR_CHENA; in dwc2_hc_halt()
885 hcchar &= ~HCCHAR_CHENA; in dwc2_hc_halt()
893 dwc2_writel(hsotg, hcchar, HCCHAR(chan->hc_num)); in dwc2_hc_halt()
896 if (hcchar & HCCHAR_CHENA) { in dwc2_hc_halt()
911 hcchar); in dwc2_hc_halt()
959 struct dwc2_host_chan *chan, u32 *hcchar) in dwc2_hc_set_even_odd_frame() argument
1051 *hcchar |= HCCHAR_ODDFRM; in dwc2_hc_set_even_odd_frame()
1053 *hcchar &= ~HCCHAR_ODDFRM; in dwc2_hc_set_even_odd_frame()
1142 u32 hcchar; in dwc2_hc_do_ping() local
1153 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_do_ping()
1154 hcchar |= HCCHAR_CHENA; in dwc2_hc_do_ping()
1155 hcchar &= ~HCCHAR_CHDIS; in dwc2_hc_do_ping()
1156 dwc2_writel(hsotg, hcchar, HCCHAR(chan->hc_num)); in dwc2_hc_do_ping()
1197 u32 hcchar; in dwc2_hc_start_transfer() local
1360 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer()
1361 hcchar &= ~HCCHAR_MULTICNT_MASK; in dwc2_hc_start_transfer()
1362 hcchar |= (ec_mc << HCCHAR_MULTICNT_SHIFT) & HCCHAR_MULTICNT_MASK; in dwc2_hc_start_transfer()
1363 dwc2_hc_set_even_odd_frame(hsotg, chan, &hcchar); in dwc2_hc_start_transfer()
1365 if (hcchar & HCCHAR_CHDIS) in dwc2_hc_start_transfer()
1368 __func__, chan->hc_num, hcchar); in dwc2_hc_start_transfer()
1371 hcchar |= HCCHAR_CHENA; in dwc2_hc_start_transfer()
1372 hcchar &= ~HCCHAR_CHDIS; in dwc2_hc_start_transfer()
1376 (hcchar & HCCHAR_MULTICNT_MASK) >> in dwc2_hc_start_transfer()
1379 dwc2_writel(hsotg, hcchar, HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer()
1381 dev_vdbg(hsotg->dev, "Wrote %08x to HCCHAR(%d)\n", hcchar, in dwc2_hc_start_transfer()
1410 u32 hcchar; in dwc2_hc_start_transfer_ddma() local
1448 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer_ddma()
1449 hcchar &= ~HCCHAR_MULTICNT_MASK; in dwc2_hc_start_transfer_ddma()
1450 hcchar |= chan->multi_count << HCCHAR_MULTICNT_SHIFT & in dwc2_hc_start_transfer_ddma()
1453 if (hcchar & HCCHAR_CHDIS) in dwc2_hc_start_transfer_ddma()
1456 __func__, chan->hc_num, hcchar); in dwc2_hc_start_transfer_ddma()
1459 hcchar |= HCCHAR_CHENA; in dwc2_hc_start_transfer_ddma()
1460 hcchar &= ~HCCHAR_CHDIS; in dwc2_hc_start_transfer_ddma()
1464 (hcchar & HCCHAR_MULTICNT_MASK) >> in dwc2_hc_start_transfer_ddma()
1467 dwc2_writel(hsotg, hcchar, HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer_ddma()
1469 dev_vdbg(hsotg->dev, "Wrote %08x to HCCHAR(%d)\n", hcchar, in dwc2_hc_start_transfer_ddma()
1524 u32 hcchar = dwc2_readl(hsotg, HCCHAR(chan->hc_num)); in dwc2_hc_continue_transfer() local
1526 dwc2_hc_set_even_odd_frame(hsotg, chan, &hcchar); in dwc2_hc_continue_transfer()
1527 hcchar |= HCCHAR_CHENA; in dwc2_hc_continue_transfer()
1528 hcchar &= ~HCCHAR_CHDIS; in dwc2_hc_continue_transfer()
1531 hcchar); in dwc2_hc_continue_transfer()
1532 dwc2_writel(hsotg, hcchar, HCCHAR(chan->hc_num)); in dwc2_hc_continue_transfer()
1542 u32 hcchar = dwc2_readl(hsotg, in dwc2_hc_continue_transfer() local
1546 &hcchar); in dwc2_hc_continue_transfer()
1668 u32 hcchar; in dwc2_hcd_cleanup_channels() local
1677 hcchar = dwc2_readl(hsotg, HCCHAR(i)); in dwc2_hcd_cleanup_channels()
1678 if (hcchar & HCCHAR_CHENA) { in dwc2_hcd_cleanup_channels()
1679 hcchar &= ~(HCCHAR_CHENA | HCCHAR_EPDIR); in dwc2_hcd_cleanup_channels()
1680 hcchar |= HCCHAR_CHDIS; in dwc2_hcd_cleanup_channels()
1681 dwc2_writel(hsotg, hcchar, HCCHAR(i)); in dwc2_hcd_cleanup_channels()
1690 hcchar = dwc2_readl(hsotg, HCCHAR(i)); in dwc2_hcd_cleanup_channels()
1691 if (hcchar & HCCHAR_CHENA) { in dwc2_hcd_cleanup_channels()
1693 hcchar |= HCCHAR_CHDIS; in dwc2_hcd_cleanup_channels()
1694 dwc2_writel(hsotg, hcchar, HCCHAR(i)); in dwc2_hcd_cleanup_channels()
2210 u32 hcchar; in dwc2_core_host_init() local
2215 hcchar = dwc2_readl(hsotg, HCCHAR(i)); in dwc2_core_host_init()
2216 if (hcchar & HCCHAR_CHENA) { in dwc2_core_host_init()
2217 hcchar &= ~HCCHAR_CHENA; in dwc2_core_host_init()
2218 hcchar |= HCCHAR_CHDIS; in dwc2_core_host_init()
2219 hcchar &= ~HCCHAR_EPDIR; in dwc2_core_host_init()
2220 dwc2_writel(hsotg, hcchar, HCCHAR(i)); in dwc2_core_host_init()
2226 hcchar = dwc2_readl(hsotg, HCCHAR(i)); in dwc2_core_host_init()
2227 if (hcchar & HCCHAR_CHENA) { in dwc2_core_host_init()
2228 hcchar |= HCCHAR_CHENA | HCCHAR_CHDIS; in dwc2_core_host_init()
2229 hcchar &= ~HCCHAR_EPDIR; in dwc2_core_host_init()
2230 dwc2_writel(hsotg, hcchar, HCCHAR(i)); in dwc2_core_host_init()
3905 u32 hfnum, hcchar, hctsiz, hcint, hcintmsk; in dwc2_hcd_dump_state() local
3908 hcchar = dwc2_readl(hsotg, HCCHAR(i)); in dwc2_hcd_dump_state()
3913 dev_dbg(hsotg->dev, " hcchar: 0x%08x\n", hcchar); in dwc2_hcd_dump_state()