Lines Matching defs:phase
2166 * the first phase tries to fit the program into the total available
2167 * VPM memory. If we succeed at that, then the second phase attempts
2173 uint32_t phase = 0;
2175 vpm_cfg[phase].As = 1;
2176 vpm_cfg[phase].Gs = 1;
2177 vpm_cfg[phase].Gd = gs->vpm_output_size;
2178 vpm_cfg[phase].gs_width = gs->simd_width;
2190 vpm_cfg[phase].Vc = 2;
2204 vpm_cfg[phase].Gv = 3;
2210 vpm_cfg[phase].Ve = vpm_cfg[phase].Gv;
2213 A * vpm_cfg[phase].As * Ad +
2214 (vpm_cfg[phase].Vc + vpm_cfg[phase].Ve) * Vd +
2215 vpm_cfg[phase].Gs * vpm_cfg[phase].Gd;
2222 final_vpm_cfg = &vpm_cfg[phase];
2231 if (phase == 0 && vpm_sectors <= vpm_size) {
2233 phase = 1;
2237 if (vpm_cfg[phase].Gv > 0) {
2238 vpm_cfg[phase].Gv--;
2243 if (vpm_cfg[phase].gs_width > 1) {
2245 vpm_cfg[phase].gs_width >>= 1;
2246 vpm_cfg[phase].Gd = align(vpm_cfg[phase].Gd, 2) / 2;
2247 } while (vpm_cfg[phase].gs_width == 2);
2250 vpm_cfg[phase].Gv = 3;
2255 * are at phase 1 we have at least a valid configuration, so we
2258 if (phase == 1)