Lines Matching refs:sdebug_num_tgts
756 static int sdebug_num_tgts = DEF_NUM_TGTS; /* targets per host */ variable
905 (sdebug_num_tgts > hpnt->this_id)) in sdebug_max_tgts_luns()
906 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_max_tgts_luns()
908 hpnt->max_id = sdebug_num_tgts; in sdebug_max_tgts_luns()
5653 module_param_named(num_tgts, sdebug_num_tgts, int, S_IRUGO | S_IWUSR);
5808 sdebug_num_tgts, "shared (ram) ", sdebug_dev_size_mb, in scsi_debug_show_info()
6089 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_num_tgts); in num_tgts_show()
6097 sdebug_num_tgts = n; in num_tgts_store()
6716 if (sdebug_num_tgts < 0) { in scsi_debug_init()
7086 devs_per_host = sdebug_num_tgts * sdebug_max_luns; in sdebug_add_host_helper()
7630 if ((hpnt->this_id >= 0) && (sdebug_num_tgts > hpnt->this_id)) in sdebug_driver_probe()
7631 hpnt->max_id = sdebug_num_tgts + 1; in sdebug_driver_probe()
7633 hpnt->max_id = sdebug_num_tgts; in sdebug_driver_probe()