Lines Matching refs:sdebug_num_tgts
845 static int sdebug_num_tgts = DEF_NUM_TGTS; /* targets per host */ variable
1264 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
1265 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
1267 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
6608 module_param_named(num_tgts, sdebug_num_tgts, int, S_IRUGO | S_IWUSR);
6804 sdebug_num_tgts, "shared (ram) ", sdebug_dev_size_mb, in scsi_debug_show_info()
7094 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_num_tgts); in num_tgts_show()
7102 sdebug_num_tgts = n; in num_tgts_store()
7751 if (sdebug_num_tgts < 0) { in scsi_debug_init()
8120 devs_per_host = sdebug_num_tgts * sdebug_max_luns; in sdebug_add_host_helper()
8801 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
8802 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
8804 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()