Lines Matching +full:sense +full:- +full:bitfield +full:- +full:width

1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/bitfield.h>
120 * same actual count. This makes sense once you read above a couple of
127 while (actual_count--) { in udl_lfsr16()
151 u16 reg01 = mode->crtc_htotal - mode->crtc_hsync_start; in udl_set_display_mode()
152 u16 reg03 = reg01 + mode->crtc_hdisplay; in udl_set_display_mode()
153 u16 reg05 = mode->crtc_vtotal - mode->crtc_vsync_start; in udl_set_display_mode()
154 u16 reg07 = reg05 + mode->crtc_vdisplay; in udl_set_display_mode()
155 u16 reg09 = mode->crtc_htotal - 1; in udl_set_display_mode()
157 u16 reg0d = mode->crtc_hsync_end - mode->crtc_hsync_start + 1; in udl_set_display_mode()
158 u16 reg0f = mode->hdisplay; in udl_set_display_mode()
159 u16 reg11 = mode->crtc_vtotal; in udl_set_display_mode()
161 u16 reg15 = mode->crtc_vsync_end - mode->crtc_vsync_start; in udl_set_display_mode()
162 u16 reg17 = mode->crtc_vdisplay; in udl_set_display_mode()
163 u16 reg1b = mode->clock / 5; in udl_set_display_mode()
199 return -EINVAL; in udl_log_cpp()
207 struct drm_device *dev = fb->dev; in udl_handle_damage()
208 void *vaddr = map->vaddr; /* TODO: Use mapping abstraction properly */ in udl_handle_damage()
214 ret = udl_log_cpp(fb->format->cpp[0]); in udl_handle_damage()
221 return -ENOMEM; in udl_handle_damage()
222 cmd = urb->transfer_buffer; in udl_handle_damage()
224 for (i = clip->y1; i < clip->y2; i++) { in udl_handle_damage()
225 const int line_offset = fb->pitches[0] * i; in udl_handle_damage()
226 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage()
227 const int dev_byte_offset = (fb->width * i + clip->x1) << log_bpp; in udl_handle_damage()
236 if (cmd > (char *)urb->transfer_buffer) { in udl_handle_damage()
239 if (cmd < (char *)urb->transfer_buffer + urb->transfer_buffer_length) in udl_handle_damage()
241 len = cmd - (char *)urb->transfer_buffer; in udl_handle_damage()
268 struct drm_crtc *new_crtc = new_plane_state->crtc; in udl_primary_plane_helper_atomic_check()
283 struct drm_device *dev = plane->dev; in udl_primary_plane_helper_atomic_update()
286 struct drm_framebuffer *fb = plane_state->fb; in udl_primary_plane_helper_atomic_update()
304 udl_handle_damage(fb, &shadow_plane_state->data[0], &damage); in udl_primary_plane_helper_atomic_update()
332 struct drm_device *dev = crtc->dev; in udl_crtc_helper_atomic_enable()
334 struct drm_display_mode *mode = &crtc_state->mode; in udl_crtc_helper_atomic_enable()
346 buf = (char *)urb->transfer_buffer; in udl_crtc_helper_atomic_enable()
352 buf = udl_set_base8bpp(buf, 2 * mode->vdisplay * mode->hdisplay); in udl_crtc_helper_atomic_enable()
358 udl_submit_urb(dev, urb, buf - (char *)urb->transfer_buffer); in udl_crtc_helper_atomic_enable()
366 struct drm_device *dev = crtc->dev; in udl_crtc_helper_atomic_disable()
378 buf = (char *)urb->transfer_buffer; in udl_crtc_helper_atomic_disable()
384 udl_submit_urb(dev, urb, buf - (char *)urb->transfer_buffer); in udl_crtc_helper_atomic_disable()
434 struct udl_device *udl = to_udl(connector->dev); in udl_connector_helper_detect_ctx()
464 if (udl->sku_pixel_limit) { in udl_mode_config_mode_valid()
465 if (mode->vdisplay * mode->hdisplay > udl->sku_pixel_limit) in udl_mode_config_mode_valid()
492 dev->mode_config.min_width = 640; in udl_modeset_init()
493 dev->mode_config.min_height = 480; in udl_modeset_init()
494 dev->mode_config.max_width = 2048; in udl_modeset_init()
495 dev->mode_config.max_height = 2048; in udl_modeset_init()
496 dev->mode_config.preferred_depth = 16; in udl_modeset_init()
497 dev->mode_config.funcs = &udl_mode_config_funcs; in udl_modeset_init()
499 primary_plane = &udl->primary_plane; in udl_modeset_init()
511 crtc = &udl->crtc; in udl_modeset_init()
518 encoder = &udl->encoder; in udl_modeset_init()
522 encoder->possible_crtcs = drm_crtc_mask(crtc); in udl_modeset_init()
524 connector = &udl->connector; in udl_modeset_init()
530 connector->polled = DRM_CONNECTOR_POLL_CONNECT | in udl_modeset_init()