Searched refs:clkspeed (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/mips/vr41xx/common/
H A Dbcu.c87 static inline unsigned long calculate_pclock(uint16_t clkspeed) calculate_pclock() argument
95 pclock /= CLKSP(clkspeed); calculate_pclock()
99 pclock /= CLKSP(clkspeed); calculate_pclock()
103 pclock /= CLKSP(clkspeed); calculate_pclock()
106 switch (CLKSP_VR4133(clkspeed)) { calculate_pclock()
137 static inline unsigned long calculate_vtclock(uint16_t clkspeed, unsigned long pclock) calculate_vtclock() argument
148 if (DIVVT(clkspeed) == 9) calculate_vtclock()
151 else if (DIVVT(clkspeed) == 10) calculate_vtclock()
153 vtclock /= DIVVT(clkspeed); calculate_vtclock()
157 if(VTDIVMODE(clkspeed) == 7) calculate_vtclock()
159 else if(VTDIVMODE(clkspeed) == 1) calculate_vtclock()
162 vtclock = pclock / VTDIVMODE(clkspeed); calculate_vtclock()
167 vtclock = pclock / VTDIVMODE(clkspeed); calculate_vtclock()
178 static inline unsigned long calculate_tclock(uint16_t clkspeed, unsigned long pclock, calculate_tclock() argument
185 if (!(clkspeed & DIV2B)) calculate_tclock()
187 else if (!(clkspeed & DIV3B)) calculate_tclock()
189 else if (!(clkspeed & DIV4B)) calculate_tclock()
193 tclock = pclock / DIVT(clkspeed); calculate_tclock()
198 tclock = vtclock / TDIVMODE(clkspeed); calculate_tclock()
213 uint16_t clkspeed; vr41xx_calculate_clock_frequency() local
215 clkspeed = read_clkspeed(); vr41xx_calculate_clock_frequency()
217 pclock = calculate_pclock(clkspeed); vr41xx_calculate_clock_frequency()
218 vr41xx_vtclock = calculate_vtclock(clkspeed, pclock); vr41xx_calculate_clock_frequency()
219 vr41xx_tclock = calculate_tclock(clkspeed, pclock, vr41xx_vtclock); vr41xx_calculate_clock_frequency()
/linux-4.4.14/drivers/net/ethernet/qualcomm/
H A Dqca_spi.h106 u32 clkspeed; member in struct:qcaspi
H A Dqca_spi.c750 qca->clkspeed = qcaspi_clkspeed; qcaspi_netdev_init()
866 dev_info(&spi->dev, "Invalid clkspeed: %d\n", qca_spi_probe()
885 dev_info(&spi->dev, "ver=%s, clkspeed=%d, burst_len=%d, pluggable=%d\n", qca_spi_probe()

Completed in 121 milliseconds