Searched refs:buf (Results 26 - 50 of 6080) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/wpa_supplicant/src/p2p/
H A Dp2p_build.c17 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) argument
19 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC);
20 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
22 wpabuf_put_u8(buf, subtype); /* OUI Subtype */
23 wpabuf_put_u8(buf, dialog_token);
28 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, argument
31 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC);
32 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC);
33 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE);
35 wpabuf_put_u8(buf, subtyp
41 p2p_buf_add_ie_hdr(struct wpabuf *buf) argument
54 p2p_buf_update_ie_hdr(struct wpabuf *buf, u8 *len) argument
61 p2p_buf_add_capability(struct wpabuf *buf, u8 dev_capab, u8 group_capab) argument
73 p2p_buf_add_go_intent(struct wpabuf *buf, u8 go_intent) argument
84 p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, u8 reg_class, u8 channel) argument
98 p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, u8 reg_class, u8 channel) argument
112 p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, struct p2p_channels *chan) argument
137 p2p_buf_add_status(struct wpabuf *buf, u8 status) argument
147 p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p, struct p2p_device *peer) argument
203 p2p_buf_add_device_id(struct wpabuf *buf, const u8 *dev_addr) argument
213 p2p_buf_add_config_timeout(struct wpabuf *buf, u8 go_timeout, u8 client_timeout) argument
226 p2p_buf_add_intended_addr(struct wpabuf *buf, const u8 *interface_addr) argument
237 p2p_buf_add_group_bssid(struct wpabuf *buf, const u8 *bssid) argument
248 p2p_buf_add_group_id(struct wpabuf *buf, const u8 *dev_addr, const u8 *ssid, size_t ssid_len) argument
262 p2p_buf_add_invitation_flags(struct wpabuf *buf, u8 flags) argument
272 p2p_buf_add_noa_desc(struct wpabuf *buf, struct p2p_noa_desc *desc) argument
284 p2p_buf_add_noa(struct wpabuf *buf, u8 noa_index, u8 opp_ps, u8 ctwindow, struct p2p_noa_desc *desc1, struct p2p_noa_desc *desc2) argument
298 p2p_buf_add_ext_listen_timing(struct wpabuf *buf, u16 period, u16 interval) argument
311 p2p_buf_add_p2p_interface(struct wpabuf *buf, struct p2p_data *p2p) argument
328 p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, u8 oper_class, u8 channel, enum p2p_role_indication role) argument
345 p2p_add_wps_string(struct wpabuf *buf, enum wps_attribute attr, const char *val) argument
375 p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id, int all_attr) argument
[all...]
/external/libxml2/
H A Dbuf.c2 * buf.c: memory buffers for libxml2
30 #include "buf.h"
39 * directly the input->buf->buffer structures.
59 #define UPDATE_COMPAT(buf) \
60 if (buf->size < INT_MAX) buf->compat_size = buf->size; \
61 else buf->compat_size = INT_MAX; \
62 if (buf->use < INT_MAX) buf
91 xmlBufMemoryError(xmlBufPtr buf, const char *extra) argument
106 xmlBufOverflowError(xmlBufPtr buf, const char *extra) argument
195 xmlBufDetach(xmlBufPtr buf) argument
266 xmlBufGetAllocationScheme(xmlBufPtr buf) argument
287 xmlBufSetAllocationScheme(xmlBufPtr buf, xmlBufferAllocationScheme scheme) argument
327 xmlBufFree(xmlBufPtr buf) argument
353 xmlBufEmpty(xmlBufPtr buf) argument
386 xmlBufShrink(xmlBufPtr buf, size_t len) argument
435 xmlBufGrowInternal(xmlBufPtr buf, size_t len) argument
495 xmlBufGrow(xmlBufPtr buf, int len) argument
517 xmlBufInflate(xmlBufPtr buf, size_t len) argument
534 xmlBufDump(FILE *file, xmlBufPtr buf) argument
568 xmlBufContent(const xmlBufPtr buf) argument
586 xmlBufEnd(const xmlBufPtr buf) argument
607 xmlBufAddLen(xmlBufPtr buf, size_t len) argument
632 xmlBufErase(xmlBufPtr buf, size_t len) argument
654 xmlBufLength(const xmlBufPtr buf) argument
673 xmlBufUse(const xmlBufPtr buf) argument
694 xmlBufAvail(const xmlBufPtr buf) argument
712 xmlBufIsEmpty(const xmlBufPtr buf) argument
731 xmlBufResize(xmlBufPtr buf, size_t size) argument
845 xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len) argument
896 xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) argument
966 xmlBufCat(xmlBufPtr buf, const xmlChar *str) argument
986 xmlBufCCat(xmlBufPtr buf, const char *str) argument
1026 xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string) argument
1047 xmlBufWriteChar(xmlBufPtr buf, const char *string) argument
1070 xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string) argument
1163 xmlBufBackToBuffer(xmlBufPtr buf) argument
1216 xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer) argument
1242 xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input) argument
1261 xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input) argument
1292 xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input, size_t base, size_t cur) argument
[all...]
H A Dbuf.h26 int xmlBufSetAllocationScheme(xmlBufPtr buf,
28 int xmlBufGetAllocationScheme(xmlBufPtr buf);
30 void xmlBufFree(xmlBufPtr buf);
31 void xmlBufEmpty(xmlBufPtr buf);
33 /* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
34 int xmlBufGrow(xmlBufPtr buf, int len);
35 int xmlBufInflate(xmlBufPtr buf, size_t len);
36 int xmlBufResize(xmlBufPtr buf, size_t len);
38 int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
39 int xmlBufAddHead(xmlBufPtr buf, cons
[all...]
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace));
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf);
40 buf, (unsigned long) buf->size, (unsigned long) buf->used,
49 struct wpabuf *buf = *_buf; local
54 if (buf == NULL) {
60 trace = wpabuf_get_trace(buf);
118 struct wpabuf *buf; local
140 struct wpabuf *buf; local
162 struct wpabuf *buf = wpabuf_alloc(len); local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local
182 wpabuf_free(struct wpabuf *buf) argument
208 wpabuf_put(struct wpabuf *buf, size_t len) argument
268 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument
291 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace));
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf);
40 buf, (unsigned long) buf->size, (unsigned long) buf->used,
49 struct wpabuf *buf = *_buf; local
54 if (buf == NULL) {
60 trace = wpabuf_get_trace(buf);
118 struct wpabuf *buf; local
140 struct wpabuf *buf; local
162 struct wpabuf *buf = wpabuf_alloc(len); local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local
182 wpabuf_free(struct wpabuf *buf) argument
208 wpabuf_put(struct wpabuf *buf, size_t len) argument
268 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument
291 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace));
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf);
40 buf, (unsigned long) buf->size, (unsigned long) buf->used,
49 struct wpabuf *buf = *_buf; local
54 if (buf == NULL) {
60 trace = wpabuf_get_trace(buf);
118 struct wpabuf *buf; local
140 struct wpabuf *buf; local
162 struct wpabuf *buf = wpabuf_alloc(len); local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local
182 wpabuf_free(struct wpabuf *buf) argument
208 wpabuf_put(struct wpabuf *buf, size_t len) argument
268 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument
291 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument
[all...]
/external/chromium_org/third_party/freetype/src/cff/
H A Dcf2read.c80 cf2_buf_readByte( CF2_Buffer buf )
82 if ( buf->ptr < buf->end )
87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
91 return *(buf->ptr)++ + randomValue();
93 return *(buf->ptr)++;
98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
106 cf2_buf_isEnd( CF2_Buffer buf )
108 return buf->ptr >= buf
[all...]
/external/freetype/src/cff/
H A Dcf2read.c80 cf2_buf_readByte( CF2_Buffer buf )
82 if ( buf->ptr < buf->end )
87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
91 return *(buf->ptr)++ + randomValue();
93 return *(buf->ptr)++;
98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
106 cf2_buf_isEnd( CF2_Buffer buf )
108 return (FT_Bool)( buf->ptr >= buf
[all...]
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/cff/
H A Dcf2read.c80 cf2_buf_readByte( CF2_Buffer buf )
82 if ( buf->ptr < buf->end )
87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
91 return *(buf->ptr)++ + randomValue();
93 return *(buf->ptr)++;
98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation );
106 cf2_buf_isEnd( CF2_Buffer buf )
108 return (FT_Bool)( buf->ptr >= buf
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/i915/sw/
H A Di915_sw_buffer.c10 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local
12 if (!buf)
15 buf->magic = 0xDEAD1337;
16 buf->type = type;
17 buf->ptr = CALLOC(size, 1);
19 if (!buf->ptr)
22 return (struct i915_winsys_buffer *)buf;
26 FREE(buf);
36 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local
38 if (!buf)
63 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
73 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
85 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
95 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
[all...]
/external/mesa3d/src/gallium/winsys/i915/sw/
H A Di915_sw_buffer.c10 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local
12 if (!buf)
15 buf->magic = 0xDEAD1337;
16 buf->type = type;
17 buf->ptr = CALLOC(size, 1);
19 if (!buf->ptr)
22 return (struct i915_winsys_buffer *)buf;
26 FREE(buf);
36 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local
38 if (!buf)
63 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
73 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
85 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
95 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local
[all...]
/external/lzma/xz-embedded/
H A Dxz_config.h48 #define memzero(buf, size) memset(buf, 0, size)
76 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument
78 return (uint32_t)buf[0]
79 | ((uint32_t)buf[1] << 8)
80 | ((uint32_t)buf[2] << 16)
81 | ((uint32_t)buf[3] << 24);
86 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument
88 return (uint32_t)(buf[0] << 24)
89 | ((uint32_t)buf[
96 put_unaligned_le32(uint32_t val, uint8_t *buf) argument
106 put_unaligned_be32(uint32_t val, uint8_t *buf) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/
H A Dpb_buffer_malloc.c53 malloc_buffer(struct pb_buffer *buf) argument
55 assert(buf);
56 if (!buf)
58 assert(buf->vtbl == &malloc_buffer_vtbl);
59 return (struct malloc_buffer *)buf;
64 malloc_buffer_destroy(struct pb_buffer *buf) argument
66 align_free(malloc_buffer(buf)->data);
67 FREE(buf);
72 malloc_buffer_map(struct pb_buffer *buf, argument
76 return malloc_buffer(buf)
81 malloc_buffer_unmap(struct pb_buffer *buf) argument
88 malloc_buffer_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags) argument
98 malloc_buffer_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence) argument
106 malloc_buffer_get_base_buffer(struct pb_buffer *buf, struct pb_buffer **base_buf, pb_size *offset) argument
130 struct malloc_buffer *buf; local
[all...]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_buffer_malloc.c53 malloc_buffer(struct pb_buffer *buf) argument
55 assert(buf);
56 if (!buf)
58 assert(buf->vtbl == &malloc_buffer_vtbl);
59 return (struct malloc_buffer *)buf;
64 malloc_buffer_destroy(struct pb_buffer *buf) argument
66 align_free(malloc_buffer(buf)->data);
67 FREE(buf);
72 malloc_buffer_map(struct pb_buffer *buf, argument
76 return malloc_buffer(buf)
81 malloc_buffer_unmap(struct pb_buffer *buf) argument
88 malloc_buffer_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags) argument
98 malloc_buffer_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence) argument
106 malloc_buffer_get_base_buffer(struct pb_buffer *buf, struct pb_buffer **base_buf, pb_size *offset) argument
130 struct malloc_buffer *buf; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_debug_describe.h40 void debug_describe_reference(char* buf, const struct pipe_reference*ptr);
41 void debug_describe_resource(char* buf, const struct pipe_resource *ptr);
42 void debug_describe_surface(char* buf, const struct pipe_surface *ptr);
43 void debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr);
44 void debug_describe_so_target(char* buf,
/external/clang/test/Analysis/
H A Dbuiltin-functions.cpp19 char buf[10]; local
20 clang_analyzer_eval(__builtin_object_size(&buf[i++], 0) == sizeof(buf)); // expected-warning{{FALSE}}
21 clang_analyzer_eval(__builtin_object_size(&buf[++i], 0) == sizeof(buf) - 1); // expected-warning{{FALSE}}
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_debug_describe.h40 void debug_describe_reference(char* buf, const struct pipe_reference*ptr);
41 void debug_describe_resource(char* buf, const struct pipe_resource *ptr);
42 void debug_describe_surface(char* buf, const struct pipe_surface *ptr);
43 void debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr);
44 void debug_describe_so_target(char* buf,
/external/mockito/cglib-and-asm/src/org/mockito/asm/signature/
H A DSignatureWriter.java43 private final StringBuffer buf = new StringBuffer(); field in class:SignatureWriter
76 buf.append('<');
78 buf.append(name);
79 buf.append(':');
87 buf.append(':');
104 buf.append('(');
112 buf.append('(');
114 buf.append(')');
119 buf.append('^');
124 buf
[all...]
/external/libpng/contrib/tools/
H A Dpng-fix-itxt.c43 unsigned char buf[MAX_LENGTH]; local
60 c=GETBREAK; buf[0] = c; length = c; length <<= 8;
61 c=GETBREAK; buf[1] = c; length += c; length <<= 8;
62 c=GETBREAK; buf[2] = c; length += c; length <<= 8;
63 c=GETBREAK; buf[3] = c; length += c;
66 c=GETBREAK; buf[4] = c;
67 c=GETBREAK; buf[5] = c;
68 c=GETBREAK; buf[6] = c;
69 c=GETBREAK; buf[7] = c;
73 if (buf[
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/
H A DASMifierAnnotationVisitor.java64 buf.setLength(0);
65 buf.append("av").append(id).append(".visit(");
66 ASMifierAbstractVisitor.appendConstant(buf, name);
67 buf.append(", ");
68 ASMifierAbstractVisitor.appendConstant(buf, value);
69 buf.append(");\n");
70 text.add(buf.toString());
78 buf.setLength(0);
79 buf.append("av").append(id).append(".visitEnum(");
80 ASMifierAbstractVisitor.appendConstant(buf, nam
[all...]
/external/libexif/contrib/examples/
H A Dphotographer.c14 static void trim_spaces(char *buf) argument
16 char *s = buf-1;
17 for (; *buf; ++buf) {
18 if (*buf != ' ')
19 s = buf;
30 char buf[1024]; local
33 exif_entry_get_value(entry, buf, sizeof(buf));
36 trim_spaces(buf);
53 char buf[1024]; local
105 char buf[64]; local
[all...]
/external/freetype/src/gzip/
H A Dadler32.c14 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;}
15 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
16 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
17 #define DO8(buf,i) DO4(buf,
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
H A DBaseDexReader.java56 byte[] buf = dexBuf.buf;
58 result = buf[end++] & 0xff;
62 currentByteValue = buf[end++] & 0xff;
67 currentByteValue = buf[end++] & 0xff;
72 currentByteValue = buf[end++] & 0xff;
77 currentByteValue = buf[end++] & 0xff;
100 byte[] buf = dexBuf.buf;
102 result = buf[en
[all...]
/external/compiler-rt/test/asan/TestCases/
H A Dprintf-1.c20 char buf[4]; local
21 snprintf(buf, 1000, "qwe");
22 printf("%s\n", buf);
H A Dprintf-4.c16 volatile char buf[2]; local
17 sprintf((char *)buf, "%c %d %.3f %s\n", c, x, f, s);
18 puts((const char *)buf);

Completed in 6347 milliseconds

1234567891011>>