/linux/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_plane.c | 26 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tilcdc_plane_atomic_check() local 33 if (!new_state->crtc) in tilcdc_plane_atomic_check() 36 if (WARN_ON(!new_state->fb)) in tilcdc_plane_atomic_check() 39 if (new_state->crtc_x || new_state->crtc_y) { in tilcdc_plane_atomic_check() 46 new_state->crtc); in tilcdc_plane_atomic_check() 51 if (crtc_state->mode.hdisplay != new_state->crtc_w || in tilcdc_plane_atomic_check() 52 crtc_state->mode.vdisplay != new_state->crtc_h) { in tilcdc_plane_atomic_check() 56 new_state->crtc_w, new_state->crtc_h); in tilcdc_plane_atomic_check() 61 new_state->fb->format->cpp[0]; in tilcdc_plane_atomic_check() 62 if (new_state->fb->pitches[0] != pitch) { in tilcdc_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_plane.c | 133 static void mtk_plane_update_new_state(struct drm_plane_state *new_state, in mtk_plane_update_new_state() argument 136 struct drm_framebuffer *fb = new_state->fb; in mtk_plane_update_new_state() 159 offset = (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state() 161 offset = (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state() 168 int x_offset_in_blocks = (new_state->src.x1 >> 16) / AFBC_DATA_BLOCK_WIDTH; in mtk_plane_update_new_state() 169 int y_offset_in_blocks = (new_state->src.y1 >> 16) / AFBC_DATA_BLOCK_HEIGHT; in mtk_plane_update_new_state() 207 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state() 208 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state() 209 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state() 210 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state() [all …]
|
/linux/drivers/gpu/drm/armada/ |
H A D | armada_overlay.c | 75 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in armada_drm_overlay_plane_atomic_update() local 84 if (!new_state->fb || WARN_ON(!new_state->crtc)) in armada_drm_overlay_plane_atomic_update() 89 new_state->crtc->base.id, new_state->crtc->name, in armada_drm_overlay_plane_atomic_update() 90 new_state->fb->base.id, in armada_drm_overlay_plane_atomic_update() 91 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update() 93 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_overlay_plane_atomic_update() 97 if (!old_state->visible && new_state->visible) in armada_drm_overlay_plane_atomic_update() 101 val = armada_src_hw(new_state); in armada_drm_overlay_plane_atomic_update() 104 val = armada_dst_yx(new_state); in armada_drm_overlay_plane_atomic_update() 107 val = armada_dst_hw(new_state); in armada_drm_overlay_plane_atomic_update() [all …]
|
H A D | armada_plane.c | 141 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in armada_drm_primary_plane_atomic_update() local 150 if (!new_state->fb || WARN_ON(!new_state->crtc)) in armada_drm_primary_plane_atomic_update() 155 new_state->crtc->base.id, new_state->crtc->name, in armada_drm_primary_plane_atomic_update() 156 new_state->fb->base.id, in armada_drm_primary_plane_atomic_update() 157 old_state->visible, new_state->visible); in armada_drm_primary_plane_atomic_update() 159 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_primary_plane_atomic_update() 163 if (!old_state->visible && new_state->visible) { in armada_drm_primary_plane_atomic_update() 165 if (drm_fb_to_armada_fb(new_state->fb)->fmt > CFG_420) in armada_drm_primary_plane_atomic_update() 169 val = armada_src_hw(new_state); in armada_drm_primary_plane_atomic_update() 172 val = armada_dst_yx(new_state); in armada_drm_primary_plane_atomic_update() [all …]
|
/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_rm_xics.c | 242 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 246 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 251 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 252 new_state.mfrr > priority && in icp_rm_try_to_deliver() 253 new_state.pending_pri > priority; in icp_rm_try_to_deliver() 260 *reject = new_state.xisr; in icp_rm_try_to_deliver() 261 new_state.xisr = irq; in icp_rm_try_to_deliver() 262 new_state.pending_pri = priority; in icp_rm_try_to_deliver() 269 new_state.need_resend = true; in icp_rm_try_to_deliver() 272 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() [all …]
|
H A D | book3s_xics.c | 339 union kvmppc_icp_state old_state, new_state; in icp_try_to_deliver() local 346 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver() 351 success = new_state.cppr > priority && in icp_try_to_deliver() 352 new_state.mfrr > priority && in icp_try_to_deliver() 353 new_state.pending_pri > priority; in icp_try_to_deliver() 360 *reject = new_state.xisr; in icp_try_to_deliver() 361 new_state.xisr = irq; in icp_try_to_deliver() 362 new_state.pending_pri = priority; in icp_try_to_deliver() 369 new_state.need_resend = true; in icp_try_to_deliver() 372 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | sf.c | 176 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 179 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config() 187 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config() 190 switch (new_state) { in iwl_mvm_sf_config() 207 new_state); in iwl_mvm_sf_config() 214 mvm->sf_state = new_state; in iwl_mvm_sf_config() 227 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local 258 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 265 new_state = data.sta_vif_state; in iwl_mvm_sf_update() 271 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_mixer.c | 45 struct mdp5_hw_mixer_state *new_state; in mdp5_mixer_assign() local 51 new_state = &global_state->hwmixer; in mdp5_mixer_assign() 63 if (new_state->hwmixer_to_crtc[cur->idx] && in mdp5_mixer_assign() 64 new_state->hwmixer_to_crtc[cur->idx] != crtc) in mdp5_mixer_assign() 78 if (new_state->hwmixer_to_crtc[pair_idx]) in mdp5_mixer_assign() 109 new_state->hwmixer_to_crtc[(*mixer)->idx] = crtc; in mdp5_mixer_assign() 113 new_state->hwmixer_to_crtc[(*r_mixer)->idx] = crtc; in mdp5_mixer_assign() 122 struct mdp5_hw_mixer_state *new_state; in mdp5_mixer_release() local 130 new_state = &global_state->hwmixer; in mdp5_mixer_release() 132 if (WARN_ON(!new_state->hwmixer_to_crtc[mixer->idx])) in mdp5_mixer_release() [all …]
|
H A D | mdp5_pipe.c | 17 struct mdp5_hw_pipe_state *old_state, *new_state; in mdp5_pipe_assign() local 28 new_state = &new_global_state->hwpipe; in mdp5_pipe_assign() 40 if (new_state->hwpipe_to_plane[cur->idx] || in mdp5_pipe_assign() 111 new_state->hwpipe_to_plane[(*hwpipe)->idx] = plane; in mdp5_pipe_assign() 116 new_state->hwpipe_to_plane[(*r_hwpipe)->idx] = plane; in mdp5_pipe_assign() 127 struct mdp5_hw_pipe_state *new_state; in mdp5_pipe_release() local 136 new_state = &state->hwpipe; in mdp5_pipe_release() 138 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx])) in mdp5_pipe_release() 142 new_state->hwpipe_to_plane[hwpipe->idx]->name); in mdp5_pipe_release() 149 new_state->hwpipe_to_plane[hwpipe->idx] = NULL; in mdp5_pipe_release()
|
/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_plane.c | 100 struct drm_plane_state *new_state) in lsdc_plane_prepare_fb() argument 102 struct drm_framebuffer *fb = new_state->fb; in lsdc_plane_prepare_fb() 134 return drm_gem_plane_helper_prepare_fb(plane, new_state); in lsdc_plane_prepare_fb() 176 struct drm_plane_state *new_state; in lsdc_cursor_plane_atomic_async_check() local 179 new_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_cursor_plane_atomic_async_check() 186 if (new_state->crtc_w != new_state->crtc_h) { in lsdc_cursor_plane_atomic_async_check() 188 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 192 if (new_state->crtc_w != 64 && new_state->crtc_w != 32) { in lsdc_cursor_plane_atomic_async_check() 194 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 198 crtc_state = drm_atomic_get_existing_crtc_state(state, new_state->crtc); in lsdc_cursor_plane_atomic_async_check() [all …]
|
/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-plane.c | 369 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in ipu_plane_atomic_check() local 375 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_check() 385 if (WARN_ON(!new_state->crtc)) in ipu_plane_atomic_check() 390 new_state->crtc); in ipu_plane_atomic_check() 394 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, in ipu_plane_atomic_check() 408 if (drm_rect_width(&new_state->dst) < 13) in ipu_plane_atomic_check() 418 if (drm_rect_height(&new_state->dst) < 2) in ipu_plane_atomic_check() 429 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check() 430 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check() 434 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_check() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | pmic8xxx-keypad.c | 171 static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in pmic8xxx_kp_read_matrix() argument 194 rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, in pmic8xxx_kp_read_matrix() 219 static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in __pmic8xxx_kp_scan_matrix() argument 225 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix() 235 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix() 250 static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) in pmic8xxx_detect_ghost_keys() argument 257 row_state = (~new_state[row]) & in pmic8xxx_detect_ghost_keys() 276 u16 new_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local 282 rc = pmic8xxx_kp_read_matrix(kp, new_state, NULL); in pmic8xxx_kp_scan_matrix() [all …]
|
H A D | pxa27x_keypad.c | 413 uint32_t new_state[MAX_MATRIX_KEY_COLS]; in pxa27x_keypad_scan_matrix() local 418 memset(new_state, 0, sizeof(new_state)); in pxa27x_keypad_scan_matrix() 432 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix() 442 new_state[0] = kpasmkp0 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 443 new_state[1] = (kpasmkp0 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 444 new_state[2] = kpasmkp1 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 445 new_state[3] = (kpasmkp1 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 446 new_state[4] = kpasmkp2 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 447 new_state[5] = (kpasmkp2 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 448 new_state[6] = kpasmkp3 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() [all …]
|
H A D | twl4030_keypad.c | 166 u8 new_state[TWL4030_MAX_ROWS]; in twl4030_read_kp_matrix_state() local 168 int ret = twl4030_kpread(kp, new_state, in twl4030_read_kp_matrix_state() 172 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state() 197 u16 new_state[TWL4030_MAX_ROWS]; in twl4030_kp_scan() local 201 memset(new_state, 0, sizeof(new_state)); in twl4030_kp_scan() 204 int ret = twl4030_read_kp_matrix_state(kp, new_state); in twl4030_kp_scan() 209 if (twl4030_is_in_ghost_state(kp, new_state)) in twl4030_kp_scan() 215 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan() 228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan() 234 new_state[row] & (1 << col)); in twl4030_kp_scan() [all …]
|
/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_plane.c | 46 struct drm_plane_state *new_state) in omap_plane_prepare_fb() argument 48 if (!new_state->fb) in omap_plane_prepare_fb() 51 drm_gem_plane_helper_prepare_fb(plane, new_state); in omap_plane_prepare_fb() 53 return omap_framebuffer_pin(new_state->fb); in omap_plane_prepare_fb() 67 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in omap_plane_atomic_update() local 78 new_omap_state = to_omap_plane_state(new_state); in omap_plane_atomic_update() 81 dual_ovl = is_omap_plane_dual_overlay(new_state); in omap_plane_atomic_update() 95 DBG("%s, crtc=%p fb=%p", plane->name, new_state->crtc, in omap_plane_atomic_update() 96 new_state->fb); in omap_plane_atomic_update() 101 info.global_alpha = new_state->alpha >> 8; in omap_plane_atomic_update() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | g84.c | 102 enum nvkm_therm_thrs_state prev_state, new_state; in g84_therm_threshold_hyst_emulation() local 111 new_state = NVKM_THERM_THRS_HIGHER; in g84_therm_threshold_hyst_emulation() 114 new_state = NVKM_THERM_THRS_LOWER; in g84_therm_threshold_hyst_emulation() 119 if (new_state == NVKM_THERM_THRS_LOWER && cur > thrs->temp) in g84_therm_threshold_hyst_emulation() 120 new_state = NVKM_THERM_THRS_HIGHER; in g84_therm_threshold_hyst_emulation() 121 else if (new_state == NVKM_THERM_THRS_HIGHER && in g84_therm_threshold_hyst_emulation() 123 new_state = NVKM_THERM_THRS_LOWER; in g84_therm_threshold_hyst_emulation() 124 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state); in g84_therm_threshold_hyst_emulation() 127 if (prev_state < new_state) in g84_therm_threshold_hyst_emulation() 129 else if (prev_state > new_state) in g84_therm_threshold_hyst_emulation()
|
/linux/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_mode.c | 260 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_check() local 264 if (new_state->crtc) { in vbox_primary_atomic_check() 266 new_state->crtc); in vbox_primary_atomic_check() 271 return drm_atomic_helper_check_plane_state(new_state, crtc_state, in vbox_primary_atomic_check() 280 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_update() local 282 struct drm_crtc *crtc = new_state->crtc; in vbox_primary_atomic_update() 283 struct drm_framebuffer *fb = new_state->fb; in vbox_primary_atomic_update() 289 new_state->src_x >> 16, in vbox_primary_atomic_update() 290 new_state->src_y >> 16); in vbox_primary_atomic_update() 294 clips = drm_plane_get_damage_clips(new_state); in vbox_primary_atomic_update() [all …]
|
/linux/include/drm/ |
H A D | drm_atomic.h | 162 struct drm_plane_state *state, *old_state, *new_state; member 167 struct drm_crtc_state *state, *old_state, *new_state; member 185 struct drm_connector_state *state, *old_state, *new_state; member 345 struct drm_private_state *state, *old_state, *new_state; member 630 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state() 678 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state() 741 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state() 818 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 860 (new_connector_state) = (__state)->connectors[__i].new_state, \ 884 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_plane.c | 80 struct drm_plane_state *new_state) in mdp4_plane_prepare_fb() argument 85 if (!new_state->fb) in mdp4_plane_prepare_fb() 88 drm_gem_plane_helper_prepare_fb(plane, new_state); in mdp4_plane_prepare_fb() 90 return msm_framebuffer_prepare(new_state->fb, kms->aspace, false); in mdp4_plane_prepare_fb() 118 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mdp4_plane_atomic_update() local 123 new_state->crtc, new_state->fb, in mdp4_plane_atomic_update() 124 new_state->crtc_x, new_state->crtc_y, in mdp4_plane_atomic_update() 125 new_state->crtc_w, new_state->crtc_h, in mdp4_plane_atomic_update() 126 new_state->src_x, new_state->src_y, in mdp4_plane_atomic_update() 127 new_state->src_w, new_state->src_h); in mdp4_plane_atomic_update()
|
/linux/drivers/gpu/drm/logicvc/ |
H A D | logicvc_layer.c | 89 struct drm_plane_state *new_state = in logicvc_plane_atomic_check() local 96 if (!new_state->crtc) in logicvc_plane_atomic_check() 99 crtc_state = drm_atomic_get_existing_crtc_state(new_state->state, in logicvc_plane_atomic_check() 100 new_state->crtc); in logicvc_plane_atomic_check() 104 if (new_state->crtc_x < 0 || new_state->crtc_y < 0) { in logicvc_plane_atomic_check() 111 ret = logicvc_layer_buffer_find_setup(logicvc, layer, new_state, in logicvc_plane_atomic_check() 126 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, in logicvc_plane_atomic_check() 143 struct drm_plane_state *new_state = in logicvc_plane_atomic_update() local 147 struct drm_framebuffer *fb = new_state->fb; in logicvc_plane_atomic_update() 155 new_state->crtc_w - 1); in logicvc_plane_atomic_update() [all …]
|
/linux/drivers/gpu/drm/meson/ |
H A D | meson_plane.c | 137 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in meson_plane_atomic_update() local 139 struct drm_rect dest = drm_plane_state_dest(new_state); in meson_plane_atomic_update() 141 struct drm_framebuffer *fb = new_state->fb; in meson_plane_atomic_update() 254 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { in meson_plane_atomic_update() 264 src_w = fixed16_to_int(new_state->src_w); in meson_plane_atomic_update() 265 src_h = fixed16_to_int(new_state->src_h); in meson_plane_atomic_update() 266 dst_w = new_state->crtc_w; in meson_plane_atomic_update() 267 dst_h = new_state->crtc_h; in meson_plane_atomic_update() 276 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { in meson_plane_atomic_update() 285 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) in meson_plane_atomic_update() [all …]
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-laptop.c | 1544 struct kbd_state new_state; in kbd_led_timeout_store() local 1637 new_state = state; in kbd_led_timeout_store() 1640 new_state.timeout_value_ac = value; in kbd_led_timeout_store() 1641 new_state.timeout_unit_ac = unit; in kbd_led_timeout_store() 1643 new_state.timeout_value = value; in kbd_led_timeout_store() 1644 new_state.timeout_unit = unit; in kbd_led_timeout_store() 1647 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store() 1710 struct kbd_state new_state; in kbd_led_triggers_store() local 1761 new_state = state; in kbd_led_triggers_store() 1763 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | tcp_ca_kfunc.c | 14 extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym; 21 extern void dctcp_state(struct sock *sk, u8 new_state) __ksym; 26 extern void cubictcp_state(struct sock *sk, u8 new_state) __ksym; 92 void BPF_PROG(set_state, struct sock *sk, u8 new_state) in BPF_PROG() argument 94 bbr_set_state(sk, new_state); in BPF_PROG() 95 dctcp_state(sk, new_state); in BPF_PROG() 96 cubictcp_state(sk, new_state); in BPF_PROG()
|
/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_plane.c | 97 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vkms_plane_atomic_update() local 101 struct drm_framebuffer *fb = new_state->fb; in vkms_plane_atomic_update() 105 if (!new_state->crtc || !fb) in vkms_plane_atomic_update() 109 vkms_plane_state = to_vkms_plane_state(new_state); in vkms_plane_atomic_update() 113 memcpy(&frame_info->src, &new_state->src, sizeof(struct drm_rect)); in vkms_plane_atomic_update() 114 memcpy(&frame_info->dst, &new_state->dst, sizeof(struct drm_rect)); in vkms_plane_atomic_update() 115 memcpy(&frame_info->rotated, &new_state->dst, sizeof(struct drm_rect)); in vkms_plane_atomic_update() 119 frame_info->rotation = drm_rotation_simplify(new_state->rotation, DRM_MODE_ROTATE_0 | in vkms_plane_atomic_update()
|
/linux/drivers/gpu/drm/tegra/ |
H A D | hub.c | 536 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_update() local 538 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update() 539 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update() 540 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update() 541 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update() 550 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update() 553 if (!new_state->visible) { in tegra_shared_plane_atomic_update() 585 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update() 603 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update() 604 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update() [all …]
|