Lines Matching refs:mask

1597  *  @input_mask: mask for the input bitstream
1655 * @input_mask: mask to be bit swapped
1659 * generate a correctly swapped value we need to bit swap the mask and that
1664 u32 mask = IXGBE_NTOHS(input_mask->formatted.dst_port);
1665 mask <<= IXGBE_FDIRTCPM_DPORTM_SHIFT;
1666 mask |= IXGBE_NTOHS(input_mask->formatted.src_port);
1667 mask = ((mask & 0x55555555) << 1) | ((mask & 0xAAAAAAAA) >> 1);
1668 mask = ((mask & 0x33333333) << 2) | ((mask & 0xCCCCCCCC) >> 2);
1669 mask = ((mask & 0x0F0F0F0F) << 4) | ((mask & 0xF0F0F0F0) >> 4);
1670 return ((mask & 0x00FF00FF) << 8) | ((mask & 0xFF00FF00) >> 8);
1693 /* mask IPv6 since it is currently not supported */
1700 * Program the relevant mask registers. If src/dst_port or src/dst_addr
1701 * are zero, then assume a full mask for that field. Also assume that
1702 * a VLAN of 0 is unspecified, so mask that out as well. L4type
1711 DEBUGOUT(" bucket hash should always be 0 in mask\n");
1720 DEBUGOUT(" Error on vm pool mask\n");
1729 DEBUGOUT(" Error on src/dst port mask\n");
1735 DEBUGOUT(" Error on flow type mask\n");
1741 /* mask VLAN ID, fall through to mask VLAN priority */
1744 /* mask VLAN priority */
1748 /* mask VLAN ID only, fall through */
1754 DEBUGOUT(" Error on VLAN mask\n");
1765 DEBUGOUT(" Error on flexible byte mask\n");
1781 DEBUGOUT(" Error on inner_mac byte mask\n");
1796 DEBUGOUT(" Error on TNI/VNI byte mask\n");
1807 DEBUGOUT(" Error on tunnel type byte mask\n");
1822 /* Now mask VM pool and destination IPv6 - bits 5 and 2 */
1830 /* write both the same so that UDP and TCP use the same mask */
1981 * @input_mask: mask for the input bitstream
2028 /* program input mask into the HW */
2033 /* apply mask and compute/store hash */