Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 28) sorted by relevance

12

/samples/vfio-mdev/
Dmdpy-fb.c59 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 …]
Dmdpy.c524 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 …]
Dmtty.c1144 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 …]
Dmbochs.c1192 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/
Dparameters.sh31 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 …]
Dpktgen_sample06_numa_awared_queue_irq_affinity.sh55info "irq ${irq_array[$i]} is set affinity to `cat /proc/irq/${irq_array[$i]}/smp_affinity_list`"
63 info "queue number is $queue_num"
Dfunctions.sh22 function info() { function
120 info "Not root, running with sudo"
Dpktgen_sample05_flow_per_thread.sh72 info "$dev: Not using burst"
Dpktgen_sample03_burst_single_flow.sh79 info "$dev: Not using burst"
/samples/timers/
Dhpet_example.c101 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/
Dhid-example.c49 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/
Dxdp_monitor_user.c119 __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 …]
Dxdp2skb_meta.sh41 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"
Dxdp_redirect_user.c106 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()
Dxdp_redirect_map_user.c104 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()
Dsockex3_user.c37 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()
Dxdp1_user.c86 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()
Dtest_map_in_map_user.c34 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()
Dxdp_adjust_tail_user.c89 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()
Dxdp_sample_pkts_user.c30 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()
Dxdp_monitor_kern.c127 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()
Dxdp_tx_iptunnel_user.c162 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/
Dpidfd-metadata.c46 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/
Dbpf-direct.c62 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/
Dmpssd.c374 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 …]

12