Lines Matching refs:counts
117 u_int counts[CH_TYPES]; member
235 ch->counts[i]) in ch_elem_to_typecode()
323 ch->counts[CHET_MT] = in ch_readconfig()
327 ch->counts[CHET_ST] = in ch_readconfig()
331 ch->counts[CHET_IE] = in ch_readconfig()
335 ch->counts[CHET_DT] = in ch_readconfig()
339 ch->counts[CHET_MT]); in ch_readconfig()
342 ch->counts[CHET_ST]); in ch_readconfig()
345 ch->counts[CHET_IE]); in ch_readconfig()
348 ch->counts[CHET_DT]); in ch_readconfig()
360 ch->counts[CHET_V1+i] = vendor_counts[i]; in ch_readconfig()
367 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
375 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
552 for (i = 0; i < ch->counts[type]; i++) { in ch_gstatus()
622 if (type >= CH_TYPES || unit >= ch->counts[type]) in ch_checkrange()
651 params.cp_npickers = ch->counts[CHET_MT]; in ch_ioctl()
652 params.cp_nslots = ch->counts[CHET_ST]; in ch_ioctl()
653 params.cp_nportals = ch->counts[CHET_IE]; in ch_ioctl()
654 params.cp_ndrives = ch->counts[CHET_DT]; in ch_ioctl()
665 if (ch->counts[CHET_V1]) { in ch_ioctl()
666 vparams.cvp_n1 = ch->counts[CHET_V1]; in ch_ioctl()
670 if (ch->counts[CHET_V2]) { in ch_ioctl()
671 vparams.cvp_n2 = ch->counts[CHET_V2]; in ch_ioctl()
675 if (ch->counts[CHET_V3]) { in ch_ioctl()
676 vparams.cvp_n3 = ch->counts[CHET_V3]; in ch_ioctl()
680 if (ch->counts[CHET_V4]) { in ch_ioctl()
681 vparams.cvp_n4 = ch->counts[CHET_V4]; in ch_ioctl()
826 elem < ch->firsts[i] + ch->counts[i]) { in ch_ioctl()