Lines Matching defs:ctl

192 lmc_hssi_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl)
194 if (ctl == NULL)
205 if (ctl->clock_source && !sc->ictl.clock_source)
210 else if (!ctl->clock_source && sc->ictl.clock_source)
216 lmc_set_protocol (sc, ctl);
337 lmc_ds3_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl)
339 if (ctl == NULL)
351 if (ctl->cable_length && !sc->ictl.cable_length)
353 else if (!ctl->cable_length && sc->ictl.cable_length)
359 if (ctl->scrambler_onoff && !sc->ictl.scrambler_onoff)
361 else if (!ctl->scrambler_onoff && sc->ictl.scrambler_onoff)
364 lmc_set_protocol (sc, ctl);
574 lmc_ssi_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl)
576 if (ctl == NULL)
588 if (ctl->clock_source == LMC_CTL_CLOCK_SOURCE_INT
594 else if (ctl->clock_source == LMC_CTL_CLOCK_SOURCE_EXT
601 if (ctl->clock_rate != sc->ictl.clock_rate)
602 sc->lmc_media->set_speed (sc, ctl);
604 lmc_set_protocol (sc, ctl);
634 lmc_ssi_set_speed (lmc_softc_t * const sc, lmc_ctl_t * ctl)
645 if (ctl == NULL)
660 av = &ctl->cardspec.ssi;
964 lmc_t1_write (sc, 0x0E0 + i, 0x00); /* SBCn - sys bus per-channel ctl */
965 lmc_t1_write (sc, 0x100 + i, 0x00); /* TPCn - TX per-channel ctl */
966 lmc_t1_write (sc, 0x180 + i, 0x00); /* RPCn - RX per-channel ctl */
970 lmc_t1_write (sc, 0x0E0 + i, 0x0D); /* SBCn - sys bus per-channel ctl */
991 lmc_t1_set_status (lmc_softc_t * const sc, lmc_ctl_t * ctl)
993 if (ctl == NULL)
1002 if (ctl->circuit_type == LMC_CTL_CIRCUIT_TYPE_T1
1006 else if (ctl->circuit_type == LMC_CTL_CIRCUIT_TYPE_E1
1009 lmc_set_protocol (sc, ctl);
1202 lmc_set_protocol (lmc_softc_t * const sc, lmc_ctl_t * ctl)
1204 if (!ctl)