Home
last modified time | relevance | path

Searched refs:res_idx (Results 1 – 18 of 18) sorted by relevance

/linux-5.19.10/arch/arm/mach-mvebu/
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()
/linux-5.19.10/arch/parisc/kernel/
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()
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 …]
/linux-5.19.10/drivers/parisc/
Dccio-dma.c295 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument
303 res_idx = idx;\
304 ioc->res_hint = res_idx + (size >> 3); \
309 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument
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, 0xffff, 16); in ccio_alloc_range()
[all …]
/linux-5.19.10/arch/riscv/kernel/
Dsetup.c151 int num_resources = 0, res_idx = 0; in init_resources() local
156 res_idx = num_resources - 1; in init_resources()
190 res = &mem_res[res_idx--]; in init_resources()
203 res_idx++; in init_resources()
214 res = &mem_res[res_idx--]; in init_resources()
233 if (res_idx >= 0) in init_resources()
234 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
/linux-5.19.10/drivers/bus/
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()
/linux-5.19.10/sound/soc/intel/skylake/
Dskl-messages.c449 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_module_format()
500 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in skl_set_base_ext_module_format()
630 int res_idx = mconfig->res_idx; in skl_setup_cpr_gateway_cfg() local
640 res = &mconfig->module->resources[mconfig->res_idx]; in skl_setup_cpr_gateway_cfg()
644 res = &mconfig->module->resources[res_idx]; in skl_setup_cpr_gateway_cfg()
857 res = &module->resources[mconfig->res_idx]; in skl_get_module_param_size()
Dskl-topology.h303 u8 res_idx; member
390 int res_idx; member
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()
1645 res = &mconfig->module->resources[mconfig->res_idx]; in skl_tplg_update_pipe_params()
1648 mconfig->res_idx = mconfig->mod_cfg[cfg_idx].res_idx; in skl_tplg_update_pipe_params()
2385 int res_idx = mconfig->res_idx; in skl_tplg_get_token() local
2394 res = &mconfig->module->resources[res_idx]; in skl_tplg_get_token()
2534 mconfig->mod_cfg[conf_idx].res_idx = tkn_elem->value; in skl_tplg_get_token()
Dskl-debug.c72 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in module_read()
/linux-5.19.10/drivers/media/platform/ti/davinci/
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()
Dvpif_capture.c1609 int res_idx = 0; in vpif_probe() local
1635 err = platform_get_irq_optional(pdev, res_idx); in vpif_probe()
1645 (void *)(&vpif_obj.dev[res_idx]->channel_id)); in vpif_probe()
1648 } while (++res_idx); in vpif_probe()
/linux-5.19.10/drivers/i2c/busses/
Di2c-mlxbf.c996 u8 res_idx = 0; in mlxbf_i2c_get_shared_resource() local
998 for (res_idx = 0; res_idx < MLXBF_I2C_SHARED_RES_MAX; res_idx++) { in mlxbf_i2c_get_shared_resource()
999 res = chip->shared_res[res_idx]; in mlxbf_i2c_get_shared_resource()
/linux-5.19.10/Documentation/trace/coresight/
Dcoresight-etm4x-reference.rst465 :File: ``res_idx`` (rw)
472 ``echo idx > res_idx``
483 :Depends: ``res_idx``
/linux-5.19.10/drivers/hwtracing/coresight/
Dcoresight-etm4x-sysfs.c239 config->res_idx = 0x0; in reset_store()
1664 val = config->res_idx; in res_idx_show()
1690 config->res_idx = val; in res_idx_store()
1694 static DEVICE_ATTR_RW(res_idx);
1706 idx = config->res_idx; in res_ctrl_show()
1725 idx = config->res_idx; in res_ctrl_store()
Dcoresight-etm4x.h872 u8 res_idx; member
/linux-5.19.10/drivers/fpga/
Ddfl.c749 int ret, index = 0, res_idx = 0; in build_info_commit_dev() local
816 feature->resource_index = res_idx; in build_info_commit_dev()
817 fdev->resource[res_idx++] = finfo->mmio_res; in build_info_commit_dev()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c47 u32 res_idx = 0; in hns_dsaf_get_cfg() local
107 res_idx++); in hns_dsaf_get_cfg()
119 res_idx++); in hns_dsaf_get_cfg()
136 res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx++); in hns_dsaf_get_cfg()
152 res_idx); in hns_dsaf_get_cfg()
/linux-5.19.10/Documentation/ABI/testing/
Dsysfs-bus-coresight-devices-etm4x234 What: /sys/bus/coresight/devices/etm<N>/res_idx