Lines Matching defs:bits

1534  * @bit:	The interrupt bits to be on.
1925 * port_chk - check port register bits
1929 * @bits: The data bits to check.
1931 * This function checks whether the specified bits of the port register are set
1934 * Return 0 if the bits are not set.
1936 static int port_chk(struct ksz_hw *hw, int port, int offset, u16 bits)
1944 return (data & bits) == bits;
1948 * port_cfg - set port register bits
1952 * @bits: The data bits to set.
1953 * @set: The flag indicating whether the bits are to be set or not.
1955 * This routine sets or resets the specified bits of the port register.
1957 static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits,
1967 data |= bits;
1969 data &= ~bits;
1978 * @shift: Number of bits to shift.
2000 * @shift: Number of bits to shift.
2009 u16 bits = 1 << port;
2012 bits <<= shift;
2014 data |= bits;
2016 data &= ~bits;
2075 * sw_chk - check switch register bits
2078 * @bits: The data bits to check.
2080 * This function checks whether the specified bits of the switch register are
2083 * Return 0 if the bits are not set.
2085 static int sw_chk(struct ksz_hw *hw, u32 addr, u16 bits)
2090 return (data & bits) == bits;
2094 * sw_cfg - set switch register bits
2097 * @bits: The data bits to set.
2098 * @set: The flag indicating whether the bits are to be set or not.
2100 * This function sets or resets the specified bits of the switch register.
2102 static void sw_cfg(struct ksz_hw *hw, u32 addr, u16 bits, int set)
2108 data |= bits;
2110 data &= ~bits;
3559 int bits;
3576 bits = len = from = to = 0;
3578 if (bits) {
3583 --bits;
3590 bits = 8;
3596 bits = mask[len - 1];
3598 bits &= ~val;
3599 writeb(bits, hw->io + KS8841_WOL_FRAME_BYTE0_OFFSET + i + len -