Lines Matching refs:sdebug_every_nth
634 static int sdebug_every_nth = DEF_EVERY_NTH; variable
4301 modulo = abs(sdebug_every_nth); in tweak_cmnd_count()
4321 if ((atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth)) > 0) { in setup_inject()
4322 if (sdebug_every_nth > 0) in setup_inject()
4382 } else if (unlikely(sdebug_every_nth && in schedule_resp()
4387 abs(sdebug_every_nth))) { in schedule_resp()
4419 if (unlikely(sdebug_every_nth && sdebug_any_injecting_opt)) in schedule_resp()
4514 module_param_named(every_nth, sdebug_every_nth, int, S_IRUGO | S_IWUSR);
4653 if (sdebug_every_nth != 0) in scsi_debug_write_info()
4670 sdebug_opts, sdebug_every_nth); in scsi_debug_show_info()
4929 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_every_nth); in every_nth_show()
4937 sdebug_every_nth = nth; in every_nth_store()
5653 if (0 == (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth))) { in fake_timeout()
5654 if (sdebug_every_nth < -1) in fake_timeout()
5655 sdebug_every_nth = -1; in fake_timeout()
5668 (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth)) == 0; in fake_host_busy()
5798 if (unlikely(sdebug_every_nth)) { in scsi_debug_queuecommand()
5943 if (sdebug_every_nth) /* need stats counters for every_nth */ in sdebug_driver_probe()