Lines Matching refs:test_bit

120 	if (!dev || !test_bit(CNIC_F_CNIC_UP, &dev->flags)) {  in cnic_uio_open()
287 return test_bit(SK_F_INUSE, &csk->flags); in cnic_in_use()
339 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_send_nlmsg()
400 test_bit(SK_F_CONNECT_START, &csk->flags)) { in cnic_iscsi_nl_msg_recv()
405 if (test_bit(SK_F_IPV6, &csk->flags)) in cnic_iscsi_nl_msg_recv()
414 } else if (!test_bit(SK_F_OFFLD_SCHED, &csk->flags) && in cnic_iscsi_nl_msg_recv()
415 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags)) { in cnic_iscsi_nl_msg_recv()
435 if (!test_bit(SK_F_CONNECT_START, &csk->flags)) { in cnic_offld_prep()
596 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_register_device()
639 while (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type]) && in cnic_unregister_device()
644 if (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type])) in cnic_unregister_device()
647 if (test_bit(ULP_F_INIT, &cp->ulp_flags[ulp_type])) in cnic_unregister_device()
685 if (!test_bit(id, id_tbl->table)) { in cnic_alloc_id()
1107 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_init_uio()
1118 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_init_uio()
1349 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2_kwqes()
1354 !test_bit(CNIC_LCL_FL_KWQ_INIT, &cp->cnic_local_flags)) { in cnic_submit_bnx2_kwqes()
1908 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) { in cnic_bnx2x_iscsi_ofld1()
1984 if (unlikely(test_bit(CTX_FL_CID_ERROR, &ctx->ctx_flags))) in cnic_bnx2x_destroy_ramrod()
2002 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_iscsi_destroy()
2374 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_fcoe_ofld1()
2548 while (test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2552 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2557 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_bnx2x_delete_wait()
2663 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_iscsi_kwqes()
2737 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_fcoe_kwqes()
2800 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_submit_bnx2x_kwqes()
2924 if (!test_bit(CNIC_F_BNX2X_CLASS, &cp->dev->flags)) in cnic_l2_completion()
2954 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_chk_pkt_rings()
2960 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_chk_pkt_rings()
3006 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) { in cnic_service_bnx2()
3030 if (likely(test_bit(CNIC_F_CNIC_UP, &dev->flags))) { in cnic_doirq()
3147 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) in cnic_service_bnx2x_bh()
3297 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_ctl()
3498 if (test_bit(SK_F_IPV6, &csk->flags)) { in cnic_cm_conn_req()
3596 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) in cnic_cm_create()
3641 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) { in cnic_close_conn()
3884 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_abort()
3903 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_close()
3937 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_cm_set_pg()
4065 if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags) && in cnic_cm_process_kcqe()
4066 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags) && in cnic_cm_process_kcqe()
4187 if (test_bit(SK_F_HW_ERR, &csk->flags)) in cnic_close_bnx2x_conn()
4189 else if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) in cnic_close_bnx2x_conn()
4290 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags) || in cnic_delete_task()
4291 !test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) in cnic_delete_task()
5171 if (test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_init_rings()
5174 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_init_rings()
5178 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_init_rings()
5220 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && in cnic_init_rings()
5224 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_init_rings()
5241 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) in cnic_shutdown_rings()
5244 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { in cnic_shutdown_rings()
5246 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { in cnic_shutdown_rings()
5261 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && in cnic_shutdown_rings()
5265 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) in cnic_shutdown_rings()
5323 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_start_hw()
5409 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) { in cnic_stop_hw()
5455 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) in cnic_get_fc_npiv_tbl()