Lines Matching defs:state
354 * changes the state of the NAPI_STATE_SCHED bit. This means
361 unsigned long state;
475 return test_bit(NAPI_STATE_DISABLE, &n->state);
480 return test_bit(NAPI_STATE_PREFER_BUSY_POLL, &n->state);
561 while (test_bit(NAPI_STATE_SCHED, &n->state))
579 val = READ_ONCE(n->state);
588 } while (!try_cmpxchg(&n->state, &val, new));
615 * of the XOFF bits are set in the state). Drivers should not need to call
656 unsigned long state;
967 /* These structures hold the attributes of bpf state that are being passed
1074 * state.
1078 * state.
1274 * the device state.
1322 * userspace components to manage their virtual carrier state. Devices
1323 * that determine carrier state from physical hardware properties (eg
1366 * This function is used to set or query state related to XDP on the
1802 * @state: Generic network queuing layer state, see netdev_state_t
1966 * @reg_state: Register/unregister state machine
2021 * @proto_down: protocol port state information can be sent to the
2022 * switch driver and used to set the phys state of the
2037 * @udp_tunnel_nic: UDP tunnel offload state
2080 * Some hardware also needs these fields (state,dev_list,
2085 unsigned long state;
2654 set_bit(NAPI_STATE_NO_BUSY_POLL, &napi->state);
2864 NETDEV_CHANGE, /* Notify device state change */
2943 void *lower_state_info; /* is lower dev state */
3316 clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state);
3367 set_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state);
3386 return test_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state);
3402 return dev_queue->state & QUEUE_STATE_ANY_XOFF;
3408 return dev_queue->state & QUEUE_STATE_ANY_XOFF_OR_FROZEN;
3414 return dev_queue->state & QUEUE_STATE_DRV_XOFF_OR_FROZEN;
3482 set_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state);
3493 clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state);
3568 if (test_and_clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state))
3592 clear_bit(__QUEUE_STATE_STACK_XOFF, &q->state);
3637 return test_bit(__LINK_STATE_START, &dev->state);
4164 * called netif_lowerlayer_*() because they represent the state of any
4177 return !test_bit(__LINK_STATE_NOCARRIER, &dev->state);
4194 * The dormant state indicates that the relevant interface is not
4196 * in a "pending" state, waiting for some external event. For "on-
4197 * demand" interfaces, this new state identifies the situation where the
4198 * interface is waiting for events to place it in the up state.
4202 if (!test_and_set_bit(__LINK_STATE_DORMANT, &dev->state))
4210 * Device is not in dormant state.
4214 if (test_and_clear_bit(__LINK_STATE_DORMANT, &dev->state))
4226 return test_bit(__LINK_STATE_DORMANT, &dev->state);
4236 * The testing state indicates that some test(s) must be performed on
4237 * the interface. After completion, of the test, the interface state
4242 if (!test_and_set_bit(__LINK_STATE_TESTING, &dev->state))
4250 * Device is not in testing state.
4254 if (test_and_clear_bit(__LINK_STATE_TESTING, &dev->state))
4266 return test_bit(__LINK_STATE_TESTING, &dev->state);
4290 return test_bit(__LINK_STATE_PRESENT, &dev->state);