Lines Matching refs:rc

148     int rc = 0;  in xen_pt_pci_read_config()  local
168 rc = xen_host_pci_get_block(&s->real_device, addr, (uint8_t *)&val, len); in xen_pt_pci_read_config()
169 if (rc < 0) { in xen_pt_pci_read_config()
170 XEN_PT_ERR(d, "pci_read_block failed. return value: %d.\n", rc); in xen_pt_pci_read_config()
201 rc = reg->u.b.read(s, reg_entry, ptr_val, valid_mask); in xen_pt_pci_read_config()
206 rc = reg->u.w.read(s, reg_entry, in xen_pt_pci_read_config()
212 rc = reg->u.dw.read(s, reg_entry, in xen_pt_pci_read_config()
218 if (rc < 0) { in xen_pt_pci_read_config()
221 __func__, rc); in xen_pt_pci_read_config()
252 int rc = 0; in xen_pt_pci_write_config() local
294 rc = xen_host_pci_get_block(&s->real_device, addr, in xen_pt_pci_write_config()
296 if (rc < 0) { in xen_pt_pci_write_config()
297 XEN_PT_ERR(d, "pci_read_block failed. return value: %d.\n", rc); in xen_pt_pci_write_config()
346 rc = reg->u.b.write(s, reg_entry, ptr_val, in xen_pt_pci_write_config()
353 rc = reg->u.w.write(s, reg_entry, (uint16_t *)ptr_val, in xen_pt_pci_write_config()
360 rc = reg->u.dw.write(s, reg_entry, (uint32_t *)ptr_val, in xen_pt_pci_write_config()
367 if (rc < 0) { in xen_pt_pci_write_config()
370 __func__, rc); in xen_pt_pci_write_config()
421 rc = xen_host_pci_set_block(&s->real_device, addr + index, in xen_pt_pci_write_config()
424 if (rc < 0) { in xen_pt_pci_write_config()
425 XEN_PT_ERR(d, "xen_host_pci_set_block failed. return value: %d.\n", rc); in xen_pt_pci_write_config()
553 bool rc; member
584 arg->rc = true; in xen_pt_check_bar_overlap()
595 int rc; in xen_pt_region_update() local
601 .rc = false, in xen_pt_region_update()
612 rc = xen_pt_msix_update_remap(s, s->msix->bar_index); in xen_pt_region_update()
620 if (args.rc) { in xen_pt_region_update()
631 rc = xc_domain_ioport_mapping(xen_xc, xen_domid, in xen_pt_region_update()
634 if (rc) { in xen_pt_region_update()
643 rc = xc_domain_memory_mapping(xen_xc, xen_domid, in xen_pt_region_update()
648 if (rc) { in xen_pt_region_update()
712 int rc; in xen_pt_destroy() local
716 rc = xc_domain_unbind_pt_irq(xen_xc, xen_domid, machine_irq, in xen_pt_destroy()
722 if (rc < 0) { in xen_pt_destroy()
742 rc = xc_physdev_unmap_pirq(xen_xc, xen_domid, machine_irq); in xen_pt_destroy()
744 if (rc < 0) { in xen_pt_destroy()
773 int i, rc = 0; in xen_pt_realize() local
828 rc = -1; in xen_pt_realize()
833 rc = xen_host_pci_get_byte(&s->real_device, PCI_INTERRUPT_PIN, &scratch); in xen_pt_realize()
834 if (rc) { in xen_pt_realize()
850 rc = xc_physdev_map_pirq(xen_xc, xen_domid, machine_irq, &pirq); in xen_pt_realize()
851 if (rc < 0) { in xen_pt_realize()
869 rc = xc_domain_bind_pt_pci_irq(xen_xc, xen_domid, machine_irq, in xen_pt_realize()
873 if (rc < 0) { in xen_pt_realize()
895 rc = xen_host_pci_get_word(&s->real_device, PCI_COMMAND, &val); in xen_pt_realize()
896 if (rc) { in xen_pt_realize()
901 rc = xen_host_pci_set_word(&s->real_device, PCI_COMMAND, val); in xen_pt_realize()
902 if (rc) { in xen_pt_realize()
926 assert(rc); in xen_pt_realize()