Lines Matching refs:hash_con

755 	struct qed_hash_fcoe_con *hash_con = NULL;  in qed_fcoe_get_hash()  local
760 hash_for_each_possible(cdev->connections, hash_con, node, handle) { in qed_fcoe_get_hash()
761 if (hash_con->con->icid == handle) in qed_fcoe_get_hash()
765 if (!hash_con || (hash_con->con->icid != handle)) in qed_fcoe_get_hash()
768 return hash_con; in qed_fcoe_get_hash()
854 struct qed_hash_fcoe_con *hash_con; in qed_fcoe_acquire_conn() local
858 hash_con = kzalloc(sizeof(*hash_con), GFP_KERNEL); in qed_fcoe_acquire_conn()
859 if (!hash_con) { in qed_fcoe_acquire_conn()
866 &hash_con->con); in qed_fcoe_acquire_conn()
869 kfree(hash_con); in qed_fcoe_acquire_conn()
874 *handle = hash_con->con->icid; in qed_fcoe_acquire_conn()
875 *fw_cid = hash_con->con->fw_cid; in qed_fcoe_acquire_conn()
876 hash_add(cdev->connections, &hash_con->node, *handle); in qed_fcoe_acquire_conn()
887 struct qed_hash_fcoe_con *hash_con; in qed_fcoe_release_conn() local
889 hash_con = qed_fcoe_get_hash(cdev, handle); in qed_fcoe_release_conn()
890 if (!hash_con) { in qed_fcoe_release_conn()
896 hlist_del(&hash_con->node); in qed_fcoe_release_conn()
897 qed_fcoe_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_fcoe_release_conn()
898 kfree(hash_con); in qed_fcoe_release_conn()
907 struct qed_hash_fcoe_con *hash_con; in qed_fcoe_offload_conn() local
910 hash_con = qed_fcoe_get_hash(cdev, handle); in qed_fcoe_offload_conn()
911 if (!hash_con) { in qed_fcoe_offload_conn()
918 con = hash_con->con; in qed_fcoe_offload_conn()
959 struct qed_hash_fcoe_con *hash_con; in qed_fcoe_destroy_conn() local
962 hash_con = qed_fcoe_get_hash(cdev, handle); in qed_fcoe_destroy_conn()
963 if (!hash_con) { in qed_fcoe_destroy_conn()
970 con = hash_con->con; in qed_fcoe_destroy_conn()