Lines Matching refs:wch
1749 struct channel *wch = priv->channel[CTCM_WRITE]; in ctcmpc_chx_send_sweep() local
1763 __func__, wch->th_seq_num); in ctcmpc_chx_send_sweep()
1767 if (fsm_getstate(wch->fsm) != CTC_STATE_TXIDLE) { in ctcmpc_chx_send_sweep()
1769 fsm_addtimer(&wch->sweep_timer, in ctcmpc_chx_send_sweep()
1770 200, CTC_EVENT_RSWEEP_TIMER, wch); in ctcmpc_chx_send_sweep()
1774 skb = skb_dequeue(&wch->sweep_queue); in ctcmpc_chx_send_sweep()
1778 if (set_normalized_cda(&wch->ccw[4], skb->data)) { in ctcmpc_chx_send_sweep()
1786 skb_queue_tail(&wch->io_queue, skb); in ctcmpc_chx_send_sweep()
1790 wch->ccw[4].count = skb->len; in ctcmpc_chx_send_sweep()
1802 header->sw.th_last_seq = wch->th_seq_num; in ctcmpc_chx_send_sweep()
1804 CTCM_CCW_DUMP((char *)&wch->ccw[3], sizeof(struct ccw1) * 3); in ctcmpc_chx_send_sweep()
1808 fsm_addtimer(&wch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, wch); in ctcmpc_chx_send_sweep()
1809 fsm_newstate(wch->fsm, CTC_STATE_TX); in ctcmpc_chx_send_sweep()
1811 spin_lock_irqsave(get_ccwdev_lock(wch->cdev), saveflags); in ctcmpc_chx_send_sweep()
1812 wch->prof.send_stamp = jiffies; in ctcmpc_chx_send_sweep()
1813 rc = ccw_device_start(wch->cdev, &wch->ccw[3], 0, 0xff, 0); in ctcmpc_chx_send_sweep()
1814 spin_unlock_irqrestore(get_ccwdev_lock(wch->cdev), saveflags); in ctcmpc_chx_send_sweep()
1820 wch->th_seq_num = 0x00; in ctcmpc_chx_send_sweep()
1825 __func__, wch->th_seq_num, rch->th_seq_num); in ctcmpc_chx_send_sweep()
1828 ctcm_ccw_check_rc(wch, rc, "send sweep"); in ctcmpc_chx_send_sweep()