pipenum 156 drivers/gpu/drm/gma500/mdfld_device.c static int mdfld_save_display_registers(struct drm_device *dev, int pipenum) pipenum 160 drivers/gpu/drm/gma500/mdfld_device.c struct psb_pipe *pipe = &dev_priv->regs.pipe[pipenum]; pipenum 161 drivers/gpu/drm/gma500/mdfld_device.c const struct psb_offset *map = &dev_priv->regmap[pipenum]; pipenum 168 drivers/gpu/drm/gma500/mdfld_device.c switch (pipenum) { pipenum 210 drivers/gpu/drm/gma500/mdfld_device.c if (pipenum == 1) { pipenum 230 drivers/gpu/drm/gma500/mdfld_device.c static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum) pipenum 238 drivers/gpu/drm/gma500/mdfld_device.c struct psb_pipe *pipe = &dev_priv->regs.pipe[pipenum]; pipenum 239 drivers/gpu/drm/gma500/mdfld_device.c const struct psb_offset *map = &dev_priv->regmap[pipenum]; pipenum 251 drivers/gpu/drm/gma500/mdfld_device.c switch (pipenum) { pipenum 272 drivers/gpu/drm/gma500/mdfld_device.c if (pipenum == 1) { pipenum 333 drivers/gpu/drm/gma500/mdfld_device.c if (pipenum == 1) { pipenum 357 drivers/gpu/drm/gma500/mdfld_device.c mdfld_dsi_controller_init(dsi_config, pipenum); pipenum 396 drivers/net/wireless/ath/ath10k/ce.h __le32 pipenum; pipenum 425 drivers/net/wireless/ath/ath10k/ce.h __le32 pipenum; pipenum 228 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(0), pipenum 238 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(1), pipenum 248 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(2), pipenum 258 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(3), pipenum 268 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(4), pipenum 280 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(5), pipenum 290 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(6), pipenum 300 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(7), pipenum 310 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(8), pipenum 320 drivers/net/wireless/ath/ath10k/pci.c .pipenum = __cpu_to_le32(9), pipenum 1840 drivers/net/wireless/ath/ath10k/pci.c *dl_pipe = __le32_to_cpu(entry->pipenum); pipenum 1845 drivers/net/wireless/ath/ath10k/pci.c *ul_pipe = __le32_to_cpu(entry->pipenum); pipenum 1851 drivers/net/wireless/ath/ath10k/pci.c *dl_pipe = __le32_to_cpu(entry->pipenum); pipenum 1852 drivers/net/wireless/ath/ath10k/pci.c *ul_pipe = __le32_to_cpu(entry->pipenum); pipenum 2477 drivers/net/wireless/ath/ath10k/pci.c target_service_to_ce_map_wlan[15].pipenum = __cpu_to_le32(1); pipenum 238 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(0), pipenum 248 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(1), pipenum 258 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(2), pipenum 268 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(3), pipenum 278 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(4), pipenum 288 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(5), pipenum 298 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(6), pipenum 308 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(7), pipenum 318 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(8), pipenum 328 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(9), pipenum 338 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(10), pipenum 348 drivers/net/wireless/ath/ath10k/snoc.c .pipenum = __cpu_to_le32(11), pipenum 787 drivers/net/wireless/ath/ath10k/snoc.c *dl_pipe = __le32_to_cpu(entry->pipenum); pipenum 792 drivers/net/wireless/ath/ath10k/snoc.c *ul_pipe = __le32_to_cpu(entry->pipenum); pipenum 798 drivers/net/wireless/ath/ath10k/snoc.c *dl_pipe = __le32_to_cpu(entry->pipenum); pipenum 799 drivers/net/wireless/ath/ath10k/snoc.c *ul_pipe = __le32_to_cpu(entry->pipenum); pipenum 959 drivers/net/wireless/ath/ath10k/snoc.c target_ce_config_wlan[pipe_num].pipenum; pipenum 49 drivers/usb/gadget/udc/m66592-udc.c static void enable_pipe_irq(struct m66592 *m66592, u16 pipenum, pipenum 57 drivers/usb/gadget/udc/m66592-udc.c m66592_bset(m66592, (1 << pipenum), reg); pipenum 61 drivers/usb/gadget/udc/m66592-udc.c static void disable_pipe_irq(struct m66592 *m66592, u16 pipenum, pipenum 69 drivers/usb/gadget/udc/m66592-udc.c m66592_bclr(m66592, (1 << pipenum), reg); pipenum 102 drivers/usb/gadget/udc/m66592-udc.c static inline u16 control_reg_get_pid(struct m66592 *m66592, u16 pipenum) pipenum 107 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) pipenum 109 drivers/usb/gadget/udc/m66592-udc.c else if (pipenum < M66592_MAX_NUM_PIPE) { pipenum 110 drivers/usb/gadget/udc/m66592-udc.c offset = get_pipectr_addr(pipenum); pipenum 113 drivers/usb/gadget/udc/m66592-udc.c pr_err("unexpect pipe num (%d)\n", pipenum); pipenum 118 drivers/usb/gadget/udc/m66592-udc.c static inline void control_reg_set_pid(struct m66592 *m66592, u16 pipenum, pipenum 123 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) pipenum 125 drivers/usb/gadget/udc/m66592-udc.c else if (pipenum < M66592_MAX_NUM_PIPE) { pipenum 126 drivers/usb/gadget/udc/m66592-udc.c offset = get_pipectr_addr(pipenum); pipenum 129 drivers/usb/gadget/udc/m66592-udc.c pr_err("unexpect pipe num (%d)\n", pipenum); pipenum 132 drivers/usb/gadget/udc/m66592-udc.c static inline void pipe_start(struct m66592 *m66592, u16 pipenum) pipenum 134 drivers/usb/gadget/udc/m66592-udc.c control_reg_set_pid(m66592, pipenum, M66592_PID_BUF); pipenum 137 drivers/usb/gadget/udc/m66592-udc.c static inline void pipe_stop(struct m66592 *m66592, u16 pipenum) pipenum 139 drivers/usb/gadget/udc/m66592-udc.c control_reg_set_pid(m66592, pipenum, M66592_PID_NAK); pipenum 142 drivers/usb/gadget/udc/m66592-udc.c static inline void pipe_stall(struct m66592 *m66592, u16 pipenum) pipenum 144 drivers/usb/gadget/udc/m66592-udc.c control_reg_set_pid(m66592, pipenum, M66592_PID_STALL); pipenum 147 drivers/usb/gadget/udc/m66592-udc.c static inline u16 control_reg_get(struct m66592 *m66592, u16 pipenum) pipenum 152 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) pipenum 154 drivers/usb/gadget/udc/m66592-udc.c else if (pipenum < M66592_MAX_NUM_PIPE) { pipenum 155 drivers/usb/gadget/udc/m66592-udc.c offset = get_pipectr_addr(pipenum); pipenum 158 drivers/usb/gadget/udc/m66592-udc.c pr_err("unexpect pipe num (%d)\n", pipenum); pipenum 163 drivers/usb/gadget/udc/m66592-udc.c static inline void control_reg_sqclr(struct m66592 *m66592, u16 pipenum) pipenum 167 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, pipenum); pipenum 169 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) pipenum 171 drivers/usb/gadget/udc/m66592-udc.c else if (pipenum < M66592_MAX_NUM_PIPE) { pipenum 172 drivers/usb/gadget/udc/m66592-udc.c offset = get_pipectr_addr(pipenum); pipenum 175 drivers/usb/gadget/udc/m66592-udc.c pr_err("unexpect pipe num(%d)\n", pipenum); pipenum 178 drivers/usb/gadget/udc/m66592-udc.c static inline int get_buffer_size(struct m66592 *m66592, u16 pipenum) pipenum 183 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) { pipenum 192 drivers/usb/gadget/udc/m66592-udc.c m66592_write(m66592, pipenum, M66592_PIPESEL); pipenum 206 drivers/usb/gadget/udc/m66592-udc.c static inline void pipe_change(struct m66592 *m66592, u16 pipenum) pipenum 208 drivers/usb/gadget/udc/m66592-udc.c struct m66592_ep *ep = m66592->pipenum2ep[pipenum]; pipenum 214 drivers/usb/gadget/udc/m66592-udc.c m66592_mdfy(m66592, pipenum, M66592_CURPIPE, ep->fifosel); pipenum 311 drivers/usb/gadget/udc/m66592-udc.c m66592_mdfy(m66592, ep->pipenum, M66592_CURPIPE, ep->fifosel); pipenum 326 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum, int dma) pipenum 328 drivers/usb/gadget/udc/m66592-udc.c if ((pipenum != 0) && dma) { pipenum 358 drivers/usb/gadget/udc/m66592-udc.c ep->pipectr = get_pipectr_addr(pipenum); pipenum 359 drivers/usb/gadget/udc/m66592-udc.c ep->pipenum = pipenum; pipenum 361 drivers/usb/gadget/udc/m66592-udc.c m66592->pipenum2ep[pipenum] = ep; pipenum 369 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; pipenum 371 drivers/usb/gadget/udc/m66592-udc.c if (pipenum == 0) pipenum 376 drivers/usb/gadget/udc/m66592-udc.c ep->pipenum = 0; pipenum 392 drivers/usb/gadget/udc/m66592-udc.c BUG_ON(ep->pipenum); pipenum 465 drivers/usb/gadget/udc/m66592-udc.c info.pipe = ep->pipenum; pipenum 474 drivers/usb/gadget/udc/m66592-udc.c static void pipe_irq_enable(struct m66592 *m66592, u16 pipenum) pipenum 476 drivers/usb/gadget/udc/m66592-udc.c enable_irq_ready(m66592, pipenum); pipenum 477 drivers/usb/gadget/udc/m66592-udc.c enable_irq_nrdy(m66592, pipenum); pipenum 480 drivers/usb/gadget/udc/m66592-udc.c static void pipe_irq_disable(struct m66592 *m66592, u16 pipenum) pipenum 482 drivers/usb/gadget/udc/m66592-udc.c disable_irq_ready(m66592, pipenum); pipenum 483 drivers/usb/gadget/udc/m66592-udc.c disable_irq_nrdy(m66592, pipenum); pipenum 498 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, ep->pipenum); pipenum 518 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, ep->pipenum); pipenum 519 drivers/usb/gadget/udc/m66592-udc.c disable_irq_empty(m66592, ep->pipenum); pipenum 520 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, ep->pipenum); pipenum 524 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_enable(m66592, ep->pipenum); pipenum 532 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; pipenum 534 drivers/usb/gadget/udc/m66592-udc.c if (ep->pipenum == 0) { pipenum 539 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, pipenum); pipenum 540 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_enable(m66592, pipenum); pipenum 544 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, pipenum); pipenum 551 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, pipenum); /* trigger once */ pipenum 552 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_enable(m66592, pipenum); pipenum 712 drivers/usb/gadget/udc/m66592-udc.c if (unlikely(ep->pipenum == 0)) { pipenum 746 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; pipenum 749 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, pipenum); pipenum 764 drivers/usb/gadget/udc/m66592-udc.c bufsize = get_buffer_size(m66592, pipenum); pipenum 783 drivers/usb/gadget/udc/m66592-udc.c disable_irq_ready(m66592, pipenum); pipenum 784 drivers/usb/gadget/udc/m66592-udc.c disable_irq_empty(m66592, pipenum); pipenum 786 drivers/usb/gadget/udc/m66592-udc.c disable_irq_ready(m66592, pipenum); pipenum 787 drivers/usb/gadget/udc/m66592-udc.c enable_irq_empty(m66592, pipenum); pipenum 789 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, pipenum); pipenum 798 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; pipenum 801 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, pipenum); pipenum 804 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, pipenum); pipenum 805 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(m66592, pipenum); pipenum 806 drivers/usb/gadget/udc/m66592-udc.c pr_err("write fifo not ready. pipnum=%d\n", pipenum); pipenum 811 drivers/usb/gadget/udc/m66592-udc.c bufsize = get_buffer_size(m66592, pipenum); pipenum 831 drivers/usb/gadget/udc/m66592-udc.c disable_irq_ready(m66592, pipenum); pipenum 832 drivers/usb/gadget/udc/m66592-udc.c enable_irq_empty(m66592, pipenum); pipenum 834 drivers/usb/gadget/udc/m66592-udc.c disable_irq_empty(m66592, pipenum); pipenum 835 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_enable(m66592, pipenum); pipenum 845 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum = ep->pipenum; pipenum 849 drivers/usb/gadget/udc/m66592-udc.c pipe_change(m66592, pipenum); pipenum 853 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, pipenum); pipenum 854 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(m66592, pipenum); pipenum 861 drivers/usb/gadget/udc/m66592-udc.c bufsize = get_buffer_size(m66592, pipenum); pipenum 877 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, pipenum); pipenum 878 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(m66592, pipenum); pipenum 890 drivers/usb/gadget/udc/m66592-udc.c if ((ep->pipenum != 0) && finish) pipenum 897 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum; pipenum 910 drivers/usb/gadget/udc/m66592-udc.c for (pipenum = 1; pipenum < M66592_MAX_NUM_PIPE; pipenum++) { pipenum 911 drivers/usb/gadget/udc/m66592-udc.c check = 1 << pipenum; pipenum 914 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->pipenum2ep[pipenum]; pipenum 930 drivers/usb/gadget/udc/m66592-udc.c u16 pipenum; pipenum 941 drivers/usb/gadget/udc/m66592-udc.c for (pipenum = 1; pipenum < M66592_MAX_NUM_PIPE; pipenum++) { pipenum 942 drivers/usb/gadget/udc/m66592-udc.c check = 1 << pipenum; pipenum 945 drivers/usb/gadget/udc/m66592-udc.c tmp = control_reg_get(m66592, pipenum); pipenum 947 drivers/usb/gadget/udc/m66592-udc.c disable_irq_empty(m66592, pipenum); pipenum 948 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(m66592, pipenum); pipenum 949 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, pipenum); pipenum 950 drivers/usb/gadget/udc/m66592-udc.c ep = m66592->pipenum2ep[pipenum]; pipenum 980 drivers/usb/gadget/udc/m66592-udc.c pid = control_reg_get_pid(m66592, ep->pipenum); pipenum 1015 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(m66592, ep->pipenum); pipenum 1016 drivers/usb/gadget/udc/m66592-udc.c control_reg_sqclr(m66592, ep->pipenum); pipenum 1028 drivers/usb/gadget/udc/m66592-udc.c pipe_start(m66592, ep->pipenum); pipenum 1072 drivers/usb/gadget/udc/m66592-udc.c pipe_stall(m66592, ep->pipenum); pipenum 1324 drivers/usb/gadget/udc/m66592-udc.c pipe_irq_disable(ep->m66592, ep->pipenum); pipenum 1413 drivers/usb/gadget/udc/m66592-udc.c pipe_stall(ep->m66592, ep->pipenum); pipenum 1416 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(ep->m66592, ep->pipenum); pipenum 1430 drivers/usb/gadget/udc/m66592-udc.c pipe_stop(ep->m66592, ep->pipenum); pipenum 1643 drivers/usb/gadget/udc/m66592-udc.c m66592->ep[0].pipenum = 0; pipenum 411 drivers/usb/gadget/udc/m66592-udc.h #define get_pipectr_addr(pipenum) (M66592_PIPE1CTR + (pipenum - 1) * 2) pipenum 451 drivers/usb/gadget/udc/m66592-udc.h u16 pipenum; pipenum 497 drivers/usb/gadget/udc/m66592-udc.h #define is_bulk_pipe(pipenum) \ pipenum 498 drivers/usb/gadget/udc/m66592-udc.h ((pipenum >= M66592_BASE_PIPENUM_BULK) && \ pipenum 499 drivers/usb/gadget/udc/m66592-udc.h (pipenum < (M66592_BASE_PIPENUM_BULK + M66592_MAX_NUM_BULK))) pipenum 500 drivers/usb/gadget/udc/m66592-udc.h #define is_interrupt_pipe(pipenum) \ pipenum 501 drivers/usb/gadget/udc/m66592-udc.h ((pipenum >= M66592_BASE_PIPENUM_INT) && \ pipenum 502 drivers/usb/gadget/udc/m66592-udc.h (pipenum < (M66592_BASE_PIPENUM_INT + M66592_MAX_NUM_INT))) pipenum 503 drivers/usb/gadget/udc/m66592-udc.h #define is_isoc_pipe(pipenum) \ pipenum 504 drivers/usb/gadget/udc/m66592-udc.h ((pipenum >= M66592_BASE_PIPENUM_ISOC) && \ pipenum 505 drivers/usb/gadget/udc/m66592-udc.h (pipenum < (M66592_BASE_PIPENUM_ISOC + M66592_MAX_NUM_ISOC))) pipenum 507 drivers/usb/gadget/udc/m66592-udc.h #define enable_irq_ready(m66592, pipenum) \ pipenum 508 drivers/usb/gadget/udc/m66592-udc.h enable_pipe_irq(m66592, pipenum, M66592_BRDYENB) pipenum 509 drivers/usb/gadget/udc/m66592-udc.h #define disable_irq_ready(m66592, pipenum) \ pipenum 510 drivers/usb/gadget/udc/m66592-udc.h disable_pipe_irq(m66592, pipenum, M66592_BRDYENB) pipenum 511 drivers/usb/gadget/udc/m66592-udc.h #define enable_irq_empty(m66592, pipenum) \ pipenum 512 drivers/usb/gadget/udc/m66592-udc.h enable_pipe_irq(m66592, pipenum, M66592_BEMPENB) pipenum 513 drivers/usb/gadget/udc/m66592-udc.h #define disable_irq_empty(m66592, pipenum) \ pipenum 514 drivers/usb/gadget/udc/m66592-udc.h disable_pipe_irq(m66592, pipenum, M66592_BEMPENB) pipenum 515 drivers/usb/gadget/udc/m66592-udc.h #define enable_irq_nrdy(m66592, pipenum) \ pipenum 516 drivers/usb/gadget/udc/m66592-udc.h enable_pipe_irq(m66592, pipenum, M66592_NRDYENB) pipenum 517 drivers/usb/gadget/udc/m66592-udc.h #define disable_irq_nrdy(m66592, pipenum) \ pipenum 518 drivers/usb/gadget/udc/m66592-udc.h disable_pipe_irq(m66592, pipenum, M66592_NRDYENB) pipenum 50 drivers/usb/gadget/udc/r8a66597-udc.c static void enable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, pipenum 58 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bset(r8a66597, (1 << pipenum), reg); pipenum 62 drivers/usb/gadget/udc/r8a66597-udc.c static void disable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, pipenum 70 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_bclr(r8a66597, (1 << pipenum), reg); pipenum 101 drivers/usb/gadget/udc/r8a66597-udc.c static inline u16 control_reg_get_pid(struct r8a66597 *r8a66597, u16 pipenum) pipenum 106 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 108 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 109 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 113 drivers/usb/gadget/udc/r8a66597-udc.c pipenum); pipenum 119 drivers/usb/gadget/udc/r8a66597-udc.c static inline void control_reg_set_pid(struct r8a66597 *r8a66597, u16 pipenum, pipenum 124 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 126 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 127 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 131 drivers/usb/gadget/udc/r8a66597-udc.c pipenum); pipenum 135 drivers/usb/gadget/udc/r8a66597-udc.c static inline void pipe_start(struct r8a66597 *r8a66597, u16 pipenum) pipenum 137 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_set_pid(r8a66597, pipenum, PID_BUF); pipenum 140 drivers/usb/gadget/udc/r8a66597-udc.c static inline void pipe_stop(struct r8a66597 *r8a66597, u16 pipenum) pipenum 142 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_set_pid(r8a66597, pipenum, PID_NAK); pipenum 145 drivers/usb/gadget/udc/r8a66597-udc.c static inline void pipe_stall(struct r8a66597 *r8a66597, u16 pipenum) pipenum 147 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_set_pid(r8a66597, pipenum, PID_STALL); pipenum 150 drivers/usb/gadget/udc/r8a66597-udc.c static inline u16 control_reg_get(struct r8a66597 *r8a66597, u16 pipenum) pipenum 155 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 157 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 158 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 162 drivers/usb/gadget/udc/r8a66597-udc.c pipenum); pipenum 168 drivers/usb/gadget/udc/r8a66597-udc.c static inline void control_reg_sqclr(struct r8a66597 *r8a66597, u16 pipenum) pipenum 172 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 174 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 176 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 177 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 181 drivers/usb/gadget/udc/r8a66597-udc.c pipenum); pipenum 185 drivers/usb/gadget/udc/r8a66597-udc.c static void control_reg_sqset(struct r8a66597 *r8a66597, u16 pipenum) pipenum 189 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 191 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 193 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 194 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 198 drivers/usb/gadget/udc/r8a66597-udc.c "unexpect pipe num(%d)\n", pipenum); pipenum 202 drivers/usb/gadget/udc/r8a66597-udc.c static u16 control_reg_sqmon(struct r8a66597 *r8a66597, u16 pipenum) pipenum 206 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 208 drivers/usb/gadget/udc/r8a66597-udc.c } else if (pipenum < R8A66597_MAX_NUM_PIPE) { pipenum 209 drivers/usb/gadget/udc/r8a66597-udc.c offset = get_pipectr_addr(pipenum); pipenum 213 drivers/usb/gadget/udc/r8a66597-udc.c "unexpect pipe num(%d)\n", pipenum); pipenum 219 drivers/usb/gadget/udc/r8a66597-udc.c static u16 save_usb_toggle(struct r8a66597 *r8a66597, u16 pipenum) pipenum 221 drivers/usb/gadget/udc/r8a66597-udc.c return control_reg_sqmon(r8a66597, pipenum); pipenum 224 drivers/usb/gadget/udc/r8a66597-udc.c static void restore_usb_toggle(struct r8a66597 *r8a66597, u16 pipenum, pipenum 228 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_sqset(r8a66597, pipenum); pipenum 230 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_sqclr(r8a66597, pipenum); pipenum 233 drivers/usb/gadget/udc/r8a66597-udc.c static inline int get_buffer_size(struct r8a66597 *r8a66597, u16 pipenum) pipenum 238 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) { pipenum 247 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, pipenum, PIPESEL); pipenum 269 drivers/usb/gadget/udc/r8a66597-udc.c static void r8a66597_change_curpipe(struct r8a66597 *r8a66597, u16 pipenum, pipenum 275 drivers/usb/gadget/udc/r8a66597-udc.c if (!pipenum) { pipenum 280 drivers/usb/gadget/udc/r8a66597-udc.c loop = pipenum; pipenum 296 drivers/usb/gadget/udc/r8a66597-udc.c static void pipe_change(struct r8a66597 *r8a66597, u16 pipenum) pipenum 298 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; pipenum 303 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, pipenum, CURPIPE, ep->fifosel); pipenum 401 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_mdfy(r8a66597, ep->pipenum, CURPIPE, ep->fifosel); pipenum 412 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum, int dma) pipenum 419 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipectr = get_pipectr_addr(pipenum); pipenum 420 drivers/usb/gadget/udc/r8a66597-udc.c if (is_bulk_pipe(pipenum) || is_isoc_pipe(pipenum)) { pipenum 421 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetre = get_pipetre_addr(pipenum); pipenum 422 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipetrn = get_pipetrn_addr(pipenum); pipenum 427 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipenum = pipenum; pipenum 429 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->pipenum2ep[pipenum] = ep; pipenum 438 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; pipenum 440 drivers/usb/gadget/udc/r8a66597-udc.c if (pipenum == 0) pipenum 445 drivers/usb/gadget/udc/r8a66597-udc.c ep->pipenum = 0; pipenum 461 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->pipenum) /* already allocated pipe */ pipenum 539 drivers/usb/gadget/udc/r8a66597-udc.c info.pipe = ep->pipenum; pipenum 548 drivers/usb/gadget/udc/r8a66597-udc.c static void pipe_irq_enable(struct r8a66597 *r8a66597, u16 pipenum) pipenum 550 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_ready(r8a66597, pipenum); pipenum 551 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_nrdy(r8a66597, pipenum); pipenum 554 drivers/usb/gadget/udc/r8a66597-udc.c static void pipe_irq_disable(struct r8a66597 *r8a66597, u16 pipenum) pipenum 556 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_ready(r8a66597, pipenum); pipenum 557 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_nrdy(r8a66597, pipenum); pipenum 573 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); pipenum 586 drivers/usb/gadget/udc/r8a66597-udc.c static void disable_fifosel(struct r8a66597 *r8a66597, u16 pipenum, pipenum 592 drivers/usb/gadget/udc/r8a66597-udc.c if (tmp == pipenum) pipenum 596 drivers/usb/gadget/udc/r8a66597-udc.c static void change_bfre_mode(struct r8a66597 *r8a66597, u16 pipenum, pipenum 599 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; pipenum 603 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, pipenum, PIPESEL); pipenum 609 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 610 drivers/usb/gadget/udc/r8a66597-udc.c disable_fifosel(r8a66597, pipenum, CFIFOSEL); pipenum 611 drivers/usb/gadget/udc/r8a66597-udc.c disable_fifosel(r8a66597, pipenum, D0FIFOSEL); pipenum 612 drivers/usb/gadget/udc/r8a66597-udc.c disable_fifosel(r8a66597, pipenum, D1FIFOSEL); pipenum 614 drivers/usb/gadget/udc/r8a66597-udc.c toggle = save_usb_toggle(r8a66597, pipenum); pipenum 616 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, pipenum, PIPESEL); pipenum 626 drivers/usb/gadget/udc/r8a66597-udc.c restore_usb_toggle(r8a66597, pipenum, toggle); pipenum 639 drivers/usb/gadget/udc/r8a66597-udc.c if (!is_bulk_pipe(ep->pipenum)) pipenum 652 drivers/usb/gadget/udc/r8a66597-udc.c change_bfre_mode(r8a66597, ep->pipenum, 1); pipenum 704 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); pipenum 705 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, ep->pipenum); pipenum 706 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); pipenum 711 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, ~(1 << ep->pipenum), BRDYSTS); pipenum 714 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); pipenum 715 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, ep->pipenum); pipenum 716 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); pipenum 719 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_enable(r8a66597, ep->pipenum); pipenum 724 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, ep->pipenum); pipenum 725 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_nrdy(r8a66597, ep->pipenum); pipenum 726 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); pipenum 727 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_nrdy(r8a66597, ep->pipenum); pipenum 737 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; pipenum 739 drivers/usb/gadget/udc/r8a66597-udc.c if (ep->pipenum == 0) { pipenum 742 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, pipenum); pipenum 743 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_enable(r8a66597, pipenum); pipenum 745 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 747 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_nrdy(r8a66597, pipenum); pipenum 757 drivers/usb/gadget/udc/r8a66597-udc.c change_bfre_mode(r8a66597, ep->pipenum, 0); pipenum 758 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, pipenum); /* trigger once */ pipenum 759 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_enable(r8a66597, pipenum); pipenum 761 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, pipenum); pipenum 763 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, pipenum); /* trigger once */ pipenum 905 drivers/usb/gadget/udc/r8a66597-udc.c if (unlikely(ep->pipenum == 0)) { pipenum 942 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; pipenum 945 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, pipenum); pipenum 961 drivers/usb/gadget/udc/r8a66597-udc.c bufsize = get_buffer_size(r8a66597, pipenum); pipenum 980 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_ready(r8a66597, pipenum); pipenum 981 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, pipenum); pipenum 983 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_ready(r8a66597, pipenum); pipenum 984 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_empty(r8a66597, pipenum); pipenum 986 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, pipenum); pipenum 996 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; pipenum 999 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, pipenum); pipenum 1002 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 1003 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(r8a66597, pipenum); pipenum 1005 drivers/usb/gadget/udc/r8a66597-udc.c "write fifo not ready. pipnum=%d\n", pipenum); pipenum 1010 drivers/usb/gadget/udc/r8a66597-udc.c bufsize = get_buffer_size(r8a66597, pipenum); pipenum 1030 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_ready(r8a66597, pipenum); pipenum 1031 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_empty(r8a66597, pipenum); pipenum 1033 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, pipenum); pipenum 1034 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_enable(r8a66597, pipenum); pipenum 1045 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum = ep->pipenum; pipenum 1049 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, pipenum); pipenum 1053 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 1054 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(r8a66597, pipenum); pipenum 1061 drivers/usb/gadget/udc/r8a66597-udc.c bufsize = get_buffer_size(r8a66597, pipenum); pipenum 1077 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 1078 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(r8a66597, pipenum); pipenum 1091 drivers/usb/gadget/udc/r8a66597-udc.c if ((ep->pipenum != 0) && finish) pipenum 1098 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum; pipenum 1110 drivers/usb/gadget/udc/r8a66597-udc.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1111 drivers/usb/gadget/udc/r8a66597-udc.c check = 1 << pipenum; pipenum 1114 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; pipenum 1129 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum; pipenum 1140 drivers/usb/gadget/udc/r8a66597-udc.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1141 drivers/usb/gadget/udc/r8a66597-udc.c check = 1 << pipenum; pipenum 1144 drivers/usb/gadget/udc/r8a66597-udc.c tmp = control_reg_get(r8a66597, pipenum); pipenum 1146 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_empty(r8a66597, pipenum); pipenum 1147 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(r8a66597, pipenum); pipenum 1148 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, pipenum); pipenum 1149 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; pipenum 1177 drivers/usb/gadget/udc/r8a66597-udc.c pid = control_reg_get_pid(r8a66597, ep->pipenum); pipenum 1214 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(r8a66597, ep->pipenum); pipenum 1215 drivers/usb/gadget/udc/r8a66597-udc.c control_reg_sqclr(r8a66597, ep->pipenum); pipenum 1230 drivers/usb/gadget/udc/r8a66597-udc.c pipe_start(r8a66597, ep->pipenum); pipenum 1273 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stall(r8a66597, ep->pipenum); pipenum 1402 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum; pipenum 1407 drivers/usb/gadget/udc/r8a66597-udc.c pipenum = ep->pipenum; pipenum 1408 drivers/usb/gadget/udc/r8a66597-udc.c pipe_change(r8a66597, pipenum); pipenum 1415 drivers/usb/gadget/udc/r8a66597-udc.c __func__, pipenum); pipenum 1434 drivers/usb/gadget/udc/r8a66597-udc.c disable_irq_ready(r8a66597, pipenum); pipenum 1435 drivers/usb/gadget/udc/r8a66597-udc.c enable_irq_empty(r8a66597, pipenum); pipenum 1438 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597_write(r8a66597, ~(1 << pipenum), BRDYSTS); pipenum 1448 drivers/usb/gadget/udc/r8a66597-udc.c u16 pipenum; pipenum 1453 drivers/usb/gadget/udc/r8a66597-udc.c pipenum = (r8a66597_read(r8a66597, D0FIFOSEL) & CURPIPE); pipenum 1454 drivers/usb/gadget/udc/r8a66597-udc.c ep = r8a66597->pipenum2ep[pipenum]; pipenum 1574 drivers/usb/gadget/udc/r8a66597-udc.c pipe_irq_disable(ep->r8a66597, ep->pipenum); pipenum 1663 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stall(ep->r8a66597, ep->pipenum); pipenum 1667 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(ep->r8a66597, ep->pipenum); pipenum 1698 drivers/usb/gadget/udc/r8a66597-udc.c pipe_stop(ep->r8a66597, ep->pipenum); pipenum 1933 drivers/usb/gadget/udc/r8a66597-udc.c r8a66597->ep[0].pipenum = 0; pipenum 30 drivers/usb/gadget/udc/r8a66597-udc.h #define is_bulk_pipe(pipenum) \ pipenum 31 drivers/usb/gadget/udc/r8a66597-udc.h ((pipenum >= R8A66597_BASE_PIPENUM_BULK) && \ pipenum 32 drivers/usb/gadget/udc/r8a66597-udc.h (pipenum < (R8A66597_BASE_PIPENUM_BULK + R8A66597_MAX_NUM_BULK))) pipenum 33 drivers/usb/gadget/udc/r8a66597-udc.h #define is_interrupt_pipe(pipenum) \ pipenum 34 drivers/usb/gadget/udc/r8a66597-udc.h ((pipenum >= R8A66597_BASE_PIPENUM_INT) && \ pipenum 35 drivers/usb/gadget/udc/r8a66597-udc.h (pipenum < (R8A66597_BASE_PIPENUM_INT + R8A66597_MAX_NUM_INT))) pipenum 36 drivers/usb/gadget/udc/r8a66597-udc.h #define is_isoc_pipe(pipenum) \ pipenum 37 drivers/usb/gadget/udc/r8a66597-udc.h ((pipenum >= R8A66597_BASE_PIPENUM_ISOC) && \ pipenum 38 drivers/usb/gadget/udc/r8a66597-udc.h (pipenum < (R8A66597_BASE_PIPENUM_ISOC + R8A66597_MAX_NUM_ISOC))) pipenum 67 drivers/usb/gadget/udc/r8a66597-udc.h u16 pipenum; pipenum 269 drivers/usb/gadget/udc/r8a66597-udc.h #define get_pipectr_addr(pipenum) (PIPE1CTR + (pipenum - 1) * 2) pipenum 270 drivers/usb/gadget/udc/r8a66597-udc.h #define get_pipetre_addr(pipenum) (PIPE1TRE + (pipenum - 1) * 4) pipenum 271 drivers/usb/gadget/udc/r8a66597-udc.h #define get_pipetrn_addr(pipenum) (PIPE1TRN + (pipenum - 1) * 4) pipenum 273 drivers/usb/gadget/udc/r8a66597-udc.h #define enable_irq_ready(r8a66597, pipenum) \ pipenum 274 drivers/usb/gadget/udc/r8a66597-udc.h enable_pipe_irq(r8a66597, pipenum, BRDYENB) pipenum 275 drivers/usb/gadget/udc/r8a66597-udc.h #define disable_irq_ready(r8a66597, pipenum) \ pipenum 276 drivers/usb/gadget/udc/r8a66597-udc.h disable_pipe_irq(r8a66597, pipenum, BRDYENB) pipenum 277 drivers/usb/gadget/udc/r8a66597-udc.h #define enable_irq_empty(r8a66597, pipenum) \ pipenum 278 drivers/usb/gadget/udc/r8a66597-udc.h enable_pipe_irq(r8a66597, pipenum, BEMPENB) pipenum 279 drivers/usb/gadget/udc/r8a66597-udc.h #define disable_irq_empty(r8a66597, pipenum) \ pipenum 280 drivers/usb/gadget/udc/r8a66597-udc.h disable_pipe_irq(r8a66597, pipenum, BEMPENB) pipenum 281 drivers/usb/gadget/udc/r8a66597-udc.h #define enable_irq_nrdy(r8a66597, pipenum) \ pipenum 282 drivers/usb/gadget/udc/r8a66597-udc.h enable_pipe_irq(r8a66597, pipenum, NRDYENB) pipenum 283 drivers/usb/gadget/udc/r8a66597-udc.h #define disable_irq_nrdy(r8a66597, pipenum) \ pipenum 284 drivers/usb/gadget/udc/r8a66597-udc.h disable_pipe_irq(r8a66597, pipenum, NRDYENB) pipenum 41 drivers/usb/host/r8a66597-hcd.c static void packet_write(struct r8a66597 *r8a66597, u16 pipenum); pipenum 45 drivers/usb/host/r8a66597-hcd.c static void enable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, pipenum 52 drivers/usb/host/r8a66597-hcd.c r8a66597_bset(r8a66597, 1 << pipenum, reg); pipenum 57 drivers/usb/host/r8a66597-hcd.c static void disable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, pipenum 64 drivers/usb/host/r8a66597-hcd.c r8a66597_bclr(r8a66597, 1 << pipenum, reg); pipenum 299 drivers/usb/host/r8a66597-hcd.c u16 pipenum = pipe->info.pipenum; pipenum 311 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0) pipenum 314 drivers/usb/host/r8a66597-hcd.c pipe->pipectr = get_pipectr_addr(pipenum); pipenum 316 drivers/usb/host/r8a66597-hcd.c if (check_bulk_or_isoc(pipenum)) { pipenum 317 drivers/usb/host/r8a66597-hcd.c pipe->pipetre = get_pipetre_addr(pipenum); pipenum 318 drivers/usb/host/r8a66597-hcd.c pipe->pipetrn = get_pipetrn_addr(pipenum); pipenum 457 drivers/usb/host/r8a66597-hcd.c if ((pipe->info.pipenum != 0) & ((tmp & PID_STALL) != 0)) /* stall? */ pipenum 480 drivers/usb/host/r8a66597-hcd.c if (!pipe || pipe->info.pipenum == 0) pipenum 510 drivers/usb/host/r8a66597-hcd.c static inline void cfifo_change(struct r8a66597 *r8a66597, u16 pipenum) pipenum 514 drivers/usb/host/r8a66597-hcd.c r8a66597_mdfy(r8a66597, mbw | pipenum, mbw | CURPIPE, CFIFOSEL); pipenum 515 drivers/usb/host/r8a66597-hcd.c r8a66597_reg_wait(r8a66597, CFIFOSEL, CURPIPE, pipenum); pipenum 528 drivers/usb/host/r8a66597-hcd.c r8a66597_mdfy(r8a66597, mbw | pipe->info.pipenum, mbw | CURPIPE, pipenum 530 drivers/usb/host/r8a66597-hcd.c r8a66597_reg_wait(r8a66597, pipe->fifosel, CURPIPE, pipe->info.pipenum); pipenum 540 drivers/usb/host/r8a66597-hcd.c return pipe->info.pipenum; pipenum 609 drivers/usb/host/r8a66597-hcd.c if (info->pipenum == 0) pipenum 612 drivers/usb/host/r8a66597-hcd.c r8a66597_bset(r8a66597, ACLRM, get_pipectr_addr(info->pipenum)); pipenum 613 drivers/usb/host/r8a66597-hcd.c r8a66597_bclr(r8a66597, ACLRM, get_pipectr_addr(info->pipenum)); pipenum 614 drivers/usb/host/r8a66597-hcd.c r8a66597_write(r8a66597, info->pipenum, PIPESEL); pipenum 635 drivers/usb/host/r8a66597-hcd.c if (td->pipenum > 0) { pipenum 722 drivers/usb/host/r8a66597-hcd.c static u16 get_bufnum(u16 pipenum) pipenum 726 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0) pipenum 728 drivers/usb/host/r8a66597-hcd.c else if (check_bulk_or_isoc(pipenum)) pipenum 729 drivers/usb/host/r8a66597-hcd.c bufnum = 8 + (pipenum - 1) * R8A66597_BUF_BSIZE*2; pipenum 730 drivers/usb/host/r8a66597-hcd.c else if (check_interrupt(pipenum)) pipenum 731 drivers/usb/host/r8a66597-hcd.c bufnum = 4 + (pipenum - 6); pipenum 733 drivers/usb/host/r8a66597-hcd.c printk(KERN_ERR "r8a66597: Illegal pipenum (%d)\n", pipenum); pipenum 738 drivers/usb/host/r8a66597-hcd.c static u16 get_buf_bsize(u16 pipenum) pipenum 742 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0) pipenum 744 drivers/usb/host/r8a66597-hcd.c else if (check_bulk_or_isoc(pipenum)) pipenum 746 drivers/usb/host/r8a66597-hcd.c else if (check_interrupt(pipenum)) pipenum 749 drivers/usb/host/r8a66597-hcd.c printk(KERN_ERR "r8a66597: Illegal pipenum (%d)\n", pipenum); pipenum 768 drivers/usb/host/r8a66597-hcd.c if ((pipe->info.pipenum != 0) && (info->type != R8A66597_INT)) { pipenum 785 drivers/usb/host/r8a66597-hcd.c r8a66597_mdfy(r8a66597, mbw | pipe->info.pipenum, pipenum 789 drivers/usb/host/r8a66597-hcd.c pipe->info.pipenum); pipenum 808 drivers/usb/host/r8a66597-hcd.c r8a66597->pipe_cnt[pipe->info.pipenum]++; pipenum 809 drivers/usb/host/r8a66597-hcd.c dev->pipe_cnt[pipe->info.pipenum]++; pipenum 835 drivers/usb/host/r8a66597-hcd.c static void force_dequeue(struct r8a66597 *r8a66597, u16 pipenum, u16 address) pipenum 839 drivers/usb/host/r8a66597-hcd.c struct list_head *list = &r8a66597->pipe_queue[pipenum]; pipenum 864 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 869 drivers/usb/host/r8a66597-hcd.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 870 drivers/usb/host/r8a66597-hcd.c if (!dev->pipe_cnt[pipenum]) pipenum 878 drivers/usb/host/r8a66597-hcd.c r8a66597->pipe_cnt[pipenum] -= dev->pipe_cnt[pipenum]; pipenum 879 drivers/usb/host/r8a66597-hcd.c dev->pipe_cnt[pipenum] = 0; pipenum 880 drivers/usb/host/r8a66597-hcd.c force_dequeue(r8a66597, pipenum, dev->address); pipenum 941 drivers/usb/host/r8a66597-hcd.c info.pipenum = get_empty_pipenum(r8a66597, ep); pipenum 946 drivers/usb/host/r8a66597-hcd.c info.bufnum = get_bufnum(info.pipenum); pipenum 947 drivers/usb/host/r8a66597-hcd.c info.buf_bsize = get_buf_bsize(info.pipenum); pipenum 972 drivers/usb/host/r8a66597-hcd.c u16 pipenum) pipenum 974 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0 && usb_pipeout(urb->pipe)) pipenum 975 drivers/usb/host/r8a66597-hcd.c enable_irq_empty(r8a66597, pipenum); pipenum 977 drivers/usb/host/r8a66597-hcd.c enable_irq_ready(r8a66597, pipenum); pipenum 980 drivers/usb/host/r8a66597-hcd.c enable_irq_nrdy(r8a66597, pipenum); pipenum 983 drivers/usb/host/r8a66597-hcd.c static void pipe_irq_disable(struct r8a66597 *r8a66597, u16 pipenum) pipenum 985 drivers/usb/host/r8a66597-hcd.c disable_irq_ready(r8a66597, pipenum); pipenum 986 drivers/usb/host/r8a66597-hcd.c disable_irq_nrdy(r8a66597, pipenum); pipenum 1098 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, td->pipenum); pipenum 1100 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); pipenum 1103 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, td->pipenum); pipenum 1106 drivers/usb/host/r8a66597-hcd.c r8a66597_write(r8a66597, ~(1 << td->pipenum), BRDYSTS); pipenum 1121 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); pipenum 1148 drivers/usb/host/r8a66597-hcd.c r8a66597_write(r8a66597, ~(1 << td->pipenum), BRDYSTS); pipenum 1153 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, td->pipenum); pipenum 1155 drivers/usb/host/r8a66597-hcd.c packet_write(r8a66597, td->pipenum); pipenum 1250 drivers/usb/host/r8a66597-hcd.c if (!list_empty(&r8a66597->pipe_queue[td->pipenum]) && pipenum 1252 drivers/usb/host/r8a66597-hcd.c r8a66597->timeout_map |= 1 << td->pipenum; pipenum 1263 drivers/usb/host/r8a66597-hcd.c mod_timer(&r8a66597->timers[td->pipenum].td, pipenum 1270 drivers/usb/host/r8a66597-hcd.c u16 pipenum, struct urb *urb, int status) pipenum 1276 drivers/usb/host/r8a66597-hcd.c r8a66597->timeout_map &= ~(1 << pipenum); pipenum 1287 drivers/usb/host/r8a66597-hcd.c if (!list_empty(&r8a66597->pipe_queue[pipenum])) pipenum 1298 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1307 drivers/usb/host/r8a66597-hcd.c static void packet_read(struct r8a66597 *r8a66597, u16 pipenum) pipenum 1312 drivers/usb/host/r8a66597-hcd.c struct r8a66597_td *td = r8a66597_get_td(r8a66597, pipenum); pipenum 1325 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 1326 drivers/usb/host/r8a66597-hcd.c printk(KERN_ERR "r8a66597: in fifo not ready (%d)\n", pipenum); pipenum 1327 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, -EPIPE); pipenum 1367 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 1380 drivers/usb/host/r8a66597-hcd.c if (finish && pipenum != 0) pipenum 1381 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, status); pipenum 1384 drivers/usb/host/r8a66597-hcd.c static void packet_write(struct r8a66597 *r8a66597, u16 pipenum) pipenum 1389 drivers/usb/host/r8a66597-hcd.c struct r8a66597_td *td = r8a66597_get_td(r8a66597, pipenum); pipenum 1400 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 1401 drivers/usb/host/r8a66597-hcd.c printk(KERN_ERR "r8a66597: out fifo not ready (%d)\n", pipenum); pipenum 1402 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, -EPIPE); pipenum 1420 drivers/usb/host/r8a66597-hcd.c if (pipenum > 0) pipenum 1421 drivers/usb/host/r8a66597-hcd.c r8a66597_write(r8a66597, ~(1 << pipenum), BEMPSTS); pipenum 1438 drivers/usb/host/r8a66597-hcd.c disable_irq_ready(r8a66597, pipenum); pipenum 1439 drivers/usb/host/r8a66597-hcd.c enable_irq_empty(r8a66597, pipenum); pipenum 1441 drivers/usb/host/r8a66597-hcd.c enable_irq_nrdy(r8a66597, pipenum); pipenum 1443 drivers/usb/host/r8a66597-hcd.c pipe_irq_enable(r8a66597, urb, pipenum); pipenum 1482 drivers/usb/host/r8a66597-hcd.c static int get_urb_error(struct r8a66597 *r8a66597, u16 pipenum) pipenum 1484 drivers/usb/host/r8a66597-hcd.c struct r8a66597_td *td = r8a66597_get_td(r8a66597, pipenum); pipenum 1500 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1516 drivers/usb/host/r8a66597-hcd.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1517 drivers/usb/host/r8a66597-hcd.c check = 1 << pipenum; pipenum 1519 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1524 drivers/usb/host/r8a66597-hcd.c packet_read(r8a66597, pipenum); pipenum 1526 drivers/usb/host/r8a66597-hcd.c packet_write(r8a66597, pipenum); pipenum 1535 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1550 drivers/usb/host/r8a66597-hcd.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1551 drivers/usb/host/r8a66597-hcd.c check = 1 << pipenum; pipenum 1554 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1560 drivers/usb/host/r8a66597-hcd.c disable_irq_empty(r8a66597, pipenum); pipenum 1561 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 1562 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, pipenum 1572 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1586 drivers/usb/host/r8a66597-hcd.c for (pipenum = 1; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1587 drivers/usb/host/r8a66597-hcd.c check = 1 << pipenum; pipenum 1590 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1594 drivers/usb/host/r8a66597-hcd.c status = get_urb_error(r8a66597, pipenum); pipenum 1595 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 1597 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, td->urb, status); pipenum 1728 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1733 drivers/usb/host/r8a66597-hcd.c for (pipenum = 0; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1734 drivers/usb/host/r8a66597-hcd.c if (!(r8a66597->interval_map & (1 << pipenum))) pipenum 1736 drivers/usb/host/r8a66597-hcd.c if (timer_pending(&r8a66597->timers[pipenum].interval)) pipenum 1739 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1752 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1757 drivers/usb/host/r8a66597-hcd.c for (pipenum = 0; pipenum < R8A66597_MAX_NUM_PIPE; pipenum++) { pipenum 1758 drivers/usb/host/r8a66597-hcd.c if (!(r8a66597->timeout_map & (1 << pipenum))) pipenum 1760 drivers/usb/host/r8a66597-hcd.c if (timer_pending(&r8a66597->timers[pipenum].td)) pipenum 1763 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 1765 drivers/usb/host/r8a66597-hcd.c r8a66597->timeout_map &= ~(1 << pipenum); pipenum 1781 drivers/usb/host/r8a66597-hcd.c &r8a66597->pipe_queue[pipenum]); pipenum 1782 drivers/usb/host/r8a66597-hcd.c new_td = r8a66597_get_td(r8a66597, pipenum); pipenum 1793 drivers/usb/host/r8a66597-hcd.c r8a66597->timeout_map &= ~(1 << pipenum); pipenum 1861 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1867 drivers/usb/host/r8a66597-hcd.c pipenum = r8a66597_get_pipenum(urb, hep); pipenum 1868 drivers/usb/host/r8a66597-hcd.c td->pipenum = pipenum; pipenum 1926 drivers/usb/host/r8a66597-hcd.c if (list_empty(&r8a66597->pipe_queue[td->pipenum])) pipenum 1928 drivers/usb/host/r8a66597-hcd.c list_add_tail(&td->queue, &r8a66597->pipe_queue[td->pipenum]); pipenum 1933 drivers/usb/host/r8a66597-hcd.c r8a66597->interval_map |= 1 << td->pipenum; pipenum 1934 drivers/usb/host/r8a66597-hcd.c mod_timer(&r8a66597->timers[td->pipenum].interval, pipenum 1971 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, td->pipenum); pipenum 1972 drivers/usb/host/r8a66597-hcd.c disable_irq_empty(r8a66597, td->pipenum); pipenum 1973 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, td->pipenum, urb, status); pipenum 1989 drivers/usb/host/r8a66597-hcd.c u16 pipenum; pipenum 1994 drivers/usb/host/r8a66597-hcd.c pipenum = pipe->info.pipenum; pipenum 1997 drivers/usb/host/r8a66597-hcd.c if (pipenum == 0) { pipenum 2005 drivers/usb/host/r8a66597-hcd.c pipe_irq_disable(r8a66597, pipenum); pipenum 2006 drivers/usb/host/r8a66597-hcd.c disable_irq_empty(r8a66597, pipenum); pipenum 2007 drivers/usb/host/r8a66597-hcd.c td = r8a66597_get_td(r8a66597, pipenum); pipenum 2010 drivers/usb/host/r8a66597-hcd.c finish_request(r8a66597, td, pipenum, urb, -ESHUTDOWN); pipenum 27 drivers/usb/host/r8a66597.h #define check_bulk_or_isoc(pipenum) ((pipenum >= 1 && pipenum <= 5)) pipenum 28 drivers/usb/host/r8a66597.h #define check_interrupt(pipenum) ((pipenum >= 6 && pipenum <= 9)) pipenum 33 drivers/usb/host/r8a66597.h u16 pipenum; pipenum 61 drivers/usb/host/r8a66597.h u16 pipenum; pipenum 142 drivers/usb/host/r8a66597.h u16 pipenum) pipenum 144 drivers/usb/host/r8a66597.h if (unlikely(list_empty(&r8a66597->pipe_queue[pipenum]))) pipenum 147 drivers/usb/host/r8a66597.h return list_entry(r8a66597->pipe_queue[pipenum].next, pipenum 152 drivers/usb/host/r8a66597.h u16 pipenum) pipenum 156 drivers/usb/host/r8a66597.h td = r8a66597_get_td(r8a66597, pipenum); pipenum 320 drivers/usb/host/r8a66597.h #define get_pipectr_addr(pipenum) (PIPE1CTR + (pipenum - 1) * 2) pipenum 321 drivers/usb/host/r8a66597.h #define get_pipetre_addr(pipenum) (PIPE1TRE + (pipenum - 1) * 4) pipenum 322 drivers/usb/host/r8a66597.h #define get_pipetrn_addr(pipenum) (PIPE1TRN + (pipenum - 1) * 4) pipenum 325 drivers/usb/host/r8a66597.h #define enable_irq_ready(r8a66597, pipenum) \ pipenum 326 drivers/usb/host/r8a66597.h enable_pipe_irq(r8a66597, pipenum, BRDYENB) pipenum 327 drivers/usb/host/r8a66597.h #define disable_irq_ready(r8a66597, pipenum) \ pipenum 328 drivers/usb/host/r8a66597.h disable_pipe_irq(r8a66597, pipenum, BRDYENB) pipenum 329 drivers/usb/host/r8a66597.h #define enable_irq_empty(r8a66597, pipenum) \ pipenum 330 drivers/usb/host/r8a66597.h enable_pipe_irq(r8a66597, pipenum, BEMPENB) pipenum 331 drivers/usb/host/r8a66597.h #define disable_irq_empty(r8a66597, pipenum) \ pipenum 332 drivers/usb/host/r8a66597.h disable_pipe_irq(r8a66597, pipenum, BEMPENB) pipenum 333 drivers/usb/host/r8a66597.h #define enable_irq_nrdy(r8a66597, pipenum) \ pipenum 334 drivers/usb/host/r8a66597.h enable_pipe_irq(r8a66597, pipenum, NRDYENB) pipenum 335 drivers/usb/host/r8a66597.h #define disable_irq_nrdy(r8a66597, pipenum) \ pipenum 336 drivers/usb/host/r8a66597.h disable_pipe_irq(r8a66597, pipenum, NRDYENB)