Lines Matching refs:sa

63 	osm_sa_t *sa;
67 static void sa_pkey_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp,
75 OSM_LOG_ENTER(sa->p_log);
79 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4602: "
89 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
113 OSM_LOG_EXIT(sa->p_log);
116 static void sa_pkey_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp,
122 OSM_LOG_ENTER(sa->p_log);
126 sa_pkey_create(sa, p_physp, p_ctxt, p_ctxt->block_num);
132 sa_pkey_create(sa, p_physp, p_ctxt, block);
135 OSM_LOG_EXIT(sa->p_log);
138 static void sa_pkey_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port,
148 OSM_LOG_ENTER(sa->p_log);
160 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
173 osm_physp_share_pkey(sa->p_log, p_req_physp,
174 p_physp, sa->p_subn->opt.allow_both_pkeys))
175 sa_pkey_check_physp(sa, p_physp, p_ctxt);
177 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4603: "
194 (sa->p_log, p_req_physp, p_physp, sa->p_subn->opt.allow_both_pkeys))
197 sa_pkey_check_physp(sa, p_physp, p_ctxt);
201 OSM_LOG_EXIT(sa->p_log);
209 sa_pkey_by_comp_mask(p_ctxt->sa, p_port, p_ctxt);
214 osm_sa_t *sa = ctx;
224 CL_ASSERT(sa);
226 OSM_LOG_ENTER(sa->p_log);
240 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4605: "
243 osm_sa_send_error(sa, p_madw, IB_MAD_STATUS_UNSUP_METHOD_ATTR);
252 if (p_rcvd_mad->sm_key != sa->p_subn->opt.sa_key) {
254 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4608: "
258 osm_sa_send_error(sa, p_madw, IB_SA_MAD_STATUS_REQ_INVALID);
262 cl_plock_acquire(sa->p_lock);
265 p_req_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn,
269 cl_plock_release(sa->p_lock);
270 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4604: "
274 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
283 context.sa = sa;
287 OSM_LOG(sa->p_log, OSM_LOG_DEBUG,
299 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid);
301 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 460B: "
305 sa_pkey_by_comp_mask(sa, p_port, &context);
307 cl_qmap_apply_func(&sa->p_subn->port_guid_tbl,
310 cl_plock_release(sa->p_lock);
312 osm_sa_respond(sa, p_madw, sizeof(ib_pkey_table_record_t), &rec_list);
315 OSM_LOG_EXIT(sa->p_log);