/hal_espressif-3.6.0/components/esp_eth/src/ |
D | esp_eth_phy_rtl8201.c | 87 bmcr_reg_t bmcr; in rtl8201_update_link_duplex_speed() local 99 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, rtl8201->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in rtl8201_update_link_duplex_speed() 100 if (bmcr.speed_select) { in rtl8201_update_link_duplex_speed() 105 if (bmcr.duplex_mode) { in rtl8201_update_link_duplex_speed() 156 bmcr_reg_t bmcr = {.reset = 1}; in rtl8201_reset() local 157 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, rtl8201->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in rtl8201_reset() 162 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, rtl8201->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in rtl8201_reset() 163 if (!bmcr.reset) { in rtl8201_reset() 199 bmcr_reg_t bmcr = { in rtl8201_negotiate() local 205 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, rtl8201->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in rtl8201_negotiate() [all …]
|
D | esp_eth_phy_dm9051.c | 166 bmcr_reg_t bmcr = {.reset = 1}; in dm9051_reset() local 167 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, dm9051->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TAG… in dm9051_reset() 172 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, dm9051->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, T… in dm9051_reset() 174 if (!bmcr.reset && !dscr.smrst) { in dm9051_reset() 211 bmcr_reg_t bmcr = { in dm9051_negotiate() local 217 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, dm9051->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TAG… in dm9051_negotiate() 243 bmcr_reg_t bmcr; in dm9051_pwrctl() local 244 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, dm9051->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, T… in dm9051_pwrctl() 247 bmcr.power_down = 1; in dm9051_pwrctl() 250 bmcr.power_down = 0; in dm9051_pwrctl() [all …]
|
D | esp_eth_phy_dp83848.c | 162 bmcr_reg_t bmcr = {.reset = 1}; in dp83848_reset() local 163 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, dp83848->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in dp83848_reset() 168 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, dp83848->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in dp83848_reset() 169 if (!bmcr.reset) { in dp83848_reset() 205 bmcr_reg_t bmcr = { in dp83848_negotiate() local 211 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, dp83848->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in dp83848_negotiate() 237 bmcr_reg_t bmcr; in dp83848_pwrctl() local 238 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, dp83848->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in dp83848_pwrctl() 241 bmcr.power_down = 1; in dp83848_pwrctl() 244 bmcr.power_down = 0; in dp83848_pwrctl() [all …]
|
D | esp_eth_phy_ip101.c | 203 bmcr_reg_t bmcr = {.reset = 1}; in ip101_reset() local 204 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, ip101->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TAG,… in ip101_reset() 209 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, ip101->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, TA… in ip101_reset() 210 if (!bmcr.reset) { in ip101_reset() 246 bmcr_reg_t bmcr = { in ip101_negotiate() local 252 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, ip101->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TAG,… in ip101_negotiate() 276 bmcr_reg_t bmcr; in ip101_pwrctl() local 277 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, ip101->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, TA… in ip101_pwrctl() 280 bmcr.power_down = 1; in ip101_pwrctl() 283 bmcr.power_down = 0; in ip101_pwrctl() [all …]
|
D | esp_eth_phy_ksz80xx.c | 181 bmcr_reg_t bmcr = {.reset = 1}; in ksz80xx_reset() local 182 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, ksz80xx->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in ksz80xx_reset() 187 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, ksz80xx->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in ksz80xx_reset() 188 if (!bmcr.reset) { in ksz80xx_reset() 224 bmcr_reg_t bmcr = { in ksz80xx_negotiate() local 230 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, ksz80xx->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in ksz80xx_negotiate() 254 bmcr_reg_t bmcr; in ksz80xx_pwrctl() local 255 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, ksz80xx->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in ksz80xx_pwrctl() 258 bmcr.power_down = 1; in ksz80xx_pwrctl() 261 bmcr.power_down = 0; in ksz80xx_pwrctl() [all …]
|
D | esp_eth_phy_lan87xx.c | 309 bmcr_reg_t bmcr = {.reset = 1}; in lan87xx_reset() local 310 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, lan87xx->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in lan87xx_reset() 315 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, lan87xx->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in lan87xx_reset() 316 if (!bmcr.reset) { in lan87xx_reset() 353 bmcr_reg_t bmcr = { in lan87xx_negotiate() local 359 …ESP_GOTO_ON_ERROR(eth->phy_reg_write(eth, lan87xx->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val), err, TA… in lan87xx_negotiate() 386 bmcr_reg_t bmcr; in lan87xx_pwrctl() local 387 …ESP_GOTO_ON_ERROR(eth->phy_reg_read(eth, lan87xx->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)), err, … in lan87xx_pwrctl() 390 bmcr.power_down = 1; in lan87xx_pwrctl() 393 bmcr.power_down = 0; in lan87xx_pwrctl() [all …]
|
/hal_espressif-3.6.0/examples/ethernet/enc28j60/components/eth_enc28j60/ |
D | esp_eth_phy_enc28j60.c | 161 bmcr_reg_t bmcr = {.reset = 1}; in enc28j60_reset() local 162 PHY_CHECK(eth->phy_reg_write(eth, enc28j60->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val) == ESP_OK, in enc28j60_reset() 168 … PHY_CHECK(eth->phy_reg_read(eth, enc28j60->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)) == ESP_OK, in enc28j60_reset() 170 if (!bmcr.reset) { in enc28j60_reset() 243 bmcr_reg_t bmcr; in enc28j60_pwrctl() local 244 PHY_CHECK(eth->phy_reg_read(eth, enc28j60->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)) == ESP_OK, in enc28j60_pwrctl() 248 bmcr.power_down = 1; in enc28j60_pwrctl() 251 bmcr.power_down = 0; in enc28j60_pwrctl() 253 PHY_CHECK(eth->phy_reg_write(eth, enc28j60->addr, ETH_PHY_BMCR_REG_ADDR, bmcr.val) == ESP_OK, in enc28j60_pwrctl() 255 PHY_CHECK(eth->phy_reg_read(eth, enc28j60->addr, ETH_PHY_BMCR_REG_ADDR, &(bmcr.val)) == ESP_OK, in enc28j60_pwrctl() [all …]
|