Lines Matching refs:val
96 u8 val;
179 static int ov490_read(struct rdacm21_device *dev, u16 reg, u8 *val)
186 ret = i2c_master_recv(dev->isp, val, 1);
197 static int ov490_write(struct rdacm21_device *dev, u16 reg, u8 val)
199 u8 buf[3] = { reg >> 8, reg, val };
239 static int ov490_read_reg(struct rdacm21_device *dev, u32 reg, u8 *val)
247 ret = ov490_read(dev, (u16)reg, val);
251 dev_dbg(dev->dev, "%s: 0x%08x = 0x%02x\n", __func__, reg, *val);
256 static int ov490_write_reg(struct rdacm21_device *dev, u32 reg, u8 val)
264 ret = ov490_write(dev, (u16)reg, val);
268 dev_dbg(dev->dev, "%s: 0x%08x = 0x%02x\n", __func__, reg, val);
354 u8 val = 0;
372 ov490_read_reg(dev, OV490_SCCB_SLAVE0_DIR, &val);
373 if (val == OV10640_ID_HIGH)
378 dev_err(dev->dev, "OV10640 ID mismatch: (0x%02x)\n", val);
382 dev_dbg(dev->dev, "OV10640 ID = 0x%2x\n", val);
389 u8 pid, ver, val;
422 ov490_read_reg(dev, OV490_ODS_CTRL, &val);
423 if (val == OV490_ODS_CTRL_FRAME_OUTPUT_EN)
439 ov490_regs_wizard[i].val);
455 ov490_read_reg(dev, OV490_ISP_HSIZE_HIGH, &val);
456 dev->fmt.width = (val & 0xf) << 8;
457 ov490_read_reg(dev, OV490_ISP_HSIZE_LOW, &val);
458 dev->fmt.width |= (val & 0xff);
460 ov490_read_reg(dev, OV490_ISP_VSIZE_HIGH, &val);
461 dev->fmt.height = (val & 0xf) << 8;
462 ov490_read_reg(dev, OV490_ISP_VSIZE_LOW, &val);
463 dev->fmt.height |= val & 0xff;