Lines Matching refs:pkey_idx
101 static u16 hfi1_lookup_pkey_value(struct hfi1_ibport *ibp, int pkey_idx) in hfi1_lookup_pkey_value() argument
105 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) in hfi1_lookup_pkey_value()
106 return ppd->pkeys[pkey_idx]; in hfi1_lookup_pkey_value()
319 int pkey_idx; in send_trap() local
339 pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); in send_trap()
340 if (pkey_idx < 0) { in send_trap()
343 pkey_idx = 1; in send_trap()
346 send_buf = ib_create_send_mad(agent, qpn, pkey_idx, 0, in send_trap()
4837 int pkey_idx; in hfi1_process_opa_mad() local
4842 pkey_idx = hfi1_lookup_pkey_idx(ibp, LIM_MGMT_P_KEY); in hfi1_process_opa_mad()
4843 if (pkey_idx < 0) { in hfi1_process_opa_mad()
4846 pkey_idx = 1; in hfi1_process_opa_mad()
4848 *out_mad_pkey_index = (u16)pkey_idx; in hfi1_process_opa_mad()