Lines Matching refs:pn
280 struct pv_node *pn = (struct pv_node *)node; in pv_init_node() local
284 pn->cpu = smp_processor_id(); in pv_init_node()
285 pn->state = vcpu_running; in pv_init_node()
295 struct pv_node *pn = (struct pv_node *)node; in pv_wait_node() local
320 smp_store_mb(pn->state, vcpu_halted); in pv_wait_node()
325 pv_wait(&pn->state, vcpu_halted); in pv_wait_node()
333 cmpxchg(&pn->state, vcpu_halted, vcpu_running); in pv_wait_node()
362 struct pv_node *pn = (struct pv_node *)node; in pv_kick_node() local
380 if (cmpxchg_relaxed(&pn->state, vcpu_halted, vcpu_hashed) in pv_kick_node()
392 (void)pv_hash(lock, pn); in pv_kick_node()
405 struct pv_node *pn = (struct pv_node *)node; in pv_wait_head_or_lock() local
414 if (READ_ONCE(pn->state) == vcpu_hashed) in pv_wait_head_or_lock()
427 WRITE_ONCE(pn->state, vcpu_running); in pv_wait_head_or_lock()
443 lp = pv_hash(lock, pn); in pv_wait_head_or_lock()
467 WRITE_ONCE(pn->state, vcpu_hashed); in pv_wait_head_or_lock()