/packages/modules/Connectivity/bpf/headers/include/ |
D | bpf_helpers.h | 259 #define DEFAULT_BPF_MAP_FLAGS(type, num_entries, mapflags) \ argument 261 ((num_entries) < 0 ? BPF_F_NO_PREALLOC : 0) | \ 265 #define DEFINE_BPF_MAP_BASE(the_map, TYPE, keysize, valuesize, num_entries, \ argument 273 .max_entries = ABSOLUTE(num_entries), \ 274 .map_flags = DEFAULT_BPF_MAP_FLAGS(BPF_MAP_TYPE_##TYPE, num_entries, mapflags), \ 350 #define DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, \ argument 354 num_entries, usr, grp, md, selinux, pindir, share, \ 357 BPF_MAP_ASSERT_OK(BPF_MAP_TYPE_##TYPE, (num_entries), (md)); \ 391 #define DEFINE_BPF_MAP_KERNEL_INTERNAL(the_map, TYPE, KeyType, ValueType, num_entries) \ argument 392 DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, AID_ROOT, AID_ROOT, \ [all …]
|
/packages/modules/UprobeStats/src/bpf/headers/include/ |
D | bpf_helpers.h | 234 #define DEFINE_BPF_MAP_BASE(the_map, TYPE, keysize, valuesize, num_entries, \ argument 242 .max_entries = (num_entries), \ 318 #define DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, \ argument 322 num_entries, usr, grp, md, selinux, pindir, share, \ 325 BPF_MAP_ASSERT_OK(BPF_MAP_TYPE_##TYPE, (num_entries), (md)); \ 359 #define DEFINE_BPF_MAP_KERNEL_INTERNAL(the_map, TYPE, KeyType, ValueType, num_entries) \ argument 360 DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, AID_ROOT, AID_ROOT, \ 364 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md) \ argument 365 DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, \ 370 #define DEFINE_BPF_MAP(the_map, TYPE, KeyType, ValueType, num_entries) \ argument [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | client_parser.cc | 250 uint8_t num_entries; in ParseAseCtpNotification() local 258 STREAM_TO_UINT8(num_entries, value); in ParseAseCtpNotification() 260 if (len != kCtpNtfMinLen + (num_entries * kCtpAseEntryMinLen)) { in ParseAseCtpNotification() 265 for (int i = 0; i < num_entries; i++) { in ParseAseCtpNotification() 276 ctp_opcode_map_string[ntf.op], ntf.op, (int)num_entries); in ParseAseCtpNotification() 277 for (size_t i = 0; i < num_entries; i++) { in ParseAseCtpNotification()
|
/packages/modules/Bluetooth/system/gd/common/ |
D | list_map_test.cc | 331 int num_entries = 0xFFFF; // 2^16 = 65535 in TEST() local 335 for (int key = 0; key < num_entries; key++) { in TEST() 340 for (int key = 0; key < num_entries; key++) { in TEST() 345 for (int key = 0; key < num_entries; key++) { in TEST()
|
/packages/modules/Connectivity/bpf/progs/ |
D | netd.c | 41 #define DEFINE_BPF_MAP_NO_NETD(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument 42 DEFINE_BPF_MAP_EXT(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, \ 48 #define DEFINE_BPF_MAP_RO_NETD(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument 49 DEFINE_BPF_MAP_EXT(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, \ 55 #define DEFINE_BPF_MAP_RW_NETD(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument 56 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, \
|
/packages/modules/DnsResolver/ |
D | res_cache.cpp | 971 num_entries = 0; in flush() 991 int num_entries = 0; member 1139 std::string buf = fmt::format("MRU LIST ({:2d}): ", cache->num_entries); in cache_dump_mru_locked() 1186 cache->num_entries += 1; in _cache_add_p() 1188 LOG(DEBUG) << __func__ << ": entry " << e->id << " added (count=" << cache->num_entries << ")"; in _cache_add_p() 1198 LOG(DEBUG) << __func__ << ": entry " << e->id << " removed (count=" << cache->num_entries - 1 in _cache_remove_p() 1204 cache->num_entries -= 1; in _cache_remove_p() 1377 if (cache->num_entries >= cache->get_max_cache_entries()) { in resolv_cache_add() 1379 if (cache->num_entries >= cache->get_max_cache_entries()) { in resolv_cache_add()
|
/packages/modules/Bluetooth/system/stack/connection_manager/ |
D | connection_manager.cc | 128 int num_entries = 0; in accept_list_is_full() local 131 num_entries++; in accept_list_is_full() 135 if (num_entries >= accept_list_size) { in accept_list_is_full()
|
/packages/modules/Nfc/libnfc-nci/src/nfc/nfc/ |
D | nfc_ncif.cc | 1435 uint8_t more, num_entries, xx, *pn; in nfc_ncif_proc_get_routing() local 1440 num_entries = *p++; in nfc_ncif_proc_get_routing() 1441 if (num_entries == 0) return; in nfc_ncif_proc_get_routing() 1447 for (xx = 0; xx < num_entries; xx++) { in nfc_ncif_proc_get_routing() 1448 if ((more == false) && (xx == (num_entries - 1))) status = NFC_STATUS_OK; in nfc_ncif_proc_get_routing()
|