Home
last modified time | relevance | path

Searched refs:sc_adapter (Results 1 – 11 of 11) sorted by relevance

/drivers/isdn/sc/
Dpacket.c38 sc_adapter[card]->devicename, in sndpkt()
39 sc_adapter[card]->channel[channel].first_sendbuf, in sndpkt()
40 sc_adapter[card]->channel[channel].next_sendbuf, in sndpkt()
41 sc_adapter[card]->channel[channel].free_sendbufs, in sndpkt()
42 sc_adapter[card]->channel[channel].num_sendbufs); in sndpkt()
44 if (!sc_adapter[card]->channel[channel].free_sendbufs) { in sndpkt()
46 sc_adapter[card]->devicename); in sndpkt()
52 sc_adapter[card]->devicename); in sndpkt()
56 ReqLnkWrite.buff_offset = sc_adapter[card]->channel[channel].next_sendbuf * in sndpkt()
57 BUFFER_SIZE + sc_adapter[card]->channel[channel].first_sendbuf; in sndpkt()
[all …]
Dtimer.c30 outb((sc_adapter[card]->rambase >> 12), sc_adapter[card]->ioport[EXP_BASE]); in setup_ports()
33 outb((sc_adapter[card]->interrupt | 0x80), in setup_ports()
34 sc_adapter[card]->ioport[IRQ_SELECT]); in setup_ports()
53 sc_adapter[card]->devicename); in sc_check_reset()
58 spin_lock_irqsave(&sc_adapter[card]->lock, flags); in sc_check_reset()
59 outb(sc_adapter[card]->ioport[sc_adapter[card]->shmem_pgport], in sc_check_reset()
60 (sc_adapter[card]->shmem_magic >> 14) | 0x80); in sc_check_reset()
61 sig = (unsigned long) *((unsigned long *)(sc_adapter[card]->rambase + SIG_OFFSET)); in sc_check_reset()
66 spin_unlock_irqrestore(&sc_adapter[card]->lock, flags); in sc_check_reset()
68 if (sc_adapter[card]->StartOnReset) in sc_check_reset()
[all …]
Dshmem.c45 pr_debug("%s: loaded page %d\n", sc_adapter[card]->devicename, ch); in memcpy_toshmem()
49 spin_lock_irqsave(&sc_adapter[card]->lock, flags); in memcpy_toshmem()
51 outb(((sc_adapter[card]->shmem_magic + ch * SRAM_PAGESIZE) >> 14) | 0x80, in memcpy_toshmem()
52 sc_adapter[card]->ioport[sc_adapter[card]->shmem_pgport]); in memcpy_toshmem()
53 memcpy_toio((void __iomem *)(sc_adapter[card]->rambase + dest_rem), src, n); in memcpy_toshmem()
54 spin_unlock_irqrestore(&sc_adapter[card]->lock, flags); in memcpy_toshmem()
55 pr_debug("%s: set page to %#x\n", sc_adapter[card]->devicename, in memcpy_toshmem()
56 ((sc_adapter[card]->shmem_magic + ch * SRAM_PAGESIZE) >> 14) | 0x80); in memcpy_toshmem()
58 sc_adapter[card]->devicename, n, in memcpy_toshmem()
60 sc_adapter[card]->rambase + ((unsigned long) dest % 0x4000)); in memcpy_toshmem()
[all …]
Dmessage.c39 sc_adapter[card]->devicename); in receivemessage()
44 if (inb(sc_adapter[card]->ioport[FIFO_STATUS]) & RF_HAS_DATA) { in receivemessage()
48 spin_lock_irqsave(&sc_adapter[card]->lock, flags); in receivemessage()
49 outb((sc_adapter[card]->shmem_magic >> 14) | 0x80, in receivemessage()
50 sc_adapter[card]->ioport[sc_adapter[card]->shmem_pgport]); in receivemessage()
51 dpm = (DualPortMemory *) sc_adapter[card]->rambase; in receivemessage()
55 inb(sc_adapter[card]->ioport[FIFO_READ]); in receivemessage()
56 spin_unlock_irqrestore(&sc_adapter[card]->lock, flags); in receivemessage()
63 sc_adapter[card]->devicename, in receivemessage()
105 if (sc_adapter[card]->EngineUp && procid == CMPID) { in sendmessage()
[all …]
Dinit.c21 board *sc_adapter[MAX_CARDS]; variable
292 sc_adapter[cinst] = kzalloc(sizeof(board), GFP_KERNEL); in sc_init()
293 if (sc_adapter[cinst] == NULL) { in sc_init()
300 spin_lock_init(&sc_adapter[cinst]->lock); in sc_init()
307 kfree(sc_adapter[cinst]); in sc_init()
311 sc_adapter[cinst]->card = interface; in sc_init()
312 sc_adapter[cinst]->driverId = interface->channels; in sc_init()
313 strcpy(sc_adapter[cinst]->devicename, interface->id); in sc_init()
314 sc_adapter[cinst]->nChannels = channels; in sc_init()
315 sc_adapter[cinst]->ramsize = memsize; in sc_init()
[all …]
Dinterrupt.c40 sc_adapter[card]->devicename); in interrupt_handler()
50 if (sc_adapter[card]->want_async_messages) in interrupt_handler()
51 memcpy(&(sc_adapter[card]->async_msg), in interrupt_handler()
61 sc_adapter[card]->devicename, in interrupt_handler()
72 sc_adapter[card]->devicename, in interrupt_handler()
85 sc_adapter[card]->devicename, in interrupt_handler()
87 sc_adapter[card]->channel[rcvmsg.phy_link_no - 1].free_sendbufs++; in interrupt_handler()
99 sc_adapter[card]->devicename, in interrupt_handler()
108 sc_adapter[card]->devicename); in interrupt_handler()
118 sc_adapter[card]->devicename); in interrupt_handler()
[all …]
Dioctl.c37 sc_adapter[card]->devicename); in sc_ioctl()
38 sc_adapter[card]->StartOnReset = 0; in sc_ioctl()
53 sc_adapter[card]->devicename); in sc_ioctl()
54 if (sc_adapter[card]->EngineUp) { in sc_ioctl()
56 sc_adapter[card]->devicename); in sc_ioctl()
78 sc_adapter[card]->devicename, status); in sc_ioctl()
83 sc_adapter[card]->devicename); in sc_ioctl()
92 sc_adapter[card]->devicename); in sc_ioctl()
93 if (sc_adapter[card]->EngineUp) { in sc_ioctl()
95 sc_adapter[card]->devicename); in sc_ioctl()
[all …]
Dcommand.c73 if (sc_adapter[i]->driverId == driver) in get_card_from_id()
106 sc_adapter[card]->devicename, cmdptr); in command()
152 pr_debug("%s: Sent startProc\n", sc_adapter[card]->devicename); in startproc()
183 sc_adapter[card]->devicename, Phone, channel + 1); in dial()
205 sc_adapter[card]->devicename, channel + 1); in answer()
228 sc_adapter[card]->devicename, channel + 1); in hangup()
246 sc_adapter[card]->channel[channel].l2_proto = protocol; in setl2()
252 sc_adapter[card]->devicename, channel + 1); in setl2()
276 sc_adapter[card]->channel[channel].l3_proto = protocol; in setl3()
294 sc_adapter[card]->devicename, channel + 1); in acceptb()
[all …]
Devent.c47 sc_adapter[card]->devicename, events[event - 256], Channel); in indicate_status()
50 pr_debug("%s: Event data: %s\n", sc_adapter[card]->devicename, in indicate_status()
65 cmd.driver = sc_adapter[card]->driverId; in indicate_status()
67 return sc_adapter[card]->card->statcallb(&cmd); in indicate_status()
Dhardware.h108 #define IS_VALID_CHANNEL(y, x) ((x > 0) && (x <= sc_adapter[y]->channels))
Dcard.h104 extern board *sc_adapter[];