Home
last modified time | relevance | path

Searched refs:moff (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
Dbpf_struct_ops.c291 u32 i, moff, msize, prev_mend = 0; in check_zero_holes() local
295 moff = btf_member_bit_offset(t, member) / 8; in check_zero_holes()
296 if (moff > prev_mend && in check_zero_holes()
297 memchr_inv(data + prev_mend, 0, moff - prev_mend)) in check_zero_holes()
304 prev_mend = moff + msize; in check_zero_holes()
369 u32 moff; in bpf_struct_ops_map_update_elem() local
372 moff = btf_member_bit_offset(t, member) / 8; in bpf_struct_ops_map_update_elem()
375 if (*(void **)(udata + moff)) in bpf_struct_ops_map_update_elem()
377 *(void **)(kdata + moff) = BPF_MODULE_OWNER; in bpf_struct_ops_map_update_elem()
405 if (memchr_inv(udata + moff, 0, msize)) { in bpf_struct_ops_map_update_elem()
[all …]
Dbtf.c4607 u32 i, moff, mtrue_end, msize = 0, total_nelems = 0; in btf_struct_walk() local
4640 moff = btf_member_bit_offset(t, member) / 8; in btf_struct_walk()
4641 if (off < moff) in btf_struct_walk()
4652 off = (off - moff) % t->size; in btf_struct_walk()
4663 moff = btf_member_bit_offset(t, member) / 8; in btf_struct_walk()
4664 if (off + size <= moff) in btf_struct_walk()
4680 if (off <= moff && in btf_struct_walk()
4700 if (off < moff) in btf_struct_walk()
4716 mtrue_end = moff + msize; in btf_struct_walk()
4765 if (moff == mtrue_end) in btf_struct_walk()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dbpf_tcp_ca.c193 u32 moff; in bpf_tcp_ca_init_member() local
198 moff = btf_member_bit_offset(t, member) / 8; in bpf_tcp_ca_init_member()
199 switch (moff) { in bpf_tcp_ca_init_member()
218 prog_fd = (int)(*(unsigned long *)(udata + moff)); in bpf_tcp_ca_init_member()
219 if (!prog_fd && !is_optional(moff) && !is_unsupported(moff)) in bpf_tcp_ca_init_member()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dsorgm200.c52 const u32 moff = __ffs(outp->info.or) * 0x100; in gm200_sor_route_set() local
57 nvkm_mask(device, 0x612308 + moff, 0x0000001f, link << 4 | sor); in gm200_sor_route_set()
62 nvkm_mask(device, 0x612388 + moff, 0x0000001f, link << 4 | sor); in gm200_sor_route_set()
/kernel/linux/linux-5.10/drivers/platform/x86/
Dacerhdf.c114 u8 moff; member
120 .moff = 0xff,
319 ec_write(mcmd.mreg, mcmd.moff); in acerhdf_change_fanstate()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c828 __u32 moff, kern_moff; in bpf_map__init_kern_struct_ops() local
848 moff = member->offset / 8; in bpf_map__init_kern_struct_ops()
851 mdata = data + moff; in bpf_map__init_kern_struct_ops()
892 map->name, mname, prog->name, moff, in bpf_map__init_kern_struct_ops()
909 moff, kern_moff); in bpf_map__init_kern_struct_ops()
6485 unsigned int moff; in bpf_object__collect_map_relos() local
6557 moff = btf_member_bit_offset(def, btf_vlen(def) - 1) / 8; in bpf_object__collect_map_relos()
6558 if (rel.r_offset - vi->offset < moff) in bpf_object__collect_map_relos()
6561 moff = rel.r_offset - vi->offset - moff; in bpf_object__collect_map_relos()
6565 if (moff % bpf_ptr_sz) in bpf_object__collect_map_relos()
[all …]