Home
last modified time | relevance | path

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

1234

/Linux-v5.4/fs/ubifs/
Dio.c476 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local
478 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
479 wbuf->need_sync = 1; in wbuf_timer_callback_nolock()
480 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock()
481 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock()
490 static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument
498 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
501 if (wbuf->no_timer) in new_wbuf_timer_nolock()
504 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
507 hrtimer_start_range_ns(&wbuf->timer, softlimit, delta, in new_wbuf_timer_nolock()
[all …]
Dgc.c72 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local
76 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
77 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
79 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
96 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head()
307 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument
309 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
312 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node()
338 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes() local
340 if (wbuf->lnum == -1) { in move_nodes()
[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()
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()
194 err = ubifs_wbuf_sync_nolock(wbuf); in reserve_space()
[all …]
Dmisc.h127 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()
Dlog.c79 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
308 struct ubifs_wbuf *wbuf; in remove_buds() local
312 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
314 if (wbuf->lnum == bud->lnum) { in remove_buds()
319 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
322 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds()
323 bud->start = wbuf->offs; in remove_buds()
394 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
395 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
Drecovery.c1160 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit() local
1164 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); in ubifs_rcvry_gc_commit()
1167 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) in ubifs_rcvry_gc_commit()
1170 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit()
1180 ubifs_assert(c, lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit()
1192 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
1195 int err2 = ubifs_wbuf_sync_nolock(wbuf); in ubifs_rcvry_gc_commit()
1200 mutex_unlock(&wbuf->io_mutex); in ubifs_rcvry_gc_commit()
/Linux-v5.4/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
821 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg()
823 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg()
825 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg()
834 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg()
837 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg()
864 if (txn->msg && txn->msg->wbuf) in qcom_slim_ngd_xfer_msg()
865 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg()
918 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local
929 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream()
[all …]
Dmessaging.c193 if (msg->wbuf != NULL) in slim_val_inf_sanity()
199 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity()
273 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument
278 msg->wbuf = wbuf; in slim_fill_msg()
/Linux-v5.4/drivers/media/usb/dvb-usb-v2/
Dgl861.c18 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument
30 buf = kmemdup(wbuf, wlen, GFP_KERNEL); in gl861_i2c_msg()
41 index = wbuf[0]; in gl861_i2c_msg()
44 index = wbuf[0]; in gl861_i2c_msg()
45 value = value + wbuf[1]; in gl861_i2c_msg()
195 gl861_i2c_write_ex(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen) in gl861_i2c_write_ex() argument
200 buf = kmemdup(wbuf, wlen, GFP_KERNEL); in gl861_i2c_write_ex()
392 u8 wbuf[2], rbuf[2]; in friio_reset() local
404 wbuf[0] = 0x11; in friio_reset()
405 wbuf[1] = 0x02; in friio_reset()
[all …]
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()
Daf9035.c58 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen); in af9035_ctrl_msg()
117 u8 wbuf[MAX_XFER_SIZE]; in af9035_wr_regs() local
119 struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL }; in af9035_wr_regs()
121 if (6 + len > sizeof(wbuf)) { in af9035_wr_regs()
126 wbuf[0] = len; in af9035_wr_regs()
127 wbuf[1] = 2; in af9035_wr_regs()
128 wbuf[2] = 0; in af9035_wr_regs()
129 wbuf[3] = 0; in af9035_wr_regs()
130 wbuf[4] = (reg >> 8) & 0xff; in af9035_wr_regs()
131 wbuf[5] = (reg >> 0) & 0xff; in af9035_wr_regs()
[all …]
/Linux-v5.4/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-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/soundwire/
Dstream.c65 u16 wbuf; in _sdw_program_slave_port_params() local
102 wbuf = (t_params->sample_interval - 1); in _sdw_program_slave_port_params()
103 wbuf &= SDW_DPN_SAMPLECTRL_HIGH; in _sdw_program_slave_port_params()
104 wbuf >>= SDW_REG_SHIFT(SDW_DPN_SAMPLECTRL_HIGH); in _sdw_program_slave_port_params()
106 ret = sdw_write(slave, addr3, wbuf); in _sdw_program_slave_port_params()
113 wbuf = t_params->hstart; in _sdw_program_slave_port_params()
114 wbuf <<= SDW_REG_SHIFT(SDW_DPN_HCTRL_HSTART); in _sdw_program_slave_port_params()
115 wbuf |= t_params->hstop; in _sdw_program_slave_port_params()
117 ret = sdw_write(slave, addr4, wbuf); in _sdw_program_slave_port_params()
134 u8 wbuf; in sdw_program_slave_port_params() local
[all …]
/Linux-v5.4/sound/isa/wavefront/
Dwavefront_synth.c334 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument
375 if (wavefront_write (dev, wbuf[i])) { in snd_wavefront_cmd()
383 i, wbuf[i]); in snd_wavefront_cmd()
600 unsigned char wbuf[2]; in wavefront_delete_sample() local
603 wbuf[0] = sample_num & 0x7f; in wavefront_delete_sample()
604 wbuf[1] = sample_num >> 7; in wavefront_delete_sample()
606 if ((x = snd_wavefront_cmd (dev, WFC_DELETE_SAMPLE, NULL, wbuf)) == 0) { in wavefront_delete_sample()
618 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local
623 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status()
632 wbuf[0] = i & 0x7f; in wavefront_get_sample_status()
[all …]
/Linux-v5.4/drivers/media/usb/dvb-usb/
Ddvb-usb-urb.c12 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, in dvb_usb_generic_rw() argument
17 if (!d || wbuf == NULL || wlen == 0) in dvb_usb_generic_rw()
29 debug_dump(wbuf,wlen,deb_xfer); in dvb_usb_generic_rw()
32 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw()
Ddtv5100.c26 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument
47 value = wbuf[1]; in dtv5100_i2c_msg()
53 index = (addr << 8) + wbuf[0]; in dtv5100_i2c_msg()
/Linux-v5.4/drivers/media/i2c/m5mols/
Dm5mols_core.c147 u8 wbuf[5]; in m5mols_read() local
156 msg[0].buf = wbuf; in m5mols_read()
157 wbuf[0] = 5; in m5mols_read()
158 wbuf[1] = M5MOLS_BYTE_READ; in m5mols_read()
159 wbuf[2] = category; in m5mols_read()
160 wbuf[3] = cmd; in m5mols_read()
161 wbuf[4] = size; in m5mols_read()
243 u8 wbuf[M5MOLS_I2C_MAX_SIZE + 4]; in m5mols_write() local
247 u32 *buf = (u32 *)&wbuf[4]; in m5mols_write()
262 msg->buf = wbuf; in m5mols_write()
[all …]
/Linux-v5.4/drivers/media/pci/ddbridge/
Dddbridge-i2c.c105 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); in ddb_i2c_master_xfer()
117 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); in ddb_i2c_master_xfer()
170 i2c->wbuf = DDB_LINK_TAG(link) | in ddb_i2c_add()
172 i2c->rbuf = i2c->wbuf; /* + i2c->bsize / 2 */ in ddb_i2c_add()
176 ddbwritel(dev, ((i2c->rbuf & 0xffff) << 16) | (i2c->wbuf & 0xffff), in ddb_i2c_add()
/Linux-v5.4/drivers/video/backlight/
Dams369fg06.c191 const unsigned short *wbuf) in ams369fg06_panel_send_sequence() argument
195 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ams369fg06_panel_send_sequence()
196 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ams369fg06_panel_send_sequence()
197 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence()
201 msleep(wbuf[i+1]); in ams369fg06_panel_send_sequence()
/Linux-v5.4/drivers/scsi/
Dadvansys.c8876 ushort *wbuf; in AscGetEEPConfig() local
8882 wbuf = (ushort *)cfg_buf; in AscGetEEPConfig()
8885 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { in AscGetEEPConfig()
8886 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig()
8887 sum += *wbuf; in AscGetEEPConfig()
8896 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { in AscGetEEPConfig()
8903 *wbuf = le16_to_cpu(wval); in AscGetEEPConfig()
8906 *wbuf = wval; in AscGetEEPConfig()
8914 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig()
8988 ushort *wbuf; in AscSetEEPConfigOnce() local
[all …]
/Linux-v5.4/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()

1234