/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/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 | htc-pasic3.c | 144 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()
|
D | altera-sysmgr.c | 141 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-v6.1/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-v6.1/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() 199 release_mem_region(mem->start, resource_size(mem)); in ohci_hcd_sm501_drv_remove()
|
/Linux-v6.1/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-v6.1/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-v6.1/drivers/dax/hmem/ |
D | device.c | 34 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()
|
/Linux-v6.1/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-v6.1/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-v6.1/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 | 82 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()
|
/Linux-v6.1/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-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_stolen.c | 119 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()
|
/Linux-v6.1/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-v6.1/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-v6.1/arch/mips/ralink/ |
D | of.c | 46 resource_size(&res), in plat_of_remap_node() 50 return ioremap(res.start, resource_size(&res)); in plat_of_remap_node()
|
/Linux-v6.1/drivers/gpu/drm/mgag200/ |
D | mgag200_drv.c | 109 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()
|
/Linux-v6.1/drivers/pci/ |
D | setup-bus.c | 245 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 …]
|