Lines Matching refs:domid
27 uint32_t domid; in main_usbctrl_attach() local
35 domid = find_domain(argv[optind++]); in main_usbctrl_attach()
44 rc = libxl_device_usbctrl_add(ctx, domid, &usbctrl, 0); in main_usbctrl_attach()
56 uint32_t domid; in main_usbctrl_detach() local
64 domid = find_domain(argv[optind]); in main_usbctrl_detach()
68 if (libxl_devid_to_device_usbctrl(ctx, domid, devid, &usbctrl)) { in main_usbctrl_detach()
73 rc = libxl_device_usbctrl_remove(ctx, domid, &usbctrl, 0); in main_usbctrl_detach()
86 uint32_t domid; in main_usbdev_attach() local
96 domid = find_domain(argv[optind++]); in main_usbdev_attach()
103 rc = libxl_device_usbdev_add(ctx, domid, &usbdev, 0); in main_usbdev_attach()
115 uint32_t domid; in main_usbdev_detach() local
124 domid = find_domain(argv[optind]); in main_usbdev_detach()
134 if (libxl_ctrlport_to_device_usbdev(ctx, domid, ctrl, port, &usbdev)) { in main_usbdev_detach()
140 rc = libxl_device_usbdev_remove(ctx, domid, &usbdev, 0); in main_usbdev_detach()
152 uint32_t domid; in main_usblist() local
161 domid = find_domain(argv[optind++]); in main_usblist()
168 usbctrls = libxl_device_usbctrl_list(ctx, domid, &numctrl); in main_usblist()
179 if (!libxl_device_usbctrl_getinfo(ctx, domid, in main_usblist()
194 if (!libxl_ctrlport_to_device_usbdev(ctx, domid, in main_usblist()