Lines Matching defs:pkey
482 u16 pkey;
488 /* Perform pkey check */
489 pkey = hfi1_16B_get_pkey(hdr);
490 return ingress_pkey_check(ppd, pkey, packet->sc,
1121 * egress_pkey_matches_entry - return 1 if the pkey matches ent (ent
1126 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent)
1128 u16 mkey = pkey & PKEY_LOW_15_MASK;
1133 * If pkey[15] is set (full partition member),
1137 if (pkey & PKEY_MEMBER_MASK)
1154 * It checks if hdr's pkey is valid.
1158 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
1168 /* If SC15, pkey[0:14] must be 0x7fff */
1169 if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK))
1172 /* Is the pkey = 0x0, or 0x8000? */
1173 if ((pkey & PKEY_LOW_15_MASK) == 0)
1178 * the most likely matching pkey has index qp->s_pkey_index
1181 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) {
1186 if (egress_pkey_matches_entry(pkey, ppd->pkeys[i]))
1203 dd->err_info_xmit_constraint.pkey = pkey;
1262 u16 pkey;
1266 /* locate the pkey within the headers */
1277 pkey = hfi1_16B_get_pkey(hdr);
1287 pkey = ib_bth_get_pkey(ohdr);
1296 ret = egress_pkey_check(dd->pport, slid, pkey,