Home
last modified time | relevance | path

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

12345

/linux-2.6.39/drivers/net/arcnet/
Darc-rimi.c92 dev->dev_addr[0], dev->mem_start, dev->irq); in arcrimi_probe()
94 if (dev->mem_start <= 0 || dev->irq <= 0) { in arcrimi_probe()
110 if (!request_mem_region(dev->mem_start, MIRROR_SIZE, "arcnet (90xx)")) { in arcrimi_probe()
150 p = ioremap(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
152 release_mem_region(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
160 release_mem_region(dev->mem_start, MIRROR_SIZE); in arcrimi_found()
165 shmem = dev->mem_start; in arcrimi_found()
191 dev->mem_start = first_mirror; in arcrimi_found()
214 if (!request_mem_region(dev->mem_start, in arcrimi_found()
215 dev->mem_end - dev->mem_start + 1, in arcrimi_found()
[all …]
Dcom90xx.c495 dev->mem_start = first_mirror; in com90xx_found()
501 if (!request_mem_region(dev->mem_start, dev->mem_end - dev->mem_start + 1, "arcnet (90xx)")) in com90xx_found()
520 lp->mem_start = ioremap(dev->mem_start, dev->mem_end - dev->mem_start + 1); in com90xx_found()
521 if (!lp->mem_start) { in com90xx_found()
527 dev->dev_addr[0] = readb(lp->mem_start + 1); in com90xx_found()
534 dev->base_addr, dev->irq, dev->mem_start, in com90xx_found()
535 (dev->mem_end - dev->mem_start + 1) / mirror_size, mirror_size); in com90xx_found()
544 iounmap(lp->mem_start); in com90xx_found()
548 release_mem_region(dev->mem_start, dev->mem_end - dev->mem_start + 1); in com90xx_found()
606 if (readb(lp->mem_start) != TESTvalue) { in com90xx_reset()
[all …]
/linux-2.6.39/drivers/net/wireless/wl1251/
Dio.c135 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument
141 mem_start, mem_size); in wl1251_set_partition()
152 mem_start, mem_size); in wl1251_set_partition()
157 if ((mem_start < reg_start) && 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()
168 } else if ((reg_start < mem_start) && in wl1251_set_partition()
169 ((reg_start + reg_size) > mem_start)) { in wl1251_set_partition()
174 reg_size = mem_start - reg_start; in wl1251_set_partition()
[all …]
/linux-2.6.39/drivers/net/
Dmac8390.c342 dev->mem_start = dev->base_addr + offset; in mac8390_init()
344 dev->base_addr = dev->mem_start + 0x10000; in mac8390_init()
350 offset = mac8390_memsize(dev->mem_start); in mac8390_init()
354 dev->mem_end = dev->mem_start + offset; in mac8390_init()
361 dev->mem_start = (int)(ndev->board->slot_addr + in mac8390_init()
363 dev->mem_end = dev->mem_start + in mac8390_init()
364 mac8390_memsize(dev->mem_start); in mac8390_init()
369 dev->mem_start = (int)(ndev->board->slot_addr + in mac8390_init()
371 dev->mem_end = dev->mem_start + in mac8390_init()
372 mac8390_memsize(dev->mem_start); in mac8390_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()
183 if ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) { in wd_probe1()
185 dev->mem_start = 0; in wd_probe1()
213 dev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12; in wd_probe1()
255 dev->mem_start = WD_SHMEM; in wd_probe1()
257 if (dev->mem_start == 0) { in wd_probe1()
262 dev->mem_start = 0xd0000; in wd_probe1()
263 printk(" assigning address %#lx", dev->mem_start); in wd_probe1()
269 dev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19); in wd_probe1()
[all …]
Dlne390.c108 int mem_start = dev->mem_start; in do_lne390_probe() local
137 dev->mem_start = mem_start; in do_lne390_probe()
224 if (dev->mem_start == 0) { in lne390_probe1()
228 dev->mem_start = shmem_mapB[mem_reg] * 0x10000; in lne390_probe1()
230 dev->mem_start = shmem_mapA[mem_reg] * 0x10000; in lne390_probe1()
234 dev->mem_start &= 0xfff0000; in lne390_probe1()
239 LNE390_STOP_PG/4, dev->mem_start); in lne390_probe1()
247 ei_status.mem = ioremap(dev->mem_start, LNE390_STOP_PG*0x100); in lne390_probe1()
258 dev->mem_start = (unsigned long)ei_status.mem; in lne390_probe1()
259 dev->mem_end = dev->mem_start + (LNE390_STOP_PG - LNE390_START_PG)*256; in lne390_probe1()
[all …]
Dac3200.c104 int mem_start = dev->mem_start; in do_ac3200_probe() local
118 dev->mem_start = mem_start; in do_ac3200_probe()
222 if (dev->mem_start) { /* Override the value from the board. */ in ac_probe1()
224 if (addrmap[i] == dev->mem_start) in ac_probe1()
233 dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); in ac_probe1()
236 dev->name, ioaddr, AC_STOP_PG/4, dev->mem_start); in ac_probe1()
244 ei_status.mem = ioremap(dev->mem_start, AC_STOP_PG*0x100); in ac_probe1()
255 dev->mem_start = (unsigned long)ei_status.mem; in ac_probe1()
256 dev->mem_end = dev->mem_start + (AC_STOP_PG - AC_START_PG)*256; in ac_probe1()
394 dev->mem_start = mem[this_dev]; /* Currently ignored by driver */ in ac3200_module_init()
Des3210.c128 int mem_start = dev->mem_start; in do_es_probe() local
147 dev->mem_start = mem_start; in do_es_probe()
242 if (dev->mem_start == 0) { in es_probe1()
251 dev->mem_start = 0xC0000 + mem_bits*0x4000; in es_probe1()
257 ei_status.mem = ioremap(dev->mem_start, (ES_STOP_PG - ES_START_PG)*256); in es_probe1()
264 dev->mem_end = dev->mem_start + (ES_STOP_PG - ES_START_PG)*256; in es_probe1()
266 printk("mem %#lx-%#lx\n", dev->mem_start, dev->mem_end-1); in es_probe1()
409 dev->mem_start = mem[this_dev]; in init_module()
Dsmc-mca.c127 unsigned long mem_start; member
295 dev->mem_start = 0; in ultramca_probe()
305 dev->mem_start = (unsigned long) in ultramca_probe()
306 mca_device_transform_memory(mca_dev, (void *)mem_table[i].mem_start); in ultramca_probe()
317 dev->mem_start = (unsigned long) in ultramca_probe()
329 dev->mem_start = (unsigned long) in ultramca_probe()
337 if (dev->mem_start == 0) { in ultramca_probe()
386 ei_status.mem = ioremap(dev->mem_start, (ei_status.stop_page - START_PG) * 256); in ultramca_probe()
392 dev->mem_end = dev->mem_start + (ei_status.stop_page - START_PG) * 256; in ultramca_probe()
395 dev->irq, dev->mem_start, dev->mem_end - 1); in ultramca_probe()
Ddepca.c478 u_long mem_start; /* Bus address of device RAM (before remap) */ member
589 u_long mem_start; in depca_hw_init() local
618 mem_start = lp->mem_start; in depca_hw_init()
620 if (!mem_start || lp->adapter < DEPCA || lp->adapter >=unknown) in depca_hw_init()
667 mem_start += 0x8000; in depca_hw_init()
676 printk(",\n has %dkB RAM at 0x%.5lx", netRAM, mem_start); in depca_hw_init()
690 if (!request_mem_region (mem_start, mem_len, lp->adapter_name)) { in depca_hw_init()
696 lp->sh_mem = ioremap(mem_start, mem_len); in depca_hw_init()
702 lp->mem_start = mem_start; in depca_hw_init()
704 lp->device_ram_start = mem_start & LA_MASK; in depca_hw_init()
[all …]
Dhp-plus.c183 int mem_start; in hpp_probe1() local
231 mem_start = inw(ioaddr + 9) << 8; in hpp_probe1()
232 printk(", IRQ %d, memory address %#x.\n", irq, mem_start); in hpp_probe1()
234 mem_start = 0; in hpp_probe1()
259 if (mem_start) { in hpp_probe1()
263 dev->mem_start = mem_start; in hpp_probe1()
264 ei_status.mem = ioremap(mem_start, in hpp_probe1()
270 ei_status.rmem_start = dev->mem_start + TX_PAGES/2*256; in hpp_probe1()
272 = dev->mem_start + (HP_STOP_PG - HP_START_PG)*256; in hpp_probe1()
Ddeclance.c446 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_init_ring()
552 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_rx()
641 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_tx()
777 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_open()
897 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_start_xmit()
941 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_load_multicast()
977 volatile u16 *ib = (volatile u16 *)dev->mem_start; in lance_set_multicast()
1078 dev->mem_start = CKSEG1ADDR(0x00020000); in dec_lance_probe()
1079 dev->mem_end = dev->mem_start + 0x00020000; in dec_lance_probe()
1084 memset((void *)dev->mem_start, 0, in dec_lance_probe()
[all …]
De2100.c260 if (dev->mem_start == 0) in e21_probe1()
261 dev->mem_start = 0xd0000; in e21_probe1()
263 ei_status.mem = ioremap(dev->mem_start, 2*1024); in e21_probe1()
273 ei_status.rmem_start = dev->mem_start + TX_PAGES*256; in e21_probe1()
274 dev->mem_end = ei_status.rmem_end = dev->mem_start + 2*1024; in e21_probe1()
278 dev->if_port ? "secondary" : "primary", dev->mem_start); in e21_probe1()
313 outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); in e21_open()
453 dev->mem_start = mem[this_dev]; in init_module()
D3c507.c167 #define SCB_BASE ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
202 #define RX_BUF_END (dev->mem_end - dev->mem_start)
301 static int mem_start; variable
326 mem_start = dev->mem_start & 15; in el16_probe()
418 if (mem_start) in el16_probe1()
419 net_debug = mem_start & 7; in el16_probe1()
422 dev->mem_start = MEM_BASE; in el16_probe1()
423 dev->mem_end = dev->mem_start + 0x10000; in el16_probe1()
437 dev->mem_start = base; in el16_probe1()
446 dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); in el16_probe1()
[all …]
Da2065.c700 unsigned long board, base_addr, mem_start; in a2065_init_one() local
706 mem_start = board+A2065_RAM; in a2065_init_one()
712 r2 = request_mem_region(mem_start, A2065_RAM_SIZE, "RAM"); in a2065_init_one()
721 release_mem_region(mem_start, A2065_RAM_SIZE); in a2065_init_one()
742 dev->mem_start = ZTWO_VADDR(mem_start); in a2065_init_one()
743 dev->mem_end = dev->mem_start+A2065_RAM_SIZE; in a2065_init_one()
746 priv->init_block = (struct lance_init_block *)dev->mem_start; in a2065_init_one()
768 release_mem_region(mem_start, A2065_RAM_SIZE); in a2065_init_one()
788 release_mem_region(ZTWO_PADDR(dev->mem_start), A2065_RAM_SIZE); in a2065_remove_one()
Dewrk3.c295 outb(((mem_start - 0x80000) >> 11), EWRK3_MBR);\
409 u_long mem_start, shmem_length; in ewrk3_hw_init() local
512 mem_start = inb(EWRK3_MBR); in ewrk3_hw_init()
514 if (mem_start != 0) { in ewrk3_hw_init()
515 if ((mem_start >= 0x0a) && (mem_start <= 0x0f)) { in ewrk3_hw_init()
516 mem_start *= SHMEM_64K; in ewrk3_hw_init()
518 } else if ((mem_start >= 0x14) && (mem_start <= 0x1f)) { in ewrk3_hw_init()
519 mem_start *= SHMEM_32K; in ewrk3_hw_init()
521 } else if ((mem_start >= 0x40) && (mem_start <= 0xff)) { in ewrk3_hw_init()
522 mem_start = mem_start * SHMEM_2K + 0x80000; in ewrk3_hw_init()
[all …]
D3c503.c275 dev->mem_start = 0; in el2_probe1()
279 dev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) + in el2_probe1()
282 ei_status.mem = ioremap(dev->mem_start, EL2_MEMSIZE); in el2_probe1()
297 dev->mem_start = 0; in el2_probe1()
309 if (dev->mem_start) in el2_probe1()
310 dev->mem_end = dev->mem_start + EL2_MEMSIZE; in el2_probe1()
362 if (dev->mem_start) in el2_probe1()
365 dev->mem_start, dev->mem_end-1); in el2_probe1()
Dmac89x0.c159 return swab16(nubus_readw(dev->mem_start + portno)); in readreg()
165 nubus_writew(swab16(value), dev->mem_start + portno); in writereg()
242 dev->mem_start = (unsigned long) in mac89x0_probe()
244 dev->mem_end = dev->mem_start + 0x1000; in mac89x0_probe()
406 skb_copy_from_linear_data(skb, (void *)(dev->mem_start + PP_TxFrame), in net_send_packet()
519 skb_copy_to_linear_data(skb, (void *)(dev->mem_start + PP_RxFrame), in net_rx()
/linux-2.6.39/arch/mips/dec/prom/
Dmemory.c63 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local
76 mem_start += (8 * bm->pagesize); in rex_setup_memory_region()
78 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
79 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region()
84 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
/linux-2.6.39/arch/powerpc/kernel/
Dprom_init.c1792 static void __init *make_room(unsigned long *mem_start, unsigned long *mem_end, in make_room() argument
1797 *mem_start = _ALIGN(*mem_start, align); in make_room()
1798 while ((*mem_start + needed) > *mem_end) { in make_room()
1814 ret = (void *)*mem_start; in make_room()
1815 *mem_start += needed; in make_room()
1820 #define dt_push_token(token, mem_start, mem_end) \ argument
1821 do { *((u32 *)make_room(mem_start, mem_end, 4, 4)) = token; } while(0)
1844 unsigned long *mem_start, in scan_dt_build_strings() argument
1857 namep = make_room(mem_start, mem_end, MAX_PROPERTY_NAME, 1); in scan_dt_build_strings()
1860 *mem_start = (unsigned long)namep; in scan_dt_build_strings()
[all …]
/linux-2.6.39/drivers/net/wireless/hostap/
Dhostap_pci.c36 void __iomem *mem_start; member
69 writeb(v, hw_priv->mem_start + a); in hfa384x_outb_debug()
86 v = readb(hw_priv->mem_start + a); in hfa384x_inb_debug()
105 writew(v, hw_priv->mem_start + a); in hfa384x_outw_debug()
122 v = readw(hw_priv->mem_start + a); in hfa384x_inw_debug()
143 writeb(v, hw_priv->mem_start + a); in hfa384x_outb()
152 return readb(hw_priv->mem_start + a); in hfa384x_inb()
161 writew(v, hw_priv->mem_start + a); in hfa384x_outw()
170 return readw(hw_priv->mem_start + a); in hfa384x_inw()
332 hw_priv->mem_start = mem; in prism2_pci_probe()
[all …]
/linux-2.6.39/arch/powerpc/platforms/powermac/
Dbootx_init.c353 unsigned long mem_start, mem_end; in bootx_flatten_dt() local
361 mem_start = mem_end = _ALIGN_UP(((unsigned long)bi) + start, 4); in bootx_flatten_dt()
362 DBG("Boot params header at: %x\n", mem_start); in bootx_flatten_dt()
363 hdr = (struct boot_param_header *)mem_start; in bootx_flatten_dt()
366 hdr->off_mem_rsvmap = ((unsigned long)rsvmap) - mem_start; in bootx_flatten_dt()
387 hdr->off_dt_strings = bootx_dt_strbase - mem_start; in bootx_flatten_dt()
393 hdr->off_dt_struct = mem_end - mem_start; in bootx_flatten_dt()
400 hdr->totalsize = mem_end - mem_start; in bootx_flatten_dt()
411 rsvmap[0] = mem_start; in bootx_flatten_dt()
/linux-2.6.39/drivers/net/wan/
Dsdla.c92 base = (const void *) (dev->mem_start + offset); in __sdla_read()
123 base = (void *) (dev->mem_start + offset); in __sdla_write()
154 base = (void *) dev->mem_start; in sdla_clear()
174 temp = (void *) (dev->mem_start + (addr & SDLA_ADDR_MASK)); in sdla_byte()
257 temp = (void *)dev->mem_start; in sdla_z80_poll()
437 cmd_buf = (struct sdla_cmd *)(dev->mem_start + (window & SDLA_ADDR_MASK)); in sdla_cmd()
707 pbuf = (void *)(((int) dev->mem_start) + (addr & SDLA_ADDR_MASK)); in sdla_transmit()
775 cmd = (void *) (dev->mem_start + (SDLA_502_RCV_BUF & SDLA_ADDR_MASK)); in sdla_receive()
786 pbufi = (void *) (dev->mem_start + (SDLA_508_RXBUF_INFO & SDLA_ADDR_MASK)); in sdla_receive()
788 …pbuf = (void *) (dev->mem_start + ((pbufi->rse_base + flp->buffer * sizeof(struct buf_entry)) & SD… in sdla_receive()
[all …]
/linux-2.6.39/include/linux/
Dvlynq.h67 u32 mem_start, mem_end; member
121 return dev->mem_start; in vlynq_mem_start()
131 return dev->mem_end - dev->mem_start + 1; in vlynq_mem_len()
/linux-2.6.39/drivers/s390/char/
Dzcore.c196 u64 mem_start; member
222 .mem_start = 0,
305 unsigned long mem_start; /* Start address in memory */ in zcore_read() local
328 mem_start = 0; in zcore_read()
331 mem_start = *ppos - HEADER_SIZE; in zcore_read()
339 - mem_start)); in zcore_read()
340 rc = memcpy_hsa_user(buf + hdr_count, mem_start, size); in zcore_read()
349 rc = memcpy_real_user(buf + hdr_count + mem_offs, mem_start + mem_offs, in zcore_read()
362 if (zcore_add_lc(buf + hdr_count, mem_start, count - hdr_count)) { in zcore_read()

12345