Lines Matching refs:entry

204 static bool interop_database_remove_(interop_db_entry_t* entry);
205 static bool interop_database_match(interop_db_entry_t* entry,
406 interop_db_entry_t* entry = (interop_db_entry_t*)data; in interop_free_entry_() local
407 osi_free(entry); in interop_free_entry_()
656 static bool interop_database_match(interop_db_entry_t* entry, in interop_database_match() argument
659 log::assert_that(entry != nullptr, "assert failed: entry != nullptr"); in interop_database_match()
673 if (entry->bl_type != db_entry->bl_type) { in interop_database_match()
680 if (entry->bl_entry_type != db_entry->bl_entry_type) { in interop_database_match()
688 interop_addr_entry_t* src = &entry->entry_type.addr_entry; in interop_database_match()
700 interop_name_entry_t* src = &entry->entry_type.name_entry; in interop_database_match()
710 interop_manufacturer_t* src = &entry->entry_type.mnfr_entry; in interop_database_match()
720 interop_hid_multitouch_t* src = &entry->entry_type.vnr_pdt_entry; in interop_database_match()
731 interop_hid_ssr_max_lat_t* src = &entry->entry_type.ssr_max_lat_entry; in interop_database_match()
742 interop_version_t* src = &entry->entry_type.version_entry; in interop_database_match()
751 interop_lmp_version_t* src = &entry->entry_type.lmp_version_entry; in interop_database_match()
761 interop_addr_range_entry_t* src = &entry->entry_type.addr_range_entry; in interop_database_match()
789 static bool interop_database_remove_(interop_db_entry_t* entry) { in interop_database_remove_() argument
793 entry, &ret_entry, in interop_database_remove_()
804 return interop_config_add_or_remove(entry, false); in interop_database_remove_()
941 interop_db_entry_t* entry = in load_to_database() local
943 entry->bl_type = INTEROP_BL_TYPE_ADDR; in load_to_database()
944 entry->bl_entry_type = entry_type; in load_to_database()
945 entry->entry_type.addr_entry.addr = addr; in load_to_database()
946 entry->entry_type.addr_entry.feature = (interop_feature_t)feature; in load_to_database()
947 entry->entry_type.addr_entry.length = len; in load_to_database()
948 interop_database_add_(entry, false); in load_to_database()
955 interop_db_entry_t* entry = in load_to_database() local
957 entry->bl_type = INTEROP_BL_TYPE_NAME; in load_to_database()
958 entry->bl_entry_type = entry_type; in load_to_database()
959 strlcpy(entry->entry_type.name_entry.name, key, in load_to_database()
960 sizeof(entry->entry_type.name_entry.name)); in load_to_database()
961 entry->entry_type.name_entry.feature = (interop_feature_t)feature; in load_to_database()
962 entry->entry_type.name_entry.length = strlen(key); in load_to_database()
963 interop_database_add_(entry, false); in load_to_database()
976 interop_db_entry_t* entry = in load_to_database() local
978 entry->bl_type = INTEROP_BL_TYPE_MANUFACTURE; in load_to_database()
979 entry->bl_entry_type = entry_type; in load_to_database()
980 entry->entry_type.mnfr_entry.feature = (interop_feature_t)feature; in load_to_database()
981 entry->entry_type.mnfr_entry.manufacturer = manufacturer; in load_to_database()
982 interop_database_add_(entry, false); in load_to_database()
1001 interop_db_entry_t* entry = in load_to_database() local
1003 entry->bl_type = INTEROP_BL_TYPE_VNDR_PRDT; in load_to_database()
1004 entry->bl_entry_type = entry_type; in load_to_database()
1005 entry->entry_type.vnr_pdt_entry.feature = (interop_feature_t)feature; in load_to_database()
1006 entry->entry_type.vnr_pdt_entry.vendor_id = vendor_id; in load_to_database()
1007 entry->entry_type.vnr_pdt_entry.product_id = product_id; in load_to_database()
1008 interop_database_add_(entry, false); in load_to_database()
1049 interop_db_entry_t* entry = in load_to_database() local
1051 entry->bl_type = INTEROP_BL_TYPE_SSR_MAX_LAT; in load_to_database()
1052 entry->bl_entry_type = entry_type; in load_to_database()
1053 entry->entry_type.ssr_max_lat_entry.feature = (interop_feature_t)feature; in load_to_database()
1054 entry->entry_type.ssr_max_lat_entry.addr = addr; in load_to_database()
1055 entry->entry_type.ssr_max_lat_entry.max_lat = max_lat; in load_to_database()
1056 interop_database_add_(entry, false); in load_to_database()
1067 interop_db_entry_t* entry = in load_to_database() local
1069 entry->bl_type = INTEROP_BL_TYPE_VERSION; in load_to_database()
1070 entry->bl_entry_type = entry_type; in load_to_database()
1071 entry->entry_type.version_entry.feature = (interop_feature_t)feature; in load_to_database()
1072 entry->entry_type.version_entry.version = version; in load_to_database()
1073 interop_database_add_(entry, false); in load_to_database()
1115 interop_db_entry_t* entry = in load_to_database() local
1117 entry->bl_type = INTEROP_BL_TYPE_LMP_VERSION; in load_to_database()
1118 entry->bl_entry_type = entry_type; in load_to_database()
1119 entry->entry_type.lmp_version_entry.feature = (interop_feature_t)feature; in load_to_database()
1120 entry->entry_type.lmp_version_entry.addr = addr; in load_to_database()
1121 entry->entry_type.lmp_version_entry.lmp_ver = lmp_ver; in load_to_database()
1122 entry->entry_type.lmp_version_entry.lmp_sub_ver = lmp_sub_ver; in load_to_database()
1123 interop_database_add_(entry, false); in load_to_database()
1143 interop_db_entry_t* entry = in load_to_database() local
1145 entry->bl_type = INTEROP_BL_TYPE_ADDR_RANGE; in load_to_database()
1146 entry->bl_entry_type = entry_type; in load_to_database()
1147 entry->entry_type.addr_range_entry.addr_start = addr_start; in load_to_database()
1148 entry->entry_type.addr_range_entry.addr_end = addr_end; in load_to_database()
1149 entry->entry_type.addr_range_entry.feature = (interop_feature_t)feature; in load_to_database()
1150 interop_database_add_(entry, false); in load_to_database()
1170 for (const entry_t& entry : sec.entries) { in load_config() local
1171 load_to_database(feature, entry.key.c_str(), entry.value.c_str(), in load_config()
1183 for (const entry_t& entry : sec.entries) { in load_config() local
1184 load_to_database(feature, entry.key.c_str(), entry.value.c_str(), in load_config()
1209 interop_db_entry_t* entry = in interop_database_add_addr() local
1211 entry->bl_type = INTEROP_BL_TYPE_ADDR; in interop_database_add_addr()
1212 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_addr()
1213 memcpy(&entry->entry_type.addr_entry.addr, addr, length); in interop_database_add_addr()
1214 entry->entry_type.addr_entry.feature = (interop_feature_t)feature; in interop_database_add_addr()
1215 entry->entry_type.addr_entry.length = length; in interop_database_add_addr()
1216 interop_database_add_(entry, true); in interop_database_add_addr()
1225 interop_db_entry_t* entry = in interop_database_add_name() local
1227 entry->bl_type = INTEROP_BL_TYPE_NAME; in interop_database_add_name()
1228 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_name()
1229 strlcpy(entry->entry_type.name_entry.name, name, in interop_database_add_name()
1230 sizeof(entry->entry_type.name_entry.name)); in interop_database_add_name()
1231 entry->entry_type.name_entry.feature = (interop_feature_t)feature; in interop_database_add_name()
1232 entry->entry_type.name_entry.length = name_length; in interop_database_add_name()
1233 interop_database_add_(entry, true); in interop_database_add_name()
1238 interop_db_entry_t* entry = in interop_database_add_manufacturer() local
1240 entry->bl_type = INTEROP_BL_TYPE_MANUFACTURE; in interop_database_add_manufacturer()
1241 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_manufacturer()
1242 entry->entry_type.mnfr_entry.feature = feature; in interop_database_add_manufacturer()
1243 entry->entry_type.mnfr_entry.manufacturer = manufacturer; in interop_database_add_manufacturer()
1244 interop_database_add_(entry, true); in interop_database_add_manufacturer()
1249 interop_db_entry_t* entry = in interop_database_add_vndr_prdt() local
1251 entry->bl_type = INTEROP_BL_TYPE_VNDR_PRDT; in interop_database_add_vndr_prdt()
1252 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_vndr_prdt()
1253 entry->entry_type.vnr_pdt_entry.feature = (interop_feature_t)feature; in interop_database_add_vndr_prdt()
1254 entry->entry_type.vnr_pdt_entry.vendor_id = vendor_id; in interop_database_add_vndr_prdt()
1255 entry->entry_type.vnr_pdt_entry.product_id = product_id; in interop_database_add_vndr_prdt()
1256 interop_database_add_(entry, true); in interop_database_add_vndr_prdt()
1264 interop_db_entry_t* entry = in interop_database_add_addr_max_lat() local
1266 entry->bl_type = INTEROP_BL_TYPE_SSR_MAX_LAT; in interop_database_add_addr_max_lat()
1267 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_addr_max_lat()
1268 entry->entry_type.ssr_max_lat_entry.addr = *addr; in interop_database_add_addr_max_lat()
1269 entry->entry_type.ssr_max_lat_entry.feature = feature; in interop_database_add_addr_max_lat()
1270 entry->entry_type.ssr_max_lat_entry.max_lat = max_lat; in interop_database_add_addr_max_lat()
1271 interop_database_add_(entry, true); in interop_database_add_addr_max_lat()
1276 interop_db_entry_t* entry = in interop_database_add_version() local
1278 entry->bl_type = INTEROP_BL_TYPE_VERSION; in interop_database_add_version()
1279 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_version()
1280 entry->entry_type.version_entry.feature = (interop_feature_t)feature; in interop_database_add_version()
1281 entry->entry_type.version_entry.version = version; in interop_database_add_version()
1282 interop_database_add_(entry, true); in interop_database_add_version()
1291 interop_db_entry_t* entry = in interop_database_add_addr_lmp_version() local
1293 entry->bl_type = INTEROP_BL_TYPE_LMP_VERSION; in interop_database_add_addr_lmp_version()
1294 entry->bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_add_addr_lmp_version()
1295 entry->entry_type.lmp_version_entry.addr = *addr; in interop_database_add_addr_lmp_version()
1296 entry->entry_type.lmp_version_entry.feature = feature; in interop_database_add_addr_lmp_version()
1297 entry->entry_type.lmp_version_entry.lmp_ver = lmp_ver; in interop_database_add_addr_lmp_version()
1298 entry->entry_type.lmp_version_entry.lmp_sub_ver = lmp_sub_ver; in interop_database_add_addr_lmp_version()
1299 interop_database_add_(entry, true); in interop_database_add_addr_lmp_version()
1304 interop_db_entry_t entry; in interop_database_match_manufacturer() local
1306 entry.bl_type = INTEROP_BL_TYPE_MANUFACTURE; in interop_database_match_manufacturer()
1307 entry.entry_type.mnfr_entry.feature = feature; in interop_database_match_manufacturer()
1308 entry.entry_type.mnfr_entry.manufacturer = manufacturer; in interop_database_match_manufacturer()
1311 &entry, NULL, in interop_database_match_manufacturer()
1329 interop_db_entry_t entry; in interop_database_match_name() local
1331 entry.bl_type = INTEROP_BL_TYPE_NAME; in interop_database_match_name()
1332 strlcpy(entry.entry_type.name_entry.name, trim(trim_name), KEY_MAX_LENGTH); in interop_database_match_name()
1333 entry.entry_type.name_entry.feature = (interop_feature_t)feature; in interop_database_match_name()
1334 entry.entry_type.name_entry.length = strlen(entry.entry_type.name_entry.name); in interop_database_match_name()
1337 &entry, NULL, in interop_database_match_name()
1352 interop_db_entry_t entry; in interop_database_match_addr() local
1354 entry.bl_type = INTEROP_BL_TYPE_ADDR; in interop_database_match_addr()
1355 entry.entry_type.addr_entry.addr = *addr; in interop_database_match_addr()
1356 entry.entry_type.addr_entry.feature = (interop_feature_t)feature; in interop_database_match_addr()
1357 entry.entry_type.addr_entry.length = sizeof(RawAddress); in interop_database_match_addr()
1360 &entry, NULL, in interop_database_match_addr()
1368 entry.bl_type = INTEROP_BL_TYPE_ADDR_RANGE; in interop_database_match_addr()
1369 entry.bl_entry_type = INTEROP_ENTRY_TYPE_STATIC; in interop_database_match_addr()
1370 entry.entry_type.addr_range_entry.addr_start = *addr; in interop_database_match_addr()
1371 entry.entry_type.addr_range_entry.feature = (interop_feature_t)feature; in interop_database_match_addr()
1373 if (interop_database_match(&entry, NULL, in interop_database_match_addr()
1385 interop_db_entry_t entry; in interop_database_match_vndr_prdt() local
1387 entry.bl_type = INTEROP_BL_TYPE_VNDR_PRDT; in interop_database_match_vndr_prdt()
1389 entry.entry_type.vnr_pdt_entry.feature = (interop_feature_t)feature; in interop_database_match_vndr_prdt()
1390 entry.entry_type.vnr_pdt_entry.vendor_id = vendor_id; in interop_database_match_vndr_prdt()
1391 entry.entry_type.vnr_pdt_entry.product_id = product_id; in interop_database_match_vndr_prdt()
1393 &entry, NULL, in interop_database_match_vndr_prdt()
1409 interop_db_entry_t entry; in interop_database_match_addr_get_max_lat() local
1412 entry.bl_type = INTEROP_BL_TYPE_SSR_MAX_LAT; in interop_database_match_addr_get_max_lat()
1414 entry.entry_type.ssr_max_lat_entry.feature = feature; in interop_database_match_addr_get_max_lat()
1415 entry.entry_type.ssr_max_lat_entry.addr = *addr; in interop_database_match_addr_get_max_lat()
1416 entry.entry_type.ssr_max_lat_entry.feature = feature; in interop_database_match_addr_get_max_lat()
1418 &entry, &ret_entry, in interop_database_match_addr_get_max_lat()
1432 interop_db_entry_t entry; in interop_database_match_version() local
1434 entry.bl_type = INTEROP_BL_TYPE_VERSION; in interop_database_match_version()
1436 entry.entry_type.version_entry.feature = (interop_feature_t)feature; in interop_database_match_version()
1437 entry.entry_type.version_entry.version = version; in interop_database_match_version()
1439 &entry, NULL, in interop_database_match_version()
1455 interop_db_entry_t entry; in interop_database_match_addr_get_lmp_ver() local
1458 entry.bl_type = INTEROP_BL_TYPE_LMP_VERSION; in interop_database_match_addr_get_lmp_ver()
1460 entry.entry_type.lmp_version_entry.feature = feature; in interop_database_match_addr_get_lmp_ver()
1461 entry.entry_type.lmp_version_entry.addr = *addr; in interop_database_match_addr_get_lmp_ver()
1462 entry.entry_type.lmp_version_entry.feature = feature; in interop_database_match_addr_get_lmp_ver()
1464 &entry, &ret_entry, in interop_database_match_addr_get_lmp_ver()
1481 interop_db_entry_t entry; in interop_database_remove_name() local
1483 entry.bl_type = INTEROP_BL_TYPE_NAME; in interop_database_remove_name()
1484 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_name()
1485 strlcpy(entry.entry_type.name_entry.name, name, 20); in interop_database_remove_name()
1486 entry.entry_type.name_entry.feature = (interop_feature_t)feature; in interop_database_remove_name()
1487 entry.entry_type.name_entry.length = strlen(entry.entry_type.name_entry.name); in interop_database_remove_name()
1488 if (interop_database_remove_(&entry)) { in interop_database_remove_name()
1499 interop_db_entry_t entry; in interop_database_remove_manufacturer() local
1501 entry.bl_type = INTEROP_BL_TYPE_MANUFACTURE; in interop_database_remove_manufacturer()
1502 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_manufacturer()
1503 entry.entry_type.mnfr_entry.feature = feature; in interop_database_remove_manufacturer()
1504 entry.entry_type.mnfr_entry.manufacturer = manufacturer; in interop_database_remove_manufacturer()
1505 if (interop_database_remove_(&entry)) { in interop_database_remove_manufacturer()
1519 interop_db_entry_t entry; in interop_database_remove_addr() local
1521 entry.bl_type = INTEROP_BL_TYPE_ADDR; in interop_database_remove_addr()
1522 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_addr()
1523 entry.entry_type.addr_entry.addr = *addr; in interop_database_remove_addr()
1524 entry.entry_type.addr_entry.feature = (interop_feature_t)feature; in interop_database_remove_addr()
1525 entry.entry_type.addr_entry.length = sizeof(RawAddress); in interop_database_remove_addr()
1526 if (interop_database_remove_(&entry)) { in interop_database_remove_addr()
1540 interop_db_entry_t* entry = in interop_database_remove_feature() local
1542 log::assert_that(entry != nullptr, "assert failed: entry != nullptr"); in interop_database_remove_feature()
1545 if (entry->bl_entry_type == INTEROP_ENTRY_TYPE_DYNAMIC) { in interop_database_remove_feature()
1546 switch (entry->bl_type) { in interop_database_remove_feature()
1548 if (entry->entry_type.addr_entry.feature == feature) { in interop_database_remove_feature()
1553 if (entry->entry_type.name_entry.feature == feature) { in interop_database_remove_feature()
1558 if (entry->entry_type.mnfr_entry.feature == feature) { in interop_database_remove_feature()
1563 if (entry->entry_type.vnr_pdt_entry.feature == feature) { in interop_database_remove_feature()
1568 if (entry->entry_type.ssr_max_lat_entry.feature == feature) { in interop_database_remove_feature()
1573 if (entry->entry_type.version_entry.feature == feature) { in interop_database_remove_feature()
1578 if (entry->entry_type.lmp_version_entry.feature == feature) { in interop_database_remove_feature()
1591 list_remove(interop_list, (void*)entry); in interop_database_remove_feature()
1610 interop_db_entry_t entry; in interop_database_remove_vndr_prdt() local
1612 entry.bl_type = INTEROP_BL_TYPE_VNDR_PRDT; in interop_database_remove_vndr_prdt()
1613 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_vndr_prdt()
1615 entry.entry_type.vnr_pdt_entry.feature = (interop_feature_t)feature; in interop_database_remove_vndr_prdt()
1616 entry.entry_type.vnr_pdt_entry.vendor_id = vendor_id; in interop_database_remove_vndr_prdt()
1617 entry.entry_type.vnr_pdt_entry.product_id = product_id; in interop_database_remove_vndr_prdt()
1619 if (interop_database_remove_(&entry)) { in interop_database_remove_vndr_prdt()
1632 interop_db_entry_t entry; in interop_database_remove_addr_max_lat() local
1634 entry.bl_type = INTEROP_BL_TYPE_SSR_MAX_LAT; in interop_database_remove_addr_max_lat()
1635 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_addr_max_lat()
1637 entry.entry_type.ssr_max_lat_entry.addr = *addr; in interop_database_remove_addr_max_lat()
1638 entry.entry_type.ssr_max_lat_entry.feature = feature; in interop_database_remove_addr_max_lat()
1639 entry.entry_type.ssr_max_lat_entry.max_lat = max_lat; in interop_database_remove_addr_max_lat()
1641 if (interop_database_remove_(&entry)) { in interop_database_remove_addr_max_lat()
1651 interop_db_entry_t entry; in interop_database_remove_version() local
1653 entry.bl_type = INTEROP_BL_TYPE_VERSION; in interop_database_remove_version()
1654 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_version()
1656 entry.entry_type.version_entry.feature = (interop_feature_t)feature; in interop_database_remove_version()
1657 entry.entry_type.version_entry.version = version; in interop_database_remove_version()
1659 if (interop_database_remove_(&entry)) { in interop_database_remove_version()
1672 interop_db_entry_t entry; in interop_database_remove_addr_lmp_version() local
1674 entry.bl_type = INTEROP_BL_TYPE_LMP_VERSION; in interop_database_remove_addr_lmp_version()
1675 entry.bl_entry_type = INTEROP_ENTRY_TYPE_DYNAMIC; in interop_database_remove_addr_lmp_version()
1677 entry.entry_type.lmp_version_entry.addr = *addr; in interop_database_remove_addr_lmp_version()
1678 entry.entry_type.lmp_version_entry.feature = feature; in interop_database_remove_addr_lmp_version()
1679 entry.entry_type.lmp_version_entry.lmp_ver = lmp_ver; in interop_database_remove_addr_lmp_version()
1680 entry.entry_type.lmp_version_entry.lmp_sub_ver = lmp_sub_ver; in interop_database_remove_addr_lmp_version()
1682 if (interop_database_remove_(&entry)) { in interop_database_remove_addr_lmp_version()