Lines Matching full:pe
50 struct radix_tree_root pe_tree; /* Maps PE handles to pe_data */
65 u64 pe; member
100 static void read_irq(struct spa *spa, u64 *dsisr, u64 *dar, u64 *pe) in read_irq() argument
107 *pe = reg & SPA_PE_MASK; in read_irq()
123 trace_ocxl_fault_ack(spa->spa_mem, spa->xsl_fault.pe, in ack_irq()
187 struct ocxl_process_element *pe; in xsl_fault_handler() local
195 pe = spa->spa_mem + pe_handle; in xsl_fault_handler()
196 pid = be32_to_cpu(pe->pid); in xsl_fault_handler()
197 /* We could be reading all null values here if the PE is being in xsl_fault_handler()
215 * AFU about PASID termination before removing the PE, in xsl_fault_handler()
242 spa->xsl_fault.pe = pe_handle; in xsl_fault_handler()
503 struct ocxl_process_element *pe; in ocxl_link_add_pe() local
513 pe = spa->spa_mem + pe_handle; in ocxl_link_add_pe()
515 if (pe->software_state) { in ocxl_link_add_pe()
530 memset(pe, 0, sizeof(struct ocxl_process_element)); in ocxl_link_add_pe()
531 pe->config_state = cpu_to_be64(calculate_cfg_state(pidr == 0)); in ocxl_link_add_pe()
532 pe->lpid = cpu_to_be32(mfspr(SPRN_LPID)); in ocxl_link_add_pe()
533 pe->pid = cpu_to_be32(pidr); in ocxl_link_add_pe()
534 pe->tid = cpu_to_be32(tidr); in ocxl_link_add_pe()
535 pe->amr = cpu_to_be64(amr); in ocxl_link_add_pe()
536 pe->software_state = cpu_to_be32(SPA_PE_VALID); in ocxl_link_add_pe()
546 * Barrier is to make sure PE is visible in the SPA before it in ocxl_link_add_pe()
580 struct ocxl_process_element *pe; in ocxl_link_update_pe() local
587 pe = spa->spa_mem + pe_handle; in ocxl_link_update_pe()
591 pe->tid = cpu_to_be32(tid); in ocxl_link_update_pe()
594 * The barrier makes sure the PE is updated in ocxl_link_update_pe()
596 * old PE cannot be reloaded erroneously. in ocxl_link_update_pe()
616 struct ocxl_process_element *pe; in ocxl_link_remove_pe() local
626 * Before removing the PE, the driver is supposed to have in ocxl_link_remove_pe()
631 * We clear the PE and remove the context from our radix in ocxl_link_remove_pe()
642 pe = spa->spa_mem + pe_handle; in ocxl_link_remove_pe()
646 if (!(be32_to_cpu(pe->software_state) & SPA_PE_VALID)) { in ocxl_link_remove_pe()
652 be32_to_cpu(pe->pid), be32_to_cpu(pe->tid)); in ocxl_link_remove_pe()
654 memset(pe, 0, sizeof(struct ocxl_process_element)); in ocxl_link_remove_pe()
656 * The barrier makes sure the PE is removed from the SPA in ocxl_link_remove_pe()
658 * old PE cannot be reloaded erroneously. in ocxl_link_remove_pe()
672 WARN(1, "Couldn't find pe data when removing PE\n"); in ocxl_link_remove_pe()