Home
last modified time | relevance | path

Searched refs:max_speed_hz (Results 1 – 25 of 117) sorted by relevance

12345

/linux/drivers/iio/accel/
H A Dadxl345_spi.c37 if (spi->max_speed_hz > ADXL345_MAX_SPI_FREQ_HZ) in adxl345_spi_probe()
39 spi->max_speed_hz); in adxl345_spi_probe()
45 needs_delay = spi->max_speed_hz > ADXL345_MAX_FREQ_NO_FIFO_DELAY; in adxl345_spi_probe()
/linux/drivers/input/misc/
H A Dadxl34x-spi.c73 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()
/linux/arch/arm/mach-s3c/
H A Dmach-crag6410-module.c52 .max_speed_hz = 26 * 1000 * 1000,
64 .max_speed_hz = 26 * 1000 * 1000,
253 .max_speed_hz = 10 * 1000 * 1000,
285 .max_speed_hz = 10 * 1000 * 1000,
307 .max_speed_hz = 10 * 1000 * 1000,
/linux/include/trace/events/
H A Dspi.h54 __field(unsigned int, max_speed_hz)
63 __entry->max_speed_hz = spi->max_speed_hz;
74 __entry->bits_per_word, __entry->max_speed_hz,
/linux/drivers/input/touchscreen/
H A Dad7879-spi.c37 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 Dtsc2005.c55 if (!spi->max_speed_hz) in tsc2005_probe()
56 spi->max_speed_hz = TSC2005_SPI_MAX_SPEED_HZ; in tsc2005_probe()
/linux/drivers/net/wireless/st/cw1200/
H A Dcw1200_spi.c362 if (func->max_speed_hz > 52000000) in cw1200_spi_probe()
363 func->max_speed_hz = 52000000; in cw1200_spi_probe()
364 if (func->max_speed_hz < 1000000) in cw1200_spi_probe()
365 func->max_speed_hz = 1000000; in cw1200_spi_probe()
378 func->max_speed_hz); in cw1200_spi_probe()
/linux/drivers/spi/
H A Dspi-hisi-kunpeng.c296 chip->clk_div = DIV_ROUND_UP(host->max_speed_hz, speed_hz) + 1; in hisi_calc_effective_speed()
301 effective_speed = host->max_speed_hz / chip->clk_div; in hisi_calc_effective_speed()
475 &host->max_speed_hz); in hisi_spi_probe()
482 if (host->max_speed_hz == 0) in hisi_spi_probe()
498 host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX); in hisi_spi_probe()
520 host->max_speed_hz / 1000); in hisi_spi_probe()
H A Dspi-ppc4xx.c171 speed = spi->max_speed_hz; in spi_ppc4xx_setupxfer()
179 speed = min(t->speed_hz, spi->max_speed_hz); in spi_ppc4xx_setupxfer()
182 if (!speed || (speed > spi->max_speed_hz)) { in spi_ppc4xx_setupxfer()
215 if (!spi->max_speed_hz) { in spi_ppc4xx_setup()
H A Dspidev.c297 k_tmp->speed_hz ? : spidev->spi->max_speed_hz); in spidev_message()
470 save = spi->max_speed_hz; in spidev_ioctl()
472 spi->max_speed_hz = tmp; in spidev_ioctl()
479 spi->max_speed_hz = save; in spidev_ioctl()
647 spidev->speed_hz = spidev->spi->max_speed_hz; in spidev_release()
813 spidev->speed_hz = spi->max_speed_hz; in spidev_probe()
H A Dspi.c818 proxy->max_speed_hz = chip->max_speed_hz; in spi_new_device()
2592 spi->max_speed_hz = value; in of_spi_parse_dt()
2708 ancillary->max_speed_hz = spi->max_speed_hz; in spi_new_ancillary_device()
2736 u32 max_speed_hz; member
2795 lookup->max_speed_hz = NSEC_PER_SEC / *(u32 *)obj->buffer.pointer; in acpi_spi_parse_apple_properties()
2871 lookup->max_speed_hz = sb->connection_speed; in acpi_spi_add_resource()
2935 if (!lookup.max_speed_hz && in acpi_spi_device_alloc()
2942 if (!lookup.max_speed_hz) in acpi_spi_device_alloc()
2955 spi->max_speed_hz = lookup.max_speed_hz; in acpi_spi_device_alloc()
4075 if (spi->controller->max_speed_hz && in spi_setup()
[all …]
H A Dspi-pic32-sqi.c361 if (sqi->cur_speed != spi->max_speed_hz) { in pic32_sqi_one_message()
362 sqi->cur_speed = spi->max_speed_hz; in pic32_sqi_one_message()
363 ret = pic32_sqi_set_clk_rate(sqi, spi->max_speed_hz); in pic32_sqi_one_message()
632 host->max_speed_hz = clk_get_rate(sqi->base_clk); in pic32_sqi_probe()
H A Dspi-pxa2xx.c386 ndelay(1000000000 / (drv_data->controller->max_speed_hz / 2)); in lpss_ssp_select_cs()
890 unsigned long ssp_clk = drv_data->controller->max_speed_hz; in ssp_get_clk_div()
1016 controller->max_speed_hz in pxa2xx_spi_transfer_one()
1021 controller->max_speed_hz / 2 in pxa2xx_spi_transfer_one()
1360 controller->max_speed_hz = clk_get_rate(ssp->clk); in pxa2xx_spi_probe()
1367 DIV_ROUND_UP(controller->max_speed_hz, 4096); in pxa2xx_spi_probe()
1370 DIV_ROUND_UP(controller->max_speed_hz, 512); in pxa2xx_spi_probe()
/linux/drivers/iio/pressure/
H A Dzpa2326_spi.c49 spi->max_speed_hz = min(spi->max_speed_hz, 1000000U); in zpa2326_probe_spi()
H A Dms5611_spi.c94 spi->max_speed_hz = min(spi->max_speed_hz, 20000000U); in ms5611_spi_probe()
/linux/drivers/tty/serial/
H A Dsc16is7xx_spi.c32 spi->max_speed_hz = spi->max_speed_hz ? : 4 * HZ_PER_MHZ; in sc16is7xx_spi_probe()
/linux/drivers/iio/resolver/
H A Dad2s90.c83 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()
/linux/drivers/staging/greybus/
H A Dspilib.c33 u32 max_speed_hz; member
436 spi->max_speed_hz = le32_to_cpu(response.max_speed_hz); in gb_spi_get_master_config()
476 spi_board.max_speed_hz = le32_to_cpu(response.max_speed_hz); in gb_spi_setup_device()
/linux/drivers/fpga/
H A Dlattice-sysconfig-spi.c109 if (spi->max_speed_hz > *spi_max_speed) { in sysconfig_spi_probe()
111 spi->max_speed_hz, *spi_max_speed); in sysconfig_spi_probe()
/linux/drivers/mfd/
H A Dmc13xxx-spi.c139 spi->max_speed_hz = spi->max_speed_hz ? : 26000000; in mc13xxx_spi_probe()
H A Docelot-spi.c211 if (spi->max_speed_hz <= 500000) { in ocelot_spi_probe()
220 ddata->spi_padding_bytes = 1 + (spi->max_speed_hz / HZ_PER_MHZ + 2) / 8; in ocelot_spi_probe()
/linux/drivers/net/wireless/silabs/wfx/
H A Dbus_spi.c240 spi_get_chipselect(func, 0), func->mode, func->bits_per_word, func->max_speed_hz); in wfx_spi_probe()
243 if (func->max_speed_hz > 50000000) in wfx_spi_probe()
244 dev_warn(&func->dev, "%dHz is a very high speed\n", func->max_speed_hz); in wfx_spi_probe()
/linux/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c912 spi->max_speed_hz = qcaspi_clkspeed; in qca_spi_probe()
913 else if (!spi->max_speed_hz) in qca_spi_probe()
914 spi->max_speed_hz = QCASPI_CLK_SPEED; in qca_spi_probe()
916 if (spi->max_speed_hz < QCASPI_CLK_SPEED_MIN || in qca_spi_probe()
917 spi->max_speed_hz > QCASPI_CLK_SPEED_MAX) { in qca_spi_probe()
919 spi->max_speed_hz); in qca_spi_probe()
946 spi->max_speed_hz, in qca_spi_probe()
/linux/drivers/mmc/host/
H A Dmmc_spi.c787 clock_rate = spi->max_speed_hz; in mmc_spi_data_do()
1110 if (host->spi->max_speed_hz != ios->clock && ios->clock != 0) { in mmc_spi_set_ios()
1113 host->spi->max_speed_hz = ios->clock; in mmc_spi_set_ios()
1116 host->spi->max_speed_hz, status); in mmc_spi_set_ios()
1171 spi->mode, spi->max_speed_hz / 1000, in mmc_spi_probe()
1212 mmc->f_max = spi->max_speed_hz; in mmc_spi_probe()
1328 spi->max_speed_hz = mmc->f_max; in mmc_spi_remove()
/linux/drivers/iio/magnetometer/
H A Drm3100-spi.c34 spi->max_speed_hz = 1000000; in rm3100_probe()

12345