Lines Matching refs:hash_con
1063 struct qed_hash_iscsi_con *hash_con = NULL; in qed_iscsi_get_hash() local
1068 hash_for_each_possible(cdev->connections, hash_con, node, handle) { in qed_iscsi_get_hash()
1069 if (hash_con->con->icid == handle) in qed_iscsi_get_hash()
1073 if (!hash_con || (hash_con->con->icid != handle)) in qed_iscsi_get_hash()
1076 return hash_con; in qed_iscsi_get_hash()
1158 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_acquire_conn() local
1162 hash_con = kzalloc(sizeof(*hash_con), GFP_ATOMIC); in qed_iscsi_acquire_conn()
1163 if (!hash_con) in qed_iscsi_acquire_conn()
1168 &hash_con->con); in qed_iscsi_acquire_conn()
1171 kfree(hash_con); in qed_iscsi_acquire_conn()
1176 *handle = hash_con->con->icid; in qed_iscsi_acquire_conn()
1177 *fw_cid = hash_con->con->fw_cid; in qed_iscsi_acquire_conn()
1178 hash_add(cdev->connections, &hash_con->node, *handle); in qed_iscsi_acquire_conn()
1189 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_release_conn() local
1191 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_release_conn()
1192 if (!hash_con) { in qed_iscsi_release_conn()
1198 hlist_del(&hash_con->node); in qed_iscsi_release_conn()
1199 qed_iscsi_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_iscsi_release_conn()
1200 kfree(hash_con); in qed_iscsi_release_conn()
1209 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_offload_conn() local
1212 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_offload_conn()
1213 if (!hash_con) { in qed_iscsi_offload_conn()
1220 con = hash_con->con; in qed_iscsi_offload_conn()
1284 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_update_conn() local
1287 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_update_conn()
1288 if (!hash_con) { in qed_iscsi_update_conn()
1295 con = hash_con->con; in qed_iscsi_update_conn()
1309 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_clear_conn_sq() local
1311 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_clear_conn_sq()
1312 if (!hash_con) { in qed_iscsi_clear_conn_sq()
1318 return qed_sp_iscsi_conn_clear_sq(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_iscsi_clear_conn_sq()
1325 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_destroy_conn() local
1327 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_destroy_conn()
1328 if (!hash_con) { in qed_iscsi_destroy_conn()
1334 hash_con->con->abortive_dsconnect = abrt_conn; in qed_iscsi_destroy_conn()
1336 return qed_sp_iscsi_conn_terminate(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_iscsi_destroy_conn()
1355 struct qed_hash_iscsi_con *hash_con; in qed_iscsi_change_mac() local
1357 hash_con = qed_iscsi_get_hash(cdev, handle); in qed_iscsi_change_mac()
1358 if (!hash_con) { in qed_iscsi_change_mac()
1364 return qed_sp_iscsi_mac_update(QED_AFFIN_HWFN(cdev), hash_con->con, in qed_iscsi_change_mac()