/samples/vfio-mdev/ |
D | mdpy-fb.c | 59 u_int transp, struct fb_info *info) in mdpy_fb_setcolreg() argument 61 u32 *pal = info->pseudo_palette; in mdpy_fb_setcolreg() 62 u32 cr = red >> (16 - info->var.red.length); in mdpy_fb_setcolreg() 63 u32 cg = green >> (16 - info->var.green.length); in mdpy_fb_setcolreg() 64 u32 cb = blue >> (16 - info->var.blue.length); in mdpy_fb_setcolreg() 70 value = (cr << info->var.red.offset) | in mdpy_fb_setcolreg() 71 (cg << info->var.green.offset) | in mdpy_fb_setcolreg() 72 (cb << info->var.blue.offset); in mdpy_fb_setcolreg() 73 if (info->var.transp.length > 0) { in mdpy_fb_setcolreg() 74 mask = (1 << info->var.transp.length) - 1; in mdpy_fb_setcolreg() [all …]
|
D | mdpy.c | 524 struct vfio_device_info info; in mdpy_ioctl() local 528 if (copy_from_user(&info, (void __user *)arg, minsz)) in mdpy_ioctl() 531 if (info.argsz < minsz) in mdpy_ioctl() 534 ret = mdpy_get_device_info(mdev, &info); in mdpy_ioctl() 538 memcpy(&mdev_state->dev_info, &info, sizeof(info)); in mdpy_ioctl() 540 if (copy_to_user((void __user *)arg, &info, minsz)) in mdpy_ioctl() 547 struct vfio_region_info info; in mdpy_ioctl() local 553 if (copy_from_user(&info, (void __user *)arg, minsz)) in mdpy_ioctl() 556 if (info.argsz < minsz) in mdpy_ioctl() 559 ret = mdpy_get_region_info(mdev, &info, &cap_type_id, in mdpy_ioctl() [all …]
|
D | mtty.c | 1144 struct vfio_device_info info; in mtty_ioctl() local 1148 if (copy_from_user(&info, (void __user *)arg, minsz)) in mtty_ioctl() 1151 if (info.argsz < minsz) in mtty_ioctl() 1154 ret = mtty_get_device_info(mdev, &info); in mtty_ioctl() 1158 memcpy(&mdev_state->dev_info, &info, sizeof(info)); in mtty_ioctl() 1160 if (copy_to_user((void __user *)arg, &info, minsz)) in mtty_ioctl() 1167 struct vfio_region_info info; in mtty_ioctl() local 1173 if (copy_from_user(&info, (void __user *)arg, minsz)) in mtty_ioctl() 1176 if (info.argsz < minsz) in mtty_ioctl() 1179 ret = mtty_get_region_info(mdev, &info, &cap_type_id, in mtty_ioctl() [all …]
|
D | mbochs.c | 1192 struct vfio_device_info info; in mbochs_ioctl() local 1196 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl() 1199 if (info.argsz < minsz) in mbochs_ioctl() 1202 ret = mbochs_get_device_info(mdev, &info); in mbochs_ioctl() 1206 if (copy_to_user((void __user *)arg, &info, minsz)) in mbochs_ioctl() 1213 struct vfio_region_info_ext info; in mbochs_ioctl() local 1215 minsz = offsetofend(typeof(info), base.offset); in mbochs_ioctl() 1217 if (copy_from_user(&info, (void __user *)arg, minsz)) in mbochs_ioctl() 1220 outsz = info.base.argsz; in mbochs_ioctl() 1223 if (outsz > sizeof(info)) in mbochs_ioctl() [all …]
|
/samples/pktgen/ |
D | parameters.sh | 31 info "Output device set to: DEV=$DEV" 35 info "Packet size set to: PKT_SIZE=$PKT_SIZE bytes" 39 info "Destination IP set to: DEST_IP=$DEST_IP" 43 info "Destination MAC set to: DST_MAC=$DST_MAC" 47 info "Destination PORT set to: DST_PORT=$DST_PORT" 51 info "Index of first thread (zero indexed CPU number): $F_THREAD" 55 info "Number of threads to start: $THREADS" 59 info "CLONE_SKB=$CLONE_SKB" 63 info "COUNT=$COUNT" 67 info "SKB bursting: BURST=$BURST" [all …]
|
D | pktgen_sample06_numa_awared_queue_irq_affinity.sh | 55 … info "irq ${irq_array[$i]} is set affinity to `cat /proc/irq/${irq_array[$i]}/smp_affinity_list`" 63 info "queue number is $queue_num"
|
D | functions.sh | 22 function info() { function 120 info "Not root, running with sudo"
|
D | pktgen_sample05_flow_per_thread.sh | 72 info "$dev: Not using burst"
|
D | pktgen_sample03_burst_single_flow.sh | 79 info "$dev: Not using burst"
|
/samples/timers/ |
D | hpet_example.c | 101 struct hpet_info info; in hpet_info() local 115 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_info() 121 info.hi_ireqfreq, info.hi_flags); in hpet_info() 123 info.hi_hpet, info.hi_timer); in hpet_info() 136 struct hpet_info info; in hpet_poll() local 161 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_poll() 166 fprintf(stderr, "hpet_poll: info.hi_flags 0x%lx\n", info.hi_flags); in hpet_poll() 168 if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) { in hpet_poll() 228 struct hpet_info info; in hpet_fasync() local 266 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_fasync() [all …]
|
/samples/hidraw/ |
D | hid-example.c | 49 struct hidraw_devinfo info; in main() local 65 memset(&info, 0x0, sizeof(info)); in main() 102 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main() 108 info.bustype, bus_str(info.bustype)); in main() 109 printf("\tvendor: 0x%04hx\n", info.vendor); in main() 110 printf("\tproduct: 0x%04hx\n", info.product); in main()
|
/samples/bpf/ |
D | xdp_monitor_user.c | 119 __u64 info; member 173 rec->cpu[i].info = values[i].info; in map_collect_record() 174 sum_info += values[i].info; in map_collect_record() 180 rec->total.info = sum_info; in map_collect_record() 276 packets = r->info - p->info; in calc_info() 365 double drop, info; in stats_print() local 376 info = calc_info(r, p, t); in stats_print() 377 if (info > 0) { in stats_print() 379 info = pps / info; /* calc average bulk size */ in stats_print() 383 i, to_cpu, pps, drop, info, info_str); in stats_print() [all …]
|
D | xdp2skb_meta.sh | 41 function info() { function 94 info "Device set to: DEV=$DEV" >&2 105 info "Dry-run mode: enable VERBOSE and don't call TC+IP" >&2 147 info "Listing current TC ingress rules" 155 info "Listing current XDP device($device) setting" 163 info "Flush TC on device: $device" 172 info "Flush XDP on device: $device"
|
D | xdp_redirect_user.c | 106 struct bpf_prog_info info = {}; in main() local 107 __u32 info_len = sizeof(info); in main() 184 ret = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main() 189 prog_id = info.id; in main() 198 memset(&info, 0, sizeof(info)); in main() 199 ret = bpf_obj_get_info_by_fd(dummy_prog_fd, &info, &info_len); in main() 204 dummy_prog_id = info.id; in main()
|
D | xdp_redirect_map_user.c | 104 struct bpf_prog_info info = {}; in main() local 105 __u32 info_len = sizeof(info); in main() 183 ret = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main() 188 prog_id = info.id; in main() 197 memset(&info, 0, sizeof(info)); in main() 198 ret = bpf_obj_get_info_by_fd(dummy_prog_fd, &info, &info_len); in main() 203 dummy_prog_id = info.id; in main()
|
D | sockex3_user.c | 37 struct bpf_prog_info info = {}; in main() local 38 uint32_t info_len = sizeof(info); in main() 49 err = bpf_obj_get_info_by_fd(PARSE_IP_PROG_FD, &info, &info_len); in main() 53 assert(id == info.id); in main()
|
D | xdp1_user.c | 86 struct bpf_prog_info info = {}; in main() local 87 __u32 info_len = sizeof(info); in main() 154 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main() 159 prog_id = info.id; in main()
|
D | test_map_in_map_user.c | 34 struct bpf_map_info info = {}; in check_map_id() local 35 uint32_t info_len = sizeof(info); in check_map_id() 38 ret = bpf_obj_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id() 43 assert(id == info.id); in check_map_id()
|
D | xdp_adjust_tail_user.c | 89 struct bpf_prog_info info = {}; in main() local 90 __u32 info_len = sizeof(info); in main() 173 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main() 178 prog_id = info.id; in main()
|
D | xdp_sample_pkts_user.c | 30 struct bpf_prog_info info = {}; in do_attach() local 31 __u32 info_len = sizeof(info); in do_attach() 40 err = bpf_obj_get_info_by_fd(fd, &info, &info_len); in do_attach() 45 prog_id = info.id; in do_attach()
|
D | xdp_monitor_kern.c | 127 u64 info; member 176 rec->info += 1; in trace_xdp_cpumap_enqueue() 208 rec->info++; in trace_xdp_cpumap_kthread() 248 rec->info += 1; in trace_xdp_devmap_xmit()
|
D | xdp_tx_iptunnel_user.c | 162 struct bpf_prog_info info = {}; in main() local 163 __u32 info_len = sizeof(info); in main() 299 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main() 304 prog_id = info.id; in main()
|
/samples/pidfd/ |
D | pidfd-metadata.c | 46 static inline int sys_pidfd_send_signal(int pidfd, int sig, siginfo_t *info, in sys_pidfd_send_signal() argument 49 return syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags); in sys_pidfd_send_signal()
|
/samples/seccomp/ |
D | bpf-direct.c | 62 static void emulator(int nr, siginfo_t *info, void *void_context) in emulator() argument 69 if (info->si_code != SYS_SECCOMP) in emulator()
|
/samples/mic/mpssd/ |
D | mpssd.c | 374 return READ_ONCE(vr->info->avail_idx); in read_avail_idx() 435 vr0->info = vr0->va + in init_vr() 440 __func__, mic->name, vr0->va, vr0->info, vr_size, in init_vr() 443 le32toh(vr0->info->magic), MIC_MAGIC + type); in init_vr() 444 assert(le32toh(vr0->info->magic) == MIC_MAGIC + type); in init_vr() 448 vr1->info = vr1->va + _vring_size(MIC_VRING_ENTRIES, in init_vr() 453 __func__, mic->name, vr1->va, vr1->info, vr_size, in init_vr() 456 le32toh(vr1->info->magic), MIC_MAGIC + type + 1); in init_vr() 457 assert(le32toh(vr1->info->magic) == MIC_MAGIC + type + 1); in init_vr() 519 le16toh(vr->vr.avail->idx), vr->info->avail_idx); in spin_for_descriptors() [all …]
|