Lines Matching refs:epnum
291 int bdc_ep_set_stall(struct bdc *bdc, int epnum) in bdc_ep_set_stall() argument
295 dev_dbg(bdc->dev, "%s epnum=%d\n", __func__, epnum); in bdc_ep_set_stall()
297 cmd_sc |= BDC_SUB_CMD_EP_STL | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_set_stall()
303 int bdc_ep_clear_stall(struct bdc *bdc, int epnum) in bdc_ep_clear_stall() argument
309 dev_dbg(bdc->dev, "%s: epnum=%d\n", __func__, epnum); in bdc_ep_clear_stall()
310 ep = bdc->bdc_ep_array[epnum]; in bdc_ep_clear_stall()
315 if (epnum != 1) { in bdc_ep_clear_stall()
318 ret = bdc_ep_set_stall(bdc, epnum); in bdc_ep_clear_stall()
324 if (epnum != 1) in bdc_ep_clear_stall()
328 cmd_sc |= BDC_SUB_CMD_EP_RST | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_ep_clear_stall()
335 bdc_notify_xfr(bdc, epnum); in bdc_ep_clear_stall()
341 int bdc_stop_ep(struct bdc *bdc, int epnum) in bdc_stop_ep() argument
347 ep = bdc->bdc_ep_array[epnum]; in bdc_stop_ep()
360 | BDC_CMD_EPN(epnum) | BDC_CMD_EPO; in bdc_stop_ep()