Lines Matching refs:pt_node

27 	struct partition_node	*pt_node;  member
158 struct partition_node *pt_node) in remove_partition_node() argument
160 pt_node->nshared--; in remove_partition_node()
161 if (pt_node->nshared > 0) in remove_partition_node()
164 list_del(&pt_node->list); in remove_partition_node()
167 bitmap_clear(rgp->resbit, pt_node->start_col, pt_node->ncols); in remove_partition_node()
168 kfree(pt_node); in remove_partition_node()
177 if (node->pt_node) in remove_solver_node()
178 remove_partition_node(rgp, node->pt_node); in remove_solver_node()
187 struct partition_node *pt_node; in get_free_partition() local
200 pt_node = kzalloc(sizeof(*pt_node), GFP_KERNEL); in get_free_partition()
201 if (!pt_node) in get_free_partition()
204 pt_node->nshared = 1; in get_free_partition()
205 pt_node->start_col = col; in get_free_partition()
206 pt_node->ncols = ncols; in get_free_partition()
211 pt_node->exclusive = false; in get_free_partition()
213 list_add_tail(&pt_node->list, &xrs->rgp.pt_node_list); in get_free_partition()
215 bitmap_set(xrs->rgp.resbit, pt_node->start_col, pt_node->ncols); in get_free_partition()
217 snode->pt_node = pt_node; in get_free_partition()
226 struct partition_node *pt_node, *rpt_node = NULL; in allocate_partition() local
234 list_for_each_entry(pt_node, &xrs->rgp.pt_node_list, list) { in allocate_partition()
235 if (pt_node->exclusive) in allocate_partition()
238 if (rpt_node && pt_node->nshared >= rpt_node->nshared) in allocate_partition()
242 if (snode->start_cols[idx] != pt_node->start_col) in allocate_partition()
245 if (req->cdo.ncols != pt_node->ncols) in allocate_partition()
248 rpt_node = pt_node; in allocate_partition()
257 snode->pt_node = rpt_node; in allocate_partition()
295 action->part.start_col = snode->pt_node->start_col; in fill_load_action()
296 action->part.ncols = snode->pt_node->ncols; in fill_load_action()
337 snode->pt_node->start_col, snode->pt_node->ncols); in xrs_allocate_resource()