Lines Matching refs:state

455 to_sor_state(struct drm_connector_state *state)
457 return container_of(state, struct tegra_sor_state, base);
1284 struct tegra_sor_state *state)
1310 switch (state->bpc) {
1498 if (!crtc || !crtc->state->active) {
1660 if (!crtc || !crtc->state->active) {
1717 struct tegra_sor_state *state;
1719 state = kzalloc(sizeof(*state), GFP_KERNEL);
1720 if (!state)
1723 if (connector->state) {
1724 __drm_atomic_helper_connector_destroy_state(connector->state);
1725 kfree(connector->state);
1728 __drm_atomic_helper_connector_reset(connector, &state->base);
1746 struct tegra_sor_state *state = to_sor_state(connector->state);
1749 copy = kmemdup(state, sizeof(*state), GFP_KERNEL);
1804 struct tegra_sor_state *state = to_sor_state(conn_state);
1818 state->link_speed = 20;
1819 state->pclk = pclk / 2;
1821 state->link_speed = 10;
1822 state->pclk = pclk;
1828 dev_err(output->dev, "failed to setup CRTC state: %d\n", err);
1835 state->bpc = info->bpc;
1840 state->bpc = 8;
2197 mode = &sor->output.encoder.crtc->state->adjusted_mode;
2254 struct tegra_sor_state *state;
2261 state = to_sor_state(output->connector.state);
2262 mode = &encoder->crtc->state->adjusted_mode;
2561 switch (state->bpc) {
2579 WARN(1, "%u bits-per-color not supported\n", state->bpc);
2608 tegra_sor_mode_set(sor, mode, state);
2724 struct tegra_sor_state *state;
2731 state = to_sor_state(output->connector.state);
2732 mode = &encoder->crtc->state->adjusted_mode;
2892 config.bits_per_pixel = state->bpc * 3;
2899 tegra_sor_mode_set(sor, mode, state);