Lines Matching refs:pcon

37 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
320 SK_LOC_DECL(struct s_pcon,pcon) ; in smt_build_pmf_response()
341 pcon.pc_len = SMT_MAX_INFO_LEN ; /* max para length */ in smt_build_pmf_response()
342 pcon.pc_err = 0 ; /* no error */ in smt_build_pmf_response()
343 pcon.pc_badset = 0 ; /* no bad set count */ in smt_build_pmf_response()
344 pcon.pc_p = (void *) (smt + 1) ; /* paras start here */ in smt_build_pmf_response()
354 pcon.pc_badset = SMT_RDF_BADSET ; in smt_build_pmf_response()
359 res = (struct smt_p_reason *) pcon.pc_p ; in smt_build_pmf_response()
360 smt_add_para(smc,&pcon,(u_short) SMT_P_REASON,0,0) ; in smt_build_pmf_response()
361 smt_add_para(smc,&pcon,(u_short) SMT_P1033,0,0) ; in smt_build_pmf_response()
363 set_pcon = pcon ; in smt_build_pmf_response()
364 smt_add_para(smc,&pcon,(u_short) SMT_P1035,0,0) ; in smt_build_pmf_response()
365 smt_add_para(smc,&pcon,(u_short) SMT_P1036,0,0) ; in smt_build_pmf_response()
367 pcon.pc_err = error ; in smt_build_pmf_response()
373 while (!pcon.pc_err && len > 0 ) { in smt_build_pmf_response()
375 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
387 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
416 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
432 smt_add_para(smc,&pcon,pt->p_num, in smt_build_pmf_response()
445 if (pcon.pc_badset) { in smt_build_pmf_response()
446 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
454 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
456 pcon.pc_err = st ; in smt_build_pmf_response()
460 pcon.pc_err = in smt_build_pmf_response()
463 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
467 if (pcon.pc_err) in smt_build_pmf_response()
474 smt->smt_len = SMT_MAX_INFO_LEN - pcon.pc_len ; in smt_build_pmf_response()
478 res->rdf_reason = pcon.pc_badset ? pcon.pc_badset : in smt_build_pmf_response()
479 pcon.pc_err ? pcon.pc_err : SMT_RDF_SUCCESS ; in smt_build_pmf_response()
546 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para, in smt_add_para() argument
569 if (pcon->pc_err) in smt_add_para()
579 to = (char *) (pcon->pc_p) ; /* destination pointer */ in smt_add_para()
580 len = pcon->pc_len ; /* free space */ in smt_add_para()
612 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
620 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
627 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
655 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
873 pcon->pc_err = (para & 0xff00) ? SMT_RDF_NOPARAM : in smt_add_para()
885 pcon->pc_err = SMT_RDF_ILLEGAL ; in smt_add_para()
1050 pcon->pc_p = (void *) to ; in smt_add_para()
1051 pcon->pc_len = len ; in smt_add_para()
1061 pcon->pc_err = SMT_RDF_TOOLONG ; in smt_add_para()
1065 pcon->pc_err = SMT_RDF_LENGTH ; in smt_add_para()