Home
last modified time | relevance | path

Searched refs:prop_enum (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/gpu/drm/
Ddrm_property.c392 struct drm_property_enum *prop_enum; in drm_property_add_enum() local
410 list_for_each_entry(prop_enum, &property->enum_list, head) { in drm_property_add_enum()
411 if (WARN_ON(prop_enum->value == value)) in drm_property_add_enum()
419 prop_enum = kzalloc(sizeof(struct drm_property_enum), GFP_KERNEL); in drm_property_add_enum()
420 if (!prop_enum) in drm_property_add_enum()
423 strscpy_pad(prop_enum->name, name, DRM_PROP_NAME_LEN); in drm_property_add_enum()
424 prop_enum->value = value; in drm_property_add_enum()
427 list_add_tail(&prop_enum->head, &property->enum_list); in drm_property_add_enum()
442 struct drm_property_enum *prop_enum, *pt; in drm_property_destroy() local
444 list_for_each_entry_safe(prop_enum, pt, &property->enum_list, head) { in drm_property_destroy()
[all …]