Lines Matching refs:ccc
681 struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_set() argument
687 if (ccc->id & I3C_CCC_DIRECT) { in dw_i3c_ccc_set()
688 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_set()
698 cmd->tx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_set()
699 cmd->tx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_set()
701 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_set()
706 COMMAND_PORT_CMD(ccc->id) | in dw_i3c_ccc_set()
716 ccc->err = I3C_ERROR_M2; in dw_i3c_ccc_set()
723 static int dw_i3c_ccc_get(struct dw_i3c_master *master, struct i3c_ccc_cmd *ccc) in dw_i3c_ccc_get() argument
729 pos = dw_i3c_master_get_addr_pos(master, ccc->dests[0].addr); in dw_i3c_ccc_get()
738 cmd->rx_buf = ccc->dests[0].payload.data; in dw_i3c_ccc_get()
739 cmd->rx_len = ccc->dests[0].payload.len; in dw_i3c_ccc_get()
741 cmd->cmd_hi = COMMAND_PORT_ARG_DATA_LEN(ccc->dests[0].payload.len) | in dw_i3c_ccc_get()
747 COMMAND_PORT_CMD(ccc->id) | in dw_i3c_ccc_get()
757 ccc->err = I3C_ERROR_M2; in dw_i3c_ccc_get()
764 struct i3c_ccc_cmd *ccc) in dw_i3c_master_send_ccc_cmd() argument
769 if (ccc->id == I3C_CCC_ENTDAA) in dw_i3c_master_send_ccc_cmd()
772 if (ccc->rnw) in dw_i3c_master_send_ccc_cmd()
773 ret = dw_i3c_ccc_get(master, ccc); in dw_i3c_master_send_ccc_cmd()
775 ret = dw_i3c_ccc_set(master, ccc); in dw_i3c_master_send_ccc_cmd()