Lines Matching full:hal
18 #include <hal/emac_hal.h>
19 #include <hal/emac_ll.h>
41 emac_hal_context_t hal; member
72 emac_hal_set_address(&dev_data->hal, dev_data->mac_addr); in eth_esp32_set_config()
94 uint32_t sent_len = emac_hal_transmit_frame(&dev_data->hal, dev_data->txb, len); in eth_esp32_send()
106 &dev_data->hal, dev_data->rxb, sizeof(dev_data->rxb), in eth_esp32_rx()
163 uint32_t intr_stat = emac_ll_get_intr_status(dev_data->hal.dma_regs); in eth_esp32_isr()
165 emac_ll_clear_corresponding_intr(dev_data->hal.dma_regs, intr_stat); in eth_esp32_isr()
260 emac_hal_init(&dev_data->hal, dev_data->dma->descriptors, in eth_esp32_initialize()
290 emac_ll_clock_enable_rmii_output(dev_data->hal.ext_regs); in eth_esp32_initialize()
299 emac_ll_clock_enable_rmii_input(dev_data->hal.ext_regs); in eth_esp32_initialize()
303 emac_ll_clock_enable_mii(dev_data->hal.ext_regs); in eth_esp32_initialize()
310 emac_ll_reset(dev_data->hal.dma_regs); in eth_esp32_initialize()
316 if (emac_ll_is_reset_done(dev_data->hal.dma_regs)) { in eth_esp32_initialize()
329 emac_hal_reset_desc_chain(&dev_data->hal); in eth_esp32_initialize()
330 emac_hal_init_mac_default(&dev_data->hal); in eth_esp32_initialize()
331 emac_hal_init_dma_default(&dev_data->hal, &dma_config); in eth_esp32_initialize()
337 emac_hal_set_address(&dev_data->hal, dev_data->mac_addr); in eth_esp32_initialize()
350 emac_hal_start(&dev_data->hal); in eth_esp32_initialize()