Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/spi/
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 …]
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 …]
/Linux-v5.10/drivers/nfc/st95hf/
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 …]
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()
Dspi.h31 struct spi_device *spidev; member
/Linux-v5.10/drivers/staging/kpc2000/
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 …]
/Linux-v5.10/tools/spi/
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
/Linux-v5.10/drivers/net/ethernet/micrel/
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()
/Linux-v5.10/drivers/staging/pi433/Documentation/devicetree/
Dpi433-overlay.dts14 spidev@0{
19 spidev@1{
/Linux-v5.10/Documentation/spi/
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
Dindex.rst11 spidev
/Linux-v5.10/arch/arm/boot/dts/
Dat91-wb50n.dts94 spidev@0 {
95 compatible = "spidev";
Domap3-tao3530.dtsi201 spidev@0 {
202 compatible = "spidev";
213 spidev@0 {
214 compatible = "spidev";
Dimx28-tx28.dts244 compatible = "spidev";
250 compatible = "spidev";
256 compatible = "spidev";
705 compatible = "spidev";
711 compatible = "spidev";
717 compatible = "spidev";
Datlas6-evb.dts32 compatible = "spidev";
Dimx6ul-imx6ull-opos6uldev.dtsi119 compatible = "spidev";
125 compatible = "spidev";
Dat91-gatwick.dts107 spidev@0 {
Dspear1310-evb.dts399 spidev@2 {
400 compatible = "spidev";
Dimx53-m53menlo.dts110 spidev@0 {
116 spidev@1 {
Dsocfpga_cyclone5_socdk.dts157 spidev@0 {
Dspear1340-evb.dts493 spidev@2 {
494 compatible = "spidev";
/Linux-v5.10/arch/powerpc/boot/dts/
Do2d.dtsi38 spidev@0 {
39 compatible = "spidev";
Ddigsy_mtc.dts30 compatible = "spidev";
/Linux-v5.10/drivers/staging/greybus/
Dspilib.c443 struct spi_device *spidev; in gb_spi_setup_device() local
474 spidev = spi_new_device(master, &spi_board); in gb_spi_setup_device()
475 if (!spidev) in gb_spi_setup_device()
/Linux-v5.10/drivers/net/dsa/sja1105/
Dsja1105_spi.c54 struct spi_device *spi = priv->spidev; in sja1105_xfer()
316 dev_err(&priv->spidev->dev, in static_config_buf_prepare_for_upload()
345 struct device *dev = &priv->spidev->dev; in sja1105_static_config_upload()

12