Lines Matching refs:gs
46 struct gs { struct
257 static inline struct gs *to_gs(struct v4l2_subdev *sd) in to_gs()
259 return container_of(sd, struct gs, sd); in to_gs()
265 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local
272 gs->current_timings = *timings; in gs_s_dv_timings()
279 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
281 *timings = gs->current_timings; in gs_g_dv_timings()
288 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
293 if (gs->enabled) in gs_query_dv_timings()
301 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, ®_value); in gs_query_dv_timings()
310 gs_read_register(gs->pdev, REG_STATUS, ®_value); in gs_query_dv_timings()
340 struct gs *gs = to_gs(sd); in gs_s_stream() local
343 if (gs->enabled == enable) in gs_s_stream()
346 gs->enabled = enable; in gs_s_stream()
350 reg_value = get_register_timings(&gs->current_timings); in gs_s_stream()
351 return gs_write_register(gs->pdev, REG_FORCE_FMT, reg_value); in gs_s_stream()
355 return gs_write_register(gs->pdev, REG_FORCE_FMT, 0x0); in gs_s_stream()
360 struct gs *gs = to_gs(sd); in gs_g_input_status() local
369 ret = gs_read_register(gs->pdev, in gs_g_input_status()
383 ret = gs_read_register(gs->pdev, REG_STATUS, ®_value); in gs_g_input_status()
435 struct gs *gs; in gs_probe() local
438 gs = devm_kzalloc(&spi->dev, sizeof(struct gs), GFP_KERNEL); in gs_probe()
439 if (!gs) in gs_probe()
442 gs->pdev = spi; in gs_probe()
443 sd = &gs->sd; in gs_probe()
452 gs->current_timings = reg_fmt[0].format; in gs_probe()
453 gs->enabled = 0; in gs_probe()