/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-regmap.c | 30 struct mcp251xfd_map_buf_nocrc *buf_tx = priv->map_buf_nocrc_tx; in mcp251xfd_regmap_nocrc_gather_write() local 33 .tx_buf = buf_tx, in mcp251xfd_regmap_nocrc_gather_write() 34 .len = sizeof(buf_tx->cmd) + val_len, in mcp251xfd_regmap_nocrc_gather_write() 38 BUILD_BUG_ON(sizeof(buf_tx->cmd) != sizeof(__be16)); in mcp251xfd_regmap_nocrc_gather_write() 41 reg_len != sizeof(buf_tx->cmd.cmd)) in mcp251xfd_regmap_nocrc_gather_write() 44 memcpy(&buf_tx->cmd, reg, sizeof(buf_tx->cmd)); in mcp251xfd_regmap_nocrc_gather_write() 45 memcpy(buf_tx->data, val, val_len); in mcp251xfd_regmap_nocrc_gather_write() 89 struct mcp251xfd_map_buf_nocrc *buf_tx = priv->map_buf_nocrc_tx; in mcp251xfd_regmap_nocrc_update_bits() local 95 BUILD_BUG_ON(sizeof(buf_tx->cmd) != sizeof(__be16)); in mcp251xfd_regmap_nocrc_update_bits() 113 xfer[0].tx_buf = buf_tx; in mcp251xfd_regmap_nocrc_update_bits() [all …]
|
H A D | mcp251xfd-core.c | 1794 struct mcp251xfd_map_buf_nocrc *buf_tx; in mcp251xfd_register_get_dev_id() local 1802 buf_tx = kzalloc(sizeof(*buf_tx), GFP_KERNEL); in mcp251xfd_register_get_dev_id() 1803 if (!buf_tx) { in mcp251xfd_register_get_dev_id() 1808 xfer[0].tx_buf = buf_tx; in mcp251xfd_register_get_dev_id() 1809 xfer[0].len = sizeof(buf_tx->cmd); in mcp251xfd_register_get_dev_id() 1815 mcp251xfd_spi_cmd_read_nocrc(&buf_tx->cmd, MCP251XFD_REG_DEVID); in mcp251xfd_register_get_dev_id() 1826 kfree(buf_tx); in mcp251xfd_register_get_dev_id()
|
/openbmc/linux/drivers/net/can/m_can/ |
H A D | tcan4x5x-regmap.c | 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() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | xlnx-canfd-test.c | 168 static void generate_random_data(uint32_t *buf_tx, bool is_canfd_frame) in generate_random_data() argument 173 buf_tx[2 + i] = g_random_int(); in generate_random_data() 178 buf_tx[2 + i] = g_random_int(); in generate_random_data() 220 const uint32_t *buf_tx, bool is_canfd_frame) in write_data() argument 223 qtest_writel(qts, can_base_addr + R_TXID_OFFSET, buf_tx[0]); in write_data() 224 qtest_writel(qts, can_base_addr + R_TXDLC_OFFSET, buf_tx[1]); in write_data() 229 buf_tx[2 + i]); in write_data() 232 qtest_writel(qts, can_base_addr + R_TXDATA1_OFFSET, buf_tx[2]); in write_data() 233 qtest_writel(qts, can_base_addr + R_TXDATA2_OFFSET, buf_tx[3]); in write_data() 253 static void match_rx_tx_data(const uint32_t *buf_tx, const uint32_t *buf_rx, in match_rx_tx_data() argument [all …]
|
H A D | xlnx-can-test.c | 72 static void match_rx_tx_data(const uint32_t *buf_tx, const uint32_t *buf_rx, in match_rx_tx_data() argument 80 g_assert_cmpint(buf_rx[size], ==, buf_tx[size] + can_timestamp); in match_rx_tx_data() 82 g_assert_cmpint(buf_rx[size], ==, buf_tx[size]); in match_rx_tx_data() 109 const uint32_t *buf_tx) in send_data() argument 114 qtest_writel(qts, can_base_addr + R_TXID_OFFSET, buf_tx[0]); in send_data() 115 qtest_writel(qts, can_base_addr + R_TXDLC_OFFSET, buf_tx[1]); in send_data() 116 qtest_writel(qts, can_base_addr + R_TXDATA1_OFFSET, buf_tx[2]); in send_data() 117 qtest_writel(qts, can_base_addr + R_TXDATA2_OFFSET, buf_tx[3]); in send_data() 135 const uint32_t buf_tx[4] = { 0xFF, 0x80000000, 0x12345678, 0x87654321 }; in test_can_bus() local 159 send_data(qts, CAN0_BASE_ADDR, buf_tx); in test_can_bus() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ar5523/ |
H A D | ar5523.h | 63 void *buf_tx; member
|
H A D | ar5523.c | 259 hdr = (struct ar5523_cmd_hdr *)cmd->buf_tx; in ar5523_cmd() 277 cmd->buf_tx, xferlen, ar5523_cmd_tx_cb, cmd); in ar5523_cmd() 947 usb_free_coherent(ar->dev, AR5523_MAX_RXCMDSZ, cmd->buf_tx, in ar5523_free_tx_cmd() 962 cmd->buf_tx = usb_alloc_coherent(ar->dev, AR5523_MAX_TXCMDSZ, in ar5523_alloc_tx_cmd() 965 if (!cmd->buf_tx) { in ar5523_alloc_tx_cmd()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-npcm-fiu.c | 321 const u8 *buf_tx = buf; in npcm_fiu_direct_write() local 326 iowrite8(*(buf_tx + i), dst + i); in npcm_fiu_direct_write() 328 memcpy_toio(dst, buf_tx, len); in npcm_fiu_direct_write()
|