Home | History | Annotate | Download | only in tset

Lines Matching defs:mapp

77 	MAP *mapp;
81 mapp = malloc((u_int)sizeof(MAP));
82 if (copy == NULL || mapp == NULL)
84 mapp->next = NULL;
86 cur = maplist = mapp;
88 cur->next = mapp;
89 cur = mapp;
92 mapp->porttype = arg;
93 mapp->conditional = 0;
98 mapp->type = mapp->porttype;
99 mapp->porttype = NULL;
103 if (arg == mapp->porttype) /* [><@=! baud]:term */
104 mapp->porttype = termp = NULL;
111 if (mapp->conditional & GT)
113 mapp->conditional |= LT;
116 if (mapp->conditional & LT)
118 mapp->conditional |= GT;
122 mapp->conditional |= EQ;
125 mapp->conditional |= NOT;
132 if (mapp->conditional)
140 mapp->speed = baudrate(p);
146 mapp->type = arg;
153 if (mapp->conditional & NOT)
154 mapp->conditional = ~mapp->conditional & (EQ | GT | LT);
158 if (mapp->porttype)
160 mapp->porttype = port;
164 (void)printf("port: %s\n", mapp->porttype ? mapp->porttype : "ANY");
165 (void)printf("type: %s\n", mapp->type);
168 if (mapp->conditional & GT) {
172 if (mapp->conditional & EQ) {
176 if (mapp->conditional & LT)
178 (void)printf("\nspeed: %d\n", mapp->speed);
191 MAP *mapp;
195 for (mapp = maplist; mapp; mapp = mapp->next)
196 if (mapp->porttype == NULL || !strcmp(mapp->porttype, type)) {
197 switch (mapp->conditional) {
202 match = (ospeed == mapp->speed);
205 match = (ospeed >= mapp->speed);
208 match = (ospeed > mapp->speed);
211 match = (ospeed <= mapp->speed);
214 match = (ospeed < mapp->speed);
218 return (mapp->type);