Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 4313) sorted by relevance

12345678910>>...173

/trueos/sys/dev/qlxgbe/
HDql_dbg.c50 uint32_t *buf; in ql_dump_buf32() local
53 buf = dbuf32; in ql_dump_buf32()
59 i, buf[0], buf[1], buf[2], buf[3]); in ql_dump_buf32()
62 buf += 4; in ql_dump_buf32()
66 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in ql_dump_buf32()
69 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in ql_dump_buf32()
73 i, buf[0], buf[1], buf[2]); in ql_dump_buf32()
89 uint16_t *buf; in ql_dump_buf16() local
92 buf = dbuf16; in ql_dump_buf16()
98 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in ql_dump_buf16()
[all …]
/trueos/sys/dev/qlxgb/
HDqla_dbg.c54 uint32_t *buf; in qla_dump_buf32() local
57 buf = dbuf32; in qla_dump_buf32()
63 i, buf[0], buf[1], buf[2], buf[3]); in qla_dump_buf32()
66 buf += 4; in qla_dump_buf32()
70 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in qla_dump_buf32()
73 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in qla_dump_buf32()
77 i, buf[0], buf[1], buf[2]); in qla_dump_buf32()
93 uint16_t *buf; in qla_dump_buf16() local
96 buf = dbuf16; in qla_dump_buf16()
102 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in qla_dump_buf16()
[all …]
/trueos/sys/dev/qlxge/
HDqls_dbg.c53 uint32_t *buf; in qls_dump_buf32() local
56 buf = dbuf32; in qls_dump_buf32()
62 i, buf[0], buf[1], buf[2], buf[3]); in qls_dump_buf32()
65 buf += 4; in qls_dump_buf32()
69 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in qls_dump_buf32()
72 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in qls_dump_buf32()
76 i, buf[0], buf[1], buf[2]); in qls_dump_buf32()
95 uint16_t *buf; in qls_dump_buf16() local
98 buf = dbuf16; in qls_dump_buf16()
104 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in qls_dump_buf16()
[all …]
/trueos/contrib/wpa/src/p2p/
HDp2p_build.c17 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) in p2p_buf_add_action_hdr() argument
19 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC); in p2p_buf_add_action_hdr()
20 wpabuf_put_be24(buf, OUI_WFA); in p2p_buf_add_action_hdr()
21 wpabuf_put_u8(buf, P2P_OUI_TYPE); in p2p_buf_add_action_hdr()
23 wpabuf_put_u8(buf, subtype); /* OUI Subtype */ in p2p_buf_add_action_hdr()
24 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_action_hdr()
29 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, in p2p_buf_add_public_action_hdr() argument
32 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in p2p_buf_add_public_action_hdr()
33 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC); in p2p_buf_add_public_action_hdr()
34 wpabuf_put_be24(buf, OUI_WFA); in p2p_buf_add_public_action_hdr()
[all …]
/trueos/contrib/wpa/src/utils/
HDwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) in wpabuf_get_trace() argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); in wpabuf_get_trace()
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow() argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf); in wpabuf_overflow()
40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow()
49 struct wpabuf *buf = *_buf; in wpabuf_resize() local
54 if (buf == NULL) { in wpabuf_resize()
60 trace = wpabuf_get_trace(buf); in wpabuf_resize()
69 if (buf->used + add_len > buf->size) { in wpabuf_resize()
71 if (buf->flags & WPABUF_FLAG_EXT_DATA) { in wpabuf_resize()
[all …]
HDwpabuf.h23 u8 *buf; /* pointer to the head of the buffer */ member
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void * wpabuf_put(struct wpabuf *buf, size_t len);
37 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
38 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
46 static inline size_t wpabuf_size(const struct wpabuf *buf) in wpabuf_size() argument
48 return buf->size; in wpabuf_size()
56 static inline size_t wpabuf_len(const struct wpabuf *buf) in wpabuf_len() argument
58 return buf->used; in wpabuf_len()
[all …]
/trueos/usr.sbin/bluetooth/sdpd/
HDprofile.c103 uint8_t *buf, uint8_t const * const eob, in common_profile_create_service_record_handle() argument
106 if (buf + 5 > eob) in common_profile_create_service_record_handle()
109 SDP_PUT8(SDP_DATA_UINT32, buf); in common_profile_create_service_record_handle()
110 SDP_PUT32(((provider_p) data)->handle, buf); in common_profile_create_service_record_handle()
123 uint8_t *buf, uint8_t const * const eob, in common_profile_create_service_class_id_list() argument
128 if (len <= 0 || len > 0xff || buf + 2 + len > eob) in common_profile_create_service_class_id_list()
131 SDP_PUT8(SDP_DATA_SEQ8, buf); in common_profile_create_service_class_id_list()
132 SDP_PUT8(len, buf); in common_profile_create_service_class_id_list()
135 SDP_PUT8(SDP_DATA_UUID16, buf); in common_profile_create_service_class_id_list()
136 SDP_PUT16(*((uint16_t const *)data), buf); in common_profile_create_service_class_id_list()
[all …]
/trueos/contrib/ofed/management/libibmad/src/
HDdump.c50 mad_dump_int(char *buf, int bufsz, void *val, int valsz) in mad_dump_int() argument
54 snprintf(buf, bufsz, "%d", *(uint8_t *)val); in mad_dump_int()
57 snprintf(buf, bufsz, "%d", *(uint16_t *)val); in mad_dump_int()
61 snprintf(buf, bufsz, "%d", *(uint32_t *)val); in mad_dump_int()
67 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *)val); in mad_dump_int()
71 buf[0] = 0; in mad_dump_int()
76 mad_dump_uint(char *buf, int bufsz, void *val, int valsz) in mad_dump_uint() argument
80 snprintf(buf, bufsz, "%u", *(uint8_t *)val); in mad_dump_uint()
83 snprintf(buf, bufsz, "%u", *(uint16_t *)val); in mad_dump_uint()
87 snprintf(buf, bufsz, "%u", *(uint32_t *)val); in mad_dump_uint()
[all …]
/trueos/contrib/flex/
HDbuf.c55 struct Buf *buf_print_strings(struct Buf * buf, FILE* out) in buf_print_strings() argument
59 if(!buf || !out) in buf_print_strings()
60 return buf; in buf_print_strings()
62 for (i=0; i < buf->nelts; i++){ in buf_print_strings()
63 const char * s = ((char**)buf->elts)[i]; in buf_print_strings()
67 return buf; in buf_print_strings()
71 struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s) in buf_prints() argument
80 buf = buf_strappend (buf, t); in buf_prints()
82 return buf; in buf_prints()
91 struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno) in buf_linedir() argument
[all …]
/trueos/lib/libc/stdtime/
HDstrptime.c86 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, in _strptime() argument
110 while (*buf != 0 && in _strptime()
111 isspace_l((unsigned char)*buf, locale)) in _strptime()
112 buf++; in _strptime()
113 else if (c != *buf++) in _strptime()
124 if (*buf++ != '%') in _strptime()
129 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime()
130 if (buf == NULL) in _strptime()
136 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime()
141 for (i = 0; len && *buf != 0 && in _strptime()
[all …]
/trueos/usr.bin/csup/
HDstream.c90 struct buf { struct
91 char *buf; member
100 int buf; member
101 struct buf *rdbuf;
102 struct buf *wrbuf;
113 typedef int stream_filter_flushfn_t(struct stream *, struct buf *,
115 typedef ssize_t stream_filter_fillfn_t(struct stream *, struct buf *);
126 #define buf_avail(buf) ((buf)->size - (buf)->off - (buf)->in) argument
127 #define buf_count(buf) ((buf)->in) argument
128 #define buf_size(buf) ((buf)->size) argument
[all …]
/trueos/contrib/wpa/src/common/
HDgas.c20 struct wpabuf *buf; in gas_build_req() local
22 buf = wpabuf_alloc(100 + size); in gas_build_req()
23 if (buf == NULL) in gas_build_req()
26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in gas_build_req()
27 wpabuf_put_u8(buf, action); in gas_build_req()
28 wpabuf_put_u8(buf, dialog_token); in gas_build_req()
30 return buf; in gas_build_req()
51 struct wpabuf *buf; in gas_build_resp() local
53 buf = wpabuf_alloc(100 + size); in gas_build_resp()
54 if (buf == NULL) in gas_build_resp()
[all …]
/trueos/contrib/tcpdump/
HDsmbutil.c172 name_ptr(const u_char *buf, int ofs, const u_char *maxbuf) in name_ptr() argument
177 p = buf + ofs; in name_ptr()
196 p = buf + l; in name_ptr()
211 name_extract(const u_char *buf, int ofs, const u_char *maxbuf, char *name) in name_extract() argument
213 const u_char *p = name_ptr(buf, ofs, maxbuf); in name_extract()
249 print_asc(const unsigned char *buf, int len) in print_asc() argument
253 safeputchar(buf[i]); in print_asc()
274 print_data(const unsigned char *buf, int len) in print_data() argument
282 TCHECK(buf[i]); in print_data()
283 printf("%02X ", buf[i] & 0xff); in print_data()
[all …]
/trueos/contrib/netcat/
HDsocks.c91 proxy_read_line(int fd, char *buf, size_t bufsz) in proxy_read_line() argument
98 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line()
101 if (buf[off] == '\r') in proxy_read_line()
103 if (buf[off] == '\n') { in proxy_read_line()
104 buf[off] = '\0'; in proxy_read_line()
133 unsigned char buf[1024]; in socks_connect() local
165 buf[0] = SOCKS_V5; in socks_connect()
166 buf[1] = 1; in socks_connect()
167 buf[2] = SOCKS_NOAUTH; in socks_connect()
168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
[all …]
/trueos/tools/regression/lib/libc/locale/
HDtest-c16rtomb.c48 char buf[MB_LEN_MAX + 1]; in main() local
65 memset(buf, 0xcc, sizeof(buf)); in main()
66 assert(c16rtomb(buf, 0, &s) == 1); in main()
67 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc); in main()
75 memset(buf, 0xcc, sizeof(buf)); in main()
76 assert(c16rtomb(buf, L'A', &s) == 1); in main()
77 assert((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc); in main()
81 memset(buf, 0xcc, sizeof(buf)); in main()
82 assert(c16rtomb(buf, 0xd83d, &s) == 0); in main()
83 assert(c16rtomb(buf, 0xdca9, &s) == (size_t)-1); in main()
[all …]
HDtest-wctomb.c50 char buf[MB_LEN_MAX + 1]; in main() local
64 memset(buf, 0xcc, sizeof(buf)); in main()
65 len = wctomb(buf, L'\0'); in main()
67 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc); in main()
70 memset(buf, 0xcc, sizeof(buf)); in main()
71 len = wctomb(buf, L'A'); in main()
73 assert((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc); in main()
76 assert(wctomb(buf, UCHAR_MAX + 1) == -1); in main()
90 memset(buf, 0xcc, sizeof(buf)); in main()
91 len = wctomb(buf, L'\0'); in main()
[all …]
/trueos/contrib/pf/libevent/
HDbuffer.c129 evbuffer_add_vprintf(struct evbuffer *buf, const char *fmt, va_list ap) in evbuffer_add_vprintf() argument
133 size_t oldoff = buf->off; in evbuffer_add_vprintf()
138 buffer = (char *)buf->buffer + buf->off; in evbuffer_add_vprintf()
139 space = buf->totallen - buf->misalign - buf->off; in evbuffer_add_vprintf()
158 buf->off += sz; in evbuffer_add_vprintf()
159 if (buf->cb != NULL) in evbuffer_add_vprintf()
160 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add_vprintf()
163 if (evbuffer_expand(buf, sz + 1) == -1) in evbuffer_add_vprintf()
171 evbuffer_add_printf(struct evbuffer *buf, const char *fmt, ...) in evbuffer_add_printf() argument
177 res = evbuffer_add_vprintf(buf, fmt, ap); in evbuffer_add_printf()
[all …]
/trueos/tools/regression/lib/libc/string/
HDtest-strerror.c53 char buf[64]; in main() local
64 snprintf(buf, sizeof(buf), "Unknown error: %d", INT_MAX); in main()
65 CHECK(strcmp(sret, buf) == 0); in main()
93 memset(buf, '*', sizeof(buf)); in main()
94 iret = strerror_r(-1, buf, sizeof(buf)); in main()
95 CHECK(strcmp(buf, "Unknown error: -1") == 0); in main()
98 memset(buf, '*', sizeof(buf)); in main()
100 iret = strerror_r(EPERM, buf, strlen("Operation not permitted")); in main()
101 CHECK(strcmp(buf, "Operation not permitte") == 0); in main()
104 memset(buf, '*', sizeof(buf)); in main()
[all …]
/trueos/contrib/ncurses/ncurses/tinfo/
HDlib_raw.c87 TTY buf; in NCURSES_EXPORT() local
92 buf = cur_term->Nttyb; in NCURSES_EXPORT()
94 buf.c_lflag &= ~(ICANON | ISIG | IEXTEN); in NCURSES_EXPORT()
95 buf.c_iflag &= ~(COOKED_INPUT); in NCURSES_EXPORT()
96 buf.c_cc[VMIN] = 1; in NCURSES_EXPORT()
97 buf.c_cc[VTIME] = 0; in NCURSES_EXPORT()
99 buf.sg_flags |= RAW; in NCURSES_EXPORT()
101 if ((result = _nc_set_tty_mode(&buf)) == OK) { in NCURSES_EXPORT()
104 cur_term->Nttyb = buf; in NCURSES_EXPORT()
119 TTY buf; in cbreak() local
[all …]
/trueos/contrib/subversion/subversion/libsvn_subr/
HDspillbuf.c81 struct svn_spillbuf_t buf; member
107 svn_spillbuf_t *buf = apr_pcalloc(result_pool, sizeof(*buf)); in svn_spillbuf__create() local
109 buf->pool = result_pool; in svn_spillbuf__create()
110 buf->blocksize = blocksize; in svn_spillbuf__create()
111 buf->maxsize = maxsize; in svn_spillbuf__create()
114 return buf; in svn_spillbuf__create()
119 svn_spillbuf__get_size(const svn_spillbuf_t *buf) in svn_spillbuf__get_size() argument
121 return buf->memory_size + buf->spill_size; in svn_spillbuf__get_size()
128 get_buffer(svn_spillbuf_t *buf) in get_buffer() argument
130 struct memblock_t *mem = buf->out_for_reading; in get_buffer()
[all …]
/trueos/sys/sys/
HDbuf.h47 struct buf;
64 void (*io_start)(struct buf *);
65 void (*io_complete)(struct buf *);
66 void (*io_deallocate)(struct buf *);
67 int (*io_countdeps)(struct buf *, int);
95 struct buf { struct
105 void (*b_iodone)(struct buf *); argument
108 TAILQ_ENTRY(buf) b_bobufs; /* (V) Buffer's associated vnode. */ argument
110 TAILQ_ENTRY(buf) b_freelist; /* (Q) Free list position inactive. */ argument
131 TAILQ_HEAD(cluster_list_head, buf) cluster_head; argument
[all …]
/trueos/crypto/heimdal/lib/roken/
HDstrptime.c106 match_string (const char **buf, const char **strs) in match_string() argument
113 if (strncasecmp (*buf, strs[i], len) == 0) { in match_string()
114 *buf += len; in match_string()
128 parse_number (const char **buf, int n, int *num) in parse_number() argument
138 for (; **buf != '\0' && isspace((unsigned char)(**buf)); (*buf)++) in parse_number()
142 for (i = 0; **buf != '\0' && i < n && isdigit((unsigned char)(**buf)); i++, (*buf)++) in parse_number()
143 str[i] = **buf; in parse_number()
241 strptime (const char *buf, const char *format, struct tm *timeptr) in strptime() argument
250 while (isspace ((unsigned char)*buf)) in strptime()
251 ++buf; in strptime()
[all …]
/trueos/lib/libc/nameser/
HDns_print.c59 char **buf, size_t *buflen);
62 char **buf, size_t *buflen);
63 static void addlen(size_t len, char **buf, size_t *buflen);
65 char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
91 char *buf, size_t buflen) in ns_sprintrr() argument
98 name_ctx, origin, buf, buflen); in ns_sprintrr()
113 char *buf, size_t buflen) in ns_sprintrrf() argument
115 const char *obuf = buf; in ns_sprintrrf()
127 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf()
[all …]
/trueos/contrib/gcclibs/libiberty/
HDvsnprintf.c59 char *buf = 0; in vsnprintf() local
60 int result = vasprintf (&buf, format, ap); in vsnprintf()
62 if (!buf) in vsnprintf()
66 free (buf); in vsnprintf()
70 result = strlen (buf); in vsnprintf()
74 memcpy (s, buf, result+1); in vsnprintf()
77 memcpy (s, buf, n-1); in vsnprintf()
81 free (buf); in vsnprintf()
108 char buf[128]; in main() local
111 CLEAR (buf); in main()
[all …]
/trueos/contrib/wpa/src/ap/
HDgas_serv.c133 struct wpabuf *buf) in anqp_add_hs_capab_list() argument
137 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); in anqp_add_hs_capab_list()
138 wpabuf_put_be24(buf, OUI_WFA); in anqp_add_hs_capab_list()
139 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); in anqp_add_hs_capab_list()
140 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); in anqp_add_hs_capab_list()
141 wpabuf_put_u8(buf, 0); /* Reserved */ in anqp_add_hs_capab_list()
142 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); in anqp_add_hs_capab_list()
144 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME); in anqp_add_hs_capab_list()
146 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS); in anqp_add_hs_capab_list()
148 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILITY); in anqp_add_hs_capab_list()
[all …]

12345678910>>...173