Lines Matching refs:kc
65 static kstat_ctl_t *kc; /* libkstat cookie */ variable
122 if ((kc = kstat_open()) == NULL) { in main()
277 if ((cnt_ksp = kstat_lookup(kc, device, inst_num, "counters")) in print_evt()
284 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in print_evt()
315 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in print_evt()
359 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in print_dev()
628 if ((cnt_ksp = kstat_lookup(kc, dev_name, in add_dev_node()
636 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in add_dev_node()
710 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in add_all_dev_node()
786 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in modify_evt_node()
906 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in set_evt()
914 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in set_evt()
961 if (kstat_write(kc, cnt_ksp, NULL) == FAIL) { in set_evt()
1001 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in read_evts()
1062 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in read_r_evt_node()
1188 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in read_w_evt_node()
1277 if ((new_id = kstat_chain_update(kc)) < 0) { in check_dr_ops()
1295 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in check_dr_ops()
1445 if ((p_ksp = kstat_lookup(kc, dev_name, inst_num, pic)) == NULL) { in find_pic_kstat()
1447 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in find_pic_kstat()