Lines Matching refs:pcon
33 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
316 SK_LOC_DECL(struct s_pcon,pcon) ; in smt_build_pmf_response()
337 pcon.pc_len = SMT_MAX_INFO_LEN ; /* max para length */ in smt_build_pmf_response()
338 pcon.pc_err = 0 ; /* no error */ in smt_build_pmf_response()
339 pcon.pc_badset = 0 ; /* no bad set count */ in smt_build_pmf_response()
340 pcon.pc_p = (void *) (smt + 1) ; /* paras start here */ in smt_build_pmf_response()
350 pcon.pc_badset = SMT_RDF_BADSET ; in smt_build_pmf_response()
355 res = (struct smt_p_reason *) pcon.pc_p ; in smt_build_pmf_response()
356 smt_add_para(smc,&pcon,(u_short) SMT_P_REASON,0,0) ; in smt_build_pmf_response()
357 smt_add_para(smc,&pcon,(u_short) SMT_P1033,0,0) ; in smt_build_pmf_response()
359 set_pcon = pcon ; in smt_build_pmf_response()
360 smt_add_para(smc,&pcon,(u_short) SMT_P1035,0,0) ; in smt_build_pmf_response()
361 smt_add_para(smc,&pcon,(u_short) SMT_P1036,0,0) ; in smt_build_pmf_response()
363 pcon.pc_err = error ; in smt_build_pmf_response()
369 while (!pcon.pc_err && len > 0 ) { in smt_build_pmf_response()
371 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
383 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
412 pcon.pc_err = SMT_RDF_LENGTH ; in smt_build_pmf_response()
428 smt_add_para(smc,&pcon,pt->p_num, in smt_build_pmf_response()
441 if (pcon.pc_badset) { in smt_build_pmf_response()
442 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
450 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
452 pcon.pc_err = st ; in smt_build_pmf_response()
456 pcon.pc_err = in smt_build_pmf_response()
459 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
463 if (pcon.pc_err) in smt_build_pmf_response()
470 smt->smt_len = SMT_MAX_INFO_LEN - pcon.pc_len ; in smt_build_pmf_response()
474 res->rdf_reason = pcon.pc_badset ? pcon.pc_badset : in smt_build_pmf_response()
475 pcon.pc_err ? pcon.pc_err : SMT_RDF_SUCCESS ; in smt_build_pmf_response()
542 void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para, in smt_add_para() argument
565 if (pcon->pc_err) in smt_add_para()
575 to = (char *) (pcon->pc_p) ; /* destination pointer */ in smt_add_para()
576 len = pcon->pc_len ; /* free space */ in smt_add_para()
608 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
616 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
623 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
651 pcon->pc_err = SMT_RDF_NOPARAM ; in smt_add_para()
869 pcon->pc_err = (para & 0xff00) ? SMT_RDF_NOPARAM : in smt_add_para()
881 pcon->pc_err = SMT_RDF_ILLEGAL ; in smt_add_para()
1046 pcon->pc_p = (void *) to ; in smt_add_para()
1047 pcon->pc_len = len ; in smt_add_para()
1057 pcon->pc_err = SMT_RDF_TOOLONG ; in smt_add_para()
1061 pcon->pc_err = SMT_RDF_LENGTH ; in smt_add_para()