Lines Matching refs:test_bit
120 if (!dev || !test_bit(CNIC_F_CNIC_UP, &dev->flags)) { in cnic_uio_open()
280 return test_bit(SK_F_INUSE, &csk->flags); in cnic_in_use()
331 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_send_nlmsg()
392 test_bit(SK_F_CONNECT_START, &csk->flags)) { in cnic_iscsi_nl_msg_recv()
397 if (test_bit(SK_F_IPV6, &csk->flags)) in cnic_iscsi_nl_msg_recv()
406 } else if (!test_bit(SK_F_OFFLD_SCHED, &csk->flags) && in cnic_iscsi_nl_msg_recv()
407 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags)) { in cnic_iscsi_nl_msg_recv()
427 if (!test_bit(SK_F_CONNECT_START, &csk->flags)) { in cnic_offld_prep()
588 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_register_device()
631 while (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type]) && in cnic_unregister_device()
636 if (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type])) in cnic_unregister_device()
674 if (!test_bit(id, id_tbl->table)) { in cnic_alloc_id()
1096 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_init_uio()
1107 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_init_uio()
1338 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2_kwqes()
1343 !test_bit(CNIC_LCL_FL_KWQ_INIT, &cp->cnic_local_flags)) { in cnic_submit_bnx2_kwqes()
1897 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) { in cnic_bnx2x_iscsi_ofld1()
1973 if (unlikely(test_bit(CTX_FL_CID_ERROR, &ctx->ctx_flags))) in cnic_bnx2x_destroy_ramrod()
1991 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_iscsi_destroy()
2363 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_fcoe_ofld1()
2537 while (test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2541 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2546 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2652 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_iscsi_kwqes()
2726 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_fcoe_kwqes()
2789 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_kwqes()
2913 if (!test_bit(CNIC_F_BNX2X_CLASS, &cp->dev->flags)) in cnic_l2_completion()
2943 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_chk_pkt_rings()
2949 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_chk_pkt_rings()
2995 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) { in cnic_service_bnx2()
3019 if (likely(test_bit(CNIC_F_CNIC_UP, &dev->flags))) { in cnic_doirq()
3136 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) in cnic_service_bnx2x_bh()
3286 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_ctl()
3487 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_cm_conn_req()
3585 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_cm_create()
3630 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) { in cnic_close_conn()
3873 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_abort()
3892 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_close()
3926 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_set_pg()
4054 if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags) && in cnic_cm_process_kcqe()
4055 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags) && in cnic_cm_process_kcqe()
4176 if (test_bit(SK_F_HW_ERR, &csk->flags)) in cnic_close_bnx2x_conn()
4178 else if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_close_bnx2x_conn()
4278 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags) || in cnic_delete_task()
4279 !test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) in cnic_delete_task()
5159 if (test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_init_rings()
5162 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_init_rings()
5166 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_init_rings()
5208 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && in cnic_init_rings()
5212 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_init_rings()
5229 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_shutdown_rings()
5232 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_shutdown_rings()
5234 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_shutdown_rings()
5249 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && in cnic_shutdown_rings()
5253 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_shutdown_rings()
5311 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_start_hw()
5397 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) { in cnic_stop_hw()