Lines Matching refs:sdebug_every_nth
739 static int sdebug_every_nth = DEF_EVERY_NTH; variable
5327 modulo = abs(sdebug_every_nth); in tweak_cmnd_count()
5346 if (sdebug_every_nth == 0) in inject_on_this_cmd()
5348 return (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth)) == 0; in inject_on_this_cmd()
5398 } else if (unlikely(sdebug_every_nth && in schedule_resp()
5403 abs(sdebug_every_nth))) { in schedule_resp()
5576 module_param_named(every_nth, sdebug_every_nth, int, S_IRUGO | S_IWUSR);
5739 if (sdebug_every_nth != 0) in scsi_debug_write_info()
5757 sdebug_opts, sdebug_every_nth); in scsi_debug_show_info()
6084 return scnprintf(buf, PAGE_SIZE, "%d\n", sdebug_every_nth); in every_nth_show()
6104 sdebug_every_nth = nth; in every_nth_store()
7148 if (0 == (atomic_read(&sdebug_cmnd_count) % abs(sdebug_every_nth))) { in fake_timeout()
7149 if (sdebug_every_nth < -1) in fake_timeout()
7150 sdebug_every_nth = -1; in fake_timeout()
7336 if (unlikely(sdebug_every_nth)) { in scsi_debug_queuecommand()
7485 if (sdebug_every_nth) /* need stats counters for every_nth */ in sdebug_driver_probe()