Lines Matching +full:100 +full:pa

31 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index,
308 struct smt_para *pa ; in smt_build_pmf_response() local
365 pa = (struct smt_para *) (req + 1) ; in smt_build_pmf_response()
370 if (((u_short)len < pa->p_len + PARA_LEN) || (pa->p_len & 3)) { in smt_build_pmf_response()
375 if (((range = (pa->p_type & 0xf000)) == 0x2000) || in smt_build_pmf_response()
380 index = *((u_char *)pa + PARA_LEN + 3) ;/* index */ in smt_build_pmf_response()
382 if (!set && (pa->p_len != 4)) { in smt_build_pmf_response()
411 if (!set && (pa->p_len != 0)) { in smt_build_pmf_response()
423 pt = smt_get_ptab(pa->p_type) ; in smt_build_pmf_response()
438 else if (pa->p_type != SMT_P_AUTHOR && in smt_build_pmf_response()
439 (!set || (pa->p_type != SMT_P1035))) { in smt_build_pmf_response()
442 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
446 st = smt_set_para(smc,pa,index,local,1); in smt_build_pmf_response()
450 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
459 smt_add_para(smc,&pcon,pa->p_type, in smt_build_pmf_response()
467 len -= pa->p_len + PARA_LEN ; in smt_build_pmf_response()
468 pa = (struct smt_para *) ((char *)pa + pa->p_len + PARA_LEN) ; in smt_build_pmf_response()
493 struct smt_para *pa ; in smt_authorize() local
515 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P_AUTHOR) ; in smt_authorize()
516 if (!pa) in smt_authorize()
518 if (pa->p_len != 8) in smt_authorize()
520 if (memcmp((char *)(pa+1),(char *)smc->mib.fddiPRPMFPasswd,8)) in smt_authorize()
528 struct smt_para *pa ; in smt_check_set_count() local
531 pa = (struct smt_para *) sm_to_para(smc,sm,SMT_P1035) ; in smt_check_set_count()
532 if (pa) { in smt_check_set_count()
533 sc = (struct smt_p_setcount *) pa ; in smt_check_set_count()
545 struct smt_para *pa ; in smt_add_para() local
578 pa = (struct smt_para *) to ; /* type/length pointer */ in smt_add_para()
1043 pa->p_type = para ; in smt_add_para()
1044 pa->p_len = plen - len - PARA_LEN ; in smt_add_para()
1067 static int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index, in smt_set_para() argument
1093 len = pa->p_len ; in smt_set_para()
1094 from = (char *) (pa + 1 ) ; in smt_set_para()
1097 switch (pa->p_type & 0xf000) { in smt_set_para()
1130 switch (pa->p_type) { in smt_set_para()
1150 pt = smt_get_ptab(pa->p_type) ; in smt_set_para()
1152 return (pa->p_type & 0xff00) ? SMT_RDF_NOPARAM : in smt_set_para()
1291 switch (pa->p_type) { in smt_set_para()
1367 if (byte_val > 100) in smt_set_para()
1555 struct smt_para *pa ; in dump_smt() local
1585 pa = (struct smt_para *) (sm + 1) ; in dump_smt()
1589 printf("TYPE %x LEN %x VALUE\t",pa->p_type,pa->p_len) ; in dump_smt()
1591 printf("TYPE %04x LEN %2x VALUE\t",pa->p_type,pa->p_len) ; in dump_smt()
1593 n = pa->p_len ; in dump_smt()
1603 dump_hex((char *)(pa+1),(int) n) ; in dump_smt()
1608 c = (char *)(pa+1) ; in dump_smt()
1632 plen = (pa->p_len + PARA_LEN + 3) & ~3 ; in dump_smt()
1634 pa = (struct smt_para *)((char *)pa + plen) ; in dump_smt()