• Home
  • Raw
  • Download

Lines Matching refs:area

35 			   struct tcm_area *area);
36 static s32 sita_reserve_1d(struct tcm *tcm, u32 slots, struct tcm_area *area);
37 static s32 sita_free(struct tcm *tcm, struct tcm_area *area);
44 struct tcm_area *area);
47 struct tcm_area *field, struct tcm_area *area);
50 struct tcm_area *field, struct tcm_area *area);
53 struct tcm_area *field, struct tcm_area *area);
68 static void get_neighbor_stats(struct tcm *tcm, struct tcm_area *area,
72 struct tcm_area *area, struct tcm_area *parent);
84 struct tcm_area area = {0}; in sita_init() local
138 assign(&area, 0, 0, width - 1, height - 1); in sita_init()
139 fill_area(tcm, &area, NULL); in sita_init()
152 struct tcm_area area = {0}; in sita_deinit() local
155 area.p1.x = tcm->width - 1; in sita_deinit()
156 area.p1.y = tcm->height - 1; in sita_deinit()
159 fill_area(tcm, &area, NULL); in sita_deinit()
178 struct tcm_area *area) in sita_reserve_1d() argument
189 ret = scan_r2l_b2t_one_dim(tcm, num_slots, &field, area); in sita_reserve_1d()
192 fill_area(tcm, area, area); in sita_reserve_1d()
209 struct tcm_area *area) in sita_reserve_2d() argument
222 ret = scan_areas_and_find_fit(tcm, w, h, align, area); in sita_reserve_2d()
225 fill_area(tcm, area, area); in sita_reserve_2d()
236 static s32 sita_free(struct tcm *tcm, struct tcm_area *area) in sita_free() argument
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()
247 fill_area(tcm, area, NULL); in sita_free()
275 struct tcm_area *field, struct tcm_area *area) in scan_r2l_t2b() argument
332 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_r2l_t2b()
349 struct tcm_area *field, struct tcm_area *area) in scan_l2r_t2b() argument
408 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_l2r_t2b()
425 struct tcm_area *field, struct tcm_area *area) in scan_r2l_b2t_one_dim() argument
457 area->p1.x = x; in scan_r2l_b2t_one_dim()
458 area->p1.y = y; in scan_r2l_b2t_one_dim()
486 area->p0.x = x; in scan_r2l_b2t_one_dim()
487 area->p0.y = y; in scan_r2l_b2t_one_dim()
503 struct tcm_area *area) in scan_areas_and_find_fit() argument
522 ret = scan_l2r_t2b(tcm, w, h, align, &field, area); in scan_areas_and_find_fit()
529 ret = scan_l2r_t2b(tcm, w, h, align, &field, area); in scan_areas_and_find_fit()
543 ret = scan_r2l_t2b(tcm, w, h, align, &field, area); in scan_areas_and_find_fit()
551 area); in scan_areas_and_find_fit()
572 static void fill_area(struct tcm *tcm, struct tcm_area *area, in fill_area() argument
580 area->tcm = tcm; in fill_area()
582 tcm_for_each_slice(a, *area, a_) { in fill_area()
655 static void get_nearness_factor(struct tcm_area *field, struct tcm_area *area, in get_nearness_factor() argument
662 nf->x = (s32)(area->p0.x - field->p0.x) * 1000 / in get_nearness_factor()
664 nf->y = (s32)(area->p0.y - field->p0.y) * 1000 / in get_nearness_factor()
669 static void get_neighbor_stats(struct tcm *tcm, struct tcm_area *area, in get_neighbor_stats() argument
679 for (x = area->p0.x; x <= area->p1.x; x++) { in get_neighbor_stats()
680 if (area->p0.y == 0) in get_neighbor_stats()
682 else if (pvt->map[x][area->p0.y - 1]) in get_neighbor_stats()
685 if (area->p1.y == tcm->height - 1) in get_neighbor_stats()
687 else if (pvt->map[x][area->p1.y + 1]) in get_neighbor_stats()
692 for (y = area->p0.y; y <= area->p1.y; ++y) { in get_neighbor_stats()
693 if (area->p0.x == 0) in get_neighbor_stats()
695 else if (pvt->map[area->p0.x - 1][y]) in get_neighbor_stats()
698 if (area->p1.x == tcm->width - 1) in get_neighbor_stats()
700 else if (pvt->map[area->p1.x + 1][y]) in get_neighbor_stats()