/linux-6.6.21/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 64 static void qib_send_trap(struct qib_ibport *ibp, void *data, unsigned len) in qib_send_trap() argument 73 agent = ibp->rvp.send_agent; in qib_send_trap() 78 if (!(ppd_from_ibp(ibp)->lflags & QIBL_LINKACTIVE)) in qib_send_trap() 82 if (ibp->rvp.trap_timeout && in qib_send_trap() 83 time_before(jiffies, ibp->rvp.trap_timeout)) in qib_send_trap() 97 ibp->rvp.tid++; in qib_send_trap() 98 smp->tid = cpu_to_be64(ibp->rvp.tid); in qib_send_trap() 103 spin_lock_irqsave(&ibp->rvp.lock, flags); in qib_send_trap() 104 if (!ibp->rvp.sm_ah) { in qib_send_trap() 105 if (ibp->rvp.sm_lid != be16_to_cpu(IB_LID_PERMISSIVE)) { in qib_send_trap() [all …]
|
D | qib_ruc.c | 59 static __be64 get_sguid(struct qib_ibport *ibp, unsigned index) in get_sguid() argument 62 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in get_sguid() 66 return ibp->guids[index - 1]; in get_sguid() 82 int qib_ruc_check_hdr(struct qib_ibport *ibp, struct ib_header *hdr, in qib_ruc_check_hdr() argument 100 guid = get_sguid(ibp, grh->sgid_index); in qib_ruc_check_hdr() 102 ibp->rvp.gid_prefix, guid)) in qib_ruc_check_hdr() 110 qib_get_pkey(ibp, qp->s_alt_pkey_index))) { in qib_ruc_check_hdr() 111 qib_bad_pkey(ibp, in qib_ruc_check_hdr() 121 ppd_from_ibp(ibp)->port != in qib_ruc_check_hdr() 139 guid = get_sguid(ibp, grh->sgid_index); in qib_ruc_check_hdr() [all …]
|
D | qib_ud.c | 53 struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in qib_ud_loopback() local 54 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_ud_loopback() 67 qp = rvt_lookup_qpn(rdi, &ibp->rvp, rvt_get_swqe_remote_qpn(swqe)); in qib_ud_loopback() 69 ibp->rvp.n_pkt_drops++; in qib_ud_loopback() 80 ibp->rvp.n_pkt_drops++; in qib_ud_loopback() 85 ppd = ppd_from_ibp(ibp); in qib_ud_loopback() 92 pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); in qib_ud_loopback() 93 pkey2 = qib_get_pkey(ibp, qp->s_pkey_index); in qib_ud_loopback() 97 qib_bad_pkey(ibp, pkey1, in qib_ud_loopback() 150 ibp->rvp.n_vl15_dropped++; in qib_ud_loopback() [all …]
|
D | qib_verbs.c | 225 struct qib_ibport *ibp = &rcd->ppd->ibport_data; in qib_qp_rcv() local 231 ibp->rvp.n_pkt_drops++; in qib_qp_rcv() 242 qib_ud_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv() 250 qib_uc_rcv(ibp, hdr, has_grh, data, tlen, qp); in qib_qp_rcv() 274 struct qib_ibport *ibp = &ppd->ibport_data; in qib_ib_rcv() local 327 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); in qib_ib_rcv() 330 this_cpu_inc(ibp->pmastats->n_multicast_rcv); in qib_ib_rcv() 343 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_ib_rcv() 348 this_cpu_inc(ibp->pmastats->n_unicast_rcv); in qib_ib_rcv() 355 ibp->rvp.n_pkt_drops++; in qib_ib_rcv() [all …]
|
D | qib_verbs.h | 240 void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, 243 void qib_sys_guid_chg(struct qib_ibport *ibp); 244 void qib_node_desc_chg(struct qib_ibport *ibp); 293 void qib_uc_rcv(struct qib_ibport *ibp, struct ib_header *hdr, 304 struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid); 312 void qib_ud_rcv(struct qib_ibport *ibp, struct ib_header *hdr, 319 int qib_ruc_check_hdr(struct qib_ibport *ibp, struct ib_header *hdr, 322 u32 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr,
|
D | qib_rc.c | 601 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in qib_send_rc_ack() local 602 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_send_rc_ack() 630 hwords += qib_make_grh(ibp, &hdr.u.l.grh, in qib_send_rc_ack() 637 bth0 = qib_get_pkey(ibp, qp->s_pkey_index) | (OP(ACKNOWLEDGE) << 24); in qib_send_rc_ack() 646 lrh0 |= ibp->sl_to_vl[rdma_ah_get_sl(&qp->remote_ah_attr)] << 12 | in qib_send_rc_ack() 708 this_cpu_inc(ibp->pmastats->n_unicast_xmit); in qib_send_rc_ack() 713 this_cpu_inc(*ibp->rvp.rc_qacks); in qib_send_rc_ack() 824 struct qib_ibport *ibp; in qib_restart_rc() local 839 ibp = to_iport(qp->ibqp.device, qp->port_num); in qib_restart_rc() 841 ibp->rvp.n_rc_resends++; in qib_restart_rc() [all …]
|
D | qib_driver.c | 304 struct qib_ibport *ibp = &ppd->ibport_data; in qib_rcv_hdrerr() local 352 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_rcv_hdrerr() 367 ibp->rvp.n_pkt_drops++; in qib_rcv_hdrerr() 375 ibp, hdr, in qib_rcv_hdrerr() 387 ibp->rvp.n_rc_seqnak++; in qib_rcv_hdrerr()
|
D | qib_qp.c | 221 struct qib_ibport *ibp = &dd->pport[n].ibport_data; in qib_free_all_qps() local 224 if (rcu_dereference(ibp->rvp.qp[0])) in qib_free_all_qps() 226 if (rcu_dereference(ibp->rvp.qp[1])) in qib_free_all_qps()
|
D | qib_uc.c | 238 void qib_uc_rcv(struct qib_ibport *ibp, struct ib_header *hdr, in qib_uc_rcv() argument 261 if (qib_ruc_check_hdr(ibp, hdr, has_grh, qp, opcode)) in qib_uc_rcv() 514 ibp->rvp.n_pkt_drops++; in qib_uc_rcv()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | mad.c | 59 static u16 hfi1_lookup_pkey_value(struct hfi1_ibport *ibp, int pkey_idx) in hfi1_lookup_pkey_value() argument 61 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_lookup_pkey_value() 83 static void cleanup_traps(struct hfi1_ibport *ibp, struct trap_node *trap) in cleanup_traps() argument 91 spin_lock_irqsave(&ibp->rvp.lock, flags); in cleanup_traps() 92 list_replace_init(&ibp->rvp.trap_lists[i].list, &trap_list); in cleanup_traps() 93 ibp->rvp.trap_lists[i].list_len = 0; in cleanup_traps() 94 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in cleanup_traps() 114 static struct trap_node *check_and_add_trap(struct hfi1_ibport *ibp, in check_and_add_trap() argument 138 spin_lock_irqsave(&ibp->rvp.lock, flags); in check_and_add_trap() 139 trap_list = &ibp->rvp.trap_lists[queue_id]; in check_and_add_trap() [all …]
|
D | ruc.c | 27 int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet) in hfi1_ruc_check_hdr() argument 32 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(&qp->remote_ah_attr)]; in hfi1_ruc_check_hdr() 52 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr() 53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 62 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr() 64 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr() 70 ppd_from_ibp(ibp)->port != in hfi1_ruc_check_hdr() 89 guid = get_sguid(ibp, grh->sgid_index); in hfi1_ruc_check_hdr() 90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 99 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr() [all …]
|
D | ud.c | 33 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ud_loopback() local 47 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback() 50 ibp->rvp.n_pkt_drops++; in ud_loopback() 62 ibp->rvp.n_pkt_drops++; in ud_loopback() 67 ppd = ppd_from_ibp(ibp); in ud_loopback() 72 u8 sc5 = ibp->sl_to_sc[rdma_ah_get_sl(ah_attr)]; in ud_loopback() 74 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback() 80 hfi1_bad_pkey(ibp, pkey, in ud_loopback() 132 ibp->rvp.n_vl15_dropped++; in ud_loopback() 139 ibp->rvp.n_pkt_drops++; in ud_loopback() [all …]
|
D | verbs.c | 333 struct hfi1_ibport *ibp = &ppd->ibport_data; in hfi1_kdeth_eager_rcv() local 360 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_eager_rcv() 378 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_eager_rcv() 387 struct hfi1_ibport *ibp = &ppd->ibport_data; in hfi1_kdeth_expected_rcv() local 414 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_expected_rcv() 432 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_expected_rcv() 459 struct hfi1_ibport *ibp = rcd_to_iport(rcd); in hfi1_handle_packet() local 472 mcast = rvt_mcast_find(&ibp->rvp, in hfi1_handle_packet() 487 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet() 506 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_handle_packet() [all …]
|
D | qp.c | 205 struct hfi1_ibport *ibp; in qp_set_16b() local 217 ibp = to_iport(qp->ibqp.device, qp->port_num); in qp_set_16b() 218 ppd = ppd_from_ibp(ibp); in qp_set_16b() 265 struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_setup_wqe() local 288 ppd = ppd_from_ibp(ibp); in hfi1_setup_wqe() 298 if (ibp->sl_to_sc[rdma_ah_get_sl(&ah->attr)] == 0xf) in hfi1_setup_wqe() 326 struct hfi1_ibport *ibp = in _hfi1_schedule_send() local 328 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in _hfi1_schedule_send() 465 struct hfi1_ibport *ibp = in iowait_sleep() local 468 ibp->rvp.n_dmawait++; in iowait_sleep() [all …]
|
D | ipoib_main.c | 66 struct hfi1_ibport *ibp = to_iport(priv->device, in hfi1_ipoib_dev_open() local 72 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_dev_open() 122 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_attach() local 128 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_attach() 152 struct hfi1_ibport *ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_mcast_detach() local 158 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_detach()
|
D | verbs.h | 192 struct hfi1_ibport *ibp; member 284 void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, 287 void hfi1_sys_guid_chg(struct hfi1_ibport *ibp); 288 void hfi1_node_desc_chg(struct hfi1_ibport *ibp); 381 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey); 394 int hfi1_ruc_check_hdr(struct hfi1_ibport *ibp, struct hfi1_packet *packet); 396 u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr,
|
D | rc.c | 1199 struct hfi1_ibport *ibp; in hfi1_queue_rc_ack() local 1205 ibp = rcd_to_iport(packet->rcd); in hfi1_queue_rc_ack() 1206 this_cpu_inc(*ibp->rvp.rc_qacks); in hfi1_queue_rc_ack() 1226 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); in hfi1_make_rc_ack_9B() local 1227 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_make_rc_ack_9B() 1240 *hwords += hfi1_make_grh(ibp, &hdr->u.l.grh, in hfi1_make_rc_ack_9B() 1250 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_rc_ack_9B() 1279 struct hfi1_ibport *ibp = rcd_to_iport(packet->rcd); in hfi1_make_rc_ack_16B() local 1280 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_make_rc_ack_16B() 1298 *hwords += hfi1_make_grh(ibp, &hdr->u.l.grh, in hfi1_make_rc_ack_16B() [all …]
|
D | driver.c | 213 struct hfi1_ibport *ibp = rcd_to_iport(rcd); in rcv_hdrerr() local 270 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in rcv_hdrerr() 285 ibp->rvp.n_pkt_drops++; in rcv_hdrerr() 327 sl = ibp->sc_to_sl[sc5]; in rcv_hdrerr() 331 qp = rvt_lookup_qpn(rdi, &ibp->rvp, lqpn); in rcv_hdrerr() 404 struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_process_ecn_slowpath() local 405 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_process_ecn_slowpath() 480 hfi1_handle_cnp_tbl[hdr_type](ibp, qp, rqpn, pkey, in hfi1_process_ecn_slowpath() 485 u8 sl = ibp->sc_to_sl[sc]; in hfi1_process_ecn_slowpath() 578 struct hfi1_ibport *ibp = rcd_to_iport(rcd); in __prescan_rxq() local [all …]
|
D | hfi.h | 1697 void return_cnp(struct hfi1_ibport *ibp, struct rvt_qp *qp, u32 remote_qpn, 1700 void return_cnp_16B(struct hfi1_ibport *ibp, struct rvt_qp *qp, 1703 typedef void (*hfi1_handle_cnp)(struct hfi1_ibport *ibp, struct rvt_qp *qp, 1917 static inline struct hfi1_pportdata *ppd_from_ibp(struct hfi1_ibport *ibp) in ppd_from_ibp() argument 1919 return container_of(ibp, struct hfi1_pportdata, ibport_data); in ppd_from_ibp() 1981 static inline u16 hfi1_get_pkey(struct hfi1_ibport *ibp, unsigned index) in hfi1_get_pkey() argument 1983 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_get_pkey() 1997 static inline __be64 get_sguid(struct hfi1_ibport *ibp, unsigned int index) in get_sguid() argument 1999 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in get_sguid() 2434 struct hfi1_ibport *ibp; in hfi1_update_ah_attr() local [all …]
|
D | ipoib_tx.c | 28 struct hfi1_ibport *ibp; member 262 struct hfi1_pportdata *ppd = ppd_from_ibp(txp->ibp); in hfi1_ipoib_build_ib_tx_headers() 288 hfi1_make_grh(txp->ibp, in hfi1_ipoib_build_ib_tx_headers() 592 txp.ibp = to_iport(priv->device, priv->port_num); in hfi1_ipoib_send() 595 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)]; in hfi1_ipoib_send() 634 struct hfi1_ibport *ibp = &sde->ppd->ibport_data; in hfi1_ipoib_sdma_sleep() local 640 ibp->rvp.n_dmawait++; in hfi1_ipoib_sdma_sleep()
|
D | rc.h | 57 struct hfi1_ibport *ibp);
|
D | qp.h | 105 void hfi1_error_port_qps(struct hfi1_ibport *ibp, u8 sl);
|
/linux-6.6.21/drivers/infiniband/sw/rdmavt/ |
D | mcast.c | 106 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, in rvt_mcast_find() argument 113 spin_lock_irqsave(&ibp->lock, flags); in rvt_mcast_find() 114 n = ibp->mcast_tree.rb_node; in rvt_mcast_find() 136 spin_unlock_irqrestore(&ibp->lock, flags); in rvt_mcast_find() 151 static int rvt_mcast_add(struct rvt_dev_info *rdi, struct rvt_ibport *ibp, in rvt_mcast_add() argument 154 struct rb_node **n = &ibp->mcast_tree.rb_node; in rvt_mcast_add() 158 spin_lock_irq(&ibp->lock); in rvt_mcast_add() 220 rb_insert_color(&mcast->rb_node, &ibp->mcast_tree); in rvt_mcast_add() 225 spin_unlock_irq(&ibp->lock); in rvt_mcast_add() 242 struct rvt_ibport *ibp = rdi->ports[qp->port_num - 1]; in rvt_attach_mcast() local [all …]
|
/linux-6.6.21/fs/xfs/ |
D | xfs_iunlink_item.c | 58 struct xfs_buf *ibp; in xfs_iunlink_log_dinode() local 62 error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &ibp); in xfs_iunlink_log_dinode() 70 if (ibp->b_flags & XBF_STALE) in xfs_iunlink_log_dinode() 73 dip = xfs_buf_offset(ibp, ip->i_imap.im_boffset); in xfs_iunlink_log_dinode() 92 xfs_trans_inode_buf(tp, ibp); in xfs_iunlink_log_dinode() 93 xfs_trans_log_buf(tp, ibp, offset, offset + sizeof(xfs_agino_t) - 1); in xfs_iunlink_log_dinode() 96 xfs_trans_brelse(tp, ibp); in xfs_iunlink_log_dinode()
|
/linux-6.6.21/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 731 struct ib_device *ibp; in opa_vnic_vema_send_trap() local 742 ibp = cport->ibdev; in opa_vnic_vema_send_trap() 761 ah_attr.type = rdma_ah_find_type(ibp, port->port_num); in opa_vnic_vema_send_trap() 787 if (ib_find_pkey(ibp, data->opaportnum, IB_DEFAULT_PKEY_FULL, in opa_vnic_vema_send_trap() 791 if (ib_find_pkey(ibp, data->opaportnum, IB_DEFAULT_PKEY_PARTIAL, in opa_vnic_vema_send_trap()
|