/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/ |
D | mad.c | 105 struct rvt_ibport *rvp; in rvt_create_mad_agents() local 110 rvp = rdi->ports[p]; in rvt_create_mad_agents() 120 rvp->send_agent = agent; in rvt_create_mad_agents() 130 rvp = rdi->ports[p]; in rvt_create_mad_agents() 131 if (rvp->send_agent) { in rvt_create_mad_agents() 132 agent = rvp->send_agent; in rvt_create_mad_agents() 133 rvp->send_agent = NULL; in rvt_create_mad_agents() 152 struct rvt_ibport *rvp; in rvt_free_mad_agents() local 156 rvp = rdi->ports[p]; in rvt_free_mad_agents() 157 if (rvp->send_agent) { in rvt_free_mad_agents() [all …]
|
D | vt.c | 158 struct rvt_ibport *rvp; in rvt_query_port() local 164 rvp = rdi->ports[port_index]; in rvt_query_port() 166 props->sm_lid = rvp->sm_lid; in rvt_query_port() 167 props->sm_sl = rvp->sm_sl; in rvt_query_port() 168 props->port_cap_flags = rvp->port_cap_flags; in rvt_query_port() 171 props->bad_pkey_cntr = rvp->pkey_violations; in rvt_query_port() 172 props->qkey_viol_cntr = rvp->qkey_violations; in rvt_query_port() 173 props->subnet_timeout = rvp->subnet_timeout; in rvt_query_port() 193 struct rvt_ibport *rvp; in rvt_modify_port() local 200 rvp = rdi->ports[port_index]; in rvt_modify_port() [all …]
|
D | qp.c | 773 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_remove_qp() local 780 if (rcu_dereference_protected(rvp->qp[0], in rvt_remove_qp() 782 RCU_INIT_POINTER(rvp->qp[0], NULL); in rvt_remove_qp() 783 } else if (rcu_dereference_protected(rvp->qp[1], in rvt_remove_qp() 785 RCU_INIT_POINTER(rvp->qp[1], NULL); in rvt_remove_qp() 1432 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_insert_qp() local 1439 rcu_assign_pointer(rvp->qp[qp->ibqp.qp_num], qp); in rvt_insert_qp() 2649 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_rc_timeout() local 2652 rvp->n_rc_timeouts++; in rvt_rc_timeout() 2762 struct rvt_ibport *rvp; in rvt_qp_iter_next() local [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
D | qib_mad.c | 73 agent = ibp->rvp.send_agent; 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() 108 ah = qib_create_qp0_ah(ibp, (u16)ibp->rvp.sm_lid); in qib_send_trap() 113 ibp->rvp.sm_ah = ibah_to_rvtah(ah); in qib_send_trap() [all …]
|
D | qib_ud.c | 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() 150 ibp->rvp.n_vl15_dropped++; in qib_ud_loopback() 157 ibp->rvp.n_pkt_drops++; in qib_ud_loopback() 215 ibp->rvp.n_loop_pkts++; in qib_ud_loopback() 539 ibp->rvp.n_vl15_dropped++; in qib_ud_rcv() 581 ibp->rvp.n_pkt_drops++; in qib_ud_rcv()
|
D | qib_verbs.c | 231 ibp->rvp.n_pkt_drops++; in qib_qp_rcv() 327 mcast = rvt_mcast_find(&ibp->rvp, &hdr->u.l.grh.dgid, lid); in qib_ib_rcv() 343 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_ib_rcv() 355 ibp->rvp.n_pkt_drops++; in qib_ib_rcv() 862 ibp->rvp.n_unaligned++; in qib_verbs_send_dma() 1287 static int qib_get_guid_be(struct rvt_dev_info *rdi, struct rvt_ibport *rvp, in qib_get_guid_be() argument 1290 struct qib_ibport *ibp = container_of(rvp, struct qib_ibport, rvp); in qib_get_guid_be() 1352 qp0 = rcu_dereference(ibp->rvp.qp[0]); in qib_create_qp0_ah() 1393 spin_lock_init(&ibp->rvp.lock); in init_ibport() 1395 ibp->rvp.gid_prefix = IB_DEFAULT_GID_PREFIX; in init_ibport() [all …]
|
D | qib_ruc.c | 102 ibp->rvp.gid_prefix, guid)) in qib_ruc_check_hdr() 141 ibp->rvp.gid_prefix, guid)) in qib_ruc_check_hdr() 195 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in qib_make_grh()
|
D | qib_sysfs.c | 415 .counter = offsetof(struct qib_ibport, rvp.n_##N) \ 421 .counter = offsetof(struct qib_ibport, rvp.z_##N) \ 484 qibp->rvp.z_##cntr = get_all_cpu_total(qibp->rvp.cntr); \ 493 #define READ_PER_CPU_CNTR(cntr) (get_all_cpu_total(qibp->rvp.cntr) - \ in def_write_per_cpu() 494 qibp->rvp.z_##cntr) in def_write_per_cpu()
|
D | qib_rc.c | 712 this_cpu_inc(*ibp->rvp.rc_qacks); in qib_send_rc_ack() 840 ibp->rvp.n_rc_resends++; in qib_restart_rc() 842 ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; in qib_restart_rc() 966 this_cpu_inc(*ibp->rvp.rc_delayed_comp); in do_rc_completion() 1105 this_cpu_inc(*ibp->rvp.rc_acks); in do_rc_ack() 1137 ibp->rvp.n_rnr_naks++; in do_rc_ack() 1152 ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; in do_rc_ack() 1169 ibp->rvp.n_seq_naks++; in do_rc_ack() 1182 ibp->rvp.n_other_naks++; in do_rc_ack() 1187 ibp->rvp.n_other_naks++; in do_rc_ack() [all …]
|
D | qib_init.c | 241 ppd->ibport_data.rvp.rc_acks = alloc_percpu(u64); in qib_init_pportdata() 242 ppd->ibport_data.rvp.rc_qacks = alloc_percpu(u64); in qib_init_pportdata() 243 ppd->ibport_data.rvp.rc_delayed_comp = alloc_percpu(u64); in qib_init_pportdata() 244 if (!(ppd->ibport_data.rvp.rc_acks) || in qib_init_pportdata() 245 !(ppd->ibport_data.rvp.rc_qacks) || in qib_init_pportdata() 246 !(ppd->ibport_data.rvp.rc_delayed_comp)) in qib_init_pportdata() 611 free_percpu(ppd->ibport_data.rvp.rc_acks); in qib_free_pportdata() 612 free_percpu(ppd->ibport_data.rvp.rc_qacks); in qib_free_pportdata() 613 free_percpu(ppd->ibport_data.rvp.rc_delayed_comp); in qib_free_pportdata()
|
D | qib_driver.c | 351 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in qib_rcv_hdrerr() 366 ibp->rvp.n_pkt_drops++; in qib_rcv_hdrerr() 386 ibp->rvp.n_rc_seqnak++; in qib_rcv_hdrerr()
|
D | qib_qp.c | 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_verbs.h | 145 struct rvt_ibport rvp; member
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | mad.c | 133 spin_lock_irqsave(&ibp->rvp.lock, flags); in cleanup_traps() 134 list_replace_init(&ibp->rvp.trap_lists[i].list, &trap_list); in cleanup_traps() 135 ibp->rvp.trap_lists[i].list_len = 0; in cleanup_traps() 136 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in cleanup_traps() 180 spin_lock_irqsave(&ibp->rvp.lock, flags); in check_and_add_trap() 181 trap_list = &ibp->rvp.trap_lists[queue_id]; in check_and_add_trap() 208 if (!timer_pending(&ibp->rvp.trap_timer)) { in check_and_add_trap() 216 (1UL << ibp->rvp.subnet_timeout)) / 1000; in check_and_add_trap() 217 mod_timer(&ibp->rvp.trap_timer, in check_and_add_trap() 223 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in check_and_add_trap() [all …]
|
D | verbs.c | 402 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_eager_rcv() 420 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_eager_rcv() 456 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_kdeth_expected_rcv() 474 ibp->rvp.n_pkt_drops++; in hfi1_kdeth_expected_rcv() 514 mcast = rvt_mcast_find(&ibp->rvp, in hfi1_handle_packet() 529 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet() 548 packet->qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in hfi1_handle_packet() 560 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet() 568 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet() 1500 static int hfi1_get_guid_be(struct rvt_dev_info *rdi, struct rvt_ibport *rvp, in hfi1_get_guid_be() argument [all …]
|
D | ipoib_main.c | 63 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_dev_open() 136 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_attach() 166 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_detach()
|
D | ud.c | 89 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback() 92 ibp->rvp.n_pkt_drops++; in ud_loopback() 104 ibp->rvp.n_pkt_drops++; in ud_loopback() 174 ibp->rvp.n_vl15_dropped++; in ud_loopback() 181 ibp->rvp.n_pkt_drops++; in ud_loopback() 259 ibp->rvp.n_loop_pkts++; in ud_loopback() 827 if (ibp->rvp.port_cap_flags & IB_PORT_SM) in opa_smp_check() 998 ibp->rvp.n_vl15_dropped++; in hfi1_ud_rcv() 1068 ibp->rvp.n_pkt_drops++; in hfi1_ud_rcv()
|
D | rc.c | 1247 this_cpu_inc(*ibp->rvp.rc_qacks); in hfi1_queue_rc_ack() 1660 ibp->rvp.n_rc_resends++; in hfi1_restart_rc() 1662 ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); in hfi1_restart_rc() 1890 this_cpu_inc(*ibp->rvp.rc_delayed_comp); in do_rc_completion() 2115 this_cpu_inc(*ibp->rvp.rc_acks); in do_rc_ack() 2205 ibp->rvp.n_rnr_naks++; in do_rc_ack() 2234 ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); in do_rc_ack() 2248 ibp->rvp.n_seq_naks++; in do_rc_ack() 2261 ibp->rvp.n_other_naks++; in do_rc_ack() 2266 ibp->rvp.n_other_naks++; in do_rc_ack() [all …]
|
D | ruc.c | 95 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 132 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 180 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
|
D | hfi.h | 2425 ppd->ibport_data.rvp.z_rc_acks = in hfi1_reset_cpu_counters() 2426 get_all_cpu_total(ppd->ibport_data.rvp.rc_acks); in hfi1_reset_cpu_counters() 2427 ppd->ibport_data.rvp.z_rc_qacks = in hfi1_reset_cpu_counters() 2428 get_all_cpu_total(ppd->ibport_data.rvp.rc_qacks); in hfi1_reset_cpu_counters() 2504 rdma_ah_set_subnet_prefix(attr, ibp->rvp.gid_prefix); in hfi1_update_ah_attr() 2635 grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_ext_grh() 2649 grh->dgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_ext_grh()
|
D | driver.c | 317 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in rcv_hdrerr() 332 ibp->rvp.n_pkt_drops++; in rcv_hdrerr() 378 qp = rvt_lookup_qpn(rdi, &ibp->rvp, lqpn); in rcv_hdrerr() 664 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qpn); in __prescan_rxq() 1565 ibp->rvp.n_pkt_drops++; in hfi1_setup_9B_packet() 1648 ibp->rvp.n_pkt_drops++; in hfi1_setup_bypass_packet() 1752 ++ibp->rvp.n_pkt_drops; in hfi1_ipoib_ib_rcv()
|
D | qp.c | 509 ibp->rvp.n_dmawait++; in iowait_sleep() 763 if (rcu_dereference(ibp->rvp.qp[0])) in free_all_qps() 765 if (rcu_dereference(ibp->rvp.qp[1])) in free_all_qps()
|
D | verbs.h | 270 struct rvt_ibport rvp; member
|
/kernel/linux/linux-5.10/include/rdma/ |
D | rdmavt_qp.h | 699 struct rvt_ibport *rvp, in rvt_lookup_qpn() argument 705 qp = rcu_dereference(rvp->qp[qpn]); in rvt_lookup_qpn() 986 struct rvt_ibport *rvp = rvt_to_iport(qp); in rvt_rc_credit_avail() local 989 rvp->n_rc_crwaits++; in rvt_rc_credit_avail()
|
D | rdma_vt.h | 306 int (*get_guid_be)(struct rvt_dev_info *rdi, struct rvt_ibport *rvp,
|