Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 26) sorted by relevance

12

/samples/bpf/
A Dxdp_sample.bpf.h69 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument
71 switch (size) { in __read_once_size()
78 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size()
83 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument
85 switch (size) { in __write_once_size()
92 __builtin_memcpy((void *)p, (const void *)res, size); in __write_once_size()
A Dxdp_sample_user.h52 static inline char *safe_strncpy(char *dst, const char *src, size_t size) in safe_strncpy() argument
54 if (!size) in safe_strncpy()
56 strncpy(dst, src, size - 1); in safe_strncpy()
57 dst[size - 1] = '\0'; in safe_strncpy()
A Dtrace_output_user.c22 static void print_bpf_output(void *ctx, int cpu, void *data, __u32 size) in print_bpf_output() argument
31 e->pid, e->cookie, size); in print_bpf_output()
A Dtest_lru_dist.c202 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument
210 sizeof(unsigned long long), size, &opts); in create_map()
A Dxdp_sample_user.c1230 size_t size = sample_map_count[i] * sizeof(struct datarec); in sample_setup_maps_mappings() local
1232 sample_mmap[i] = mmap(NULL, size, PROT_READ | PROT_WRITE, in sample_setup_maps_mappings()
1365 size_t size; in sample_exit() local
1368 size = sample_map_count[i] * sizeof(**sample_mmap); in sample_exit()
1369 munmap(sample_mmap[i], size); in sample_exit()
/samples/hid/
A Dhid_surface_dial.bpf.c50 const size_t size = sizeof(haptic_data); in set_haptic() local
54 if (size > sizeof(haptic_data)) in set_haptic()
63 ret = hid_bpf_hw_request(ctx, haptic_data, size, HID_FEATURE_REPORT, HID_REQ_GET_REPORT); in set_haptic()
92 ret = hid_bpf_hw_request(ctx, haptic_data, size, HID_FEATURE_REPORT, HID_REQ_SET_REPORT); in set_haptic()
A Dhid_mouse.bpf.c16 bpf_printk("event: size: %d", hctx->size); in hid_y_event()
/samples/damon/
A DKconfig6 bool "DAMON sample module for working set size estimation"
9 This builds DAMON sample module for working set size estimation.
12 space of the process, estimate working set size of the process, and
13 repeatedly prints the size on the kernel log.
/samples/connector/
A Dcn_test.c44 int size, size0;
51 size = NLMSG_SPACE(size0);
53 skb = alloc_skb(size, GFP_ATOMIC);
55 pr_err("failed to allocate new skb with size=%u\n", size);
59 nlh = nlmsg_put(skb, 0, 0x123, NLMSG_DONE, size - sizeof(*nlh), 0);
A Ducon.c49 unsigned int size; in netlink_send() local
54 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send()
60 nlh->nlmsg_len = size; in netlink_send()
70 err = send(s, nlh, size, 0); in netlink_send()
/samples/vfs/
A Dmountinfo.c41 .size = MNT_ID_REQ_SIZE_VER0, in statmount()
47 req.size = MNT_ID_REQ_SIZE_VER1; in statmount()
58 .size = MNT_ID_REQ_SIZE_VER0, in listmount()
64 req.size = MNT_ID_REQ_SIZE_VER1; in listmount()
213 struct mnt_ns_info mni = { .size = MNT_NS_INFO_SIZE_VER0 }; in main()
A Dsamples-vfs.h19 __u32 size; /* Total size, including strings */ member
54 __u32 size; member
75 __u32 size; member
A Dtest-list-all-mounts.c19 .size = MNT_ID_REQ_SIZE_VER1, in __statmount()
62 .size = MNT_ID_REQ_SIZE_VER1, in sys_listmount()
/samples/rust/
A Drust_misc_device.rs181 let size = _IOC_SIZE(cmd); in ioctl()
184 RUST_MISC_DEV_GET_VALUE => me.get_value(UserSlice::new(arg, size).writer())?, in ioctl()
185 RUST_MISC_DEV_SET_VALUE => me.set_value(UserSlice::new(arg, size).reader())?, in ioctl()
/samples/hidraw/
A Dhid-example.c76 rpt_desc.size = desc_size; in main()
82 for (i = 0; i < rpt_desc.size; i++) in main()
/samples/user_events/
A Dexample.c25 reg.size = sizeof(reg); in event_reg()
/samples/vfio-mdev/
A Dmbochs.c159 u64 size; member
280 mode->size = (u64)mode->stride * mode->height; in mbochs_check_framebuffer()
878 0, dmabuf->mode.size, GFP_KERNEL) < 0) in mbochs_map_dmabuf()
1021 exp_info.size = dmabuf->mode.size; in mbochs_dmabuf_export()
1047 region_info->size = MBOCHS_CONFIG_SPACE_SIZE; in mbochs_get_region_info()
1053 region_info->size = mdev_state->memsize; in mbochs_get_region_info()
1060 region_info->size = MBOCHS_MMIO_BAR_SIZE; in mbochs_get_region_info()
1067 ext->base.size = MBOCHS_EDID_SIZE; in mbochs_get_region_info()
1079 region_info->size = 0; in mbochs_get_region_info()
1134 plane->size = 0; in mbochs_query_gfx_plane()
[all …]
A DREADME.rst67 Region 0: I/O ports at c150 [size=8]
68 Region 1: I/O ports at c158 [size=8]
A Dmtty.c83 u32 size; member
680 if (!mdev_state->region_info[index].size) in mdev_read_base()
1724 unsigned int size = 0; in mtty_get_region_info() local
1735 size = MTTY_CONFIG_SPACE_SIZE; in mtty_get_region_info()
1738 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info()
1742 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info()
1745 size = 0; in mtty_get_region_info()
1749 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info()
1753 region_info->size = size; in mtty_get_region_info()
A Dmdpy.c449 region_info->size = MDPY_CONFIG_SPACE_SIZE; in mdpy_get_region_info()
456 region_info->size = mdev_state->memsize; in mdpy_get_region_info()
462 region_info->size = 0; in mdpy_get_region_info()
502 plane->size = mdev_state->memsize; in mdpy_query_gfx_plane()
/samples/uhid/
A Duhid-example.c214 if (ev->u.output.size != 2) in handle_output()
284 ev.u.input.size = 5; in send_event()
/samples/v4l/
A Dv4l2-pci-skeleton.c188 unsigned long size = skel->format.sizeimage; in buffer_prepare() local
190 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
192 vb2_plane_size(vb, 0), size); in buffer_prepare()
196 vb2_set_plane_payload(vb, 0, size); in buffer_prepare()
/samples/acrn/
A Dvm-sample.c116 bytes = io_req->reqs.pio_request.size; in main()
/samples/landlock/
A Dsandboxer.c34 const size_t size, const __u32 flags) in landlock_create_ruleset() argument
36 return syscall(__NR_landlock_create_ruleset, attr, size, flags); in landlock_create_ruleset()
/samples/pktgen/
A DREADME.rst20 -s : ($PKT_SIZE) packet size

Completed in 37 milliseconds

12