• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/s390/kernel/

Lines Matching refs:aib

487 	struct etr_aib aib;
493 if (etr_steai(&aib, ETR_STEAI_STEPPING_PORT) == 0)
605 static int etr_port_valid(struct etr_aib *aib, int port)
610 if (aib->tsp == 0)
613 psc = port ? aib->esw.psc1 : aib->esw.psc0;
617 return !aib->esw.y && aib->slsw.v1 &&
618 aib->slsw.v2 && aib->slsw.v3;
635 static void etr_steai_cv(struct etr_aib *aib, unsigned int func)
637 BUG_ON(etr_steai(aib, func) != 0);
639 if (aib->esw.psc0 == 1)
640 aib->esw.psc0 = 2;
641 else if (aib->esw.psc0 == 0 && aib->esw.p == 0)
642 aib->esw.psc0 = 1;
643 if (aib->esw.psc1 == 1)
644 aib->esw.psc1 = 2;
645 else if (aib->esw.psc1 == 0 && aib->esw.p == 1)
646 aib->esw.psc1 = 1;
650 * Check if the aib a2 is still connected to the same attachment as
651 * aib a1, the etv values differ by one and a2 is valid.
730 struct etr_aib *sync_port, *aib;
747 aib = etr_sync->etr_aib;
754 clock = ((unsigned long long) (aib->edf2.etv + 1)) << 32;
760 etr_stetr(aib);
763 (aib->edf2.etv - sync_port->edf2.etv) << 32;
768 if (!etr_aib_follows(sync_port, aib, port)) {
789 static int etr_sync_clock_stop(struct etr_aib *aib, int port)
796 /* Check if the current aib is adjacent to the sync port aib. */
798 follows = etr_aib_follows(sync_port, aib, port);
799 memcpy(sync_port, aib, sizeof(*aib));
803 etr_sync.etr_aib = aib;
880 * Update the aib information for one or both ports.
882 static struct etr_eacr etr_handle_update(struct etr_aib *aib,
885 /* With both ports disabled the aib information is useless. */
889 /* Update port0 or port1 with aib stored in etr_work_fn. */
890 if (aib->esw.q == 0) {
893 etr_port0 = *aib;
900 etr_port1 = *aib;
907 * Do not try to get the alternate port aib if the clock
973 struct etr_aib aib;
996 /* Store aib to get the current ETR status word. */
997 BUG_ON(etr_stetr(&aib) != 0);
998 etr_port0.esw = etr_port1.esw = aib.esw; /* Copy status word. */
1006 eacr = etr_handle_update(&aib, eacr);
1021 if (eacr.p0 && aib.esw.psc0 == etr_lpsc_pps_mode) {
1026 if (!eacr.es || !eacr.p1 || aib.esw.psc1 != etr_lpsc_pps_mode)
1032 } else if (eacr.p1 && aib.esw.psc1 == etr_lpsc_pps_mode) {
1040 } else if (eacr.p0 && aib.esw.psc0 == etr_lpsc_operational_step) {
1046 aib.esw.psc1 != etr_lpsc_operational_alt)
1053 } else if (eacr.p1 && aib.esw.psc1 == etr_lpsc_operational_step) {
1093 etr_sync_clock_stop(&aib, sync_port) != 0) {
1236 struct etr_aib *aib = etr_aib_from_dev(dev);
1238 if (!aib || !aib->slsw.v1)
1240 return sprintf(buf, "%i\n", aib->edf1.u);
1248 struct etr_aib *aib = etr_aib_from_dev(dev);
1250 if (!aib || !aib->slsw.v1)
1252 return sprintf(buf, "%i\n", aib->edf1.net_id);
1260 struct etr_aib *aib = etr_aib_from_dev(dev);
1262 if (!aib || !aib->slsw.v1)
1264 return sprintf(buf, "%i\n", aib->edf1.etr_id);
1272 struct etr_aib *aib = etr_aib_from_dev(dev);
1274 if (!aib || !aib->slsw.v1)
1276 return sprintf(buf, "%i\n", aib->edf1.etr_pn);
1284 struct etr_aib *aib = etr_aib_from_dev(dev);
1286 if (!aib || !aib->slsw.v3)
1288 return sprintf(buf, "%i\n", aib->edf3.c);
1296 struct etr_aib *aib = etr_aib_from_dev(dev);
1298 if (!aib || !aib->slsw.v3)
1300 return sprintf(buf, "%i\n", aib->edf3.blto);
1308 struct etr_aib *aib = etr_aib_from_dev(dev);
1310 if (!aib || !aib->slsw.v3)
1312 return sprintf(buf, "%i\n", aib->edf3.buo);