Lines Matching defs:ksp
169 kstat_t *ksp;
177 ksp = kstat_hold_byname(drv, ppa, softmac->smac_devname, ALL_ZONES);
178 if (ksp != NULL) {
179 KSTAT_ENTER(ksp);
181 if ((ksp->ks_data != NULL) &&
182 (ksp->ks_type == KSTAT_TYPE_NAMED)) {
186 if (KSTAT_UPDATE(ksp, KSTAT_READ) == 0)
187 return (ksp);
190 KSTAT_EXIT(ksp);
191 kstat_rele(ksp);
197 softmac_rele_dev_kstat(kstat_t *ksp)
199 KSTAT_EXIT(ksp);
200 kstat_rele(ksp);
207 softmac_get_kstat(kstat_t *ksp, char *name, uint64_t *valp)
219 for (i = 0, knp = KSTAT_NAMED_PTR(ksp); i < ksp->ks_ndata; i++, knp++) {
262 kstat_t *ksp;
266 if ((ksp = softmac_hold_dev_kstat(softmac)) == NULL)
282 if ((ret = softmac_get_kstat(ksp, ssip->ssi_name,
284 ret = softmac_get_kstat(ksp, ssip->ssi_alias,
305 if ((ret = softmac_get_kstat(ksp,
307 ret = softmac_get_kstat(ksp,
319 softmac_rele_dev_kstat(ksp);