• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hardware/mISDN/

Lines Matching refs:is

8  * This program is free software; you can redistribute it and/or modify
12 * This program is distributed in the hope that it will be useful,
66 * if msg is NULL use isar->buf
100 * if msg is NULL use isar->buf
255 /* the ISAR is big endian */
416 pr_debug("%s: HL->LL FAXIND %x\n", ch->is->name, status);
425 if (!ch->is->clsb) {
426 pr_debug("%s; ISAR zero len frame\n", ch->is->name);
427 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
433 ch->is->name, ch->is->iis, ch->is->cmsb, ch->is->clsb);
434 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
444 ch->is->name);
445 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
449 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
458 ch->is->name);
459 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
463 if ((ch->bch.rx_skb->len + ch->is->clsb) >
466 ch->is->name);
467 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
471 if (ch->is->cmsb & HDLC_ERROR) {
473 ch->is->name, ch->is->cmsb, ch->is->clsb);
475 if (ch->is->cmsb & HDLC_ERR_RER)
477 if (ch->is->cmsb & HDLC_ERR_CER)
481 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
484 if (ch->is->cmsb & HDLC_FSD)
486 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
487 rcv_mbox(ch->is, ptr);
488 if (ch->is->cmsb & HDLC_FED) {
491 ch->is->name, ch->bch.rx_skb->len);
502 ch->is->name);
503 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
514 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
519 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
521 ch->is->name, ch->bch.rx_skb->len);
522 if (ch->is->cmsb & SART_NMD) { /* ABORT */
524 ch->is->name);
525 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
526 send_mbox(ch->is, SET_DPS(ch->dpath) |
533 if (ch->is->cmsb & SART_NMD)
539 ch->is->name, ch->cmd);
540 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
546 if ((ch->bch.rx_skb->len + ch->is->clsb) >
549 ch->is->name, __func__);
550 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
553 } else if (ch->is->cmsb & HDLC_ERROR) {
555 ch->is->name, ch->is->cmsb, ch->is->clsb);
557 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
560 if (ch->is->cmsb & HDLC_FSD)
562 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
563 rcv_mbox(ch->is, ptr);
564 if (ch->is->cmsb & HDLC_FED) {
567 ch->is->name, ch->bch.rx_skb->len);
574 if (ch->is->cmsb & SART_NMD) { /* ABORT */
576 ch->is->name);
577 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
580 send_mbox(ch->is, SET_DPS(ch->dpath) |
588 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
601 ch->is->name, ch->bch.nr, ch->bch.tx_skb, ch->bch.tx_idx);
607 if (!(ch->is->bstat &
618 pr_debug("%s: frame start\n", ch->is->name);
627 ch->is->name);
644 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
648 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
653 pr_debug("%s: not ACTIV\n", ch->is->name);
655 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
658 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
661 pr_debug("%s: not FTH/FTM\n", ch->is->name);
689 ch->is->name, __func__, ch->bch.nr,
719 send_mbox(ch->is, SET_DPS(ch->dpath) |
766 u8 ril = ch->is->buf[0];
769 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags))
772 pr_info("%s: wrong pstrsp ril=%d\n", ch->is->name, ril);
775 switch (ch->is->buf[1]) {
811 pr_debug("%s: pump strsp %s\n", ch->is->name, ch->conmsg);
820 pr_debug("%s: pump stev TIMER\n", ch->is->name);
823 pr_debug("%s: pump stev CONNECT\n", ch->is->name);
827 pr_debug("%s: pump stev NO CONNECT\n", ch->is->name);
828 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
832 pr_debug("%s: pump stev V24 OFF\n", ch->is->name);
835 pr_debug("%s: pump stev CTS ON\n", ch->is->name);
838 pr_debug("%s pump stev CTS OFF\n", ch->is->name);
841 pr_debug("%s: pump stev CARRIER ON\n", ch->is->name);
842 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
843 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
846 pr_debug("%s: pump stev CARRIER OFF\n", ch->is->name);
849 pr_debug("%s: pump stev DSR ON\n", ch->is->name);
852 pr_debug("%s: pump stev DSR_OFF\n", ch->is->name);
855 pr_debug("%s: pump stev REMOTE RETRAIN\n", ch->is->name);
858 pr_debug("%s: pump stev REMOTE RENEGOTIATE\n", ch->is->name);
861 pr_debug("%s: pump stev GSTN CLEAR\n", ch->is->name);
864 pr_info("u%s: unknown pump stev %x\n", ch->is->name, devt);
876 pr_debug("%s: pump stev TIMER\n", ch->is->name);
879 pr_debug("%s: pump stev RSP_READY\n", ch->is->name);
891 pr_debug("%s: pump stev LINE_TX_H\n", ch->is->name);
893 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
897 ch->is->name, ch->state);
902 pr_debug("%s: pump stev LINE_RX_H\n", ch->is->name);
904 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
908 ch->is->name, ch->state);
913 pr_debug("%s: pump stev LINE_TX_B\n", ch->is->name);
915 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
919 ch->is->name, ch->state);
924 pr_debug("%s: pump stev LINE_RX_B\n", ch->is->name);
926 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
930 ch->is->name, ch->state);
935 pr_debug("%s: pump stev RSP_CONN\n", ch->is->name);
937 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
938 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
955 ch->is->name, ch->state);
959 pr_debug("%s: pump stev FLAGS_DET\n", ch->is->name);
963 ch->is->name, ch->state);
973 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
984 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
991 ch->is->name, ch->newcmd);
1009 pr_debug("%s: pump stev RSP_SILDET\n", ch->is->name);
1016 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
1023 pr_debug("%s: pump stev RSP_SILOFF\n", ch->is->name);
1028 ch->is->name, ch->try_mod);
1030 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
1035 pr_debug("%s: pump stev RSP_FCERR\n", ch->is->name);
1037 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, PCTRL_CMD_ESC,
1150 pr_debug("%s: ftimer flags %lx\n", ch->is->name, ch->bch.Flags);
1165 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, PMOD_BYPASS, 0, NULL);
1170 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
1174 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
1191 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 6, param);
1202 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 2, param);
1210 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
1221 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_DISABLE,
1226 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_BINARY,
1231 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_HDLC,
1238 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, ctrl, 2, param);
1242 send_mbox(ch->is, dps | ISAR_HIS_BSTREQ, 0, 0, NULL);
1274 send_mbox(ch->is, dps | ISAR_HIS_IOM2CFG, cmsb, 5, msg);
1276 send_mbox(ch->is, dps | ISAR_HIS_IOM2REQ, 0, 0, NULL);
1295 /* best is datapath 2 */
1296 if (!test_and_set_bit(ISAR_DP2_USE, &ch->is->Flags))
1299 &ch->is->Flags))
1315 if (!test_and_set_bit(ISAR_DP1_USE, &ch->is->Flags))
1319 "only with DP1\n", ch->is->name);
1324 pr_info("%s: protocol not known %x\n", ch->is->name,
1329 pr_debug("%s: ISAR ch%d dp%d protocol %x->%x\n", ch->is->name,
1338 test_and_clear_bit(ISAR_DP1_USE, &ch->is->Flags);
1340 test_and_clear_bit(ISAR_DP2_USE, &ch->is->Flags);
1342 ch->is->ctrl(ch->is->hw, HW_DEACT_IND, ch->bch.nr);
1344 ch->is->ctrl(ch->is->hw, HW_ACTIVATE_IND, ch->bch.nr);
1355 ch->is->name, cmd, para, ch->bch.state);
1452 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, ctrl, nom, &p1);
1486 spin_lock_irqsave(ich->is->hwlock, flags);
1492 spin_unlock_irqrestore(ich->is->hwlock, flags);
1496 spin_unlock_irqrestore(ich->is->hwlock, flags);
1499 spin_lock_irqsave(ich->is->hwlock, flags);
1504 spin_unlock_irqrestore(ich->is->hwlock, flags);
1510 spin_lock_irqsave(ich->is->hwlock, flags);
1513 spin_unlock_irqrestore(ich->is->hwlock, flags);
1520 pr_debug("%s: PH_CONTROL | REQUEST %x/%x\n", ich->is->name,
1534 spin_lock_irqsave(ich->is->hwlock, flags);
1536 spin_unlock_irqrestore(ich->is->hwlock, flags);
1549 pr_debug("%s: isar: new mod\n", ich->is->name);
1554 ich->is->name);
1561 ich->is->name, hh->id);
1566 ich->is->name, __func__, hh->prim, hh->id);
1601 pr_debug("%s: %s cmd:%x %p\n", ich->is->name, __func__, cmd, arg);
1606 spin_lock_irqsave(ich->is->hwlock, flags);
1609 spin_unlock_irqrestore(ich->is->hwlock, flags);
1616 module_put(ich->is->owner);
1624 ich->is->name, __func__, cmd);
1698 isar->ch[i].is = isar;