Lines Matching refs:p_ramrod

225 	struct roce_create_qp_resp_ramrod_data *p_ramrod;  in qed_roce_sp_create_responder()  local
289 p_ramrod = &p_ent->ramrod.roce_create_qp_resp; in qed_roce_sp_create_responder()
290 p_ramrod->flags = cpu_to_le32(flags); in qed_roce_sp_create_responder()
291 p_ramrod->max_ird = qp->max_rd_atomic_resp; in qed_roce_sp_create_responder()
292 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_create_responder()
293 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_create_responder()
294 p_ramrod->irq_num_pages = qp->irq_num_pages; in qed_roce_sp_create_responder()
295 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_create_responder()
296 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_create_responder()
297 p_ramrod->dst_qp_id = cpu_to_le32(qp->dest_qp); in qed_roce_sp_create_responder()
298 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_create_responder()
299 p_ramrod->initial_psn = cpu_to_le32(qp->rq_psn); in qed_roce_sp_create_responder()
300 p_ramrod->pd = cpu_to_le16(qp->pd); in qed_roce_sp_create_responder()
301 p_ramrod->rq_num_pages = cpu_to_le16(qp->rq_num_pages); in qed_roce_sp_create_responder()
302 DMA_REGPAIR_LE(p_ramrod->rq_pbl_addr, qp->rq_pbl_ptr); in qed_roce_sp_create_responder()
303 DMA_REGPAIR_LE(p_ramrod->irq_pbl_addr, qp->irq_phys_addr); in qed_roce_sp_create_responder()
304 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_create_responder()
305 p_ramrod->qp_handle_for_async.hi = qp->qp_handle_async.hi; in qed_roce_sp_create_responder()
306 p_ramrod->qp_handle_for_async.lo = qp->qp_handle_async.lo; in qed_roce_sp_create_responder()
307 p_ramrod->qp_handle_for_cqe.hi = qp->qp_handle.hi; in qed_roce_sp_create_responder()
308 p_ramrod->qp_handle_for_cqe.lo = qp->qp_handle.lo; in qed_roce_sp_create_responder()
309 p_ramrod->cq_cid = cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | in qed_roce_sp_create_responder()
311 p_ramrod->xrc_domain = cpu_to_le16(qp->xrcd_id); in qed_roce_sp_create_responder()
320 p_ramrod->regular_latency_phy_queue = in qed_roce_sp_create_responder()
322 p_ramrod->low_latency_phy_queue = in qed_roce_sp_create_responder()
325 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_responder()
327 qed_rdma_set_fw_mac(p_ramrod->remote_mac_addr, qp->remote_mac_addr); in qed_roce_sp_create_responder()
328 qed_rdma_set_fw_mac(p_ramrod->local_mac_addr, qp->local_mac_addr); in qed_roce_sp_create_responder()
330 p_ramrod->udp_src_port = cpu_to_le16(qp->udp_src_port); in qed_roce_sp_create_responder()
331 p_ramrod->vlan_id = cpu_to_le16(qp->vlan_id); in qed_roce_sp_create_responder()
332 p_ramrod->srq_id.srq_idx = cpu_to_le16(qp->srq_id); in qed_roce_sp_create_responder()
333 p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid); in qed_roce_sp_create_responder()
335 p_ramrod->stats_counter_id = RESC_START(p_hwfn, QED_RDMA_STATS_QUEUE) + in qed_roce_sp_create_responder()
363 struct roce_create_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_create_requester() local
420 p_ramrod = &p_ent->ramrod.roce_create_qp_req; in qed_roce_sp_create_requester()
421 p_ramrod->flags = cpu_to_le16(flags); in qed_roce_sp_create_requester()
423 SET_FIELD(p_ramrod->flags2, ROCE_CREATE_QP_REQ_RAMROD_DATA_EDPM_MODE, in qed_roce_sp_create_requester()
426 p_ramrod->max_ord = qp->max_rd_atomic_req; in qed_roce_sp_create_requester()
427 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_create_requester()
428 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_create_requester()
429 p_ramrod->orq_num_pages = qp->orq_num_pages; in qed_roce_sp_create_requester()
430 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_create_requester()
431 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_create_requester()
432 p_ramrod->dst_qp_id = cpu_to_le32(qp->dest_qp); in qed_roce_sp_create_requester()
433 p_ramrod->ack_timeout_val = cpu_to_le32(qp->ack_timeout); in qed_roce_sp_create_requester()
434 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_create_requester()
435 p_ramrod->initial_psn = cpu_to_le32(qp->sq_psn); in qed_roce_sp_create_requester()
436 p_ramrod->pd = cpu_to_le16(qp->pd); in qed_roce_sp_create_requester()
437 p_ramrod->sq_num_pages = cpu_to_le16(qp->sq_num_pages); in qed_roce_sp_create_requester()
438 DMA_REGPAIR_LE(p_ramrod->sq_pbl_addr, qp->sq_pbl_ptr); in qed_roce_sp_create_requester()
439 DMA_REGPAIR_LE(p_ramrod->orq_pbl_addr, qp->orq_phys_addr); in qed_roce_sp_create_requester()
440 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_create_requester()
441 p_ramrod->qp_handle_for_async.hi = qp->qp_handle_async.hi; in qed_roce_sp_create_requester()
442 p_ramrod->qp_handle_for_async.lo = qp->qp_handle_async.lo; in qed_roce_sp_create_requester()
443 p_ramrod->qp_handle_for_cqe.hi = qp->qp_handle.hi; in qed_roce_sp_create_requester()
444 p_ramrod->qp_handle_for_cqe.lo = qp->qp_handle.lo; in qed_roce_sp_create_requester()
445 p_ramrod->cq_cid = in qed_roce_sp_create_requester()
455 p_ramrod->regular_latency_phy_queue = in qed_roce_sp_create_requester()
457 p_ramrod->low_latency_phy_queue = in qed_roce_sp_create_requester()
460 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_requester()
462 qed_rdma_set_fw_mac(p_ramrod->remote_mac_addr, qp->remote_mac_addr); in qed_roce_sp_create_requester()
463 qed_rdma_set_fw_mac(p_ramrod->local_mac_addr, qp->local_mac_addr); in qed_roce_sp_create_requester()
465 p_ramrod->udp_src_port = cpu_to_le16(qp->udp_src_port); in qed_roce_sp_create_requester()
466 p_ramrod->vlan_id = cpu_to_le16(qp->vlan_id); in qed_roce_sp_create_requester()
467 p_ramrod->stats_counter_id = RESC_START(p_hwfn, QED_RDMA_STATS_QUEUE) + in qed_roce_sp_create_requester()
494 struct roce_modify_qp_resp_ramrod_data *p_ramrod; in qed_roce_sp_modify_responder() local
556 p_ramrod = &p_ent->ramrod.roce_modify_qp_resp; in qed_roce_sp_modify_responder()
557 p_ramrod->flags = cpu_to_le16(flags); in qed_roce_sp_modify_responder()
559 p_ramrod->fields = 0; in qed_roce_sp_modify_responder()
560 SET_FIELD(p_ramrod->fields, in qed_roce_sp_modify_responder()
564 p_ramrod->max_ird = qp->max_rd_atomic_resp; in qed_roce_sp_modify_responder()
565 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_modify_responder()
566 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_modify_responder()
567 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_modify_responder()
568 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_modify_responder()
569 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_modify_responder()
570 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_modify_responder()
582 struct roce_modify_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_modify_requester() local
641 p_ramrod = &p_ent->ramrod.roce_modify_qp_req; in qed_roce_sp_modify_requester()
642 p_ramrod->flags = cpu_to_le16(flags); in qed_roce_sp_modify_requester()
644 p_ramrod->fields = 0; in qed_roce_sp_modify_requester()
645 SET_FIELD(p_ramrod->fields, in qed_roce_sp_modify_requester()
647 SET_FIELD(p_ramrod->fields, ROCE_MODIFY_QP_REQ_RAMROD_DATA_RNR_NAK_CNT, in qed_roce_sp_modify_requester()
650 p_ramrod->max_ord = qp->max_rd_atomic_req; in qed_roce_sp_modify_requester()
651 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_modify_requester()
652 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_modify_requester()
653 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_modify_requester()
654 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_modify_requester()
655 p_ramrod->ack_timeout_val = cpu_to_le32(qp->ack_timeout); in qed_roce_sp_modify_requester()
656 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_modify_requester()
657 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_modify_requester()
669 struct roce_destroy_qp_resp_ramrod_data *p_ramrod; in qed_roce_sp_destroy_qp_responder() local
709 p_ramrod = &p_ent->ramrod.roce_destroy_qp_resp; in qed_roce_sp_destroy_qp_responder()
724 DMA_REGPAIR_LE(p_ramrod->output_params_addr, ramrod_res_phys); in qed_roce_sp_destroy_qp_responder()
754 struct roce_destroy_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_destroy_qp_requester() local
788 p_ramrod = &p_ent->ramrod.roce_destroy_qp_req; in qed_roce_sp_destroy_qp_requester()
789 DMA_REGPAIR_LE(p_ramrod->output_params_addr, ramrod_res_phys); in qed_roce_sp_destroy_qp_requester()