/hal_espressif-3.6.0/components/esp_eth/src/ |
D | esp_eth.c | 53 …d_read_phy_reg)(esp_eth_handle_t eth_handle, uint32_t phy_addr, uint32_t phy_reg, uint32_t *reg_va… 54 …_write_phy_reg)(esp_eth_handle_t eth_handle, uint32_t phy_addr, uint32_t phy_reg, uint32_t reg_val… 66 static esp_err_t eth_phy_reg_read(esp_eth_mediator_t *eth, uint32_t phy_addr, uint32_t phy_reg, uin… in eth_phy_reg_read() argument 71 return eth_driver->customized_read_phy_reg(eth_driver, phy_addr, phy_reg, reg_value); in eth_phy_reg_read() 75 return mac->read_phy_reg(mac, phy_addr, phy_reg, reg_value); in eth_phy_reg_read() 78 static esp_err_t eth_phy_reg_write(esp_eth_mediator_t *eth, uint32_t phy_addr, uint32_t phy_reg, ui… in eth_phy_reg_write() argument 83 return eth_driver->customized_write_phy_reg(eth_driver, phy_addr, phy_reg, reg_value); in eth_phy_reg_write() 87 return mac->write_phy_reg(mac, phy_addr, phy_reg, reg_value); in eth_phy_reg_write()
|
D | esp_eth_mac_openeth.c | 124 …_opencores_write_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, uint32_t reg_val… in emac_opencores_write_phy_reg() argument 126 ESP_LOGV(TAG, "%s: addr=%d reg=0x%x val=0x%04x", __func__, phy_addr, phy_reg, reg_value); in emac_opencores_write_phy_reg() 128 REG_SET_FIELD(OPENETH_MIIADDRESS_REG, OPENETH_RGAD, phy_reg); in emac_opencores_write_phy_reg() 134 …c_opencores_read_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, uint32_t *reg_va… in emac_opencores_read_phy_reg() argument 139 REG_SET_FIELD(OPENETH_MIIADDRESS_REG, OPENETH_RGAD, phy_reg); in emac_opencores_read_phy_reg() 142 ESP_LOGV(TAG, "%s: addr=%d reg=0x%x val=0x%04x", __func__, phy_addr, phy_reg, *reg_value); in emac_opencores_read_phy_reg()
|
D | esp_eth_mac_esp.c | 81 static esp_err_t emac_esp32_write_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, … in emac_esp32_write_phy_reg() argument 87 emac_hal_set_phy_cmd(&emac->hal, phy_addr, phy_reg, true); in emac_esp32_write_phy_reg() 102 static esp_err_t emac_esp32_read_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, u… in emac_esp32_read_phy_reg() argument 108 emac_hal_set_phy_cmd(&emac->hal, phy_addr, phy_reg, false); in emac_esp32_read_phy_reg()
|
D | esp_eth_mac_w5500.c | 366 static esp_err_t emac_w5500_write_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, … in emac_w5500_write_phy_reg() argument 372 ESP_GOTO_ON_FALSE(phy_reg == W5500_REG_PHYCFGR, ESP_FAIL, err, TAG, "wrong PHY register"); in emac_w5500_write_phy_reg() 379 static esp_err_t emac_w5500_read_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, u… in emac_w5500_read_phy_reg() argument 386 ESP_GOTO_ON_FALSE(phy_reg == W5500_REG_PHYCFGR, ESP_FAIL, err, TAG, "wrong PHY register"); in emac_w5500_read_phy_reg()
|
D | esp_eth_mac_dm9051.c | 435 static esp_err_t emac_dm9051_write_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg,… in emac_dm9051_write_phy_reg() argument 443 …1_register_write(emac, DM9051_EPAR, (uint8_t)(((phy_addr << 6) & 0xFF) | phy_reg)), err, TAG, "wri… in emac_dm9051_write_phy_reg() 461 static esp_err_t emac_dm9051_read_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, … in emac_dm9051_read_phy_reg() argument 470 …1_register_write(emac, DM9051_EPAR, (uint8_t)(((phy_addr << 6) & 0xFF) | phy_reg)), err, TAG, "wri… in emac_dm9051_read_phy_reg()
|
D | esp_eth_mac_ksz8851snl.c | 412 static esp_err_t emac_ksz8851_read_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg,… in emac_ksz8851_read_phy_reg() argument 418 …ESP_GOTO_ON_ERROR(ksz8851_read_reg(emac, phy_reg, &tmp_val), err, TAG, "read PHY register failed"); in emac_ksz8851_read_phy_reg() 424 static esp_err_t emac_ksz8851_write_phy_reg(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg… in emac_ksz8851_write_phy_reg() argument 428 …ESP_GOTO_ON_ERROR(ksz8851_write_reg(emac, phy_reg, (uint16_t)reg_value), err, TAG, "write PHY regi… in emac_ksz8851_write_phy_reg()
|
/hal_espressif-3.6.0/components/esp_eth/include/ |
D | esp_eth_com.h | 119 …esp_err_t (*phy_reg_read)(esp_eth_mediator_t *eth, uint32_t phy_addr, uint32_t phy_reg, uint32_t *… 133 …esp_err_t (*phy_reg_write)(esp_eth_mediator_t *eth, uint32_t phy_addr, uint32_t phy_reg, uint32_t …
|
D | esp_eth.h | 108 …esp_err_t (*read_phy_reg)(esp_eth_handle_t eth_handle, uint32_t phy_addr, uint32_t phy_reg, uint32… 129 …esp_err_t (*write_phy_reg)(esp_eth_handle_t eth_handle, uint32_t phy_addr, uint32_t phy_reg, uint3…
|
D | esp_eth_mac.h | 150 …esp_err_t (*read_phy_reg)(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, uint32_t *reg_v… 167 …esp_err_t (*write_phy_reg)(esp_eth_mac_t *mac, uint32_t phy_addr, uint32_t phy_reg, uint32_t reg_v…
|
/hal_espressif-3.6.0/components/hal/ |
D | emac_hal.c | 312 void emac_hal_set_phy_cmd(emac_hal_context_t *hal, uint32_t phy_addr, uint32_t phy_reg, bool write) in emac_hal_set_phy_cmd() argument 317 emac_ll_set_phy_reg(hal->mac_regs, phy_reg); in emac_hal_set_phy_cmd()
|
/hal_espressif-3.6.0/examples/ethernet/enc28j60/components/eth_enc28j60/ |
D | esp_eth_mac_enc28j60.c | 442 uint32_t phy_reg, uint32_t reg_value) in emac_enc28j60_write_phy_reg() argument 454 MAC_CHECK(enc28j60_register_write(emac, ENC28J60_MIREGADR, phy_reg & 0xFF) == ESP_OK, in emac_enc28j60_write_phy_reg() 478 uint32_t phy_reg, uint32_t *reg_value) in emac_enc28j60_read_phy_reg() argument 492 MAC_CHECK(enc28j60_register_write(emac, ENC28J60_MIREGADR, phy_reg & 0xFF) == ESP_OK, in emac_enc28j60_read_phy_reg()
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | emac_hal.h | 207 void emac_hal_set_phy_cmd(emac_hal_context_t *hal, uint32_t phy_addr, uint32_t phy_reg, bool write);
|