Lines Matching refs:plane
121 unsigned plane; in tpg_alloc() local
125 for (plane = 0; plane < TPG_MAX_PLANES; plane++) { in tpg_alloc()
126 unsigned pixelsz = plane ? 2 : 4; in tpg_alloc()
128 tpg->lines[pat][plane] = vzalloc(max_w * 2 * pixelsz); in tpg_alloc()
129 if (!tpg->lines[pat][plane]) in tpg_alloc()
131 if (plane == 0) in tpg_alloc()
133 tpg->downsampled_lines[pat][plane] = vzalloc(max_w * 2 * pixelsz); in tpg_alloc()
134 if (!tpg->downsampled_lines[pat][plane]) in tpg_alloc()
138 for (plane = 0; plane < TPG_MAX_PLANES; plane++) { in tpg_alloc()
139 unsigned pixelsz = plane ? 2 : 4; in tpg_alloc()
141 tpg->contrast_line[plane] = vzalloc(max_w * pixelsz); in tpg_alloc()
142 if (!tpg->contrast_line[plane]) in tpg_alloc()
144 tpg->black_line[plane] = vzalloc(max_w * pixelsz); in tpg_alloc()
145 if (!tpg->black_line[plane]) in tpg_alloc()
147 tpg->random_line[plane] = vzalloc(max_w * 2 * pixelsz); in tpg_alloc()
148 if (!tpg->random_line[plane]) in tpg_alloc()
157 unsigned plane; in tpg_free() local
160 for (plane = 0; plane < TPG_MAX_PLANES; plane++) { in tpg_free()
161 vfree(tpg->lines[pat][plane]); in tpg_free()
162 tpg->lines[pat][plane] = NULL; in tpg_free()
163 if (plane == 0) in tpg_free()
165 vfree(tpg->downsampled_lines[pat][plane]); in tpg_free()
166 tpg->downsampled_lines[pat][plane] = NULL; in tpg_free()
168 for (plane = 0; plane < TPG_MAX_PLANES; plane++) { in tpg_free()
169 vfree(tpg->contrast_line[plane]); in tpg_free()
170 vfree(tpg->black_line[plane]); in tpg_free()
171 vfree(tpg->random_line[plane]); in tpg_free()
172 tpg->contrast_line[plane] = NULL; in tpg_free()
173 tpg->black_line[plane] = NULL; in tpg_free()
174 tpg->random_line[plane] = NULL; in tpg_free()