Lines Matching refs:chnum
158 u32 grxsts, chnum, bcnt, dpid, pktsts; in dwc2_rx_fifo_level_intr() local
165 chnum = (grxsts & GRXSTS_HCHNUM_MASK) >> GRXSTS_HCHNUM_SHIFT; in dwc2_rx_fifo_level_intr()
166 chan = hsotg->hc_ptr_array[chnum]; in dwc2_rx_fifo_level_intr()
178 dev_vdbg(hsotg->dev, " Ch num = %d\n", chnum); in dwc2_rx_fifo_level_intr()
407 struct dwc2_host_chan *chan, int chnum, in dwc2_get_actual_xfer_length() argument
414 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_get_actual_xfer_length()
461 struct dwc2_host_chan *chan, int chnum, in dwc2_update_urb_state() argument
468 int xfer_length = dwc2_get_actual_xfer_length(hsotg, chan, chnum, qtd, in dwc2_update_urb_state()
491 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_update_urb_state()
493 __func__, (chan->ep_is_in ? "IN" : "OUT"), chnum); in dwc2_update_urb_state()
511 struct dwc2_host_chan *chan, int chnum, in dwc2_hcd_save_data_toggle() argument
514 u32 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_hcd_save_data_toggle()
556 int chnum, struct dwc2_qtd *qtd, in dwc2_update_isoc_urb_state() argument
571 chan, chnum, qtd, halt_status, NULL); in dwc2_update_isoc_urb_state()
590 chan, chnum, qtd, halt_status, NULL); in dwc2_update_isoc_urb_state()
835 int chnum, struct dwc2_qtd *qtd, in dwc2_complete_non_periodic_xfer() argument
884 struct dwc2_host_chan *chan, int chnum, in dwc2_complete_periodic_xfer() argument
888 u32 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_complete_periodic_xfer()
901 struct dwc2_host_chan *chan, int chnum, in dwc2_xfercomp_isoc_split_in() argument
913 len = dwc2_get_actual_xfer_length(hsotg, chan, chnum, qtd, in dwc2_xfercomp_isoc_split_in()
932 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_xfercomp_isoc_split_in()
959 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_xfercomp_intr() argument
970 chnum); in dwc2_hc_xfercomp_intr()
978 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, halt_status); in dwc2_hc_xfercomp_intr()
990 dwc2_xfercomp_isoc_split_in(hsotg, chan, chnum, in dwc2_hc_xfercomp_intr()
1013 chnum, urb, qtd); in dwc2_hc_xfercomp_intr()
1019 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, in dwc2_hc_xfercomp_intr()
1033 dwc2_complete_non_periodic_xfer(hsotg, chan, chnum, qtd, in dwc2_hc_xfercomp_intr()
1038 urb_xfer_done = dwc2_update_urb_state(hsotg, chan, chnum, urb, in dwc2_hc_xfercomp_intr()
1047 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_xfercomp_intr()
1048 dwc2_complete_non_periodic_xfer(hsotg, chan, chnum, qtd, in dwc2_hc_xfercomp_intr()
1053 urb_xfer_done = dwc2_update_urb_state(hsotg, chan, chnum, urb, in dwc2_hc_xfercomp_intr()
1067 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_xfercomp_intr()
1068 dwc2_complete_periodic_xfer(hsotg, chan, chnum, qtd, in dwc2_hc_xfercomp_intr()
1076 chnum, qtd, in dwc2_hc_xfercomp_intr()
1078 dwc2_complete_periodic_xfer(hsotg, chan, chnum, qtd, in dwc2_hc_xfercomp_intr()
1084 disable_hc_int(hsotg, chnum, HCINTMSK_XFERCOMPL); in dwc2_hc_xfercomp_intr()
1092 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_stall_intr() argument
1099 chnum); in dwc2_hc_stall_intr()
1102 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_stall_intr()
1132 disable_hc_int(hsotg, chnum, HCINTMSK_STALL); in dwc2_hc_stall_intr()
1142 struct dwc2_host_chan *chan, int chnum, in dwc2_update_urb_state_abn() argument
1147 u32 xfer_length = dwc2_get_actual_xfer_length(hsotg, chan, chnum, in dwc2_update_urb_state_abn()
1158 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_update_urb_state_abn()
1160 __func__, (chan->ep_is_in ? "IN" : "OUT"), chnum); in dwc2_update_urb_state_abn()
1179 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_nak_intr() argument
1194 chnum); in dwc2_hc_nak_intr()
1249 dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, in dwc2_hc_nak_intr()
1251 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_nak_intr()
1275 disable_hc_int(hsotg, chnum, HCINTMSK_NAK); in dwc2_hc_nak_intr()
1284 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_ack_intr() argument
1291 chnum); in dwc2_hc_ack_intr()
1352 disable_hc_int(hsotg, chnum, HCINTMSK_ACK); in dwc2_hc_ack_intr()
1363 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_nyet_intr() argument
1368 chnum); in dwc2_hc_nyet_intr()
1468 dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, qtd, in dwc2_hc_nyet_intr()
1470 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_nyet_intr()
1479 disable_hc_int(hsotg, chnum, HCINTMSK_NYET); in dwc2_hc_nyet_intr()
1487 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_babble_intr() argument
1491 chnum); in dwc2_hc_babble_intr()
1496 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_babble_intr()
1507 halt_status = dwc2_update_isoc_urb_state(hsotg, chan, chnum, in dwc2_hc_babble_intr()
1513 disable_hc_int(hsotg, chnum, HCINTMSK_BBLERR); in dwc2_hc_babble_intr()
1521 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_ahberr_intr() argument
1532 chnum); in dwc2_hc_ahberr_intr()
1539 hcchar = dwc2_readl(hsotg, HCCHAR(chnum)); in dwc2_hc_ahberr_intr()
1540 hcsplt = dwc2_readl(hsotg, HCSPLT(chnum)); in dwc2_hc_ahberr_intr()
1541 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_hc_ahberr_intr()
1542 hc_dma = dwc2_readl(hsotg, HCDMA(chnum)); in dwc2_hc_ahberr_intr()
1544 dev_err(hsotg->dev, "AHB ERROR, Channel %d\n", chnum); in dwc2_hc_ahberr_intr()
1602 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_ahberr_intr()
1617 disable_hc_int(hsotg, chnum, HCINTMSK_AHBERR); in dwc2_hc_ahberr_intr()
1625 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_xacterr_intr() argument
1629 "--Host Channel %d Interrupt: Transaction Error--\n", chnum); in dwc2_hc_xacterr_intr()
1634 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_xacterr_intr()
1644 dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, in dwc2_hc_xacterr_intr()
1646 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_xacterr_intr()
1668 chnum, qtd, DWC2_HC_XFER_XACT_ERR); in dwc2_hc_xacterr_intr()
1675 disable_hc_int(hsotg, chnum, HCINTMSK_XACTERR); in dwc2_hc_xacterr_intr()
1683 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_frmovrun_intr() argument
1690 chnum); in dwc2_hc_frmovrun_intr()
1702 halt_status = dwc2_update_isoc_urb_state(hsotg, chan, chnum, in dwc2_hc_frmovrun_intr()
1708 disable_hc_int(hsotg, chnum, HCINTMSK_FRMOVRUN); in dwc2_hc_frmovrun_intr()
1716 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_datatglerr_intr() argument
1720 "--Host Channel %d Interrupt: Data Toggle Error--\n", chnum); in dwc2_hc_datatglerr_intr()
1727 chnum); in dwc2_hc_datatglerr_intr()
1730 disable_hc_int(hsotg, chnum, HCINTMSK_DATATGLERR); in dwc2_hc_datatglerr_intr()
1741 struct dwc2_host_chan *chan, int chnum, in dwc2_halt_status_ok() argument
1755 hcchar = dwc2_readl(hsotg, HCCHAR(chnum)); in dwc2_halt_status_ok()
1756 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_halt_status_ok()
1757 hcintmsk = dwc2_readl(hsotg, HCINTMSK(chnum)); in dwc2_halt_status_ok()
1758 hcsplt = dwc2_readl(hsotg, HCSPLT(chnum)); in dwc2_halt_status_ok()
1764 chnum, hcchar, hctsiz); in dwc2_halt_status_ok()
1773 __func__, chnum); in dwc2_halt_status_ok()
1782 hcchar = dwc2_readl(hsotg, HCCHAR(chnum)); in dwc2_halt_status_ok()
1801 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_chhltd_intr_dma() argument
1810 chnum); in dwc2_hc_chhltd_intr_dma()
1828 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_chhltd_intr_dma()
1842 hcintmsk = dwc2_readl(hsotg, HCINTMSK(chnum)); in dwc2_hc_chhltd_intr_dma()
1853 dwc2_hc_ack_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1854 dwc2_hc_xfercomp_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1856 dwc2_hc_stall_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1876 dwc2_hc_xacterr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1879 dwc2_hc_xacterr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1882 dwc2_hc_ahberr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1884 dwc2_hc_babble_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1886 dwc2_hc_frmovrun_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1895 dwc2_hc_nyet_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1905 dwc2_hc_nak_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1915 dwc2_hc_ack_intr(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1927 __func__, chnum); in dwc2_hc_chhltd_intr_dma()
1933 __func__, chnum); in dwc2_hc_chhltd_intr_dma()
1948 dwc2_update_urb_state_abn(hsotg, chan, chnum, qtd->urb, in dwc2_hc_chhltd_intr_dma()
1962 dwc2_hcd_save_data_toggle(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr_dma()
1979 struct dwc2_host_chan *chan, int chnum, in dwc2_hc_chhltd_intr() argument
1984 chnum); in dwc2_hc_chhltd_intr()
1987 dwc2_hc_chhltd_intr_dma(hsotg, chan, chnum, qtd); in dwc2_hc_chhltd_intr()
1989 if (!dwc2_halt_status_ok(hsotg, chan, chnum, qtd)) in dwc2_hc_chhltd_intr()
2014 static void dwc2_hc_n_intr(struct dwc2_hsotg *hsotg, int chnum) in dwc2_hc_n_intr() argument
2020 chan = hsotg->hc_ptr_array[chnum]; in dwc2_hc_n_intr()
2022 hcint = dwc2_readl(hsotg, HCINT(chnum)); in dwc2_hc_n_intr()
2023 hcintmsk = dwc2_readl(hsotg, HCINTMSK(chnum)); in dwc2_hc_n_intr()
2026 dwc2_writel(hsotg, hcint, HCINT(chnum)); in dwc2_hc_n_intr()
2032 chnum); in dwc2_hc_n_intr()
2038 dwc2_writel(hsotg, hcint, HCINT(chnum)); in dwc2_hc_n_intr()
2064 dwc2_hcd_complete_xfer_ddma(hsotg, chan, chnum, in dwc2_hc_n_intr()
2078 chnum); in dwc2_hc_n_intr()
2083 disable_hc_int(hsotg, chnum, HCINTMSK_CHHLTD); in dwc2_hc_n_intr()
2097 dwc2_hc_xfercomp_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2107 dwc2_hc_chhltd_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2112 dwc2_hc_ahberr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2117 dwc2_hc_stall_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2122 dwc2_hc_nak_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2127 dwc2_hc_ack_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2132 dwc2_hc_nyet_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2137 dwc2_hc_xacterr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2142 dwc2_hc_babble_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2147 dwc2_hc_frmovrun_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()
2152 dwc2_hc_datatglerr_intr(hsotg, chan, chnum, qtd); in dwc2_hc_n_intr()