/linux-4.4.14/arch/powerpc/boot/ |
H A D | ep8248e.c | 19 static u64 mem_size; variable 27 dt_fixup_memory(0, mem_size); platform_fixups() 44 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) platform_init() 47 mem_size *= 1024 * 1024; platform_init() 48 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); platform_init()
|
H A D | ep88xc.c | 19 static u64 mem_size; variable 25 dt_fixup_memory(0, mem_size); platform_fixups() 42 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) platform_init() 45 mem_size *= 1024 * 1024; platform_init() 46 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); platform_init()
|
H A D | ep405.c | 25 static u64 mem_size; variable 32 dt_fixup_memory(0, mem_size); platform_fixups() 62 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) platform_init() 65 mem_size *= 1024 * 1024; platform_init() 66 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); platform_init()
|
H A D | cuboot-c2k.c | 28 static void c2k_bridge_setup(u32 mem_size) c2k_bridge_setup() argument 78 mem_size, acc_bits); c2k_bridge_setup() 124 u32 mem_size; c2k_fixups() local 126 mem_size = mv64x60_get_mem_size(bridge_base); c2k_fixups() 127 c2k_bridge_setup(mem_size); /* Do necessary bridge setup */ c2k_fixups()
|
H A D | mv64x60.h | 56 u8 bus, u32 mem_size, u32 acc_bits);
|
H A D | mv64x60.c | 412 u8 bus, u32 mem_size, u32 acc_bits) mv64x60_config_pci_windows() 424 /* If mem_size is 0, leave windows disabled */ mv64x60_config_pci_windows() 425 if (mem_size == 0) mv64x60_config_pci_windows() 434 mem_size = (mem_size - 1) & 0xfffff000; mv64x60_config_pci_windows() 443 out_le32((u32 *)(bridge_base + mv64x60_pci2mem[hose].size),mem_size); mv64x60_config_pci_windows() 448 out_le32((u32 *)(bridge_base + mv64x60_pci_acc[hose][0].size),mem_size); mv64x60_config_pci_windows() 411 mv64x60_config_pci_windows(u8 *bridge_base, u8 *bridge_pbase, u8 hose, u8 bus, u32 mem_size, u32 acc_bits) mv64x60_config_pci_windows() argument
|
/linux-4.4.14/drivers/net/wireless/ti/wl1251/ |
H A D | io.c | 118 * 0x00000000 <--+----+... ...+----+--> mem_start + mem_size 135 u32 mem_start, u32 mem_size, wl1251_set_partition() 140 wl1251_debug(DEBUG_SPI, "mem_start %08X mem_size %08X", wl1251_set_partition() 141 mem_start, mem_size); wl1251_set_partition() 147 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { wl1251_set_partition() 150 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; wl1251_set_partition() 151 wl1251_debug(DEBUG_SPI, "mem_start %08X mem_size %08X", wl1251_set_partition() 152 mem_start, mem_size); wl1251_set_partition() 158 ((mem_start + mem_size) > reg_start)) { wl1251_set_partition() 163 mem_size = reg_start - mem_start; wl1251_set_partition() 164 wl1251_debug(DEBUG_SPI, "mem_start %08X mem_size %08X", wl1251_set_partition() 165 mem_start, mem_size); wl1251_set_partition() 175 wl1251_debug(DEBUG_SPI, "mem_start %08X mem_size %08X", wl1251_set_partition() 176 mem_start, mem_size); wl1251_set_partition() 182 partition[0].size = mem_size; wl1251_set_partition() 190 wl->virtual_reg_addr = mem_size; wl1251_set_partition() 134 wl1251_set_partition(struct wl1251 *wl, u32 mem_start, u32 mem_size, u32 reg_start, u32 reg_size) wl1251_set_partition() argument
|
/linux-4.4.14/arch/mips/dec/prom/ |
H A D | memory.c | 63 unsigned long mem_start = 0, mem_size = 0; rex_setup_memory_region() local 74 mem_size += (8 * bm->pagesize); rex_setup_memory_region() 75 else if (!mem_size) rex_setup_memory_region() 78 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); rex_setup_memory_region() 79 mem_start += mem_size + (8 * bm->pagesize); rex_setup_memory_region() 80 mem_size = 0; rex_setup_memory_region() 83 if (mem_size) rex_setup_memory_region() 84 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); rex_setup_memory_region()
|
/linux-4.4.14/arch/mips/loongson64/loongson-3/ |
H A D | numa.c | 128 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; szmem() local 137 mem_size = loongson_memmap->map[i].mem_size; szmem() 143 node_psize = (mem_size << 20) >> PAGE_SHIFT; szmem() 146 pr_info("Node%d: mem_type:%d, mem_start:0x%llx, mem_size:0x%llx MB\n", szmem() 147 (u32)node_id, mem_type, mem_start, mem_size); szmem() 151 (u64)mem_size << 20, BOOT_MEM_RAM); szmem() 157 node_psize = (mem_size << 20) >> PAGE_SHIFT; szmem() 160 pr_info("Node%d: mem_type:%d, mem_start:0x%llx, mem_size:0x%llx MB\n", szmem() 161 (u32)node_id, mem_type, mem_start, mem_size); szmem() 165 (u64)mem_size << 20, BOOT_MEM_RAM); szmem() 170 pr_info("Node%d: mem_type:%d, mem_start:0x%llx, mem_size:0x%llx MB\n", szmem() 171 (u32)node_id, mem_type, mem_start, mem_size); szmem() 173 (u64)mem_size << 20, BOOT_MEM_RESERVED); szmem() 175 mem_size << 20); szmem()
|
/linux-4.4.14/arch/tile/gxio/ |
H A D | mpipe.c | 138 buffer_size_enum, void *mem, size_t mem_size, gxio_mpipe_init_buffer_stack() 143 memset(mem, 0, mem_size); gxio_mpipe_init_buffer_stack() 145 result = gxio_mpipe_init_buffer_stack_aux(context, mem, mem_size, gxio_mpipe_init_buffer_stack() 161 void *mem, size_t mem_size, gxio_mpipe_init_notif_ring() 164 return gxio_mpipe_init_notif_ring_aux(context, mem, mem_size, gxio_mpipe_init_notif_ring() 212 void *mem, size_t mem_size, gxio_mpipe_init_edma_ring() 215 memset(mem, 0, mem_size); gxio_mpipe_init_edma_ring() 217 return gxio_mpipe_init_edma_ring_aux(context, mem, mem_size, mem_flags, gxio_mpipe_init_edma_ring() 367 void *mem, size_t mem_size, unsigned int mem_flags) gxio_mpipe_iqueue_init() 369 /* The init call below will verify that "mem_size" is legal. */ gxio_mpipe_iqueue_init() 370 unsigned int num_entries = mem_size / sizeof(gxio_mpipe_idesc_t); gxio_mpipe_iqueue_init() 386 return gxio_mpipe_init_notif_ring(context, ring, mem, mem_size, gxio_mpipe_iqueue_init() 396 void *mem, unsigned int mem_size, gxio_mpipe_equeue_init() 399 /* The init call below will verify that "mem_size" is legal. */ gxio_mpipe_equeue_init() 400 unsigned int num_entries = mem_size / sizeof(gxio_mpipe_edesc_t); gxio_mpipe_equeue_init() 406 mem, mem_size, mem_flags); gxio_mpipe_equeue_init() 135 gxio_mpipe_init_buffer_stack(gxio_mpipe_context_t *context, unsigned int stack, gxio_mpipe_buffer_size_enum_t buffer_size_enum, void *mem, size_t mem_size, unsigned int mem_flags) gxio_mpipe_init_buffer_stack() argument 159 gxio_mpipe_init_notif_ring(gxio_mpipe_context_t *context, unsigned int ring, void *mem, size_t mem_size, unsigned int mem_flags) gxio_mpipe_init_notif_ring() argument 210 gxio_mpipe_init_edma_ring(gxio_mpipe_context_t *context, unsigned int ring, unsigned int channel, void *mem, size_t mem_size, unsigned int mem_flags) gxio_mpipe_init_edma_ring() argument 364 gxio_mpipe_iqueue_init(gxio_mpipe_iqueue_t *iqueue, gxio_mpipe_context_t *context, unsigned int ring, void *mem, size_t mem_size, unsigned int mem_flags) gxio_mpipe_iqueue_init() argument 392 gxio_mpipe_equeue_init(gxio_mpipe_equeue_t *equeue, gxio_mpipe_context_t *context, unsigned int ering, unsigned int channel, void *mem, unsigned int mem_size, unsigned int mem_flags) gxio_mpipe_equeue_init() argument
|
H A D | iorpc_mpipe.c | 49 void *mem_va, size_t mem_size, gxio_mpipe_init_buffer_stack_aux() 63 params->buffer.kernel.size = mem_size; gxio_mpipe_init_buffer_stack_aux() 106 size_t mem_size, unsigned int mem_flags, gxio_mpipe_init_notif_ring_aux() 119 params->buffer.kernel.size = mem_size; gxio_mpipe_init_notif_ring_aux() 292 size_t mem_size, unsigned int mem_flags, gxio_mpipe_init_edma_ring_aux() 305 params->buffer.kernel.size = mem_size; gxio_mpipe_init_edma_ring_aux() 48 gxio_mpipe_init_buffer_stack_aux(gxio_mpipe_context_t *context, void *mem_va, size_t mem_size, unsigned int mem_flags, unsigned int stack, unsigned int buffer_size_enum) gxio_mpipe_init_buffer_stack_aux() argument 105 gxio_mpipe_init_notif_ring_aux(gxio_mpipe_context_t *context, void *mem_va, size_t mem_size, unsigned int mem_flags, unsigned int ring) gxio_mpipe_init_notif_ring_aux() argument 291 gxio_mpipe_init_edma_ring_aux(gxio_mpipe_context_t *context, void *mem_va, size_t mem_size, unsigned int mem_flags, unsigned int ring, unsigned int channel) gxio_mpipe_init_edma_ring_aux() argument
|
/linux-4.4.14/arch/mn10300/proc-mn103e010/ |
H A D | proc-init.c | 83 void __init get_mem_info(unsigned long *mem_base, unsigned long *mem_size) get_mem_info() argument 88 *mem_size = 0; get_mem_info() 97 *mem_size += size; get_mem_info() 108 *mem_size += size; get_mem_info()
|
/linux-4.4.14/drivers/scsi/ |
H A D | NCR_Q720.c | 45 __u32 mem_size; member in struct:NCR_Q720_private 149 __u32 base_addr, mem_size; NCR_Q720_probe() local 200 mem_size = 1024; NCR_Q720_probe() 202 mem_size = 1 << (19 + i); NCR_Q720_probe() 212 if(!request_mem_region(base_addr, mem_size, "NCR_Q720")) { NCR_Q720_probe() 215 (unsigned long)(base_addr + mem_size)); NCR_Q720_probe() 220 mem_size, DMA_MEMORY_MAP) NCR_Q720_probe() 259 printk(KERN_NOTICE "NCR Q720: On board ram %dk\n", mem_size/1024); NCR_Q720_probe() 264 p->mem_size = mem_size; NCR_Q720_probe() 315 release_mem_region(base_addr, mem_size); NCR_Q720_probe() 340 release_mem_region(p->phys_mem_base, p->mem_size); NCR_Q720_remove()
|
/linux-4.4.14/arch/alpha/boot/tools/ |
H A D | objstrip.c | 54 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; main() local 177 mem_size = elf_phdr->p_memsz; main() 184 mem_size -= delta; main() 218 mem_size = fil_size + aout->ah.bsize; main() 259 mem_size = ((mem_size + pad - 1) / pad) * pad; main() 262 tocopy = mem_size - fil_size; main()
|
/linux-4.4.14/arch/mips/loongson64/common/ |
H A D | mem.c | 74 (u64)loongson_memmap->map[i].mem_size << 20, prom_init_memory() 79 (u64)loongson_memmap->map[i].mem_size << 20, prom_init_memory() 84 (u64)loongson_memmap->map[i].mem_size << 20, prom_init_memory()
|
/linux-4.4.14/arch/mips/include/asm/txx9/ |
H A D | pci.h | 14 unsigned long mem_base, unsigned long mem_size,
|
/linux-4.4.14/arch/mips/ralink/ |
H A D | common.h | 19 unsigned long mem_size; member in struct:ralink_soc_info
|
H A D | of.c | 80 else if (soc_info.mem_size) plat_mem_setup() 81 add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M, plat_mem_setup()
|
H A D | rt305x.c | 271 soc_info->mem_size = rt5350_get_mem_size(); prom_soc_init()
|
/linux-4.4.14/arch/mips/txx9/generic/ |
H A D | pci.c | 111 * mem_size and io_size means max size on auto assignment. 116 unsigned long mem_base, unsigned long mem_size, txx9_alloc_pci_controller() 146 pcic->mem_resource[0].end = mem_base + mem_size - 1; txx9_alloc_pci_controller() 151 if (!mem_size) { txx9_alloc_pci_controller() 154 mem_size = 0x20000000; /* mem:512M(max) */ txx9_alloc_pci_controller() 156 mem_size = 0x08000000; /* mem:128M(max) */ txx9_alloc_pci_controller() 163 for (; mem_size >= min_size; mem_size /= 2) { txx9_alloc_pci_controller() 166 mem_size, min, max, txx9_alloc_pci_controller() 167 mem_size, NULL, NULL) == 0) txx9_alloc_pci_controller() 170 if (mem_size < min_size) txx9_alloc_pci_controller() 115 txx9_alloc_pci_controller(struct pci_controller *pcic, unsigned long mem_base, unsigned long mem_size, unsigned long io_base, unsigned long io_size) txx9_alloc_pci_controller() argument
|
/linux-4.4.14/drivers/tty/serial/cpm_uart/ |
H A D | cpm_uart.h | 82 u32 mem_size; member in struct:uart_cpm_port 119 if (likely(val >= mem && val < mem + pinfo->mem_size)) { cpu2cpm_addr() 135 if (likely(val >= dma && val < dma + pinfo->mem_size)) { cpm2cpu_addr()
|
H A D | cpm_uart_cpm1.c | 115 pinfo->mem_size = memsz; cpm_uart_allocbuf()
|
H A D | cpm_uart_cpm2.c | 150 pinfo->mem_size = memsz; cpm_uart_allocbuf()
|
/linux-4.4.14/drivers/soc/ti/ |
H A D | knav_qmss_acc.c | 463 info->mem_size, DMA_BIDIRECTIONAL); knav_acc_free_range() 464 free_pages_exact(acc->list_cpu[0], info->mem_size); knav_acc_free_range() 496 int list_size, mem_size; knav_init_acc_range() local 562 mem_size = PAGE_ALIGN(list_size * 2); knav_init_acc_range() 563 info->mem_size = mem_size; knav_init_acc_range() 574 list_mem = alloc_pages_exact(mem_size, GFP_KERNEL | GFP_DMA); knav_init_acc_range() 578 list_dma = dma_map_single(kdev->dev, list_mem, mem_size, knav_init_acc_range() 581 free_pages_exact(list_mem, mem_size); knav_init_acc_range() 585 memset(list_mem, 0, mem_size); knav_init_acc_range() 586 dma_sync_single_for_device(kdev->dev, list_dma, mem_size, knav_init_acc_range()
|
H A D | knav_qmss.h | 113 int mem_size; member in struct:knav_acc_info
|
/linux-4.4.14/include/linux/ |
H A D | pstore_ram.h | 73 * @mem_size memory size for ramoops 78 unsigned long mem_size; member in struct:ramoops_platform_data
|
/linux-4.4.14/arch/mn10300/proc-mn2ws0050/ |
H A D | proc-init.c | 108 void __init get_mem_info(unsigned long *mem_base, unsigned long *mem_size) get_mem_info() argument 132 *mem_size = (size * 2) << 20; get_mem_info()
|
/linux-4.4.14/drivers/pcmcia/ |
H A D | electra_cf.c | 52 unsigned long mem_size; member in struct:electra_cf_socket 214 cf->mem_size = PAGE_ALIGN(resource_size(&mem)); electra_cf_probe() 215 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); electra_cf_probe() 278 if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) { electra_cf_probe() 314 release_mem_region(cf->mem_phys, cf->mem_size); electra_cf_probe() 347 release_mem_region(cf->mem_phys, cf->mem_size); electra_cf_remove()
|
/linux-4.4.14/drivers/s390/char/ |
H A D | zcore.c | 52 unsigned long mem_size; member in struct:sys_info 187 u64 mem_size; member in struct:zcore_header 309 if (*ppos > (sys_info.mem_size + HEADER_SIZE)) { zcore_read() 314 count = min(count, (size_t) (sys_info.mem_size + HEADER_SIZE - *ppos)); zcore_read() 554 sys_info.mem_size = mem_end; sys_info_init() 580 unsigned long mem_size) zcore_header_init() 589 hdr->mem_size = mem_size; zcore_header_init() 590 hdr->rmem_size = mem_size; zcore_header_init() 591 hdr->mem_end = sys_info.mem_size; zcore_header_init() 592 hdr->num_pages = mem_size / PAGE_SIZE; zcore_header_init() 637 unsigned long mem_size, mem_end; zcore_init() local 641 mem_size = mem_end = 0; zcore_init() 675 rc = get_mem_info(&mem_size, &mem_end); zcore_init() 682 zcore_header_init(arch, &zcore_header, mem_size); zcore_init() 579 zcore_header_init(int arch, struct zcore_header *hdr, unsigned long mem_size) zcore_header_init() argument
|
/linux-4.4.14/drivers/net/can/cc770/ |
H A D | cc770_platform.c | 172 resource_size_t mem_size; cc770_platform_probe() local 181 mem_size = resource_size(mem); cc770_platform_probe() 182 if (!request_mem_region(mem->start, mem_size, pdev->name)) cc770_platform_probe() 185 base = ioremap(mem->start, mem_size); cc770_platform_probe() 236 release_mem_region(mem->start, mem_size); cc770_platform_probe()
|
/linux-4.4.14/arch/tile/include/gxio/ |
H A D | iorpc_mpipe.h | 64 void *mem_va, size_t mem_size, 74 size_t mem_size, unsigned int mem_flags, 104 size_t mem_size, unsigned int mem_flags,
|
H A D | mpipe.h | 433 * @param mem_size The size of the buffer stack, in bytes. 443 size_t mem_size, 551 * @param mem_size Number of bytes in the ring. Must be 128, 512, 560 void *mem, size_t mem_size, 828 * @param mem_size Number of bytes in the ring. Must be 512, 2048, 837 void *mem, size_t mem_size, 1153 void *mem, size_t mem_size, 1351 * @param mem_size Number of bytes in the ring. Must be 512, 2048, 1362 void *mem, unsigned int mem_size,
|
/linux-4.4.14/arch/c6x/kernel/ |
H A D | setup.c | 217 static u32 mem_size __initdata; 225 mem_size = memparse(p, &p); early_mem() 227 if (mem_size == 0) early_mem() 312 if (mem_size && (PAGE_OFFSET + PAGE_ALIGN(mem_size)) < memory_end) setup_arch() 313 memory_end = PAGE_OFFSET + PAGE_ALIGN(mem_size); setup_arch()
|
/linux-4.4.14/sound/isa/sb/ |
H A D | emu8000_synth.c | 64 hw->memhdr = snd_util_memhdr_new(hw->mem_size); snd_emu8000_probe() 85 if (hw->mem_size > 0) snd_emu8000_probe()
|
H A D | emu8000_pcm.c | 245 runtime->hw.buffer_bytes_max = emu->mem_size - LOOP_BLANK_SIZE * 3; emu8k_pcm_open()
|
H A D | emu8000.c | 459 emu->mem_size = size; size_dram() 1116 hw->mem_size = 0; snd_emu8000_new()
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | e820.c | 815 u64 mem_size; parse_memopt() local 831 mem_size = memparse(p, &p); parse_memopt() 833 if (mem_size == 0) parse_memopt() 835 e820_remove_range(mem_size, ULLONG_MAX - mem_size, E820_RAM, 1); parse_memopt() 844 u64 start_at, mem_size; parse_memmap_one() local 864 mem_size = memparse(p, &p); parse_memmap_one() 871 e820_add_region(start_at, mem_size, E820_RAM); parse_memmap_one() 874 e820_add_region(start_at, mem_size, E820_ACPI); parse_memmap_one() 877 e820_add_region(start_at, mem_size, E820_RESERVED); parse_memmap_one() 880 e820_add_region(start_at, mem_size, E820_PRAM); parse_memmap_one() 882 e820_remove_range(mem_size, ULLONG_MAX - mem_size, E820_RAM, 1); parse_memmap_one() 1064 u64 mem_size; default_machine_specific_memory_setup() local 1069 mem_size = boot_params.screen_info.ext_mem_k; default_machine_specific_memory_setup() 1072 mem_size = boot_params.alt_mem_k; default_machine_specific_memory_setup() 1078 e820_add_region(HIGH_MEMORY, mem_size << 10, E820_RAM); default_machine_specific_memory_setup()
|
/linux-4.4.14/drivers/platform/chrome/ |
H A D | chromeos_pstore.c | 59 .mem_size = 0x100000,
|
/linux-4.4.14/arch/tile/include/hv/ |
H A D | drv_mshim_intf.h | 29 uint64_t mem_size; /**< Total memory size in bytes. */ member in struct:mshim_mem_info
|
/linux-4.4.14/arch/mips/pci/ |
H A D | pci-bcm63xx.c | 213 unsigned int mem_size; bcm63xx_register_pci() local 278 mem_size = bcm63xx_get_memory_size(); bcm63xx_register_pci() 283 if (mem_size > (16 * 1024 * 1024)) bcm63xx_register_pci() 289 bcm_mpi_writel(~(mem_size - 1), MPI_SP0_RANGE_REG); bcm63xx_register_pci()
|
H A D | ops-tx3927.c | 141 unsigned long mem_size = tx3927_pcic_setup() local 164 tx3927_pcicptr->mmas = ~(mem_size - 1); tx3927_pcic_setup()
|
/linux-4.4.14/fs/pstore/ |
H A D | ram.c | 63 static ulong mem_size; variable 64 module_param(mem_size, ulong, 0400); 65 MODULE_PARM_DESC(mem_size, 476 if (!pdata->mem_size || (!pdata->record_size && !pdata->console_size && ramoops_probe() 492 cxt->size = pdata->mem_size; ramoops_probe() 552 mem_size = pdata->mem_size; ramoops_probe() 609 if (!mem_size) ramoops_register_dummy() 620 dummy_data->mem_size = mem_size; ramoops_register_dummy()
|
/linux-4.4.14/drivers/ide/ |
H A D | palm_bk3710.c | 318 unsigned long rate, mem_size; palm_bk3710_probe() local 344 mem_size = resource_size(mem); palm_bk3710_probe() 345 if (request_mem_region(mem->start, mem_size, "palm_bk3710") == NULL) { palm_bk3710_probe() 350 base = ioremap(mem->start, mem_size); palm_bk3710_probe() 353 release_mem_region(mem->start, mem_size); palm_bk3710_probe()
|
/linux-4.4.14/arch/xtensa/mm/ |
H A D | init.c | 385 unsigned long start_at, mem_size; parse_memmap_one() local 391 mem_size = memparse(p, &p); parse_memmap_one() 398 add_sysmem_bank(start_at, start_at + mem_size); parse_memmap_one() 403 mem_reserve(start_at, start_at + mem_size, 0); parse_memmap_one() 407 mem_reserve(mem_size, 0, 0); parse_memmap_one()
|
/linux-4.4.14/drivers/ptp/ |
H A D | ptp_pch.c | 128 u32 mem_size; member in struct:pch_dev 577 release_mem_region(chip->mem_base, chip->mem_size); pch_remove() 611 chip->mem_size = pci_resource_len(pdev, IO_MEM_BAR); pch_probe() 614 if (!request_mem_region(chip->mem_base, chip->mem_size, "1588_regs")) { pch_probe() 622 chip->regs = ioremap(chip->mem_base, chip->mem_size); pch_probe() 679 release_mem_region(chip->mem_base, chip->mem_size); pch_probe()
|
/linux-4.4.14/drivers/base/regmap/ |
H A D | regcache-rbtree.c | 144 size_t mem_size; rbtree_show() local 151 mem_size = sizeof(*rbtree_ctx); rbtree_show() 156 mem_size += sizeof(*n); rbtree_show() 157 mem_size += (n->blklen * map->cache_word_size); rbtree_show() 158 mem_size += BITS_TO_LONGS(n->blklen) * sizeof(long); rbtree_show() 174 nodes, registers, average, mem_size); rbtree_show()
|
/linux-4.4.14/arch/metag/mm/ |
H A D | mmu-meta2.c | 138 unsigned long mem_size = mem_end - PAGE_OFFSET; mmu_init() local 139 unsigned int pages = DIV_ROUND_UP(mem_size, 1 << 22); mmu_init()
|
/linux-4.4.14/arch/mips/ath79/ |
H A D | pci.c | 172 unsigned long mem_size, ath79_register_pci_ar724x() 198 res[3].end = mem_base + mem_size - 1; ath79_register_pci_ar724x() 167 ath79_register_pci_ar724x(int id, unsigned long cfg_base, unsigned long ctrl_base, unsigned long crp_base, unsigned long mem_base, unsigned long mem_size, unsigned long io_base, int irq) ath79_register_pci_ar724x() argument
|
/linux-4.4.14/drivers/pci/host/ |
H A D | pcie-designware.h | 40 u32 mem_size; member in struct:pcie_port
|
H A D | pcie-designware.c | 447 pp->mem_size = resource_size(pp->mem); dw_pcie_host_init() 523 pp->mem_bus_addr, pp->mem_size); dw_pcie_host_init() 773 memlimit = (pp->mem_size + (u32)pp->mem_base) & 0xfff00000; dw_pcie_setup_rc()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gds.h | 67 uint32_t mem_size; member in struct:amdgpu_gds_reg_offset
|
H A D | amdgpu_cgs.c | 47 uint64_t *mem_size) amdgpu_cgs_gpu_mem_info() 55 *mem_size = adev->mc.visible_vram_size - adev->vram_pin_size; amdgpu_cgs_gpu_mem_info() 61 *mem_size = *mc_size; amdgpu_cgs_gpu_mem_info() 67 *mem_size = adev->mc.gtt_size - adev->gart_pin_size; amdgpu_cgs_gpu_mem_info() 45 amdgpu_cgs_gpu_mem_info(void *cgs_device, enum cgs_gpu_mem_type type, uint64_t *mc_start, uint64_t *mc_size, uint64_t *mem_size) amdgpu_cgs_gpu_mem_info() argument
|
H A D | gfx_v7_0.c | 4720 amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_size); gfx_v7_0_ring_emit_gds_switch()
|
H A D | gfx_v8_0.c | 4427 amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_size); gfx_v8_0_ring_emit_gds_switch()
|
/linux-4.4.14/arch/m32r/kernel/ |
H A D | setup.c | 113 unsigned long mem_size; parse_mem_cmdline() local 116 mem_size = memparse(from+4, &from); parse_mem_cmdline() 117 memory_end = memory_start + mem_size; parse_mem_cmdline()
|
/linux-4.4.14/arch/arm/mach-footbridge/ |
H A D | dc21285.c | 289 unsigned int mem_size, mem_mask; dc21285_preinit() local 294 mem_size = (unsigned int)high_memory - PAGE_OFFSET; dc21285_preinit() 296 if (mem_mask >= mem_size) dc21285_preinit()
|
/linux-4.4.14/drivers/firmware/efi/ |
H A D | fake_mem.c | 197 u64 start = 0, mem_size = 0, attribute = 0; setup_fake_mem() local 204 mem_size = memparse(p, &p); setup_fake_mem() 219 fake_mems[nr_fake_mem].range.end = start + mem_size - 1; setup_fake_mem()
|
/linux-4.4.14/drivers/mtd/onenand/ |
H A D | omap2.c | 53 unsigned int mem_size; member in struct:omap2_onenand 648 c->mem_size = resource_size(res); omap2_onenand_probe() 650 if (request_mem_region(c->phys_base, c->mem_size, omap2_onenand_probe() 653 c->phys_base, c->mem_size); omap2_onenand_probe() 657 c->onenand.base = ioremap(c->phys_base, c->mem_size); omap2_onenand_probe() 772 release_mem_region(c->phys_base, c->mem_size); omap2_onenand_probe() 793 release_mem_region(c->phys_base, c->mem_size); omap2_onenand_remove()
|
/linux-4.4.14/drivers/net/fjes/ |
H A D | fjes_hw.c | 217 size_t mem_size; fjes_hw_setup() local 232 mem_size = FJES_DEV_REQ_BUF_SIZE(hw->max_epid); fjes_hw_setup() 233 hw->hw_info.req_buf = kzalloc(mem_size, GFP_KERNEL); fjes_hw_setup() 237 hw->hw_info.req_buf_size = mem_size; fjes_hw_setup() 239 mem_size = FJES_DEV_RES_BUF_SIZE(hw->max_epid); fjes_hw_setup() 240 hw->hw_info.res_buf = kzalloc(mem_size, GFP_KERNEL); fjes_hw_setup() 244 hw->hw_info.res_buf_size = mem_size; fjes_hw_setup()
|
/linux-4.4.14/drivers/char/xilinx_hwicap/ |
H A D | xilinx_hwicap.c | 649 drvdata->mem_size = resource_size(regs_res); hwicap_setup() 652 drvdata->mem_size, DRIVER_NAME)) { hwicap_setup() 661 drvdata->base_address = ioremap(drvdata->mem_start, drvdata->mem_size); hwicap_setup() 677 (unsigned long long) drvdata->mem_size); hwicap_setup() 694 release_mem_region(regs_res->start, drvdata->mem_size); hwicap_setup() 733 release_mem_region(drvdata->mem_start, drvdata->mem_size); hwicap_remove()
|
H A D | xilinx_hwicap.h | 49 resource_size_t mem_size; member in struct:hwicap_drvdata
|
/linux-4.4.14/drivers/edac/ |
H A D | altera_edac.c | 293 unsigned long mem_size, irqflags = 0; altr_sdram_probe() local 321 mem_size = get_total_mem(); altr_sdram_probe() 322 if (!mem_size) { altr_sdram_probe() 395 dimm->nr_pages = ((mem_size - 1) >> PAGE_SHIFT) + 1; altr_sdram_probe()
|
H A D | tile_edac.c | 116 dimm->nr_pages = mem_info.mem_size >> PAGE_SHIFT; tile_edac_init_csrows()
|
/linux-4.4.14/arch/mips/cavium-octeon/ |
H A D | setup.c | 96 static void kexec_bootmem_init(uint64_t mem_size, uint32_t low_reserved_bytes) kexec_bootmem_init() argument 103 if (mem_size > OCTEON_MAX_PHY_MEM_SIZE) { kexec_bootmem_init() 104 mem_size = OCTEON_MAX_PHY_MEM_SIZE; kexec_bootmem_init() 115 if (mem_size <= OCTEON_DDR0_SIZE) { kexec_bootmem_init() 117 mem_size - RESERVE_LOW_MEM - kexec_bootmem_init() 126 mem_size -= OCTEON_DDR0_SIZE; kexec_bootmem_init() 128 if (mem_size > OCTEON_DDR1_SIZE) { kexec_bootmem_init() 131 mem_size - OCTEON_DDR1_SIZE, 0); kexec_bootmem_init() 133 __cvmx_bootmem_phy_free(OCTEON_DDR1_BASE, mem_size, 0); kexec_bootmem_init()
|
/linux-4.4.14/fs/f2fs/ |
H A D | node.c | 36 unsigned long mem_size = 0; available_free_memory() local 48 mem_size = (nm_i->fcnt * sizeof(struct free_nid)) >> available_free_memory() 50 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); available_free_memory() 52 mem_size = (nm_i->nat_cnt * sizeof(struct nat_entry)) >> available_free_memory() 54 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 2); available_free_memory() 58 mem_size = get_pages(sbi, F2FS_DIRTY_DENTS); available_free_memory() 59 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); available_free_memory() 64 mem_size += (sbi->im[i].ino_num * available_free_memory() 66 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); available_free_memory() 68 mem_size = (sbi->total_ext_tree * sizeof(struct extent_tree) + available_free_memory() 71 res = mem_size < ((avail_ram * nm_i->ram_thresh / 100) >> 1); available_free_memory()
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
H A D | sdio.c | 2251 entry->mem_size = 0; mwifiex_sdio_fw_dump() 2306 entry->mem_size = memory_size; mwifiex_sdio_fw_dump() 2372 entry->mem_size = 0; mwifiex_sdio_generic_fw_dump() 2411 entry->mem_size = 0xf0000; mwifiex_sdio_generic_fw_dump() 2412 end_ptr = dbg_ptr + entry->mem_size; mwifiex_sdio_generic_fw_dump() 2433 tmp_ptr = vmalloc(entry->mem_size + 0x4000 + 1); mwifiex_sdio_generic_fw_dump() 2438 entry->mem_size); mwifiex_sdio_generic_fw_dump() 2442 dbg_ptr = entry->mem_ptr + entry->mem_size; mwifiex_sdio_generic_fw_dump() 2443 entry->mem_size += 0x4000; mwifiex_sdio_generic_fw_dump() 2444 end_ptr = entry->mem_ptr + entry->mem_size; mwifiex_sdio_generic_fw_dump() 2448 entry->mem_size = dbg_ptr - entry->mem_ptr; mwifiex_sdio_generic_fw_dump() 2450 entry->mem_name, entry->mem_size); mwifiex_sdio_generic_fw_dump() 2464 entry->mem_size = 0; mwifiex_sdio_generic_fw_dump()
|
H A D | main.c | 1105 (entry->mem_size + 1) + mwifiex_upload_device_dump() 1143 memcpy(fw_dump_ptr, entry->mem_ptr, entry->mem_size); mwifiex_upload_device_dump() 1144 fw_dump_ptr += entry->mem_size; mwifiex_upload_device_dump() 1167 entry->mem_size = 0; mwifiex_upload_device_dump()
|
H A D | init.c | 434 entry->mem_size = 0; mwifiex_adapter_cleanup()
|
H A D | pcie.c | 2336 entry->mem_size = 0; mwifiex_pcie_fw_dump() 2379 entry->mem_size = memory_size; mwifiex_pcie_fw_dump()
|
H A D | main.h | 496 u32 mem_size; member in struct:memory_type_mapping
|
/linux-4.4.14/drivers/net/ethernet/8390/ |
H A D | ax88796.c | 848 unsigned long mem_size, mem2_size = 0; ax_probe() local 883 mem_size = resource_size(mem); ax_probe() 894 ax->reg_offsets[ret] = (mem_size / 0x18) * ret; ax_probe() 897 if (!request_mem_region(mem->start, mem_size, pdev->name)) { ax_probe() 903 ei_local->mem = ioremap(mem->start, mem_size); ax_probe() 918 ax->reg_offsets[ret] = (mem_size / 0x20) * ret; ax_probe() 956 release_mem_region(mem->start, mem_size); ax_probe()
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | pci_iommu.c | 62 unsigned long mem_size; iommu_arena_new_node() 65 mem_size = window_size / (PAGE_SIZE / sizeof(unsigned long)); iommu_arena_new_node() 71 if (align < mem_size) iommu_arena_new_node() 72 align = mem_size; iommu_arena_new_node() 85 arena->ptes = __alloc_bootmem_node(NODE_DATA(nid), mem_size, align, 0); iommu_arena_new_node() 90 arena->ptes = __alloc_bootmem(mem_size, align, 0); iommu_arena_new_node() 96 arena->ptes = __alloc_bootmem(mem_size, align, 0); iommu_arena_new_node() 61 unsigned long mem_size; iommu_arena_new_node() local
|
/linux-4.4.14/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_hwi.c | 2105 u32 mem_size; bnx2fc_setup_fw_resc() local 2111 mem_size = BNX2FC_NUM_MAX_SESS * sizeof(struct regpair); bnx2fc_setup_fw_resc() 2112 hba->t2_hash_tbl_ptr = dma_alloc_coherent(&hba->pcidev->dev, mem_size, bnx2fc_setup_fw_resc() 2120 memset(hba->t2_hash_tbl_ptr, 0x00, mem_size); bnx2fc_setup_fw_resc() 2122 mem_size = BNX2FC_NUM_MAX_SESS * bnx2fc_setup_fw_resc() 2124 hba->t2_hash_tbl = dma_alloc_coherent(&hba->pcidev->dev, mem_size, bnx2fc_setup_fw_resc() 2132 memset(hba->t2_hash_tbl, 0x00, mem_size); bnx2fc_setup_fw_resc() 2165 u32 mem_size; bnx2fc_free_fw_resc() local 2180 mem_size = BNX2FC_NUM_MAX_SESS * sizeof(struct regpair); bnx2fc_free_fw_resc() 2181 dma_free_coherent(&hba->pcidev->dev, mem_size, bnx2fc_free_fw_resc() 2188 mem_size = BNX2FC_NUM_MAX_SESS * bnx2fc_free_fw_resc() 2190 dma_free_coherent(&hba->pcidev->dev, mem_size, bnx2fc_free_fw_resc()
|
H A D | bnx2fc_io.c | 204 u32 mem_size; bnx2fc_cmd_mgr_alloc() local 284 mem_size = num_ios * sizeof(struct io_bdt *); bnx2fc_cmd_mgr_alloc() 285 cmgr->io_bdt_pool = kmalloc(mem_size, GFP_KERNEL); bnx2fc_cmd_mgr_alloc() 291 mem_size = sizeof(struct io_bdt); bnx2fc_cmd_mgr_alloc() 293 cmgr->io_bdt_pool[i] = kmalloc(mem_size, GFP_KERNEL); bnx2fc_cmd_mgr_alloc()
|
/linux-4.4.14/drivers/net/wireless/ti/wlcore/ |
H A D | io.c | 145 wl1271_debug(DEBUG_IO, "mem_start %08X mem_size %08X", wlcore_set_partition()
|
/linux-4.4.14/drivers/gpu/drm/amd/include/ |
H A D | cgs_common.h | 138 * @mem_size: maximum amount of memory available for allocation (output) 153 uint64_t *mem_size); 555 #define cgs_gpu_mem_info(dev,type,mc_start,mc_size,mem_size) \ 556 CGS_CALL(gpu_mem_info,dev,type,mc_start,mc_size,mem_size)
|
/linux-4.4.14/drivers/bluetooth/ |
H A D | btmrvl_drv.h | 49 u32 mem_size; member in struct:memory_type_mapping
|
H A D | btmrvl_sdio.c | 1273 entry->mem_size = 0; btmrvl_sdio_dump_firmware() 1327 entry->mem_size = memory_size; btmrvl_sdio_dump_firmware() 1407 memcpy(fw_dump_ptr, entry->mem_ptr, entry->mem_size); btmrvl_sdio_dump_firmware() 1408 fw_dump_ptr += entry->mem_size; btmrvl_sdio_dump_firmware()
|
/linux-4.4.14/include/sound/ |
H A D | emu8000.h | 68 int mem_size; /* memory size */ member in struct:snd_emu8000
|
H A D | emux_synth.h | 98 int mem_size; /* memory size (in byte) */ member in struct:snd_emux
|
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/ |
H A D | boot_param.h | 25 u32 mem_size; /* each memory_map size, not the total size */ member in struct:efi_memory_map_loongson::mem_map
|
/linux-4.4.14/arch/mn10300/include/asm/ |
H A D | processor.h | 39 extern void get_mem_info(unsigned long *mem_base, unsigned long *mem_size);
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
H A D | adf_common_drv.h | 220 void *addr_ptr, int mem_size); 222 void *addr_ptr, int mem_size);
|
H A D | qat_uclo.c | 973 void *addr_ptr, int mem_size) qat_uclo_wr_mimage() 975 qat_uclo_wr_sram_by_words(handle, 0, addr_ptr, ALIGN(mem_size, 4)); qat_uclo_wr_mimage() 979 void *addr_ptr, int mem_size) qat_uclo_map_uof_obj() 987 if (!handle || !addr_ptr || mem_size < 24) qat_uclo_map_uof_obj() 992 objhdl->obj_buf = kmemdup(addr_ptr, mem_size, GFP_KERNEL); qat_uclo_map_uof_obj() 972 qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, int mem_size) qat_uclo_wr_mimage() argument 978 qat_uclo_map_uof_obj(struct icp_qat_fw_loader_handle *handle, void *addr_ptr, int mem_size) qat_uclo_map_uof_obj() argument
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
H A D | radeon_combios.c | 3231 uint32_t mem_size; combios_detect_ram() local 3237 mem_size = ram; combios_detect_ram() 3255 return mem_size; combios_detect_ram() 3263 uint32_t mem_size = 0; combios_write_ram_size() local 3276 mem_size = RBIOS16(offset + 5); combios_write_ram_size() 3283 if (!mem_size) { combios_write_ram_size() 3300 mem_size = combios_write_ram_size() 3303 if (mem_size) combios_write_ram_size() 3308 mem_size = RBIOS8(offset); combios_write_ram_size() 3310 mem_size = RBIOS8(offset); combios_write_ram_size() 3311 mem_size *= 2; /* convert to MB */ combios_write_ram_size() 3316 mem_size *= (1024 * 1024); /* convert to bytes */ combios_write_ram_size() 3317 WREG32(RADEON_CONFIG_MEMSIZE, mem_size); combios_write_ram_size()
|
/linux-4.4.14/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 326 int mem_size; bnx2i_setup_free_cid_que() local 329 mem_size = hba->max_active_conns * sizeof(u32); bnx2i_setup_free_cid_que() 330 mem_size = (mem_size + (PAGE_SIZE - 1)) & PAGE_MASK; bnx2i_setup_free_cid_que() 332 hba->cid_que.cid_que_base = kmalloc(mem_size, GFP_KERNEL); bnx2i_setup_free_cid_que() 336 mem_size = hba->max_active_conns * sizeof(struct bnx2i_conn *); bnx2i_setup_free_cid_que() 337 mem_size = (mem_size + (PAGE_SIZE - 1)) & PAGE_MASK; bnx2i_setup_free_cid_que() 338 hba->cid_que.conn_cid_tbl = kmalloc(mem_size, GFP_KERNEL); bnx2i_setup_free_cid_que()
|
/linux-4.4.14/drivers/iommu/ |
H A D | fsl_pamu.c | 1026 size_t mem_size = 0; fsl_pamu_probe() local 1088 mem_size = (PAGE_SIZE << get_order(PAACT_SIZE)) + fsl_pamu_probe() 1091 order = get_order(mem_size); fsl_pamu_probe() 1129 &ppaact_phys, mem_size, csd_port_id); fsl_pamu_probe() 1131 ret = create_csd(ppaact_phys, mem_size, csd_port_id); fsl_pamu_probe()
|
/linux-4.4.14/drivers/net/ethernet/wiznet/ |
H A D | w5100.c | 630 int mem_size; w5100_hw_probe() local 645 mem_size = resource_size(mem); w5100_hw_probe() 648 priv->indirect = mem_size < W5100_BUS_DIRECT_SIZE; w5100_hw_probe()
|
H A D | w5300.c | 550 int mem_size; w5300_hw_probe() local 565 mem_size = resource_size(mem); w5300_hw_probe() 568 priv->indirect = mem_size < W5300_BUS_DIRECT_SIZE; w5300_hw_probe()
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
H A D | qla_dbg.h | 278 uint32_t mem_size; member in struct:qla2xxx_fw_dump
|
H A D | qla_init.c | 1520 uint32_t dump_size, fixed_size, mem_size, req_q_size, rsp_q_size, qla2x00_alloc_fw_dump() local 1536 dump_size = fixed_size = mem_size = eft_size = fce_size = mq_size = 0; qla2x00_alloc_fw_dump() 1546 mem_size = (ha->fw_memory_size - 0x11000 + 1) * qla2x00_alloc_fw_dump() 1558 mem_size = (ha->fw_memory_size - 0x100000 + 1) * qla2x00_alloc_fw_dump() 1659 dump_size += fixed_size + mem_size + req_q_size + rsp_q_size + eft_size; qla2x00_alloc_fw_dump() 1699 ha->fw_dump->mem_size = htonl(mem_size); qla2x00_alloc_fw_dump()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
H A D | c2.c | 606 c2_port->mem_size = tx_size + rx_size; c2_up() 607 c2_port->mem = pci_zalloc_consistent(c2dev->pcidev, c2_port->mem_size, c2_up() 683 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, c2_up() 724 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, c2_down()
|
H A D | c2.h | 368 unsigned long mem_size; member in struct:c2_port
|
/linux-4.4.14/drivers/mmc/host/ |
H A D | davinci_mmc.c | 1236 size_t mem_size; davinci_mmcsd_probe() local 1252 mem_size = resource_size(r); davinci_mmcsd_probe() 1253 mem = request_mem_region(r->start, mem_size, pdev->name); davinci_mmcsd_probe() 1278 host->base = ioremap(mem->start, mem_size); davinci_mmcsd_probe()
|
/linux-4.4.14/arch/blackfin/kernel/ |
H A D | setup.c | 470 unsigned long long start_at, mem_size; parse_memmap() local 475 mem_size = memparse(arg, &arg); parse_memmap() 478 add_memory_region(start_at, mem_size, BFIN_MEMMAP_RAM); parse_memmap() 481 add_memory_region(start_at, mem_size, BFIN_MEMMAP_RESERVED); parse_memmap()
|
/linux-4.4.14/arch/tile/kernel/ |
H A D | setup.c | 179 u64 start_at, mem_size; setup_memmap() local 190 mem_size = memparse(p, &p); setup_memmap() 200 add_memmap_region(start_at, mem_size); setup_memmap() 202 if (mem_size == 0) setup_memmap() 204 maxmem_pfn = (mem_size >> HPAGE_SHIFT) << setup_memmap()
|
/linux-4.4.14/arch/powerpc/mm/ |
H A D | hash_utils_64.c | 593 unsigned long mem_size, rnd_mem_size, pteg_count, psize; htab_get_table_size() local 604 /* round mem_size up to next power of 2 */ htab_get_table_size() 605 mem_size = memblock_phys_mem_size(); htab_get_table_size() 606 rnd_mem_size = 1UL << __ilog2(mem_size); htab_get_table_size() 607 if (rnd_mem_size < mem_size) htab_get_table_size()
|
/linux-4.4.14/arch/arm/probes/kprobes/ |
H A D | test-core.c | 1486 size_t mem_size = 0; check_test_results() local 1496 mem_size = expected_memory_size(mem); check_test_results() 1497 if (memcmp(expected_memory, mem, mem_size)) { check_test_results() 1516 print_memory(expected_memory, mem_size); check_test_results() 1518 print_memory(mem, mem_size); check_test_results()
|
/linux-4.4.14/arch/parisc/include/asm/ |
H A D | pdcpat.h | 264 unsigned long mem_size; member in struct:pdc_pat_cell_info_rtn_block
|
/linux-4.4.14/drivers/scsi/pm8001/ |
H A D | pm8001_sas.c | 107 * @mem_size: memory size. 111 u32 *pphys_addr_lo, u32 mem_size, u32 align) pm8001_mem_alloc() 119 mem_virt_alloc = pci_zalloc_consistent(pdev, mem_size + align, pm8001_mem_alloc() 109 pm8001_mem_alloc(struct pci_dev *pdev, void **virt_addr, dma_addr_t *pphys_addr, u32 *pphys_addr_hi, u32 *pphys_addr_lo, u32 mem_size, u32 align) pm8001_mem_alloc() argument
|
H A D | pm8001_sas.h | 653 u32 mem_size, u32 align);
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
H A D | davinci_cpdma.c | 88 int desc_size, mem_size; member in struct:cpdma_desc_pool 168 pool->mem_size = size; cpdma_desc_pool_create() 201 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumap, cpdma_desc_pool_destroy()
|
/linux-4.4.14/arch/frv/kernel/ |
H A D | setup.c | 737 unsigned long long mem_size; parse_cmdline_early() local 739 mem_size = memparse(cmdline + 4, &cmdline); parse_cmdline_early() 740 memory_end = memory_start + mem_size; parse_cmdline_early()
|
/linux-4.4.14/drivers/input/touchscreen/ |
H A D | atmel_mxt_ts.c | 220 u16 mem_size; member in struct:mxt_data 1419 config_mem_size = data->mem_size - cfg_start_ofs; mxt_update_cfg() 1548 data->mem_size = 0; mxt_get_object_table() 1619 if (end_address >= data->mem_size) mxt_get_object_table() 1620 data->mem_size = end_address + 1; mxt_get_object_table()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_hw.c | 1619 int mem_size; ocrdma_build_q_conf() local 1622 mem_size = *num_entries * entry_size; ocrdma_build_q_conf() 1625 if (mem_size <= (OCRDMA_Q_PAGE_BASE_SIZE << i)) ocrdma_build_q_conf() 1630 mem_size = roundup(mem_size, ocrdma_build_q_conf() 1633 mem_size / ((OCRDMA_Q_PAGE_BASE_SIZE << i) / OCRDMA_MAX_Q_PAGES); ocrdma_build_q_conf() 1635 *num_entries = mem_size / entry_size; ocrdma_build_q_conf()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_drv.c | 697 uint64_t mem_size = vmw_driver_load() local 701 dev_priv->max_mob_pages = mem_size * 1024 / PAGE_SIZE; vmw_driver_load()
|
/linux-4.4.14/drivers/block/ |
H A D | skd_main.c | 274 u32 mem_size[SKD_MAX_BARS]; member in struct:skd_device 4876 skdev->mem_size[i] = (u32)pci_resource_len(pdev, i); skd_pci_probe() 4878 skdev->mem_size[i]); skd_pci_probe() 4888 (uint64_t)skdev->mem_phys[i], skdev->mem_size[i]); skd_pci_probe() 5073 skdev->mem_size[i] = (u32)pci_resource_len(pdev, i); skd_pci_resume() 5075 skdev->mem_size[i]); skd_pci_resume() 5085 (uint64_t)skdev->mem_phys[i], skdev->mem_size[i]); skd_pci_resume()
|
/linux-4.4.14/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 1204 int mem_size; init_nic() local 1361 mem_size = 32; init_nic() 1363 mem_size = 64; init_nic() 1368 mem_share = (mem_size / config->rx_ring_num + init_nic() 1369 mem_size % config->rx_ring_num); init_nic() 1373 mem_share = (mem_size / config->rx_ring_num); init_nic() 1377 mem_share = (mem_size / config->rx_ring_num); init_nic() 1381 mem_share = (mem_size / config->rx_ring_num); init_nic() 1385 mem_share = (mem_size / config->rx_ring_num); init_nic() 1389 mem_share = (mem_size / config->rx_ring_num); init_nic() 1393 mem_share = (mem_size / config->rx_ring_num); init_nic() 1397 mem_share = (mem_size / config->rx_ring_num); init_nic()
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
H A D | skge.c | 2547 skge->mem_size = tx_size + rx_size; skge_up() 2548 skge->mem = pci_alloc_consistent(hw->pdev, skge->mem_size, &skge->dma); skge_up() 2554 if (upper_32_bits(skge->dma) != upper_32_bits(skge->dma + skge->mem_size)) { skge_up() 2560 memset(skge->mem, 0, skge->mem_size); skge_up() 2628 pci_free_consistent(hw->pdev, skge->mem_size, skge->mem, skge->dma); skge_up() 2718 pci_free_consistent(hw->pdev, skge->mem_size, skge->mem, skge->dma); skge_down()
|
H A D | skge.h | 2473 unsigned long mem_size; member in struct:skge_port
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 1702 u16 mem_size; bnxt_alloc_rx_rings() local 1710 mem_size = rxr->rx_agg_bmap_size / 8; bnxt_alloc_rx_rings() 1711 rxr->rx_agg_bmap = kzalloc(mem_size, GFP_KERNEL); bnxt_alloc_rx_rings() 2272 int mem_size = (BNXT_MAX_UC_ADDRS - 1) * ETH_ALEN; bnxt_alloc_vnic_attributes() local 2274 if (mem_size > 0) { bnxt_alloc_vnic_attributes() 2275 vnic->uc_list = kmalloc(mem_size, GFP_KERNEL); bnxt_alloc_vnic_attributes()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | sdio.c | 3552 size_t mem_size) brcmf_sdio_bus_get_memdump() 3563 mem_size); brcmf_sdio_bus_get_memdump() 3568 while (offset < mem_size) { brcmf_sdio_bus_get_memdump() 3569 len = ((offset + MEMBLOCK) < mem_size) ? MEMBLOCK : brcmf_sdio_bus_get_memdump() 3570 mem_size - offset; brcmf_sdio_bus_get_memdump() 3551 brcmf_sdio_bus_get_memdump(struct device *dev, void *data, size_t mem_size) brcmf_sdio_bus_get_memdump() argument
|
/linux-4.4.14/drivers/memory/ |
H A D | omap-gpmc.c | 246 static resource_size_t phys_base, mem_size; variable 2100 mem_size = resource_size(res); gpmc_probe()
|
/linux-4.4.14/drivers/message/fusion/ |
H A D | mptbase.h | 626 int mem_size; /* mmap memory size */ member in struct:_MPT_ADAPTER
|
H A D | mptbase.c | 1719 ioc->mem_size = msize; mpt_mapresources()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | t3_hw.c | 2544 * @mem_size: the size of the payload memory 2551 static inline unsigned int pm_num_pages(unsigned int mem_size, pm_num_pages() argument 2554 unsigned int n = mem_size / pg_size; pm_num_pages()
|