/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 49 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) in mlx4_qp_event() argument 56 qp = __mlx4_qp_lookup(dev, qpn); in mlx4_qp_event() 63 mlx4_dbg(dev, "Async event for none existent QP %08x\n", qpn); in mlx4_qp_event() 79 *proxy_qp0 = qp->qpn >= pf_proxy_offset && qp->qpn <= pf_proxy_offset + 1; in is_master_qp0() 81 *real_qp0 = qp->qpn >= dev->phys_caps.base_sqpn && in is_master_qp0() 82 qp->qpn <= dev->phys_caps.base_sqpn + 1; in is_master_qp0() 145 ret = mlx4_cmd(dev, 0, qp->qpn, 2, in __mlx4_qp_modify() 150 port = (qp->qpn & 1) + 1; in __mlx4_qp_modify() 174 cpu_to_be16(mlx4_qp_roce_entropy(dev, qp->qpn)); in __mlx4_qp_modify() 180 cpu_to_be32(qp->qpn); in __mlx4_qp_modify() [all …]
|
D | mcg.c | 125 u32 qpn) in get_promisc_qp() argument 136 if (pqp->qpn == qpn) in get_promisc_qp() 149 unsigned int index, u32 qpn) in new_steering_entry() argument 176 pqp = get_promisc_qp(dev, port, steer, qpn); in new_steering_entry() 183 dqp->qpn = qpn; in new_steering_entry() 209 if (pqp->qpn == qpn) in new_steering_entry() 218 mgm->qp[members_count++] = cpu_to_be32(pqp->qpn & MGM_QPN_MASK); in new_steering_entry() 241 unsigned int index, u32 qpn) in existing_steering_entry() argument 253 pqp = get_promisc_qp(dev, port, steer, qpn); in existing_steering_entry() 272 if (qpn == dqp->qpn) in existing_steering_entry() [all …]
|
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()
|
D | resource_tracker.c | 225 int qpn; member 751 u8 slave, u32 qpn) in update_vport_qp_param() argument 772 if (mlx4_is_qp_reserved(dev, qpn)) in update_vport_qp_param() 786 err = mlx4_update_qp(dev, qpn, MLX4_UPDATE_QP_VSD, ¶ms); in update_vport_qp_param() 1172 static struct res_common *alloc_fs_rule_tr(u64 id, int qpn) in alloc_fs_rule_tr() argument 1182 ret->qpn = qpn; in alloc_fs_rule_tr() 1504 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn, in qp_res_start_move_to() argument 1514 r = res_tracker_lookup(&tracker->res_tree[RES_QP], qpn); in qp_res_start_move_to() 1775 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn) in valid_reserved() argument 1777 return mlx4_is_qp_reserved(dev, qpn) && in valid_reserved() [all …]
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 177 MLX5_SET(rst2init_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 186 MLX5_SET(init2rtr_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 195 MLX5_SET(rtr2rts_qp_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 207 MLX5_SET(qp_2err_in, in, qpn, ipriv->qpn); in mlx5i_init_underlay_qp() 220 MLX5_SET(qp_2rst_in, in, qpn, ipriv->qpn); in mlx5i_uninit_underlay_qp() 233 int qpn = 0; in mlx5i_create_underlay_qp() local 238 qpn = (dev_addr[1] << 16) + (dev_addr[2] << 8) + dev_addr[3]; in mlx5i_create_underlay_qp() 239 MLX5_SET(create_qp_in, in, input_qpn, qpn); in mlx5i_create_underlay_qp() 258 ipriv->qpn = MLX5_GET(create_qp_out, out, qpn); in mlx5i_create_underlay_qp() 263 void mlx5i_destroy_underlay_qp(struct mlx5_core_dev *mdev, u32 qpn) in mlx5i_destroy_underlay_qp() argument [all …]
|
D | ipoib_vlan.c | 72 u32 qpn) in mlx5i_find_qpn_to_netdev_node() argument 74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node() 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() 126 struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn) in mlx5i_pkey_get_netdev() argument 131 node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn); in mlx5i_pkey_get_netdev() [all …]
|
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-5.19.10/drivers/infiniband/hw/mlx5/ |
D | qpc.c | 162 qp->qpn | (rsc_type << MLX5_USER_INDEX_LEN), in create_resource_common() 183 qp->qpn | (qp->common.res << MLX5_USER_INDEX_LEN)); in destroy_resource_common() 208 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct() 227 qp->qpn = MLX5_GET(create_dct_out, out, dctn); in mlx5_core_create_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() 371 static int modify_qp_mbox_alloc(struct mlx5_core_dev *dev, u16 opcode, int qpn, in modify_qp_mbox_alloc() argument 384 MLX5_SET(typ##_in, in, qpn, _qpn); \ in modify_qp_mbox_alloc() [all …]
|
D | cmd.c | 122 u32 qpn, u16 uid) in mlx5_cmd_attach_mcg() argument 128 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_cmd_attach_mcg() 136 u32 qpn, u16 uid) in mlx5_cmd_detach_mcg() argument 142 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_cmd_detach_mcg()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mcg.c | 38 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-5.19.10/drivers/infiniband/hw/qib/ |
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() 155 if (qpt_mask && ((qpn & qpt_mask) >> 1) >= dd->n_krcv_queues) 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() [all …]
|
/linux-5.19.10/drivers/infiniband/sw/rdmavt/ |
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,
|
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,
|
D | trace_rc.h | 22 __field(u32, qpn) 33 __entry->qpn = qp->ibqp.qp_num; 45 __entry->qpn,
|
/linux-5.19.10/drivers/infiniband/hw/hfi1/ |
D | trace_tid.h | 199 __field(u32, qpn) 208 __entry->qpn = qp->ibqp.qp_num; 216 __entry->qpn, 259 __field(u32, qpn) 266 __entry->qpn = qp->ibqp.qp_num; 274 __entry->qpn, 306 __field(u32, qpn) 318 __entry->qpn = qp->ibqp.qp_num; 331 __entry->qpn, 355 __field(u32, qpn) [all …]
|
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,
|
D | trace_iowait.h | 23 __field(u32, qpn) 29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num; 34 __entry->qpn,
|
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 …]
|
D | ipoib_main.c | 69 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-5.19.10/drivers/infiniband/sw/rxe/ |
D | rxe_hdr.h | 65 __be32 qpn; member 180 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn() 183 static inline void __bth_set_qpn(void *arg, u32 qpn) in __bth_set_qpn() argument 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() 196 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn); in __bth_fecn() 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() 213 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn); in __bth_becn() 221 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn() [all …]
|
D | rxe_recv.c | 79 u32 qpn, struct rxe_qp *qp) in check_keys() argument 93 u32 qkey = (qpn == 1) ? GSI_QKEY : qp->attr.qkey; in check_keys() 97 deth_qkey(pkt), qkey, qpn); in check_keys() 174 u32 qpn = bth_qpn(pkt); in hdr_check() local 183 if (unlikely(qpn == 0)) { in hdr_check() 188 if (qpn != IB_MULTICAST_QPN) { in hdr_check() 189 index = (qpn == 1) ? port->qp_gsi_index : qpn; in hdr_check() 193 pr_warn_ratelimited("no qp matches qpn 0x%x\n", qpn); in hdr_check() 205 err = check_keys(rxe, pkt, qpn, qp); in hdr_check()
|
/linux-5.19.10/include/uapi/rdma/ |
D | ib_user_mad.h | 79 __be32 qpn; member 123 __be32 qpn; member 188 __u8 qpn; member 223 __u32 qpn; member
|
/linux-5.19.10/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 198 return qp->qpn >= dev->qp_table.sqp_start && in is_sqp() 199 qp->qpn <= dev->qp_table.sqp_start + 3; in is_sqp() 204 return qp->qpn >= dev->qp_table.sqp_start && in is_qp0() 205 qp->qpn <= dev->qp_table.sqp_start + 1; in is_qp0() 238 void mthca_qp_event(struct mthca_dev *dev, u32 qpn, in mthca_qp_event() argument 245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event() 252 event_type, qpn); in mthca_qp_event() 454 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); in mthca_query_qp() 630 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp() 771 ((qp->qpn & (dev->limits.num_qps - 1)) * MTHCA_RDB_ENTRY_SIZE << in __mthca_modify_qp() [all …]
|
/linux-5.19.10/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 96 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type) in hns_roce_qp_event() argument 102 qp = __hns_roce_qp_lookup(hr_dev, qpn); in hns_roce_qp_event() 108 dev_warn(dev, "Async event for bogus QP %08x\n", qpn); in hns_roce_qp_event() 166 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() 241 hr_qp->qpn = num; in alloc_qpn() 276 if (!hr_qp->qpn) in hns_roce_qp_store() 279 ret = xa_err(xa_store_irq(xa, hr_qp->qpn, hr_qp, GFP_KERNEL)); in hns_roce_qp_store() 296 if (!hr_qp->qpn) in alloc_qpc() [all …]
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
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() 619 MLX5_SET(rst2init_qp_in, in, qpn, dr_qp->qpn); in dr_modify_qp_rst2init() 633 MLX5_SET(rtr2rts_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_rtr2rts() 640 MLX5_SET(rtr2rts_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_rtr2rts() 654 MLX5_SET(init2rtr_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_init2rtr() 675 MLX5_SET(init2rtr_qp_in, in, qpn, dr_qp->qpn); in dr_cmd_modify_qp_init2rtr() 712 rtr_attr.qp_num = dr_qp->qpn; in dr_prepare_qp_to_rts() [all …]
|