Lines Matching defs:value

259  * returned in the value pointed to by version_code. If that pointer
431 * valid option. Its value is an integer that specifies the number of
452 * Gets or sets an option value.
455 * This function is used to set or inquire the current value of option
459 * below. The value of the option is passed through argument val. It
460 * is a pointer to the memory that holds the option value. The memory
462 * value (determined by member size in the corresponding option
465 * The only exception to this rule is that when setting the value of a
467 * since the backend will stop reading the option value upon
469 * is not NULL, the value of *i will be set to provide details on how
501 DBG (MSG_GET, "sane_control_option: get value \"%s\"\n",
556 DBG (10, "sane_control_option: set value \"%s\"\n",
574 DBG (10, "\tbad value\n");
878 * status value of SANE_STATUS_CANCELLED). Since the SANE API does
919 * (regardless of the status value returned by sane_exit(). Neglecting
1676 int firstreg, int totalregs, unsigned value)
1680 regs[firstreg++] = value & 0xff;
1681 value >>= 8;
1689 int firstreg, int totalregs, unsigned value)
1693 regs[firstreg + totalregs] = value & 0xff;
1694 value >>= 8;
1701 rt_set_ccd_shift_clock_multiplier (unsigned char *regs, unsigned value)
1703 return rt_set_value_lsbfirst (regs, 0xf0, 3, value);
1707 rt_set_ccd_clock_reset_interval (unsigned char *regs, unsigned value)
1709 return rt_set_value_lsbfirst (regs, 0xf9, 3, value);
1713 rt_set_ccd_clamp_clock_multiplier (unsigned char *regs, unsigned value)
1715 return rt_set_value_lsbfirst (regs, 0xfc, 3, value);
1719 rt_set_movement_pattern (unsigned char *regs, unsigned value)
1721 return rt_set_value_lsbfirst (regs, 0xc0, 3, value);
1725 rt_set_motor_movement_clock_multiplier (unsigned char *regs, unsigned value)
1727 regs[0x40] = (regs[0x40] & ~0xc0) | (value << 6);
1732 rt_set_motor_type (unsigned char *regs, unsigned value)
1734 regs[0xc9] = (regs[0xc9] & 0xf8) | (value & 0x7);
1739 rt_set_noscan_distance (unsigned char *regs, unsigned value)
1741 DBG (10, "Setting distance without scanning to %d\n", value);
1742 return rt_set_value_lsbfirst (regs, 0x60, 2, value);
1746 rt_set_total_distance (unsigned char *regs, unsigned value)
1748 DBG (10, "Setting total distance to %d\n", value);
1749 return rt_set_value_lsbfirst (regs, 0x62, 2, value);
1753 rt_set_scanline_start (unsigned char *regs, unsigned value)
1755 return rt_set_value_lsbfirst (regs, 0x66, 2, value);
1759 rt_set_scanline_end (unsigned char *regs, unsigned value)
1761 return rt_set_value_lsbfirst (regs, 0x6c, 2, value);
1882 int value = regs[0x2a] & 0x1f;
1884 regs[0x2a] = (regs[0x2a] & 0xe0) | (value & 0x1f);
1887 value *= 3;
1889 value += 17;
1891 value += 16;
1893 regs[0x2c] = (regs[0x2c] & 0xe0) | (value % 24);
1894 regs[0x2d] = (regs[0x2d] & 0xe0) | ((value + 2) % 24);
2034 regs[0x2e] = 0x86; /* ???? - Always has this value */
2114 int value, unsigned char stdbits, int whichhalf)
2116 *buffer = stdbits | (value ? 0x40 : 0) | (whichhalf ? 0x20 : 0);
2121 int value, unsigned char stdbits)
2123 rt_nvram_set_half_bit (buffer, value, stdbits, 0);
2124 rt_nvram_set_half_bit (buffer + 1, value, stdbits, 1);
2405 /* The TG value sets seem to affect the exposure time:
2516 unsigned value = *p++;
2522 value |= now << shift;
2525 return value;
3633 * which is the value we started with. For the next round, pull the gain down to 0x20. Our
3685 pDetailedCalib[idx++] = offnow; /* Subtract this value from the result at gains = 0x80*/
3686 pDetailedCalib[idx++] = multnow; /* Then multiply by this value divided by 0x80 */