| /samples/bpf/ |
| A D | ibumad_kern.c | 21 __type(key, u32); /* class; u32 required */ 51 u32 id; 52 u32 status; 53 u32 timeout_ms; 54 u32 retires; 55 u32 length; 56 u32 qpn; 57 u32 qkey; 67 u32 flow_label; 70 u32 attr_mod; [all …]
|
| A D | map_perf_test.bpf.c | 19 __type(key, u32); 26 __type(key, u32); 33 __type(key, u32); 41 __type(key, u32); 67 __type(key, u32); 183 u32 unused32; in BPF_KSYSCALL() 184 u32 key; in BPF_KSYSCALL() 190 u32 key = 0; in BPF_KSYSCALL() 228 u32 i; in BPF_KSYSCALL() 252 u32 b32[2]; in BPF_KSYSCALL() [all …]
|
| A D | cpustat_kern.c | 56 __type(key, u32); 64 __type(key, u32); 72 __type(key, u32); 86 u32 state; 87 u32 cpu_id; 91 static u32 find_cpu_pstate_idx(u32 frequency) in find_cpu_pstate_idx() 93 u32 i; in find_cpu_pstate_idx() 107 u32 key, cpu, pstate_idx; in bpf_prog1() 163 if (ctx->state != (u32)-1) { in bpf_prog1() 215 u32 key, cpu, pstate_idx; in bpf_prog2() [all …]
|
| A D | test_map_in_map.bpf.c | 23 __type(key, u32); 31 __type(key, u32); 39 __type(key, u32); 47 __type(key, u32); 56 __uint(key_size, sizeof(u32)); 64 __uint(key_size, sizeof(u32)); 72 __uint(key_size, sizeof(u32)); 76 static __always_inline int do_reg_lookup(void *inner_map, u32 port) in do_reg_lookup() 95 static __always_inline int do_inline_hash_lookup(void *inner_map, u32 port) in do_inline_hash_lookup() 111 u32 port_key; in BPF_KSYSCALL() [all …]
|
| A D | syscall_tp_kern.c | 34 __type(key, u32); 35 __type(value, u32); 41 __type(key, u32); 42 __type(value, u32); 48 u32 key = 0; in count() 49 u32 *value, init_val = 1; in count()
|
| A D | offwaketime.bpf.c | 23 u32 wret; 24 u32 tret; 36 __type(key, u32); 43 u32 ret; 48 __type(key, u32); 55 __uint(key_size, sizeof(u32)); 66 u32 pid = BPF_CORE_READ(p, pid); in waker() 76 static inline int update_counts(void *ctx, u32 pid, u64 delta) in update_counts() 111 u32 pid = ctx->prev_pid; 118 u32 pid = BPF_CORE_READ(p, pid); [all …]
|
| A D | xdp_sample.bpf.c | 68 u32 cpu = bpf_get_smp_processor_id(); in xdp_redirect_collect_stat() 69 u32 key = XDP_REDIRECT_ERROR; in xdp_redirect_collect_stat() 71 u32 idx; in xdp_redirect_collect_stat() 98 const struct bpf_map *map, u32 index) in BPF_PROG() 106 const struct bpf_map *map, u32 index) in BPF_PROG() 131 u32 cpu = bpf_get_smp_processor_id(); in BPF_PROG() 133 u32 idx; in BPF_PROG() 160 u32 cpu; in BPF_PROG() 184 u32 cpu = bpf_get_smp_processor_id(); in BPF_PROG() 186 u32 key = act, idx; in BPF_PROG() [all …]
|
| A D | tracex6.bpf.c | 10 __uint(value_size, sizeof(u32)); 31 u32 key = bpf_get_smp_processor_id(); in bpf_prog1() 58 u32 key = bpf_get_smp_processor_id(); in BPF_KPROBE() 81 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | trace_event_kern.c | 16 u32 kernstack; 17 u32 userstack; 29 __uint(key_size, sizeof(u32)); 44 u32 cpu = bpf_get_smp_processor_id(); in bpf_prog1()
|
| A D | tracex3.bpf.c | 14 u32 _pad; 52 __uint(key_size, sizeof(u32)); 67 u32 index; in bpf_prog2() 100 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | trace_output.bpf.c | 8 __uint(value_size, sizeof(u32)); 29 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | sampleip_kern.c | 18 __type(value, u32); 26 u32 *value, init_val = 1; in do_sample()
|
| A D | tracex5.bpf.c | 20 __uint(key_size, sizeof(u32)); 21 __uint(value_size, sizeof(u32)); 93 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | xdp_fwd_kern.c | 36 u32 check = (__force u32)iph->check; in ip_decrease_ttl() 38 check += (__force u32)htons(0x0100); in ip_decrease_ttl() 43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags()
|
| A D | spintest.bpf.c | 31 __uint(key_size, sizeof(u32)); 60 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | task_fd_query_kern.c | 19 u32 _version SEC("version") = LINUX_VERSION_CODE;
|
| A D | sockex3_kern.c | 40 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto); 72 u32 key = bpf_get_smp_processor_id(); in this_cpu_globals() 253 __uint(key_size, sizeof(u32)); 255 __array(values, u32 (void *)); 273 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto) in parse_eth_proto()
|
| A D | sockex1_kern.c | 10 __type(key, u32);
|
| /samples/rust/ |
| A D | rust_dma.rs | 21 const TEST_VALUES: [(u32, u32); 5] = [ 30 h: u32, 31 b: u32, 35 fn new(h: u32, b: u32) -> Self { in new() argument
|
| A D | rust_misc_device.rs | 113 const RUST_MISC_DEV_HELLO: u32 = _IO('|' as u32, 0x80); 114 const RUST_MISC_DEV_GET_VALUE: u32 = _IOR::<i32>('|' as u32, 0x81); 115 const RUST_MISC_DEV_SET_VALUE: u32 = _IOW::<i32>('|' as u32, 0x82); 176 fn ioctl(me: Pin<&RustMiscDevice>, _file: &File, cmd: u32, arg: usize) -> Result<isize> { in ioctl() argument
|
| A D | rust_driver_platform.rs | 82 struct Info(u32); 148 let prop = fwnode.property_read::<u32>(name).or(0x12); in properties_parse() 154 let _ = fwnode.property_read::<u32>(name).required_by(dev); in properties_parse() 157 let prop: u32 = fwnode.property_read(name).required_by(dev)?; in properties_parse()
|
| /samples/vfio-mdev/ |
| A D | mdpy-fb.c | 55 u32 palette[PSEUDO_PALETTE_SIZE]; 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() 65 u32 value, mask; in mdpy_fb_setcolreg() 101 u32 format, width, height; in mdpy_fb_probe()
|
| A D | mdpy.c | 52 u32 format; 53 u32 bytepp; 54 u32 width; 55 u32 height; 100 u32 bar_mask; 106 u32 memsize; 152 u32 cfg_addr; in handle_pci_cfg_write() 214 u32 stride, i; in mdpy_reset() 232 u32 fbsize; in mdpy_init_dev() 313 u32 val; in mdpy_read() [all …]
|
| A D | mbochs.c | 105 u32 mbytes; 106 u32 max_x; 107 u32 max_y; 153 u32 bytepp; 154 u32 width; 155 u32 height; 156 u32 stride; 157 u32 __pad; 164 u32 id; 622 u32 val; in mbochs_read() [all …]
|
| /samples/hid/ |
| A D | hid_bpf_helpers.h | 12 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym;
|