Home
last modified time | relevance | path

Searched refs:res_idx (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/arch/arm/mach-mvebu/
H A Dcpu-reset.c44 static int mvebu_cpu_reset_map(struct device_node *np, int res_idx) in mvebu_cpu_reset_map() argument
48 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map()
74 int res_idx; in mvebu_cpu_reset_init() local
80 res_idx = 0; in mvebu_cpu_reset_init()
90 res_idx = 1; in mvebu_cpu_reset_init()
98 ret = mvebu_cpu_reset_map(np, res_idx); in mvebu_cpu_reset_init()
/kernel/linux/linux-6.6/arch/arm/mach-mvebu/
H A Dcpu-reset.c41 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()
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dpci-dma.c251 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()
280 DBG_RES("pcxl_alloc_range() res_idx %d mask 0x%08lx res_hint: %d\n", 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
314 DBG_RES("pcxl_free_range() res_idx: %d size: %d pages_mapped %d mask 0x%08lx\n", in pcxl_free_range()
315 res_idx, siz in pcxl_free_range()
[all...]
/kernel/linux/linux-6.6/arch/parisc/kernel/
H A Dpci-dma.c251 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()
280 DBG_RES("pcxl_alloc_range() res_idx %d mask 0x%08lx res_hint: %d\n", 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
314 DBG_RES("pcxl_free_range() res_idx: %d size: %d pages_mapped %d mask 0x%08lx\n", in pcxl_free_range()
315 res_idx, siz in pcxl_free_range()
[all...]
/kernel/linux/linux-5.10/drivers/parisc/
H A Dccio-dma.c295 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \
303 res_idx = idx;\
304 ioc->res_hint = res_idx + (size >> 3); \
309 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \
312 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
314 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
343 unsigned int res_idx; in ccio_alloc_range() local
374 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
376 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
379 CCIO_FIND_FREE_MAPPING(ioc, res_idx, in ccio_alloc_range()
434 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; ccio_free_range() local
[all...]
/kernel/linux/linux-6.6/drivers/parisc/
H A Dccio-dma.c284 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \
292 res_idx = idx;\
293 ioc->res_hint = res_idx + (size >> 3); \
298 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \
301 CCIO_SEARCH_LOOP(ioc, res_idx, mask, size); \
303 CCIO_SEARCH_LOOP(ioa, res_idx, mask, size);
333 unsigned int res_idx; in ccio_alloc_range() local
364 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
366 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
369 CCIO_FIND_FREE_MAPPING(ioc, res_idx, in ccio_alloc_range()
424 unsigned int res_idx = PDIR_INDEX(iovp) >> 3; ccio_free_range() local
[all...]
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dsetup.c155 int num_resources = 0, res_idx = 0; in init_resources() local
160 res_idx = num_resources - 1; in init_resources()
186 res = &mem_res[res_idx--]; in init_resources()
199 res_idx++; in init_resources()
210 res = &mem_res[res_idx--]; in init_resources()
229 if (res_idx >= 0) in init_resources()
230 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
/kernel/linux/linux-5.10/drivers/bus/
H A Domap_l3_noc.c248 int ret, i, res_idx; in omap_l3_probe() local
265 for (i = 0, res_idx = 0; i < l3->num_modules; i++) { in omap_l3_probe()
274 res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx); in omap_l3_probe()
280 res_idx++; in omap_l3_probe()
/kernel/linux/linux-6.6/drivers/bus/
H A Domap_l3_noc.c240 int ret, i, res_idx; in omap_l3_probe() local
257 for (i = 0, res_idx = 0; i < l3->num_modules; i++) { in omap_l3_probe()
266 res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx); in omap_l3_probe()
272 res_idx++; in omap_l3_probe()
/kernel/linux/linux-6.6/sound/soc/intel/skylake/
H A Dskl-messages.c447 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_module_format()
498 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_ext_module_format()
628 int res_idx = mconfig->res_idx; in skl_setup_cpr_gateway_cfg() local
638 res = &mconfig->module->resources[mconfig->res_idx]; in skl_setup_cpr_gateway_cfg()
642 res = &mconfig->module->resources[res_idx]; in skl_setup_cpr_gateway_cfg()
855 res = &module->resources[mconfig->res_idx]; in skl_get_module_param_size()
H A Dskl-topology.h306 u8 res_idx; member
392 int res_idx; member
H A Dskl-topology.c242 res = &mcfg->module->resources[mcfg->res_idx]; in skl_tplg_update_buffer_size()
500 mconfig->res_idx = mconfig->mod_cfg[cfg_idx].res_idx; in skl_tplg_init_pipe_modules()
1607 res = &mconfig->module->resources[mconfig->res_idx]; in skl_tplg_update_pipe_params()
1610 mconfig->res_idx = mconfig->mod_cfg[cfg_idx].res_idx; in skl_tplg_update_pipe_params()
2349 int res_idx = mconfig->res_idx; in skl_tplg_get_token() local
2355 * res_idx and fmt_idx are default set to 0. in skl_tplg_get_token()
2358 res = &mconfig->module->resources[res_idx]; in skl_tplg_get_token()
[all...]
H A Dskl-debug.c72 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in module_read()
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
H A Dskl-messages.c449 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_module_format()
561 int res_idx = mconfig->res_idx; in skl_setup_cpr_gateway_cfg() local
571 res = &mconfig->module->resources[mconfig->res_idx]; in skl_setup_cpr_gateway_cfg()
575 res = &mconfig->module->resources[res_idx]; in skl_setup_cpr_gateway_cfg()
H A Dskl-topology.h285 u8 res_idx; member
374 int res_idx; member
H A Dskl-topology.c242 res = &mcfg->module->resources[mcfg->res_idx]; in skl_tplg_update_buffer_size()
494 mconfig->res_idx = mconfig->mod_cfg[cfg_idx].res_idx; in skl_tplg_init_pipe_modules()
1639 res = &mconfig->module->resources[mconfig->res_idx]; in skl_tplg_update_pipe_params()
1642 mconfig->res_idx = mconfig->mod_cfg[cfg_idx].res_idx; in skl_tplg_update_pipe_params()
2373 int res_idx = mconfig->res_idx; in skl_tplg_get_token() local
2379 * res_idx and fmt_idx are default set to 0. in skl_tplg_get_token()
2382 res = &mconfig->module->resources[res_idx]; in skl_tplg_get_token()
[all...]
H A Dskl-debug.c72 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in module_read()
/kernel/linux/linux-5.10/drivers/media/platform/davinci/
H A Dvpif_display.c1253 int res_idx = 0; in vpif_probe() local
1275 while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) { in vpif_probe()
1278 (void *)(&vpif_obj.dev[res_idx]-> in vpif_probe()
1285 res_idx++; in vpif_probe()
/kernel/linux/linux-6.6/drivers/media/platform/ti/davinci/
H A Dvpif_display.c1223 int res_idx = 0; in vpif_probe() local
1248 err = platform_get_irq_optional(pdev, res_idx); in vpif_probe()
1258 (void *)(&vpif_obj.dev[res_idx]->channel_id)); in vpif_probe()
1263 } while (++res_idx); in vpif_probe()
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-mlxbf.c1032 u8 res_idx = 0; in mlxbf_i2c_get_shared_resource() local
1034 for (res_idx = 0; res_idx < MLXBF_I2C_SHARED_RES_MAX; res_idx++) { in mlxbf_i2c_get_shared_resource()
1035 res = chip->shared_res[res_idx]; in mlxbf_i2c_get_shared_resource()
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-mlxbf.c1057 u8 res_idx = 0; in mlxbf_i2c_get_shared_resource() local
1059 for (res_idx = 0; res_idx < MLXBF_I2C_SHARED_RES_MAX; res_idx++) { in mlxbf_i2c_get_shared_resource()
1060 res = chip->shared_res[res_idx]; in mlxbf_i2c_get_shared_resource()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
H A Dcoresight-etm4x.h234 * @res_idx: Resource index selector.
278 u8 res_idx; member
H A Dcoresight-etm4x-sysfs.c238 config->res_idx = 0x0; in reset_store()
1656 val = config->res_idx; in res_idx_show()
1682 config->res_idx = val; in res_idx_store()
1686 static DEVICE_ATTR_RW(res_idx);
1698 idx = config->res_idx; in res_ctrl_show()
1717 idx = config->res_idx; in res_ctrl_store()
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
H A Dcoresight-etm4x-sysfs.c239 config->res_idx = 0x0; in reset_store()
1665 val = config->res_idx; in res_idx_show()
1691 config->res_idx = val; in res_idx_store()
1695 static DEVICE_ATTR_RW(res_idx);
1707 idx = config->res_idx; in res_ctrl_show()
1726 idx = config->res_idx; in res_ctrl_store()
/kernel/linux/linux-5.10/drivers/fpga/
H A Ddfl.c749 int ret, index = 0, res_idx = 0; in build_info_commit_dev() local
815 feature->resource_index = res_idx; in build_info_commit_dev()
816 fdev->resource[res_idx++] = finfo->mmio_res; in build_info_commit_dev()

Completed in 47 milliseconds

12