Lines Matching full:pe

56 	struct radix_tree_root pe_tree; /* Maps PE handles to pe_data */
71 u64 pe; member
108 static void read_irq(struct spa *spa, u64 *dsisr, u64 *dar, u64 *pe) in read_irq() argument
115 *pe = reg & SPA_PE_MASK; in read_irq()
131 trace_ocxl_fault_ack(spa->spa_mem, spa->xsl_fault.pe, in ack_irq()
195 struct ocxl_process_element *pe; in xsl_fault_handler() local
203 pe = spa->spa_mem + pe_handle; in xsl_fault_handler()
204 pid = be32_to_cpu(pe->pid); in xsl_fault_handler()
205 /* We could be reading all null values here if the PE is being in xsl_fault_handler()
223 * AFU about PASID termination before removing the PE, in xsl_fault_handler()
250 spa->xsl_fault.pe = pe_handle; in xsl_fault_handler()
545 struct ocxl_process_element *pe; in ocxl_link_add_pe() local
555 pe = spa->spa_mem + pe_handle; in ocxl_link_add_pe()
557 if (pe->software_state) { in ocxl_link_add_pe()
574 memset(pe, 0, sizeof(struct ocxl_process_element)); in ocxl_link_add_pe()
575 pe->config_state = cpu_to_be64(calculate_cfg_state(pidr == 0)); in ocxl_link_add_pe()
576 pe->pasid = cpu_to_be32(pasid << (31 - 19)); in ocxl_link_add_pe()
577 pe->bdf = cpu_to_be16(bdf); in ocxl_link_add_pe()
578 pe->lpid = cpu_to_be32(mfspr(SPRN_LPID)); in ocxl_link_add_pe()
579 pe->pid = cpu_to_be32(pidr); in ocxl_link_add_pe()
580 pe->tid = cpu_to_be32(tidr); in ocxl_link_add_pe()
581 pe->amr = cpu_to_be64(amr); in ocxl_link_add_pe()
582 pe->software_state = cpu_to_be32(SPA_PE_VALID); in ocxl_link_add_pe()
601 * Barrier is to make sure PE is visible in the SPA before it in ocxl_link_add_pe()
635 struct ocxl_process_element *pe; in ocxl_link_update_pe() local
642 pe = spa->spa_mem + pe_handle; in ocxl_link_update_pe()
646 pe->tid = cpu_to_be32(tid); in ocxl_link_update_pe()
649 * The barrier makes sure the PE is updated in ocxl_link_update_pe()
651 * old PE cannot be reloaded erroneously. in ocxl_link_update_pe()
671 struct ocxl_process_element *pe; in ocxl_link_remove_pe() local
681 * Before removing the PE, the driver is supposed to have in ocxl_link_remove_pe()
686 * We clear the PE and remove the context from our radix in ocxl_link_remove_pe()
697 pe = spa->spa_mem + pe_handle; in ocxl_link_remove_pe()
701 if (!(be32_to_cpu(pe->software_state) & SPA_PE_VALID)) { in ocxl_link_remove_pe()
707 be32_to_cpu(pe->pid), be32_to_cpu(pe->tid)); in ocxl_link_remove_pe()
709 memset(pe, 0, sizeof(struct ocxl_process_element)); in ocxl_link_remove_pe()
711 * The barrier makes sure the PE is removed from the SPA in ocxl_link_remove_pe()
713 * old PE cannot be reloaded erroneously. in ocxl_link_remove_pe()
727 WARN(1, "Couldn't find pe data when removing PE\n"); in ocxl_link_remove_pe()