Lines Matching +full:mdi +full:- +full:x
3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
36 * Common module for bit-bang'ing the MII.
51 #define MWRITE(x) \ argument
53 ops->mbo_write(dev, (x)); \
57 #define MREAD ops->mbo_read(dev)
59 #define MDO ops->mbo_bits[MII_BIT_MDO]
60 #define MDI ops->mbo_bits[MII_BIT_MDI] macro
61 #define MDC ops->mbo_bits[MII_BIT_MDC]
62 #define MDIRPHY ops->mbo_bits[MII_BIT_DIR_HOST_PHY]
63 #define MDIRHOST ops->mbo_bits[MII_BIT_DIR_PHY_HOST]
100 for (i = 1 << (nbits - 1); i != 0; i >>= 1) { in mii_bitbang_sendbits()
114 * Read a PHY register by bit-bang'ing the MII.
128 /* Switch direction to PHY->host, without a clock transition. */ in mii_bitbang_readreg()
136 error = MREAD & MDI; in mii_bitbang_readreg()
145 /* Read data prior to clock low-high transition. */ in mii_bitbang_readreg()
146 if (error == 0 && (MREAD & MDI) != 0) in mii_bitbang_readreg()
153 /* Set direction to host->PHY, without a clock transition. */ in mii_bitbang_readreg()
162 * Write a PHY register by bit-bang'ing the MII.