Lines Matching refs:map
58 static s32 is_area_free(struct tcm_area ***map, u16 x0, u16 y0, u16 w, u16 h);
110 pvt->map = kmalloc(sizeof(*pvt->map) * tcm->width, GFP_KERNEL); in sita_init()
111 if (!pvt->map) in sita_init()
115 pvt->map[i] = in sita_init()
116 kmalloc(sizeof(**pvt->map) * tcm->height, in sita_init()
118 if (pvt->map[i] == NULL) { in sita_init()
120 kfree(pvt->map[i]); in sita_init()
121 kfree(pvt->map); in sita_init()
163 kfree(pvt->map[i]); in sita_deinit()
164 kfree(pvt->map); in sita_deinit()
243 WARN_ON(pvt->map[area->p0.x][area->p0.y] != area || in sita_free()
244 pvt->map[area->p1.x][area->p1.y] != area); in sita_free()
279 struct tcm_area ***map = ((struct sita_pvt *)tcm->pvt)->map; in scan_r2l_t2b() local
307 if (is_area_free(map, x, y, w, h)) { in scan_r2l_t2b()
318 } else if (map[x][y] && map[x][y]->is2d) { in scan_r2l_t2b()
320 x = ALIGN(map[x][y]->p0.x - w + 1, align); in scan_r2l_t2b()
353 struct tcm_area ***map = ((struct sita_pvt *)tcm->pvt)->map; in scan_l2r_t2b() local
383 if (is_area_free(map, x, y, w, h)) { in scan_l2r_t2b()
394 } else if (map[x][y] && map[x][y]->is2d) { in scan_l2r_t2b()
396 x = ALIGN_DOWN(map[x][y]->p1.x, align); in scan_l2r_t2b()
462 p = pvt->map[x][y]; in scan_r2l_b2t_one_dim()
559 static s32 is_area_free(struct tcm_area ***map, u16 x0, u16 y0, u16 w, u16 h) in is_area_free() argument
564 if (map[x][y]) in is_area_free()
585 pvt->map[x][y] = parent; in fill_area()
682 else if (pvt->map[x][area->p0.y - 1]) in get_neighbor_stats()
687 else if (pvt->map[x][area->p1.y + 1]) in get_neighbor_stats()
695 else if (pvt->map[area->p0.x - 1][y]) in get_neighbor_stats()
700 else if (pvt->map[area->p1.x + 1][y]) in get_neighbor_stats()