Searched refs:res_idx (Results 1 – 3 of 3) sorted by relevance
/arch/arm/mach-mvebu/ |
D | cpu-reset.c | 41 static int mvebu_cpu_reset_map(struct device_node *np, int res_idx) in mvebu_cpu_reset_map() argument 45 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map() 71 int res_idx; in mvebu_cpu_reset_init() local 77 res_idx = 0; in mvebu_cpu_reset_init() 87 res_idx = 1; in mvebu_cpu_reset_init() 95 ret = mvebu_cpu_reset_map(np, res_idx); in mvebu_cpu_reset_init()
|
/arch/parisc/kernel/ |
D | pci-dma.c | 251 int res_idx; in pcxl_alloc_range() local 264 PCXL_FIND_FREE_MAPPING(res_idx, mask, 8); in pcxl_alloc_range() 266 PCXL_FIND_FREE_MAPPING(res_idx, mask, 16); in pcxl_alloc_range() 268 PCXL_FIND_FREE_MAPPING(res_idx, mask, 32); in pcxl_alloc_range() 281 res_idx, mask, pcxl_res_hint); in pcxl_alloc_range() 293 return (pcxl_dma_start + (res_idx << (PAGE_SHIFT + 3))); in pcxl_alloc_range() 308 unsigned int res_idx = (vaddr - pcxl_dma_start) >> (PAGE_SHIFT + 3); in pcxl_free_range() local 315 res_idx, size, pages_mapped, mask); in pcxl_free_range() 320 PCXL_FREE_MAPPINGS(res_idx, mask, 8); in pcxl_free_range() 322 PCXL_FREE_MAPPINGS(res_idx, mask, 16); in pcxl_free_range() [all …]
|
/arch/riscv/kernel/ |
D | setup.c | 160 int num_resources = 0, res_idx = 0; in init_resources() local 165 res_idx = num_resources - 1; in init_resources() 199 res = &mem_res[res_idx--]; in init_resources() 212 res_idx++; in init_resources() 223 res = &mem_res[res_idx--]; in init_resources() 242 if (res_idx >= 0) in init_resources() 243 memblock_free(__pa(mem_res), (res_idx + 1) * sizeof(*mem_res)); in init_resources()
|