• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/gadget/

Lines Matching refs:ep_num

315 static void dr_ep_setup(unsigned char ep_num, unsigned char dir,
320 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
322 if (ep_num)
328 if (ep_num)
335 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]);
339 dr_ep_change_stall(unsigned char ep_num, unsigned char dir, int value)
343 tmp_epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
361 fsl_writel(tmp_epctrl, &dr_regs->endptctrl[ep_num]);
366 static int dr_ep_get_stall(unsigned char ep_num, unsigned char dir)
370 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
386 static void struct_ep_qh_setup(struct fsl_udc *udc, unsigned char ep_num,
391 struct ep_queue_head *p_QH = &udc->ep_qh[2 * ep_num + dir];
544 int ep_num;
553 ep_num = ep_index(ep);
554 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
559 fsl_writel(epctrl, &dr_regs->endptctrl[ep_num]);
848 int ep_num, stopped, ret = 0;
859 ep_num = ep_index(ep);
860 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
865 fsl_writel(epctrl, &dr_regs->endptctrl[ep_num]);
908 out: epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]);
913 fsl_writel(epctrl, &dr_regs->endptctrl[ep_num]);
933 unsigned char ep_dir = 0, ep_num = 0;
957 ep_num = (unsigned char)(ep_index(ep));
959 dr_ep_change_stall(ep_num, ep_dir, value);
976 int ep_num, ep_dir;
988 ep_num = ep_index(ep);
991 if (ep_num == 0)
994 bits = 1 << (16 + ep_num);
996 bits = 1 << ep_num;
1401 static void tripwire_handler(struct fsl_udc *udc, u8 ep_num, u8 *buffer_ptr)
1406 qh = &udc->ep_qh[ep_num * 2 + EP_DIR_OUT];
1410 fsl_writel(temp | (1 << ep_num), &dr_regs->endptsetupstat);
1507 int i, ep_num, direction, bit_mask, status;
1519 ep_num = i >> 1;
1522 bit_mask = 1 << (ep_num + 16 * direction);
1541 status, ep_num);
1547 if (ep_num == 0) {