Lines Matching refs:counts
115 u_int counts[CH_TYPES]; member
230 ch->counts[i]) in ch_elem_to_typecode()
318 ch->counts[CHET_MT] = in ch_readconfig()
322 ch->counts[CHET_ST] = in ch_readconfig()
326 ch->counts[CHET_IE] = in ch_readconfig()
330 ch->counts[CHET_DT] = in ch_readconfig()
334 ch->counts[CHET_MT]); in ch_readconfig()
337 ch->counts[CHET_ST]); in ch_readconfig()
340 ch->counts[CHET_IE]); in ch_readconfig()
343 ch->counts[CHET_DT]); in ch_readconfig()
355 ch->counts[CHET_V1+i] = vendor_counts[i]; in ch_readconfig()
362 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
370 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
547 for (i = 0; i < ch->counts[type]; i++) { in ch_gstatus()
617 if (type >= CH_TYPES || unit >= ch->counts[type]) in ch_checkrange()
646 params.cp_npickers = ch->counts[CHET_MT]; in ch_ioctl()
647 params.cp_nslots = ch->counts[CHET_ST]; in ch_ioctl()
648 params.cp_nportals = ch->counts[CHET_IE]; in ch_ioctl()
649 params.cp_ndrives = ch->counts[CHET_DT]; in ch_ioctl()
660 if (ch->counts[CHET_V1]) { in ch_ioctl()
661 vparams.cvp_n1 = ch->counts[CHET_V1]; in ch_ioctl()
664 if (ch->counts[CHET_V2]) { in ch_ioctl()
665 vparams.cvp_n2 = ch->counts[CHET_V2]; in ch_ioctl()
668 if (ch->counts[CHET_V3]) { in ch_ioctl()
669 vparams.cvp_n3 = ch->counts[CHET_V3]; in ch_ioctl()
672 if (ch->counts[CHET_V4]) { in ch_ioctl()
673 vparams.cvp_n4 = ch->counts[CHET_V4]; in ch_ioctl()
817 elem < ch->firsts[i] + ch->counts[i]) { in ch_ioctl()