Lines Matching refs:pkey_idx
59 static u16 hfi1_lookup_pkey_value(struct hfi1_ibport *ibp, int pkey_idx) in hfi1_lookup_pkey_value() argument
63 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) in hfi1_lookup_pkey_value()
64 return ppd->pkeys[pkey_idx]; in hfi1_lookup_pkey_value()
277 int pkey_idx; in send_trap() local
297 pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); in send_trap()
298 if (pkey_idx < 0) { in send_trap()
301 pkey_idx = 1; in send_trap()
304 send_buf = ib_create_send_mad(agent, qpn, pkey_idx, 0, in send_trap()
4784 int pkey_idx; in hfi1_process_opa_mad() local
4789 pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); in hfi1_process_opa_mad()
4790 if (pkey_idx < 0) { in hfi1_process_opa_mad()
4793 pkey_idx = 1; in hfi1_process_opa_mad()
4795 *out_mad_pkey_index = (u16)pkey_idx; in hfi1_process_opa_mad()