Lines Matching refs:info
87 libxl_vdisplinfo *info) in libxl__device_vdispl_getconnectors() argument
94 info->num_connectors = 0; in libxl__device_vdispl_getconnectors()
96 connector_path = GCSPRINTF("%s/%d", path, info->num_connectors); in libxl__device_vdispl_getconnectors()
101 connector_path = GCSPRINTF("%s/%d", path, ++info->num_connectors); in libxl__device_vdispl_getconnectors()
104 info->connectors = libxl__calloc(NOGC, info->num_connectors, in libxl__device_vdispl_getconnectors()
105 sizeof(*info->connectors)); in libxl__device_vdispl_getconnectors()
107 for (i = 0; i < info->num_connectors; i++) { in libxl__device_vdispl_getconnectors()
112 info->connectors[i].unique_id = xs_read(ctx->xsh, XBT_NULL, value_path, NULL); in libxl__device_vdispl_getconnectors()
113 if (info->connectors[i].unique_id == NULL) { rc = ERROR_FAIL; goto out; } in libxl__device_vdispl_getconnectors()
119 rc = sscanf(value, "%u"XENDISPL_RESOLUTION_SEPARATOR"%u", &info->connectors[i].width, in libxl__device_vdispl_getconnectors()
120 &info->connectors[i].height); in libxl__device_vdispl_getconnectors()
129 info->connectors[i].req_rref = value ? strtoul(value, NULL, 10) : -1; in libxl__device_vdispl_getconnectors()
134 info->connectors[i].req_evtch = value ? strtoul(value, NULL, 10) : -1; in libxl__device_vdispl_getconnectors()
139 info->connectors[i].evt_rref = value ? strtoul(value, NULL, 10) : -1; in libxl__device_vdispl_getconnectors()
144 info->connectors[i].evt_evtch = value ? strtoul(value, NULL, 10) : -1; in libxl__device_vdispl_getconnectors()
156 libxl_vdisplinfo *info) in libxl_device_vdispl_getinfo() argument
163 libxl_vdisplinfo_init(info); in libxl_device_vdispl_getinfo()
164 info->devid = vdispl->devid; in libxl_device_vdispl_getinfo()
166 devpath = libxl__domain_device_frontend_path(gc, domid, info->devid, in libxl_device_vdispl_getinfo()
168 libxl_path = libxl__domain_device_libxl_path(gc, domid, info->devid, in libxl_device_vdispl_getinfo()
171 info->backend = xs_read(ctx->xsh, XBT_NULL, in libxl_device_vdispl_getinfo()
174 if (!info->backend) { rc = ERROR_FAIL; goto out; } in libxl_device_vdispl_getinfo()
176 rc = libxl__backendpath_parse_domid(gc, info->backend, &info->backend_id); in libxl_device_vdispl_getinfo()
180 info->state = val ? strtoul(val, NULL, 10) : -1; in libxl_device_vdispl_getinfo()
182 info->frontend = xs_read(ctx->xsh, XBT_NULL, in libxl_device_vdispl_getinfo()
185 info->frontend_id = domid; in libxl_device_vdispl_getinfo()
188 info->be_alloc = val ? strtoul(val, NULL, 10) : 0; in libxl_device_vdispl_getinfo()
190 rc = libxl__device_vdispl_getconnectors(ctx, devpath, info); in libxl_device_vdispl_getinfo()