Lines Matching refs:ep

116 int bdc_dconfig_ep(struct bdc *bdc, struct bdc_ep *ep)  in bdc_dconfig_ep()  argument
120 cmd_sc = BDC_SUB_CMD_DRP_EP|BDC_CMD_EPN(ep->ep_num)|BDC_CMD_EPC; in bdc_dconfig_ep()
122 ep->ep_num, cmd_sc); in bdc_dconfig_ep()
128 static void ep_bd_list_reinit(struct bdc_ep *ep) in ep_bd_list_reinit() argument
130 struct bdc *bdc = ep->bdc; in ep_bd_list_reinit()
133 ep->bd_list.eqp_bdi = 0; in ep_bd_list_reinit()
134 ep->bd_list.hwd_bdi = 0; in ep_bd_list_reinit()
135 bd = ep->bd_list.bd_table_array[0]->start_bd; in ep_bd_list_reinit()
136 dev_dbg(bdc->dev, "%s ep:%p bd:%p\n", __func__, ep, bd); in ep_bd_list_reinit()
142 int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep) in bdc_config_ep() argument
150 desc = ep->desc; in bdc_config_ep()
151 comp_desc = ep->comp_desc; in bdc_config_ep()
153 param0 = lower_32_bits(ep->bd_list.bd_table_array[0]->dma); in bdc_config_ep()
154 param1 = upper_32_bits(ep->bd_list.bd_table_array[0]->dma); in bdc_config_ep()
214 cmd_sc |= BDC_CMD_EPC|BDC_CMD_EPN(ep->ep_num)|BDC_SUB_CMD_ADD_EP; in bdc_config_ep()
222 ep_bd_list_reinit(ep); in bdc_config_ep()
231 int bdc_ep_bla(struct bdc *bdc, struct bdc_ep *ep, dma_addr_t dma_addr) in bdc_ep_bla() argument
243 cmd_sc |= BDC_CMD_EPN(ep->ep_num)|BDC_CMD_BLA; in bdc_ep_bla()
308 struct bdc_ep *ep; in bdc_ep_clear_stall() local
313 ep = bdc->bdc_ep_array[epnum]; in bdc_ep_clear_stall()
320 if (!(ep->flags & BDC_EP_STALL)) { in bdc_ep_clear_stall()
346 struct bdc_ep *ep; in bdc_stop_ep() local
350 ep = bdc->bdc_ep_array[epnum]; in bdc_stop_ep()
352 ep->name, ep->flags); in bdc_stop_ep()
354 if (!(ep->flags & BDC_EP_ENABLED)) { in bdc_stop_ep()
358 if ((ep->flags & BDC_EP_STALL) || (ep->flags & BDC_EP_STOP)) in bdc_stop_ep()
369 ret, ep->name); in bdc_stop_ep()
372 ep->flags |= BDC_EP_STOP; in bdc_stop_ep()