Lines Matching refs:pipe_num
283 static int qe_epbds_reset(struct qe_udc *udc, int pipe_num) in qe_epbds_reset() argument
290 ep = &udc->eps[pipe_num]; in qe_epbds_reset()
315 static int qe_ep_reset(struct qe_udc *udc, int pipe_num) in qe_ep_reset() argument
320 ep = &udc->eps[pipe_num]; in qe_ep_reset()
321 tmpusep = in_be16(&udc->usb_regs->usb_usep[pipe_num]); in qe_ep_reset()
338 out_be16(&udc->usb_regs->usb_usep[pipe_num], tmpusep); in qe_ep_reset()
340 qe_epbds_reset(udc, pipe_num); in qe_ep_reset()
351 static int qe_ep_bd_init(struct qe_udc *udc, unsigned char pipe_num) in qe_ep_bd_init() argument
353 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_bd_init()
365 epparam = udc->ep_param[pipe_num]; in qe_ep_bd_init()
475 static int qe_ep_register_init(struct qe_udc *udc, unsigned char pipe_num) in qe_ep_register_init() argument
477 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_register_init()
483 epparam = udc->ep_param[pipe_num]; in qe_ep_register_init()
514 out_be16(&udc->usb_regs->usb_usep[pipe_num], usep); in qe_ep_register_init()
529 unsigned char pipe_num, in qe_ep_init() argument
532 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_init()
542 if (pipe_num != 0) { in qe_ep_init()
645 if (pipe_num == 0) { in qe_ep_init()
662 qe_ep_bd_init(udc, pipe_num); in qe_ep_init()
678 qe_ep_register_init(udc, pipe_num); in qe_ep_init()
2409 static int qe_ep_config(struct qe_udc *udc, unsigned char pipe_num) in qe_ep_config() argument
2411 struct qe_ep *ep = &udc->eps[pipe_num]; in qe_ep_config()
2414 strcpy(ep->name, ep_name[pipe_num]); in qe_ep_config()
2415 ep->ep.name = ep_name[pipe_num]; in qe_ep_config()
2417 if (pipe_num == 0) { in qe_ep_config()
2433 ep->epnum = (u8)pipe_num; in qe_ep_config()
2447 if (pipe_num != 0) in qe_ep_config()