Searched refs:speed_hz (Results 1 - 25 of 31) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/spi/
H A Dbcm5301x_spi.c163 uint32 speed_hz; local
169 speed_hz = spi->max_speed_hz;
170 if (t->speed_hz) {
171 speed_hz = t->speed_hz;
173 if (speed_hz > BCM5301X_SPI_MAX_FREQ) {
174 speed_hz = BCM5301X_SPI_MAX_FREQ;
176 if (speed_hz) {
181 divider = drv_data->clk_rate / speed_hz;
182 if (drv_data->clk_rate % speed_hz) {
[all...]
H A Dspi_txx9.c190 u32 speed_hz = t->speed_hz ? : spi->max_speed_hz; local
196 if (prev_speed_hz != speed_hz
198 int n = DIV_ROUND_UP(c->baseclk, speed_hz) - 1;
207 prev_speed_hz = speed_hz;
317 u32 speed_hz = t->speed_hz ? : spi->max_speed_hz; local
327 if (speed_hz < c->min_speed_hz || speed_hz > c->max_speed_hz)
H A Dorion_spi.c145 if ((t != NULL) && t->speed_hz)
146 speed = t->speed_hz;
307 if (par_override || t->speed_hz || t->bits_per_word) {
312 if (!t->speed_hz && !t->bits_per_word)
426 if (t->speed_hz && t->speed_hz < orion_spi->min_speed) {
431 orion_spi->min_speed, t->speed_hz);
H A Dspi_imx.c56 unsigned int speed_hz; member in struct:spi_imx_config
207 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz) <<
279 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, config->speed_hz) <<
339 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz) <<
418 config.speed_hz = t ? t->speed_hz : spi->max_speed_hz;
422 if (!config.speed_hz)
423 config.speed_hz = spi->max_speed_hz;
426 if (!config.speed_hz)
427 config.speed_hz
[all...]
H A Dcoldfire_qspi.c150 static u8 mcfqspi_qmr_baud(u32 speed_hz) argument
152 return clamp((MCFQSPI_BUSCLK + speed_hz - 1) / speed_hz, 2u, 255u);
337 if (xfer->speed_hz)
338 qmr |= mcfqspi_qmr_baud(xfer->speed_hz);
398 if (xfer->speed_hz) {
400 mcfqspi_qmr_baud(xfer->speed_hz);
401 if (real_speed != xfer->speed_hz)
404 real_speed, xfer->speed_hz);
H A Dmpc512x_psc_spi.c58 int speed_hz; member in struct:mpc512x_psc_spi_cs
69 cs->speed_hz = (t && t->speed_hz)
70 ? t->speed_hz : spi->max_speed_hz;
107 if (cs->speed_hz)
108 bclkdiv = (mps->mclk / cs->speed_hz) - 1;
240 if (t->bits_per_word || t->speed_hz) {
293 cs->speed_hz = spi->max_speed_hz;
H A Dmpc52xx_psc_spi.c58 int speed_hz; member in struct:mpc52xx_psc_spi_cs
69 cs->speed_hz = (t && t->speed_hz)
70 ? t->speed_hz : spi->max_speed_hz;
109 if (cs->speed_hz)
110 ccr |= (MCLK / cs->speed_hz - 1) & 0xFF;
228 if (t->bits_per_word || t->speed_hz) {
281 cs->speed_hz = spi->max_speed_hz;
H A Domap_spi_100k.c371 if (par_override || t->speed_hz || t->bits_per_word) {
376 if (!t->speed_hz && !t->bits_per_word)
455 if (t->speed_hz > OMAP1_SPI100K_MAX_FREQ
461 t->speed_hz,
469 if (t->speed_hz && t->speed_hz < OMAP1_SPI100K_MAX_FREQ/(1<<16)) {
471 t->speed_hz,
H A Domap2_mcspi.c662 u32 speed_hz = spi->max_speed_hz; local
672 if (t && t->speed_hz)
673 speed_hz = t->speed_hz;
675 if (speed_hz) {
677 > speed_hz)
903 if (par_override || t->speed_hz || t->bits_per_word) {
908 if (!t->speed_hz && !t->bits_per_word)
1004 if (t->speed_hz > OMAP2_MCSPI_MAX_FREQ
1010 t->speed_hz,
[all...]
H A Dep93xx_spi.c353 if (t->speed_hz && t->speed_hz < espi->min_rate)
530 if (t->speed_hz || t->bits_per_word) {
533 if (t->speed_hz) {
537 t->speed_hz);
595 if (t->speed_hz || t->bits_per_word)
H A Ddw_spi.c60 u32 speed_hz; /* baud rate */ member in struct:chip_data
446 chip->clk_div = dws->max_freq / chip->speed_hz;
488 if (transfer->speed_hz) {
489 speed = chip->speed_hz;
491 if (transfer->speed_hz != speed) {
492 speed = transfer->speed_hz;
504 chip->speed_hz = speed;
746 chip->speed_hz = spi->max_speed_hz;
H A Dspi_stmp.c146 if (t && t->speed_hz)
147 hz = min(hz, t->speed_hz);
334 if (first || t->speed_hz || t->bits_per_word)
H A Dspidev.c267 k_tmp->speed_hz = u_tmp->speed_hz;
277 u_tmp->speed_hz ? : spidev->spi->max_speed_hz);
H A Domap_uwire.c373 if (t != NULL && t->speed_hz)
374 hz = t->speed_hz;
H A Dspi_bitbang.c149 hz = t->speed_hz;
294 if (t->speed_hz || t->bits_per_word)
H A Dspi_ppc4xx.c190 if (t->speed_hz)
191 speed = min(t->speed_hz, spi->max_speed_hz);
201 dev_err(&spi->dev, "invalid speed_hz (%d)\n", speed);
H A Dau1550_spi.c116 static u32 au1550_spi_baudcfg(struct au1550_spi *hw, unsigned speed_hz) argument
122 brg = mainclk_hz / speed_hz / (4 << div);
125 brg = (4 + 1); /* speed_hz too big */
132 div = 3; /* speed_hz too small */
246 if (t->speed_hz)
247 hz = t->speed_hz;
H A Dspi_bfin5xx.c154 static u16 hz_to_spi_baud(u32 speed_hz) argument
157 u16 spi_baud = (sclk / (2 * speed_hz));
159 if ((sclk % (2 * speed_hz)) > 0)
732 if (transfer->speed_hz)
733 write_BAUD(drv_data, hz_to_spi_baud(transfer->speed_hz));
1083 * Notice: for blackfin, the speed_hz is the value of register
H A Dpxa2xx_spi.c170 u32 speed_hz; member in struct:chip_data
964 if (transfer->speed_hz || transfer->bits_per_word) {
967 speed = chip->speed_hz;
969 if (transfer->speed_hz)
970 speed = transfer->speed_hz;
1305 chip->speed_hz = spi->max_speed_hz;
H A Dspi_s3c24xx.c135 hz = t ? t->speed_hz : spi->max_speed_hz;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/spi/
H A Dspidev.h58 * @speed_hz: Temporary override of the device's bitrate.
90 __u32 speed_hz; member in struct:spi_ioc_transfer
H A Dspi.h38 * The spi_transfer.speed_hz can override this for each transfer.
368 * @speed_hz: Select a speed other than the device default for this
443 u32 speed_hz; member in struct:spi_transfer
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/Documentation/spi/
H A Dspidev_test.c56 .speed_hz = speed,
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/serial/
H A Dmrst_max3110.c107 x.speed_hz = 3125000;
109 x.speed_hz = max->baud;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mmc/host/
H A Dmmc_spi.c902 if (t->speed_hz)
903 clock_rate = t->speed_hz;

Completed in 120 milliseconds

12