Home
last modified time | relevance | path

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

/linux-4.1.27/arch/arm/mach-mvebu/
Dcpu-reset.c42 static int mvebu_cpu_reset_map(struct device_node *np, int res_idx) in mvebu_cpu_reset_map() argument
46 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map()
72 int res_idx; in mvebu_cpu_reset_init() local
78 res_idx = 0; in mvebu_cpu_reset_init()
88 res_idx = 1; in mvebu_cpu_reset_init()
96 ret = mvebu_cpu_reset_map(np, res_idx); in mvebu_cpu_reset_init()
/linux-4.1.27/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
375 CCIO_FIND_FREE_MAPPING(ioc, res_idx, mask, 8); in ccio_alloc_range()
377 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xff, 8); in ccio_alloc_range()
380 CCIO_FIND_FREE_MAPPING(ioc, res_idx, 0xffff, 16); in ccio_alloc_range()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dpci-dma.c252 int res_idx; in pcxl_alloc_range() local
265 PCXL_FIND_FREE_MAPPING(res_idx, mask, 8); in pcxl_alloc_range()
267 PCXL_FIND_FREE_MAPPING(res_idx, mask, 16); in pcxl_alloc_range()
269 PCXL_FIND_FREE_MAPPING(res_idx, mask, 32); in pcxl_alloc_range()
282 res_idx, mask, pcxl_res_hint); in pcxl_alloc_range()
294 return (pcxl_dma_start + (res_idx << (PAGE_SHIFT + 3))); in pcxl_alloc_range()
309 unsigned int res_idx = (vaddr - pcxl_dma_start) >> (PAGE_SHIFT + 3); in pcxl_free_range() local
316 res_idx, size, pages_mapped, mask); in pcxl_free_range()
321 PCXL_FREE_MAPPINGS(res_idx, mask, 8); in pcxl_free_range()
323 PCXL_FREE_MAPPINGS(res_idx, mask, 16); in pcxl_free_range()
[all …]
/linux-4.1.27/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-4.1.27/drivers/gpu/drm/bridge/
Ddw_hdmi.c756 unsigned res_idx, i; in hdmi_phy_configure() local
769 res_idx = DW_HDMI_RES_8; in hdmi_phy_configure()
772 res_idx = DW_HDMI_RES_10; in hdmi_phy_configure()
775 res_idx = DW_HDMI_RES_12; in hdmi_phy_configure()
812 hdmi_phy_i2c_write(hdmi, mpll_config[i].res[res_idx].cpce, 0x06); in hdmi_phy_configure()
813 hdmi_phy_i2c_write(hdmi, mpll_config[i].res[res_idx].gmp, 0x15); in hdmi_phy_configure()
827 hdmi_phy_i2c_write(hdmi, curr_ctrl[i].curr[res_idx], 0x10); in hdmi_phy_configure()
/linux-4.1.27/drivers/media/platform/davinci/
Dvpif_display.c1250 int res_idx = 0; in vpif_probe() local
1267 while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) { in vpif_probe()
1270 (void *)(&vpif_obj.dev[res_idx]-> in vpif_probe()
1277 res_idx++; in vpif_probe()
Dvpif_capture.c1439 int res_idx = 0; in vpif_probe() local
1456 while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) { in vpif_probe()
1459 (void *)(&vpif_obj.dev[res_idx]-> in vpif_probe()
1465 res_idx++; in vpif_probe()