Lines Matching refs:pvt
83 struct sita_pvt *pvt; in sita_init() local
91 pvt = kmalloc(sizeof(*pvt), GFP_KERNEL); in sita_init()
92 if (!tcm || !pvt) in sita_init()
96 memset(pvt, 0, sizeof(*pvt)); in sita_init()
105 tcm->pvt = (void *)pvt; in sita_init()
107 spin_lock_init(&(pvt->lock)); in sita_init()
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()
127 pvt->div_pt.x = attr->x; in sita_init()
128 pvt->div_pt.y = attr->y; in sita_init()
133 pvt->div_pt.x = (tcm->width * 3) / 4; in sita_init()
134 pvt->div_pt.y = (tcm->height * 3) / 4; in sita_init()
137 spin_lock(&(pvt->lock)); in sita_init()
140 spin_unlock(&(pvt->lock)); in sita_init()
145 kfree(pvt); in sita_init()
151 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in sita_deinit() local
158 spin_lock(&(pvt->lock)); in sita_deinit()
160 spin_unlock(&(pvt->lock)); in sita_deinit()
163 kfree(pvt->map[i]); in sita_deinit()
164 kfree(pvt->map); in sita_deinit()
165 kfree(pvt); in sita_deinit()
182 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in sita_reserve_1d() local
184 spin_lock(&(pvt->lock)); in sita_reserve_1d()
194 spin_unlock(&(pvt->lock)); in sita_reserve_1d()
212 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in sita_reserve_2d() local
221 spin_lock(&(pvt->lock)); in sita_reserve_2d()
227 spin_unlock(&(pvt->lock)); in sita_reserve_2d()
238 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in sita_free() local
240 spin_lock(&(pvt->lock)); in sita_free()
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()
249 spin_unlock(&(pvt->lock)); in sita_free()
279 struct tcm_area ***map = ((struct sita_pvt *)tcm->pvt)->map; in scan_r2l_t2b()
353 struct tcm_area ***map = ((struct sita_pvt *)tcm->pvt)->map; in scan_l2r_t2b()
429 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in scan_r2l_b2t_one_dim() local
462 p = pvt->map[x][y]; in scan_r2l_b2t_one_dim()
508 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in scan_areas_and_find_fit() local
512 boundary_x = pvt->div_pt.x - 1; in scan_areas_and_find_fit()
513 boundary_y = pvt->div_pt.y - 1; in scan_areas_and_find_fit()
516 if (w > pvt->div_pt.x) in scan_areas_and_find_fit()
518 if (h > pvt->div_pt.y) in scan_areas_and_find_fit()
533 boundary_x = pvt->div_pt.x; in scan_areas_and_find_fit()
534 boundary_y = pvt->div_pt.y - 1; in scan_areas_and_find_fit()
537 if (w > (tcm->width - pvt->div_pt.x)) in scan_areas_and_find_fit()
539 if (h > pvt->div_pt.y) in scan_areas_and_find_fit()
576 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in fill_area() local
585 pvt->map[x][y] = parent; in fill_area()
673 struct sita_pvt *pvt = (struct sita_pvt *)tcm->pvt; in get_neighbor_stats() local
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()