Lines Matching refs:counts
115 u_int counts[CH_TYPES]; member
228 ch->counts[i]) in ch_elem_to_typecode()
316 ch->counts[CHET_MT] = in ch_readconfig()
320 ch->counts[CHET_ST] = in ch_readconfig()
324 ch->counts[CHET_IE] = in ch_readconfig()
328 ch->counts[CHET_DT] = in ch_readconfig()
332 ch->counts[CHET_MT]); in ch_readconfig()
335 ch->counts[CHET_ST]); in ch_readconfig()
338 ch->counts[CHET_IE]); in ch_readconfig()
341 ch->counts[CHET_DT]); in ch_readconfig()
353 ch->counts[CHET_V1+i] = vendor_counts[i]; in ch_readconfig()
360 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
368 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
545 for (i = 0; i < ch->counts[type]; i++) { in ch_gstatus()
615 if (type >= CH_TYPES || unit >= ch->counts[type]) in ch_checkrange()
638 params.cp_npickers = ch->counts[CHET_MT]; in ch_ioctl()
639 params.cp_nslots = ch->counts[CHET_ST]; in ch_ioctl()
640 params.cp_nportals = ch->counts[CHET_IE]; in ch_ioctl()
641 params.cp_ndrives = ch->counts[CHET_DT]; in ch_ioctl()
652 if (ch->counts[CHET_V1]) { in ch_ioctl()
653 vparams.cvp_n1 = ch->counts[CHET_V1]; in ch_ioctl()
656 if (ch->counts[CHET_V2]) { in ch_ioctl()
657 vparams.cvp_n2 = ch->counts[CHET_V2]; in ch_ioctl()
660 if (ch->counts[CHET_V3]) { in ch_ioctl()
661 vparams.cvp_n3 = ch->counts[CHET_V3]; in ch_ioctl()
664 if (ch->counts[CHET_V4]) { in ch_ioctl()
665 vparams.cvp_n4 = ch->counts[CHET_V4]; in ch_ioctl()
797 elem < ch->firsts[i] + ch->counts[i]) { in ch_ioctl()