Searched refs:devmax (Results 1 – 4 of 4) sorted by relevance
/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 1437 int ret = 0, devmax, npresent, nup, ndev, dusable = 0, i; in get_a_ctxt() local 1440 devmax = qib_count_units(&npresent, &nup); in get_a_ctxt() 1454 for (ndev = 0; ndev < devmax; ndev++) { in get_a_ctxt() 1485 for (ndev = 0; ndev < devmax; ndev++) { in get_a_ctxt() 1506 int devmax, ndev, i; in find_shared_ctxt() local 1509 devmax = qib_count_units(NULL, NULL); in find_shared_ctxt() 1511 for (ndev = 0; ndev < devmax; ndev++) { in find_shared_ctxt() 1558 int ret = 0, devmax, npresent, nup, ndev; in find_hca() local 1562 devmax = qib_count_units(&npresent, &nup); in find_hca() 1571 for (ndev = 0; ndev < devmax; ndev++) { in find_hca()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | obd_mount.c | 731 int rc = 0, devmax; in lmd_make_exclusion() local 736 devmax = strlen(ptr) / 8 + 1; in lmd_make_exclusion() 739 exclude_list = kcalloc(devmax, sizeof(index), GFP_NOFS); in lmd_make_exclusion() 760 if (lmd->lmd_exclude_count >= devmax) in lmd_make_exclusion()
|
/drivers/staging/rdma/hfi1/ |
D | file_ops.c | 887 int ret = 0, devmax, npresent, nup, dev; in get_user_context() local 889 devmax = hfi1_count_units(&npresent, &nup); in get_user_context() 910 for (dev = 0; dev < devmax; dev++) { in get_user_context() 919 for (dev = 0; dev < devmax; dev++) { in get_user_context() 937 int devmax, ndev, i; in find_shared_ctxt() local 940 devmax = hfi1_count_units(NULL, NULL); in find_shared_ctxt() 942 for (ndev = 0; ndev < devmax; ndev++) { in find_shared_ctxt()
|
/drivers/staging/rdma/ipath/ |
D | ipath_file_ops.c | 1674 int ret = 0, i, prefunit = -1, devmax; in find_best_unit() local 1678 devmax = ipath_count_units(&npresent, &nup, &maxofallports); in find_best_unit() 1727 devmax = prefunit + 1; in find_best_unit() 1730 for (ndev = prefunit != -1 ? prefunit : 0; ndev < devmax; in find_best_unit() 1761 devmax = ipath_count_units(NULL, NULL, in find_best_unit() 1781 int devmax, ndev, i; in find_shared_port() local 1784 devmax = ipath_count_units(NULL, NULL, NULL); in find_shared_port() 1786 for (ndev = 0; ndev < devmax; ndev++) { in find_shared_port()
|