Home
last modified time | relevance | path

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

12345678910>>...35

/linux/drivers/tty/ipwireless/
A Dmain.c96 resource_size(p_dev->resource[0]), in ipwireless_probe()
116 resource_size(p_dev->resource[2])); in ipwireless_probe()
122 resource_size(p_dev->resource[2]), in ipwireless_probe()
140 resource_size(p_dev->resource[3])); in ipwireless_probe()
146 resource_size(p_dev->resource[3]), in ipwireless_probe()
158 resource_size(p_dev->resource[2])); in ipwireless_probe()
163 resource_size(p_dev->resource[0])); in ipwireless_probe()
227 resource_size(link->resource[2])); in config_ipwireless()
232 resource_size(link->resource[3])); in config_ipwireless()
245 resource_size(ipw->link->resource[2])); in release_ipwireless()
[all …]
/linux/arch/sparc/kernel/
A Dcentral.c75 resource_size(&op->resource[0]), in clock_board_probe()
83 resource_size(&op->resource[1]), in clock_board_probe()
92 resource_size(&op->resource[2]), in clock_board_probe()
130 resource_size(&op->resource[2])); in clock_board_probe()
134 resource_size(&op->resource[1])); in clock_board_probe()
138 resource_size(&op->resource[0])); in clock_board_probe()
175 resource_size(&op->resource[0]), in fhc_probe()
242 of_iounmap(&op->resource[0], p->pregs, resource_size(&op->resource[0])); in fhc_probe()
A Dioport.c219 srmmu_mapiorange(bus, pa, res->start, resource_size(res)); in _sparc_ioremap()
231 plen = resource_size(res); in _sparc_free_io()
273 if (resource_size(res) != size) { in sparc_dma_free_resource()
275 __func__, (long)resource_size(res), size); in sparc_dma_free_resource()
/linux/scripts/coccinelle/api/
A Dresource_size.cocci3 /// Use resource_size function on resource object
13 // Keywords: resource_size
14 // Version min: 2.6.27 resource_size
41 + resource_size(res)
76 msg="ERROR: Missing resource_size with %s" % (x)
93 msg="WARNING: Suspicious code. resource_size is maybe missing with %s" % (x)
/linux/drivers/mfd/
A Dmcp-sa11x0.c169 if (!request_mem_region(mem0->start, resource_size(mem0), in mcp_sa11x0_probe()
175 if (!request_mem_region(mem1->start, resource_size(mem1), in mcp_sa11x0_probe()
195 m->base0 = ioremap(mem0->start, resource_size(mem0)); in mcp_sa11x0_probe()
196 m->base1 = ioremap(mem1->start, resource_size(mem1)); in mcp_sa11x0_probe()
228 release_mem_region(mem1->start, resource_size(mem1)); in mcp_sa11x0_probe()
230 release_mem_region(mem0->start, resource_size(mem0)); in mcp_sa11x0_probe()
252 release_mem_region(mem1->start, resource_size(mem1)); in mcp_sa11x0_remove()
253 release_mem_region(mem0->start, resource_size(mem0)); in mcp_sa11x0_remove()
A Dhtc-pasic3.c144 if (!request_mem_region(r->start, resource_size(r), "pasic3")) in pasic3_probe()
153 asic->mapping = ioremap(r->start, resource_size(r)); in pasic3_probe()
160 asic->bus_shift = (resource_size(r) - 5) >> 3; in pasic3_probe()
193 release_mem_region(r->start, resource_size(r)); in pasic3_remove()
A Daltera-sysmgr.c141 sysmgr_config.max_register = resource_size(res) - in sysmgr_probe()
152 base = devm_ioremap(dev, res->start, resource_size(res)); in sysmgr_probe()
156 sysmgr_config.max_register = resource_size(res) - 4; in sysmgr_probe()
/linux/arch/mips/lantiq/falcon/
A Dsysctrl.c209 if ((request_mem_region(res_status.start, resource_size(&res_status), in ltq_soc_init()
211 (request_mem_region(res_ebu.start, resource_size(&res_ebu), in ltq_soc_init()
214 resource_size(&res_sys[0]), in ltq_soc_init()
217 resource_size(&res_sys[1]), in ltq_soc_init()
220 resource_size(&res_sys[2]), in ltq_soc_init()
225 resource_size(&res_status)); in ltq_soc_init()
227 resource_size(&res_ebu)); in ltq_soc_init()
234 resource_size(&res_sys[i])); in ltq_soc_init()
/linux/arch/arm/mach-mvebu/
A Dcpu-reset.c53 if (!request_mem_region(res.start, resource_size(&res), in mvebu_cpu_reset_map()
59 cpu_reset_base = ioremap(res.start, resource_size(&res)); in mvebu_cpu_reset_map()
62 release_mem_region(res.start, resource_size(&res)); in mvebu_cpu_reset_map()
66 cpu_reset_size = resource_size(&res); in mvebu_cpu_reset_map()
A Dpm.c252 if (!request_mem_region(res.start, resource_size(&res), in mvebu_pm_suspend_init()
258 sdram_ctrl = ioremap(res.start, resource_size(&res)); in mvebu_pm_suspend_init()
260 release_mem_region(res.start, resource_size(&res)); in mvebu_pm_suspend_init()
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_stolen.c110 if (resource_size(&stolen[0]) > resource_size(&stolen[1])) in i915_adjust_stolen()
140 resource_size(dsm), in i915_adjust_stolen()
153 resource_size(dsm) - 2, in i915_adjust_stolen()
409 if (resource_size(&mem->region) == 0) in i915_gem_init_stolen()
497 (u64)resource_size(&i915->dsm) >> 10, in i915_gem_init_stolen()
498 ((u64)resource_size(&i915->dsm) - reserved_total) >> 10); in i915_gem_init_stolen()
501 resource_size(&i915->dsm) - reserved_total; in i915_gem_init_stolen()
554 GEM_BUG_ON(range_overflows(offset, size, resource_size(&i915->dsm))); in i915_pages_create_for_stolen()
738 if (GEM_WARN_ON(resource_size(&mem->region) == 0)) in init_stolen_lmem()
743 resource_size(&mem->region))) in init_stolen_lmem()
[all …]
/linux/drivers/usb/host/
A Dohci-sm501.c107 if (!request_mem_region(mem->start, resource_size(mem), pdev->name)) { in ohci_hcd_sm501_drv_probe()
128 hcd->rsrc_len = resource_size(res); in ohci_hcd_sm501_drv_probe()
162 resource_size(mem)); in ohci_hcd_sm501_drv_probe()
183 release_mem_region(mem->start, resource_size(mem)); in ohci_hcd_sm501_drv_probe()
199 release_mem_region(mem->start, resource_size(mem)); in ohci_hcd_sm501_drv_remove()
/linux/arch/arm/mach-shmobile/
A Dpm-rcar-gen2.c84 resource_size(&res) < shmobile_boot_size) { in rcar_gen2_pm_init()
89 p = ioremap(res.start, resource_size(&res)); in rcar_gen2_pm_init()
96 if (resource_size(&res) >= shmobile_boot_size_gen2) { in rcar_gen2_pm_init()
/linux/drivers/pci/hotplug/
A Dshpchp_sysfs.c42 (unsigned long long)resource_size(res)); in show_ctrl()
52 (unsigned long long)resource_size(res)); in show_ctrl()
61 (unsigned long long)resource_size(res)); in show_ctrl()
/linux/drivers/usb/c67x00/
A Dc67x00-drv.c128 if (!request_mem_region(res->start, resource_size(res), in c67x00_drv_probe()
134 c67x00->hpi.base = ioremap(res->start, resource_size(res)); in c67x00_drv_probe()
173 release_mem_region(res->start, resource_size(res)); in c67x00_drv_probe()
199 release_mem_region(res->start, resource_size(res)); in c67x00_drv_remove()
/linux/drivers/remoteproc/
A Dqcom_pil_info.c50 base = ioremap(imem.start, resource_size(&imem)); in qcom_pil_info_init()
56 memset_io(base, 0, resource_size(&imem)); in qcom_pil_info_init()
59 _reloc.num_entries = (u32)resource_size(&imem) / PIL_RELOC_ENTRY_SIZE; in qcom_pil_info_init()
/linux/drivers/scsi/
A Da4000t.c46 if (!request_mem_region(res->start, resource_size(res), in amiga_a4000t_scsi_probe()
94 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_probe()
108 release_mem_region(res->start, resource_size(res)); in amiga_a4000t_scsi_remove()
/linux/drivers/irqchip/
A Dirq-ompic.c165 if (resource_size(&res) < (num_possible_cpus() * OMPIC_CPUBYTES)) { in ompic_of_init()
167 resource_size(&res), in ompic_of_init()
173 ompic_base = ioremap(res.start, resource_size(&res)); in ompic_of_init()
A Dirq-orion.c82 if (!request_mem_region(r.start, resource_size(&r), np->name)) in orion_irq_init()
86 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init()
170 if (!request_mem_region(r.start, resource_size(&r), np->name)) { in orion_bridge_irq_init()
183 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_bridge_irq_init()
A Dirq-tb10x.c112 if (!request_mem_region(mem.start, resource_size(&mem), in of_tb10x_init_irq()
118 reg_base = ioremap(mem.start, resource_size(&mem)); in of_tb10x_init_irq()
182 release_mem_region(mem.start, resource_size(&mem)); in of_tb10x_init_irq()
/linux/drivers/ata/
A Dpata_platform.c155 resource_size(io_res)); in __pata_platform_probe()
157 resource_size(ctl_res)); in __pata_platform_probe()
160 resource_size(io_res)); in __pata_platform_probe()
162 resource_size(ctl_res)); in __pata_platform_probe()
/linux/drivers/pci/
A Dsetup-bus.c245 if (!resource_size(res)) { in reassign_resources_sorted()
285 if (resource_size(res) && in assign_requested_resources_sorted()
906 r_size = resource_size(r); in pbus_size_io()
924 resource_size(b_res), min_align); in pbus_size_io()
927 resource_size(b_res), min_align); in pbus_size_io()
1028 r_size = resource_size(r); in pbus_size_mem()
1080 resource_size(b_res), add_align); in pbus_size_mem()
1569 r->end = resource_size(r) - 1; in pci_bridge_release_resources()
1926 resource_size(&mmio_pref)); in pci_bus_distribute_available_resources()
1976 used_size = align + resource_size(res); in pci_bus_distribute_available_resources()
[all …]
/linux/arch/sh/kernel/
A Dio_trapped.c57 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io()
84 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io()
126 len = resource_size(res); in match_trapped_io_handler()
175 len = roundup(resource_size(res), PAGE_SIZE); in lookup_address()
/linux/drivers/net/ethernet/amd/
A Dau1000_eth.c1096 if (!request_mem_region(base->start, resource_size(base), in au1000_probe()
1103 if (!request_mem_region(macen->start, resource_size(macen), in au1000_probe()
1145 ioremap(base->start, resource_size(base)); in au1000_probe()
1154 resource_size(macen)); in au1000_probe()
1162 aup->macdma = ioremap(macdma->start, resource_size(macdma)); in au1000_probe()
1317 release_mem_region(macdma->start, resource_size(macdma)); in au1000_probe()
1319 release_mem_region(macen->start, resource_size(macen)); in au1000_probe()
1321 release_mem_region(base->start, resource_size(base)); in au1000_probe()
1353 release_mem_region(base->start, resource_size(base)); in au1000_remove()
1356 release_mem_region(base->start, resource_size(base)); in au1000_remove()
[all …]
/linux/arch/arm/mach-pxa/
A Dpxa3xx-ulpi.c304 r = request_mem_region(r->start, resource_size(r), pdev->name); in pxa3xx_u2d_probe()
311 u2d->mmio_base = ioremap(r->start, resource_size(r)); in pxa3xx_u2d_probe()
341 release_mem_region(r->start, resource_size(r)); in pxa3xx_u2d_probe()
365 release_mem_region(r->start, resource_size(r)); in pxa3xx_u2d_remove()

Completed in 67 milliseconds

12345678910>>...35