Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 87) sorted by relevance

1234

/linux-4.19.296/fs/
Dpipe.c74 static void pipe_lock_nested(struct pipe_inode_info *pipe, int subclass) in pipe_lock_nested() argument
76 if (pipe->files) in pipe_lock_nested()
77 mutex_lock_nested(&pipe->mutex, subclass); in pipe_lock_nested()
80 void pipe_lock(struct pipe_inode_info *pipe) in pipe_lock() argument
85 pipe_lock_nested(pipe, I_MUTEX_PARENT); in pipe_lock()
89 void pipe_unlock(struct pipe_inode_info *pipe) in pipe_unlock() argument
91 if (pipe->files) in pipe_unlock()
92 mutex_unlock(&pipe->mutex); in pipe_unlock()
96 static inline void __pipe_lock(struct pipe_inode_info *pipe) in __pipe_lock() argument
98 mutex_lock_nested(&pipe->mutex, I_MUTEX_PARENT); in __pipe_lock()
[all …]
Dsplice.c46 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 …]
Dcoredump.c489 struct pipe_inode_info *pipe = file->private_data; in wait_for_dump_helpers() local
491 pipe_lock(pipe); in wait_for_dump_helpers()
492 pipe->readers++; in wait_for_dump_helpers()
493 pipe->writers--; in wait_for_dump_helpers()
494 wake_up_interruptible_sync(&pipe->wait); in wait_for_dump_helpers()
495 kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); in wait_for_dump_helpers()
496 pipe_unlock(pipe); in wait_for_dump_helpers()
502 wait_event_interruptible(pipe->wait, pipe->readers == 1); in wait_for_dump_helpers()
504 pipe_lock(pipe); in wait_for_dump_helpers()
505 pipe->readers--; in wait_for_dump_helpers()
[all …]
/linux-4.19.296/include/drm/
Ddrm_simple_kms_helper.h66 void (*enable)(struct drm_simple_display_pipe *pipe,
76 void (*disable)(struct drm_simple_display_pipe *pipe);
95 int (*check)(struct drm_simple_display_pipe *pipe,
110 void (*update)(struct drm_simple_display_pipe *pipe,
123 int (*prepare_fb)(struct drm_simple_display_pipe *pipe,
133 void (*cleanup_fb)(struct drm_simple_display_pipe *pipe,
143 int (*enable_vblank)(struct drm_simple_display_pipe *pipe);
152 void (*disable_vblank)(struct drm_simple_display_pipe *pipe);
175 int drm_simple_display_pipe_attach_bridge(struct drm_simple_display_pipe *pipe,
179 struct drm_simple_display_pipe *pipe,
Ddrm_vblank.h49 unsigned int pipe; member
164 unsigned int pipe; member
209 bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe);
213 void drm_wait_one_vblank(struct drm_device *dev, unsigned int pipe);
219 void drm_vblank_restore(struct drm_device *dev, unsigned int pipe);
223 unsigned int pipe, int *max_error,
Ddrm_audio_component.h43 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate);
56 int (*get_eld)(struct device *, int port, int pipe, bool *enabled,
76 void (*pin_eld_notify)(void *audio_ptr, int port, int pipe);
Ddrm_drv.h200 u32 (*get_vblank_counter) (struct drm_device *dev, unsigned int pipe);
216 int (*enable_vblank) (struct drm_device *dev, unsigned int pipe);
227 void (*disable_vblank) (struct drm_device *dev, unsigned int pipe);
279 bool (*get_scanout_position) (struct drm_device *dev, unsigned int pipe,
327 bool (*get_vblank_timestamp) (struct drm_device *dev, unsigned int pipe,
/linux-4.19.296/lib/
Diov_iter.c322 struct pipe_inode_info *pipe = i->pipe; in sanity() local
324 int next = pipe->curbuf + pipe->nrbufs; in sanity()
327 if (unlikely(!pipe->nrbufs)) in sanity()
329 if (unlikely(idx != ((next - 1) & (pipe->buffers - 1)))) in sanity()
332 p = &pipe->bufs[idx]; in sanity()
336 if (idx != (next & (pipe->buffers - 1))) in sanity()
343 pipe->curbuf, pipe->nrbufs, pipe->buffers); in sanity()
344 for (idx = 0; idx < pipe->buffers; idx++) in sanity()
346 pipe->bufs[idx].ops, in sanity()
347 pipe->bufs[idx].page, in sanity()
[all …]
/linux-4.19.296/include/linux/
Dpipe_fs_i.h121 static inline __must_check bool pipe_buf_get(struct pipe_inode_info *pipe, in pipe_buf_get() argument
124 return buf->ops->get(pipe, buf); in pipe_buf_get()
132 static inline void pipe_buf_release(struct pipe_inode_info *pipe, in pipe_buf_release() argument
138 ops->release(pipe, buf); in pipe_buf_release()
146 static inline int pipe_buf_confirm(struct pipe_inode_info *pipe, in pipe_buf_confirm() argument
149 return buf->ops->confirm(pipe, buf); in pipe_buf_confirm()
157 static inline int pipe_buf_steal(struct pipe_inode_info *pipe, in pipe_buf_steal() argument
160 return buf->ops->steal(pipe, buf); in pipe_buf_steal()
177 void pipe_wait(struct pipe_inode_info *pipe);
Dusb.h1565 unsigned int pipe; /* (in) pipe information */ member
1607 unsigned int pipe, in usb_fill_control_urb() argument
1615 urb->pipe = pipe; in usb_fill_control_urb()
1638 unsigned int pipe, in usb_fill_bulk_urb() argument
1645 urb->pipe = pipe; in usb_fill_bulk_urb()
1679 unsigned int pipe, in usb_fill_int_urb() argument
1687 urb->pipe = pipe; in usb_fill_int_urb()
1783 extern int usb_control_msg(struct usb_device *dev, unsigned int pipe,
1786 extern int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe,
1788 extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
[all …]
/linux-4.19.296/drivers/bluetooth/
Dath3k.c223 int err, pipe, size, sent = 0; in ath3k_load_firmware() local
228 pipe = usb_sndctrlpipe(udev, 0); in ath3k_load_firmware()
237 err = usb_control_msg(udev, pipe, USB_REQ_DFU_DNLOAD, USB_TYPE_VENDOR, in ath3k_load_firmware()
247 pipe = usb_sndbulkpipe(udev, 0x02); in ath3k_load_firmware()
256 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware()
275 int ret, pipe = 0; in ath3k_get_state() local
282 pipe = usb_rcvctrlpipe(udev, 0); in ath3k_get_state()
283 ret = usb_control_msg(udev, pipe, ATH3K_GETSTATE, in ath3k_get_state()
296 int ret, pipe = 0; in ath3k_get_version() local
304 pipe = usb_rcvctrlpipe(udev, 0); in ath3k_get_version()
[all …]
Dbpa10x.c112 bool idx = usb_pipebulk(urb->pipe); in bpa10x_rx_complete()
140 unsigned int pipe; in bpa10x_submit_intr_urb() local
155 pipe = usb_rcvintpipe(data->udev, 0x81); in bpa10x_submit_intr_urb()
157 usb_fill_int_urb(urb, data->udev, pipe, buf, size, in bpa10x_submit_intr_urb()
180 unsigned int pipe; in bpa10x_submit_bulk_urb() local
195 pipe = usb_rcvbulkpipe(data->udev, 0x82); in bpa10x_submit_bulk_urb()
197 usb_fill_bulk_urb(urb, data->udev, pipe, in bpa10x_submit_bulk_urb()
285 unsigned int pipe; in bpa10x_send_frame() local
313 pipe = usb_sndctrlpipe(data->udev, 0x00); in bpa10x_send_frame()
315 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()
538 int err, pipe, len, size, sent = 0; in bfusb_load_firmware() local
550 pipe = usb_sndctrlpipe(data->udev, 0); in bfusb_load_firmware()
552 if (usb_control_msg(data->udev, pipe, USB_REQ_SET_CONFIGURATION, in bfusb_load_firmware()
561 pipe = usb_sndbulkpipe(data->udev, data->bulk_out_ep); in bfusb_load_firmware()
[all …]
/linux-4.19.296/include/media/drv-intf/
Dexynos-fimc.h143 struct exynos_media_pipeline *pipe; member
158 ((!(ent) || !(ent)->pipe) ? -ENOENT : \
159 (((ent)->pipe->ops && (ent)->pipe->ops->op) ? \
160 (ent)->pipe->ops->op(((ent)->pipe), ##args) : -ENOIOCTLCMD)) \
/linux-4.19.296/include/drm/tinydrm/
Dtinydrm.h29 struct drm_simple_display_pipe pipe; member
51 pipe_to_tinydrm(struct drm_simple_display_pipe *pipe) in pipe_to_tinydrm() argument
53 return container_of(pipe, struct tinydrm_device, pipe); in pipe_to_tinydrm()
111 void tinydrm_display_pipe_update(struct drm_simple_display_pipe *pipe,
/linux-4.19.296/fs/autofs/
Dinode.c91 if (sbi->pipe) in autofs_show_options()
92 seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); in autofs_show_options()
208 struct file *pipe; in autofs_fill_super() local
224 sbi->pipe = NULL; in autofs_fill_super()
262 pipe = NULL; in autofs_fill_super()
309 pipe = fget(pipefd); in autofs_fill_super()
311 if (!pipe) { in autofs_fill_super()
315 ret = autofs_prepare_pipe(pipe); in autofs_fill_super()
318 sbi->pipe = pipe; in autofs_fill_super()
333 fput(pipe); in autofs_fill_super()
Dautofs_i.h107 struct file *pipe; member
205 static inline int autofs_prepare_pipe(struct file *pipe) in autofs_prepare_pipe() argument
207 if (!(pipe->f_mode & FMODE_CAN_WRITE)) in autofs_prepare_pipe()
209 if (!S_ISFIFO(file_inode(pipe)->i_mode)) in autofs_prepare_pipe()
212 pipe->f_flags |= O_DIRECT; in autofs_prepare_pipe()
/linux-4.19.296/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.19.296/include/uapi/drm/
Detnaviv_drm.h80 __u32 pipe; /* in */ member
188 __u32 pipe; /* in */ member
212 __u32 pipe; /* in */ member
229 __u32 pipe; /* in */ member
241 __u32 pipe; /* in */ member
249 __u32 pipe; /* in */ member
/linux-4.19.296/drivers/media/
Dmedia-entity.c417 struct media_pipeline *pipe) in __media_pipeline_start() argument
420 struct media_graph *graph = &pipe->graph; in __media_pipeline_start()
425 if (!pipe->streaming_count++) { in __media_pipeline_start()
426 ret = media_graph_walk_init(&pipe->graph, mdev); in __media_pipeline_start()
431 media_graph_walk_start(&pipe->graph, entity); in __media_pipeline_start()
439 if (WARN_ON(entity->pipe && entity->pipe != pipe)) { in __media_pipeline_start()
444 entity->pipe = pipe; in __media_pipeline_start()
519 entity_err->pipe = NULL; in __media_pipeline_start()
531 if (!--pipe->streaming_count) in __media_pipeline_start()
539 struct media_pipeline *pipe) in media_pipeline_start() argument
[all …]
/linux-4.19.296/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
262 void nfc_hci_cmd_received(struct nfc_hci_dev *hdev, u8 pipe, u8 cmd,
264 void nfc_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, u8 event,
270 u8 pipe);
/linux-4.19.296/drivers/media/usb/gspca/
Dstv0680.c50 unsigned int pipe = 0; in stv_sndctrl() local
55 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
59 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
63 pipe = usb_rcvctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
67 pipe = usb_sndctrlpipe(gspca_dev->dev, 0); in stv_sndctrl()
71 ret = usb_control_msg(gspca_dev->dev, pipe, in stv_sndctrl()
/linux-4.19.296/fs/nfs/
Dnfs4idmap.c417 struct rpc_pipe *pipe = idmap->idmap_pipe; in nfs_idmap_pipe_destroy() local
419 if (pipe->dentry) { in nfs_idmap_pipe_destroy()
420 rpc_unlink(pipe->dentry); in nfs_idmap_pipe_destroy()
421 pipe->dentry = NULL; in nfs_idmap_pipe_destroy()
429 struct rpc_pipe *pipe = idmap->idmap_pipe; in nfs_idmap_pipe_create() local
432 dentry = rpc_mkpipe_dentry(dir, "idmap", idmap, pipe); in nfs_idmap_pipe_create()
435 pipe->dentry = dentry; in nfs_idmap_pipe_create()
448 struct rpc_pipe *pipe; in nfs_idmap_new() local
459 pipe = rpc_mkpipe_data(&idmap_upcall_ops, 0); in nfs_idmap_new()
460 if (IS_ERR(pipe)) { in nfs_idmap_new()
[all …]
/linux-4.19.296/fs/fuse/
Ddev.c710 struct pipe_inode_info *pipe; member
763 err = pipe_buf_confirm(cs->pipe, buf); in fuse_copy_fill()
775 if (cs->nr_segs == cs->pipe->buffers) in fuse_copy_fill()
863 err = pipe_buf_confirm(cs->pipe, buf); in fuse_try_move_page()
876 if (pipe_buf_steal(cs->pipe, buf) != 0) in fuse_try_move_page()
917 pipe_buf_release(cs->pipe, buf); in fuse_try_move_page()
963 if (cs->nr_segs == cs->pipe->buffers) in fuse_ref_page()
1413 struct pipe_inode_info *pipe, in fuse_dev_splice_read() argument
1425 bufs = kvmalloc_array(pipe->buffers, sizeof(struct pipe_buffer), in fuse_dev_splice_read()
1432 cs.pipe = pipe; in fuse_dev_splice_read()
[all …]
/linux-4.19.296/drivers/hid/usbhid/
Dusbmouse.c125 int pipe, maxp; in usb_mouse_probe() local
137 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); in usb_mouse_probe()
138 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe()
192 usb_fill_int_urb(mouse->irq, dev, pipe, mouse->data, in usb_mouse_probe()

1234