Lines Matching refs:ep_num
143 static void udc_stall_ep(u32 ep_num) in udc_stall_ep() argument
145 writel(readl(&inep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep()
146 &inep_regs_p[ep_num].endp_cntl); in udc_stall_ep()
148 writel(readl(&outep_regs_p[ep_num].endp_cntl) | ENDP_CNTL_STALL, in udc_stall_ep()
149 &outep_regs_p[ep_num].endp_cntl); in udc_stall_ep()
152 static void *get_fifo(int ep_num, int in) in get_fifo() argument
156 switch (ep_num) { in get_fifo()
593 int ep_num, ep_type; in udc_setup_ep() local
608 ep_num = ep_addr & USB_ENDPOINT_NUMBER_MASK; in udc_setup_ep()
638 struct udc_endp_regs *out_p = &outep_regs_p[ep_num]; in udc_setup_ep()
639 struct udc_endp_regs *in_p = &inep_regs_p[ep_num]; in udc_setup_ep()
674 (0 << 11) | (ep_type << 5) | ep_num, in udc_setup_ep()
675 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep()
680 (1 << 11) | (ep_type << 5) | ep_num, in udc_setup_ep()
681 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep()
687 (0 << 11) | (ep_type << 5) | ep_num, in udc_setup_ep()
688 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep()
701 (1 << 11) | (ep_type << 5) | ep_num, in udc_setup_ep()
702 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep()
706 (0 << 11) | (ep_type << 5) | ep_num, in udc_setup_ep()
707 &udc_regs_p->udc_endp_reg[ep_num]); in udc_setup_ep()
713 endp_intmask &= ~((1 << ep_num) | 0x10000 << ep_num); in udc_setup_ep()