Lines Matching refs:kms_items
522 struct drv_array *kms_items; in drv_query_kms() local
531 kms_items = drv_array_init(sizeof(struct kms_item)); in drv_query_kms()
532 if (!kms_items) in drv_query_kms()
583 for (k = 0; k < drv_array_size(kms_items); k++) { in drv_query_kms()
584 struct kms_item *item = drv_array_at_idx(kms_items, k); in drv_query_kms()
598 drv_array_append(kms_items, &item); in drv_query_kms()
608 if (kms_items && !drv_array_size(kms_items)) { in drv_query_kms()
609 drv_array_destroy(kms_items); in drv_query_kms()
613 return kms_items; in drv_query_kms()
621 struct drv_array *kms_items; in drv_modify_linear_combinations() local
635 kms_items = drv_query_kms(drv); in drv_modify_linear_combinations()
636 if (!kms_items) in drv_modify_linear_combinations()
639 for (i = 0; i < drv_array_size(kms_items); i++) { in drv_modify_linear_combinations()
640 item = (struct kms_item *)drv_array_at_idx(kms_items, i); in drv_modify_linear_combinations()
648 drv_array_destroy(kms_items); in drv_modify_linear_combinations()