input_mask
if (lp3943_gpio->input_mask & BIT(offset))
lp3943_gpio->input_mask &= ~BIT(offset);
u16 input_mask; /* 1 = GPIO is input direction, 0 = output */
lp3943_gpio->input_mask |= BIT(offset);
struct input_mask mask;
if (!cp->input_mask) continue;
tmsk &= cp->input_mask;
cp->input_mask = 0;
if (cmsk == cp->input_mask) {
cp->input_mask = 0;
if (!p2->input_mask) continue;
tmsk &= p2->input_mask;
cp->input_mask = cmsk;
return cp->input_mask;
unsigned int input_mask;
if (!(input_mask & (1UL << idx))) continue;
unsigned int input_mask = 0;
input_mask = (1 << PVR2_CVAL_INPUT_RADIO);
input_mask = ((1 << PVR2_CVAL_INPUT_RADIO) |
ret = pvr2_channel_limit_inputs(&fhp->channel,input_mask);
input_mask &= pvr2_hdw_get_input_available(hdw);
for (idx = 0; idx < (sizeof(input_mask) << 3); idx++) {
if (input_mask & (1UL << idx)) input_cnt++;
for (idx = 0; idx < (sizeof(input_mask) << 3); idx++) {
union ixgbe_atr_input *input_mask);
union ixgbe_atr_input *input_mask)
input->dword_stream[i] &= input_mask->dword_stream[i];
static u32 ixgbe_get_fdirtcpm_82599(union ixgbe_atr_input *input_mask)
u32 mask = ntohs(input_mask->formatted.dst_port);
mask |= ntohs(input_mask->formatted.src_port);
union ixgbe_atr_input *input_mask)
if (input_mask->formatted.bkt_hash)
switch (input_mask->formatted.vm_pool & 0x7F) {
switch (input_mask->formatted.flow_type & IXGBE_ATR_L4TYPE_MASK) {
if (input_mask->formatted.dst_port ||
input_mask->formatted.src_port) {
switch (ntohs(input_mask->formatted.vlan_id) & 0xEFFF) {
switch ((__force u16)input_mask->formatted.flex_bytes & 0xFFFF) {
fdirtcpm = ixgbe_get_fdirtcpm_82599(input_mask);
~input_mask->formatted.src_ip[0]);
~input_mask->formatted.dst_ip[0]);
union txgbe_atr_input *input_mask)
input->dword_stream[i] &= input_mask->dword_stream[i];
int txgbe_fdir_set_input_mask(struct wx *wx, union txgbe_atr_input *input_mask)
if (input_mask->formatted.bkt_hash)
switch (input_mask->formatted.vm_pool & 0x7F) {
switch (input_mask->formatted.flow_type & TXGBE_ATR_L4TYPE_MASK) {
if (input_mask->formatted.dst_port ||
input_mask->formatted.src_port) {
switch ((__force u16)input_mask->formatted.flex_bytes & 0xFFFF) {
fdirtcpm = ntohs(input_mask->formatted.dst_port);
fdirtcpm |= ntohs(input_mask->formatted.src_port);
ntohl(~input_mask->formatted.src_ip[0]));
ntohl(~input_mask->formatted.dst_ip[0]));
int txgbe_fdir_set_input_mask(struct wx *wx, union txgbe_atr_input *input_mask);
union txgbe_atr_input *input_mask);
#define EVIOCGMASK _IOR('E', 0x92, struct input_mask) /* Get event-masks */
#define EVIOCSMASK _IOW('E', 0x93, struct input_mask) /* Set event-masks */