Lines Matching refs:c_list

1151 cache_find_subclass(class_lst_t *c_list, char *subclass)
1155 if (c_list == NULL)
1158 sc_list = c_list->cl_subclass_list;
1175 class_lst_t *c_list;
1183 c_list = class_hash[index];
1184 while (c_list != NULL) {
1185 if (strcmp(class, c_list->cl_name) == 0) {
1188 c_list = c_list->cl_next;
1191 return (c_list);
1195 cache_insert_subclass(class_lst_t *c_list, char **subclass_names,
1202 if ((sc_list = cache_find_subclass(c_list, subclass_names[i]))
1218 sc_list->sl_next = c_list->cl_subclass_list;
1219 c_list->cl_subclass_list = sc_list;
1230 class_lst_t *c_list;
1241 if ((c_list = cache_find_class(shp, class)) == NULL) {
1243 c_list = (class_lst_t *)calloc(1, sizeof (class_lst_t));
1244 if (c_list == NULL) {
1247 c_list->cl_name = strdup(class);
1248 if (c_list->cl_name == NULL) {
1249 free(c_list);
1253 c_list->cl_subclass_list = (subclass_lst_t *)
1255 if (c_list->cl_subclass_list == NULL) {
1256 free(c_list->cl_name);
1257 free(c_list);
1260 c_list->cl_subclass_list->sl_name = strdup(EC_SUB_ALL);
1261 if (c_list->cl_subclass_list->sl_name == NULL) {
1262 free(c_list->cl_subclass_list);
1263 free(c_list->cl_name);
1264 free(c_list);
1267 c_list->cl_next = SH_CLASS_HASH(shp)[CLASS_HASH(class)];
1268 SH_CLASS_HASH(shp)[CLASS_HASH(class)] = c_list;
1273 if (cache_insert_subclass(c_list, subclass_names, subclass_num,
1284 class_lst_t *c_list;
1288 c_list = SH_CLASS_HASH(shp)[i];
1289 while (c_list != NULL) {
1290 sc_list = c_list->cl_subclass_list;
1295 c_list = c_list->cl_next;
1303 class_lst_t *c_list;
1311 if ((c_list = cache_find_class(shp, class)) == NULL) {
1315 sc_list = c_list->cl_subclass_list;