Lines Matching refs:cx
45 struct unicx *cx __unused)
49 cx->errcnt = 0;
54 if(cx->pnni) {
88 if(cx->pnni && (*msg->b_rptr & 0x08))
113 union uni_msgall *out, struct unicx *cx)
122 cx->ielast = (enum uni_ietype)0;
123 cx->repeat.h.present = 0;
126 if (uni_decode_ie_hdr(&ietype, &hdr, msg, cx, &ielen)) {
148 (void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
186 &hdr, ielen, cx);
203 (void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
210 (void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_ACC);
212 (void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_BAD);
219 cx->ielast = ietype;
221 cx->repeat.h.present = 0;
231 uni_decode_body(struct uni_msg *msg, struct uni_all *out, struct unicx *cx)
233 cx->errcnt = 0;
238 return (uni_decode_body_internal(out->mtype, msg, &out->u, cx));
246 uni_decode(struct uni_msg *msg, struct uni_all *out, struct unicx *cx)
248 cx->errcnt = 0;
249 if (uni_decode_head(msg, out, cx))
251 if (uni_decode_body(msg, out, cx))
257 uni_encode(struct uni_msg *msg, struct uni_all *in, struct unicx *cx)
264 return ((uni_msgtable[in->mtype]->encode)(msg, &in->u, cx));
271 uni_initcx(struct unicx *cx)
273 memset(cx, 0, sizeof(struct unicx));
274 cx->tabsiz = 4;