Lines Matching refs:p_ramrod
248 struct roce_create_qp_resp_ramrod_data *p_ramrod; in qed_roce_sp_create_responder() local
283 p_ramrod = &p_ent->ramrod.roce_create_qp_resp; in qed_roce_sp_create_responder()
285 p_ramrod->flags = 0; in qed_roce_sp_create_responder()
288 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
291 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
295 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
299 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
303 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
307 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
310 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
314 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_responder()
318 p_ramrod->max_ird = qp->max_rd_atomic_resp; in qed_roce_sp_create_responder()
319 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_create_responder()
320 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_create_responder()
321 p_ramrod->irq_num_pages = qp->irq_num_pages; in qed_roce_sp_create_responder()
322 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_create_responder()
323 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_create_responder()
324 p_ramrod->dst_qp_id = cpu_to_le32(qp->dest_qp); in qed_roce_sp_create_responder()
325 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_create_responder()
326 p_ramrod->initial_psn = cpu_to_le32(qp->rq_psn); in qed_roce_sp_create_responder()
327 p_ramrod->pd = cpu_to_le16(qp->pd); in qed_roce_sp_create_responder()
328 p_ramrod->rq_num_pages = cpu_to_le16(qp->rq_num_pages); in qed_roce_sp_create_responder()
329 DMA_REGPAIR_LE(p_ramrod->rq_pbl_addr, qp->rq_pbl_ptr); in qed_roce_sp_create_responder()
330 DMA_REGPAIR_LE(p_ramrod->irq_pbl_addr, qp->irq_phys_addr); in qed_roce_sp_create_responder()
331 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_create_responder()
332 p_ramrod->qp_handle_for_async.hi = cpu_to_le32(qp->qp_handle_async.hi); in qed_roce_sp_create_responder()
333 p_ramrod->qp_handle_for_async.lo = cpu_to_le32(qp->qp_handle_async.lo); in qed_roce_sp_create_responder()
334 p_ramrod->qp_handle_for_cqe.hi = cpu_to_le32(qp->qp_handle.hi); in qed_roce_sp_create_responder()
335 p_ramrod->qp_handle_for_cqe.lo = cpu_to_le32(qp->qp_handle.lo); in qed_roce_sp_create_responder()
336 p_ramrod->cq_cid = cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | in qed_roce_sp_create_responder()
346 p_ramrod->regular_latency_phy_queue = in qed_roce_sp_create_responder()
348 p_ramrod->low_latency_phy_queue = in qed_roce_sp_create_responder()
351 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_responder()
353 qed_rdma_set_fw_mac(p_ramrod->remote_mac_addr, qp->remote_mac_addr); in qed_roce_sp_create_responder()
354 qed_rdma_set_fw_mac(p_ramrod->local_mac_addr, qp->local_mac_addr); in qed_roce_sp_create_responder()
356 p_ramrod->udp_src_port = qp->udp_src_port; in qed_roce_sp_create_responder()
357 p_ramrod->vlan_id = cpu_to_le16(qp->vlan_id); in qed_roce_sp_create_responder()
358 p_ramrod->srq_id.srq_idx = cpu_to_le16(qp->srq_id); in qed_roce_sp_create_responder()
359 p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid); in qed_roce_sp_create_responder()
361 p_ramrod->stats_counter_id = RESC_START(p_hwfn, QED_RDMA_STATS_QUEUE) + in qed_roce_sp_create_responder()
389 struct roce_create_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_create_requester() local
425 p_ramrod = &p_ent->ramrod.roce_create_qp_req; in qed_roce_sp_create_requester()
427 p_ramrod->flags = 0; in qed_roce_sp_create_requester()
430 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_requester()
433 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_requester()
437 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_requester()
440 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_requester()
443 SET_FIELD(p_ramrod->flags, in qed_roce_sp_create_requester()
447 p_ramrod->max_ord = qp->max_rd_atomic_req; in qed_roce_sp_create_requester()
448 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_create_requester()
449 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_create_requester()
450 p_ramrod->orq_num_pages = qp->orq_num_pages; in qed_roce_sp_create_requester()
451 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_create_requester()
452 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_create_requester()
453 p_ramrod->dst_qp_id = cpu_to_le32(qp->dest_qp); in qed_roce_sp_create_requester()
454 p_ramrod->ack_timeout_val = cpu_to_le32(qp->ack_timeout); in qed_roce_sp_create_requester()
455 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_create_requester()
456 p_ramrod->initial_psn = cpu_to_le32(qp->sq_psn); in qed_roce_sp_create_requester()
457 p_ramrod->pd = cpu_to_le16(qp->pd); in qed_roce_sp_create_requester()
458 p_ramrod->sq_num_pages = cpu_to_le16(qp->sq_num_pages); in qed_roce_sp_create_requester()
459 DMA_REGPAIR_LE(p_ramrod->sq_pbl_addr, qp->sq_pbl_ptr); in qed_roce_sp_create_requester()
460 DMA_REGPAIR_LE(p_ramrod->orq_pbl_addr, qp->orq_phys_addr); in qed_roce_sp_create_requester()
461 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_create_requester()
462 p_ramrod->qp_handle_for_async.hi = cpu_to_le32(qp->qp_handle_async.hi); in qed_roce_sp_create_requester()
463 p_ramrod->qp_handle_for_async.lo = cpu_to_le32(qp->qp_handle_async.lo); in qed_roce_sp_create_requester()
464 p_ramrod->qp_handle_for_cqe.hi = cpu_to_le32(qp->qp_handle.hi); in qed_roce_sp_create_requester()
465 p_ramrod->qp_handle_for_cqe.lo = cpu_to_le32(qp->qp_handle.lo); in qed_roce_sp_create_requester()
466 p_ramrod->cq_cid = in qed_roce_sp_create_requester()
476 p_ramrod->regular_latency_phy_queue = in qed_roce_sp_create_requester()
478 p_ramrod->low_latency_phy_queue = in qed_roce_sp_create_requester()
481 p_ramrod->dpi = cpu_to_le16(qp->dpi); in qed_roce_sp_create_requester()
483 qed_rdma_set_fw_mac(p_ramrod->remote_mac_addr, qp->remote_mac_addr); in qed_roce_sp_create_requester()
484 qed_rdma_set_fw_mac(p_ramrod->local_mac_addr, qp->local_mac_addr); in qed_roce_sp_create_requester()
486 p_ramrod->udp_src_port = qp->udp_src_port; in qed_roce_sp_create_requester()
487 p_ramrod->vlan_id = cpu_to_le16(qp->vlan_id); in qed_roce_sp_create_requester()
488 p_ramrod->stats_counter_id = RESC_START(p_hwfn, QED_RDMA_STATS_QUEUE) + in qed_roce_sp_create_requester()
515 struct roce_modify_qp_resp_ramrod_data *p_ramrod; in qed_roce_sp_modify_responder() local
539 p_ramrod = &p_ent->ramrod.roce_modify_qp_resp; in qed_roce_sp_modify_responder()
541 p_ramrod->flags = 0; in qed_roce_sp_modify_responder()
543 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
546 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
550 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
554 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
558 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
562 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
567 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
571 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
576 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
581 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_responder()
586 p_ramrod->fields = 0; in qed_roce_sp_modify_responder()
587 SET_FIELD(p_ramrod->fields, in qed_roce_sp_modify_responder()
591 p_ramrod->max_ird = qp->max_rd_atomic_resp; in qed_roce_sp_modify_responder()
592 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_modify_responder()
593 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_modify_responder()
594 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_modify_responder()
595 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_modify_responder()
596 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_modify_responder()
597 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_modify_responder()
609 struct roce_modify_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_modify_requester() local
633 p_ramrod = &p_ent->ramrod.roce_modify_qp_req; in qed_roce_sp_modify_requester()
635 p_ramrod->flags = 0; in qed_roce_sp_modify_requester()
637 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
640 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
643 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
647 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
651 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
656 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
661 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
666 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
670 SET_FIELD(p_ramrod->flags, in qed_roce_sp_modify_requester()
675 p_ramrod->fields = 0; in qed_roce_sp_modify_requester()
676 SET_FIELD(p_ramrod->fields, in qed_roce_sp_modify_requester()
679 SET_FIELD(p_ramrod->fields, in qed_roce_sp_modify_requester()
683 p_ramrod->max_ord = qp->max_rd_atomic_req; in qed_roce_sp_modify_requester()
684 p_ramrod->traffic_class = qp->traffic_class_tos; in qed_roce_sp_modify_requester()
685 p_ramrod->hop_limit = qp->hop_limit_ttl; in qed_roce_sp_modify_requester()
686 p_ramrod->p_key = cpu_to_le16(qp->pkey); in qed_roce_sp_modify_requester()
687 p_ramrod->flow_label = cpu_to_le32(qp->flow_label); in qed_roce_sp_modify_requester()
688 p_ramrod->ack_timeout_val = cpu_to_le32(qp->ack_timeout); in qed_roce_sp_modify_requester()
689 p_ramrod->mtu = cpu_to_le16(qp->mtu); in qed_roce_sp_modify_requester()
690 qed_rdma_copy_gids(qp, p_ramrod->src_gid, p_ramrod->dst_gid); in qed_roce_sp_modify_requester()
702 struct roce_destroy_qp_resp_ramrod_data *p_ramrod; in qed_roce_sp_destroy_qp_responder() local
737 p_ramrod = &p_ent->ramrod.roce_destroy_qp_resp; in qed_roce_sp_destroy_qp_responder()
752 DMA_REGPAIR_LE(p_ramrod->output_params_addr, ramrod_res_phys); in qed_roce_sp_destroy_qp_responder()
782 struct roce_destroy_qp_req_ramrod_data *p_ramrod; in qed_roce_sp_destroy_qp_requester() local
814 p_ramrod = &p_ent->ramrod.roce_destroy_qp_req; in qed_roce_sp_destroy_qp_requester()
815 DMA_REGPAIR_LE(p_ramrod->output_params_addr, ramrod_res_phys); in qed_roce_sp_destroy_qp_requester()