Lines Matching defs:width
35 int width, height, bpp, pitch;
40 width = vbox_crtc->width ? vbox_crtc->width : 640;
43 pitch = fb ? fb->pitches[0] : width * bpp / 8;
56 vbox_write_ioport(VBE_DISPI_INDEX_XRES, width);
74 pitch, width, height, bpp, flags);
123 u16 width = 0, height = 0;
148 vbox->input_mapping_width = fb1->width;
159 width = max_t(u16, width, vbox_crtc->x_hint +
160 vbox_connector->mode_hint.width);
166 vbox->input_mapping_width = width;
184 vbox_crtc->width = crtc->state->mode.hdisplay;
329 u32 width = new_state->crtc_w;
350 if (width > VBOX_MAX_CURSOR_WIDTH || height > VBOX_MAX_CURSOR_HEIGHT ||
351 width == 0 || height == 0)
362 static void copy_cursor_image(u8 *src, u8 *dst, u32 width, u32 height,
365 size_t line_size = (width + 7) / 8;
368 memcpy(dst + mask_size, src, width * height * 4);
370 for (j = 0; j < width; ++j)
371 if (((u32 *)src)[i * width + j] > 0xf0000000)
383 u32 width = plane->state->crtc_w;
415 mask_size = ((width + 7) / 8 * height + 3) & ~3;
416 data_size = width * height * 4 + mask_size;
418 copy_cursor_image(src, vbox->cursor_data, width, height, mask_size);
424 min_t(u32, max(fb->hot_x, 0), width),
426 width, height, vbox->cursor_data, data_size);
635 static void vbox_set_edid(struct drm_connector *connector, int width,
681 int clock = (width + 6) * (height + 6) * 60 / 10000;
684 edid[12] = width & 0xff;
685 edid[13] = width >> 8;
690 edid[56] = width & 0xff;
691 edid[58] = (width >> 4) & 0xf0;
717 preferred_width = vbox_connector->mode_hint.width ?
718 vbox_connector->mode_hint.width : 1024;