spi_dev 228 drivers/char/tpm/st33zp24/spi.c static int st33zp24_spi_acpi_request_resources(struct spi_device *spi_dev) spi_dev 230 drivers/char/tpm/st33zp24/spi.c struct tpm_chip *chip = spi_get_drvdata(spi_dev); spi_dev 234 drivers/char/tpm/st33zp24/spi.c struct device *dev = &spi_dev->dev; spi_dev 259 drivers/char/tpm/st33zp24/spi.c static int st33zp24_spi_of_request_resources(struct spi_device *spi_dev) spi_dev 261 drivers/char/tpm/st33zp24/spi.c struct tpm_chip *chip = spi_get_drvdata(spi_dev); spi_dev 268 drivers/char/tpm/st33zp24/spi.c pp = spi_dev->dev.of_node; spi_dev 270 drivers/char/tpm/st33zp24/spi.c dev_err(&spi_dev->dev, "No platform data\n"); spi_dev 277 drivers/char/tpm/st33zp24/spi.c dev_err(&spi_dev->dev, spi_dev 288 drivers/char/tpm/st33zp24/spi.c ret = devm_gpio_request_one(&spi_dev->dev, gpio, spi_dev 291 drivers/char/tpm/st33zp24/spi.c dev_err(&spi_dev->dev, "Failed to request lpcpd pin\n"); spi_dev 38 drivers/hwmon/ad7314.c struct spi_device *spi_dev; spi_dev 46 drivers/hwmon/ad7314.c ret = spi_read(chip->spi_dev, (u8 *)&chip->rx, sizeof(chip->rx)); spi_dev 48 drivers/hwmon/ad7314.c dev_err(&chip->spi_dev->dev, "SPI read error\n"); spi_dev 66 drivers/hwmon/ad7314.c switch (spi_get_device_id(chip->spi_dev)->driver_data) { spi_dev 98 drivers/hwmon/ad7314.c static int ad7314_probe(struct spi_device *spi_dev) spi_dev 103 drivers/hwmon/ad7314.c chip = devm_kzalloc(&spi_dev->dev, sizeof(*chip), GFP_KERNEL); spi_dev 107 drivers/hwmon/ad7314.c chip->spi_dev = spi_dev; spi_dev 108 drivers/hwmon/ad7314.c hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, spi_dev 109 drivers/hwmon/ad7314.c spi_dev->modalias, spi_dev 47 drivers/iio/dac/ltc2632.c struct spi_device *spi_dev; spi_dev 113 drivers/iio/dac/ltc2632.c return ltc2632_spi_write(st->spi_dev, spi_dev 152 drivers/iio/dac/ltc2632.c ret = ltc2632_spi_write(st->spi_dev, spi_dev 244 drivers/iio/dac/ltc2632.c st->spi_dev = spi; spi_dev 33 drivers/media/i2c/s5c73m3/s5c73m3-spi.c static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len, spi_dev 47 drivers/media/i2c/s5c73m3/s5c73m3-spi.c if (spi_dev == NULL) { spi_dev 55 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_sync(spi_dev, &msg); spi_dev 57 drivers/media/i2c/s5c73m3/s5c73m3-spi.c dev_err(&spi_dev->dev, "%s spi_sync failed %d\n", __func__, r); spi_dev 65 drivers/media/i2c/s5c73m3/s5c73m3-spi.c struct spi_device *spi_dev = state->spi_dev; spi_dev 75 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX); spi_dev 82 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX); spi_dev 87 drivers/media/i2c/s5c73m3/s5c73m3-spi.c return spi_xmit(spi_dev, padding, sizeof(padding), SPI_DIR_TX); spi_dev 93 drivers/media/i2c/s5c73m3/s5c73m3-spi.c struct spi_device *spi_dev = state->spi_dev; spi_dev 100 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX); spi_dev 107 drivers/media/i2c/s5c73m3/s5c73m3-spi.c return spi_xmit(spi_dev, addr + j, extra, SPI_DIR_RX); spi_dev 126 drivers/media/i2c/s5c73m3/s5c73m3-spi.c state->spi_dev = spi; spi_dev 380 drivers/media/i2c/s5c73m3/s5c73m3.h struct spi_device *spi_dev; spi_dev 67 drivers/net/ethernet/qualcomm/qca_7k.c spi_sync(qca->spi_dev, &msg); spi_dev 71 drivers/net/ethernet/qualcomm/qca_7k.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 106 drivers/net/ethernet/qualcomm/qca_7k.c spi_sync(qca->spi_dev, &msg); spi_dev 110 drivers/net/ethernet/qualcomm/qca_7k.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 110 drivers/net/ethernet/qualcomm/qca_debug.c qca->spi_dev->irq); spi_dev 117 drivers/net/ethernet/qualcomm/qca_debug.c (unsigned long)qca->spi_dev->max_speed_hz); spi_dev 119 drivers/net/ethernet/qualcomm/qca_debug.c qca->spi_dev->mode); spi_dev 121 drivers/net/ethernet/qualcomm/qca_debug.c (unsigned int)qca->spi_dev->chip_select); spi_dev 169 drivers/net/ethernet/qualcomm/qca_debug.c strlcpy(p->bus_info, dev_name(&qca->spi_dev->dev), spi_dev 123 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 147 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 176 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 200 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 227 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); spi_dev 686 drivers/net/ethernet/qualcomm/qca_spi.c ret = request_irq(qca->spi_dev->irq, qcaspi_intr_handler, 0, spi_dev 690 drivers/net/ethernet/qualcomm/qca_spi.c QCASPI_DRV_NAME, qca->spi_dev->irq, ret); spi_dev 708 drivers/net/ethernet/qualcomm/qca_spi.c free_irq(qca->spi_dev->irq, qca); spi_dev 960 drivers/net/ethernet/qualcomm/qca_spi.c qca->spi_dev = spi; spi_dev 82 drivers/net/ethernet/qualcomm/qca_spi.h struct spi_device *spi_dev; spi_dev 34 drivers/nfc/st-nci/spi.c struct spi_device *spi_dev; spi_dev 54 drivers/nfc/st-nci/spi.c enable_irq(phy->spi_dev->irq); spi_dev 65 drivers/nfc/st-nci/spi.c disable_irq_nosync(phy->spi_dev->irq); spi_dev 78 drivers/nfc/st-nci/spi.c struct spi_device *dev = phy->spi_dev; spi_dev 126 drivers/nfc/st-nci/spi.c struct spi_device *dev = phy->spi_dev; spi_dev 179 drivers/nfc/st-nci/spi.c if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { spi_dev 184 drivers/nfc/st-nci/spi.c dev = phy->spi_dev; spi_dev 237 drivers/nfc/st-nci/spi.c phy->spi_dev = dev; spi_dev 275 drivers/spi/spi-sprd-adi.c struct spi_device *spi_dev, spi_dev 765 drivers/spi/spi-stm32.c struct spi_device *spi_dev, spi_dev 979 drivers/spi/spi-stm32.c static int stm32_spi_setup(struct spi_device *spi_dev) spi_dev 983 drivers/spi/spi-stm32.c if (!gpio_is_valid(spi_dev->cs_gpio)) { spi_dev 984 drivers/spi/spi-stm32.c dev_err(&spi_dev->dev, "%d is not a valid gpio\n", spi_dev 985 drivers/spi/spi-stm32.c spi_dev->cs_gpio); spi_dev 989 drivers/spi/spi-stm32.c dev_dbg(&spi_dev->dev, "%s: set gpio%d output %s\n", __func__, spi_dev 990 drivers/spi/spi-stm32.c spi_dev->cs_gpio, spi_dev 991 drivers/spi/spi-stm32.c (spi_dev->mode & SPI_CS_HIGH) ? "low" : "high"); spi_dev 993 drivers/spi/spi-stm32.c ret = gpio_direction_output(spi_dev->cs_gpio, spi_dev 994 drivers/spi/spi-stm32.c !(spi_dev->mode & SPI_CS_HIGH)); spi_dev 1006 drivers/spi/spi-stm32.c struct spi_device *spi_dev = msg->spi; spi_dev 1007 drivers/spi/spi-stm32.c struct device_node *np = spi_dev->dev.of_node; spi_dev 1016 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_CPOL) spi_dev 1021 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_CPHA) spi_dev 1026 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_LSB_FIRST) spi_dev 1032 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CPOL, spi_dev 1033 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CPHA, spi_dev 1034 drivers/spi/spi-stm32.c spi_dev->mode & SPI_LSB_FIRST, spi_dev 1035 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CS_HIGH); spi_dev 1434 drivers/spi/spi-stm32.c static unsigned int stm32_spi_communication_type(struct spi_device *spi_dev, spi_dev 1439 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_3WIRE) { /* MISO/MOSI signals shared */ spi_dev 1575 drivers/spi/spi-stm32.c struct spi_device *spi_dev, spi_dev 1605 drivers/spi/spi-stm32.c comm_type = stm32_spi_communication_type(spi_dev, transfer); spi_dev 1657 drivers/spi/spi-stm32.c struct spi_device *spi_dev, spi_dev 1669 drivers/spi/spi-stm32.c master->can_dma(master, spi_dev, transfer)); spi_dev 1671 drivers/spi/spi-stm32.c ret = stm32_spi_transfer_one_setup(spi, spi_dev, transfer); spi_dev 46 drivers/staging/iio/adc/ad7816.c struct spi_device *spi_dev; spi_dev 66 drivers/staging/iio/adc/ad7816.c struct spi_device *spi_dev = chip->spi_dev; spi_dev 72 drivers/staging/iio/adc/ad7816.c ret = spi_write(spi_dev, &chip->channel_id, sizeof(chip->channel_id)); spi_dev 74 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "SPI channel setting error\n"); spi_dev 94 drivers/staging/iio/adc/ad7816.c ret = spi_read(spi_dev, &buf, sizeof(*data)); spi_dev 96 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "SPI data read error\n"); spi_dev 107 drivers/staging/iio/adc/ad7816.c struct spi_device *spi_dev = chip->spi_dev; spi_dev 112 drivers/staging/iio/adc/ad7816.c ret = spi_write(spi_dev, &data, sizeof(data)); spi_dev 114 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "SPI oti data write error\n"); spi_dev 190 drivers/staging/iio/adc/ad7816.c dev_err(&chip->spi_dev->dev, "Invalid channel id %lu for %s.\n", spi_dev 194 drivers/staging/iio/adc/ad7816.c dev_err(&chip->spi_dev->dev, spi_dev 198 drivers/staging/iio/adc/ad7816.c dev_err(&chip->spi_dev->dev, spi_dev 352 drivers/staging/iio/adc/ad7816.c static int ad7816_probe(struct spi_device *spi_dev) spi_dev 358 drivers/staging/iio/adc/ad7816.c indio_dev = devm_iio_device_alloc(&spi_dev->dev, sizeof(*chip)); spi_dev 363 drivers/staging/iio/adc/ad7816.c dev_set_drvdata(&spi_dev->dev, indio_dev); spi_dev 365 drivers/staging/iio/adc/ad7816.c chip->spi_dev = spi_dev; spi_dev 369 drivers/staging/iio/adc/ad7816.c chip->id = spi_get_device_id(spi_dev)->driver_data; spi_dev 370 drivers/staging/iio/adc/ad7816.c chip->rdwr_pin = devm_gpiod_get(&spi_dev->dev, "rdwr", GPIOD_OUT_HIGH); spi_dev 373 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "Failed to request rdwr GPIO: %d\n", spi_dev 377 drivers/staging/iio/adc/ad7816.c chip->convert_pin = devm_gpiod_get(&spi_dev->dev, "convert", spi_dev 381 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "Failed to request convert GPIO: %d\n", spi_dev 386 drivers/staging/iio/adc/ad7816.c chip->busy_pin = devm_gpiod_get(&spi_dev->dev, "busy", spi_dev 390 drivers/staging/iio/adc/ad7816.c dev_err(&spi_dev->dev, "Failed to request busy GPIO: %d\n", spi_dev 396 drivers/staging/iio/adc/ad7816.c indio_dev->name = spi_get_device_id(spi_dev)->name; spi_dev 397 drivers/staging/iio/adc/ad7816.c indio_dev->dev.parent = &spi_dev->dev; spi_dev 401 drivers/staging/iio/adc/ad7816.c if (spi_dev->irq) { spi_dev 403 drivers/staging/iio/adc/ad7816.c ret = devm_request_threaded_irq(&spi_dev->dev, spi_dev->irq, spi_dev 413 drivers/staging/iio/adc/ad7816.c ret = devm_iio_device_register(&spi_dev->dev, indio_dev); spi_dev 417 drivers/staging/iio/adc/ad7816.c dev_info(&spi_dev->dev, "%s temperature sensor and ADC registered.\n", spi_dev 27 drivers/staging/iio/addac/adt7316-spi.c struct spi_device *spi_dev = client; spi_dev 37 drivers/staging/iio/addac/adt7316-spi.c ret = spi_write(spi_dev, cmd, 2); spi_dev 39 drivers/staging/iio/addac/adt7316-spi.c dev_err(&spi_dev->dev, "SPI fail to select reg\n"); spi_dev 45 drivers/staging/iio/addac/adt7316-spi.c ret = spi_write_then_read(spi_dev, cmd, 1, data, count); spi_dev 47 drivers/staging/iio/addac/adt7316-spi.c dev_err(&spi_dev->dev, "SPI read data error\n"); spi_dev 56 drivers/staging/iio/addac/adt7316-spi.c struct spi_device *spi_dev = client; spi_dev 68 drivers/staging/iio/addac/adt7316-spi.c ret = spi_write(spi_dev, buf, count + 2); spi_dev 70 drivers/staging/iio/addac/adt7316-spi.c dev_err(&spi_dev->dev, "SPI write error\n"); spi_dev 91 drivers/staging/iio/addac/adt7316-spi.c static int adt7316_spi_probe(struct spi_device *spi_dev) spi_dev 94 drivers/staging/iio/addac/adt7316-spi.c .client = spi_dev, spi_dev 95 drivers/staging/iio/addac/adt7316-spi.c .irq = spi_dev->irq, spi_dev 103 drivers/staging/iio/addac/adt7316-spi.c if (spi_dev->max_speed_hz > ADT7316_SPI_MAX_FREQ_HZ) { spi_dev 104 drivers/staging/iio/addac/adt7316-spi.c dev_err(&spi_dev->dev, "SPI CLK %d Hz?\n", spi_dev 105 drivers/staging/iio/addac/adt7316-spi.c spi_dev->max_speed_hz); spi_dev 110 drivers/staging/iio/addac/adt7316-spi.c adt7316_spi_write(spi_dev, 0, 0); spi_dev 111 drivers/staging/iio/addac/adt7316-spi.c adt7316_spi_write(spi_dev, 0, 0); spi_dev 112 drivers/staging/iio/addac/adt7316-spi.c adt7316_spi_write(spi_dev, 0, 0); spi_dev 114 drivers/staging/iio/addac/adt7316-spi.c return adt7316_probe(&spi_dev->dev, &bus, spi_dev->modalias); spi_dev 142 drivers/tty/serial/ifx6x60.c pm_runtime_get(&ifx_dev->spi_dev->dev); spi_dev 165 drivers/tty/serial/ifx6x60.c pm_runtime_put(&ifx_dev->spi_dev->dev); spi_dev 270 drivers/tty/serial/ifx6x60.c dev_warn(&ifx_dev->spi_dev->dev, "*** SPI Timeout ***"); spi_dev 657 drivers/tty/serial/ifx6x60.c dev_dbg(&ifx_dev->spi_dev->dev, spi_dev 662 drivers/tty/serial/ifx6x60.c dev_dbg(&ifx_dev->spi_dev->dev, spi_dev 681 drivers/tty/serial/ifx6x60.c dev_dbg(&ifx_dev->spi_dev->dev, "SPI transfer error %d", spi_dev 751 drivers/tty/serial/ifx6x60.c ifx_dev->spi_xfer.speed_hz = ifx_dev->spi_dev->max_speed_hz; spi_dev 754 drivers/tty/serial/ifx6x60.c ifx_dev->spi_dev->bits_per_word; spi_dev 783 drivers/tty/serial/ifx6x60.c retval = spi_async(ifx_dev->spi_dev, &ifx_dev->spi_msg); spi_dev 833 drivers/tty/serial/ifx6x60.c ifx_dev->minor, &ifx_dev->spi_dev->dev); spi_dev 835 drivers/tty/serial/ifx6x60.c dev_dbg(&ifx_dev->spi_dev->dev, spi_dev 931 drivers/tty/serial/ifx6x60.c dma_free_coherent(&ifx_dev->spi_dev->dev, spi_dev 935 drivers/tty/serial/ifx6x60.c dma_free_coherent(&ifx_dev->spi_dev->dev, spi_dev 970 drivers/tty/serial/ifx6x60.c dev_warn(&ifx_dev->spi_dev->dev, "Modem reset timeout: (state:%lx)", spi_dev 1014 drivers/tty/serial/ifx6x60.c ifx_dev->spi_dev = spi; spi_dev 1047 drivers/tty/serial/ifx6x60.c ifx_dev->tx_buffer = dma_alloc_coherent(ifx_dev->spi_dev->dev.parent, spi_dev 1056 drivers/tty/serial/ifx6x60.c ifx_dev->rx_buffer = dma_alloc_coherent(ifx_dev->spi_dev->dev.parent, spi_dev 56 drivers/tty/serial/ifx6x60.h struct spi_device *spi_dev; spi_dev 83 drivers/video/backlight/corgi_lcd.c struct spi_device *spi_dev; spi_dev 184 drivers/video/backlight/corgi_lcd.c return spi_sync(lcd->spi_dev, &msg); spi_dev 484 drivers/video/backlight/corgi_lcd.c struct spi_device *spi = lcd->spi_dev; spi_dev 546 drivers/video/backlight/corgi_lcd.c lcd->spi_dev = spi; spi_dev 26 drivers/video/backlight/tdo24m.c struct spi_device *spi_dev; spi_dev 209 drivers/video/backlight/tdo24m.c err = spi_sync(lcd->spi_dev, &lcd->msg); spi_dev 356 drivers/video/backlight/tdo24m.c lcd->spi_dev = spi; spi_dev 30 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c struct spi_device *spi_dev; spi_dev 60 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, spi_dev 63 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, spi_dev 76 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, spi_dev 79 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, spi_dev 94 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, spi_dev 98 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_err(&ddata->spi_dev->dev, spi_dev 399 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c ddata->spi_dev = spi; spi_dev 434 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c dev_dbg(&ddata->spi_dev->dev, "%s\n", __func__);