Searched refs:in_buf (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-11-stable/crypto/heimdal/appl/test/
H A Dhttp_client.c196 char in_buf[1024], *in_ptr = in_buf; local
214 ret = read (s, in_ptr, sizeof(in_buf) - in_len - 1);
220 in_buf[ret + in_len] = '\0';
229 p = strstr(in_buf, "\r\n");
233 } else if (p == in_buf) {
234 memmove(in_buf, in_buf + 2, sizeof(in_buf) - 2);
240 req->response = emalloc(p - in_buf
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_peer/
H A Deap_tnc.c20 struct wpabuf *in_buf; member in struct:eap_tnc_data
63 wpabuf_free(data->in_buf);
152 if (len > wpabuf_tailroom(data->in_buf)) {
158 wpabuf_put_data(data->in_buf, buf, len);
161 (unsigned long) wpabuf_tailroom(data->in_buf));
174 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) {
181 if (data->in_buf == NULL) {
183 data->in_buf = wpabuf_alloc(message_length);
184 if (data->in_buf == NULL) {
190 wpabuf_put_data(data->in_buf, bu
[all...]
H A Deap_ikev2.c20 struct wpabuf *in_buf; member in struct:eap_ikev2_data
111 wpabuf_free(data->in_buf);
271 if (len > wpabuf_tailroom(data->in_buf)) {
277 wpabuf_put_data(data->in_buf, buf, len);
280 (unsigned long) wpabuf_tailroom(data->in_buf));
293 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) {
300 if (data->in_buf == NULL) {
309 data->in_buf = wpabuf_alloc(message_length);
310 if (data->in_buf == NULL) {
316 wpabuf_put_data(data->in_buf, bu
[all...]
H A Deap_wsc.c22 struct wpabuf *in_buf; member in struct:eap_wsc_data
291 wpabuf_free(data->in_buf);
378 if (len > wpabuf_tailroom(data->in_buf)) {
384 wpabuf_put_data(data->in_buf, buf, len);
387 (unsigned long) wpabuf_tailroom(data->in_buf));
400 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) {
407 if (data->in_buf == NULL) {
409 data->in_buf = wpabuf_alloc(message_length);
410 if (data->in_buf == NULL) {
417 wpabuf_put_data(data->in_buf, bu
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_server/
H A Deap_server_tnc.c23 struct wpabuf *in_buf; member in struct:eap_tnc_data
97 wpabuf_free(data->in_buf);
401 if (len > wpabuf_tailroom(data->in_buf)) {
407 wpabuf_put_data(data->in_buf, buf, len);
410 (unsigned long) wpabuf_tailroom(data->in_buf));
421 if (data->in_buf == NULL && !(flags & EAP_TNC_FLAGS_LENGTH_INCLUDED)) {
427 if (data->in_buf == NULL) {
429 data->in_buf = wpabuf_alloc(message_length);
430 if (data->in_buf == NULL) {
435 wpabuf_put_data(data->in_buf, bu
[all...]
H A Deap_server_wsc.c22 struct wpabuf *in_buf; member in struct:eap_wsc_data
158 wpabuf_free(data->in_buf);
302 if (len > wpabuf_tailroom(data->in_buf)) {
308 wpabuf_put_data(data->in_buf, buf, len);
311 (unsigned long) wpabuf_tailroom(data->in_buf));
322 if (data->in_buf == NULL && !(flags & WSC_FLAGS_LF)) {
328 if (data->in_buf == NULL) {
330 data->in_buf = wpabuf_alloc(message_length);
331 if (data->in_buf == NULL) {
337 wpabuf_put_data(data->in_buf, bu
[all...]
H A Deap_server_ikev2.c20 struct wpabuf *in_buf; member in struct:eap_ikev2_data
126 wpabuf_free(data->in_buf);
283 if (len > wpabuf_tailroom(data->in_buf)) {
289 wpabuf_put_data(data->in_buf, buf, len);
292 (unsigned long) wpabuf_tailroom(data->in_buf));
303 if (data->in_buf == NULL && !(flags & IKEV2_FLAGS_LENGTH_INCLUDED)) {
309 if (data->in_buf == NULL) {
317 data->in_buf = wpabuf_alloc(message_length);
318 if (data->in_buf == NULL) {
323 wpabuf_put_data(data->in_buf, bu
[all...]
/freebsd-11-stable/sys/arm/lpc/
H A Dlpc_spi.c145 uint8_t *in_buf, *out_buf; local
159 in_buf = cmd->rx_cmd;
163 in_buf[i] = lpc_spi_read_4(sc, LPC_SSP_DR);
167 in_buf = cmd->rx_data;
171 in_buf[i] = lpc_spi_read_4(sc, LPC_SSP_DR);
/freebsd-11-stable/contrib/xz/src/xzdec/
H A Dxzdec.c164 uint8_t in_buf[BUFSIZ]; local
175 strm->next_in = in_buf;
176 strm->avail_in = fread(in_buf, 1, BUFSIZ, file);
222 || fread(in_buf, 1, 1, file)
/freebsd-11-stable/contrib/xz/src/xz/
H A Dcoder.c39 static io_buf in_buf; variable
369 /// Return true if the data in in_buf seems to be in the .xz format.
376 && memcmp(in_buf.u8, magic, sizeof(magic)) == 0;
380 /// Return true if the data in in_buf seems to be in the .lzma format.
390 if (lzma_properties_decode(&filter, NULL, in_buf.u8, 5) != LZMA_OK)
418 uncompressed_size |= (uint64_t)(in_buf.u8[5 + i]) << (i * 8);
695 strm.next_in = in_buf.u8;
696 strm.avail_in = io_read(pair, &in_buf,
789 pair, &in_buf, 1);
852 if (io_write(pair, &in_buf, str
[all...]
/freebsd-11-stable/usr.sbin/config/
H A Dlang.l47 YY_BUFFER_STATE in_buf; /* previous lex state */
303 in->in_buf = YY_CURRENT_BUFFER;
329 yy_switch_to_buffer(in->in_buf);
/freebsd-11-stable/contrib/dialog/
H A Dtextbox.c48 long in_buf; /* ending index into buf[] for page */ member in struct:__anon958
275 while (obj->buf[obj->in_buf] != '\n') {
276 if (obj->buf[obj->in_buf] == '\0') { /* Either end of file or end of buffer reached */
284 obj->in_buf = 0;
291 obj->line[i++] = obj->buf[obj->in_buf++];
295 obj->in_buf++;
301 obj->in_buf++; /* move past '\n' */
315 * 'in_buf' will be updated to point to the desired line in 'buf'.
327 * basically does a '--in_buf' to move one character backward so as to
332 if (obj->in_buf
[all...]
/freebsd-11-stable/share/examples/libusb20/
H A Dbulk.c119 uint8_t in_buf[BUFLEN]; local
132 if ((rv = libusb20_tr_bulk_intr_sync(xfr_in, in_buf, BUFLEN, &rlen, TIMEOUT))
139 print_formatted(in_buf, rlen);
H A Dcontrol.c163 uint8_t in_buf[BUFLEN]; local
166 if ((rv = libusb20_tr_bulk_intr_sync(xfr_intr, in_buf, BUFLEN, &rlen, TIMEOUT))
173 print_formatted(in_buf, rlen);
/freebsd-11-stable/sys/dev/drm2/i915/
H A Ddvo_ivch.c174 u8 in_buf[2]; local
192 .buf = in_buf,
199 *data = (in_buf[1] << 8) | in_buf[0];
H A Ddvo_ch7xxx.c120 u8 in_buf[2]; local
133 .buf = in_buf,
141 *ch = in_buf[0];
H A Ddvo_sil164.c76 u8 in_buf[2]; local
89 .buf = in_buf,
97 *ch = in_buf[0];
H A Ddvo_tfp410.c101 u8 in_buf[2]; local
114 .buf = in_buf,
122 *ch = in_buf[0];
H A Ddvo_ns2501.c157 u8 in_buf[2]; local
170 .buf = in_buf,
178 *ch = in_buf[0];
/freebsd-11-stable/crypto/heimdal/appl/push/
H A Dpush.c216 char *in_buf; local
234 in_buf = emalloc(PUSH_BUFSIZ + 1);
235 in_ptr = in_buf;
320 char *tmp = erealloc(in_buf, in_buf_size + PUSH_BUFSIZ + 1);
321 in_ptr = tmp + (in_ptr - in_buf);
322 in_buf = tmp;
336 beg = in_buf;
475 memmove (in_buf, beg, rem);
477 in_ptr = in_buf + rem;
/freebsd-11-stable/sys/arm/samsung/exynos/
H A Dexynos5_spi.c142 uint8_t *in_buf, int bufsz, int cs)
180 in_buf[i] = READ1(sc, SPI_RX_DATA);
141 spi_txrx(struct spi_softc *sc, uint8_t *out_buf, uint8_t *in_buf, int bufsz, int cs) argument
/freebsd-11-stable/sys/dev/xilinx/
H A Daxi_quad_spi.c160 uint8_t *in_buf, int bufsz, int cs)
172 if (in_buf)
173 in_buf[i] = (data & 0xff);
159 spi_txrx(struct spi_softc *sc, uint8_t *out_buf, uint8_t *in_buf, int bufsz, int cs) argument
/freebsd-11-stable/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c86 int write_to_buf(void *out_buf, u32 out_buf_size, u32 *offset, void *in_buf, argument
96 memcpy((char *)out_buf + *offset, in_buf, in_buf_size);
103 int read_from_buf(void *in_buf, u32 in_buf_size, u32 *offset, void *out_buf, argument
109 memcpy((char *)out_buf, (char *)in_buf + *offset, out_buf_size);
/freebsd-11-stable/sys/arm/freescale/vybrid/
H A Dvf_spi.c209 uint8_t *in_buf, int bufsz, int cs)
244 in_buf[i] = READ1(sc, SPI_POPR);
208 spi_txrx(struct spi_softc *sc, uint8_t *out_buf, uint8_t *in_buf, int bufsz, int cs) argument
/freebsd-11-stable/crypto/openssh/
H A Dumac.c186 UINT8 in_buf[AES_BLOCK_LEN] = {0}; local
192 in_buf[AES_BLOCK_LEN-9] = ndx;
193 in_buf[AES_BLOCK_LEN-1] = i = 1;
196 aes_encryption(in_buf, out_buf, key);
198 in_buf[AES_BLOCK_LEN-1] = ++i;
203 aes_encryption(in_buf, out_buf, key);

Completed in 148 milliseconds

12