/drivers/net/wireless/ti/wl1251/ |
D | io.c | 135 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument 141 mem_start, mem_size); in wl1251_set_partition() 147 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition() 150 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition() 152 mem_start, mem_size); in wl1251_set_partition() 158 ((mem_start + mem_size) > reg_start)) { in wl1251_set_partition() 163 mem_size = reg_start - mem_start; in wl1251_set_partition() 165 mem_start, mem_size); in wl1251_set_partition() 176 mem_start, mem_size); in wl1251_set_partition() 182 partition[0].size = mem_size; in wl1251_set_partition() [all …]
|
/drivers/scsi/ |
D | NCR_Q720.c | 45 __u32 mem_size; member 149 __u32 base_addr, mem_size; in NCR_Q720_probe() local 200 mem_size = 1024; in NCR_Q720_probe() 202 mem_size = 1 << (19 + i); in NCR_Q720_probe() 212 if(!request_mem_region(base_addr, mem_size, "NCR_Q720")) { in NCR_Q720_probe() 215 (unsigned long)(base_addr + mem_size)); in NCR_Q720_probe() 220 mem_size, DMA_MEMORY_MAP) in NCR_Q720_probe() 259 printk(KERN_NOTICE "NCR Q720: On board ram %dk\n", mem_size/1024); in NCR_Q720_probe() 264 p->mem_size = mem_size; in NCR_Q720_probe() 315 release_mem_region(base_addr, mem_size); in NCR_Q720_probe() [all …]
|
/drivers/s390/char/ |
D | zcore.c | 52 unsigned long mem_size; member 187 u64 mem_size; member 313 if (*ppos > (sys_info.mem_size + HEADER_SIZE)) { in zcore_read() 318 count = min(count, (size_t) (sys_info.mem_size + HEADER_SIZE - *ppos)); in zcore_read() 577 sys_info.mem_size = mem_end; in sys_info_init() 603 unsigned long mem_size) in zcore_header_init() argument 612 hdr->mem_size = mem_size; in zcore_header_init() 613 hdr->rmem_size = mem_size; in zcore_header_init() 614 hdr->mem_end = sys_info.mem_size; in zcore_header_init() 615 hdr->num_pages = mem_size / PAGE_SIZE; in zcore_header_init() [all …]
|
/drivers/usb/host/ |
D | isp1760-if.c | 353 resource_size_t mem_size; in isp1760_plat_probe() local 364 mem_size = resource_size(mem_res); in isp1760_plat_probe() 365 if (!request_mem_region(mem_res->start, mem_size, "isp1760")) { in isp1760_plat_probe() 395 hcd = isp1760_register(mem_res->start, mem_size, irq_res->start, in isp1760_plat_probe() 411 release_mem_region(mem_res->start, mem_size); in isp1760_plat_probe() 419 resource_size_t mem_size; in isp1760_plat_remove() local 425 mem_size = resource_size(mem_res); in isp1760_plat_remove() 426 release_mem_region(mem_res->start, mem_size); in isp1760_plat_remove()
|
/drivers/soc/ti/ |
D | knav_qmss_acc.c | 459 info->mem_size, DMA_BIDIRECTIONAL); in knav_acc_free_range() 460 free_pages_exact(acc->list_cpu[0], info->mem_size); in knav_acc_free_range() 492 int list_size, mem_size; in knav_init_acc_range() local 552 mem_size = PAGE_ALIGN(list_size * 2); in knav_init_acc_range() 553 info->mem_size = mem_size; in knav_init_acc_range() 564 list_mem = alloc_pages_exact(mem_size, GFP_KERNEL | GFP_DMA); in knav_init_acc_range() 568 list_dma = dma_map_single(kdev->dev, list_mem, mem_size, in knav_init_acc_range() 571 free_pages_exact(list_mem, mem_size); in knav_init_acc_range() 575 memset(list_mem, 0, mem_size); in knav_init_acc_range() 576 dma_sync_single_for_device(kdev->dev, list_dma, mem_size, in knav_init_acc_range()
|
/drivers/net/can/cc770/ |
D | cc770_platform.c | 172 resource_size_t mem_size; in cc770_platform_probe() local 181 mem_size = resource_size(mem); in cc770_platform_probe() 182 if (!request_mem_region(mem->start, mem_size, pdev->name)) in cc770_platform_probe() 185 base = ioremap(mem->start, mem_size); in cc770_platform_probe() 236 release_mem_region(mem->start, mem_size); in cc770_platform_probe()
|
/drivers/pcmcia/ |
D | electra_cf.c | 52 unsigned long mem_size; member 214 cf->mem_size = PAGE_ALIGN(resource_size(&mem)); in electra_cf_probe() 215 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 276 if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) { in electra_cf_probe() 312 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_probe() 344 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_remove()
|
/drivers/tty/serial/cpm_uart/ |
D | cpm_uart.h | 82 u32 mem_size; member 119 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr() 135 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
|
D | cpm_uart_cpm1.c | 115 pinfo->mem_size = memsz; in cpm_uart_allocbuf()
|
/drivers/ide/ |
D | palm_bk3710.c | 318 unsigned long rate, mem_size; in palm_bk3710_probe() local 344 mem_size = resource_size(mem); in palm_bk3710_probe() 345 if (request_mem_region(mem->start, mem_size, "palm_bk3710") == NULL) { in palm_bk3710_probe() 350 base = ioremap(mem->start, mem_size); in palm_bk3710_probe() 353 release_mem_region(mem->start, mem_size); in palm_bk3710_probe()
|
/drivers/net/wireless/mwifiex/ |
D | ethtool.c | 81 dump->len = entry->mem_size; in mwifiex_get_dump_flag() 111 memcpy(p, entry->mem_ptr, entry->mem_size); in mwifiex_get_dump_data() 113 entry->mem_size = 0; in mwifiex_get_dump_data()
|
/drivers/base/regmap/ |
D | regcache-rbtree.c | 144 size_t mem_size; in rbtree_show() local 151 mem_size = sizeof(*rbtree_ctx); in rbtree_show() 156 mem_size += sizeof(*n); in rbtree_show() 157 mem_size += (n->blklen * map->cache_word_size); in rbtree_show() 158 mem_size += BITS_TO_LONGS(n->blklen) * sizeof(long); in rbtree_show() 174 nodes, registers, average, mem_size); in rbtree_show()
|
/drivers/edac/ |
D | altera_edac.c | 261 u32 read_reg, mem_size; in altr_sdram_probe() local 283 mem_size = altr_sdram_get_total_mem_size(mc_vbase); in altr_sdram_probe() 284 if (!mem_size) { in altr_sdram_probe() 335 dimm->nr_pages = ((mem_size - 1) >> PAGE_SHIFT) + 1; in altr_sdram_probe()
|
/drivers/net/wireless/ath/wil6210/ |
D | wil_platform_msm.c | 58 unsigned int num_usecases, num_paths, mem_size; in wil_platform_get_pdata() local 84 mem_size = sizeof(struct msm_bus_scale_pdata) + in wil_platform_get_pdata() 88 pdata = kzalloc(mem_size, GFP_KERNEL); in wil_platform_get_pdata()
|
/drivers/char/xilinx_hwicap/ |
D | xilinx_hwicap.c | 649 drvdata->mem_size = resource_size(regs_res); in hwicap_setup() 652 drvdata->mem_size, DRIVER_NAME)) { in hwicap_setup() 661 drvdata->base_address = ioremap(drvdata->mem_start, drvdata->mem_size); in hwicap_setup() 677 (unsigned long long) drvdata->mem_size); in hwicap_setup() 694 release_mem_region(regs_res->start, drvdata->mem_size); in hwicap_setup() 733 release_mem_region(drvdata->mem_start, drvdata->mem_size); in hwicap_remove()
|
/drivers/ptp/ |
D | ptp_pch.c | 128 u32 mem_size; member 577 release_mem_region(chip->mem_base, chip->mem_size); in pch_remove() 611 chip->mem_size = pci_resource_len(pdev, IO_MEM_BAR); in pch_probe() 614 if (!request_mem_region(chip->mem_base, chip->mem_size, "1588_regs")) { in pch_probe() 622 chip->regs = ioremap(chip->mem_base, chip->mem_size); in pch_probe() 679 release_mem_region(chip->mem_base, chip->mem_size); in pch_probe()
|
/drivers/mtd/onenand/ |
D | omap2.c | 53 unsigned int mem_size; member 648 c->mem_size = resource_size(res); in omap2_onenand_probe() 650 if (request_mem_region(c->phys_base, c->mem_size, in omap2_onenand_probe() 653 c->phys_base, c->mem_size); in omap2_onenand_probe() 657 c->onenand.base = ioremap(c->phys_base, c->mem_size); in omap2_onenand_probe() 774 release_mem_region(c->phys_base, c->mem_size); in omap2_onenand_probe() 795 release_mem_region(c->phys_base, c->mem_size); in omap2_onenand_remove()
|
/drivers/net/ethernet/8390/ |
D | ax88796.c | 848 unsigned long mem_size, mem2_size = 0; in ax_probe() local 883 mem_size = resource_size(mem); in ax_probe() 894 ax->reg_offsets[ret] = (mem_size / 0x18) * ret; in ax_probe() 897 if (!request_mem_region(mem->start, mem_size, pdev->name)) { in ax_probe() 903 ei_local->mem = ioremap(mem->start, mem_size); in ax_probe() 918 ax->reg_offsets[ret] = (mem_size / 0x20) * ret; in ax_probe() 956 release_mem_region(mem->start, mem_size); in ax_probe()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_hwi.c | 2105 u32 mem_size; in bnx2fc_setup_fw_resc() local 2111 mem_size = BNX2FC_NUM_MAX_SESS * sizeof(struct regpair); in bnx2fc_setup_fw_resc() 2112 hba->t2_hash_tbl_ptr = dma_alloc_coherent(&hba->pcidev->dev, mem_size, in bnx2fc_setup_fw_resc() 2120 memset(hba->t2_hash_tbl_ptr, 0x00, mem_size); in bnx2fc_setup_fw_resc() 2122 mem_size = BNX2FC_NUM_MAX_SESS * in bnx2fc_setup_fw_resc() 2124 hba->t2_hash_tbl = dma_alloc_coherent(&hba->pcidev->dev, mem_size, in bnx2fc_setup_fw_resc() 2132 memset(hba->t2_hash_tbl, 0x00, mem_size); in bnx2fc_setup_fw_resc() 2165 u32 mem_size; in bnx2fc_free_fw_resc() local 2180 mem_size = BNX2FC_NUM_MAX_SESS * sizeof(struct regpair); in bnx2fc_free_fw_resc() 2181 dma_free_coherent(&hba->pcidev->dev, mem_size, in bnx2fc_free_fw_resc() [all …]
|
/drivers/platform/chrome/ |
D | chromeos_pstore.c | 59 .mem_size = 0x100000,
|
/drivers/iommu/ |
D | fsl_pamu.c | 1035 size_t mem_size = 0; in fsl_pamu_probe() local 1099 mem_size = (PAGE_SIZE << get_order(PAACT_SIZE)) + in fsl_pamu_probe() 1102 order = get_order(mem_size); in fsl_pamu_probe() 1142 mem_size, csd_port_id); in fsl_pamu_probe() 1144 ret = create_csd(ppaact_phys, mem_size, csd_port_id); in fsl_pamu_probe()
|
/drivers/scsi/bnx2i/ |
D | bnx2i_iscsi.c | 326 int mem_size; in bnx2i_setup_free_cid_que() local 329 mem_size = hba->max_active_conns * sizeof(u32); in bnx2i_setup_free_cid_que() 330 mem_size = (mem_size + (PAGE_SIZE - 1)) & PAGE_MASK; in bnx2i_setup_free_cid_que() 332 hba->cid_que.cid_que_base = kmalloc(mem_size, GFP_KERNEL); in bnx2i_setup_free_cid_que() 336 mem_size = hba->max_active_conns * sizeof(struct bnx2i_conn *); in bnx2i_setup_free_cid_que() 337 mem_size = (mem_size + (PAGE_SIZE - 1)) & PAGE_MASK; in bnx2i_setup_free_cid_que() 338 hba->cid_que.conn_cid_tbl = kmalloc(mem_size, GFP_KERNEL); in bnx2i_setup_free_cid_que()
|
/drivers/gpu/drm/radeon/ |
D | radeon_combios.c | 3231 uint32_t mem_size; in combios_detect_ram() local 3237 mem_size = ram; in combios_detect_ram() 3255 return mem_size; in combios_detect_ram() 3263 uint32_t mem_size = 0; in combios_write_ram_size() local 3276 mem_size = RBIOS16(offset + 5); in combios_write_ram_size() 3283 if (!mem_size) { in combios_write_ram_size() 3300 mem_size = in combios_write_ram_size() 3303 if (mem_size) in combios_write_ram_size() 3308 mem_size = RBIOS8(offset); in combios_write_ram_size() 3310 mem_size = RBIOS8(offset); in combios_write_ram_size() [all …]
|
/drivers/net/ethernet/wiznet/ |
D | w5300.c | 550 int mem_size; in w5300_hw_probe() local 563 mem_size = resource_size(mem); in w5300_hw_probe() 570 priv->indirect = mem_size < W5300_BUS_DIRECT_SIZE; in w5300_hw_probe()
|
/drivers/pci/host/ |
D | pcie-designware.h | 44 u32 mem_size; member
|