Lines Matching refs:width
80 struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) in sita_init() argument
87 if (width == 0 || height == 0) in sita_init()
100 tcm->width = width; in sita_init()
110 pvt->map = kmalloc(sizeof(*pvt->map) * tcm->width, GFP_KERNEL); in sita_init()
114 for (i = 0; i < tcm->width; i++) { in sita_init()
126 if (attr && attr->x <= tcm->width && attr->y <= tcm->height) { in sita_init()
133 pvt->div_pt.x = (tcm->width * 3) / 4; in sita_init()
138 assign(&area, 0, 0, width - 1, height - 1); in sita_init()
155 area.p1.x = tcm->width - 1; in sita_deinit()
187 assign(&field, tcm->width - 1, tcm->height - 1, 0, 0); in sita_reserve_1d()
440 if (tcm->width != field->p0.x - field->p1.x + 1) in scan_r2l_b2t_one_dim()
444 if (num_slots > tcm->width * LEN(field->p0.y, field->p1.y)) in scan_r2l_b2t_one_dim()
481 x = (x ? : tcm->width) - 1; in scan_r2l_b2t_one_dim()
517 boundary_x = tcm->width - 1; in scan_areas_and_find_fit()
525 if (ret != 0 && (boundary_x != tcm->width - 1 || in scan_areas_and_find_fit()
528 assign(&field, 0, 0, tcm->width - 1, tcm->height - 1); in scan_areas_and_find_fit()
537 if (w > (tcm->width - pvt->div_pt.x)) in scan_areas_and_find_fit()
542 assign(&field, tcm->width - 1, 0, boundary_x, boundary_y); in scan_areas_and_find_fit()
549 assign(&field, tcm->width - 1, 0, 0, tcm->height - 1); in scan_areas_and_find_fit()
698 if (area->p1.x == tcm->width - 1) in get_neighbor_stats()