/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) in __resolve_symbol() argument 72 type = btf__type_by_id(btf, type_id); in __resolve_symbol() 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); in __resolve_symbol() 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); in __resolve_symbol() 92 test_symbols[i].id = type_id; in __resolve_symbol() 101 int type_id; in resolve_symbols() local 111 for (type_id = 1; type_id <= nr; type_id++) { in resolve_symbols() 112 if (__resolve_symbol(btf, type_id)) in resolve_symbols() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) in __resolve_symbol() argument 72 type = btf__type_by_id(btf, type_id); in __resolve_symbol() 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); in __resolve_symbol() 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); in __resolve_symbol() 92 test_symbols[i].id = type_id; in __resolve_symbol() 101 int type_id; in resolve_symbols() local 111 for (type_id = 1; type_id < nr; type_id++) { in resolve_symbols() 112 if (__resolve_symbol(btf, type_id)) in resolve_symbols() [all...] |
H A D | btf_dump.c | 275 __s32 type_id; in btf_dump_data() local 289 type_id = btf__find_by_name(btf, name); in btf_dump_data() 290 if (!ASSERT_GE(type_id, 0, "find type id")) in btf_dump_data() 292 type_sz = btf__resolve_size(btf, type_id); in btf_dump_data() 294 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); in btf_dump_data() 575 __s32 type_id; in test_btf_dump_struct_data() local 645 type_id = btf__find_by_name(btf, "file_operations"); in test_btf_dump_struct_data() 646 if (ASSERT_GT(type_id, 0, "find type id")) { in test_btf_dump_struct_data() 647 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 650 ret = btf_dump__dump_type_data(d, type_id, fop in test_btf_dump_struct_data() 819 __s32 type_id; test_btf_datasec() local [all...] |
H A D | btf_module.c | 13 __s32 type_id; in test_btf_module() local 28 type_id = btf__find_by_name(module_btf, symbol_name); in test_btf_module() 29 ASSERT_GT(type_id, 0, "func not found"); in test_btf_module()
|
H A D | btf_tag.c | 58 __s32 type_id; in load_btfs() local 73 type_id = btf__find_by_name_kind(*vmlinux_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs() 74 if (type_id <= 0) { in load_btfs() 90 type_id = btf__find_by_name_kind(*module_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs() 91 if (type_id <= 0) { in load_btfs()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 24 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, 71 func_type = btf__type_by_id(prog_btf, finfo->type_id); in dump_prog_id_as_func_ptr() 125 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, in btf_dumper_modifier() argument 130 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 211 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, in btf_dumper_array() argument 214 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() 429 static int btf_dumper_struct(const struct btf_dumper *d, __u32 type_id, in btf_dumper_struct() argument 439 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 477 static int btf_dumper_var(const struct btf_dumper *d, __u32 type_id, in btf_dumper_var() argument 480 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() 491 btf_dumper_datasec(const struct btf_dumper *d, __u32 type_id, const void *data) btf_dumper_datasec() argument 519 btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, __u8 bit_offset, const void *data) btf_dumper_do_type() argument 560 btf_dumper_type(const struct btf_dumper *d, __u32 type_id, const void *data) btf_dumper_type() argument 581 __btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int pos, int size) __btf_dumper_type_only() argument 707 btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int size) btf_dumper_type_only() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pwc/ |
H A D | pwc-if.c | 778 int vendor_id, product_id, type_id; in usb_pwc_probe() local 805 type_id = 645; in usb_pwc_probe() 810 type_id = 646; in usb_pwc_probe() 815 type_id = 646; in usb_pwc_probe() 820 type_id = 675; in usb_pwc_probe() 825 type_id = 680; in usb_pwc_probe() 830 type_id = 690; in usb_pwc_probe() 835 type_id = 730; in usb_pwc_probe() 840 type_id = 740; in usb_pwc_probe() 845 type_id in usb_pwc_probe() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pwc/ |
H A D | pwc-if.c | 778 int vendor_id, product_id, type_id; in usb_pwc_probe() local 805 type_id = 645; in usb_pwc_probe() 810 type_id = 646; in usb_pwc_probe() 815 type_id = 646; in usb_pwc_probe() 820 type_id = 675; in usb_pwc_probe() 825 type_id = 680; in usb_pwc_probe() 830 type_id = 690; in usb_pwc_probe() 835 type_id = 730; in usb_pwc_probe() 840 type_id = 740; in usb_pwc_probe() 845 type_id in usb_pwc_probe() [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | btf.c | 462 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id() argument 464 if (type_id == 0) in btf_type_by_id() 466 if (type_id < btf->start_id) in btf_type_by_id() 467 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id() 468 return btf->types_data + btf->type_offs[type_id - btf->start_id]; in btf_type_by_id() 471 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id() argument 473 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 475 return btf_type_by_id((struct btf *)btf, type_id); in btf__type_by_id() 604 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size() argument 612 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 714 btf__resolve_type(const struct btf *btf, __u32 type_id) btf__resolve_type() argument 1630 btf_rewrite_type_ids(__u32 *type_id, void *ctx) btf_rewrite_type_ids() argument 2009 btf__add_field(struct btf *btf, const char *name, int type_id, __u32 bit_offset, __u32 bit_size) btf__add_field() argument 2425 btf__add_func_param(struct btf *btf, const char *name, int type_id) btf__add_func_param() argument 2478 btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) btf__add_var() argument 3151 btf_dedup_table_add(struct btf_dedup *d, long hash, __u32 type_id) btf_dedup_table_add() argument 3679 int type_id; btf_dedup_prep() local 3742 btf_dedup_prim_type(struct btf_dedup *d, __u32 type_id) btf_dedup_prim_type() argument 3842 is_type_mapped(struct btf_dedup *d, uint32_t type_id) is_type_mapped() argument 3852 resolve_type_id(struct btf_dedup *d, __u32 type_id) resolve_type_id() argument 3863 resolve_fwd_id(struct btf_dedup *d, uint32_t type_id) resolve_fwd_id() argument 4289 btf_dedup_struct_type(struct btf_dedup *d, __u32 type_id) btf_dedup_struct_type() argument 4383 btf_dedup_ref_type(struct btf_dedup *d, __u32 type_id) btf_dedup_ref_type() argument 4533 __u32 type_id; btf_dedup_fill_unique_names_map() local 4563 btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id) btf_dedup_resolve_fwd() argument 4717 btf_dedup_remap_type_id(__u32 *type_id, void *ctx) btf_dedup_remap_type_id() argument [all...] |
H A D | relo_core.c | 32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) in btf__resolve_size() argument 37 t = btf_type_by_id(btf, type_id); in btf__resolve_size() 82 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr() 280 spec->root_type_id = relo->type_id; in bpf_core_parse_spec() 305 t = skip_mods_and_typedefs(btf, relo->type_id, &id); in bpf_core_parse_spec() 311 acc->type_id = id; in bpf_core_parse_spec() 358 acc->type_id = id; in bpf_core_parse_spec() 377 spec->spec[spec->len].type_id = id; in bpf_core_parse_spec() 387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); in bpf_core_parse_spec() 500 local_id = local_acc->type_id; in bpf_core_match_member() 678 bpf_core_calc_field_relo(const char *prog_name, const struct bpf_core_relo *relo, const struct bpf_core_spec *spec, __u64 *val, __u32 *field_sz, __u32 *type_id, bool *validate) bpf_core_calc_field_relo() argument 1160 __u32 type_id; bpf_core_format_spec() local [all...] |
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 24 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, 80 func_type = btf__type_by_id(prog_btf, finfo.type_id); in dump_prog_id_as_func_ptr() 135 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, in btf_dumper_modifier() argument 140 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 247 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, in btf_dumper_array() argument 250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() 465 static int btf_dumper_struct(const struct btf_dumper *d, __u32 type_id, in btf_dumper_struct() argument 475 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 513 static int btf_dumper_var(const struct btf_dumper *d, __u32 type_id, in btf_dumper_var() argument 516 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() 527 btf_dumper_datasec(const struct btf_dumper *d, __u32 type_id, const void *data) btf_dumper_datasec() argument 555 btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, __u8 bit_offset, const void *data) btf_dumper_do_type() argument 598 btf_dumper_type(const struct btf_dumper *d, __u32 type_id, const void *data) btf_dumper_type() argument 619 __btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int pos, int size) __btf_dumper_type_only() argument 747 btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int size) btf_dumper_type_only() argument [all...] |
H A D | gen.c | 1719 static void btfgen_mark_member(struct btfgen_info *info, int type_id, int idx) in btfgen_mark_member() argument 1721 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id); in btfgen_mark_member() 1728 btfgen_mark_type(struct btfgen_info *info, unsigned int type_id, bool follow_pointers) in btfgen_mark_type() argument 1730 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); in btfgen_mark_type() 1736 if (type_id == 0) in btfgen_mark_type() 1740 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id); in btfgen_mark_type() 1795 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id); in btfgen_mark_type() 1808 unsigned int type_id = targ_spec->root_type_id; in btfgen_record_field_relo() local 1812 btf_type = btf__type_by_id(btf, type_id); in btfgen_record_field_relo() 1813 err = btfgen_mark_type(info, type_id, fals in btfgen_record_field_relo() 1864 btfgen_mark_type_match(struct btfgen_info *info, __u32 type_id, bool behind_ptr) btfgen_mark_type_match() argument 2127 btfgen_remap_id(__u32 *type_id, void *ctx) btfgen_remap_id() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | btf.h | 27 /* Figure out the size of a type_id. If type_id is a modifier 31 * In describing "const void *", type_id is "const" and "const" 34 * If type_id is a simple "int", then return type will be "int". 37 * @type_id: Find out the size of type_id. The type_id of the return 38 * type is set to *type_id. 42 * NULL is returned if type_id itself does not have size info 45 * *type_id an 214 btf_type_by_id(const struct btf *btf, u32 type_id) btf_type_by_id() argument [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | btf.c | 366 /* VOID (type_id == 0) is specially handled by btf__get_type_by_id(), in btf_parse_type_sec() 413 static struct btf_type *btf_type_by_id(struct btf *btf, __u32 type_id) in btf_type_by_id() argument 415 if (type_id == 0) in btf_type_by_id() 418 return btf->types_data + btf->type_offs[type_id]; in btf_type_by_id() 421 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id() argument 423 if (type_id > btf->nr_types) in btf__type_by_id() 425 return btf_type_by_id((struct btf *)btf, type_id); in btf__type_by_id() 536 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size() argument 544 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 563 type_id in btf__resolve_size() 640 btf__resolve_type(const struct btf *btf, __u32 type_id) btf__resolve_type() argument 1816 btf__add_field(struct btf *btf, const char *name, int type_id, __u32 bit_offset, __u32 bit_size) btf__add_field() argument 2144 btf__add_func_param(struct btf *btf, const char *name, int type_id) btf__add_func_param() argument 2197 btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) btf__add_var() argument 2897 btf_dedup_table_add(struct btf_dedup *d, long hash, __u32 type_id) btf_dedup_table_add() argument 3569 btf_dedup_prim_type(struct btf_dedup *d, __u32 type_id) btf_dedup_prim_type() argument 3667 is_type_mapped(struct btf_dedup *d, uint32_t type_id) is_type_mapped() argument 3677 resolve_type_id(struct btf_dedup *d, __u32 type_id) resolve_type_id() argument 3688 resolve_fwd_id(struct btf_dedup *d, uint32_t type_id) resolve_fwd_id() argument 4034 btf_dedup_struct_type(struct btf_dedup *d, __u32 type_id) btf_dedup_struct_type() argument 4126 btf_dedup_ref_type(struct btf_dedup *d, __u32 type_id) btf_dedup_ref_type() argument 4309 btf_dedup_remap_type_id(struct btf_dedup *d, __u32 type_id) btf_dedup_remap_type_id() argument 4330 btf_dedup_remap_type(struct btf_dedup *d, __u32 type_id) btf_dedup_remap_type() argument [all...] |
/kernel/linux/linux-5.10/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 182 int type_id[sizeof(pidff_effect_types)]; member 556 int type_id; in pidff_upload_effect() local 569 pidff->type_id[PID_CONSTANT]); in pidff_upload_effect() 588 type_id = PID_SQUARE; in pidff_upload_effect() 591 type_id = PID_TRIANGLE; in pidff_upload_effect() 594 type_id = PID_SINE; in pidff_upload_effect() 597 type_id = PID_SAW_UP; in pidff_upload_effect() 600 type_id = PID_SAW_DOWN; in pidff_upload_effect() 608 pidff->type_id[type_id]); in pidff_upload_effect() [all...] |
/kernel/linux/linux-6.6/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 182 int type_id[sizeof(pidff_effect_types)]; member 556 int type_id; in pidff_upload_effect() local 569 pidff->type_id[PID_CONSTANT]); in pidff_upload_effect() 588 type_id = PID_SQUARE; in pidff_upload_effect() 591 type_id = PID_TRIANGLE; in pidff_upload_effect() 594 type_id = PID_SINE; in pidff_upload_effect() 597 type_id = PID_SAW_UP; in pidff_upload_effect() 600 type_id = PID_SAW_DOWN; in pidff_upload_effect() 608 pidff->type_id[type_id]); in pidff_upload_effect() [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | bpf_tcp_ca.c | 33 s32 type_id; in bpf_tcp_ca_init() local 35 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 36 if (type_id < 0) in bpf_tcp_ca_init() 38 sock_id = type_id; in bpf_tcp_ca_init() 40 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 41 if (type_id < 0) in bpf_tcp_ca_init() 43 tcp_sock_id = type_id; in bpf_tcp_ca_init()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | bpf_tcp_ca.c | 26 s32 type_id; in bpf_tcp_ca_init() local 28 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 29 if (type_id < 0) in bpf_tcp_ca_init() 31 sock_id = type_id; in bpf_tcp_ca_init() 33 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 34 if (type_id < 0) in bpf_tcp_ca_init() 36 tcp_sock_id = type_id; in bpf_tcp_ca_init()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | btf.c | 55 * type_id: 57 * Each btf_type object is identified by a type_id. The type_id 59 * the BTF type section. The first one has type_id 1. The second 60 * one has type_id 2...etc. Hence, an earlier btf_type has 61 * a smaller type_id. 64 * type_id (i.e. the "type" in the "struct btf_type"). 73 * by specifying type_id: 75 * [1] CONST (anon) type_id=2 76 * [2] PTR (anon) type_id 222 u32 type_id; global() member 353 u32 type_id; global() member 666 btf_type_by_id(const struct btf *btf, u32 type_id) btf_type_by_id() argument 1123 btf_show_start_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_type() argument 1141 btf_show_start_aggr_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_aggr_type() argument 1189 btf_show_start_array_type(struct btf_show *show, const struct btf_type *t, u32 type_id, u16 array_encoding, void *data) btf_show_start_array_type() argument 1207 btf_show_start_struct_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_struct_type() argument 1558 env_type_is_resolved(const struct btf_verifier_env *env, u32 type_id) env_type_is_resolved() argument 1564 env_stack_push(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) env_stack_push() argument 1602 u32 type_id = env->stack[--(env->top_stack)].type_id; env_stack_pop_resolved() local 1636 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, u32 *type_size, const struct btf_type **elem_type, u32 *elem_id, u32 *total_nelems, u32 *type_id) __btf_resolve_size() argument 1710 btf_type_id_resolve(const struct btf *btf, u32 *type_id) btf_type_id_resolve() argument 1717 btf_type_id_size(const struct btf *btf, u32 *type_id, u32 *ret_size) btf_type_id_size() argument 1809 btf_df_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offsets, struct btf_show *show) btf_df_show() argument 2096 btf_int_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_int_show() argument 2436 btf_modifier_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_modifier_show() argument 2449 btf_var_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_var_show() argument 2458 btf_ptr_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_ptr_show() argument 2697 __btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) __btf_array_show() argument 2750 btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_array_show() argument 3012 __btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) __btf_struct_show() argument 3059 btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_struct_show() argument 3230 btf_enum_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_enum_show() argument 3542 u32 var_type_id = vsi->type, type_id, type_size = 0; btf_datasec_resolve() local 3579 btf_datasec_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_datasec_show() argument 3821 btf_resolve_valid(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) btf_resolve_valid() argument 3858 btf_resolve(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) btf_resolve() argument 3894 u32 type_id; btf_check_all_types() local 5337 btf_type_show(const struct btf *btf, u32 type_id, void *obj, struct btf_show *show) btf_type_show() argument 5355 btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m, u64 flags) btf_type_seq_show_flags() argument 5369 btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m) btf_type_seq_show() argument 5405 btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, char *buf, int len, u64 flags) btf_type_snprintf_show() argument [all...] |
H A D | bpf_struct_ops.c | 101 s32 type_id, value_id, module_id; in bpf_struct_ops_init() local 140 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init() 142 if (type_id < 0) { in bpf_struct_ops_init() 147 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init() 188 st_ops->type_id = type_id; in bpf_struct_ops_init() 216 const struct bpf_struct_ops *bpf_struct_ops_find(u32 type_id) in bpf_struct_ops_find() argument 220 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find() 224 if (bpf_struct_ops[i]->type_id == type_id) in bpf_struct_ops_find() [all...] |
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | uncore_discovery.c | 55 const u16 *type_id = key; in __type_cmp() local 57 if (type_b->type > *type_id) in __type_cmp() 59 else if (type_b->type < *type_id) in __type_cmp() 66 search_uncore_discovery_type(u16 type_id) in search_uncore_discovery_type() argument 68 struct rb_node *node = rb_find(&type_id, &discovery_tables, __type_cmp); in search_uncore_discovery_type() 493 type->type_id, type->box_ids[box->pmu->pmu_idx]); in intel_generic_uncore_mmio_init_box() 501 type->type_id, type->box_ids[box->pmu->pmu_idx], in intel_generic_uncore_mmio_init_box() 557 static bool uncore_update_uncore_type(enum uncore_access_type type_id, in uncore_update_uncore_type() argument 561 uncore->type_id = type->type; in uncore_update_uncore_type() 567 switch (type_id) { in uncore_update_uncore_type() 600 intel_uncore_generic_init_uncores(enum uncore_access_type type_id, int num_extra) intel_uncore_generic_init_uncores() argument [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | btf.c | 62 * type_id: 64 * Each btf_type object is identified by a type_id. The type_id 66 * the BTF type section. The first one has type_id 1. The second 67 * one has type_id 2...etc. Hence, an earlier btf_type has 68 * a smaller type_id. 71 * type_id (i.e. the "type" in the "struct btf_type"). 80 * by specifying type_id: 82 * [1] CONST (anon) type_id=2 83 * [2] PTR (anon) type_id 277 u32 type_id; global() member 418 u32 type_id; global() member 825 btf_type_by_id(const struct btf *btf, u32 type_id) btf_type_by_id() argument 1287 btf_show_start_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_type() argument 1305 btf_show_start_aggr_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_aggr_type() argument 1353 btf_show_start_array_type(struct btf_show *show, const struct btf_type *t, u32 type_id, u16 array_encoding, void *data) btf_show_start_array_type() argument 1371 btf_show_start_struct_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) btf_show_start_struct_type() argument 1790 env_type_is_resolved(const struct btf_verifier_env *env, u32 type_id) env_type_is_resolved() argument 1800 env_stack_push(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) env_stack_push() argument 1840 u32 type_id = env->stack[--(env->top_stack)].type_id; env_stack_pop_resolved() local 1875 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, u32 *type_size, const struct btf_type **elem_type, u32 *elem_id, u32 *total_nelems, u32 *type_id) __btf_resolve_size() argument 1951 btf_resolved_type_id(const struct btf *btf, u32 type_id) btf_resolved_type_id() argument 1960 btf_type_id_resolve(const struct btf *btf, u32 *type_id) btf_type_id_resolve() argument 1967 btf_resolved_type_size(const struct btf *btf, u32 type_id) btf_resolved_type_size() argument 1975 btf_type_id_size(const struct btf *btf, u32 *type_id, u32 *ret_size) btf_type_id_size() argument 2067 btf_df_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offsets, struct btf_show *show) btf_df_show() argument 2354 btf_int_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_int_show() argument 2702 btf_modifier_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_modifier_show() argument 2715 btf_var_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_var_show() argument 2724 btf_ptr_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_ptr_show() argument 2963 __btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) __btf_array_show() argument 3016 btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_array_show() argument 3251 u32 type_id; global() member 3908 __btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) __btf_struct_show() argument 3955 btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_struct_show() argument 4123 btf_enum_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_enum_show() argument 4226 btf_enum64_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_enum64_show() argument 4551 u32 var_type_id = vsi->type, type_id, type_size = 0; btf_datasec_resolve() local 4588 btf_datasec_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) btf_datasec_show() argument 5014 btf_resolve_valid(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) btf_resolve_valid() argument 5055 btf_resolve(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) btf_resolve() argument 5092 u32 type_id, i; btf_check_all_types() local 7061 btf_type_show(const struct btf *btf, u32 type_id, void *obj, struct btf_show *show) btf_type_show() argument 7079 btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m, u64 flags) btf_type_seq_show_flags() argument 7093 btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m) btf_type_seq_show() argument 7129 btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, char *buf, int len, u64 flags) btf_type_snprintf_show() argument [all...] |
/kernel/linux/linux-6.6/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 90 if (prog->aux->attach_btf_id != st_ops->type_id) in bpf_struct_ops_test_run() 180 s32 type_id; in bpf_dummy_ops_btf_struct_access() local 182 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access() 184 if (type_id < 0) in bpf_dummy_ops_btf_struct_access() 188 state = btf_type_by_id(reg->btf, type_id); in bpf_dummy_ops_btf_struct_access()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 507 if (d->type_id == btype) in cx8802_get_driver() 522 core->active_type_id != drv->type_id) in cx8802_request_acquire() 525 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_acquire() 543 core->active_type_id = drv->type_id; in cx8802_request_acquire() 559 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_release() 580 if ((drv->type_id != CX88_MPEG_DVB) && in cx8802_check_driver() 581 (drv->type_id != CX88_MPEG_BLACKBIRD)) in cx8802_check_driver() 604 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_register_driver() 662 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_unregister_driver() 678 if (d->type_id ! in cx8802_unregister_driver() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 507 if (d->type_id == btype) in cx8802_get_driver() 522 core->active_type_id != drv->type_id) in cx8802_request_acquire() 525 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_acquire() 542 core->active_type_id = drv->type_id; in cx8802_request_acquire() 558 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_release() 579 if ((drv->type_id != CX88_MPEG_DVB) && in cx8802_check_driver() 580 (drv->type_id != CX88_MPEG_BLACKBIRD)) in cx8802_check_driver() 603 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_register_driver() 661 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_unregister_driver() 677 if (d->type_id ! in cx8802_unregister_driver() [all...] |