Lines Matching defs:nluns
57 * nluns Number of LUNs function have (anywhere from 1
61 * function will include (ie. for "nluns"
365 unsigned int nluns;
406 unsigned nluns;
639 *(u8 *) req->buf = fsg->common->nluns - 1;
1855 if (common->lun >= 0 && common->lun < common->nluns) {
2389 for (i = 0; i < common->nluns; ++i)
2486 for (i = 0; i < common->nluns; ++i) {
2524 /* for (i = 0; i < common->nluns; ++i) */
2617 unsigned i = common->nluns;
2670 int nluns, i, rc;
2674 nluns = cfg->nluns;
2675 if (nluns < 1 || nluns > FSG_MAX_LUNS) {
2676 dev_err(&gadget->dev, "invalid number of LUNs: %u\n", nluns);
2709 curlun = kzalloc(nluns * sizeof *curlun, GFP_KERNEL);
2718 for (i = 0, lcfg = cfg->luns; i < nluns; ++i, ++curlun, ++lcfg) {
2734 common->nluns = i;
2755 common->nluns = nluns;
2826 INFO(common, "Number of LUNs=%d\n", common->nluns);
2829 for (i = 0, nluns = common->nluns, curlun = common->luns;
2830 i < nluns;
2858 common->nluns = i + 1;
2883 unsigned i = common->nluns;
2885 /* In error recovery common->nluns may be zero. */
3046 unsigned int luns; /* nluns */
3085 cfg->nluns =
3088 for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) {