Lines Matching refs:p_conn

267 				       struct qed_nvmetcp_conn *p_conn,  in qed_sp_nvmetcp_conn_offload()  argument
283 init_data.cid = p_conn->icid; in qed_sp_nvmetcp_conn_offload()
297 p_conn->physical_q0 = cpu_to_le16(physical_q); in qed_sp_nvmetcp_conn_offload()
302 p_conn->physical_q1 = cpu_to_le16(physical_q); in qed_sp_nvmetcp_conn_offload()
304 p_ramrod->conn_id = cpu_to_le16(p_conn->conn_id); in qed_sp_nvmetcp_conn_offload()
305 DMA_REGPAIR_LE(p_ramrod->nvmetcp.sq_pbl_addr, p_conn->sq_pbl_addr); in qed_sp_nvmetcp_conn_offload()
306 r2tq_pbl_addr = qed_chain_get_pbl_phys(&p_conn->r2tq); in qed_sp_nvmetcp_conn_offload()
308 xhq_pbl_addr = qed_chain_get_pbl_phys(&p_conn->xhq); in qed_sp_nvmetcp_conn_offload()
310 uhq_pbl_addr = qed_chain_get_pbl_phys(&p_conn->uhq); in qed_sp_nvmetcp_conn_offload()
312 p_ramrod->nvmetcp.flags = p_conn->offl_flags; in qed_sp_nvmetcp_conn_offload()
313 p_ramrod->nvmetcp.default_cq = p_conn->default_cq; in qed_sp_nvmetcp_conn_offload()
316 p_conn->nvmetcp_cccid_itid_table_addr); in qed_sp_nvmetcp_conn_offload()
318 cpu_to_le16(p_conn->nvmetcp_cccid_max_range); in qed_sp_nvmetcp_conn_offload()
322 &p_tcp->remote_mac_addr_lo, p_conn->remote_mac); in qed_sp_nvmetcp_conn_offload()
325 &p_tcp->local_mac_addr_lo, p_conn->local_mac); in qed_sp_nvmetcp_conn_offload()
326 p_tcp->vlan_id = cpu_to_le16(p_conn->vlan_id); in qed_sp_nvmetcp_conn_offload()
327 p_tcp->flags = cpu_to_le16(p_conn->tcp_flags); in qed_sp_nvmetcp_conn_offload()
328 p_tcp->ip_version = p_conn->ip_version; in qed_sp_nvmetcp_conn_offload()
331 p_tcp->remote_ip[i] = cpu_to_le32(p_conn->remote_ip[i]); in qed_sp_nvmetcp_conn_offload()
332 p_tcp->local_ip[i] = cpu_to_le32(p_conn->local_ip[i]); in qed_sp_nvmetcp_conn_offload()
335 p_tcp->remote_ip[0] = cpu_to_le32(p_conn->remote_ip[0]); in qed_sp_nvmetcp_conn_offload()
336 p_tcp->local_ip[0] = cpu_to_le32(p_conn->local_ip[0]); in qed_sp_nvmetcp_conn_offload()
339 p_tcp->flow_label = cpu_to_le32(p_conn->flow_label); in qed_sp_nvmetcp_conn_offload()
340 p_tcp->ttl = p_conn->ttl; in qed_sp_nvmetcp_conn_offload()
341 p_tcp->tos_or_tc = p_conn->tos_or_tc; in qed_sp_nvmetcp_conn_offload()
342 p_tcp->remote_port = cpu_to_le16(p_conn->remote_port); in qed_sp_nvmetcp_conn_offload()
343 p_tcp->local_port = cpu_to_le16(p_conn->local_port); in qed_sp_nvmetcp_conn_offload()
344 p_tcp->mss = cpu_to_le16(p_conn->mss); in qed_sp_nvmetcp_conn_offload()
345 p_tcp->rcv_wnd_scale = p_conn->rcv_wnd_scale; in qed_sp_nvmetcp_conn_offload()
346 p_tcp->connect_mode = p_conn->connect_mode; in qed_sp_nvmetcp_conn_offload()
347 p_tcp->cwnd = cpu_to_le32(p_conn->cwnd); in qed_sp_nvmetcp_conn_offload()
348 p_tcp->ka_max_probe_cnt = p_conn->ka_max_probe_cnt; in qed_sp_nvmetcp_conn_offload()
349 p_tcp->ka_timeout = cpu_to_le32(p_conn->ka_timeout); in qed_sp_nvmetcp_conn_offload()
350 p_tcp->max_rt_time = cpu_to_le32(p_conn->max_rt_time); in qed_sp_nvmetcp_conn_offload()
351 p_tcp->ka_interval = cpu_to_le32(p_conn->ka_interval); in qed_sp_nvmetcp_conn_offload()
357 struct qed_nvmetcp_conn *p_conn, in qed_sp_nvmetcp_conn_update() argument
369 init_data.cid = p_conn->icid; in qed_sp_nvmetcp_conn_update()
381 p_ramrod->conn_id = cpu_to_le16(p_conn->conn_id); in qed_sp_nvmetcp_conn_update()
382 p_ramrod->flags = p_conn->update_flag; in qed_sp_nvmetcp_conn_update()
383 p_ramrod->max_seq_size = cpu_to_le32(p_conn->max_seq_size); in qed_sp_nvmetcp_conn_update()
384 dval = p_conn->max_recv_pdu_length; in qed_sp_nvmetcp_conn_update()
386 dval = p_conn->max_send_pdu_length; in qed_sp_nvmetcp_conn_update()
388 p_ramrod->first_seq_length = cpu_to_le32(p_conn->first_seq_length); in qed_sp_nvmetcp_conn_update()
394 struct qed_nvmetcp_conn *p_conn, in qed_sp_nvmetcp_conn_terminate() argument
405 init_data.cid = p_conn->icid; in qed_sp_nvmetcp_conn_terminate()
416 p_ramrod->conn_id = cpu_to_le16(p_conn->conn_id); in qed_sp_nvmetcp_conn_terminate()
417 p_ramrod->abortive = p_conn->abortive_dsconnect; in qed_sp_nvmetcp_conn_terminate()
423 struct qed_nvmetcp_conn *p_conn, in qed_sp_nvmetcp_conn_clear_sq() argument
433 init_data.cid = p_conn->icid; in qed_sp_nvmetcp_conn_clear_sq()
461 struct qed_nvmetcp_conn *p_conn = NULL; in qed_nvmetcp_allocate_connection() local
467 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_allocate_connection()
469 if (p_conn) { in qed_nvmetcp_allocate_connection()
470 list_del(&p_conn->list_entry); in qed_nvmetcp_allocate_connection()
472 *p_out_conn = p_conn; in qed_nvmetcp_allocate_connection()
480 p_conn = kzalloc(sizeof(*p_conn), GFP_KERNEL); in qed_nvmetcp_allocate_connection()
481 if (!p_conn) in qed_nvmetcp_allocate_connection()
487 rc = qed_chain_alloc(p_hwfn->cdev, &p_conn->r2tq, &params); in qed_nvmetcp_allocate_connection()
494 rc = qed_chain_alloc(p_hwfn->cdev, &p_conn->uhq, &params); in qed_nvmetcp_allocate_connection()
499 rc = qed_chain_alloc(p_hwfn->cdev, &p_conn->xhq, &params); in qed_nvmetcp_allocate_connection()
503 p_conn->free_on_delete = true; in qed_nvmetcp_allocate_connection()
504 *p_out_conn = p_conn; in qed_nvmetcp_allocate_connection()
509 qed_chain_free(p_hwfn->cdev, &p_conn->uhq); in qed_nvmetcp_allocate_connection()
511 qed_chain_free(p_hwfn->cdev, &p_conn->r2tq); in qed_nvmetcp_allocate_connection()
513 kfree(p_conn); in qed_nvmetcp_allocate_connection()
521 struct qed_nvmetcp_conn *p_conn = NULL; in qed_nvmetcp_acquire_connection() local
532 rc = qed_nvmetcp_allocate_connection(p_hwfn, &p_conn); in qed_nvmetcp_acquire_connection()
541 p_conn->icid = icid; in qed_nvmetcp_acquire_connection()
542 p_conn->conn_id = (u16)icid; in qed_nvmetcp_acquire_connection()
543 p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid; in qed_nvmetcp_acquire_connection()
544 *p_out_conn = p_conn; in qed_nvmetcp_acquire_connection()
550 struct qed_nvmetcp_conn *p_conn) in qed_nvmetcp_release_connection() argument
553 list_add_tail(&p_conn->list_entry, &p_hwfn->p_nvmetcp_info->free_list); in qed_nvmetcp_release_connection()
554 qed_cxt_release_cid(p_hwfn, p_conn->icid); in qed_nvmetcp_release_connection()
559 struct qed_nvmetcp_conn *p_conn) in qed_nvmetcp_free_connection() argument
561 qed_chain_free(p_hwfn->cdev, &p_conn->xhq); in qed_nvmetcp_free_connection()
562 qed_chain_free(p_hwfn->cdev, &p_conn->uhq); in qed_nvmetcp_free_connection()
563 qed_chain_free(p_hwfn->cdev, &p_conn->r2tq); in qed_nvmetcp_free_connection()
564 kfree(p_conn); in qed_nvmetcp_free_connection()
588 struct qed_nvmetcp_conn *p_conn = NULL; in qed_nvmetcp_free() local
594 p_conn = list_first_entry(&p_hwfn->p_nvmetcp_info->free_list, in qed_nvmetcp_free()
596 if (p_conn) { in qed_nvmetcp_free()
597 list_del(&p_conn->list_entry); in qed_nvmetcp_free()
598 qed_nvmetcp_free_connection(p_hwfn, p_conn); in qed_nvmetcp_free()