Lines Matching refs:cmd

319 int mci_read(int mci_idx, uint32_t cmd, uint32_t *value)  in mci_read()  argument
323 mci_mmio_write_32(MCI_ACCESS_CMD_REG(mci_idx), cmd); in mci_read()
332 int mci_write(int mci_idx, uint32_t cmd, uint32_t data) in mci_write() argument
335 mci_mmio_write_32(MCI_ACCESS_CMD_REG(mci_idx), cmd); in mci_write()
732 uint32_t cmd, data; in mci_get_link_status() local
734 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_CTRL_STATUS_REG_NUM) | in mci_get_link_status()
736 if (mci_read(0, cmd, &data)) { in mci_get_link_status()
752 uint32_t cmd, data; in mci_turn_link_down() local
758 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_CTRL_MCI_PHY_SETTINGS_REG_NUM) | in mci_turn_link_down()
762 rval = mci_write(0, cmd, data); in mci_turn_link_down()
767 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_PHY_CTRL_REG_NUM) | in mci_turn_link_down()
773 rval = mci_write(0, cmd, data); in mci_turn_link_down()
778 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_LINK_CRC_CTRL_REG_NUM) | in mci_turn_link_down()
781 mci_write(0, cmd, data); in mci_turn_link_down()
782 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_CTRL_STATUS_REG_NUM) | in mci_turn_link_down()
785 rval = mci_write(0, cmd, data); in mci_turn_link_down()
793 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_PHY_CTRL_REG_NUM) | in mci_turn_link_down()
797 rval = mci_write(0, cmd, data); in mci_turn_link_down()
806 uint32_t cmd, data; in mci_turn_link_on() local
811 cmd = (MCI_INDIRECT_REG_CTRL_ADDR(MCI_CTRL_MCI_PHY_SETTINGS_REG_NUM) | in mci_turn_link_on()
815 rval = mci_write(0, cmd, data); in mci_turn_link_on()