Lines Matching refs:rvp

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()
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()
197 spin_lock_irqsave(&ibp->rvp.lock, flags); in subn_handle_opa_trap_repress()
199 trap_list = &ibp->rvp.trap_lists[i]; in subn_handle_opa_trap_repress()
213 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in subn_handle_opa_trap_repress()
228 ibp->rvp.gid_prefix; in hfi1_update_sm_ah_attr()
244 qp0 = rcu_dereference(ibp->rvp.qp[0]); in hfi1_modify_qp0_ah()
264 qp0 = rcu_dereference(ibp->rvp.qp[0]); in hfi1_create_qp0_ah()
280 agent = ibp->rvp.send_agent; in send_trap()
318 ibp->rvp.tid++; in send_trap()
320 if (ibp->rvp.tid == 0) in send_trap()
321 ibp->rvp.tid++; in send_trap()
322 trap->tid = cpu_to_be64(ibp->rvp.tid); in send_trap()
331 spin_lock_irqsave(&ibp->rvp.lock, flags); in send_trap()
332 if (!ibp->rvp.sm_ah) { in send_trap()
333 if (ibp->rvp.sm_lid != be16_to_cpu(IB_LID_PERMISSIVE)) { in send_trap()
336 ah = hfi1_create_qp0_ah(ibp, ibp->rvp.sm_lid); in send_trap()
338 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in send_trap()
342 ibp->rvp.sm_ah = ibah_to_rvtah(ah); in send_trap()
344 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in send_trap()
348 send_buf->ah = &ibp->rvp.sm_ah->ibah; in send_trap()
357 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in send_trap()
364 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in send_trap()
372 struct hfi1_ibport *ibp = from_timer(ibp, t, rvp.trap_timer); in hfi1_handle_trap_timer()
378 spin_lock_irqsave(&ibp->rvp.lock, flags); in hfi1_handle_trap_timer()
380 trap = list_first_entry_or_null(&ibp->rvp.trap_lists[i].list, in hfi1_handle_trap_timer()
383 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in hfi1_handle_trap_timer()
415 ibp->rvp.n_pkt_drops++; in hfi1_bad_pkey()
416 ibp->rvp.pkey_violations++; in hfi1_bad_pkey()
491 trap->data.ntc_144.new_cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); in hfi1_cap_mask_chg()
492 trap->data.ntc_144.cap_mask3 = cpu_to_be16(ibp->rvp.port_cap3_flags); in hfi1_cap_mask_chg()
658 if (ibp->rvp.mkey_lease_timeout && in check_mkey()
659 time_after_eq(jiffies, ibp->rvp.mkey_lease_timeout)) { in check_mkey()
661 ibp->rvp.mkey_lease_timeout = 0; in check_mkey()
662 ibp->rvp.mkeyprot = 0; in check_mkey()
665 if ((mad_flags & IB_MAD_IGNORE_MKEY) || ibp->rvp.mkey == 0 || in check_mkey()
666 ibp->rvp.mkey == mkey) in check_mkey()
670 if (valid_mkey && ibp->rvp.mkey_lease_timeout && in check_mkey()
674 ibp->rvp.mkey_lease_timeout = 0; in check_mkey()
680 if (ibp->rvp.mkeyprot < 2) in check_mkey()
685 if (ibp->rvp.mkey_violations != 0xFFFF) in check_mkey()
686 ++ibp->rvp.mkey_violations; in check_mkey()
687 if (!ibp->rvp.mkey_lease_timeout && in check_mkey()
688 ibp->rvp.mkey_lease_period) in check_mkey()
689 ibp->rvp.mkey_lease_timeout = jiffies + in check_mkey()
690 ibp->rvp.mkey_lease_period * HZ; in check_mkey()
792 ibp->rvp.mkey != smp->mkey && in __subn_get_opa_portinfo()
793 ibp->rvp.mkeyprot == 1)) in __subn_get_opa_portinfo()
794 pi->mkey = ibp->rvp.mkey; in __subn_get_opa_portinfo()
796 pi->subnet_prefix = ibp->rvp.gid_prefix; in __subn_get_opa_portinfo()
797 pi->sm_lid = cpu_to_be32(ibp->rvp.sm_lid); in __subn_get_opa_portinfo()
798 pi->ib_cap_mask = cpu_to_be32(ibp->rvp.port_cap_flags); in __subn_get_opa_portinfo()
799 pi->mkey_lease_period = cpu_to_be16(ibp->rvp.mkey_lease_period); in __subn_get_opa_portinfo()
844 pi->mkeyprotect_lmc = (ibp->rvp.mkeyprot << 6) | ppd->lmc; in __subn_get_opa_portinfo()
857 pi->smsl = ibp->rvp.sm_sl & OPA_PI_MASK_SMSL; in __subn_get_opa_portinfo()
865 pi->mkey_violations = cpu_to_be16(ibp->rvp.mkey_violations); in __subn_get_opa_portinfo()
867 pi->pkey_violations = cpu_to_be16(ibp->rvp.pkey_violations); in __subn_get_opa_portinfo()
868 pi->qkey_violations = cpu_to_be16(ibp->rvp.qkey_violations); in __subn_get_opa_portinfo()
871 pi->vl.high_limit = cpu_to_be16(ibp->rvp.vl_high_limit); in __subn_get_opa_portinfo()
875 pi->clientrereg_subnettimeout = ibp->rvp.subnet_timeout; in __subn_get_opa_portinfo()
941 pi->opa_cap_mask = cpu_to_be16(ibp->rvp.port_cap3_flags); in __subn_get_opa_portinfo()
1365 ibp->rvp.mkey = pi->mkey; in __subn_set_opa_portinfo()
1366 if (ibp->rvp.gid_prefix != pi->subnet_prefix) { in __subn_set_opa_portinfo()
1367 ibp->rvp.gid_prefix = pi->subnet_prefix; in __subn_set_opa_portinfo()
1371 ibp->rvp.mkey_lease_period = be16_to_cpu(pi->mkey_lease_period); in __subn_set_opa_portinfo()
1411 } else if (smlid != ibp->rvp.sm_lid || msl != ibp->rvp.sm_sl) { in __subn_set_opa_portinfo()
1413 spin_lock_irqsave(&ibp->rvp.lock, flags); in __subn_set_opa_portinfo()
1414 if (ibp->rvp.sm_ah) { in __subn_set_opa_portinfo()
1415 if (smlid != ibp->rvp.sm_lid) in __subn_set_opa_portinfo()
1416 hfi1_modify_qp0_ah(ibp, ibp->rvp.sm_ah, smlid); in __subn_set_opa_portinfo()
1417 if (msl != ibp->rvp.sm_sl) in __subn_set_opa_portinfo()
1418 rdma_ah_set_sl(&ibp->rvp.sm_ah->attr, msl); in __subn_set_opa_portinfo()
1420 spin_unlock_irqrestore(&ibp->rvp.lock, flags); in __subn_set_opa_portinfo()
1421 if (smlid != ibp->rvp.sm_lid) in __subn_set_opa_portinfo()
1422 ibp->rvp.sm_lid = smlid; in __subn_set_opa_portinfo()
1423 if (msl != ibp->rvp.sm_sl) in __subn_set_opa_portinfo()
1424 ibp->rvp.sm_sl = msl; in __subn_set_opa_portinfo()
1478 ibp->rvp.mkeyprot = in __subn_set_opa_portinfo()
1480 ibp->rvp.vl_high_limit = be16_to_cpu(pi->vl.high_limit) & 0xFF; in __subn_set_opa_portinfo()
1482 ibp->rvp.vl_high_limit); in __subn_set_opa_portinfo()
1542 ibp->rvp.mkey_violations = 0; in __subn_set_opa_portinfo()
1545 ibp->rvp.pkey_violations = 0; in __subn_set_opa_portinfo()
1548 ibp->rvp.qkey_violations = 0; in __subn_set_opa_portinfo()
1550 ibp->rvp.subnet_timeout = in __subn_set_opa_portinfo()
4126 if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) in subn_get_opa_sma()
4128 if (ibp->rvp.port_cap_flags & IB_PORT_SM) in subn_get_opa_sma()
4196 if (ibp->rvp.port_cap_flags & IB_PORT_SM_DISABLED) in subn_set_opa_sma()
4198 if (ibp->rvp.port_cap_flags & IB_PORT_SM) in subn_set_opa_sma()