Lines Matching refs:opts

4097 module_param_named(opts, scsi_debug_opts, int, S_IRUGO | S_IWUSR);
4144 MODULE_PARM_DESC(opts, "1->noise, 2->medium_err, 4->timeout, 8->recovered_err... (def=0)");
4174 int opts; in scsi_debug_write_info() local
4181 if (1 != sscanf(arr, "%d", &opts)) in scsi_debug_write_info()
4183 scsi_debug_opts = opts; in scsi_debug_write_info()
4306 int opts; in opts_store() local
4311 if (1 == sscanf(&work[2], "%x", &opts)) in opts_store()
4314 if (1 == sscanf(work, "%d", &opts)) in opts_store()
4320 scsi_debug_opts = opts; in opts_store()
4321 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in opts_store()
4323 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in opts_store()
4325 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in opts_store()
4327 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in opts_store()
4329 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in opts_store()
4335 static DRIVER_ATTR_RW(opts);
5120 int opts = scsi_debug_opts; in check_inject() local
5122 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in check_inject()
5124 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in check_inject()
5126 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in check_inject()
5128 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in check_inject()
5130 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in check_inject()
5320 int opts; in sdebug_driver_probe() local
5390 opts = scsi_debug_opts; in sdebug_driver_probe()
5391 if (SCSI_DEBUG_OPT_RECOVERED_ERR & opts) in sdebug_driver_probe()
5393 else if (SCSI_DEBUG_OPT_TRANSPORT_ERR & opts) in sdebug_driver_probe()
5395 else if (SCSI_DEBUG_OPT_DIF_ERR & opts) in sdebug_driver_probe()
5397 else if (SCSI_DEBUG_OPT_DIX_ERR & opts) in sdebug_driver_probe()
5399 else if (SCSI_DEBUG_OPT_SHORT_TRANSFER & opts) in sdebug_driver_probe()