Searched refs:gdrm (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/gpu/drm/gud/ |
D | gud_drv.c | 152 static int gud_usb_transfer(struct gud_device *gdrm, bool in, u8 request, u16 index, in gud_usb_transfer() argument 155 struct usb_interface *intf = to_usb_interface(gdrm->drm.dev); in gud_usb_transfer() 158 drm_dbg(&gdrm->drm, "%s: request=0x%x index=%u len=%zu\n", in gud_usb_transfer() 161 if (!drm_dev_enter(&gdrm->drm, &idx)) in gud_usb_transfer() 164 mutex_lock(&gdrm->ctrl_lock); in gud_usb_transfer() 167 if (ret == -EPIPE || ((gdrm->flags & GUD_DISPLAY_FLAG_STATUS_ON_SET) && !in && ret >= 0)) { in gud_usb_transfer() 174 dev_err_once(gdrm->drm.dev, in gud_usb_transfer() 181 drm_dbg(&gdrm->drm, "ret=%d\n", ret); in gud_usb_transfer() 182 gdrm->stats_num_errors++; in gud_usb_transfer() 185 mutex_unlock(&gdrm->ctrl_lock); in gud_usb_transfer() [all …]
|
D | gud_pipe.c | 152 static int gud_prep_flush(struct gud_device *gdrm, struct drm_framebuffer *fb, in gud_prep_flush() argument 157 u8 compression = gdrm->compression; in gud_prep_flush() 164 if (len > gdrm->bulk_len) in gud_prep_flush() 170 buf = gdrm->compress_buf; in gud_prep_flush() 172 buf = gdrm->bulk_buf; in gud_prep_flush() 215 complen = LZ4_compress_default(buf, gdrm->bulk_buf, len, len, gdrm->lz4_comp_mem); in gud_prep_flush() 240 static int gud_usb_bulk(struct gud_device *gdrm, size_t len) in gud_usb_bulk() argument 245 ret = usb_sg_init(&ctx.sgr, gud_to_usb_device(gdrm), gdrm->bulk_pipe, 0, in gud_usb_bulk() 246 gdrm->bulk_sgt.sgl, gdrm->bulk_sgt.nents, len, GFP_KERNEL); in gud_usb_bulk() 267 static int gud_flush_rect(struct gud_device *gdrm, struct drm_framebuffer *fb, in gud_flush_rect() argument [all …]
|
D | gud_internal.h | 54 static inline struct usb_device *gud_to_usb_device(struct gud_device *gdrm) in gud_to_usb_device() argument 56 return interface_to_usbdev(to_usb_interface(gdrm->drm.dev)); in gud_to_usb_device() 59 int gud_usb_get(struct gud_device *gdrm, u8 request, u16 index, void *buf, size_t len); 60 int gud_usb_set(struct gud_device *gdrm, u8 request, u16 index, void *buf, size_t len); 61 int gud_usb_get_u8(struct gud_device *gdrm, u8 request, u16 index, u8 *val); 62 int gud_usb_set_u8(struct gud_device *gdrm, u8 request, u8 val); 64 void gud_clear_damage(struct gud_device *gdrm); 73 int gud_get_connectors(struct gud_device *gdrm);
|
D | gud_connector.c | 155 struct gud_device *gdrm = to_gud_device(connector->dev); in gud_connector_detect() local 163 ret = gud_usb_set(gdrm, GUD_REQ_SET_CONNECTOR_FORCE_DETECT, in gud_connector_detect() 171 ret = gud_usb_get_u8(gdrm, GUD_REQ_GET_CONNECTOR_STATUS, connector->index, &status); in gud_connector_detect() 220 struct gud_device *gdrm = to_gud_device(connector->dev); in gud_connector_get_modes() local 235 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_EDID, connector->index, in gud_connector_get_modes() 254 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_MODES, connector->index, in gud_connector_get_modes() 378 static int gud_connector_add_tv_mode(struct gud_device *gdrm, struct drm_connector *connector) in gud_connector_add_tv_mode() argument 390 ret = gud_usb_get(gdrm, GUD_REQ_GET_CONNECTOR_TV_MODE_VALUES, in gud_connector_add_tv_mode() 475 static int gud_connector_add_properties(struct gud_device *gdrm, struct gud_connector *gconn) in gud_connector_add_properties() argument 478 struct drm_device *drm = &gdrm->drm; in gud_connector_add_properties() [all …]
|