/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | qp.c | 56 qp = __mlx4_qp_lookup(dev, qpn); in mlx4_qp_event() 79 *proxy_qp0 = qp->qpn >= pf_proxy_offset && qp->qpn <= pf_proxy_offset + 1; in is_master_qp0() 150 port = (qp->qpn & 1) + 1; in __mlx4_qp_modify() 180 cpu_to_be32(qp->qpn); in __mlx4_qp_modify() 188 port = (qp->qpn & 1) + 1; in __mlx4_qp_modify() 357 set_param_l(¶m, qpn); in mlx4_qp_alloc_icm() 410 if (!qpn) in mlx4_qp_alloc() 413 qp->qpn = qpn; in mlx4_qp_alloc() 432 mlx4_qp_free_icm(dev, qpn); in mlx4_qp_alloc() 953 qp.qpn = qpn; in mlx4_qp_roce_entropy() [all …]
|
A D | mcg.c | 136 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 D | en_resources.c | 41 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 D | resource_tracker.c | 225 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/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
A D | ipoib.c | 171 MLX5_SET(rst2init_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 180 MLX5_SET(init2rtr_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 189 MLX5_SET(rtr2rts_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 201 MLX5_SET(qp_2err_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 214 MLX5_SET(qp_2rst_in, in, qpn, ipriv->qpn); in mlx5i_uninit_underlay_qp() 227 int qpn = 0; in mlx5i_create_underlay_qp() local 252 ipriv->qpn = MLX5_GET(create_qp_out, out, qpn); in mlx5i_create_underlay_qp() 262 MLX5_SET(destroy_qp_in, in, qpn, qpn); in mlx5i_destroy_underlay_qp() 482 addr_mod[2] = (ipriv->qpn) & 0xff; in mlx5i_dev_init() 600 ipriv->qpn, gid->raw); in mlx5i_attach_mcast() [all …]
|
A D | ipoib_vlan.c | 72 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() 207 err = mlx5_fs_add_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_open() 233 mlx5_fs_remove_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_open() 256 mlx5_fs_remove_rx_underlay_qpn(mdev, ipriv->qpn); in mlx5i_pkey_close() [all …]
|
A D | ipoib.h | 55 u32 qpn; member 67 void mlx5i_destroy_underlay_qp(struct mlx5_core_dev *mdev, u32 qpn); 78 int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn); 79 int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn); 82 struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn);
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | qpc.c | 208 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct() 253 qp->qpn = MLX5_GET(create_qp_out, out, qpn); in mlx5_qpc_create_qp() 265 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_qpc_create_qp() 278 MLX5_SET(drain_dct_in, in, dctn, qp->qpn); in mlx5_core_drain_dct() 298 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); in mlx5_core_destroy_qp() 512 MLX5_SET(query_qp_in, in, qpn, qp->qpn); in mlx5_core_qp_query() 523 MLX5_SET(query_dct_in, in, dctn, qp->qpn); in mlx5_core_dct_query() 572 rq->qpn = rqn; in mlx5_core_create_rq_tracked() 580 destroy_rq_tracked(dev, rq->qpn, rq->uid); in mlx5_core_create_rq_tracked() 589 destroy_rq_tracked(dev, rq->qpn, rq->uid); in mlx5_core_destroy_rq_tracked() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | mcg.c | 39 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_attach_mcg() argument 45 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_core_attach_mcg() 52 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_detach_mcg() argument 58 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_core_detach_mcg()
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_qp.c | 130 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/drivers/infiniband/hw/hfi1/ |
A D | trace_tid.h | 216 __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 D | trace_rc.h | 22 __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 D | trace_ibhdrs.h | 77 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 D | ipoib_main.c | 60 u32 qpn = qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_dev_open() local 63 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_dev_open() 112 u32 qpn = (u32)qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_mcast_attach() local 119 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_attach() 142 u32 qpn = (u32)qpn_from_mac(priv->netdev->dev_addr); in hfi1_ipoib_mcast_detach() local 149 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_detach()
|
A D | trace_iowait.h | 23 __field(u32, qpn) 29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num; 34 __entry->qpn,
|
/linux/drivers/infiniband/sw/rdmavt/ |
A D | trace_qp.h | 22 __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 D | trace_tx.h | 55 __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 D | trace_rc.h | 22 __field(u32, qpn) 33 __entry->qpn = qp->ibqp.qp_num; 45 __entry->qpn,
|
/linux/drivers/infiniband/sw/rxe/ |
A D | rxe_hdr.h | 65 __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 D | rxe_recv.c | 80 u32 qpn, struct rxe_qp *qp) in check_keys() argument 94 u32 qkey = (qpn == 1) ? GSI_QKEY : qp->attr.qkey; in check_keys() 98 deth_qkey(pkt), qkey, qpn); in check_keys() 175 u32 qpn = bth_qpn(pkt); in hdr_check() local 184 if (unlikely(qpn == 0)) { in hdr_check() 189 if (qpn != IB_MULTICAST_QPN) { in hdr_check() 190 index = (qpn == 1) ? port->qp_gsi_index : qpn; in hdr_check() 194 pr_warn_ratelimited("no qp matches qpn 0x%x\n", qpn); in hdr_check() 206 err = check_keys(rxe, pkt, qpn, qp); in hdr_check()
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_qp.c | 252 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/include/uapi/rdma/ |
A D | ib_user_mad.h | 79 __be32 qpn; member 123 __be32 qpn; member 188 __u8 qpn; member 223 __u32 qpn; member
|
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_qp.c | 168 type, hr_qp->qpn); in hns_roce_ib_qp_event() 194 unsigned long *qpn) in alloc_qpn_with_bankid() argument 210 *qpn = (id << 3) | bankid; in alloc_qpn_with_bankid() 249 hr_qp->qpn = num; in alloc_qpn() 304 if (!hr_qp->qpn) in hns_roce_qp_store() 324 if (!hr_qp->qpn) in alloc_qpc() 349 hr_qp->qpn); in alloc_qpc() 359 hr_qp->qpn); in alloc_qpc() 397 __xa_erase(xa, hr_qp->qpn); in hns_roce_qp_remove() 418 return (u8)(qpn & GENMASK(2, 0)); in get_qp_bankid() [all …]
|
/linux/include/linux/mlx4/ |
A D | device.h | 756 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 …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_send.c | 185 dr_qp->qpn = MLX5_GET(create_qp_out, out, qpn); in dr_create_rc_qp() 208 MLX5_SET(destroy_qp_in, in, qpn, dr_qp->qpn); in dr_destroy_qp() 248 wq_ctrl->qpn_ds = cpu_to_be32(size | dr_qp->qpn << 8); in dr_rdma_segments() 330 send_ring->qp->qpn); in dr_handle_pending_wc() 617 MLX5_SET(rst2init_qp_in, in, qpn, dr_qp->qpn); in dr_modify_qp_rst2init() 631 MLX5_SET(rtr2rts_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_rtr2rts() 638 MLX5_SET(rtr2rts_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_rtr2rts() 652 MLX5_SET(init2rtr_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_init2rtr() 673 MLX5_SET(init2rtr_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_init2rtr() 710 rtr_attr.qp_num = dr_qp->qpn; in dr_prepare_qp_to_rts() [all …]
|