Home
last modified time | relevance | path

Searched refs:dtsec_freq (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dfman_dtsec_mii_acc.c66 static uint8_t dtsec_mii_get_div(uint16_t dtsec_freq) in dtsec_mii_get_div() argument
70 if (dtsec_freq < 80) mgmt_clk = 1; in dtsec_mii_get_div()
71 else if (dtsec_freq < 120) mgmt_clk = 2; in dtsec_mii_get_div()
72 else if (dtsec_freq < 160) mgmt_clk = 3; in dtsec_mii_get_div()
73 else if (dtsec_freq < 200) mgmt_clk = 4; in dtsec_mii_get_div()
74 else if (dtsec_freq < 280) mgmt_clk = 5; in dtsec_mii_get_div()
75 else if (dtsec_freq < 400) mgmt_clk = 6; in dtsec_mii_get_div()
92 uint8_t reg, uint16_t data, uint16_t dtsec_freq) in fman_dtsec_mii_write_reg() argument
97 iowrite32be((uint32_t)dtsec_mii_get_div(dtsec_freq), &regs->miimcfg); in fman_dtsec_mii_write_reg()
126 uint8_t reg, uint16_t *data, uint16_t dtsec_freq) in fman_dtsec_mii_read_reg() argument
[all …]
H A Ddtsec_mii_acc.c55 uint16_t dtsec_freq; in DTSEC_MII_WritePhyReg() local
61 dtsec_freq = (uint16_t)(p_Dtsec->fmMacControllerDriver.clkFreq >> 1); in DTSEC_MII_WritePhyReg()
64 err = (t_Error)fman_dtsec_mii_write_reg(miiregs, phyAddr, reg, data, dtsec_freq); in DTSEC_MII_WritePhyReg()
77 uint16_t dtsec_freq; in DTSEC_MII_ReadPhyReg() local
83 dtsec_freq = (uint16_t)(p_Dtsec->fmMacControllerDriver.clkFreq >> 1); in DTSEC_MII_ReadPhyReg()
86 err = fman_dtsec_mii_read_reg(miiregs, phyAddr, reg, p_Data, dtsec_freq); in DTSEC_MII_ReadPhyReg()
/freebsd/sys/contrib/ncsw/inc/flib/
H A Dfsl_fman_dtsec_mii_acc.h94 void fman_dtsec_mii_init(struct dtsec_mii_reg *regs, uint16_t dtsec_freq);
99 uint16_t dtsec_freq);
105 uint16_t dtsec_freq);