/Linux-v4.19/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 static 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 …]
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | mdfld_dsi_output.h | 75 #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 …]
|
D | mdfld_dsi_dpi.c | 35 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 …]
|
D | psb_irq.c | 38 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 …]
|
/Linux-v4.19/fs/ |
D | pipe.c | 59 static void pipe_lock_nested(struct pipe_inode_info *pipe, int subclass) in pipe_lock_nested() argument 61 if (pipe->files) in pipe_lock_nested() 62 mutex_lock_nested(&pipe->mutex, subclass); in pipe_lock_nested() 65 void pipe_lock(struct pipe_inode_info *pipe) in pipe_lock() argument 70 pipe_lock_nested(pipe, I_MUTEX_PARENT); in pipe_lock() 74 void pipe_unlock(struct pipe_inode_info *pipe) in pipe_unlock() argument 76 if (pipe->files) in pipe_unlock() 77 mutex_unlock(&pipe->mutex); in pipe_unlock() 81 static inline void __pipe_lock(struct pipe_inode_info *pipe) in __pipe_lock() argument 83 mutex_lock_nested(&pipe->mutex, I_MUTEX_PARENT); in __pipe_lock() [all …]
|
D | splice.c | 46 static int page_cache_pipe_buf_steal(struct pipe_inode_info *pipe, in page_cache_pipe_buf_steal() argument 91 static void page_cache_pipe_buf_release(struct pipe_inode_info *pipe, in page_cache_pipe_buf_release() argument 102 static int page_cache_pipe_buf_confirm(struct pipe_inode_info *pipe, in page_cache_pipe_buf_confirm() argument 148 static int user_page_pipe_buf_steal(struct pipe_inode_info *pipe, in user_page_pipe_buf_steal() argument 155 return generic_pipe_buf_steal(pipe, buf); in user_page_pipe_buf_steal() 166 static void wakeup_pipe_readers(struct pipe_inode_info *pipe) in wakeup_pipe_readers() argument 169 if (waitqueue_active(&pipe->wait)) in wakeup_pipe_readers() 170 wake_up_interruptible(&pipe->wait); in wakeup_pipe_readers() 171 kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); in wakeup_pipe_readers() 185 ssize_t splice_to_pipe(struct pipe_inode_info *pipe, in splice_to_pipe() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_simple_kms_helper.c | 41 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_mode_valid() local 43 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_mode_valid() 44 if (!pipe->funcs || !pipe->funcs->mode_valid) in drm_simple_kms_crtc_mode_valid() 48 return pipe->funcs->mode_valid(crtc, mode); in drm_simple_kms_crtc_mode_valid() 68 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_enable() local 70 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_enable() 71 if (!pipe->funcs || !pipe->funcs->enable) in drm_simple_kms_crtc_enable() 74 plane = &pipe->plane; in drm_simple_kms_crtc_enable() 75 pipe->funcs->enable(pipe, crtc->state, plane->state); in drm_simple_kms_crtc_enable() 81 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_disable() local [all …]
|
D | drm_vblank.c | 80 drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe, 92 static void store_vblank(struct drm_device *dev, unsigned int pipe, in store_vblank() argument 96 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in store_vblank() 112 static u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) in drm_vblank_no_hw_counter() argument 118 static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe) in __get_vblank_counter() argument 121 struct drm_crtc *crtc = drm_crtc_from_index(dev, pipe); in __get_vblank_counter() 131 return dev->driver->get_vblank_counter(dev, pipe); in __get_vblank_counter() 133 return drm_vblank_no_hw_counter(dev, pipe); in __get_vblank_counter() 145 static void drm_reset_vblank_timestamp(struct drm_device *dev, unsigned int pipe) in drm_reset_vblank_timestamp() argument 159 cur_vblank = __get_vblank_counter(dev, pipe); in drm_reset_vblank_timestamp() [all …]
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_pipe.c | 182 void vsp1_pipeline_reset(struct vsp1_pipeline *pipe) in vsp1_pipeline_reset() argument 187 if (pipe->brx) { in vsp1_pipeline_reset() 188 struct vsp1_brx *brx = to_brx(&pipe->brx->subdev); in vsp1_pipeline_reset() 194 for (i = 0; i < ARRAY_SIZE(pipe->inputs); ++i) in vsp1_pipeline_reset() 195 pipe->inputs[i] = NULL; in vsp1_pipeline_reset() 197 pipe->output = NULL; in vsp1_pipeline_reset() 199 list_for_each_entry(entity, &pipe->entities, list_pipe) in vsp1_pipeline_reset() 200 entity->pipe = NULL; in vsp1_pipeline_reset() 202 INIT_LIST_HEAD(&pipe->entities); in vsp1_pipeline_reset() 203 pipe->state = VSP1_PIPELINE_STOPPED; in vsp1_pipeline_reset() [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() 62 struct vsp1_pipeline *pipe, in vsp1_du_insert_uif() argument 114 struct vsp1_pipeline *pipe, in vsp1_du_pipeline_setup_rpf() argument 188 ret = vsp1_du_insert_uif(vsp1, pipe, uif, &rpf->entity, RWPF_PAD_SOURCE, in vsp1_du_pipeline_setup_rpf() 189 pipe->brx, brx_input); in vsp1_du_pipeline_setup_rpf() 196 ret = v4l2_subdev_call(&pipe->brx->subdev, pad, set_fmt, NULL, in vsp1_du_pipeline_setup_rpf() 203 format.format.code, BRX_NAME(pipe->brx), format.pad); in vsp1_du_pipeline_setup_rpf() 209 ret = v4l2_subdev_call(&pipe->brx->subdev, pad, set_selection, NULL, in vsp1_du_pipeline_setup_rpf() 216 BRX_NAME(pipe->brx), sel.pad); in vsp1_du_pipeline_setup_rpf() [all …]
|
D | vsp1_video.c | 189 static void vsp1_video_calculate_partition(struct vsp1_pipeline *pipe, in vsp1_video_calculate_partition() argument 202 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_calculate_partition() 203 pipe->output->entity.config, in vsp1_video_calculate_partition() 207 if (pipe->partitions <= 1) { in vsp1_video_calculate_partition() 211 vsp1_pipeline_propagate_partition(pipe, partition, index, in vsp1_video_calculate_partition() 236 unsigned int partitions = pipe->partitions - 1; in vsp1_video_calculate_partition() 252 vsp1_pipeline_propagate_partition(pipe, partition, index, &window); in vsp1_video_calculate_partition() 255 static int vsp1_video_pipeline_setup_partitions(struct vsp1_pipeline *pipe) in vsp1_video_pipeline_setup_partitions() argument 257 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions() 267 format = vsp1_entity_get_pad_format(&pipe->output->entity, in vsp1_video_pipeline_setup_partitions() [all …]
|
/Linux-v4.19/sound/drivers/vx/ |
D | vx_pcm.c | 61 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-v4.19/drivers/gpu/drm/i915/ |
D | intel_fifo_underrun.c | 55 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 = intel_get_crtc_for_pipe(dev_priv, 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 = intel_get_crtc_for_pipe(dev_priv, pipe); in cpt_can_enable_serr_int() 90 i915_reg_t reg = PIPESTAT(crtc->pipe); in i9xx_check_fifo_underruns() 98 enable_mask = i915_pipestat_enable_mask(dev_priv, crtc->pipe); in i9xx_check_fifo_underruns() 102 trace_intel_cpu_fifo_underrun(dev_priv, crtc->pipe); in i9xx_check_fifo_underruns() 103 DRM_ERROR("pipe %c underrun\n", pipe_name(crtc->pipe)); in i9xx_check_fifo_underruns() [all …]
|
D | intel_color.c | 113 int pipe = intel_crtc->pipe; in ilk_load_ycbcr_conversion_matrix() local 116 I915_WRITE(PIPE_CSC_PREOFF_HI(pipe), 0); in ilk_load_ycbcr_conversion_matrix() 117 I915_WRITE(PIPE_CSC_PREOFF_ME(pipe), 0); in ilk_load_ycbcr_conversion_matrix() 118 I915_WRITE(PIPE_CSC_PREOFF_LO(pipe), 0); in ilk_load_ycbcr_conversion_matrix() 120 I915_WRITE(PIPE_CSC_COEFF_RU_GU(pipe), CSC_RGB_TO_YUV_RU_GU); in ilk_load_ycbcr_conversion_matrix() 121 I915_WRITE(PIPE_CSC_COEFF_BU(pipe), CSC_RGB_TO_YUV_BU); in ilk_load_ycbcr_conversion_matrix() 123 I915_WRITE(PIPE_CSC_COEFF_RY_GY(pipe), CSC_RGB_TO_YUV_RY_GY); in ilk_load_ycbcr_conversion_matrix() 124 I915_WRITE(PIPE_CSC_COEFF_BY(pipe), CSC_RGB_TO_YUV_BY); in ilk_load_ycbcr_conversion_matrix() 126 I915_WRITE(PIPE_CSC_COEFF_RV_GV(pipe), CSC_RGB_TO_YUV_RV_GV); in ilk_load_ycbcr_conversion_matrix() 127 I915_WRITE(PIPE_CSC_COEFF_BV(pipe), CSC_RGB_TO_YUV_BV); in ilk_load_ycbcr_conversion_matrix() [all …]
|
D | intel_dpio_phy.c | 645 enum pipe pipe = intel_crtc->pipe; in chv_set_phy_signal_level() local 652 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW10(ch)); in chv_set_phy_signal_level() 656 vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW10(ch), val); in chv_set_phy_signal_level() 659 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW10(ch)); in chv_set_phy_signal_level() 663 vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW10(ch), val); in chv_set_phy_signal_level() 666 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS01_DW9(ch)); in chv_set_phy_signal_level() 669 vlv_dpio_write(dev_priv, pipe, VLV_PCS01_DW9(ch), val); in chv_set_phy_signal_level() 672 val = vlv_dpio_read(dev_priv, pipe, VLV_PCS23_DW9(ch)); in chv_set_phy_signal_level() 675 vlv_dpio_write(dev_priv, pipe, VLV_PCS23_DW9(ch), val); in chv_set_phy_signal_level() 680 val = vlv_dpio_read(dev_priv, pipe, CHV_TX_DW4(ch, i)); in chv_set_phy_signal_level() [all …]
|
D | intel_sprite.c | 130 pipe_name(crtc->pipe)); in intel_pipe_update_start() 185 enum pipe pipe = crtc->pipe; in intel_pipe_update_end() local 215 pipe_name(pipe), crtc->debug.start_vbl_count, in intel_pipe_update_end() 225 pipe_name(pipe), in intel_pipe_update_end() 239 enum pipe pipe = plane->pipe; in skl_update_plane() local 265 I915_WRITE_FW(PLANE_COLOR_CTL(pipe, plane_id), in skl_update_plane() 269 I915_WRITE_FW(PLANE_KEYVAL(pipe, plane_id), key->min_value); in skl_update_plane() 270 I915_WRITE_FW(PLANE_KEYMAX(pipe, plane_id), key->max_value); in skl_update_plane() 271 I915_WRITE_FW(PLANE_KEYMSK(pipe, plane_id), key->channel_mask); in skl_update_plane() 274 I915_WRITE_FW(PLANE_OFFSET(pipe, plane_id), (y << 16) | x); in skl_update_plane() [all …]
|
/Linux-v4.19/net/nfc/hci/ |
D | command.c | 31 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 …]
|
/Linux-v4.19/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 272 static int goldfish_cmd_locked(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) in goldfish_cmd_locked() argument 274 pipe->command_buffer->cmd = cmd; in goldfish_cmd_locked() 276 pipe->command_buffer->status = PIPE_ERROR_INVAL; in goldfish_cmd_locked() 277 writel(pipe->id, pipe->dev->base + PIPE_REG_CMD); in goldfish_cmd_locked() 278 return pipe->command_buffer->status; in goldfish_cmd_locked() 281 static int goldfish_cmd(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) in goldfish_cmd() argument 285 if (mutex_lock_interruptible(&pipe->lock)) in goldfish_cmd() 287 status = goldfish_cmd_locked(pipe, cmd); in goldfish_cmd() 288 mutex_unlock(&pipe->lock); in goldfish_cmd() 384 static int transfer_max_buffers(struct goldfish_pipe *pipe, in transfer_max_buffers() argument [all …]
|
/Linux-v4.19/drivers/staging/octeon-usb/ |
D | octeon-hcd.c | 489 if (usb_pipeisoc(urb->pipe)) in octeon_free_temp_buffer() 576 struct cvmx_usb_pipe *pipe) in cvmx_usb_pipe_needs_split() argument 578 return pipe->device_speed != CVMX_USB_SPEED_HIGH && in cvmx_usb_pipe_needs_split() 589 static inline int cvmx_usb_get_data_pid(struct cvmx_usb_pipe *pipe) in cvmx_usb_get_data_pid() argument 591 if (pipe->pid_toggle) in cvmx_usb_get_data_pid() 1095 struct cvmx_usb_pipe *pipe; in cvmx_usb_open_pipe() local 1097 pipe = kzalloc(sizeof(*pipe), GFP_ATOMIC); in cvmx_usb_open_pipe() 1098 if (!pipe) in cvmx_usb_open_pipe() 1103 pipe->flags |= CVMX_USB_PIPE_FLAGS_NEED_PING; in cvmx_usb_open_pipe() 1104 pipe->device_addr = device_addr; in cvmx_usb_open_pipe() [all …]
|
/Linux-v4.19/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 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 …]
|
/Linux-v4.19/drivers/net/wireless/ath/ath10k/ |
D | usb.c | 47 ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe) in ath10k_usb_alloc_urb_from_pipe() argument 52 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_alloc_urb_from_pipe() 53 if (!list_empty(&pipe->urb_list_head)) { in ath10k_usb_alloc_urb_from_pipe() 54 urb_context = list_first_entry(&pipe->urb_list_head, in ath10k_usb_alloc_urb_from_pipe() 57 pipe->urb_cnt--; in ath10k_usb_alloc_urb_from_pipe() 59 spin_unlock_irqrestore(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_alloc_urb_from_pipe() 64 static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe, in ath10k_usb_free_urb_to_pipe() argument 69 spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); in ath10k_usb_free_urb_to_pipe() 71 pipe->urb_cnt++; in ath10k_usb_free_urb_to_pipe() 72 list_add(&urb_context->link, &pipe->urb_list_head); in ath10k_usb_free_urb_to_pipe() [all …]
|
/Linux-v4.19/net/sunrpc/ |
D | rpc_pipe.c | 84 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-v4.19/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 …]
|