| /kernel/linux/linux-4.19/drivers/isdn/hisax/ |
| D | avm_a1.c | 56 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 58 return (readreg(cs->hw.avm.isac, offset)); in ReadISAC() 62 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 64 writereg(cs->hw.avm.isac, offset, value); in WriteISAC() 68 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 70 read_fifo(cs->hw.avm.isacfifo, data, size); in ReadISACfifo() 74 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 76 write_fifo(cs->hw.avm.isacfifo, data, size); in WriteISACfifo() 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 82 return (readreg(cs->hw.avm.hscx[hscx], offset)); in ReadHSCX() [all …]
|
| D | teles3.c | 56 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 58 return (readreg(cs->hw.teles3.isac, offset)); in ReadISAC() 62 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 64 writereg(cs->hw.teles3.isac, offset, value); in WriteISAC() 68 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 70 read_fifo(cs->hw.teles3.isacfifo, data, size); in ReadISACfifo() 74 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 76 write_fifo(cs->hw.teles3.isacfifo, data, size); in WriteISACfifo() 80 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 82 return (readreg(cs->hw.teles3.hscx[hscx], offset)); in ReadHSCX() [all …]
|
| D | amd7930_fn.c | 6 * Author Christoph Ersfeld <info@formula-n.de> 7 * Formula-n Europe AG (www.formula-n.com) 19 * (compressed) debug-logs. 22 * Log D-channel-processing as follows: 24 * 1. Load hisax with card-specific parameters, this example ist for 25 * Formula-n enter:now ISDN PCI and compatible 33 * 2. set debug-level 44 * Programming the driver for Formula-n enter:now ISDN PCI and 45 * necessary this driver for the used Amd 7930 D-channel-controller 46 * was spnsored by Formula-n Europe AG. [all …]
|
| D | gazel.c | 104 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 108 switch (cs->subtyp) { in ReadISAC() 113 return (readreg(cs->hw.gazel.isac, off2)); in ReadISAC() 116 return (readreg_ipac(cs->hw.gazel.ipac, 0x80 + off2)); in ReadISAC() 122 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 126 switch (cs->subtyp) { in WriteISAC() 131 writereg(cs->hw.gazel.isac, off2, value); in WriteISAC() 135 writereg_ipac(cs->hw.gazel.ipac, 0x80 + off2, value); in WriteISAC() 141 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 143 switch (cs->subtyp) { in ReadISACfifo() [all …]
|
| D | w6692.c | 51 W6692Version(struct IsdnCardState *cs, char *s) in W6692Version() argument 55 val = cs->readW6692(cs, W_D_RBCH); in W6692Version() 56 printk(KERN_INFO "%s Winbond W6692 version (%x): %s\n", s, val, W6692Ver[(val >> 6) & 3]); in W6692Version() 60 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument 62 if (cs->debug & L1_DEB_ISAC) in ph_command() 63 debugl1(cs, "ph_command %x", command); in ph_command() 64 cs->writeisac(cs, W_CIX, command); in ph_command() 69 W6692_new_ph(struct IsdnCardState *cs) in W6692_new_ph() argument 71 switch (cs->dc.w6692.ph_state) { in W6692_new_ph() 73 ph_command(cs, W_L1CMD_DRC); in W6692_new_ph() [all …]
|
| D | isac.c | 31 void ISACVersion(struct IsdnCardState *cs, char *s) in ISACVersion() argument 35 val = cs->readisac(cs, ISAC_RBCH); in ISACVersion() 36 printk(KERN_INFO "%s ISAC version (%x): %s\n", s, val, ISACVer[(val >> 5) & 3]); in ISACVersion() 40 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument 42 if (cs->debug & L1_DEB_ISAC) in ph_command() 43 debugl1(cs, "ph_command %x", command); in ph_command() 44 cs->writeisac(cs, ISAC_CIX0, (command << 2) | 3); in ph_command() 49 isac_new_ph(struct IsdnCardState *cs) in isac_new_ph() argument 51 switch (cs->dc.isac.ph_state) { in isac_new_ph() 54 ph_command(cs, ISAC_CMD_DUI); in isac_new_ph() [all …]
|
| D | icc.c | 32 ICCVersion(struct IsdnCardState *cs, char *s) in ICCVersion() argument 36 val = cs->readisac(cs, ICC_RBCH); in ICCVersion() 37 printk(KERN_INFO "%s ICC version (%x): %s\n", s, val, ICCVer[(val >> 5) & 3]); in ICCVersion() 41 ph_command(struct IsdnCardState *cs, unsigned int command) in ph_command() argument 43 if (cs->debug & L1_DEB_ISAC) in ph_command() 44 debugl1(cs, "ph_command %x", command); in ph_command() 45 cs->writeisac(cs, ICC_CIX0, (command << 2) | 3); in ph_command() 50 icc_new_ph(struct IsdnCardState *cs) in icc_new_ph() argument 52 switch (cs->dc.icc.ph_state) { in icc_new_ph() 54 ph_command(cs, ICC_CMD_DI); in icc_new_ph() [all …]
|
| D | isar.c | 31 static void isar_setup(struct IsdnCardState *cs); 36 waitforHIA(struct IsdnCardState *cs, int timeout) in waitforHIA() argument 39 while ((cs->BC_Read_Reg(cs, 0, ISAR_HIA) & 1) && timeout) { in waitforHIA() 41 timeout--; in waitforHIA() 50 sendmsg(struct IsdnCardState *cs, u_char his, u_char creg, u_char len, in sendmsg() argument 55 if (!waitforHIA(cs, 4000)) in sendmsg() 58 if (cs->debug & L1_DEB_HSCX) in sendmsg() 59 debugl1(cs, "sendmsg(%02x,%02x,%d)", his, creg, len); in sendmsg() 61 cs->BC_Write_Reg(cs, 0, ISAR_CTRL_H, creg); in sendmsg() 62 cs->BC_Write_Reg(cs, 0, ISAR_CTRL_L, len); in sendmsg() [all …]
|
| D | s0box.c | 96 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 98 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset)); in ReadISAC() 102 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 104 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset, value); in WriteISAC() 108 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 110 read_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.isacfifo, data, size); in ReadISACfifo() 114 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 116 write_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.isacfifo, data, size); in WriteISACfifo() 120 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 122 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset)); in ReadHSCX() [all …]
|
| D | niccy.c | 78 static u_char ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 80 return readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset); in ReadISAC() 83 static void WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 85 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset, value); in WriteISAC() 88 static void ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 90 readfifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in ReadISACfifo() 93 static void WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 95 writefifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in WriteISACfifo() 98 static u_char ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 100 return readreg(cs->hw.niccy.hscx_ale, in ReadHSCX() [all …]
|
| D | hfcscard.c | 24 struct IsdnCardState *cs = dev_id; in hfcs_interrupt() local 28 spin_lock_irqsave(&cs->lock, flags); in hfcs_interrupt() 30 (stat = cs->BC_Read_Reg(cs, HFCD_DATA, HFCD_STAT))) { in hfcs_interrupt() 31 val = cs->BC_Read_Reg(cs, HFCD_DATA, HFCD_INT_S1); in hfcs_interrupt() 32 if (cs->debug & L1_DEB_ISAC) in hfcs_interrupt() 33 debugl1(cs, "HFCS: stat(%02x) s1(%02x)", stat, val); in hfcs_interrupt() 34 hfc2bds0_interrupt(cs, val); in hfcs_interrupt() 36 if (cs->debug & L1_DEB_ISAC) in hfcs_interrupt() 37 debugl1(cs, "HFCS: irq_no_irq stat(%02x)", stat); in hfcs_interrupt() 39 spin_unlock_irqrestore(&cs->lock, flags); in hfcs_interrupt() [all …]
|
| D | avm_pci.c | 78 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 83 outb(idx, cs->hw.avm.cfg_reg + 4); in ReadISAC() 84 val = inb(cs->hw.avm.isac + (offset & 0xf)); in ReadISAC() 89 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 93 outb(idx, cs->hw.avm.cfg_reg + 4); in WriteISAC() 94 outb(value, cs->hw.avm.isac + (offset & 0xf)); in WriteISAC() 98 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 100 outb(AVM_ISAC_FIFO, cs->hw.avm.cfg_reg + 4); in ReadISACfifo() 101 insb(cs->hw.avm.isac, data, size); in ReadISACfifo() 105 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument [all …]
|
| D | elsa_ser.c | 48 static inline unsigned int serial_in(struct IsdnCardState *cs, int offset) in serial_in() argument 51 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_in() 52 debugl1(cs, "in %s %02x", ModemIn[offset], val); in serial_in() 55 return inb(cs->hw.elsa.base + 8 + offset); in serial_in() 59 static inline unsigned int serial_inp(struct IsdnCardState *cs, int offset) in serial_inp() argument 63 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_inp() 64 debugl1(cs, "inp %s %02x", ModemIn[offset], val); in serial_inp() 66 u_int val = inb_p(cs->hw.elsa.base + 8 + offset); in serial_inp() 67 debugl1(cs, "inP %s %02x", ModemIn[offset], val); in serial_inp() 72 return inb(cs->hw.elsa.base + 8 + offset); in serial_inp() [all …]
|
| D | teles0.c | 98 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 100 return (readisac(cs->hw.teles0.membase, offset)); in ReadISAC() 104 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 106 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC() 110 ReadISACfifo(struct IsdnCardState *cs, u_char *data, int size) in ReadISACfifo() argument 112 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo() 116 WriteISACfifo(struct IsdnCardState *cs, u_char *data, int size) in WriteISACfifo() argument 118 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo() 122 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument 124 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX() [all …]
|
| D | teleint.c | 32 while (ret && --max_delay) in readreg() 52 while (ret && --max_delay) in readfifo() 71 while (ret && --max_delay) in writereg() 90 while (ret && --max_delay) in writefifo() 103 ReadISAC(struct IsdnCardState *cs, u_char offset) in ReadISAC() argument 105 cs->hw.hfc.cip = offset; in ReadISAC() 106 return (readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset)); in ReadISAC() 110 WriteISAC(struct IsdnCardState *cs, u_char offset, u_char value) in WriteISAC() argument 112 cs->hw.hfc.cip = offset; in WriteISAC() 113 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset, value); in WriteISAC() [all …]
|
| D | jade.c | 24 JadeVersion(struct IsdnCardState *cs, char *s) in JadeVersion() argument 28 cs->BC_Write_Reg(cs, -1, 0x50, 0x19); in JadeVersion() 31 ver = cs->BC_Read_Reg(cs, -1, 0x60); in JadeVersion() 32 to--; in JadeVersion() 43 ver = cs->BC_Read_Reg(cs, -1, 0x60); in JadeVersion() 50 jade_write_indirect(struct IsdnCardState *cs, u_char reg, u_char value) in jade_write_indirect() argument 56 cs->BC_Write_Reg(cs, -1, COMM_JADE + 1, value); in jade_write_indirect() 58 cs->BC_Write_Reg(cs, -1, COMM_JADE, reg); in jade_write_indirect() 63 ret = cs->BC_Read_Reg(cs, -1, COMM_JADE); in jade_write_indirect() 64 to--; in jade_write_indirect() [all …]
|
| D | hfc_2bds0.c | 29 dummyf(struct IsdnCardState *cs, u_char *data, int size) in dummyf() argument 35 ReadReg(struct IsdnCardState *cs, int data, u_char reg) in ReadReg() argument 40 if (cs->hw.hfcD.cip != reg) { in ReadReg() 41 cs->hw.hfcD.cip = reg; in ReadReg() 42 byteout(cs->hw.hfcD.addr | 1, reg); in ReadReg() 44 ret = bytein(cs->hw.hfcD.addr); in ReadReg() 46 if (cs->debug & L1_DEB_HSCX_FIFO && (data != 2)) in ReadReg() 47 debugl1(cs, "t3c RD %02x %02x", reg, ret); in ReadReg() 50 ret = bytein(cs->hw.hfcD.addr | 1); in ReadReg() 55 WriteReg(struct IsdnCardState *cs, int data, u_char reg, u_char value) in WriteReg() argument [all …]
|
| D | hscx.c | 26 HscxVersion(struct IsdnCardState *cs, char *s) in HscxVersion() argument 30 verA = cs->BC_Read_Reg(cs, 0, HSCX_VSTR) & 0xf; in HscxVersion() 31 verB = cs->BC_Read_Reg(cs, 1, HSCX_VSTR) & 0xf; in HscxVersion() 43 struct IsdnCardState *cs = bcs->cs; in modehscx() local 44 int hscx = bcs->hw.hscx.hscx; in modehscx() 46 if (cs->debug & L1_DEB_HSCX) in modehscx() 47 debugl1(cs, "hscx %c mode %d ichan %d", in modehscx() 49 bcs->mode = mode; in modehscx() 50 bcs->channel = bc; in modehscx() 51 cs->BC_Write_Reg(cs, hscx, HSCX_XAD1, 0xFF); in modehscx() [all …]
|
| /kernel/linux/linux-5.10/drivers/memory/ |
| D | ti-aemif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010 - 2013 Texas Instruments Incorporated. http://www.ti.com/ 8 * Murali Karicheri <m-karicheri2@ti.com> 20 #include <linux/platform_data/ti-aemif.h> 32 #define TA(x) ((x) << TA_SHIFT) argument 33 #define RHOLD(x) ((x) << RHOLD_SHIFT) argument 34 #define RSTROBE(x) ((x) << RSTROBE_SHIFT) argument 35 #define RSETUP(x) ((x) << RSETUP_SHIFT) argument 36 #define WHOLD(x) ((x) << WHOLD_SHIFT) argument 37 #define WSTROBE(x) ((x) << WSTROBE_SHIFT) argument [all …]
|
| /kernel/linux/linux-4.19/drivers/memory/ |
| D | ti-aemif.c | 4 * Copyright (C) 2010 - 2013 Texas Instruments Incorporated. http://www.ti.com/ 7 * Murali Karicheri <m-karicheri2@ti.com> 23 #include <linux/platform_data/ti-aemif.h> 35 #define TA(x) ((x) << TA_SHIFT) argument 36 #define RHOLD(x) ((x) << RHOLD_SHIFT) argument 37 #define RSTROBE(x) ((x) << RSTROBE_SHIFT) argument 38 #define RSETUP(x) ((x) << RSETUP_SHIFT) argument 39 #define WHOLD(x) ((x) << WHOLD_SHIFT) argument 40 #define WSTROBE(x) ((x) << WSTROBE_SHIFT) argument 41 #define WSETUP(x) ((x) << WSETUP_SHIFT) argument [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/gigaset/ |
| D | interface.c | 21 static int if_lock(struct cardstate *cs, int *arg) in if_lock() argument 25 gig_dbg(DEBUG_IF, "%u: if_lock (%d)", cs->minor_index, cmd); in if_lock() 28 return -EINVAL; in if_lock() 31 *arg = cs->mstate == MS_LOCKED; in if_lock() 35 if (!cmd && cs->mstate == MS_LOCKED && cs->connected) { in if_lock() 36 cs->ops->set_modem_ctrl(cs, 0, TIOCM_DTR | TIOCM_RTS); in if_lock() 37 cs->ops->baud_rate(cs, B115200); in if_lock() 38 cs->ops->set_line_ctrl(cs, CS8); in if_lock() 39 cs->control_state = TIOCM_DTR | TIOCM_RTS; in if_lock() 42 cs->waiting = 1; in if_lock() [all …]
|
| D | bas-gigaset.c | 2 * USB driver for Gigaset 307x base via direct USB connection. 23 #define DRIVER_DESC "USB Driver for Gigaset 307x" 34 MODULE_PARM_DESC(cidmode, "Call-ID mode"); 41 /* length limit according to Siemens 3070usb-protokoll.doc ch. 2.1 */ 47 /* Values for the Gigaset 307x */ 92 struct cardstate *cs; member 126 /* status of direct USB connection to 307x base (bits in basstate) */ 164 case -ENOMEM: in get_usb_rcmsg() 166 case -ENODEV: in get_usb_rcmsg() 168 case -ENOENT: in get_usb_rcmsg() [all …]
|
| D | usb-gigaset.c | 2 * USB driver for Gigaset 307x directly or using M105 Data. 8 * Greg Kroah-Hartman <greg@kroah.com> 25 #define DRIVER_DESC "USB Driver for Gigaset 307x using M105" 35 MODULE_PARM_DESC(cidmode, "Call-ID mode"); 42 /* length limit according to Siemens 3070usb-protokoll.doc ch. 2.1 */ 63 * Get flags (1 byte). Bits: 0=dtr,1=rts,3-7:? 88 * 41 13 -- -- -- -- 10 00 ww 00 00 00 xx 00 00 00 yy 00 00 00 zz 00 00 00 94 * 41 19 -- -- -- -- 06 00 00 00 00 xx 11 13 154 static int gigaset_set_modem_ctrl(struct cardstate *cs, unsigned old_state, in gigaset_set_modem_ctrl() argument 157 struct usb_device *udev = cs->hw.usb->udev; in gigaset_set_modem_ctrl() [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/divert/ |
| D | isdn_divert.c | 61 struct call_struc *cs = from_timer(cs, t, timer); in deflect_timer_expire() local 64 del_timer(&cs->timer); /* delete active timer */ in deflect_timer_expire() 67 switch (cs->akt_state) { in deflect_timer_expire() 69 cs->ics.command = ISDN_CMD_HANGUP; /* cancel action */ in deflect_timer_expire() 70 divert_if.ll_cmd(&cs->ics); in deflect_timer_expire() 72 cs->akt_state = DEFLECT_AUTODEL; /* delete after timeout */ in deflect_timer_expire() 73 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire() 74 add_timer(&cs->timer); in deflect_timer_expire() 79 cs->ics.command = ISDN_CMD_REDIR; /* protocol */ in deflect_timer_expire() 80 strlcpy(cs->ics.parm.setup.phone, cs->deflect_dest, sizeof(cs->ics.parm.setup.phone)); in deflect_timer_expire() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/slip/ |
| D | slhc.c | 21 * - Initial distribution. 28 * - 01-31-90 initial adaptation (from 1.19) 29 * PPP.05 02-15-90 [ks] 30 * PPP.08 05-02-90 [ks] use PPP protocol field to signal compression 31 * PPP.15 09-90 [ks] improve mbuf handling 32 * PPP.16 11-02 [karn] substantially rewritten to use NOS facilities 34 * - Feb 1991 Bill_Simpson@um.cc.umich.edu 39 * - Jul 1994 Dmitry Gorodchanin 41 * - Oct 1994 Dmitry Gorodchanin 43 * - Jan 1995 Bjorn Ekwall [all …]
|