Home
last modified time | relevance | path

Searched refs:spidev (Results 1 – 25 of 89) sorted by relevance

1234

/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspidev-rkmst.c53 static inline void spidev_mst_slave_ready_status(struct spidev_rkmst_data *spidev, bool status) in spidev_mst_slave_ready_status() argument
55 spidev->ready_status = status; in spidev_mst_slave_ready_status()
60 struct spidev_rkmst_data *spidev = (struct spidev_rkmst_data *)arg; in spidev_mst_slave_ready_interrupt() local
62 spidev_mst_slave_ready_status(spidev, true); in spidev_mst_slave_ready_interrupt()
67 static bool spidev_mst_check_slave_ready(struct spidev_rkmst_data *spidev) in spidev_mst_check_slave_ready() argument
69 return spidev->ready_status; in spidev_mst_check_slave_ready()
72 static int spidev_mst_wait_for_slave_ready(struct spidev_rkmst_data *spidev, in spidev_mst_wait_for_slave_ready() argument
79 ready, 100, timeout_us + 100, false, spidev); in spidev_mst_wait_for_slave_ready()
81 dev_err(&spidev->spi->dev, "timeout and reset slave\n"); in spidev_mst_wait_for_slave_ready()
89 static int spidev_mst_write(struct spidev_rkmst_data *spidev, const void *txbuf, size_t n) in spidev_mst_write() argument
[all …]
H A Dspidev-rkslv.c45 static int spidev_slv_write(struct spidev_rkslv_data *spidev, const void *txbuf, size_t n) in spidev_slv_write() argument
48 struct spi_device *spi = spidev->spi; in spidev_slv_write()
63 static int spidev_slv_read(struct spidev_rkslv_data *spidev, void *rxbuf, size_t n) in spidev_slv_read() argument
66 struct spi_device *spi = spidev->spi; in spidev_slv_read()
81 static int spidev_slv_write_and_read(struct spidev_rkslv_data *spidev, const void *tx_buf, in spidev_slv_write_and_read() argument
84 struct spi_device *spi = spidev->spi; in spidev_slv_write_and_read()
100 struct spidev_rkslv_data *spidev; in spidev_rkslv_misc_write() local
110 spidev = filp->private_data; in spidev_rkslv_misc_write()
112 if (!spidev) in spidev_rkslv_misc_write()
115 spi = spidev->spi; in spidev_rkslv_misc_write()
[all …]
H A Dspidev.c92 spidev_sync(struct spidev_data *spidev, struct spi_message *message) in spidev_sync() argument
97 spin_lock_irq(&spidev->spi_lock); in spidev_sync()
98 spi = spidev->spi; in spidev_sync()
99 spin_unlock_irq(&spidev->spi_lock); in spidev_sync()
113 spidev_sync_write(struct spidev_data *spidev, size_t len) in spidev_sync_write() argument
116 .tx_buf = spidev->tx_buffer, in spidev_sync_write()
118 .speed_hz = spidev->speed_hz, in spidev_sync_write()
124 return spidev_sync(spidev, &m); in spidev_sync_write()
128 spidev_sync_read(struct spidev_data *spidev, size_t len) in spidev_sync_read() argument
131 .rx_buf = spidev->rx_buffer, in spidev_sync_read()
[all …]
H A Dspi-lantiq-ssc.c387 static int lantiq_ssc_setup(struct spi_device *spidev) in lantiq_ssc_setup() argument
389 struct spi_master *master = spidev->master; in lantiq_ssc_setup()
391 unsigned int cs = spidev->chip_select; in lantiq_ssc_setup()
395 if (spidev->cs_gpiod) in lantiq_ssc_setup()
410 if (spidev->mode & SPI_CS_HIGH) in lantiq_ssc_setup()
431 struct spi_device *spidev, struct spi_transfer *t) in hw_setup_transfer() argument
721 static int transfer_start(struct lantiq_ssc_spi *spi, struct spi_device *spidev, in transfer_start() argument
796 static void lantiq_ssc_set_cs(struct spi_device *spidev, bool enable) in lantiq_ssc_set_cs() argument
798 struct lantiq_ssc_spi *spi = spi_master_get_devdata(spidev->master); in lantiq_ssc_set_cs()
799 unsigned int cs = spidev->chip_select; in lantiq_ssc_set_cs()
[all …]
H A DMakefile13 obj-$(CONFIG_SPI_SPIDEV) += spidev.o
139 obj-$(CONFIG_SPI_SLAVE_ROCKCHIP_OBJ) += spidev-rkslv.o
140 obj-$(CONFIG_SPI_SLAVE_ROCKCHIP_OBJ) += spidev-rkmst.o
/OK3568_Linux_fs/kernel/drivers/nfc/st95hf/
H A Dspi.c19 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_send() local
37 result = spi_sync(spidev, &m); in st95hf_spi_send()
39 dev_err(&spidev->dev, "error: sending cmd to st95hf using SPI = %d\n", in st95hf_spi_send()
55 dev_err(&spidev->dev, "error: response not ready timeout\n"); in st95hf_spi_send()
74 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_recv_response() local
92 ret = spi_sync(spidev, &m); in st95hf_spi_recv_response()
94 dev_err(&spidev->dev, "spi_recv_resp, data length error = %d\n", in st95hf_spi_recv_response()
116 ret = spi_sync(spidev, &m); in st95hf_spi_recv_response()
120 dev_err(&spidev->dev, "spi_recv_resp, data read error = %d\n", in st95hf_spi_recv_response()
138 struct spi_device *spidev = spicontext->spidev; in st95hf_spi_recv_echo_res() local
[all …]
H A Dcore.c252 struct device *dev = &st95context->spicontext.spidev->dev; in st95hf_send_recv_cmd()
318 dev_err(&st95context->spicontext.spidev->dev, in st95hf_echo_command()
326 dev_err(&st95context->spicontext.spidev->dev, "err: echo res is 0x%x\n", in st95hf_echo_command()
484 dev_err(&st95context->spicontext.spidev->dev, in st95hf_send_spi_reset_sequence()
513 dev_dbg(&st95context->spicontext.spidev->dev, in st95hf_por_sequence()
536 struct device *dev = &st95context->spicontext.spidev->dev; in iso14443_config_fdt()
779 spidevice = &stcontext->spicontext.spidev->dev; in st95hf_irq_thread_handler()
1085 spicontext->spidev = nfc_spi_dev; in st95hf_probe()
1226 dev_err(&spictx->spidev->dev, "sleep for semaphore interrupted by signal\n"); in st95hf_remove()
1234 dev_err(&spictx->spidev->dev, in st95hf_remove()
/OK3568_Linux_fs/kernel/drivers/staging/kpc2000/
H A Dkpc2000_spi.c205 kp_spi_txrx_pio(struct spi_device *spidev, struct spi_transfer *transfer) in kp_spi_txrx_pio() argument
207 struct kp_spi_controller_state *cs = spidev->controller_state; in kp_spi_txrx_pio()
259 kp_spi_setup(struct spi_device *spidev) in kp_spi_setup() argument
262 struct kp_spi *kpspi = spi_master_get_devdata(spidev->master); in kp_spi_setup()
266 cs = spidev->controller_state; in kp_spi_setup()
273 spidev->controller_state = cs; in kp_spi_setup()
277 sc.bitfield.wl = spidev->bits_per_word - 1; in kp_spi_setup()
278 sc.bitfield.cs = spidev->chip_select; in kp_spi_setup()
282 kp_spi_write_reg(spidev->controller_state, KP_SPI_REG_CONFIG, sc.reg); in kp_spi_setup()
290 struct spi_device *spidev; in kp_spi_transfer_one_message() local
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-spidev_3.5.bb1 SUMMARY = "Python bindings for Linux SPI access through spidev"
3 devices from user space via the spidev linux kernel driver.\
7 HOMEPAGE = "http://github.com/doceme/py-spidev"
11 SRCNAME = "spidev"
/OK3568_Linux_fs/buildroot/package/python-spidev/
H A DConfig.in2 bool "python-spidev"
5 space via the spidev linux kernel driver.
7 https://pypi.python.org/pypi/spidev
H A Dpython-spidev.hash1 # sha256 from https://pypi.org/project/spidev
2 sha256 8a7f5c289f161ea2ac4697fa8a10918232c990678dd0053084b3c43b1363910d spidev-3.5.tar.gz
H A Dpython-spidev.mk8 PYTHON_SPIDEV_SOURCE = spidev-$(PYTHON_SPIDEV_VERSION).tar.gz
/OK3568_Linux_fs/kernel/drivers/net/ethernet/micrel/
H A Dks8851_spi.c53 struct spi_device *spidev; member
134 ret = spi_sync(kss->spidev, msg); in ks8851_wrreg16_spi()
161 if (kss->spidev->master->flags & SPI_MASTER_HALF_DUPLEX) { in ks8851_rdreg()
182 ret = spi_sync(kss->spidev, msg); in ks8851_rdreg()
185 else if (kss->spidev->master->flags & SPI_MASTER_HALF_DUPLEX) in ks8851_rdreg()
238 ret = spi_sync(kss->spidev, msg); in ks8851_rdfifo_spi()
286 ret = spi_sync(kss->spidev, msg); in ks8851_wrfifo_spi()
440 kss->spidev = spi; in ks8851_probe_spi()
/OK3568_Linux_fs/kernel/tools/spi/
H A DMakefile28 $(OUTPUT)include/linux/spi/spidev.h: ../../include/uapi/linux/spi/spidev.h
30 ln -sf $(CURDIR)/../../include/uapi/linux/spi/spidev.h $@
32 prepare: $(OUTPUT)include/linux/spi/spidev.h
/OK3568_Linux_fs/buildroot/board/orangepi/orangepi-zero/patches/linux/
H A D0003-ARM-dts-orange-pi-zero-enable-spidev.patch4 Subject: [PATCH 3/3] ARM: dts: orange-pi-zero: enable spidev
7 This patch enables spidev driver for SPI1.
34 + spidev@0 {
/OK3568_Linux_fs/buildroot/package/lcdproc/
H A D0002-Add-missing-ioctl-header.patch6 The spidev.h header uses macros from linux/ioctl.h. Add this header
34 #include <linux/spi/spidev.h>
46 #include <linux/spi/spidev.h>
/OK3568_Linux_fs/kernel/drivers/staging/pi433/Documentation/devicetree/
H A Dpi433-overlay.dts14 spidev@0{
19 spidev@1{
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-kernel/spidev-test/
H A Dspidev-test.bb2 DESCRIPTION = "SPI testing utility using the spidev driver"
5 PROVIDES = "virtual/spidev-test"
/OK3568_Linux_fs/kernel/Documentation/spi/
H A Dspidev.rst15 #include <linux/spi/spidev.h>
34 entry is "spidev", matching the name of the driver exposing this API.
57 /sys/class/spidev/spidevB.C ...
58 created when the "spidev" driver
66 If you unbind the "spidev" driver from that device, those two "spidev" nodes
68 kernel and by udev/mdev). You can unbind by removing the "spidev" driver
H A Dindex.rst11 spidev
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dat91-wb50n.dts94 spidev@0 {
95 compatible = "spidev";
H A Domap3-tao3530.dtsi201 spidev@0 {
202 compatible = "spidev";
213 spidev@0 {
214 compatible = "spidev";
H A Dimx28-tx28.dts244 compatible = "spidev";
250 compatible = "spidev";
256 compatible = "spidev";
705 compatible = "spidev";
711 compatible = "spidev";
717 compatible = "spidev";
/OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/
H A Do2d.dtsi38 spidev@0 {
39 compatible = "spidev";
/OK3568_Linux_fs/buildroot/package/spi-tools/
H A DConfig.in5 using Linux spidev devices.

1234