Lines Matching defs:val
2592 * @val: Buffer to store the read data.
2596 static void hw_r_phy(struct ksz_hw *hw, int port, u16 reg, u16 *val)
2601 *val = readw(hw->io + phy);
2609 * @val: Word data to write.
2613 static void hw_w_phy(struct ksz_hw *hw, int port, u16 reg, u16 val)
2618 writew(val, hw->io + phy);
3192 u8 val = 0;
3206 if ((val & 1))
3208 val >>= 1;
3212 val = mask[len];
3213 writeb(val, hw->io + KS8841_WOL_FRAME_BYTE0_OFFSET + i
3216 if (val)
3222 if (val) {
3224 val <<= (from % 8);
3225 bits &= ~val;
5522 * @val: The register value.
5526 static void mdio_write(struct net_device *dev, int phy_id, int reg_num, int val)
5535 hw_w_phy(hw, pi, reg_num << 1, val);