Lines Matching refs:sm
35 static int smt_authorize(struct s_smc *smc, struct smt_header *sm);
36 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm);
283 struct smt_header *sm ; in smt_pmf_received_pack() local
286 sm = smtod(mb,struct smt_header *) ; in smt_pmf_received_pack()
287 DB_SMT("SMT: processing PMF frame at %x len %d\n",sm,mb->sm_len) ; in smt_pmf_received_pack()
289 dump_smt(smc,sm,"PMF Received") ; in smt_pmf_received_pack()
297 if (sm->smt_class == SMT_PMF_GET || in smt_pmf_received_pack()
298 sm->smt_class == SMT_PMF_SET) { in smt_pmf_received_pack()
299 reply = smt_build_pmf_response(smc,sm, in smt_pmf_received_pack()
300 sm->smt_class == SMT_PMF_SET,local) ; in smt_pmf_received_pack()
302 sm = smtod(reply,struct smt_header *) ; in smt_pmf_received_pack()
304 dump_smt(smc,sm,"PMF Reply") ; in smt_pmf_received_pack()
499 static int smt_authorize(struct s_smc *smc, struct smt_header *sm) in smt_authorize() argument
512 if (memcmp((char *) &sm->smt_sid, in smt_authorize()
523 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P_AUTHOR) ; in smt_authorize()
534 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm) in smt_check_set_count() argument
539 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P1035) ; in smt_check_set_count()
1457 smc->sm.please_reconnect = 1 ; in smt_set_para()
1560 void dump_smt(struct s_smc *smc, struct smt_header *sm, char *text) in dump_smt() argument
1580 smtlen = sm->smt_len + sizeof(struct smt_header) ; in dump_smt()
1583 dump_hex((char *) &sm->smt_dest,6) ; in dump_smt()
1585 dump_hex((char *) &sm->smt_source,6) ; in dump_smt()
1587 sm->smt_class,sm->smt_type,sm->smt_version) ; in dump_smt()
1588 printf("TID %lx\t\tSID ",sm->smt_tid) ; in dump_smt()
1589 dump_hex((char *) &sm->smt_sid,8) ; in dump_smt()
1590 printf(" LEN %x\n",sm->smt_len) ; in dump_smt()
1592 len = sm->smt_len ; in dump_smt()
1593 pa = (struct smt_para *) (sm + 1) ; in dump_smt()
1608 smt_swap_para(sm,smtlen,0) ; in dump_smt()
1638 smt_swap_para(sm,smtlen,1) ; in dump_smt()