/linux-6.6.21/drivers/tty/ipwireless/ |
D | main.c | 96 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 …]
|
/linux-6.6.21/scripts/coccinelle/api/ |
D | resource_size.cocci | 3 /// 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-6.6.21/arch/sparc/kernel/ |
D | central.c | 75 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()
|
D | ioport.c | 219 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-6.6.21/arch/arm/mach-mvebu/ |
D | cpu-reset.c | 50 if (!request_mem_region(res.start, resource_size(&res), in mvebu_cpu_reset_map() 56 cpu_reset_base = ioremap(res.start, resource_size(&res)); in mvebu_cpu_reset_map() 59 release_mem_region(res.start, resource_size(&res)); in mvebu_cpu_reset_map() 63 cpu_reset_size = resource_size(&res); in mvebu_cpu_reset_map()
|
D | pm.c | 249 if (!request_mem_region(res.start, resource_size(&res), in mvebu_pm_suspend_init() 255 sdram_ctrl = ioremap(res.start, resource_size(&res)); in mvebu_pm_suspend_init() 257 release_mem_region(res.start, resource_size(&res)); in mvebu_pm_suspend_init()
|
/linux-6.6.21/drivers/mfd/ |
D | mcp-sa11x0.c | 169 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()
|
D | altera-sysmgr.c | 140 sysmgr_config.max_register = resource_size(res) - in sysmgr_probe() 151 base = devm_ioremap(dev, res->start, resource_size(res)); in sysmgr_probe() 155 sysmgr_config.max_register = resource_size(res) - 4; in sysmgr_probe()
|
/linux-6.6.21/arch/mips/lantiq/falcon/ |
D | sysctrl.c | 217 if ((request_mem_region(res_status.start, resource_size(&res_status), in ltq_soc_init() 219 (request_mem_region(res_ebu.start, resource_size(&res_ebu), in ltq_soc_init() 222 resource_size(&res_sys[0]), in ltq_soc_init() 225 resource_size(&res_sys[1]), in ltq_soc_init() 228 resource_size(&res_sys[2]), in ltq_soc_init() 233 resource_size(&res_status)); in ltq_soc_init() 235 resource_size(&res_ebu)); in ltq_soc_init() 242 resource_size(&res_sys[i])); in ltq_soc_init()
|
/linux-6.6.21/drivers/dma/bestcomm/ |
D | sram.c | 67 bcom_sram->size = resource_size(&res); in bcom_sram_init() 70 if (!request_mem_region(res.start, resource_size(&res), owner)) { in bcom_sram_init() 79 bcom_sram->base_virt = (void *)ioremap(res.start, resource_size(&res)); in bcom_sram_init() 120 release_mem_region(res.start, resource_size(&res)); in bcom_sram_init()
|
/linux-6.6.21/drivers/usb/host/ |
D | ohci-sm501.c | 107 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() 198 release_mem_region(mem->start, resource_size(mem)); in ohci_hcd_sm501_drv_remove()
|
/linux-6.6.21/arch/arm/mach-shmobile/ |
D | pm-rcar-gen2.c | 84 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-6.6.21/drivers/pci/hotplug/ |
D | shpchp_sysfs.c | 42 (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-6.6.21/drivers/remoteproc/ |
D | qcom_pil_info.c | 50 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-6.6.21/drivers/scsi/ |
D | a4000t.c | 46 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-6.6.21/drivers/irqchip/ |
D | irq-ompic.c | 165 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()
|
D | irq-orion.c | 81 if (!request_mem_region(r.start, resource_size(&r), np->name)) in orion_irq_init() 85 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init() 169 if (!request_mem_region(r.start, resource_size(&r), np->name)) { in orion_bridge_irq_init() 182 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_bridge_irq_init()
|
/linux-6.6.21/drivers/watchdog/ |
D | simatic-ipc-wdt.c | 159 if (!request_muxed_region(res->start, resource_size(res), res->name)) { in simatic_ipc_wdt_probe() 174 resource_size(&io_resource_enable), in simatic_ipc_wdt_probe() 183 resource_size(&io_resource_trigger), in simatic_ipc_wdt_probe() 214 resource_size(&gp_status_reg_227e_res)); in simatic_ipc_wdt_probe()
|
/linux-6.6.21/drivers/usb/c67x00/ |
D | c67x00-drv.c | 128 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()
|
/linux-6.6.21/drivers/ata/ |
D | pata_platform.c | 157 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()
|
/linux-6.6.21/drivers/pci/ |
D | setup-bus.c | 242 if (!resource_size(res)) { in reassign_resources_sorted() 282 if (resource_size(res) && in assign_requested_resources_sorted() 410 resource_size_t r_size = resource_size(dev_res->res); in __assign_resources_sorted() 901 r_size = resource_size(r); in pbus_size_io() 919 resource_size(b_res), min_align); in pbus_size_io() 922 resource_size(b_res), min_align); in pbus_size_io() 1023 r_size = resource_size(r); in pbus_size_mem() 1071 size0 = calculate_memsize(size, min_size, 0, 0, resource_size(b_res), min_align); in pbus_size_mem() 1075 resource_size(b_res), add_align); in pbus_size_mem() 1562 r->end = resource_size(r) - 1; in pci_bridge_release_resources() [all …]
|
/linux-6.6.21/arch/sh/kernel/ |
D | io_trapped.c | 57 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-6.6.21/drivers/gpu/drm/i915/gem/ |
D | i915_gem_stolen.c | 121 if (resource_size(&stolen[0]) > resource_size(&stolen[1])) in adjust_stolen() 164 resource_size(dsm), in request_smem_stolen() 177 resource_size(dsm) - 2, in request_smem_stolen() 523 mem->io_size = min(mem->io_size, resource_size(&mem->region)); in i915_gem_init_stolen() 525 i915->dsm.usable_size = resource_size(&mem->region); in i915_gem_init_stolen() 529 (u64)resource_size(&i915->dsm.stolen) >> 10, in i915_gem_init_stolen() 596 GEM_BUG_ON(range_overflows(offset, size, resource_size(&i915->dsm.stolen))); in i915_pages_create_for_stolen() 811 if (GEM_WARN_ON(resource_size(&mem->region) == 0)) in init_stolen_lmem() 960 resource_size(&intel_graphics_stolen_res), in i915_gem_stolen_smem_setup() 990 return resource_size(&i915->dsm.stolen); in i915_gem_stolen_area_size()
|
/linux-6.6.21/drivers/mcb/ |
D | mcb-lpc.c | 39 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()
|
/linux-6.6.21/drivers/gpu/drm/mgag200/ |
D | mgag200_drv.c | 111 return mgag200_probe_vram(mdev->vram, resource_size(mdev->vram_res)); in mgag200_device_probe_vram() 150 devm_arch_io_reserve_memtype_wc(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit() 151 devm_arch_phys_wc_add(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit() 153 mdev->vram = devm_ioremap(dev->dev, res->start, resource_size(res)); in mgag200_device_preinit()
|