Home
last modified time | relevance | path

Searched refs:qpn (Results 1 – 25 of 144) sorted by relevance

123456

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Dqp.c63 qp = __mlx4_qp_lookup(dev, qpn); in mlx4_qp_event()
84 *proxy_qp0 = qp->qpn >= pf_proxy_offset && qp->qpn <= pf_proxy_offset + 1; in is_master_qp0()
155 port = (qp->qpn & 1) + 1; in __mlx4_qp_modify()
185 cpu_to_be32(qp->qpn); in __mlx4_qp_modify()
193 port = (qp->qpn & 1) + 1; in __mlx4_qp_modify()
362 set_param_l(&param, qpn); in mlx4_qp_alloc_icm()
415 if (!qpn) in mlx4_qp_alloc()
418 qp->qpn = qpn; in mlx4_qp_alloc()
437 mlx4_qp_free_icm(dev, qpn); in mlx4_qp_alloc()
958 qp.qpn = qpn; in mlx4_qp_roce_entropy()
[all …]
A Dmcg.c136 if (pqp->qpn == qpn) in get_promisc_qp()
183 dqp->qpn = qpn; in new_steering_entry()
209 if (pqp->qpn == qpn) in new_steering_entry()
272 if (qpn == dqp->qpn) in existing_steering_entry()
280 dqp->qpn = qpn; in existing_steering_entry()
318 if (dqp->qpn == qpn) { in check_duplicate_entry()
451 pqp->qpn = qpn; in add_promisc_qp()
487 dqp->qpn = qpn; in add_promisc_qp()
1067 rule.qpn = qpn; in mlx4_tunnel_steer_add()
1351 qpn = qp->qpn; in mlx4_QP_ATTACH()
[all …]
A Den_resources.c41 int is_tx, int rss, int qpn, int cqn, in mlx4_en_fill_qp_context() argument
63 context->local_qpn = cpu_to_be32(qpn); in mlx4_en_fill_qp_context()
89 en_dbg(HW, priv, "Setting RX qp %x tunnel mode to RX tunneled & non-tunneled\n", qpn); in mlx4_en_fill_qp_context()
104 ret = mlx4_update_qp(priv->mdev->dev, qp->qpn, in mlx4_en_change_mcast_lb()
A Dresource_tracker.c225 int qpn; member
1182 ret->qpn = qpn; in alloc_fs_rule_tr()
1793 int qpn; in qp_alloc_res() local
2365 int qpn; in qp_free_res() local
4148 int qpn; in mlx4_QP_ATTACH_wrapper() local
4161 qp.qpn = qpn; in mlx4_QP_ATTACH_wrapper()
4377 int qpn; in mlx4_QP_FLOW_STEERING_ATTACH_wrapper() local
4394 qpn = be32_to_cpu(ctrl->qpn) & 0xffffff; in mlx4_QP_FLOW_STEERING_ATTACH_wrapper()
4510 int qpn; in mlx4_QP_FLOW_STEERING_DETACH_wrapper() local
4527 qpn = rrule->qpn; in mlx4_QP_FLOW_STEERING_DETACH_wrapper()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
A Dipoib.c220 MLX5_SET(rst2init_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp()
229 MLX5_SET(init2rtr_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp()
238 MLX5_SET(rtr2rts_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp()
250 MLX5_SET(qp_2err_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp()
263 MLX5_SET(qp_2rst_in, in, qpn, ipriv->qpn); in mlx5i_uninit_underlay_qp()
276 int qpn = 0; in mlx5i_create_underlay_qp() local
301 ipriv->qpn = MLX5_GET(create_qp_out, out, qpn); in mlx5i_create_underlay_qp()
311 MLX5_SET(destroy_qp_in, in, qpn, qpn); in mlx5i_destroy_underlay_qp()
546 addr_mod[2] = (ipriv->qpn) & 0xff; in mlx5i_dev_init()
669 ipriv->qpn, gid->raw); in mlx5i_attach_mcast()
[all …]
A Dipoib_vlan.c72 u32 qpn) in mlx5i_find_qpn_to_netdev_node() argument
78 if (node->underlay_qpn == qpn) in mlx5i_find_qpn_to_netdev_node()
85 int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn) in mlx5i_pkey_add_qpn() argument
89 u8 key = hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP); in mlx5i_pkey_add_qpn()
97 new_node->underlay_qpn = qpn; in mlx5i_pkey_add_qpn()
105 int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn) in mlx5i_pkey_del_qpn() argument
112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn()
215 err = mlx5_fs_add_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_open()
245 mlx5_fs_remove_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_open()
268 mlx5_fs_remove_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_close()
[all …]
A Dipoib.h55 u32 qpn; member
69 void mlx5i_destroy_underlay_qp(struct mlx5_core_dev *mdev, u32 qpn);
80 int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn);
81 int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn);
84 struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn);
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dqpc.c209 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct()
254 qp->qpn = MLX5_GET(create_qp_out, out, qpn); in mlx5_qpc_create_qp()
266 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_qpc_create_qp()
279 MLX5_SET(drain_dct_in, in, dctn, qp->qpn); in mlx5_core_drain_dct()
299 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); in mlx5_core_destroy_qp()
513 MLX5_SET(query_qp_in, in, qpn, qp->qpn); in mlx5_core_qp_query()
526 MLX5_SET(query_dct_in, in, dctn, qp->qpn); in mlx5_core_dct_query()
575 rq->qpn = rqn; in mlx5_core_create_rq_tracked()
583 destroy_rq_tracked(dev, rq->qpn, rq->uid); in mlx5_core_create_rq_tracked()
592 destroy_rq_tracked(dev, rq->qpn, rq->uid); in mlx5_core_destroy_rq_tracked()
[all …]
A Dcmd.c129 u32 qpn, u16 uid) in mlx5_cmd_attach_mcg() argument
135 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_cmd_attach_mcg()
143 u32 qpn, u16 uid) in mlx5_cmd_detach_mcg() argument
149 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_cmd_detach_mcg()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Dmcg.c38 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_attach_mcg() argument
44 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_core_attach_mcg()
51 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_detach_mcg() argument
57 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_core_detach_mcg()
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A Dqib_qp.c130 u32 i, offset, max_scan, qpn; in qib_alloc_qpn() local
152 qpn = qpt->last + 2; in qib_alloc_qpn()
153 if (qpn >= RVT_QPN_MAX) in qib_alloc_qpn()
154 qpn = 2; in qib_alloc_qpn()
156 qpn = (qpn | qpt_mask) + 2; in qib_alloc_qpn()
157 offset = qpn & RVT_BITS_PER_PAGE_MASK; in qib_alloc_qpn()
158 map = &qpt->map[qpn / RVT_BITS_PER_PAGE]; in qib_alloc_qpn()
168 qpt->last = qpn; in qib_alloc_qpn()
169 ret = qpn; in qib_alloc_qpn()
174 qpn = mk_qpn(qpt, map, offset); in qib_alloc_qpn()
[all …]
/linux-6.3-rc2/drivers/infiniband/sw/rdmavt/
A Dtrace_qp.h22 __field(u32, qpn)
27 __entry->qpn = qp->ibqp.qp_num;
33 __entry->qpn,
52 __field(u32, qpn)
59 __entry->qpn = qp->ibqp.qp_num;
67 __entry->qpn,
A Dtrace_tx.h55 __field(u32, qpn)
75 __entry->qpn = qp->ibqp.qp_num;
97 __entry->qpn,
122 __field(u32, qpn)
134 __entry->qpn = qp->ibqp.qp_num;
145 __entry->qpn,
A Dtrace_rc.h22 __field(u32, qpn)
33 __entry->qpn = qp->ibqp.qp_num;
45 __entry->qpn,
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Dtrace_tid.h216 __entry->qpn,
274 __entry->qpn,
331 __entry->qpn,
366 __entry->qpn,
440 __entry->qpn,
476 __entry->qpn,
538 __entry->qpn,
664 __entry->qpn,
704 __entry->qpn,
788 __entry->qpn,
[all …]
A Dtrace_rc.h22 __field(u32, qpn)
33 __entry->qpn = qp->ibqp.qp_num;
45 __entry->qpn,
84 __field(u32, qpn)
93 __entry->qpn = qp->ibqp.qp_num;
103 __entry->qpn,
A Dtrace_iowait.h23 __field(u32, qpn)
29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num;
34 __entry->qpn,
A Dtrace_ibhdrs.h77 u16 *pkey, u32 *psn, u32 *qpn);
84 u32 *psn, u32 *qpn);
100 u8 tver, u16 pkey, u32 psn, u32 qpn,
143 __field(u32, qpn)
185 &__entry->qpn);
209 &__entry->qpn);
256 __entry->qpn,
302 __field(u32, qpn)
350 &__entry->qpn);
377 &__entry->qpn);
[all …]
A Dipoib_main.c69 u32 qpn = qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_dev_open() local
72 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_dev_open()
121 u32 qpn = (u32)qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_mcast_attach() local
128 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_attach()
151 u32 qpn = (u32)qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_mcast_detach() local
158 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_detach()
/linux-6.3-rc2/include/uapi/rdma/
A Dib_user_mad.h79 __be32 qpn; member
123 __be32 qpn; member
188 __u8 qpn; member
223 __u32 qpn; member
/linux-6.3-rc2/drivers/infiniband/sw/rxe/
A Drxe_hdr.h65 __be32 qpn; member
180 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn()
186 u32 resvqpn = be32_to_cpu(bth->qpn); in __bth_set_qpn()
188 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) | in __bth_set_qpn()
204 bth->qpn |= cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
206 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
221 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
223 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
237 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); in __bth_set_resv6a()
347 __bth_set_qpn(pkt->hdr, qpn); in bth_set_qpn()
[all …]
A Drxe_recv.c68 u32 qpn, struct rxe_qp *qp) in check_keys() argument
81 u32 qkey = (qpn == 1) ? GSI_QKEY : qp->attr.qkey; in check_keys()
132 u32 qpn = bth_qpn(pkt); in hdr_check() local
139 if (unlikely(qpn == 0)) in hdr_check()
142 if (qpn != IB_MULTICAST_QPN) { in hdr_check()
143 index = (qpn == 1) ? port->qp_gsi_index : qpn; in hdr_check()
157 err = check_keys(rxe, pkt, qpn, qp); in hdr_check()
/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A Dmthca_qp.c252 event_type, qpn); in mthca_qp_event()
1138 qp->qpn, &qp->rq.db); in mthca_alloc_memfree()
1143 qp->qpn, &qp->sq.db); in mthca_alloc_memfree()
1315 if (qp->qpn == -1) in mthca_alloc_qp()
1372 int qpn, in mthca_alloc_sqp() argument
1403 qp->qpn = mqpn; in mthca_alloc_sqp()
1658 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_send()
1811 (qp->qpn << 8) | size0, in mthca_tavor_post_send()
1854 " %d max, %d nreq)\n", qp->qpn, in mthca_tavor_post_receive()
1988 " %d max, %d nreq)\n", qp->qpn, in mthca_arbel_post_send()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c166 type, hr_qp->qpn); in hns_roce_ib_qp_event()
192 unsigned long *qpn) in alloc_qpn_with_bankid() argument
208 *qpn = (id << 3) | bankid; in alloc_qpn_with_bankid()
238 hr_qp->qpn = num; in alloc_qpn()
273 if (!hr_qp->qpn) in hns_roce_qp_store()
293 if (!hr_qp->qpn) in alloc_qpc()
313 hr_qp->qpn); in alloc_qpc()
323 hr_qp->qpn); in alloc_qpc()
366 __xa_erase(xa, hr_qp->qpn); in hns_roce_qp_remove()
382 return (u8)(qpn & GENMASK(2, 0)); in get_qp_bankid()
[all …]
/linux-6.3-rc2/include/linux/mlx4/
A Ddevice.h756 int qpn; member
917 __be32 qpn; member
1045 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) in mlx4_is_qp_reserved() argument
1047 return (qpn < dev->phys_caps.base_sqpn + 8 + in mlx4_is_qp_reserved()
1049 qpn >= dev->phys_caps.base_sqpn) || in mlx4_is_qp_reserved()
1050 (qpn < dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW]); in mlx4_is_qp_reserved()
1057 if (qpn >= guest_proxy_base && qpn < guest_proxy_base + 8) in mlx4_is_guest_proxy()
1262 u32 qpn; member
1273 __be32 qpn; member
1440 int port, int qpn, u16 prio, u64 *reg_id);
[all …]

Completed in 69 milliseconds

123456