Home
last modified time | relevance | path

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

12345678910>>...36

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/scripts/coccinelle/api/
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)
/kernel/linux/linux-5.10/arch/sparc/kernel/
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()
/kernel/linux/linux-5.10/arch/arm/mach-mvebu/
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()
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()
/kernel/linux/linux-5.10/arch/mips/lantiq/falcon/
Dsysctrl.c211 if ((request_mem_region(res_status.start, resource_size(&res_status), in ltq_soc_init()
213 (request_mem_region(res_ebu.start, resource_size(&res_ebu), in ltq_soc_init()
216 resource_size(&res_sys[0]), in ltq_soc_init()
219 resource_size(&res_sys[1]), in ltq_soc_init()
222 resource_size(&res_sys[2]), in ltq_soc_init()
227 resource_size(&res_status)); in ltq_soc_init()
229 resource_size(&res_ebu)); in ltq_soc_init()
236 resource_size(&res_sys[i])); in ltq_soc_init()
/kernel/linux/linux-5.10/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()
229 release_mem_region(mem1->start, resource_size(mem1)); in mcp_sa11x0_probe()
231 release_mem_region(mem0->start, resource_size(mem0)); in mcp_sa11x0_probe()
253 release_mem_region(mem1->start, resource_size(mem1)); in mcp_sa11x0_remove()
254 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()
/kernel/linux/linux-5.10/drivers/ide/
Dide_platform.c79 res_base->start, resource_size(res_base)); in plat_ide_probe()
81 res_alt->start, resource_size(res_alt)); in plat_ide_probe()
84 res_base->start, resource_size(res_base)); in plat_ide_probe()
86 res_alt->start, resource_size(res_alt)); in plat_ide_probe()
Dgayle.c132 if (!request_mem_region(res->start, resource_size(res), "IDE")) in amiga_gayle_ide_probe()
164 release_mem_region(res->start, resource_size(res)); in amiga_gayle_ide_probe()
174 release_mem_region(res->start, resource_size(res)); in amiga_gayle_ide_remove()
/kernel/linux/linux-5.10/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()
Dehci-pmcmsp.c106 res_len = resource_size(res); in usb_hcd_msp_map_regs()
122 res_len = resource_size(res); in usb_hcd_msp_map_regs()
136 res_len = resource_size(res); in usb_hcd_msp_map_regs()
142 res_len = resource_size(res); in usb_hcd_msp_map_regs()
176 hcd->rsrc_len = resource_size(res); in usb_hcd_msp_probe()
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
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()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dshpchp_sysfs.c41 (unsigned long long)resource_size(res)); in show_ctrl()
50 (unsigned long long)resource_size(res)); in show_ctrl()
58 (unsigned long long)resource_size(res)); in show_ctrl()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c109 if (resource_size(&stolen[0]) > resource_size(&stolen[1])) in i915_adjust_stolen()
131 resource_size(dsm), in i915_adjust_stolen()
144 resource_size(dsm) - 2, in i915_adjust_stolen()
399 if (resource_size(&intel_graphics_stolen_res) == 0) in i915_gem_init_stolen()
488 (u64)resource_size(&i915->dsm) >> 10, in i915_gem_init_stolen()
489 ((u64)resource_size(&i915->dsm) - reserved_total) >> 10); in i915_gem_init_stolen()
492 resource_size(&i915->dsm) - reserved_total; in i915_gem_init_stolen()
508 GEM_BUG_ON(range_overflows(offset, size, resource_size(&i915->dsm))); in i915_pages_create_for_stolen()
685 resource_size(&intel_graphics_stolen_res), in i915_gem_stolen_setup()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
199 release_mem_region(res->start, resource_size(res)); in c67x00_drv_remove()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_platform.c153 resource_size(io_res)); in __pata_platform_probe()
155 resource_size(ctl_res)); in __pata_platform_probe()
158 resource_size(io_res)); in __pata_platform_probe()
160 resource_size(ctl_res)); in __pata_platform_probe()
/kernel/linux/linux-5.10/drivers/edac/
Dmv64x60_edac.c92 pci_serr = ioremap(r->start, resource_size(r)); in mv64x60_pci_fixup()
141 resource_size(r), in mv64x60_pci_err_probe()
151 resource_size(r)); in mv64x60_pci_err_probe()
306 resource_size(r), in mv64x60_sram_err_probe()
316 resource_size(r)); in mv64x60_sram_err_probe()
473 resource_size(r), in mv64x60_cpu_err_probe()
483 resource_size(r)); in mv64x60_cpu_err_probe()
500 resource_size(r), in mv64x60_cpu_err_probe()
510 resource_size(r)); in mv64x60_cpu_err_probe()
739 resource_size(r), in mv64x60_mc_err_probe()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Dintel_region_lmem.c22 mem->fake_mappable.size = resource_size(&mem->region); in init_fake_lmem_bar()
86 resource_size(&mem->region))) in region_lmem_init()
134 (u64)resource_size(&mem->region)); in intel_setup_fake_lmem()
/kernel/linux/linux-5.10/arch/mips/ralink/
Dof.c44 resource_size(&res), in plat_of_remap_node()
48 return ioremap(res.start, resource_size(&res)); in plat_of_remap_node()

12345678910>>...36