Lines Matching refs:dte_facs

42 		struct x25_dte_facilities *dte_facs, unsigned long *vc_fac_mask)  in x25_parse_facilities()  argument
55 dte_facs->calling_len = 0; in x25_parse_facilities()
56 dte_facs->called_len = 0; in x25_parse_facilities()
57 memset(dte_facs->called_ae, '\0', sizeof(dte_facs->called_ae)); in x25_parse_facilities()
58 memset(dte_facs->calling_ae, '\0', sizeof(dte_facs->calling_ae)); in x25_parse_facilities()
158 dte_facs->calling_len = p[2]; in x25_parse_facilities()
159 memcpy(dte_facs->calling_ae, &p[3], p[1] - 1); in x25_parse_facilities()
167 dte_facs->called_len = p[2]; in x25_parse_facilities()
168 memcpy(dte_facs->called_ae, &p[3], p[1] - 1); in x25_parse_facilities()
190 struct x25_dte_facilities *dte_facs, unsigned long facil_mask) in x25_create_facilities() argument
234 if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) { in x25_create_facilities()
235 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1; in x25_create_facilities()
238 *p++ = dte_facs->calling_len; in x25_create_facilities()
239 memcpy(p, dte_facs->calling_ae, bytecount); in x25_create_facilities()
243 if (dte_facs->called_len && (facil_mask & X25_MASK_CALLED_AE)) { in x25_create_facilities()
244 unsigned int bytecount = (dte_facs->called_len % 2) ? in x25_create_facilities()
245 dte_facs->called_len / 2 + 1 : in x25_create_facilities()
246 dte_facs->called_len / 2; in x25_create_facilities()
249 *p++ = dte_facs->called_len; in x25_create_facilities()
250 memcpy(p, dte_facs->called_ae, bytecount); in x25_create_facilities()