/drivers/net/phy/ |
H A D | mdio-octeon.c | 60 int phy_id, int regnum) 69 smi_wr.s.dat = regnum & 0xffff; 72 regnum = (regnum >> 16) & 0x1f; 77 smi_cmd.s.reg_adr = regnum; 93 static int octeon_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) argument 101 if (regnum & MII_ADDR_C45) { 102 int r = octeon_mdiobus_c45_addr(p, phy_id, regnum); 106 regnum = (regnum >> 1 59 octeon_mdiobus_c45_addr(struct octeon_mdiobus *p, int phy_id, int regnum) argument 133 octeon_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) argument [all...] |
H A D | mdio-moxart.c | 37 static int moxart_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 46 ((regnum << 21) & REGAD_MASK); 66 int regnum, u16 value) 75 ((regnum << 21) & REGAD_MASK); 65 moxart_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value) argument
|
H A D | mdio-sun4i.c | 39 static int sun4i_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 46 writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG); 66 static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum, argument 73 writel((mii_id << 8) | regnum, data->membase + EMAC_MAC_MADR_REG);
|
H A D | bcm87xx.c | 61 u32 regnum = MII_ADDR_C45 | (devid << 16) | reg; local 64 val = phy_read(phydev, regnum); 73 ret = phy_write(phydev, regnum, val);
|
H A D | mdio-mux.c | 43 static int mdio_mux_read(struct mii_bus *bus, int phy_id, int regnum) argument 62 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); 73 int regnum, u16 val) 87 r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val); 72 mdio_mux_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) argument
|
H A D | micrel.c | 88 u32 regnum, u16 val) 90 phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum); 95 u32 regnum) 97 phy_write(phydev, MII_KSZPHY_EXTREG, regnum); 304 u8 mode, u32 dev_addr, u32 regnum, u16 val) 307 phy_write(phydev, MII_KSZ9031RN_MMD_REGDATA_REG, regnum); 313 u8 mode, u32 dev_addr, u32 regnum) 316 phy_write(phydev, MII_KSZ9031RN_MMD_REGDATA_REG, regnum); 435 int regnum) 445 int regnum, u3 87 kszphy_extended_write(struct phy_device *phydev, u32 regnum, u16 val) argument 94 kszphy_extended_read(struct phy_device *phydev, u32 regnum) argument 303 ksz9031_extended_write(struct phy_device *phydev, u8 mode, u32 dev_addr, u32 regnum, u16 val) argument 312 ksz9031_extended_read(struct phy_device *phydev, u8 mode, u32 dev_addr, u32 regnum) argument 434 ksz9021_rd_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum, int regnum) argument 444 ksz9021_wr_mmd_phyreg(struct phy_device *phydev, int ptrad, int devnum, int regnum, u32 val) argument [all...] |
H A D | broadcom.c | 33 static int bcm54xx_exp_read(struct phy_device *phydev, u16 regnum) argument 37 val = phy_write(phydev, MII_BCM54XX_EXP_SEL, regnum); 49 static int bcm54xx_exp_write(struct phy_device *phydev, u16 regnum, u16 val) argument 53 ret = phy_write(phydev, MII_BCM54XX_EXP_SEL, regnum); 65 static int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val) argument 67 return phy_write(phydev, MII_BCM54XX_AUX_CTL, regnum | val);
|
H A D | mdio_bus.c | 367 * @regnum: register number to read 373 int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) argument 380 retval = bus->read(bus, addr, regnum); 391 * @regnum: register number to write 392 * @val: value to write to @regnum 398 int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) argument 405 err = bus->write(bus, addr, regnum, val);
|
/drivers/net/dsa/ |
H A D | mv88e6xxx.h | 57 int mv88e6xxx_phy_read(struct dsa_switch *ds, int addr, int regnum); 58 int mv88e6xxx_phy_write(struct dsa_switch *ds, int addr, int regnum, u16 val); 60 int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum); 62 int regnum, u16 val);
|
H A D | mv88e6xxx.c | 189 int mv88e6xxx_phy_read(struct dsa_switch *ds, int addr, int regnum) argument 192 return mv88e6xxx_reg_read(ds, addr, regnum); 196 int mv88e6xxx_phy_write(struct dsa_switch *ds, int addr, int regnum, u16 val) argument 199 return mv88e6xxx_reg_write(ds, addr, regnum, val); 310 int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum) argument 316 ret = mv88e6xxx_reg_read(ds, addr, regnum); 324 int regnum, u16 val) 330 ret = mv88e6xxx_reg_write(ds, addr, regnum, val); 323 mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, int regnum, u16 val) argument
|
H A D | mv88e6060.c | 202 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) argument 210 return reg_read(ds, addr, regnum); 214 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) argument 222 return reg_write(ds, addr, regnum, val);
|
H A D | mv88e6123_61_65.c | 330 mv88e6123_61_65_phy_read(struct dsa_switch *ds, int port, int regnum) argument 333 return mv88e6xxx_phy_read(ds, addr, regnum); 338 int port, int regnum, u16 val) 341 return mv88e6xxx_phy_write(ds, addr, regnum, val); 337 mv88e6123_61_65_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) argument
|
H A D | mv88e6131.c | 318 mv88e6131_phy_read(struct dsa_switch *ds, int port, int regnum) argument 321 return mv88e6xxx_phy_read_ppu(ds, addr, regnum); 326 int port, int regnum, u16 val) 329 return mv88e6xxx_phy_write_ppu(ds, addr, regnum, val); 325 mv88e6131_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) argument
|
H A D | mv88e6171.c | 328 mv88e6171_phy_read(struct dsa_switch *ds, int port, int regnum) argument 332 return mv88e6xxx_phy_read(ds, addr, regnum); 337 int port, int regnum, u16 val) 341 return mv88e6xxx_phy_write(ds, addr, regnum, val); 336 mv88e6171_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) argument
|
/drivers/net/ethernet/freescale/ |
H A D | xgmac_mdio.c | 87 * Write value to the PHY for this device to the register at regnum,waiting 91 static int xgmac_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) argument 94 uint16_t dev_addr = regnum >> 16; 109 out_be32(®s->mdio_addr, regnum & 0xffff); 126 * Reads from register regnum in the PHY for device dev, returning the value. 130 static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) argument 133 uint16_t dev_addr = regnum >> 16; 150 out_be32(®s->mdio_addr, regnum & 0xffff); 167 phy_id, dev_addr, regnum);
|
H A D | fsl_pq_mdio.c | 94 * Write value to the PHY at mii_id at register regnum, on the bus attached 102 static int fsl_pq_mdio_write(struct mii_bus *bus, int mii_id, int regnum, argument 110 iowrite32be((mii_id << 8) | regnum, ®s->miimadd); 126 * Read the bus for PHY at addr mii_id, register regnum, and return the value. 135 static int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 143 iowrite32be((mii_id << 8) | regnum, ®s->miimadd); 163 dev_dbg(&bus->dev, "read %04x from address %x/%x\n", value, mii_id, regnum);
|
/drivers/net/usb/ |
H A D | net1080.c | 108 nc_vendor_read(struct usbnet *dev, u8 req, u8 regnum, u16 *retval_ptr) argument 113 0, regnum, retval_ptr, 123 nc_register_read(struct usbnet *dev, u8 regnum, u16 *retval_ptr) argument 125 return nc_vendor_read(dev, REQUEST_REGISTER, regnum, retval_ptr); 130 nc_vendor_write(struct usbnet *dev, u8 req, u8 regnum, u16 value) argument 134 value, regnum, NULL, 0); 138 nc_register_write(struct usbnet *dev, u8 regnum, u16 value) argument 140 nc_vendor_write(dev, REQUEST_REGISTER, regnum, value);
|
H A D | ax88172a.c | 41 static int asix_mdio_bus_read(struct mii_bus *bus, int phy_id, int regnum) argument 44 regnum); 47 static int asix_mdio_bus_write(struct mii_bus *bus, int phy_id, int regnum, argument 50 asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val);
|
/drivers/net/ethernet/marvell/ |
H A D | mvmdio.c | 113 int regnum) 126 (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | 148 int regnum, u16 value) 160 (regnum << MVMDIO_SMI_PHY_REG_SHIFT) | 112 orion_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 147 orion_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 value) argument
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_eeprom.c | 1029 static int ipath_tempsense_internal_read(struct ipath_devdata *dd, u8 regnum) argument 1052 ret = wr_byte(dd, regnum); 1056 regnum); 1081 * @regnum: register to read from 1085 int ipath_tempsense_read(struct ipath_devdata *dd, u8 regnum) argument 1089 if (regnum > 7) 1093 if (!((1 << regnum) & VALID_TS_RD_REG_MASK)) 1098 ret = ipath_tempsense_internal_read(dd, regnum); 1112 u8 regnum, u8 data) 1132 ret = wr_byte(dd, regnum); 1111 ipath_tempsense_internal_write(struct ipath_devdata *dd, u8 regnum, u8 data) argument 1163 ipath_tempsense_write(struct ipath_devdata *dd, u8 regnum, u8 data) argument [all...] |
/drivers/staging/netlogic/ |
H A D | xlr_net.c | 648 static int xlr_phy_write(u32 *base_addr, int phy_addr, int regnum, u16 val) argument 658 xlr_nae_wreg(base_addr, R_MII_MGMT_ADDRESS, (phy_addr << 8) | regnum); 678 static int xlr_phy_read(u32 *base_addr, int phy_addr, int regnum) argument 690 (phy_addr << 8) | (regnum << 0)); 715 static int xlr_mii_write(struct mii_bus *bus, int phy_addr, int regnum, u16 val) argument 720 ret = xlr_phy_write(priv->mii_addr, phy_addr, regnum, val); 722 phy_addr, regnum, val, ret); 726 static int xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) argument 731 ret = xlr_phy_read(priv->mii_addr, phy_addr, regnum); 733 phy_addr, regnum, re [all...] |
/drivers/mfd/ |
H A D | menelaus.c | 879 static int time_to_menelaus(struct rtc_time *t, int regnum) argument 883 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_sec)); 887 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_min)); 899 status = menelaus_write_reg(regnum++, hour); 903 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mday)); 907 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_mon + 1)); 911 status = menelaus_write_reg(regnum++, bin2bcd(t->tm_year - 100)); 918 --regnum, status);
|
/drivers/net/ethernet/ |
H A D | dnet.c | 102 static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 113 regnum &= 0x1f; 117 value |= regnum; 129 pr_debug("mdio_read %02x:%02x <- %04x\n", mii_id, regnum, value); 134 static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, argument 140 pr_debug("mdio_write %02x:%02x <- %04x\n", mii_id, regnum, value); 151 regnum &= 0x1f; 158 tmp |= regnum;
|
/drivers/video/fbdev/core/ |
H A D | svgalib.c | 27 while (regset->regnum != VGA_REGSET_END_VAL) { 28 regval = vga_rcrt(regbase, regset->regnum); 37 vga_wcrt(regbase, regset->regnum, regval); 47 while (regset->regnum != VGA_REGSET_END_VAL) { 48 regval = vga_rseq(regbase, regset->regnum); 57 vga_wseq(regbase, regset->regnum, regval); 66 while (regset->regnum != VGA_REGSET_END_VAL) {
|
/drivers/video/fbdev/ |
H A D | cirrusfb.c | 383 int regnum, unsigned char val); 384 static unsigned char RGen(const struct cirrusfb_info *cinfo, int regnum); 389 static void WClut(struct cirrusfb_info *cinfo, unsigned char regnum, 392 static void RClut(struct cirrusfb_info *cinfo, unsigned char regnum, 2409 int regnum, unsigned char val) 2415 /* if (regnum == VGA_PEL_IR || regnum == VGA_PEL_D || 2416 regnum == CL_VSSM2) */ 2417 if (regnum == VGA_PEL_IR || regnum 2408 WGen(const struct cirrusfb_info *cinfo, int regnum, unsigned char val) argument 2425 RGen(const struct cirrusfb_info *cinfo, int regnum) argument 2529 WClut(struct cirrusfb_info *cinfo, unsigned char regnum, unsigned char red, unsigned char green, unsigned char blue) argument [all...] |