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