Lines Matching refs:sm

78 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
98 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
112 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
131 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) {
140 if (!(cmd = (struct smt_p_0016 *) sm_to_para(smc,sm,SMT_P0016))) {
148 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type);
149 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid);
150 DB_ESSN(2, "stn_id %pM", &sm->smt_source);
152 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type);
167 if (sm->smt_type == SMT_REQUEST) {
175 p = (void *) sm_to_para(smc,sm,SMT_P0019) ;
186 smc->ess.alloc_trans_id = sm->smt_tid ;
187 DB_ESS("ESS: save Alloc Req Trans ID %x", sm->smt_tid);
188 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
191 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
194 sm->smt_dest = smt_sba_da ;
204 memcpy(((char *)(db->sm_data+db->sm_off)),(char *)sm,
217 if (smt_check_para(smc,sm,plist_raf_alc_res)) {
232 if ((((struct smt_p_320b *)sm_to_para(smc,sm,SMT_P320B))->path_index
235 (((struct smt_p_reason *)sm_to_para(smc,sm,SMT_P0012))->rdf_reason
237 (sm->smt_tid != smc->ess.alloc_trans_id)) {
246 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
252 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
277 if (sm->smt_type != SMT_REQUEST) {
285 if (smt_check_para(smc,sm,plist_raf_chg_req)) {
296 if ((((struct smt_p_320b *)sm_to_para(smc,sm,SMT_P320B))->path_index
305 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
307 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
311 &sm->smt_source);
324 ess_send_response(smc,sm,CHANGE_ALLOCATION) ;
336 if (sm->smt_type != SMT_REQUEST) {
342 &sm->smt_source);
355 ess_send_response(smc,sm,REPORT_ALLOCATION) ;
471 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
493 chg->smt.smt_tid = sm->smt_tid ;
494 chg->smt.smt_dest = sm->smt_source ;
529 p = (void *) sm_to_para(smc,sm,SMT_P001A) ;