Lines Matching defs:pa

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