Lines Matching defs:pkey
440 u16 pkey;
446 /* Perform pkey check */
447 pkey = hfi1_16B_get_pkey(hdr);
448 return ingress_pkey_check(ppd, pkey, packet->sc,
1079 * egress_pkey_matches_entry - return 1 if the pkey matches ent (ent
1084 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent)
1086 u16 mkey = pkey & PKEY_LOW_15_MASK;
1091 * If pkey[15] is set (full partition member),
1095 if (pkey & PKEY_MEMBER_MASK)
1106 * @pkey: PKEY for header
1112 * It checks if hdr's pkey is valid.
1116 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
1126 /* If SC15, pkey[0:14] must be 0x7fff */
1127 if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK))
1130 /* Is the pkey = 0x0, or 0x8000? */
1131 if ((pkey & PKEY_LOW_15_MASK) == 0)
1136 * the most likely matching pkey has index qp->s_pkey_index
1139 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) {
1144 if (egress_pkey_matches_entry(pkey, ppd->pkeys[i]))
1161 dd->err_info_xmit_constraint.pkey = pkey;
1220 u16 pkey;
1224 /* locate the pkey within the headers */
1235 pkey = hfi1_16B_get_pkey(hdr);
1245 pkey = ib_bth_get_pkey(ohdr);
1254 ret = egress_pkey_check(dd->pport, slid, pkey,