Lines Matching defs:map
978 struct spdk_sock_map map = {
979 .entries = STAILQ_HEAD_INITIALIZER(map.entries),
991 test_id = spdk_sock_map_find_free(&map);
995 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1001 rc = spdk_sock_map_insert(&map, 1, group_1);
1005 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1010 test_id = spdk_sock_map_find_free(&map);
1014 spdk_sock_map_release(&map, 1);
1015 test_id = spdk_sock_map_find_free(&map);
1018 spdk_sock_map_cleanup(&map);
1022 rc = spdk_sock_map_insert(&map, 1, group_1);
1024 CU_ASSERT(STAILQ_FIRST(&map.entries)->ref == 1);
1025 rc = spdk_sock_map_insert(&map, 1, group_1);
1027 CU_ASSERT(STAILQ_FIRST(&map.entries)->ref == 2);
1030 spdk_sock_map_release(&map, 1);
1032 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1037 spdk_sock_map_release(&map, 1);
1039 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1043 spdk_sock_map_cleanup(&map);
1047 rc = spdk_sock_map_insert(&map, 1, group_1);
1051 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1055 rc = spdk_sock_map_insert(&map, 2, group_2);
1059 rc = spdk_sock_map_lookup(&map, 2, &test_group, NULL);
1063 spdk_sock_map_cleanup(&map);
1067 rc = spdk_sock_map_insert(&map, 1, group_1);
1071 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1075 rc = spdk_sock_map_insert(&map, 1, group_2);
1079 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1083 spdk_sock_map_cleanup(&map);
1087 rc = spdk_sock_map_insert(&map, 1, NULL);
1091 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1095 test_id = spdk_sock_map_find_free(&map);
1098 rc = spdk_sock_map_insert(&map, test_id, group_1);
1102 rc = spdk_sock_map_lookup(&map, test_id, &test_group, NULL);
1106 spdk_sock_map_cleanup(&map);
1111 rc = spdk_sock_map_lookup(&map, 1, &test_group, group_1);
1116 rc = spdk_sock_map_lookup(&map, 1, &test_group, NULL);
1120 test_id = spdk_sock_map_find_free(&map);
1123 rc = spdk_sock_map_insert(&map, 1, group_2);
1126 rc = spdk_sock_map_insert(&map, 1, group_1);
1129 spdk_sock_map_cleanup(&map);