Lines Matching refs:luns

260 	struct fsg_lun		*luns[FSG_MAX_LUNS];  member
449 int i = ARRAY_SIZE(common->luns) - 1; in _fsg_common_get_max_lun()
451 while (i >= 0 && !common->luns[i]) in _fsg_common_get_max_lun()
2201 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw()
2230 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw()
2231 common->curlun = common->luns[common->lun]; in received_cbw()
2372 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) in do_set_interface()
2373 if (common->luns[i]) in do_set_interface()
2374 common->luns[i]->unit_attention_data = in do_set_interface()
2476 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { in handle_exception()
2477 curlun = common->luns[i]; in handle_exception()
2590 for (i = 0; i < ARRAY_SIZE(common->luns); i++) { in fsg_main_thread()
2591 struct fsg_lun *curlun = common->luns[i]; in fsg_main_thread()
2699 memset(common->luns, 0, sizeof(common->luns)); in fsg_common_setup()
2776 if (common->luns[i]) { in _fsg_common_remove_luns()
2777 fsg_common_remove_lun(common->luns[i]); in _fsg_common_remove_luns()
2778 common->luns[i] = NULL; in _fsg_common_remove_luns()
2784 _fsg_common_remove_luns(common, ARRAY_SIZE(common->luns)); in fsg_common_remove_luns()
2863 if (id >= ARRAY_SIZE(common->luns)) in fsg_common_create_lun()
2866 if (common->luns[id]) in fsg_common_create_lun()
2904 common->luns[id] = lun; in fsg_common_create_lun()
2931 common->luns[id] = NULL; in fsg_common_create_lun()
2947 rc = fsg_common_create_lun(common, &cfg->luns[i], i, buf, NULL); in fsg_common_create_luns()
2972 pn ?: ((*common->luns)->cdrom in fsg_common_set_inquiry_string()
2989 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { in fsg_common_release()
2990 struct fsg_lun *lun = common->luns[i]; in fsg_common_release()
3294 if (fsg_opts->refcnt || fsg_opts->common->luns[num]) { in fsg_lun_make()
3314 opts->lun = fsg_opts->common->luns[num]; in fsg_lun_make()
3343 fsg_opts->common->luns[lun_opts->lun_id] = NULL; in fsg_lun_drop()
3502 opts->lun0.lun = opts->common->luns[0]; in fsg_alloc_inst()
3579 min(params->luns ?: (params->file_count ?: 1u), in fsg_config_from_params()
3581 for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) { in fsg_config_from_params()