• Home
  • Raw
  • Download

Lines Matching refs:pkey

112 		u16 pkey;  in ud_loopback()  local
116 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback()
119 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback()
122 hfi1_bad_pkey(ibp, pkey, in ud_loopback()
268 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() argument
285 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth()
287 *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_bth_deth()
289 bth0 |= *pkey; in hfi1_make_bth_deth()
307 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
365 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, false); in hfi1_make_ud_req_9B()
385 u16 len, pkey; in hfi1_make_ud_req_16B() local
453 pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_ud_req_16B()
457 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, true); in hfi1_make_ud_req_16B()
465 slid, dlid, len, pkey, 0, 0, l4, priv->s_sc); in hfi1_make_ud_req_16B()
596 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() argument
601 if (pkey == FULL_MGMT_P_KEY || pkey == LIM_MGMT_P_KEY) { in hfi1_lookup_pkey_idx()
606 if (ppd->pkeys[i] == pkey) in hfi1_lookup_pkey_idx()
613 if (pkey == FULL_MGMT_P_KEY) in hfi1_lookup_pkey_idx()
620 pkey &= 0x7fff; /* remove limited/full membership bit */ in hfi1_lookup_pkey_idx()
623 if ((ppd->pkeys[i] & 0x7fff) == pkey) in hfi1_lookup_pkey_idx()
633 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, in return_cnp_16B() argument
678 hfi1_make_16b_hdr(&hdr.opah, slid, dlid, len, pkey, 1, 0, l4, sc5); in return_cnp_16B()
695 u16 pkey, u32 slid, u32 dlid, u8 sc5, in return_cnp() argument
728 bth0 = pkey | (IB_OPCODE_CNP << 24); in return_cnp()
767 static int opa_smp_check(struct hfi1_ibport *ibp, u16 pkey, u8 sc5, in opa_smp_check() argument
779 if (rcv_pkey_check(ppd, pkey, sc5, slid)) in opa_smp_check()
789 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
821 if (pkey != FULL_MGMT_P_KEY) { in opa_smp_check()
822 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
831 if (pkey == FULL_MGMT_P_KEY) { in opa_smp_check()
835 ingress_pkey_table_fail(ppd, pkey, slid); in opa_smp_check()
859 u16 pkey; in hfi1_ud_rcv() local
885 pkey = hfi1_16B_get_pkey(packet->hdr); in hfi1_ud_rcv()
889 pkey = ib_bth_get_pkey(packet->ohdr); in hfi1_ud_rcv()
920 if (unlikely(rcv_pkey_check(ppd, pkey, sc5, slid))) { in hfi1_ud_rcv()
928 pkey, sl, in hfi1_ud_rcv()
935 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()
951 if (opa_smp_check(ibp, pkey, sc5, qp, slid, smp)) in hfi1_ud_rcv()
961 mgmt_pkey_idx = hfi1_lookup_pkey_idx(ibp, pkey); in hfi1_ud_rcv()