Lines Matching refs:epnum
286 int bdc_ep_set_stall(struct bdc *bdc, int epnum) in bdc_ep_set_stall() argument
290 dev_dbg(bdc->dev, "%s epnum=%d\n", __func__, epnum); in bdc_ep_set_stall()
292 cmd_sc |= BDC_SUB_CMD_EP_STL | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_set_stall()
298 int bdc_ep_clear_stall(struct bdc *bdc, int epnum) in bdc_ep_clear_stall() argument
304 dev_dbg(bdc->dev, "%s: epnum=%d\n", __func__, epnum); in bdc_ep_clear_stall()
305 ep = bdc->bdc_ep_array[epnum]; in bdc_ep_clear_stall()
310 if (epnum != 1) { in bdc_ep_clear_stall()
313 ret = bdc_ep_set_stall(bdc, epnum); in bdc_ep_clear_stall()
319 if (epnum != 1) in bdc_ep_clear_stall()
323 cmd_sc |= BDC_SUB_CMD_EP_RST | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_clear_stall()
330 bdc_notify_xfr(bdc, epnum); in bdc_ep_clear_stall()
336 int bdc_stop_ep(struct bdc *bdc, int epnum) in bdc_stop_ep() argument
342 ep = bdc->bdc_ep_array[epnum]; in bdc_stop_ep()
355 | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_stop_ep()