Lines Matching refs:nctx
3984 pfm_context_t *nctx; in pfm_inherit() local
4059 nctx = pfm_context_alloc(); in pfm_inherit()
4060 if (nctx == NULL) return -ENOMEM; in pfm_inherit()
4063 *nctx = *ctx; in pfm_inherit()
4066 nctx->ctx_fl_inherit = PFM_FL_INHERIT_NONE; in pfm_inherit()
4082 if (nctx->ctx_notify_task) in pfm_inherit()
4083 atomic_inc(&nctx->ctx_notify_task->thread.pfm_notifiers_check); in pfm_inherit()
4085 if (nctx->ctx_owner) in pfm_inherit()
4086 atomic_inc(&nctx->ctx_owner->thread.pfm_owners_check); in pfm_inherit()
4096 m = nctx->ctx_used_pmds[0] >> PMU_FIRST_COUNTER; in pfm_inherit()
4099 nctx->ctx_soft_pmds[i].val = nctx->ctx_soft_pmds[i].lval & ~pmu_conf.ovfl_val; in pfm_inherit()
4100 thread->pmd[i] = nctx->ctx_soft_pmds[i].lval & pmu_conf.ovfl_val; in pfm_inherit()
4106 nctx->ctx_fl_frozen = 0; in pfm_inherit()
4107 nctx->ctx_ovfl_regs[0] = 0UL; in pfm_inherit()
4108 SET_LAST_CPU(nctx, -1); in pfm_inherit()
4119 if (nctx->ctx_psb) { in pfm_inherit()
4120 LOCK_PSB(nctx->ctx_psb); in pfm_inherit()
4122 nctx->ctx_psb->psb_refcnt++; in pfm_inherit()
4129 UNLOCK_PSB(nctx->ctx_psb); in pfm_inherit()
4134 nctx->ctx_smpl_vaddr = 0; in pfm_inherit()
4137 sema_init(&nctx->ctx_restart_sem, 0); /* reset this semaphore to locked */ in pfm_inherit()
4142 nctx->ctx_saved_psr = pfm_get_psr(); in pfm_inherit()
4147 nctx->ctx_last_activation = PFM_INVALID_ACTIVATION; in pfm_inherit()
4148 SET_LAST_CPU(nctx, -1); in pfm_inherit()
4157 tasklet_init(&nctx->ctx_tasklet, pfm_send_notification_signal, (unsigned long)nctx); in pfm_inherit()
4160 thread->pfm_context = nctx; in pfm_inherit()
4162 DBprintk(("nctx=%p for process [%d]\n", (void *)nctx, task->pid)); in pfm_inherit()