/linux-master/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_plane.c | 26 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 33 if (!new_state->crtc) 36 if (WARN_ON(!new_state->fb)) 39 if (new_state->crtc_x || new_state->crtc_y) { 46 new_state->crtc); 51 if (crtc_state->mode.hdisplay != new_state->crtc_w || 52 crtc_state->mode.vdisplay != new_state->crtc_h) { 56 new_state->crtc_w, new_state 81 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local [all...] |
/linux-master/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_mixer.c | 45 struct mdp5_hw_mixer_state *new_state; local 51 new_state = &global_state->hwmixer; 63 if (new_state->hwmixer_to_crtc[cur->idx] && 64 new_state->hwmixer_to_crtc[cur->idx] != crtc) 78 if (new_state->hwmixer_to_crtc[pair_idx]) 109 new_state->hwmixer_to_crtc[(*mixer)->idx] = crtc; 113 new_state->hwmixer_to_crtc[(*r_mixer)->idx] = crtc; 122 struct mdp5_hw_mixer_state *new_state; local 130 new_state = &global_state->hwmixer; 132 if (WARN_ON(!new_state [all...] |
H A D | mdp5_pipe.c | 17 struct mdp5_hw_pipe_state *old_state, *new_state; local 28 new_state = &new_global_state->hwpipe; 40 if (new_state->hwpipe_to_plane[cur->idx] || 111 new_state->hwpipe_to_plane[(*hwpipe)->idx] = plane; 116 new_state->hwpipe_to_plane[(*r_hwpipe)->idx] = plane; 127 struct mdp5_hw_pipe_state *new_state; local 136 new_state = &state->hwpipe; 138 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx])) 142 new_state->hwpipe_to_plane[hwpipe->idx]->name); 149 new_state [all...] |
/linux-master/drivers/gpu/drm/armada/ |
H A D | armada_plane.c | 141 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 150 if (!new_state->fb || WARN_ON(!new_state->crtc)) 155 new_state->crtc->base.id, new_state->crtc->name, 156 new_state->fb->base.id, 157 old_state->visible, new_state->visible); 159 dcrtc = drm_to_armada_crtc(new_state->crtc); 163 if (!old_state->visible && new_state->visible) { 165 if (drm_fb_to_armada_fb(new_state [all...] |
H A D | armada_overlay.c | 75 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 84 if (!new_state->fb || WARN_ON(!new_state->crtc)) 89 new_state->crtc->base.id, new_state->crtc->name, 90 new_state->fb->base.id, 91 old_state->visible, new_state->visible); 93 dcrtc = drm_to_armada_crtc(new_state->crtc); 97 if (!old_state->visible && new_state->visible) 101 val = armada_src_hw(new_state); [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_vf_mbx.c | 150 * @new_state: new algorithm state 157 enum ice_mbx_snapshot_state *new_state) 182 *new_state = ICE_MAL_VF_DETECT_STATE_NEW_SNAPSHOT; 189 * @new_state: new algorithm state 198 enum ice_mbx_snapshot_state *new_state, 208 ice_mbx_traverse(hw, new_state); 243 enum ice_mbx_snapshot_state new_state; local 270 new_state = ICE_MAL_VF_DETECT_STATE_INVALID; 302 new_state = ICE_MAL_VF_DETECT_STATE_DETECT; 303 status = ice_mbx_detect_malvf(hw, vf_info, &new_state, 156 ice_mbx_traverse(struct ice_hw *hw, enum ice_mbx_snapshot_state *new_state) argument 197 ice_mbx_detect_malvf(struct ice_hw *hw, struct ice_mbx_vf_info *vf_info, enum ice_mbx_snapshot_state *new_state, bool *is_malvf) argument [all...] |
/linux-master/drivers/gpu/drm/mediatek/ |
H A D | mtk_drm_plane.c | 133 static void mtk_plane_update_new_state(struct drm_plane_state *new_state, argument 136 struct drm_framebuffer *fb = new_state->fb; 156 * for example: addr += (new_state->src.x1 >> 16) * fb->format->cpp[0]; 159 offset = (new_state->src.x1 >> 16) * fb->format->cpp[0]; 161 offset = (new_state->src.y1 >> 16) * pitch; 168 int x_offset_in_blocks = (new_state->src.x1 >> 16) / AFBC_DATA_BLOCK_WIDTH; 169 int y_offset_in_blocks = (new_state->src.y1 >> 16) / AFBC_DATA_BLOCK_HEIGHT; 207 mtk_plane_state->pending.x = new_state->dst.x1; 208 mtk_plane_state->pending.y = new_state->dst.y1; 209 mtk_plane_state->pending.width = drm_rect_width(&new_state 218 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 283 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 294 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local [all...] |
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_hv_rm_xics.c | 242 union kvmppc_icp_state old_state, new_state; local 246 old_state = new_state = READ_ONCE(icp->state); 251 success = new_state.cppr > priority && 252 new_state.mfrr > priority && 253 new_state.pending_pri > priority; 260 *reject = new_state.xisr; 261 new_state.xisr = irq; 262 new_state.pending_pri = priority; 269 new_state.need_resend = true; 272 } while (!icp_rm_try_update(icp, old_state, new_state)); 412 union kvmppc_icp_state old_state, new_state; local 490 union kvmppc_icp_state old_state, new_state; local 529 union kvmppc_icp_state old_state, new_state; local 615 union kvmppc_icp_state old_state, new_state; local [all...] |
H A D | book3s_xics.c | 339 union kvmppc_icp_state old_state, new_state; local 346 old_state = new_state = READ_ONCE(icp->state); 351 success = new_state.cppr > priority && 352 new_state.mfrr > priority && 353 new_state.pending_pri > priority; 360 *reject = new_state.xisr; 361 new_state.xisr = irq; 362 new_state.pending_pri = priority; 369 new_state.need_resend = true; 372 } while (!icp_try_update(icp, old_state, new_state, fals 516 union kvmppc_icp_state old_state, new_state; local 588 union kvmppc_icp_state old_state, new_state; local 622 union kvmppc_icp_state old_state, new_state; local 723 union kvmppc_icp_state old_state, new_state; local 1105 union kvmppc_icp_state old_state, new_state; local [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | sf.c | 176 enum iwl_sf_state new_state) 179 .state = cpu_to_le32(new_state), 187 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) 190 switch (new_state) { 207 new_state); 214 mvm->sf_state = new_state; 227 enum iwl_sf_state new_state; local 258 new_state = SF_INIT_OFF; 265 new_state 175 iwl_mvm_sf_config(struct iwl_mvm *mvm, struct ieee80211_sta *sta, enum iwl_sf_state new_state) argument [all...] |
/linux-master/drivers/gpu/drm/loongson/ |
H A D | lsdc_plane.c | 100 struct drm_plane_state *new_state) 102 struct drm_framebuffer *fb = new_state->fb; 134 return drm_gem_plane_helper_prepare_fb(plane, new_state); 176 struct drm_plane_state *new_state; local 179 new_state = drm_atomic_get_new_plane_state(state, plane); 186 if (new_state->crtc_w != new_state->crtc_h) { 188 new_state->crtc_w, new_state->crtc_h); 192 if (new_state 99 lsdc_plane_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state) argument 226 struct drm_plane_state *new_state; local [all...] |
/linux-master/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, local 375 struct drm_framebuffer *fb = new_state->fb; 385 if (WARN_ON(!new_state->crtc)) 390 new_state->crtc); 394 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, 408 if (drm_rect_width(&new_state->dst) < 13) 418 if (drm_rect_height(&new_state->dst) < 2) 429 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || 430 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || 434 eba = drm_plane_state_to_eba(new_state, 580 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | g84.c | 102 enum nvkm_therm_thrs_state prev_state, new_state; local 111 new_state = NVKM_THERM_THRS_HIGHER; 114 new_state = NVKM_THERM_THRS_LOWER; 119 if (new_state == NVKM_THERM_THRS_LOWER && cur > thrs->temp) 120 new_state = NVKM_THERM_THRS_HIGHER; 121 else if (new_state == NVKM_THERM_THRS_HIGHER && 123 new_state = NVKM_THERM_THRS_LOWER; 124 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state); 127 if (prev_state < new_state) 129 else if (prev_state > new_state) [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | pmic8xxx-keypad.c | 171 static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, argument 194 rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, 219 static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, argument 225 int bits_changed = new_state[row] ^ old_state[row]; 235 !(new_state[row] & (1 << col)) ? 243 !(new_state[row] & (1 << col))); 250 static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) argument 257 row_state = (~new_state[row]) & 276 u16 new_state[PM8XXX_MAX_ROWS]; local 282 rc = pmic8xxx_kp_read_matrix(kp, new_state, NUL 329 u16 new_state[PM8XXX_MAX_ROWS]; local [all...] |
H A D | twl4030_keypad.c | 166 u8 new_state[TWL4030_MAX_ROWS]; local 168 int ret = twl4030_kpread(kp, new_state, 172 state[row] = twl4030_col_xlate(kp, new_state[row]); 197 u16 new_state[TWL4030_MAX_ROWS]; local 201 memset(new_state, 0, sizeof(new_state)); 204 int ret = twl4030_read_kp_matrix_state(kp, new_state); 209 if (twl4030_is_in_ghost_state(kp, new_state)) 215 int changed = new_state[row] ^ kp->kp_state[row]; 228 (new_state[ro [all...] |
H A D | omap-keypad.c | 93 unsigned char new_state[8], changed, key_down = 0; local 97 omap_kp_scan_keypad(omap_kp_data, new_state); 101 changed = new_state[col] ^ keypad_state[col]; 102 key_down |= new_state[col]; 112 row, (new_state[col] & (1 << row)) ? 123 new_state[col] & (1 << row)); 128 memcpy(keypad_state, new_state, sizeof(keypad_state));
|
/linux-master/include/drm/ |
H A D | drm_atomic.h | 162 struct drm_plane_state *state, *old_state, *new_state; member in struct:__drm_planes_state 167 struct drm_crtc_state *state, *old_state, *new_state; member in struct:__drm_crtcs_state 185 struct drm_connector_state *state, *old_state, *new_state; member in struct:__drm_connnectors_state 345 struct drm_private_state *state, *old_state, *new_state; member in struct:__drm_private_objs_state 630 return state->crtcs[drm_crtc_index(crtc)].new_state; 678 return state->planes[drm_plane_index(plane)].new_state; 741 return state->connectors[index].new_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...] |
H A D | drm_damage_helper.h | 76 const struct drm_plane_state *new_state);
|
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | omap_plane.c | 46 struct drm_plane_state *new_state) 48 if (!new_state->fb) 51 drm_gem_plane_helper_prepare_fb(plane, new_state); 53 return omap_framebuffer_pin(new_state->fb); 67 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 78 new_omap_state = to_omap_plane_state(new_state); 81 dual_ovl = is_omap_plane_dual_overlay(new_state); 95 DBG("%s, crtc=%p fb=%p", plane->name, new_state->crtc, 96 new_state->fb); 101 info.global_alpha = new_state 45 omap_plane_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state) argument 173 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local [all...] |
/linux-master/drivers/gpu/drm/msm/disp/mdp4/ |
H A D | mdp4_plane.c | 96 struct drm_plane_state *new_state) 101 if (!new_state->fb) 104 drm_gem_plane_helper_prepare_fb(plane, new_state); 106 return msm_framebuffer_prepare(new_state->fb, kms->aspace, false); 134 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 139 new_state->crtc, new_state->fb, 140 new_state->crtc_x, new_state->crtc_y, 141 new_state 95 mdp4_plane_prepare_fb(struct drm_plane *plane, struct drm_plane_state *new_state) argument [all...] |
/linux-master/drivers/gpu/drm/vkms/ |
H A D | vkms_plane.c | 97 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 101 struct drm_framebuffer *fb = new_state->fb; 105 if (!new_state->crtc || !fb) 109 vkms_plane_state = to_vkms_plane_state(new_state); 113 memcpy(&frame_info->src, &new_state->src, sizeof(struct drm_rect)); 114 memcpy(&frame_info->dst, &new_state->dst, sizeof(struct drm_rect)); 115 memcpy(&frame_info->rotated, &new_state->dst, sizeof(struct drm_rect)); 119 frame_info->rotation = drm_rotation_simplify(new_state->rotation, DRM_MODE_ROTATE_0 |
|
/linux-master/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 273 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, local 277 struct drm_framebuffer *fb = new_state->fb; 285 if (!fb || !new_state->crtc || !new_state->visible) 288 crtc_state = new_state->crtc->state; 292 !dcss_plane_needs_setup(new_state, old_state)) { 313 new_state->fb->format, 318 new_state->rotation); 322 is_rotation_90_or_270 = new_state->rotation & (DRM_MODE_ROTATE_90 | 326 new_state [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-al-fic.c | 46 enum al_fic_state new_state) 51 if (new_state == AL_FIC_CONFIGURED_LEVEL) { 59 fic->state = new_state; 67 enum al_fic_state new_state; local 79 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? 92 al_fic_set_trigger(fic, gc, new_state); 93 } else if (fic->state != new_state) { 44 al_fic_set_trigger(struct al_fic *fic, struct irq_chip_generic *gc, enum al_fic_state new_state) argument
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_global_state.h | 36 (new_obj_state) = (__state)->global_objs[__i].new_state, 1); \ 53 (new_obj_state) = (__state)->global_objs[__i].new_state, 1); \ 69 struct intel_global_state *state, *old_state, *new_state; member in struct:__intel_global_objs_state
|
/linux-master/drivers/gpu/drm/logicvc/ |
H A D | logicvc_layer.c | 89 struct drm_plane_state *new_state = local 96 if (!new_state->crtc) 99 crtc_state = drm_atomic_get_existing_crtc_state(new_state->state, 100 new_state->crtc); 104 if (new_state->crtc_x < 0 || new_state->crtc_y < 0) { 111 ret = logicvc_layer_buffer_find_setup(logicvc, layer, new_state, 126 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, 143 struct drm_plane_state *new_state = local 147 struct drm_framebuffer *fb = new_state [all...] |