Home
last modified time | relevance | path

Searched refs:u32 (Results 1 – 25 of 38) sorted by relevance

12

/samples/bpf/
A Dibumad_kern.c21 __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 Dmap_perf_test.bpf.c19 __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 Dcpustat_kern.c56 __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 Dtest_map_in_map.bpf.c23 __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 Dsyscall_tp_kern.c34 __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 Doffwaketime.bpf.c23 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 Dxdp_sample.bpf.c68 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 Dtracex6.bpf.c10 __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 Dtrace_event_kern.c16 u32 kernstack;
17 u32 userstack;
29 __uint(key_size, sizeof(u32));
44 u32 cpu = bpf_get_smp_processor_id(); in bpf_prog1()
A Dtracex3.bpf.c14 u32 _pad;
52 __uint(key_size, sizeof(u32));
67 u32 index; in bpf_prog2()
100 u32 _version SEC("version") = LINUX_VERSION_CODE;
A Dtrace_output.bpf.c8 __uint(value_size, sizeof(u32));
29 u32 _version SEC("version") = LINUX_VERSION_CODE;
A Dsampleip_kern.c18 __type(value, u32);
26 u32 *value, init_val = 1; in do_sample()
A Dtracex5.bpf.c20 __uint(key_size, sizeof(u32));
21 __uint(value_size, sizeof(u32));
93 u32 _version SEC("version") = LINUX_VERSION_CODE;
A Dxdp_fwd_kern.c36 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 Dspintest.bpf.c31 __uint(key_size, sizeof(u32));
60 u32 _version SEC("version") = LINUX_VERSION_CODE;
A Dtask_fd_query_kern.c19 u32 _version SEC("version") = LINUX_VERSION_CODE;
A Dsockex3_kern.c40 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 Dsockex1_kern.c10 __type(key, u32);
/samples/rust/
A Drust_dma.rs21 const TEST_VALUES: [(u32, u32); 5] = [
30 h: u32,
31 b: u32,
35 fn new(h: u32, b: u32) -> Self { in new() argument
A Drust_misc_device.rs113 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 Drust_driver_platform.rs82 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 Dmdpy-fb.c55 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 Dmdpy.c52 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 Dmbochs.c105 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 Dhid_bpf_helpers.h12 extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym;

Completed in 37 milliseconds

12