Lines Matching defs:val
2963 * @val: Buffer to store the read data.
2967 static void hw_r_phy(struct ksz_hw *hw, int port, u16 reg, u16 *val)
2972 *val = readw(hw->io + phy);
2980 * @val: Word data to write.
2984 static void hw_w_phy(struct ksz_hw *hw, int port, u16 reg, u16 val)
2989 writew(val, hw->io + phy);
3565 u8 val = 0;
3579 if ((val & 1))
3581 val >>= 1;
3585 val = mask[len];
3586 writeb(val, hw->io + KS8841_WOL_FRAME_BYTE0_OFFSET + i
3589 if (val)
3595 if (val) {
3597 val <<= (from % 8);
3598 bits &= ~val;
5897 * @val: The register value.
5901 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val)
5910 hw_w_phy(hw, pi, reg_num << 1, val);