Home
last modified time | relevance | path

Searched refs:in_buf (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-12-stable/contrib/wpa/src/eap_peer/
Deap_tnc.c20 struct wpabuf *in_buf; member
63 wpabuf_free(data->in_buf); in eap_tnc_deinit()
152 if (len > wpabuf_tailroom(data->in_buf)) { in eap_tnc_process_cont()
158 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_cont()
161 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_tnc_process_cont()
174 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) { in eap_tnc_process_fragment()
181 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
183 data->in_buf = wpabuf_alloc(message_length); in eap_tnc_process_fragment()
184 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
190 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_fragment()
[all …]
Deap_ikev2.c20 struct wpabuf *in_buf; member
111 wpabuf_free(data->in_buf); in eap_ikev2_deinit()
271 if (len > wpabuf_tailroom(data->in_buf)) { in eap_ikev2_process_cont()
277 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_cont()
280 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_ikev2_process_cont()
293 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) { in eap_ikev2_process_fragment()
300 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
309 data->in_buf = wpabuf_alloc(message_length); in eap_ikev2_process_fragment()
310 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
316 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_fragment()
[all …]
Deap_wsc.c22 struct wpabuf *in_buf; member
291 wpabuf_free(data->in_buf); in eap_wsc_deinit()
378 if (len > wpabuf_tailroom(data->in_buf)) { in eap_wsc_process_cont()
384 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_cont()
387 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_wsc_process_cont()
400 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) { in eap_wsc_process_fragment()
407 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
409 data->in_buf = wpabuf_alloc(message_length); in eap_wsc_process_fragment()
410 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
417 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_fragment()
[all …]
/freebsd-12-stable/crypto/heimdal/appl/test/
Dhttp_client.c196 char in_buf[1024], *in_ptr = in_buf; in http_query() local
214 ret = read (s, in_ptr, sizeof(in_buf) - in_len - 1); in http_query()
220 in_buf[ret + in_len] = '\0'; in http_query()
229 p = strstr(in_buf, "\r\n"); in http_query()
233 } else if (p == in_buf) { in http_query()
234 memmove(in_buf, in_buf + 2, sizeof(in_buf) - 2); in http_query()
240 req->response = emalloc(p - in_buf + 1); in http_query()
241 memcpy(req->response, in_buf, p - in_buf); in http_query()
242 req->response[p - in_buf] = '\0'; in http_query()
247 req->headers[req->num_headers] = emalloc(p - in_buf + 1); in http_query()
[all …]
/freebsd-12-stable/contrib/wpa/src/eap_server/
Deap_server_tnc.c23 struct wpabuf *in_buf; member
97 wpabuf_free(data->in_buf); in eap_tnc_reset()
401 if (len > wpabuf_tailroom(data->in_buf)) { in eap_tnc_process_cont()
407 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_cont()
410 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_tnc_process_cont()
421 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) { in eap_tnc_process_fragment()
427 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
429 data->in_buf = wpabuf_alloc(message_length); in eap_tnc_process_fragment()
430 if (data->in_buf == NULL) { in eap_tnc_process_fragment()
435 wpabuf_put_data(data->in_buf, buf, len); in eap_tnc_process_fragment()
[all …]
Deap_server_wsc.c22 struct wpabuf *in_buf; member
160 wpabuf_free(data->in_buf); in eap_wsc_reset()
304 if (len > wpabuf_tailroom(data->in_buf)) { in eap_wsc_process_cont()
310 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_cont()
313 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_wsc_process_cont()
324 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) { in eap_wsc_process_fragment()
330 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
332 data->in_buf = wpabuf_alloc(message_length); in eap_wsc_process_fragment()
333 if (data->in_buf == NULL) { in eap_wsc_process_fragment()
339 wpabuf_put_data(data->in_buf, buf, len); in eap_wsc_process_fragment()
[all …]
Deap_server_ikev2.c20 struct wpabuf *in_buf; member
126 wpabuf_free(data->in_buf); in eap_ikev2_reset()
283 if (len > wpabuf_tailroom(data->in_buf)) { in eap_ikev2_process_cont()
289 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_cont()
292 (unsigned long) wpabuf_tailroom(data->in_buf)); in eap_ikev2_process_cont()
303 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) { in eap_ikev2_process_fragment()
309 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
317 data->in_buf = wpabuf_alloc(message_length); in eap_ikev2_process_fragment()
318 if (data->in_buf == NULL) { in eap_ikev2_process_fragment()
323 wpabuf_put_data(data->in_buf, buf, len); in eap_ikev2_process_fragment()
[all …]
/freebsd-12-stable/contrib/dialog/
Dtextbox.c48 long in_buf; /* ending index into buf[] for page */ member
275 while (obj->buf[obj->in_buf] != '\n') { in get_line()
276 if (obj->buf[obj->in_buf] == '\0') { /* Either end of file or end of buffer reached */ in get_line()
284 obj->in_buf = 0; in get_line()
291 obj->line[i++] = obj->buf[obj->in_buf++]; in get_line()
295 obj->in_buf++; in get_line()
301 obj->in_buf++; /* move past '\n' */ in get_line()
332 if (obj->in_buf == 0) { in back_lines()
352 obj->in_buf = tabize(obj, val_to_tabize, (long *) 0); in back_lines()
359 obj->in_buf--; in back_lines()
[all …]
/freebsd-12-stable/contrib/xz/src/xz/
Dcoder.c39 static io_buf in_buf; variable
376 && memcmp(in_buf.u8, magic, sizeof(magic)) == 0; in is_format_xz()
390 if (lzma_properties_decode(&filter, NULL, in_buf.u8, 5) != LZMA_OK) in is_format_lzma()
418 uncompressed_size |= (uint64_t)(in_buf.u8[5 + i]) << (i * 8); in is_format_lzma()
719 strm.next_in = in_buf.u8; in coder_normal()
720 strm.avail_in = io_read(pair, &in_buf, in coder_normal()
813 pair, &in_buf, 1); in coder_normal()
876 if (io_write(pair, &in_buf, strm.avail_in)) in coder_passthru()
883 strm.avail_in = io_read(pair, &in_buf, IO_BUFFER_SIZE); in coder_passthru()
912 strm.next_in = in_buf.u8; in coder_run()
[all …]
/freebsd-12-stable/contrib/xz/src/xzdec/
Dxzdec.c164 uint8_t in_buf[BUFSIZ]; in uncompress() local
175 strm->next_in = in_buf; in uncompress()
176 strm->avail_in = fread(in_buf, 1, BUFSIZ, file); in uncompress()
222 || fread(in_buf, 1, 1, file) in uncompress()
/freebsd-12-stable/crypto/heimdal/appl/push/
Dpush.c216 char *in_buf; in doit() local
234 in_buf = emalloc(PUSH_BUFSIZ + 1); in doit()
235 in_ptr = in_buf; in doit()
320 char *tmp = erealloc(in_buf, in_buf_size + PUSH_BUFSIZ + 1); in doit()
321 in_ptr = tmp + (in_ptr - in_buf); in doit()
322 in_buf = tmp; in doit()
336 beg = in_buf; in doit()
475 memmove (in_buf, beg, rem); in doit()
477 in_ptr = in_buf + rem; in doit()
/freebsd-12-stable/share/examples/libusb20/
Dbulk.c122 uint8_t in_buf[BUFLEN]; in doit() local
135 if ((rv = libusb20_tr_bulk_intr_sync(xfr_in, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
142 print_formatted(in_buf, rlen); in doit()
Dcontrol.c166 uint8_t in_buf[BUFLEN]; in doit() local
169 if ((rv = libusb20_tr_bulk_intr_sync(xfr_intr, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
176 print_formatted(in_buf, rlen); in doit()
/freebsd-12-stable/usr.sbin/config/
Dlang.l49 YY_BUFFER_STATE in_buf; /* previous lex state */ member
305 in->in_buf = YY_CURRENT_BUFFER;
331 yy_switch_to_buffer(in->in_buf);
/freebsd-12-stable/sys/dev/xilinx/
Daxi_quad_spi.c160 uint8_t *in_buf, int bufsz, int cs) in spi_txrx() argument
172 if (in_buf) in spi_txrx()
173 in_buf[i] = (data & 0xff); in spi_txrx()
/freebsd-12-stable/sys/dev/drm2/i915/
Ddvo_ivch.c174 u8 in_buf[2]; in ivch_read() local
192 .buf = in_buf, in ivch_read()
199 *data = (in_buf[1] << 8) | in_buf[0]; in ivch_read()
Ddvo_sil164.c76 u8 in_buf[2]; in sil164_readb() local
89 .buf = in_buf, in sil164_readb()
97 *ch = in_buf[0]; in sil164_readb()
Ddvo_tfp410.c101 u8 in_buf[2]; in tfp410_readb() local
114 .buf = in_buf, in tfp410_readb()
122 *ch = in_buf[0]; in tfp410_readb()
Ddvo_ch7xxx.c120 u8 in_buf[2]; in ch7xxx_readb() local
133 .buf = in_buf, in ch7xxx_readb()
141 *ch = in_buf[0]; in ch7xxx_readb()
Ddvo_ns2501.c157 u8 in_buf[2]; in ns2501_readb() local
170 .buf = in_buf, in ns2501_readb()
178 *ch = in_buf[0]; in ns2501_readb()
/freebsd-12-stable/sys/dev/cxgbe/cudbg/
Dfastlz_api.c86 int write_to_buf(void *out_buf, u32 out_buf_size, u32 *offset, void *in_buf, in write_to_buf() argument
96 memcpy((char *)out_buf + *offset, in_buf, in_buf_size); in write_to_buf()
103 int read_from_buf(void *in_buf, u32 in_buf_size, u32 *offset, void *out_buf, in read_from_buf() argument
109 memcpy((char *)out_buf, (char *)in_buf + *offset, out_buf_size); in read_from_buf()
/freebsd-12-stable/sys/arm/samsung/exynos/
Dexynos5_spi.c142 uint8_t *in_buf, int bufsz, int cs) in spi_txrx() argument
180 in_buf[i] = READ1(sc, SPI_RX_DATA); in spi_txrx()
/freebsd-12-stable/crypto/openssh/
Dumac.c187 UINT8 in_buf[AES_BLOCK_LEN] = {0}; in kdf() local
193 in_buf[AES_BLOCK_LEN-9] = ndx; in kdf()
194 in_buf[AES_BLOCK_LEN-1] = i = 1; in kdf()
197 aes_encryption(in_buf, out_buf, key); in kdf()
199 in_buf[AES_BLOCK_LEN-1] = ++i; in kdf()
204 aes_encryption(in_buf, out_buf, key); in kdf()
207 explicit_bzero(in_buf, sizeof(in_buf)); in kdf()
/freebsd-12-stable/sys/arm/freescale/vybrid/
Dvf_spi.c208 uint8_t *in_buf, int bufsz, int cs) in spi_txrx() argument
243 in_buf[i] = READ1(sc, SPI_POPR); in spi_txrx()
/freebsd-12-stable/contrib/unbound/sldns/
Dwire2str.c853 int in_buf = 1; in sldns_wire2str_dname_scan() local
870 if(in_buf) { (*d)++; (*dlen)--; } in sldns_wire2str_dname_scan()
876 if(in_buf && *dlen == 0) in sldns_wire2str_dname_scan()
879 else if(!in_buf && pos+1 > pkt+pktlen) in sldns_wire2str_dname_scan()
883 if(in_buf) { (*d)++; (*dlen)--; } in sldns_wire2str_dname_scan()
894 in_buf = 0; in sldns_wire2str_dname_scan()
906 if(in_buf && *dlen < (size_t)labellen) in sldns_wire2str_dname_scan()
908 else if(!in_buf && pos+(size_t)labellen > pkt+pktlen) in sldns_wire2str_dname_scan()
923 if(in_buf) { in sldns_wire2str_dname_scan()
931 if(in_buf && *dlen > 0) { (*d)++; (*dlen)--; } in sldns_wire2str_dname_scan()

12