Lines Matching defs:width
40 int width, height, bpp, pitch;
45 width = vbox_crtc->width ? vbox_crtc->width : 640;
48 pitch = fb ? fb->pitches[0] : width * bpp / 8;
61 vbox_write_ioport(VBE_DISPI_INDEX_XRES, width);
79 pitch, width, height, bpp, flags);
128 u16 width = 0, height = 0;
153 vbox->input_mapping_width = fb1->width;
164 width = max_t(u16, width, vbox_crtc->x_hint +
165 vbox_connector->mode_hint.width);
171 vbox->input_mapping_width = width;
189 vbox_crtc->width = crtc->state->mode.hdisplay;
342 u32 width = new_state->crtc_w;
363 if (width > VBOX_MAX_CURSOR_WIDTH || height > VBOX_MAX_CURSOR_HEIGHT ||
364 width == 0 || height == 0)
375 static void copy_cursor_image(u8 *src, u8 *dst, u32 width, u32 height,
378 size_t line_size = (width + 7) / 8;
381 memcpy(dst + mask_size, src, width * height * 4);
383 for (j = 0; j < width; ++j)
384 if (((u32 *)src)[i * width + j] > 0xf0000000)
399 u32 width = new_state->crtc_w;
424 mask_size = ((width + 7) / 8 * height + 3) & ~3;
425 data_size = width * height * 4 + mask_size;
427 copy_cursor_image(src, vbox->cursor_data, width, height, mask_size);
432 min_t(u32, max(fb->hot_x, 0), width),
434 width, height, vbox->cursor_data, data_size);
641 static void vbox_set_edid(struct drm_connector *connector, int width,
687 int clock = (width + 6) * (height + 6) * 60 / 10000;
690 edid[12] = width & 0xff;
691 edid[13] = width >> 8;
696 edid[56] = width & 0xff;
697 edid[58] = (width >> 4) & 0xf0;
723 preferred_width = vbox_connector->mode_hint.width ?
724 vbox_connector->mode_hint.width : 1024;