Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/ubifs/
Dio.c452 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local
454 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
455 wbuf->need_sync = 1; in wbuf_timer_callback_nolock()
456 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock()
457 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock()
466 static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument
474 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
477 if (wbuf->no_timer) in new_wbuf_timer_nolock()
480 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
483 hrtimer_start_range_ns(&wbuf->timer, softlimit, delta, in new_wbuf_timer_nolock()
[all …]
Dgc.c84 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local
88 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
89 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
91 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
108 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head()
318 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument
320 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
323 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node()
349 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes() local
351 if (wbuf->lnum == -1) { in move_nodes()
[all …]
Djournal.c107 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() local
117 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
124 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
125 if (wbuf->lnum != -1 && avail >= len) in reserve_space()
146 mutex_unlock(&wbuf->io_mutex); in reserve_space()
171 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
173 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
175 if (wbuf->lnum != -1 && avail >= len) { in reserve_space()
182 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space()
200 err = ubifs_wbuf_sync_nolock(wbuf); in reserve_space()
[all …]
Dmisc.h139 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) in ubifs_wbuf_sync() argument
143 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
144 err = ubifs_wbuf_sync_nolock(wbuf); in ubifs_wbuf_sync()
145 mutex_unlock(&wbuf->io_mutex); in ubifs_wbuf_sync()
Dlog.c91 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
311 struct ubifs_wbuf *wbuf; in remove_buds() local
315 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
317 if (wbuf->lnum == bud->lnum) { in remove_buds()
322 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
325 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds()
326 bud->start = wbuf->offs; in remove_buds()
389 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
390 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
Drecovery.c1171 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit() local
1175 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); in ubifs_rcvry_gc_commit()
1178 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) in ubifs_rcvry_gc_commit()
1181 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit()
1191 ubifs_assert(c, lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit()
1203 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
1206 int err2 = ubifs_wbuf_sync_nolock(wbuf); in ubifs_rcvry_gc_commit()
1211 mutex_unlock(&wbuf->io_mutex); in ubifs_rcvry_gc_commit()
Dtnc_misc.c469 struct ubifs_wbuf *wbuf; in ubifs_tnc_read_node() local
475 wbuf = ubifs_get_wbuf(c, zbr->lnum); in ubifs_tnc_read_node()
476 if (wbuf) in ubifs_tnc_read_node()
477 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, in ubifs_tnc_read_node()
Dubifs.h727 struct ubifs_wbuf wbuf; member
1484 int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len);
1485 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs);
1486 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf);
1489 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len,
1499 int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf);
1501 void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum);
/linux-4.19.296/drivers/slimbus/
Dstream.c127 u8 wbuf[2]; in slim_connect_port_channel() local
128 struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; in slim_connect_port_channel()
135 wbuf[0] = port->id; in slim_connect_port_channel()
136 wbuf[1] = port->ch.id; in slim_connect_port_channel()
147 u8 wbuf[1]; in slim_disconnect_port() local
148 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_disconnect_port()
152 wbuf[0] = port->id; in slim_disconnect_port()
163 u8 wbuf[1]; in slim_deactivate_remove_channel() local
164 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_deactivate_remove_channel()
169 wbuf[0] = port->ch.id; in slim_deactivate_remove_channel()
[all …]
Dqcom-ngd-ctrl.c773 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_xfer_msg() local
824 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg()
826 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg()
828 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg()
837 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg()
840 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg()
867 if (txn->msg && txn->msg->wbuf) in qcom_slim_ngd_xfer_msg()
868 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg()
921 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local
932 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream()
[all …]
Dmessaging.c194 if (msg->wbuf != NULL) in slim_val_inf_sanity()
200 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity()
274 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument
279 msg->wbuf = wbuf; in slim_fill_msg()
Dsched.c99 msg.wbuf = &restart; in slim_ctrl_clk_pause()
107 msg.wbuf = NULL; in slim_ctrl_clk_pause()
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Dgl861.c21 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument
33 buf = kmemdup(wbuf, wlen, GFP_KERNEL); in gl861_i2c_msg()
44 index = wbuf[0]; in gl861_i2c_msg()
47 index = wbuf[0]; in gl861_i2c_msg()
48 value = value + wbuf[1]; in gl861_i2c_msg()
198 gl861_i2c_write_ex(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen) in gl861_i2c_write_ex() argument
207 memcpy(buf, wbuf, wlen); in gl861_i2c_write_ex()
396 u8 wbuf[2], rbuf[2]; in friio_reset() local
408 wbuf[0] = 0x11; in friio_reset()
409 wbuf[1] = 0x02; in friio_reset()
[all …]
Ddvb_usb_urb.c25 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument
29 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io()
35 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); in dvb_usb_v2_generic_io()
38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io()
69 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument
74 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw()
94 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument
96 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
Dau6610.c24 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument
40 index = wbuf[0] << 8; in au6610_usb_msg()
43 index = wbuf[0] << 8; in au6610_usb_msg()
44 index += wbuf[1]; in au6610_usb_msg()
76 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument
87 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
Daf9035.c71 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); in af9035_ctrl_msg()
132 u8 wbuf[MAX_XFER_SIZE]; in af9035_wr_regs() local
134 struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; in af9035_wr_regs()
136 if (6 + len > sizeof(wbuf)) { in af9035_wr_regs()
141 wbuf[0] = len; in af9035_wr_regs()
142 wbuf[1] = 2; in af9035_wr_regs()
143 wbuf[2] = 0; in af9035_wr_regs()
144 wbuf[3] = 0; in af9035_wr_regs()
145 wbuf[4] = (reg >> 8) & 0xff; in af9035_wr_regs()
146 wbuf[5] = (reg >> 0) & 0xff; in af9035_wr_regs()
[all …]
Daf9035.h53 u8 *wbuf; member
/linux-4.19.296/drivers/media/common/b2c2/
Dflexcop-eeprom.c17 u32 len, u8 *wbuf, u8 *rbuf, int retries)
22 if (eeprom_write(adapter, addr, wbuf, len) == len) {
35 u8 wbuf[20];
40 memcpy(wbuf, key, len);
41 wbuf[16] = 0;
42 wbuf[17] = 0;
43 wbuf[18] = 0;
44 wbuf[19] = calc_lrc(wbuf, 19);
45 return eeprom_lrc_write(adapter, 0x3e4, 20, wbuf, rbuf, 4);
/linux-4.19.296/fs/jffs2/
Dwbuf.c260 c->wbuf, c->wbuf_pagesize, 0); in jffs2_verify_write()
382 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs); in jffs2_wbuf_recover()
414 unsigned char *rewrite_buf = buf?:c->wbuf; in jffs2_wbuf_recover()
446 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); in jffs2_wbuf_recover()
451 memcpy(c->wbuf, buf, end-start); in jffs2_wbuf_recover()
453 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start); in jffs2_wbuf_recover()
518 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); in jffs2_wbuf_recover()
614 memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf()
617 struct jffs2_unknown_node *padnode = (void *)(c->wbuf + c->wbuf_len); in __jffs2_flush_wbuf()
639 &retlen, c->wbuf); in __jffs2_flush_wbuf()
[all …]
DMakefile14 jffs2-$(CONFIG_JFFS2_FS_WRITEBUFFER) += wbuf.o
/linux-4.19.296/drivers/media/rc/
Dir-rx51.c37 int wbuf[WBUF_LEN]; member
85 if (ir_rx51->wbuf[ir_rx51->wbuf_index] == -1) in ir_rx51_timer_cb()
93 ns = US_TO_NS(ir_rx51->wbuf[ir_rx51->wbuf_index]); in ir_rx51_timer_cb()
121 memcpy(ir_rx51->wbuf, buffer, count * sizeof(unsigned int)); in ir_rx51_tx()
128 ir_rx51->wbuf[count] = -1; /* Insert termination mark */ in ir_rx51_tx()
138 ns_to_ktime(US_TO_NS(ir_rx51->wbuf[0])), in ir_rx51_tx()
/linux-4.19.296/drivers/soundwire/
Dstream.c62 u16 wbuf; in _sdw_program_slave_port_params() local
99 wbuf = (t_params->sample_interval - 1); in _sdw_program_slave_port_params()
100 wbuf &= SDW_DPN_SAMPLECTRL_HIGH; in _sdw_program_slave_port_params()
101 wbuf >>= SDW_REG_SHIFT(SDW_DPN_SAMPLECTRL_HIGH); in _sdw_program_slave_port_params()
103 ret = sdw_write(slave, addr3, wbuf); in _sdw_program_slave_port_params()
110 wbuf = t_params->hstart; in _sdw_program_slave_port_params()
111 wbuf <<= SDW_REG_SHIFT(SDW_DPN_HCTRL_HSTART); in _sdw_program_slave_port_params()
112 wbuf |= t_params->hstop; in _sdw_program_slave_port_params()
114 ret = sdw_write(slave, addr4, wbuf); in _sdw_program_slave_port_params()
131 u8 wbuf; in sdw_program_slave_port_params() local
[all …]
/linux-4.19.296/drivers/media/tuners/
Dqm1d1c0042.c66 u8 wbuf[2] = { reg, val }; in reg_write() local
69 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); in reg_write()
70 if (ret >= 0 && ret < sizeof(wbuf)) in reg_write()
72 return (ret == sizeof(wbuf)) ? 0 : ret; in reg_write()
Dmxl301rf.c54 u8 wbuf[2] = { 0xfb, reg }; in reg_read() local
57 ret = raw_write(state, wbuf, sizeof(wbuf)); in reg_read()
/linux-4.19.296/fs/jbd2/
Dcommit.c361 struct buffer_head **wbuf = journal->j_wbuf; in jbd2_journal_commit_transaction() local
621 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction()
659 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction()
664 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction()
678 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction()
711 struct buffer_head *bh = wbuf[i]; in jbd2_journal_commit_transaction()

12