Searched refs:gdrm (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/gpu/drm/gud/ ! |
D | gud_drv.c | 151 static int gud_usb_transfer(struct gud_device *gdrm, bool in, u8 request, u16 index, in gud_usb_transfer() argument 154 struct usb_interface *intf = to_usb_interface(gdrm->drm.dev); in gud_usb_transfer() 157 drm_dbg(&gdrm->drm, "%s: request=0x%x index=%u len=%zu\n", in gud_usb_transfer() 160 if (!drm_dev_enter(&gdrm->drm, &idx)) in gud_usb_transfer() 163 mutex_lock(&gdrm->ctrl_lock); in gud_usb_transfer() 166 if (ret == -EPIPE || ((gdrm->flags & GUD_DISPLAY_FLAG_STATUS_ON_SET) && !in && ret >= 0)) { in gud_usb_transfer() 173 dev_err_once(gdrm->drm.dev, in gud_usb_transfer() 180 drm_dbg(&gdrm->drm, "ret=%d\n", ret); in gud_usb_transfer() 181 gdrm->stats_num_errors++; in gud_usb_transfer() 184 mutex_unlock(&gdrm->ctrl_lock); in gud_usb_transfer() [all …]
|
D | gud_pipe.c | 149 static int gud_prep_flush(struct gud_device *gdrm, struct drm_framebuffer *fb, in gud_prep_flush() argument 154 u8 compression = gdrm->compression; in gud_prep_flush() 163 if (len > gdrm->bulk_len) in gud_prep_flush() 177 buf = gdrm->compress_buf; in gud_prep_flush() 179 buf = gdrm->bulk_buf; in gud_prep_flush() 222 complen = LZ4_compress_default(buf, gdrm->bulk_buf, len, len, gdrm->lz4_comp_mem); in gud_prep_flush() 252 static int gud_usb_bulk(struct gud_device *gdrm, size_t len) in gud_usb_bulk() argument 257 ret = usb_sg_init(&ctx.sgr, gud_to_usb_device(gdrm), gdrm->bulk_pipe, 0, in gud_usb_bulk() 258 gdrm->bulk_sgt.sgl, gdrm->bulk_sgt.nents, len, GFP_KERNEL); in gud_usb_bulk() 279 static int gud_flush_rect(struct gud_device *gdrm, struct drm_framebuffer *fb, in gud_flush_rect() argument [all …]
|
D | gud_internal.h | 53 static inline struct usb_device *gud_to_usb_device(struct gud_device *gdrm) in gud_to_usb_device() argument 55 return interface_to_usbdev(to_usb_interface(gdrm->drm.dev)); in gud_to_usb_device() 58 int gud_usb_get(struct gud_device *gdrm, u8 request, u16 index, void *buf, size_t len); 59 int gud_usb_set(struct gud_device *gdrm, u8 request, u16 index, void *buf, size_t len); 60 int gud_usb_get_u8(struct gud_device *gdrm, u8 request, u16 index, u8 *val); 61 int gud_usb_set_u8(struct gud_device *gdrm, u8 request, u8 val); 63 void gud_clear_damage(struct gud_device *gdrm); 72 int gud_get_connectors(struct gud_device *gdrm);
|
D | gud_connector.c | 154 struct gud_device *gdrm = to_gud_device(connector->dev); in gud_connector_detect() local 162 ret = gud_usb_set(gdrm, GUD_REQ_SET_CONNECTOR_FORCE_DETECT, in gud_connector_detect() 170 ret = gud_usb_get_u8(gdrm, GUD_REQ_GET_CONNECTOR_STATUS, connector->index, &status); in gud_connector_detect() 219 struct gud_device *gdrm = to_gud_device(connector->dev); in gud_connector_get_modes() local 234 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_EDID, connector->index, in gud_connector_get_modes() 253 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_MODES, connector->index, in gud_connector_get_modes() 377 static int gud_connector_add_tv_mode(struct gud_device *gdrm, struct drm_connector *connector) in gud_connector_add_tv_mode() argument 389 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_TV_MODE_VALUES, in gud_connector_add_tv_mode() 474 static int gud_connector_add_properties(struct gud_device *gdrm, struct gud_connector *gconn) in gud_connector_add_properties() argument 477 struct drm_device *drm = &gdrm->drm; in gud_connector_add_properties() [all …]
|