Lines Matching refs:opts
4096 module_param_named(opts, scsi_debug_opts, int, S_IRUGO | S_IWUSR);
4143 MODULE_PARM_DESC(opts, "1->noise, 2->medium_err, 4->timeout, 8->recovered_err... (def=0)");
4173 int opts; in scsi_debug_write_info() local
4180 if (1 != sscanf(arr, "%d", &opts)) in scsi_debug_write_info()
4182 scsi_debug_opts = opts; in scsi_debug_write_info()
4305 int opts; in opts_store() local
4310 if (1 == sscanf(&work[2], "%x", &opts)) in opts_store()
4313 if (1 == sscanf(work, "%d", &opts)) in opts_store()
4319 scsi_debug_opts = opts; in opts_store()
4320 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in opts_store()
4322 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in opts_store()
4324 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in opts_store()
4326 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in opts_store()
4328 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in opts_store()
4334 static DRIVER_ATTR_RW(opts);
5133 int opts = scsi_debug_opts; in check_inject() local
5135 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in check_inject()
5137 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in check_inject()
5139 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in check_inject()
5141 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in check_inject()
5143 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in check_inject()
5333 int opts; in sdebug_driver_probe() local
5402 opts = scsi_debug_opts; in sdebug_driver_probe()
5403 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in sdebug_driver_probe()
5405 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in sdebug_driver_probe()
5407 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in sdebug_driver_probe()
5409 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in sdebug_driver_probe()
5411 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in sdebug_driver_probe()