Lines Matching refs:param

225   struct scc_param param;  member
574 priv->param.pclk_hz = hw[type].pclk_hz; in setup_adapter()
575 priv->param.brg_tc = -1; in setup_adapter()
576 priv->param.clocks = TCTRxCP | RCRTxCP; in setup_adapter()
577 priv->param.persist = 256; in setup_adapter()
578 priv->param.dma = -1; in setup_adapter()
730 if (priv->param.dma >= 0) { in scc_open()
731 if (request_dma(priv->param.dma, "dmascc")) { in scc_open()
737 clear_dma_ff(priv->param.dma); in scc_open()
794 if (priv->param.dma >= 0) { in scc_open()
804 write_scc(priv, R10, CRCPS | (priv->param.nrzi ? NRZI : NRZ)); in scc_open()
807 if (priv->param.brg_tc >= 0) { in scc_open()
809 write_scc(priv, R12, priv->param.brg_tc & 0xFF); in scc_open()
810 write_scc(priv, R13, (priv->param.brg_tc>>8) & 0xFF); in scc_open()
828 write_scc(priv, R11, priv->param.clocks); in scc_open()
829 if ((priv->type == TYPE_TWIN) && !(priv->param.clocks & TRxCOI)) { in scc_open()
871 if (priv->param.dma >= 0) { in scc_close()
873 free_dma(priv->param.dma); in scc_close()
887 if (copy_to_user(ifr->ifr_data, &priv->param, sizeof(struct scc_param))) in scc_ioctl()
893 if (copy_from_user(&priv->param, ifr->ifr_data, sizeof(struct scc_param))) in scc_ioctl()
935 start_timer(priv, priv->param.txdelay, 0); in scc_send_packet()
1021 if (priv->param.dma >= 0) { in rx_isr()
1053 if (priv->param.dma < 0) write_scc(priv, R0, ERR_RES); in special_condition()
1056 if (priv->param.dma >= 0) { in special_condition()
1058 cb = BUF_SIZE - get_dma_residue(priv->param.dma) - 2; in special_condition()
1092 if (priv->param.dma >= 0) { in special_condition()
1094 set_dma_addr(priv->param.dma, (int) priv->rx_buf[priv->rx_head]); in special_condition()
1095 set_dma_count(priv->param.dma, BUF_SIZE); in special_condition()
1173 if (priv->param.dma >= 0) { in tx_on()
1177 set_dma_mode(priv->param.dma, DMA_MODE_WRITE); in tx_on()
1178 set_dma_addr(priv->param.dma, (int) priv->tx_buf[priv->tx_tail]+n); in tx_on()
1179 set_dma_count(priv->param.dma, priv->tx_len[priv->tx_tail]-n); in tx_on()
1185 outb((priv->param.dma == 1) ? TWIN_DMA_HDX_T1 : TWIN_DMA_HDX_T3, in tx_on()
1194 enable_dma(priv->param.dma); in tx_on()
1212 if (priv->param.dma >= 0) { in rx_on()
1215 set_dma_mode(priv->param.dma, DMA_MODE_READ); in rx_on()
1216 set_dma_addr(priv->param.dma, (int) priv->rx_buf[priv->rx_head]); in rx_on()
1217 set_dma_count(priv->param.dma, BUF_SIZE); in rx_on()
1219 enable_dma(priv->param.dma); in rx_on()
1222 outb((priv->param.dma == 1) ? TWIN_DMA_HDX_R1 : TWIN_DMA_HDX_R3, in rx_on()
1244 if (priv->param.dma >= 0 && priv->type == TYPE_TWIN) in rx_off()
1249 if (priv->param.dma >= 0) disable_dma(priv->param.dma); in rx_off()
1268 if (priv->param.dma >= 0) { in es_isr()
1269 disable_dma(priv->param.dma); in es_isr()
1271 res = get_dma_residue(priv->param.dma); in es_isr()
1278 if (priv->param.dma >= 0 && priv->type == TYPE_TWIN) in es_isr()
1302 (jiffies - priv->tx_start) < priv->param.txtimeout) { in es_isr()
1304 start_timer(priv, priv->param.txpause, 0); in es_isr()
1307 start_timer(priv, priv->param.txtail, 0); in es_isr()
1319 start_timer(priv, priv->param.dcdon, 0); in es_isr()
1327 start_timer(priv, priv->param.dcdoff, 0); in es_isr()
1350 start_timer(priv, priv->param.rtsoff, 0); in tm_isr()
1361 start_timer(priv, priv->param.waittime, DCDIE); in tm_isr()
1370 start_timer(priv, priv->param.txdelay, 0); in tm_isr()
1386 random()/priv->param.persist*priv->param.slottime, in tm_isr()