Lines Matching refs:krdc
352 rdc_k_info_t *krdc;
369 krdc = &rdc_k_info[rdcd];
372 if (IS_ENABLED(urdc) || krdc->devices) {
579 rdc_k_info_t *krdc;
624 krdc = &rdc_k_info[i];
635 if (RDC_IS_DISKQ(krdc->group)) {
636 dqp = &krdc->group->diskq;
855 rdc_k_info_t *krdc;
858 krdc = (rdc_k_info_t *)(ksp->ks_private);
868 info_stats->m_maxfbas.value.ul = krdc->maxfbas;
871 info_stats->m_bitmap_writes.value.ul = krdc->bitmap_write;
902 rdc_k_info_t *krdc;
906 krdc = (rdc_k_info_t *)(ksp->ks_private);
907 urdc = &rdc_u_info[krdc->index];
954 rdc_info_stats->s_type_flag.value.ul = krdc->type_flag;
955 rdc_info_stats->s_bitmap_size.value.ul = krdc->bitmap_size;
956 rdc_info_stats->s_disk_status.value.ul = krdc->disk_status;
958 if (krdc->intf) {
959 rdc_info_stats->s_if_if_down.value.ul = krdc->intf->if_down;
961 krdc->intf->rpc_version;
966 if (RDC_IS_MEMQ(krdc->group)) {
969 krdc->group->ra_queue.blocks_hwm;
971 krdc->group->ra_queue.nitems_hwm;
973 krdc->group->ra_queue.throttle_delay;
975 krdc->group->ra_queue.nitems;
977 krdc->group->ra_queue.blocks;
979 } else if (RDC_IS_DISKQ(krdc->group)) {
980 disk_queue *q = &krdc->group->diskq;
982 krdc->group->diskq.blocks_hwm;
984 krdc->group->diskq.nitems_hwm;
986 krdc->group->diskq.throttle_delay;
999 rdc_k_info_t *krdc = &rdc_k_info[index];
1000 rdc_u_info_t *urdc = &rdc_u_info[krdc->index];
1003 if (!krdc->set_kstats) {
1004 krdc->set_kstats = kstat_create(RDC_KSTAT_MODULE, j,
1009 if (!krdc->set_kstats)
1010 cmn_err(CE_NOTE, "!krdc:u_kstat null");
1013 if (krdc->set_kstats) {
1025 krdc->set_kstats->ks_data_size += varsize;
1026 krdc->set_kstats->ks_data = &rdc_info_stats;
1027 krdc->set_kstats->ks_update = rdc_info_stats_update;
1028 krdc->set_kstats->ks_private = &rdc_k_info[j];
1029 kstat_install(krdc->set_kstats);
1034 krdc->io_kstats = kstat_create(RDC_KSTAT_MODULE, j, NULL,
1036 if (krdc->io_kstats) {
1037 krdc->io_kstats->ks_lock = &krdc->kstat_mutex;
1038 kstat_install(krdc->io_kstats);
1040 krdc->bmp_kstats = kstat_create("sndrbmp", j, NULL,
1042 if (krdc->bmp_kstats) {
1043 krdc->bmp_kstats->ks_lock = &krdc->bmp_kstat_mutex;
1044 kstat_install(krdc->bmp_kstats);
1051 rdc_k_info_t *krdc = &rdc_k_info[index];
1053 if (krdc->set_kstats) {
1054 kstat_delete(krdc->set_kstats);
1055 krdc->set_kstats = NULL;
1058 if (krdc->io_kstats) {
1059 kstat_delete(krdc->io_kstats);
1060 krdc->io_kstats = NULL;
1062 if (krdc->bmp_kstats) {
1063 kstat_delete(krdc->bmp_kstats);
1064 krdc->bmp_kstats = NULL;
1070 * Reset the io_kstat structure of the krdc specified
1077 rdc_k_info_t *krdc;
1083 krdc = &rdc_k_info[index];
1084 if (krdc->io_kstats) {
1085 kstat_delete(krdc->io_kstats);
1086 krdc->io_kstats = NULL;
1090 krdc->io_kstats = kstat_create(RDC_KSTAT_MODULE, index, NULL,
1092 if (krdc->io_kstats) {
1093 krdc->io_kstats->ks_lock = &krdc->kstat_mutex;
1094 kstat_install(krdc->io_kstats);
1101 if (krdc->group) {
1102 krdc->group->ra_queue.nitems_hwm = 0;
1103 krdc->group->ra_queue.blocks_hwm = 0;
1104 krdc->group->ra_queue.throttle_delay = 0;