Lines Matching defs: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 ;
286 sm = smtod(mb,struct smt_header *) ;
287 DB_SMT("SMT: processing PMF frame at %x len %d\n",sm,mb->sm_len) ;
289 dump_smt(smc,sm,"PMF Received") ;
297 if (sm->smt_class == SMT_PMF_GET ||
298 sm->smt_class == SMT_PMF_SET) {
299 reply = smt_build_pmf_response(smc,sm,
300 sm->smt_class == SMT_PMF_SET,local) ;
302 sm = smtod(reply,struct smt_header *) ;
304 dump_smt(smc,sm,"PMF Reply") ;
499 static int smt_authorize(struct s_smc *smc, struct smt_header *sm)
512 if (memcmp((char *) &sm->smt_sid,
523 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P_AUTHOR) ;
534 static int smt_check_set_count(struct s_smc *smc, struct smt_header *sm)
539 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P1035) ;
1459 smc->sm.please_reconnect = 1 ;
1553 void dump_smt(struct s_smc *smc, struct smt_header *sm, char *text)
1573 smtlen = sm->smt_len + sizeof(struct smt_header) ;
1576 dump_hex((char *) &sm->smt_dest,6) ;
1578 dump_hex((char *) &sm->smt_source,6) ;
1580 sm->smt_class,sm->smt_type,sm->smt_version) ;
1581 printf("TID %lx\t\tSID ",sm->smt_tid) ;
1582 dump_hex((char *) &sm->smt_sid,8) ;
1583 printf(" LEN %x\n",sm->smt_len) ;
1585 len = sm->smt_len ;
1586 pa = (struct smt_para *) (sm + 1) ;
1601 smt_swap_para(sm,smtlen,0) ;
1631 smt_swap_para(sm,smtlen,1) ;