Home
last modified time | relevance | path

Searched refs:domid (Results 1 – 25 of 26) sorted by relevance

12

/drivers/xen/
Dprivcmd.c59 domid_t domid; member
74 if (data->domid != DOMID_INVALID) in privcmd_ioctl_hypercall()
268 if (data->domid != DOMID_INVALID && data->domid != mmapcmd.dom) in privcmd_ioctl_mmap()
475 if (data->domid != DOMID_INVALID && data->domid != m.dom) in privcmd_ioctl_mmap_batch()
634 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op()
713 if (data->domid == DOMID_INVALID) in privcmd_ioctl_restrict()
714 data->domid = dom; in privcmd_ioctl_restrict()
715 else if (data->domid != dom) in privcmd_ioctl_restrict()
736 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_mmap_resource()
743 xdata.domid = kdata.dom; in privcmd_ioctl_mmap_resource()
[all …]
Dxlate_mmu.c68 domid_t domid; member
104 .domid = DOMID_SELF, in remap_pte_fn()
105 .foreign_domid = info->domid, in remap_pte_fn()
147 unsigned domid, in xen_xlate_remap_gfn_array() argument
161 data.domid = domid; in xen_xlate_remap_gfn_array()
178 xrp.domid = DOMID_SELF; in unmap_gfn()
Dgntdev-dmabuf.c437 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument
448 map->grants[i].domid = domid; in dmabuf_exp_from_refs()
489 int count, int domid) in dmabuf_imp_grant_foreign_access() argument
510 gnttab_grant_foreign_access_ref(cur_ref, domid, in dmabuf_imp_grant_foreign_access()
567 int fd, int count, int domid) in dmabuf_imp_to_refs() argument
645 count, domid)); in dmabuf_imp_to_refs()
760 op.domid, refs, &op.fd); in gntdev_ioctl_dmabuf_exp_from_refs()
799 op.count, op.domid); in gntdev_ioctl_dmabuf_imp_to_refs()
Dgrant-table.c139 void (*update_entry)(grant_ref_t ref, domid_t domid,
384 static void gnttab_update_entry_v1(grant_ref_t ref, domid_t domid, in gnttab_update_entry_v1() argument
387 gnttab_shared.v1[ref].domid = domid; in gnttab_update_entry_v1()
393 static void gnttab_update_entry_v2(grant_ref_t ref, domid_t domid, in gnttab_update_entry_v2() argument
396 gnttab_shared.v2[ref].hdr.domid = domid; in gnttab_update_entry_v2()
405 void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, in gnttab_grant_foreign_access_ref() argument
408 gnttab_interface->update_entry(ref, domid, frame, in gnttab_grant_foreign_access_ref()
413 int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, in gnttab_grant_foreign_access() argument
422 gnttab_grant_foreign_access_ref(ref, domid, frame, readonly); in gnttab_grant_foreign_access()
1265 foreign->domid = map_ops[i].dom; in gnttab_map_refs()
[all …]
Dmem-reservation.c91 .domid = DOMID_SELF in xenmem_reservation_increase()
107 .domid = DOMID_SELF in xenmem_reservation_decrease()
Dgntdev.c198 add->grants[i].domid = DOMID_INVALID; in gntdev_alloc_map()
314 map->grants[pgnr].domid); in find_grant_ptes()
334 map->grants[i].domid); in gntdev_map_grant_pages()
360 map->grants[i].domid); in gntdev_map_grant_pages()
905 op->source.domid = seg->source.foreign.domid; in gntdev_grant_copy_seg()
919 op->source.domid = DOMID_SELF; in gntdev_grant_copy_seg()
925 op->dest.domid = seg->dest.foreign.domid; in gntdev_grant_copy_seg()
939 op->dest.domid = DOMID_SELF; in gntdev_grant_copy_seg()
Darm-device.c29 xrp.domid = DOMID_SELF; in xen_unmap_device_mmio()
53 .domid = DOMID_SELF, in xen_map_device_mmio()
Devtchn.c581 if (ierd.domid == 0 || ierd.domid >= DOMID_FIRST_RESERVED) in evtchn_ioctl()
584 u->restrict_domid = ierd.domid; in evtchn_ioctl()
Dxen-scsiback.c88 domid_t domid; member
477 flags, seg[i].gref, info->domid); in scsiback_gnttab_data_map_list()
764 info->domid, rp, rc, rp - rc); in scsiback_do_cmd_fn()
1285 info->domid = dev->otherend_id; in scsiback_probe()
Dgntalloc.c147 rc = gnttab_grant_foreign_access(op->domid, in add_grefs()
/drivers/xen/xenbus/
Dxenbus_probe_backend.c61 int domid, err; in backend_bus_id() local
75 err = xenbus_gather(XBT_NIL, nodename, "frontend-id", "%i", &domid, in backend_bus_id()
90 typelen, type, domid, devid) >= XEN_BUS_ID_SIZE) in backend_bus_id()
154 const char *domid) in xenbus_probe_backend() argument
163 nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, domid); in xenbus_probe_backend()
Dxenbus_dev_backend.c30 static long xenbus_alloc(domid_t domid) in xenbus_alloc() argument
50 gnttab_grant_foreign_access_ref(GNTTAB_RESERVED_XENSTORE, domid, in xenbus_alloc()
54 arg.remote_dom = domid; in xenbus_alloc()
/drivers/net/xen-netback/
Dhash.c296 .source.domid = vif->domid, in xenvif_set_hash_key()
298 .dest.domid = DOMID_SELF, in xenvif_set_hash_key()
342 .source.domid = vif->domid, in xenvif_set_hash_mapping()
343 .dest.domid = DOMID_SELF, in xenvif_set_hash_mapping()
Drx.c212 op->source.domid = foreign->domid; in xenvif_rx_copy_add()
217 op->source.domid = DOMID_SELF; in xenvif_rx_copy_add()
222 op->dest.domid = queue->vif->domid; in xenvif_rx_copy_add()
Dcommon.h281 domid_t domid; member
347 domid_t domid,
Dinterface.c479 struct xenvif *xenvif_alloc(struct device *parent, domid_t domid, in xenvif_alloc() argument
490 snprintf(name, IFNAMSIZ - 1, "vif%u.%u", domid, handle); in xenvif_alloc()
506 vif->domid = domid; in xenvif_alloc()
Dnetback.c348 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
406 cop->source.domid = queue->vif->domid; in xenvif_get_requests()
409 cop->dest.domid = DOMID_SELF; in xenvif_get_requests()
/drivers/xen/events/
Devents_base.c126 uint16_t domid; member
390 uint16_t domid, in xen_irq_info_pirq_setup() argument
397 info->u.pirq.domid = domid; in xen_irq_info_pirq_setup()
1105 int pirq, int nvec, const char *name, domid_t domid) in xen_bind_pirq_msi_to_irq() argument
1118 ret = xen_irq_info_pirq_setup(irq + i, 0, pirq + i, 0, domid, in xen_bind_pirq_msi_to_irq()
1153 unmap_irq.domid = info->u.pirq.domid; in xen_destroy_irq()
1159 if ((rc == -ESRCH && info->u.pirq.domid != DOMID_SELF)) in xen_destroy_irq()
1161 info->u.pirq.domid, info->u.pirq.pirq); in xen_destroy_irq()
1953 map_irq.domid = DOMID_SELF; in restore_pirqs()
/drivers/s390/char/
Dsclp_rw.h27 u32 domid; member
/drivers/block/xen-blkback/
Dxenbus.c70 snprintf(buf, TASK_COMM_LEN, "%d.%s", blkif->domid, devname); in blkback_name()
165 static struct xen_blkif *xen_blkif_alloc(domid_t domid) in xen_blkif_alloc() argument
175 blkif->domid = domid; in xen_blkif_alloc()
523 handle, blkif->domid); in xen_vbd_create()
Dblkback.c479 blkif->domid, MAJOR(vbd->pdevice), MINOR(vbd->pdevice)); in xen_vbd_resize()
812 blkif->domid); in xen_blkbk_map()
877 blkif->domid, blkif->vbd.handle); in xen_blkbk_map()
1297 ring->blkif->domid); in dispatch_rw_block_io()
Dcommon.h304 domid_t domid; member
/drivers/s390/crypto/
Dvfio_ap_ops.c1346 unsigned long domid; in unassign_control_domain_store() local
1351 ret = kstrtoul(buf, 0, &domid); in unassign_control_domain_store()
1355 if (domid > matrix_mdev->matrix.adm_max) { in unassign_control_domain_store()
1360 if (!test_bit_inv(domid, matrix_mdev->matrix.adm)) { in unassign_control_domain_store()
1365 clear_bit_inv(domid, matrix_mdev->matrix.adm); in unassign_control_domain_store()
1367 if (test_bit_inv(domid, matrix_mdev->shadow_apcb.adm)) { in unassign_control_domain_store()
1368 clear_bit_inv(domid, matrix_mdev->shadow_apcb.adm); in unassign_control_domain_store()
/drivers/xen/xen-pciback/
Dpci_stub.c629 int domid = xen_find_device_domain_owner(dev); in pcistub_remove() local
632 pci_name(found_psdev->dev), domid); in pcistub_remove()
/drivers/iommu/amd/
Diommu.c1008 size_t size, u16 domid, int pde) in build_inv_iommu_pages() argument
1013 cmd->data[1] |= domid; in build_inv_iommu_pages()
1035 static void build_inv_iommu_pasid(struct iommu_cmd *cmd, u16 domid, u32 pasid, in build_inv_iommu_pasid() argument
1043 cmd->data[1] = domid; in build_inv_iommu_pasid()

12