/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 82 [1] PTR '(anon)' type_id=2 84 'pad' type_id=3 bits_offset=0 85 'sock' type_id=4 bits_offset=64 87 [4] PTR '(anon)' type_id=5 137 [1] PTR '(anon)' type_id=2 139 'a' type_id=3 bits_offset=0 140 'b' type_id=4 bits_offset=0 143 'const_int_field' type_id=5 bits_offset=0 144 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 145 'arr_field' type_id=8 bits_offset=40 [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) in BTF_ID_LIST_GLOBAL() 72 type = btf__type_by_id(btf, type_id); in BTF_ID_LIST_GLOBAL() 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); in BTF_ID_LIST_GLOBAL() 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); in BTF_ID_LIST_GLOBAL() 92 test_symbols[i].id = type_id; in BTF_ID_LIST_GLOBAL() 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()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
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() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/pwc/ |
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 = 750; in usb_pwc_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/hid/usbhid/ |
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() 626 pidff->type_id[PID_RAMP]); in pidff_upload_effect() [all …]
|
/kernel/linux/linux-5.10/net/ipv4/ |
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-5.10/kernel/bpf/ |
D | btf.c | 177 #define BTF_TYPE_ID_VALID(type_id) ((type_id) <= BTF_MAX_TYPE) argument 222 u32 type_id; member 353 u32 type_id; member 384 u32 type_id, void *data, u8 bits_offsets, 392 const struct btf_type *t, u32 type_id); 670 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id() argument 672 if (type_id > btf->nr_types) in btf_type_by_id() 675 return btf->types[type_id]; in btf_type_by_id() 779 u32 id = show->state.type_id; in btf_show_name() 1129 u32 type_id, void *data) in btf_show_start_type() argument [all …]
|
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() 426 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | btf.c | 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 = t->type; in btf__resolve_size() 570 type_id = array->type; in btf__resolve_size() [all …]
|
D | btf.h | 52 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); 53 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id); 118 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id); 121 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
|
D | libbpf_internal.h | 239 __u32 type_id; member 316 __u32 type_id; member
|
D | libbpf.c | 309 __u32 type_id; member 398 __u32 type_id; member 723 const struct btf_type **type, __u32 *type_id, in find_struct_ops_kern_types() argument 772 *type_id = kern_type_id; in find_struct_ops_kern_types() 809 map->name, st_ops->type_id, kern_type_id, kern_vtype_id); in bpf_map__init_kern_struct_ops() 943 __s32 type_id, datasec_id; in bpf_object__init_struct_ops_maps() local 966 type_id = btf__resolve_type(obj->btf, vsi->type); in bpf_object__init_struct_ops_maps() 967 if (type_id < 0) { in bpf_object__init_struct_ops_maps() 973 type = btf__type_by_id(obj->btf, type_id); in bpf_object__init_struct_ops_maps() 1021 st_ops->type_id = type_id; in bpf_object__init_struct_ops_maps() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | btf.h | 49 u32 *type_id, 69 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, 71 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, 87 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, 209 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); 215 u32 type_id) in btf_type_by_id() argument
|
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
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 != drv->type_id) in cx8802_unregister_driver()
|
/kernel/linux/linux-5.10/tools/bpf/resolve_btfids/ |
D | main.c | 478 int err, type_id; in symbols_resolve() local 496 for (type_id = 1; type_id <= nr; type_id++) { in symbols_resolve() 503 type = btf__type_by_id(btf, type_id); in symbols_resolve() 506 type_id); in symbols_resolve() 528 type_id); in symbols_resolve() 534 id->id = type_id; in symbols_resolve()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | netif_receive_skb.c | 67 _ptr.type_id = bpf_core_type_id_kernel(_type); \ 68 if (_ptr.type_id <= 0) { \ 112 p.type_id = bpf_core_type_id_kernel(struct sk_buff); in BPF_PROG()
|
D | btf_ptr.h | 18 __u32 type_id; member
|
D | bpf_iter_task_btf.c | 25 ptr.type_id = bpf_core_type_id_kernel(struct task_struct); in dump_task_struct()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ |
D | dfs_pattern_detector.h | 72 u8 type_id; member
|
/kernel/linux/linux-5.10/net/tipc/ |
D | ib_media.c | 101 .type_id = TIPC_MEDIA_TYPE_IB,
|
D | eth_media.c | 95 .type_id = TIPC_MEDIA_TYPE_ETH,
|
D | bearer.c | 95 if (media_info_array[i]->type_id == type) in media_find_id() 449 b->bcast_addr.media_id = b->media->type_id; in tipc_enable_l2_media() 820 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP) in __tipc_nl_add_bearer() 827 if (bearer->media->type_id == TIPC_MEDIA_TYPE_UDP) { in __tipc_nl_add_bearer() 1119 if (b->media->type_id != TIPC_MEDIA_TYPE_UDP) { in __tipc_nl_bearer_set() 1179 if (media->type_id == TIPC_MEDIA_TYPE_UDP) in __tipc_nl_add_media() 1314 if (m->type_id != TIPC_MEDIA_TYPE_UDP) { in __tipc_nl_media_set()
|
/kernel/linux/linux-5.10/drivers/rapidio/devices/ |
D | tsi721.h | 510 __le32 type_id; member 555 __le32 type_id; member 583 __le32 type_id; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | falcon_boards.c | 744 u8 type_id = FALCON_BOARD_TYPE(revision_info); in falcon_probe_board() local 751 if (board_types[i].id == type_id) in falcon_probe_board() 758 type_id); in falcon_probe_board()
|
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 110 get_name(aux->btf, aux->func_info[0].type_id, aux->name), in dump_bpf_prog()
|