Lines Matching defs:on
129 * must be called on the exit
273 int ct_set_higain (ct_chan_t *c, int on)
277 c->gopt.higain = on ? 1 : 0;
311 * buffers will begin on this boundary
389 * Turn receiver on/off
391 void ct_enable_receive (ct_chan_t *c, int on)
397 if (on && ! (st3 & ST3_RX_ENABLED)) {
408 } else if (! on && (st3 & ST3_RX_ENABLED)) {
426 * Turn transmitter on/off
428 void ct_enable_transmit (ct_chan_t *c, int on)
434 if (on && ! (st3 & ST3_TX_ENABLED)) {
441 } else if (! on && (st3 & ST3_TX_ENABLED)) {
486 void ct_set_dpll (ct_chan_t *c, int on)
488 if (on && ct_get_baud (c))
503 void ct_set_nrzi (ct_chan_t *c, int on)
505 c->opt.md2.encod = on ? MD2_ENCOD_NRZI : MD2_ENCOD_NRZ;
512 void ct_set_invtxc (ct_chan_t *c, int on)
514 if (on) c->board->bcr2 |= (c->num ? BCR2_INVTXC1 : BCR2_INVTXC0);
527 void ct_set_invrxc (ct_chan_t *c, int on)
529 if (on) c->board->bcr2 |= (c->num ? BCR2_INVRXC1 : BCR2_INVRXC0);