Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/8390/
Dmac8390.c330 dev->mem_start = dev->base_addr + offset; in mac8390_rsrc_init()
332 dev->base_addr = dev->mem_start + 0x10000; in mac8390_rsrc_init()
338 offset = mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
342 dev->mem_end = dev->mem_start + offset; in mac8390_rsrc_init()
349 dev->mem_start = (int)(board->slot_addr + in mac8390_rsrc_init()
351 dev->mem_end = dev->mem_start + in mac8390_rsrc_init()
352 mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
357 dev->mem_start = (int)(board->slot_addr + in mac8390_rsrc_init()
359 dev->mem_end = dev->mem_start + in mac8390_rsrc_init()
360 mac8390_memsize(dev->mem_start); in mac8390_rsrc_init()
[all …]
Dwd.c93 int mem_start = dev->mem_start; in do_wd_probe() local
121 dev->mem_start = mem_start; in do_wd_probe()
184 if ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) { in wd_probe1()
187 dev->mem_start = 0; in wd_probe1()
215 dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; in wd_probe1()
258 dev->mem_start = WD_SHMEM; in wd_probe1()
260 if (dev->mem_start == 0) { in wd_probe1()
265 dev->mem_start = 0xd0000; in wd_probe1()
266 pr_cont(" assigning address %#lx", dev->mem_start); in wd_probe1()
272 dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); in wd_probe1()
[all …]
/linux-6.1.9/arch/arm/boot/compressed/
Dfdt_check_mem_start.c63 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) in fdt_check_mem_start() argument
73 return mem_start; in fdt_check_mem_start()
76 return mem_start; in fdt_check_mem_start()
82 return mem_start; in fdt_check_mem_start()
94 return mem_start; in fdt_check_mem_start()
98 return mem_start; in fdt_check_mem_start()
145 } else if (mem_start >= base && mem_start < end) { in fdt_check_mem_start()
147 return mem_start; in fdt_check_mem_start()
157 return mem_start; in fdt_check_mem_start()
/linux-6.1.9/tools/perf/tests/
Dvmlinux-kallsyms.c124 u64 mem_start, mem_end; in test__vmlinux_matches_kallsyms() local
223 mem_start = vmlinux_map->unmap_ip(vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms()
226 first_pair = machine__find_kernel_symbol(&kallsyms, mem_start, NULL); in test__vmlinux_matches_kallsyms()
229 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms()
244 mem_start, sym->name, mem_end, in test__vmlinux_matches_kallsyms()
257 if (UM(pair->start) == mem_start) in test__vmlinux_matches_kallsyms()
261 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms()
264 mem_start, sym->name, first_pair->name); in test__vmlinux_matches_kallsyms()
269 } else if (mem_start == kallsyms.vmlinux_map->end) { in test__vmlinux_matches_kallsyms()
282 mem_start, sym->name); in test__vmlinux_matches_kallsyms()
[all …]
/linux-6.1.9/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.1.9/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.c337 u64 mem_end, mem_start, mem_size; in init_node_memblock() local
343 mem_start = md->phys_addr; in init_node_memblock()
345 mem_end = mem_start + mem_size; in init_node_memblock()
354 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
359 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
367 mem_type, mem_start, mem_size); in init_node_memblock()
/linux-6.1.9/arch/arm/mach-keystone/
Dkeystone.c68 u64 mem_start, mem_end; in keystone_pv_fixup() local
70 mem_start = memblock_start_of_DRAM(); in keystone_pv_fixup()
74 if (mem_start >= KEYSTONE_LOW_PHYS_START && in keystone_pv_fixup()
78 if (mem_start < KEYSTONE_HIGH_PHYS_START || in keystone_pv_fixup()
81 mem_start, mem_end); in keystone_pv_fixup()
/linux-6.1.9/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.1.9/drivers/net/wireless/intersil/hostap/
Dhostap_pci.c35 void __iomem *mem_start; member
68 writeb(v, hw_priv->mem_start + a); in hfa384x_outb_debug()
85 v = readb(hw_priv->mem_start + a); in hfa384x_inb_debug()
104 writew(v, hw_priv->mem_start + a); in hfa384x_outw_debug()
121 v = readw(hw_priv->mem_start + a); in hfa384x_inw_debug()
142 writeb(v, hw_priv->mem_start + a); in hfa384x_outb()
151 return readb(hw_priv->mem_start + a); in hfa384x_inb()
160 writew(v, hw_priv->mem_start + a); in hfa384x_outw()
169 return readw(hw_priv->mem_start + a); in hfa384x_inw()
331 hw_priv->mem_start = mem; in prism2_pci_probe()
[all …]
/linux-6.1.9/arch/mips/loongson64/
Dinit.c53 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local
67 mem_start = loongson_memmap->map[i].mem_start; in szmem()
72 start_pfn = ((node_id << 44) + mem_start) >> PAGE_SHIFT; in szmem()
77 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
86 (u32)node_id, mem_type, mem_start, mem_size); in szmem()
87 memblock_reserve(((node_id << 44) + mem_start), mem_size << 20); in szmem()
/linux-6.1.9/arch/powerpc/kernel/
Dprom_init.c2476 static void __init *make_room(unsigned long *mem_start, unsigned long *mem_end, in make_room() argument
2481 *mem_start = ALIGN(*mem_start, align); in make_room()
2482 while ((*mem_start + needed) > *mem_end) { in make_room()
2500 ret = (void *)*mem_start; in make_room()
2501 *mem_start += needed; in make_room()
2506 #define dt_push_token(token, mem_start, mem_end) do { \ argument
2507 void *room = make_room(mem_start, mem_end, 4, 4); \
2532 unsigned long *mem_start, in scan_dt_build_strings() argument
2545 namep = make_room(mem_start, mem_end, MAX_PROPERTY_NAME, 1); in scan_dt_build_strings()
2548 *mem_start = (unsigned long)namep; in scan_dt_build_strings()
[all …]
/linux-6.1.9/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.1.9/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.1.9/include/linux/
Dvlynq.h55 u32 mem_start, mem_end; member
109 return dev->mem_start; in vlynq_mem_start()
119 return dev->mem_end - dev->mem_start + 1; in vlynq_mem_len()
/linux-6.1.9/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.1.9/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()
/linux-6.1.9/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.1.9/net/core/
Ddev_ioctl.c91 cifmap->mem_start = dev->mem_start; in dev_getifmap()
101 ifmap->mem_start = dev->mem_start; in dev_getifmap()
120 .mem_start = cifmap->mem_start, in dev_setifmap()
/linux-6.1.9/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()

1234