Lines Matching refs:card_res
93 struct drm_mode_card_res *card_res = data; in drm_mode_getresources() local
110 fb_id = u64_to_user_ptr(card_res->fb_id_ptr); in drm_mode_getresources()
112 if (count < card_res->count_fbs && in drm_mode_getresources()
119 card_res->count_fbs = count; in drm_mode_getresources()
122 card_res->max_height = dev->mode_config.max_height; in drm_mode_getresources()
123 card_res->min_height = dev->mode_config.min_height; in drm_mode_getresources()
124 card_res->max_width = dev->mode_config.max_width; in drm_mode_getresources()
125 card_res->min_width = dev->mode_config.min_width; in drm_mode_getresources()
128 crtc_id = u64_to_user_ptr(card_res->crtc_id_ptr); in drm_mode_getresources()
131 if (count < card_res->count_crtcs && in drm_mode_getresources()
137 card_res->count_crtcs = count; in drm_mode_getresources()
140 encoder_id = u64_to_user_ptr(card_res->encoder_id_ptr); in drm_mode_getresources()
142 if (count < card_res->count_encoders && in drm_mode_getresources()
147 card_res->count_encoders = count; in drm_mode_getresources()
151 connector_id = u64_to_user_ptr(card_res->connector_id_ptr); in drm_mode_getresources()
159 if (count < card_res->count_connectors && in drm_mode_getresources()
167 card_res->count_connectors = count; in drm_mode_getresources()