Lines Matching refs:pcu
78 const pcu_ops_t *pcu; member
125 const pcu_ops_t * const pcu = pcu_ops_md_defs[id]; in pcu_switchpoint() local
126 pcu->pcu_state_release(l); in pcu_switchpoint()
159 const pcu_ops_t * const pcu = pcu_ops_md_defs[id]; in pcu_discard_all() local
160 pcu_lwp_op(pcu, l, PCU_CMD_RELEASE); in pcu_discard_all()
200 const pcu_ops_t * const pcu = pcu_ops_md_defs[id]; in pcu_save_all() local
201 pcu_lwp_op(pcu, l, flags); in pcu_save_all()
211 pcu_do_op(const pcu_ops_t *pcu, lwp_t * const l, const int flags) in pcu_do_op() argument
214 const u_int id = pcu->pcu_id; in pcu_do_op()
219 pcu->pcu_state_save(l); in pcu_do_op()
222 pcu->pcu_state_release(l); in pcu_do_op()
235 const pcu_ops_t *pcu = pcu_msg->pcu; in pcu_cpu_ipi() local
236 const u_int id = pcu->pcu_id; in pcu_cpu_ipi()
249 pcu_do_op(pcu, l, pcu_msg->flags); in pcu_cpu_ipi()
256 pcu_lwp_op(const pcu_ops_t *pcu, lwp_t *l, const int flags) in pcu_lwp_op() argument
258 const u_int id = pcu->pcu_id; in pcu_lwp_op()
276 pcu_do_op(pcu, l, flags); in pcu_lwp_op()
289 pcu_ipi_msg_t pcu_msg = { .pcu = pcu, .owner = l, .flags = flags }; in pcu_lwp_op()
304 pcu_load(const pcu_ops_t *pcu) in pcu_load() argument
307 const u_int id = pcu->pcu_id; in pcu_load()
331 KASSERT(pcu_valid_p(pcu, l)); in pcu_load()
332 pcu->pcu_state_load(l, PCU_VALID | PCU_REENABLE); in pcu_load()
339 pcu_ipi_msg_t pcu_msg = { .pcu = pcu, .owner = l, in pcu_load()
357 pcu_do_op(pcu, oncpu_lwp, PCU_CMD_SAVE | PCU_CMD_RELEASE); in pcu_load()
366 pcu->pcu_state_load(l, valid ? PCU_VALID : 0); in pcu_load()
378 pcu_discard(const pcu_ops_t *pcu, lwp_t *l, bool valid) in pcu_discard() argument
380 const u_int id = pcu->pcu_id; in pcu_discard()
393 pcu_lwp_op(pcu, l, PCU_CMD_RELEASE); in pcu_discard()
400 pcu_save(const pcu_ops_t *pcu, lwp_t *l) in pcu_save() argument
402 const u_int id = pcu->pcu_id; in pcu_save()
410 pcu_lwp_op(pcu, l, PCU_CMD_SAVE | PCU_CMD_RELEASE); in pcu_save()
423 const pcu_ops_t * const pcu = pcu_ops_md_defs[id]; in pcu_save_all_on_cpu() local
427 pcu_do_op(pcu, l, PCU_CMD_SAVE | PCU_CMD_RELEASE); in pcu_save_all_on_cpu()
438 pcu_valid_p(const pcu_ops_t *pcu, const lwp_t *l) in pcu_valid_p() argument
440 const u_int id = pcu->pcu_id; in pcu_valid_p()