Lines Matching defs:value
299 * returned in the value pointed to by version_code. If that pointer
588 * valid option. Its value is an integer that specifies the number of
612 * sets automatic value for an option , called by sane_control_option after
640 /* we set up to the lowest available dpi value */
909 * Gets or sets an option value.
912 * This function is used to set or inquire the current value of option
916 * below. The value of the option is passed through argument val. It
917 * is a pointer to the memory that holds the option value. The memory
919 * value (determined by member size in the corresponding option
922 * The only exception to this rule is that when setting the value of a
924 * since the backend will stop reading the option value upon
926 * is not NULL, the value of *i will be set to provide details on how
1548 /* pick max lds value */
1562 /* highest correction value is the blue one for our case */
2092 * status value of SANE_STATUS_CANCELLED). Since the SANE API does
2258 * (regardless of the status value returned by sane_exit(). Neglecting
2485 /* if the value is provided by configuration option, just use it */
2506 /* user provided value */
2557 /* set initial value for the scanning options */
2567 /* we first initialize each options with a default value */
2638 /* initial value is lowest available dpi */
2964 "set_lamp_brightness: unexpected CONTROL_REG value, 0x%02x instead of 0x00\n",
3048 DBG (DBG_warn, "find_origin: unexpected control value 0x%02x\n",
3055 DBG (DBG_warn, "find_origin: unexpected control value 0x%02x\n",
3268 /* convert the detected value into max ydpi */
3495 /* convert the detected value into max ydpi */
4405 DBG (DBG_warn, "init_device: unexpected control value 0x%02x\n",
4435 DBG (DBG_warn, "init_device: unexpected control value 0x%02x\n",
4466 DBG (DBG_warn, "init_device: unexpected control value 0x%02x\n",
4473 DBG (DBG_warn, "init_device: unexpected control value 0x%02x\n",
4602 * Do dark calibration. We scan a well defined area until average pixel value
4610 /* red, green and blue offset, within a 't'op and 'b'ottom value */
4748 * until each black average reaches the desired value */
5032 * reaches the desired value, doing a dichotomy */
5046 /* loop on gain calibration until we find until we find stable value
5080 /* we now compute the average pixel value on the scanned line */
5095 { /* average is higher than the desired value */
5099 /* a stable value is shown by top value == bottom value */
5107 /* since we'ra above target value, current gain becomes top value */
5112 else /* below target value */
5121 /* since we are below target, current value is assigned to bottom value */
5220 * reaches the desired value (OFFSET_TARGET).
5227 /* red, green and blue offset, within a 't'op and 'b'ottom value */
5346 * reaches the desired value */
6286 unsigned int value, red_code, blue_code, green_code;
6294 /* 3 16bits 256 value gamma tables plus start/end markers */
6328 * COEFFICIENT 16 bit value
6401 /* correction coefficient is target code divided by average scanned value
6406 value = 0x8000;
6408 value = red_code / gamma_r[dev->shading_data[i * 3]];
6409 val = (SANE_Byte) (value / 256);
6413 calibration[idx + i * 2] = (SANE_Byte) (value % 256) & 0xC0;
6417 value = 0x8000;
6419 value = green_code / gamma_g[dev->shading_data[i * 3 + 1]];
6420 val = (SANE_Byte) (value / 256);
6425 (SANE_Byte) (value % 256) & 0xC0;
6429 value = 0x8000;
6431 value = blue_code / gamma_b[dev->shading_data[i * 3 + 2]];
6432 val = (SANE_Byte) (value / 256);
6437 (SANE_Byte) (value % 256) & 0xC0;
7696 DBG (DBG_warn, "park_head: unexpected controller value 0x%02x\n", reg);