Lines Matching refs:csta

1085 init_chan(int chan, struct IsdnCardState *csta)  in init_chan()  argument
1087 struct Channel *chanp = csta->channel + chan; in init_chan()
1090 chanp->cs = csta; in init_chan()
1091 chanp->bcs = csta->bcs + chan; in init_chan()
1108 if (!chan || (test_bit(FLG_TWO_DCHAN, &csta->HW_Flags) && chan < 2)) { in init_chan()
1113 chanp->d_st = csta->channel->d_st; in init_chan()
1120 CallcNewChan(struct IsdnCardState *csta) { in CallcNewChan() argument
1124 err = init_chan(0, csta); in CallcNewChan()
1127 err = init_chan(1, csta); in CallcNewChan()
1133 err = init_chan(i + 2, csta); in CallcNewChan()
1138 if (test_bit(FLG_PTP, &csta->channel->d_st->l2.flag)) { in CallcNewChan()
1140 csta->channel->d_st->lli.l4l3(csta->channel->d_st, in CallcNewChan()
1161 CallcFreeChan(struct IsdnCardState *csta) in CallcFreeChan() argument
1166 FsmDelTimer(&csta->channel[i].drel_timer, 74); in CallcFreeChan()
1167 FsmDelTimer(&csta->channel[i].dial_timer, 75); in CallcFreeChan()
1168 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) in CallcFreeChan()
1169 release_d_st(csta->channel + i); in CallcFreeChan()
1170 if (csta->channel[i].b_st) { in CallcFreeChan()
1171 release_b_st(csta->channel + i); in CallcFreeChan()
1172 kfree(csta->channel[i].b_st); in CallcFreeChan()
1173 csta->channel[i].b_st = NULL; in CallcFreeChan()
1176 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) { in CallcFreeChan()
1177 release_d_st(csta->channel + i); in CallcFreeChan()
1179 csta->channel[i].d_st = NULL; in CallcFreeChan()
1393 distr_debug(struct IsdnCardState *csta, int debugflags) in distr_debug() argument
1396 struct Channel *chanp = csta->channel; in distr_debug()
1413 csta->debug |= DEB_DLOG_HEX; in distr_debug()
1415 csta->debug &= ~DEB_DLOG_HEX; in distr_debug()
1498 struct IsdnCardState *csta = hisax_findcard(ic->driver); in HiSax_command() local
1504 if (!csta) { in HiSax_command()
1512 chanp = csta->channel + ic->arg; in HiSax_command()
1515 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1518 csta->cardnr + 1, ic->arg >> 8); in HiSax_command()
1522 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1525 csta->cardnr + 1, ic->arg >> 8); in HiSax_command()
1529 chanp = csta->channel + (ic->arg & 0xff); in HiSax_command()
1547 chanp = csta->channel + ic->arg; in HiSax_command()
1553 chanp = csta->channel + ic->arg; in HiSax_command()
1560 chanp = csta->channel + ic->arg; in HiSax_command()
1566 chanp = csta->channel + ic->arg; in HiSax_command()
1578 lli_got_manufacturer(chanp, csta, &ic->parm.cmsg); in HiSax_command()
1588 HiSax_reportcard(csta->cardnr, num); in HiSax_command()
1592 distr_debug(csta, num); in HiSax_command()
1594 csta->cardnr + 1, num); in HiSax_command()
1595 HiSax_putstatus(csta, "debugging flags ", in HiSax_command()
1596 "card %d set to %x", csta->cardnr + 1, num); in HiSax_command()
1600 csta->channel[0].b_st->l1.delay = num; in HiSax_command()
1601 csta->channel[1].b_st->l1.delay = num; in HiSax_command()
1602 HiSax_putstatus(csta, "delay ", "card %d set to %d ms", in HiSax_command()
1603 csta->cardnr + 1, num); in HiSax_command()
1605 csta->cardnr + 1, num); in HiSax_command()
1610 HiSax_putstatus(csta, "Set LEASED ", in HiSax_command()
1616 chanp = csta->channel + num; in HiSax_command()
1618 HiSax_putstatus(csta, "Card", in HiSax_command()
1620 csta->cardnr + 1, num + 1); in HiSax_command()
1629 if (csta->stlist) in HiSax_command()
1630 csta->stlist->l2.l2l1(csta->stlist, in HiSax_command()
1635 if (test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) { in HiSax_command()
1638 test_and_set_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1639 test_and_set_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1640 csta->channel[0].d_st->l2.tei = 0; in HiSax_command()
1641 HiSax_putstatus(csta, "set card ", "in PTP mode"); in HiSax_command()
1644 csta->channel[0].d_st->lli.l4l3(csta->channel[0].d_st, in HiSax_command()
1647 test_and_clear_bit(FLG_PTP, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1648 test_and_clear_bit(FLG_FIXED_TEI, &csta->channel[0].d_st->l2.flag); in HiSax_command()
1649 HiSax_putstatus(csta, "set card ", "in PTMP mode"); in HiSax_command()
1655 chanp = csta->channel + (num & 1); in HiSax_command()
1660 HiSax_putstatus(csta, "set card ", "in VAR TEI mode"); in HiSax_command()
1665 HiSax_putstatus(csta, "set card ", "in FIXED TEI (%d) mode", num); in HiSax_command()
1673 num = csta->debug & DEB_DLOG_HEX; in HiSax_command()
1674 csta->debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1675 csta->debug |= num; in HiSax_command()
1678 csta->cardnr + 1, csta->debug); in HiSax_command()
1680 csta->cardnr + 1, csta->debug); in HiSax_command()
1683 csta->channel[0].d_st->l3.debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1684 csta->channel[1].d_st->l3.debug = *(unsigned int *) ic->parm.num; in HiSax_command()
1686 "flags card %d set to %x\n", csta->cardnr + 1, in HiSax_command()
1689 csta->cardnr + 1, *(unsigned int *) ic->parm.num); in HiSax_command()
1693 return (set_channel_limit(csta, i)); in HiSax_command()
1695 if (csta->auxcmd) in HiSax_command()
1696 return (csta->auxcmd(csta, ic)); in HiSax_command()
1704 chanp = csta->channel + ic->arg; in HiSax_command()
1711 chanp = csta->channel + ic->arg; in HiSax_command()
1718 chanp = csta->channel + ic->arg; in HiSax_command()
1727 for (st = csta->stlist; st; st = st->next) in HiSax_command()
1733 if (csta->auxcmd) in HiSax_command()
1734 return (csta->auxcmd(csta, ic)); in HiSax_command()
1743 struct IsdnCardState *csta = hisax_findcard(id); in HiSax_writebuf_skb() local
1749 if (!csta) { in HiSax_writebuf_skb()
1754 chanp = csta->channel + chan; in HiSax_writebuf_skb()