Lines Matching refs:buf_tx
23 struct tcan4x5x_map_buf *buf_tx = &priv->map_buf_tx; in tcan4x5x_regmap_gather_write() local
26 .tx_buf = buf_tx, in tcan4x5x_regmap_gather_write()
27 .len = sizeof(buf_tx->cmd) + val_len, in tcan4x5x_regmap_gather_write()
31 memcpy(&buf_tx->cmd, reg, sizeof(buf_tx->cmd.cmd) + in tcan4x5x_regmap_gather_write()
32 sizeof(buf_tx->cmd.addr)); in tcan4x5x_regmap_gather_write()
33 tcan4x5x_spi_cmd_set_len(&buf_tx->cmd, val_len); in tcan4x5x_regmap_gather_write()
34 memcpy(buf_tx->data, val, val_len); in tcan4x5x_regmap_gather_write()
53 struct tcan4x5x_map_buf *buf_tx = &priv->map_buf_tx; in tcan4x5x_regmap_read() local
56 .tx_buf = buf_tx, in tcan4x5x_regmap_read()
65 memcpy(&buf_tx->cmd, reg_buf, sizeof(buf_tx->cmd.cmd) + in tcan4x5x_regmap_read()
66 sizeof(buf_tx->cmd.addr)); in tcan4x5x_regmap_read()
67 tcan4x5x_spi_cmd_set_len(&buf_tx->cmd, val_len); in tcan4x5x_regmap_read()
70 xfer[0].len = sizeof(buf_tx->cmd); in tcan4x5x_regmap_read()
77 xfer[0].len = sizeof(buf_tx->cmd) + val_len; in tcan4x5x_regmap_read()
80 memset(buf_tx->data, 0x0, val_len); in tcan4x5x_regmap_read()