Home
last modified time | relevance | path

Searched refs:map_sz (Results 1 – 25 of 26) sorted by relevance

12

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dmmap.c19 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() local
67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
121 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap()
126 err = munmap(map_mmaped, map_sz); in test_mmap()
132 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap()
138 err = mprotect(map_mmaped, map_sz, PROT_WRITE); in test_mmap()
141 err = mprotect(map_mmaped, map_sz, PROT_EXEC); in test_mmap()
151 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap()
154 err = munmap(p, map_sz); in test_mmap()
166 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
[all …]
H A Dmap_init.c38 static struct test_map_init *setup(enum bpf_map_type map_type, int map_sz, in setup() argument
52 err = bpf_map__set_max_entries(skel->maps.hashmap1, map_sz); in setup()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/core/
H A Drtw_rf.c568 u16 map_sz = 0; in rtw_get_chplan_from_country() local
583 map_sz = CUSTOMIZED_country_chplan_map_sz; in rtw_get_chplan_from_country()
586 map_sz = country_chplan_map_sz; in rtw_get_chplan_from_country()
589 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/efuse/
H A Dhal_efuse.c509 u32 map_sz = 0, full_map_sz = 0; in rtw_efuse_file_map_load() local
512 map_sz = efuse_info->limit_efuse_size; in rtw_efuse_file_map_load()
514 map_sz = efuse_info->log_efuse_size; in rtw_efuse_file_map_load()
516 if (map_sz == 0) { in rtw_efuse_file_map_load()
517 map_sz = MAX_EFUSE_MAP_LEN; in rtw_efuse_file_map_load()
520 full_map_sz = map_sz + efuse_info->version_len; in rtw_efuse_file_map_load()
532 if ((data_len > map_sz) && (data_len <= full_map_sz)) { in rtw_efuse_file_map_load()
533 efuse_file_map2version(efuse_info, mapbuf + map_sz, in rtw_efuse_file_map_load()
536 if (data_len > map_sz) in rtw_efuse_file_map_load()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/efuse/
H A Dhal_efuse.c509 u32 map_sz = 0, full_map_sz = 0; in rtw_efuse_file_map_load() local
512 map_sz = efuse_info->limit_efuse_size; in rtw_efuse_file_map_load()
514 map_sz = efuse_info->log_efuse_size; in rtw_efuse_file_map_load()
516 if (map_sz == 0) { in rtw_efuse_file_map_load()
517 map_sz = MAX_EFUSE_MAP_LEN; in rtw_efuse_file_map_load()
520 full_map_sz = map_sz + efuse_info->version_len; in rtw_efuse_file_map_load()
532 if ((data_len > map_sz) && (data_len <= full_map_sz)) { in rtw_efuse_file_map_load()
533 efuse_file_map2version(efuse_info, mapbuf + map_sz, in rtw_efuse_file_map_load()
536 if (data_len > map_sz) in rtw_efuse_file_map_load()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/core/
H A Drtw_rf.c759 u16 map_sz = 0; in rtw_get_chplan_from_country() local
774 map_sz = CUSTOMIZED_country_chplan_map_sz; in rtw_get_chplan_from_country()
777 map_sz = country_chplan_map_sz; in rtw_get_chplan_from_country()
780 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/core/
H A Drtw_chplan.c1095 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1104 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1110 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1113 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/core/
H A Drtw_chplan.c1095 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1104 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1110 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1113 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/core/
H A Drtw_chplan.c1131 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1140 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1146 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1149 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/
H A Drtw_chplan.c1134 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1143 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1149 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1152 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/core/
H A Drtw_chplan.c1132 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1141 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1147 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1150 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/
H A Drtw_chplan.c1139 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1148 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1154 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1157 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/core/
H A Drtw_rf.c986 u16 map_sz = 0; in rtw_get_chplan_from_country() local
1001 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1004 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
1007 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/
H A Drtw_chplan.c2345 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2354 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2356 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2359 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2362 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/
H A Drtw_chplan.c2376 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2385 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2387 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2390 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2393 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/
H A Drtw_chplan.c2377 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2386 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2388 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2391 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2394 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/firmware/efi/libstub/
H A Dx86-stub.c634 unsigned long map_sz, key, desc_size, buff_size; in exit_boot() local
644 map.map_size = &map_sz; in exit_boot()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dcyttsp4_core.h274 size_t map_sz; member
H A Dcyttsp4_core.c167 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets()
169 si->si_ofs.map_sz = merge_bytes(si->si_data.map_szh, in cyttsp4_si_data_offsets()
505 si->si_ofs.mdata_size = si->si_ofs.map_sz - si->si_ofs.mdata_ofs; in cyttsp4_si_get_mdata()
641 si->si_ofs.map_sz); in cyttsp4_si_put_log_data()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/
H A Drtw_chplan.c2563 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2572 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2574 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2577 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2580 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/
H A Drtw_chplan.c3168 u16 map_sz = 0; in rtw_get_chplan_from_country() local
3177 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
3179 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
3207 map_sz = 1; in rtw_get_chplan_from_country()
3212 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
3216 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/
H A Drtw_chplan.c3168 u16 map_sz = 0; in rtw_get_chplan_from_country() local
3177 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
3179 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
3207 map_sz = 1; in rtw_get_chplan_from_country()
3212 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
3216 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/
H A Drtw_chplan.c2965 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2974 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2976 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2979 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2982 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/
H A Drtw_chplan.c2965 u16 map_sz = 0; in rtw_get_chplan_from_country() local
2974 map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2976 map_sz = rtw_def_module_country_chplan_map(&map); in rtw_get_chplan_from_country()
2979 map_sz = sizeof(country_chplan_map) / sizeof(struct country_chplan); in rtw_get_chplan_from_country()
2982 for (i = 0; i < map_sz; i++) { in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dlibbpf.c1333 size_t map_sz; in bpf_map_mmap_sz() local
1335 map_sz = (size_t)roundup(map->def.value_size, 8) * map->def.max_entries; in bpf_map_mmap_sz()
1336 map_sz = roundup(map_sz, page_sz); in bpf_map_mmap_sz()
1337 return map_sz; in bpf_map_mmap_sz()
1723 size_t map_sz; in bpf_object__init_kconfig_map() local
1735 map_sz = last_ext->kcfg.data_off + last_ext->kcfg.sz; in bpf_object__init_kconfig_map()
1738 NULL, map_sz); in bpf_object__init_kconfig_map()

12