Lines Matching refs:cmds
548 struct cdns_i3c_cmd cmds[I3C_MAX_MSGS]; member
1264 if (xfer->cmds[i].hdr == I3C_DATA_RATE_SDR) { in cdns_i3c_start_transfer()
1265 if (!(xfer->cmds[i].cmd0 & CMD0_FIFO_RNW)) { in cdns_i3c_start_transfer()
1266 cdns_i3c_write_tx_fifo(config, xfer->cmds[i].buf, in cdns_i3c_start_transfer()
1267 xfer->cmds[i].len); in cdns_i3c_start_transfer()
1269 } else if (xfer->cmds[i].hdr == I3C_DATA_RATE_HDR_DDR) { in cdns_i3c_start_transfer()
1271 cdns_i3c_write_tx_fifo(config, &xfer->cmds[i].ddr_header, in cdns_i3c_start_transfer()
1274 if (!(DDR_DATA(xfer->cmds[i].ddr_header) & HDR_CMD_RD)) { in cdns_i3c_start_transfer()
1275 uint8_t *buf = (uint8_t *)xfer->cmds[i].buf; in cdns_i3c_start_transfer()
1283 for (int j = 2; j < ((xfer->cmds[i].len - 2) * 2); j += 2) { in cdns_i3c_start_transfer()
1291 cdns_i3c_write_tx_fifo(config, &xfer->cmds[i].ddr_crc, in cdns_i3c_start_transfer()
1303 xfer->cmds[i].cmd1 |= CMD1_FIFO_CMDID(i); in cdns_i3c_start_transfer()
1304 sys_write32(xfer->cmds[i].cmd1, config->base + CMD1_FIFO); in cdns_i3c_start_transfer()
1305 sys_write32(xfer->cmds[i].cmd0, config->base + CMD0_FIFO); in cdns_i3c_start_transfer()
1307 if (xfer->cmds[i].hdr == I3C_DATA_RATE_HDR_DDR) { in cdns_i3c_start_transfer()
1309 if ((DDR_DATA(xfer->cmds[i].ddr_header) & HDR_CMD_RD)) { in cdns_i3c_start_transfer()
1313 sys_write32(CMD0_FIFO_IS_DDR | CMD0_FIFO_PL_LEN(xfer->cmds[i].len), in cdns_i3c_start_transfer()
1399 cmd = &data->xfer.cmds[i]; in cdns_i3c_do_ccc()
1447 cmd = &data->xfer.cmds[0]; in cdns_i3c_do_ccc()
1719 cmd = &data->xfer.cmds[id]; in cdns_i3c_complete_transfer()
1741 switch (data->xfer.cmds[i].error) { in cdns_i3c_complete_transfer()
1758 if ((was_full) && (data->xfer.cmds[i].len > *data->xfer.cmds[i].num_xfer)) { in cdns_i3c_complete_transfer()
1768 uint8_t ccc = data->xfer.cmds[i].cmd1 & 0xFF; in cdns_i3c_complete_transfer()
1784 if ((*data->xfer.cmds[i].num_xfer != in cdns_i3c_complete_transfer()
1786 (*data->xfer.cmds[i].num_xfer != in cdns_i3c_complete_transfer()
1792 if (*data->xfer.cmds[i].num_xfer > sizeof(union i3c_ccc_getcaps)) { in cdns_i3c_complete_transfer()
1889 struct cdns_i3c_cmd *cmd = &data->xfer.cmds[i]; in cdns_i3c_i2c_transfer()
2196 struct cdns_i3c_cmd *cmd = &data->xfer.cmds[i]; in cdns_i3c_transfer()
2776 data->hw_cfg.cmd_mem_depth = MIN(data->hw_cfg.cmd_mem_depth, ARRAY_SIZE(data->xfer.cmds)); in cdns_i3c_read_hw_cfg()