/samples/bpf/ |
D | xdp_sample.bpf.h | 89 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument 91 switch (size) { in __read_once_size() 98 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size() 103 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument 105 switch (size) { in __write_once_size() 112 __builtin_memcpy((void *)p, (const void *)res, size); in __write_once_size()
|
D | xdp_sample_user.h | 52 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()
|
D | trace_output_user.c | 22 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()
|
D | xdp_sample_pkts_user.c | 74 static void print_bpf_output(void *ctx, int cpu, void *data, __u32 size) in print_bpf_output() argument 84 printf("BUG cookie %x sized %d\n", e->cookie, size); in print_bpf_output()
|
D | test_lru_dist.c | 208 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument 213 sizeof(unsigned long long), size, map_flags); in create_map()
|
D | xdpsock_user.c | 564 static void *memset32_htonl(void *dest, u32 val, u32 size) in memset32_htonl() argument 571 for (i = 0; i < (size & (~0x3)); i += 4) in memset32_htonl() 574 for (; i < size; i++) in memset32_htonl() 801 static struct xsk_umem_info *xsk_configure_umem(void *buffer, u64 size) in xsk_configure_umem() argument 826 ret = xsk_umem__create(&umem->umem, buffer, size, &umem->fq, &umem->cq, in xsk_configure_umem()
|
D | xdp_sample_user.c | 1231 size_t size = sample_map_count[i] * sizeof(struct datarec); in sample_setup_maps_mappings() local 1233 sample_mmap[i] = mmap(NULL, size, PROT_READ | PROT_WRITE, in sample_setup_maps_mappings() 1367 size_t size; in sample_exit() local 1370 size = sample_map_count[i] * sizeof(**sample_mmap); in sample_exit() 1371 munmap(sample_mmap[i], size); in sample_exit()
|
D | task_fd_query_user.c | 153 attr.size = sizeof(attr); in test_nondebug_fs_kuprobe_common()
|
/samples/connector/ |
D | cn_test.c | 44 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);
|
D | ucon.c | 49 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/hidraw/ |
D | hid-example.c | 76 rpt_desc.size = desc_size; in main() 82 for (i = 0; i < rpt_desc.size; i++) in main()
|
/samples/vfio-mdev/ |
D | mbochs.c | 148 u64 size; member 269 mode->size = (u64)mode->stride * mode->height; in mbochs_check_framebuffer() 278 if (mode->offset + mode->size > mdev_state->memsize) { in mbochs_check_framebuffer() 835 dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); in mbochs_print_dmabuf() 851 0, dmabuf->mode.size, GFP_KERNEL) < 0) in mbochs_map_dmabuf() 920 dmabuf->pagecount = DIV_ROUND_UP(mode->size, PAGE_SIZE); in mbochs_dmabuf_alloc() 994 exp_info.size = dmabuf->mode.size; in mbochs_dmabuf_export() 1020 region_info->size = MBOCHS_CONFIG_SPACE_SIZE; in mbochs_get_region_info() 1026 region_info->size = mdev_state->memsize; in mbochs_get_region_info() 1033 region_info->size = MBOCHS_MMIO_BAR_SIZE; in mbochs_get_region_info() [all …]
|
D | mtty.c | 82 u32 size; member 609 if (!mdev_state->region_info[index].size) in mdev_read_base() 1024 unsigned int size = 0; in mtty_get_region_info() local 1035 size = MTTY_CONFIG_SPACE_SIZE; in mtty_get_region_info() 1038 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info() 1042 size = MTTY_IO_BAR_SIZE; in mtty_get_region_info() 1045 size = 0; in mtty_get_region_info() 1049 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info() 1053 region_info->size = size; in mtty_get_region_info()
|
D | mdpy.c | 439 region_info->size = MDPY_CONFIG_SPACE_SIZE; in mdpy_get_region_info() 446 region_info->size = mdev_state->memsize; in mdpy_get_region_info() 452 region_info->size = 0; in mdpy_get_region_info() 492 plane->size = mdev_state->memsize; in mdpy_query_gfx_plane()
|
D | mdpy-fb.c | 170 info->apertures->ranges[0].size = info->fix.smem_len; in mdpy_fb_probe()
|
/samples/landlock/ |
D | sandboxer.c | 27 const size_t size, const __u32 flags) in landlock_create_ruleset() argument 29 return syscall(__NR_landlock_create_ruleset, attr, size, flags); in landlock_create_ruleset()
|
/samples/uhid/ |
D | uhid-example.c | 214 if (ev->u.output.size != 2) in handle_output() 284 ev.u.input.size = 5; in send_event()
|
/samples/v4l/ |
D | v4l2-pci-skeleton.c | 199 unsigned long size = skel->format.sizeimage; in buffer_prepare() local 201 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 203 vb2_plane_size(vb, 0), size); in buffer_prepare() 207 vb2_set_plane_payload(vb, 0, size); in buffer_prepare()
|
/samples/acrn/ |
D | vm-sample.c | 120 bytes = io_req->reqs.pio_request.size; in main()
|
/samples/pktgen/ |
D | README.rst | 20 -s : ($PKT_SIZE) packet size
|