/openbmc/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 48 static void bcm47xx_nvram_copy(void __iomem *nvram_start, size_t res_size) in bcm47xx_nvram_copy() argument 54 if (copy_size > res_size) { in bcm47xx_nvram_copy() 56 copy_size = res_size; in bcm47xx_nvram_copy() 72 static int bcm47xx_nvram_find_and_copy(void __iomem *flash_start, size_t res_size) in bcm47xx_nvram_find_and_copy() argument 86 for (flash_size = FLASH_MIN; flash_size <= res_size; flash_size <<= 1) { in bcm47xx_nvram_find_and_copy() 108 bcm47xx_nvram_copy(flash_start + offset, res_size - offset); in bcm47xx_nvram_find_and_copy() 113 int bcm47xx_nvram_init_from_iomem(void __iomem *nvram_start, size_t res_size) in bcm47xx_nvram_init_from_iomem() argument 125 bcm47xx_nvram_copy(nvram_start, res_size); in bcm47xx_nvram_init_from_iomem()
|
/openbmc/linux/drivers/nubus/ |
H A D | proc.c | 91 unsigned int res_size; member 104 pded->res_size = size; in nubus_proc_alloc_pde_data() 117 if (pded->res_size > m->size) in nubus_proc_rsrc_show() 120 if (pded->res_size) { in nubus_proc_rsrc_show() 130 nubus_seq_write_rsrc_mem(m, &ent, pded->res_size); in nubus_proc_rsrc_show()
|
/openbmc/linux/sound/pci/asihpi/ |
H A D | hpimsginit.c | 20 static u16 res_size[HPI_OBJ_MAXINDEX + 1] = HPI_RESPONSE_SIZE_BY_OBJECT; variable 63 size = res_size[object]; in hpi_init_response() 115 struct hpi_response_header *phr, u16 res_size, u16 object, in hpi_init_message_responseV1() argument 119 hpi_init_responseV1(phr, res_size, object, function); in hpi_init_message_responseV1()
|
H A D | hpimsginit.h | 32 struct hpi_response_header *phr, u16 res_size, u16 object,
|
/openbmc/linux/drivers/parisc/ |
H A D | sba_iommu.c | 449 if (pide >= (ioc->res_size << 3)) { in sba_alloc_range() 451 if (pide >= (ioc->res_size << 3)) in sba_alloc_range() 1699 int res_size; in sba_common_init() local 1711 res_size -= (128*1024)/sizeof(u64); in sba_common_init() 1716 __func__, res_size); in sba_common_init() 1718 sba_dev->ioc[i].res_size = res_size; in sba_common_init() 1722 iterate_pages( sba_dev->ioc[i].res_map, res_size, in sba_common_init() 1732 memset(sba_dev->ioc[i].res_map, 0, res_size); in sba_common_init() 1759 iterate_pages( sba_dev->ioc[i].res_map, res_size, in sba_common_init() 1806 ioc->res_size, ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() [all …]
|
H A D | ccio-dma.c | 221 u32 res_size; /* size of resource map in bytes */ member 300 u##size *res_end = (u##size *)&(ioc)->res_map[ioa->res_size]; \ 1035 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() 1056 ioc->res_size, total_pages); in ccio_proc_info() 1102 ioc->res_size, false); in ccio_proc_bitmap_info() 1168 while (idx < ioc->res_size) { in ccio_cujo20_fixup() 1297 ioc->res_size = (ioc->pdir_size / sizeof(u64)) >> 3; in ccio_ioc_init() 1298 DBG_INIT("%s() res_size 0x%x\n", __func__, ioc->res_size); in ccio_ioc_init() 1301 get_order(ioc->res_size)); in ccio_ioc_init() 1305 memset(ioc->res_map, 0, ioc->res_size); in ccio_ioc_init()
|
/openbmc/linux/include/linux/ |
H A D | bcm47xx_nvram.h | 14 int bcm47xx_nvram_init_from_iomem(void __iomem *nvram_start, size_t res_size); 25 size_t res_size) in bcm47xx_nvram_init_from_iomem() argument
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 258 unsigned long res_size, int sparse) in __legacy_mmap_fits() argument 264 size = ((res_size - 1) >> PAGE_SHIFT) + 1; in __legacy_mmap_fits() 291 unsigned long res_size; in pci_mmap_legacy_page_range() local 293 res_size = (mmap_type == pci_mmap_mem) ? bus->legacy_mem->size : in pci_mmap_legacy_page_range() 295 if (!__legacy_mmap_fits(hose, vma, res_size, sparse)) in pci_mmap_legacy_page_range()
|
/openbmc/linux/drivers/irqchip/ |
H A D | qcom-pdc.c | 315 resource_size_t res_size; in qcom_pdc_init() local 323 res_size = max_t(resource_size_t, resource_size(&res), QCOM_PDC_SIZE); in qcom_pdc_init() 324 if (res_size > resource_size(&res)) in qcom_pdc_init() 327 pdc_base = ioremap(res.start, res_size); in qcom_pdc_init()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | setup.c | 225 size_t res_size; in request_standard_resources() local 235 res_size = num_standard_resources * sizeof(*standard_resources); in request_standard_resources() 236 standard_resources = memblock_alloc(res_size, SMP_CACHE_BYTES); in request_standard_resources() 238 panic("%s: Failed to allocate %zu bytes\n", __func__, res_size); in request_standard_resources()
|
/openbmc/linux/arch/ia64/hp/common/ |
H A D | sba_iommu.c | 210 unsigned int res_size; /* size of resource map in bytes */ member 342 u64 *rptr_end = (u64 *) &(ioc->res_map[ioc->res_size]); in sba_check_pdir() 640 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range() 642 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range() 671 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range() 674 __func__, ioc->ioc_hpa, ioc->res_size, in sba_alloc_range() 681 __func__, ioc->ioc_hpa, ioc->res_size, in sba_alloc_range() 1697 DBG_INIT("%s() res_size 0x%x\n", __func__, ioc->res_size); in ioc_resource_init() 1700 get_order(ioc->res_size)); in ioc_resource_init() 1704 memset(ioc->res_map, 0, ioc->res_size); in ioc_resource_init() [all …]
|
/openbmc/linux/arch/s390/boot/ |
H A D | physmem_info.c | 232 unsigned long res_addr, res_size; in __physmem_alloc_intersects() local 236 if (!get_physmem_reserved(t, &res_addr, &res_size)) in __physmem_alloc_intersects() 238 if (intersects(addr, size, res_addr, res_size)) { in __physmem_alloc_intersects()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | offb.c | 397 unsigned long res_size = pitch * height; in offb_init_fb() local 404 if (!request_mem_region(res_start, res_size, "offb")) in offb_init_fb() 412 release_mem_region(res_start, res_size); in offb_init_fb() 418 release_mem_region(res_start, res_size); in offb_init_fb() 533 release_mem_region(res_start, res_size); in offb_init_fb()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | setup.c | 434 size_t res_size; in resource_init() local 446 res_size = num_standard_resources * sizeof(*standard_resources); in resource_init() 447 standard_resources = memblock_alloc(res_size, SMP_CACHE_BYTES); in resource_init()
|
/openbmc/linux/sound/drivers/mpu401/ |
H A D | mpu401_uart.c | 550 int res_size = hardware == MPU401_HW_PC98II ? 4 : 2; in snd_mpu401_uart_new() local 551 mpu->res = request_region(port, res_size, "MPU401 UART"); in snd_mpu401_uart_new() 555 port, res_size); in snd_mpu401_uart_new()
|
/openbmc/linux/drivers/video/fbdev/mb862xx/ |
H A D | mb862xxfbdrv.c | 676 resource_size_t res_size; in of_platform_mb862xx_probe() local 699 res_size = resource_size(&res); in of_platform_mb862xx_probe() 700 par->res = request_mem_region(res.start, res_size, DRV_NAME); in of_platform_mb862xx_probe() 776 release_mem_region(res.start, res_size); in of_platform_mb862xx_probe() 788 resource_size_t res_size = resource_size(par->res); in of_platform_mb862xx_remove() local 812 release_mem_region(par->res->start, res_size); in of_platform_mb862xx_remove()
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_mux_codec.h | 280 size_t res_size, bool blocking, bool respond);
|
/openbmc/linux/drivers/nvdimm/ |
H A D | pfn_devs.c | 455 resource_size_t res_size; in nd_pfn_validate() local 589 res_size = resource_size(res); in nd_pfn_validate() 590 if (offset >= res_size) { in nd_pfn_validate() 614 if (offset >= (res_size - start_pad - end_trunc)) { in nd_pfn_validate()
|
/openbmc/linux/drivers/of/ |
H A D | of_reserved_mem.c | 136 const char *uname, phys_addr_t *res_base, phys_addr_t *res_size) in __reserved_mem_alloc_size() argument 217 *res_size = size; in __reserved_mem_alloc_size()
|
/openbmc/linux/arch/parisc/include/asm/ |
H A D | ropes.h | 41 unsigned int res_size; /* size of resource map in bytes */ member
|
/openbmc/linux/drivers/tty/serial/ |
H A D | pic32_uart.c | 708 unsigned int res_size; in pic32_uart_release_port() local 713 res_size = resource_size(res_mem); in pic32_uart_release_port() 715 release_mem_region(port->mapbase, res_size); in pic32_uart_release_port()
|
/openbmc/linux/drivers/soc/aspeed/ |
H A D | aspeed-xdma.c | 215 resource_size_t res_size; member 891 release_mem_region(ctx->res_start, ctx->res_size); in aspeed_xdma_kobject_release() 920 ctx->res_size = size; in aspeed_xdma_iomap() 1131 release_mem_region(ctx->res_start, ctx->res_size); in aspeed_xdma_probe()
|
/openbmc/linux/drivers/gpu/drm/arm/ |
H A D | malidp_drv.c | 636 resource_size_t res_size = resource_size(res); in malidp_has_sufficient_address_space() local 641 return res_size >= MALIDP550_ADDR_SPACE_SIZE; in malidp_has_sufficient_address_space() 642 else if (res_size < MALIDP500_ADDR_SPACE_SIZE) in malidp_has_sufficient_address_space()
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | atyfb.h | 156 unsigned long res_size; member
|
H A D | atyfb_base.c | 2636 par->res_size); in aty_init() 3525 unsigned long addr, res_start, res_size; in atyfb_pci_probe() local 3551 res_size = resource_size(rp); in atyfb_pci_probe() 3552 if (!request_mem_region(res_start, res_size, "atyfb")) in atyfb_pci_probe() 3566 par->res_size = res_size; in atyfb_pci_probe() 3622 release_mem_region(par->res_start, par->res_size); in atyfb_pci_probe() 3749 release_mem_region(par->res_start, par->res_size); in atyfb_remove()
|