/external/u-boot/fs/ubifs/ |
io.c | 38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned 40 * write-buffer size (@wbuf->size). 442 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); local 444 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); 445 wbuf->need_sync = 1; 446 wbuf->c->need_wbuf_sync = 1; 447 ubifs_wake_up_bgt(wbuf->c); 453 * @wbuf: write-buffer descriptor 455 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) 457 ubifs_assert(!hrtimer_active(&wbuf->timer)) 625 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 656 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 1134 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local [all...] |
gc.c | 74 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 78 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, 79 c->leb_size - wbuf->offs - wbuf->used); 81 err = ubifs_wbuf_sync_nolock(wbuf); 93 err = ubifs_wbuf_sync_nolock(wbuf); 102 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0) 343 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 463 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 642 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 911 struct ubifs_wbuf *wbuf; local [all...] |
misc.h | 120 * @wbuf: write-buffer to synchronize 125 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) 129 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); 130 err = ubifs_wbuf_sync_nolock(wbuf); 131 mutex_unlock(&wbuf->io_mutex);
|
log.c | 56 * ubifs_get_wbuf - get the wbuf associated with a LEB, if there is one. 60 * This functions returns the wbuf for @lnum or %NULL if there is not one. 82 return &c->jheads[jhead].wbuf; 302 struct ubifs_wbuf *wbuf; local 306 wbuf = &c->jheads[bud->jhead].wbuf; 308 if (wbuf->lnum == bud->lnum) { 313 c->cmt_bud_bytes += wbuf->offs - bud->start; 316 wbuf->offs - bud->start, c->cmt_bud_bytes); 317 bud->start = wbuf->offs [all...] |
tnc_misc.c | 454 struct ubifs_wbuf *wbuf; local 460 wbuf = ubifs_get_wbuf(c, zbr->lnum); 461 if (wbuf) 462 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len,
|
recovery.c | 414 * the last wbuf written. After that should be empty space. 1169 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local [all...] |
/external/ltp/testcases/kernel/syscalls/write/ |
write04.c | 44 char wbuf[8 * page_size]; local 46 TEST(write(wfd, wbuf, sizeof(wbuf))); 66 char wbuf[17 * page_size]; local 75 SAFE_WRITE(0, wfd, wbuf, sizeof(wbuf));
|
write03.c | 38 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 45 SAFE_WRITE(1, fd, wbuf, 100); 61 if (memcmp(wbuf, rbuf, 100) == 0) 74 memset(wbuf, '0', 100);
|
/external/python/cpython3/Parser/ |
myreadline.c | 108 wchar_t *wbuf; local 114 wbuf = wbuf_local; 120 if (!ReadConsoleW(hStdIn, &wbuf[total_read], wbuflen - total_read, &n_read, NULL)) { 147 if (total_read == 0 || wbuf[total_read - 1] == L'\n') { 151 if (wbuf == wbuf_local) { 152 wbuf[total_read] = '\0'; 153 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); 154 if (wbuf) 155 wcscpy_s(wbuf, wbuflen, wbuf_local); 162 wchar_t *tmp = PyMem_RawRealloc(wbuf, wbuflen * sizeof(wchar_t)) 227 wchar_t *wbuf; local [all...] |
/external/ltp/testcases/kernel/syscalls/pwrite/ |
pwrite04.c | 70 char *wbuf[NBUFS]; local 82 init_buffers(wbuf); 93 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { 113 if ((nbytes = pwrite(fd, wbuf[2], K1, K2)) != K1) { 134 if ((nbytes = write(fd, wbuf[3], K1)) != K1) { 148 if ((nbytes = pwrite(fd, wbuf[1], K1, K1)) != K1) { 187 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { 218 * init_buffers() allocates wbuf[] array 220 * wbuf[0] has 0's, wbuf[1] has 1's, wbuf[2] has 2's, and wbuf[3] has 3's [all...] |
/external/u-boot/drivers/video/ |
ld9040.c | 64 static void ld9040_spi_write(const unsigned char *wbuf, unsigned int size_cmd) 76 data_out = wbuf[i] >> 1; 79 if (wbuf[i] & 0x01)
|
/external/libevent/test/ |
regress_iocp.c | 211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable in typeref:struct: 229 evbuffer_commit_write_(wbuf, nbytes); 254 wbuf = evbuffer_overlapped_new_(data->pair[1]); 256 evbuffer_enable_locking(wbuf, NULL); 261 tt_assert(wbuf); 267 evbuffer_add(wbuf, junk, sizeof(junk)); 278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); 290 evbuffer_free(wbuf);
|
/external/ltp/testcases/kernel/fs/doio/ |
write_log.c | 197 char wbuf[WLOG_REC_MAX_SIZE + 2]; local 207 reclen = wlog_rec_pack(wrec, wbuf, (offset < 0)); 216 wbuf[reclen] = reclen / 256; 217 wbuf[reclen + 1] = reclen % 256; 220 if (write(wfile->w_afd, wbuf, reclen) == -1) { 223 wfile->w_file, wbuf, reclen, strerror(errno)); 241 if ((write(wfile->w_rfd, wbuf, reclen)) == -1) { 244 wfile->w_file, wbuf, reclen, 369 * Copy the record into wbuf so that it is word
|
/external/ltp/testcases/kernel/fs/fs-bench/ |
create-files.c | 15 char wbuf[MAXFSIZE]; variable 112 if (write(fd, wbuf, randomsize) < 0) {
|
random-access-del-create.c | 98 char wbuf[MAXFSIZE]; local 106 if (write(fd, wbuf, randomsize) < 0) {
|
random-del-create.c | 96 char wbuf[MAXFSIZE]; local 104 if (write(fd, wbuf, randomsize) < 0) {
|
/external/curl/lib/ |
strerror.c | 667 wchar_t wbuf[256]; local 668 wbuf[0] = L'\0'; 671 LANG_NEUTRAL, wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL); 672 wcstombs(buf, wbuf, max); 1043 wchar_t wbuf[256]; local 1044 wbuf[0] = L'\0'; 1049 wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL)) { 1050 wcstombs(msgbuf, wbuf, sizeof(msgbuf)-1) [all...] |
/external/u-boot/arch/x86/lib/ |
scu.c | 29 u32 wbuf[4]; member in struct:ipc_regs 91 writel(*in++, ®s->wbuf[i]);
|
/external/python/cpython3/Modules/_io/ |
winconsoleio.c | 156 wchar_t wbuf; member in struct:__anon37247 686 wchar_t *wbuf = read_console_w(self->handle, wlen, &n); local 687 if (wbuf == NULL) 690 PyMem_Free(wbuf); 699 if (WideCharToMultiByte(CP_UTF8, 0, wbuf, n, 704 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, 717 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, 723 PyMem_Free(wbuf); 965 wchar_t *wbuf; local 998 wbuf = (wchar_t*)PyMem_Malloc(wlen * sizeof(wchar_t)) [all...] |
/external/syzkaller/vendor/golang.org/x/net/http2/ |
frame.go | 286 wbuf []byte 339 f.wbuf = append(f.wbuf[:0], 354 length := len(f.wbuf) - frameHeaderLen 358 _ = append(f.wbuf[:0], 366 n, err := f.w.Write(f.wbuf) 367 if err == nil && n != len(f.wbuf) { 382 f.debugFramerBuf.Write(f.wbuf) 391 func (f *Framer) writeByte(v byte) { f.wbuf = append(f.wbuf, v) [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
Stdio.inf | 119 wbuf.c #
|
/external/python/cpython3/Modules/ |
getpath.c | 689 wchar_t* wbuf = Py_DecodeLocale(modPath, &len); local 690 if (wbuf == NULL) { 694 wcsncpy(calculate->argv0_path, wbuf, MAXPATHLEN); 705 wcsncpy(calculate->argv0_path, wbuf, MAXPATHLEN); 707 PyMem_RawFree(wbuf);
|
/external/libcxx/src/ |
locale.cpp | 4955 wchar_t wbuf[100]; local 5129 wchar_t wbuf[100]; local 5962 wchar_t wbuf[100]; local 6028 wchar_t wbuf[100]; local [all...] |
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
glob.c | 427 wchar_t wbuf[MAXPATHLEN]; local 470 if (g_Ctoc(patbuf, (char *)wbuf, sizeof(wbuf))) 472 if ((pwd = getpwnam((char *)wbuf)) == NULL) 479 dc = wbuf; 481 wbufend = wbuf + MAXPATHLEN - 1; 501 dc = wbuf;
|
/external/mdnsresponder/mDNSWindows/ |
mDNSWin32.h | 39 WSABUF wbuf; member in struct:Overlapped
|