Searched refs:spi_tx_buf (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/net/can/spi/ |
H A D | mcp251x.c | 235 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 D | hi311x.c | 152 u8 *spi_tx_buf; member 204 .tx_buf = priv->spi_tx_buf, in hi3110_spi_trans() 226 priv->spi_tx_buf[0] = command; in hi3110_cmd() 237 priv->spi_tx_buf[0] = command; in hi3110_read() 248 priv->spi_tx_buf[0] = reg; in hi3110_write() 249 priv->spi_tx_buf[1] = val; in hi3110_write() 257 priv->spi_tx_buf[0] = HI3110_WRITE_FIFO; in hi3110_hw_tx_frame() 258 memcpy(priv->spi_tx_buf + 1, buf, len); in hi3110_hw_tx_frame() 309 priv->spi_tx_buf[0] = HI3110_READ_FIFO_WOTIME; in hi3110_hw_rx_frame() 903 priv->spi_tx_buf = devm_kzalloc(&spi->dev, HI3110_RX_BUF_LEN, in hi3110_can_probe() [all …]
|
/linux/sound/soc/codecs/ |
H A D | peb2466.c | 43 u8 spi_tx_buf[2 + 8]; /* Cannot use stack area for SPI (dma-safe memory) */ member 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[0], *val); in peb2466_read_byte() 183 .tx_buf = &peb2466->spi_tx_buf, in peb2466_write_buf() [all …]
|
H A D | idt821034.c | 28 u8 spi_tx_buf; /* Cannot use stack area for SPI (dma-safe memory) */ member 55 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 59 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_write() 64 idt821034->spi_tx_buf = val; in idt821034_8bit_write() 85 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read() 90 .tx_buf = &idt821034->spi_tx_buf, in idt821034_8bit_read() 96 idt821034->spi_tx_buf = valw; in idt821034_8bit_read()
|