Lines Matching refs:Instance

256 	uint32_t tmp = heth->Instance->MACFFR;  in setup_mac_filter()
272 heth->Instance->MACFFR = tmp; in setup_mac_filter()
277 tmp = heth->Instance->MACFFR; in setup_mac_filter()
279 heth->Instance->MACFFR = tmp; in setup_mac_filter()
515 if ((heth->Instance->DMASR & ETH_DMASR_TUS) != (uint32_t)RESET) { in eth_tx()
517 heth->Instance->DMASR = ETH_DMASR_TUS; in eth_tx()
519 heth->Instance->DMATPDR = 0; in eth_tx()
813 if ((heth->Instance->DMASR & ETH_DMASR_RBUS) != (uint32_t)RESET) { in eth_rx()
815 heth->Instance->DMASR = ETH_DMASR_RBUS; in eth_rx()
817 heth->Instance->DMARPDR = 0; in eth_rx()
1029 dev_data->stats.error_details.rx_crc_errors = heth->Instance->MMCRCRCEPR; in HAL_ETH_ErrorCallback()
1030 dev_data->stats.error_details.rx_align_errors = heth->Instance->MMCRAEPR; in HAL_ETH_ErrorCallback()
1032 dev_data->stats.error_details.rx_crc_errors = heth->Instance->MMCRFCECR; in HAL_ETH_ErrorCallback()
1033 dev_data->stats.error_details.rx_align_errors = heth->Instance->MMCRFAECR; in HAL_ETH_ErrorCallback()
1206 heth->Instance->MACTSCR |= ETH_MACTSCR_TSENALL; in eth_initialize()
1208 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSSARFE; in eth_initialize()
1398 hash_table[0] = heth->Instance->MACHT0R; in net_if_stm32_mcast_cb()
1399 hash_table[1] = heth->Instance->MACHT1R; in net_if_stm32_mcast_cb()
1401 hash_table[0] = heth->Instance->MACHTLR; in net_if_stm32_mcast_cb()
1402 hash_table[1] = heth->Instance->MACHTHR; in net_if_stm32_mcast_cb()
1477 heth->Instance->MACHT0R = hash_table[0]; in net_if_stm32_mcast_cb()
1478 heth->Instance->MACHT1R = hash_table[1]; in net_if_stm32_mcast_cb()
1480 heth->Instance->MACHTLR = hash_table[0]; in net_if_stm32_mcast_cb()
1481 heth->Instance->MACHTHR = hash_table[1]; in net_if_stm32_mcast_cb()
1580 heth->Instance->MACA0HR = (dev_data->mac_addr[5] << 8) | in eth_stm32_hal_set_config()
1582 heth->Instance->MACA0LR = (dev_data->mac_addr[3] << 24) | in eth_stm32_hal_set_config()
1595 heth->Instance->MACPFR |= ETH_MACPFR_PR; in eth_stm32_hal_set_config()
1597 heth->Instance->MACPFR &= ~ETH_MACPFR_PR; in eth_stm32_hal_set_config()
1601 heth->Instance->MACFFR |= ETH_MACFFR_PM; in eth_stm32_hal_set_config()
1603 heth->Instance->MACFFR &= ~ETH_MACFFR_PM; in eth_stm32_hal_set_config()
1673 .Instance = (ETH_TypeDef *)DT_INST_REG_ADDR(0),
1720 heth->Instance->MACSTSUR = tm->second; in ptp_clock_stm32_set()
1721 heth->Instance->MACSTNUR = tm->nanosecond; in ptp_clock_stm32_set()
1722 heth->Instance->MACTSCR |= ETH_MACTSCR_TSINIT; in ptp_clock_stm32_set()
1723 while (heth->Instance->MACTSCR & ETH_MACTSCR_TSINIT_Msk) { in ptp_clock_stm32_set()
1727 heth->Instance->PTPTSHUR = tm->second; in ptp_clock_stm32_set()
1728 heth->Instance->PTPTSLUR = tm->nanosecond; in ptp_clock_stm32_set()
1729 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSSTI; in ptp_clock_stm32_set()
1730 while (heth->Instance->PTPTSCR & ETH_PTPTSCR_TSSTI_Msk) { in ptp_clock_stm32_set()
1752 tm->second = heth->Instance->MACSTSR; in ptp_clock_stm32_get()
1753 tm->nanosecond = heth->Instance->MACSTNR; in ptp_clock_stm32_get()
1754 second_2 = heth->Instance->MACSTSR; in ptp_clock_stm32_get()
1756 tm->second = heth->Instance->PTPTSHR; in ptp_clock_stm32_get()
1757 tm->nanosecond = heth->Instance->PTPTSLR; in ptp_clock_stm32_get()
1758 second_2 = heth->Instance->PTPTSHR; in ptp_clock_stm32_get()
1788 heth->Instance->MACSTSUR = 0; in ptp_clock_stm32_adjust()
1790 heth->Instance->MACSTNUR = increment; in ptp_clock_stm32_adjust()
1792 heth->Instance->MACSTNUR = ETH_MACSTNUR_ADDSUB | (NSEC_PER_SEC + increment); in ptp_clock_stm32_adjust()
1794 heth->Instance->MACTSCR |= ETH_MACTSCR_TSUPDT; in ptp_clock_stm32_adjust()
1795 while (heth->Instance->MACTSCR & ETH_MACTSCR_TSUPDT_Msk) { in ptp_clock_stm32_adjust()
1799 heth->Instance->PTPTSHUR = 0; in ptp_clock_stm32_adjust()
1801 heth->Instance->PTPTSLUR = increment; in ptp_clock_stm32_adjust()
1803 heth->Instance->PTPTSLUR = ETH_PTPTSLUR_TSUPNS | (-increment); in ptp_clock_stm32_adjust()
1805 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSSTU; in ptp_clock_stm32_adjust()
1806 while (heth->Instance->PTPTSCR & ETH_PTPTSCR_TSSTU_Msk) { in ptp_clock_stm32_adjust()
1849 heth->Instance->MACTSAR = addend_val; in ptp_clock_stm32_rate_adjust()
1850 heth->Instance->MACTSCR |= ETH_MACTSCR_TSADDREG; in ptp_clock_stm32_rate_adjust()
1851 while (heth->Instance->MACTSCR & ETH_MACTSCR_TSADDREG_Msk) { in ptp_clock_stm32_rate_adjust()
1855 heth->Instance->PTPTSAR = addend_val; in ptp_clock_stm32_rate_adjust()
1856 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSARU; in ptp_clock_stm32_rate_adjust()
1857 while (heth->Instance->PTPTSCR & ETH_PTPTSCR_TSARU_Msk) { in ptp_clock_stm32_rate_adjust()
1894 heth->Instance->MACIER &= ~(ETH_MACIER_TSIE); in ptp_stm32_init()
1896 heth->Instance->MACIMR &= ~(ETH_MACIMR_TSTIM); in ptp_stm32_init()
1901 heth->Instance->MACTSCR |= ETH_MACTSCR_TSENA; in ptp_stm32_init()
1903 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSE; in ptp_stm32_init()
1930 heth->Instance->MACSSIR = ss_incr_ns << ETH_MACMACSSIR_SSINC_Pos; in ptp_stm32_init()
1932 heth->Instance->PTPSSIR = ss_incr_ns; in ptp_stm32_init()
1949 heth->Instance->MACTSAR = addend_val; in ptp_stm32_init()
1950 heth->Instance->MACTSCR |= ETH_MACTSCR_TSADDREG; in ptp_stm32_init()
1951 while (heth->Instance->MACTSCR & ETH_MACTSCR_TSADDREG_Msk) { in ptp_stm32_init()
1955 heth->Instance->PTPTSAR = addend_val; in ptp_stm32_init()
1956 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSARU; in ptp_stm32_init()
1957 while (heth->Instance->PTPTSCR & ETH_PTPTSCR_TSARU_Msk) { in ptp_stm32_init()
1964 heth->Instance->MACTSCR |= ETH_MACTSCR_TSCFUPDT; in ptp_stm32_init()
1966 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSFCU; in ptp_stm32_init()
1971 heth->Instance->MACTSCR |= ETH_MACTSCR_TSCTRLSSR; in ptp_stm32_init()
1973 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSSSR; in ptp_stm32_init()
1978 heth->Instance->MACSTSUR = 0; in ptp_stm32_init()
1979 heth->Instance->MACSTNUR = 0; in ptp_stm32_init()
1980 heth->Instance->MACTSCR |= ETH_MACTSCR_TSINIT; in ptp_stm32_init()
1981 while (heth->Instance->MACTSCR & ETH_MACTSCR_TSINIT_Msk) { in ptp_stm32_init()
1985 heth->Instance->PTPTSHUR = 0; in ptp_stm32_init()
1986 heth->Instance->PTPTSLUR = 0; in ptp_stm32_init()
1987 heth->Instance->PTPTSCR |= ETH_PTPTSCR_TSSTI; in ptp_stm32_init()
1988 while (heth->Instance->PTPTSCR & ETH_PTPTSCR_TSSTI_Msk) { in ptp_stm32_init()