/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_obj_pinning.c | 43 const char *map_name = "fsmount_map"; in bpf_obj_pinning_detached() local 75 map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, map_name, 4, 4, 1, NULL); in bpf_obj_pinning_detached() 82 err = bpf_obj_pin_opts(map_fd, map_name, &pin_opts); in bpf_obj_pinning_detached() 89 map_fd2 = bpf_obj_get_opts(map_name, &get_opts); in bpf_obj_pinning_detached() 123 static void validate_pin(int map_fd, const char *map_name, int src_value, in validate_pin() argument 131 snprintf(abs_path, sizeof(abs_path), "/sys/fs/bpf/%s", map_name); in validate_pin() 143 pin_path = map_name; in validate_pin() 150 pin_path = map_name; in validate_pin() 183 static void validate_get(int map_fd, const char *map_name, int src_value, in validate_get() argument 191 snprintf(abs_path, sizeof(abs_path), "/sys/fs/bpf/%s", map_name); in validate_get() [all …]
|
H A D | btf.c | 63 const char *map_name; member 135 .map_name = "struct_test1_map", 190 .map_name = "struct_test2_map", 215 .map_name = "struct_test3_map", 256 .map_name = "struct_test1_map", 301 .map_name = ".bss", 323 .map_name = ".bss", 345 .map_name = ".bss", 367 .map_name = ".bss", 392 .map_name = ".bss", [all …]
|
H A D | global_func_args.c | 10 const char *map_name = "values"; in test_global_func_args0() local 12 map_fd = bpf_find_map(__func__, obj, map_name); in test_global_func_args0() 14 map_name, strerror(errno))) in test_global_func_args0()
|
H A D | obj_name.c | 51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name() 52 name_len : sizeof(attr.map_name); in test_obj_name() 59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
|
H A D | verifier.c | 230 static int init_test_val_map(struct bpf_object *obj, char *map_name) in test_verifier_mtu() 239 map = bpf_object__find_map_by_name(obj, map_name); in test_verifier_mtu() 241 PRINT_FAIL("Can't find map '%s'\n", map_name); in test_verifier_mtu() 247 PRINT_FAIL("Error while updating map '%s': %d\n", map_name, err); in init_test_val_map() argument
|
H A D | sockmap_listen.c | 1310 const char *family_name, *map_name, *sotype_name; in test_ops() local 1316 map_name = map_type_str(map); in test_ops() 1321 snprintf(s, sizeof(s), "%s %s %s %s", map_name, family_name, in test_ops() 1351 const char *family_name, *map_name; in test_redir() local 1356 map_name = map_type_str(map); in test_redir() 1359 snprintf(s, sizeof(s), "%s %s %s", map_name, family_name, in test_redir() 1479 const char *family_name, *map_name; in test_unix_redir() local 1483 map_name = map_type_str(map); in test_unix_redir() 1484 snprintf(s, sizeof(s), "%s %s %s", map_name, family_name, __func__); in test_unix_redir() 1587 const char *family_name, *map_name; in test_vsock_redir() local [all …]
|
H A D | map_in_map.c | 75 static void test_map_in_map_access(const char *prog_name, const char *map_name) in test_map_in_map_access() 93 outer_map = bpf_object__find_map_by_name(skel->obj, map_name); in test_map_in_map_access() 73 test_map_in_map_access(const char * prog_name,const char * map_name) test_map_in_map_access() argument
|
/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 36 char map_name[16]; in create_inner_maps() local 39 memset(map_name, 0, sizeof(map_name)); in create_inner_maps() 40 snprintf(map_name, sizeof(map_name), "inner_map_fd_%d", map_index); in create_inner_maps() 41 map_fd = bpf_map_create(map_type, map_name, sizeof(__u32), in create_inner_maps() 46 map_type, map_name, strerror(errno)); in create_inner_maps() 62 map_type, map_name, strerror(errno)); in create_inner_maps()
|
/linux/drivers/media/tuners/ |
H A D | tda18271-maps.c | 1058 char *map_name; in tda18271_lookup_pll_map() local 1066 map_name = "main_pll"; in tda18271_lookup_pll_map() 1070 map_name = "cal_pll"; in tda18271_lookup_pll_map() 1074 map_name = "undefined"; in tda18271_lookup_pll_map() 1079 tda_warn("%s map is not set!\n", map_name); in tda18271_lookup_pll_map() 1087 map_name, *freq); in tda18271_lookup_pll_map() 1097 i, map_name, *post_div, *div); in tda18271_lookup_pll_map() 1109 char *map_name; in tda18271_lookup_map() local 1117 map_name = "bp_filter"; in tda18271_lookup_map() 1121 map_name = "km"; in tda18271_lookup_map() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | flow_dissector_load.h | 12 const char *map_name, in bpf_flow_load() argument 35 prog_array = bpf_object__find_map_by_name(*obj, map_name); in bpf_flow_load()
|
/linux/drivers/mtd/maps/ |
H A D | pci.c | 26 const char *map_name; member 148 .map_name = "cfi_probe", 221 .map_name = "jedec_probe", 282 mtd = do_map_probe(info->map_name, &map->map); in mtd_pci_probe()
|
H A D | amd76xrom.c | 45 char map_name[sizeof(MOD_NAME) + 2 + ADDRESS_NAME_LEN]; member 197 map->map.name = map->map_name; in amd76xrom_init_one() 204 sprintf(map->map_name, "%s @%08Lx", in amd76xrom_init_one() 243 map->rsrc.name = map->map_name; in amd76xrom_init_one()
|
H A D | ichxrom.c | 50 char map_name[sizeof(MOD_NAME) + 2 + ADDRESS_NAME_LEN]; member 221 map->map.name = map->map_name; in ichxrom_init_one() 228 sprintf(map->map_name, "%s @%08Lx", in ichxrom_init_one() 270 map->rsrc.name = map->map_name; in ichxrom_init_one()
|
H A D | ck804xrom.c | 49 char map_name[sizeof(MOD_NAME) + 2 + ADDRESS_NAME_LEN]; member 227 map->map.name = map->map_name; in ck804xrom_init_one() 234 sprintf(map->map_name, "%s @%08Lx", in ck804xrom_init_one() 273 map->rsrc.name = map->map_name; in ck804xrom_init_one()
|
H A D | esb2rom.c | 111 char map_name[sizeof(MOD_NAME) + 2 + ADDRESS_NAME_LEN]; member 287 map->map.name = map->map_name; in esb2rom_init_one() 294 sprintf(map->map_name, "%s @%08Lx", in esb2rom_init_one() 335 map->rsrc.name = map->map_name; in esb2rom_init_one()
|
/linux/tools/lib/bpf/ |
H A D | skel_internal.h | 220 const char *map_name, in skel_map_create() argument 231 strncpy(attr.map_name, map_name, sizeof(attr.map_name)); in skel_map_create()
|
H A D | libbpf.c | 1824 char map_name[BPF_OBJ_NAME_LEN], *p; in internal_map_name() local 1869 snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, in internal_map_name() 1873 for (p = map_name; *p && p < map_name + sizeof(map_name); p++) in internal_map_name() 1877 return strdup(map_name); in internal_map_name() 2426 static bool get_map_field_int(const char *map_name, const struct btf *btf, in get_map_field_int() argument 2436 map_name, name, btf_kind_str(t)); in get_map_field_int() 2443 map_name, name, t->type); in get_map_field_int() 2448 map_name, name, btf_kind_str(arr_t)); in get_map_field_int() 2456 static bool get_map_field_long(const char *map_name, const struct btf *btf, in get_map_field_long() argument 2466 ret = get_map_field_int(map_name, btf, m, &res32); in get_map_field_long() [all …]
|
/linux/drivers/of/ |
H A D | base.c | 1451 char *map_name __free(kfree) = kasprintf(GFP_KERNEL, "%s-map", stem_name); in of_parse_phandle_with_args_map() 1466 if (!cells_name || !map_name || !mask_name || !pass_name) in of_parse_phandle_with_args_map() 1487 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map() 2048 const char *map_name, const char *map_mask_name, in of_map_id() argument 2055 if (!np || !map_name || (!target && !id_out)) in of_map_id() 2058 map = of_get_property(np, map_name, &map_len); in of_map_id() 2069 map_name, map_len); in of_map_id() 2093 np, map_name, map_name, in of_map_id() 2119 np, map_name, map_mask, id_base, out_base, in of_map_id() 2124 pr_info("%pOF: no %s translation for id 0x%x on %pOF\n", np, map_name, in of_map_id()
|
/linux/drivers/media/rc/ |
H A D | meson-ir.c | 450 const char *map_name; in meson_ir_probe() local 504 map_name = of_get_property(node, "linux,rc-map-name", NULL); in meson_ir_probe() 505 ir->rc->map_name = map_name ? map_name : RC_MAP_EMPTY; in meson_ir_probe()
|
/linux/arch/arm/include/asm/mach/ |
H A D | flash.h | 25 const char *map_name; member
|
/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 747 rc->map_name = RC_MAP_EM_TERRATEC; in em28xx_ir_init() 751 rc->map_name = RC_MAP_PINNACLE_GREY; in em28xx_ir_init() 755 rc->map_name = RC_MAP_HAUPPAUGE; in em28xx_ir_init() 760 rc->map_name = RC_MAP_WINFAST_USBII_DELUXE; in em28xx_ir_init() 798 rc->map_name = dev->board.ir_codes; in em28xx_ir_init()
|
/linux/Documentation/bpf/ |
H A D | maps.rst | 50 .map_name = "example_array"; 59 .. note:: Valid characters for ``map_name`` are ``A-Z``, ``a-z``, ``0-9``,
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | af9015.c | 1248 if (!rc->map_name) in af9015_get_rc_config() 1249 rc->map_name = af9015_rc_setup_match(dvb_usb_af9015_remote, in af9015_get_rc_config() 1253 if (!rc->map_name) in af9015_get_rc_config() 1254 rc->map_name = af9015_rc_setup_match(state->eeprom_sum, in af9015_get_rc_config() 1258 if (!rc->map_name && vid == USB_VID_AFATECH) { in af9015_get_rc_config() 1275 rc->map_name = af9015_rc_setup_match(AF9015_REMOTE_MSI_DIGIVOX_MINI_II_V3, in af9015_get_rc_config() 1281 if (!rc->map_name) in af9015_get_rc_config() 1282 rc->map_name = RC_MAP_EMPTY; in af9015_get_rc_config()
|
/linux/drivers/media/pci/mantis/ |
H A D | mantis_input.c | 53 dev->map_name = mantis->rc_map_name ? : RC_MAP_EMPTY; in mantis_input_init()
|
/linux/drivers/media/common/siano/ |
H A D | smsir.c | 75 dev->map_name = sms_get_board(board_id)->rc_codes; in sms_ir_init()
|