/openbmc/linux/arch/arm/mach-mvebu/ |
H A 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()
|
/openbmc/linux/arch/parisc/kernel/ |
H A 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 …]
|
/openbmc/linux/drivers/parisc/ |
H A D | ccio-dma.c | 284 #define CCIO_SEARCH_LOOP(ioc, res_idx, mask, size) \ argument 292 res_idx = idx;\ 293 ioc->res_hint = res_idx + (size >> 3); \ 298 #define CCIO_FIND_FREE_MAPPING(ioa, res_idx, mask, size) \ argument 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, 0xffff, 16); in ccio_alloc_range() [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | setup.c | 148 int num_resources = 0, res_idx = 0; in init_resources() local 153 res_idx = num_resources - 1; in init_resources() 192 res = &mem_res[res_idx--]; in init_resources() 205 res_idx++; in init_resources() 216 res = &mem_res[res_idx--]; in init_resources() 235 if (res_idx >= 0) in init_resources() 236 memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res)); in init_resources()
|
/openbmc/linux/drivers/bus/ |
H A D | omap_l3_noc.c | 240 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()
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-messages.c | 447 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 D | skl-topology.h | 306 u8 res_idx; member 392 int res_idx; member
|
H A D | skl-topology.c | 242 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 2358 res = &mconfig->module->resources[res_idx]; in skl_tplg_get_token() 2498 mconfig->mod_cfg[conf_idx].res_idx = tkn_elem->value; in skl_tplg_get_token()
|
H A D | skl-debug.c | 72 struct skl_module_res *res = &module->resources[mconfig->res_idx]; in module_read()
|
/openbmc/linux/drivers/media/platform/ti/davinci/ |
H A D | vpif_display.c | 1223 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()
|
H A D | vpif_capture.c | 1609 int res_idx = 0; in vpif_probe() local 1629 err = platform_get_irq_optional(pdev, res_idx); in vpif_probe() 1639 (void *)(&vpif_obj.dev[res_idx]->channel_id)); in vpif_probe() 1642 } while (++res_idx); in vpif_probe()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-mlxbf.c | 1057 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()
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-etm4x-sysfs.c | 239 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()
|
H A D | coresight-etm4x.h | 842 u8 res_idx; member
|
/openbmc/linux/Documentation/trace/coresight/ |
H A D | coresight-etm4x-reference.rst | 479 :File: ``res_idx`` (rw) 486 ``echo idx > res_idx`` 497 :Depends: ``res_idx``
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl.c | 768 int ret, index = 0, res_idx = 0; in build_info_commit_dev() local 845 feature->resource_index = res_idx; in build_info_commit_dev() 846 fdev->resource[res_idx++] = finfo->mmio_res; in build_info_commit_dev()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_main.c | 47 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()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-coresight-devices-etm4x | 234 What: /sys/bus/coresight/devices/etm<N>/res_idx
|