/drivers/usb/renesas_usbhs/ |
D | pipe.c | 33 char *usbhs_pipe_name(struct usbhs_pipe *pipe) in usbhs_pipe_name() argument 35 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 …]
|
D | fifo.c | 17 #define usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */ 32 struct usbhs_priv *priv = usbhs_pipe_to_priv(pkt->pipe); in usbhsf_null_handle() 45 void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, in usbhs_pkt_push() argument 50 struct usbhs_priv *priv = usbhs_pipe_to_priv(pipe); in usbhs_pkt_push() 62 if (!pipe->handler) { in usbhs_pkt_push() 64 pipe->handler = &usbhsf_null_handler; in usbhs_pkt_push() 67 list_move_tail(&pkt->node, &pipe->list); in usbhs_pkt_push() 74 pkt->pipe = pipe; in usbhs_pkt_push() 76 pkt->handler = pipe->handler; in usbhs_pkt_push() 92 struct usbhs_pkt *__usbhsf_pkt_get(struct usbhs_pipe *pipe) in __usbhsf_pkt_get() argument [all …]
|
D | pipe.h | 38 struct usbhs_pipe *pipe; member 50 ((i) < (info)->size) && ((pos) = (info)->pipe + (i)); \ 67 char *usbhs_pipe_name(struct usbhs_pipe *pipe); 70 void usbhs_pipe_free(struct usbhs_pipe *pipe); 73 int usbhs_pipe_is_dir_in(struct usbhs_pipe *pipe); 74 int usbhs_pipe_is_dir_host(struct usbhs_pipe *pipe); 75 int usbhs_pipe_is_running(struct usbhs_pipe *pipe); 76 void usbhs_pipe_running(struct usbhs_pipe *pipe, int running); 81 int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe); 82 void usbhs_pipe_clear(struct usbhs_pipe *pipe); [all …]
|
/drivers/gpu/drm/ |
D | drm_simple_kms_helper.c | 90 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_mode_valid() local 92 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_mode_valid() 93 if (!pipe->funcs || !pipe->funcs->mode_valid) in drm_simple_kms_crtc_mode_valid() 97 return pipe->funcs->mode_valid(pipe, mode); in drm_simple_kms_crtc_mode_valid() 119 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_enable() local 121 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_enable() 122 if (!pipe->funcs || !pipe->funcs->enable) in drm_simple_kms_crtc_enable() 125 plane = &pipe->plane; in drm_simple_kms_crtc_enable() 126 pipe->funcs->enable(pipe, crtc->state, plane->state); in drm_simple_kms_crtc_enable() 132 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_disable() local [all …]
|
D | drm_vblank.c | 157 drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe, 169 static void store_vblank(struct drm_device *dev, unsigned int pipe, in store_vblank() argument 173 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in store_vblank() 185 static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe) in drm_max_vblank_count() argument 187 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in drm_max_vblank_count() 196 static u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) in drm_vblank_no_hw_counter() argument 198 drm_WARN_ON_ONCE(dev, drm_max_vblank_count(dev, pipe) != 0); in drm_vblank_no_hw_counter() 202 static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe) in __get_vblank_counter() argument 205 struct drm_crtc *crtc = drm_crtc_from_index(dev, pipe); in __get_vblank_counter() 215 return dev->driver->get_vblank_counter(dev, pipe); in __get_vblank_counter() [all …]
|
/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_pipeline.c | 17 struct komeda_pipeline *pipe; in komeda_pipeline_add() local 25 if (size < sizeof(*pipe)) { in komeda_pipeline_add() 30 pipe = devm_kzalloc(mdev->dev, size, GFP_KERNEL); in komeda_pipeline_add() 31 if (!pipe) in komeda_pipeline_add() 34 pipe->mdev = mdev; in komeda_pipeline_add() 35 pipe->id = mdev->n_pipelines; in komeda_pipeline_add() 36 pipe->funcs = funcs; in komeda_pipeline_add() 38 mdev->pipelines[mdev->n_pipelines] = pipe; in komeda_pipeline_add() 41 return pipe; in komeda_pipeline_add() 45 struct komeda_pipeline *pipe) in komeda_pipeline_destroy() argument [all …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_pipe.c | 244 void vsp1_pipeline_reset(struct vsp1_pipeline *pipe) in vsp1_pipeline_reset() argument 249 if (pipe->brx) { in vsp1_pipeline_reset() 250 struct vsp1_brx *brx = to_brx(&pipe->brx->subdev); in vsp1_pipeline_reset() 256 for (i = 0; i < ARRAY_SIZE(pipe->inputs); ++i) in vsp1_pipeline_reset() 257 pipe->inputs[i] = NULL; in vsp1_pipeline_reset() 259 pipe->output = NULL; in vsp1_pipeline_reset() 261 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_pipeline_reset() 262 entity->pipe = NULL; in vsp1_pipeline_reset() 264 INIT_LIST_HEAD(&pipe->entities); in vsp1_pipeline_reset() 265 pipe->state = VSP1_PIPELINE_STOPPED; in vsp1_pipeline_reset() [all …]
|
D | vsp1_video.c | 186 static void vsp1_video_calculate_partition(struct vsp1_pipeline *pipe, in vsp1_video_calculate_partition() argument 199 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition() 200 pipe->output->entity.config, in vsp1_video_calculate_partition() 204 if (pipe->partitions <= 1) { in vsp1_video_calculate_partition() 208 vsp1_pipeline_propagate_partition(pipe, partition, index, in vsp1_video_calculate_partition() 233 unsigned int partitions = pipe->partitions - 1; in vsp1_video_calculate_partition() 249 vsp1_pipeline_propagate_partition(pipe, partition, index, &window); in vsp1_video_calculate_partition() 252 static int vsp1_video_pipeline_setup_partitions(struct vsp1_pipeline *pipe) in vsp1_video_pipeline_setup_partitions() argument 254 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions() 264 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions() [all …]
|
D | vsp1_drm.c | 33 static void vsp1_du_pipeline_frame_end(struct vsp1_pipeline *pipe, in vsp1_du_pipeline_frame_end() argument 36 struct vsp1_drm_pipeline *drm_pipe = to_vsp1_drm_pipeline(pipe); in vsp1_du_pipeline_frame_end() 64 struct vsp1_pipeline *pipe, in vsp1_du_insert_uif() argument 116 struct vsp1_pipeline *pipe, in vsp1_du_pipeline_setup_rpf() argument 190 ret = vsp1_du_insert_uif(vsp1, pipe, uif, &rpf->entity, RWPF_PAD_SOURCE, in vsp1_du_pipeline_setup_rpf() 191 pipe->brx, brx_input); in vsp1_du_pipeline_setup_rpf() 198 ret = v4l2_subdev_call(&pipe->brx->subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf() 205 format.format.code, BRX_NAME(pipe->brx), format.pad); in vsp1_du_pipeline_setup_rpf() 211 ret = v4l2_subdev_call(&pipe->brx->subdev, pad, set_selection, NULL, in vsp1_du_pipeline_setup_rpf() 218 BRX_NAME(pipe->brx), sel.pad); in vsp1_du_pipeline_setup_rpf() [all …]
|
/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
D | pipe_binarydesc.c | 35 struct ia_css_pipe const *const pipe, in pipe_binarydesc_get_offline() argument 44 assert(pipe); in pipe_binarydesc_get_offline() 51 descr->continuous = pipe->stream->config.continuous; in pipe_binarydesc_get_offline() 67 descr->stream_format = pipe->stream->config.input_config.format; in pipe_binarydesc_get_offline() 73 descr->isp_pipe_version = pipe->config.isp_pipe_version; in pipe_binarydesc_get_offline() 79 struct ia_css_pipe const *const pipe, in ia_css_pipe_get_copy_binarydesc() argument 88 assert(pipe); in ia_css_pipe_get_copy_binarydesc() 96 pipe_binarydesc_get_offline(pipe, IA_CSS_BINARY_MODE_COPY, in ia_css_pipe_get_copy_binarydesc() 100 copy_descr->two_ppc = (pipe->stream->config.pixels_per_clock == 2); in ia_css_pipe_get_copy_binarydesc() 107 struct ia_css_pipe const *const pipe, in ia_css_pipe_get_vfpp_binarydesc() argument [all …]
|
/drivers/net/wwan/iosm/ |
D | iosm_ipc_protocol_ops.c | 59 struct ipc_pipe *pipe = args->pipe_open.pipe; in ipc_protocol_msg_prepipe_open() local 72 skbr = kcalloc(pipe->nr_of_entries, sizeof(*skbr), GFP_ATOMIC); in ipc_protocol_msg_prepipe_open() 78 pipe->nr_of_entries * sizeof(*tdr), in ipc_protocol_msg_prepipe_open() 79 &pipe->phy_tdr_start, GFP_ATOMIC); in ipc_protocol_msg_prepipe_open() 86 pipe->max_nr_of_queued_entries = pipe->nr_of_entries - 1; in ipc_protocol_msg_prepipe_open() 87 pipe->nr_of_queued_entries = 0; in ipc_protocol_msg_prepipe_open() 88 pipe->tdr_start = tdr; in ipc_protocol_msg_prepipe_open() 89 pipe->skbr_start = skbr; in ipc_protocol_msg_prepipe_open() 90 pipe->old_tail = 0; in ipc_protocol_msg_prepipe_open() 92 ipc_protocol->p_ap_shm->head_array[pipe->pipe_nr] = 0; in ipc_protocol_msg_prepipe_open() [all …]
|
/drivers/staging/media/atomisp/pci/ |
D | sh_css.c | 179 allocate_delay_frames(struct ia_css_pipe *pipe); 222 ia_css_pipe_check_format(struct ia_css_pipe *pipe, 227 check_pipe_resolutions(const struct ia_css_pipe *pipe); 230 ia_css_pipe_load_extension(struct ia_css_pipe *pipe, 234 ia_css_pipe_unload_extension(struct ia_css_pipe *pipe, 246 need_capture_pp(const struct ia_css_pipe *pipe); 249 need_yuv_scaler_stage(const struct ia_css_pipe *pipe); 264 static bool need_capt_ldc(const struct ia_css_pipe *pipe); 267 sh_css_pipe_load_binaries(struct ia_css_pipe *pipe); 271 struct ia_css_pipe *pipe, [all …]
|
D | sh_css_mipi.c | 39 static bool ia_css_mipi_is_source_port_valid(struct ia_css_pipe *pipe, in ia_css_mipi_is_source_port_valid() argument 46 switch (pipe->stream->config.mode) { in ia_css_mipi_is_source_port_valid() 48 port = (unsigned int)pipe->stream->config.source.port.port; in ia_css_mipi_is_source_port_valid() 52 port = (unsigned int)pipe->stream->config.source.tpg.id; in ia_css_mipi_is_source_port_valid() 56 port = (unsigned int)pipe->stream->config.source.prbs.id; in ia_css_mipi_is_source_port_valid() 373 static bool buffers_needed(struct ia_css_pipe *pipe) in buffers_needed() argument 376 if (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR) in buffers_needed() 382 if (pipe->stream->config.mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR || in buffers_needed() 383 pipe->stream->config.mode == IA_CSS_INPUT_MODE_TPG || in buffers_needed() 384 pipe->stream->config.mode == IA_CSS_INPUT_MODE_PRBS) in buffers_needed() [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_fifo_underrun.c | 59 enum pipe pipe; in ivb_can_enable_err_int() local 63 for_each_pipe(dev_priv, pipe) { in ivb_can_enable_err_int() 64 crtc = intel_get_crtc_for_pipe(dev_priv, pipe); in ivb_can_enable_err_int() 76 enum pipe pipe; in cpt_can_enable_serr_int() local 81 for_each_pipe(dev_priv, pipe) { in cpt_can_enable_serr_int() 82 crtc = intel_get_crtc_for_pipe(dev_priv, pipe); in cpt_can_enable_serr_int() 94 i915_reg_t reg = PIPESTAT(crtc->pipe); in i9xx_check_fifo_underruns() 102 enable_mask = i915_pipestat_enable_mask(dev_priv, crtc->pipe); in i9xx_check_fifo_underruns() 106 trace_intel_cpu_fifo_underrun(dev_priv, crtc->pipe); in i9xx_check_fifo_underruns() 107 drm_err(&dev_priv->drm, "pipe %c underrun\n", pipe_name(crtc->pipe)); in i9xx_check_fifo_underruns() [all …]
|
D | intel_dpio_phy.c | 657 enum pipe pipe = crtc->pipe; in chv_set_phy_signal_level() local 664 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW10(ch)); in chv_set_phy_signal_level() 668 vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW10(ch), val); in chv_set_phy_signal_level() 671 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW10(ch)); in chv_set_phy_signal_level() 675 vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW10(ch), val); in chv_set_phy_signal_level() 678 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW9(ch)); in chv_set_phy_signal_level() 681 vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW9(ch), val); in chv_set_phy_signal_level() 684 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW9(ch)); in chv_set_phy_signal_level() 687 vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW9(ch), val); in chv_set_phy_signal_level() 692 val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW4(ch, i)); in chv_set_phy_signal_level() [all …]
|
D | intel_color.c | 159 enum pipe pipe = crtc->pipe; in ilk_update_pipe_csc() local 161 intel_de_write(dev_priv, PIPE_CSC_PREOFF_HI(pipe), preoff[0]); in ilk_update_pipe_csc() 162 intel_de_write(dev_priv, PIPE_CSC_PREOFF_ME(pipe), preoff[1]); in ilk_update_pipe_csc() 163 intel_de_write(dev_priv, PIPE_CSC_PREOFF_LO(pipe), preoff[2]); in ilk_update_pipe_csc() 165 intel_de_write(dev_priv, PIPE_CSC_COEFF_RY_GY(pipe), in ilk_update_pipe_csc() 167 intel_de_write(dev_priv, PIPE_CSC_COEFF_BY(pipe), coeff[2] << 16); in ilk_update_pipe_csc() 169 intel_de_write(dev_priv, PIPE_CSC_COEFF_RU_GU(pipe), in ilk_update_pipe_csc() 171 intel_de_write(dev_priv, PIPE_CSC_COEFF_BU(pipe), coeff[5] << 16); in ilk_update_pipe_csc() 173 intel_de_write(dev_priv, PIPE_CSC_COEFF_RV_GV(pipe), in ilk_update_pipe_csc() 175 intel_de_write(dev_priv, PIPE_CSC_COEFF_BV(pipe), coeff[8] << 16); in ilk_update_pipe_csc() [all …]
|
/drivers/gpu/drm/lima/ |
D | lima_sched.c | 21 struct lima_sched_pipe *pipe; member 63 return f->pipe->base.name; in lima_fence_get_timeline_name() 87 static struct lima_fence *lima_fence_create(struct lima_sched_pipe *pipe) in lima_fence_create() argument 95 fence->pipe = pipe; in lima_fence_create() 96 dma_fence_init(&fence->base, &lima_fence_ops, &pipe->fence_lock, in lima_fence_create() 97 pipe->fence_context, ++pipe->fence_seqno); in lima_fence_create() 162 int lima_sched_context_init(struct lima_sched_pipe *pipe, in lima_sched_context_init() argument 166 struct drm_gpu_scheduler *sched = &pipe->base; in lima_sched_context_init() 172 void lima_sched_context_fini(struct lima_sched_pipe *pipe, in lima_sched_context_fini() argument 224 struct lima_sched_pipe *pipe = to_lima_pipe(job->sched); in lima_sched_run_job() local [all …]
|
D | lima_pp.c | 24 struct lima_sched_pipe *pipe = dev->pipe + lima_pipe_pp; in lima_pp_handle_irq() local 32 pipe->error = true; in lima_pp_handle_irq() 45 struct lima_sched_pipe *pipe = dev->pipe + lima_pipe_pp; in lima_pp_irq_handler() local 54 if (atomic_dec_and_test(&pipe->task)) in lima_pp_irq_handler() 55 lima_sched_pipe_task_done(pipe); in lima_pp_irq_handler() 66 struct lima_sched_pipe *pipe = dev->pipe + lima_pipe_pp; in lima_pp_bcast_irq_handler() local 70 if (!pipe->current_task) in lima_pp_bcast_irq_handler() 73 frame = pipe->current_task->frame; in lima_pp_bcast_irq_handler() 76 struct lima_ip *ip = pipe->processor[i]; in lima_pp_bcast_irq_handler() 79 if (pipe->done & (1 << i)) in lima_pp_bcast_irq_handler() [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | ce.c | 263 static int ath11k_ce_rx_buf_enqueue_pipe(struct ath11k_ce_pipe *pipe, in ath11k_ce_rx_buf_enqueue_pipe() argument 266 struct ath11k_base *ab = pipe->ab; in ath11k_ce_rx_buf_enqueue_pipe() 267 struct ath11k_ce_ring *ring = pipe->dest_ring; in ath11k_ce_rx_buf_enqueue_pipe() 301 pipe->rx_buf_needed--; in ath11k_ce_rx_buf_enqueue_pipe() 312 static int ath11k_ce_rx_post_pipe(struct ath11k_ce_pipe *pipe) in ath11k_ce_rx_post_pipe() argument 314 struct ath11k_base *ab = pipe->ab; in ath11k_ce_rx_post_pipe() 319 if (!(pipe->dest_ring || pipe->status_ring)) in ath11k_ce_rx_post_pipe() 323 while (pipe->rx_buf_needed) { in ath11k_ce_rx_post_pipe() 324 skb = dev_alloc_skb(pipe->buf_sz); in ath11k_ce_rx_post_pipe() 344 ret = ath11k_ce_rx_buf_enqueue_pipe(pipe, skb, paddr); in ath11k_ce_rx_post_pipe() [all …]
|
/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 218 static int goldfish_pipe_cmd_locked(struct goldfish_pipe *pipe, in goldfish_pipe_cmd_locked() argument 221 pipe->command_buffer->cmd = cmd; in goldfish_pipe_cmd_locked() 223 pipe->command_buffer->status = PIPE_ERROR_INVAL; in goldfish_pipe_cmd_locked() 224 writel(pipe->id, pipe->dev->base + PIPE_REG_CMD); in goldfish_pipe_cmd_locked() 225 return pipe->command_buffer->status; in goldfish_pipe_cmd_locked() 228 static int goldfish_pipe_cmd(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) in goldfish_pipe_cmd() argument 232 if (mutex_lock_interruptible(&pipe->lock)) in goldfish_pipe_cmd() 234 status = goldfish_pipe_cmd_locked(pipe, cmd); in goldfish_pipe_cmd() 235 mutex_unlock(&pipe->lock); in goldfish_pipe_cmd() 325 static int transfer_max_buffers(struct goldfish_pipe *pipe, in transfer_max_buffers() argument [all …]
|
/drivers/staging/octeon-usb/ |
D | octeon-hcd.c | 469 if (usb_pipeisoc(urb->pipe)) in octeon_free_temp_buffer() 555 struct cvmx_usb_pipe *pipe) in cvmx_usb_pipe_needs_split() argument 557 return pipe->device_speed != CVMX_USB_SPEED_HIGH && in cvmx_usb_pipe_needs_split() 568 static inline int cvmx_usb_get_data_pid(struct cvmx_usb_pipe *pipe) in cvmx_usb_get_data_pid() argument 570 if (pipe->pid_toggle) in cvmx_usb_get_data_pid() 1099 struct cvmx_usb_pipe *pipe; in cvmx_usb_open_pipe() local 1101 pipe = kzalloc(sizeof(*pipe), GFP_ATOMIC); in cvmx_usb_open_pipe() 1102 if (!pipe) in cvmx_usb_open_pipe() 1107 pipe->flags |= CVMX_USB_PIPE_FLAGS_NEED_PING; in cvmx_usb_open_pipe() 1108 pipe->device_addr = device_addr; in cvmx_usb_open_pipe() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_reg.h | 228 #define _PIPE(pipe, a, b) _PICK_EVEN(pipe, a, b) argument 235 #define _MMIO_PIPE(pipe, a, b) _MMIO(_PIPE(pipe, a, b)) argument 244 #define _MMIO_PIPE3(pipe, a, b, c) _MMIO(_PICK(pipe, a, b, c)) argument 245 #define _MMIO_PORT3(pipe, a, b, c) _MMIO(_PICK(pipe, a, b, c)) argument 254 #define _MMIO_PIPE2(pipe, reg) _MMIO(INTEL_INFO(dev_priv)->pipe_offsets[pipe] - \ argument 261 #define _CURSOR2(pipe, reg) _MMIO(INTEL_INFO(dev_priv)->cursor_offsets[(pipe)] - \ argument 1188 #define GEN7_PIPE_DE_LOAD_SL(pipe) _MMIO_PIPE(pipe, _GEN7_PIPEA_DE_LOAD_SL, _GEN7_PIPEB_DE_LOAD_SL) argument 1266 #define _DP_SSC(val, pipe) ((val) << (2 * (pipe))) argument 1267 #define DP_SSC_MASK(pipe) _DP_SSC(0x3, (pipe)) argument 1268 #define DP_SSC_PWR_ON(pipe) _DP_SSC(0x0, (pipe)) argument [all …]
|
/drivers/net/wireless/ath/ath10k/ |
D | usb.c | 36 ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe) in ath10k_usb_alloc_urb_from_pipe() argument 42 if (!pipe->ar_usb) in ath10k_usb_alloc_urb_from_pipe() 45 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_alloc_urb_from_pipe() 46 if (!list_empty(&pipe->urb_list_head)) { in ath10k_usb_alloc_urb_from_pipe() 47 urb_context = list_first_entry(&pipe->urb_list_head, in ath10k_usb_alloc_urb_from_pipe() 50 pipe->urb_cnt--; in ath10k_usb_alloc_urb_from_pipe() 52 spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_alloc_urb_from_pipe() 57 static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe, in ath10k_usb_free_urb_to_pipe() argument 63 if (!pipe->ar_usb) in ath10k_usb_free_urb_to_pipe() 66 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_free_urb_to_pipe() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | usb.c | 79 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 136 if (!pipe->ar_usb) in ath6kl_usb_alloc_urb_from_pipe() 139 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath6kl_usb_alloc_urb_from_pipe() 140 if (!list_empty(&pipe->urb_list_head)) { in ath6kl_usb_alloc_urb_from_pipe() 142 list_first_entry(&pipe->urb_list_head, in ath6kl_usb_alloc_urb_from_pipe() 145 pipe->urb_cnt--; in ath6kl_usb_alloc_urb_from_pipe() 147 spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); in ath6kl_usb_alloc_urb_from_pipe() 152 static void ath6kl_usb_free_urb_to_pipe(struct ath6kl_usb_pipe *pipe, in ath6kl_usb_free_urb_to_pipe() argument 158 if (!pipe->ar_usb) in ath6kl_usb_free_urb_to_pipe() [all …]
|
/drivers/rpmsg/ |
D | qcom_glink_smem.c | 51 struct glink_smem_pipe *pipe = to_smem_pipe(np); in glink_smem_rx_avail() local 57 if (!pipe->fifo) { in glink_smem_rx_avail() 58 fifo = qcom_smem_get(pipe->remote_pid, in glink_smem_rx_avail() 66 pipe->fifo = fifo; in glink_smem_rx_avail() 67 pipe->native.length = len; in glink_smem_rx_avail() 70 head = le32_to_cpu(*pipe->head); in glink_smem_rx_avail() 71 tail = le32_to_cpu(*pipe->tail); in glink_smem_rx_avail() 74 return pipe->native.length - tail + head; in glink_smem_rx_avail() 82 struct glink_smem_pipe *pipe = to_smem_pipe(np); in glink_smem_rx_peak() local 86 tail = le32_to_cpu(*pipe->tail); in glink_smem_rx_peak() [all …]
|