Lines Matching full:guest

35 				afu->guest->handle = addr;  in read_phys_addr()
38 afu->guest->p2n_phys += addr; in read_phys_addr()
39 afu->guest->p2n_size = size; in read_phys_addr()
77 return of_property_read_reg(afu_np, 0, &afu->guest->handle, NULL); in cxl_of_read_afu_handle()
106 of_property_read_u32(np, "ibm,max-ints-per-process", &afu->guest->max_ints); in cxl_of_read_afu_properties()
107 afu->irqs_max = afu->guest->max_ints; in cxl_of_read_afu_properties()
159 pr_devel("AFU handle: %#llx\n", afu->guest->handle); in cxl_of_read_afu_properties()
161 afu->guest->p2n_phys, afu->guest->p2n_size); in cxl_of_read_afu_properties()
191 adapter->guest->irq_avail = kcalloc(nranges, sizeof(struct irq_avail), in read_adapter_irq_config()
193 if (adapter->guest->irq_avail == NULL) in read_adapter_irq_config()
196 adapter->guest->irq_base_offset = be32_to_cpu(ranges[0]); in read_adapter_irq_config()
198 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
204 if (cur->offset < adapter->guest->irq_base_offset) in read_adapter_irq_config()
205 adapter->guest->irq_base_offset = cur->offset; in read_adapter_irq_config()
211 adapter->guest->irq_nranges = nranges; in read_adapter_irq_config()
212 spin_lock_init(&adapter->guest->irq_alloc_lock); in read_adapter_irq_config()
217 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
220 kfree(adapter->guest->irq_avail); in read_adapter_irq_config()
221 adapter->guest->irq_avail = NULL; in read_adapter_irq_config()
227 return of_property_read_reg(np, 0, &adapter->guest->handle, NULL); in cxl_of_read_adapter_handle()
250 adapter->guest->status = kasprintf(GFP_KERNEL, "%s", p); in cxl_of_read_adapter_properties()
251 if (adapter->guest->status == NULL) in cxl_of_read_adapter_properties()
256 adapter->guest->vendor = val; in cxl_of_read_adapter_properties()
259 adapter->guest->device = val; in cxl_of_read_adapter_properties()
262 adapter->guest->subsystem_vendor = val; in cxl_of_read_adapter_properties()
265 adapter->guest->subsystem = val; in cxl_of_read_adapter_properties()