/u-boot/include/ |
A D | phy.h | 224 int regnum) in phy_mmd_start_indirect() argument 246 int regnum) in phy_read_mmd() argument 250 if (regnum > (u16)~0 || devad > 32) in phy_read_mmd() 255 return drv->read_mmd(phydev, devad, regnum); in phy_read_mmd() 260 return phy_read(phydev, devad, regnum); in phy_read_mmd() 279 int regnum, u16 val) in phy_write_mmd() argument 283 if (regnum > (u16)~0 || devad > 32) in phy_write_mmd() 312 u32 regnum, u16 val) in phy_set_bits_mmd() argument 316 value = phy_read_mmd(phydev, devad, regnum); in phy_set_bits_mmd() 339 u32 regnum, u16 val) in phy_clear_bits_mmd() argument [all …]
|
A D | fsl_mdio.h | 48 int dev_addr, int regnum); 49 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum); 50 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum, 53 int regnum, u16 value); 55 int regnum);
|
A D | micrel.h | 41 int ksz9021_phy_extended_write(struct phy_device *phydev, int regnum, u16 val); 42 int ksz9021_phy_extended_read(struct phy_device *phydev, int regnum); 45 int regnum, u16 mode, u16 val); 47 int regnum, u16 mode);
|
/u-boot/arch/arm/mach-nexell/ |
A D | reset.c | 25 u32 regnum, bitpos, curstat; in nx_rstcon_setrst() local 27 regnum = rstindex >> 5; in nx_rstcon_setrst() 28 curstat = (u32)readl(&nx_rstcon->regrst[regnum]); in nx_rstcon_setrst() 32 writel(curstat, &nx_rstcon->regrst[regnum]); in nx_rstcon_setrst()
|
/u-boot/arch/arm/include/asm/ |
A D | opcodes-virt.h | 21 #define __MSR_ELR_HYP(regnum) __inst_arm_thumb32( \ argument 22 0xE12EF300 | regnum, \ 23 0xF3808E30 | (regnum << 16) \
|
/u-boot/drivers/net/phy/ |
A D | micrel_ksz90x1.c | 238 MII_KSZ9021_EXTENDED_CTRL, regnum | 0x8000); in ksz9021_phy_extended_write() 252 int regnum) in ksz9021_phy_extread() argument 254 return ksz9021_phy_extended_read(phydev, regnum); in ksz9021_phy_extread() 258 int devaddr, int regnum, u16 val) in ksz9021_phy_extwrite() argument 260 return ksz9021_phy_extended_write(phydev, regnum, val); in ksz9021_phy_extwrite() 307 int devaddr, int regnum, u16 mode, u16 val) in ksz9031_phy_extended_write() argument 314 MII_KSZ9031_MMD_REG_DATA, regnum); in ksz9031_phy_extended_write() 324 int regnum, u16 mode) in ksz9031_phy_extended_read() argument 329 MII_KSZ9031_MMD_REG_DATA, regnum); in ksz9031_phy_extended_read() 336 int regnum) in ksz9031_phy_extread() argument [all …]
|
A D | xilinx_gmii2rgmii.c | 31 int devaddr, int regnum) in xilinxgmiitorgmii_extread() argument 37 ext_phydev->drv->readext(ext_phydev, addr, devaddr, regnum); in xilinxgmiitorgmii_extread() 43 int devaddr, int regnum, u16 val) in xilinxgmiitorgmii_extwrite() argument 50 ext_phydev->drv->writeext(ext_phydev, addr, devaddr, regnum, in xilinxgmiitorgmii_extwrite()
|
A D | realtek.c | 74 int devaddr, int regnum) in rtl8211f_phy_extread() argument 81 val = phy_read(phydev, MDIO_DEVAD_NONE, regnum); in rtl8211f_phy_extread() 88 int devaddr, int regnum, u16 val) in rtl8211f_phy_extwrite() argument 94 phy_write(phydev, MDIO_DEVAD_NONE, regnum, val); in rtl8211f_phy_extwrite()
|
/u-boot/drivers/net/ |
A D | fsl_mdio.c | 23 int dev_addr, int regnum, int value) in tsec_local_mdio_write() argument 27 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_write() 37 int dev_addr, int regnum) in tsec_local_mdio_read() argument 43 out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f)); in tsec_local_mdio_read() 94 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum) in tsec_phy_read() argument 109 return tsec_local_mdio_read(phyregs, addr, dev_addr, regnum); in tsec_phy_read() 112 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum, in tsec_phy_write() argument 128 tsec_local_mdio_write(phyregs, addr, dev_addr, regnum, value); in tsec_phy_write()
|
A D | zynq_gem.c | 218 static int phy_setup_op(struct zynq_gem_priv *priv, u32 phy_addr, u32 regnum, in phy_setup_op() argument 233 (regnum << ZYNQ_GEM_PHYMNTNC_PHREG_SHIFT_MASK) | *data; in phy_setup_op() 250 u32 regnum, u16 *val) in phyread() argument 254 ret = phy_setup_op(priv, phy_addr, regnum, in phyread() 259 phy_addr, regnum, *val); in phyread() 265 u32 regnum, u16 data) in phywrite() argument 268 regnum, data); in phywrite() 270 return phy_setup_op(priv, phy_addr, regnum, in phywrite()
|
/u-boot/drivers/net/fm/ |
A D | tgec_phy.c | 20 int regnum, u16 value) in tgec_mdio_write() argument 40 out_be32(®s->mdio_addr, regnum & 0xffff); in tgec_mdio_write() 62 int regnum) in tgec_mdio_read() argument 82 out_be32(®s->mdio_addr, regnum & 0xffff); in tgec_mdio_read()
|
A D | memac_phy.c | 84 int regnum, u16 value) in memac_mdio_write() argument 101 regs, port_addr, dev_addr, regnum, value); in memac_mdio_write() 106 dev_addr = regnum & 0x1f; in memac_mdio_write() 121 memac_out_32(®s->mdio_addr, regnum & 0xffff); in memac_mdio_write() 143 int regnum) in memac_mdio_read() argument 167 dev_addr = regnum & 0x1f; in memac_mdio_read() 182 memac_out_32(®s->mdio_addr, regnum & 0xffff); in memac_mdio_read()
|
A D | init.c | 350 unsigned int regnum = 0; in set_sgmii_phy() local 355 qsgmii = is_qsgmii_riser_card(bus, phy_base_addr, port_num, regnum); in set_sgmii_phy() 370 unsigned int port_num, unsigned regnum) in is_qsgmii_riser_card() argument 379 val = bus->read(bus, i, MDIO_DEVAD_NONE, regnum); in is_qsgmii_riser_card()
|
/u-boot/drivers/net/octeontx/ |
A D | smi.c | 114 int octeontx_c45_addr(struct mii_dev *bus, int addr, int devad, int regnum) in octeontx_c45_addr() argument 123 smix_wr_dat.s.dat = regnum; in octeontx_c45_addr() 143 int octeontx_phy_read(struct mii_dev *bus, int addr, int devad, int regnum) in octeontx_phy_read() argument 154 mode, priv->baseaddr, addr, devad, regnum); in octeontx_phy_read() 159 ret = octeontx_c45_addr(bus, addr, devad, regnum); in octeontx_phy_read() 174 smix_cmd.s.reg_adr = regnum; in octeontx_phy_read() 191 int octeontx_phy_write(struct mii_dev *bus, int addr, int devad, int regnum, in octeontx_phy_write() argument 203 mode, priv->baseaddr, addr, devad, regnum); in octeontx_phy_write() 206 ret = octeontx_c45_addr(bus, addr, devad, regnum); in octeontx_phy_write() 226 smix_cmd.s.reg_adr = regnum; in octeontx_phy_write()
|
/u-boot/drivers/ram/k3-j721e/ |
A D | lpddr4.c | 483 uint32_t regnum; in lpddr4_writectlconfig() local 489 for (regnum = 0; regnum < LPDDR4_CTL_REG_COUNT; regnum++) { in lpddr4_writectlconfig() 507 uint32_t regnum; in lpddr4_writephyindepconfig() local 513 for (regnum = 0; regnum < LPDDR4_PHY_INDEP_REG_COUNT; regnum++) { in lpddr4_writephyindepconfig() 518 regnum, in lpddr4_writephyindepconfig() 532 uint32_t regnum; in lpddr4_writephyconfig() local 538 for (regnum = 0; regnum < LPDDR4_PHY_REG_COUNT; regnum++) { in lpddr4_writephyconfig() 560 for (regnum = 0; regnum < LPDDR4_CTL_REG_COUNT; regnum++) { in lpddr4_readctlconfig() 583 for (regnum = 0; regnum < LPDDR4_PHY_INDEP_REG_COUNT; regnum++) { in lpddr4_readphyindepconfig() 588 regnum, in lpddr4_readphyindepconfig() [all …]
|
/u-boot/board/freescale/ls1021aqds/ |
A D | eth.c | 70 int regnum) in ls1021a_mdio_read() argument 76 return priv->realbus->read(priv->realbus, addr, devad, regnum); in ls1021a_mdio_read() 80 int regnum, u16 value) in ls1021a_mdio_write() argument 86 return priv->realbus->write(priv->realbus, addr, devad, regnum, value); in ls1021a_mdio_write()
|
/u-boot/board/gdsys/common/ |
A D | ihs_mdio.c | 116 int regnum) in ihs_mdio_read() argument 124 ((addr & 0x1f) << 5) | (regnum & 0x1f) | (2 << 10)); in ihs_mdio_read() 135 int regnum, u16 value) in ihs_mdio_write() argument 142 write_control(info, ((addr & 0x1f) << 5) | (regnum & 0x1f) | (1 << 10)); in ihs_mdio_write()
|
/u-boot/drivers/qe/ |
A D | uec_phy.c | 124 static u16 uec_phy_read(struct uec_mii_info *mii_info, u16 regnum); 125 static void uec_phy_write(struct uec_mii_info *mii_info, u16 regnum, 133 void uec_write_phy_reg(struct eth_device *dev, int mii_id, int regnum, in uec_write_phy_reg() argument 138 enum enet_tbi_mii_reg mii_reg = (enum enet_tbi_mii_reg)regnum; in uec_write_phy_reg() 147 (void)bb_miiphy_write(NULL, mii_id, regnum, value); in uec_write_phy_reg() 175 int uec_read_phy_reg(struct eth_device *dev, int mii_id, int regnum) in uec_read_phy_reg() argument 179 enum enet_tbi_mii_reg mii_reg = (enum enet_tbi_mii_reg)regnum; in uec_read_phy_reg() 189 (void)bb_miiphy_read(NULL, mii_id, regnum, &value); in uec_read_phy_reg() 824 static u16 uec_phy_read(struct uec_mii_info *mii_info, u16 regnum) in uec_phy_read() argument 826 return mii_info->mdio_read(mii_info->dev, mii_info->mii_id, regnum); in uec_phy_read() [all …]
|
A D | uec_phy.h | 206 void uec_write_phy_reg(struct eth_device *dev, int mii_id, int regnum, 208 int uec_read_phy_reg(struct eth_device *dev, int mii_id, int regnum);
|
/u-boot/board/freescale/ls1012aqds/ |
A D | eth.c | 65 int regnum) in ls1012aqds_mdio_read() argument 71 return priv->realbus->read(priv->realbus, addr, devad, regnum); in ls1012aqds_mdio_read() 75 int regnum, u16 value) in ls1012aqds_mdio_write() argument 81 return priv->realbus->write(priv->realbus, addr, devad, regnum, value); in ls1012aqds_mdio_write()
|
/u-boot/board/freescale/corenet_ds/ |
A D | eth_hydra.c | 118 int regnum) in hydra_mdio_read() argument 124 return priv->realbus->read(priv->realbus, addr, devad, regnum); in hydra_mdio_read() 128 int regnum, u16 value) in hydra_mdio_write() argument 134 return priv->realbus->write(priv->realbus, addr, devad, regnum, value); in hydra_mdio_write()
|
A D | eth_p4080.c | 161 int regnum) in p4080ds_mdio_read() argument 167 return priv->realbus->read(priv->realbus, addr, devad, regnum); in p4080ds_mdio_read() 171 int regnum, u16 value) in p4080ds_mdio_write() argument 177 return priv->realbus->write(priv->realbus, addr, devad, regnum, value); in p4080ds_mdio_write()
|
/u-boot/drivers/video/ |
A D | ssd2828.c | 155 static u32 read_hw_register(const struct ssd2828_config *cfg, u8 regnum) in read_hw_register() argument 157 soft_spi_xfer_24bit_3wire(cfg, 0x700000 | regnum); in read_hw_register() 164 static void write_hw_register(const struct ssd2828_config *cfg, u8 regnum, in write_hw_register() argument 167 soft_spi_xfer_24bit_3wire(cfg, 0x700000 | regnum); in write_hw_register()
|
/u-boot/board/freescale/ls1046aqds/ |
A D | eth.c | 92 int regnum) in ls1046aqds_mdio_read() argument 98 return priv->realbus->read(priv->realbus, addr, devad, regnum); in ls1046aqds_mdio_read() 102 int regnum, u16 value) in ls1046aqds_mdio_write() argument 109 regnum, value); in ls1046aqds_mdio_write()
|
/u-boot/include/power/ |
A D | s5m8767.h | 69 enum s5m8767_regnum regnum; member
|