/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/spi/ |
H A D | bcm5301x_spi.c | 163 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 D | spi_txx9.c | 190 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 D | orion_spi.c | 145 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 D | spi_imx.c | 56 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 D | coldfire_qspi.c | 150 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 D | mpc512x_psc_spi.c | 58 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 D | mpc52xx_psc_spi.c | 58 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 D | omap_spi_100k.c | 371 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 D | omap2_mcspi.c | 662 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 D | ep93xx_spi.c | 353 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 D | dw_spi.c | 60 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 D | spi_stmp.c | 146 if (t && t->speed_hz) 147 hz = min(hz, t->speed_hz); 334 if (first || t->speed_hz || t->bits_per_word)
|
H A D | spidev.c | 267 k_tmp->speed_hz = u_tmp->speed_hz; 277 u_tmp->speed_hz ? : spidev->spi->max_speed_hz);
|
H A D | omap_uwire.c | 373 if (t != NULL && t->speed_hz) 374 hz = t->speed_hz;
|
H A D | spi_bitbang.c | 149 hz = t->speed_hz; 294 if (t->speed_hz || t->bits_per_word)
|
H A D | spi_ppc4xx.c | 190 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 D | au1550_spi.c | 116 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 D | spi_bfin5xx.c | 154 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 D | pxa2xx_spi.c | 170 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 D | spi_s3c24xx.c | 135 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 D | spidev.h | 58 * @speed_hz: Temporary override of the device's bitrate. 90 __u32 speed_hz; member in struct:spi_ioc_transfer
|
H A D | spi.h | 38 * 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 D | spidev_test.c | 56 .speed_hz = speed,
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/serial/ |
H A D | mrst_max3110.c | 107 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 D | mmc_spi.c | 902 if (t->speed_hz) 903 clock_rate = t->speed_hz;
|