/Linux-v4.19/arch/powerpc/kvm/ |
D | book3s_hv_rm_xics.c | 246 union kvmppc_icp_state old_state, new_state; in icp_rm_try_to_deliver() local 250 old_state = new_state = READ_ONCE(icp->state); in icp_rm_try_to_deliver() 255 success = new_state.cppr > priority && in icp_rm_try_to_deliver() 256 new_state.mfrr > priority && in icp_rm_try_to_deliver() 257 new_state.pending_pri > priority; in icp_rm_try_to_deliver() 264 *reject = new_state.xisr; in icp_rm_try_to_deliver() 265 new_state.xisr = irq; in icp_rm_try_to_deliver() 266 new_state.pending_pri = priority; in icp_rm_try_to_deliver() 273 new_state.need_resend = true; in icp_rm_try_to_deliver() 276 } while (!icp_rm_try_update(icp, old_state, new_state)); in icp_rm_try_to_deliver() [all …]
|
D | book3s_xics.c | 342 union kvmppc_icp_state old_state, new_state; in icp_try_to_deliver() local 349 old_state = new_state = READ_ONCE(icp->state); in icp_try_to_deliver() 354 success = new_state.cppr > priority && in icp_try_to_deliver() 355 new_state.mfrr > priority && in icp_try_to_deliver() 356 new_state.pending_pri > priority; in icp_try_to_deliver() 363 *reject = new_state.xisr; in icp_try_to_deliver() 364 new_state.xisr = irq; in icp_try_to_deliver() 365 new_state.pending_pri = priority; in icp_try_to_deliver() 372 new_state.need_resend = true; in icp_try_to_deliver() 375 } while (!icp_try_update(icp, old_state, new_state, false)); in icp_try_to_deliver() [all …]
|
/Linux-v4.19/net/wimax/ |
D | stack.c | 103 enum wimax_st new_state, enum wimax_st old_state, in wimax_gnl_re_state_change_alloc() argument 112 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc() 133 result = nla_put_u8(report_skb, WIMAX_GNL_STCH_STATE_NEW, new_state); in wimax_gnl_re_state_change_alloc() 145 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc() 152 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc() 190 void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, in __check_new_state() argument 193 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { in __check_new_state() 195 old_state, new_state); in __check_new_state() 204 void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) in __wimax_state_change() argument 212 wimax_dev, new_state, old_state); in __wimax_state_change() [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sf.c | 215 enum iwl_sf_state new_state) in iwl_mvm_sf_config() argument 218 .state = cpu_to_le32(new_state), in iwl_mvm_sf_config() 230 if (new_state != SF_FULL_ON && mvm->sf_state == new_state) in iwl_mvm_sf_config() 233 switch (new_state) { in iwl_mvm_sf_config() 258 new_state); in iwl_mvm_sf_config() 265 mvm->sf_state = new_state; in iwl_mvm_sf_config() 278 enum iwl_sf_state new_state; in iwl_mvm_sf_update() local 307 new_state = SF_INIT_OFF; in iwl_mvm_sf_update() 314 new_state = data.sta_vif_state; in iwl_mvm_sf_update() 320 new_state = SF_UNINIT; in iwl_mvm_sf_update() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_mixer.c | 56 struct mdp5_hw_mixer_state *new_state; in mdp5_mixer_assign() local 62 new_state = &global_state->hwmixer; in mdp5_mixer_assign() 74 if (new_state->hwmixer_to_crtc[cur->idx] && in mdp5_mixer_assign() 75 new_state->hwmixer_to_crtc[cur->idx] != crtc) in mdp5_mixer_assign() 89 if (new_state->hwmixer_to_crtc[pair_idx]) in mdp5_mixer_assign() 120 new_state->hwmixer_to_crtc[(*mixer)->idx] = crtc; in mdp5_mixer_assign() 124 new_state->hwmixer_to_crtc[(*r_mixer)->idx] = crtc; in mdp5_mixer_assign() 133 struct mdp5_hw_mixer_state *new_state = &global_state->hwmixer; in mdp5_mixer_release() local 138 if (WARN_ON(!new_state->hwmixer_to_crtc[mixer->idx])) in mdp5_mixer_release() 142 new_state->hwmixer_to_crtc[mixer->idx]->name); in mdp5_mixer_release() [all …]
|
D | mdp5_pipe.c | 28 struct mdp5_hw_pipe_state *old_state, *new_state; in mdp5_pipe_assign() local 39 new_state = &new_global_state->hwpipe; in mdp5_pipe_assign() 51 if (new_state->hwpipe_to_plane[cur->idx] || in mdp5_pipe_assign() 122 new_state->hwpipe_to_plane[(*hwpipe)->idx] = plane; in mdp5_pipe_assign() 127 new_state->hwpipe_to_plane[(*r_hwpipe)->idx] = plane; in mdp5_pipe_assign() 138 struct mdp5_hw_pipe_state *new_state = &state->hwpipe; in mdp5_pipe_release() local 143 if (WARN_ON(!new_state->hwpipe_to_plane[hwpipe->idx])) in mdp5_pipe_release() 147 new_state->hwpipe_to_plane[hwpipe->idx]->name); in mdp5_pipe_release() 154 new_state->hwpipe_to_plane[hwpipe->idx] = NULL; in mdp5_pipe_release()
|
/Linux-v4.19/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 179 static int pmic8xxx_kp_read_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in pmic8xxx_kp_read_matrix() argument 202 rc = pmic8xxx_kp_read_data(kp, new_state, KEYP_RECENT_DATA, in pmic8xxx_kp_read_matrix() 227 static void __pmic8xxx_kp_scan_matrix(struct pmic8xxx_kp *kp, u16 *new_state, in __pmic8xxx_kp_scan_matrix() argument 233 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 251 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix() 258 static bool pmic8xxx_detect_ghost_keys(struct pmic8xxx_kp *kp, u16 *new_state) in pmic8xxx_detect_ghost_keys() argument 265 row_state = (~new_state[row]) & in pmic8xxx_detect_ghost_keys() 284 u16 new_state[PM8XXX_MAX_ROWS]; in pmic8xxx_kp_scan_matrix() local 290 rc = pmic8xxx_kp_read_matrix(kp, new_state, NULL); in pmic8xxx_kp_scan_matrix() [all …]
|
D | twl4030_keypad.c | 179 u8 new_state[TWL4030_MAX_ROWS]; in twl4030_read_kp_matrix_state() local 181 int ret = twl4030_kpread(kp, new_state, in twl4030_read_kp_matrix_state() 185 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state() 210 u16 new_state[TWL4030_MAX_ROWS]; in twl4030_kp_scan() local 214 memset(new_state, 0, sizeof(new_state)); in twl4030_kp_scan() 217 int ret = twl4030_read_kp_matrix_state(kp, new_state); in twl4030_kp_scan() 222 if (twl4030_is_in_ghost_state(kp, new_state)) in twl4030_kp_scan() 228 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan() 241 (new_state[row] & (1 << col)) ? in twl4030_kp_scan() 247 new_state[row] & (1 << col)); in twl4030_kp_scan() [all …]
|
D | pxa27x_keypad.c | 416 uint32_t new_state[MAX_MATRIX_KEY_COLS]; in pxa27x_keypad_scan_matrix() local 421 memset(new_state, 0, sizeof(new_state)); in pxa27x_keypad_scan_matrix() 435 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix() 445 new_state[0] = kpasmkp0 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 446 new_state[1] = (kpasmkp0 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 447 new_state[2] = kpasmkp1 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 448 new_state[3] = (kpasmkp1 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 449 new_state[4] = kpasmkp2 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 450 new_state[5] = (kpasmkp2 >> 16) & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() 451 new_state[6] = kpasmkp3 & KPASMKP_MKC_MASK; in pxa27x_keypad_scan_matrix() [all …]
|
D | omap-keypad.c | 109 unsigned char new_state[8], changed, key_down = 0; in omap_kp_tasklet() local 113 omap_kp_scan_keypad(omap_kp_data, new_state); in omap_kp_tasklet() 117 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 118 key_down |= new_state[col]; in omap_kp_tasklet() 128 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() 139 new_state[col] & (1 << row)); in omap_kp_tasklet() 144 memcpy(keypad_state, new_state, sizeof(keypad_state)); in omap_kp_tasklet()
|
/Linux-v4.19/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-v4.19/include/drm/ |
D | drm_atomic.h | 150 struct drm_plane_state *state, *old_state, *new_state; member 155 struct drm_crtc_state *state, *old_state, *new_state; member 173 struct drm_connector_state *state, *old_state, *new_state; member 260 struct drm_private_state *state, *old_state, *new_state; member 450 return state->crtcs[drm_crtc_index(crtc)].new_state; in drm_atomic_get_new_crtc_state() 498 return state->planes[drm_plane_index(plane)].new_state; in drm_atomic_get_new_plane_state() 561 return state->connectors[index].new_state; in drm_atomic_get_new_connector_state() 653 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 693 (new_connector_state) = (__state)->connectors[__i].new_state, 1)) 714 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1)) [all …]
|
/Linux-v4.19/drivers/platform/x86/ |
D | dell-laptop.c | 1515 struct kbd_state new_state; in kbd_led_timeout_store() local 1606 new_state = state; in kbd_led_timeout_store() 1609 new_state.timeout_value_ac = value; in kbd_led_timeout_store() 1610 new_state.timeout_unit_ac = unit; in kbd_led_timeout_store() 1612 new_state.timeout_value = value; in kbd_led_timeout_store() 1613 new_state.timeout_unit = unit; in kbd_led_timeout_store() 1616 ret = kbd_set_state_safe(&new_state, &state); in kbd_led_timeout_store() 1679 struct kbd_state new_state; in kbd_led_triggers_store() local 1730 new_state = state; in kbd_led_triggers_store() 1732 new_state.triggers |= BIT(trigger_bit); in kbd_led_triggers_store() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/ |
D | msm_atomic.c | 40 struct drm_plane_state *new_state) in msm_atomic_prepare_fb() argument 48 if (!new_state->fb) in msm_atomic_prepare_fb() 51 obj = msm_framebuffer_bo(new_state->fb, 0); in msm_atomic_prepare_fb() 55 drm_atomic_set_fence_for_plane(new_state, fence); in msm_atomic_prepare_fb() 57 return msm_framebuffer_prepare(new_state->fb, kms->aspace); in msm_atomic_prepare_fb()
|
/Linux-v4.19/net/ipv4/ |
D | ip_tunnel_core.c | 237 struct lwtunnel_state *new_state; in ip_tun_build_state() local 246 new_state = lwtunnel_state_alloc(sizeof(*tun_info)); in ip_tun_build_state() 247 if (!new_state) in ip_tun_build_state() 250 new_state->type = LWTUNNEL_ENCAP_IP; in ip_tun_build_state() 252 tun_info = lwt_tun_info(new_state); in ip_tun_build_state() 275 *ts = new_state; in ip_tun_build_state() 336 struct lwtunnel_state *new_state; in ip6_tun_build_state() local 345 new_state = lwtunnel_state_alloc(sizeof(*tun_info)); in ip6_tun_build_state() 346 if (!new_state) in ip6_tun_build_state() 349 new_state->type = LWTUNNEL_ENCAP_IP6; in ip6_tun_build_state() [all …]
|
/Linux-v4.19/drivers/cpufreq/ |
D | speedstep-smi.c | 152 unsigned int result = 0, command, new_state, dummy; in speedstep_set_state() local 191 : "=b" (new_state), "=D" (result), in speedstep_set_state() 197 } while ((new_state != state) && (retry <= SMI_TRIES)); in speedstep_set_state() 203 if (new_state == state) in speedstep_set_state() 206 (speedstep_freqs[new_state].frequency / 1000), in speedstep_set_state() 210 state, new_state, result); in speedstep_set_state()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_atomic.c | 105 struct drm_connector_state *new_state) in intel_digital_connector_atomic_check() argument 108 to_intel_digital_connector_state(new_state); in intel_digital_connector_atomic_check() 110 drm_atomic_get_old_connector_state(new_state->state, conn); in intel_digital_connector_atomic_check() 115 intel_hdcp_atomic_check(conn, old_state, new_state); in intel_digital_connector_atomic_check() 117 if (!new_state->crtc) in intel_digital_connector_atomic_check() 120 crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); in intel_digital_connector_atomic_check()
|
/Linux-v4.19/drivers/pcmcia/ |
D | sa1111_lubbock.c | 158 struct pcmcia_state new_state; in lubbock_pcmcia_configure_socket() local 172 sa1111_pcmcia_socket_state(skt, &new_state); in lubbock_pcmcia_configure_socket() 174 if (!new_state.vs_3v && !new_state.vs_Xv) { in lubbock_pcmcia_configure_socket()
|
/Linux-v4.19/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 411 enum can_state new_state; in pcan_usb_decode_error() local 418 new_state = mc->pdev->dev.can.state; in pcan_usb_decode_error() 423 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 430 new_state = CAN_STATE_ERROR_PASSIVE; in pcan_usb_decode_error() 434 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 442 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 454 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 458 new_state = CAN_STATE_ERROR_WARNING; in pcan_usb_decode_error() 466 new_state = CAN_STATE_MAX; in pcan_usb_decode_error() 483 if (mc->pdev->dev.can.state == new_state) in pcan_usb_decode_error() [all …]
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | rs780_dpm.c | 430 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling() local 434 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_scaling() 435 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_scaling() 439 new_state->sclk_low, false, &min_dividers); in rs780_set_engine_clock_scaling() 444 new_state->sclk_high, false, &max_dividers); in rs780_set_engine_clock_scaling() 477 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc() local 481 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_set_engine_clock_spc() 482 (new_state->sclk_low == old_state->sclk_low)) in rs780_set_engine_clock_spc() 496 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling() local 499 if ((new_state->sclk_high == old_state->sclk_high) && in rs780_activate_engine_clk_scaling() [all …]
|
D | rv6xx_dpm.c | 970 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_enable_static_voltage_control() local 974 new_state->low.vddc, in rv6xx_enable_static_voltage_control() 1049 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_calculate_stepping_parameters() local 1051 rv6xx_calculate_engine_speed_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1052 rv6xx_calculate_memory_clock_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1053 rv6xx_calculate_voltage_stepping_parameters(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1054 rv6xx_calculate_ap(rdev, new_state); in rv6xx_calculate_stepping_parameters() 1203 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_sw_voltage_to_safe() local 1207 safe_voltage = (new_state->low.vddc >= old_state->low.vddc) ? in rv6xx_set_sw_voltage_to_safe() 1208 new_state->low.vddc : old_state->low.vddc; in rv6xx_set_sw_voltage_to_safe() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_proto_sctp.c | 282 enum sctp_conntrack new_state, old_state; in sctp_packet() local 312 old_state = new_state = SCTP_CONNTRACK_NONE; in sctp_packet() 348 new_state = sctp_new_state(dir, old_state, sch->type); in sctp_packet() 351 if (new_state == SCTP_CONNTRACK_MAX) { in sctp_packet() 372 ct->proto.sctp.state = new_state; in sctp_packet() 373 if (old_state != new_state) in sctp_packet() 382 nf_ct_refresh_acct(ct, ctinfo, skb, timeouts[new_state]); in sctp_packet() 386 new_state == SCTP_CONNTRACK_ESTABLISHED) { in sctp_packet() 404 enum sctp_conntrack new_state; in sctp_new() local 426 new_state = SCTP_CONNTRACK_MAX; in sctp_new() [all …]
|
/Linux-v4.19/drivers/macintosh/ |
D | windfarm_pm112.c | 198 int new_state = 0; in cpu_check_overtemp() local 203 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 209 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 230 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 236 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 246 if (new_state) { in cpu_check_overtemp() 248 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 250 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 252 failure_state |= new_state; in cpu_check_overtemp()
|
D | windfarm_rm31.c | 122 int new_state = 0; in cpu_check_overtemp() local 128 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 134 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 171 new_state |= FAILURE_LOW_OVERTEMP; in cpu_check_overtemp() 177 new_state |= FAILURE_HIGH_OVERTEMP; in cpu_check_overtemp() 187 if (new_state) { in cpu_check_overtemp() 189 if (new_state & FAILURE_HIGH_OVERTEMP) in cpu_check_overtemp() 191 if ((failure_state & new_state) != new_state) in cpu_check_overtemp() 193 failure_state |= new_state; in cpu_check_overtemp()
|
/Linux-v4.19/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 119 pci_power_t new_state, old_state; in pm_ctrl_write() local 126 new_state = (pci_power_t)(new_value & PCI_PM_CTRL_STATE_MASK); in pm_ctrl_write() 137 dev_dbg(&dev->dev, "set power state to %x\n", new_state); in pm_ctrl_write() 138 err = pci_set_power_state(dev, new_state); in pm_ctrl_write()
|