Home
last modified time | relevance | path

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

12345678910>>...30

/drivers/tty/ipwireless/
Dmain.c96 resource_size(p_dev->resource[0]), in ipwireless_probe()
113 ipw->is_v2_card = resource_size(p_dev->resource[2]) == 0x100; 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()
[all …]
/drivers/mfd/
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()
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()
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()
/drivers/usb/host/
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()
/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c119 if (resource_size(&stolen[0]) > resource_size(&stolen[1])) in i915_adjust_stolen()
149 resource_size(dsm), in i915_adjust_stolen()
162 resource_size(dsm) - 2, in i915_adjust_stolen()
418 if (resource_size(&mem->region) == 0) in i915_gem_init_stolen()
483 mem->io_size = min(mem->io_size, resource_size(&mem->region)); in i915_gem_init_stolen()
490 resource_size(&i915->dsm) - reserved_total; in i915_gem_init_stolen()
494 (u64)resource_size(&i915->dsm) >> 10, in i915_gem_init_stolen()
551 GEM_BUG_ON(range_overflows(offset, size, resource_size(&i915->dsm))); in i915_pages_create_for_stolen()
759 if (GEM_WARN_ON(resource_size(&mem->region) == 0)) in init_stolen_lmem()
875 resource_size(&intel_graphics_stolen_res), in i915_gem_stolen_smem_setup()
/drivers/usb/c67x00/
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()
197 release_mem_region(res->start, resource_size(res)); in c67x00_drv_remove()
/drivers/pci/hotplug/
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()
/drivers/dax/hmem/
Ddevice.c34 rc = region_intersects(res.start, resource_size(&res), IORESOURCE_MEM, in hmem_register_device()
51 if (!__request_region(&hmem_active, res.start, resource_size(&res), in hmem_register_device()
82 __release_region(&hmem_active, res.start, resource_size(&res)); in hmem_register_device()
/drivers/remoteproc/
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()
/drivers/scsi/
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()
/drivers/irqchip/
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()
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()
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()
Dirq-dw-apb-ictl.c145 if (!request_mem_region(r.start, resource_size(&r), np->full_name)) { in dw_apb_ictl_init()
150 iobase = ioremap(r.start, resource_size(&r)); in dw_apb_ictl_init()
214 release_mem_region(r.start, resource_size(&r)); in dw_apb_ictl_init()
/drivers/pci/
Dsetup-bus.c245 if (!resource_size(res)) { in reassign_resources_sorted()
285 if (resource_size(res) && in assign_requested_resources_sorted()
413 resource_size_t r_size = resource_size(dev_res->res); in __assign_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()
1076 size0 = calculate_memsize(size, min_size, 0, 0, resource_size(b_res), min_align); 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()
[all …]
/drivers/ata/
Dpata_platform.c157 resource_size(io_res)); in __pata_platform_probe()
159 resource_size(ctl_res)); in __pata_platform_probe()
162 resource_size(io_res)); in __pata_platform_probe()
164 resource_size(ctl_res)); in __pata_platform_probe()
/drivers/gpu/drm/mgag200/
Dmgag200_drv.c109 return mgag200_probe_vram(mdev->vram, resource_size(mdev->vram_res)); in mgag200_device_probe_vram()
148 devm_arch_io_reserve_memtype_wc(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit()
149 devm_arch_phys_wc_add(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit()
151 mdev->vram = devm_ioremap(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit()
/drivers/mcb/
Dmcb-lpc.c39 resource_size(priv->mem), in mcb_lpc_probe()
47 resource_size(priv->mem)); in mcb_lpc_probe()
69 devm_release_mem_region(&pdev->dev, priv->mem->start, resource_size(priv->mem)); in mcb_lpc_probe()
/drivers/net/ethernet/amd/
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()
1110 if (!request_mem_region(macdma->start, resource_size(macdma), 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()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c216 u64 resource_size; in mlxsw_sp1_kvdl_part_init() local
220 &resource_size); in mlxsw_sp1_kvdl_part_init()
223 resource_size = info->end_index - info->start_index + 1; in mlxsw_sp1_kvdl_part_init()
226 nr_entries = div_u64(resource_size, info->alloc_size); in mlxsw_sp1_kvdl_part_init()
235 mlxsw_sp1_kvdl_part_update(part, part_prev, resource_size); in mlxsw_sp1_kvdl_part_init()
/drivers/cpufreq/
Dmediatek-cpufreq-hw.c183 if (!request_mem_region(res->start, resource_size(res), res->name)) { in mtk_cpu_resources_init()
188 base = ioremap(res->start, resource_size(res)); in mtk_cpu_resources_init()
212 release_mem_region(res->start, resource_size(res)); in mtk_cpu_resources_init()
266 release_mem_region(res->start, resource_size(res)); in mtk_cpufreq_hw_cpu_exit()
/drivers/watchdog/
Dsimatic-ipc-wdt.c159 resource_size(&gp_status_reg_227e_res), in simatic_ipc_wdt_probe()
175 resource_size(&io_resource_enable), in simatic_ipc_wdt_probe()
184 resource_size(&io_resource_trigger), in simatic_ipc_wdt_probe()
/drivers/soc/ti/
Dpruss.c182 pruss->cfg_base = devm_ioremap(dev, res.start, resource_size(&res)); in pruss_cfg_of_init()
190 regmap_conf.max_register = resource_size(&res) - 4; in pruss_cfg_of_init()
263 resource_size(&res)); in pruss_probe()
271 pruss->mem_regions[i].size = resource_size(&res); in pruss_probe()
/drivers/sbus/char/
Dflash.c172 flash.read_size = resource_size(&op->resource[0]); in flash_probe()
175 flash.write_size = resource_size(&op->resource[1]); in flash_probe()
178 flash.write_size = resource_size(&op->resource[0]); in flash_probe()

12345678910>>...30