Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/linux/drivers/gpu/drm/tilcdc/
A Dtilcdc_plane.c33 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()
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()
84 if (!new_state->crtc) in tilcdc_plane_atomic_update()
87 if (WARN_ON(!new_state->fb || !new_state->crtc->state)) in tilcdc_plane_atomic_update()
91 new_state->fb, in tilcdc_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/mediatek/
A Dmtk_drm_plane.c149 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update()
150 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update()
151 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update()
152 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
153 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update()
154 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update()
155 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update()
156 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update()
157 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update()
224 if (!new_state->crtc || WARN_ON(!new_state->fb)) in mtk_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/armada/
A Darmada_plane.c150 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()
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()
175 val = armada_dst_hw(new_state); in armada_drm_primary_plane_atomic_update()
180 old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
190 if (old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
196 if (new_state->visible) in armada_drm_primary_plane_atomic_update()
[all …]
A Darmada_overlay.c82 if (!new_state->fb || WARN_ON(!new_state->crtc)) in armada_drm_overlay_plane_atomic_update()
87 new_state->crtc->base.id, new_state->crtc->name, in armada_drm_overlay_plane_atomic_update()
88 new_state->fb->base.id, in armada_drm_overlay_plane_atomic_update()
99 val = armada_src_hw(new_state); in armada_drm_overlay_plane_atomic_update()
102 val = armada_dst_yx(new_state); in armada_drm_overlay_plane_atomic_update()
105 val = armada_dst_hw(new_state); in armada_drm_overlay_plane_atomic_update()
129 val = armada_pitch(new_state, 0) << 16 | armada_pitch(new_state, in armada_drm_overlay_plane_atomic_update()
132 val = armada_pitch(new_state, 1) << 16 | armada_pitch(new_state, in armada_drm_overlay_plane_atomic_update()
139 if (new_state->visible) in armada_drm_overlay_plane_atomic_update()
147 format = new_state->fb->format; in armada_drm_overlay_plane_atomic_update()
[all …]
/linux/arch/powerpc/kvm/
A Dbook3s_hv_rm_xics.c260 *reject = new_state.xisr; in icp_rm_try_to_deliver()
261 new_state.xisr = irq; in icp_rm_try_to_deliver()
448 new_state.cppr = new_cppr; in icp_rm_down_cppr()
460 new_state.mfrr <= new_state.pending_pri) { in icp_rm_down_cppr()
461 new_state.pending_pri = new_state.mfrr; in icp_rm_down_cppr()
509 new_state.cppr = new_state.pending_pri; in xics_rm_h_xirr()
511 new_state.xisr = 0; in xics_rm_h_xirr()
573 new_state.mfrr = mfrr; in xics_rm_h_ipi()
648 new_state.cppr = cppr; in xics_rm_h_cppr()
651 reject = new_state.xisr; in xics_rm_h_cppr()
[all …]
A Dbook3s_xics.c361 new_state.xisr = irq; in icp_try_to_deliver()
564 new_state.mfrr <= new_state.pending_pri) { in icp_down_cppr()
567 new_state.pending_pri = new_state.mfrr; in icp_down_cppr()
608 new_state.cppr = new_state.pending_pri; in kvmppc_h_xirr()
610 new_state.xisr = 0; in kvmppc_h_xirr()
673 new_state.mfrr = mfrr; in kvmppc_h_ipi()
763 new_state.xisr = 0; in kvmppc_h_cppr()
1145 new_state.raw = 0; in kvmppc_xics_set_icp()
1146 new_state.cppr = cppr; in kvmppc_xics_set_icp()
1147 new_state.xisr = xisr; in kvmppc_xics_set_icp()
[all …]
/linux/drivers/gpu/drm/imx/
A Dipuv3-plane.c390 if (WARN_ON(!new_state->crtc)) in ipu_plane_atomic_check()
395 new_state->crtc); in ipu_plane_atomic_check()
631 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
645 new_state->color_range, ics, in ipu_plane_atomic_update()
650 new_state->color_range, ics, in ipu_plane_atomic_update()
688 width = ipu_src_rect_width(new_state); in ipu_plane_atomic_update()
723 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
734 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
747 new_state->src.y1 >> 16); in ipu_plane_atomic_update()
753 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dsf.c161 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config()
173 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config()
176 switch (new_state) { in iwl_mvm_sf_config()
201 new_state); in iwl_mvm_sf_config()
208 mvm->sf_state = new_state; in iwl_mvm_sf_config()
221 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local
250 new_state = SF_INIT_OFF; in iwl_mvm_sf_update()
263 new_state = SF_UNINIT; in iwl_mvm_sf_update()
268 new_state = SF_FULL_ON; in iwl_mvm_sf_update()
270 new_state = SF_INIT_OFF; in iwl_mvm_sf_update()
[all …]
/linux/drivers/gpu/drm/omapdrm/
A Domap_plane.c28 struct drm_plane_state *new_state) in omap_plane_prepare_fb() argument
30 if (!new_state->fb) in omap_plane_prepare_fb()
33 drm_gem_plane_helper_prepare_fb(plane, new_state); in omap_plane_prepare_fb()
35 return omap_framebuffer_pin(new_state->fb); in omap_plane_prepare_fb()
56 new_state->fb); in omap_plane_atomic_update()
61 info.global_alpha = new_state->alpha >> 8; in omap_plane_atomic_update()
62 info.zorder = new_state->normalized_zpos; in omap_plane_atomic_update()
68 info.color_range = new_state->color_range; in omap_plane_atomic_update()
71 omap_framebuffer_update_scanout(new_state->fb, new_state, &info); in omap_plane_atomic_update()
82 omap_crtc_channel(new_state->crtc)); in omap_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/msm/disp/mdp5/
A Dmdp5_mixer.c45 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 = &global_state->hwmixer; in mdp5_mixer_release() local
127 if (WARN_ON(!new_state->hwmixer_to_crtc[mixer->idx])) in mdp5_mixer_release()
131 new_state->hwmixer_to_crtc[mixer->idx]->name); in mdp5_mixer_release()
[all …]
A Dmdp5_pipe.c17 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 = &state->hwpipe; in mdp5_pipe_release() local
132 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx])) in mdp5_pipe_release()
136 new_state->hwpipe_to_plane[hwpipe->idx]->name); in mdp5_pipe_release()
143 new_state->hwpipe_to_plane[hwpipe->idx] = NULL; in mdp5_pipe_release()
/linux/drivers/net/ethernet/intel/ice/
A Dice_sriov.c192 enum ice_mbx_snapshot_state *new_state) in ice_mbx_traverse() argument
233 enum ice_mbx_snapshot_state *new_state, in ice_mbx_detect_malvf() argument
248 ice_mbx_traverse(hw, new_state); in ice_mbx_detect_malvf()
308 enum ice_mbx_snapshot_state new_state; in ice_mbx_vf_state_handler() local
334 new_state = ICE_MAL_VF_DETECT_STATE_INVALID; in ice_mbx_vf_state_handler()
366 new_state = ICE_MAL_VF_DETECT_STATE_DETECT; in ice_mbx_vf_state_handler()
370 ice_mbx_traverse(hw, &new_state); in ice_mbx_vf_state_handler()
376 ice_mbx_traverse(hw, &new_state); in ice_mbx_vf_state_handler()
380 new_state = ICE_MAL_VF_DETECT_STATE_DETECT; in ice_mbx_vf_state_handler()
385 new_state = ICE_MAL_VF_DETECT_STATE_INVALID; in ice_mbx_vf_state_handler()
[all …]
/linux/drivers/input/keyboard/
A Dpmic8xxx-keypad.c225 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()
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()
287 if (pmic8xxx_detect_ghost_keys(kp, new_state)) in pmic8xxx_kp_scan_matrix()
290 memcpy(kp->keystate, new_state, sizeof(new_state)); in pmic8xxx_kp_scan_matrix()
299 memcpy(kp->keystate, new_state, sizeof(new_state)); in pmic8xxx_kp_scan_matrix()
308 memcpy(kp->keystate, new_state, sizeof(new_state)); in pmic8xxx_kp_scan_matrix()
[all …]
A Dpxa27x_keypad.c413 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()
444 new_state[2] = kpasmkp1 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix()
446 new_state[4] = kpasmkp2 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix()
468 new_state[col] & (1 << row)); in pxa27x_keypad_scan_matrix()
472 memcpy(keypad->matrix_key_state, new_state, sizeof(new_state)); in pxa27x_keypad_scan_matrix()
531 unsigned int new_state; in pxa27x_keypad_scan_direct() local
560 new_state & (1 << i)); in pxa27x_keypad_scan_direct()
[all …]
A Dtwl4030_keypad.c166 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/nouveau/nvkm/subdev/therm/
A Dg84.c102 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/include/drm/
A Ddrm_atomic.h162 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
326 struct drm_private_state *state, *old_state, *new_state; member
556 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state()
604 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
667 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state()
810 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
851 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
874 (new_plane_state) = (__state)->planes[__i].new_state, 1))
[all …]
/linux/drivers/platform/x86/dell/
A Ddell-laptop.c1540 struct kbd_state new_state; in kbd_led_timeout_store() local
1633 new_state = state; in kbd_led_timeout_store()
1706 struct kbd_state new_state; in kbd_led_triggers_store() local
1757 new_state = state; in kbd_led_triggers_store()
1771 new_state.triggers) { in kbd_led_triggers_store()
1840 struct kbd_state new_state; in kbd_led_als_enabled_store() local
1861 new_state = state; in kbd_led_als_enabled_store()
1919 struct kbd_state new_state; in kbd_led_als_setting_store() local
1933 new_state = state; in kbd_led_als_setting_store()
2025 struct kbd_state new_state; in kbd_led_level_set() local
[all …]
/linux/drivers/gpu/drm/vboxvideo/
A Dvbox_mode.c262 if (new_state->crtc) { in vbox_primary_atomic_check()
264 new_state->crtc); in vbox_primary_atomic_check()
287 new_state->src_x >> 16, in vbox_primary_atomic_update()
288 new_state->src_y >> 16); in vbox_primary_atomic_update()
340 u32 width = new_state->crtc_w; in vbox_cursor_atomic_check()
341 u32 height = new_state->crtc_h; in vbox_cursor_atomic_check()
344 if (new_state->crtc) { in vbox_cursor_atomic_check()
346 new_state->crtc); in vbox_cursor_atomic_check()
358 if (!new_state->fb) in vbox_cursor_atomic_check()
397 u32 width = new_state->crtc_w; in vbox_cursor_atomic_update()
[all …]
/linux/drivers/gpu/drm/meson/
A Dmeson_plane.c138 struct drm_rect dest = drm_plane_state_dest(new_state); in meson_plane_atomic_update()
140 struct drm_framebuffer *fb = new_state->fb; in meson_plane_atomic_update()
263 src_w = fixed16_to_int(new_state->src_w); in meson_plane_atomic_update()
264 src_h = fixed16_to_int(new_state->src_h); in meson_plane_atomic_update()
265 dst_w = new_state->crtc_w; in meson_plane_atomic_update()
266 dst_h = new_state->crtc_h; in meson_plane_atomic_update()
284 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) in meson_plane_atomic_update()
351 ((fixed16_to_int(new_state->src.x2) - 1) << 16) | in meson_plane_atomic_update()
352 fixed16_to_int(new_state->src.x1); in meson_plane_atomic_update()
354 ((fixed16_to_int(new_state->src.y2) - 1) << 16) | in meson_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/tegra/
A Dhub.c548 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update()
551 if (!new_state->visible) { in tegra_shared_plane_atomic_update()
583 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update()
601 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update()
612 if (new_state->src_h != new_state->crtc_h << 16) { in tegra_shared_plane_atomic_update()
644 value = V_POSITION(new_state->crtc_y) | in tegra_shared_plane_atomic_update()
645 H_POSITION(new_state->crtc_x); in tegra_shared_plane_atomic_update()
648 value = V_SIZE(new_state->crtc_h) | H_SIZE(new_state->crtc_w); in tegra_shared_plane_atomic_update()
654 value = V_SIZE(new_state->src_h >> 16) | H_SIZE(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
703 value = OFFSET_X(new_state->src_y >> 16) | in tegra_shared_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/imx/dcss/
A Ddcss-plane.c275 struct drm_framebuffer *fb = new_state->fb; in dcss_plane_atomic_update()
283 if (!fb || !new_state->crtc || !new_state->visible) in dcss_plane_atomic_update()
286 crtc_state = new_state->crtc->state; in dcss_plane_atomic_update()
290 !dcss_plane_needs_setup(new_state, old_state)) { in dcss_plane_atomic_update()
311 new_state->fb->format, in dcss_plane_atomic_update()
316 new_state->rotation); in dcss_plane_atomic_update()
320 is_rotation_90_or_270 = new_state->rotation & (DRM_MODE_ROTATE_90 | in dcss_plane_atomic_update()
324 new_state->scaling_filter); in dcss_plane_atomic_update()
327 new_state->fb->format, in dcss_plane_atomic_update()
336 fb->format, new_state->alpha >> 8); in dcss_plane_atomic_update()
[all …]
/linux/drivers/gpu/drm/msm/disp/mdp4/
A Dmdp4_plane.c118 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/net/can/dev/
A Ddev.c28 enum can_state new_state) in can_update_state_error_stats() argument
32 if (new_state <= priv->state) in can_update_state_error_stats()
35 switch (new_state) { in can_update_state_error_stats()
105 enum can_state new_state = max(tx_state, rx_state); in can_change_state() local
107 if (unlikely(new_state == priv->state)) { in can_change_state()
114 can_get_state_str(new_state), new_state); in can_change_state()
116 can_update_state_error_stats(dev, new_state); in can_change_state()
117 priv->state = new_state; in can_change_state()
122 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state()
/linux/drivers/gpu/drm/gud/
A Dgud_connector.c290 struct drm_connector_state *new_state; in gud_connector_atomic_check() local
294 new_state = drm_atomic_get_new_connector_state(state, connector); in gud_connector_atomic_check()
295 if (!new_state->crtc) in gud_connector_atomic_check()
301 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check()
303 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check()
305 old_state->tv.mode != new_state->tv.mode || in gud_connector_atomic_check()
306 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check()
307 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check()
309 old_state->tv.overscan != new_state->tv.overscan || in gud_connector_atomic_check()
310 old_state->tv.saturation != new_state->tv.saturation || in gud_connector_atomic_check()
[all …]

Completed in 45 milliseconds

12345678910>>...12