wch               445 drivers/isdn/hardware/mISDN/w6692.c W6692_empty_Bfifo(struct w6692_ch *wch, int count)
wch               447 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_hw *card = wch->bch.hw;
wch               452 drivers/isdn/hardware/mISDN/w6692.c 	if (unlikely(wch->bch.state == ISDN_P_NONE)) {
wch               454 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT);
wch               455 drivers/isdn/hardware/mISDN/w6692.c 		if (wch->bch.rx_skb)
wch               456 drivers/isdn/hardware/mISDN/w6692.c 			skb_trim(wch->bch.rx_skb, 0);
wch               459 drivers/isdn/hardware/mISDN/w6692.c 	if (test_bit(FLG_RX_OFF, &wch->bch.Flags)) {
wch               460 drivers/isdn/hardware/mISDN/w6692.c 		wch->bch.dropcnt += count;
wch               461 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT);
wch               464 drivers/isdn/hardware/mISDN/w6692.c 	maxlen = bchannel_get_rxbuf(&wch->bch, count);
wch               466 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT);
wch               467 drivers/isdn/hardware/mISDN/w6692.c 		if (wch->bch.rx_skb)
wch               468 drivers/isdn/hardware/mISDN/w6692.c 			skb_trim(wch->bch.rx_skb, 0);
wch               470 drivers/isdn/hardware/mISDN/w6692.c 			   card->name, wch->bch.nr, count);
wch               473 drivers/isdn/hardware/mISDN/w6692.c 	ptr = skb_put(wch->bch.rx_skb, count);
wch               474 drivers/isdn/hardware/mISDN/w6692.c 	insb(wch->addr + W_B_RFIFO, ptr, count);
wch               475 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK | W_B_CMDR_RACT);
wch               478 drivers/isdn/hardware/mISDN/w6692.c 			 wch->bch.nr, card->name, count);
wch               484 drivers/isdn/hardware/mISDN/w6692.c W6692_fill_Bfifo(struct w6692_ch *wch)
wch               486 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_hw *card = wch->bch.hw;
wch               491 drivers/isdn/hardware/mISDN/w6692.c 	if (!wch->bch.tx_skb) {
wch               492 drivers/isdn/hardware/mISDN/w6692.c 		if (!test_bit(FLG_TX_EMPTY, &wch->bch.Flags))
wch               494 drivers/isdn/hardware/mISDN/w6692.c 		ptr = wch->bch.fill;
wch               498 drivers/isdn/hardware/mISDN/w6692.c 		count = wch->bch.tx_skb->len - wch->bch.tx_idx;
wch               501 drivers/isdn/hardware/mISDN/w6692.c 		ptr = wch->bch.tx_skb->data + wch->bch.tx_idx;
wch               505 drivers/isdn/hardware/mISDN/w6692.c 	else if (test_bit(FLG_HDLC, &wch->bch.Flags))
wch               509 drivers/isdn/hardware/mISDN/w6692.c 		 count, wch->bch.tx_idx);
wch               510 drivers/isdn/hardware/mISDN/w6692.c 	wch->bch.tx_idx += count;
wch               513 drivers/isdn/hardware/mISDN/w6692.c 			outsb(wch->addr + W_B_XFIFO, ptr, MISDN_BCH_FILL_SIZE);
wch               517 drivers/isdn/hardware/mISDN/w6692.c 		outsb(wch->addr + W_B_XFIFO, ptr, count);
wch               519 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_CMDR, cmd);
wch               522 drivers/isdn/hardware/mISDN/w6692.c 			 wch->bch.nr, card->name, count);
wch               529 drivers/isdn/hardware/mISDN/w6692.c setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
wch               531 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_hw *card = wch->bch.hw;
wch               536 drivers/isdn/hardware/mISDN/w6692.c 	    !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
wch               556 drivers/isdn/hardware/mISDN/w6692.c enable_pots(struct w6692_ch *wch)
wch               558 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_hw *card = wch->bch.hw;
wch               561 drivers/isdn/hardware/mISDN/w6692.c 	    !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
wch               563 drivers/isdn/hardware/mISDN/w6692.c 	wch->b_mode |= W_B_MODE_EPCM | W_B_MODE_BSW0;
wch               564 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_MODE, wch->b_mode);
wch               565 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST);
wch               566 drivers/isdn/hardware/mISDN/w6692.c 	card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0);
wch               573 drivers/isdn/hardware/mISDN/w6692.c disable_pots(struct w6692_ch *wch)
wch               575 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_hw *card = wch->bch.hw;
wch               579 drivers/isdn/hardware/mISDN/w6692.c 	wch->b_mode &= ~(W_B_MODE_EPCM | W_B_MODE_BSW0);
wch               580 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_MODE, wch->b_mode);
wch               581 drivers/isdn/hardware/mISDN/w6692.c 	WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_RACT |
wch               587 drivers/isdn/hardware/mISDN/w6692.c w6692_mode(struct w6692_ch *wch, u32 pr)
wch               591 drivers/isdn/hardware/mISDN/w6692.c 	card = wch->bch.hw;
wch               593 drivers/isdn/hardware/mISDN/w6692.c 		 wch->bch.nr, wch->bch.state, pr);
wch               596 drivers/isdn/hardware/mISDN/w6692.c 		if ((card->fmask & pots) && (wch->b_mode & W_B_MODE_EPCM))
wch               597 drivers/isdn/hardware/mISDN/w6692.c 			disable_pots(wch);
wch               598 drivers/isdn/hardware/mISDN/w6692.c 		wch->b_mode = 0;
wch               599 drivers/isdn/hardware/mISDN/w6692.c 		mISDN_clear_bchannel(&wch->bch);
wch               600 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_MODE, wch->b_mode);
wch               601 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST);
wch               602 drivers/isdn/hardware/mISDN/w6692.c 		test_and_clear_bit(FLG_HDLC, &wch->bch.Flags);
wch               603 drivers/isdn/hardware/mISDN/w6692.c 		test_and_clear_bit(FLG_TRANSPARENT, &wch->bch.Flags);
wch               606 drivers/isdn/hardware/mISDN/w6692.c 		wch->b_mode = W_B_MODE_MMS;
wch               607 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_MODE, wch->b_mode);
wch               608 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_EXIM, 0);
wch               609 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_RACT |
wch               611 drivers/isdn/hardware/mISDN/w6692.c 		test_and_set_bit(FLG_TRANSPARENT, &wch->bch.Flags);
wch               614 drivers/isdn/hardware/mISDN/w6692.c 		wch->b_mode = W_B_MODE_ITF;
wch               615 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_MODE, wch->b_mode);
wch               616 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_ADM1, 0xff);
wch               617 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_ADM2, 0xff);
wch               618 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_EXIM, 0);
wch               619 drivers/isdn/hardware/mISDN/w6692.c 		WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_RACT |
wch               621 drivers/isdn/hardware/mISDN/w6692.c 		test_and_set_bit(FLG_HDLC, &wch->bch.Flags);
wch               627 drivers/isdn/hardware/mISDN/w6692.c 	wch->bch.state = pr;
wch               632 drivers/isdn/hardware/mISDN/w6692.c send_next(struct w6692_ch *wch)
wch               634 drivers/isdn/hardware/mISDN/w6692.c 	if (wch->bch.tx_skb && wch->bch.tx_idx < wch->bch.tx_skb->len) {
wch               635 drivers/isdn/hardware/mISDN/w6692.c 		W6692_fill_Bfifo(wch);
wch               637 drivers/isdn/hardware/mISDN/w6692.c 		dev_kfree_skb(wch->bch.tx_skb);
wch               638 drivers/isdn/hardware/mISDN/w6692.c 		if (get_next_bframe(&wch->bch)) {
wch               639 drivers/isdn/hardware/mISDN/w6692.c 			W6692_fill_Bfifo(wch);
wch               640 drivers/isdn/hardware/mISDN/w6692.c 			test_and_clear_bit(FLG_TX_EMPTY, &wch->bch.Flags);
wch               641 drivers/isdn/hardware/mISDN/w6692.c 		} else if (test_bit(FLG_TX_EMPTY, &wch->bch.Flags)) {
wch               642 drivers/isdn/hardware/mISDN/w6692.c 			W6692_fill_Bfifo(wch);
wch               650 drivers/isdn/hardware/mISDN/w6692.c 	struct w6692_ch	*wch = &card->bc[ch];
wch               654 drivers/isdn/hardware/mISDN/w6692.c 	stat = ReadW6692B(wch, W_B_EXIR);
wch               655 drivers/isdn/hardware/mISDN/w6692.c 	pr_debug("%s: B%d EXIR %02x\n", card->name, wch->bch.nr, stat);
wch               657 drivers/isdn/hardware/mISDN/w6692.c 		star = ReadW6692B(wch, W_B_STAR);
wch               660 drivers/isdn/hardware/mISDN/w6692.c 			    test_bit(FLG_ACTIVE, &wch->bch.Flags)) {
wch               662 drivers/isdn/hardware/mISDN/w6692.c 					 wch->bch.nr, wch->bch.state);
wch               664 drivers/isdn/hardware/mISDN/w6692.c 				wch->bch.err_rdo++;
wch               667 drivers/isdn/hardware/mISDN/w6692.c 			if (test_bit(FLG_HDLC, &wch->bch.Flags)) {
wch               670 drivers/isdn/hardware/mISDN/w6692.c 						 card->name, wch->bch.nr);
wch               672 drivers/isdn/hardware/mISDN/w6692.c 					wch->bch.err_crc++;
wch               677 drivers/isdn/hardware/mISDN/w6692.c 						 card->name, wch->bch.nr);
wch               679 drivers/isdn/hardware/mISDN/w6692.c 					wch->bch.err_inv++;
wch               683 drivers/isdn/hardware/mISDN/w6692.c 			WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK |
wch               685 drivers/isdn/hardware/mISDN/w6692.c 			if (wch->bch.rx_skb)
wch               686 drivers/isdn/hardware/mISDN/w6692.c 				skb_trim(wch->bch.rx_skb, 0);
wch               688 drivers/isdn/hardware/mISDN/w6692.c 			count = ReadW6692B(wch, W_B_RBCL) &
wch               692 drivers/isdn/hardware/mISDN/w6692.c 			W6692_empty_Bfifo(wch, count);
wch               693 drivers/isdn/hardware/mISDN/w6692.c 			recv_Bchannel(&wch->bch, 0, false);
wch               698 drivers/isdn/hardware/mISDN/w6692.c 			star = ReadW6692B(wch, W_B_STAR);
wch               701 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, wch->bch.state);
wch               703 drivers/isdn/hardware/mISDN/w6692.c 			wch->bch.err_rdo++;
wch               705 drivers/isdn/hardware/mISDN/w6692.c 			WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK |
wch               708 drivers/isdn/hardware/mISDN/w6692.c 			W6692_empty_Bfifo(wch, W_B_FIFO_THRESH);
wch               709 drivers/isdn/hardware/mISDN/w6692.c 			if (test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
wch               710 drivers/isdn/hardware/mISDN/w6692.c 				recv_Bchannel(&wch->bch, 0, false);
wch               717 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, wch->bch.state);
wch               719 drivers/isdn/hardware/mISDN/w6692.c 			wch->bch.err_rdo++;
wch               721 drivers/isdn/hardware/mISDN/w6692.c 			WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RACK |
wch               727 drivers/isdn/hardware/mISDN/w6692.c 			star = ReadW6692B(wch, W_B_STAR);
wch               729 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, star);
wch               733 drivers/isdn/hardware/mISDN/w6692.c 				   wch->bch.nr, wch->bch.state);
wch               735 drivers/isdn/hardware/mISDN/w6692.c 			wch->bch.err_xdu++;
wch               737 drivers/isdn/hardware/mISDN/w6692.c 			WriteW6692B(wch, W_B_CMDR, W_B_CMDR_XRST |
wch               740 drivers/isdn/hardware/mISDN/w6692.c 			if (wch->bch.tx_skb) {
wch               741 drivers/isdn/hardware/mISDN/w6692.c 				if (!test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
wch               742 drivers/isdn/hardware/mISDN/w6692.c 					wch->bch.tx_idx = 0;
wch               745 drivers/isdn/hardware/mISDN/w6692.c 		send_next(wch);
wch               751 drivers/isdn/hardware/mISDN/w6692.c 			   wch->bch.nr, wch->bch.state);
wch               753 drivers/isdn/hardware/mISDN/w6692.c 		wch->bch.err_xdu++;
wch               756 drivers/isdn/hardware/mISDN/w6692.c 		if (wch->bch.tx_skb) {
wch               757 drivers/isdn/hardware/mISDN/w6692.c 			if (!test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
wch               758 drivers/isdn/hardware/mISDN/w6692.c 				wch->bch.tx_idx = 0;
wch               759 drivers/isdn/hardware/mISDN/w6692.c 		} else if (test_bit(FLG_FILLEMPTY, &wch->bch.Flags)) {
wch               760 drivers/isdn/hardware/mISDN/w6692.c 			test_and_set_bit(FLG_TX_EMPTY, &wch->bch.Flags);
wch               762 drivers/isdn/hardware/mISDN/w6692.c 		send_next(wch);
wch              1755 drivers/s390/net/ctcm_fsms.c 	struct channel *wch = priv->channel[CTCM_WRITE];
wch              1769 drivers/s390/net/ctcm_fsms.c 				__func__, wch->th_seq_num);
wch              1773 drivers/s390/net/ctcm_fsms.c 	if (fsm_getstate(wch->fsm) != CTC_STATE_TXIDLE) {
wch              1775 drivers/s390/net/ctcm_fsms.c 		fsm_addtimer(&wch->sweep_timer,
wch              1776 drivers/s390/net/ctcm_fsms.c 			200, CTC_EVENT_RSWEEP_TIMER, wch);
wch              1780 drivers/s390/net/ctcm_fsms.c 	skb = skb_dequeue(&wch->sweep_queue);
wch              1784 drivers/s390/net/ctcm_fsms.c 	if (set_normalized_cda(&wch->ccw[4], skb->data)) {
wch              1792 drivers/s390/net/ctcm_fsms.c 		skb_queue_tail(&wch->io_queue, skb);
wch              1796 drivers/s390/net/ctcm_fsms.c 	wch->ccw[4].count = skb->len;
wch              1808 drivers/s390/net/ctcm_fsms.c 	header->sw.th_last_seq = wch->th_seq_num;
wch              1810 drivers/s390/net/ctcm_fsms.c 	CTCM_CCW_DUMP((char *)&wch->ccw[3], sizeof(struct ccw1) * 3);
wch              1814 drivers/s390/net/ctcm_fsms.c 	fsm_addtimer(&wch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, wch);
wch              1815 drivers/s390/net/ctcm_fsms.c 	fsm_newstate(wch->fsm, CTC_STATE_TX);
wch              1817 drivers/s390/net/ctcm_fsms.c 	spin_lock_irqsave(get_ccwdev_lock(wch->cdev), saveflags);
wch              1818 drivers/s390/net/ctcm_fsms.c 	wch->prof.send_stamp = jiffies;
wch              1819 drivers/s390/net/ctcm_fsms.c 	rc = ccw_device_start(wch->cdev, &wch->ccw[3], 0, 0xff, 0);
wch              1820 drivers/s390/net/ctcm_fsms.c 	spin_unlock_irqrestore(get_ccwdev_lock(wch->cdev), saveflags);
wch              1826 drivers/s390/net/ctcm_fsms.c 		wch->th_seq_num = 0x00;
wch              1831 drivers/s390/net/ctcm_fsms.c 			__func__, wch->th_seq_num, rch->th_seq_num);
wch              1834 drivers/s390/net/ctcm_fsms.c 		ctcm_ccw_check_rc(wch, rc, "send sweep");
wch               403 drivers/s390/net/ctcm_mpc.c 	struct channel *rch, *wch;
wch               411 drivers/s390/net/ctcm_mpc.c 	wch = priv->channel[CTCM_WRITE];
wch               458 drivers/s390/net/ctcm_mpc.c 			(fsm_getstate(wch->fsm) > CH_XID0_PENDING)) {
wch               486 drivers/s390/net/ctcm_mpc.c 		if ((wch->in_mpcgroup) &&
wch               487 drivers/s390/net/ctcm_mpc.c 				(fsm_getstate(wch->fsm) == CH_XID0_PENDING))
wch               488 drivers/s390/net/ctcm_mpc.c 			fsm_event(grp->fsm, MPCG_EVENT_XID0DO, wch);
wch               492 drivers/s390/net/ctcm_mpc.c 					CTCM_FUNTAIL, dev->name, wch->id);
wch              1355 drivers/s390/net/ctcm_mpc.c 	struct channel *wch;
wch              1378 drivers/s390/net/ctcm_mpc.c 	wch = priv->channel[CTCM_WRITE];
wch              1396 drivers/s390/net/ctcm_mpc.c 		tasklet_hi_schedule(&wch->ch_disc_tasklet);
wch              1457 drivers/s390/net/ctcm_mpc.c 	struct channel *wch;
wch              1462 drivers/s390/net/ctcm_mpc.c 	wch = priv->channel[CTCM_WRITE];
wch              1471 drivers/s390/net/ctcm_mpc.c 		   (fsm_getstate(wch->fsm) == CH_XID0_PENDING))
wch              1945 drivers/staging/speakup/main.c 	u16 wch;
wch              1954 drivers/staging/speakup/main.c 		u16 wch;
wch              1958 drivers/staging/speakup/main.c 		wch = goto_buf[--num];
wch              1960 drivers/staging/speakup/main.c 		spkup_write(&wch, 1);
wch              1965 drivers/staging/speakup/main.c 	wch = ch;
wch              1968 drivers/staging/speakup/main.c 	spkup_write(&wch, 1);