Lines Matching refs:cmd
626 _cdns_xfer_msg(struct sdw_cdns *cdns, struct sdw_msg *msg, int cmd, in _cdns_xfer_msg() argument
644 data |= FIELD_PREP(CDNS_MCP_CMD_COMMAND, cmd); in _cdns_xfer_msg()
664 cmd, msg->dev_num, msg->addr, msg->len); in _cdns_xfer_msg()
741 static int cdns_prep_msg(struct sdw_cdns *cdns, struct sdw_msg *msg, int *cmd) in cdns_prep_msg() argument
755 *cmd = CDNS_MCP_CMD_READ; in cdns_prep_msg()
759 *cmd = CDNS_MCP_CMD_WRITE; in cdns_prep_msg()
774 int cmd = 0, ret, i; in cdns_xfer_msg() local
776 ret = cdns_prep_msg(cdns, msg, &cmd); in cdns_xfer_msg()
781 ret = _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN, in cdns_xfer_msg()
790 return _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN, in cdns_xfer_msg()
801 int cmd = 0, ret; in cdns_xfer_msg_defer() local
807 ret = cdns_prep_msg(cdns, msg, &cmd); in cdns_xfer_msg_defer()
811 return _cdns_xfer_msg(cdns, msg, cmd, 0, msg->len, true); in cdns_xfer_msg_defer()