Home
last modified time | relevance | path

Searched refs:resource_size (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/linux-2.6.39/drivers/tty/ipwireless/
Dmain.c95 resource_size(p_dev->resource[0]), in ipwireless_probe()
112 ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100; in ipwireless_probe()
115 resource_size(p_dev->resource[2])); in ipwireless_probe()
117 resource_size(p_dev->resource[2]), in ipwireless_probe()
135 resource_size(p_dev->resource[3])); in ipwireless_probe()
137 resource_size(p_dev->resource[3]), in ipwireless_probe()
149 resource_size(p_dev->resource[2])); in ipwireless_probe()
154 resource_size(p_dev->resource[0])); in ipwireless_probe()
218 resource_size(link->resource[2])); in config_ipwireless()
223 resource_size(link->resource[3])); in config_ipwireless()
[all …]
/linux-2.6.39/scripts/coccinelle/api/
Dresource_size.cocci2 /// Use resource_size function on resource object
12 // Keywords: resource_size
13 // Version min: 2.6.27 resource_size
40 + resource_size(res)
75 msg="ERROR: Missing resource_size with %s" % (x)
92 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x)
/linux-2.6.39/arch/sparc/kernel/
Dcentral.c73 resource_size(&op->resource[0]), in clock_board_probe()
81 resource_size(&op->resource[1]), in clock_board_probe()
90 resource_size(&op->resource[2]), in clock_board_probe()
128 resource_size(&op->resource[2])); in clock_board_probe()
132 resource_size(&op->resource[1])); in clock_board_probe()
136 resource_size(&op->resource[0])); in clock_board_probe()
174 resource_size(&op->resource[0]), in fhc_probe()
241 of_iounmap(&op->resource[0], p->pregs, resource_size(&op->resource[0])); in fhc_probe()
/linux-2.6.39/drivers/mtd/nand/
Dfsmc_nand.c568 host->resdata = request_mem_region(res->start, resource_size(res), in fsmc_nand_probe()
575 host->data_va = ioremap(res->start, resource_size(res)); in fsmc_nand_probe()
582 resource_size(res), pdev->name); in fsmc_nand_probe()
588 host->addr_va = ioremap(res->start + PLAT_NAND_ALE, resource_size(res)); in fsmc_nand_probe()
595 resource_size(res), pdev->name); in fsmc_nand_probe()
601 host->cmd_va = ioremap(res->start + PLAT_NAND_CLE, resource_size(res)); in fsmc_nand_probe()
613 host->resregs = request_mem_region(res->start, resource_size(res), in fsmc_nand_probe()
620 host->regs_va = ioremap(res->start, resource_size(res)); in fsmc_nand_probe()
643 pid |= (readl(host->regs_va + resource_size(res) - 0x20 + 4 * i) & 255) << (i * 8); in fsmc_nand_probe()
807 resource_size(host->resregs)); in fsmc_nand_probe()
[all …]
/linux-2.6.39/sound/soc/s6000/
Ds6000-i2s.c453 region = request_mem_region(scbmem->start, resource_size(scbmem), in s6000_i2s_probe()
461 mmio = ioremap(scbmem->start, resource_size(scbmem)); in s6000_i2s_probe()
475 region = request_mem_region(sifmem->start, resource_size(sifmem), in s6000_i2s_probe()
490 region = request_mem_region(dma1->start, resource_size(dma1), in s6000_i2s_probe()
500 region = request_mem_region(dma2->start, resource_size(dma2), in s6000_i2s_probe()
556 release_mem_region(dma2->start, resource_size(dma2)); in s6000_i2s_probe()
558 release_mem_region(dma1->start, resource_size(dma1)); in s6000_i2s_probe()
560 release_mem_region(sifmem->start, resource_size(sifmem)); in s6000_i2s_probe()
564 release_mem_region(scbmem->start, resource_size(scbmem)); in s6000_i2s_probe()
584 release_mem_region(region->start, resource_size(region)); in s6000_i2s_remove()
[all …]
/linux-2.6.39/drivers/watchdog/
Dts72xx_wdt.c412 r1 = request_mem_region(r1->start, resource_size(r1), pdev->name); in ts72xx_wdt_probe()
419 wdt->control_reg = ioremap(r1->start, resource_size(r1)); in ts72xx_wdt_probe()
433 r2 = request_mem_region(r2->start, resource_size(r2), pdev->name); in ts72xx_wdt_probe()
440 wdt->feed_reg = ioremap(r2->start, resource_size(r2)); in ts72xx_wdt_probe()
469 release_mem_region(r2->start, resource_size(r2)); in ts72xx_wdt_probe()
473 release_mem_region(r1->start, resource_size(r1)); in ts72xx_wdt_probe()
490 release_mem_region(res->start, resource_size(res)); in ts72xx_wdt_remove()
494 release_mem_region(res->start, resource_size(res)); in ts72xx_wdt_remove()
/linux-2.6.39/drivers/mmc/host/
Dsdhci-pltfm.c73 if (resource_size(iomem) < 0x100) in sdhci_pltfm_probe()
99 if (!request_mem_region(iomem->start, resource_size(iomem), in sdhci_pltfm_probe()
106 host->ioaddr = ioremap(iomem->start, resource_size(iomem)); in sdhci_pltfm_probe()
133 release_mem_region(iomem->start, resource_size(iomem)); in sdhci_pltfm_probe()
158 release_mem_region(iomem->start, resource_size(iomem)); in sdhci_pltfm_remove()
/linux-2.6.39/drivers/gpio/
Dvx855_gpio.c252 if (!request_region(res_gpi->start, resource_size(res_gpi), in vx855gpio_probe()
259 if (!request_region(res_gpo->start, resource_size(res_gpo), in vx855gpio_probe()
278 release_region(res_gpi->start, resource_size(res_gpi)); in vx855gpio_probe()
280 release_region(res_gpi->start, resource_size(res_gpo)); in vx855gpio_probe()
296 release_region(res->start, resource_size(res)); in vx855gpio_remove()
300 release_region(res->start, resource_size(res)); in vx855gpio_remove()
/linux-2.6.39/drivers/ide/
Dide_platform.c84 res_base->start, resource_size(res_base)); in plat_ide_probe()
86 res_alt->start, resource_size(res_alt)); in plat_ide_probe()
89 res_base->start, resource_size(res_base)); in plat_ide_probe()
91 res_alt->start, resource_size(res_alt)); in plat_ide_probe()
/linux-2.6.39/drivers/media/video/davinci/
Dvpss.c389 r1 = request_mem_region(r1->start, resource_size(r1), r1->name); in vpss_probe()
393 oper_cfg.vpss_regs_base0 = ioremap(r1->start, resource_size(r1)); in vpss_probe()
405 r2 = request_mem_region(r2->start, resource_size(r2), r2->name); in vpss_probe()
412 resource_size(r2)); in vpss_probe()
440 release_mem_region(r2->start, resource_size(r2)); in vpss_probe()
444 release_mem_region(r1->start, resource_size(r1)); in vpss_probe()
454 release_mem_region(res->start, resource_size(res)); in vpss_remove()
458 release_mem_region(res->start, resource_size(res)); in vpss_remove()
/linux-2.6.39/drivers/spi/
Ddw_spi_mmio.c51 ioarea = request_mem_region(mem->start, resource_size(mem), in dw_spi_mmio_probe()
59 dws->regs = ioremap_nocache(mem->start, resource_size(mem)); in dw_spi_mmio_probe()
101 release_mem_region(mem->start, resource_size(mem)); in dw_spi_mmio_probe()
125 release_mem_region(mem->start, resource_size(mem)); in dw_spi_mmio_remove()
/linux-2.6.39/drivers/char/hw_random/
Domap-rng.c119 if (!request_mem_region(res->start, resource_size(res), pdev->name)) { in omap_rng_probe()
125 rng_base = ioremap(res->start, resource_size(res)); in omap_rng_probe()
147 release_mem_region(res->start, resource_size(res)); in omap_rng_probe()
171 release_mem_region(res->start, resource_size(res)); in omap_rng_remove()
Dmxc-rnga.c165 mem = request_mem_region(res->start, resource_size(res), pdev->name); in mxc_rnga_probe()
171 rng_base = ioremap(res->start, resource_size(res)); in mxc_rnga_probe()
196 release_mem_region(res->start, resource_size(res)); in mxc_rnga_probe()
216 release_mem_region(res->start, resource_size(res)); in mxc_rnga_remove()
/linux-2.6.39/drivers/w1/masters/
Dmxc_w1.c128 res = request_mem_region(res->start, resource_size(res), in mxc_w1_probe()
135 mdev->regs = ioremap(res->start, resource_size(res)); in mxc_w1_probe()
159 release_mem_region(res->start, resource_size(res)); in mxc_w1_probe()
180 release_mem_region(res->start, resource_size(res)); in mxc_w1_remove()
/linux-2.6.39/drivers/net/can/c_can/
Dc_can_platform.c98 if (!request_mem_region(mem->start, resource_size(mem), in c_can_plat_probe()
105 addr = ioremap(mem->start, resource_size(mem)); in c_can_plat_probe()
160 release_mem_region(mem->start, resource_size(mem)); in c_can_plat_probe()
184 release_mem_region(mem->start, resource_size(mem)); in c_can_plat_remove()
/linux-2.6.39/drivers/input/keyboard/
Dopencores-kbd.c68 res = request_mem_region(res->start, resource_size(res), pdev->name); in opencores_kbd_probe()
75 opencores_kbd->addr = ioremap(res->start, resource_size(res)); in opencores_kbd_probe()
134 release_mem_region(res->start, resource_size(res)); in opencores_kbd_probe()
150 resource_size(opencores_kbd->addr_res)); in opencores_kbd_remove()
/linux-2.6.39/drivers/scsi/
Da4000t.c45 if (!request_mem_region(res->start, resource_size(res), in amiga_a4000t_scsi_probe()
93 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_probe()
107 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_remove()
/linux-2.6.39/arch/arm/plat-pxa/
Dssp.c118 res = request_mem_region(res->start, resource_size(res), in pxa_ssp_probe()
128 ssp->mmio_base = ioremap(res->start, resource_size(res)); in pxa_ssp_probe()
159 release_mem_region(res->start, resource_size(res)); in pxa_ssp_probe()
179 release_mem_region(res->start, resource_size(res)); in pxa_ssp_remove()
/linux-2.6.39/drivers/mfd/
Dhtc-pasic3.c145 if (!request_mem_region(r->start, resource_size(r), "pasic3")) in pasic3_probe()
154 asic->mapping = ioremap(r->start, resource_size(r)); in pasic3_probe()
162 asic->bus_shift = (resource_size(r) - 5) >> 3; in pasic3_probe()
192 release_mem_region(r->start, resource_size(r)); in pasic3_remove()
/linux-2.6.39/drivers/net/can/sja1000/
Dsja1000_platform.c92 if (!request_mem_region(res_mem->start, resource_size(res_mem), in sp_probe()
98 addr = ioremap_nocache(res_mem->start, resource_size(res_mem)); in sp_probe()
154 release_mem_region(res_mem->start, resource_size(res_mem)); in sp_probe()
172 release_mem_region(res->start, resource_size(res)); in sp_remove()
/linux-2.6.39/drivers/input/serio/
Daltera_ps2.c122 resource_size(ps2if->iomem_res), pdev->name)) { in altera_ps2_probe()
128 resource_size(ps2if->iomem_res)); in altera_ps2_probe()
152 resource_size(ps2if->iomem_res)); in altera_ps2_probe()
171 resource_size(ps2if->iomem_res)); in altera_ps2_remove()
/linux-2.6.39/drivers/usb/c67x00/
Dc67x00-drv.c141 if (!request_mem_region(res->start, resource_size(res), in c67x00_drv_probe()
147 c67x00->hpi.base = ioremap(res->start, resource_size(res)); in c67x00_drv_probe()
186 release_mem_region(res->start, resource_size(res)); in c67x00_drv_probe()
212 release_mem_region(res->start, resource_size(res)); in c67x00_drv_remove()
/linux-2.6.39/drivers/hwmon/
Djz4740-hwmon.c132 resource_size(hwmon->mem), pdev->name); in jz4740_hwmon_probe()
140 resource_size(hwmon->mem)); in jz4740_hwmon_probe()
181 release_mem_region(hwmon->mem->start, resource_size(hwmon->mem)); in jz4740_hwmon_probe()
198 release_mem_region(hwmon->mem->start, resource_size(hwmon->mem)); in jz4740_hwmon_remove()
/linux-2.6.39/sound/soc/tegra/
Dtegra_das.c190 region = request_mem_region(res->start, resource_size(res), in tegra_das_probe()
198 das->regs = ioremap(res->start, resource_size(res)); in tegra_das_probe()
212 release_mem_region(res->start, resource_size(res)); in tegra_das_probe()
234 release_mem_region(res->start, resource_size(res)); in tegra_das_remove()
/linux-2.6.39/drivers/video/
Dsh_mipi_dsi.c386 if (!request_mem_region(res->start, resource_size(res), pdev->name)) { in sh_mipi_probe()
392 mipi->base = ioremap(res->start, resource_size(res)); in sh_mipi_probe()
398 if (!request_mem_region(res2->start, resource_size(res2), pdev->name)) { in sh_mipi_probe()
404 mipi->linkbase = ioremap(res2->start, resource_size(res2)); in sh_mipi_probe()
499 release_mem_region(res2->start, resource_size(res2)); in sh_mipi_probe()
503 release_mem_region(res->start, resource_size(res)); in sh_mipi_probe()
550 release_mem_region(res2->start, resource_size(res2)); in sh_mipi_remove()
553 release_mem_region(res->start, resource_size(res)); in sh_mipi_remove()

12345678910>>...19