Searched refs:spi_dev (Results 1 - 15 of 15) sorted by relevance

/drivers/staging/iio/addac/
H A Dadt7316-spi.c28 struct spi_device *spi_dev = client; local
38 ret = spi_write(spi_dev, cmd, 2);
40 dev_err(&spi_dev->dev, "SPI fail to select reg\n");
46 ret = spi_write_then_read(spi_dev, cmd, 1, data, count);
48 dev_err(&spi_dev->dev, "SPI read data error\n");
57 struct spi_device *spi_dev = client; local
69 ret = spi_write(spi_dev, buf, count + 2);
71 dev_err(&spi_dev->dev, "SPI write error\n");
92 static int adt7316_spi_probe(struct spi_device *spi_dev) argument
95 .client = spi_dev,
[all...]
/drivers/hwmon/
H A Dad7314.c38 struct spi_device *spi_dev; member in struct:ad7314_data
47 ret = spi_read(chip->spi_dev, (u8 *)&chip->rx, sizeof(chip->rx));
49 dev_err(&chip->spi_dev->dev, "SPI read error\n");
67 switch (spi_get_device_id(chip->spi_dev)->driver_data) {
110 static int ad7314_probe(struct spi_device *spi_dev) argument
115 chip = devm_kzalloc(&spi_dev->dev, sizeof(*chip), GFP_KERNEL);
119 spi_set_drvdata(spi_dev, chip);
121 ret = sysfs_create_group(&spi_dev->dev.kobj, &ad7314_group);
125 chip->hwmon_dev = hwmon_device_register(&spi_dev->dev);
130 chip->spi_dev
138 ad7314_remove(struct spi_device *spi_dev) argument
[all...]
/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-spi.c40 static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len, argument
54 if (spi_dev == NULL) {
55 dev_err(&spi_dev->dev, "SPI device is uninitialized\n");
62 r = spi_sync(spi_dev, &msg);
64 dev_err(&spi_dev->dev, "%s spi_sync failed %d\n", __func__, r);
72 struct spi_device *spi_dev = state->spi_dev; local
82 r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX);
89 r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX);
94 return spi_xmit(spi_dev, paddin
100 struct spi_device *spi_dev = state->spi_dev; local
[all...]
H A Ds5c73m3.h388 struct spi_device *spi_dev; member in struct:s5c73m3
/drivers/staging/iio/adc/
H A Dad7816.c47 struct spi_device *spi_dev; member in struct:ad7816_chip_info
61 struct spi_device *spi_dev = chip->spi_dev; local
66 ret = spi_write(spi_dev, &chip->channel_id, sizeof(chip->channel_id));
68 dev_err(&spi_dev->dev, "SPI channel setting error\n");
87 ret = spi_read(spi_dev, (u8 *)data, sizeof(*data));
89 dev_err(&spi_dev->dev, "SPI data read error\n");
100 struct spi_device *spi_dev = chip->spi_dev; local
105 ret = spi_write(spi_dev,
345 ad7816_probe(struct spi_device *spi_dev) argument
[all...]
/drivers/net/ethernet/qualcomm/
H A Dqca_7k.c62 spi_sync(qca->spi_dev, msg);
74 ret = spi_sync(qca->spi_dev, msg);
104 spi_sync(qca->spi_dev, msg);
116 ret = spi_sync(qca->spi_dev, msg);
140 ret = spi_sync(qca->spi_dev, msg);
H A Dqca_debug.c108 qca->spi_dev->irq);
115 (unsigned long)qca->spi_dev->max_speed_hz);
117 qca->spi_dev->mode);
119 (unsigned int)qca->spi_dev->chip_select);
186 strlcpy(p->bus_info, dev_name(&qca->spi_dev->dev),
H A Dqca_spi.h80 struct spi_device *spi_dev; member in struct:qcaspi
H A Dqca_spi.c117 ret = spi_sync(qca->spi_dev, msg);
138 ret = spi_sync(qca->spi_dev, msg);
165 ret = spi_sync(qca->spi_dev, msg);
186 ret = spi_sync(qca->spi_dev, msg);
629 ret = request_irq(qca->spi_dev->irq, qcaspi_intr_handler, 0,
633 QCASPI_DRV_NAME, qca->spi_dev->irq, ret);
651 free_irq(qca->spi_dev->irq, qca);
913 qca->spi_dev = spi_device;
/drivers/video/fbdev/omap2/displays-new/
H A Dpanel-tpo-td028ttec1.c42 struct spi_device *spi_dev; member in struct:panel_drv_data
72 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf,
75 dev_err(&ddata->spi_dev->dev,
88 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf,
91 dev_err(&ddata->spi_dev->dev,
106 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf,
110 dev_err(&ddata->spi_dev->dev,
433 ddata->spi_dev = spi;
476 dev_dbg(&ddata->spi_dev->dev, "%s\n", __func__);
/drivers/tty/serial/
H A Difx6x60.c155 pm_runtime_get(&ifx_dev->spi_dev->dev);
178 pm_runtime_put(&ifx_dev->spi_dev->dev);
283 dev_warn(&ifx_dev->spi_dev->dev, "*** SPI Timeout ***");
668 dev_dbg(&ifx_dev->spi_dev->dev,
673 dev_dbg(&ifx_dev->spi_dev->dev,
691 dev_dbg(&ifx_dev->spi_dev->dev, "SPI transfer error %d",
761 ifx_dev->spi_xfer.speed_hz = ifx_dev->spi_dev->max_speed_hz;
764 ifx_dev->spi_dev->bits_per_word;
793 retval = spi_async(ifx_dev->spi_dev, &ifx_dev->spi_msg);
843 ifx_dev->minor, &ifx_dev->spi_dev
[all...]
H A Difx6x60.h72 struct spi_device *spi_dev; member in struct:ifx_spi_device
/drivers/video/backlight/
H A Dtdo24m.c29 struct spi_device *spi_dev; member in struct:tdo24m
212 err = spi_sync(lcd->spi_dev, &lcd->msg);
359 lcd->spi_dev = spi;
H A Dcorgi_lcd.c87 struct spi_device *spi_dev; member in struct:corgi_lcd
188 return spi_sync(lcd->spi_dev, &msg);
488 struct spi_device *spi = lcd->spi_dev;
550 lcd->spi_dev = spi;
/drivers/spi/
H A Dspi.c79 ATTRIBUTE_GROUPS(spi_dev); variable

Completed in 350 milliseconds