Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 200 of 557) sorted by relevance

123

/linux-4.1.27/drivers/usb/renesas_usbhs/
Dpipe.c42 char *usbhs_pipe_name(struct usbhs_pipe *pipe) in usbhs_pipe_name() argument
44 return usbhsp_pipe_name[usbhs_pipe_type(pipe)]; in usbhs_pipe_name()
50 static void usbhsp_pipectrl_set(struct usbhs_pipe *pipe, u16 mask, u16 val) in usbhsp_pipectrl_set() argument
52 struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe); in usbhsp_pipectrl_set()
53 int offset = usbhsp_addr_offset(pipe); in usbhsp_pipectrl_set()
55 if (usbhs_pipe_is_dcp(pipe)) in usbhsp_pipectrl_set()
61 static u16 usbhsp_pipectrl_get(struct usbhs_pipe *pipe) in usbhsp_pipectrl_get() argument
63 struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe); in usbhsp_pipectrl_get()
64 int offset = usbhsp_addr_offset(pipe); in usbhsp_pipectrl_get()
66 if (usbhs_pipe_is_dcp(pipe)) in usbhsp_pipectrl_get()
[all …]
Dfifo.c26 #define usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */
41 struct usbhs_priv *priv = usbhs_pipe_to_priv(pkt->pipe); in usbhsf_null_handle()
54 void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, in usbhs_pkt_push() argument
59 struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe); in usbhs_pkt_push()
71 if (!pipe->handler) { in usbhs_pkt_push()
73 pipe->handler = &usbhsf_null_handler; in usbhs_pkt_push()
76 list_move_tail(&pkt->node, &pipe->list); in usbhs_pkt_push()
83 pkt->pipe = pipe; in usbhs_pkt_push()
85 pkt->handler = pipe->handler; in usbhs_pkt_push()
101 static struct usbhs_pkt *__usbhsf_pkt_get(struct usbhs_pipe *pipe) in __usbhsf_pkt_get() argument
[all …]
Dpipe.h47 struct usbhs_pipe *pipe; member
59 ((i) < (info)->size) && ((pos) = (info)->pipe + (i)); \
76 char *usbhs_pipe_name(struct usbhs_pipe *pipe);
79 void usbhs_pipe_free(struct usbhs_pipe *pipe);
82 int usbhs_pipe_is_dir_in(struct usbhs_pipe *pipe);
83 int usbhs_pipe_is_dir_host(struct usbhs_pipe *pipe);
84 int usbhs_pipe_is_running(struct usbhs_pipe *pipe);
85 void usbhs_pipe_running(struct usbhs_pipe *pipe, int running);
89 int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe);
90 void usbhs_pipe_clear(struct usbhs_pipe *pipe);
[all …]
Dmod_gadget.c38 struct usbhs_pipe *pipe; member
103 #define usbhsg_uep_to_pipe(u) ((u)->pipe)
127 struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); in __usbhsg_queue_pop() local
131 dev_dbg(dev, "pipe %d : queue pop\n", usbhs_pipe_number(pipe)); in __usbhsg_queue_pop()
154 struct usbhs_pipe *pipe = pkt->pipe; in usbhsg_queue_done() local
155 struct usbhsg_uep *uep = usbhsg_pipe_to_uep(pipe); in usbhsg_queue_done()
172 struct usbhs_pipe *pipe = usbhsg_uep_to_pipe(uep); in usbhsg_queue_push() local
178 usbhs_pkt_push(pipe, pkt, usbhsg_queue_done, in usbhsg_queue_push()
180 usbhs_pkt_start(pipe); in usbhsg_queue_push()
183 usbhs_pipe_number(pipe), in usbhsg_queue_push()
[all …]
Dmod_host.c84 struct usbhs_pipe *pipe; /* attached pipe */ member
133 #define usbhsh_uep_to_pipe(u) ((u)->pipe)
221 if (usb_pipecontrol(urb->pipe)) in usbhsh_endpoint_sequence_save()
250 usb_pipeendpoint(urb->pipe), in usbhsh_endpoint_sequence_save()
251 usb_pipeout(urb->pipe)); in usbhsh_endpoint_sequence_save()
263 struct usbhs_pipe *pipe; in usbhsh_pipe_attach() local
267 int dir_in_req = !!usb_pipein(urb->pipe); in usbhsh_pipe_attach()
284 usbhs_for_each_pipe_with_dcp(pipe, priv, i) { in usbhsh_pipe_attach()
287 if (!usbhs_pipe_type_is(pipe, usb_endpoint_type(desc))) in usbhsh_pipe_attach()
292 dir_in = !!usbhs_pipe_is_dir_in(pipe); in usbhsh_pipe_attach()
[all …]
Dfifo.h32 struct usbhs_pipe *pipe; member
55 struct usbhs_pipe *pipe; member
83 void usbhs_fifo_clear_dcp(struct usbhs_pipe *pipe);
102 void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt,
106 struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt);
107 void usbhs_pkt_start(struct usbhs_pipe *pipe);
/linux-4.1.27/drivers/gpu/drm/gma500/
Dmdfld_dsi_output.h75 #define CHECK_PIPE(pipe) ({ \ argument
76 const typeof(pipe) __pipe = (pipe); \
80 #define CHECK_PIPE(pipe) (pipe) argument
86 #define REG_OFFSET(pipe) (CHECK_PIPE(pipe) * 0x400) argument
89 #define MIPI_DEVICE_READY_REG(pipe) (0xb000 + REG_OFFSET(pipe)) argument
90 #define MIPI_INTR_STAT_REG(pipe) (0xb004 + REG_OFFSET(pipe)) argument
91 #define MIPI_INTR_EN_REG(pipe) (0xb008 + REG_OFFSET(pipe)) argument
92 #define MIPI_DSI_FUNC_PRG_REG(pipe) (0xb00c + REG_OFFSET(pipe)) argument
93 #define MIPI_HS_TX_TIMEOUT_REG(pipe) (0xb010 + REG_OFFSET(pipe)) argument
94 #define MIPI_LP_RX_TIMEOUT_REG(pipe) (0xb014 + REG_OFFSET(pipe)) argument
[all …]
Dmdfld_dsi_dpi.c35 int pipe);
37 static void mdfld_wait_for_HS_DATA_FIFO(struct drm_device *dev, u32 pipe) in mdfld_wait_for_HS_DATA_FIFO() argument
39 u32 gen_fifo_stat_reg = MIPI_GEN_FIFO_STAT_REG(pipe); in mdfld_wait_for_HS_DATA_FIFO()
55 static void mdfld_wait_for_HS_CTRL_FIFO(struct drm_device *dev, u32 pipe) in mdfld_wait_for_HS_CTRL_FIFO() argument
57 u32 gen_fifo_stat_reg = MIPI_GEN_FIFO_STAT_REG(pipe); in mdfld_wait_for_HS_CTRL_FIFO()
72 static void mdfld_wait_for_DPI_CTRL_FIFO(struct drm_device *dev, u32 pipe) in mdfld_wait_for_DPI_CTRL_FIFO() argument
74 u32 gen_fifo_stat_reg = MIPI_GEN_FIFO_STAT_REG(pipe); in mdfld_wait_for_DPI_CTRL_FIFO()
90 static void mdfld_wait_for_SPL_PKG_SENT(struct drm_device *dev, u32 pipe) in mdfld_wait_for_SPL_PKG_SENT() argument
92 u32 intr_stat_reg = MIPI_INTR_STAT_REG(pipe); in mdfld_wait_for_SPL_PKG_SENT()
111 int pipe) in dsi_set_device_ready_state() argument
[all …]
Dpsb_irq.c38 psb_pipestat(int pipe) in psb_pipestat() argument
40 if (pipe == 0) in psb_pipestat()
42 if (pipe == 1) in psb_pipestat()
44 if (pipe == 2) in psb_pipestat()
50 mid_pipe_event(int pipe) in mid_pipe_event() argument
52 if (pipe == 0) in mid_pipe_event()
54 if (pipe == 1) in mid_pipe_event()
56 if (pipe == 2) in mid_pipe_event()
62 mid_pipe_vsync(int pipe) in mid_pipe_vsync() argument
64 if (pipe == 0) in mid_pipe_vsync()
[all …]
Dmdfld_device.c170 struct psb_pipe *pipe = &dev_priv->regs.pipe[pipenum]; in mdfld_save_display_registers() local
197 pipe->dpll = PSB_RVDC32(map->dpll); in mdfld_save_display_registers()
198 pipe->fp0 = PSB_RVDC32(map->fp0); in mdfld_save_display_registers()
199 pipe->conf = PSB_RVDC32(map->conf); in mdfld_save_display_registers()
200 pipe->htotal = PSB_RVDC32(map->htotal); in mdfld_save_display_registers()
201 pipe->hblank = PSB_RVDC32(map->hblank); in mdfld_save_display_registers()
202 pipe->hsync = PSB_RVDC32(map->hsync); in mdfld_save_display_registers()
203 pipe->vtotal = PSB_RVDC32(map->vtotal); in mdfld_save_display_registers()
204 pipe->vblank = PSB_RVDC32(map->vblank); in mdfld_save_display_registers()
205 pipe->vsync = PSB_RVDC32(map->vsync); in mdfld_save_display_registers()
[all …]
Dmdfld_dsi_output.c91 void mdfld_dsi_brightness_init(struct mdfld_dsi_config *dsi_config, int pipe) in mdfld_dsi_brightness_init() argument
132 void mdfld_dsi_brightness_control(struct drm_device *dev, int pipe, int level) in mdfld_dsi_brightness_control() argument
140 if (!dev || (pipe != 0 && pipe != 2)) { in mdfld_dsi_brightness_control()
149 if (pipe) in mdfld_dsi_brightness_control()
164 pipe, gen_ctrl_val); in mdfld_dsi_brightness_control()
215 void mdfld_dsi_controller_init(struct mdfld_dsi_config *dsi_config, int pipe) in mdfld_dsi_controller_init() argument
217 if (!dsi_config || ((pipe != 0) && (pipe != 2))) { in mdfld_dsi_controller_init()
222 mdfld_dsi_dpi_controller_init(dsi_config, pipe); in mdfld_dsi_controller_init()
425 struct mdfld_dsi_config *config, int pipe) in mdfld_dsi_get_default_config() argument
433 if (mdfld_get_panel_type(dev, pipe) == TC35876X) in mdfld_dsi_get_default_config()
[all …]
Dmdfld_intel_display.c51 void mdfldWaitForPipeDisable(struct drm_device *dev, int pipe) in mdfldWaitForPipeDisable() argument
54 const struct psb_offset *map = &dev_priv->regmap[pipe]; in mdfldWaitForPipeDisable()
57 switch (pipe) { in mdfldWaitForPipeDisable()
79 void mdfldWaitForPipeEnable(struct drm_device *dev, int pipe) in mdfldWaitForPipeEnable() argument
82 const struct psb_offset *map = &dev_priv->regmap[pipe]; in mdfldWaitForPipeEnable()
85 switch (pipe) { in mdfldWaitForPipeEnable()
170 int pipe = gma_crtc->pipe; in mdfld__intel_pipe_set_base() local
171 const struct psb_offset *map = &dev_priv->regmap[pipe]; in mdfld__intel_pipe_set_base()
178 dev_dbg(dev->dev, "pipe = 0x%x.\n", pipe); in mdfld__intel_pipe_set_base()
190 if (pipe > 2) { in mdfld__intel_pipe_set_base()
[all …]
Dpsb_intel_display.c112 int pipe = gma_crtc->pipe; in psb_intel_crtc_mode_set() local
113 const struct psb_offset *map = &dev_priv->regmap[pipe]; in psb_intel_crtc_mode_set()
207 if (pipe == 0) in psb_intel_crtc_mode_set()
218 if (psb_intel_panel_fitter_pipe(dev) == pipe) in psb_intel_crtc_mode_set()
238 if (pipe == 1) in psb_intel_crtc_mode_set()
313 int pipe = gma_crtc->pipe; in psb_intel_crtc_clock_get() local
314 const struct psb_offset *map = &dev_priv->regmap[pipe]; in psb_intel_crtc_clock_get()
319 struct psb_pipe *p = &dev_priv->regs.pipe[pipe]; in psb_intel_crtc_clock_get()
327 is_lvds = (pipe == 1) && (REG_READ(LVDS) & LVDS_PORT_EN); in psb_intel_crtc_clock_get()
337 is_lvds = (pipe == 1) && (dev_priv->regs.psb.saveLVDS & in psb_intel_crtc_clock_get()
[all …]
Dcdv_intel_display.c226 int pipe = gma_crtc->pipe; in cdv_dpll_set_clock_cdv() local
229 int dpll_reg = (pipe == 0) ? DPLL_A : DPLL_B; in cdv_dpll_set_clock_cdv()
230 int ref_sfr = (pipe == 0) ? SB_REF_DPLLA : SB_REF_DPLLB; in cdv_dpll_set_clock_cdv()
243 cdv_sb_write(dev, SB_REF_SFR(pipe), ref_value); in cdv_dpll_set_clock_cdv()
266 if (pipe == 1 && !is_lvds && !(ddi_select & DP_MASK)) { in cdv_dpll_set_clock_cdv()
277 ret = cdv_sb_read(dev, SB_M(pipe), &m); in cdv_dpll_set_clock_cdv()
282 ret = cdv_sb_write(dev, SB_M(pipe), m); in cdv_dpll_set_clock_cdv()
286 ret = cdv_sb_read(dev, SB_N_VCO(pipe), &n_vco); in cdv_dpll_set_clock_cdv()
313 ret = cdv_sb_write(dev, SB_N_VCO(pipe), n_vco); in cdv_dpll_set_clock_cdv()
317 ret = cdv_sb_read(dev, SB_P(pipe), &p); in cdv_dpll_set_clock_cdv()
[all …]
Dmdfld_output.h58 int (*reset)(int pipe);
59 void (*drv_ic_init)(struct mdfld_dsi_config *dsi_config, int pipe);
67 int mdfld_get_panel_type(struct drm_device *dev, int pipe);
74 extern void mdfld_disable_crtc(struct drm_device *dev, int pipe);
75 extern void mdfldWaitForPipeEnable(struct drm_device *dev, int pipe);
76 extern void mdfldWaitForPipeDisable(struct drm_device *dev, int pipe);
Dpsb_irq.h41 int psb_enable_vblank(struct drm_device *dev, int pipe);
42 void psb_disable_vblank(struct drm_device *dev, int pipe);
43 u32 psb_get_vblank_counter(struct drm_device *dev, int pipe);
45 int mdfld_enable_te(struct drm_device *dev, int pipe);
46 void mdfld_disable_te(struct drm_device *dev, int pipe);
Dmdfld_dsi_pkg_sender.c589 int pipe) in mdfld_dsi_pkg_sender_init() argument
596 const struct psb_offset *map = &dev_priv->regmap[pipe]; in mdfld_dsi_pkg_sender_init()
618 pkg_sender->pipe = pipe; in mdfld_dsi_pkg_sender_init()
632 pkg_sender->mipi_intr_stat_reg = MIPI_INTR_STAT_REG(pipe); in mdfld_dsi_pkg_sender_init()
633 pkg_sender->mipi_lp_gen_data_reg = MIPI_LP_GEN_DATA_REG(pipe); in mdfld_dsi_pkg_sender_init()
634 pkg_sender->mipi_hs_gen_data_reg = MIPI_HS_GEN_DATA_REG(pipe); in mdfld_dsi_pkg_sender_init()
635 pkg_sender->mipi_lp_gen_ctrl_reg = MIPI_LP_GEN_CTRL_REG(pipe); in mdfld_dsi_pkg_sender_init()
636 pkg_sender->mipi_hs_gen_ctrl_reg = MIPI_HS_GEN_CTRL_REG(pipe); in mdfld_dsi_pkg_sender_init()
637 pkg_sender->mipi_gen_fifo_stat_reg = MIPI_GEN_FIFO_STAT_REG(pipe); in mdfld_dsi_pkg_sender_init()
638 pkg_sender->mipi_data_addr_reg = MIPI_DATA_ADD_REG(pipe); in mdfld_dsi_pkg_sender_init()
[all …]
Dpsb_intel_reg.h1295 #define _PIPE(pipe, a, b) ((a) + (pipe)*((b)-(a))) argument
1336 #define SB_M(pipe) _PIPE(pipe, _SB_M_A, _SB_M_B) argument
1342 #define SB_N_VCO(pipe) _PIPE(pipe, _SB_N_VCO_A, _SB_N_VCO_B) argument
1361 #define SB_REF_SFR(pipe) _PIPE(pipe, _SB_REF_A, _SB_REF_B) argument
1365 #define SB_P(pipe) _PIPE(pipe, _SB_P_A, _SB_P_B) argument
1535 #define PIPE_GMCH_DATA_M(pipe) _PIPE(pipe, _PIPEA_GMCH_DATA_M, _PIPEB_GMCH_DATA_M) argument
1536 #define PIPE_GMCH_DATA_N(pipe) _PIPE(pipe, _PIPEA_GMCH_DATA_N, _PIPEB_GMCH_DATA_N) argument
1537 #define PIPE_DP_LINK_M(pipe) _PIPE(pipe, _PIPEA_DP_LINK_M, _PIPEB_DP_LINK_M) argument
1538 #define PIPE_DP_LINK_N(pipe) _PIPE(pipe, _PIPEA_DP_LINK_N, _PIPEB_DP_LINK_N) argument
Dgma_display.c63 int pipe = gma_crtc->pipe; in gma_pipe_set_base() local
64 const struct psb_offset *map = &dev_priv->regmap[pipe]; in gma_pipe_set_base()
144 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; in gma_crtc_load_lut()
166 dev_priv->regs.pipe[0].palette[i] = in gma_crtc_load_lut()
205 int pipe = gma_crtc->pipe; in gma_crtc_dpms() local
206 const struct psb_offset *map = &dev_priv->regmap[pipe]; in gma_crtc_dpms()
284 drm_vblank_off(dev, pipe); in gma_crtc_dpms()
338 int pipe = gma_crtc->pipe; in gma_crtc_cursor_set() local
339 uint32_t control = (pipe == 0) ? CURACNTR : CURBCNTR; in gma_crtc_cursor_set()
340 uint32_t base = (pipe == 0) ? CURABASE : CURBBASE; in gma_crtc_cursor_set()
[all …]
Doaktrail_crtc.c227 int pipe = gma_crtc->pipe; in oaktrail_crtc_dpms() local
228 const struct psb_offset *map = &dev_priv->regmap[pipe]; in oaktrail_crtc_dpms()
373 int pipe = gma_crtc->pipe; in oaktrail_crtc_mode_set() local
374 const struct psb_offset *map = &dev_priv->regmap[pipe]; in oaktrail_crtc_mode_set()
426 if (oaktrail_panel_fitter_pipe(dev) == pipe) in oaktrail_crtc_mode_set()
498 if (pipe == 0) in oaktrail_crtc_mode_set()
603 int pipe = gma_crtc->pipe; in oaktrail_pipe_set_base() local
604 const struct psb_offset *map = &dev_priv->regmap[pipe]; in oaktrail_pipe_set_base()
Doaktrail_hdmi.c268 int pipe = 1; in oaktrail_crtc_hdmi_mode_set() local
269 int htot_reg = (pipe == 0) ? HTOTAL_A : HTOTAL_B; in oaktrail_crtc_hdmi_mode_set()
270 int hblank_reg = (pipe == 0) ? HBLANK_A : HBLANK_B; in oaktrail_crtc_hdmi_mode_set()
271 int hsync_reg = (pipe == 0) ? HSYNC_A : HSYNC_B; in oaktrail_crtc_hdmi_mode_set()
272 int vtot_reg = (pipe == 0) ? VTOTAL_A : VTOTAL_B; in oaktrail_crtc_hdmi_mode_set()
273 int vblank_reg = (pipe == 0) ? VBLANK_A : VBLANK_B; in oaktrail_crtc_hdmi_mode_set()
274 int vsync_reg = (pipe == 0) ? VSYNC_A : VSYNC_B; in oaktrail_crtc_hdmi_mode_set()
275 int dspsize_reg = (pipe == 0) ? DSPASIZE : DSPBSIZE; in oaktrail_crtc_hdmi_mode_set()
276 int dsppos_reg = (pipe == 0) ? DSPAPOS : DSPBPOS; in oaktrail_crtc_hdmi_mode_set()
277 int pipesrc_reg = (pipe == 0) ? PIPEASRC : PIPEBSRC; in oaktrail_crtc_hdmi_mode_set()
[all …]
Dmdfld_dsi_dpi.h76 int pipe);
78 int pipe);
Dmdfld_dsi_pkg_sender.h39 int pipe; member
66 int pipe);
/linux-4.1.27/fs/
Dpipe.c56 static void pipe_lock_nested(struct pipe_inode_info *pipe, int subclass) in pipe_lock_nested() argument
58 if (pipe->files) in pipe_lock_nested()
59 mutex_lock_nested(&pipe->mutex, subclass); in pipe_lock_nested()
62 void pipe_lock(struct pipe_inode_info *pipe) in pipe_lock() argument
67 pipe_lock_nested(pipe, I_MUTEX_PARENT); in pipe_lock()
71 void pipe_unlock(struct pipe_inode_info *pipe) in pipe_unlock() argument
73 if (pipe->files) in pipe_unlock()
74 mutex_unlock(&pipe->mutex); in pipe_unlock()
78 static inline void __pipe_lock(struct pipe_inode_info *pipe) in __pipe_lock() argument
80 mutex_lock_nested(&pipe->mutex, I_MUTEX_PARENT); in __pipe_lock()
[all …]
Dsplice.c43 static int page_cache_pipe_buf_steal(struct pipe_inode_info *pipe, in page_cache_pipe_buf_steal() argument
88 static void page_cache_pipe_buf_release(struct pipe_inode_info *pipe, in page_cache_pipe_buf_release() argument
99 static int page_cache_pipe_buf_confirm(struct pipe_inode_info *pipe, in page_cache_pipe_buf_confirm() argument
145 static int user_page_pipe_buf_steal(struct pipe_inode_info *pipe, in user_page_pipe_buf_steal() argument
152 return generic_pipe_buf_steal(pipe, buf); in user_page_pipe_buf_steal()
163 static void wakeup_pipe_readers(struct pipe_inode_info *pipe) in wakeup_pipe_readers() argument
166 if (waitqueue_active(&pipe->wait)) in wakeup_pipe_readers()
167 wake_up_interruptible(&pipe->wait); in wakeup_pipe_readers()
168 kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); in wakeup_pipe_readers()
182 ssize_t splice_to_pipe(struct pipe_inode_info *pipe, in splice_to_pipe() argument
[all …]
Dcoredump.c455 struct pipe_inode_info *pipe = file->private_data; in wait_for_dump_helpers() local
457 pipe_lock(pipe); in wait_for_dump_helpers()
458 pipe->readers++; in wait_for_dump_helpers()
459 pipe->writers--; in wait_for_dump_helpers()
460 wake_up_interruptible_sync(&pipe->wait); in wait_for_dump_helpers()
461 kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); in wait_for_dump_helpers()
462 pipe_unlock(pipe); in wait_for_dump_helpers()
468 wait_event_interruptible(pipe->wait, pipe->readers == 1); in wait_for_dump_helpers()
470 pipe_lock(pipe); in wait_for_dump_helpers()
471 pipe->readers--; in wait_for_dump_helpers()
[all …]
/linux-4.1.27/sound/drivers/vx/
Dvx_pcm.c61 struct vx_pipe *pipe) in vx_pcm_read_per_bytes() argument
63 int offset = pipe->hw_ptr; in vx_pcm_read_per_bytes()
66 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
71 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
76 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
80 pipe->hw_ptr = offset; in vx_pcm_read_per_bytes()
106 struct vx_pipe *pipe) in vx_set_differed_time() argument
109 if (! (pipe->differed_type & DC_DIFFERED_DELAY)) in vx_set_differed_time()
116 vx_set_pcx_time(chip, &pipe->pcx_time, &rmh->Cmd[1]); in vx_set_differed_time()
119 if (pipe->differed_type & DC_NOTIFY_DELAY) in vx_set_differed_time()
[all …]
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_fifo_underrun.c55 enum pipe pipe; in ivb_can_enable_err_int() local
59 for_each_pipe(dev_priv, pipe) { in ivb_can_enable_err_int()
60 crtc = to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]); in ivb_can_enable_err_int()
72 enum pipe pipe; in cpt_can_enable_serr_int() local
77 for_each_pipe(dev_priv, pipe) { in cpt_can_enable_serr_int()
78 crtc = to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]); in cpt_can_enable_serr_int()
102 u32 reg = PIPESTAT(crtc->pipe); in i9xx_check_fifo_underruns()
115 DRM_ERROR("pipe %c underrun\n", pipe_name(crtc->pipe)); in i9xx_check_fifo_underruns()
122 enum pipe pipe, in i9xx_set_fifo_underrun_reporting() argument
126 u32 reg = PIPESTAT(pipe); in i9xx_set_fifo_underrun_reporting()
[all …]
Di915_reg.h28 #define _PIPE(pipe, a, b) ((a) + (pipe)*((b)-(a))) argument
32 #define _PIPE3(pipe, a, b, c) ((pipe) == PIPE_A ? (a) : \ argument
33 (pipe) == PIPE_B ? (b) : (c))
522 #define GEN7_PIPE_DE_LOAD_SL(pipe) _PIPE(pipe, \ argument
572 #define _DP_SSC(val, pipe) ((val) << (2 * (pipe))) argument
573 #define DP_SSC_MASK(pipe) _DP_SSC(0x3, (pipe)) argument
574 #define DP_SSC_PWR_ON(pipe) _DP_SSC(0x0, (pipe)) argument
575 #define DP_SSC_CLK_GATE(pipe) _DP_SSC(0x1, (pipe)) argument
576 #define DP_SSC_RESET(pipe) _DP_SSC(0x2, (pipe)) argument
577 #define DP_SSC_PWR_GATE(pipe) _DP_SSC(0x3, (pipe)) argument
[all …]
Di915_irq.c366 __i915_enable_pipestat(struct drm_i915_private *dev_priv, enum pipe pipe, in __i915_enable_pipestat() argument
369 u32 reg = PIPESTAT(pipe); in __i915_enable_pipestat()
378 pipe_name(pipe), enable_mask, status_mask)) in __i915_enable_pipestat()
384 dev_priv->pipestat_irq_mask[pipe] |= status_mask; in __i915_enable_pipestat()
393 __i915_disable_pipestat(struct drm_i915_private *dev_priv, enum pipe pipe, in __i915_disable_pipestat() argument
396 u32 reg = PIPESTAT(pipe); in __i915_disable_pipestat()
405 pipe_name(pipe), enable_mask, status_mask)) in __i915_disable_pipestat()
411 dev_priv->pipestat_irq_mask[pipe] &= ~status_mask; in __i915_disable_pipestat()
447 i915_enable_pipestat(struct drm_i915_private *dev_priv, enum pipe pipe, in i915_enable_pipestat() argument
457 __i915_enable_pipestat(dev_priv, pipe, enable_mask, status_mask); in i915_enable_pipestat()
[all …]
Dintel_sprite.c84 enum pipe pipe = crtc->pipe; in intel_pipe_update_start() local
122 pipe_name(crtc->pipe)); in intel_pipe_update_start()
137 *start_vbl_count = dev->driver->get_vblank_counter(dev, pipe); in intel_pipe_update_start()
156 enum pipe pipe = crtc->pipe; in intel_pipe_update_end() local
157 u32 end_vbl_count = dev->driver->get_vblank_counter(dev, pipe); in intel_pipe_update_end()
165 pipe_name(pipe), start_vbl_count, end_vbl_count); in intel_pipe_update_end()
191 const int pipe = intel_plane->pipe; in skl_update_plane() local
274 I915_WRITE(PLANE_KEYVAL(pipe, plane), key->min_value); in skl_update_plane()
275 I915_WRITE(PLANE_KEYMAX(pipe, plane), key->max_value); in skl_update_plane()
276 I915_WRITE(PLANE_KEYMSK(pipe, plane), key->channel_mask); in skl_update_plane()
[all …]
Dintel_audio.c182 enum pipe pipe = intel_crtc->pipe; in hsw_audio_codec_disable() local
185 DRM_DEBUG_KMS("Disable audio codec on pipe %c\n", pipe_name(pipe)); in hsw_audio_codec_disable()
188 tmp = I915_READ(HSW_AUD_CFG(pipe)); in hsw_audio_codec_disable()
195 I915_WRITE(HSW_AUD_CFG(pipe), tmp); in hsw_audio_codec_disable()
199 tmp &= ~AUDIO_ELD_VALID(pipe); in hsw_audio_codec_disable()
200 tmp &= ~AUDIO_OUTPUT_ENABLE(pipe); in hsw_audio_codec_disable()
210 enum pipe pipe = intel_crtc->pipe; in hsw_audio_codec_enable() local
216 pipe_name(pipe), drm_eld_size(eld)); in hsw_audio_codec_enable()
220 tmp |= AUDIO_OUTPUT_ENABLE(pipe); in hsw_audio_codec_enable()
221 tmp &= ~AUDIO_ELD_VALID(pipe); in hsw_audio_codec_enable()
[all …]
Dintel_hdmi.c191 int i, reg = TVIDEO_DIP_CTL(intel_crtc->pipe); in ibx_write_infoframe()
205 I915_WRITE(TVIDEO_DIP_DATA(intel_crtc->pipe), *data); in ibx_write_infoframe()
210 I915_WRITE(TVIDEO_DIP_DATA(intel_crtc->pipe), 0); in ibx_write_infoframe()
226 int reg = TVIDEO_DIP_CTL(intel_crtc->pipe); in ibx_infoframe_enabled()
240 int i, reg = TVIDEO_DIP_CTL(intel_crtc->pipe); in cpt_write_infoframe()
257 I915_WRITE(TVIDEO_DIP_DATA(intel_crtc->pipe), *data); in cpt_write_infoframe()
262 I915_WRITE(TVIDEO_DIP_DATA(intel_crtc->pipe), 0); in cpt_write_infoframe()
278 int reg = TVIDEO_DIP_CTL(intel_crtc->pipe); in cpt_infoframe_enabled()
292 int i, reg = VLV_TVIDEO_DIP_CTL(intel_crtc->pipe); in vlv_write_infoframe()
306 I915_WRITE(VLV_TVIDEO_DIP_DATA(intel_crtc->pipe), *data); in vlv_write_infoframe()
[all …]
Dintel_display.c107 static struct intel_encoder *intel_find_encoder(struct intel_connector *connector, int pipe) in intel_find_encoder() argument
112 return &connector->mst_port->mst_encoders[pipe]->base; in intel_find_encoder()
978 enum pipe pipe) in intel_pipe_to_cpu_transcoder() argument
980 struct drm_crtc *crtc = dev_priv->pipe_to_crtc_mapping[pipe]; in intel_pipe_to_cpu_transcoder()
986 static bool pipe_dsl_stopped(struct drm_device *dev, enum pipe pipe) in pipe_dsl_stopped() argument
989 u32 reg = PIPEDSL(pipe); in pipe_dsl_stopped()
1026 enum pipe pipe = crtc->pipe; in intel_wait_for_pipe_off() local
1037 if (wait_for(pipe_dsl_stopped(dev, pipe), 100)) in intel_wait_for_pipe_off()
1094 enum pipe pipe, bool state) in assert_pll() argument
1100 reg = DPLL(pipe); in assert_pll()
[all …]
Dintel_psr.c64 static bool vlv_is_psr_active_on_pipe(struct drm_device *dev, int pipe) in vlv_is_psr_active_on_pipe() argument
69 val = I915_READ(VLV_PSRSTAT(pipe)) & in vlv_is_psr_active_on_pipe()
110 enum pipe pipe = to_intel_crtc(crtc)->pipe; in vlv_psr_setup_vsc() local
114 val = I915_READ(VLV_VSCSDP(pipe)); in vlv_psr_setup_vsc()
117 I915_WRITE(VLV_VSCSDP(pipe), val); in vlv_psr_setup_vsc()
204 enum pipe pipe = to_intel_crtc(crtc)->pipe; in vlv_psr_enable_source() local
207 I915_WRITE(VLV_PSRCTL(pipe), in vlv_psr_enable_source()
219 enum pipe pipe = to_intel_crtc(crtc)->pipe; in vlv_psr_activate() local
226 I915_WRITE(VLV_PSRCTL(pipe), I915_READ(VLV_PSRCTL(pipe)) | in vlv_psr_activate()
407 if (wait_for((I915_READ(VLV_PSRSTAT(intel_crtc->pipe)) & in vlv_psr_disable()
[all …]
Dintel_pm.c359 enum pipe pipe, int plane) in vlv_get_fifo_size() argument
364 switch (pipe) { in vlv_get_fifo_size()
403 pipe_name(pipe), plane == 0 ? "primary" : "sprite", in vlv_get_fifo_size()
404 plane == 0 ? plane_name(pipe) : sprite_name(pipe, plane - 1), in vlv_get_fifo_size()
848 enum pipe pipe = crtc->pipe; in vlv_write_wm_values() local
850 I915_WRITE(VLV_DDL(pipe), in vlv_write_wm_values()
851 (wm->ddl[pipe].cursor << DDL_CURSOR_SHIFT) | in vlv_write_wm_values()
852 (wm->ddl[pipe].sprite[1] << DDL_SPRITE_SHIFT(1)) | in vlv_write_wm_values()
853 (wm->ddl[pipe].sprite[0] << DDL_SPRITE_SHIFT(0)) | in vlv_write_wm_values()
854 (wm->ddl[pipe].primary << DDL_PLANE_SHIFT)); in vlv_write_wm_values()
[all …]
Dintel_dp.c126 enum pipe pipe);
330 enum pipe pipe = intel_dp->pps_pipe; in vlv_power_sequencer_kick() local
336 pipe_name(pipe), port_name(intel_dig_port->port))) in vlv_power_sequencer_kick()
340 pipe_name(pipe), port_name(intel_dig_port->port)); in vlv_power_sequencer_kick()
351 DP |= DP_PIPE_SELECT_CHV(pipe); in vlv_power_sequencer_kick()
352 else if (pipe == PIPE_B) in vlv_power_sequencer_kick()
355 pll_enabled = I915_READ(DPLL(pipe)) & DPLL_VCO_ENABLE; in vlv_power_sequencer_kick()
362 vlv_force_pll_on(dev, pipe, IS_CHERRYVIEW(dev) ? in vlv_power_sequencer_kick()
381 vlv_force_pll_off(dev, pipe); in vlv_power_sequencer_kick()
384 static enum pipe
[all …]
Dintel_frontbuffer.c69 enum pipe pipe) in intel_increase_pllclock() argument
72 int dpll_reg = DPLL(pipe); in intel_increase_pllclock()
85 assert_panel_unlocked(dev_priv, pipe); in intel_increase_pllclock()
89 intel_wait_for_vblank(dev, pipe); in intel_increase_pllclock()
111 enum pipe pipe; in intel_mark_fb_busy() local
113 for_each_pipe(dev_priv, pipe) { in intel_mark_fb_busy()
114 if (!(frontbuffer_bits & INTEL_FRONTBUFFER_ALL_MASK(pipe))) in intel_mark_fb_busy()
117 intel_increase_pllclock(dev, pipe); in intel_mark_fb_busy()
Dintel_drv.h154 bool (*get_hw_state)(struct intel_encoder *, enum pipe *pipe);
442 enum pipe pipe; member
509 enum pipe pipe; member
650 enum pipe pps_pipe;
686 enum pipe pipe; member
706 vlv_pipe_to_channel(enum pipe pipe) in vlv_pipe_to_channel() argument
708 switch (pipe) { in vlv_pipe_to_channel()
720 intel_get_crtc_for_pipe(struct drm_device *dev, int pipe) in intel_get_crtc_for_pipe() argument
723 return dev_priv->pipe_to_crtc_mapping[pipe]; in intel_get_crtc_for_pipe()
807 return INTEL_INFO(crtc->base.dev)->num_sprites[crtc->pipe] + 1; in intel_num_planes()
[all …]
Dintel_panel.c362 pfit_control |= ((intel_crtc->pipe << PFIT_PIPE_SHIFT) | in intel_gmch_panel_fitting()
521 static u32 _vlv_get_backlight(struct drm_device *dev, enum pipe pipe) in _vlv_get_backlight() argument
525 if (WARN_ON(pipe != PIPE_A && pipe != PIPE_B)) in _vlv_get_backlight()
528 return I915_READ(VLV_BLC_PWM_CTL(pipe)) & BACKLIGHT_DUTY_CYCLE_MASK; in _vlv_get_backlight()
534 enum pipe pipe = intel_get_pipe_from_connector(connector); in vlv_get_backlight() local
536 return _vlv_get_backlight(dev, pipe); in vlv_get_backlight()
609 enum pipe pipe = intel_get_pipe_from_connector(connector); in vlv_set_backlight() local
612 if (WARN_ON(pipe != PIPE_A && pipe != PIPE_B)) in vlv_set_backlight()
615 tmp = I915_READ(VLV_BLC_PWM_CTL(pipe)) & ~BACKLIGHT_DUTY_CYCLE_MASK; in vlv_set_backlight()
616 I915_WRITE(VLV_BLC_PWM_CTL(pipe), tmp | level); in vlv_set_backlight()
[all …]
Di915_debugfs.c550 const char pipe = pipe_name(crtc->pipe); in i915_gem_pageflip_info() local
558 pipe, plane); in i915_gem_pageflip_info()
564 pipe, plane); in i915_gem_pageflip_info()
567 pipe, plane); in i915_gem_pageflip_info()
714 int ret, i, pipe; in i915_interrupt_info() local
733 for_each_pipe(dev_priv, pipe) in i915_interrupt_info()
735 pipe_name(pipe), in i915_interrupt_info()
736 I915_READ(PIPESTAT(pipe))); in i915_interrupt_info()
773 for_each_pipe(dev_priv, pipe) { in i915_interrupt_info()
775 POWER_DOMAIN_PIPE(pipe))) { in i915_interrupt_info()
[all …]
Dintel_sideband.c188 u32 vlv_dpio_read(struct drm_i915_private *dev_priv, enum pipe pipe, int reg) in vlv_dpio_read() argument
192 vlv_sideband_rw(dev_priv, DPIO_DEVFN, DPIO_PHY_IOSF_PORT(DPIO_PHY(pipe)), in vlv_dpio_read()
200 pipe_name(pipe), reg, val); in vlv_dpio_read()
205 void vlv_dpio_write(struct drm_i915_private *dev_priv, enum pipe pipe, int reg, u32 val) in vlv_dpio_write() argument
207 vlv_sideband_rw(dev_priv, DPIO_DEVFN, DPIO_PHY_IOSF_PORT(DPIO_PHY(pipe)), in vlv_dpio_write()
Dintel_crt.c67 enum pipe *pipe) in intel_crt_get_hw_state() argument
85 *pipe = PORT_TO_PIPE_CPT(tmp); in intel_crt_get_hw_state()
87 *pipe = PORT_TO_PIPE(tmp); in intel_crt_get_hw_state()
178 adpa |= PORT_TRANS_SEL_CPT(crtc->pipe); in intel_crt_set_dpms()
179 else if (crtc->pipe == 0) in intel_crt_set_dpms()
185 I915_WRITE(BCLRPAT(crtc->pipe), 0); in intel_crt_set_dpms()
543 uint32_t pipe = to_intel_crtc(crt->base.base.crtc)->pipe; in intel_crt_load_detect() local
561 bclrpat_reg = BCLRPAT(pipe); in intel_crt_load_detect()
562 vtotal_reg = VTOTAL(pipe); in intel_crt_load_detect()
563 vblank_reg = VBLANK(pipe); in intel_crt_load_detect()
[all …]
Dintel_fbc.c296 I915_WRITE(CHICKEN_PIPESL_1(intel_crtc->pipe), in gen7_fbc_enable()
297 I915_READ(CHICKEN_PIPESL_1(intel_crtc->pipe)) | in gen7_fbc_enable()
448 enum pipe pipe; in intel_fbc_find_crtc() local
456 for_each_pipe(dev_priv, pipe) { in intel_fbc_find_crtc()
457 tmp_crtc = dev_priv->pipe_to_crtc_mapping[pipe]; in intel_fbc_find_crtc()
668 fbc_bits = INTEL_FRONTBUFFER_PRIMARY(dev_priv->fbc.crtc->pipe); in intel_fbc_invalidate()
671 to_intel_crtc(dev_priv->fbc.fbc_work->crtc)->pipe); in intel_fbc_invalidate()
703 enum pipe pipe; in intel_fbc_init() local
711 for_each_pipe(dev_priv, pipe) { in intel_fbc_init()
713 INTEL_FRONTBUFFER_PRIMARY(pipe); in intel_fbc_init()
Dintel_atomic.c50 enum pipe nuclear_pipe = INVALID_PIPE; in intel_atomic_check()
65 nuclear_pipe = plane->pipe; in intel_atomic_check()
66 } else if (nuclear_pipe != plane->pipe) { in intel_atomic_check()
79 if (crtc && crtc->pipe != nuclear_pipe) in intel_atomic_check()
Dintel_dp_mst.c227 enum pipe *pipe) in intel_dp_mst_enc_get_hw_state() argument
230 *pipe = intel_mst->pipe; in intel_dp_mst_enc_get_hw_state()
385 enum pipe pipe; in intel_dp_mst_get_hw_state() local
386 if (!connector->encoder->get_hw_state(connector->encoder, &pipe)) in intel_dp_mst_get_hw_state()
497 intel_dp_create_fake_mst_encoder(struct intel_digital_port *intel_dig_port, enum pipe pipe) in intel_dp_create_fake_mst_encoder() argument
508 intel_mst->pipe = pipe; in intel_dp_create_fake_mst_encoder()
Di915_trace.h24 __field(enum pipe, pipe)
32 __entry->pipe = crtc->pipe;
34 crtc->pipe);
41 pipe_name(__entry->pipe), __entry->frame,
50 __field(enum pipe, pipe)
58 __entry->pipe = crtc->pipe;
66 pipe_name(__entry->pipe), __entry->frame,
75 __field(enum pipe, pipe)
81 __entry->pipe = crtc->pipe;
87 pipe_name(__entry->pipe), __entry->frame,
Dintel_runtime_pm.c625 enum pipe pipe; in vlv_dpio_cmn_power_well_disable() local
629 for_each_pipe(dev_priv, pipe) in vlv_dpio_cmn_power_well_disable()
630 assert_pll_disabled(dev_priv, pipe); in vlv_dpio_cmn_power_well_disable()
699 enum pipe pipe = power_well->data; in chv_pipe_power_well_enabled() local
705 state = vlv_punit_read(dev_priv, PUNIT_REG_DSPFREQ) & DP_SSS_MASK(pipe); in chv_pipe_power_well_enabled()
710 WARN_ON(state != DP_SSS_PWR_ON(pipe) && state != DP_SSS_PWR_GATE(pipe)); in chv_pipe_power_well_enabled()
711 enabled = state == DP_SSS_PWR_ON(pipe); in chv_pipe_power_well_enabled()
717 ctrl = vlv_punit_read(dev_priv, PUNIT_REG_DSPFREQ) & DP_SSC_MASK(pipe); in chv_pipe_power_well_enabled()
729 enum pipe pipe = power_well->data; in chv_set_pipe_power_well() local
733 state = enable ? DP_SSS_PWR_ON(pipe) : DP_SSS_PWR_GATE(pipe); in chv_set_pipe_power_well()
[all …]
Dintel_lvds.c71 enum pipe *pipe) in intel_lvds_get_hw_state() argument
89 *pipe = PORT_TO_PIPE_CPT(tmp); in intel_lvds_get_hw_state()
91 *pipe = PORT_TO_PIPE(tmp); in intel_lvds_get_hw_state()
144 int pipe = crtc->pipe; in intel_pre_enable_lvds() local
148 assert_fdi_rx_pll_disabled(dev_priv, pipe); in intel_pre_enable_lvds()
152 assert_pll_disabled(dev_priv, pipe); in intel_pre_enable_lvds()
160 temp |= PORT_TRANS_SEL_CPT(pipe); in intel_pre_enable_lvds()
162 if (pipe == 1) { in intel_pre_enable_lvds()
293 if (INTEL_INFO(dev)->gen < 4 && intel_crtc->pipe == 0) { in intel_lvds_compute_config()
924 int pipe; in intel_lvds_init() local
[all …]
Dintel_dvo.c130 enum pipe *pipe) in intel_dvo_get_hw_state() argument
142 *pipe = PORT_TO_PIPE(tmp); in intel_dvo_get_hw_state()
301 int pipe = crtc->pipe; in intel_dvo_pre_enable() local
324 if (pipe == 1) in intel_dvo_pre_enable()
441 int pipe = (dvo_val & DVO_PIPE_B_SELECT) ? 1 : 0; in intel_dvo_get_current_mode() local
443 crtc = intel_get_crtc_for_pipe(dev, pipe); in intel_dvo_get_current_mode()
Dintel_fbdev.c478 pipe_name(to_intel_crtc(encoder->crtc)->pipe), in intel_fb_initial_config()
571 pipe_name(intel_crtc->pipe)); in intel_fbdev_init_bios()
577 pipe_name(intel_crtc->pipe)); in intel_fbdev_init_bios()
597 pipe_name(intel_crtc->pipe)); in intel_fbdev_init_bios()
602 pipe_name(intel_crtc->pipe)); in intel_fbdev_init_bios()
613 pipe_name(intel_crtc->pipe), in intel_fbdev_init_bios()
626 pipe_name(intel_crtc->pipe), in intel_fbdev_init_bios()
634 pipe_name(intel_crtc->pipe), in intel_fbdev_init_bios()
642 pipe_name(intel_crtc->pipe), in intel_fbdev_init_bios()
Di915_drv.h108 enum pipe { enum
200 #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A) argument
201 #define POWER_DOMAIN_PIPE_PANEL_FITTER(pipe) \ argument
202 ((pipe) + POWER_DOMAIN_PIPE_A_PANEL_FITTER)
591 int (*setup_backlight)(struct intel_connector *connector, enum pipe pipe);
1420 } pipe[3]; member
1453 struct skl_ddb_entry pipe[I915_MAX_PIPES]; member
1893 #define INTEL_FRONTBUFFER_PRIMARY(pipe) \ argument
1894 (1 << (INTEL_FRONTBUFFER_BITS_PER_PIPE * (pipe)))
1895 #define INTEL_FRONTBUFFER_CURSOR(pipe) \ argument
[all …]
Dintel_ddi.c488 pipe_name(intel_crtc->pipe)); in intel_ddi_get_crtc_encoder()
515 pipe_name(crtc->pipe)); in intel_ddi_get_crtc_new_encoder()
979 pipe_name(intel_crtc->pipe)); in hsw_ddi_pll_select()
1203 pipe_name(intel_crtc->pipe)); in skl_ddi_pll_select()
1289 enum pipe pipe = intel_crtc->pipe; in intel_ddi_enable_transcoder_func() local
1322 switch (pipe) { in intel_ddi_enable_transcoder_func()
1378 intel_encoder->type, pipe_name(pipe)); in intel_ddi_enable_transcoder_func()
1402 enum pipe pipe = 0; in intel_ddi_connector_get_hw_state() local
1411 if (!intel_encoder->get_hw_state(intel_encoder, &pipe)) in intel_ddi_connector_get_hw_state()
1417 cpu_transcoder = (enum transcoder) pipe; in intel_ddi_connector_get_hw_state()
[all …]
/linux-4.1.27/net/nfc/hci/
Dcommand.c31 static int nfc_hci_execute_cmd_async(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd_async() argument
35 pr_debug("exec cmd async through pipe=%d, cmd=%d, plen=%zd\n", pipe, in nfc_hci_execute_cmd_async()
41 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_COMMAND, cmd, in nfc_hci_execute_cmd_async()
67 static int nfc_hci_execute_cmd(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_execute_cmd() argument
77 pr_debug("exec cmd sync through pipe=%d, cmd=%d, plen=%zd\n", pipe, in nfc_hci_execute_cmd()
83 hcp_ew.exec_result = nfc_hci_hcp_message_tx(hdev, pipe, in nfc_hci_execute_cmd()
106 u8 pipe; in nfc_hci_send_event() local
110 pipe = hdev->gate2pipe[gate]; in nfc_hci_send_event()
111 if (pipe == NFC_HCI_INVALID_PIPE) in nfc_hci_send_event()
114 return nfc_hci_hcp_message_tx(hdev, pipe, NFC_HCI_HCP_EVENT, event, in nfc_hci_send_event()
[all …]
Dhci.h25 u8 pipe; member
65 u8 pipe; member
69 u8 pipe; member
82 int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe,
88 void nfc_hci_hcp_message_rx(struct nfc_hci_dev *hdev, u8 pipe, u8 type,
Dcore.c144 u8 pipe; in nfc_hci_msg_rx_work() local
149 pipe = skb->data[0]; in nfc_hci_msg_rx_work()
156 nfc_hci_hcp_message_rx(hdev, pipe, type, instruction, skb); in nfc_hci_msg_rx_work()
193 void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in nfc_hci_cmd_received() argument
196 u8 gate = hdev->pipes[pipe].gate; in nfc_hci_cmd_received()
202 pr_debug("from gate %x pipe %x cmd %x\n", gate, pipe, cmd); in nfc_hci_cmd_received()
217 hdev->gate2pipe[create_info->dest_gate] = create_info->pipe; in nfc_hci_cmd_received()
218 hdev->pipes[create_info->pipe].gate = create_info->dest_gate; in nfc_hci_cmd_received()
219 hdev->pipes[create_info->pipe].dest_host = in nfc_hci_cmd_received()
235 hdev->pipes[delete_info->pipe].gate = NFC_HCI_INVALID_GATE; in nfc_hci_cmd_received()
[all …]
Dhcp.c33 int nfc_hci_hcp_message_tx(struct nfc_hci_dev *hdev, u8 pipe, in nfc_hci_hcp_message_tx() argument
84 packet->header = pipe; in nfc_hci_hcp_message_tx()
131 void nfc_hci_hcp_message_rx(struct nfc_hci_dev *hdev, u8 pipe, u8 type, in nfc_hci_hcp_message_rx() argument
139 nfc_hci_cmd_received(hdev, pipe, instruction, skb); in nfc_hci_hcp_message_rx()
142 nfc_hci_event_received(hdev, pipe, instruction, skb); in nfc_hci_hcp_message_rx()
/linux-4.1.27/drivers/media/platform/vsp1/
Dvsp1_video.c310 static int vsp1_pipeline_validate_branch(struct vsp1_pipeline *pipe, in vsp1_pipeline_validate_branch() argument
362 if (pipe->uds) in vsp1_pipeline_validate_branch()
365 pipe->uds = entity; in vsp1_pipeline_validate_branch()
366 pipe->uds_input = bru_found ? pipe->bru in vsp1_pipeline_validate_branch()
386 static void __vsp1_pipeline_cleanup(struct vsp1_pipeline *pipe) in __vsp1_pipeline_cleanup() argument
388 if (pipe->bru) { in __vsp1_pipeline_cleanup()
389 struct vsp1_bru *bru = to_bru(&pipe->bru->subdev); in __vsp1_pipeline_cleanup()
396 INIT_LIST_HEAD(&pipe->entities); in __vsp1_pipeline_cleanup()
397 pipe->state = VSP1_PIPELINE_STOPPED; in __vsp1_pipeline_cleanup()
398 pipe->buffers_ready = 0; in __vsp1_pipeline_cleanup()
[all …]
Dvsp1_video.h65 struct media_pipeline pipe; member
90 if (likely(e->pipe)) in to_vsp1_pipeline()
91 return container_of(e->pipe, struct vsp1_pipeline, pipe); in to_vsp1_pipeline()
128 struct vsp1_pipeline pipe; member
146 void vsp1_pipeline_frame_end(struct vsp1_pipeline *pipe);
148 void vsp1_pipeline_propagate_alpha(struct vsp1_pipeline *pipe,
Dvsp1_wpf.c76 struct vsp1_pipeline *pipe = to_vsp1_pipeline(&subdev->entity); in wpf_s_stream() local
100 for (i = 0; i < pipe->num_inputs; ++i) { in wpf_s_stream()
101 struct vsp1_rwpf *input = pipe->inputs[i]; in wpf_s_stream()
103 srcrpf |= (!pipe->bru && pipe->num_inputs == 1) in wpf_s_stream()
108 if (pipe->bru || pipe->num_inputs > 1) in wpf_s_stream()
114 if (!pipe->lif) { in wpf_s_stream()
132 if (!pipe->lif) { in wpf_s_stream()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dusb.c79 struct ath6kl_usb_pipe *pipe; member
130 ath6kl_usb_alloc_urb_from_pipe(struct ath6kl_usb_pipe *pipe) in ath6kl_usb_alloc_urb_from_pipe() argument
135 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath6kl_usb_alloc_urb_from_pipe()
136 if (!list_empty(&pipe->urb_list_head)) { in ath6kl_usb_alloc_urb_from_pipe()
138 list_first_entry(&pipe->urb_list_head, in ath6kl_usb_alloc_urb_from_pipe()
141 pipe->urb_cnt--; in ath6kl_usb_alloc_urb_from_pipe()
143 spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); in ath6kl_usb_alloc_urb_from_pipe()
148 static void ath6kl_usb_free_urb_to_pipe(struct ath6kl_usb_pipe *pipe, in ath6kl_usb_free_urb_to_pipe() argument
153 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath6kl_usb_free_urb_to_pipe()
154 pipe->urb_cnt++; in ath6kl_usb_free_urb_to_pipe()
[all …]
Dhtc_pipe.c251 list_add_tail(&packet->list, &ep->pipe.tx_lookup_queue); in htc_issue_packets()
256 ep->pipe.pipeid_ul, NULL, skb); in htc_issue_packets()
411 if (!ep->pipe.tx_credit_flow_enabled) { in htc_try_send()
414 ep->pipe.pipeid_ul); in htc_try_send()
455 if (ep->pipe.tx_credit_flow_enabled) { in htc_try_send()
485 if (!ep->pipe.tx_credit_flow_enabled) { in htc_try_send()
486 pipeid = ep->pipe.pipeid_ul; in htc_try_send()
562 entry = &target->pipe.txcredit_alloc[0]; in htc_setup_target_buffer_assignments()
640 if (target->pipe.txcredit_alloc[i].service_id != 0) { in htc_setup_target_buffer_assignments()
644 target->pipe.txcredit_alloc[i]. in htc_setup_target_buffer_assignments()
[all …]
Dhif-ops.h154 u8 pipe, struct sk_buff *hdr_buf, in ath6kl_hif_pipe_send() argument
159 return ar->hif_ops->pipe_send(ar, pipe, hdr_buf, buf); in ath6kl_hif_pipe_send()
180 u8 pipe) in ath6kl_hif_pipe_get_free_queue_number() argument
184 return ar->hif_ops->pipe_get_free_queue_number(ar, pipe); in ath6kl_hif_pipe_get_free_queue_number()
/linux-4.1.27/drivers/staging/octeon-usb/
Docteon-hcd.c593 struct cvmx_usb_pipe *pipe) in cvmx_usb_pipe_needs_split() argument
595 return pipe->device_speed != CVMX_USB_SPEED_HIGH && in cvmx_usb_pipe_needs_split()
607 static inline int cvmx_usb_get_data_pid(struct cvmx_usb_pipe *pipe) in cvmx_usb_get_data_pid() argument
609 if (pipe->pid_toggle) in cvmx_usb_get_data_pid()
1116 struct cvmx_usb_pipe *pipe; in cvmx_usb_open_pipe() local
1118 pipe = kzalloc(sizeof(*pipe), GFP_ATOMIC); in cvmx_usb_open_pipe()
1119 if (!pipe) in cvmx_usb_open_pipe()
1124 pipe->flags |= CVMX_USB_PIPE_FLAGS_NEED_PING; in cvmx_usb_open_pipe()
1125 pipe->device_addr = device_addr; in cvmx_usb_open_pipe()
1126 pipe->endpoint_num = endpoint_num; in cvmx_usb_open_pipe()
[all …]
/linux-4.1.27/net/sunrpc/
Drpc_pipe.c84 struct rpc_pipe *pipe = in rpc_timeout_upcall_queue() local
89 spin_lock(&pipe->lock); in rpc_timeout_upcall_queue()
90 destroy_msg = pipe->ops->destroy_msg; in rpc_timeout_upcall_queue()
91 if (pipe->nreaders == 0) { in rpc_timeout_upcall_queue()
92 list_splice_init(&pipe->pipe, &free_list); in rpc_timeout_upcall_queue()
93 pipe->pipelen = 0; in rpc_timeout_upcall_queue()
95 dentry = dget(pipe->dentry); in rpc_timeout_upcall_queue()
96 spin_unlock(&pipe->lock); in rpc_timeout_upcall_queue()
133 rpc_queue_upcall(struct rpc_pipe *pipe, struct rpc_pipe_msg *msg) in rpc_queue_upcall() argument
138 spin_lock(&pipe->lock); in rpc_queue_upcall()
[all …]
/linux-4.1.27/drivers/platform/goldfish/
Dgoldfish_pipe.c154 static u32 goldfish_cmd_status(struct goldfish_pipe *pipe, u32 cmd) in goldfish_cmd_status() argument
158 struct goldfish_pipe_dev *dev = pipe->dev; in goldfish_cmd_status()
161 gf_write64((u64)(unsigned long)pipe, dev->base + PIPE_REG_CHANNEL, in goldfish_cmd_status()
169 static void goldfish_cmd(struct goldfish_pipe *pipe, u32 cmd) in goldfish_cmd() argument
172 struct goldfish_pipe_dev *dev = pipe->dev; in goldfish_cmd()
175 gf_write64((u64)(unsigned long)pipe, dev->base + PIPE_REG_CHANNEL, in goldfish_cmd()
243 struct goldfish_pipe *pipe, int *status) in access_with_param() argument
251 aps->channel = (unsigned long)pipe; in access_with_param()
273 struct goldfish_pipe *pipe = filp->private_data; in goldfish_pipe_read_write() local
274 struct goldfish_pipe_dev *dev = pipe->dev; in goldfish_pipe_read_write()
[all …]
/linux-4.1.27/sound/pci/lx6464es/
Dlx_core.h120 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture,
122 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture);
123 int lx_pipe_sample_count(struct lx6464es *chip, u32 pipe, int is_capture,
125 int lx_pipe_state(struct lx6464es *chip, u32 pipe, int is_capture, u16 *rstate);
126 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture);
127 int lx_pipe_start(struct lx6464es *chip, u32 pipe, int is_capture);
128 int lx_pipe_pause(struct lx6464es *chip, u32 pipe, int is_capture);
130 int lx_pipe_wait_for_start(struct lx6464es *chip, u32 pipe, int is_capture);
131 int lx_pipe_wait_for_idle(struct lx6464es *chip, u32 pipe, int is_capture);
135 u32 pipe, int is_capture);
[all …]
Dlx_core.c429 #define PIPE_INFO_TO_CMD(capture, pipe) \ argument
430 ((u32)((u32)(pipe) | ((capture) ? ID_IS_CAPTURE : 0L)) << ID_OFFSET)
435 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture, in lx_pipe_allocate() argument
439 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_allocate()
456 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_release() argument
459 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_release()
472 int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture, in lx_buffer_ask() argument
476 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_buffer_ask()
525 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_stop() argument
528 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_stop()
[all …]
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_plane.c25 enum mdp5_pipe pipe; member
63 enum mdp5_pipe pipe = mdp5_plane->pipe; in mdp5_plane_disable() local
69 mdp5_smp_release(mdp5_kms->smp, pipe); in mdp5_plane_disable()
259 enum mdp5_pipe pipe = mdp5_plane->pipe; in set_scanout_locked() local
261 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC_STRIDE_A(pipe), in set_scanout_locked()
265 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC_STRIDE_B(pipe), in set_scanout_locked()
269 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC0_ADDR(pipe), in set_scanout_locked()
271 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC1_ADDR(pipe), in set_scanout_locked()
273 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC2_ADDR(pipe), in set_scanout_locked()
275 mdp5_write(mdp5_kms, REG_MDP5_PIPE_SRC3_ADDR(pipe), in set_scanout_locked()
[all …]
Dmdp5_smp.c88 static inline u32 pipe2client(enum mdp5_pipe pipe, int plane) in pipe2client() argument
92 if (WARN_ON(plane >= pipe2nclients(pipe))) in pipe2client()
107 return mdp5_cfg->smp.clients[pipe] + plane; in pipe2client()
162 enum mdp5_pipe pipe, int nblks) in set_fifo_thresholds() argument
171 mdp5_write(mdp5_kms, REG_MDP5_PIPE_REQPRIO_FIFO_WM_0(pipe), val * 1); in set_fifo_thresholds()
172 mdp5_write(mdp5_kms, REG_MDP5_PIPE_REQPRIO_FIFO_WM_1(pipe), val * 2); in set_fifo_thresholds()
173 mdp5_write(mdp5_kms, REG_MDP5_PIPE_REQPRIO_FIFO_WM_2(pipe), val * 3); in set_fifo_thresholds()
182 int mdp5_smp_request(struct mdp5_smp *smp, enum mdp5_pipe pipe, u32 fmt, u32 width) in mdp5_smp_request() argument
207 DBG("%s[%d]: request %d SMP blocks", pipe2name(pipe), i, n); in mdp5_smp_request()
208 ret = smp_request_block(smp, pipe2client(pipe, i), n); in mdp5_smp_request()
[all …]
Dmdp5_kms.h125 static inline const char *pipe2name(enum mdp5_pipe pipe) in pipe2name() argument
135 return names[pipe]; in pipe2name()
138 static inline int pipe2nclients(enum mdp5_pipe pipe) in pipe2nclients() argument
140 switch (pipe) { in pipe2nclients()
205 static inline bool pipe_supports_yuv(enum mdp5_pipe pipe) in pipe_supports_yuv() argument
207 switch (pipe) { in pipe_supports_yuv()
219 uint32_t mdp5_get_formats(enum mdp5_pipe pipe, uint32_t *pixel_formats, in mdp5_get_formats() argument
223 !pipe_supports_yuv(pipe)); in mdp5_get_formats()
232 enum mdp5_pipe pipe, bool private_plane, uint32_t reg_offset);
Dmdp5_smp.h41 int mdp5_smp_request(struct mdp5_smp *smp, enum mdp5_pipe pipe, u32 fmt, u32 width);
42 void mdp5_smp_configure(struct mdp5_smp *smp, enum mdp5_pipe pipe);
43 void mdp5_smp_commit(struct mdp5_smp *smp, enum mdp5_pipe pipe);
44 void mdp5_smp_release(struct mdp5_smp *smp, enum mdp5_pipe pipe);
Dmdp5_ctl.h50 static inline u32 mdp_ctl_blend_mask(enum mdp5_pipe pipe, in mdp_ctl_blend_mask() argument
53 switch (pipe) { in mdp_ctl_blend_mask()
86 u32 mdp_ctl_flush_mask_pipe(enum mdp5_pipe pipe);
/linux-4.1.27/net/nfc/nci/
Dhci.c32 u8 pipe; member
49 u8 pipe; member
53 u8 pipe; member
150 static int nci_hci_send_data(struct nci_dev *ndev, u8 pipe, in nci_hci_send_data() argument
157 u8 cb = pipe; in nci_hci_send_data()
213 nci_hci_send_data(ndev, data->pipe, data->cmd, in nci_hci_send_data_req()
220 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_event() local
222 if (pipe == NCI_HCI_INVALID_PIPE) in nci_hci_send_event()
225 return nci_hci_send_data(ndev, pipe, in nci_hci_send_event()
239 u8 pipe = ndev->hci_dev->gate2pipe[gate]; in nci_hci_send_cmd() local
[all …]
/linux-4.1.27/drivers/staging/rtl8712/
Dusb_ops_linux.c67 unsigned int pipe = 0; in ffaddr2pipehdl() local
73 pipe = usb_sndbulkpipe(pusbd, 0x07); in ffaddr2pipehdl()
76 pipe = usb_sndbulkpipe(pusbd, 0x06); in ffaddr2pipehdl()
79 pipe = usb_sndbulkpipe(pusbd, 0x05); in ffaddr2pipehdl()
82 pipe = usb_sndbulkpipe(pusbd, 0x04); in ffaddr2pipehdl()
85 pipe = usb_sndbulkpipe(pusbd, 0x0a); in ffaddr2pipehdl()
88 pipe = usb_sndbulkpipe(pusbd, 0x0b); in ffaddr2pipehdl()
91 pipe = usb_sndbulkpipe(pusbd, 0x0c); in ffaddr2pipehdl()
94 pipe = usb_rcvbulkpipe(pusbd, 0x03); /* in */ in ffaddr2pipehdl()
97 pipe = usb_rcvbulkpipe(pusbd, 0x09); /* in */ in ffaddr2pipehdl()
[all …]
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_plane.c27 enum mdp4_pipe pipe; member
142 enum mdp4_pipe pipe = mdp4_plane->pipe; in mdp4_plane_set_scanout() local
144 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRC_STRIDE_A(pipe), in mdp4_plane_set_scanout()
148 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRC_STRIDE_B(pipe), in mdp4_plane_set_scanout()
152 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP0_BASE(pipe), in mdp4_plane_set_scanout()
154 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP1_BASE(pipe), in mdp4_plane_set_scanout()
156 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP2_BASE(pipe), in mdp4_plane_set_scanout()
158 mdp4_write(mdp4_kms, REG_MDP4_PIPE_SRCP3_BASE(pipe), in mdp4_plane_set_scanout()
165 enum mdp4_pipe pipe, struct csc_cfg *csc) in mdp4_write_csc_config() argument
170 mdp4_write(mdp4_kms, REG_MDP4_PIPE_CSC_MV(pipe, i), in mdp4_write_csc_config()
[all …]
Dmdp4_kms.h73 static inline uint32_t pipe2flush(enum mdp4_pipe pipe) in pipe2flush() argument
75 switch (pipe) { in pipe2flush()
114 enum mdp4_pipe pipe, enum mdp_mixer_stage_id stage) in mixercfg() argument
116 switch (pipe) { in mixercfg()
178 static inline bool pipe_supports_yuv(enum mdp4_pipe pipe) in pipe_supports_yuv() argument
180 switch (pipe) { in pipe_supports_yuv()
/linux-4.1.27/drivers/usb/host/
Dr8a66597-hcd.c310 static void set_pipe_reg_addr(struct r8a66597_pipe *pipe, u8 dma_ch) in set_pipe_reg_addr() argument
312 u16 pipenum = pipe->info.pipenum; in set_pipe_reg_addr()
320 pipe->fifoaddr = fifoaddr[dma_ch]; in set_pipe_reg_addr()
321 pipe->fifosel = fifosel[dma_ch]; in set_pipe_reg_addr()
322 pipe->fifoctr = fifoctr[dma_ch]; in set_pipe_reg_addr()
325 pipe->pipectr = DCPCTR; in set_pipe_reg_addr()
327 pipe->pipectr = get_pipectr_addr(pipenum); in set_pipe_reg_addr()
330 pipe->pipetre = get_pipetre_addr(pipenum); in set_pipe_reg_addr()
331 pipe->pipetrn = get_pipetrn_addr(pipenum); in set_pipe_reg_addr()
333 pipe->pipetre = 0; in set_pipe_reg_addr()
[all …]
Dfhci-sched.c714 ed->dev_addr = usb_pipedevice(urb->pipe); in fhci_queue_urb()
715 ed->ep_addr = usb_pipeendpoint(urb->pipe); in fhci_queue_urb()
716 switch (usb_pipetype(urb->pipe)) { in fhci_queue_urb()
735 urb->pipe, usb_pipeout(urb->pipe)); in fhci_queue_urb()
754 if (usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), in fhci_queue_urb()
755 usb_pipeout(urb->pipe))) in fhci_queue_urb()
759 usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), in fhci_queue_urb()
760 usb_pipeout(urb->pipe), 1); in fhci_queue_urb()
775 usb_maxpacket(urb->dev, urb->pipe, in fhci_queue_urb()
776 usb_pipeout(urb->pipe))) == 0)) in fhci_queue_urb()
[all …]
Disp116x.h508 #define PIPETYPE(pipe) ({ char *__s; \ argument
509 if (usb_pipecontrol(pipe)) __s = "ctrl"; \
510 else if (usb_pipeint(pipe)) __s = "int"; \
511 else if (usb_pipebulk(pipe)) __s = "bulk"; \
514 #define PIPEDIR(pipe) ({ usb_pipein(pipe) ? "in" : "out"; }) argument
521 unsigned int pipe; in urb_dbg() local
527 pipe = urb->pipe; in urb_dbg()
529 usb_pipedevice(pipe), usb_pipeendpoint(pipe), in urb_dbg()
530 PIPEDIR(pipe), PIPETYPE(pipe), in urb_dbg()
Dehci-q.c170 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { in ehci_clear_tt_buffer()
176 usb_pipeendpoint(urb->pipe), token); in ehci_clear_tt_buffer()
237 usb_pipeendpoint(urb->pipe), in qtd_copy_status()
238 usb_pipein(urb->pipe) ? "in" : "out"); in qtd_copy_status()
251 if (usb_pipetype(urb->pipe) == PIPE_INTERRUPT) { in ehci_urb_done()
269 usb_pipeendpoint (urb->pipe), in ehci_urb_done()
270 usb_pipein (urb->pipe) ? "in" : "out", in ehci_urb_done()
601 is_input = usb_pipein (urb->pipe); in qh_urb_transaction()
602 if (usb_pipecontrol (urb->pipe)) { in qh_urb_transaction()
645 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); in qh_urb_transaction()
[all …]
Dimx21-hcd.c231 ((u32) usb_pipedevice(urb->pipe)) << DW0_ADDRESS | in setup_etd_dword0()
232 ((u32) usb_pipeendpoint(urb->pipe) << DW0_ENDPNT) | in setup_etd_dword0()
236 ((u32) fmt_urb_to_etd[usb_pipetype(urb->pipe)] << DW0_FORMAT) | in setup_etd_dword0()
617 dir = usb_pipeout(td->urb->pipe) ? TD_DIR_OUT : TD_DIR_IN; in schedule_isoc_etds()
641 unsigned int pipe = urb->pipe; in isoc_etd_done() local
642 int dir_in = usb_pipein(pipe); in isoc_etd_done()
791 maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); in imx21_hc_urb_enqueue_isoc()
913 unsigned int pipe = urb->pipe; in schedule_nonisoc_etd() local
936 maxpacket = usb_maxpacket(urb->dev, pipe, usb_pipeout(pipe)); in schedule_nonisoc_etd()
940 if (usb_pipecontrol(pipe) && (state != US_CTRL_DATA)) { in schedule_nonisoc_etd()
[all …]
Dr8a66597.h69 struct r8a66597_pipe *pipe; member
215 struct r8a66597_pipe *pipe, u16 *buf, in r8a66597_write_fifo() argument
218 void __iomem *fifoaddr = r8a66597->reg + pipe->fifoaddr; in r8a66597_write_fifo()
244 r8a66597_bclr(r8a66597, MBW_16, pipe->fifosel); in r8a66597_write_fifo()
247 r8a66597_bset(r8a66597, MBW_16, pipe->fifosel); in r8a66597_write_fifo()
Duhci-q.c379 unsigned int pipe; in uhci_fixup_toggles() local
416 pipe = list_entry(qh->queue.next, struct urb_priv, node)->urb->pipe; in uhci_fixup_toggles()
417 usb_settoggle(qh->udev, usb_pipeendpoint(pipe), in uhci_fixup_toggles()
418 usb_pipeout(pipe), toggle); in uhci_fixup_toggles()
803 destination = (urb->pipe & PIPE_DEVEP_MASK) | USB_PID_SETUP; in uhci_submit_control()
827 if (usb_pipeout(urb->pipe) || len == 0) in uhci_submit_control()
935 destination = (urb->pipe & PIPE_DEVEP_MASK) | usb_packetid(urb->pipe); in uhci_submit_common()
936 toggle = usb_gettoggle(urb->dev, usb_pipeendpoint(urb->pipe), in uhci_submit_common()
937 usb_pipeout(urb->pipe)); in uhci_submit_common()
943 if (usb_pipein(urb->pipe)) in uhci_submit_common()
[all …]
Disp1362-hcd.c278 if (usb_pipecontrol(urb->pipe)) { in prepare_ptd()
280 } else if (usb_pipeisoc(urb->pipe)) { in prepare_ptd()
291 if (usb_pipecontrol(urb->pipe)) in prepare_ptd()
293 else if (usb_pipeisoc(urb->pipe)) in prepare_ptd()
313 dir = (urb->transfer_buffer_length && usb_pipein(urb->pipe)) ? in prepare_ptd()
331 ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe)); in prepare_ptd()
333 if (usb_pipeint(urb->pipe)) { in prepare_ptd()
337 if (usb_pipeisoc(urb->pipe)) in prepare_ptd()
451 if (usb_pipecontrol(urb->pipe)) in finish_request()
455 ep->num_req, usb_pipedevice(urb->pipe), in finish_request()
[all …]
Dohci-q.c56 switch (usb_pipetype (urb->pipe)) { in finish_urb()
402 unsigned int pipe, in ed_get() argument
439 info = usb_pipedevice (pipe); in ed_get()
440 ed->type = usb_pipetype(pipe); in ed_get()
598 int is_out = usb_pipeout (urb->pipe); in td_submit_urb()
607 if (!usb_gettoggle (urb->dev, usb_pipeendpoint (urb->pipe), is_out)) { in td_submit_urb()
608 usb_settoggle (urb->dev, usb_pipeendpoint (urb->pipe), in td_submit_urb()
774 if (usb_pipeout (urb->pipe)) in td_done()
796 int type = usb_pipetype (urb->pipe); in td_done()
881 if (usb_pipecontrol (urb->pipe)) in ed_halted()
[all …]
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-dma.c101 static int xvip_pipeline_start_stop(struct xvip_pipeline *pipe, bool start) in xvip_pipeline_start_stop() argument
103 struct xvip_dma *dma = pipe->output; in xvip_pipeline_start_stop()
156 static int xvip_pipeline_set_stream(struct xvip_pipeline *pipe, bool on) in xvip_pipeline_set_stream() argument
160 mutex_lock(&pipe->lock); in xvip_pipeline_set_stream()
163 if (pipe->stream_count == pipe->num_dmas - 1) { in xvip_pipeline_set_stream()
164 ret = xvip_pipeline_start_stop(pipe, true); in xvip_pipeline_set_stream()
168 pipe->stream_count++; in xvip_pipeline_set_stream()
170 if (--pipe->stream_count == 0) in xvip_pipeline_set_stream()
171 xvip_pipeline_start_stop(pipe, false); in xvip_pipeline_set_stream()
175 mutex_unlock(&pipe->lock); in xvip_pipeline_set_stream()
[all …]
Dxilinx-dma.h41 struct media_pipeline pipe; member
53 return container_of(e->pipe, struct xvip_pipeline, pipe); in to_xvip_pipeline()
83 struct xvip_pipeline pipe; member
/linux-4.1.27/sound/sparc/
Ddbri.c295 int pipe; /* Data pipe used */ member
803 static inline int pipe_active(struct snd_dbri *dbri, int pipe) in pipe_active() argument
805 return ((pipe >= 0) && (dbri->pipes[pipe].desc != -1)); in pipe_active()
813 static void reset_pipe(struct snd_dbri *dbri, int pipe) in reset_pipe() argument
819 if (pipe < 0 || pipe > DBRI_MAX_PIPE) { in reset_pipe()
825 sdp = dbri->pipes[pipe].sdp; in reset_pipe()
838 desc = dbri->pipes[pipe].first_desc; in reset_pipe()
844 } while (desc != -1 && desc != dbri->pipes[pipe].first_desc); in reset_pipe()
846 dbri->pipes[pipe].desc = -1; in reset_pipe()
847 dbri->pipes[pipe].first_desc = -1; in reset_pipe()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Dispvideo.c225 struct isp_pipeline *pipe) in isp_video_get_graph_data() argument
238 pipe->entities |= 1 << entity->id; in isp_video_get_graph_data()
257 pipe->input = far_end; in isp_video_get_graph_data()
258 pipe->output = video; in isp_video_get_graph_data()
263 pipe->input = video; in isp_video_get_graph_data()
264 pipe->output = far_end; in isp_video_get_graph_data()
386 struct isp_pipeline *pipe = to_isp_pipeline(&video->video.entity); in isp_video_buffer_queue() local
411 spin_lock_irqsave(&pipe->lock, flags); in isp_video_buffer_queue()
412 pipe->state |= state; in isp_video_buffer_queue()
416 start = isp_pipeline_ready(pipe); in isp_video_buffer_queue()
[all …]
Disp.c539 struct isp_pipeline *pipe; in isp_isr_sbl() local
554 pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity); in isp_isr_sbl()
555 if (pipe != NULL) in isp_isr_sbl()
556 pipe->error = true; in isp_isr_sbl()
560 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
561 if (pipe != NULL) in isp_isr_sbl()
562 pipe->error = true; in isp_isr_sbl()
566 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
567 if (pipe != NULL) in isp_isr_sbl()
568 pipe->error = true; in isp_isr_sbl()
[all …]
Dispvideo.h86 struct media_pipeline pipe; member
106 container_of((__e)->pipe, struct isp_pipeline, pipe)
108 static inline int isp_pipeline_ready(struct isp_pipeline *pipe) in isp_pipeline_ready() argument
110 return pipe->state == (ISP_PIPELINE_STREAM_INPUT | in isp_pipeline_ready()
169 struct isp_pipeline pipe; member
Dispcsiphy.c168 struct isp_pipeline *pipe = to_isp_pipeline(&csi2->subdev.entity); in omap3isp_csiphy_config() local
169 struct isp_bus_cfg *buscfg = pipe->external->host_priv; in omap3isp_csiphy_config()
178 container_of(pipe->external->asd, in omap3isp_csiphy_config()
216 csi2_ddrclk_khz = pipe->external_rate / 1000 in omap3isp_csiphy_config()
217 / (2 * hweight32(used_lanes)) * pipe->external_width; in omap3isp_csiphy_config()
308 struct isp_pipeline *pipe = in omap3isp_csiphy_release() local
310 struct isp_bus_cfg *buscfg = pipe->external->host_priv; in omap3isp_csiphy_release()
Dispccp2.c385 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_adjust_bandwidth() local
388 unsigned long l3_ick = pipe->l3_ick; in ccp2_adjust_bandwidth()
399 vpclk_div = max_t(unsigned int, DIV_ROUND_UP(l3_ick, pipe->max_rate), in ccp2_adjust_bandwidth()
406 timeperframe = &pipe->max_timeperframe; in ccp2_adjust_bandwidth()
537 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in ccp2_isr_buffer() local
544 pipe->state |= ISP_PIPELINE_IDLE_INPUT; in ccp2_isr_buffer()
547 if (isp_pipeline_ready(pipe)) in ccp2_isr_buffer()
548 omap3isp_pipeline_set_stream(pipe, in ccp2_isr_buffer()
561 struct isp_pipeline *pipe = to_isp_pipeline(&ccp2->subdev.entity); in omap3isp_ccp2_isr() local
584 pipe->error = true; in omap3isp_ccp2_isr()
[all …]
Dispresizer.c503 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in omap3isp_resizer_max_rate() local
505 unsigned long limit = min(pipe->l3_ick, 200000000UL); in omap3isp_resizer_max_rate()
544 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_adjust_bandwidth() local
546 unsigned long l3_ick = pipe->l3_ick; in resizer_adjust_bandwidth()
578 cycles_per_request = div_u64((u64)l3_ick / 2 * 256 + pipe->max_rate - 1, in resizer_adjust_bandwidth()
579 pipe->max_rate); in resizer_adjust_bandwidth()
587 timeperframe = &pipe->max_timeperframe; in resizer_adjust_bandwidth()
1017 struct isp_pipeline *pipe = to_isp_pipeline(&res->subdev.entity); in resizer_isr_buffer() local
1033 pipe->state |= ISP_PIPELINE_IDLE_OUTPUT; in resizer_isr_buffer()
1039 pipe->state |= ISP_PIPELINE_IDLE_INPUT; in resizer_isr_buffer()
[all …]
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr_hwdep.c167 struct pcxhr_pipe *pipe, in pcxhr_dsp_allocate_pipe() argument
186 pipe->is_capture = is_capture; in pcxhr_dsp_allocate_pipe()
187 pipe->first_audio = pin; in pcxhr_dsp_allocate_pipe()
203 pipe->status = PCXHR_PIPE_DEFINED; in pcxhr_dsp_allocate_pipe()
212 static int pcxhr_dsp_free_pipe( struct pcxhr_mgr *mgr, struct pcxhr_pipe *pipe)
219 if (pipe->is_capture)
220 capture_mask = (1 << pipe->first_audio);
222 playback_mask = (1 << pipe->first_audio);
230 pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio,
236 pipe->status = PCXHR_PIPE_UNDEFINED;
[all …]
Dpcxhr.c530 stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_set_stream_state()
533 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_set_stream_state()
534 stream->pipe->first_audio, 0, stream_mask); in pcxhr_set_stream_state()
601 is_capture = stream->pipe->is_capture; in pcxhr_set_format()
606 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_set_format()
653 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_update_r_buffer()
683 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0,
684 1<<stream->pipe->first_audio);
696 struct pcxhr_pipe **pipe) in pcxhr_stream_scheduled_get_pipe() argument
699 *pipe = stream->pipe; in pcxhr_stream_scheduled_get_pipe()
[all …]
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c137 struct vpfe_pipeline *pipe = &video->pipe; in vpfe_prepare_pipeline() local
141 pipe->input_num = 0; in vpfe_prepare_pipeline()
142 pipe->output_num = 0; in vpfe_prepare_pipeline()
145 pipe->inputs[pipe->input_num++] = video; in vpfe_prepare_pipeline()
147 pipe->outputs[pipe->output_num++] = video; in vpfe_prepare_pipeline()
158 pipe->inputs[pipe->input_num++] = far_end; in vpfe_prepare_pipeline()
160 pipe->outputs[pipe->output_num++] = far_end; in vpfe_prepare_pipeline()
168 struct vpfe_pipeline *pipe = &video->pipe; in vpfe_update_pipe_state() local
176 if (pipe->input_num == 0) { in vpfe_update_pipe_state()
177 pipe->state = VPFE_PIPELINE_STREAM_CONTINUOUS; in vpfe_update_pipe_state()
[all …]
Dvpfe_video.h53 struct media_pipeline *pipe; member
69 container_of((__e)->pipe, struct vpfe_pipeline, pipe)
93 struct vpfe_pipeline pipe; member
144 int vpfe_video_is_pipe_ready(struct vpfe_pipeline *pipe);
/linux-4.1.27/sound/pci/mixart/
Dmixart.c73 struct mixart_pipe *pipe, int start) in mixart_set_pipe_state() argument
81 switch(pipe->status) { in mixart_set_pipe_state()
115 group_state.pipe_uid[0] = pipe->group_uid; in mixart_set_pipe_state()
122 request.uid = pipe->group_uid; /*(struct mixart_uid){0,0};*/ in mixart_set_pipe_state()
162 pipe->status = PIPE_RUNNING; in mixart_set_pipe_state()
165 pipe->status = PIPE_STOPPED; in mixart_set_pipe_state()
172 struct mixart_pipe *pipe, unsigned int rate) in mixart_set_clock() argument
179 switch(pipe->status) { in mixart_set_clock()
201 clock_properties.uid_caller[0] = pipe->group_uid; in mixart_set_clock()
218 if(rate) pipe->status = PIPE_CLOCK_SET; in mixart_set_clock()
[all …]
Dmixart_hwdep.c176 struct mixart_pipe *pipe; in mixart_enum_connectors() local
179 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors()
181 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors()
184 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
186 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
220 struct mixart_pipe *pipe; in mixart_enum_connectors() local
223 pipe = &mgr->chip[k/2]->pipe_in_ana; in mixart_enum_connectors()
225 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_in_dig; in mixart_enum_connectors()
228 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
230 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
Dmixart_mixer.c730 struct mixart_pipe *pipe; in mixart_update_playback_stream_level() local
737 pipe = &chip->pipe_out_dig; /* AES playback */ in mixart_update_playback_stream_level()
740 pipe = &chip->pipe_out_ana; /* analog playback */ in mixart_update_playback_stream_level()
744 if(pipe->status == PIPE_UNDEFINED) in mixart_update_playback_stream_level()
747 set_level.stream_level.desc.uid_pipe = pipe->group_uid; in mixart_update_playback_stream_level()
778 struct mixart_pipe *pipe; in mixart_update_capture_stream_level() local
785 pipe = &chip->pipe_in_dig; in mixart_update_capture_stream_level()
788 pipe = &chip->pipe_in_ana; in mixart_update_capture_stream_level()
792 if(pipe->status == PIPE_UNDEFINED) in mixart_update_capture_stream_level()
797 set_level.level[0].connector = pipe->uid_left_connector; in mixart_update_capture_stream_level()
[all …]
/linux-4.1.27/include/linux/
Dusb.h1460 unsigned int pipe; /* (in) pipe information */ member
1502 unsigned int pipe, in usb_fill_control_urb() argument
1510 urb->pipe = pipe; in usb_fill_control_urb()
1533 unsigned int pipe, in usb_fill_bulk_urb() argument
1540 urb->pipe = pipe; in usb_fill_bulk_urb()
1574 unsigned int pipe, in usb_fill_int_urb() argument
1582 urb->pipe = pipe; in usb_fill_int_urb()
1676 extern int usb_control_msg(struct usb_device *dev, unsigned int pipe,
1679 extern int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe,
1681 extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
[all …]
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
Dlib.h14 union pipe { union
26 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
27 extern int wait_for_parent(union pipe read_pipe);
28 extern int notify_parent(union pipe write_pipe);
29 extern int notify_parent_of_error(union pipe write_pipe);
Dlib.c59 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child()
71 int wait_for_parent(union pipe read_pipe) in wait_for_parent()
81 int notify_parent(union pipe write_pipe) in notify_parent()
90 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error()
123 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child()
144 union pipe read_pipe, write_pipe; in eat_cpu()
152 if (pipe(read_pipe.fds) == -1) in eat_cpu()
155 if (pipe(write_pipe.fds) == -1) in eat_cpu()
/linux-4.1.27/drivers/usb/dwc2/
Dhcd.h404 static inline u8 dwc2_hcd_get_ep_num(struct dwc2_hcd_pipe_info *pipe) in dwc2_hcd_get_ep_num() argument
406 return pipe->ep_num; in dwc2_hcd_get_ep_num()
409 static inline u8 dwc2_hcd_get_pipe_type(struct dwc2_hcd_pipe_info *pipe) in dwc2_hcd_get_pipe_type() argument
411 return pipe->pipe_type; in dwc2_hcd_get_pipe_type()
414 static inline u16 dwc2_hcd_get_mps(struct dwc2_hcd_pipe_info *pipe) in dwc2_hcd_get_mps() argument
416 return pipe->mps; in dwc2_hcd_get_mps()
419 static inline u8 dwc2_hcd_get_dev_addr(struct dwc2_hcd_pipe_info *pipe) in dwc2_hcd_get_dev_addr() argument
421 return pipe->dev_addr; in dwc2_hcd_get_dev_addr()
424 static inline u8 dwc2_hcd_is_pipe_isoc(struct dwc2_hcd_pipe_info *pipe) in dwc2_hcd_is_pipe_isoc() argument
426 return pipe->pipe_type == USB_ENDPOINT_XFER_ISOC; in dwc2_hcd_is_pipe_isoc()
[all …]
/linux-4.1.27/drivers/staging/media/omap4iss/
Diss_video.c348 struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); in iss_video_buf_queue() local
379 spin_lock_irqsave(&pipe->lock, flags); in iss_video_buf_queue()
380 pipe->state |= state; in iss_video_buf_queue()
384 start = iss_pipeline_ready(pipe); in iss_video_buf_queue()
386 pipe->state |= ISS_PIPELINE_STREAM; in iss_video_buf_queue()
387 spin_unlock_irqrestore(&pipe->lock, flags); in iss_video_buf_queue()
390 omap4iss_pipeline_set_stream(pipe, in iss_video_buf_queue()
419 struct iss_pipeline *pipe = to_iss_pipeline(&video->video.entity); in omap4iss_video_buffer_next() local
446 if (video == pipe->output && !pipe->do_propagation) in omap4iss_video_buffer_next()
448 atomic_inc_return(&pipe->frame_number); in omap4iss_video_buffer_next()
[all …]
Diss.c126 int omap4iss_get_external_info(struct iss_pipeline *pipe, in omap4iss_get_external_info() argument
130 container_of(pipe, struct iss_video, pipe)->iss; in omap4iss_get_external_info()
135 if (!pipe->external) in omap4iss_get_external_info()
138 if (pipe->external_rate) in omap4iss_get_external_info()
150 pipe->external_bpp = omap4iss_video_format_info(fmt.format.code)->bpp; in omap4iss_get_external_info()
152 ctrl = v4l2_ctrl_find(pipe->external->ctrl_handler, in omap4iss_get_external_info()
156 pipe->external->name); in omap4iss_get_external_info()
160 pipe->external_rate = v4l2_ctrl_g_ctrl_int64(ctrl); in omap4iss_get_external_info()
576 static int iss_pipeline_disable(struct iss_pipeline *pipe, in iss_pipeline_disable() argument
579 struct iss_device *iss = pipe->output->iss; in iss_pipeline_disable()
[all …]
Diss_video.h84 struct media_pipeline pipe; member
101 container_of((__e)->pipe, struct iss_pipeline, pipe)
103 static inline int iss_pipeline_ready(struct iss_pipeline *pipe) in iss_pipeline_ready() argument
105 return pipe->state == (ISS_PIPELINE_STREAM_INPUT | in iss_pipeline_ready()
164 struct iss_pipeline pipe; member
Diss_csiphy.c123 struct iss_pipeline *pipe = to_iss_pipeline(&csi2_subdev->entity); in omap4iss_csiphy_config() local
124 struct iss_v4l2_subdevs_group *subdevs = pipe->external->host_priv; in omap4iss_csiphy_config()
200 csi2_ddrclk_khz = pipe->external_rate / 1000 in omap4iss_csiphy_config()
202 * pipe->external_bpp; in omap4iss_csiphy_config()
Diss.h127 int omap4iss_get_external_info(struct iss_pipeline *pipe,
136 int omap4iss_pipeline_set_stream(struct iss_pipeline *pipe,
138 void omap4iss_pipeline_cancel_stream(struct iss_pipeline *pipe);
/linux-4.1.27/drivers/bluetooth/
Dath3k.c209 int err, pipe, len, size, sent = 0; in ath3k_load_firmware() local
214 pipe = usb_sndctrlpipe(udev, 0); in ath3k_load_firmware()
223 err = usb_control_msg(udev, pipe, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, in ath3k_load_firmware()
232 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_firmware()
241 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware()
261 int ret, pipe = 0; in ath3k_get_state() local
268 pipe = usb_rcvctrlpipe(udev, 0); in ath3k_get_state()
269 ret = usb_control_msg(udev, pipe, ATH3K_GETSTATE, in ath3k_get_state()
282 int ret, pipe = 0; in ath3k_get_version() local
290 pipe = usb_rcvctrlpipe(udev, 0); in ath3k_get_version()
[all …]
Dbpa10x.c200 if (bpa10x_recv(hdev, usb_pipebulk(urb->pipe), in bpa10x_rx_complete()
223 unsigned int pipe; in bpa10x_submit_intr_urb() local
238 pipe = usb_rcvintpipe(data->udev, 0x81); in bpa10x_submit_intr_urb()
240 usb_fill_int_urb(urb, data->udev, pipe, buf, size, in bpa10x_submit_intr_urb()
264 unsigned int pipe; in bpa10x_submit_bulk_urb() local
279 pipe = usb_rcvbulkpipe(data->udev, 0x82); in bpa10x_submit_bulk_urb()
281 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_submit_bulk_urb()
358 unsigned int pipe; in bpa10x_send_frame() local
389 pipe = usb_sndctrlpipe(data->udev, 0x00); in bpa10x_send_frame()
391 usb_fill_control_urb(urb, data->udev, pipe, (void *) dr, in bpa10x_send_frame()
[all …]
Dbfusb.c130 int err, pipe; in bfusb_send_bulk() local
140 pipe = usb_sndbulkpipe(data->udev, data->bulk_out_ep); in bfusb_send_bulk()
142 usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, skb->len, in bfusb_send_bulk()
220 int err, pipe, size = HCI_MAX_FRAME_SIZE + 32; in bfusb_rx_submit() local
241 pipe = usb_rcvbulkpipe(data->udev, data->bulk_in_ep); in bfusb_rx_submit()
243 usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, size, in bfusb_rx_submit()
548 int err, pipe, len, size, sent = 0; in bfusb_load_firmware() local
560 pipe = usb_sndctrlpipe(data->udev, 0); in bfusb_load_firmware()
562 if (usb_control_msg(data->udev, pipe, USB_REQ_SET_CONFIGURATION, in bfusb_load_firmware()
571 pipe = usb_sndbulkpipe(data->udev, data->bulk_out_ep); in bfusb_load_firmware()
[all …]
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_crtc.c186 ret = drm_vblank_get(dev, exynos_crtc->pipe); in exynos_drm_crtc_page_flip()
199 event->pipe = exynos_crtc->pipe; in exynos_drm_crtc_page_flip()
211 drm_vblank_put(dev, exynos_crtc->pipe); in exynos_drm_crtc_page_flip()
228 private->crtc[exynos_crtc->pipe] = NULL; in exynos_drm_crtc_destroy()
242 int pipe, in exynos_drm_crtc_create() argument
259 exynos_crtc->pipe = pipe; in exynos_drm_crtc_create()
266 private->crtc[pipe] = crtc; in exynos_drm_crtc_create()
283 int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe) in exynos_drm_crtc_enable_vblank() argument
287 to_exynos_crtc(private->crtc[pipe]); in exynos_drm_crtc_enable_vblank()
298 void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe) in exynos_drm_crtc_disable_vblank() argument
[all …]
Dexynos_drm_crtc.h22 int pipe,
26 int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
27 void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
28 void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe);
Dexynos_drm_vidi.c54 int pipe; member
215 ctx->pipe = priv->pipe++; in vidi_ctx_initialize()
233 if (ctx->pipe < 0) in vidi_fake_vblank_handler()
242 drm_handle_vblank(ctx->drm_dev, ctx->pipe); in vidi_fake_vblank_handler()
250 exynos_drm_crtc_finish_pageflip(ctx->drm_dev, ctx->pipe); in vidi_fake_vblank_handler()
476 1 << ctx->pipe, type, zpos); in vidi_bind()
483 ctx->pipe, EXYNOS_DISPLAY_TYPE_VIDI, in vidi_bind()
/linux-4.1.27/drivers/usb/storage/
Dtransport.h87 extern int usb_stor_control_msg(struct us_data *us, unsigned int pipe,
90 extern int usb_stor_clear_halt(struct us_data *us, unsigned int pipe);
92 extern int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe,
95 extern int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe,
97 extern int usb_stor_bulk_transfer_sg(struct us_data *us, unsigned int pipe,
99 extern int usb_stor_bulk_srb(struct us_data* us, unsigned int pipe,
Dtransport.c194 int usb_stor_control_msg(struct us_data *us, unsigned int pipe, in usb_stor_control_msg() argument
211 usb_fill_control_urb(us->current_urb, us->pusb_dev, pipe, in usb_stor_control_msg()
235 int usb_stor_clear_halt(struct us_data *us, unsigned int pipe) in usb_stor_clear_halt() argument
238 int endp = usb_pipeendpoint(pipe); in usb_stor_clear_halt()
240 if (usb_pipein (pipe)) in usb_stor_clear_halt()
264 static int interpret_urb_result(struct us_data *us, unsigned int pipe, in interpret_urb_result() argument
285 if (usb_pipecontrol(pipe)) { in interpret_urb_result()
292 pipe); in interpret_urb_result()
293 if (usb_stor_clear_halt(us, pipe) < 0) in interpret_urb_result()
328 int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe, in usb_stor_ctrl_transfer() argument
[all …]
Donetouch.c183 int pipe, maxp; in onetouch_connect_input() local
195 pipe = usb_rcvintpipe(udev, endpoint->bEndpointAddress); in onetouch_connect_input()
196 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input()
248 usb_fill_int_urb(onetouch->irq, udev, pipe, onetouch->data, maxp, in onetouch_connect_input()
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00-sched.c84 unsigned int pipe; member
156 dev_dbg(dev, "endpoint: %4d\n", usb_pipeendpoint(td->pipe)); in dbg_td()
157 dev_dbg(dev, "pipeout: %4d\n", usb_pipeout(td->pipe)); in dbg_td()
221 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in c67x00_release_urb()
281 type = usb_pipetype(urb->pipe); in c67x00_ep_data_alloc()
402 switch (usb_pipetype(urb->pipe)) { in c67x00_urb_enqueue()
532 if (usb_pipein(urb->pipe)) in c67x00_claim_frame_bw()
538 if (usb_pipeisoc(urb->pipe)) in c67x00_claim_frame_bw()
539 bit_time = usb_pipein(urb->pipe) ? 9050 : 7840; in c67x00_claim_frame_bw()
587 if (c67x00_claim_frame_bw(c67x00, urb, len, usb_pipeisoc(urb->pipe) in c67x00_create_td()
[all …]
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c68 int pipe) in rockchip_register_crtc_funcs() argument
72 if (pipe > ROCKCHIP_MAX_CRTC) in rockchip_register_crtc_funcs()
75 priv->crtc_funcs[pipe] = crtc_funcs; in rockchip_register_crtc_funcs()
81 void rockchip_unregister_crtc_funcs(struct drm_device *dev, int pipe) in rockchip_unregister_crtc_funcs() argument
85 if (pipe > ROCKCHIP_MAX_CRTC) in rockchip_unregister_crtc_funcs()
88 priv->crtc_funcs[pipe] = NULL; in rockchip_unregister_crtc_funcs()
93 int pipe) in rockchip_crtc_from_pipe() argument
99 if (i++ == pipe) in rockchip_crtc_from_pipe()
105 static int rockchip_drm_crtc_enable_vblank(struct drm_device *dev, int pipe) in rockchip_drm_crtc_enable_vblank() argument
108 struct drm_crtc *crtc = rockchip_crtc_from_pipe(dev, pipe); in rockchip_drm_crtc_enable_vblank()
[all …]
Drockchip_drm_drv.h57 int pipe);
58 void rockchip_unregister_crtc_funcs(struct drm_device *dev, int pipe);
/linux-4.1.27/tools/perf/Documentation/
Dperf-bench.txt31 % perf bench sched pipe # with no style specified
32 (executing 1000000 pipe operations between two tasks)
42 % perf bench --format=simple sched pipe # specified simple
73 --pipe::
74 Use pipe() instead of socketpair()
105 *pipe*::
106 Suite for pipe() system call.
107 Based on pipe-test-1m.c by Ingo Molnar.
109 Options of *pipe*
115 Example of *pipe*
[all …]
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Debb_on_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child()
46 union pipe read_pipe, write_pipe; in ebb_on_child()
50 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_child()
51 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_child()
Debb_on_willing_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child()
53 union pipe read_pipe, write_pipe; in ebb_on_willing_child()
57 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_on_willing_child()
58 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_willing_child()
Dtask_event_vs_ebb_test.c38 union pipe read_pipe, write_pipe; in task_event_vs_ebb()
43 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_vs_ebb()
44 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_vs_ebb()
Dcpu_event_vs_ebb_test.c39 union pipe read_pipe, write_pipe; in cpu_event_vs_ebb()
48 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_vs_ebb()
49 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_vs_ebb()
Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; in ebb_vs_cpu_event()
48 FAIL_IF(pipe(read_pipe.fds) == -1); in ebb_vs_cpu_event()
49 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_vs_cpu_event()
Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; in task_event_pinned_vs_ebb()
45 FAIL_IF(pipe(read_pipe.fds) == -1); in task_event_pinned_vs_ebb()
46 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_pinned_vs_ebb()
Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; in cpu_event_pinned_vs_ebb()
50 FAIL_IF(pipe(read_pipe.fds) == -1); in cpu_event_pinned_vs_ebb()
51 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_pinned_vs_ebb()
Debb.h73 int ebb_child(union pipe read_pipe, union pipe write_pipe);
/linux-4.1.27/sound/pci/echoaudio/
Dindigoio_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
104 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
109 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
116 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
117 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
121 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigodj_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
147 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
147 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dechoaudio.c109 struct audiopipe *pipe = runtime->private_data; in audiopipe_free() local
111 if (pipe->sgpage.area) in audiopipe_free()
112 snd_dma_free_pages(&pipe->sgpage); in audiopipe_free()
113 kfree(pipe); in audiopipe_free()
275 struct audiopipe *pipe; in pcm_open() local
284 pipe = kzalloc(sizeof(struct audiopipe), GFP_KERNEL); in pcm_open()
285 if (!pipe) in pcm_open()
287 pipe->index = -1; /* Not configured yet */ in pcm_open()
290 memcpy(&pipe->hw, &pcm_hardware_skel, sizeof(struct snd_pcm_hardware)); in pcm_open()
292 pipe->constr.list = channels_list; in pcm_open()
[all …]
Dindigo_express_dsp.c77 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
82 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
89 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
90 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
94 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dechoaudio_dsp.c1056 static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, in allocate_pipes() argument
1083 pipe->index = pipe_index; in allocate_pipes()
1084 pipe->interleave = interleave; in allocate_pipes()
1085 pipe->state = PIPE_STATE_STOPPED; in allocate_pipes()
1090 pipe->dma_counter = &chip->comm_page->position[pipe_index]; in allocate_pipes()
1091 *pipe->dma_counter = 0; in allocate_pipes()
1097 static int free_pipes(struct echoaudio *chip, struct audiopipe *pipe) in free_pipes() argument
1102 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index))) in free_pipes()
1104 if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED)) in free_pipes()
1107 for (channel_mask = i = 0; i < pipe->interleave; i++) in free_pipes()
[all …]
Dmia_dsp.c35 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
168 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
173 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
180 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
181 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
185 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
/linux-4.1.27/include/media/
Dexynos-fimc.h143 struct exynos_media_pipeline *pipe; member
158 (!(ent) ? -ENOENT : (((ent)->pipe->ops && (ent)->pipe->ops->op) ? \
159 (ent)->pipe->ops->op(((ent)->pipe), ##args) : -ENOIOCTLCMD)) \
/linux-4.1.27/net/sunrpc/auth_gss/
Dauth_gss.c83 struct rpc_pipe *pipe; member
295 struct rpc_pipe *pipe; member
343 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid) in __gss_find_upcall() argument
346 list_for_each_entry(pos, &pipe->in_downcall, list) { in __gss_find_upcall()
364 struct rpc_pipe *pipe = gss_msg->pipe; in gss_add_msg() local
367 spin_lock(&pipe->lock); in gss_add_msg()
368 old = __gss_find_upcall(pipe, gss_msg->uid); in gss_add_msg()
371 list_add(&gss_msg->list, &pipe->in_downcall); in gss_add_msg()
374 spin_unlock(&pipe->lock); in gss_add_msg()
390 struct rpc_pipe *pipe = gss_msg->pipe; in gss_unhash_msg() local
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv10.c483 struct pipe_state *pipe = &chan->pipe_state; in nv17_gr_mthd_lma_window() local
497 PIPE_SAVE(priv, pipe->pipe_0x0200, 0x0200); in nv17_gr_mthd_lma_window()
506 PIPE_SAVE(priv, pipe->pipe_0x4400, 0x4400); in nv17_gr_mthd_lma_window()
532 PIPE_RESTORE(priv, pipe->pipe_0x0200, 0x0200); in nv17_gr_mthd_lma_window()
544 PIPE_RESTORE(priv, pipe->pipe_0x4400, 0x4400); in nv17_gr_mthd_lma_window()
621 struct pipe_state *pipe = &chan->pipe_state; in nv10_gr_save_pipe() local
623 PIPE_SAVE(priv, pipe->pipe_0x4400, 0x4400); in nv10_gr_save_pipe()
624 PIPE_SAVE(priv, pipe->pipe_0x0200, 0x0200); in nv10_gr_save_pipe()
625 PIPE_SAVE(priv, pipe->pipe_0x6400, 0x6400); in nv10_gr_save_pipe()
626 PIPE_SAVE(priv, pipe->pipe_0x6800, 0x6800); in nv10_gr_save_pipe()
[all …]
/linux-4.1.27/fs/nfs/blocklayout/
Drpc_pipefs.c146 struct rpc_pipe *pipe) in nfs4blocklayout_register_sb() argument
153 dentry = rpc_mkpipe_dentry(dir, "blocklayout", NULL, pipe); in nfs4blocklayout_register_sb()
159 struct rpc_pipe *pipe) in nfs4blocklayout_unregister_sb() argument
161 if (pipe->dentry) in nfs4blocklayout_unregister_sb()
162 rpc_unlink(pipe->dentry); in nfs4blocklayout_unregister_sb()
208 struct rpc_pipe *pipe) in nfs4blocklayout_register_net() argument
216 dentry = nfs4blocklayout_register_sb(pipefs_sb, pipe); in nfs4blocklayout_register_net()
222 struct rpc_pipe *pipe) in nfs4blocklayout_unregister_net() argument
228 nfs4blocklayout_unregister_sb(pipefs_sb, pipe); in nfs4blocklayout_unregister_net()
/linux-4.1.27/fs/autofs4/
Dinode.c209 struct file * pipe; in autofs4_fill_super() local
225 sbi->pipe = NULL; in autofs4_fill_super()
261 pipe = NULL; in autofs4_fill_super()
308 pipe = fget(pipefd); in autofs4_fill_super()
310 if (!pipe) { in autofs4_fill_super()
314 ret = autofs_prepare_pipe(pipe); in autofs4_fill_super()
317 sbi->pipe = pipe; in autofs4_fill_super()
332 fput(pipe); in autofs4_fill_super()
Dautofs_i.h110 struct file *pipe; member
214 static inline int autofs_prepare_pipe(struct file *pipe) in autofs_prepare_pipe() argument
216 if (!(pipe->f_mode & FMODE_CAN_WRITE)) in autofs_prepare_pipe()
218 if (!S_ISFIFO(file_inode(pipe)->i_mode)) in autofs_prepare_pipe()
221 pipe->f_flags |= O_DIRECT; in autofs_prepare_pipe()
Dwaitq.c51 fput(sbi->pipe); /* Close the pipe */ in autofs4_catatonic_mode()
52 sbi->pipe = NULL; in autofs4_catatonic_mode()
102 struct file *pipe = NULL; in autofs4_notify_daemon() local
149 struct user_namespace *user_ns = sbi->pipe->f_cred->user_ns; in autofs4_notify_daemon()
171 pipe = get_file(sbi->pipe); in autofs4_notify_daemon()
175 if (autofs4_write(sbi, pipe, &pkt, pktsz)) in autofs4_notify_daemon()
177 fput(pipe); in autofs4_notify_daemon()
Ddev-ioctl.c368 struct file *pipe; in autofs_dev_ioctl_setpipefd() local
378 pipe = fget(pipefd); in autofs_dev_ioctl_setpipefd()
379 if (!pipe) { in autofs_dev_ioctl_setpipefd()
383 if (autofs_prepare_pipe(pipe) < 0) { in autofs_dev_ioctl_setpipefd()
385 fput(pipe); in autofs_dev_ioctl_setpipefd()
390 sbi->pipe = pipe; in autofs_dev_ioctl_setpipefd()
/linux-4.1.27/sound/pcmcia/vx/
Dvxp_ops.c365 struct vx_pipe *pipe, int count) in vxp_dma_write() argument
368 int offset = pipe->hw_ptr; in vxp_dma_write()
372 if (offset + count > pipe->buffer_bytes) { in vxp_dma_write()
373 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
382 pipe->hw_ptr = 0; in vxp_dma_write()
384 pipe->hw_ptr += count; in vxp_dma_write()
404 struct vx_pipe *pipe, int count) in vxp_dma_read() argument
408 int offset = pipe->hw_ptr; in vxp_dma_read()
414 if (offset + count > pipe->buffer_bytes) { in vxp_dma_read()
415 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
[all …]
/linux-4.1.27/drivers/mfd/
Dviperboard.c58 int pipe, ret; in vprbrd_probe() local
76 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe()
77 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe()
83 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MINOR, in vprbrd_probe()
/linux-4.1.27/drivers/net/wimax/i2400m/
Dusb-fw.c96 int pipe, do_autopm = 1; in i2400mu_tx_bulk_out() local
104 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); in i2400mu_tx_bulk_out()
106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200); in i2400mu_tx_bulk_out()
135 usb_clear_halt(i2400mu->usb_dev, pipe); in i2400mu_tx_bulk_out()
250 int pipe; in i2400mu_notif_submit() local
254 pipe = usb_rcvintpipe(i2400mu->usb_dev, epd->bEndpointAddress); in i2400mu_notif_submit()
255 usb_fill_int_urb(urb, i2400mu->usb_dev, pipe, in i2400mu_notif_submit()
/linux-4.1.27/fs/fuse/
Ddev.c716 struct pipe_inode_info *pipe; member
769 err = buf->ops->confirm(cs->pipe, buf); in fuse_copy_fill()
781 if (cs->nr_segs == cs->pipe->buffers) in fuse_copy_fill()
866 err = buf->ops->confirm(cs->pipe, buf); in fuse_try_move_page()
879 if (buf->ops->steal(cs->pipe, buf) != 0) in fuse_try_move_page()
954 if (cs->nr_segs == cs->pipe->buffers) in fuse_ref_page()
1375 struct pipe_inode_info *pipe, in fuse_dev_splice_read() argument
1387 bufs = kmalloc(pipe->buffers * sizeof(struct pipe_buffer), GFP_KERNEL); in fuse_dev_splice_read()
1393 cs.pipe = pipe; in fuse_dev_splice_read()
1399 pipe_lock(pipe); in fuse_dev_splice_read()
[all …]
/linux-4.1.27/drivers/media/usb/b2c2/
Dflexcop-usb.c103 int nWaitTime, pipe, len; in flexcop_usb_v8_memory_req() local
110 pipe = B2C2_USB_CTRL_PIPE_IN; in flexcop_usb_v8_memory_req()
116 pipe = B2C2_USB_CTRL_PIPE_OUT; in flexcop_usb_v8_memory_req()
121 pipe = B2C2_USB_CTRL_PIPE_OUT; in flexcop_usb_v8_memory_req()
130 len = usb_control_msg(fc_usb->udev, pipe, in flexcop_usb_v8_memory_req()
207 pipe = set ? B2C2_USB_CTRL_PIPE_OUT : B2C2_USB_CTRL_PIPE_IN, len;
210 len = usb_control_msg(fc_usb->udev,pipe,
229 int nWaitTime,pipe,len; in flexcop_usb_i2c_req() local
238 pipe = B2C2_USB_CTRL_PIPE_OUT; in flexcop_usb_i2c_req()
244 pipe = B2C2_USB_CTRL_PIPE_IN; in flexcop_usb_i2c_req()
[all …]
/linux-4.1.27/drivers/usb/core/
Dmessage.c81 unsigned int pipe, in usb_internal_control_msg() argument
93 usb_fill_control_urb(urb, usb_dev, pipe, (unsigned char *)cmd, data, in usb_internal_control_msg()
131 int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, in usb_control_msg() argument
148 ret = usb_internal_control_msg(dev, pipe, dr, data, size, timeout); in usb_control_msg()
183 int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_interrupt_msg() argument
186 return usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout); in usb_interrupt_msg()
223 int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_bulk_msg() argument
229 ep = usb_pipe_endpoint(usb_dev, pipe); in usb_bulk_msg()
239 pipe = (pipe & ~(3 << 30)) | (PIPE_INTERRUPT << 30); in usb_bulk_msg()
240 usb_fill_int_urb(urb, usb_dev, pipe, data, len, in usb_bulk_msg()
[all …]
Ddevio.c358 void __user *userurb, int pipe, unsigned length, in snoop_urb() argument
370 ep = usb_pipeendpoint(pipe); in snoop_urb()
371 t = types[usb_pipetype(pipe)]; in snoop_urb()
372 d = dirs[!!usb_pipein(pipe)]; in snoop_urb()
514 snoop_urb(urb->dev, as->userurb, urb->pipe, urb->actual_length, in async_completed()
976 int i, pipe, ret; in proc_control() local
1008 pipe = usb_rcvctrlpipe(dev, 0); in proc_control()
1009 snoop_urb(dev, NULL, pipe, ctrl.wLength, tmo, SUBMIT, NULL, 0); in proc_control()
1012 i = usb_control_msg(dev, pipe, ctrl.bRequest, in proc_control()
1016 snoop_urb(dev, NULL, pipe, max(i, 0), min(i, 0), COMPLETE, in proc_control()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dce.c326 void __ath10k_ce_send_revert(struct ath10k_ce_pipe *pipe) in __ath10k_ce_send_revert() argument
328 struct ath10k *ar = pipe->ar; in __ath10k_ce_send_revert()
330 struct ath10k_ce_ring *src_ring = pipe->src_ring; in __ath10k_ce_send_revert()
331 u32 ctrl_addr = pipe->ctrl_addr; in __ath10k_ce_send_revert()
372 int ath10k_ce_num_free_src_entries(struct ath10k_ce_pipe *pipe) in ath10k_ce_num_free_src_entries() argument
374 struct ath10k *ar = pipe->ar; in ath10k_ce_num_free_src_entries()
379 delta = CE_RING_DELTA(pipe->src_ring->nentries_mask, in ath10k_ce_num_free_src_entries()
380 pipe->src_ring->write_index, in ath10k_ce_num_free_src_entries()
381 pipe->src_ring->sw_index - 1); in ath10k_ce_num_free_src_entries()
387 int __ath10k_ce_rx_num_free_bufs(struct ath10k_ce_pipe *pipe) in __ath10k_ce_rx_num_free_bufs() argument
[all …]
Dce.h161 void __ath10k_ce_send_revert(struct ath10k_ce_pipe *pipe);
163 int ath10k_ce_num_free_src_entries(struct ath10k_ce_pipe *pipe);
167 int __ath10k_ce_rx_num_free_bufs(struct ath10k_ce_pipe *pipe);
168 int __ath10k_ce_rx_post_buf(struct ath10k_ce_pipe *pipe, void *ctx, u32 paddr);
169 int ath10k_ce_rx_post_buf(struct ath10k_ce_pipe *pipe, void *ctx, u32 paddr);
Dpci.c387 static int __ath10k_pci_rx_post_buf(struct ath10k_pci_pipe *pipe) in __ath10k_pci_rx_post_buf() argument
389 struct ath10k *ar = pipe->hif_ce_state; in __ath10k_pci_rx_post_buf()
391 struct ath10k_ce_pipe *ce_pipe = pipe->ce_hdl; in __ath10k_pci_rx_post_buf()
398 skb = dev_alloc_skb(pipe->buf_sz); in __ath10k_pci_rx_post_buf()
427 static void __ath10k_pci_rx_post_pipe(struct ath10k_pci_pipe *pipe) in __ath10k_pci_rx_post_pipe() argument
429 struct ath10k *ar = pipe->hif_ce_state; in __ath10k_pci_rx_post_pipe()
431 struct ath10k_ce_pipe *ce_pipe = pipe->ce_hdl; in __ath10k_pci_rx_post_pipe()
436 if (pipe->buf_sz == 0) in __ath10k_pci_rx_post_pipe()
444 ret = __ath10k_pci_rx_post_buf(pipe); in __ath10k_pci_rx_post_pipe()
454 static void ath10k_pci_rx_post_pipe(struct ath10k_pci_pipe *pipe) in ath10k_pci_rx_post_pipe() argument
[all …]
/linux-4.1.27/include/net/nfc/
Dhci.h54 int (*event_received)(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
56 void (*cmd_received)(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
77 u8 pipe; member
255 void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
257 void nfc_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
263 u8 pipe);
Dnci_core.h83 void (*hci_event_received)(struct nci_dev *ndev, u8 pipe, u8 event,
85 void (*hci_cmd_received)(struct nci_dev *ndev, u8 pipe, u8 cmd,
149 u8 pipe; member
284 int nci_hci_open_pipe(struct nci_dev *ndev, u8 pipe);
286 u8 dest_gate, u8 pipe);
/linux-4.1.27/drivers/usb/misc/
Dusbtest.c237 int pipe, in usbtest_alloc_urb() argument
250 usb_fill_int_urb(urb, udev, pipe, NULL, bytes, simple_callback, in usbtest_alloc_urb()
253 usb_fill_bulk_urb(urb, udev, pipe, NULL, bytes, simple_callback, in usbtest_alloc_urb()
260 if (usb_pipein(pipe)) in usbtest_alloc_urb()
286 usb_pipein(urb->pipe) ? GUARD_BYTE : 0, in usbtest_alloc_urb()
293 int pipe, in simple_alloc_urb() argument
297 return usbtest_alloc_urb(udev, pipe, bytes, URB_NO_TRANSFER_DMA_MAP, 0, in simple_alloc_urb()
306 static unsigned get_maxpacket(struct usb_device *udev, int pipe) in get_maxpacket() argument
310 ep = usb_pipe_endpoint(udev, pipe); in get_maxpacket()
328 maxpacket = get_maxpacket(urb->dev, urb->pipe); in simple_fill_buf()
[all …]
/linux-4.1.27/drivers/usb/usbip/
Dstub_tx.c86 usb_pipeendpoint(urb->pipe)); in stub_complete()
177 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) in stub_send_ret_submit()
203 if (usb_pipein(urb->pipe) && in stub_send_ret_submit()
204 usb_pipetype(urb->pipe) != PIPE_ISOCHRONOUS && in stub_send_ret_submit()
210 } else if (usb_pipein(urb->pipe) && in stub_send_ret_submit()
211 usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in stub_send_ret_submit()
244 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in stub_send_ret_submit()
Dvhci_tx.c32 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu()
37 pdup->base.direction = usb_pipein(urb->pipe) ? in setup_cmd_submit_pdu()
39 pdup->base.ep = usb_pipeendpoint(urb->pipe); in setup_cmd_submit_pdu()
96 if (!usb_pipein(urb->pipe) && urb->transfer_buffer_length > 0) { in vhci_send_cmd_submit()
103 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in vhci_send_cmd_submit()
Dstub_rx.c191 if (usb_pipetype(urb->pipe) != PIPE_CONTROL) in tweak_special_requests()
408 ep = (usb_pipein(urb->pipe) ? dev->ep_in : dev->ep_out) in masking_bogus_flags()
409 [usb_pipeendpoint(urb->pipe)]; in masking_bogus_flags()
455 int pipe = get_pipe(sdev, pdu->base.ep, pdu->base.direction); in stub_recv_cmd_submit() local
462 if (usb_pipeisoc(pipe)) in stub_recv_cmd_submit()
497 priv->urb->pipe = pipe; in stub_recv_cmd_submit()
/linux-4.1.27/drivers/media/usb/gspca/
Dstv0680.c54 unsigned int pipe = 0; in stv_sndctrl() local
59 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
63 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
67 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
71 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
75 ret = usb_control_msg(gspca_dev->dev, pipe, in stv_sndctrl()
/linux-4.1.27/tools/virtio/virtio-trace/
DREADME42 virtio-trace uses virtio-serial pipe as trace data paths as to the number
43 of CPUs and a control path, so FIFO (named pipe) should be created as follows:
53 2) Set up of virtio-serial pipe in a host
54 Add qemu option to use virtio-serial pipe.
59 -chardev pipe,id=charchannel0,path=/tmp/virtio-trace/agent-ctl-path\
63 -chardev pipe,id=charchannel1,path=/tmp/virtio-trace/trace-path-cpu0\
71 <channel type='pipe'>
76 <channel type='pipe'>
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Dusb_ops_linux.c215 unsigned int pipe = 0, ep_num = 0; in ffaddr2pipehdl() local
219 pipe = usb_rcvbulkpipe(pusbd, pdvobj->RtInPipe[0]); in ffaddr2pipehdl()
221 pipe = usb_rcvbulkpipe(pusbd, pdvobj->RtInPipe[1]); in ffaddr2pipehdl()
224 pipe = usb_sndbulkpipe(pusbd, ep_num); in ffaddr2pipehdl()
227 return pipe; in ffaddr2pipehdl()
234 unsigned int pipe; in usbctrl_vendorreq() local
267 pipe = usb_rcvctrlpipe(udev, 0);/* read_in */ in usbctrl_vendorreq()
270 pipe = usb_sndctrlpipe(udev, 0);/* write_out */ in usbctrl_vendorreq()
275 …status = usb_control_msg(udev, pipe, request, reqtype, value, index, pIo_buf, len, RTW_USB_CONTROL… in usbctrl_vendorreq()
462 unsigned int pipe; in usb_read_port() local
[all …]
/linux-4.1.27/drivers/gpu/drm/imx/
Dimx-drm-core.c48 int pipe; member
57 return crtc->pipe; in imx_drm_crtc_id()
132 return drm_vblank_get(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_crtc_vblank_get()
138 drm_vblank_put(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_crtc_vblank_put()
144 drm_handle_vblank(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_handle_vblank()
366 imx_drm_crtc->pipe = imxdrm->pipes++; in imx_drm_add_crtc()
371 imxdrm->crtc[imx_drm_crtc->pipe] = imx_drm_crtc; in imx_drm_add_crtc()
388 imxdrm->crtc[imx_drm_crtc->pipe] = NULL; in imx_drm_add_crtc()
403 imxdrm->crtc[imx_drm_crtc->pipe] = NULL; in imx_drm_remove_crtc()
/linux-4.1.27/sound/usb/
Dhelper.c83 int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, in snd_usb_ctl_msg() argument
102 err = usb_control_msg(dev, pipe, request, requesttype, in snd_usb_ctl_msg()
110 snd_usb_ctl_msg_quirk(dev, pipe, request, requesttype, in snd_usb_ctl_msg()
Dendpoint.c135 usb_pipeout(ep->pipe); in snd_usb_endpoint_implicit_feedback_sink()
364 if (usb_pipeout(ep->pipe)) { in snd_complete_urb()
464 ep->pipe = usb_sndisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
466 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num); in snd_usb_add_endpoint()
651 if (usb_pipein(ep->pipe) || in data_ep_set_params()
727 u->urb->pipe = ep->pipe; in data_ep_set_params()
765 u->urb->pipe = ep->pipe; in sync_ep_set_params()
918 if (usb_pipeout(ep->pipe)) { in snd_usb_endpoint_start()
/linux-4.1.27/fs/nfs/
Dnfs4idmap.c415 struct rpc_pipe *pipe = idmap->idmap_pipe; in nfs_idmap_pipe_destroy() local
417 if (pipe->dentry) { in nfs_idmap_pipe_destroy()
418 rpc_unlink(pipe->dentry); in nfs_idmap_pipe_destroy()
419 pipe->dentry = NULL; in nfs_idmap_pipe_destroy()
427 struct rpc_pipe *pipe = idmap->idmap_pipe; in nfs_idmap_pipe_create() local
430 dentry = rpc_mkpipe_dentry(dir, "idmap", idmap, pipe); in nfs_idmap_pipe_create()
433 pipe->dentry = dentry; in nfs_idmap_pipe_create()
446 struct rpc_pipe *pipe; in nfs_idmap_new() local
457 pipe = rpc_mkpipe_data(&idmap_upcall_ops, 0); in nfs_idmap_new()
458 if (IS_ERR(pipe)) { in nfs_idmap_new()
[all …]
/linux-4.1.27/sound/pci/vx222/
Dvx222_ops.c259 struct vx_pipe *pipe, int count) in vx2_dma_write() argument
262 int offset = pipe->hw_ptr; in vx2_dma_write()
272 if (offset + count > pipe->buffer_bytes) { in vx2_dma_write()
273 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
282 pipe->hw_ptr = 0; in vx2_dma_write()
284 pipe->hw_ptr += count; in vx2_dma_write()
298 struct vx_pipe *pipe, int count) in vx2_dma_read() argument
300 int offset = pipe->hw_ptr; in vx2_dma_read()
310 if (offset + count > pipe->buffer_bytes) { in vx2_dma_read()
311 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
[all …]
/linux-4.1.27/drivers/nfc/st21nfcb/
Dst21nfcb_se.c235 st21nfcb_gates[j].pipe = pipe_info[2]; in st21nfcb_hci_load_session()
238 st21nfcb_gates[j].pipe; in st21nfcb_hci_load_session()
239 ndev->hci_dev->pipes[st21nfcb_gates[j].pipe].gate = in st21nfcb_hci_load_session()
241 ndev->hci_dev->pipes[st21nfcb_gates[j].pipe].host = in st21nfcb_hci_load_session()
358 void st21nfcb_hci_event_received(struct nci_dev *ndev, u8 pipe, in st21nfcb_hci_event_received() argument
361 u8 gate = ndev->hci_dev->pipes[pipe].gate; in st21nfcb_hci_event_received()
362 u8 host = ndev->hci_dev->pipes[pipe].host; in st21nfcb_hci_event_received()
380 void st21nfcb_hci_cmd_received(struct nci_dev *ndev, u8 pipe, u8 cmd, in st21nfcb_hci_cmd_received() argument
384 u8 gate = ndev->hci_dev->pipes[pipe].gate; in st21nfcb_hci_cmd_received()
391 ndev->hci_dev->pipes[pipe].host != ST21NFCB_UICC_HOST_ID) in st21nfcb_hci_cmd_received()
Dst21nfcb_se.h55 void st21nfcb_hci_event_received(struct nci_dev *ndev, u8 pipe,
57 void st21nfcb_hci_cmd_received(struct nci_dev *ndev, u8 pipe, u8 cmd,
/linux-4.1.27/drivers/media/usb/zr364xx/
Dzr364xx.c193 struct zr364xx_pipeinfo pipe[1]; member
978 int pipe; in read_pipe_completion() local
1017 pipe = usb_rcvbulkpipe(cam->udev, cam->read_endpoint); in read_pipe_completion()
1021 pipe, in read_pipe_completion()
1040 int pipe; in zr364xx_start_readpipe() local
1042 struct zr364xx_pipeinfo *pipe_info = cam->pipe; in zr364xx_start_readpipe()
1043 pipe = usb_rcvbulkpipe(cam->udev, cam->read_endpoint); in zr364xx_start_readpipe()
1055 pipe, in zr364xx_start_readpipe()
1079 pipe_info = cam->pipe; in zr364xx_stop_readpipe()
1233 kfree(cam->pipe->transfer_buffer); in zr364xx_release()
[all …]
/linux-4.1.27/drivers/hid/usbhid/
Dusbmouse.c126 int pipe, maxp; in usb_mouse_probe() local
138 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); in usb_mouse_probe()
139 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe()
193 usb_fill_int_urb(mouse->irq, dev, pipe, mouse->data, in usb_mouse_probe()
/linux-4.1.27/drivers/usb/host/whci/
Dqset.c61 is_out = usb_pipeout(urb->pipe); in qset_fill_qh()
79 if (usb_pipecontrol(urb->pipe)) in qset_fill_qh()
91 QH_INFO1_EP(usb_pipeendpoint(urb->pipe)) in qset_fill_qh()
93 | usb_pipe_to_qh_type(urb->pipe) in qset_fill_qh()
208 if (usb_pipecontrol(std->urb->pipe)) in qset_add_qtds()
213 if (whc_std_last(std) && usb_pipeout(std->urb->pipe)) in qset_add_qtds()
227 } else if (usb_pipein(std->urb->pipe)) in qset_add_qtds()
303 bool is_out = usb_pipeout(std->urb->pipe); in qset_free_std()
557 bool is_out = usb_pipeout(urb->pipe); in qset_add_urb_sg_linearize()
731 return usb_pipein(urb->pipe) ? -ENOSR : -ECOMM; in get_urb_status_from_qtd()
[all …]
/linux-4.1.27/include/linux/sunrpc/
Drpc_pipe_fs.h45 struct list_head pipe; member
62 struct rpc_pipe *pipe; member
127 void rpc_destroy_pipe_data(struct rpc_pipe *pipe);
/linux-4.1.27/drivers/input/tablet/
Dacecad.c142 int pipe, maxp; in usb_acecad_probe() local
153 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); in usb_acecad_probe()
154 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_acecad_probe()
230 usb_fill_int_urb(acecad->irq, dev, pipe, in usb_acecad_probe()
/linux-4.1.27/drivers/usb/isp1760/
Disp1760-hcd.c547 maxpacket = usb_maxpacket(qtd->urb->dev, qtd->urb->pipe, in create_ptd_atl()
548 usb_pipeout(qtd->urb->pipe)); in create_ptd_atl()
556 ptd->dw0 |= TO_DW0_ENDPOINT(usb_pipeendpoint(qtd->urb->pipe)); in create_ptd_atl()
559 ptd->dw1 = usb_pipeendpoint(qtd->urb->pipe) >> 1; in create_ptd_atl()
560 ptd->dw1 |= TO_DW1_DEVICE_ADDR(usb_pipedevice(qtd->urb->pipe)); in create_ptd_atl()
563 if (usb_pipebulk(qtd->urb->pipe)) in create_ptd_atl()
565 else if (usb_pipeint(qtd->urb->pipe)) in create_ptd_atl()
579 if (usb_pipeint(qtd->urb->pipe) && in create_ptd_atl()
587 if (usb_pipecontrol(qtd->urb->pipe) || in create_ptd_atl()
588 usb_pipebulk(qtd->urb->pipe)) in create_ptd_atl()
[all …]
/linux-4.1.27/drivers/media/
Dmedia-entity.c226 struct media_pipeline *pipe) in media_entity_pipeline_start() argument
243 WARN_ON(entity->pipe && entity->pipe != pipe); in media_entity_pipeline_start()
244 entity->pipe = pipe; in media_entity_pipeline_start()
320 entity_err->pipe = NULL; in media_entity_pipeline_start()
360 entity->pipe = NULL; in media_entity_pipeline_stop()
/linux-4.1.27/drivers/media/usb/cx231xx/
Dcx231xx-core.c237 static int __usb_control_msg(struct cx231xx *dev, unsigned int pipe, in __usb_control_msg() argument
247 pipe, in __usb_control_msg()
266 rc = usb_control_msg(dev->udev, pipe, request, requesttype, value, in __usb_control_msg()
300 int pipe = usb_rcvctrlpipe(dev->udev, 0); in cx231xx_read_ctrl_reg() local
328 ret = __usb_control_msg(dev, pipe, req, in cx231xx_read_ctrl_reg()
338 int pipe = 0; in cx231xx_send_vendor_cmd() local
349 pipe = usb_rcvctrlpipe(dev->udev, 0); in cx231xx_send_vendor_cmd()
351 pipe = usb_sndctrlpipe(dev->udev, 0); in cx231xx_send_vendor_cmd()
369 ret = __usb_control_msg(dev, pipe, ven_req->bRequest, in cx231xx_send_vendor_cmd()
379 ret = __usb_control_msg(dev, pipe, in cx231xx_send_vendor_cmd()
[all …]
/linux-4.1.27/drivers/media/usb/tm6000/
Dtm6000-dvb.c121 unsigned int pipe, size; in tm6000_start_stream() local
137 pipe = usb_rcvbulkpipe(dev->udev, dev->bulk_in.endp->desc.bEndpointAddress in tm6000_start_stream()
140 size = usb_maxpacket(dev->udev, pipe, usb_pipeout(pipe)); in tm6000_start_stream()
150 usb_fill_bulk_urb(dvb->bulk_urb, dev->udev, pipe, in tm6000_start_stream()
155 ret = usb_clear_halt(dev->udev, pipe); in tm6000_start_stream()
/linux-4.1.27/include/sound/
Dvx_core.h109 struct vx_pipe *pipe, int count);
111 struct vx_pipe *pipe, int count);
289 struct vx_pipe *pipe, int count) in vx_pseudo_dma_write() argument
291 chip->ops->dma_write(chip, runtime, pipe, count); in vx_pseudo_dma_write()
295 struct vx_pipe *pipe, int count) in vx_pseudo_dma_read() argument
297 chip->ops->dma_read(chip, runtime, pipe, count); in vx_pseudo_dma_read()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_device_queue_manager.c198 int pipe, bit, i; in allocate_hqd() local
202 for (pipe = dqm->next_pipe_to_allocate, i = 0; i < get_pipes_num(dqm); in allocate_hqd()
203 pipe = ((pipe + 1) % get_pipes_num(dqm)), ++i) { in allocate_hqd()
204 if (dqm->allocated_queues[pipe] != 0) { in allocate_hqd()
206 (unsigned long *)&dqm->allocated_queues[pipe], in allocate_hqd()
210 (unsigned long *)&dqm->allocated_queues[pipe]); in allocate_hqd()
211 q->pipe = pipe; in allocate_hqd()
222 __func__, q->pipe, q->queue); in allocate_hqd()
224 dqm->next_pipe_to_allocate = (pipe + 1) % get_pipes_num(dqm); in allocate_hqd()
232 set_bit(q->queue, (unsigned long *)&dqm->allocated_queues[q->pipe]); in deallocate_hqd()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_irq.c926 trace_drm_vblank_event_delivered(e->base.pid, e->pipe, in send_vblank_event()
954 e->pipe = crtc; in drm_send_vblank_event()
1206 if (e->pipe != crtc) in drm_vblank_off()
1212 drm_vblank_put(dev, e->pipe); in drm_vblank_off()
1457 static int drm_queue_vblank_event(struct drm_device *dev, int pipe, in drm_queue_vblank_event() argument
1461 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_queue_vblank_event()
1474 e->pipe = pipe; in drm_queue_vblank_event()
1503 seq = drm_vblank_count_and_time(dev, pipe, &now); in drm_queue_vblank_event()
1512 vblwait->request.sequence, seq, pipe); in drm_queue_vblank_event()
1514 trace_drm_vblank_event_queued(current->pid, pipe, in drm_queue_vblank_event()
[all …]
/linux-4.1.27/drivers/usb/musb/
Dmusb_host.c218 unsigned pipe = urb->pipe; in musb_start_urb() local
219 u8 address = usb_pipedevice(pipe); in musb_start_urb()
310 usb_pipedevice(urb->pipe), in musb_giveback()
311 usb_pipeendpoint(urb->pipe), in musb_giveback()
312 usb_pipein(urb->pipe) ? "in" : "out", in musb_giveback()
468 int pipe = urb->pipe; in musb_host_packet_rx() local
478 if (usb_pipeisoc(pipe)) { in musb_host_packet_rx()
1178 if (usb_pipeout(urb->pipe) in musb_h_ep0_irq()
1227 int pipe; in musb_host_tx() local
1250 pipe = urb->pipe; in musb_host_tx()
[all …]
/linux-4.1.27/drivers/net/irda/
Dkingsun-sir.c442 int pipe, maxp_in, maxp_out; in kingsun_probe() local
464 pipe = usb_rcvintpipe(dev, ep_in); in kingsun_probe()
465 maxp_in = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in kingsun_probe()
481 pipe = usb_sndintpipe(dev, ep_out); in kingsun_probe()
482 maxp_out = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in kingsun_probe()
/linux-4.1.27/drivers/hid/
Dhid-elo.c102 unsigned int pipe; in elo_smartset_send_get() local
106 pipe = usb_sndctrlpipe(dev, 0); in elo_smartset_send_get()
109 pipe = usb_rcvctrlpipe(dev, 0); in elo_smartset_send_get()
114 return usb_control_msg(dev, pipe, command, in elo_smartset_send_get()
/linux-4.1.27/drivers/nfc/nfcmrvl/
Dusb.c109 unsigned int pipe; in nfcmrvl_submit_bulk_urb() local
125 pipe = usb_rcvbulkpipe(drv_data->udev, in nfcmrvl_submit_bulk_urb()
128 usb_fill_bulk_urb(urb, drv_data->udev, pipe, buf, size, in nfcmrvl_submit_bulk_urb()
226 unsigned int pipe; in nfcmrvl_usb_nci_send() local
236 pipe = usb_sndbulkpipe(drv_data->udev, in nfcmrvl_usb_nci_send()
239 usb_fill_bulk_urb(urb, drv_data->udev, pipe, skb->data, skb->len, in nfcmrvl_usb_nci_send()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-core.c81 int pipe = usb_rcvctrlpipe(dev->udev, 0); in em28xx_read_reg_req_len() local
92 pipe, in em28xx_read_reg_req_len()
100 ret = usb_control_msg(dev->udev, pipe, req, in em28xx_read_reg_req_len()
157 int pipe = usb_sndctrlpipe(dev->udev, 0); in em28xx_write_regs_req() local
170 pipe, in em28xx_write_regs_req()
183 ret = usb_control_msg(dev->udev, pipe, req, in em28xx_write_regs_req()
875 int sb_size, pipe; in em28xx_alloc_urbs() local
956 pipe = usb_rcvbulkpipe(dev->udev, in em28xx_alloc_urbs()
960 usb_fill_bulk_urb(urb, dev->udev, pipe, in em28xx_alloc_urbs()
965 pipe = usb_rcvisocpipe(dev->udev, in em28xx_alloc_urbs()
[all …]
/linux-4.1.27/drivers/isdn/hisax/
Dst5481_usb.c101 u_char pipe, in st5481_usb_pipe_reset() argument
104 DBG(1, "pipe=%02x", pipe); in st5481_usb_pipe_reset()
108 0, pipe, complete, context); in st5481_usb_pipe_reset()
405 unsigned int pipe, void *buf, int num_packets, in fill_isoc_urb() argument
412 urb->pipe = pipe; in fill_isoc_urb()
430 unsigned int pipe, int num_packets, in st5481_setup_isocpipes() argument
449 fill_isoc_urb(urb[j], dev, pipe, buf, in st5481_setup_isocpipes()
Dhfc_usb.c152 int pipe; /* address of endpoint */ member
226 hfc->ctrl_urb->pipe = hfc->ctrl_out_pipe; in ctrl_start_transfer()
427 fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, in fill_isoc_urb() argument
434 urb->pipe = pipe; in fill_isoc_urb()
479 fifo->hfc->dev, fifo->pipe, in start_isoc_chain()
591 fill_isoc_urb(urb, fifo->hfc->dev, fifo->pipe, in tx_iso_complete()
759 fill_isoc_urb(urb, fifo->hfc->dev, fifo->pipe, in rx_iso_complete()
924 usb_fill_int_urb(fifo->urb, fifo->hfc->dev, fifo->pipe, in start_int_fifo()
1224 if (hfc->fifos[HFCUSB_PCM_RX].pipe) in hfc_usb_init()
1233 if (hfc->fifos[HFCUSB_PCM_RX].pipe) in hfc_usb_init()
[all …]
/linux-4.1.27/drivers/media/rc/
Dredrat3.c475 int len, ret, pipe; in redrat3_get_timeout() local
484 pipe = usb_rcvctrlpipe(rr3->udev, 0); in redrat3_get_timeout()
485 ret = usb_control_msg(rr3->udev, pipe, RR3_GET_IR_PARAM, in redrat3_get_timeout()
720 int lencheck, cur_sample_len, pipe; in redrat3_transmit_ir() local
791 pipe = usb_sndbulkpipe(rr3->udev, rr3->ep_out->bEndpointAddress); in redrat3_transmit_ir()
792 ret = usb_bulk_msg(rr3->udev, pipe, irdata, in redrat3_transmit_ir()
797 pipe = usb_rcvctrlpipe(rr3->udev, 0); in redrat3_transmit_ir()
798 ret = usb_control_msg(rr3->udev, pipe, RR3_TX_SEND_SIGNAL, in redrat3_transmit_ir()
913 int pipe, i; in redrat3_dev_probe() local
975 pipe = usb_rcvbulkpipe(udev, ep_in->bEndpointAddress); in redrat3_dev_probe()
[all …]
Dati_remote.c778 int pipe, maxp; in ati_remote_initialize() local
783 pipe = usb_rcvintpipe(udev, ati_remote->endpoint_in->bEndpointAddress); in ati_remote_initialize()
784 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
787 usb_fill_int_urb(ati_remote->irq_urb, udev, pipe, ati_remote->inbuf, in ati_remote_initialize()
794 pipe = usb_sndintpipe(udev, ati_remote->endpoint_out->bEndpointAddress); in ati_remote_initialize()
795 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
798 usb_fill_int_urb(ati_remote->out_urb, udev, pipe, ati_remote->outbuf, in ati_remote_initialize()
/linux-4.1.27/drivers/nfc/st21nfca/
Dst21nfca.c195 st21nfca_gates[j].pipe = pipe_info[2]; in st21nfca_hci_load_session()
198 st21nfca_gates[j].pipe; in st21nfca_hci_load_session()
199 hdev->pipes[st21nfca_gates[j].pipe].gate = in st21nfca_hci_load_session()
201 hdev->pipes[st21nfca_gates[j].pipe].dest_host = in st21nfca_hci_load_session()
217 st21nfca_gates[i].pipe); in st21nfca_hci_load_session()
863 static void st21nfca_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd, in st21nfca_hci_cmd_received() argument
867 u8 gate = hdev->pipes[pipe].gate; in st21nfca_hci_cmd_received()
874 hdev->pipes[pipe].dest_host != NFC_HCI_UICC_HOST_ID) in st21nfca_hci_cmd_received()
918 static int st21nfca_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, in st21nfca_hci_event_received() argument
921 u8 gate = hdev->pipes[pipe].gate; in st21nfca_hci_event_received()
[all …]
/linux-4.1.27/drivers/media/usb/s2255/
Ds2255drv.c271 struct s2255_pipeinfo pipe; member
921 int pipe; in s2255_write_config() local
925 pipe = usb_sndbulkpipe(udev, S2255_CONFIG_EP); in s2255_write_config()
926 retval = usb_bulk_msg(udev, pipe, pbuf, size, &done, 500); in s2255_write_config()
1988 struct s2255_pipeinfo *pipe = &dev->pipe; in s2255_board_init() local
1990 memset(pipe, 0, sizeof(*pipe)); in s2255_board_init()
1991 pipe->dev = dev; in s2255_board_init()
1992 pipe->cur_transfer_size = S2255_USB_XFER_SIZE; in s2255_board_init()
1993 pipe->max_transfer_size = S2255_USB_XFER_SIZE; in s2255_board_init()
1995 pipe->transfer_buffer = kzalloc(pipe->max_transfer_size, in s2255_board_init()
[all …]
/linux-4.1.27/drivers/usb/serial/
Dwhiteheat.c256 int pipe; in whiteheat_attach() local
264 pipe = usb_sndbulkpipe(serial->dev, in whiteheat_attach()
280 usb_clear_halt(serial->dev, pipe); in whiteheat_attach()
281 ret = usb_bulk_msg(serial->dev, pipe, command, 2, in whiteheat_attach()
293 pipe = usb_rcvbulkpipe(serial->dev, in whiteheat_attach()
296 usb_clear_halt(serial->dev, pipe); in whiteheat_attach()
297 ret = usb_bulk_msg(serial->dev, pipe, result, in whiteheat_attach()
416 usb_clear_halt(port->serial->dev, port->read_urb->pipe); in whiteheat_open()
417 usb_clear_halt(port->serial->dev, port->write_urb->pipe); in whiteheat_open()
832 usb_clear_halt(serial->dev, command_port->read_urb->pipe); in start_command_port()
/linux-4.1.27/drivers/media/usb/uvc/
Duvc_status.c166 unsigned int pipe; in uvc_status_init() local
184 pipe = usb_rcvintpipe(dev->udev, ep->desc.bEndpointAddress); in uvc_status_init()
194 usb_fill_int_urb(dev->int_urb, dev->udev, pipe, in uvc_status_init()
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Dce6230.c29 unsigned int pipe; in ce6230_ctrl_msg() local
67 pipe = usb_sndctrlpipe(d->udev, 0); in ce6230_ctrl_msg()
70 pipe = usb_rcvctrlpipe(d->udev, 0); in ce6230_ctrl_msg()
75 ret = usb_control_msg(d->udev, pipe, request, requesttype, value, index, in ce6230_ctrl_msg()
/linux-4.1.27/Documentation/
Dxillybus.txt80 elementary data transport between an FPGA and the host, providing pipe-like
93 just like any pipe file. On the FPGA side, hardware FIFOs are used to stream
119 and use plain write() or read() calls, just like with a regular pipe. In
146 asynchronous. For a synchronous pipe, write() returns successfully only after
152 When a pipe is configured asynchronous, write() returns if there was enough
173 A synchronous pipe can be configured to have the stream's position exposed
174 to the user logic at the FPGA. Such a pipe is also seekable on the host API.
200 Each pipe has a number of attributes which are set when the FPGA component
205 * is_writebuf: The pipe's direction. A non-zero value means it's an FPGA to
206 host pipe (the FPGA "writes").
[all …]

123