/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
D | ns_print.c | 79 char **buf, size_t *buflen); 82 char **buf, size_t *buflen); 83 static void addlen(size_t len, char **buf, size_t *buflen); 85 char **buf, size_t *buflen); 87 char **buf, size_t *buflen); 109 char *buf, size_t buflen) in ns_sprintrr() argument 116 name_ctx, origin, buf, buflen); in ns_sprintrr() 133 char *buf, size_t buflen) in ns_sprintrrf() argument 135 const char *obuf = buf; in ns_sprintrrf() 151 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf() [all …]
|
D | ns_addr.c | 58 static void Field (char *buf, u_char *out, int len); 68 char buf[50]; in ns_addr() local 70 (void)strncpy(buf, name, sizeof(buf) - 1); in ns_addr() 71 buf[sizeof(buf) - 1] = '\0'; in ns_addr() 79 if ((hostname = strchr(buf, '#')) != NULL) in ns_addr() 82 hostname = strchr(buf, '.'); in ns_addr() 83 if ((cp = strchr(buf, ':')) && in ns_addr() 94 Field(buf, addr.x_net.c_net, 4); in ns_addr() 111 char *buf, in Field() argument 116 register char *bp = buf; in Field() [all …]
|
/device/google/contexthub/contexthubhal/ |
D | system_comms.cpp | 40 static void readAppName(MessageBuf &buf, hub_app_name_t &name) in readAppName() argument 42 name.id = buf.readU64(); in readAppName() 45 static void writeAppName(MessageBuf &buf, const hub_app_name_t &name) in writeAppName() argument 47 buf.writeU64(name.id); in writeAppName() 50 static void readNanohubAppInfo(MessageBuf &buf, NanohubAppInfo &info) in readNanohubAppInfo() argument 52 size_t pos = buf.getPos(); in readNanohubAppInfo() 53 readAppName(buf, info.name); in readNanohubAppInfo() 54 info.version = buf.readU32(); in readNanohubAppInfo() 55 info.flashUse = buf.readU32(); in readNanohubAppInfo() 56 info.ramUse = buf.readU32(); in readNanohubAppInfo() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/ |
D | multibytecodec.c | 164 expand_encodebuffer(MultibyteEncodeBuffer *buf, Py_ssize_t esize) in expand_encodebuffer() argument 168 orgpos = (Py_ssize_t)((char *)buf->outbuf - in expand_encodebuffer() 169 PyString_AS_STRING(buf->outobj)); in expand_encodebuffer() 170 orgsize = PyString_GET_SIZE(buf->outobj); in expand_encodebuffer() 178 if (_PyString_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer() 181 buf->outbuf = (unsigned char *)PyString_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 182 buf->outbuf_end = (unsigned char *)PyString_AS_STRING(buf->outobj) in expand_encodebuffer() 183 + PyString_GET_SIZE(buf->outobj); in expand_encodebuffer() 187 #define REQUIRE_ENCODEBUFFER(buf, s) do { \ argument 188 if ((s) < 0 || (s) > (buf)->outbuf_end - (buf)->outbuf) \ [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/ |
D | multibytecodec.c | 164 expand_encodebuffer(MultibyteEncodeBuffer *buf, Py_ssize_t esize) in expand_encodebuffer() argument 168 orgpos = (Py_ssize_t)((char *)buf->outbuf - in expand_encodebuffer() 169 PyString_AS_STRING(buf->outobj)); in expand_encodebuffer() 170 orgsize = PyString_GET_SIZE(buf->outobj); in expand_encodebuffer() 176 if (_PyString_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer() 179 buf->outbuf = (unsigned char *)PyString_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer() 180 buf->outbuf_end = (unsigned char *)PyString_AS_STRING(buf->outobj) in expand_encodebuffer() 181 + PyString_GET_SIZE(buf->outobj); in expand_encodebuffer() 185 #define REQUIRE_ENCODEBUFFER(buf, s) { \ argument 186 if ((s) < 1 || (buf)->outbuf + (s) > (buf)->outbuf_end) \ [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/ |
D | astgen.py | 20 buf = f.read() 22 i = buf.find('### ''PROLOGUE') 23 j = buf.find('### ''EPILOGUE') 24 pro = buf[i+12:j].strip() 25 epi = buf[j+12:].strip() 94 buf = StringIO() 95 print >> buf, "class %s(Node):" % self.name 96 self._gen_init(buf) 97 print >> buf 98 self._gen_getChildren(buf) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_memoryio.py | 19 buf = self.buftype("1234567890") 20 bytesIo = self.ioclass(buf) 23 buf = self.buftype("1234567890") 24 bytesIo = self.ioclass(buf) 26 self.assertEqual(buf[:1], bytesIo.read(1)) 27 self.assertEqual(buf[1:5], bytesIo.read(4)) 28 self.assertEqual(buf[5:], bytesIo.read(900)) 32 buf = self.buftype("1234567890") 33 bytesIo = self.ioclass(buf) 35 self.assertEqual(buf, bytesIo.read()) [all …]
|
D | test_print.py | 114 self.buf = [] 120 self.buf.append(what) 122 buf = Recorder(True) 123 print(u'hi', file=buf) 124 self.assertEqual(u''.join(buf.buf), 'hi\n') 125 del buf.buf[:] 126 print(u'hi', u'nothing', file=buf) 127 self.assertEqual(u''.join(buf.buf), 'hi nothing\n') 128 buf = Recorder(False) 129 print('hi', 'bye', end=u'\n', file=buf) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/ |
D | 7zStream.c | 8 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2() argument 13 RINOK(stream->Read(stream, buf, &processed)); in SeqInStream_Read2() 16 buf = (void *)((Byte *)buf + processed); in SeqInStream_Read2() 22 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read() argument 24 return SeqInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); in SeqInStream_Read() 27 SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf) in SeqInStream_ReadByte() argument 30 RINOK(stream->Read(stream, buf, &processed)); in SeqInStream_ReadByte() 40 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead() argument 46 memcpy(buf, lookBuf, *size); in LookInStream_LookRead() 50 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType) in LookInStream_Read2() argument [all …]
|
/device/generic/goldfish-opengl/system/GLESv1_enc/ |
D | gl_enc.cpp | 29 unsigned char *buf; in glAlphaFunc_enc() local 33 buf = stream->alloc(totalSize); in glAlphaFunc_enc() 34 ptr = buf; in glAlphaFunc_enc() 41 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glAlphaFunc_enc() 55 unsigned char *buf; in glClearColor_enc() local 59 buf = stream->alloc(totalSize); in glClearColor_enc() 60 ptr = buf; in glClearColor_enc() 69 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glClearColor_enc() 83 unsigned char *buf; in glClearDepthf_enc() local 87 buf = stream->alloc(totalSize); in glClearDepthf_enc() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/ |
D | bl2_plat_setup.c | 243 int *buf = (int *)bl30_image_info->image_base; in bl2_plat_handle_bl30() local 246 __func__, buf, buf[0], buf[1], buf[2], buf[3]); in bl2_plat_handle_bl30() 248 buf += 50; in bl2_plat_handle_bl30() 250 __func__, buf, buf[0], buf[1], buf[2], buf[3]); in bl2_plat_handle_bl30() 252 buf += 50; in bl2_plat_handle_bl30() 254 __func__, buf, buf[0], buf[1], buf[2], buf[3]); in bl2_plat_handle_bl30() 256 buf = (int *)(bl30_image_info->image_base + in bl2_plat_handle_bl30() 258 buf -= 4; in bl2_plat_handle_bl30() 260 __func__, buf, buf[0], buf[1], buf[2], buf[3]); in bl2_plat_handle_bl30()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
D | adler32.c | 15 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} argument 16 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 17 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 18 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 19 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 57 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument 59 const Bytef *buf; 71 adler += buf[0]; 81 if (buf == Z_NULL) 87 adler += *buf++; [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
D | adler32.c | 18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} argument 19 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 20 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 21 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 22 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 65 uLong ZEXPORT adler32(adler, buf, len) in adler32() argument 67 const Bytef *buf; 79 adler += buf[0]; 89 if (buf == Z_NULL) 95 adler += *buf++; [all …]
|
/device/generic/goldfish-opengl/system/GLESv2_enc/ |
D | gl2_enc.cpp | 29 unsigned char *buf; in glActiveTexture_enc() local 33 buf = stream->alloc(totalSize); in glActiveTexture_enc() 34 ptr = buf; in glActiveTexture_enc() 40 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glActiveTexture_enc() 54 unsigned char *buf; in glAttachShader_enc() local 58 buf = stream->alloc(totalSize); in glAttachShader_enc() 59 ptr = buf; in glAttachShader_enc() 66 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glAttachShader_enc() 81 unsigned char *buf; in glBindAttribLocation_enc() local 85 buf = stream->alloc(totalSize); in glBindAttribLocation_enc() [all …]
|
/device/generic/goldfish-opengl/system/renderControl_enc/ |
D | renderControl_enc.cpp | 29 unsigned char *buf; in rcGetRendererVersion_enc() local 33 buf = stream->alloc(totalSize); in rcGetRendererVersion_enc() 34 ptr = buf; in rcGetRendererVersion_enc() 39 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in rcGetRendererVersion_enc() 70 unsigned char *buf; in rcGetEGLVersion_enc() local 74 buf = stream->alloc(totalSize); in rcGetEGLVersion_enc() 75 ptr = buf; in rcGetEGLVersion_enc() 82 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in rcGetEGLVersion_enc() 116 unsigned char *buf; in rcQueryEGLString_enc() local 120 buf = stream->alloc(totalSize); in rcQueryEGLString_enc() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
D | regint.h | 351 #define BBUF_INIT(buf,size) onig_bbuf_init((BBuf* )(buf), (size)) argument 353 #define BBUF_SIZE_INC(buf,inc) do{\ argument 354 (buf)->alloc += (inc);\ 355 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\ 356 if (IS_NULL((buf)->p)) return(ONIGERR_MEMORY);\ 359 #define BBUF_EXPAND(buf,low) do{\ argument 360 unsigned int OldSize_ = (buf)->alloc * sizeof((buf)->p[0]);\ 361 do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\ 362 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc, OldSize_);\ 363 if (IS_NULL((buf)->p)) return(ONIGERR_MEMORY);\ [all …]
|
/device/google/dragon/audio/hal/dsp/tests/ |
D | raw.c | 16 int16_t *buf; in read_raw() local 35 buf = (int16_t *)malloc(n); in read_raw() 36 if (read(fd, buf, n) != n) { in read_raw() 38 free(buf); in read_raw() 46 data[i] = buf[2*i] / 32768.0f; in read_raw() 47 data[i + f] = buf[2*i+1] / 32768.0f; in read_raw() 49 free(buf); in read_raw() 68 int16_t *buf; in write_raw() local 73 buf = (int16_t *)malloc(n); in write_raw() 75 buf[2*i] = f2s16(input[i]); in write_raw() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/ |
D | fdt_empty_tree.c | 58 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 62 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 66 err = fdt_finish_reservemap(buf); in fdt_create_empty_tree() 70 err = fdt_begin_node(buf, ""); in fdt_create_empty_tree() 74 err = fdt_end_node(buf); in fdt_create_empty_tree() 78 err = fdt_finish(buf); in fdt_create_empty_tree() 82 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
D | _wcstod.h | 59 char *buf, *end; in _FUNCNAME() local 90 buf = (void *)malloc(bufsiz + 1); in _FUNCNAME() 91 if (buf == NULL) in _FUNCNAME() 95 len = wcstombs(buf, src, bufsiz + 1); in _FUNCNAME() 98 _DIAGASSERT(buf[len] == '\0'); in _FUNCNAME() 101 val = _STRTOD_FUNC(buf, &end); in _FUNCNAME() 102 if (buf == end) { in _FUNCNAME() 103 free(buf); in _FUNCNAME() 115 *endptr = __UNCONST(start + (size_t)(end - buf)); in _FUNCNAME() 117 free(buf); in _FUNCNAME()
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | endian.h | 202 be16enc(void *buf, uint16_t u) in be16enc() argument 204 uint8_t *p = (uint8_t *)buf; in be16enc() 211 le16enc(void *buf, uint16_t u) in le16enc() argument 213 uint8_t *p = (uint8_t *)buf; in le16enc() 220 be16dec(const void *buf) in be16dec() argument 222 const uint8_t *p = (const uint8_t *)buf; in be16dec() 228 le16dec(const void *buf) in le16dec() argument 230 const uint8_t *p = (const uint8_t *)buf; in le16dec() 236 be32enc(void *buf, uint32_t u) in be32enc() argument 238 uint8_t *p = (uint8_t *)buf; in be32enc() [all …]
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 90 int QemuPipeStream::writeFully(const void *buf, size_t len) in writeFully() argument 94 if (!buf) { in writeFully() 109 ssize_t stat = ::write(m_sock, (const char *)(buf) + (len - res), res); in writeFully() 135 const unsigned char *QemuPipeStream::readFully(void *buf, size_t len) in readFully() argument 139 if (!buf) { in readFully() 151 ssize_t stat = ::read(m_sock, (char *)(buf) + len - res, res); in readFully() 160 ", res %zu): %s, lethal error, exiting.", buf, len, res, in readFully() 169 return (const unsigned char *)buf; in readFully() 172 const unsigned char *QemuPipeStream::read( void *buf, size_t *inout_len) in read() argument 176 if (!buf) { in read() [all …]
|
/device/linaro/hikey/power/ |
D | power_hikey.c | 87 char buf[80]; in sysfs_write() local 92 strerror_r(errno, buf, sizeof(buf)); in sysfs_write() 93 ALOGE("Error opening %s: %s\n", path, buf); in sysfs_write() 99 strerror_r(errno, buf, sizeof(buf)); in sysfs_write() 100 ALOGE("Error writing to %s: %s\n", path, buf); in sysfs_write() 169 char buf[80]; in interactive_boostpulse() local 177 strerror_r(errno, buf, sizeof(buf)); in interactive_boostpulse() 179 buf); in interactive_boostpulse() 187 strerror_r(errno, buf, sizeof(buf)); in interactive_boostpulse() 189 INTERACTIVE_BOOSTPULSE_PATH, buf); in interactive_boostpulse() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/ |
D | tokenizer.c | 104 tok->buf = tok->cur = tok->end = tok->inp = tok->start = NULL; in tok_new() 170 if (tok->fp != NULL && tok->buf != NULL) /* see PyTokenizer_Free */ in error_ret() 171 PyMem_FREE(tok->buf); in error_ret() 172 tok->buf = NULL; in error_ret() 180 char buf[13]; in get_normal_name() local 187 buf[i] = '-'; in get_normal_name() 189 buf[i] = tolower(c); in get_normal_name() 191 buf[i] = '\0'; in get_normal_name() 192 if (strcmp(buf, "utf-8") == 0 || in get_normal_name() 193 strncmp(buf, "utf-8-", 6) == 0) in get_normal_name() [all …]
|
/device/google/dragon/power/ |
D | power_dragon.cpp | 78 char buf[80]; in sysfs_write() local 83 strerror_r(errno, buf, sizeof(buf)); in sysfs_write() 84 ALOGE("Error opening %s: %s\n", path, buf); in sysfs_write() 90 strerror_r(errno, buf, sizeof(buf)); in sysfs_write() 91 ALOGE("Error writing to %s: %s\n", path, buf); in sysfs_write() 157 char buf[128]; in power_set_interactive() local 158 snprintf(buf, sizeof(buf), "%s/%s/%s", IIO_ACTIVITY_DEVICE_PATH, in power_set_interactive() 160 sysfs_write(buf, on ? "0" : "1"); in power_set_interactive() 167 char buf[80]; in boostpulse_open() local 177 strerror_r(errno, buf, sizeof(buf)); in boostpulse_open() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/ |
D | tokenizer.c | 104 tok->buf = tok->cur = tok->end = tok->inp = tok->start = NULL; in tok_new() 170 if (tok->fp != NULL && tok->buf != NULL) /* see PyTokenizer_Free */ in error_ret() 171 PyMem_FREE(tok->buf); in error_ret() 172 tok->buf = NULL; in error_ret() 180 char buf[13]; in get_normal_name() local 187 buf[i] = '-'; in get_normal_name() 189 buf[i] = tolower(c); in get_normal_name() 191 buf[i] = '\0'; in get_normal_name() 192 if (strcmp(buf, "utf-8") == 0 || in get_normal_name() 193 strncmp(buf, "utf-8-", 6) == 0) in get_normal_name() [all …]
|