Lines Matching refs:card_res
94 struct drm_mode_card_res *card_res = data; in drm_mode_getresources() local
111 fb_id = u64_to_user_ptr(card_res->fb_id_ptr); in drm_mode_getresources()
113 if (count < card_res->count_fbs && in drm_mode_getresources()
120 card_res->count_fbs = count; in drm_mode_getresources()
123 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources()
124 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources()
125 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources()
126 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources()
129 crtc_id = u64_to_user_ptr(card_res->crtc_id_ptr); in drm_mode_getresources()
132 if (count < card_res->count_crtcs && in drm_mode_getresources()
138 card_res->count_crtcs = count; in drm_mode_getresources()
141 encoder_id = u64_to_user_ptr(card_res->encoder_id_ptr); in drm_mode_getresources()
143 if (count < card_res->count_encoders && in drm_mode_getresources()
148 card_res->count_encoders = count; in drm_mode_getresources()
152 connector_id = u64_to_user_ptr(card_res->connector_id_ptr); in drm_mode_getresources()
160 if (count < card_res->count_connectors && in drm_mode_getresources()
168 card_res->count_connectors = count; in drm_mode_getresources()