Lines Matching refs:value
482 /*jfm: this value does not work for 800x600 - see isoc_init */
524 #define OV7670_R10_AECH 0x10 /* More bits of AEC value */
1989 static void reg_w(struct sd *sd, u16 index, u16 value)
2010 req, value, index);
2015 value, index, NULL, 0, 500);
2022 req, index, value);
2023 sd->gspca_dev.usb_buf[0] = value;
2121 * the same position as 1's in "mask" are cleared and set to "value". Bits
2123 * of their respective state in "value".
2127 u8 value,
2134 value &= mask; /* Enforce mask on value */
2140 value |= oldval; /* Set the desired bits */
2142 reg_w(sd, index, value);
2146 * Writes multiple (n) byte value to a single register. Only valid with certain
2149 static void ov518_reg_w32(struct sd *sd, u16 index, u32 value, int n)
2157 *((__le32 *) sd->gspca_dev.usb_buf) = __cpu_to_le32(value);
2173 static void ov511_i2c_w(struct sd *sd, u8 reg, u8 value)
2178 gspca_dbg(gspca_dev, D_USBO, "ov511_i2c_w %02x %02x\n", reg, value);
2185 /* Write "value" to I2C data port of OV511 */
2186 reg_w(sd, R51x_I2C_DATA, value);
2210 int rc, value, retries;
2263 value = reg_r(sd, R51x_I2C_DATA);
2265 gspca_dbg(gspca_dev, D_USBI, "ov511_i2c_r %02x %02x\n", reg, value);
2270 return value;
2280 u8 value)
2284 gspca_dbg(gspca_dev, D_USBO, "ov518_i2c_w %02x %02x\n", reg, value);
2289 /* Write "value" to I2C data port of OV511 */
2290 reg_w(sd, R51x_I2C_DATA, value);
2310 int value;
2323 value = reg_r(sd, R51x_I2C_DATA);
2324 gspca_dbg(gspca_dev, D_USBI, "ov518_i2c_r %02x %02x\n", reg, value);
2325 return value;
2328 static void ovfx2_i2c_w(struct sd *sd, u8 reg, u8 value)
2340 (u16) value, (u16) reg, NULL, 0, 500);
2347 gspca_dbg(gspca_dev, D_USBO, "ovfx2_i2c_w %02x %02x\n", reg, value);
2376 static void i2c_w(struct sd *sd, u8 reg, u8 value)
2378 if (sd->sensor_reg_cache[reg] == value)
2384 ov511_i2c_w(sd, reg, value);
2389 ov518_i2c_w(sd, reg, value);
2392 ovfx2_i2c_w(sd, reg, value);
2395 w9968cf_i2c_w(sd, reg, value);
2401 if (reg == 0x12 && (value & 0x80))
2405 sd->sensor_reg_cache[reg] = value;
2441 * the same position as 1's in "mask" are cleared and set to "value". Bits
2443 * of their respective state in "value".
2447 u8 value,
2453 value &= mask; /* Enforce mask on value */
2458 value |= oldval; /* Set the desired bits */
2459 i2c_w(sd, reg, value);
2790 * the entire register value must be used. I guess OVT