Lines Matching refs:facilities

41 int x25_parse_facilities(struct sk_buff *skb, struct x25_facilities *facilities,  in x25_parse_facilities()  argument
78 facilities->reverse = p[1] & 0x81; in x25_parse_facilities()
84 facilities->reverse = p[1] & 0x01; in x25_parse_facilities()
90 facilities->reverse = p[1] & 0x80; in x25_parse_facilities()
96 facilities->reverse in x25_parse_facilities()
103 facilities->throughput = p[1]; in x25_parse_facilities()
122 facilities->pacsize_in = p[1]; in x25_parse_facilities()
123 facilities->pacsize_out = p[2]; in x25_parse_facilities()
127 facilities->winsize_in = p[1]; in x25_parse_facilities()
128 facilities->winsize_out = p[2]; in x25_parse_facilities()
189 struct x25_facilities *facilities, in x25_create_facilities() argument
205 if (facilities->reverse && (facil_mask & X25_MASK_REVERSE)) { in x25_create_facilities()
207 *p++ = facilities->reverse; in x25_create_facilities()
210 if (facilities->throughput && (facil_mask & X25_MASK_THROUGHPUT)) { in x25_create_facilities()
212 *p++ = facilities->throughput; in x25_create_facilities()
215 if ((facilities->pacsize_in || facilities->pacsize_out) && in x25_create_facilities()
218 *p++ = facilities->pacsize_in ? : facilities->pacsize_out; in x25_create_facilities()
219 *p++ = facilities->pacsize_out ? : facilities->pacsize_in; in x25_create_facilities()
222 if ((facilities->winsize_in || facilities->winsize_out) && in x25_create_facilities()
225 *p++ = facilities->winsize_in ? : facilities->winsize_out; in x25_create_facilities()
226 *p++ = facilities->winsize_out ? : facilities->winsize_in; in x25_create_facilities()
269 struct x25_facilities *ours = &x25->facilities; in x25_negotiate_facilities()
336 void x25_limit_facilities(struct x25_facilities *facilities, in x25_limit_facilities() argument
341 if (facilities->winsize_in > 7) { in x25_limit_facilities()
343 facilities->winsize_in = 7; in x25_limit_facilities()
345 if (facilities->winsize_out > 7) { in x25_limit_facilities()
346 facilities->winsize_out = 7; in x25_limit_facilities()