Lines Matching refs:counts
114 u_int counts[CH_TYPES]; member
227 ch->counts[i]) in ch_elem_to_typecode()
315 ch->counts[CHET_MT] = in ch_readconfig()
319 ch->counts[CHET_ST] = in ch_readconfig()
323 ch->counts[CHET_IE] = in ch_readconfig()
327 ch->counts[CHET_DT] = in ch_readconfig()
331 ch->counts[CHET_MT]); in ch_readconfig()
334 ch->counts[CHET_ST]); in ch_readconfig()
337 ch->counts[CHET_IE]); in ch_readconfig()
340 ch->counts[CHET_DT]); in ch_readconfig()
352 ch->counts[CHET_V1+i] = vendor_counts[i]; in ch_readconfig()
359 ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt), in ch_readconfig()
367 for (elem = 0; elem < ch->counts[CHET_DT]; elem++) { in ch_readconfig()
544 for (i = 0; i < ch->counts[type]; i++) { in ch_gstatus()
601 if (type >= CH_TYPES || unit >= ch->counts[type]) in ch_checkrange()
624 params.cp_npickers = ch->counts[CHET_MT]; in ch_ioctl()
625 params.cp_nslots = ch->counts[CHET_ST]; in ch_ioctl()
626 params.cp_nportals = ch->counts[CHET_IE]; in ch_ioctl()
627 params.cp_ndrives = ch->counts[CHET_DT]; in ch_ioctl()
638 if (ch->counts[CHET_V1]) { in ch_ioctl()
639 vparams.cvp_n1 = ch->counts[CHET_V1]; in ch_ioctl()
642 if (ch->counts[CHET_V2]) { in ch_ioctl()
643 vparams.cvp_n2 = ch->counts[CHET_V2]; in ch_ioctl()
646 if (ch->counts[CHET_V3]) { in ch_ioctl()
647 vparams.cvp_n3 = ch->counts[CHET_V3]; in ch_ioctl()
650 if (ch->counts[CHET_V4]) { in ch_ioctl()
651 vparams.cvp_n4 = ch->counts[CHET_V4]; in ch_ioctl()
783 elem < ch->firsts[i] + ch->counts[i]) { in ch_ioctl()