Lines Matching refs:ksp

80 	kstat_t *ksp;  in sndr_discover()  local
87 for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next) { in sndr_discover()
96 if (strcmp(ksp->ks_module, RDC_KSTAT_MODULE) != 0 || in sndr_discover()
97 strcmp(ksp->ks_name, RDC_KSTAT_INFO) != 0) { in sndr_discover()
101 if (kstat_read(kc, ksp, NULL) == -1) in sndr_discover()
108 if (sndr_validate(ksp)) in sndr_discover()
124 tst_vname = kstat_value(ksp, RDC_IKSTAT_FILE); in sndr_discover()
125 tst_inst = ksp->ks_instance; in sndr_discover()
136 kinst = ksp->ks_instance; in sndr_discover()
141 sndrstat->pre_set = kstat_retrieve(kc, ksp); in sndr_discover()
243 kstat_t *ksp = NULL; in sndr_update() local
269 ksp = kstat_lookup(kc, RDC_KSTAT_MODULE, kinst, kname); in sndr_update()
271 if ((cur->cur_set = kstat_retrieve(kc, ksp)) == NULL) in sndr_update()
290 ksp = kstat_lookup(kc, RDC_KSTAT_BMPNAME, kinst, kname); in sndr_update()
292 if ((cur->cur_bmp = kstat_retrieve(kc, ksp)) == NULL) in sndr_update()
302 ksp = kstat_lookup(kc, RDC_KSTAT_MODULE, kinst, kname); in sndr_update()
304 if ((cur->cur_sec = kstat_retrieve(kc, ksp)) == NULL) in sndr_update()
639 sndr_validate(kstat_t *ksp) in sndr_validate() argument
641 if (! kstat_value(ksp, RDC_IKSTAT_FILE) || in sndr_validate()
642 ! kstat_value(ksp, RDC_IKSTAT_FLAGS) || in sndr_validate()
643 ! kstat_value(ksp, RDC_IKSTAT_SYNCFLAGS) || in sndr_validate()
644 ! kstat_value(ksp, RDC_IKSTAT_BMPFLAGS) || in sndr_validate()
645 ! kstat_value(ksp, RDC_IKSTAT_VOLSIZE) || in sndr_validate()
646 ! kstat_value(ksp, RDC_IKSTAT_BITSSET) || in sndr_validate()
647 ! kstat_value(ksp, RDC_IKSTAT_QUEUE_TYPE) || in sndr_validate()
648 ! kstat_value(ksp, RDC_IKSTAT_ASYNC_ITEMS) || in sndr_validate()
649 ! kstat_value(ksp, RDC_IKSTAT_ASYNC_BLOCKS) || in sndr_validate()
650 ! kstat_value(ksp, RDC_IKSTAT_ASYNC_ITEM_HWM) || in sndr_validate()
651 ! kstat_value(ksp, RDC_IKSTAT_ASYNC_BLOCK_HWM)) in sndr_validate()
658 getType(kstat_t *ksp, char *vtype) in getType() argument
662 set_flags = kstat_value(ksp, RDC_IKSTAT_FLAGS); in getType()
671 getStat(kstat_t *ksp, char *vstat) in getStat() argument
677 set_flags = kstat_value(ksp, RDC_IKSTAT_FLAGS); in getStat()
678 syn_flags = kstat_value(ksp, RDC_IKSTAT_SYNCFLAGS); in getStat()
679 bmp_flags = kstat_value(ksp, RDC_IKSTAT_BMPFLAGS); in getStat()
723 getQueue(kstat_t *ksp, char *vqueue) in getQueue() argument
729 qtype = kstat_value(ksp, RDC_IKSTAT_QUEUE_TYPE); in getQueue()
739 getSyncNeeded(kstat_t *ksp) in getSyncNeeded() argument
745 volsize = kstat_value(ksp, RDC_IKSTAT_VOLSIZE); in getSyncNeeded()
746 bitsset = kstat_value(ksp, RDC_IKSTAT_BITSSET); in getSyncNeeded()
785 sndr_vol_selected(kstat_t *ksp) in sndr_vol_selected() argument
795 vn = kstat_value(ksp, RDC_IKSTAT_FILE); in sndr_vol_selected()
804 vn = kstat_value(ksp, RDC_IKSTAT_FILE); in sndr_vol_selected()
805 vh = kstat_value(ksp, RDC_IKSTAT_PRIMARY_HOST); in sndr_vol_selected()
812 vn = kstat_value(ksp, RDC_IKSTAT_SECFILE); in sndr_vol_selected()
813 vh = kstat_value(ksp, RDC_IKSTAT_SECONDARY_HOST); in sndr_vol_selected()