Lines Matching defs:sm

79 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
99 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
113 int ess_raf_received_pack(struct s_smc *smc, SMbuf *mb, struct smt_header *sm,
132 if (!(p = (void *) sm_to_para(smc,sm,SMT_P0015))) {
141 if (!(cmd = (struct smt_p_0016 *) sm_to_para(smc,sm,SMT_P0016))) {
149 DB_ESSN(2, "fc %x ft %x", sm->smt_class, sm->smt_type);
150 DB_ESSN(2, "ver %x tran %x", sm->smt_version, sm->smt_tid);
151 DB_ESSN(2, "stn_id %pM", &sm->smt_source);
153 DB_ESSN(2, "infolen %x res %lx", sm->smt_len, msg_res_type);
168 if (sm->smt_type == SMT_REQUEST) {
176 p = (void *) sm_to_para(smc,sm,SMT_P0019) ;
187 smc->ess.alloc_trans_id = sm->smt_tid ;
188 DB_ESS("ESS: save Alloc Req Trans ID %x", sm->smt_tid);
189 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
192 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
195 sm->smt_dest = smt_sba_da ;
205 memcpy(((char *)(db->sm_data+db->sm_off)),(char *)sm,
218 if (smt_check_para(smc,sm,plist_raf_alc_res)) {
233 if ((((struct smt_p_320b *)sm_to_para(smc,sm,SMT_P320B))->path_index
236 (((struct smt_p_reason *)sm_to_para(smc,sm,SMT_P0012))->rdf_reason
238 (sm->smt_tid != smc->ess.alloc_trans_id)) {
247 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
253 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
278 if (sm->smt_type != SMT_REQUEST) {
286 if (smt_check_para(smc,sm,plist_raf_chg_req)) {
297 if ((((struct smt_p_320b *)sm_to_para(smc,sm,SMT_P320B))->path_index
306 p = (void *) sm_to_para(smc,sm,SMT_P320F) ;
308 p = (void *) sm_to_para(smc,sm,SMT_P3210) ;
312 &sm->smt_source);
325 ess_send_response(smc,sm,CHANGE_ALLOCATION) ;
337 if (sm->smt_type != SMT_REQUEST) {
343 &sm->smt_source);
356 ess_send_response(smc,sm,REPORT_ALLOCATION) ;
472 static void ess_send_response(struct s_smc *smc, struct smt_header *sm,
494 chg->smt.smt_tid = sm->smt_tid ;
495 chg->smt.smt_dest = sm->smt_source ;
530 p = (void *) sm_to_para(smc,sm,SMT_P001A) ;