Lines Matching refs:is

53  * if msg is NULL use isar->buf
87 * if msg is NULL use isar->buf
242 /* the ISAR is big endian */
403 pr_debug("%s: HL->LL FAXIND %x\n", ch->is->name, status);
413 if (!ch->is->clsb) {
414 pr_debug("%s; ISAR zero len frame\n", ch->is->name);
415 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
419 ch->bch.dropcnt += ch->is->clsb;
420 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
426 ch->is->name, ch->is->iis, ch->is->cmsb, ch->is->clsb);
427 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
432 maxlen = bchannel_get_rxbuf(&ch->bch, ch->is->clsb);
435 ch->is->name, ch->bch.nr, ch->is->clsb);
436 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
439 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
443 maxlen = bchannel_get_rxbuf(&ch->bch, ch->is->clsb);
446 ch->is->name, ch->bch.nr, ch->is->clsb);
447 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
450 if (ch->is->cmsb & HDLC_ERROR) {
452 ch->is->name, ch->is->cmsb, ch->is->clsb);
454 if (ch->is->cmsb & HDLC_ERR_RER)
456 if (ch->is->cmsb & HDLC_ERR_CER)
460 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
463 if (ch->is->cmsb & HDLC_FSD)
465 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
466 rcv_mbox(ch->is, ptr);
467 if (ch->is->cmsb & HDLC_FED) {
470 ch->is->name, ch->bch.rx_skb->len);
481 ch->is->name);
482 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
493 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
498 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb));
500 ch->is->name, ch->bch.rx_skb->len);
501 if (ch->is->cmsb & SART_NMD) { /* ABORT */
503 ch->is->name);
504 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
505 send_mbox(ch->is, SET_DPS(ch->dpath) |
512 if (ch->is->cmsb & SART_NMD)
518 ch->is->name, ch->cmd);
519 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
525 if ((ch->bch.rx_skb->len + ch->is->clsb) >
528 ch->is->name, __func__);
529 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
532 } else if (ch->is->cmsb & HDLC_ERROR) {
534 ch->is->name, ch->is->cmsb, ch->is->clsb);
536 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
539 if (ch->is->cmsb & HDLC_FSD)
541 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb);
542 rcv_mbox(ch->is, ptr);
543 if (ch->is->cmsb & HDLC_FED) {
546 ch->is->name, ch->bch.rx_skb->len);
553 if (ch->is->cmsb & SART_NMD) { /* ABORT */
555 ch->is->name);
556 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
559 send_mbox(ch->is, SET_DPS(ch->dpath) |
567 ch->is->write_reg(ch->is->hw, ISAR_IIA, 0);
579 pr_debug("%s: ch%d tx_skb %d tx_idx %d\n", ch->is->name, ch->bch.nr,
581 if (!(ch->is->bstat &
590 memset(ch->is->buf, ch->bch.fill[0], count);
591 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
592 0, count, ch->is->buf);
606 pr_debug("%s: frame start\n", ch->is->name);
615 ch->is->name);
632 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
636 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
641 pr_debug("%s: not ACTIV\n", ch->is->name);
643 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
646 send_mbox(ch->is, SET_DPS(ch->dpath) | ISAR_HIS_SDATA,
649 pr_debug("%s: not FTH/FTM\n", ch->is->name);
676 pr_debug("%s: %s ch%d tx_skb %d tx_idx %d\n", ch->is->name, __func__,
705 send_mbox(ch->is, SET_DPS(ch->dpath) |
754 u8 ril = ch->is->buf[0];
757 if (!test_and_clear_bit(ISAR_RATE_REQ, &ch->is->Flags))
760 pr_info("%s: wrong pstrsp ril=%d\n", ch->is->name, ril);
763 switch (ch->is->buf[1]) {
799 pr_debug("%s: pump strsp %s\n", ch->is->name, ch->conmsg);
808 pr_debug("%s: pump stev TIMER\n", ch->is->name);
811 pr_debug("%s: pump stev CONNECT\n", ch->is->name);
815 pr_debug("%s: pump stev NO CONNECT\n", ch->is->name);
816 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
820 pr_debug("%s: pump stev V24 OFF\n", ch->is->name);
823 pr_debug("%s: pump stev CTS ON\n", ch->is->name);
826 pr_debug("%s pump stev CTS OFF\n", ch->is->name);
829 pr_debug("%s: pump stev CARRIER ON\n", ch->is->name);
830 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
831 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
834 pr_debug("%s: pump stev CARRIER OFF\n", ch->is->name);
837 pr_debug("%s: pump stev DSR ON\n", ch->is->name);
840 pr_debug("%s: pump stev DSR_OFF\n", ch->is->name);
843 pr_debug("%s: pump stev REMOTE RETRAIN\n", ch->is->name);
846 pr_debug("%s: pump stev REMOTE RENEGOTIATE\n", ch->is->name);
849 pr_debug("%s: pump stev GSTN CLEAR\n", ch->is->name);
852 pr_info("u%s: unknown pump stev %x\n", ch->is->name, devt);
864 pr_debug("%s: pump stev TIMER\n", ch->is->name);
867 pr_debug("%s: pump stev RSP_READY\n", ch->is->name);
879 pr_debug("%s: pump stev LINE_TX_H\n", ch->is->name);
881 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
885 ch->is->name, ch->state);
890 pr_debug("%s: pump stev LINE_RX_H\n", ch->is->name);
892 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
896 ch->is->name, ch->state);
901 pr_debug("%s: pump stev LINE_TX_B\n", ch->is->name);
903 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
907 ch->is->name, ch->state);
912 pr_debug("%s: pump stev LINE_RX_B\n", ch->is->name);
914 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
918 ch->is->name, ch->state);
923 pr_debug("%s: pump stev RSP_CONN\n", ch->is->name);
925 test_and_set_bit(ISAR_RATE_REQ, &ch->is->Flags);
926 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
943 ch->is->name, ch->state);
947 pr_debug("%s: pump stev FLAGS_DET\n", ch->is->name);
951 ch->is->name, ch->state);
962 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
973 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
980 ch->is->name, ch->newcmd);
998 pr_debug("%s: pump stev RSP_SILDET\n", ch->is->name);
1005 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
1012 pr_debug("%s: pump stev RSP_SILOFF\n", ch->is->name);
1017 ch->is->name, ch->try_mod);
1019 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL,
1024 pr_debug("%s: pump stev RSP_FCERR\n", ch->is->name);
1026 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, PCTRL_CMD_ESC,
1139 pr_debug("%s: ftimer flags %lx\n", ch->is->name, ch->bch.Flags);
1154 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, PMOD_BYPASS, 0, NULL);
1159 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
1163 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG,
1181 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 6, param);
1192 send_mbox(ch->is, dps | ISAR_HIS_PUMPCFG, ctrl, 2, param);
1200 send_mbox(ch->is, dps | ISAR_HIS_PSTREQ, 0, 0, NULL);
1211 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_DISABLE,
1216 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_BINARY,
1221 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, SMODE_HDLC,
1228 send_mbox(ch->is, dps | ISAR_HIS_SARTCFG, ctrl, 2, param);
1232 send_mbox(ch->is, dps | ISAR_HIS_BSTREQ, 0, 0, NULL);
1265 send_mbox(ch->is, dps | ISAR_HIS_IOM2CFG, cmsb, 5, msg);
1267 send_mbox(ch->is, dps | ISAR_HIS_IOM2REQ, 0, 0, NULL);
1286 /* best is datapath 2 */
1287 if (!test_and_set_bit(ISAR_DP2_USE, &ch->is->Flags))
1290 &ch->is->Flags))
1306 if (!test_and_set_bit(ISAR_DP1_USE, &ch->is->Flags))
1310 "only with DP1\n", ch->is->name);
1315 pr_info("%s: protocol not known %x\n", ch->is->name,
1320 pr_debug("%s: ISAR ch%d dp%d protocol %x->%x\n", ch->is->name,
1329 test_and_clear_bit(ISAR_DP1_USE, &ch->is->Flags);
1331 test_and_clear_bit(ISAR_DP2_USE, &ch->is->Flags);
1333 ch->is->ctrl(ch->is->hw, HW_DEACT_IND, ch->bch.nr);
1335 ch->is->ctrl(ch->is->hw, HW_ACTIVATE_IND, ch->bch.nr);
1346 ch->is->name, cmd, para, ch->bch.state);
1443 send_mbox(ch->is, dps | ISAR_HIS_PUMPCTRL, ctrl, nom, &p1);
1477 spin_lock_irqsave(ich->is->hwlock, flags);
1483 spin_unlock_irqrestore(ich->is->hwlock, flags);
1486 spin_lock_irqsave(ich->is->hwlock, flags);
1491 spin_unlock_irqrestore(ich->is->hwlock, flags);
1497 spin_lock_irqsave(ich->is->hwlock, flags);
1500 spin_unlock_irqrestore(ich->is->hwlock, flags);
1507 pr_debug("%s: PH_CONTROL | REQUEST %x/%x\n", ich->is->name,
1521 spin_lock_irqsave(ich->is->hwlock, flags);
1523 spin_unlock_irqrestore(ich->is->hwlock, flags);
1536 pr_debug("%s: isar: new mod\n", ich->is->name);
1541 ich->is->name);
1548 ich->is->name, hh->id);
1554 ich->is->name, __func__, hh->prim, hh->id);
1576 pr_debug("%s: %s cmd:%x %p\n", ich->is->name, __func__, cmd, arg);
1581 spin_lock_irqsave(ich->is->hwlock, flags);
1584 spin_unlock_irqrestore(ich->is->hwlock, flags);
1587 module_put(ich->is->owner);
1595 ich->is->name, __func__, cmd);
1664 isar->ch[i].is = isar;