Lines Matching refs:amo
165 xpc_receive_IRQ_amo_sn2(struct amo *amo) in xpc_receive_IRQ_amo_sn2() argument
167 return FETCHOP_LOAD_OP(TO_AMO((u64)&amo->variable), FETCHOP_CLEAR); in xpc_receive_IRQ_amo_sn2()
171 xpc_send_IRQ_sn2(struct amo *amo, u64 flag, int nasid, int phys_cpuid, in xpc_send_IRQ_sn2() argument
179 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_OR, flag); in xpc_send_IRQ_sn2()
188 ret = xp_nofault_PIOR((u64 *)GLOBAL_MMR_ADDR(NASID_GET(&amo->variable), in xpc_send_IRQ_sn2()
196 static struct amo *
199 struct amo *amo = xpc_vars_sn2->amos_page + index; in xpc_init_IRQ_amo_sn2() local
201 (void)xpc_receive_IRQ_amo_sn2(amo); /* clear amo variable */ in xpc_init_IRQ_amo_sn2()
202 return amo; in xpc_init_IRQ_amo_sn2()
232 struct amo *amos = (struct amo *)__va(amos_page_pa + in xpc_send_activate_IRQ_sn2()
234 sizeof(struct amo))); in xpc_send_activate_IRQ_sn2()
245 struct amo *amos = (struct amo *)__va(xpc_vars_sn2->amos_page_pa + in xpc_send_local_activate_IRQ_sn2()
247 sizeof(struct amo))); in xpc_send_local_activate_IRQ_sn2()
470 struct amo *amo = (struct amo *)__va(part->sn.sn2.remote_amos_page_pa + in xpc_indicate_partition_engaged_sn2() local
472 sizeof(struct amo))); in xpc_indicate_partition_engaged_sn2()
477 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_OR, in xpc_indicate_partition_engaged_sn2()
486 (void)xp_nofault_PIOR((u64 *)GLOBAL_MMR_ADDR(NASID_GET(&amo-> in xpc_indicate_partition_engaged_sn2()
498 struct amo *amo = (struct amo *)__va(part_sn2->remote_amos_page_pa + in xpc_indicate_partition_disengaged_sn2() local
500 sizeof(struct amo))); in xpc_indicate_partition_disengaged_sn2()
505 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_AND, in xpc_indicate_partition_disengaged_sn2()
514 (void)xp_nofault_PIOR((u64 *)GLOBAL_MMR_ADDR(NASID_GET(&amo-> in xpc_indicate_partition_disengaged_sn2()
533 struct amo *amo = xpc_vars_sn2->amos_page + in xpc_assume_partition_disengaged_sn2() local
537 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_AND, in xpc_assume_partition_disengaged_sn2()
544 struct amo *amo = xpc_vars_sn2->amos_page + in xpc_partition_engaged_sn2() local
548 return (FETCHOP_LOAD_OP(TO_AMO((u64)&amo->variable), FETCHOP_LOAD) & in xpc_partition_engaged_sn2()
555 struct amo *amo = xpc_vars_sn2->amos_page + in xpc_any_partition_engaged_sn2() local
559 return FETCHOP_LOAD_OP(TO_AMO((u64)&amo->variable), FETCHOP_LOAD) != 0; in xpc_any_partition_engaged_sn2()
569 xpc_allow_amo_ops_sn2(struct amo *amos_page) in xpc_allow_amo_ops_sn2()
635 struct amo *amos_page; in xpc_setup_rsvd_page_sn2()
661 amos_page = (struct amo *)TO_AMO(uncached_alloc_page(0, 1)); in xpc_setup_rsvd_page_sn2()
847 struct amo *amo = (struct amo *)__va(part_sn2->remote_amos_page_pa + in xpc_request_partition_deactivation_sn2() local
849 sizeof(struct amo))); in xpc_request_partition_deactivation_sn2()
854 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_OR, in xpc_request_partition_deactivation_sn2()
863 (void)xp_nofault_PIOR((u64 *)GLOBAL_MMR_ADDR(NASID_GET(&amo-> in xpc_request_partition_deactivation_sn2()
883 struct amo *amo = (struct amo *)__va(part->sn.sn2.remote_amos_page_pa + in xpc_cancel_partition_deactivation_request_sn2() local
885 sizeof(struct amo))); in xpc_cancel_partition_deactivation_request_sn2()
890 FETCHOP_STORE_OP(TO_AMO((u64)&amo->variable), FETCHOP_AND, in xpc_cancel_partition_deactivation_request_sn2()
899 (void)xp_nofault_PIOR((u64 *)GLOBAL_MMR_ADDR(NASID_GET(&amo-> in xpc_cancel_partition_deactivation_request_sn2()
909 struct amo *amo = xpc_vars_sn2->amos_page + in xpc_partition_deactivation_requested_sn2() local
913 return (FETCHOP_LOAD_OP(TO_AMO((u64)&amo->variable), FETCHOP_LOAD) & in xpc_partition_deactivation_requested_sn2()
1101 struct amo *act_amos; in xpc_identify_activate_IRQ_sender_sn2()
1421 (struct amo *)__va(pulled_entry->chctl_amo_pa); in xpc_pull_remote_vars_part_sn2()