Searched refs:spi_tx_buf (Results 1 – 2 of 2) sorted by relevance
/drivers/net/can/spi/ |
D | mcp251x.c | 236 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 …]
|
D | hi311x.c | 152 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() 904 priv->spi_tx_buf = devm_kzalloc(&spi->dev, HI3110_RX_BUF_LEN, in hi3110_can_probe() [all …]
|