Home
last modified time | relevance | path

Searched refs:mem_start (Results 1 – 25 of 85) sorted by relevance

1234

/linux-6.12.1/drivers/net/arcnet/
Darc-rimi.c73 dev->dev_addr[0], dev->mem_start, dev->irq); in arcrimi_probe()
76 if (dev->mem_start <= 0 || dev->irq <= 0) { in arcrimi_probe()
91 if (!request_mem_region(dev->mem_start, MIRROR_SIZE, "arcnet (90xx)")) { in arcrimi_probe()
131 p = ioremap(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
133 release_mem_region(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
141 release_mem_region(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
146 shmem = dev->mem_start; in arcrimi_found()
173 dev->mem_start = first_mirror; in arcrimi_found()
195 if (!request_mem_region(dev->mem_start, in arcrimi_found()
196 dev->mem_end - dev->mem_start + 1, in arcrimi_found()
[all …]
Dcom90xx.c499 dev->mem_start = first_mirror; in com90xx_found()
505 if (!request_mem_region(dev->mem_start, in com90xx_found()
506 dev->mem_end - dev->mem_start + 1, in com90xx_found()
526 lp->mem_start = ioremap(dev->mem_start, in com90xx_found()
527 dev->mem_end - dev->mem_start + 1); in com90xx_found()
528 if (!lp->mem_start) { in com90xx_found()
534 arcnet_set_addr(dev, arcnet_readb(lp->mem_start, in com90xx_found()
541 dev->base_addr, dev->irq, dev->mem_start, in com90xx_found()
542 (dev->mem_end - dev->mem_start + 1) / mirror_size, in com90xx_found()
552 iounmap(lp->mem_start); in com90xx_found()
[all …]
/linux-6.12.1/drivers/net/wireless/ti/wl1251/
Dio.c121 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument
133 mem_start, mem_size); in wl1251_set_partition()
144 mem_start, mem_size); in wl1251_set_partition()
149 if ((mem_start < reg_start) && in wl1251_set_partition()
150 ((mem_start + mem_size) > reg_start)) { in wl1251_set_partition()
155 mem_size = reg_start - mem_start; in wl1251_set_partition()
157 mem_start, mem_size); in wl1251_set_partition()
160 } else if ((reg_start < mem_start) && in wl1251_set_partition()
161 ((reg_start + reg_size) > mem_start)) { in wl1251_set_partition()
166 reg_size = mem_start - reg_start; in wl1251_set_partition()
[all …]
/linux-6.12.1/drivers/net/ethernet/8390/
Dmac8390.c328 dev->mem_start = dev->base_addr + offset; in mac8390_rsrc_init()
330 dev->base_addr = dev->mem_start + 0x10000; in mac8390_rsrc_init()
336 offset = mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
340 dev->mem_end = dev->mem_start + offset; in mac8390_rsrc_init()
347 dev->mem_start = (int)(board->slot_addr + in mac8390_rsrc_init()
349 dev->mem_end = dev->mem_start + in mac8390_rsrc_init()
350 mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
355 dev->mem_start = (int)(board->slot_addr + in mac8390_rsrc_init()
357 dev->mem_end = dev->mem_start + in mac8390_rsrc_init()
358 mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
[all …]
Dwd.c92 int mem_start = dev->mem_start; in do_wd_probe() local
120 dev->mem_start = mem_start; in do_wd_probe()
183 if ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) { in wd_probe1()
186 dev->mem_start = 0; in wd_probe1()
214 dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; in wd_probe1()
257 dev->mem_start = WD_SHMEM; in wd_probe1()
259 if (dev->mem_start == 0) { in wd_probe1()
264 dev->mem_start = 0xd0000; in wd_probe1()
265 pr_cont(" assigning address %#lx", dev->mem_start); in wd_probe1()
271 dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); in wd_probe1()
[all …]
/linux-6.12.1/arch/arm/boot/compressed/
Dfdt_check_mem_start.c64 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) in fdt_check_mem_start() argument
74 return mem_start; in fdt_check_mem_start()
77 return mem_start; in fdt_check_mem_start()
83 return mem_start; in fdt_check_mem_start()
95 return mem_start; in fdt_check_mem_start()
99 return mem_start; in fdt_check_mem_start()
146 } else if (mem_start >= base && mem_start < end) { in fdt_check_mem_start()
148 return mem_start; in fdt_check_mem_start()
158 return mem_start; in fdt_check_mem_start()
/linux-6.12.1/tools/perf/tests/
Dvmlinux-kallsyms.c150 u64 mem_start = map__unmap_ip(args->vmlinux_map, map__start(map)); in test__vmlinux_matches_kallsyms_cb2() local
153 pair = maps__find(args->kallsyms.kmaps, mem_start); in test__vmlinux_matches_kallsyms_cb2()
155 if (pair != NULL && !map__priv(pair) && map__start(pair) == mem_start) { in test__vmlinux_matches_kallsyms_cb2()
198 u64 mem_start, mem_end; in test__vmlinux_matches_kallsyms() local
297 mem_start = map__unmap_ip(args.vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms()
300 first_pair = machine__find_kernel_symbol(&args.kallsyms, mem_start, NULL); in test__vmlinux_matches_kallsyms()
303 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms()
318 mem_start, sym->name, mem_end, in test__vmlinux_matches_kallsyms()
332 if (UM(pair->start) == mem_start) in test__vmlinux_matches_kallsyms()
336 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms()
[all …]
/linux-6.12.1/drivers/usb/isp1760/
Disp1760-if.c34 resource_size_t mem_start; in isp1761_pci_init() local
42 mem_start = pci_resource_start(dev, 3); in isp1761_pci_init()
49 if (!request_mem_region(mem_start, mem_length, "ISP-PCI")) { in isp1761_pci_init()
55 iobase = ioremap(mem_start, mem_length); in isp1761_pci_init()
58 release_mem_region(mem_start, mem_length); in isp1761_pci_init()
87 release_mem_region(mem_start, mem_length); in isp1761_pci_init()
98 mem_start = pci_resource_start(dev, 0); in isp1761_pci_init()
101 if (!request_mem_region(mem_start, mem_length, "ISP1761 IO MEM")) { in isp1761_pci_init()
106 iobase = ioremap(mem_start, mem_length); in isp1761_pci_init()
109 release_mem_region(mem_start, mem_length); in isp1761_pci_init()
[all …]
/linux-6.12.1/arch/loongarch/kernel/
Dmem.c16 u64 mem_start, mem_end, mem_size; in memblock_init() local
22 mem_start = md->phys_addr; in memblock_init()
24 mem_end = mem_start + mem_size; in memblock_init()
33 memblock_add(mem_start, mem_size); in memblock_init()
40 memblock_add(mem_start, mem_size); in memblock_init()
47 memblock_reserve(mem_start, mem_size); in memblock_init()
Dnuma.c258 u64 mem_end, mem_start, mem_size; in init_node_memblock() local
264 mem_start = md->phys_addr; in init_node_memblock()
266 mem_end = mem_start + mem_size; in init_node_memblock()
275 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
280 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
288 mem_type, mem_start, mem_size); in init_node_memblock()
/linux-6.12.1/arch/mips/loongson64/
Dinit.c52 phys_addr_t node_id, mem_start, mem_size; in szmem() local
73 mem_start = (node_id << 44) | loongson_memmap->map[i].mem_start; in szmem()
80 (u32)node_id, mem_type, &mem_start, &mem_size); in szmem()
81 memblock_add_node(mem_start, mem_size, node, in szmem()
90 (u32)node_id, mem_type, &mem_start, &mem_size); in szmem()
91 memblock_reserve(mem_start, mem_size); in szmem()
97 (u32)node_id, mem_type, &mem_start, &mem_size); in szmem()
/linux-6.12.1/arch/mips/dec/prom/
Dmemory.c62 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local
75 mem_start += (8 * bm->pagesize); in rex_setup_memory_region()
77 memblock_add(mem_start, mem_size); in rex_setup_memory_region()
78 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region()
83 memblock_add(mem_start, mem_size); in rex_setup_memory_region()
/linux-6.12.1/arch/arm/mach-keystone/
Dkeystone.c107 u64 mem_start, mem_end; in keystone_pv_fixup() local
109 mem_start = memblock_start_of_DRAM(); in keystone_pv_fixup()
113 if (mem_start >= KEYSTONE_LOW_PHYS_START && in keystone_pv_fixup()
117 if (mem_start < KEYSTONE_HIGH_PHYS_START || in keystone_pv_fixup()
120 mem_start, mem_end); in keystone_pv_fixup()
/linux-6.12.1/arch/powerpc/kernel/
Dprom_init.c2484 static void __init *make_room(unsigned long *mem_start, unsigned long *mem_end, in make_room() argument
2489 *mem_start = ALIGN(*mem_start, align); in make_room()
2490 while ((*mem_start + needed) > *mem_end) { in make_room()
2508 ret = (void *)*mem_start; in make_room()
2509 *mem_start += needed; in make_room()
2514 #define dt_push_token(token, mem_start, mem_end) do { \ argument
2515 void *room = make_room(mem_start, mem_end, 4, 4); \
2540 unsigned long *mem_start, in scan_dt_build_strings() argument
2553 namep = make_room(mem_start, mem_end, MAX_PROPERTY_NAME, 1); in scan_dt_build_strings()
2556 *mem_start = (unsigned long)namep; in scan_dt_build_strings()
[all …]
/linux-6.12.1/drivers/net/ethernet/amd/
Ddeclance.c453 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_init_ring()
559 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_rx()
646 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_tx()
782 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_open()
902 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_start_xmit()
946 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_load_multicast()
975 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_set_multicast()
1076 dev->mem_start = CKSEG1ADDR(0x00020000); in dec_lance_probe()
1077 dev->mem_end = dev->mem_start + 0x00020000; in dec_lance_probe()
1082 memset((void *)dev->mem_start, 0, in dec_lance_probe()
[all …]
Da2065.c681 unsigned long mem_start = board + A2065_RAM; in a2065_init_one() local
691 r2 = request_mem_region(mem_start, A2065_RAM_SIZE, "RAM"); in a2065_init_one()
700 release_mem_region(mem_start, A2065_RAM_SIZE); in a2065_init_one()
723 dev->mem_start = (unsigned long)ZTWO_VADDR(mem_start); in a2065_init_one()
724 dev->mem_end = dev->mem_start + A2065_RAM_SIZE; in a2065_init_one()
727 priv->init_block = (struct lance_init_block *)dev->mem_start; in a2065_init_one()
747 release_mem_region(mem_start, A2065_RAM_SIZE); in a2065_init_one()
767 release_mem_region(ZTWO_PADDR(dev->mem_start), A2065_RAM_SIZE); in a2065_remove_one()
Dariadne.c119 volatile struct lancedata *lancedata = (struct lancedata *)dev->mem_start; in ariadne_init_ring()
691 release_mem_region(ZTWO_PADDR(dev->mem_start), ARIADNE_RAM_SIZE); in ariadne_remove_one()
717 unsigned long mem_start = board + ARIADNE_RAM; in ariadne_init_one() local
727 r2 = request_mem_region(mem_start, ARIADNE_RAM_SIZE, "RAM"); in ariadne_init_one()
736 release_mem_region(mem_start, ARIADNE_RAM_SIZE); in ariadne_init_one()
752 dev->mem_start = (unsigned long)ZTWO_VADDR(mem_start); in ariadne_init_one()
753 dev->mem_end = dev->mem_start + ARIADNE_RAM_SIZE; in ariadne_init_one()
761 release_mem_region(mem_start, ARIADNE_RAM_SIZE); in ariadne_init_one()
/linux-6.12.1/arch/powerpc/platforms/powermac/
Dbootx_init.c352 unsigned long mem_start, mem_end; in bootx_flatten_dt() local
360 mem_start = mem_end = ALIGN(((unsigned long)bi) + start, 4); in bootx_flatten_dt()
361 DBG("Boot params header at: %x\n", mem_start); in bootx_flatten_dt()
362 hdr = (struct boot_param_header *)mem_start; in bootx_flatten_dt()
365 hdr->off_mem_rsvmap = ((unsigned long)rsvmap) - mem_start; in bootx_flatten_dt()
386 hdr->off_dt_strings = bootx_dt_strbase - mem_start; in bootx_flatten_dt()
392 hdr->off_dt_struct = mem_end - mem_start; in bootx_flatten_dt()
399 hdr->totalsize = mem_end - mem_start; in bootx_flatten_dt()
410 rsvmap[0] = mem_start; in bootx_flatten_dt()
/linux-6.12.1/arch/arm/mm/
Dpmsa-v7.c234 phys_addr_t mem_start; in pmsav7_adjust_lowmem_bounds() local
276 mem_start = reg_start; in pmsav7_adjust_lowmem_bounds()
278 specified_mem_size = mem_end - mem_start; in pmsav7_adjust_lowmem_bounds()
294 num = allocate_region(mem_start, specified_mem_size, mem_max_regions, mem); in pmsav7_adjust_lowmem_bounds()
308 memblock_remove(mem_start + total_mem_size, in pmsav7_adjust_lowmem_bounds()
/linux-6.12.1/drivers/net/
DSpace.c99 dev->mem_start = s[i].map.mem_start; in netdev_boot_setup_check()
158 map.mem_start = ints[3]; in netdev_boot_setup()
Dsb1000.c185 dev->mem_start = ioaddr[1]; in sb1000_probe_one()
191 dev->mem_start, serial_number, dev->irq); in sb1000_probe_one()
242 release_region(dev->mem_start, 16); in sb1000_remove_one()
916 ioaddr[1] = dev->mem_start; in sb1000_error_dpc()
941 ioaddr[1] = dev->mem_start; in sb1000_open()
1010 ioaddr[1] = dev->mem_start; in sb1000_siocdevprivate()
1106 ioaddr[1] = dev->mem_start; in sb1000_interrupt()
1159 ioaddr[1] = dev->mem_start; in sb1000_close()
/linux-6.12.1/drivers/net/ethernet/cirrus/
Dmac89x0.c143 return swab16(nubus_readw(dev->mem_start + portno)); in readreg()
149 nubus_writew(swab16(value), dev->mem_start + portno); in writereg()
213 dev->mem_start = (unsigned long) in mac89x0_device_probe()
215 dev->mem_end = dev->mem_start + 0x1000; in mac89x0_device_probe()
359 skb_copy_from_linear_data(skb, (void *)(dev->mem_start + PP_TxFrame), in net_send_packet()
467 skb_copy_to_linear_data(skb, (void *)(dev->mem_start + PP_RxFrame), in net_rx()
/linux-6.12.1/net/core/
Ddev_ioctl.c92 cifmap->mem_start = dev->mem_start; in dev_getifmap()
102 ifmap->mem_start = dev->mem_start; in dev_getifmap()
121 .mem_start = cifmap->mem_start, in dev_setifmap()
/linux-6.12.1/drivers/net/ethernet/
Dethoc.c302 static int ethoc_init_ring(struct ethoc *dev, unsigned long mem_start) in ethoc_init_ring() argument
315 bd.addr = mem_start; in ethoc_init_ring()
738 ethoc_init_ring(priv, dev->mem_start); in ethoc_open()
756 dev->base_addr, dev->mem_start, dev->mem_end); in ethoc_open()
987 ethoc_init_ring(priv, dev->mem_start); in ethoc_set_ringparam()
1075 netdev->mem_start = mem->start; in ethoc_probe()
1101 netdev->mem_start, resource_size(mem)); in ethoc_probe()
1110 buffer_size, (void *)&netdev->mem_start, in ethoc_probe()
1118 netdev->mem_end = netdev->mem_start + buffer_size; in ethoc_probe()
1126 128, (netdev->mem_end - netdev->mem_start + 1) / ETHOC_BUFSIZ); in ethoc_probe()
/linux-6.12.1/drivers/net/ethernet/i825xx/
D82596.c1171 dev->mem_start = (int)__get_free_pages(GFP_ATOMIC, 0); in i82596_probe()
1172 if (!dev->mem_start) { in i82596_probe()
1191 dev->ml_priv = (void *)(dev->mem_start); in i82596_probe()
1201 cache_push(virt_to_phys((void *)(dev->mem_start)), 4096); in i82596_probe()
1202 cache_clear(virt_to_phys((void *)(dev->mem_start)), 4096); in i82596_probe()
1203 kernel_set_cachemode((void *)(dev->mem_start), 4096, IOMAP_NOCACHE_SER); in i82596_probe()
1219 kernel_set_cachemode((void *)(dev->mem_start), 4096, in i82596_probe()
1222 free_page ((u32)(dev->mem_start)); in i82596_probe()
1530 kernel_set_cachemode((void *)(dev_82596->mem_start), 4096, in i82596_cleanup()
1533 free_page ((u32)(dev_82596->mem_start)); in i82596_cleanup()

1234