Lines Matching refs:hash_con
250 struct qed_hash_nvmetcp_con *hash_con = NULL; in qed_nvmetcp_get_hash() local
255 hash_for_each_possible(cdev->connections, hash_con, node, handle) { in qed_nvmetcp_get_hash()
256 if (hash_con->con->icid == handle) in qed_nvmetcp_get_hash()
260 if (!hash_con || hash_con->con->icid != handle) in qed_nvmetcp_get_hash()
263 return hash_con; in qed_nvmetcp_get_hash()
610 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_acquire_conn() local
614 hash_con = kzalloc(sizeof(*hash_con), GFP_ATOMIC); in qed_nvmetcp_acquire_conn()
615 if (!hash_con) in qed_nvmetcp_acquire_conn()
620 &hash_con->con); in qed_nvmetcp_acquire_conn()
623 kfree(hash_con); in qed_nvmetcp_acquire_conn()
629 *handle = hash_con->con->icid; in qed_nvmetcp_acquire_conn()
630 *fw_cid = hash_con->con->fw_cid; in qed_nvmetcp_acquire_conn()
631 hash_add(cdev->connections, &hash_con->node, *handle); in qed_nvmetcp_acquire_conn()
641 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_release_conn() local
643 hash_con = qed_nvmetcp_get_hash(cdev, handle); in qed_nvmetcp_release_conn()
644 if (!hash_con) { in qed_nvmetcp_release_conn()
651 hlist_del(&hash_con->node); in qed_nvmetcp_release_conn()
652 qed_nvmetcp_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_nvmetcp_release_conn()
653 kfree(hash_con); in qed_nvmetcp_release_conn()
661 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_offload_conn() local
664 hash_con = qed_nvmetcp_get_hash(cdev, handle); in qed_nvmetcp_offload_conn()
665 if (!hash_con) { in qed_nvmetcp_offload_conn()
673 con = hash_con->con; in qed_nvmetcp_offload_conn()
727 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_update_conn() local
730 hash_con = qed_nvmetcp_get_hash(cdev, handle); in qed_nvmetcp_update_conn()
731 if (!hash_con) { in qed_nvmetcp_update_conn()
739 con = hash_con->con; in qed_nvmetcp_update_conn()
763 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_clear_conn_sq() local
765 hash_con = qed_nvmetcp_get_hash(cdev, handle); in qed_nvmetcp_clear_conn_sq()
766 if (!hash_con) { in qed_nvmetcp_clear_conn_sq()
773 return qed_sp_nvmetcp_conn_clear_sq(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_nvmetcp_clear_conn_sq()
780 struct qed_hash_nvmetcp_con *hash_con; in qed_nvmetcp_destroy_conn() local
782 hash_con = qed_nvmetcp_get_hash(cdev, handle); in qed_nvmetcp_destroy_conn()
783 if (!hash_con) { in qed_nvmetcp_destroy_conn()
790 hash_con->con->abortive_dsconnect = abrt_conn; in qed_nvmetcp_destroy_conn()
792 return qed_sp_nvmetcp_conn_terminate(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_nvmetcp_destroy_conn()