Home
last modified time | relevance | path

Searched refs:spi_tx_buf (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/can/spi/
H A Dmcp251x.c235 u8 *spi_tx_buf; member
300 .tx_buf = priv->spi_tx_buf, in mcp251x_spi_trans()
322 ret = spi_write(spi, priv->spi_tx_buf, len); in mcp251x_spi_write()
334 priv->spi_tx_buf[0] = INSTRUCTION_READ; in mcp251x_read_reg()
335 priv->spi_tx_buf[1] = reg; in mcp251x_read_reg()
338 spi_write_then_read(spi, priv->spi_tx_buf, 2, &val, 1); in mcp251x_read_reg()
351 priv->spi_tx_buf[0] = INSTRUCTION_READ; in mcp251x_read_2regs()
352 priv->spi_tx_buf[1] = reg; in mcp251x_read_2regs()
357 spi_write_then_read(spi, priv->spi_tx_buf, 2, val, 2); in mcp251x_read_2regs()
372 priv->spi_tx_buf[0] = INSTRUCTION_WRITE; in mcp251x_write_reg()
[all …]
H A Dhi311x.c151 u8 *spi_tx_buf; member
203 .tx_buf = priv->spi_tx_buf, in hi3110_spi_trans()
225 priv->spi_tx_buf[0] = command; in hi3110_cmd()
236 priv->spi_tx_buf[0] = command; in hi3110_read()
247 priv->spi_tx_buf[0] = reg; in hi3110_write()
248 priv->spi_tx_buf[1] = val; in hi3110_write()
256 priv->spi_tx_buf[0] = HI3110_WRITE_FIFO; in hi3110_hw_tx_frame()
257 memcpy(priv->spi_tx_buf + 1, buf, len); in hi3110_hw_tx_frame()
308 priv->spi_tx_buf[0] = HI3110_READ_FIFO_WOTIME; in hi3110_hw_rx_frame()
913 priv->spi_tx_buf = devm_kzalloc(&spi->dev, HI3110_RX_BUF_LEN, in hi3110_can_probe()
[all …]
/linux/sound/soc/codecs/
H A Dpeb2466.c43 u8 spi_tx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */
137 .tx_buf = &peb2466->spi_tx_buf, in peb2466_write_byte()
141 peb2466->spi_tx_buf[0] = cmd | PEB2466_CMD_W; in peb2466_write_byte()
142 peb2466->spi_tx_buf[1] = val; in peb2466_write_byte()
145 peb2466->spi_tx_buf[0], peb2466->spi_tx_buf[1]); in peb2466_write_byte()
153 .tx_buf = &peb2466->spi_tx_buf, in peb2466_read_byte()
159 peb2466->spi_tx_buf[0] = cmd | PEB2466_CMD_R; in peb2466_read_byte()
168 peb2466->spi_tx_buf[0], peb2466->spi_rx_buf[1]); in peb2466_read_byte()
175 peb2466->spi_tx_buf[ in peb2466_read_byte()
42 u8 spi_tx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ global() member
[all...]
H A Didt821034.c29 u8 spi_tx_buf; /* Cannot use stack area for SPI (dma-safe memory) */
56 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write()
60 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write()
65 idt821034->spi_tx_buf = val; in idt821034_8bit_write()
86 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read()
91 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read()
97 idt821034->spi_tx_buf = valw; in idt821034_8bit_read()
28 u8 spi_tx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ global() member
/linux/drivers/iio/dac/
H A Dad8460.c88 __le16 spi_tx_buf __aligned(IIO_DMA_MINALIGN);
158 &state->spi_tx_buf, AD8460_DATA_BYTE_WORD_LENGTH); in ad8460_get_hvdac_word()
162 *val = le16_to_cpu(state->spi_tx_buf); in ad8460_get_hvdac_word()
169 state->spi_tx_buf = cpu_to_le16(FIELD_PREP(AD8460_DATA_BYTE_FULL_MSK, val)); in ad8460_set_hvdac_word()
172 &state->spi_tx_buf, AD8460_DATA_BYTE_WORD_LENGTH); in ad8460_set_hvdac_word()