/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-stm32.c | 244 int (*get_fifo_size)(struct stm32_spi *spi); 245 int (*get_bpw_mask)(struct stm32_spi *spi); 246 void (*disable)(struct stm32_spi *spi); 247 int (*config)(struct stm32_spi *spi); 248 void (*set_bpw)(struct stm32_spi *spi); 249 int (*set_mode)(struct stm32_spi *spi, unsigned int comm_type); 250 void (*set_data_idleness)(struct stm32_spi *spi, u32 length); 251 int (*set_number_of_data)(struct stm32_spi *spi, u32 length); 252 void (*transfer_one_dma_start)(struct stm32_spi *spi); 255 int (*transfer_one_irq)(struct stm32_spi *spi); [all …]
|
D | Makefile | 10 obj-$(CONFIG_SPI_MASTER) += spi.o 11 obj-$(CONFIG_SPI_MEM) += spi-mem.o 12 obj-$(CONFIG_SPI_MUX) += spi-mux.o 14 obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o 17 obj-$(CONFIG_SPI_ALTERA) += spi-altera.o 18 obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o 19 obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o 20 obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o 22 obj-$(CONFIG_SPI_AT91_USART) += spi-at91-usart.o 23 obj-$(CONFIG_SPI_ATH79) += spi-ath79.o [all …]
|
D | spi-lantiq-ssc.c | 155 int (*cfg_irq)(struct platform_device *pdev, struct lantiq_ssc_spi *spi); 188 static u32 lantiq_ssc_readl(const struct lantiq_ssc_spi *spi, u32 reg) in lantiq_ssc_readl() argument 190 return __raw_readl(spi->regbase + reg); in lantiq_ssc_readl() 193 static void lantiq_ssc_writel(const struct lantiq_ssc_spi *spi, u32 val, in lantiq_ssc_writel() argument 196 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_writel() 199 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl() argument 202 u32 val = __raw_readl(spi->regbase + reg); in lantiq_ssc_maskl() 206 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_maskl() 209 static unsigned int tx_fifo_level(const struct lantiq_ssc_spi *spi) in tx_fifo_level() argument 211 const struct lantiq_ssc_hwcfg *hwcfg = spi->hwcfg; in tx_fifo_level() [all …]
|
D | spi-sifive.c | 99 static void sifive_spi_write(struct sifive_spi *spi, int offset, u32 value) in sifive_spi_write() argument 101 iowrite32(value, spi->regs + offset); in sifive_spi_write() 104 static u32 sifive_spi_read(struct sifive_spi *spi, int offset) in sifive_spi_read() argument 106 return ioread32(spi->regs + offset); in sifive_spi_read() 109 static void sifive_spi_init(struct sifive_spi *spi) in sifive_spi_init() argument 112 sifive_spi_write(spi, SIFIVE_SPI_REG_IE, 0); in sifive_spi_init() 115 sifive_spi_write(spi, SIFIVE_SPI_REG_TXMARK, 1); in sifive_spi_init() 116 sifive_spi_write(spi, SIFIVE_SPI_REG_RXMARK, 0); in sifive_spi_init() 119 sifive_spi_write(spi, SIFIVE_SPI_REG_DELAY0, in sifive_spi_init() 122 sifive_spi_write(spi, SIFIVE_SPI_REG_DELAY1, in sifive_spi_init() [all …]
|
D | spi-mux.c | 39 struct spi_device *spi; member 49 static int spi_mux_select(struct spi_device *spi) in spi_mux_select() argument 51 struct spi_mux_priv *priv = spi_controller_get_devdata(spi->controller); in spi_mux_select() 54 ret = mux_control_select(priv->mux, spi->chip_select); in spi_mux_select() 58 if (priv->current_cs == spi->chip_select) in spi_mux_select() 61 dev_dbg(&priv->spi->dev, "setting up the mux for cs %d\n", in spi_mux_select() 62 spi->chip_select); in spi_mux_select() 65 priv->spi->max_speed_hz = spi->max_speed_hz; in spi_mux_select() 66 priv->spi->mode = spi->mode; in spi_mux_select() 67 priv->spi->bits_per_word = spi->bits_per_word; in spi_mux_select() [all …]
|
/kernel/linux/linux-4.19/drivers/spi/ |
D | Makefile | 10 obj-$(CONFIG_SPI_MASTER) += spi.o 11 obj-$(CONFIG_SPI_MEM) += spi-mem.o 13 obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o 16 obj-$(CONFIG_SPI_ALTERA) += spi-altera.o 17 obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o 18 obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o 19 obj-$(CONFIG_SPI_ATH79) += spi-ath79.o 20 obj-$(CONFIG_SPI_AU1550) += spi-au1550.o 21 obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o 22 obj-$(CONFIG_SPI_BCM2835) += spi-bcm2835.o [all …]
|
D | spi-stm32.c | 179 static inline void stm32_spi_set_bits(struct stm32_spi *spi, in stm32_spi_set_bits() argument 182 writel_relaxed(readl_relaxed(spi->base + offset) | bits, in stm32_spi_set_bits() 183 spi->base + offset); in stm32_spi_set_bits() 186 static inline void stm32_spi_clr_bits(struct stm32_spi *spi, in stm32_spi_clr_bits() argument 189 writel_relaxed(readl_relaxed(spi->base + offset) & ~bits, in stm32_spi_clr_bits() 190 spi->base + offset); in stm32_spi_clr_bits() 197 static int stm32_spi_get_fifo_size(struct stm32_spi *spi) in stm32_spi_get_fifo_size() argument 202 spin_lock_irqsave(&spi->lock, flags); in stm32_spi_get_fifo_size() 204 stm32_spi_set_bits(spi, STM32_SPI_CR1, SPI_CR1_SPE); in stm32_spi_get_fifo_size() 206 while (readl_relaxed(spi->base + STM32_SPI_SR) & SPI_SR_TXP) in stm32_spi_get_fifo_size() [all …]
|
D | spi-lantiq-ssc.c | 193 static u32 lantiq_ssc_readl(const struct lantiq_ssc_spi *spi, u32 reg) in lantiq_ssc_readl() argument 195 return __raw_readl(spi->regbase + reg); in lantiq_ssc_readl() 198 static void lantiq_ssc_writel(const struct lantiq_ssc_spi *spi, u32 val, in lantiq_ssc_writel() argument 201 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_writel() 204 static void lantiq_ssc_maskl(const struct lantiq_ssc_spi *spi, u32 clr, in lantiq_ssc_maskl() argument 207 u32 val = __raw_readl(spi->regbase + reg); in lantiq_ssc_maskl() 211 __raw_writel(val, spi->regbase + reg); in lantiq_ssc_maskl() 214 static unsigned int tx_fifo_level(const struct lantiq_ssc_spi *spi) in tx_fifo_level() argument 216 u32 fstat = lantiq_ssc_readl(spi, LTQ_SPI_FSTAT); in tx_fifo_level() 221 static unsigned int rx_fifo_level(const struct lantiq_ssc_spi *spi) in rx_fifo_level() argument [all …]
|
/kernel/linux/linux-5.10/drivers/staging/pi433/ |
D | rf69.c | 27 static u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg() argument 31 retval = spi_w8r8(spi, addr); in rf69_read_reg() 40 dev_dbg(&spi->dev, "read 0x%x FAILED\n", addr); in rf69_read_reg() 42 dev_dbg(&spi->dev, "read 0x%x from reg 0x%x\n", retval, addr); in rf69_read_reg() 48 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg() argument 56 retval = spi_write(spi, &buffer, 2); in rf69_write_reg() 65 dev_dbg(&spi->dev, "write 0x%x to 0x%x FAILED\n", value, addr); in rf69_write_reg() 67 dev_dbg(&spi->dev, "wrote 0x%x to reg 0x%x\n", value, addr); in rf69_write_reg() 75 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit() argument 79 tmp = rf69_read_reg(spi, reg); in rf69_set_bit() [all …]
|
D | rf69.h | 20 int rf69_set_mode(struct spi_device *spi, enum mode mode); 21 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode); 22 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation); 23 int rf69_set_modulation_shaping(struct spi_device *spi, 25 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate); 26 int rf69_set_deviation(struct spi_device *spi, u32 deviation); 27 int rf69_set_frequency(struct spi_device *spi, u32 frequency); 28 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask); 29 int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask); 30 int rf69_set_output_power_level(struct spi_device *spi, u8 power_level); [all …]
|
/kernel/linux/linux-4.19/drivers/staging/pi433/ |
D | rf69.c | 37 static u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg() argument 41 retval = spi_w8r8(spi, addr); in rf69_read_reg() 50 dev_dbg(&spi->dev, "read 0x%x FAILED\n", addr); in rf69_read_reg() 52 dev_dbg(&spi->dev, "read 0x%x from reg 0x%x\n", retval, addr); in rf69_read_reg() 58 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg() argument 66 retval = spi_write(spi, &buffer, 2); in rf69_write_reg() 75 dev_dbg(&spi->dev, "write 0x%x to 0x%x FAILED\n", value, addr); in rf69_write_reg() 77 dev_dbg(&spi->dev, "wrote 0x%x to reg 0x%x\n", value, addr); in rf69_write_reg() 85 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit() argument 89 tmp = rf69_read_reg(spi, reg); in rf69_set_bit() [all …]
|
D | rf69.h | 30 int rf69_set_mode(struct spi_device *spi, enum mode mode); 31 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode); 32 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation); 33 int rf69_set_modulation_shaping(struct spi_device *spi, 35 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate); 36 int rf69_set_deviation(struct spi_device *spi, u32 deviation); 37 int rf69_set_frequency(struct spi_device *spi, u32 frequency); 38 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask); 39 int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask); 40 int rf69_set_output_power_level(struct spi_device *spi, u8 power_level); [all …]
|
/kernel/linux/linux-5.10/drivers/net/wan/ |
D | slic_ds26522.c | 37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument 49 spi_write(spi, &temp[0], SLIC_THREE_LEN); in slic_write() 52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument 61 spi_write_then_read(spi, &temp[0], SLIC_TWO_LEN, &data, in slic_read() 68 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code() argument 72 device_id = slic_read(spi, DS26522_IDR_ADDR); in get_slic_product_code() 79 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config() argument 82 slic_write(spi, DS26522_RMMR_ADDR, DS26522_RMMR_E1); in ds26522_e1_spec_config() 85 slic_write(spi, DS26522_TMMR_ADDR, DS26522_TMMR_E1); in ds26522_e1_spec_config() 88 slic_write(spi, DS26522_RMMR_ADDR, in ds26522_e1_spec_config() [all …]
|
/kernel/linux/linux-4.19/drivers/net/wan/ |
D | slic_ds26522.c | 43 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() argument 55 spi_write(spi, &temp[0], SLIC_THREE_LEN); in slic_write() 58 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() argument 67 spi_write_then_read(spi, &temp[0], SLIC_TWO_LEN, &data, in slic_read() 74 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code() argument 78 device_id = slic_read(spi, DS26522_IDR_ADDR); in get_slic_product_code() 85 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config() argument 88 slic_write(spi, DS26522_RMMR_ADDR, DS26522_RMMR_E1); in ds26522_e1_spec_config() 91 slic_write(spi, DS26522_TMMR_ADDR, DS26522_TMMR_E1); in ds26522_e1_spec_config() 94 slic_write(spi, DS26522_RMMR_ADDR, in ds26522_e1_spec_config() [all …]
|
/kernel/linux/linux-4.19/drivers/video/backlight/ |
D | ili922x.c | 141 struct spi_device *spi; member 151 static int ili922x_read_status(struct spi_device *spi, u16 *rs) in ili922x_read_status() argument 164 CHECK_FREQ_REG(spi, &xfer); in ili922x_read_status() 178 ret = spi_sync(spi, &msg); in ili922x_read_status() 180 dev_dbg(&spi->dev, "Error sending SPI message 0x%x", ret); in ili922x_read_status() 194 static int ili922x_read(struct spi_device *spi, u8 reg, u16 *rx) in ili922x_read() argument 208 CHECK_FREQ_REG(spi, &xfer_regindex); in ili922x_read() 229 CHECK_FREQ_REG(spi, &xfer_regvalue); in ili922x_read() 232 ret = spi_sync(spi, &msg); in ili922x_read() 234 dev_dbg(&spi->dev, "Error sending SPI message 0x%x", ret); in ili922x_read() [all …]
|
D | l4f00242t03.c | 29 struct spi_device *spi; member 49 static void l4f00242t03_lcd_init(struct spi_device *spi) in l4f00242t03_lcd_init() argument 51 struct l4f00242t03_pdata *pdata = dev_get_platdata(&spi->dev); in l4f00242t03_lcd_init() 52 struct l4f00242t03_priv *priv = spi_get_drvdata(spi); in l4f00242t03_lcd_init() 56 dev_dbg(&spi->dev, "initializing LCD\n"); in l4f00242t03_lcd_init() 60 dev_err(&spi->dev, "failed to set the IO regulator voltage.\n"); in l4f00242t03_lcd_init() 65 dev_err(&spi->dev, "failed to enable the IO regulator.\n"); in l4f00242t03_lcd_init() 71 dev_err(&spi->dev, "failed to set the core regulator voltage.\n"); in l4f00242t03_lcd_init() 77 dev_err(&spi->dev, "failed to enable the core regulator.\n"); in l4f00242t03_lcd_init() 86 spi_write(spi, (const u8 *)cmd, ARRAY_SIZE(cmd) * sizeof(u16)); in l4f00242t03_lcd_init() [all …]
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | ili922x.c | 139 struct spi_device *spi; member 149 static int ili922x_read_status(struct spi_device *spi, u16 *rs) in ili922x_read_status() argument 162 CHECK_FREQ_REG(spi, &xfer); in ili922x_read_status() 176 ret = spi_sync(spi, &msg); in ili922x_read_status() 178 dev_dbg(&spi->dev, "Error sending SPI message 0x%x", ret); in ili922x_read_status() 192 static int ili922x_read(struct spi_device *spi, u8 reg, u16 *rx) in ili922x_read() argument 206 CHECK_FREQ_REG(spi, &xfer_regindex); in ili922x_read() 227 CHECK_FREQ_REG(spi, &xfer_regvalue); in ili922x_read() 230 ret = spi_sync(spi, &msg); in ili922x_read() 232 dev_dbg(&spi->dev, "Error sending SPI message 0x%x", ret); in ili922x_read() [all …]
|
D | l4f00242t03.c | 24 struct spi_device *spi; member 46 static void l4f00242t03_lcd_init(struct spi_device *spi) in l4f00242t03_lcd_init() argument 48 struct l4f00242t03_priv *priv = spi_get_drvdata(spi); in l4f00242t03_lcd_init() 52 dev_dbg(&spi->dev, "initializing LCD\n"); in l4f00242t03_lcd_init() 56 dev_err(&spi->dev, "failed to set the IO regulator voltage.\n"); in l4f00242t03_lcd_init() 61 dev_err(&spi->dev, "failed to enable the IO regulator.\n"); in l4f00242t03_lcd_init() 67 dev_err(&spi->dev, "failed to set the core regulator voltage.\n"); in l4f00242t03_lcd_init() 73 dev_err(&spi->dev, "failed to enable the core regulator.\n"); in l4f00242t03_lcd_init() 82 spi_write(spi, (const u8 *)cmd, ARRAY_SIZE(cmd) * sizeof(u16)); in l4f00242t03_lcd_init() 85 static void l4f00242t03_lcd_powerdown(struct spi_device *spi) in l4f00242t03_lcd_powerdown() argument [all …]
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | spilib.c | 45 static struct spi_master *get_master_from_spi(struct gb_spilib *spi) in get_master_from_spi() argument 47 return gb_connection_get_data(spi->connection); in get_master_from_spi() 95 static void clean_xfer_state(struct gb_spilib *spi) in clean_xfer_state() argument 97 spi->first_xfer = NULL; in clean_xfer_state() 98 spi->last_xfer = NULL; in clean_xfer_state() 99 spi->rx_xfer_offset = 0; in clean_xfer_state() 100 spi->tx_xfer_offset = 0; in clean_xfer_state() 101 spi->last_xfer_size = 0; in clean_xfer_state() 102 spi->op_timeout = 0; in clean_xfer_state() 105 static bool is_last_xfer_done(struct gb_spilib *spi) in is_last_xfer_done() argument [all …]
|
/kernel/linux/linux-4.19/drivers/staging/greybus/ |
D | spilib.c | 45 static struct spi_master *get_master_from_spi(struct gb_spilib *spi) in get_master_from_spi() argument 47 return gb_connection_get_data(spi->connection); in get_master_from_spi() 95 static void clean_xfer_state(struct gb_spilib *spi) in clean_xfer_state() argument 97 spi->first_xfer = NULL; in clean_xfer_state() 98 spi->last_xfer = NULL; in clean_xfer_state() 99 spi->rx_xfer_offset = 0; in clean_xfer_state() 100 spi->tx_xfer_offset = 0; in clean_xfer_state() 101 spi->last_xfer_size = 0; in clean_xfer_state() 102 spi->op_timeout = 0; in clean_xfer_state() 105 static bool is_last_xfer_done(struct gb_spilib *spi) in is_last_xfer_done() argument [all …]
|
/kernel/linux/linux-4.19/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_spi.c | 78 irqreturn_t netup_spi_interrupt(struct netup_spi *spi) in netup_spi_interrupt() argument 83 if (!spi) in netup_spi_interrupt() 86 spin_lock_irqsave(&spi->lock, flags); in netup_spi_interrupt() 87 reg = readw(&spi->regs->control_stat); in netup_spi_interrupt() 89 spin_unlock_irqrestore(&spi->lock, flags); in netup_spi_interrupt() 90 dev_dbg(&spi->master->dev, in netup_spi_interrupt() 94 writew(reg | NETUP_SPI_CTRL_IRQ, &spi->regs->control_stat); in netup_spi_interrupt() 95 reg = readw(&spi->regs->control_stat); in netup_spi_interrupt() 96 writew(reg & ~NETUP_SPI_CTRL_IMASK, &spi->regs->control_stat); in netup_spi_interrupt() 97 spi->state = SPI_STATE_DONE; in netup_spi_interrupt() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_spi.c | 69 irqreturn_t netup_spi_interrupt(struct netup_spi *spi) in netup_spi_interrupt() argument 74 if (!spi) in netup_spi_interrupt() 77 spin_lock_irqsave(&spi->lock, flags); in netup_spi_interrupt() 78 reg = readw(&spi->regs->control_stat); in netup_spi_interrupt() 80 spin_unlock_irqrestore(&spi->lock, flags); in netup_spi_interrupt() 81 dev_dbg(&spi->master->dev, in netup_spi_interrupt() 85 writew(reg | NETUP_SPI_CTRL_IRQ, &spi->regs->control_stat); in netup_spi_interrupt() 86 reg = readw(&spi->regs->control_stat); in netup_spi_interrupt() 87 writew(reg & ~NETUP_SPI_CTRL_IMASK, &spi->regs->control_stat); in netup_spi_interrupt() 88 spi->state = SPI_STATE_DONE; in netup_spi_interrupt() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/spi/ |
D | mcp251x.c | 231 struct spi_device *spi; member 263 static inline int mcp251x_is_##_model(struct spi_device *spi) \ 265 struct mcp251x_priv *priv = spi_get_drvdata(spi); \ 296 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans() argument 298 struct mcp251x_priv *priv = spi_get_drvdata(spi); in mcp251x_spi_trans() 311 ret = spi_sync(spi, &m); in mcp251x_spi_trans() 313 dev_err(&spi->dev, "spi transfer failed: ret = %d\n", ret); in mcp251x_spi_trans() 317 static int mcp251x_spi_write(struct spi_device *spi, int len) in mcp251x_spi_write() argument 319 struct mcp251x_priv *priv = spi_get_drvdata(spi); in mcp251x_spi_write() 322 ret = spi_write(spi, priv->spi_tx_buf, len); in mcp251x_spi_write() [all …]
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_spi_device.c | 14 static int cxd2880_spi_device_write(struct cxd2880_spi *spi, in cxd2880_spi_device_write() argument 22 if (!spi || !spi->user || !data || size == 0) in cxd2880_spi_device_write() 25 spi_device = spi->user; in cxd2880_spi_device_write() 33 result = spi_sync(spi_device->spi, &msg); in cxd2880_spi_device_write() 41 static int cxd2880_spi_device_write_read(struct cxd2880_spi *spi, in cxd2880_spi_device_write_read() argument 50 if (!spi || !spi->user || !tx_data || in cxd2880_spi_device_write_read() 54 spi_device = spi->user; in cxd2880_spi_device_write_read() 56 result = spi_write_then_read(spi_device->spi, tx_data, in cxd2880_spi_device_write_read() 70 struct spi_device *spi = spi_device->spi; in cxd2880_spi_device_initialize() local 74 spi->mode = SPI_MODE_0; in cxd2880_spi_device_initialize() [all …]
|
/kernel/linux/linux-4.19/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_spi_device.c | 14 static int cxd2880_spi_device_write(struct cxd2880_spi *spi, in cxd2880_spi_device_write() argument 22 if (!spi || !spi->user || !data || size == 0) in cxd2880_spi_device_write() 25 spi_device = spi->user; in cxd2880_spi_device_write() 33 result = spi_sync(spi_device->spi, &msg); in cxd2880_spi_device_write() 41 static int cxd2880_spi_device_write_read(struct cxd2880_spi *spi, in cxd2880_spi_device_write_read() argument 50 if (!spi || !spi->user || !tx_data || in cxd2880_spi_device_write_read() 54 spi_device = spi->user; in cxd2880_spi_device_write_read() 56 result = spi_write_then_read(spi_device->spi, tx_data, in cxd2880_spi_device_write_read() 70 struct spi_device *spi = spi_device->spi; in cxd2880_spi_device_initialize() local 74 spi->mode = SPI_MODE_0; in cxd2880_spi_device_initialize() [all …]
|