RIO_MAX_MPORTS
if (minor >= RIO_MAX_MPORTS) {
ret = alloc_chrdev_region(&dev_number, 0, RIO_MAX_MPORTS, DRV_NAME);
unregister_chrdev_region(dev_number, RIO_MAX_MPORTS);
unregister_chrdev_region(dev_number, RIO_MAX_MPORTS);
if (val < 0 || val >= RIO_MAX_MPORTS)
if ((mport_id != RIO_MPORT_ANY && mport_id >= RIO_MAX_MPORTS) ||
if (ids_num == 0 || ids_num <= index || index >= RIO_MAX_MPORTS)
if (next_portid >= RIO_MAX_MPORTS) {
static int hdid[RIO_MAX_MPORTS];
if (mport_id >= RIO_MAX_MPORTS)
if (info[1] >= RIO_MAX_MPORTS || info[0] > RIOCM_MAX_EP_COUNT)
if (entries == 0 || entries > RIO_MAX_MPORTS)
if (chan.mport_id >= RIO_MAX_MPORTS)
if (chan.mport_id >= RIO_MAX_MPORTS)