Lines Matching full:ccc
715 struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_set() argument
721 if (ccc->id & I3C_CCC_DIRECT) { in dw_i3c_ccc_set()
722 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_set()
732 cmd->tx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_set()
733 cmd->tx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_set()
735 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_set()
740 COMMAND_PORT_CMD(ccc->id) | in dw_i3c_ccc_set()
750 ccc->err = I3C_ERROR_M2; in dw_i3c_ccc_set()
757 static int dw_i3c_ccc_get(struct dw_i3c_master *master, struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_get() argument
763 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_get()
772 cmd->rx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_get()
773 cmd->rx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_get()
775 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_get()
781 COMMAND_PORT_CMD(ccc->id) | in dw_i3c_ccc_get()
791 ccc->err = I3C_ERROR_M2; in dw_i3c_ccc_get()
798 struct i3c_ccc_cmd *ccc) in dw_i3c_master_send_ccc_cmd() argument
803 if (ccc->id == I3C_CCC_ENTDAA) in dw_i3c_master_send_ccc_cmd()
814 if (ccc->rnw) in dw_i3c_master_send_ccc_cmd()
815 ret = dw_i3c_ccc_get(master, ccc); in dw_i3c_master_send_ccc_cmd()
817 ret = dw_i3c_ccc_set(master, ccc); in dw_i3c_master_send_ccc_cmd()