Lines Matching refs:test_bit
1716 if (adapter_up(ha) && !test_bit(AF_BUILD_DDB_LIST, &ha->flags)) in qla4xxx_ep_poll()
1880 if (test_bit(AF_LINK_UP, &ha->flags)) in qla4xxx_set_port_state()
3462 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); in qla4xxx_copy_from_fwddb_param()
3463 if (test_bit(OPT_IPV6_DEVICE, &options)) { in qla4xxx_copy_from_fwddb_param()
3475 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, in qla4xxx_copy_from_fwddb_param()
3477 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); in qla4xxx_copy_from_fwddb_param()
3478 sess->entry_state = test_bit(OPT_ENTRY_STATE, &options); in qla4xxx_copy_from_fwddb_param()
3481 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); in qla4xxx_copy_from_fwddb_param()
3482 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); in qla4xxx_copy_from_fwddb_param()
3483 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); in qla4xxx_copy_from_fwddb_param()
3484 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); in qla4xxx_copy_from_fwddb_param()
3485 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, in qla4xxx_copy_from_fwddb_param()
3487 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); in qla4xxx_copy_from_fwddb_param()
3488 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); in qla4xxx_copy_from_fwddb_param()
3489 conn->snack_req_en = test_bit(ISCSIOPT_SNACK_REQ_EN, &options); in qla4xxx_copy_from_fwddb_param()
3490 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, in qla4xxx_copy_from_fwddb_param()
3492 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); in qla4xxx_copy_from_fwddb_param()
3494 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); in qla4xxx_copy_from_fwddb_param()
3495 if (test_bit(ISCSIOPT_ERL1, &options)) in qla4xxx_copy_from_fwddb_param()
3497 if (test_bit(ISCSIOPT_ERL0, &options)) in qla4xxx_copy_from_fwddb_param()
3501 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); in qla4xxx_copy_from_fwddb_param()
3502 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3503 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3504 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) in qla4xxx_copy_from_fwddb_param()
3506 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) in qla4xxx_copy_from_fwddb_param()
3508 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) in qla4xxx_copy_from_fwddb_param()
3512 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); in qla4xxx_copy_from_fwddb_param()
3515 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); in qla4xxx_copy_from_fwddb_param()
3562 if (test_bit(OPT_IPV6_DEVICE, &options)) { in qla4xxx_copy_from_fwddb_param()
3713 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); in qla4xxx_copy_to_sess_conn_params()
3714 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, in qla4xxx_copy_to_sess_conn_params()
3716 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); in qla4xxx_copy_to_sess_conn_params()
3719 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3720 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3721 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3722 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3723 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, in qla4xxx_copy_to_sess_conn_params()
3725 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); in qla4xxx_copy_to_sess_conn_params()
3726 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3727 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, in qla4xxx_copy_to_sess_conn_params()
3729 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3731 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); in qla4xxx_copy_to_sess_conn_params()
3732 if (test_bit(ISCSIOPT_ERL1, &options)) in qla4xxx_copy_to_sess_conn_params()
3734 if (test_bit(ISCSIOPT_ERL0, &options)) in qla4xxx_copy_to_sess_conn_params()
3738 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); in qla4xxx_copy_to_sess_conn_params()
3739 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
3740 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
3741 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) in qla4xxx_copy_to_sess_conn_params()
3743 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) in qla4xxx_copy_to_sess_conn_params()
3745 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) in qla4xxx_copy_to_sess_conn_params()
3749 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); in qla4xxx_copy_to_sess_conn_params()
3752 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); in qla4xxx_copy_to_sess_conn_params()
4067 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_queuecommand()
4068 if (test_bit(AF_PCI_CHANNEL_IO_PERM_FAILURE, &ha->flags)) in qla4xxx_queuecommand()
4086 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_queuecommand()
4087 test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || in qla4xxx_queuecommand()
4088 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_queuecommand()
4089 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || in qla4xxx_queuecommand()
4090 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || in qla4xxx_queuecommand()
4091 !test_bit(AF_ONLINE, &ha->flags) || in qla4xxx_queuecommand()
4092 !test_bit(AF_LINK_UP, &ha->flags) || in qla4xxx_queuecommand()
4093 test_bit(AF_LOOPBACK, &ha->flags) || in qla4xxx_queuecommand()
4094 test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags) || in qla4xxx_queuecommand()
4095 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags) || in qla4xxx_queuecommand()
4096 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) in qla4xxx_queuecommand()
4404 if (!(test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || in qla4_8xxx_watchdog()
4405 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4_8xxx_watchdog()
4406 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags))) { in qla4_8xxx_watchdog()
4419 !test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4_8xxx_watchdog()
4441 !test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) { in qla4_8xxx_watchdog()
4467 if (adapter_up(ha) && !test_bit(DF_RELOGIN, &ddb_entry->flags) && in qla4xxx_check_relogin_flash_ddb()
4522 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_timer()
4551 test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_timer()
4552 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags) || in qla4xxx_timer()
4553 test_bit(DPC_RELOGIN_DEVICE, &ha->dpc_flags) || in qla4xxx_timer()
4554 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || in qla4xxx_timer()
4555 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_timer()
4556 test_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags) || in qla4xxx_timer()
4557 test_bit(DPC_LINK_CHANGED, &ha->dpc_flags) || in qla4xxx_timer()
4558 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || in qla4xxx_timer()
4559 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || in qla4xxx_timer()
4560 test_bit(DPC_SYSFS_DDB_EXPORT, &ha->dpc_flags) || in qla4xxx_timer()
4561 test_bit(DPC_AEN, &ha->dpc_flags)) { in qla4xxx_timer()
4829 !test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4838 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_recover_adapter()
4843 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4851 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4880 if (test_bit(AF_FW_RECOVERY, &ha->flags)) in qla4xxx_recover_adapter()
4894 if (!test_bit(AF_FW_RECOVERY, &ha->flags)) in qla4xxx_recover_adapter()
4938 if (!test_bit(AF_ONLINE, &ha->flags) && in qla4xxx_recover_adapter()
4939 !test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
4965 if (!test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags)) { in qla4xxx_recover_adapter()
5006 if (test_bit(AF_ONLINE, &ha->flags)) in qla4xxx_recover_adapter()
5036 if (!(test_bit(DF_RELOGIN, &ddb_entry->flags) || in qla4xxx_relogin_devices()
5037 test_bit(DF_DISABLE_RELOGIN, in qla4xxx_relogin_devices()
5063 if (test_bit(AF_ONLINE, &ha->flags)) { in qla4xxx_unblock_flash_ddb()
5141 if (test_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) in qla4xxx_dpc_relogin()
5283 if (!test_bit(AF_INIT_DONE, &ha->flags)) in qla4xxx_do_dpc()
5286 if (test_bit(AF_EEH_BUSY, &ha->flags)) { in qla4xxx_do_dpc()
5296 if (test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5312 if (test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5331 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5347 if (!test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) && in qla4xxx_do_dpc()
5348 (test_bit(DPC_RESET_HA, &ha->dpc_flags) || in qla4xxx_do_dpc()
5349 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || in qla4xxx_do_dpc()
5350 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags))) { in qla4xxx_do_dpc()
5361 if (test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || in qla4xxx_do_dpc()
5362 test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_do_dpc()
5365 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { in qla4xxx_do_dpc()
5405 if (!test_bit(AF_LOOPBACK, &ha->flags) && in qla4xxx_do_dpc()
5407 if (!test_bit(AF_LINK_UP, &ha->flags)) { in qla4xxx_do_dpc()
7462 if (test_bit(AF_ST_DISCOVERY_IN_PROGRESS, &ha->flags)) { in qla4xxx_ddb_login_st()
7608 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_sysfs_ddb_logout_sid()
8468 if (!test_bit(AF_LINK_UP, &ha->flags)) { in qla4xxx_build_ddb_list()
8551 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { in qla4xxx_wait_login_resp_boot_tgt()
8739 while ((!test_bit(AF_ONLINE, &ha->flags)) && in qla4xxx_probe_adapter()
8768 if (!test_bit(AF_ONLINE, &ha->flags)) { in qla4xxx_probe_adapter()
9117 (test_bit(AF_EEH_BUSY, &ha->flags))) { in qla4xxx_eh_wait_on_command()
9430 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_eh_host_reset()
9510 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) in qla4xxx_host_reset()
9518 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_host_reset()
9535 test_bit(DPC_RESET_HA, &ha->dpc_flags)) { in qla4xxx_host_reset()
9625 if (test_bit(AF_ONLINE, &ha->flags)) { in qla4_8xxx_error_recovery()