Lines Matching refs:counts
111 u_int counts[CH_TYPES]; member
230 ch->counts[i]) in ch_elem_to_typecode()
317 ch->counts[CHET_MT] = in ch_readconfig()
321 ch->counts[CHET_ST] = in ch_readconfig()
325 ch->counts[CHET_IE] = in ch_readconfig()
329 ch->counts[CHET_DT] = in ch_readconfig()
333 ch->counts[CHET_MT]); in ch_readconfig()
336 ch->counts[CHET_ST]); in ch_readconfig()
339 ch->counts[CHET_IE]); in ch_readconfig()
342 ch->counts[CHET_DT]); in ch_readconfig()
354 ch->counts[CHET_V1+i] = vendor_counts[i]; in ch_readconfig()
361 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
369 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
546 for (i = 0; i < ch->counts[type]; i++) { in ch_gstatus()
603 if (type >= CH_TYPES || unit >= ch->counts[type]) in ch_checkrange()
621 params.cp_npickers = ch->counts[CHET_MT]; in ch_ioctl()
622 params.cp_nslots = ch->counts[CHET_ST]; in ch_ioctl()
623 params.cp_nportals = ch->counts[CHET_IE]; in ch_ioctl()
624 params.cp_ndrives = ch->counts[CHET_DT]; in ch_ioctl()
635 if (ch->counts[CHET_V1]) { in ch_ioctl()
636 vparams.cvp_n1 = ch->counts[CHET_V1]; in ch_ioctl()
639 if (ch->counts[CHET_V2]) { in ch_ioctl()
640 vparams.cvp_n2 = ch->counts[CHET_V2]; in ch_ioctl()
643 if (ch->counts[CHET_V3]) { in ch_ioctl()
644 vparams.cvp_n3 = ch->counts[CHET_V3]; in ch_ioctl()
647 if (ch->counts[CHET_V4]) { in ch_ioctl()
648 vparams.cvp_n4 = ch->counts[CHET_V4]; in ch_ioctl()
779 elem < ch->firsts[i] + ch->counts[i]) { in ch_ioctl()