Lines Matching refs:state

455 to_sor_state(struct drm_connector_state *state)
457 return container_of(state, struct tegra_sor_state, base);
1285 struct tegra_sor_state *state)
1311 switch (state->bpc) {
1499 if (!crtc || !crtc->state->active) {
1661 if (!crtc || !crtc->state->active) {
1718 struct tegra_sor_state *state;
1720 state = kzalloc(sizeof(*state), GFP_KERNEL);
1721 if (!state)
1724 if (connector->state) {
1725 __drm_atomic_helper_connector_destroy_state(connector->state);
1726 kfree(connector->state);
1729 __drm_atomic_helper_connector_reset(connector, &state->base);
1747 struct tegra_sor_state *state = to_sor_state(connector->state);
1750 copy = kmemdup(state, sizeof(*state), GFP_KERNEL);
1805 struct tegra_sor_state *state = to_sor_state(conn_state);
1819 state->link_speed = 20;
1820 state->pclk = pclk / 2;
1822 state->link_speed = 10;
1823 state->pclk = pclk;
1829 dev_err(output->dev, "failed to setup CRTC state: %d\n", err);
1836 state->bpc = info->bpc;
1841 state->bpc = 8;
2193 mode = &sor->output.encoder.crtc->state->adjusted_mode;
2250 struct tegra_sor_state *state;
2257 state = to_sor_state(output->connector.state);
2258 mode = &encoder->crtc->state->adjusted_mode;
2557 switch (state->bpc) {
2575 WARN(1, "%u bits-per-color not supported\n", state->bpc);
2604 tegra_sor_mode_set(sor, mode, state);
2720 struct tegra_sor_state *state;
2727 state = to_sor_state(output->connector.state);
2728 mode = &encoder->crtc->state->adjusted_mode;
2888 config.bits_per_pixel = state->bpc * 3;
2895 tegra_sor_mode_set(sor, mode, state);