Lines Matching full:gs
46 struct gs { struct
249 static inline struct gs *to_gs(struct v4l2_subdev *sd) in to_gs()
251 return container_of(sd, struct gs, sd); in to_gs()
257 struct gs *gs = to_gs(sd); in gs_s_dv_timings() local
267 gs->current_timings = *timings; in gs_s_dv_timings()
274 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
279 *timings = gs->current_timings; in gs_g_dv_timings()
286 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
294 if (gs->enabled) in gs_query_dv_timings()
302 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, ®_value); in gs_query_dv_timings()
311 gs_read_register(gs->pdev, REG_STATUS, ®_value); in gs_query_dv_timings()
341 struct gs *gs = to_gs(sd); in gs_s_stream() local
344 if (gs->enabled == enable) in gs_s_stream()
347 gs->enabled = enable; in gs_s_stream()
351 reg_value = get_register_timings(&gs->current_timings); in gs_s_stream()
352 return gs_write_register(gs->pdev, REG_FORCE_FMT, reg_value); in gs_s_stream()
356 return gs_write_register(gs->pdev, REG_FORCE_FMT, 0x0); in gs_s_stream()
361 struct gs *gs = to_gs(sd); in gs_g_input_status() local
370 ret = gs_read_register(gs->pdev, in gs_g_input_status()
384 ret = gs_read_register(gs->pdev, REG_STATUS, ®_value); in gs_g_input_status()
436 struct gs *gs; in gs_probe() local
439 gs = devm_kzalloc(&spi->dev, sizeof(struct gs), GFP_KERNEL); in gs_probe()
440 if (!gs) in gs_probe()
443 gs->pdev = spi; in gs_probe()
444 sd = &gs->sd; in gs_probe()
453 gs->current_timings = reg_fmt[0].format; in gs_probe()
454 gs->enabled = 0; in gs_probe()