Searched refs:__state (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/include/drm/
H A Ddrm_atomic.h798 * @__state: &struct drm_atomic_state pointer
810 #define for_each_oldnew_connector_in_state(__state, connector, old_connector_state, new_connector_state, __i) \
812 (__i) < (__state)->num_connector; \
814 for_each_if ((__state)->connectors[__i].ptr && \
815 ((connector) = (__state)->connectors[__i].ptr, \
817 (old_connector_state) = (__state)->connectors[__i].old_state, \
818 (new_connector_state) = (__state)->connectors[__i].new_state, 1))
822 * @__state: &struct drm_atomic_state pointer
832 #define for_each_old_connector_in_state(__state, connector, old_connector_state, __i) \
834 (__i) < (__state)
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_global_state.h32 #define for_each_new_global_obj_in_state(__state, obj, new_obj_state, __i) \
34 (__i) < (__state)->num_global_objs && \
35 ((obj) = (__state)->global_objs[__i].ptr, \
36 (new_obj_state) = (__state)->global_objs[__i].new_state, 1); \
40 #define for_each_old_global_obj_in_state(__state, obj, old_obj_state, __i) \
42 (__i) < (__state)->num_global_objs && \
43 ((obj) = (__state)->global_objs[__i].ptr, \
44 (old_obj_state) = (__state)->global_objs[__i].old_state, 1); \
48 #define for_each_oldnew_global_obj_in_state(__state, obj, old_obj_state, new_obj_state, __i) \
50 (__i) < (__state)
[all...]
H A Dintel_display.h315 #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \
317 (__i) < (__state)->base.dev->mode_config.num_total_plane && \
318 ((plane) = to_intel_plane((__state)->base.planes[__i].ptr), \
319 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \
323 #define for_each_old_intel_crtc_in_state(__state, crtc, old_crtc_state, __i) \
325 (__i) < (__state)->base.dev->mode_config.num_crtc && \
326 ((crtc) = to_intel_crtc((__state)->base.crtcs[__i].ptr), \
327 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), 1); \
331 #define for_each_new_intel_plane_in_state(__state, plane, new_plane_state, __i) \
333 (__i) < (__state)
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dstv090x_priv.h37 #define STV090x_READ_DEMOD(__state, __reg) (( \
38 (__state)->demod == STV090x_DEMODULATOR_1) ? \
39 stv090x_read_reg(__state, STV090x_P2_##__reg) : \
40 stv090x_read_reg(__state, STV090x_P1_##__reg))
42 #define STV090x_WRITE_DEMOD(__state, __reg, __data) (( \
43 (__state)->demod == STV090x_DEMODULATOR_1) ? \
44 stv090x_write_reg(__state, STV090x_P2_##__reg, __data) :\
45 stv090x_write_reg(__state, STV090x_P1_##__reg, __data))
47 #define STV090x_ADDR_OFFST(__state, __x) (( \
48 (__state
[all...]
/linux-master/kernel/
H A Dfreezer.c58 return READ_ONCE(p->__state) & TASK_FROZEN;
110 unsigned int state = READ_ONCE(p->__state);
136 p->saved_state = p->__state;
137 WRITE_ONCE(p->__state, TASK_FROZEN);
189 WRITE_ONCE(p->__state, state);
H A Dhung_task.c99 if (unlikely(READ_ONCE(t->__state) & TASK_FROZEN))
210 state = READ_ONCE(t->__state);
/linux-master/include/drm/display/
H A Ddrm_dp_mst_helper.h984 * @__state: &struct drm_atomic_state pointer
996 #define for_each_oldnew_mst_mgr_in_state(__state, mgr, old_state, new_state, __i) \
997 for ((__i) = 0; (__i) < (__state)->num_private_objs; (__i)++) \
998 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), &(new_state), (__i)))
1003 * @__state: &struct drm_atomic_state pointer
1013 #define for_each_old_mst_mgr_in_state(__state, mgr, old_state, __i) \
1014 for ((__i) = 0; (__i) < (__state)->num_private_objs; (__i)++) \
1015 for_each_if(__drm_dp_mst_state_iter_get((__state), &(mgr), &(old_state), NULL, (__i)))
1020 * @__state: &struct drm_atomic_state pointer
1031 #define for_each_new_mst_mgr_in_state(__state, mg
[all...]
/linux-master/lib/
H A Dsyscall.c77 state = READ_ONCE(target->__state);
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dfw.h65 #define IS_IN_LOW_POWER_STATE_92E(__state) \
66 (FW_PS_STATE(__state) == FW_PS_CLOCK_OFF)
/linux-master/tools/bpf/runqslower/
H A Drunqslower.bpf.c77 if (prev->__state == TASK_RUNNING)
/linux-master/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c79 long __state; member in struct:task_struct___new
100 * Old kernel used to call it task_struct->state and now it's '__state'.
110 if (bpf_core_field_exists(t_new->__state)) {
111 return BPF_CORE_READ(t_new, __state);
/linux-master/include/linux/
H A Dsched.h87 * We have two separate sets of flags: task->__state
94 /* Used in tsk->__state: */
104 /* Used in tsk->__state again: */
140 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING)
185 * set_current_state() includes a barrier so that the write of current->__state
208 * accessing p->__state.
210 * Wakeup will do: if (@state & p->__state) p->__state = TASK_RUNNING, that is,
224 WRITE_ONCE(current->__state, (state_value)); \
230 smp_store_mb(current->__state, (state_valu
756 unsigned int __state; member in struct:task_struct
[all...]
H A Dbpf_verifier.h466 #define bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, __mask, __expr) \
472 __state = ___vstate->frame[___i]; \
473 ___regs = __state->regs; \
478 bpf_for_each_spilled_reg(___j, __state, __reg, __mask) { \
486 /* Invoke __expr over regsiters in __vst, setting __state and __reg */
487 #define bpf_for_each_reg_in_vstate(__vst, __state, __reg, __expr) \
488 bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr)
H A Dnodemask.h441 #define for_each_node_state(__node, __state) \
442 for_each_node_mask((__node), node_states[__state])
490 #define for_each_node_state(node, __state) \
/linux-master/drivers/gpu/drm/display/
H A Ddrm_dp_tunnel.c26 #define for_each_new_group_in_state(__state, __new_group_state, __i) \
28 (__i) < (__state)->num_private_objs; \
30 for_each_if ((__state)->private_objs[__i].ptr && \
31 is_dp_tunnel_private_obj((__state)->private_objs[__i].ptr) && \
33 to_group_state((__state)->private_objs[__i].new_state), 1))
35 #define for_each_old_group_in_state(__state, __old_group_state, __i) \
37 (__i) < (__state)->num_private_objs; \
39 for_each_if ((__state)->private_objs[__i].ptr && \
40 is_dp_tunnel_private_obj((__state)->private_objs[__i].ptr) && \
42 to_group_state((__state)
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dfw.h113 #define IS_IN_LOW_POWER_STATE_8821AE(__state) \
114 (FW_PS_STATE(__state) == FW_PS_CLOCK_OFF)
/linux-master/drivers/pci/controller/dwc/
H A Dpcie-bt1.c110 int __state = FIELD_GET(BT1_CCU_PCIE_LTSSM_STATE_MASK, _pmsc); \
111 __state >= BT1_CCU_PCIE_LTSSM_L0 && __state <= BT1_CCU_PCIE_LTSSM_L2_WAKE; \
/linux-master/init/
H A Dinit_task.c69 .__state = 0,
/linux-master/drivers/s390/cio/
H A Dqdio_main.c209 unsigned char __state = 0; local
216 __state = q->slsb.val[bufnr];
219 if (__state & SLSB_OWNER_CU)
226 if (q->slsb.val[bufnr] != __state)
231 *state = __state;
/linux-master/kernel/rcu/
H A Dtree_stall.h542 gpk ? data_race(READ_ONCE(gpk->__state)) : ~0, cpu);
584 data_race(READ_ONCE(gpk->__state)));
895 t ? data_race(READ_ONCE(t->__state)) : 0x1ffff, t ? t->rt_priority : 0xffU,
/linux-master/kernel/sched/
H A Dcore.c2096 state = READ_ONCE(p->__state);
2255 if (READ_ONCE(p->__state) & state)
3054 if (task_on_cpu(rq, p) || READ_ONCE(p->__state) == TASK_WAKING) {
3351 unsigned int state = READ_ONCE(p->__state);
3768 WRITE_ONCE(p->__state, TASK_RUNNING);
4099 * After acquiring the lock the task will restore p::__state
4327 WRITE_ONCE(p->__state, TASK_WAKING);
4389 unsigned int state = READ_ONCE(p->__state);
4400 * Ensure we load p->on_rq after p->__state, otherwise it would be
4454 * p->__state t
[all...]
H A Ddeadline.c449 if (!dl_task(p) || READ_ONCE(p->__state) == TASK_DEAD) {
452 if (READ_ONCE(p->__state) == TASK_DEAD)
1487 if (!dl_task(p) || READ_ONCE(p->__state) == TASK_DEAD) {
1490 if (READ_ONCE(p->__state) == TASK_DEAD && dl_se->dl_non_contending) {
1668 state = READ_ONCE(p->__state);
1953 if (READ_ONCE(p->__state) != TASK_WAKING)
/linux-master/arch/loongarch/kernel/
H A Dasm-offsets.c68 OFFSET(TASK_STATE, task_struct, __state);
/linux-master/drivers/net/pcs/
H A Dpcs-xpcs.c305 #define xpcs_warn(__xpcs, __state, __args...) \
307 if ((__state)->link) \
/linux-master/kernel/cgroup/
H A Dcgroup-v1.c725 switch (READ_ONCE(tsk->__state)) {

Completed in 453 milliseconds

12