Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 50) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) argument
31 #define luaZ_buffer(buff) ((buff)->buffer) argument
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) argument
33 #define luaZ_bufflen(buff) ((buff)->n) argument
35 #define luaZ_resetbuffer(buff) ((buff)->n = 0) argument
38 #define luaZ_resizebuffer(L, buff, size) \ argument
39 (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
40 (buff)->buffsize = size)
42 #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) argument
45 LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
Dlzio.c24 const char *buff; in luaZ_fill() local
26 buff = z->reader(L, z->data, &size); in luaZ_fill()
28 if (buff == NULL || size == 0) in luaZ_fill()
31 z->p = buff; in luaZ_fill()
68 char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { in luaZ_openspace() argument
69 if (n > buff->buffsize) { in luaZ_openspace()
71 luaZ_resizebuffer(L, buff, n); in luaZ_openspace()
73 return buff->buffer; in luaZ_openspace()
Dllex.c53 Mbuffer *b = ls->buff; in save()
97 return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff)); in txtToken()
105 char buff[LUA_IDSIZE]; in lexerror() local
106 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); in lexerror()
107 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); in lexerror()
172 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */ in luaX_setinput()
197 size_t n = luaZ_bufflen(ls->buff); in buffreplace()
198 char *p = luaZ_buffer(ls->buff); in buffreplace()
219 if (!buff2d(ls->buff, &seminfo->r)) { in trydecpoint()
248 if (!buff2d(ls->buff, &seminfo->r)) /* format error? */ in read_numeral()
[all …]
Dloslib.c106 char buff[LUA_TMPNAMBUFSIZE]; in os_tmpname() local
108 lua_tmpnam(buff, err); in os_tmpname()
111 lua_pushstring(L, buff); in os_tmpname()
171 static const char *checkoption (lua_State *L, const char *conv, char *buff) { in checkoption() argument
176 buff[1] = *conv; in checkoption()
178 buff[2] = '\0'; /* end buffer */ in checkoption()
183 buff[2] = *(conv + 1); /* valid two-char conversion specifier */ in checkoption()
184 buff[3] = '\0'; /* end buffer */ in checkoption()
229 char buff[200]; /* should be big enough for any conversion result */ in os_date() local
231 reslen = strftime(buff, sizeof(buff), cc, stm); in os_date()
[all …]
Dlstate.c61 char buff[LUAI_EXTRASPACE]; member
87 memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); }
90 char buff[4 * sizeof(size_t)]; in makeseed() local
93 addbuff(buff, p, L); /* heap variable */ in makeseed()
94 addbuff(buff, p, &h); /* local variable */ in makeseed()
95 addbuff(buff, p, luaO_nilobject); /* global variable */ in makeseed()
96 addbuff(buff, p, &lua_newstate); /* public function */ in makeseed()
97 lua_assert(p == sizeof(buff)); in makeseed()
98 return luaS_hash(buff, p, h); in makeseed()
230 luaZ_freebuffer(L, &g->buff); in close_state()
[all …]
Dlobject.c194 char buff; in luaO_pushvfstring() local
195 buff = cast(char, va_arg(argp, int)); in luaO_pushvfstring()
196 pushstr(L, &buff, 1); in luaO_pushvfstring()
208 char buff[4*sizeof(void *) + 8]; /* should be enough space for a `%p' */ in luaO_pushvfstring() local
209 int l = sprintf(buff, "%p", va_arg(argp, void *)); in luaO_pushvfstring()
210 pushstr(L, buff, l); in luaO_pushvfstring()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddynload_beos.c190 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
197 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
201 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
205 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
218 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
226 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
231 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
236 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
244 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
Dqemu_pipe.h70 char buff[256]; in qemu_pipe_open() local
79 snprintf(buff, sizeof buff, "pipe:%s", pipeName); in qemu_pipe_open()
90 buffLen = strlen(buff); in qemu_pipe_open()
92 if (!WriteFully(fd, buff, buffLen + 1)) { in qemu_pipe_open()
/device/generic/goldfish/libqemu/
Dtest_guest_1.c60 char buff[64]; in main() local
68 int len = snprintf(buff, sizeof(buff), "Hello World %d\n", count); in main()
70 int ret = pipe_send(pipe, buff, len); in main()
90 if (memcmp(buff, buff2, len) != 0) { in main()
Dtest_util.c86 pipe_send( Pipe* pipe, const void* buff, size_t bufflen ) in pipe_send() argument
89 const uint8_t* ptr = buff; in pipe_send()
109 pipe_recv( Pipe* pipe, void* buff, size_t bufflen ) in pipe_recv() argument
114 ret = read(pipe->socket, buff, bufflen); in pipe_recv()
Dtest_util.h31 int pipe_send( Pipe* pipe, const void* buff, size_t bufflen );
32 int pipe_recv( Pipe* pipe, void* buff, size_t bufflen );
Dtest_host_2.c111 char buff[8192], *p; in main() local
114 ret = TFR(read(client, buff, sizeof(buff))); in main()
Dtest_host_1.c210 char buff[32768], *p; in main() local
213 ret = TFR(read(client, buff, sizeof(buff))); in main()
223 p = buff; in main()
/device/generic/goldfish/include/
Dqemu_pipe.h82 char buff[256]; in qemu_pipe_open() local
91 snprintf(buff, sizeof buff, "pipe:%s", pipeName); in qemu_pipe_open()
102 buffLen = strlen(buff); in qemu_pipe_open()
104 if (!WriteFully(fd, buff, buffLen + 1)) { in qemu_pipe_open()
/device/generic/goldfish/sensors/
Dsensors_qemu.c280 char buff[256]; in sensor_device_poll_event_locked() local
281 int len = qemud_channel_recv(fd, buff, sizeof(buff) - 1U); in sensor_device_poll_event_locked()
291 buff[len] = 0; in sensor_device_poll_event_locked()
292 D("%s(fd=%d): received [%s]", __FUNCTION__, fd, buff); in sensor_device_poll_event_locked()
297 if (!strcmp((const char*)buff, "wake")) { in sensor_device_poll_event_locked()
309 if (sscanf(buff, "acceleration:%g:%g:%g", params+0, params+1, params+2) in sensor_device_poll_event_locked()
322 if (sscanf(buff, "orientation:%g:%g:%g", params+0, params+1, params+2) in sensor_device_poll_event_locked()
337 if (sscanf(buff, "magnetic:%g:%g:%g", params+0, params+1, params+2) in sensor_device_poll_event_locked()
351 if (sscanf(buff, "temperature:%g", params+0) == 1) { in sensor_device_poll_event_locked()
360 if (sscanf(buff, "proximity:%g", params+0) == 1) { in sensor_device_poll_event_locked()
[all …]
/device/generic/goldfish/camera/
DJpegCompressor.cpp44 typedef void (*GetCompressedImageFunc)(JpegStub* stub, void* buff);
87 void NV21JpegCompressor::getCompressedImage(void* buff) in getCompressedImage() argument
91 (*f)(&mStub, buff); in getCompressedImage()
DJpegCompressor.h79 void getCompressedImage(void* buff);
/device/generic/goldfish/qemud/
Dqemud.c570 static char* buff = NULL; in quote() local
574 xfree(buff); in quote()
575 buff = xalloc(count+1); in quote()
583 buff[count] = buff[count+1] = '\\'; in quote()
591 buff[count] = c; in quote()
599 memcpy(buff+count, "<TAB>", 5); in quote()
606 memcpy(buff+count, "<LN>", 4); in quote()
613 memcpy(buff+count, "<CR>", 4); in quote()
620 buff[count+0] = '\\'; in quote()
621 buff[count+1] = 'x'; in quote()
[all …]
/device/google/dragon/recovery/updater/
Dflash_device.c97 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_read() argument
99 return dev->ops->read(dev->priv_data, off, buff, len); in flash_read()
102 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len) in flash_write() argument
109 return dev->ops->write(dev->priv_data, off, buff, len); in flash_write()
Dflash_device.h44 int flash_read(struct flash_device *dev, off_t off, void *buff, size_t len);
45 int flash_write(struct flash_device *dev, off_t off, void *buff, size_t len);
/device/google/accessory/arduino/AndroidAccessory/
DAndroidAccessory.h64 int read(void *buff, int len, unsigned int nakLimit = USB_NAK_LIMIT);
65 int write(void *buff, int len);
DAndroidAccessory.cpp263 int AndroidAccessory::read(void *buff, int len, unsigned int nakLimit) in read() argument
265 return usb.newInTransfer(1, in, len, (char *)buff, nakLimit); in read()
268 int AndroidAccessory::write(void *buff, int len) in write() argument
270 usb.outTransfer(1, out, len, (char *)buff); in write()
/device/generic/goldfish/camera/jpeg-stub/
DJpegStub.cpp56 extern "C" void JpegStub_getCompressedImage(JpegStub* stub, void* buff) { in JpegStub_getCompressedImage() argument
60 memcpy(buff, &data[0], data.size()); in JpegStub_getCompressedImage()
DJpegStub.h39 void JpegStub_getCompressedImage(JpegStub* stub, void* buff);
/device/google/marlin/camera/QCamera2/HAL/test/
Dqcamera_test.cpp168 unsigned char *buff = NULL; in saveFile() local
189 buff = (unsigned char *)mem->pointer(); in saveFile()
190 if (!buff) { in saveFile()
196 if (size != write(fd, buff, (size_t)size)) { in saveFile()
203 __FUNCTION__, buff, (long long int) size, path.string()); in saveFile()
289 const void *buff = NULL; in decodeJPEG() local
292 buff = (const void *)mem->pointer(); in decodeJPEG()
334 if (SkImageDecoder::DecodeMemory(buff, size, skBM, prefConfig, in decodeJPEG()
341 const void *buff = NULL; in decodeJPEG()
344 buff = (const void *)mem->pointer(); in decodeJPEG()
[all …]

12