• Home
  • Raw
  • Download

Lines Matching refs:off

243 	u32 off;  member
2982 u32 i, off = -ENOENT; in btf_find_spin_lock() local
2997 if (off != -ENOENT) in btf_find_spin_lock()
3000 off = btf_member_bit_offset(t, member); in btf_find_spin_lock()
3001 if (off % 8) in btf_find_spin_lock()
3004 off /= 8; in btf_find_spin_lock()
3005 if (off % __alignof__(struct bpf_spin_lock)) in btf_find_spin_lock()
3009 return off; in btf_find_spin_lock()
3988 return (int)(x->off - y->off) ? : (int)(x->len - y->len); in btf_sec_info_cmp()
4014 if (expected_total < secs[i].off) { in btf_check_sec_info()
4018 if (total < secs[i].off) { in btf_check_sec_info()
4023 if (total > secs[i].off) { in btf_check_sec_info()
4438 bool btf_ctx_access(int off, int size, enum bpf_access_type type, in btf_ctx_access() argument
4451 if (off % 8) { in btf_ctx_access()
4453 tname, off); in btf_ctx_access()
4456 arg = off / 8; in btf_ctx_access()
4539 if (ctx_arg_info->offset == off && in btf_ctx_access()
4561 if (ctx_arg_info->offset == off) { in btf_ctx_access()
4613 const struct btf_type *t, int off, int size, in btf_struct_walk() argument
4630 if (off + size > t->size) { in btf_struct_walk()
4650 if (off < moff) in btf_struct_walk()
4661 off = (off - moff) % t->size; in btf_struct_walk()
4666 tname, off, size); in btf_struct_walk()
4673 if (off + size <= moff) in btf_struct_walk()
4689 if (off <= moff && in btf_struct_walk()
4690 BITS_ROUNDUP_BYTES(end_bit) <= off + size) in btf_struct_walk()
4709 if (off < moff) in btf_struct_walk()
4726 if (off >= mtrue_end) in btf_struct_walk()
4778 elem_idx = (off - moff) / msize; in btf_struct_walk()
4792 if (off == moff) { in btf_struct_walk()
4798 off -= moff; in btf_struct_walk()
4806 if (msize != size || off != moff) { in btf_struct_walk()
4809 mname, moff, tname, off, size); in btf_struct_walk()
4825 if (off + size > mtrue_end) { in btf_struct_walk()
4828 mname, mtrue_end, tname, off, size); in btf_struct_walk()
4834 bpf_log(log, "struct %s doesn't have field at offset %d\n", tname, off); in btf_struct_walk()
4839 const struct btf_type *t, int off, int size, in btf_struct_access() argument
4847 err = btf_struct_walk(log, t, off, size, &id); in btf_struct_access()
4864 off = 0; in btf_struct_access()
4880 int off, u32 id, u32 need_type_id) in btf_struct_ids_match() argument
4886 if (need_type_id == id && off == 0) in btf_struct_ids_match()
4893 err = btf_struct_walk(log, type, off, 1, &id); in btf_struct_ids_match()
4903 off = 0; in btf_struct_ids_match()