Home
last modified time | relevance | path

Searched refs:sh_mem (Results 1 – 5 of 5) sorted by relevance

/linux-2.4.37.9/drivers/isdn/pcbit/
Dlayer2.h132 (ulong) (dev->writeptr - dev->sh_mem)); in log_state()
134 (ulong) (dev->readptr - (dev->sh_mem + BANK2))); in log_state()
174 if (dev->writeptr == dev->sh_mem + BANKLEN) in pcbit_writeb()
175 dev->writeptr = dev->sh_mem; in pcbit_writeb()
182 dist = BANKLEN - (dev->writeptr - dev->sh_mem); in pcbit_writew()
186 dev->writeptr = dev->sh_mem; in pcbit_writew()
190 dev->writeptr = dev->sh_mem; in pcbit_writew()
205 diff = len - (BANKLEN - (dev->writeptr - dev->sh_mem) ); in memcpy_topcbit()
210 memcpy_toio(dev->sh_mem, data + (len - diff), diff); in memcpy_topcbit()
211 dev->writeptr = dev->sh_mem + diff; in memcpy_topcbit()
[all …]
Ddrv.c102 dev->sh_mem = (unsigned char*)ioremap(dev->ph_mem, 4096); in pcbit_init_dev()
115 iounmap((unsigned char*)dev->sh_mem); in pcbit_init_dev()
125 iounmap((unsigned char*)dev->sh_mem); in pcbit_init_dev()
147 iounmap((unsigned char*)dev->sh_mem); in pcbit_init_dev()
169 iounmap((unsigned char*)dev->sh_mem); in pcbit_init_dev()
200 iounmap((unsigned char*)dev->sh_mem); in pcbit_init_dev()
238 iounmap((unsigned char*)dev->sh_mem); in pcbit_terminate()
449 memcpy_toio(dev->sh_mem, cbuf, len); in pcbit_writecmd()
453 memcpy_toio(dev->sh_mem, buf, len); in pcbit_writecmd()
476 if (!(readb(dev->sh_mem + dev->loadptr))) in pcbit_writecmd()
[all …]
Dlayer2.c153 writeb(info, dev->sh_mem + BANK4); in pcbit_tx_update()
454 if (dev->readptr > dev->sh_mem + BANK2 + BANKLEN) in pcbit_receive()
548 info = readb(dev->sh_mem + BANK3); in pcbit_irq_handler()
585 writeb(info, dev->sh_mem + BANK4); in pcbit_irq_handler()
659 dev->writeptr = dev->sh_mem; in pcbit_l2_err_recover()
660 dev->readptr = dev->sh_mem + BANK2; in pcbit_l2_err_recover()
663 dev->sh_mem + BANK4); in pcbit_l2_err_recover()
Dpcbit.h46 volatile unsigned char* sh_mem; /* RDP address */ member
/linux-2.4.37.9/drivers/net/
Ddepca.c393 void *sh_mem; /* CPU mapped virt address of device RAM */ member
624 lp->sh_mem = ioremap(mem_start, mem_len); in depca_hw_init()
626 if (lp->sh_mem == NULL) { in depca_hw_init()
637 lp->rx_ring = (struct depca_rx_desc *) (lp->sh_mem + offset); in depca_hw_init()
641 lp->tx_ring = (struct depca_tx_desc *) (lp->sh_mem + offset); in depca_hw_init()
814 lp->rx_buff[i] = lp->sh_mem + offset; in depca_init_ring()
820 lp->tx_buff[i] = lp->sh_mem + offset; in depca_init_ring()
1143 memcpy_toio(lp->sh_mem, &lp->init_block, sizeof(struct depca_init)); in InitRestartDepca()
1155 …ticks, init block 0x%08lx csr0 %4.4x.\n", dev->name, i, virt_to_phys(lp->sh_mem), inw(DEPCA_DATA)); in InitRestartDepca()
1158 …ticks, init block 0x%08lx csr0 %4.4x.\n", dev->name, i, virt_to_phys(lp->sh_mem), inw(DEPCA_DATA)); in InitRestartDepca()
[all …]