| /samples/vfio-mdev/ |
| A D | mdpy.c | 51 struct mdev_type type; member 82 &mdpy_types[0].type, 83 &mdpy_types[1].type, 84 &mdpy_types[2].type, 217 stride = mdev_state->type->width * mdev_state->type->bytepp; in mdpy_reset() 231 container_of(mdev->type, struct mdpy_type, type); in mdpy_init_dev() 239 fbsize = roundup_pow_of_two(type->width * type->height * type->bytepp); in mdpy_init_dev() 247 mdev_state->type = type; in mdpy_init_dev() 253 type->width, type->height); in mdpy_init_dev() 656 struct mdpy_type *type = container_of(mtype, struct mdpy_type, type); in mdpy_show_description() local [all …]
|
| A D | mbochs.c | 104 struct mdev_type type; member 131 &mbochs_types[0].type, 132 &mbochs_types[1].type, 133 &mbochs_types[2].type, 524 struct mbochs_type *type = in mbochs_init_dev() local 525 container_of(mdev->type, struct mbochs_type, type); in mbochs_init_dev() 552 mdev_state->type = type; in mbochs_init_dev() 561 type->type.pretty_name, type->mbytes, mdev_state->pagecount); in mbochs_init_dev() 1075 ext->type.type = VFIO_REGION_TYPE_GFX; in mbochs_get_region_info() 1357 struct mbochs_type *type = in mbochs_show_description() local [all …]
|
| /samples/bpf/ |
| A D | tracex6.bpf.c | 8 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY); 15 __uint(type, BPF_MAP_TYPE_HASH); 22 __uint(type, BPF_MAP_TYPE_HASH); 60 enum bpf_map_type type; in BPF_KPROBE() local 63 type = BPF_CORE_READ(map, map_type); in BPF_KPROBE() 64 if (type != BPF_MAP_TYPE_HASH) in BPF_KPROBE()
|
| A D | test_map_in_map.bpf.c | 22 __uint(type, BPF_MAP_TYPE_ARRAY); 30 __uint(type, BPF_MAP_TYPE_HASH); 38 __uint(type, BPF_MAP_TYPE_HASH); 46 __uint(type, BPF_MAP_TYPE_HASH); 54 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 62 __uint(type, BPF_MAP_TYPE_HASH_OF_MAPS); 70 __uint(type, BPF_MAP_TYPE_HASH_OF_MAPS);
|
| A D | map_perf_test.bpf.c | 18 __uint(type, BPF_MAP_TYPE_HASH); 25 __uint(type, BPF_MAP_TYPE_LRU_HASH); 32 __uint(type, BPF_MAP_TYPE_LRU_HASH); 40 __uint(type, BPF_MAP_TYPE_LRU_HASH); 49 __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); 59 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 66 __uint(type, BPF_MAP_TYPE_HASH); 74 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 82 __uint(type, BPF_MAP_TYPE_LPM_TRIE); 90 __uint(type, BPF_MAP_TYPE_ARRAY); [all …]
|
| A D | spintest.bpf.c | 17 __uint(type, BPF_MAP_TYPE_HASH); 23 __uint(type, BPF_MAP_TYPE_PERCPU_HASH); 30 __uint(type, BPF_MAP_TYPE_STACK_TRACE);
|
| A D | tracex6_user.c | 106 .type = PERF_TYPE_HARDWARE, in test_bpf_perf_event() 115 .type = PERF_TYPE_SOFTWARE, in test_bpf_perf_event() 124 .type = PERF_TYPE_RAW, in test_bpf_perf_event() 134 .type = PERF_TYPE_HW_CACHE, in test_bpf_perf_event() 146 .type = PERF_TYPE_HW_CACHE, in test_bpf_perf_event() 159 .type = 7, in test_bpf_perf_event()
|
| A D | tcp_dumpstats_kern.c | 16 __u32 type; member 21 .type = BPF_MAP_TYPE_SK_STORAGE,
|
| A D | offwaketime.bpf.c | 28 __uint(type, BPF_MAP_TYPE_HASH); 35 __uint(type, BPF_MAP_TYPE_HASH); 47 __uint(type, BPF_MAP_TYPE_HASH); 54 __uint(type, BPF_MAP_TYPE_STACK_TRACE);
|
| A D | trace_event_user.c | 221 .type = PERF_TYPE_HARDWARE, in test_bpf_perf_event() 227 .type = PERF_TYPE_SOFTWARE, in test_bpf_perf_event() 233 .type = PERF_TYPE_HW_CACHE, in test_bpf_perf_event() 242 .type = PERF_TYPE_HW_CACHE, in test_bpf_perf_event() 251 .type = PERF_TYPE_RAW, in test_bpf_perf_event() 258 .type = PERF_TYPE_RAW, in test_bpf_perf_event()
|
| A D | syscall_tp_kern.c | 33 __uint(type, BPF_MAP_TYPE_ARRAY); 40 __uint(type, BPF_MAP_TYPE_ARRAY);
|
| A D | xdp_router_ipv4.bpf.c | 43 __uint(type, BPF_MAP_TYPE_LPM_TRIE); 52 __uint(type, BPF_MAP_TYPE_HASH); 60 __uint(type, BPF_MAP_TYPE_HASH); 67 __uint(type, BPF_MAP_TYPE_DEVMAP);
|
| A D | trace_event_kern.c | 21 __uint(type, BPF_MAP_TYPE_HASH); 28 __uint(type, BPF_MAP_TYPE_STACK_TRACE);
|
| A D | lathist_kern.c | 22 __uint(type, BPF_MAP_TYPE_ARRAY); 65 __uint(type, BPF_MAP_TYPE_ARRAY);
|
| A D | tracex3.bpf.c | 19 __uint(type, BPF_MAP_TYPE_HASH); 51 __uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
|
| A D | trace_output.bpf.c | 6 __uint(type, BPF_MAP_TYPE_PERF_EVENT_ARRAY);
|
| A D | sockex1_kern.c | 9 __uint(type, BPF_MAP_TYPE_ARRAY);
|
| A D | sampleip_kern.c | 16 __uint(type, BPF_MAP_TYPE_HASH);
|
| A D | test_lru_dist.c | 27 #define container_of(ptr, type, member) ({ \ argument 28 const typeof( ((type *)0)->member ) *__mptr = (ptr); \ 29 (type *)( (char *)__mptr - offsetof(type,member) );}) 77 #define list_entry(ptr, type, member) \ argument 78 container_of(ptr, type, member) 80 #define list_last_entry(ptr, type, member) \ argument 81 list_entry((ptr)->prev, type, member)
|
| A D | cpustat_kern.c | 55 __uint(type, BPF_MAP_TYPE_ARRAY); 63 __uint(type, BPF_MAP_TYPE_ARRAY); 71 __uint(type, BPF_MAP_TYPE_ARRAY);
|
| A D | task_fd_query_user.c | 129 int type = bpf_find_probe_type(event_type); in test_nondebug_fs_kuprobe_common() local 134 if (type < 0 || is_return_bit < 0) { in test_nondebug_fs_kuprobe_common() 136 __func__, type, is_return_bit); in test_nondebug_fs_kuprobe_common() 153 attr.type = type; in test_nondebug_fs_kuprobe_common() 266 attr.type = PERF_TYPE_TRACEPOINT; in test_debug_fs_uprobe()
|
| A D | ibumad_kern.c | 20 __uint(type, BPF_MAP_TYPE_ARRAY); 27 __uint(type, BPF_MAP_TYPE_ARRAY);
|
| /samples/watch_queue/ |
| A D | watch_test.c | 107 p - buffer, n.n.type, n.n.subtype, n.n.info); in consumer() 115 switch (n.n.type) { in consumer() 148 .type = WATCH_TYPE_KEY_NOTIFY,
|
| /samples/uhid/ |
| A D | uhid-example.c | 181 ev.type = UHID_CREATE; in create() 199 ev.type = UHID_DESTROY; in destroy() 244 switch (ev.type) { in event() 265 fprintf(stderr, "Invalid event from uhid-dev: %u\n", ev.type); in event() 283 ev.type = UHID_INPUT; in send_event()
|
| /samples/hid/ |
| A D | hid_bpf_helpers.h | 18 enum hid_report_type type,
|