Lines Matching refs:new_st
245 RK_U32 new_st; in mpp_node_task_schedule_f() local
256 new_st = 0; in mpp_node_task_schedule_f()
264 new_st = old_st ^ (NODE_IDLE | NODE_WAIT); in mpp_node_task_schedule_f()
265 cluster_dbg_flow("%s sched task %x -> %x wait\n", node_name, old_st, new_st); in mpp_node_task_schedule_f()
268 new_st = old_st | NODE_SIGNAL; in mpp_node_task_schedule_f()
270 cluster_dbg_flow("%s sched task %x -> %x signal\n", node_name, old_st, new_st); in mpp_node_task_schedule_f()
275 ret = MPP_BOOL_CAS(&node->state, old_st, new_st); in mpp_node_task_schedule_f()
277 node_name, old_st, new_st, ret, action); in mpp_node_task_schedule_f()
416 RK_U32 new_st; in cluster_worker_get_task() local
447 new_st = old_st ^ (NODE_WAIT | NODE_RUN); in cluster_worker_get_task()
450 ret = MPP_BOOL_CAS(&node->state, old_st, new_st); in cluster_worker_get_task()
476 RK_U32 new_st; in cluster_worker_run_task() local
521 new_st = old_st ^ (NODE_SIGNAL | NODE_WAIT | NODE_RUN); in cluster_worker_run_task()
522 cas_ret = MPP_BOOL_CAS(&node->state, old_st, new_st); in cluster_worker_run_task()
525 cluster_dbg_flow("%s run state %x -> %x signal -> wait\n", p->name, old_st, new_st); in cluster_worker_run_task()
535 new_st = old_st ^ (NODE_IDLE | NODE_RUN); in cluster_worker_run_task()
537 cas_ret = MPP_BOOL_CAS(&node->state, old_st, new_st); in cluster_worker_run_task()
542 cluster_dbg_flow("%s run state %x -> %x run -> idle\n", p->name, old_st, new_st); in cluster_worker_run_task()