Lines Matching refs:kc
63 static kstat_ctl_t *kc; /* libkstat cookie */ variable
120 if ((kc = kstat_open()) == NULL) { in main()
275 if ((cnt_ksp = kstat_lookup(kc, device, inst_num, "counters")) in print_evt()
282 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in print_evt()
313 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in print_evt()
357 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in print_dev()
626 if ((cnt_ksp = kstat_lookup(kc, dev_name, in add_dev_node()
634 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in add_dev_node()
708 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in add_all_dev_node()
784 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in modify_evt_node()
904 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in set_evt()
912 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in set_evt()
959 if (kstat_write(kc, cnt_ksp, NULL) == FAIL) { in set_evt()
999 if (kstat_read(kc, cnt_ksp, NULL) == FAIL) { in read_evts()
1060 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in read_r_evt_node()
1186 if (kstat_read(kc, pic_ksp, NULL) == FAIL) { in read_w_evt_node()
1275 if ((new_id = kstat_chain_update(kc)) < 0) { in check_dr_ops()
1293 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in check_dr_ops()
1443 if ((p_ksp = kstat_lookup(kc, dev_name, inst_num, pic)) == NULL) { in find_pic_kstat()
1445 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in find_pic_kstat()