Lines Matching refs:nelements
858 unsigned int nelements;
869 DDI_PROP_DONTPASS, "reg", &props, &nelements);
875 /* Check for sanity of nelements */
880 } else if (nelements % LOMBUS_REGSPEC_SIZE != 0) {
881 BSCV_TRACE(ssp, 'A', "bscv_map_regs", "nelements %d not"
882 " a multiple of %d", nelements, LOMBUS_REGSPEC_SIZE);
884 } else if (nelements > BSCV_MAXCHANNELS * LOMBUS_REGSPEC_SIZE) {
885 BSCV_TRACE(ssp, 'A', "bscv_map_regs", "nelements %d too large"
886 ", probably a misconfiguration", nelements);
888 } else if (nelements < BSCV_MINCHANNELS * LOMBUS_REGSPEC_SIZE) {
889 BSCV_TRACE(ssp, 'A', "bscv_map_regs", "nelements %d too small"
891 nelements);
895 ssp->nchannels = nelements / LOMBUS_REGSPEC_SIZE;