Lines Matching refs:wrapped_pos
172 size_t wrapped_pos = 4; in test_modem_ppp_unwrap() local
175 while (wrapped_pos < (wrapped_size - 1)) { in test_modem_ppp_unwrap()
177 if (wrapped[wrapped_pos] == 0x7D) { in test_modem_ppp_unwrap()
178 unwrapped[unwrapped_pos] = wrapped[wrapped_pos + 1] ^ 0x20; in test_modem_ppp_unwrap()
179 wrapped_pos += 2; in test_modem_ppp_unwrap()
185 unwrapped[unwrapped_pos] = wrapped[wrapped_pos]; in test_modem_ppp_unwrap()
186 wrapped_pos += 1; in test_modem_ppp_unwrap()
234 size_t wrapped_pos = 4; in test_modem_ppp_wrap_ppp_frame() local
243 wrapped[wrapped_pos] = 0x7D; in test_modem_ppp_wrap_ppp_frame()
244 wrapped[wrapped_pos + 1] = frame[i] ^ 0x20; in test_modem_ppp_wrap_ppp_frame()
245 wrapped_pos += 2; in test_modem_ppp_wrap_ppp_frame()
249 wrapped[wrapped_pos] = frame[i]; in test_modem_ppp_wrap_ppp_frame()
250 wrapped_pos += 1; in test_modem_ppp_wrap_ppp_frame()
253 wrapped[wrapped_pos] = 0x7E; in test_modem_ppp_wrap_ppp_frame()
254 wrapped_pos += 1; in test_modem_ppp_wrap_ppp_frame()
255 return wrapped_pos; in test_modem_ppp_wrap_ppp_frame()