Lines Matching refs:gs

50 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
264 gs->current_timings = *timings; in gs_s_dv_timings()
271 struct gs *gs = to_gs(sd); in gs_g_dv_timings() local
273 *timings = gs->current_timings; in gs_g_dv_timings()
280 struct gs *gs = to_gs(sd); in gs_query_dv_timings() local
285 if (gs->enabled) in gs_query_dv_timings()
293 gs_read_register(gs->pdev, REG_LINES_PER_FRAME + i, &reg_value); in gs_query_dv_timings()
302 gs_read_register(gs->pdev, REG_STATUS, &reg_value); in gs_query_dv_timings()
332 struct gs *gs = to_gs(sd); in gs_s_stream() local
335 if (gs->enabled == enable) in gs_s_stream()
338 gs->enabled = enable; in gs_s_stream()
342 reg_value = get_register_timings(&gs->current_timings); in gs_s_stream()
343 return gs_write_register(gs->pdev, REG_FORCE_FMT, reg_value); in gs_s_stream()
347 return gs_write_register(gs->pdev, REG_FORCE_FMT, 0x0); in gs_s_stream()
352 struct gs *gs = to_gs(sd); in gs_g_input_status() local
361 ret = gs_read_register(gs->pdev, in gs_g_input_status()
375 ret = gs_read_register(gs->pdev, REG_STATUS, &reg_value); in gs_g_input_status()
427 struct gs *gs; in gs_probe() local
430 gs = devm_kzalloc(&spi->dev, sizeof(struct gs), GFP_KERNEL); in gs_probe()
431 if (!gs) in gs_probe()
434 gs->pdev = spi; in gs_probe()
435 sd = &gs->sd; in gs_probe()
444 gs->current_timings = reg_fmt[0].format; in gs_probe()
445 gs->enabled = 0; in gs_probe()