Lines Matching refs:prop_enum
393 struct drm_property_enum *prop_enum; in drm_property_add_enum() local
411 list_for_each_entry(prop_enum, &property->enum_list, head) { in drm_property_add_enum()
412 if (WARN_ON(prop_enum->value == value)) in drm_property_add_enum()
420 prop_enum = kzalloc(sizeof(struct drm_property_enum), GFP_KERNEL); in drm_property_add_enum()
421 if (!prop_enum) in drm_property_add_enum()
424 strncpy(prop_enum->name, name, DRM_PROP_NAME_LEN); in drm_property_add_enum()
425 prop_enum->name[DRM_PROP_NAME_LEN-1] = '\0'; in drm_property_add_enum()
426 prop_enum->value = value; in drm_property_add_enum()
429 list_add_tail(&prop_enum->head, &property->enum_list); in drm_property_add_enum()
444 struct drm_property_enum *prop_enum, *pt; in drm_property_destroy() local
446 list_for_each_entry_safe(prop_enum, pt, &property->enum_list, head) { in drm_property_destroy()
447 list_del(&prop_enum->head); in drm_property_destroy()
448 kfree(prop_enum); in drm_property_destroy()
467 struct drm_property_enum *prop_enum; in drm_mode_getproperty_ioctl() local
498 list_for_each_entry(prop_enum, &property->enum_list, head) { in drm_mode_getproperty_ioctl()
504 &prop_enum->value, sizeof(uint64_t))) in drm_mode_getproperty_ioctl()
508 &prop_enum->name, DRM_PROP_NAME_LEN)) in drm_mode_getproperty_ioctl()