Home
last modified time | relevance | path

Searched refs:rvp (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/infiniband/sw/rdmavt/
H A Dmad.c63 struct rvt_ibport *rvp; in rvt_create_mad_agents() local
68 rvp = rdi->ports[p]; in rvt_create_mad_agents()
78 rvp->send_agent = agent; in rvt_create_mad_agents()
88 rvp = rdi->ports[p]; in rvt_create_mad_agents()
89 if (rvp->send_agent) { in rvt_create_mad_agents()
90 agent = rvp->send_agent; in rvt_create_mad_agents()
91 rvp->send_agent = NULL; in rvt_create_mad_agents()
110 struct rvt_ibport *rvp; in rvt_free_mad_agents() local
114 rvp = rdi->ports[p]; in rvt_free_mad_agents()
115 if (rvp->send_agent) { in rvt_free_mad_agents()
[all …]
H A Dvt.c123 struct rvt_ibport *rvp; in rvt_query_port() local
126 rvp = rdi->ports[port_index]; in rvt_query_port()
128 props->sm_lid = rvp->sm_lid; in rvt_query_port()
129 props->sm_sl = rvp->sm_sl; in rvt_query_port()
130 props->port_cap_flags = rvp->port_cap_flags; in rvt_query_port()
133 props->bad_pkey_cntr = rvp->pkey_violations; in rvt_query_port()
134 props->qkey_viol_cntr = rvp->qkey_violations; in rvt_query_port()
135 props->subnet_timeout = rvp->subnet_timeout; in rvt_query_port()
155 struct rvt_ibport *rvp; in rvt_modify_port() local
159 rvp = rdi->ports[port_index]; in rvt_modify_port()
[all …]
H A Dqp.c731 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_remove_qp() local
738 if (rcu_dereference_protected(rvp->qp[0], in rvt_remove_qp()
740 RCU_INIT_POINTER(rvp->qp[0], NULL); in rvt_remove_qp()
741 } else if (rcu_dereference_protected(rvp->qp[1], in rvt_remove_qp()
743 RCU_INIT_POINTER(rvp->qp[1], NULL); in rvt_remove_qp()
1374 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_insert_qp() local
1381 rcu_assign_pointer(rvp->qp[qp->ibqp.qp_num], qp); in rvt_insert_qp()
2596 struct rvt_ibport *rvp = rdi->ports[qp->port_num - 1]; in rvt_rc_timeout() local
2599 rvp->n_rc_timeouts++; in rvt_rc_timeout()
2709 struct rvt_ibport *rvp; in rvt_qp_iter_next() local
[all …]
/linux/drivers/infiniband/hw/qib/
H A Dqib_mad.c73 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 …]
H A Dqib_ud.c67 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()
540 ibp->rvp.n_vl15_dropped++; in qib_ud_rcv()
582 ibp->rvp.n_pkt_drops++; in qib_ud_rcv()
H A Dqib_verbs.c231 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 …]
H A Dqib_ruc.c102 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()
H A Dqib_rc.c713 this_cpu_inc(*ibp->rvp.rc_qacks); in qib_send_rc_ack()
841 ibp->rvp.n_rc_resends++; in qib_restart_rc()
843 ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; in qib_restart_rc()
967 this_cpu_inc(*ibp->rvp.rc_delayed_comp); in do_rc_completion()
1106 this_cpu_inc(*ibp->rvp.rc_acks); in do_rc_ack()
1138 ibp->rvp.n_rnr_naks++; in do_rc_ack()
1153 ibp->rvp.n_rc_resends += (qp->s_psn - psn) & QIB_PSN_MASK; in do_rc_ack()
1170 ibp->rvp.n_seq_naks++; in do_rc_ack()
1183 ibp->rvp.n_other_naks++; in do_rc_ack()
1188 ibp->rvp.n_other_naks++; in do_rc_ack()
[all …]
H A Dqib_init.c241 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()
608 free_percpu(ppd->ibport_data.rvp.rc_acks); in qib_free_pportdata()
609 free_percpu(ppd->ibport_data.rvp.rc_qacks); in qib_free_pportdata()
610 free_percpu(ppd->ibport_data.rvp.rc_delayed_comp); in qib_free_pportdata()
H A Dqib_qp.c224 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()
H A Dqib_verbs.h145 struct rvt_ibport rvp; member
H A Dqib_uc.c514 ibp->rvp.n_pkt_drops++; in qib_uc_rcv()
/linux/drivers/infiniband/hw/hfi1/
H A Dmad.c91 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()
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()
166 if (!timer_pending(&ibp->rvp.trap_timer)) { in check_and_add_trap()
174 (1UL << ibp->rvp.subnet_timeout)) / 1000; in check_and_add_trap()
175 mod_timer(&ibp->rvp.trap_timer, in check_and_add_trap()
181 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in check_and_add_trap()
[all …]
H A Dverbs.c360 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()
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()
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()
518 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet()
526 ibp->rvp.n_pkt_drops++; in hfi1_handle_packet()
1456 static int hfi1_get_guid_be(struct rvt_dev_info *rdi, struct rvt_ibport *rvp, in hfi1_get_guid_be() argument
[all …]
H A Dipoib_main.c61 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_dev_open()
116 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_attach()
146 qp = rvt_lookup_qpn(ib_to_rvt(priv->device), &ibp->rvp, qpn); in hfi1_ipoib_mcast_detach()
H A Dud.c47 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()
132 ibp->rvp.n_vl15_dropped++; in ud_loopback()
139 ibp->rvp.n_pkt_drops++; in ud_loopback()
217 ibp->rvp.n_loop_pkts++; in ud_loopback()
786 if (ibp->rvp.port_cap_flags & IB_PORT_SM) in opa_smp_check()
952 ibp->rvp.n_vl15_dropped++; in hfi1_ud_rcv()
1022 ibp->rvp.n_pkt_drops++; in hfi1_ud_rcv()
H A Drc.c1206 this_cpu_inc(*ibp->rvp.rc_qacks); in hfi1_queue_rc_ack()
1618 ibp->rvp.n_rc_resends++; in hfi1_restart_rc()
1620 ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); in hfi1_restart_rc()
1848 this_cpu_inc(*ibp->rvp.rc_delayed_comp); in do_rc_completion()
2073 this_cpu_inc(*ibp->rvp.rc_acks); in do_rc_ack()
2163 ibp->rvp.n_rnr_naks++; in do_rc_ack()
2192 ibp->rvp.n_rc_resends += delta_psn(qp->s_psn, psn); in do_rc_ack()
2206 ibp->rvp.n_seq_naks++; in do_rc_ack()
2219 ibp->rvp.n_other_naks++; in do_rc_ack()
2224 ibp->rvp.n_other_naks++; in do_rc_ack()
[all …]
H A Druc.c53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
138 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
H A Ddriver.c270 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qp_num); in rcv_hdrerr()
285 ibp->rvp.n_pkt_drops++; in rcv_hdrerr()
331 qp = rvt_lookup_qpn(rdi, &ibp->rvp, lqpn); in rcv_hdrerr()
617 qp = rvt_lookup_qpn(rdi, &ibp->rvp, qpn); in __prescan_rxq()
1518 ibp->rvp.n_pkt_drops++; in hfi1_setup_9B_packet()
1601 ibp->rvp.n_pkt_drops++; in hfi1_setup_bypass_packet()
1703 ++ibp->rvp.n_pkt_drops; in hfi1_ipoib_ib_rcv()
H A Dqp.c468 ibp->rvp.n_dmawait++; in iowait_sleep()
722 if (rcu_dereference(ibp->rvp.qp[0])) in free_all_qps()
724 if (rcu_dereference(ibp->rvp.qp[1])) in free_all_qps()
H A Dverbs.h228 struct rvt_ibport rvp; member
H A Duc.c537 ibp->rvp.n_pkt_drops++; in hfi1_uc_rcv()
/linux/include/linux/sunrpc/
H A Dcache.h307 static inline int get_expiry(char **bpp, time64_t *rvp) in get_expiry() argument
312 error = get_time(bpp, rvp); in get_expiry()
317 (*rvp) -= boot.tv_sec; in get_expiry()
/linux/include/rdma/
H A Drdmavt_qp.h700 struct rvt_ibport *rvp, in rvt_lookup_qpn()
706 qp = rcu_dereference(rvp->qp[qpn]); in rvt_lookup_qpn()
987 struct rvt_ibport *rvp = rvt_to_iport(qp); in rvt_rc_credit_avail()
990 rvp->n_rc_crwaits++; in rvt_rc_credit_avail()
699 rvt_lookup_qpn(struct rvt_dev_info * rdi,struct rvt_ibport * rvp,u32 qpn) rvt_lookup_qpn() argument
986 struct rvt_ibport *rvp = rvt_to_iport(qp); rvt_rc_credit_avail() local
H A Drdma_vt.h306 int (*get_guid_be)(struct rvt_dev_info *rdi, struct rvt_ibport *rvp,

12