Lines Matching refs:head

44 static bool qxl_head_enabled(struct qxl_head *head)
46 return head->width && head->height;
153 struct qxl_head *head;
155 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
158 head = &qdev->client_monitors_config->heads[output->index];
161 dev->mode_config.suggested_x_property, head->x);
163 dev->mode_config.suggested_y_property, head->y);
254 struct qxl_head *head;
265 head = &qdev->client_monitors_config->heads[h];
266 DRM_DEBUG_KMS("head %d is %dx%d\n", h, head->width, head->height);
268 return qxl_add_mode(connector, head->width, head->height, true);
302 struct qxl_head *head = &qdev->monitors_config->heads[i];
304 if (head->y > 8192 || head->x > 8192 ||
305 head->width > 8192 || head->height > 8192) {
306 DRM_ERROR("head %d wrong: %dx%d+%d+%d\n",
307 i, head->width, head->height,
308 head->x, head->y);
321 struct qxl_head head;
332 head.id = i;
333 head.flags = 0;
334 head.surface_id = 0;
339 head.width = mode->hdisplay;
340 head.height = mode->vdisplay;
341 head.x = crtc->x;
342 head.y = crtc->y;
346 head.x += qdev->dumb_heads[i].x;
348 head.width = 0;
349 head.height = 0;
350 head.x = 0;
351 head.y = 0;
355 DRM_DEBUG_KMS("inactive head 0, skip (%s)\n", reason);
359 if (head.width == qdev->monitors_config->heads[i].width &&
360 head.height == qdev->monitors_config->heads[i].height &&
361 head.x == qdev->monitors_config->heads[i].x &&
362 head.y == qdev->monitors_config->heads[i].y &&
366 DRM_DEBUG_KMS("head %d, %dx%d, at +%d+%d, %s (%s)\n",
367 i, head.width, head.height, head.x, head.y,
374 qdev->monitors_config->heads[i] = head;
769 struct qxl_head *head;
774 head = qdev->dumb_heads + i;
775 head->x = surf->width;
776 surf->width += head->width;
777 if (surf->height < head->height)
778 surf->height = head->height;
1028 struct qxl_head *head;
1029 head = &qdev->client_monitors_config->heads[output->index];
1030 if (head->width)
1031 pwidth = head->width;
1032 if (head->height)
1033 pheight = head->height;