/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/platform/x86/ |
D | serial-multi-instantiate.c | 94 struct spi_device *spi_dev; in smi_spi_probe() local 112 spi_dev = acpi_spi_device_alloc(NULL, adev, i); in smi_spi_probe() 113 if (IS_ERR(spi_dev)) { in smi_spi_probe() 114 ret = dev_err_probe(dev, PTR_ERR(spi_dev), "failed to allocate SPI device %s from ACPI\n", in smi_spi_probe() 119 ctlr = spi_dev->controller; in smi_spi_probe() 121 strscpy(spi_dev->modalias, inst_array[i].type, sizeof(spi_dev->modalias)); in smi_spi_probe() 125 spi_dev_put(spi_dev); in smi_spi_probe() 128 spi_dev->irq = ret; in smi_spi_probe() 132 spi_dev->dev.init_name = name; in smi_spi_probe() 134 ret = spi_add_device(spi_dev); in smi_spi_probe() [all …]
|
/linux-6.1.9/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-6.1.9/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() 123 struct spi_device *dev = phy->spi_dev; in st_nci_spi_read() 175 if (!phy || !phy->ndlc || irq != phy->spi_dev->irq) { in st_nci_irq_thread_fn() 227 phy->spi_dev = dev; in st_nci_spi_probe()
|
/linux-6.1.9/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 | 111 qca->spi_dev->irq); in qcaspi_info_show() 118 (unsigned long)qca->spi_dev->max_speed_hz); in qcaspi_info_show() 120 qca->spi_dev->mode); in qcaspi_info_show() 122 (unsigned int)qca->spi_dev->chip_select); in qcaspi_info_show() 170 strscpy(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() 693 ret = request_irq(qca->spi_dev->irq, qcaspi_intr_handler, 0, in qcaspi_netdev_open() 697 QCASPI_DRV_NAME, qca->spi_dev->irq, ret); in qcaspi_netdev_open() 715 free_irq(qca->spi_dev->irq, qca); in qcaspi_netdev_close() 966 qca->spi_dev = spi; in qca_spi_probe()
|
D | qca_spi.h | 83 struct spi_device *spi_dev; member
|
/linux-6.1.9/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-6.1.9/drivers/spi/ |
D | spi-stm32.c | 725 struct spi_device *spi_dev, in stm32_spi_can_dma() argument 949 struct spi_device *spi_dev = msg->spi; in stm32_spi_prepare_msg() local 950 struct device_node *np = spi_dev->dev.of_node; in stm32_spi_prepare_msg() 959 if (spi_dev->mode & SPI_CPOL) in stm32_spi_prepare_msg() 964 if (spi_dev->mode & SPI_CPHA) in stm32_spi_prepare_msg() 969 if (spi_dev->mode & SPI_LSB_FIRST) in stm32_spi_prepare_msg() 975 !!(spi_dev->mode & SPI_CPOL), in stm32_spi_prepare_msg() 976 !!(spi_dev->mode & SPI_CPHA), in stm32_spi_prepare_msg() 977 !!(spi_dev->mode & SPI_LSB_FIRST), in stm32_spi_prepare_msg() 978 !!(spi_dev->mode & SPI_CS_HIGH)); in stm32_spi_prepare_msg() [all …]
|
D | spi-rpc-if.c | 19 static void rpcif_spi_mem_prepare(struct spi_device *spi_dev, in rpcif_spi_mem_prepare() argument 23 struct rpcif *rpc = spi_controller_get_devdata(spi_dev->controller); in rpcif_spi_mem_prepare()
|
D | spi-microchip-core.c | 468 struct spi_device *spi_dev, in mchp_corespi_transfer_one() argument 499 struct spi_device *spi_dev = msg->spi; in mchp_corespi_prepare_message() local 503 mchp_corespi_set_mode(spi, spi_dev->mode); in mchp_corespi_prepare_message()
|
D | spi-microchip-core-qspi.c | 300 static int mchp_coreqspi_setup_op(struct spi_device *spi_dev) in mchp_coreqspi_setup_op() argument 302 struct spi_controller *ctlr = spi_dev->master; in mchp_coreqspi_setup_op()
|
D | spi-sprd-adi.c | 337 struct spi_device *spi_dev, in sprd_adi_transfer_one() argument
|
/linux-6.1.9/drivers/iio/dac/ |
D | ltc2632.c | 47 struct spi_device *spi_dev; member 123 return ltc2632_spi_write(st->spi_dev, in ltc2632_write_raw() 162 ret = ltc2632_spi_write(st->spi_dev, in ltc2632_write_dac_powerdown() 322 st->spi_dev = spi; in ltc2632_probe()
|
/linux-6.1.9/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 183 return spi_sync(lcd->spi_dev, &msg); in corgi_ssp_lcdtg_send() 477 struct spi_device *spi = lcd->spi_dev; in setup_gpio_backlight() 508 lcd->spi_dev = spi; in corgi_lcd_probe()
|