Lines Matching refs:csta
1095 init_chan(int chan, struct IsdnCardState *csta) in init_chan() argument
1097 struct Channel *chanp = csta->channel + chan; in init_chan()
1100 chanp->cs = csta; in init_chan()
1101 chanp->bcs = csta->bcs + chan; in init_chan()
1118 if (!chan || (test_bit(FLG_TWO_DCHAN, &csta->HW_Flags) && chan < 2)) { in init_chan()
1123 chanp->d_st = csta->channel->d_st; in init_chan()
1130 CallcNewChan(struct IsdnCardState *csta) { in CallcNewChan() argument
1134 err = init_chan(0, csta); in CallcNewChan()
1137 err = init_chan(1, csta); in CallcNewChan()
1143 err = init_chan(i+2,csta); in CallcNewChan()
1148 if (test_bit(FLG_PTP, &csta->channel->d_st->l2.flag)) { in CallcNewChan()
1150 csta->channel->d_st->lli.l4l3(csta->channel->d_st, in CallcNewChan()
1171 CallcFreeChan(struct IsdnCardState *csta) in CallcFreeChan() argument
1176 FsmDelTimer(&csta->channel[i].drel_timer, 74); in CallcFreeChan()
1177 FsmDelTimer(&csta->channel[i].dial_timer, 75); in CallcFreeChan()
1178 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) in CallcFreeChan()
1179 release_d_st(csta->channel + i); in CallcFreeChan()
1180 if (csta->channel[i].b_st) { in CallcFreeChan()
1181 release_b_st(csta->channel + i); in CallcFreeChan()
1182 kfree(csta->channel[i].b_st); in CallcFreeChan()
1183 csta->channel[i].b_st = NULL; in CallcFreeChan()
1186 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) { in CallcFreeChan()
1187 release_d_st(csta->channel + i); in CallcFreeChan()
1189 csta->channel[i].d_st = NULL; in CallcFreeChan()
1401 distr_debug(struct IsdnCardState *csta, int debugflags) in distr_debug() argument
1404 struct Channel *chanp = csta->channel; in distr_debug()
1421 csta->debug |= DEB_DLOG_HEX; in distr_debug()
1423 csta->debug &= ~DEB_DLOG_HEX; in distr_debug()
1506 struct IsdnCardState *csta = hisax_findcard(ic->driver); in HiSax_command() local
1512 if (!csta) { in HiSax_command()
1520 chanp = csta->channel + ic->arg; in HiSax_command()
1523 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1526 csta->cardnr + 1, ic->arg >> 8); in HiSax_command()
1530 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1533 csta->cardnr + 1, ic->arg >> 8); in HiSax_command()
1537 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1555 chanp = csta->channel + ic->arg; in HiSax_command()
1561 chanp = csta->channel + ic->arg; in HiSax_command()
1568 chanp = csta->channel + ic->arg; in HiSax_command()
1574 chanp = csta->channel + ic->arg; in HiSax_command()
1586 lli_got_manufacturer(chanp, csta, &ic->parm.cmsg); in HiSax_command()
1593 HiSax_mod_inc_use_count(csta); in HiSax_command()
1595 if (csta->channel[0].debug & 0x400) in HiSax_command()
1596 HiSax_putstatus(csta, " LOCK ", "modcnt %lx", in HiSax_command()
1601 HiSax_mod_dec_use_count(csta); in HiSax_command()
1603 if (csta->channel[0].debug & 0x400) in HiSax_command()
1604 HiSax_putstatus(csta, " UNLOCK ", "modcnt %lx", in HiSax_command()
1612 HiSax_reportcard(csta->cardnr, num); in HiSax_command()
1616 distr_debug(csta, num); in HiSax_command()
1618 csta->cardnr + 1, num); in HiSax_command()
1619 HiSax_putstatus(csta, "debugging flags ", in HiSax_command()
1620 "card %d set to %x", csta->cardnr + 1, num); in HiSax_command()
1624 csta->channel[0].b_st->l1.delay = num; in HiSax_command()
1625 csta->channel[1].b_st->l1.delay = num; in HiSax_command()
1626 HiSax_putstatus(csta, "delay ", "card %d set to %d ms", in HiSax_command()
1627 csta->cardnr + 1, num); in HiSax_command()
1629 csta->cardnr + 1, num); in HiSax_command()
1642 HiSax_putstatus(csta, "Set LEASED ", in HiSax_command()
1648 chanp = csta->channel +num; in HiSax_command()
1650 HiSax_putstatus(csta, "Card", in HiSax_command()
1652 csta->cardnr + 1, num + 1); in HiSax_command()
1661 if (csta->stlist) in HiSax_command()
1662 csta->stlist->l2.l2l1(csta->stlist, in HiSax_command()
1667 if (test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) { in HiSax_command()
1670 test_and_set_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1671 test_and_set_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1672 csta->channel[0].d_st->l2.tei = 0; in HiSax_command()
1673 HiSax_putstatus(csta, "set card ", "in PTP mode"); in HiSax_command()
1676 csta->channel[0].d_st->lli.l4l3(csta->channel[0].d_st, in HiSax_command()
1679 test_and_clear_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1680 test_and_clear_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1681 HiSax_putstatus(csta, "set card ", "in PTMP mode"); in HiSax_command()
1687 chanp = csta->channel + (num & 1); in HiSax_command()
1692 HiSax_putstatus(csta, "set card ", "in VAR TEI mode"); in HiSax_command()
1697 HiSax_putstatus(csta, "set card ", "in FIXED TEI (%d) mode", num); in HiSax_command()
1711 num = csta->debug & DEB_DLOG_HEX; in HiSax_command()
1712 csta->debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1713 csta->debug |= num; in HiSax_command()
1716 csta->cardnr + 1, csta->debug); in HiSax_command()
1718 csta->cardnr + 1, csta->debug); in HiSax_command()
1721 csta->channel[0].d_st->l3.debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1722 csta->channel[1].d_st->l3.debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1724 "flags card %d set to %x\n", csta->cardnr + 1, in HiSax_command()
1727 csta->cardnr + 1, *(unsigned int *) ic->parm.num); in HiSax_command()
1731 return(set_channel_limit(csta, i)); in HiSax_command()
1733 if (csta->auxcmd) in HiSax_command()
1734 return(csta->auxcmd(csta, ic)); in HiSax_command()
1742 chanp = csta->channel + ic->arg; in HiSax_command()
1749 chanp = csta->channel + ic->arg; in HiSax_command()
1756 chanp = csta->channel + ic->arg; in HiSax_command()
1765 for (st = csta->stlist; st; st = st->next) in HiSax_command()
1771 if (csta->auxcmd) in HiSax_command()
1772 return(csta->auxcmd(csta, ic)); in HiSax_command()
1781 struct IsdnCardState *csta = hisax_findcard(id); in HiSax_writebuf_skb() local
1788 if (!csta) { in HiSax_writebuf_skb()
1793 chanp = csta->channel + chan; in HiSax_writebuf_skb()