Lines Matching refs:target_frame
143 hs_ep->target_frame += hs_ep->interval; in dwc2_gadget_incr_frame_num()
144 if (hs_ep->target_frame > limit) { in dwc2_gadget_incr_frame_num()
146 hs_ep->target_frame &= limit; in dwc2_gadget_incr_frame_num()
147 } else if (current_frame <= hs_ep->target_frame) { in dwc2_gadget_incr_frame_num()
170 if (hs_ep->target_frame) in dwc2_gadget_dec_frame_num_by_one()
171 hs_ep->target_frame -= 1; in dwc2_gadget_dec_frame_num_by_one()
173 hs_ep->target_frame = limit; in dwc2_gadget_dec_frame_num_by_one()
956 ((hs_ep->target_frame << in dwc2_gadget_fill_isoc_desc()
996 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_gadget_start_isoc_ddma()
1196 if (hs_ep->target_frame & 0x1) in dwc2_hsotg_start_req()
1203 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_hsotg_start_req()
1352 u32 target_frame = hs_ep->target_frame; in dwc2_gadget_target_frame_elapsed() local
1360 if (!frame_overrun && current_frame >= target_frame) in dwc2_gadget_target_frame_elapsed()
1363 if (frame_overrun && current_frame >= target_frame && in dwc2_gadget_target_frame_elapsed()
1364 ((current_frame - target_frame) < limit / 2)) in dwc2_gadget_target_frame_elapsed()
1487 if (hs_ep->target_frame != TARGET_FRAME_INITIAL) { in dwc2_hsotg_ep_queue()
1521 if (hs_ep->target_frame != TARGET_FRAME_INITIAL) in dwc2_hsotg_ep_queue()
1535 if (hs_ep->target_frame != TARGET_FRAME_INITIAL) in dwc2_hsotg_ep_queue()
2262 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_gadget_handle_isoc_bna()
2472 req->frame_number = hs_ep->target_frame; in dwc2_hsotg_handle_outdone()
2790 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_hsotg_complete_in()
2880 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_gadget_handle_ep_disabled()
2912 if (ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_out_token_ep_disabled()
2914 ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_out_token_ep_disabled()
2920 if (ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_out_token_ep_disabled()
2923 ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_out_token_ep_disabled()
2926 if (ep->target_frame & 0x1) in dwc2_gadget_handle_out_token_ep_disabled()
2938 hs_req->req.frame_number = ep->target_frame; in dwc2_gadget_handle_out_token_ep_disabled()
2980 if (hs_ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_nak()
2983 hs_ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_nak()
2993 hs_ep->target_frame &= ~hs_ep->interval + 1; in dwc2_gadget_handle_nak()
3006 hs_ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_nak()
3027 if (hs_ep->target_frame & 0x1) in dwc2_gadget_handle_nak()
3048 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_gadget_handle_nak()
4144 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_hsotg_ep_enable()