Lines Matching refs:dte_facs

45 		struct x25_dte_facilities *dte_facs, unsigned long *vc_fac_mask)  in x25_parse_facilities()  argument
58 dte_facs->calling_len = 0; in x25_parse_facilities()
59 dte_facs->called_len = 0; in x25_parse_facilities()
60 memset(dte_facs->called_ae, '\0', sizeof(dte_facs->called_ae)); in x25_parse_facilities()
61 memset(dte_facs->calling_ae, '\0', sizeof(dte_facs->calling_ae)); in x25_parse_facilities()
157 dte_facs->calling_len = p[2]; in x25_parse_facilities()
158 memcpy(dte_facs->calling_ae, &p[3], p[1] - 1); in x25_parse_facilities()
164 dte_facs->called_len = p[2]; in x25_parse_facilities()
165 memcpy(dte_facs->called_ae, &p[3], p[1] - 1); in x25_parse_facilities()
187 struct x25_dte_facilities *dte_facs, unsigned long facil_mask) in x25_create_facilities() argument
231 if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) { in x25_create_facilities()
232 unsigned bytecount = (dte_facs->calling_len + 1) >> 1; in x25_create_facilities()
235 *p++ = dte_facs->calling_len; in x25_create_facilities()
236 memcpy(p, dte_facs->calling_ae, bytecount); in x25_create_facilities()
240 if (dte_facs->called_len && (facil_mask & X25_MASK_CALLED_AE)) { in x25_create_facilities()
241 unsigned bytecount = (dte_facs->called_len % 2) ? in x25_create_facilities()
242 dte_facs->called_len / 2 + 1 : in x25_create_facilities()
243 dte_facs->called_len / 2; in x25_create_facilities()
246 *p++ = dte_facs->called_len; in x25_create_facilities()
247 memcpy(p, dte_facs->called_ae, bytecount); in x25_create_facilities()