Lines Matching +full:te +full:- +full:source
1 /*-
4 * Redistribution and use in source and binary forms, with or without
7 * 1. Redistributions of source code must retain the above copyright
97 wk = TAILQ_FIRST(&tf->kfrwk_testq);
99 wk->kt_data.tot_threads_running--;
100 tf->kfrwk_waiting--;
101 memcpy(&kt_data, &wk->kt_data, sizeof(kt_data));
102 if (wk->kt_data.tot_threads_running == 0) {
103 TAILQ_REMOVE(&tf->kfrwk_testq, wk, next);
107 taskqueue_enqueue(tf->kfrwk_tq, &tf->kfrwk_que);
109 if (wk->kt_e) {
110 ktf = wk->kt_e->func;
122 atomic_add_int(&tf->kfrwk_waiting, 1);
178 struct kern_test_list *li, *te = NULL;
197 if (strcmp(li->name, kt.name) == 0) {
198 te = li;
202 if (te == NULL) {
222 kte->kt_e = li;
223 memcpy(&kte->kt_data, &kt, sizeof(kt));
235 struct kern_test_list *li, *te = NULL;
242 te = malloc(sizeof(struct kern_test_list), M_KTFRWK, M_WAITOK);
246 if (strcmp(li->name, name) == 0) {
248 free(te, M_KTFRWK);
253 te->func = func;
254 strcpy(te->name, name);
255 TAILQ_INSERT_TAIL(&kfrwk.kfrwk_testlist, te, next);
264 struct kern_test_list *li, *te = NULL;
271 if (strcmp(li->name, name) == 0) {
272 te = li;
276 if (te == NULL) {
281 /* We are busy executing something -- can't unload */
291 TAILQ_REMOVE(&kfrwk.kfrwk_testlist, te, next);
292 memset(te, 0, sizeof(struct kern_test_list));
293 free(te, M_KTFRWK);