Lines Matching refs:option_str

5932 static SANE_Status umax_test_configure_option(const char *option_str, char *test_name, int *test_value, int test_min, int test_max)
5939 if (strncmp(option_str, test_name, strlen(test_name)) == 0)
5941 value_str = sanei_config_skip_whitespace(option_str+strlen(test_name));
5977 const char *option_str;
6035 option_str = sanei_config_skip_whitespace(config_line+6);
6037 if (umax_test_configure_option(option_str, "scsi-maxqueue", &umax_scsi_maxqueue, 1, SANE_UMAX_SCSI_MAXQUEUE));
6038 else if (umax_test_configure_option(option_str, "scsi-buffer-size-min", &umax_scsi_buffer_size_min, 4096, 1048576));
6039 else if (umax_test_configure_option(option_str, "scsi-buffer-size-max", &umax_scsi_buffer_size_max, 4096, 1048576));
6040 else if (umax_test_configure_option(option_str, "preview-lines", &umax_preview_lines, 1, 65535));
6041 else if (umax_test_configure_option(option_str, "scan-lines", &umax_scan_lines, 1, 65535));
6042 else if (umax_test_configure_option(option_str, "handle-bad-sense-error", &umax_handle_bad_sense_error, 0, 3));
6043 else if (umax_test_configure_option(option_str, "execute-request-sense", &umax_execute_request_sense, 0, 1));
6044 else if (umax_test_configure_option(option_str, "force-preview-bit-rgb", &umax_force_preview_bit_rgb, 0, 1));
6045 else if (umax_test_configure_option(option_str, "slow-speed", &umax_slow, -1, 1));
6046 else if (umax_test_configure_option(option_str, "care-about-smearing", &umax_smear, -1, 1));
6047 else if (umax_test_configure_option(option_str, "calibration-full-ccd", &umax_calibration_area, -1, 1));
6048 else if (umax_test_configure_option(option_str, "calibration-width-offset-batch", &umax_calibration_width_offset_batch, -99999, 65535));
6049 else if (umax_test_configure_option(option_str, "calibration-width-offset", &umax_calibration_width_offset, -99999, 65535));
6050 else if (umax_test_configure_option(option_str, "calibration-bytes-pixel", &umax_calibration_bytespp, -1, 2));
6051 else if (umax_test_configure_option(option_str, "exposure-time-rgb-bind", &umax_exposure_time_rgb_bind, -1, 1));
6052 else if (umax_test_configure_option(option_str, "invert-shading-data", &umax_invert_shading_data, -1, 1));
6053 else if (umax_test_configure_option(option_str, "lamp-control-available", &umax_lamp_control_available, 0, 1));
6054 else if (umax_test_configure_option(option_str, "gamma-lsb-padded", &umax_gamma_lsb_padded, -1, 1));
6055 else if (umax_test_configure_option(option_str, "connection-type", &umax_connection_type, 1, 2));
6058 DBG(DBG_error,"ERROR: unknown option \"%s\" in %s\n", option_str, UMAX_CONFIG_FILE);