Lines Matching refs:gc2145_write_reg
713 static int gc2145_write_reg(const struct i2c_dt_spec *spec, uint8_t reg_addr, uint8_t value) in gc2145_write_reg() function
771 ret = gc2145_write_reg(&cfg->i2c, regs[i].addr, regs[i].value); in gc2145_write_all()
786 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_RESET, GC2145_REG_SW_RESET); in gc2145_soft_reset()
805 return gc2145_write_reg(&cfg->i2c, GC2145_REG_AMODE1, in gc2145_set_ctrl_vflip()
821 return gc2145_write_reg(&cfg->i2c, GC2145_REG_AMODE1, in gc2145_set_ctrl_hmirror()
831 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_RESET, GC2145_SET_P0_REGS); in gc2145_set_window()
837 ret = gc2145_write_reg(&cfg->i2c, reg++, y >> 8); in gc2145_set_window()
842 ret = gc2145_write_reg(&cfg->i2c, reg++, y & 0xff); in gc2145_set_window()
848 ret = gc2145_write_reg(&cfg->i2c, reg++, x >> 8); in gc2145_set_window()
853 ret = gc2145_write_reg(&cfg->i2c, reg++, x & 0xff); in gc2145_set_window()
859 ret = gc2145_write_reg(&cfg->i2c, reg++, h >> 8); in gc2145_set_window()
864 ret = gc2145_write_reg(&cfg->i2c, reg++, h & 0xff); in gc2145_set_window()
870 ret = gc2145_write_reg(&cfg->i2c, reg++, w >> 8); in gc2145_set_window()
875 ret = gc2145_write_reg(&cfg->i2c, reg++, w & 0xff); in gc2145_set_window()
888 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_RESET, GC2145_SET_P0_REGS); in gc2145_set_output_format()
899 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_OUTPUT_FMT, GC2145_REG_OUTPUT_FMT_RGB565); in gc2145_set_output_format()
973 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_CROP_ENABLE, GC2145_CROP_SET_ENABLE); in gc2145_set_resolution()
979 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_SUBSAMPLE, ((r_ratio << 4) | c_ratio)); in gc2145_set_resolution()
984 ret = gc2145_write_reg(&cfg->i2c, GC2145_REG_SUBSAMPLE_MODE, GC2145_SUBSAMPLE_MODE_SMOOTH); in gc2145_set_resolution()
1087 return gc2145_write_reg(&cfg->i2c, 0xf2, 0x0f); in gc2145_stream_start()
1094 return gc2145_write_reg(&cfg->i2c, 0xf2, 0x00); in gc2145_stream_stop()