Lines Matching refs:pkey
70 u16 pkey; in ud_loopback() local
74 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback()
77 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback()
80 hfi1_bad_pkey(ibp, pkey, in ud_loopback()
226 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() argument
243 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth()
245 *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_bth_deth()
247 bth0 |= *pkey; in hfi1_make_bth_deth()
265 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
323 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, false); in hfi1_make_ud_req_9B()
343 u16 len, pkey; in hfi1_make_ud_req_16B() local
411 pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_ud_req_16B()
415 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, true); in hfi1_make_ud_req_16B()
423 slid, dlid, len, pkey, 0, 0, l4, priv->s_sc); in hfi1_make_ud_req_16B()
555 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() argument
560 if (pkey == FULL_MGMT_P_KEY || pkey == LIM_MGMT_P_KEY) { in hfi1_lookup_pkey_idx()
565 if (ppd->pkeys[i] == pkey) in hfi1_lookup_pkey_idx()
572 if (pkey == FULL_MGMT_P_KEY) in hfi1_lookup_pkey_idx()
579 pkey &= 0x7fff; /* remove limited/full membership bit */ in hfi1_lookup_pkey_idx()
582 if ((ppd->pkeys[i] & 0x7fff) == pkey) in hfi1_lookup_pkey_idx()
592 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B() argument
637 hfi1_make_16b_hdr(&hdr.opah, slid, dlid, len, pkey, 1, 0, l4, sc5); in return_cnp_16B()
654 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() argument
687 bth0 = pkey | (IB_OPCODE_CNP << 24); in return_cnp()
726 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check() argument
738 if (rcv_pkey_check(ppd, pkey, sc5, slid)) in opa_smp_check()
748 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
780 if (pkey != FULL_MGMT_P_KEY) { in opa_smp_check()
781 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
790 if (pkey == FULL_MGMT_P_KEY) { in opa_smp_check()
794 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
813 u16 pkey; in hfi1_ud_rcv() local
839 pkey = hfi1_16B_get_pkey(packet->hdr); in hfi1_ud_rcv()
843 pkey = ib_bth_get_pkey(packet->ohdr); in hfi1_ud_rcv()
874 if (unlikely(rcv_pkey_check(ppd, pkey, sc5, slid))) { in hfi1_ud_rcv()
882 pkey, sl, in hfi1_ud_rcv()
889 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()
905 if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp)) in hfi1_ud_rcv()
915 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()