| /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/ |
| H A D | icontrol.c | 80 .max_speed_hz = 6500000, 89 .max_speed_hz = 6500000, 98 .max_speed_hz = 6500000, 107 .max_speed_hz = 6500000,
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-ar934x.c | 66 if ((spi->max_speed_hz == 0) || in ar934x_spi_setup() 67 (spi->max_speed_hz > (sp->clk_freq / 2))) { in ar934x_spi_setup() 68 spi->max_speed_hz = sp->clk_freq / 2; in ar934x_spi_setup() 69 } else if (spi->max_speed_hz < (sp->clk_freq / 128)) { in ar934x_spi_setup() 96 div = ar934x_spi_clk_div(sp, spi->max_speed_hz); in ar934x_spi_transfer_one_message()
|
| H A D | spi-mt7621.c | 252 unsigned int speed = spi->max_speed_hz; in mt7621_spi_transfer_one_message() 305 if ((spi->max_speed_hz == 0) || in mt7621_spi_setup() 306 (spi->max_speed_hz > (rs->sys_freq / 2))) in mt7621_spi_setup() 307 spi->max_speed_hz = rs->sys_freq / 2; in mt7621_spi_setup() 309 if (spi->max_speed_hz < (rs->sys_freq / 4097)) { in mt7621_spi_setup() 311 spi->max_speed_hz); in mt7621_spi_setup()
|
| H A D | spi-rockchip-sfc.c | 573 clk_set_rate(sfc->clk, mem->spi->max_speed_hz); in rockchip_sfc_delay_lines_tuning() 578 clk_set_rate(sfc->clk, mem->spi->max_speed_hz); in rockchip_sfc_delay_lines_tuning() 618 left, right, sfc->dll_cells, mem->spi->max_speed_hz, in rockchip_sfc_delay_lines_tuning() 623 left, right, mem->spi->max_speed_hz); in rockchip_sfc_delay_lines_tuning() 626 mem->spi->max_speed_hz = clk_get_rate(sfc->clk); in rockchip_sfc_delay_lines_tuning() 642 if (unlikely(mem->spi->max_speed_hz != sfc->frequency) && !has_acpi_companion(sfc->dev)) { in rockchip_sfc_exec_mem_op() 643 ret = clk_set_rate(sfc->clk, mem->spi->max_speed_hz); in rockchip_sfc_exec_mem_op() 646 sfc->frequency = mem->spi->max_speed_hz; in rockchip_sfc_exec_mem_op() 734 master->max_speed_hz = SFC_MAX_SPEED; in rockchip_sfc_probe()
|
| H A D | spi-img-spfi.c | 531 u32 max_speed_hz; in img_spfi_probe() local 593 master->max_speed_hz = clk_get_rate(spfi->spfi_clk) / 4; in img_spfi_probe() 604 &max_speed_hz)) { in img_spfi_probe() 605 if (master->max_speed_hz > max_speed_hz) in img_spfi_probe() 606 master->max_speed_hz = max_speed_hz; in img_spfi_probe()
|
| H A D | spi-ppc4xx.c | 173 speed = spi->max_speed_hz; in spi_ppc4xx_setupxfer() 184 speed = min(t->speed_hz, spi->max_speed_hz); in spi_ppc4xx_setupxfer() 187 if (!speed || (speed > spi->max_speed_hz)) { in spi_ppc4xx_setupxfer() 220 if (!spi->max_speed_hz) { in spi_ppc4xx_setup()
|
| H A D | spidev.c | 291 k_tmp->speed_hz ? : spidev->spi->max_speed_hz); in spidev_message() 459 u32 save = spi->max_speed_hz; in spidev_ioctl() 461 spi->max_speed_hz = tmp; in spidev_ioctl() 468 spi->max_speed_hz = save; in spidev_ioctl() 641 spidev->speed_hz = spidev->spi->max_speed_hz; in spidev_release() 782 spidev->speed_hz = spi->max_speed_hz; in spidev_probe()
|
| H A D | spi-txx9.c | 122 if (!spi->max_speed_hz) in txx9spi_setup() 127 txx9spi_cs_func(spi, c, 0, (NSEC_PER_SEC / 2) / spi->max_speed_hz); in txx9spi_setup() 156 cs_delay = 100 + (NSEC_PER_SEC / 2) / spi->max_speed_hz; in txx9spi_work_one() 393 master->max_speed_hz = c->baseclk / (SPI_MIN_DIVIDER + 1); in txx9spi_probe()
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | adxl34x-spi.c | 73 if (spi->max_speed_hz > MAX_SPI_FREQ_HZ) { in adxl34x_spi_probe() 74 dev_err(&spi->dev, "SPI CLK %d Hz too fast\n", spi->max_speed_hz); in adxl34x_spi_probe() 79 spi->max_speed_hz > MAX_FREQ_NO_FIFODELAY, in adxl34x_spi_probe()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/ |
| H A D | mach-crag6410-module.c | 47 .max_speed_hz = 26 * 1000 * 1000, 60 .max_speed_hz = 26 * 1000 * 1000, 239 .max_speed_hz = 10 * 1000 * 1000, 272 .max_speed_hz = 10 * 1000 * 1000, 295 .max_speed_hz = 10 * 1000 * 1000,
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/st/cw1200/ |
| H A D | cw1200_spi.c | 366 if (func->max_speed_hz > 52000000) in cw1200_spi_probe() 367 func->max_speed_hz = 52000000; in cw1200_spi_probe() 368 if (func->max_speed_hz < 1000000) in cw1200_spi_probe() 369 func->max_speed_hz = 1000000; in cw1200_spi_probe() 382 func->max_speed_hz); in cw1200_spi_probe()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | ad7879-spi.c | 37 if (spi->max_speed_hz > MAX_SPI_FREQ_HZ) { in ad7879_spi_probe() 38 dev_err(&spi->dev, "SPI CLK %d Hz?\n", spi->max_speed_hz); in ad7879_spi_probe()
|
| H A D | tsc2005.c | 55 if (!spi->max_speed_hz) in tsc2005_probe() 56 spi->max_speed_hz = TSC2005_SPI_MAX_SPEED_HZ; in tsc2005_probe()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-ep93xx/ |
| H A D | vision_ep9307.c | 223 .max_speed_hz = 6000000, 230 .max_speed_hz = 20000000, 237 .max_speed_hz = 20000000,
|
| /OK3568_Linux_fs/kernel/drivers/iio/accel/ |
| H A D | adxl345_spi.c | 29 if (spi->max_speed_hz > ADXL345_MAX_SPI_FREQ_HZ) { in adxl345_spi_probe() 31 spi->max_speed_hz); in adxl345_spi_probe()
|
| /OK3568_Linux_fs/kernel/drivers/iio/pressure/ |
| H A D | zpa2326_spi.c | 50 spi->max_speed_hz = min(spi->max_speed_hz, 1000000U); in zpa2326_probe_spi()
|
| H A D | ms5611_spi.c | 94 spi->max_speed_hz = min(spi->max_speed_hz, 20000000U); in ms5611_spi_probe()
|
| /OK3568_Linux_fs/kernel/arch/mips/txx9/generic/ |
| H A D | spi_eeprom.c | 27 .max_speed_hz = 1500000, /* 1.5Mbps */ in spi_eeprom_register() 63 (spi->max_speed_hz + 500) / 1000); in early_seeprom_probe()
|
| /OK3568_Linux_fs/kernel/drivers/staging/wfx/ |
| H A D | bus_spi.c | 193 func->max_speed_hz); in wfx_spi_probe() 197 if (func->max_speed_hz > 50000000) in wfx_spi_probe() 199 func->max_speed_hz); in wfx_spi_probe()
|
| /OK3568_Linux_fs/kernel/drivers/iio/resolver/ |
| H A D | ad2s90.c | 83 if (spi->max_speed_hz > AD2S90_MAX_SPI_FREQ_HZ) { in ad2s90_probe() 85 spi->max_speed_hz, AD2S90_MAX_SPI_FREQ_HZ); in ad2s90_probe()
|
| /OK3568_Linux_fs/kernel/drivers/staging/greybus/ |
| H A D | spilib.c | 33 u32 max_speed_hz; member 432 spi->max_speed_hz = le32_to_cpu(response.max_speed_hz); in gb_spi_get_master_config() 472 spi_board.max_speed_hz = le32_to_cpu(response.max_speed_hz); in gb_spi_setup_device()
|
| /OK3568_Linux_fs/kernel/drivers/staging/iio/addac/ |
| H A D | adt7316-spi.c | 103 if (spi_dev->max_speed_hz > ADT7316_SPI_MAX_FREQ_HZ) { in adt7316_spi_probe() 105 spi_dev->max_speed_hz); in adt7316_spi_probe()
|
| /OK3568_Linux_fs/kernel/drivers/iio/imu/ |
| H A D | adis16400.c | 387 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_set_freq() 389 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_set_freq() 449 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_initial_setup() 451 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup() 485 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup() 646 u32 old_speed_hz = st->adis.spi->max_speed_hz; in adis16400_trigger_handler() 651 st->adis.spi->max_speed_hz > ADIS16400_SPI_BURST) { in adis16400_trigger_handler() 652 st->adis.spi->max_speed_hz = ADIS16400_SPI_BURST; in adis16400_trigger_handler() 661 st->adis.spi->max_speed_hz = old_speed_hz; in adis16400_trigger_handler()
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | stmpe-spi.c | 92 if (spi->max_speed_hz > 1000000) { in stmpe_spi_probe() 94 (spi->max_speed_hz/1000)); in stmpe_spi_probe()
|
| H A D | mc13xxx-spi.c | 141 spi->max_speed_hz = spi->max_speed_hz ? : 26000000; in mc13xxx_spi_probe()
|