Lines Matching refs:guest
88 afu->guest->handle = addr; in read_phys_addr()
91 afu->guest->p2n_phys += addr; in read_phys_addr()
92 afu->guest->p2n_size = size; in read_phys_addr()
133 if (read_handle(afu_np, &afu->guest->handle)) in cxl_of_read_afu_handle()
135 pr_devel("AFU handle: 0x%.16llx\n", afu->guest->handle); in cxl_of_read_afu_handle()
190 read_prop_dword(np, "ibm,max-ints-per-process", &afu->guest->max_ints); in cxl_of_read_afu_properties()
191 afu->irqs_max = afu->guest->max_ints; in cxl_of_read_afu_properties()
269 pr_devel("AFU handle: %#llx\n", afu->guest->handle); in cxl_of_read_afu_properties()
271 afu->guest->p2n_phys, afu->guest->p2n_size); in cxl_of_read_afu_properties()
301 adapter->guest->irq_avail = kcalloc(nranges, sizeof(struct irq_avail), in read_adapter_irq_config()
303 if (adapter->guest->irq_avail == NULL) in read_adapter_irq_config()
306 adapter->guest->irq_base_offset = be32_to_cpu(ranges[0]); in read_adapter_irq_config()
308 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
315 if (cur->offset < adapter->guest->irq_base_offset) in read_adapter_irq_config()
316 adapter->guest->irq_base_offset = cur->offset; in read_adapter_irq_config()
322 adapter->guest->irq_nranges = nranges; in read_adapter_irq_config()
323 spin_lock_init(&adapter->guest->irq_alloc_lock); in read_adapter_irq_config()
328 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
331 kfree(adapter->guest->irq_avail); in read_adapter_irq_config()
332 adapter->guest->irq_avail = NULL; in read_adapter_irq_config()
338 if (read_handle(np, &adapter->guest->handle)) in cxl_of_read_adapter_handle()
340 pr_devel("Adapter handle: 0x%.16llx\n", adapter->guest->handle); in cxl_of_read_adapter_handle()
402 adapter->guest->status = kasprintf(GFP_KERNEL, "%s", (char *) prop); in cxl_of_read_adapter_properties()
403 if (adapter->guest->status == NULL) in cxl_of_read_adapter_properties()
409 adapter->guest->vendor = val; in cxl_of_read_adapter_properties()
413 adapter->guest->device = val; in cxl_of_read_adapter_properties()
423 adapter->guest->subsystem_vendor = val; in cxl_of_read_adapter_properties()
427 adapter->guest->subsystem = val; in cxl_of_read_adapter_properties()