Lines Matching refs:carveout

195 	struct rproc_mem_entry *carveout;  in rproc_da_to_va()  local
204 list_for_each_entry(carveout, &rproc->carveouts, node) { in rproc_da_to_va()
205 int offset = da - carveout->da; in rproc_da_to_va()
208 if (!carveout->va) in rproc_da_to_va()
216 if (offset + len > carveout->len) in rproc_da_to_va()
219 ptr = carveout->va + offset; in rproc_da_to_va()
222 *is_iomem = carveout->is_iomem; in rproc_da_to_va()
256 struct rproc_mem_entry *carveout, *mem = NULL; in rproc_find_carveout_by_name() local
265 list_for_each_entry(carveout, &rproc->carveouts, node) { in rproc_find_carveout_by_name()
267 if (!strcmp(carveout->name, _name)) { in rproc_find_carveout_by_name()
268 mem = carveout; in rproc_find_carveout_by_name()
826 struct rproc_mem_entry *carveout; in rproc_handle_carveout() local
847 carveout = rproc_find_carveout_by_name(rproc, rsc->name); in rproc_handle_carveout()
849 if (carveout) { in rproc_handle_carveout()
850 if (carveout->rsc_offset != FW_RSC_ADDR_ANY) { in rproc_handle_carveout()
856 if (rproc_check_carveout_da(rproc, carveout, rsc->da, rsc->len)) in rproc_handle_carveout()
860 carveout->rsc_offset = offset; in rproc_handle_carveout()
861 carveout->flags = rsc->flags; in rproc_handle_carveout()
867 carveout = rproc_mem_entry_init(dev, NULL, 0, rsc->len, rsc->da, in rproc_handle_carveout()
870 if (!carveout) { in rproc_handle_carveout()
875 carveout->flags = rsc->flags; in rproc_handle_carveout()
876 carveout->rsc_offset = offset; in rproc_handle_carveout()
877 rproc_add_carveout(rproc, carveout); in rproc_handle_carveout()