Lines Matching +defs:obj +defs:y
391 * access. To support this, the anonymous "struct {} obj" tracks the data
405 * - obj.head points to the start of the toplevel object for display
406 * - obj.size is the size of the toplevel object
407 * - obj.data points to the current point in the original data at
408 * which our safe data starts. obj.data will advance as we copy
440 } obj;
1200 return show->obj.head + show->obj.size - data;
1206 return data >= show->obj.data &&
1207 (data + size) < (show->obj.data + BTF_SHOW_OBJ_SAFE_SIZE);
1219 return show->obj.safe + (data - show->obj.data);
1226 * to the struct btf_show obj.safe buffer using copy_from_kernel_nofault().
1274 show->obj.size = size;
1275 show->obj.head = data;
1312 show->state.status = copy_from_kernel_nofault(show->obj.safe,
1315 show->obj.data = data;
1316 safe = show->obj.safe;
1933 * type: is an array (e.g. u32 array[x][y])
1934 * return type: type "u32[x][y]", i.e. BTF_KIND_ARRAY,
1935 * *type_size: (x * y * sizeof(u32)). Hence, *type_size always
1939 * *total_nelems: (x * y). Hence, individual elem size is
5437 const struct btf_sec_info *y = b;
5439 return (int)(x->off - y->off) ? : (int)(x->len - y->len);
7904 static void btf_type_show(const struct btf *btf, u32 type_id, void *obj,
7911 memset(&show->obj, 0, sizeof(show->obj));
7913 btf_type_ops(t)->show(btf, t, type_id, obj, 0, show);
7923 void *obj, struct seq_file *m, u64 flags)
7931 btf_type_show(btf, type_id, obj, &sseq);
7936 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj,
7939 (void) btf_type_seq_show_flags(btf, type_id, obj, m,
7972 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj,
7983 btf_type_show(btf, type_id, obj, (struct btf_show *)&ssnprintf);