Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/spi/
Dspidev.c93 spidev_sync(struct spidev_data *spidev, struct spi_message *message) in spidev_sync() argument
98 spin_lock_irq(&spidev->spi_lock); in spidev_sync()
99 spi = spidev->spi; in spidev_sync()
100 spin_unlock_irq(&spidev->spi_lock); in spidev_sync()
114 spidev_sync_write(struct spidev_data *spidev, size_t len) in spidev_sync_write() argument
117 .tx_buf = spidev->tx_buffer, in spidev_sync_write()
119 .speed_hz = spidev->speed_hz, in spidev_sync_write()
125 return spidev_sync(spidev, &m); in spidev_sync_write()
129 spidev_sync_read(struct spidev_data *spidev, size_t len) in spidev_sync_read() argument
132 .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 …]
DMakefile13 obj-$(CONFIG_SPI_SPIDEV) += spidev.o
/Linux-v6.1/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.c251 struct device *dev = &st95context->spicontext.spidev->dev; in st95hf_send_recv_cmd()
317 dev_err(&st95context->spicontext.spidev->dev, in st95hf_echo_command()
325 dev_err(&st95context->spicontext.spidev->dev, "err: echo res is 0x%x\n", in st95hf_echo_command()
483 dev_err(&st95context->spicontext.spidev->dev, in st95hf_send_spi_reset_sequence()
512 dev_dbg(&st95context->spicontext.spidev->dev, in st95hf_por_sequence()
535 struct device *dev = &st95context->spicontext.spidev->dev; in iso14443_config_fdt()
778 spidevice = &stcontext->spicontext.spidev->dev; in st95hf_irq_thread_handler()
1081 spicontext->spidev = nfc_spi_dev; in st95hf_probe()
1222 dev_err(&spictx->spidev->dev, "sleep for semaphore interrupted by signal\n"); in st95hf_remove()
1230 dev_err(&spictx->spidev->dev, in st95hf_remove()
Dspi.h31 struct spi_device *spidev; member
/Linux-v6.1/Documentation/spi/
Dspidev.rst15 #include <linux/spi/spidev.h>
33 The spidev driver contains lists of SPI devices that are supported for
36 The following are the SPI device tables supported by the spidev driver:
52 post a patch for spidev to the linux-spi@vger.kernel.org mailing list.
54 It used to be supported to define an SPI device using the "spidev" name.
55 For example, as .modalias = "spidev" or compatible = "spidev". But this
60 the spidev driver failing to probe.
64 To make the spidev driver bind to such a device, use the following:
66 echo spidev > /sys/bus/spi/devices/spiB.C/driver_override
67 echo spiB.C > /sys/bus/spi/drivers/spidev/bind
[all …]
Dindex.rst11 spidev
/Linux-v6.1/drivers/net/ethernet/micrel/
Dks8851_spi.c51 struct spi_device *spidev; member
132 ret = spi_sync(kss->spidev, msg); in ks8851_wrreg16_spi()
159 if (kss->spidev->master->flags & SPI_MASTER_HALF_DUPLEX) { in ks8851_rdreg()
180 ret = spi_sync(kss->spidev, msg); in ks8851_rdreg()
183 else if (kss->spidev->master->flags & SPI_MASTER_HALF_DUPLEX) in ks8851_rdreg()
236 ret = spi_sync(kss->spidev, msg); in ks8851_rdfifo_spi()
284 ret = spi_sync(kss->spidev, msg); in ks8851_wrfifo_spi()
437 kss->spidev = spi; in ks8851_probe_spi()
/Linux-v6.1/drivers/staging/pi433/Documentation/devicetree/
Dpi433-overlay.dts14 spidev@0{
19 spidev@1{
/Linux-v6.1/drivers/net/ethernet/vertexcom/
Dmse102x.c83 struct spi_device *spidev; member
104 mses->spidev->irq); in mse102x_info_show()
109 mses->spidev->mode); in mse102x_info_show()
163 ret = spi_sync(mses->spidev, msg); in mse102x_tx_cmd_spi()
188 ret = spi_sync(mses->spidev, msg); in mse102x_rx_cmd_spi()
253 ret = spi_sync(mses->spidev, msg); in mse102x_tx_frame_spi()
277 ret = spi_sync(mses->spidev, msg); in mse102x_rx_frame_spi()
697 mses->spidev = spi; in mse102x_probe_spi()
/Linux-v6.1/drivers/net/ethernet/adi/
Dadin1110.c154 struct spi_device *spidev; member
222 ret = spi_sync_transfer(priv->spidev, t, 2); in adin1110_read_reg()
235 dev_err_ratelimited(&priv->spidev->dev, "CRC error."); in adin1110_read_reg()
265 return spi_write(priv->spidev, &priv->data[0], header_len + write_len); in adin1110_write_reg()
353 ret = spi_sync_transfer(priv->spidev, t, 2); in adin1110_read_fifo()
421 ret = spi_write(priv->spidev, &priv->data[0], round_len + header_len); in adin1110_write_fifo()
523 priv->cfg->name, priv->spidev->chip_select); in adin1110_register_mdiobus()
601 dev_warn_ratelimited(&priv->spidev->dev, in adin1110_irq()
983 dev_err_ratelimited(&priv->spidev->dev, in adin1110_tx_work()
1098 dev_err(&priv->spidev->dev, "PHY ID expected: %x, read: %x\n", in adin1110_check_spi()
[all …]
/Linux-v6.1/drivers/net/ethernet/davicom/
Ddm9051.c100 struct spi_device *spidev; member
243 struct spi_device *spi = db->spidev; in dm9051_irq_flag()
507 db->regmap_dm = devm_regmap_init_spi(db->spidev, &regconfigdm); in dm9051_map_init()
512 db->regmap_dmbulk = devm_regmap_init_spi(db->spidev, &regconfigdmbulk); in dm9051_map_init()
521 struct device *dev = &db->spidev->dev; in dm9051_map_chipid()
558 dev_dbg(&db->spidev->dev, "Use random MAC address\n"); in dm9051_map_etherdev_par()
949 struct spi_device *spi = db->spidev; in dm9051_open()
1008 free_irq(db->spidev->irq, db); in dm9051_stop()
1112 struct spi_device *spi = db->spidev; in dm9051_mdio_register()
1186 db->spidev = spi; in dm9051_probe()
/Linux-v6.1/arch/arm64/boot/dts/freescale/
Dimx8mm-mx8menlo.dts76 spidev@0 {
82 spidev@1 {
/Linux-v6.1/drivers/staging/greybus/
Dspilib.c447 struct spi_device *spidev; in gb_spi_setup_device() local
478 spidev = spi_new_device(master, &spi_board); in gb_spi_setup_device()
479 if (!spidev) in gb_spi_setup_device()
/Linux-v6.1/tools/spi/
DMakefile30 ln -sf $(CURDIR)/../../include/uapi/linux/spi/spidev.h $@
/Linux-v6.1/arch/arm/boot/dts/
Dat91-gatwick.dts107 spidev@0 {
Dimx53-m53menlo.dts135 spidev@0 {
141 spidev@1 {
Dsocfpga_cyclone5_socdk.dts157 spidev@0 {
/Linux-v6.1/drivers/net/dsa/sja1105/
Dsja1105_spi.c39 struct spi_device *spi = priv->spidev; in sja1105_xfer()
291 dev_err(&priv->spidev->dev, in static_config_buf_prepare_for_upload()
319 struct device *dev = &priv->spidev->dev; in sja1105_static_config_upload()
Dsja1105_main.c250 struct device *dev = &priv->spidev->dev; in sja1105_init_mii_settings()
1135 struct device *dev = &priv->spidev->dev; in sja1105_parse_rgmii_delays()
1189 struct device *dev = &priv->spidev->dev; in sja1105_parse_ports_node()
1246 struct device *dev = &priv->spidev->dev; in sja1105_parse_dt()
3198 struct device *dev = &priv->spidev->dev; in sja1105_check_device_id()
3265 priv->spidev = spi; in sja1105_probe()
Dsja1105.h255 struct spi_device *spidev; member
/Linux-v6.1/Documentation/admin-guide/gpio/
Dgpio-aggregator.rst77 This is useful in industrial control, and is not unlike e.g. spidev, which
/Linux-v6.1/Documentation/userspace-api/ioctl/
Dioctl-number.rst253 'k' 00-0F linux/spi/spidev.h conflict!