Lines Matching refs:smi_cmd
214 uint64_t smi_cmd, smi_wr_dat; in thunder_mdio_c45_addr() local
224 smi_cmd = 0; in thunder_mdio_c45_addr()
226 smi_cmd |= SMI_CMD_PHY_OP_C45_WRITE; in thunder_mdio_c45_addr()
229 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); in thunder_mdio_c45_addr()
231 smi_cmd |= ((reg << SMI_CMD_PHY_REG_ADR_SHIFT) & in thunder_mdio_c45_addr()
234 mdio_reg_write(sc, SMI_CMD, smi_cmd); in thunder_mdio_c45_addr()
255 uint64_t smi_cmd, smi_rd_dat; in thunder_mdio_read() local
267 smi_cmd = 0; in thunder_mdio_read()
270 smi_cmd |= SMI_CMD_PHY_OP_C22_READ; in thunder_mdio_read()
272 smi_cmd |= SMI_CMD_PHY_OP_C45_READ; in thunder_mdio_read()
281 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); in thunder_mdio_read()
283 smi_cmd |= ((reg << SMI_CMD_PHY_REG_ADR_SHIFT) & in thunder_mdio_read()
286 mdio_reg_write(sc, SMI_CMD, smi_cmd); in thunder_mdio_read()
307 uint64_t smi_cmd, smi_wr_dat; in thunder_mdio_write() local
320 smi_cmd = 0; in thunder_mdio_write()
323 smi_cmd |= SMI_CMD_PHY_OP_C22_WRITE; in thunder_mdio_write()
325 smi_cmd |= SMI_CMD_PHY_OP_C45_WRITE; in thunder_mdio_write()
328 smi_cmd |= ((phy << SMI_CMD_PHY_ADR_SHIFT) & SMI_CMD_PHY_ADR_MASK); in thunder_mdio_write()
330 smi_cmd |= ((reg << SMI_CMD_PHY_REG_ADR_SHIFT) & in thunder_mdio_write()
333 mdio_reg_write(sc, SMI_CMD, smi_cmd); in thunder_mdio_write()