Lines Matching refs:bcs

830 	if (csta->bcs->BC_Close != NULL) {  in closecard()
831 csta->bcs->BC_Close(csta->bcs + 1); in closecard()
832 csta->bcs->BC_Close(csta->bcs); in closecard()
1313 cs->HW_Flags, cs->bcs[0].Flag, cs->bcs[1].Flag); in HiSax_reportcard()
1315 cs->bcs[0].mode, cs->bcs[0].channel); in HiSax_reportcard()
1317 cs->bcs[1].mode, cs->bcs[1].channel); in HiSax_reportcard()
1323 cs->bcs[0].err_inv, cs->bcs[0].err_rdo, cs->bcs[0].err_crc, in HiSax_reportcard()
1324 cs->bcs[0].err_tx); in HiSax_reportcard()
1327 cs->bcs[1].err_inv, cs->bcs[1].err_rdo, cs->bcs[1].err_crc, in HiSax_reportcard()
1328 cs->bcs[1].err_tx); in HiSax_reportcard()
1333 cs->bcs[0].err_inv = 0; in HiSax_reportcard()
1334 cs->bcs[0].err_rdo = 0; in HiSax_reportcard()
1335 cs->bcs[0].err_crc = 0; in HiSax_reportcard()
1336 cs->bcs[0].err_tx = 0; in HiSax_reportcard()
1337 cs->bcs[1].err_inv = 0; in HiSax_reportcard()
1338 cs->bcs[1].err_rdo = 0; in HiSax_reportcard()
1339 cs->bcs[1].err_crc = 0; in HiSax_reportcard()
1340 cs->bcs[1].err_tx = 0; in HiSax_reportcard()
1764 static int hisax_bc_setstack(struct PStack *st, struct BCState *bcs);
1765 static void hisax_bc_close(struct BCState *bcs);
1801 cs->bcs[i].BC_SetStack = hisax_bc_setstack; in hisax_register()
1802 cs->bcs[i].BC_Close = hisax_bc_close; in hisax_register()
1851 static void hisax_b_sched_event(struct BCState *bcs, int event) in hisax_b_sched_event() argument
1853 bcs->event |= 1 << event; in hisax_b_sched_event()
1854 queue_task(&bcs->tqueue, &tq_immediate); in hisax_b_sched_event()
1917 struct BCState *bcs = b_if->bcs; in hisax_b_l1l2() local
1918 struct PStack *st = bcs->st; in hisax_b_l1l2()
1928 clear_bit(BC_FLG_BUSY, &bcs->Flag); in hisax_b_l1l2()
1929 skb_queue_purge(&bcs->squeue); in hisax_b_l1l2()
1930 bcs->hw.b_if = NULL; in hisax_b_l1l2()
1933 skb_queue_tail(&bcs->rqueue, arg); in hisax_b_l1l2()
1934 hisax_b_sched_event(bcs, B_RCVBUFREADY); in hisax_b_l1l2()
1937 bcs->tx_cnt -= (int) arg; in hisax_b_l1l2()
1938 if (bcs->st->lli.l1writewakeup) in hisax_b_l1l2()
1939 bcs->st->lli.l1writewakeup(bcs->st, (int) arg); in hisax_b_l1l2()
1940 skb = skb_dequeue(&bcs->squeue); in hisax_b_l1l2()
1945 clear_bit(BC_FLG_BUSY, &bcs->Flag); in hisax_b_l1l2()
1995 struct BCState *bcs = st->l1.bcs; in hisax_b_l2l1() local
1996 struct hisax_b_if *b_if = bcs->hw.b_if; in hisax_b_l2l1()
2005 if (!test_and_set_bit(BC_FLG_BUSY, &bcs->Flag)) { in hisax_b_l2l1()
2008 skb_queue_tail(&bcs->squeue, arg); in hisax_b_l2l1()
2012 if (!test_bit(BC_FLG_BUSY, &bcs->Flag)) in hisax_b_l2l1()
2018 test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); in hisax_b_l2l1()
2019 skb_queue_purge(&bcs->squeue); in hisax_b_l2l1()
2026 static int hisax_bc_setstack(struct PStack *st, struct BCState *bcs) in hisax_bc_setstack() argument
2031 bcs->channel = st->l1.bc; in hisax_bc_setstack()
2033 bcs->hw.b_if = hisax_d_if->b_if[st->l1.bc]; in hisax_bc_setstack()
2034 hisax_d_if->b_if[st->l1.bc]->bcs = bcs; in hisax_bc_setstack()
2036 st->l1.bcs = bcs; in hisax_bc_setstack()
2039 bcs->st = st; in hisax_bc_setstack()
2041 skb_queue_head_init(&bcs->rqueue); in hisax_bc_setstack()
2042 skb_queue_head_init(&bcs->squeue); in hisax_bc_setstack()
2046 static void hisax_bc_close(struct BCState *bcs) in hisax_bc_close() argument
2048 struct hisax_b_if *b_if = bcs->hw.b_if; in hisax_bc_close()