Lines Matching refs:buf_rx
88 struct mcp251xfd_map_buf_nocrc *buf_rx = priv->map_buf_nocrc_rx; in mcp251xfd_regmap_nocrc_update_bits() local
94 BUILD_BUG_ON(sizeof(buf_rx->cmd) != sizeof(__be16)); in mcp251xfd_regmap_nocrc_update_bits()
116 xfer[1].rx_buf = buf_rx->data; in mcp251xfd_regmap_nocrc_update_bits()
121 xfer[0].rx_buf = buf_rx; in mcp251xfd_regmap_nocrc_update_bits()
133 memcpy(&orig_le32, buf_rx->data, len); in mcp251xfd_regmap_nocrc_update_bits()
155 struct mcp251xfd_map_buf_nocrc *buf_rx = priv->map_buf_nocrc_rx; in mcp251xfd_regmap_nocrc_read() local
161 BUILD_BUG_ON(sizeof(buf_rx->cmd) != sizeof(__be16)); in mcp251xfd_regmap_nocrc_read()
180 xfer[0].rx_buf = buf_rx; in mcp251xfd_regmap_nocrc_read()
193 memcpy(val_buf, buf_rx->data, val_len); in mcp251xfd_regmap_nocrc_read()
246 mcp251xfd_regmap_crc_read_check_crc(const struct mcp251xfd_map_buf_crc * const buf_rx, in mcp251xfd_regmap_crc_read_check_crc() argument
252 crc_received = get_unaligned_be16(buf_rx->data + data_len); in mcp251xfd_regmap_crc_read_check_crc()
255 buf_rx->data, in mcp251xfd_regmap_crc_read_check_crc()
267 const struct mcp251xfd_map_buf_crc *buf_rx = priv->map_buf_crc_rx; in mcp251xfd_regmap_crc_read_one() local
271 BUILD_BUG_ON(sizeof(buf_rx->cmd) != sizeof(__be16) + sizeof(u8)); in mcp251xfd_regmap_crc_read_one()
278 return mcp251xfd_regmap_crc_read_check_crc(buf_rx, buf_tx, data_len); in mcp251xfd_regmap_crc_read_one()
288 struct mcp251xfd_map_buf_crc *buf_rx = priv->map_buf_crc_rx; in mcp251xfd_regmap_crc_read() local
295 BUILD_BUG_ON(sizeof(buf_rx->cmd) != sizeof(__be16) + sizeof(u8)); in mcp251xfd_regmap_crc_read()
310 xfer[1].rx_buf = buf_rx->data; in mcp251xfd_regmap_crc_read()
315 xfer[0].rx_buf = buf_rx; in mcp251xfd_regmap_crc_read()
350 ((buf_rx->data[0] & 0xf8) == 0x0 || in mcp251xfd_regmap_crc_read()
351 (buf_rx->data[0] & 0xf8) == 0x80)) { in mcp251xfd_regmap_crc_read()
353 buf_rx->data[0] ^= 0x80; in mcp251xfd_regmap_crc_read()
356 err = mcp251xfd_regmap_crc_read_check_crc(buf_rx, in mcp251xfd_regmap_crc_read()
388 reg, val_len, (int)val_len, buf_rx->data, in mcp251xfd_regmap_crc_read()
389 get_unaligned_be16(buf_rx->data + val_len)); in mcp251xfd_regmap_crc_read()
395 reg, val_len, (int)val_len, buf_rx->data, in mcp251xfd_regmap_crc_read()
396 get_unaligned_be16(buf_rx->data + val_len)); in mcp251xfd_regmap_crc_read()
401 memcpy(val_buf, buf_rx->data, val_len); in mcp251xfd_regmap_crc_read()