Home
last modified time | relevance | path

Searched full:wbuf (Results 1 – 25 of 202) sorted by relevance

123456789

/kernel/linux/linux-5.10/fs/ubifs/
Dio.c38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned
40 * write-buffer size (@wbuf->size).
477 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local
479 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
480 wbuf->need_sync = 1; in wbuf_timer_callback_nolock()
481 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock()
482 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock()
489 * @wbuf: write-buffer descriptor
491 static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument
499 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
[all …]
Dgc.c68 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local
72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
73 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
75 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head()
297 * @wbuf: write-buffer to move node to
299 * This function moves node @snod to @wbuf, changes TNC correspondingly, and
304 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument
306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
309 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node()
[all …]
Djournal.c101 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() local
111 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
118 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
119 if (wbuf->lnum != -1 && avail >= len) in reserve_space()
140 mutex_unlock(&wbuf->io_mutex); in reserve_space()
151 * because we dropped @wbuf->io_mutex, so try once in reserve_space()
165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space()
167 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space()
169 if (wbuf->lnum != -1 && avail >= len) { in reserve_space()
176 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space()
[all …]
Dmisc.h122 * @wbuf: write-buffer to synchronize
127 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) in ubifs_wbuf_sync() argument
131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync()
132 err = ubifs_wbuf_sync_nolock(wbuf); in ubifs_wbuf_sync()
133 mutex_unlock(&wbuf->io_mutex); in ubifs_wbuf_sync()
/kernel/linux/linux-4.19/fs/ubifs/
Dio.c50 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned
52 * write-buffer size (@wbuf->size).
452 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()
464 * @wbuf: write-buffer descriptor
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()
[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()
311 * @wbuf: write-buffer to move node to
313 * This function moves node @snod to @wbuf, changes TNC correspondingly, and
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()
[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()
157 * because we dropped @wbuf->io_mutex, so try once 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()
[all …]
/kernel/linux/linux-4.19/drivers/media/usb/dvb-usb/
Dfriio.c30 * this func sends wbuf[1..] to the I2C register wbuf[0] at addr (= at FE).
34 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_ctrlmsg_data() argument
36 u16 index = wbuf[0]; /* must be JDVBT90502_2ND_I2C_REG(=0xFE) */ in gl861_i2c_ctrlmsg_data()
42 wbuf[1], wbuf[0], wlen - 1); in gl861_i2c_ctrlmsg_data()
50 &wbuf[1], wlen - 1, 2000); in gl861_i2c_ctrlmsg_data()
58 * write to the register wbuf[0] at I2C address addr with the value wbuf[1],
59 * or read from the register wbuf[0].
60 * register address can be 16bit (wbuf[2]<<8 | wbuf[0]) if wlen==3
63 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument
73 wbuf[0] == JDVBT90502_2ND_I2C_REG) in gl861_i2c_msg()
[all …]
Dfriio-fe.c32 u8 wbuf[3]; in jdvbt90502_reg_read() local
35 wbuf[0] = reg & 0xFF; in jdvbt90502_reg_read()
36 wbuf[1] = 0; in jdvbt90502_reg_read()
37 wbuf[2] = reg >> 8; in jdvbt90502_reg_read()
41 msg[0].buf = wbuf; in jdvbt90502_reg_read()
42 msg[0].len = sizeof(wbuf); in jdvbt90502_reg_read()
62 u8 wbuf[2]; in jdvbt90502_single_reg_write() local
64 wbuf[0] = reg; in jdvbt90502_single_reg_write()
65 wbuf[1] = val; in jdvbt90502_single_reg_write()
69 msg.buf = wbuf; in jdvbt90502_single_reg_write()
[all …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/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.c777 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_xfer_msg() local
825 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg()
827 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg()
829 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg()
838 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg()
841 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg()
868 if (txn->msg && txn->msg->wbuf) in qcom_slim_ngd_xfer_msg()
869 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg()
922 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local
933 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream()
[all …]
/kernel/linux/linux-5.10/fs/jffs2/
Dwbuf.c60 /* Look to see if the inode in question is pending in the wbuf */ in jffs2_wbuf_pending_for_ino()
260 c->wbuf, c->wbuf_pagesize, 0); in jffs2_verify_write()
272 /* Recover from failure to write wbuf. Recover the nodes up to the
273 * wbuf, not the one which we were starting to try to write. */
297 node which ends before the wbuf starts, or which is obsolete. */ in jffs2_wbuf_recover()
332 dbg_noderef("wbuf recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover()
342 pr_crit("Malloc failure in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover()
357 pr_crit("Old data are already lost in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover()
375 /* It wasn't. Go on and try to recover nodes complete in the wbuf */ in jffs2_wbuf_recover()
377 dbg_noderef("wbuf now recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover()
[all …]
/kernel/linux/linux-4.19/fs/jffs2/
Dwbuf.c60 /* Look to see if the inode in question is pending in the wbuf */ in jffs2_wbuf_pending_for_ino()
260 c->wbuf, c->wbuf_pagesize, 0); in jffs2_verify_write()
272 /* Recover from failure to write wbuf. Recover the nodes up to the
273 * wbuf, not the one which we were starting to try to write. */
297 node which ends before the wbuf starts, or which is obsolete. */ in jffs2_wbuf_recover()
332 dbg_noderef("wbuf recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover()
342 pr_crit("Malloc failure in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover()
357 pr_crit("Old data are already lost in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover()
375 /* It wasn't. Go on and try to recover nodes complete in the wbuf */ in jffs2_wbuf_recover()
377 dbg_noderef("wbuf now recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_urb.c12 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usb_v2_generic_io() argument
16 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io()
22 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); in dvb_usb_v2_generic_io()
25 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io()
61 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw() argument
66 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw()
86 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvb_usbv2_generic_rw_locked() argument
88 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); in dvb_usbv2_generic_rw_locked()
Dau6610.c15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument
31 index = wbuf[0] << 8; in au6610_usb_msg()
34 index = wbuf[0] << 8; in au6610_usb_msg()
35 index += wbuf[1]; in au6610_usb_msg()
67 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument
78 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
/kernel/linux/linux-4.19/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()
/kernel/linux/linux-4.19/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);
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/drivers/media/rc/
Dir-rx51.c28 int wbuf[WBUF_LEN]; member
76 if (ir_rx51->wbuf[ir_rx51->wbuf_index] == -1) in ir_rx51_timer_cb()
84 ns = US_TO_NS(ir_rx51->wbuf[ir_rx51->wbuf_index]); in ir_rx51_timer_cb()
112 memcpy(ir_rx51->wbuf, buffer, count * sizeof(unsigned int)); in ir_rx51_tx()
119 ir_rx51->wbuf[count] = -1; /* Insert termination mark */ in ir_rx51_tx()
129 ns_to_ktime(US_TO_NS(ir_rx51->wbuf[0])), in ir_rx51_tx()
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/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()

123456789