Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 23 of 23) sorted by relevance

/system/bt/osi/include/
Datomic.h55 #define ATOMIC_STORE(name, type, sz) \ argument
57 __atomic_store_##sz(&atomic->_val, val, __ATOMIC_SEQ_CST); \
60 #define ATOMIC_LOAD(name, type, sz) \ argument
62 return __atomic_load_##sz(&atomic->_val, __ATOMIC_SEQ_CST); \
66 #define ATOMIC_INC_PREFIX(name, type, sz) \ argument
68 return __atomic_add_fetch_##sz(atomic, 1, __ATOMIC_SEQ_CST); \
72 #define ATOMIC_DEC_PREFIX(name, type, sz) \ argument
74 return __atomic_sub_fetch_##sz(atomic, 1, __ATOMIC_SEQ_CST); \
78 #define ATOMIC_INC_POSTFIX(name, type, sz) \ argument
80 return __atomic_fetch_add_##sz(atomic, 1, __ATOMIC_SEQ_CST); \
[all …]
/system/core/libcutils/
Dload_file.c25 int sz; in load_file() local
32 sz = lseek(fd, 0, SEEK_END); in load_file()
33 if(sz < 0) goto oops; in load_file()
37 data = (char*) malloc(sz + 1); in load_file()
40 if(read(fd, data, sz) != sz) goto oops; in load_file()
42 data[sz] = 0; in load_file()
44 if(_sz) *_sz = sz; in load_file()
/system/extras/sound/
Dplaywav.c39 int (*fill)(void *buf, unsigned sz, void *cookie), in pcm_play() argument
44 unsigned sz, n; in pcm_play() local
65 sz = config.buffer_size; in pcm_play()
66 if (sz > sizeof(buf)) { in pcm_play()
73 if (fill(buf, sz, cookie)) in pcm_play()
75 if (write(afd, buf, sz) != sz) in pcm_play()
87 if (fill(buf, sz, cookie)) in pcm_play()
89 if (write(afd, buf, sz) != sz) in pcm_play()
127 int fill_buffer(void *buf, unsigned sz, void *cookie) in fill_buffer() argument
129 if (sz > avail) in fill_buffer()
[all …]
/system/core/gpttool/
Dgpttool.c194 u64 parse_size(char *sz) in parse_size() argument
196 int l = strlen(sz); in parse_size()
197 u64 n = strtoull(sz, 0, 10); in parse_size()
199 switch(sz[l-1]){ in parse_size()
220 u64 sz; in parse_ptn() local
229 sz = ptbl->header.last_lba - next_lba; in parse_ptn()
231 sz = parse_size(y); in parse_ptn()
232 if (sz & 511) { in parse_ptn()
236 sz /= 512; in parse_ptn()
239 if (sz == 0) { in parse_ptn()
[all …]
/system/core/fastboot/
Dfastboot.cpp85 unsigned int sz; member
155 int sz; in load_fd() local
160 sz = file_size(fd); in load_fd()
161 if (sz < 0) { in load_fd()
165 data = (char*) malloc(sz); in load_fd()
168 if(read(fd, data, sz) != sz) goto oops; in load_fd()
171 if(_sz) *_sz = sz; in load_fd()
327 unsigned *sz, const char *cmdline) in load_bootable_image() argument
354 *sz = ksize; in load_bootable_image()
377 *sz = bsize; in load_bootable_image()
[all …]
Dfastboot.h53 void fb_queue_flash(const char *ptn, void *data, unsigned sz);
54 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz);
Dengine.c175 void fb_queue_flash(const char *ptn, void *data, unsigned sz) in fb_queue_flash() argument
181 a->size = sz; in fb_queue_flash()
182 a->msg = mkmsg("sending '%s' (%d KB)", ptn, sz / 1024); in fb_queue_flash()
188 void fb_queue_flash_sparse(const char *ptn, struct sparse_file *s, unsigned sz) in fb_queue_flash_sparse() argument
195 a->msg = mkmsg("sending sparse '%s' (%d KB)", ptn, sz / 1024); in fb_queue_flash_sparse()
/system/vold/
DNetlinkManager.cpp53 int sz = 64 * 1024; in start() local
67 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in start()
/system/core/mkbootimg/
Dmkbootimg.c32 int sz; in load_file() local
39 sz = lseek(fd, 0, SEEK_END); in load_file()
40 if(sz < 0) goto oops; in load_file()
44 data = (char*) malloc(sz); in load_file()
47 if(read(fd, data, sz) != sz) goto oops; in load_file()
50 if(_sz) *_sz = sz; in load_file()
/system/core/fingerprintd/
DIFingerprintDaemonCallback.cpp78 int32_t sz) { in onEnumerate() argument
82 data.writeInt32Array(sz, fpIds); in onEnumerate()
83 data.writeInt32Array(sz, gpIds); in onEnumerate()
DIFingerprintDaemonCallback.h48 int32_t sz) = 0;
/system/core/adb/
Dcommandline.cpp449 static int adb_download_buffer(const char *service, const char *fn, const void* data, unsigned sz, in adb_download_buffer() argument
453 int fd = adb_connect(android::base::StringPrintf("%s:%d", service, sz), &error); in adb_download_buffer()
462 unsigned total = sz; in adb_download_buffer()
470 while (sz > 0) { in adb_download_buffer()
471 unsigned xfer = (sz > CHUNK_SIZE) ? CHUNK_SIZE : sz; in adb_download_buffer()
478 sz -= xfer; in adb_download_buffer()
481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer()
520 unsigned sz; in adb_sideload_host() local
528 uint8_t* data = reinterpret_cast<uint8_t*>(load_file(fn, &sz)); in adb_sideload_host()
536 android::base::StringPrintf("sideload-host:%d:%d", sz, SIDELOAD_HOST_BLOCK_SIZE); in adb_sideload_host()
[all …]
/system/netd/server/
DNetlinkManager.cpp71 int sz = 64 * 1024; in setupSocket() local
84 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in setupSocket()
/system/core/include/cutils/
Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
/system/core/healthd/
Dhealthd_mode_charger.cpp198 unsigned sz = 0; in dump_last_kmsg() local
204 buf = (char *)load_file(LAST_KMSG_PSTORE_PATH, &sz); in dump_last_kmsg()
206 if (!buf || !sz) { in dump_last_kmsg()
207 buf = (char *)load_file(LAST_KMSG_PATH, &sz); in dump_last_kmsg()
208 if (!buf || !sz) { in dump_last_kmsg()
214 len = min(sz, LAST_KMSG_MAX_SZ); in dump_last_kmsg()
215 ptr = buf + (sz - len); in dump_last_kmsg()
/system/core/init/
Dproperty_service.h28 void get_property_workspace(int *fd, int *sz);
Dproperty_service.cpp354 void get_property_workspace(int *fd, int *sz) in get_property_workspace() argument
357 *sz = pa_workspace.size; in get_property_workspace()
Dinit.cpp267 int fd, sz; in service_start() local
271 get_property_workspace(&fd, &sz); in service_start()
272 snprintf(tmp, sizeof(tmp), "%d,%d", dup(fd), sz); in service_start()
/system/core/logwrapper/
Dlogwrap.c310 int sz; in parent() local
358 sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b); in parent()
360 sz += b; in parent()
362 for (b = 0; b < sz; b++) { in parent()
/system/core/toolbox/upstream-netbsd/usr.bin/du/
Ddu.c270 int64_t sz = blocks * 512; in prstat() local
272 humanize_number(buf, sizeof(buf), sz, "", HN_AUTOSCALE, in prstat()
/system/core/libpixelflinger/codeflinger/
DGGLAssembler.h222 integer_t(int r, int sz=32, int f=0)
223 : reg_t(r, f), s(sz) { in reg_t()
225 void setTo(int r, int sz=32, int f=0) {
226 reg_t::setTo(r, f); s=sz;
/system/core/libnetutils/
Ddhcpclient.c353 static int is_valid_reply(dhcp_msg *msg, dhcp_msg *reply, int sz) in is_valid_reply() argument
355 if (sz < DHCP_MSG_FIXED_SIZE) { in is_valid_reply()
356 if (verbose) ALOGD("Wrong size %d != %d\n", sz, DHCP_MSG_FIXED_SIZE); in is_valid_reply()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Dheader.h157 int get_cpuid(char *buffer, size_t sz);