/Linux-v5.4/arch/powerpc/kvm/ |
D | book3s_hv_rm_xics.c | 249 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 253 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 258 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 259 new_state.mfrr > priority && in icp_rm_try_to_deliver() 260 new_state.pending_pri > priority; in icp_rm_try_to_deliver() 267 *reject = new_state.xisr; in icp_rm_try_to_deliver() 268 new_state.xisr = irq; in icp_rm_try_to_deliver() 269 new_state.pending_pri = priority; in icp_rm_try_to_deliver() 276 new_state.need_resend = true; in icp_rm_try_to_deliver() 279 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() [all …]
|
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-v5.4/net/wimax/ |
D | stack.c | 88 enum wimax_st new_state, enum wimax_st old_state, in wimax_gnl_re_state_change_alloc() argument 97 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc() 118 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_NEW, new_state); in wimax_gnl_re_state_change_alloc() 130 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc() 137 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc() 175 void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, in __check_new_state() argument 178 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { in __check_new_state() 180 old_state, new_state); in __check_new_state() 189 void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) in __wimax_state_change() argument 197 wimax_dev, new_state, old_state); in __wimax_state_change() [all …]
|
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sf.c | 212 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 215 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config() 227 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config() 230 switch (new_state) { in iwl_mvm_sf_config() 255 new_state); in iwl_mvm_sf_config() 262 mvm->sf_state = new_state; in iwl_mvm_sf_config() 275 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local 304 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 311 new_state = data.sta_vif_state; in iwl_mvm_sf_update() 317 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
/Linux-v5.4/drivers/gpu/drm/msm/disp/mdp5/ |
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 = &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 …]
|
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 = &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-v5.4/drivers/input/keyboard/ |
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 …]
|
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 …]
|
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 …]
|
D | omap-keypad.c | 96 unsigned char new_state[8], changed, key_down = 0; in omap_kp_tasklet() local 100 omap_kp_scan_keypad(omap_kp_data, new_state); in omap_kp_tasklet() 104 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 105 key_down |= new_state[col]; in omap_kp_tasklet() 115 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() 126 new_state[col] & (1 << row)); in omap_kp_tasklet() 131 memcpy(keypad_state, new_state, sizeof(keypad_state)); in omap_kp_tasklet()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
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-v5.4/include/drm/ |
D | drm_atomic.h | 151 struct drm_plane_state *state, *old_state, *new_state; member 156 struct drm_crtc_state *state, *old_state, *new_state; member 174 struct drm_connector_state *state, *old_state, *new_state; member 295 struct drm_private_state *state, *old_state, *new_state; member 513 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state() 561 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state() 624 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state() 697 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 737 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 758 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1)) [all …]
|
D | drm_dp_mst_helper.h | 699 struct drm_dp_mst_topology_state **new_state, in __drm_dp_mst_state_iter_get() argument 710 if (new_state) in __drm_dp_mst_state_iter_get() 711 *new_state = to_dp_mst_topology_state(objs_state->new_state); in __drm_dp_mst_state_iter_get() 731 #define for_each_oldnew_mst_mgr_in_state(__state, mgr, old_state, new_state, __i) \ argument 733 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), &(new_state), (__i))) 766 #define for_each_new_mst_mgr_in_state(__state, mgr, new_state, __i) \ argument 768 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), NULL, &(new_state), (__i)))
|
/Linux-v5.4/drivers/platform/x86/ |
D | dell-laptop.c | 1511 struct kbd_state new_state; in kbd_led_timeout_store() local 1604 new_state = state; in kbd_led_timeout_store() 1607 new_state.timeout_value_ac = value; in kbd_led_timeout_store() 1608 new_state.timeout_unit_ac = unit; in kbd_led_timeout_store() 1610 new_state.timeout_value = value; in kbd_led_timeout_store() 1611 new_state.timeout_unit = unit; in kbd_led_timeout_store() 1614 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store() 1677 struct kbd_state new_state; in kbd_led_triggers_store() local 1728 new_state = state; in kbd_led_triggers_store() 1730 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store() [all …]
|
/Linux-v5.4/drivers/pcmcia/ |
D | sa1111_lubbock.c | 95 struct pcmcia_state new_state; in lubbock_pcmcia_configure_socket() local 109 sa1111_pcmcia_socket_state(skt, &new_state); in lubbock_pcmcia_configure_socket() 111 if (!new_state.vs_3v && !new_state.vs_Xv) { in lubbock_pcmcia_configure_socket()
|
/Linux-v5.4/net/ipv4/ |
D | ip_tunnel_core.c | 228 struct lwtunnel_state *new_state; in ip_tun_build_state() local 237 new_state = lwtunnel_state_alloc(sizeof(*tun_info)); in ip_tun_build_state() 238 if (!new_state) in ip_tun_build_state() 241 new_state->type = LWTUNNEL_ENCAP_IP; in ip_tun_build_state() 243 tun_info = lwt_tun_info(new_state); in ip_tun_build_state() 248 lwtstate_free(new_state); in ip_tun_build_state() 274 *ts = new_state; in ip_tun_build_state() 345 struct lwtunnel_state *new_state; in ip6_tun_build_state() local 354 new_state = lwtunnel_state_alloc(sizeof(*tun_info)); in ip6_tun_build_state() 355 if (!new_state) in ip6_tun_build_state() [all …]
|
/Linux-v5.4/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 403 enum can_state new_state; in pcan_usb_decode_error() local 410 new_state = mc->pdev->dev.can.state; in pcan_usb_decode_error() 415 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 422 new_state = CAN_STATE_ERROR_PASSIVE; in pcan_usb_decode_error() 426 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 434 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 439 new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_decode_error() 446 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 450 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 458 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() [all …]
|
/Linux-v5.4/drivers/irqchip/ |
D | irq-al-fic.c | 47 enum al_fic_state new_state) in al_fic_set_trigger() argument 52 if (new_state == AL_FIC_CONFIGURED_LEVEL) { in al_fic_set_trigger() 60 fic->state = new_state; in al_fic_set_trigger() 68 enum al_fic_state new_state; in al_fic_irq_set_type() local 80 new_state = (flow_type & IRQ_TYPE_LEVEL_HIGH) ? in al_fic_irq_set_type() 93 al_fic_set_trigger(fic, gc, new_state); in al_fic_irq_set_type() 94 } else if (fic->state != new_state) { in al_fic_irq_set_type()
|
/Linux-v5.4/drivers/gpu/drm/vboxvideo/ |
D | vbox_mode.c | 264 struct drm_plane_state *new_state) in vbox_primary_atomic_check() argument 268 if (new_state->crtc) { in vbox_primary_atomic_check() 270 new_state->state, new_state->crtc); in vbox_primary_atomic_check() 275 return drm_atomic_helper_check_plane_state(new_state, crtc_state, in vbox_primary_atomic_check() 304 struct drm_plane_state *new_state) in vbox_primary_prepare_fb() argument 309 if (!new_state->fb) in vbox_primary_prepare_fb() 312 gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(new_state->fb)->obj); in vbox_primary_prepare_fb() 333 struct drm_plane_state *new_state) in vbox_cursor_atomic_check() argument 336 u32 width = new_state->crtc_w; in vbox_cursor_atomic_check() 337 u32 height = new_state->crtc_h; in vbox_cursor_atomic_check() [all …]
|
/Linux-v5.4/drivers/cpufreq/ |
D | speedstep-smi.c | 150 unsigned int result = 0, command, new_state, dummy; in speedstep_set_state() local 189 : "=b" (new_state), "=D" (result), in speedstep_set_state() 195 } while ((new_state != state) && (retry <= SMI_TRIES)); in speedstep_set_state() 201 if (new_state == state) in speedstep_set_state() 204 (speedstep_freqs[new_state].frequency / 1000), in speedstep_set_state() 208 state, new_state, result); in speedstep_set_state()
|
/Linux-v5.4/net/netfilter/ |
D | nf_conntrack_proto_sctp.c | 273 enum sctp_conntrack new_state; in sctp_new() local 279 new_state = SCTP_CONNTRACK_MAX; in sctp_new() 281 new_state = sctp_new_state(IP_CT_DIR_ORIGINAL, in sctp_new() 285 if (new_state == SCTP_CONNTRACK_NONE || in sctp_new() 286 new_state == SCTP_CONNTRACK_MAX) { in sctp_new() 319 ct->proto.sctp.state = new_state; in sctp_new() 363 enum sctp_conntrack new_state, old_state; in nf_conntrack_sctp_packet() local 407 old_state = new_state = SCTP_CONNTRACK_NONE; in nf_conntrack_sctp_packet() 443 new_state = sctp_new_state(dir, old_state, sch->type); in nf_conntrack_sctp_packet() 446 if (new_state == SCTP_CONNTRACK_MAX) { in nf_conntrack_sctp_packet() [all …]
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | rs780_dpm.c | 432 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling() local 436 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_scaling() 437 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_scaling() 441 new_state->sclk_low, false, &min_dividers); in rs780_set_engine_clock_scaling() 446 new_state->sclk_high, false, &max_dividers); in rs780_set_engine_clock_scaling() 479 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc() local 483 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_spc() 484 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_spc() 498 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling() local 501 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_activate_engine_clk_scaling() [all …]
|
/Linux-v5.4/include/trace/events/ |
D | devlink.h | 148 bool new_state), 150 TP_ARGS(devlink, reporter_name, new_state), 157 __field(u8, new_state) 165 __entry->new_state = new_state; 171 __entry->new_state)
|
/Linux-v5.4/drivers/macintosh/ |
D | windfarm_pm112.c | 197 int new_state = 0; in cpu_check_overtemp() local 202 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 208 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 229 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 235 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 245 if (new_state) { in cpu_check_overtemp() 247 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 249 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 251 failure_state |= new_state; in cpu_check_overtemp()
|
D | windfarm_rm31.c | 121 int new_state = 0; in cpu_check_overtemp() local 127 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 133 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 170 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 176 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 186 if (new_state) { in cpu_check_overtemp() 188 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 190 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 192 failure_state |= new_state; in cpu_check_overtemp()
|