Lines Matching refs:pat
114 unsigned pat; in tpg_alloc() local
118 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) { in tpg_alloc()
122 tpg->lines[pat][plane] = in tpg_alloc()
124 if (!tpg->lines[pat][plane]) in tpg_alloc()
128 tpg->downsampled_lines[pat][plane] = in tpg_alloc()
130 if (!tpg->downsampled_lines[pat][plane]) in tpg_alloc()
156 unsigned pat; in tpg_free() local
159 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) in tpg_free()
161 vfree(tpg->lines[pat][plane]); in tpg_free()
162 tpg->lines[pat][plane] = NULL; in tpg_free()
165 vfree(tpg->downsampled_lines[pat][plane]); in tpg_free()
166 tpg->downsampled_lines[pat][plane] = NULL; in tpg_free()
1756 unsigned pat; in tpg_precalculate_line() local
1772 for (pat = 0; pat < tpg_get_pat_lines(tpg); pat++) { in tpg_precalculate_line()
1784 color1 = tpg_get_color(tpg, pat, real_x); in tpg_precalculate_line()
1795 color2 = tpg_get_color(tpg, pat, real_x); in tpg_precalculate_line()
1809 u8 *pos = tpg->lines[pat][p] + tpg_hdiv(tpg, p, x); in tpg_precalculate_line()
1819 for (pat = 0; pat < pat_lines; pat++) { in tpg_precalculate_line()
1820 unsigned next_pat = (pat + 1) % pat_lines; in tpg_precalculate_line()
1824 u8 *pos1 = tpg->lines[pat][p]; in tpg_precalculate_line()
1826 u8 *dest = tpg->downsampled_lines[pat][p]; in tpg_precalculate_line()