Lines Matching refs:spec
2044 dtrace_speculation_t *spec = &state->dts_speculations[i];
2046 current = spec->dtsp_state;
2057 if (dtrace_cas32((uint32_t *)&spec->dtsp_state,
2084 dtrace_speculation_t *spec;
2098 spec = &state->dts_speculations[which - 1];
2099 src = &spec->dtsp_buffer[cpu];
2103 current = spec->dtsp_state;
2149 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state,
2201 uint32_t rval = dtrace_cas32((uint32_t *)&spec->dtsp_state,
2222 dtrace_speculation_t *spec;
2234 spec = &state->dts_speculations[which - 1];
2235 buf = &spec->dtsp_buffer[cpu];
2238 current = spec->dtsp_state;
2263 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state,
2293 dtrace_speculation_t *spec = &state->dts_speculations[i];
2294 dtrace_buffer_t *src = &spec->dtsp_buffer[cpu];
2299 if (spec->dtsp_state == DTRACESPEC_DISCARDING) {
2304 if (spec->dtsp_state != DTRACESPEC_COMMITTINGMANY)
2331 dtrace_speculation_t *spec = &state->dts_speculations[i];
2333 ASSERT(!spec->dtsp_cleaning);
2335 if (spec->dtsp_state != DTRACESPEC_DISCARDING &&
2336 spec->dtsp_state != DTRACESPEC_COMMITTINGMANY)
2340 spec->dtsp_cleaning = 1;
2355 dtrace_speculation_t *spec = &state->dts_speculations[i];
2358 if (!spec->dtsp_cleaning)
2361 current = spec->dtsp_state;
2367 rv = dtrace_cas32((uint32_t *)&spec->dtsp_state, current, new);
2369 spec->dtsp_cleaning = 0;
2384 dtrace_speculation_t *spec;
2396 spec = &state->dts_speculations[which - 1];
2397 buf = &spec->dtsp_buffer[cpuid];
2400 current = spec->dtsp_state;
2437 } while (dtrace_cas32((uint32_t *)&spec->dtsp_state,
12389 dtrace_speculation_t *spec = state->dts_speculations;
12402 spec[i].dtsp_buffer, DTRACEOPT_SPECSIZE)) != 0)
12439 dtrace_speculation_t *spec;
12480 spec = kmem_zalloc(nspec * sizeof (dtrace_speculation_t), KM_NOSLEEP);
12482 if (spec == NULL) {
12487 state->dts_speculations = spec;
12496 spec[i].dtsp_buffer = buf;
12686 spec = state->dts_speculations;
12687 ASSERT(spec != NULL);
12690 if ((buf = spec[i].dtsp_buffer) == NULL)
12697 kmem_free(spec, nspec * sizeof (dtrace_speculation_t));
12822 dtrace_speculation_t *spec = state->dts_speculations;
12894 dtrace_buffer_free(spec[i].dtsp_buffer);
12920 kmem_free(spec[i].dtsp_buffer, bufsize);
12922 kmem_free(spec, nspec * sizeof (dtrace_speculation_t));
15993 dtrace_speculation_t *spec;
15996 spec = &state->dts_speculations[j];
15997 buf = &spec->dtsp_buffer[i];