Lines Matching defs:num

958 static void gather_layer_statistics(omap4_hwc_device_t *hwc_dev, struct counts *num, hwc_layer_list_t *list)
970 num->possible_overlay_layers++;
974 num->scaled_layers++;
977 num->BGR++;
979 num->RGB++;
981 num->NV12++;
984 num->dockable++;
987 num->protected++;
989 num->mem += mem1d(handle);
994 static void decide_supported_cloning(omap4_hwc_device_t *hwc_dev, struct counts *num)
998 num->max_hw_overlays = MAX_HW_OVERLAYS;
1005 if (ext->dock.enabled && !(ext->mirror.enabled && !(num->dockable || ext->force_dock))) {
1009 hwc_dev->ext_ovls = (num->dockable || ext->force_dock) ? 1 : 0;
1010 num->max_hw_overlays -= max(hwc_dev->ext_ovls, hwc_dev->last_ext_ovls);
1024 num->max_hw_overlays >>= 1;
1026 hwc_dev->ext_ovls = MAX_HW_OVERLAYS - num->max_hw_overlays;
1029 num->max_hw_overlays -= hwc_dev->last_ext_ovls;
1045 num->max_hw_overlays = hwc_dev->ext_ovls;
1047 num->max_scaling_overlays = num->max_hw_overlays - nonscaling_ovls;
1050 static int can_dss_render_all(omap4_hwc_device_t *hwc_dev, struct counts *num)
1058 num->possible_overlay_layers &&
1059 num->possible_overlay_layers <= num->max_hw_overlays &&
1060 num->possible_overlay_layers == num->composited_layers &&
1061 num->scaled_layers <= num->max_scaling_overlays &&
1062 num->NV12 <= num->max_scaling_overlays &&
1064 num->mem <= MAX_TILER_SLOT &&
1066 (!tform || num->NV12 == num->possible_overlay_layers) &&
1068 (num->BGR == 0 || (num->RGB == 0 && !on_tv) || !hwc_dev->flags_rgb_order);
1183 struct counts num = { .composited_layers = list ? list->numHwLayers : 0 };
1190 gather_layer_statistics(hwc_dev, &num, list);
1192 decide_supported_cloning(hwc_dev, &num);
1195 if (hwc_dev->force_sgx && num.composited_layers <= 1)
1199 if (can_dss_render_all(hwc_dev, &num)) {
1202 hwc_dev->swap_rb = num.BGR != 0;
1223 if (dsscomp->num_ovls < num.max_hw_overlays &&
1296 if (num.composited_layers)
1379 num.composited_layers,
1380 num.possible_overlay_layers, num.scaled_layers,
1381 num.RGB, num.BGR, num.NV12,
1386 hwc_dev->ext_ovls, num.max_hw_overlays, hwc_dev->last_ext_ovls, hwc_dev->last_int_ovls);