Lines Matching refs:mt9p031_write
153 static int mt9p031_write(struct i2c_client *client, u8 reg, u16 data) in mt9p031_write() function
165 ret = mt9p031_write(client, MT9P031_OUTPUT_CONTROL, value); in mt9p031_set_output_control()
179 ret = mt9p031_write(client, MT9P031_READ_MODE_2, value); in mt9p031_set_mode2()
193 ret = mt9p031_write(client, MT9P031_RST, MT9P031_RST_ENABLE); in mt9p031_reset()
196 ret = mt9p031_write(client, MT9P031_RST, 0); in mt9p031_reset()
200 ret = mt9p031_write(client, MT9P031_PIXEL_CLOCK_CONTROL, in mt9p031_reset()
272 ret = mt9p031_write(client, MT9P031_PLL_CONTROL, in mt9p031_pll_enable()
277 ret = mt9p031_write(client, MT9P031_PLL_CONFIG_1, in mt9p031_pll_enable()
282 ret = mt9p031_write(client, MT9P031_PLL_CONFIG_2, mt9p031->pll.p1 - 1); in mt9p031_pll_enable()
287 ret = mt9p031_write(client, MT9P031_PLL_CONTROL, in mt9p031_pll_enable()
300 return mt9p031_write(client, MT9P031_PLL_CONTROL, in mt9p031_pll_disable()
380 ret = mt9p031_write(client, MT9P031_PIXEL_CLOCK_CONTROL, in __mt9p031_set_power()
412 ret = mt9p031_write(client, MT9P031_COLUMN_START, crop->left); in mt9p031_set_params()
415 ret = mt9p031_write(client, MT9P031_ROW_START, crop->top); in mt9p031_set_params()
418 ret = mt9p031_write(client, MT9P031_WINDOW_WIDTH, crop->width - 1); in mt9p031_set_params()
421 ret = mt9p031_write(client, MT9P031_WINDOW_HEIGHT, crop->height - 1); in mt9p031_set_params()
433 ret = mt9p031_write(client, MT9P031_COLUMN_ADDRESS_MODE, in mt9p031_set_params()
437 ret = mt9p031_write(client, MT9P031_ROW_ADDRESS_MODE, in mt9p031_set_params()
448 ret = mt9p031_write(client, MT9P031_HORIZONTAL_BLANK, hblank - 1); in mt9p031_set_params()
451 ret = mt9p031_write(client, MT9P031_VERTICAL_BLANK, vblank - 1); in mt9p031_set_params()
468 ret = mt9p031_write(client, MT9P031_RESTART, val); in mt9p031_s_stream()
474 ret = mt9p031_write(client, MT9P031_RESTART, val); in mt9p031_s_stream()
503 ret = mt9p031_write(client, MT9P031_RESTART, val); in mt9p031_s_stream()
742 ret = mt9p031_write(client, MT9P031_ROW_BLACK_TARGET, in mt9p031_restore_blc()
764 ret = mt9p031_write(client, MT9P031_SHUTTER_WIDTH_UPPER, in mt9p031_s_ctrl()
769 return mt9p031_write(client, MT9P031_SHUTTER_WIDTH_LOWER, in mt9p031_s_ctrl()
797 return mt9p031_write(client, MT9P031_GLOBAL_GAIN, data); in mt9p031_s_ctrl()
830 return mt9p031_write(client, MT9P031_TEST_PATTERN, 0); in mt9p031_s_ctrl()
833 ret = mt9p031_write(client, MT9P031_TEST_PATTERN_GREEN, 0x05a0); in mt9p031_s_ctrl()
836 ret = mt9p031_write(client, MT9P031_TEST_PATTERN_RED, 0x0a50); in mt9p031_s_ctrl()
839 ret = mt9p031_write(client, MT9P031_TEST_PATTERN_BLUE, 0x0aa0); in mt9p031_s_ctrl()
849 ret = mt9p031_write(client, MT9P031_ROW_BLACK_DEF_OFFSET, 0); in mt9p031_s_ctrl()
853 return mt9p031_write(client, MT9P031_TEST_PATTERN, in mt9p031_s_ctrl()
864 return mt9p031_write(client, MT9P031_BLACK_LEVEL_CALIBRATION, in mt9p031_s_ctrl()
868 return mt9p031_write(client, MT9P031_ROW_BLACK_TARGET, in mt9p031_s_ctrl()
874 ret = mt9p031_write(client, MT9P031_GREEN1_OFFSET, data); in mt9p031_s_ctrl()
877 ret = mt9p031_write(client, MT9P031_GREEN2_OFFSET, data); in mt9p031_s_ctrl()
880 ret = mt9p031_write(client, MT9P031_RED_OFFSET, data); in mt9p031_s_ctrl()
883 return mt9p031_write(client, MT9P031_BLUE_OFFSET, data); in mt9p031_s_ctrl()
886 return mt9p031_write(client, MT9P031_ROW_BLACK_DEF_OFFSET, in mt9p031_s_ctrl()