Lines Matching refs:sdebug_every_nth
885 static int sdebug_every_nth = DEF_EVERY_NTH; variable
7048 modulo = abs(sdebug_every_nth); in tweak_cmnd_count()
7070 if (sdebug_every_nth == 0) in inject_on_this_cmd()
7072 return (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth)) == 0; in inject_on_this_cmd()
7107 if (unlikely(sdebug_every_nth && (SDEBUG_OPT_RARE_TSF & sdebug_opts) && in schedule_resp()
7114 abs(sdebug_every_nth))) { in schedule_resp()
7249 module_param_named(every_nth, sdebug_every_nth, int, S_IRUGO | S_IWUSR);
7432 if (sdebug_every_nth != 0) in scsi_debug_write_info()
7475 sdebug_opts, sdebug_every_nth); in scsi_debug_show_info()
7812 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_every_nth); in every_nth_show()
7832 sdebug_every_nth = nth; in every_nth_store()
8906 if (0 == (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth))) { in fake_timeout()
8907 if (sdebug_every_nth < -1) in fake_timeout()
8908 sdebug_every_nth = -1; in fake_timeout()
9317 if (unlikely(sdebug_every_nth)) { in scsi_debug_queuecommand()
9509 if (sdebug_every_nth) /* need stats counters for every_nth */ in sdebug_driver_probe()