Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 24 of 24) sorted by relevance

/samples/kfifo/
Drecord-example.c71 char buf[100]; in testfunc() local
74 struct { unsigned char buf[6]; } hello = { "hello" }; in testfunc() member
120 static ssize_t fifo_write(struct file *file, const char __user *buf, in fifo_write()
138 static ssize_t fifo_read(struct file *file, char __user *buf, in fifo_read()
Dinttype-example.c54 int buf[6]; in testfunc() local
106 static ssize_t fifo_write(struct file *file, const char __user *buf, in fifo_write()
124 static ssize_t fifo_read(struct file *file, char __user *buf, in fifo_read()
Dbytestream-example.c54 unsigned char buf[6]; in testfunc() local
113 static ssize_t fifo_write(struct file *file, const char __user *buf, in fifo_write()
131 static ssize_t fifo_read(struct file *file, char __user *buf, in fifo_read()
/samples/kobject/
Dkobject-example.c29 char *buf) in foo_show()
35 const char *buf, size_t count) in foo_store()
55 char *buf) in b_show()
67 const char *buf, size_t count) in b_store()
Dkset-example.c54 char *buf) in foo_attr_show()
74 const char *buf, size_t len) in foo_attr_store()
113 char *buf) in foo_show()
119 const char *buf, size_t count) in foo_store()
139 char *buf) in b_show()
151 const char *buf, size_t count) in b_store()
/samples/bpf/
Dtask_fd_query_user.c49 char buf[256]; in bpf_find_probe_type() local
71 char buf[256]; in bpf_get_retprobe_bit() local
97 char buf[256]; in test_debug_fs_kprobe() local
125 char *buf, __u32 *buf_len, __u32 *prog_id, __u32 *fd_type, in test_nondebug_fs_kuprobe_common()
177 char *buf, __u32 buf_len) in test_nondebug_fs_probe()
229 char buf[256], event_alias[sizeof("test_1234567890")]; in test_debug_fs_uprobe() local
313 char filename[256], buf[256]; in main() local
Dtest_overhead_user.c42 char buf[] = "test\n"; in test_task_rename() local
67 char buf[] = "test\n"; in test_fib_table_lookup() local
Dtracex6.bpf.c59 struct bpf_perf_event_value *val, buf; in BPF_KPROBE() local
Dxdp_router_ipv4_user.c35 static char buf[8192]; variable
264 char buf[8192]; in get_route_table() member
400 char buf[8192]; in get_arp_table() member
Dcookie_uid_helper_example.c224 char buf; in udp_client() local
Dhbm.c95 static char buf[4097]; in read_trace_pipe2() local
/samples/seccomp/
Dbpf-fancy.c34 char buf[256]; in main() local
Duser-trap.c37 char buf[CMSG_SPACE(sizeof(int))] = {0}, c = 'c'; in send_fd() local
68 char buf[CMSG_SPACE(sizeof(int))] = {0}, c = 'c'; in recv_fd() local
Dbpf-direct.c66 char *buf; in emulator() local
166 char buf[4096]; in main() local
/samples/connector/
Ducon.c51 char buf[128]; in netlink_send() local
100 char buf[1024]; in main() local
/samples/vfio-mdev/
Dmdpy.c149 char *buf, u32 count) in handle_pci_cfg_write()
173 static ssize_t mdev_access(struct mdev_state *mdev_state, char *buf, in mdev_access()
301 static ssize_t mdpy_read(struct vfio_device *vdev, char __user *buf, in mdpy_read()
362 static ssize_t mdpy_write(struct vfio_device *vdev, const char __user *buf, in mdpy_write()
629 char *buf) in resolution_show()
654 static ssize_t mdpy_show_description(struct mdev_type *mtype, char *buf) in mdpy_show_description()
Dmbochs.c167 struct dma_buf *buf; member
309 char *buf, u32 count) in handle_pci_cfg_write()
337 char *buf, u32 count) in handle_mmio_write()
367 char *buf, u32 count) in handle_mmio_read()
404 char *buf, u32 count, bool is_write) in handle_edid_regs()
431 char *buf, u32 count, bool is_write) in handle_edid_blob()
441 static ssize_t mdev_access(struct mdev_state *mdev_state, char *buf, in mdev_access()
610 static ssize_t mbochs_read(struct vfio_device *vdev, char __user *buf, in mbochs_read()
671 static ssize_t mbochs_write(struct vfio_device *vdev, const char __user *buf, in mbochs_write()
834 static int mbochs_mmap_dmabuf(struct dma_buf *buf, struct vm_area_struct *vma) in mbochs_mmap_dmabuf()
[all …]
Dmtty.c202 static void dump_buffer(u8 *buf, uint32_t count) in dump_buffer()
311 u8 *buf, u32 count) in handle_pci_cfg_write()
365 u16 offset, u8 *buf, u32 count) in handle_bar_write()
533 u16 offset, u8 *buf, u32 count) in handle_bar_read()
707 static ssize_t mdev_access(struct mdev_state *mdev_state, u8 *buf, size_t count, in mdev_access()
884 static ssize_t mtty_save_read(struct file *filp, char __user *buf, in mtty_save_read()
1020 static ssize_t mtty_resume_write(struct file *filp, const char __user *buf, in mtty_resume_write()
1417 static ssize_t mtty_read(struct vfio_device *vdev, char __user *buf, in mtty_read()
1478 static ssize_t mtty_write(struct vfio_device *vdev, const char __user *buf, in mtty_write()
1906 char *buf) in sample_mdev_dev_show()
/samples/hidraw/
Dhid-example.c47 char buf[256]; in main() local
/samples/pidfd/
Dpidfd-metadata.c87 char buf[4096] = { 0 }; in main() local
/samples/uhid/
Duhid-example.c303 char buf[128]; in keyboard() local
/samples/vfs/
Dtest-fsmount.c22 char buf[4096]; in check_messages() local
/samples/crypto/
Dfips140_lab_util.c115 static void full_write(int fd, const void *buf, size_t count) in full_write()
201 static char buf[256]; in fips140_module_version() local
255 uint8_t buf[AF_ALG_MAX_RNG_REQUEST_SIZE]; in dump_from_jent_fd() local
/samples/v4l/
Dv4l2-pci-skeleton.c207 struct skel_buffer *buf = to_skel_buffer(vbuf); in buffer_queue() local
221 struct skel_buffer *buf, *node; in return_all_buffers() local