/Linux-v5.4/drivers/staging/iio/addac/ |
D | adt7316-spi.c | 27 struct spi_device *spi_dev = client; in adt7316_spi_multi_read() local 37 ret = spi_write(spi_dev, cmd, 2); in adt7316_spi_multi_read() 39 dev_err(&spi_dev->dev, "SPI fail to select reg\n"); in adt7316_spi_multi_read() 45 ret = spi_write_then_read(spi_dev, cmd, 1, data, count); in adt7316_spi_multi_read() 47 dev_err(&spi_dev->dev, "SPI read data error\n"); in adt7316_spi_multi_read() 56 struct spi_device *spi_dev = client; in adt7316_spi_multi_write() local 68 ret = spi_write(spi_dev, buf, count + 2); in adt7316_spi_multi_write() 70 dev_err(&spi_dev->dev, "SPI write error\n"); in adt7316_spi_multi_write() 91 static int adt7316_spi_probe(struct spi_device *spi_dev) in adt7316_spi_probe() argument 94 .client = spi_dev, in adt7316_spi_probe() [all …]
|
/Linux-v5.4/drivers/staging/iio/adc/ |
D | ad7816.c | 46 struct spi_device *spi_dev; member 66 struct spi_device *spi_dev = chip->spi_dev; in ad7816_spi_read() local 72 ret = spi_write(spi_dev, &chip->channel_id, sizeof(chip->channel_id)); in ad7816_spi_read() 74 dev_err(&spi_dev->dev, "SPI channel setting error\n"); in ad7816_spi_read() 94 ret = spi_read(spi_dev, &buf, sizeof(*data)); in ad7816_spi_read() 96 dev_err(&spi_dev->dev, "SPI data read error\n"); in ad7816_spi_read() 107 struct spi_device *spi_dev = chip->spi_dev; in ad7816_spi_write() local 112 ret = spi_write(spi_dev, &data, sizeof(data)); in ad7816_spi_write() 114 dev_err(&spi_dev->dev, "SPI oti data write error\n"); in ad7816_spi_write() 190 dev_err(&chip->spi_dev->dev, "Invalid channel id %lu for %s.\n", in ad7816_store_channel() [all …]
|
/Linux-v5.4/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-spi.c | 33 static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len, in spi_xmit() argument 47 if (spi_dev == NULL) { in spi_xmit() 55 r = spi_sync(spi_dev, &msg); in spi_xmit() 57 dev_err(&spi_dev->dev, "%s spi_sync failed %d\n", __func__, r); in spi_xmit() 65 struct spi_device *spi_dev = state->spi_dev; in s5c73m3_spi_write() local 75 r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX); in s5c73m3_spi_write() 82 r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX); in s5c73m3_spi_write() 87 return spi_xmit(spi_dev, padding, sizeof(padding), SPI_DIR_TX); in s5c73m3_spi_write() 93 struct spi_device *spi_dev = state->spi_dev; in s5c73m3_spi_read() local 100 r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX); in s5c73m3_spi_read() [all …]
|
D | s5c73m3.h | 380 struct spi_device *spi_dev; member
|
/Linux-v5.4/drivers/hwmon/ |
D | ad7314.c | 38 struct spi_device *spi_dev; member 46 ret = spi_read(chip->spi_dev, (u8 *)&chip->rx, sizeof(chip->rx)); in ad7314_spi_read() 48 dev_err(&chip->spi_dev->dev, "SPI read error\n"); in ad7314_spi_read() 66 switch (spi_get_device_id(chip->spi_dev)->driver_data) { in ad7314_temperature_show() 98 static int ad7314_probe(struct spi_device *spi_dev) in ad7314_probe() argument 103 chip = devm_kzalloc(&spi_dev->dev, sizeof(*chip), GFP_KERNEL); in ad7314_probe() 107 chip->spi_dev = spi_dev; in ad7314_probe() 108 hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, in ad7314_probe() 109 spi_dev->modalias, in ad7314_probe()
|
/Linux-v5.4/drivers/char/tpm/st33zp24/ |
D | spi.c | 228 static int st33zp24_spi_acpi_request_resources(struct spi_device *spi_dev) in st33zp24_spi_acpi_request_resources() argument 230 struct tpm_chip *chip = spi_get_drvdata(spi_dev); in st33zp24_spi_acpi_request_resources() 234 struct device *dev = &spi_dev->dev; in st33zp24_spi_acpi_request_resources() 259 static int st33zp24_spi_of_request_resources(struct spi_device *spi_dev) in st33zp24_spi_of_request_resources() argument 261 struct tpm_chip *chip = spi_get_drvdata(spi_dev); in st33zp24_spi_of_request_resources() 268 pp = spi_dev->dev.of_node; in st33zp24_spi_of_request_resources() 270 dev_err(&spi_dev->dev, "No platform data\n"); in st33zp24_spi_of_request_resources() 277 dev_err(&spi_dev->dev, in st33zp24_spi_of_request_resources() 288 ret = devm_gpio_request_one(&spi_dev->dev, gpio, in st33zp24_spi_of_request_resources() 291 dev_err(&spi_dev->dev, "Failed to request lpcpd pin\n"); in st33zp24_spi_of_request_resources()
|
/Linux-v5.4/drivers/nfc/st-nci/ |
D | spi.c | 34 struct spi_device *spi_dev; member 54 enable_irq(phy->spi_dev->irq); in st_nci_spi_enable() 65 disable_irq_nosync(phy->spi_dev->irq); in st_nci_spi_disable() 78 struct spi_device *dev = phy->spi_dev; in st_nci_spi_write() 126 struct spi_device *dev = phy->spi_dev; in st_nci_spi_read() 179 if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { in st_nci_irq_thread_fn() 184 dev = phy->spi_dev; in st_nci_irq_thread_fn() 237 phy->spi_dev = dev; in st_nci_spi_probe()
|
/Linux-v5.4/drivers/net/ethernet/qualcomm/ |
D | qca_7k.c | 67 spi_sync(qca->spi_dev, &msg); in qcaspi_read_register() 71 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_register() 106 spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register() 110 ret = spi_sync(qca->spi_dev, &msg); in __qcaspi_write_register()
|
D | qca_debug.c | 110 qca->spi_dev->irq); in qcaspi_info_show() 117 (unsigned long)qca->spi_dev->max_speed_hz); in qcaspi_info_show() 119 qca->spi_dev->mode); in qcaspi_info_show() 121 (unsigned int)qca->spi_dev->chip_select); in qcaspi_info_show() 169 strlcpy(p->bus_info, dev_name(&qca->spi_dev->dev), in qcaspi_get_drvinfo()
|
D | qca_spi.c | 123 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_write_burst() 147 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_write_legacy() 176 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_burst() 200 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_legacy() 227 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_tx_cmd() 686 ret = request_irq(qca->spi_dev->irq, qcaspi_intr_handler, 0, in qcaspi_netdev_open() 690 QCASPI_DRV_NAME, qca->spi_dev->irq, ret); in qcaspi_netdev_open() 708 free_irq(qca->spi_dev->irq, qca); in qcaspi_netdev_close() 960 qca->spi_dev = spi; in qca_spi_probe()
|
D | qca_spi.h | 82 struct spi_device *spi_dev; member
|
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-tpo-td028ttec1.c | 30 struct spi_device *spi_dev; member 60 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0() 63 dev_err(&ddata->spi_dev->dev, in jbt_ret_write_0() 76 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1() 79 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_1() 94 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_2() 98 dev_err(&ddata->spi_dev->dev, in jbt_reg_write_2() 399 ddata->spi_dev = spi; in td028ttec1_panel_probe() 434 dev_dbg(&ddata->spi_dev->dev, "%s\n", __func__); in td028ttec1_panel_remove()
|
/Linux-v5.4/drivers/tty/serial/ |
D | ifx6x60.c | 142 pm_runtime_get(&ifx_dev->spi_dev->dev); in ifx_spi_power_state_set() 165 pm_runtime_put(&ifx_dev->spi_dev->dev); in ifx_spi_power_state_clear() 270 dev_warn(&ifx_dev->spi_dev->dev, "*** SPI Timeout ***"); in ifx_spi_timeout() 657 dev_dbg(&ifx_dev->spi_dev->dev, in ifx_spi_complete() 662 dev_dbg(&ifx_dev->spi_dev->dev, in ifx_spi_complete() 681 dev_dbg(&ifx_dev->spi_dev->dev, "SPI transfer error %d", in ifx_spi_complete() 751 ifx_dev->spi_xfer.speed_hz = ifx_dev->spi_dev->max_speed_hz; in ifx_spi_io() 754 ifx_dev->spi_dev->bits_per_word; in ifx_spi_io() 783 retval = spi_async(ifx_dev->spi_dev, &ifx_dev->spi_msg); in ifx_spi_io() 833 ifx_dev->minor, &ifx_dev->spi_dev->dev); in ifx_spi_create_port() [all …]
|
D | ifx6x60.h | 56 struct spi_device *spi_dev; member
|
/Linux-v5.4/drivers/spi/ |
D | spi-stm32.c | 765 struct spi_device *spi_dev, in stm32_spi_can_dma() argument 979 static int stm32_spi_setup(struct spi_device *spi_dev) in stm32_spi_setup() argument 983 if (!gpio_is_valid(spi_dev->cs_gpio)) { in stm32_spi_setup() 984 dev_err(&spi_dev->dev, "%d is not a valid gpio\n", in stm32_spi_setup() 985 spi_dev->cs_gpio); in stm32_spi_setup() 989 dev_dbg(&spi_dev->dev, "%s: set gpio%d output %s\n", __func__, in stm32_spi_setup() 990 spi_dev->cs_gpio, in stm32_spi_setup() 991 (spi_dev->mode & SPI_CS_HIGH) ? "low" : "high"); in stm32_spi_setup() 993 ret = gpio_direction_output(spi_dev->cs_gpio, in stm32_spi_setup() 994 !(spi_dev->mode & SPI_CS_HIGH)); in stm32_spi_setup() [all …]
|
D | spi-sprd-adi.c | 275 struct spi_device *spi_dev, in sprd_adi_transfer_one() argument
|
/Linux-v5.4/drivers/iio/dac/ |
D | ltc2632.c | 47 struct spi_device *spi_dev; member 113 return ltc2632_spi_write(st->spi_dev, in ltc2632_write_raw() 152 ret = ltc2632_spi_write(st->spi_dev, in ltc2632_write_dac_powerdown() 244 st->spi_dev = spi; in ltc2632_probe()
|
/Linux-v5.4/drivers/video/backlight/ |
D | tdo24m.c | 26 struct spi_device *spi_dev; member 209 err = spi_sync(lcd->spi_dev, &lcd->msg); in tdo24m_writes() 356 lcd->spi_dev = spi; in tdo24m_probe()
|
D | corgi_lcd.c | 83 struct spi_device *spi_dev; member 184 return spi_sync(lcd->spi_dev, &msg); in corgi_ssp_lcdtg_send() 484 struct spi_device *spi = lcd->spi_dev; in setup_gpio_backlight() 546 lcd->spi_dev = spi; in corgi_lcd_probe()
|