/u-boot/fs/ubifs/ |
H A D | io.c | 38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned 40 * write-buffer size (@wbuf->size). 446 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); local 448 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); 449 wbuf->need_sync = 1; 450 wbuf->c->need_wbuf_sync = 1; 451 ubifs_wake_up_bgt(wbuf->c); 457 * @wbuf: write-buffer descriptor 459 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) argument 461 ubifs_assert(!hrtimer_active(&wbuf 479 cancel_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) argument 502 ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf) argument 577 ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs) argument 629 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 660 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 685 ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len) argument 908 ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, int lnum, int offs) argument 1039 ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf) argument 1089 ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum) argument 1109 wbuf_has_ino(struct ubifs_wbuf *wbuf, ino_t inum) argument 1138 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local [all...] |
H A D | gc.c | 76 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 80 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, 81 c->leb_size - wbuf->offs - wbuf->used); 83 err = ubifs_wbuf_sync_nolock(wbuf); 95 err = ubifs_wbuf_sync_nolock(wbuf); 104 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnu 313 move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) argument 345 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 465 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 644 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 913 struct ubifs_wbuf *wbuf; local [all...] |
H A D | misc.h | 120 * @wbuf: write-buffer to synchronize 125 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) argument 129 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); 130 err = ubifs_wbuf_sync_nolock(wbuf); 131 mutex_unlock(&wbuf->io_mutex);
|
H A D | log.c | 58 * ubifs_get_wbuf - get the wbuf associated with a LEB, if there is one. 62 * This functions returns the wbuf for @lnum or %NULL if there is not one. 84 return &c->jheads[jhead].wbuf; 304 struct ubifs_wbuf *wbuf; local 308 wbuf = &c->jheads[bud->jhead].wbuf; 310 if (wbuf->lnum == bud->lnum) { 315 c->cmt_bud_bytes += wbuf->offs - bud->start; 318 wbuf->offs - bud->start, c->cmt_bud_bytes); 319 bud->start = wbuf [all...] |
H A D | tnc_misc.c | 456 struct ubifs_wbuf *wbuf; local 462 wbuf = ubifs_get_wbuf(c, zbr->lnum); 463 if (wbuf) 464 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len,
|
H A D | recovery.c | 417 * the last wbuf written. After that should be empty space. 1172 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 1176 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); 1179 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) 1182 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); 1192 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); 1204 mutex_lock_nested(&wbuf [all...] |
H A D | tnc.c | 1647 * read_wbuf - bulk-read from a LEB with a wbuf. 1648 * @wbuf: wbuf that may overlap the read 1656 static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, argument 1659 const struct ubifs_info *c = wbuf->c; 1663 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); 1667 spin_lock(&wbuf->lock); 1668 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); 1671 spin_unlock(&wbuf 1758 struct ubifs_wbuf *wbuf; local [all...] |
H A D | ubifs.h | 1267 * @need_sync: non-zero if the timer expired and the wbuf needs sync'ing 1269 * @inodes: stores the inode numbers of the nodes which are in wbuf 1320 * @wbuf: head's write-buffer 1327 struct ubifs_wbuf wbuf; member in struct:ubifs_jhead 2093 int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len); 2094 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs); 2095 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf); 2098 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, 2108 int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf); 2110 void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_ [all...] |
H A D | super.c | 654 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); 995 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); 999 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; 1000 c->jheads[i].wbuf.jhead = i; 1008 c->jheads[GCHD].wbuf.no_timer = 1; 1024 kfree(c->jheads[i].wbuf.buf); 1025 kfree(c->jheads[i].wbuf.inodes); 1966 ubifs_wbuf_sync(&c->jheads[i].wbuf); 2033 ubifs_wbuf_sync(&c->jheads[i].wbuf); 2056 hrtimer_cancel(&c->jheads[i].wbuf [all...] |
H A D | debug.c | 633 dbg_jhead(c->jheads[i].wbuf.jhead), 634 c->jheads[i].wbuf.lnum); 740 lp->lnum == c->jheads[i].wbuf.lnum) { 2599 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) {
|
H A D | lprops.c | 1272 err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
|
H A D | replay.c | 151 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf,
|
/u-boot/test/cmd/ |
H A D | rw.c | 54 char wbuf[1024], rbuf[1024]; local 57 #define INIT_BUFFERS() init_buffers(rbuf, wbuf, sizeof(rbuf), __LINE__) 61 wa = map_to_sysmem(wbuf); 68 ut_assertok(memcmp(wbuf, rbuf, sizeof(wbuf))); 70 ut_assertok(memcmp(&wbuf[512], rbuf, 512)); 76 ut_assertok(memcmp(wbuf, rbuf, sizeof(wbuf))); 82 ut_assertok(memcmp(wbuf, rbuf, sizeof(wbuf))); [all...] |
/u-boot/arch/x86/lib/ |
H A D | scu.c | 31 u32 wbuf[4]; member in struct:ipc_regs 93 writel(*in++, ®s->wbuf[i]);
|
/u-boot/drivers/misc/ |
H A D | usb251xb.c | 308 char wbuf[USB251XB_I2C_WRITE_SZ + 1]; local 313 wbuf[0] = USB251XB_I2C_WRITE_SZ; 314 memcpy(&wbuf[1], &i2c_wb[offset], USB251XB_I2C_WRITE_SZ); 319 err = dm_i2c_write(dev, offset, wbuf, USB251XB_I2C_WRITE_SZ + 1);
|
/u-boot/drivers/mmc/ |
H A D | mtk-sd.c | 623 u32 *wbuf; local 630 wbuf = (u32 *)buf; 632 *wbuf++ = readl(&host->base->msdc_rxdata); 636 buf = (u8 *)wbuf; 645 const u32 *wbuf; local 652 wbuf = (const u32 *)buf; 654 writel(*wbuf++, &host->base->msdc_txdata); 658 buf = (const u8 *)wbuf;
|
/u-boot/drivers/mtd/onenand/ |
H A D | onenand_base.c | 1451 u_char *wbuf = (u_char *) buf; local 1463 wbuf = this->page_buf; 1466 this->write_bufferram(mtd, to, ONENAND_DATARAM, wbuf, 0, mtd->writesize);
|
/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_base.c | 3234 uint8_t *wbuf = buf; local 3256 wbuf = chip->buffers->databuf; 3267 ret = chip->write_page(mtd, chip, column, bytes, wbuf,
|