Home
last modified time | relevance | path

Searched refs:pipenum (Results 1 – 9 of 9) sorted by relevance

/drivers/usb/gadget/udc/
Dr8a66597-udc.c53 static void enable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, in enable_pipe_irq() argument
61 r8a66597_bset(r8a66597, (1 << pipenum), reg); in enable_pipe_irq()
65 static void disable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, in disable_pipe_irq() argument
73 r8a66597_bclr(r8a66597, (1 << pipenum), reg); in disable_pipe_irq()
104 static inline u16 control_reg_get_pid(struct r8a66597 *r8a66597, u16 pipenum) in control_reg_get_pid() argument
109 if (pipenum == 0) { in control_reg_get_pid()
111 } else if (pipenum < R8A66597_MAX_NUM_PIPE) { in control_reg_get_pid()
112 offset = get_pipectr_addr(pipenum); in control_reg_get_pid()
116 pipenum); in control_reg_get_pid()
122 static inline void control_reg_set_pid(struct r8a66597 *r8a66597, u16 pipenum, in control_reg_set_pid() argument
[all …]
Dr8a66597-udc.h33 #define is_bulk_pipe(pipenum) \ argument
34 ((pipenum >= R8A66597_BASE_PIPENUM_BULK) && \
35 (pipenum < (R8A66597_BASE_PIPENUM_BULK + R8A66597_MAX_NUM_BULK)))
36 #define is_interrupt_pipe(pipenum) \ argument
37 ((pipenum >= R8A66597_BASE_PIPENUM_INT) && \
38 (pipenum < (R8A66597_BASE_PIPENUM_INT + R8A66597_MAX_NUM_INT)))
39 #define is_isoc_pipe(pipenum) \ argument
40 ((pipenum >= R8A66597_BASE_PIPENUM_ISOC) && \
41 (pipenum < (R8A66597_BASE_PIPENUM_ISOC + R8A66597_MAX_NUM_ISOC)))
70 u16 pipenum; member
[all …]
Dm66592-udc.c52 static void enable_pipe_irq(struct m66592 *m66592, u16 pipenum, in enable_pipe_irq() argument
60 m66592_bset(m66592, (1 << pipenum), reg); in enable_pipe_irq()
64 static void disable_pipe_irq(struct m66592 *m66592, u16 pipenum, in disable_pipe_irq() argument
72 m66592_bclr(m66592, (1 << pipenum), reg); in disable_pipe_irq()
105 static inline u16 control_reg_get_pid(struct m66592 *m66592, u16 pipenum) in control_reg_get_pid() argument
110 if (pipenum == 0) in control_reg_get_pid()
112 else if (pipenum < M66592_MAX_NUM_PIPE) { in control_reg_get_pid()
113 offset = get_pipectr_addr(pipenum); in control_reg_get_pid()
116 pr_err("unexpect pipe num (%d)\n", pipenum); in control_reg_get_pid()
121 static inline void control_reg_set_pid(struct m66592 *m66592, u16 pipenum, in control_reg_set_pid() argument
[all …]
Dm66592-udc.h414 #define get_pipectr_addr(pipenum) (M66592_PIPE1CTR + (pipenum - 1) * 2) argument
454 u16 pipenum; member
500 #define is_bulk_pipe(pipenum) \ argument
501 ((pipenum >= M66592_BASE_PIPENUM_BULK) && \
502 (pipenum < (M66592_BASE_PIPENUM_BULK + M66592_MAX_NUM_BULK)))
503 #define is_interrupt_pipe(pipenum) \ argument
504 ((pipenum >= M66592_BASE_PIPENUM_INT) && \
505 (pipenum < (M66592_BASE_PIPENUM_INT + M66592_MAX_NUM_INT)))
506 #define is_isoc_pipe(pipenum) \ argument
507 ((pipenum >= M66592_BASE_PIPENUM_ISOC) && \
[all …]
/drivers/usb/host/
Dr8a66597.h40 #define check_bulk_or_isoc(pipenum) ((pipenum >= 1 && pipenum <= 5)) argument
41 #define check_interrupt(pipenum) ((pipenum >= 6 && pipenum <= 9)) argument
46 u16 pipenum; member
74 u16 pipenum; member
148 u16 pipenum) in r8a66597_get_td() argument
150 if (unlikely(list_empty(&r8a66597->pipe_queue[pipenum]))) in r8a66597_get_td()
153 return list_entry(r8a66597->pipe_queue[pipenum].next, in r8a66597_get_td()
158 u16 pipenum) in r8a66597_get_urb() argument
162 td = r8a66597_get_td(r8a66597, pipenum); in r8a66597_get_urb()
326 #define get_pipectr_addr(pipenum) (PIPE1CTR + (pipenum - 1) * 2) argument
[all …]
Dr8a66597-hcd.c54 static void packet_write(struct r8a66597 *r8a66597, u16 pipenum);
58 static void enable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, in enable_pipe_irq() argument
65 r8a66597_bset(r8a66597, 1 << pipenum, reg); in enable_pipe_irq()
70 static void disable_pipe_irq(struct r8a66597 *r8a66597, u16 pipenum, in disable_pipe_irq() argument
77 r8a66597_bclr(r8a66597, 1 << pipenum, reg); in disable_pipe_irq()
312 u16 pipenum = pipe->info.pipenum; in set_pipe_reg_addr() local
324 if (pipenum == 0) in set_pipe_reg_addr()
327 pipe->pipectr = get_pipectr_addr(pipenum); in set_pipe_reg_addr()
329 if (check_bulk_or_isoc(pipenum)) { in set_pipe_reg_addr()
330 pipe->pipetre = get_pipetre_addr(pipenum); in set_pipe_reg_addr()
[all …]
/drivers/gpu/drm/gma500/
Dmdfld_device.c166 static int mdfld_save_display_registers(struct drm_device *dev, int pipenum) in mdfld_save_display_registers() argument
170 struct psb_pipe *pipe = &dev_priv->regs.pipe[pipenum]; in mdfld_save_display_registers()
171 const struct psb_offset *map = &dev_priv->regmap[pipenum]; in mdfld_save_display_registers()
178 switch (pipenum) { in mdfld_save_display_registers()
220 if (pipenum == 1) { in mdfld_save_display_registers()
240 static int mdfld_restore_display_registers(struct drm_device *dev, int pipenum) in mdfld_restore_display_registers() argument
248 struct psb_pipe *pipe = &dev_priv->regs.pipe[pipenum]; in mdfld_restore_display_registers()
249 const struct psb_offset *map = &dev_priv->regmap[pipenum]; in mdfld_restore_display_registers()
261 switch (pipenum) { in mdfld_restore_display_registers()
282 if (pipenum == 1) { in mdfld_restore_display_registers()
[all …]
/drivers/net/wireless/ath/ath10k/
Dpci.h103 __le32 pipenum; member
132 __le32 pipenum; member
Dpci.c149 .pipenum = __cpu_to_le32(0),
159 .pipenum = __cpu_to_le32(1),
169 .pipenum = __cpu_to_le32(2),
179 .pipenum = __cpu_to_le32(3),
189 .pipenum = __cpu_to_le32(4),
201 .pipenum = __cpu_to_le32(5),
211 .pipenum = __cpu_to_le32(6),
1081 *dl_pipe = __le32_to_cpu(entry->pipenum); in ath10k_pci_hif_map_service_to_pipe()
1086 *ul_pipe = __le32_to_cpu(entry->pipenum); in ath10k_pci_hif_map_service_to_pipe()
1092 *dl_pipe = __le32_to_cpu(entry->pipenum); in ath10k_pci_hif_map_service_to_pipe()
[all …]