/linux/drivers/cpufreq/ |
A D | p4-clockmod.c | 52 static int cpufreq_p4_setdc(unsigned int cpu, unsigned int newstate) in cpufreq_p4_setdc() argument 56 if ((newstate > DC_DISABLE) || (newstate == DC_RESV)) in cpufreq_p4_setdc() 65 (newstate == DC_25PT || newstate == DC_DFLT)) in cpufreq_p4_setdc() 66 newstate = DC_38PT; in cpufreq_p4_setdc() 69 if (newstate == DC_DISABLE) { in cpufreq_p4_setdc() 74 cpu, ((125 * newstate) / 10)); in cpufreq_p4_setdc() 81 l = l | (1<<4) | ((newstate & 0x7)<<1); in cpufreq_p4_setdc()
|
A D | powernow-k8.c | 924 unsigned newstate; member 931 unsigned newstate = pta->newstate; in powernowk8_target_fn() local 949 pol->cpu, data->powernow_table[newstate].frequency, pol->min, in powernowk8_target_fn() 967 powernow_k8_acpi_pst_values(data, newstate); in powernowk8_target_fn() 969 ret = transition_frequency_fidvid(data, newstate, pol); in powernowk8_target_fn() 986 struct powernowk8_target_arg pta = { .pol = pol, .newstate = index }; in powernowk8_target()
|
/linux/drivers/gpu/drm/ingenic/ |
A D | ingenic-ipu.c | 298 if (!newstate || !newstate->fb) in ingenic_ipu_plane_atomic_update() 301 finfo = drm_format_info(newstate->fb->format->format); in ingenic_ipu_plane_atomic_update() 324 drm_fb_cma_sync_non_coherent(ipu->drm, oldstate, newstate); in ingenic_ipu_plane_atomic_update() 327 ipu->addr_y = drm_fb_cma_get_gem_addr(newstate->fb, newstate, 0); in ingenic_ipu_plane_atomic_update() 329 ipu->addr_u = drm_fb_cma_get_gem_addr(newstate->fb, newstate, in ingenic_ipu_plane_atomic_update() 332 ipu->addr_v = drm_fb_cma_get_gem_addr(newstate->fb, newstate, in ingenic_ipu_plane_atomic_update() 364 ((newstate->src_h >> 16) << JZ_IPU_IN_GS_H_LSB)); in ingenic_ipu_plane_atomic_update() 433 ((newstate->crtc_w * 4) << JZ_IPU_OUT_GS_W_LSB) in ingenic_ipu_plane_atomic_update() 434 | newstate->crtc_h << JZ_IPU_OUT_GS_H_LSB); in ingenic_ipu_plane_atomic_update() 520 newstate->src_w >> 16, newstate->src_h >> 16, in ingenic_ipu_plane_atomic_update() [all …]
|
A D | ingenic-drm-drv.c | 559 struct drm_plane_state *newstate = drm_atomic_get_new_plane_state(state, plane); in ingenic_drm_plane_atomic_update() local 567 if (newstate && newstate->fb) { in ingenic_drm_plane_atomic_update() 569 drm_fb_cma_sync_non_coherent(&priv->drm, oldstate, newstate); in ingenic_drm_plane_atomic_update() 571 crtc_state = newstate->crtc->state; in ingenic_drm_plane_atomic_update() 573 addr = drm_fb_cma_get_gem_addr(newstate->fb, newstate, 0); in ingenic_drm_plane_atomic_update() 574 width = newstate->src_w >> 16; in ingenic_drm_plane_atomic_update() 575 height = newstate->src_h >> 16; in ingenic_drm_plane_atomic_update() 576 cpp = newstate->fb->format->cpp[0]; in ingenic_drm_plane_atomic_update() 587 fourcc = newstate->fb->format->format; in ingenic_drm_plane_atomic_update()
|
/linux/drivers/gpu/drm/sti/ |
A D | sti_gdp.c | 710 struct drm_crtc *crtc = newstate->crtc; in sti_gdp_atomic_update() 711 struct drm_framebuffer *fb = newstate->fb; in sti_gdp_atomic_update() 728 if ((oldstate->fb == newstate->fb) && in sti_gdp_atomic_update() 733 (oldstate->src_x == newstate->src_x) && in sti_gdp_atomic_update() 734 (oldstate->src_y == newstate->src_y) && in sti_gdp_atomic_update() 735 (oldstate->src_w == newstate->src_w) && in sti_gdp_atomic_update() 736 (oldstate->src_h == newstate->src_h)) { in sti_gdp_atomic_update() 754 dst_x = newstate->crtc_x; in sti_gdp_atomic_update() 755 dst_y = newstate->crtc_y; in sti_gdp_atomic_update() 759 src_x = newstate->src_x >> 16; in sti_gdp_atomic_update() [all …]
|
A D | sti_hqvdp.c | 1120 struct drm_crtc *crtc = newstate->crtc; in sti_hqvdp_atomic_update() 1121 struct drm_framebuffer *fb = newstate->fb; in sti_hqvdp_atomic_update() 1133 if ((oldstate->fb == newstate->fb) && in sti_hqvdp_atomic_update() 1138 (oldstate->src_x == newstate->src_x) && in sti_hqvdp_atomic_update() 1139 (oldstate->src_y == newstate->src_y) && in sti_hqvdp_atomic_update() 1149 dst_x = newstate->crtc_x; in sti_hqvdp_atomic_update() 1150 dst_y = newstate->crtc_y; in sti_hqvdp_atomic_update() 1154 src_x = newstate->src_x >> 16; in sti_hqvdp_atomic_update() 1155 src_y = newstate->src_y >> 16; in sti_hqvdp_atomic_update() 1156 src_w = newstate->src_w >> 16; in sti_hqvdp_atomic_update() [all …]
|
A D | sti_cursor.c | 261 struct drm_plane_state *newstate = drm_atomic_get_new_plane_state(state, in sti_cursor_atomic_update() local 265 struct drm_crtc *crtc = newstate->crtc; in sti_cursor_atomic_update() 266 struct drm_framebuffer *fb = newstate->fb; in sti_cursor_atomic_update() 277 dst_x = newstate->crtc_x; in sti_cursor_atomic_update() 278 dst_y = newstate->crtc_y; in sti_cursor_atomic_update()
|
/linux/arch/x86/kernel/fpu/ |
A D | regset.c | 94 struct user32_fxsr_struct newstate; in xfpregs_set() local 97 BUILD_BUG_ON(sizeof(newstate) != sizeof(struct fxregs_state)); in xfpregs_set() 103 if (pos != 0 || count != sizeof(newstate)) in xfpregs_set() 106 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, 0, -1); in xfpregs_set() 111 if (newstate.mxcsr & ~mxcsr_feature_mask) in xfpregs_set() 117 memcpy(&fpu->fpstate->regs.fxsave, &newstate, sizeof(newstate)); in xfpregs_set()
|
/linux/drivers/s390/net/ |
A D | fsm.h | 192 fsm_newstate(fsm_instance *fi, int newstate) in fsm_newstate() argument 194 atomic_set(&fi->state,newstate); in fsm_newstate() 196 fsm_record_history(fi, newstate, -1); in fsm_newstate() 200 fi->f->state_names[newstate]); in fsm_newstate()
|
/linux/drivers/gpu/drm/stm/ |
A D | ltdc.c | 787 u32 x0 = newstate->crtc_x; in ltdc_plane_atomic_update() 788 u32 x1 = newstate->crtc_x + newstate->crtc_w - 1; in ltdc_plane_atomic_update() 789 u32 y0 = newstate->crtc_y; in ltdc_plane_atomic_update() 790 u32 y1 = newstate->crtc_y + newstate->crtc_h - 1; in ltdc_plane_atomic_update() 795 if (!newstate->crtc || !fb) { in ltdc_plane_atomic_update() 801 src_x = newstate->src_x >> 16; in ltdc_plane_atomic_update() 802 src_y = newstate->src_y >> 16; in ltdc_plane_atomic_update() 803 src_w = newstate->src_w >> 16; in ltdc_plane_atomic_update() 809 newstate->crtc_w, newstate->crtc_h, in ltdc_plane_atomic_update() 810 newstate->crtc_x, newstate->crtc_y); in ltdc_plane_atomic_update() [all …]
|
/linux/include/trace/events/ |
A D | sock.h | 140 TP_PROTO(const struct sock *sk, const int oldstate, const int newstate), 142 TP_ARGS(sk, oldstate, newstate), 147 __field(int, newstate) 165 __entry->newstate = newstate; 201 show_tcp_state_name(__entry->newstate))
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_sk_storage_tracing.c | 34 int newstate) in BPF_PROG() argument 38 if (newstate == BPF_TCP_CLOSE) in BPF_PROG() 46 stg->last_notclose_state = newstate; in BPF_PROG()
|
/linux/kernel/ |
A D | smpboot.c | 468 int newstate; in cpu_report_death() local 474 newstate = CPU_DEAD; in cpu_report_death() 476 newstate = CPU_DEAD_FROZEN; in cpu_report_death() 478 oldstate, newstate) != oldstate); in cpu_report_death() 479 return newstate == CPU_DEAD; in cpu_report_death()
|
A D | stop_machine.c | 182 enum multi_stop_state newstate) in set_state() argument 187 WRITE_ONCE(msdata->state, newstate); in set_state() 206 enum multi_stop_state newstate, curstate = MULTI_STOP_NONE; in multi_cpu_stop() local 230 newstate = READ_ONCE(msdata->state); in multi_cpu_stop() 231 if (newstate != curstate) { in multi_cpu_stop() 232 curstate = newstate; in multi_cpu_stop()
|
/linux/drivers/pwm/ |
A D | pwm-fsl-ftm.c | 230 const struct pwm_state *newstate) in fsl_pwm_apply_config() argument 238 if (!fsl_pwm_calculate_period(fpc, newstate->period, &periodcfg)) { in fsl_pwm_apply_config() 283 duty = fsl_pwm_calculate_duty(fpc, newstate->duty_cycle); in fsl_pwm_apply_config() 290 if (newstate->polarity == PWM_POLARITY_INVERSED) in fsl_pwm_apply_config() 301 const struct pwm_state *newstate) in fsl_pwm_apply() argument 318 if (!newstate->enabled) { in fsl_pwm_apply() 329 ret = fsl_pwm_apply_config(fpc, pwm, newstate); in fsl_pwm_apply()
|
/linux/drivers/net/wireless/ath/carl9170/ |
A D | carl9170.h | 508 enum carl9170_device_state newstate) in __carl9170_set_state() argument 510 ar->state = newstate; in __carl9170_set_state() 514 enum carl9170_device_state newstate) in carl9170_set_state() argument 519 __carl9170_set_state(ar, newstate); in carl9170_set_state() 524 enum carl9170_device_state min, enum carl9170_device_state newstate) in carl9170_set_state_when() argument 530 __carl9170_set_state(ar, newstate); in carl9170_set_state_when()
|
/linux/drivers/isdn/mISDN/ |
A D | fsm.c | 86 mISDN_FsmChangeState(struct FsmInst *fi, int newstate) in mISDN_FsmChangeState() argument 88 fi->state = newstate; in mISDN_FsmChangeState() 91 fi->fsm->strState[newstate]); in mISDN_FsmChangeState()
|
/linux/drivers/s390/char/ |
A D | tape_core.c | 187 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set() argument 203 if (newstate < TS_SIZE && newstate >= 0) in tape_state_set() 204 str = tape_state_verbose[newstate]; in tape_state_set() 208 device->tape_state = newstate; in tape_state_set() 263 tape_med_state_set(struct tape_device *device, enum tape_medium_state newstate) in tape_med_state_set() argument 268 if (oldstate == newstate) in tape_med_state_set() 270 device->medium_state = newstate; in tape_med_state_set() 271 switch(newstate){ in tape_med_state_set()
|
/linux/kernel/rcu/ |
A D | rcu.h | 48 static inline void rcu_seq_set_state(unsigned long *sp, int newstate) in rcu_seq_set_state() argument 50 WARN_ON_ONCE(newstate & ~RCU_SEQ_STATE_MASK); in rcu_seq_set_state() 51 WRITE_ONCE(*sp, (*sp & ~RCU_SEQ_STATE_MASK) + newstate); in rcu_seq_set_state()
|
A D | rcutorture.c | 1418 static void rcutorture_one_extend(int *readstate, int newstate, in rcutorture_one_extend() argument 1425 int statesnew = ~*readstate & newstate; in rcutorture_one_extend() 1426 int statesold = *readstate & ~newstate; in rcutorture_one_extend() 1430 rtrsp->rt_readstate = newstate; in rcutorture_one_extend() 1474 if ((statesnew || statesold) && *readstate && newstate) in rcutorture_one_extend() 1482 *readstate = idxnew | newstate; in rcutorture_one_extend() 1574 int newstate; in rcu_torture_one_read() local 1584 newstate = rcutorture_extend_mask(readstate, trsp); in rcu_torture_one_read() 1585 rcutorture_one_extend(&readstate, newstate, trsp, rtrsp++); in rcu_torture_one_read()
|
/linux/drivers/usb/phy/ |
A D | phy-fsl-usb.h | 287 #define SET_OTG_STATE(phy, newstate) ((phy)->otg->state = newstate) argument
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
A D | phy_hal.h | 182 void wlc_phy_hw_clk_state_upd(struct brcms_phy_pub *ppi, bool newstate); 183 void wlc_phy_hw_state_upd(struct brcms_phy_pub *ppi, bool newstate);
|
/linux/drivers/staging/vc04_services/interface/vchiq_arm/ |
A D | vchiq_core.h | 595 enum vchiq_connstate newstate); 597 void vchiq_set_conn_state(struct vchiq_state *state, enum vchiq_connstate newstate);
|
A D | vchiq_core.c | 228 vchiq_set_service_state(struct vchiq_service *service, int newstate) in vchiq_set_service_state() argument 233 srvstate_names[newstate]); in vchiq_set_service_state() 234 service->srvstate = newstate; in vchiq_set_service_state() 489 conn_state_names[newstate]); in vchiq_set_conn_state() 490 state->conn_state = newstate; in vchiq_set_conn_state() 491 vchiq_platform_conn_state_changed(state, oldstate, newstate); in vchiq_set_conn_state() 2628 int newstate; in close_service_complete() local 2638 newstate = VCHIQ_SRVSTATE_LISTENING; in close_service_complete() 2640 newstate = VCHIQ_SRVSTATE_CLOSEWAIT; in close_service_complete() 2643 newstate = VCHIQ_SRVSTATE_CLOSED; in close_service_complete() [all …]
|
/linux/arch/arm64/kernel/ |
A D | ptrace.c | 628 struct user_fpsimd_state newstate; in __fpr_set() local 636 newstate = target->thread.uw.fpsimd_state; in __fpr_set() 638 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newstate, in __fpr_set() 639 start_pos, start_pos + sizeof(newstate)); in __fpr_set() 643 target->thread.uw.fpsimd_state = newstate; in __fpr_set()
|