Lines Matching refs:tdl
712 u16 tdl = EP_CMD_TDL_GET(readl(&priv_dev->regs->ep_cmd)); in cdns3_wa2_reset_tdl() local
714 if (tdl) { in cdns3_wa2_reset_tdl()
715 u16 reset_val = EP_CMD_TDL_MAX + 1 - tdl; in cdns3_wa2_reset_tdl()
1001 u32 tdl; in cdns3_ep_run_stream_transfer() local
1034 tdl = DIV_ROUND_UP(length, priv_ep->endpoint.maxpacket); in cdns3_ep_run_stream_transfer()
1045 trb->length |= cpu_to_le32(TRB_TDL_SS_SIZE(tdl)); in cdns3_ep_run_stream_transfer()
1076 writel(EP_CMD_TDL_SET(tdl) | EP_CMD_STDL, in cdns3_ep_run_stream_transfer()
1079 writel(tdl, &priv_dev->regs->ep_tdl); in cdns3_ep_run_stream_transfer()
1331 u16 tdl = total_tdl; in cdns3_ep_run_transfer() local
1334 if (tdl > EP_CMD_TDL_MAX) { in cdns3_ep_run_transfer()
1335 tdl = EP_CMD_TDL_MAX; in cdns3_ep_run_transfer()
1339 if (old_tdl < tdl) { in cdns3_ep_run_transfer()
1340 tdl -= old_tdl; in cdns3_ep_run_transfer()
1341 writel(EP_CMD_TDL_SET(tdl) | EP_CMD_STDL, in cdns3_ep_run_transfer()
1674 u16 tdl = priv_ep->pending_tdl; in cdns3_reprogram_tdl() local
1677 if (tdl > EP_CMD_TDL_MAX) { in cdns3_reprogram_tdl()
1678 tdl = EP_CMD_TDL_MAX; in cdns3_reprogram_tdl()
1684 writel(EP_CMD_TDL_SET(tdl) | EP_CMD_STDL, &priv_dev->regs->ep_cmd); in cdns3_reprogram_tdl()
1699 u32 tdl = 0; in cdns3_check_ep_interrupt_proceed() local
1711 tdl = cdns3_get_tdl(priv_dev); in cdns3_check_ep_interrupt_proceed()
1720 if (tdl && (dbusy || !EP_STS_BUFFEMPTY(ep_sts_reg) || in cdns3_check_ep_interrupt_proceed()