Lines Matching refs:sdebug_num_tgts
762 static int sdebug_num_tgts = DEF_NUM_TGTS; /* targets per host */ variable
913 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
914 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
916 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
5855 module_param_named(num_tgts, sdebug_num_tgts, int, S_IRUGO | S_IWUSR);
6013 sdebug_num_tgts, "shared (ram) ", sdebug_dev_size_mb, in scsi_debug_show_info()
6294 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_num_tgts); in num_tgts_show()
6302 sdebug_num_tgts = n; in num_tgts_store()
6939 if (sdebug_num_tgts < 0) { in scsi_debug_init()
7309 devs_per_host = sdebug_num_tgts * sdebug_max_luns; in sdebug_add_host_helper()
7865 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
7866 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
7868 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()