Lines Matching refs:guest

92 				afu->guest->handle = addr;  in read_phys_addr()
95 afu->guest->p2n_phys += addr; in read_phys_addr()
96 afu->guest->p2n_size = size; in read_phys_addr()
137 if (read_handle(afu_np, &afu->guest->handle)) in cxl_of_read_afu_handle()
139 pr_devel("AFU handle: 0x%.16llx\n", afu->guest->handle); in cxl_of_read_afu_handle()
194 read_prop_dword(np, "ibm,max-ints-per-process", &afu->guest->max_ints); in cxl_of_read_afu_properties()
195 afu->irqs_max = afu->guest->max_ints; in cxl_of_read_afu_properties()
273 pr_devel("AFU handle: %#llx\n", afu->guest->handle); in cxl_of_read_afu_properties()
275 afu->guest->p2n_phys, afu->guest->p2n_size); in cxl_of_read_afu_properties()
305 adapter->guest->irq_avail = kcalloc(nranges, sizeof(struct irq_avail), in read_adapter_irq_config()
307 if (adapter->guest->irq_avail == NULL) in read_adapter_irq_config()
310 adapter->guest->irq_base_offset = be32_to_cpu(ranges[0]); in read_adapter_irq_config()
312 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
319 if (cur->offset < adapter->guest->irq_base_offset) in read_adapter_irq_config()
320 adapter->guest->irq_base_offset = cur->offset; in read_adapter_irq_config()
326 adapter->guest->irq_nranges = nranges; in read_adapter_irq_config()
327 spin_lock_init(&adapter->guest->irq_alloc_lock); in read_adapter_irq_config()
332 cur = &adapter->guest->irq_avail[i]; in read_adapter_irq_config()
335 kfree(adapter->guest->irq_avail); in read_adapter_irq_config()
336 adapter->guest->irq_avail = NULL; in read_adapter_irq_config()
342 if (read_handle(np, &adapter->guest->handle)) in cxl_of_read_adapter_handle()
344 pr_devel("Adapter handle: 0x%.16llx\n", adapter->guest->handle); in cxl_of_read_adapter_handle()
406 adapter->guest->status = kasprintf(GFP_KERNEL, "%s", (char *) prop); in cxl_of_read_adapter_properties()
407 if (adapter->guest->status == NULL) in cxl_of_read_adapter_properties()
413 adapter->guest->vendor = val; in cxl_of_read_adapter_properties()
417 adapter->guest->device = val; in cxl_of_read_adapter_properties()
427 adapter->guest->subsystem_vendor = val; in cxl_of_read_adapter_properties()
431 adapter->guest->subsystem = val; in cxl_of_read_adapter_properties()