Lines Matching refs:test_bit
1715 if (adapter_up(ha) && !test_bit(AF_BUILD_DDB_LIST, &ha->flags)) in qla4xxx_ep_poll()
1879 if (test_bit(AF_LINK_UP, &ha->flags)) in qla4xxx_set_port_state()
3461 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); in qla4xxx_copy_from_fwddb_param()
3462 if (test_bit(OPT_IPV6_DEVICE, &options)) { in qla4xxx_copy_from_fwddb_param()
3474 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, in qla4xxx_copy_from_fwddb_param()
3476 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); in qla4xxx_copy_from_fwddb_param()
3477 sess->entry_state = test_bit(OPT_ENTRY_STATE, &options); in qla4xxx_copy_from_fwddb_param()
3480 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); in qla4xxx_copy_from_fwddb_param()
3481 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); in qla4xxx_copy_from_fwddb_param()
3482 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); in qla4xxx_copy_from_fwddb_param()
3483 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); in qla4xxx_copy_from_fwddb_param()
3484 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, in qla4xxx_copy_from_fwddb_param()
3486 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); in qla4xxx_copy_from_fwddb_param()
3487 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); in qla4xxx_copy_from_fwddb_param()
3488 conn->snack_req_en = test_bit(ISCSIOPT_SNACK_REQ_EN, &options); in qla4xxx_copy_from_fwddb_param()
3489 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, in qla4xxx_copy_from_fwddb_param()
3491 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); in qla4xxx_copy_from_fwddb_param()
3493 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); in qla4xxx_copy_from_fwddb_param()
3494 if (test_bit(ISCSIOPT_ERL1, &options)) in qla4xxx_copy_from_fwddb_param()
3496 if (test_bit(ISCSIOPT_ERL0, &options)) in qla4xxx_copy_from_fwddb_param()
3500 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); in qla4xxx_copy_from_fwddb_param()
3501 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3502 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3503 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) in qla4xxx_copy_from_fwddb_param()
3505 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) in qla4xxx_copy_from_fwddb_param()
3507 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) in qla4xxx_copy_from_fwddb_param()
3511 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); in qla4xxx_copy_from_fwddb_param()
3514 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3561 if (test_bit(OPT_IPV6_DEVICE, &options)) { in qla4xxx_copy_from_fwddb_param()
3712 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); in qla4xxx_copy_to_sess_conn_params()
3713 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, in qla4xxx_copy_to_sess_conn_params()
3715 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); in qla4xxx_copy_to_sess_conn_params()
3718 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3719 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3720 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3721 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3722 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, in qla4xxx_copy_to_sess_conn_params()
3724 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); in qla4xxx_copy_to_sess_conn_params()
3725 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3726 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, in qla4xxx_copy_to_sess_conn_params()
3728 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3730 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); in qla4xxx_copy_to_sess_conn_params()
3731 if (test_bit(ISCSIOPT_ERL1, &options)) in qla4xxx_copy_to_sess_conn_params()
3733 if (test_bit(ISCSIOPT_ERL0, &options)) in qla4xxx_copy_to_sess_conn_params()
3737 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); in qla4xxx_copy_to_sess_conn_params()
3738 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
3739 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
3740 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) in qla4xxx_copy_to_sess_conn_params()
3742 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) in qla4xxx_copy_to_sess_conn_params()
3744 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) in qla4xxx_copy_to_sess_conn_params()
3748 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3751 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
4066 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_queuecommand()
4067 if (test_bit(AF_PCI_CHANNEL_IO_PERM_FAILURE, &ha->flags)) in qla4xxx_queuecommand()
4085 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_queuecommand()
4086 test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || in qla4xxx_queuecommand()
4087 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_queuecommand()
4088 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || in qla4xxx_queuecommand()
4089 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || in qla4xxx_queuecommand()
4090 !test_bit(AF_ONLINE, &ha->flags) || in qla4xxx_queuecommand()
4091 !test_bit(AF_LINK_UP, &ha->flags) || in qla4xxx_queuecommand()
4092 test_bit(AF_LOOPBACK, &ha->flags) || in qla4xxx_queuecommand()
4093 test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags) || in qla4xxx_queuecommand()
4094 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags) || in qla4xxx_queuecommand()
4095 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) in qla4xxx_queuecommand()
4403 if (!(test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || in qla4_8xxx_watchdog()
4404 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4_8xxx_watchdog()
4405 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags))) { in qla4_8xxx_watchdog()
4418 !test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4_8xxx_watchdog()
4440 !test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) { in qla4_8xxx_watchdog()
4466 if (adapter_up(ha) && !test_bit(DF_RELOGIN, &ddb_entry->flags) && in qla4xxx_check_relogin_flash_ddb()
4521 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_timer()
4550 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_timer()
4551 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags) || in qla4xxx_timer()
4552 test_bit(DPC_RELOGIN_DEVICE, &ha->dpc_flags) || in qla4xxx_timer()
4553 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || in qla4xxx_timer()
4554 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_timer()
4555 test_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags) || in qla4xxx_timer()
4556 test_bit(DPC_LINK_CHANGED, &ha->dpc_flags) || in qla4xxx_timer()
4557 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || in qla4xxx_timer()
4558 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || in qla4xxx_timer()
4559 test_bit(DPC_SYSFS_DDB_EXPORT, &ha->dpc_flags) || in qla4xxx_timer()
4560 test_bit(DPC_AEN, &ha->dpc_flags)) { in qla4xxx_timer()
4828 !test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4837 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_recover_adapter()
4842 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4850 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4879 if (test_bit(AF_FW_RECOVERY, &ha->flags)) in qla4xxx_recover_adapter()
4893 if (!test_bit(AF_FW_RECOVERY, &ha->flags)) in qla4xxx_recover_adapter()
4937 if (!test_bit(AF_ONLINE, &ha->flags) && in qla4xxx_recover_adapter()
4938 !test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4964 if (!test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
5005 if (test_bit(AF_ONLINE, &ha->flags)) in qla4xxx_recover_adapter()
5035 if (!(test_bit(DF_RELOGIN, &ddb_entry->flags) || in qla4xxx_relogin_devices()
5036 test_bit(DF_DISABLE_RELOGIN, in qla4xxx_relogin_devices()
5062 if (test_bit(AF_ONLINE, &ha->flags)) { in qla4xxx_unblock_flash_ddb()
5140 if (test_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) in qla4xxx_dpc_relogin()
5282 if (!test_bit(AF_INIT_DONE, &ha->flags)) in qla4xxx_do_dpc()
5285 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_do_dpc()
5295 if (test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5311 if (test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5330 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5346 if (!test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) && in qla4xxx_do_dpc()
5347 (test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_do_dpc()
5348 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_do_dpc()
5349 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags))) { in qla4xxx_do_dpc()
5360 if (test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || in qla4xxx_do_dpc()
5361 test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_do_dpc()
5364 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5404 if (!test_bit(AF_LOOPBACK, &ha->flags) && in qla4xxx_do_dpc()
5406 if (!test_bit(AF_LINK_UP, &ha->flags)) { in qla4xxx_do_dpc()
7461 if (test_bit(AF_ST_DISCOVERY_IN_PROGRESS, &ha->flags)) { in qla4xxx_ddb_login_st()
7607 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_sysfs_ddb_logout_sid()
8467 if (!test_bit(AF_LINK_UP, &ha->flags)) { in qla4xxx_build_ddb_list()
8550 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_wait_login_resp_boot_tgt()
8731 while ((!test_bit(AF_ONLINE, &ha->flags)) && in qla4xxx_probe_adapter()
8760 if (!test_bit(AF_ONLINE, &ha->flags)) { in qla4xxx_probe_adapter()
9109 (test_bit(AF_EEH_BUSY, &ha->flags))) { in qla4xxx_eh_wait_on_command()
9422 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_eh_host_reset()
9502 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_host_reset()
9510 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_host_reset()
9527 test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_host_reset()
9617 if (test_bit(AF_ONLINE, &ha->flags)) { in qla4_8xxx_error_recovery()