Lines Matching defs:ftd

134 	ftrace_data_t *ftd;
143 ftd = &cpu[cpuid]->cpu_ftrace;
144 if (ftd->ftd_state & FTRACE_READY)
152 ftd->ftd_state |= FTRACE_READY;
153 ASSERT(!(ftd->ftd_state & FTRACE_ENABLED));
164 ftrace_data_t *ftd;
170 ftd = &cpu[cpuid]->cpu_ftrace;
171 if (!(ftd->ftd_state & FTRACE_READY))
182 if (ftd->ftd_first != NULL) {
183 kmem_free(ftd->ftd_first,
186 bzero(ftd, sizeof (ftrace_data_t));
192 ftrace_data_t *ftd;
198 ftd = &cpu[cpuid]->cpu_ftrace;
199 if (ftd->ftd_state & FTRACE_READY) {
200 if (ftd->ftd_first == NULL) {
207 if (ftd->ftd_first != NULL) {
217 ftd->ftd_first = ptrs;
218 ftd->ftd_last = ptrs + (ftrace_nent - 1);
219 ftd->ftd_cur = ptrs;
222 ftd->ftd_state |= FTRACE_ENABLED;
360 ftrace_data_t *ftd;
369 ftd = &cp->cpu_ftrace;
371 if (!(ftd->ftd_state & FTRACE_ENABLED)) {
376 r = ftd->ftd_cur;
382 if (r++ == ftd->ftd_last)
383 r = ftd->ftd_first;
384 ftd->ftd_cur = r;
394 ftrace_data_t *ftd;
403 ftd = &cp->cpu_ftrace;
405 if (!(ftd->ftd_state & FTRACE_ENABLED)) {
410 r = ftd->ftd_cur;
417 if (r++ == ftd->ftd_last)
418 r = ftd->ftd_first;
419 ftd->ftd_cur = r;
429 ftrace_data_t *ftd;
438 ftd = &cp->cpu_ftrace;
440 if (!(ftd->ftd_state & FTRACE_ENABLED)) {
445 r = ftd->ftd_cur;
453 if (r++ == ftd->ftd_last)
454 r = ftd->ftd_first;
455 ftd->ftd_cur = r;
465 ftrace_data_t *ftd;
474 ftd = &cp->cpu_ftrace;
476 if (!(ftd->ftd_state & FTRACE_ENABLED)) {
481 r = ftd->ftd_cur;
490 if (r++ == ftd->ftd_last)
491 r = ftd->ftd_first;
492 ftd->ftd_cur = r;
503 ftrace_data_t *ftd;
509 ftd = &cp->cpu_ftrace;
511 if (!(ftd->ftd_state & FTRACE_ENABLED)) {
516 r = ftd->ftd_cur;
525 if (r++ == ftd->ftd_last)
526 r = ftd->ftd_first;
527 ftd->ftd_cur = r;