Home
last modified time | relevance | path

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

12345678910>>...13

/linux-5.19.10/drivers/gpu/drm/tilcdc/
Dtilcdc_plane.c26 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-5.19.10/drivers/gpu/drm/mediatek/
Dmtk_drm_plane.c114 static void mtk_plane_update_new_state(struct drm_plane_state *new_state, in mtk_plane_update_new_state() argument
117 struct drm_framebuffer *fb = new_state->fb; in mtk_plane_update_new_state()
129 addr += (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state()
130 addr += (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
136 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state()
137 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state()
138 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state()
139 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state()
140 mtk_plane_state->pending.rotation = new_state->rotation; in mtk_plane_update_new_state()
146 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_update() local
[all …]
/linux-5.19.10/drivers/gpu/drm/armada/
Darmada_plane.c141 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 …]
Darmada_overlay.c73 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in armada_drm_overlay_plane_atomic_update() local
82 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()
89 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update()
91 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_overlay_plane_atomic_update()
95 if (!old_state->visible && new_state->visible) 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()
[all …]
/linux-5.19.10/arch/powerpc/kvm/
Dbook3s_hv_rm_xics.c242 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 …]
Dbook3s_xics.c339 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-5.19.10/drivers/gpu/drm/imx/
Dipuv3-plane.c368 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in ipu_plane_atomic_check() local
374 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_check()
384 if (WARN_ON(!new_state->crtc)) in ipu_plane_atomic_check()
389 new_state->crtc); in ipu_plane_atomic_check()
393 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, in ipu_plane_atomic_check()
407 if (drm_rect_width(&new_state->dst) < 13) in ipu_plane_atomic_check()
417 if (drm_rect_height(&new_state->dst) < 2) in ipu_plane_atomic_check()
428 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check()
429 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check()
433 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_check()
[all …]
/linux-5.19.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dsf.c158 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument
161 .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()
257 new_state = data.sta_vif_state; in iwl_mvm_sf_update()
263 new_state = SF_UNINIT; in iwl_mvm_sf_update()
[all …]
/linux-5.19.10/drivers/gpu/drm/msm/disp/mdp5/
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; 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 …]
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; 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-5.19.10/drivers/net/ethernet/intel/ice/
Dice_vf_mbx.c192 enum ice_mbx_snapshot_state *new_state) in ice_mbx_traverse() argument
217 *new_state = ICE_MAL_VF_DETECT_STATE_NEW_SNAPSHOT; in ice_mbx_traverse()
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()
367 status = ice_mbx_detect_malvf(hw, vf_id, &new_state, is_malvf); in ice_mbx_vf_state_handler()
369 new_state = ICE_MAL_VF_DETECT_STATE_TRAVERSE; in ice_mbx_vf_state_handler()
370 ice_mbx_traverse(hw, &new_state); in ice_mbx_vf_state_handler()
[all …]
/linux-5.19.10/drivers/input/keyboard/
Dpmic8xxx-keypad.c171 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 …]
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 …]
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()
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 …]
/linux-5.19.10/drivers/gpu/drm/omapdrm/
Domap_plane.c45 struct drm_plane_state *new_state) in omap_plane_prepare_fb() argument
47 if (!new_state->fb) in omap_plane_prepare_fb()
50 drm_gem_plane_helper_prepare_fb(plane, new_state); in omap_plane_prepare_fb()
52 return omap_framebuffer_pin(new_state->fb); in omap_plane_prepare_fb()
66 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in omap_plane_atomic_update() local
77 new_omap_state = to_omap_plane_state(new_state); in omap_plane_atomic_update()
80 dual_ovl = is_omap_plane_dual_overlay(new_state); in omap_plane_atomic_update()
94 DBG("%s, crtc=%p fb=%p", plane->name, new_state->crtc, in omap_plane_atomic_update()
95 new_state->fb); in omap_plane_atomic_update()
100 info.global_alpha = new_state->alpha >> 8; in omap_plane_atomic_update()
[all …]
/linux-5.19.10/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
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-5.19.10/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_plane.c95 struct drm_plane_state *new_state) in mdp4_plane_prepare_fb() argument
100 if (!new_state->fb) in mdp4_plane_prepare_fb()
103 drm_gem_plane_helper_prepare_fb(plane, new_state); in mdp4_plane_prepare_fb()
105 return msm_framebuffer_prepare(new_state->fb, kms->aspace, false); in mdp4_plane_prepare_fb()
133 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mdp4_plane_atomic_update() local
138 new_state->crtc, new_state->fb, in mdp4_plane_atomic_update()
139 new_state->crtc_x, new_state->crtc_y, in mdp4_plane_atomic_update()
140 new_state->crtc_w, new_state->crtc_h, in mdp4_plane_atomic_update()
141 new_state->src_x, new_state->src_y, in mdp4_plane_atomic_update()
142 new_state->src_w, new_state->src_h); in mdp4_plane_atomic_update()
/linux-5.19.10/include/drm/
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
345 struct drm_private_state *state, *old_state, *new_state; member
575 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state()
623 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state()
686 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state()
763 (new_connector_state) = (__state)->connectors[__i].new_state, 1))
805 (new_connector_state) = (__state)->connectors[__i].new_state, \
829 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
[all …]
/linux-5.19.10/drivers/platform/x86/dell/
Ddell-laptop.c1553 struct kbd_state new_state; in kbd_led_timeout_store() local
1646 new_state = state; in kbd_led_timeout_store()
1649 new_state.timeout_value_ac = value; in kbd_led_timeout_store()
1650 new_state.timeout_unit_ac = unit; in kbd_led_timeout_store()
1652 new_state.timeout_value = value; in kbd_led_timeout_store()
1653 new_state.timeout_unit = unit; in kbd_led_timeout_store()
1656 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store()
1719 struct kbd_state new_state; in kbd_led_triggers_store() local
1770 new_state = state; in kbd_led_triggers_store()
1772 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store()
[all …]
/linux-5.19.10/drivers/gpu/drm/vboxvideo/
Dvbox_mode.c258 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_check() local
262 if (new_state->crtc) { in vbox_primary_atomic_check()
264 new_state->crtc); in vbox_primary_atomic_check()
269 return drm_atomic_helper_check_plane_state(new_state, crtc_state, in vbox_primary_atomic_check()
278 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in vbox_primary_atomic_update() local
280 struct drm_crtc *crtc = new_state->crtc; in vbox_primary_atomic_update()
281 struct drm_framebuffer *fb = new_state->fb; in vbox_primary_atomic_update()
287 new_state->src_x >> 16, in vbox_primary_atomic_update()
288 new_state->src_y >> 16); in vbox_primary_atomic_update()
292 clips = drm_plane_get_damage_clips(new_state); in vbox_primary_atomic_update()
[all …]
/linux-5.19.10/drivers/gpu/drm/meson/
Dmeson_plane.c136 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in meson_plane_atomic_update() local
138 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()
253 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { 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()
275 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { in meson_plane_atomic_update()
284 if (new_state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) in meson_plane_atomic_update()
[all …]
/linux-5.19.10/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c271 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in dcss_plane_atomic_update() local
275 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()
[all …]
/linux-5.19.10/drivers/gpu/drm/tegra/
Dhub.c534 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_update() local
536 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update()
537 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update()
538 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update()
539 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update()
548 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()
602 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
[all …]
/linux-5.19.10/drivers/pcmcia/
Dsa1111_lubbock.c94 struct pcmcia_state new_state; in lubbock_pcmcia_configure_socket() local
108 sa1111_pcmcia_socket_state(skt, &new_state); in lubbock_pcmcia_configure_socket()
110 if (!new_state.vs_3v && !new_state.vs_Xv) { in lubbock_pcmcia_configure_socket()
/linux-5.19.10/drivers/net/can/dev/
Ddev.c27 enum can_state new_state) in can_update_state_error_stats() argument
31 if (new_state <= priv->state) in can_update_state_error_stats()
34 switch (new_state) { in can_update_state_error_stats()
104 enum can_state new_state = max(tx_state, rx_state); in can_change_state() local
106 if (unlikely(new_state == priv->state)) { in can_change_state()
113 can_get_state_str(new_state), new_state); in can_change_state()
115 can_update_state_error_stats(dev, new_state); in can_change_state()
116 priv->state = new_state; in can_change_state()
121 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state()

12345678910>>...13