Lines Matching refs:target_frame
123 hs_ep->target_frame += hs_ep->interval; in dwc2_gadget_incr_frame_num()
124 if (hs_ep->target_frame > limit) { in dwc2_gadget_incr_frame_num()
126 hs_ep->target_frame &= limit; in dwc2_gadget_incr_frame_num()
150 if (hs_ep->target_frame) in dwc2_gadget_dec_frame_num_by_one()
151 hs_ep->target_frame -= 1; in dwc2_gadget_dec_frame_num_by_one()
153 hs_ep->target_frame = limit; in dwc2_gadget_dec_frame_num_by_one()
953 ((hs_ep->target_frame << in dwc2_gadget_fill_isoc_desc()
993 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_gadget_start_isoc_ddma()
1193 if (hs_ep->target_frame & 0x1) in dwc2_hsotg_start_req()
1200 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_hsotg_start_req()
1349 u32 target_frame = hs_ep->target_frame; in dwc2_gadget_target_frame_elapsed() local
1357 if (!frame_overrun && current_frame >= target_frame) in dwc2_gadget_target_frame_elapsed()
1360 if (frame_overrun && current_frame >= target_frame && in dwc2_gadget_target_frame_elapsed()
1361 ((current_frame - target_frame) < limit / 2)) in dwc2_gadget_target_frame_elapsed()
1486 if (hs_ep->target_frame != TARGET_FRAME_INITIAL) { in dwc2_hsotg_ep_queue()
1520 if (hs_ep->target_frame != TARGET_FRAME_INITIAL) in dwc2_hsotg_ep_queue()
2248 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_gadget_handle_isoc_bna()
2458 req->frame_number = hs_ep->target_frame; in dwc2_hsotg_handle_outdone()
2776 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_hsotg_complete_in()
2866 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_gadget_handle_ep_disabled()
2898 if (ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_out_token_ep_disabled()
2900 ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_out_token_ep_disabled()
2906 if (ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_out_token_ep_disabled()
2909 ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_out_token_ep_disabled()
2912 if (ep->target_frame & 0x1) in dwc2_gadget_handle_out_token_ep_disabled()
2924 hs_req->req.frame_number = ep->target_frame; in dwc2_gadget_handle_out_token_ep_disabled()
2966 if (hs_ep->target_frame == TARGET_FRAME_INITIAL) { in dwc2_gadget_handle_nak()
2969 hs_ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_nak()
2979 hs_ep->target_frame &= ~hs_ep->interval + 1; in dwc2_gadget_handle_nak()
2992 hs_ep->target_frame = hsotg->frame_number; in dwc2_gadget_handle_nak()
2996 if (hs_ep->target_frame & 0x1) in dwc2_gadget_handle_nak()
3017 hs_req->req.frame_number = hs_ep->target_frame; in dwc2_gadget_handle_nak()
4123 hs_ep->target_frame = TARGET_FRAME_INITIAL; in dwc2_hsotg_ep_enable()