Lines Matching refs:state
124 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
129 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
140 int32_t state, rc;
145 state = atomic_read(&nq->state);
146 if (state != NSS_QDISC_STATE_READY) {
148 __func__, sch, nq->type, state);
153 * Set shaper node state to IDLE
155 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
174 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
178 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
182 if (state == NSS_QDISC_STATE_FAILED_RESPONSE) {
185 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
191 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
207 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
212 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
223 int32_t state, rc;
228 state = atomic_read(&nq->state);
229 if (state != NSS_QDISC_STATE_READY) {
231 __func__, sch, nq->type, state);
236 * Set shaper node state to IDLE
238 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
253 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
259 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
433 * Now set our final state
435 atomic_set(&nq->state, nq->pending_final_state);
564 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
705 * Now set our final state
707 atomic_set(&nq->state, nq->pending_final_state);
798 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1105 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
1110 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1119 int32_t state, rc;
1137 state = atomic_read(&nq->state);
1138 if (state != NSS_QDISC_STATE_READY) {
1139 nss_qdisc_warning("%s: Qdisc %p (type %d): qdisc state not ready: %d\n", __func__,
1140 nq->qdisc, nq->type, state);
1145 * Set shaper node state to IDLE
1147 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
1163 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1168 * Wait until cleanup operation is complete at which point the state
1172 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1176 if (state == NSS_QDISC_STATE_FAILED_RESPONSE) {
1178 "State: %d\n", __func__, nq->qdisc, nq->type, state);
1179 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1208 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
1215 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1225 int32_t state, rc;
1231 state = atomic_read(&nq->state);
1232 if (state != NSS_QDISC_STATE_READY) {
1233 nss_qdisc_warning("%s: Qdisc %p (type %d): not ready, state: %d\n",
1234 __func__, nq->qdisc, nq->type, state);
1239 * Set shaper node state to IDLE
1241 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
1256 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1261 * Wait until cleanup operation is complete at which point the state
1265 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1269 if (state == NSS_QDISC_STATE_FAILED_RESPONSE) {
1271 "node, State: %d\n", __func__, nq->qdisc, nq->type, state);
1272 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1298 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
1305 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1315 int32_t state, rc, msg_type;
1320 state = atomic_read(&nq->state);
1321 if (state != NSS_QDISC_STATE_READY) {
1322 nss_qdisc_warning("%s: Qdisc %p (type %d): not ready, state: %d\n",
1323 __func__, nq->qdisc, nq->type, state);
1328 * Set shaper node state to IDLE
1330 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
1345 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1350 * Wait until cleanup operation is complete at which point the state shall become idle.
1354 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1358 if (state == NSS_QDISC_STATE_FAILED_RESPONSE) {
1360 "State: %d\n", __func__, nq->qdisc, nq->type, state);
1361 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1387 atomic_set(&nq->state, NSS_QDISC_STATE_FAILED_RESPONSE);
1393 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1403 int32_t state, rc;
1408 state = atomic_read(&nq->state);
1409 if (state != NSS_QDISC_STATE_READY) {
1411 "state : %d\n", __func__, nq->qdisc, nq->type, state);
1416 * Set shaper node state to IDLE
1418 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
1433 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1438 * Wait until cleanup operation is complete at which point the state
1442 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1446 if (state == NSS_QDISC_STATE_FAILED_RESPONSE) {
1448 "node: State: %d\n", __func__, nq->qdisc, nq->type, state);
1449 atomic_set(&nq->state, NSS_QDISC_STATE_READY);
1465 int32_t state;
1472 state = atomic_read(&nq->state);
1473 if (state != NSS_QDISC_STATE_READY) {
1475 "state: %d\n", __func__, nq->qdisc, nq->type, state);
1505 * Wait until cleanup operation is complete at which point the state
1509 while (NSS_QDISC_STATE_IDLE != (state = atomic_read(&nq->state))) {
1541 int32_t state;
1566 * Set shaper node state to IDLE
1568 atomic_set(&nq->state, NSS_QDISC_STATE_IDLE);
1640 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1663 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1704 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1707 nss_qdisc_info("%s: Qdisc %p (type %d): initialised with state: %d\n",
1708 __func__, nq->qdisc, nq->type, state);
1711 * If state is positive, return success
1713 if (state > 0) {
1746 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1777 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1795 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1820 atomic_set(&nq->state, NSS_QDISC_STATE_INIT_FAILED);
1854 while (NSS_QDISC_STATE_IDLE == (state = atomic_read(&nq->state))) {
1857 nss_qdisc_info("%s: Qdisc %p (type %d): is initialised with state: %d\n",
1858 __func__, nq->qdisc, nq->type, state);
1860 if (state > 0) {