Home
last modified time | relevance | path

Searched refs:wbuf (Results 1 – 18 of 18) sorted by relevance

/rk3399_rockchip-uboot/fs/ubifs/
H A Dio.c443 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local
445 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
446 wbuf->need_sync = 1; in wbuf_timer_callback_nolock()
447 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock()
448 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock()
456 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument
458 ubifs_assert(!hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
460 if (wbuf->no_timer) in new_wbuf_timer_nolock()
463 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
464 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock()
[all …]
H A Dgc.c75 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local
79 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
80 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
82 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
94 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
103 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head()
313 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument
315 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
318 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node()
344 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes() local
[all …]
H A Dmisc.h126 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) in ubifs_wbuf_sync() argument
130 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
131 err = ubifs_wbuf_sync_nolock(wbuf); in ubifs_wbuf_sync()
132 mutex_unlock(&wbuf->io_mutex); in ubifs_wbuf_sync()
H A Dlog.c83 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
303 struct ubifs_wbuf *wbuf; in remove_buds() local
307 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
309 if (wbuf->lnum == bud->lnum) { in remove_buds()
314 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
317 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds()
318 bud->start = wbuf->offs; in remove_buds()
381 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
382 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
H A Drecovery.c1170 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit() local
1174 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); in ubifs_rcvry_gc_commit()
1177 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) in ubifs_rcvry_gc_commit()
1180 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit()
1190 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit()
1202 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
1205 int err2 = ubifs_wbuf_sync_nolock(wbuf); in ubifs_rcvry_gc_commit()
1210 mutex_unlock(&wbuf->io_mutex); in ubifs_rcvry_gc_commit()
H A Dtnc_misc.c455 struct ubifs_wbuf *wbuf; in ubifs_tnc_read_node() local
461 wbuf = ubifs_get_wbuf(c, zbr->lnum); in ubifs_tnc_read_node()
462 if (wbuf) in ubifs_tnc_read_node()
463 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, in ubifs_tnc_read_node()
H A Dtnc.c1652 static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, in read_wbuf() argument
1655 const struct ubifs_info *c = wbuf->c; in read_wbuf()
1659 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()
1663 spin_lock(&wbuf->lock); in read_wbuf()
1664 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); in read_wbuf()
1667 spin_unlock(&wbuf->lock); in read_wbuf()
1672 rlen = wbuf->offs - offs; in read_wbuf()
1677 memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); in read_wbuf()
1678 spin_unlock(&wbuf->lock); in read_wbuf()
1754 struct ubifs_wbuf *wbuf; in ubifs_tnc_bulk_read() local
[all …]
H A Dubifs.h1328 struct ubifs_wbuf wbuf; member
2094 int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len);
2095 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs);
2096 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf);
2099 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len,
2109 int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf);
2111 void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum);
H A Dsuper.c650 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_sync_fs()
991 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs()
995 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; in alloc_wbufs()
996 c->jheads[i].wbuf.jhead = i; in alloc_wbufs()
1004 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs()
1020 kfree(c->jheads[i].wbuf.buf); in free_wbufs()
1021 kfree(c->jheads[i].wbuf.inodes); in free_wbufs()
1957 ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_remount_ro()
2024 ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_put_super()
2047 hrtimer_cancel(&c->jheads[i].wbuf.timer); in ubifs_put_super()
H A Ddebug.c623 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg()
624 c->jheads[i].wbuf.lnum); in ubifs_dump_budg()
729 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop()
2569 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
H A Dreplay.c150 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
H A Dlprops.c1271 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
/rk3399_rockchip-uboot/tools/rockchip/
H A Dsha2.c226 ctx->wbuf[i & 15] += \
227 g256_1(ctx->wbuf[(i + 14) & 15]) + ctx->wbuf[(i + 9) & 15] + \
228 g256_0(ctx->wbuf[(i + 1) & 15])
232 (j ? h2(i) : ctx->wbuf[i & 15]) + k256[i + j] + s256_1(v[(4 - i) & 7]) + \
328 memcpy(((unsigned char *)ctx->wbuf) + pos, sp, space); in sha256_hash()
333 bsw_32(ctx->wbuf, SHA256_BLOCK_SIZE >> 2); in sha256_hash()
337 memcpy(((unsigned char *)ctx->wbuf) + pos, sp, len); in sha256_hash()
354 bsw_32(ctx->wbuf, (i + 3) >> 2) in sha256_end()
361 ctx->wbuf[i >> 2] = (ctx->wbuf[i >> 2] & m1[i & 3]) | b1[i & 3]; in sha256_end()
368 ctx->wbuf[15] = 0; in sha256_end()
[all …]
H A Dsha2.h110 sha2_32t wbuf[16]; member
118 sha2_64t wbuf[16]; member
/rk3399_rockchip-uboot/drivers/video/
H A Dld9040.c65 static void ld9040_spi_write(const unsigned char *wbuf, unsigned int size_cmd) in ld9040_spi_write() argument
77 data_out = wbuf[i] >> 1; in ld9040_spi_write()
80 if (wbuf[i] & 0x01) in ld9040_spi_write()
/rk3399_rockchip-uboot/arch/x86/lib/
H A Dscu.c30 u32 wbuf[4]; member
92 writel(*in++, &regs->wbuf[i]); in scu_ipc_cmd()
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Donenand_base.c1447 u_char *wbuf = (u_char *) buf; in onenand_write_ops_nolock() local
1459 wbuf = this->page_buf; in onenand_write_ops_nolock()
1462 this->write_bufferram(mtd, to, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_write_ops_nolock()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_base.c3244 uint8_t *wbuf = buf; in nand_do_write_ops() local
3266 wbuf = chip->buffers->databuf; in nand_do_write_ops()
3277 ret = chip->write_page(mtd, chip, column, bytes, wbuf, in nand_do_write_ops()