Searched refs:wbuf (Results 1 - 25 of 87) sorted by last modified time

1234

/linux-master/drivers/s390/char/
H A Draw3270.c593 static const unsigned char wbuf[] = { local
600 memcpy(&rp->init_data, wbuf, sizeof(wbuf));
603 rp->init_readpart.ccw.count = sizeof(wbuf);
/linux-master/fs/smb/server/
H A Dvfs.c420 char *stream_buf = NULL, *wbuf; local
447 wbuf = kvzalloc(size, GFP_KERNEL);
448 if (!wbuf) {
454 memcpy(wbuf, stream_buf, v_len);
456 stream_buf = wbuf;
/linux-master/net/9p/
H A Dtrans_fd.c102 * @wbuf: current write buffer
125 char *wbuf; member in struct:p9_conn
472 m->wbuf = req->tc.sdata;
483 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos);
/linux-master/include/linux/
H A Dslimbus.h100 * @wbuf: buffer to write
111 const u8 *wbuf; member in struct:slim_val_inf
/linux-master/fs/ubifs/
H A Dubifs.h678 * @need_sync: non-zero if the timer expired and the wbuf needs sync'ing
680 * @inodes: stores the inode numbers of the nodes which are in wbuf
731 * @wbuf: head's write-buffer
739 struct ubifs_wbuf wbuf; member in struct:ubifs_jhead
1751 int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len);
1752 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs);
1753 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf);
1756 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len,
1772 int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf);
1774 void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_
[all...]
H A Dtnc_misc.c487 struct ubifs_wbuf *wbuf; local
493 wbuf = ubifs_get_wbuf(c, zbr->lnum);
494 if (wbuf)
495 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len,
H A Dtnc.c1675 * read_wbuf - bulk-read from a LEB with a wbuf.
1676 * @wbuf: wbuf that may overlap the read
1684 static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, argument
1687 const struct ubifs_info *c = wbuf->c;
1691 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0);
1695 spin_lock(&wbuf->lock);
1696 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs);
1699 spin_unlock(&wbuf
1792 struct ubifs_wbuf *wbuf; local
[all...]
H A Dsuper.c481 err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
830 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf);
834 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback;
835 c->jheads[i].wbuf.jhead = i;
848 c->jheads[GCHD].wbuf.no_timer = 1;
854 kfree(c->jheads[i].wbuf.buf);
855 kfree(c->jheads[i].wbuf.inodes);
859 kfree(c->jheads[i].wbuf.buf);
860 kfree(c->jheads[i].wbuf.inodes);
879 kfree(c->jheads[i].wbuf
[all...]
H A Dlprops.c1266 err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
H A Djournal.c101 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; local
111 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead);
118 avail = c->leb_size - wbuf->offs - wbuf->used;
119 if (wbuf->lnum != -1 && avail >= len)
140 mutex_unlock(&wbuf->io_mutex);
151 * because we dropped @wbuf->io_mutex, so try once
165 mutex_lock_nested(&wbuf
272 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; local
767 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; local
1274 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; local
1500 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; local
2009 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; local
[all...]
H A Ddebug.c655 dbg_jhead(c->jheads[i].wbuf.jhead),
656 c->jheads[i].wbuf.lnum);
756 lp->lnum == c->jheads[i].wbuf.lnum) {
2547 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) {
H A Dreplay.c146 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf,
H A Dcommit.c130 err = ubifs_wbuf_sync(&c->jheads[i].wbuf);
/linux-master/drivers/slimbus/
H A Dqcom-ngd-ctrl.c793 u8 wbuf[SLIM_MSGQ_BUF_LEN]; local
841 wbuf[i++] = txn->la;
843 wbuf[i++] = txn->msg->wbuf[0];
845 wbuf[i++] = txn->msg->wbuf[1];
854 wbuf[i++] = txn->tid;
857 txn->msg->wbuf = wbuf;
884 if (txn->msg && txn->msg->wbuf)
1000 u8 wbuf[SLIM_MSGQ_BUF_LEN]; local
1094 u8 wbuf[10] = {0}; local
1251 u8 wbuf[8]; local
[all...]
/linux-master/drivers/soundwire/
H A Dstream.c69 u16 wbuf; local
106 wbuf = FIELD_GET(SDW_DPN_SAMPLECTRL_HIGH, t_params->sample_interval - 1);
108 ret = sdw_write_no_pm(slave, addr3, wbuf);
115 wbuf = FIELD_PREP(SDW_DPN_HCTRL_HSTART, t_params->hstart);
116 wbuf |= FIELD_PREP(SDW_DPN_HCTRL_HSTOP, t_params->hstop);
118 ret = sdw_write_no_pm(slave, addr4, wbuf);
135 u8 wbuf; local
163 wbuf = FIELD_PREP(SDW_DPN_PORTCTRL_DATAMODE, p_params->data_mode);
164 wbuf |= FIELD_PREP(SDW_DPN_PORTCTRL_FLOWMODE, p_params->flow_mode);
166 ret = sdw_update_no_pm(s_rt->slave, addr1, 0xF, wbuf);
679 u8 *wbuf; local
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Dnand_base.c4488 uint8_t *wbuf = buf; local
4510 wbuf = nand_get_data_buf(chip);
4511 memset(wbuf, 0xff, mtd->writesize);
4512 memcpy(&wbuf[column], buf, bytes);
4524 ret = nand_write_page(chip, column, bytes, wbuf,
/linux-master/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c141 u8 rbuf[2], wbuf[2] = { addr >> 8, addr & 0xff }; local
146 .len = sizeof(wbuf),
147 .buf = wbuf
/linux-master/drivers/hwmon/
H A Dpt5161l.c127 u8 wbuf[16], rbuf[24]; local
140 wbuf[0] = config | (curr_len - 1) << 1 |
142 wbuf[1] = (address >> 8) & 0xff;
143 wbuf[2] = address & 0xff;
147 wbuf);
/linux-master/drivers/net/ethernet/smsc/
H A Dsmc91x.c1696 u16 wbuf; local
1700 ret = smc_read_eeprom_word(dev, offset >> 1, &wbuf);
1703 DBG(2, dev, "Read 0x%x from 0x%x\n", wbuf, offset >> 1);
1704 data[i] = (wbuf >> 8) & 0xff;
1705 data[i+1] = wbuf & 0xff;
1721 u16 wbuf; local
1725 wbuf = (data[i] << 8) | data[i + 1];
1726 DBG(2, dev, "Writing 0x%x to 0x%x\n", wbuf, offset >> 1);
1727 ret = smc_write_eeprom_word(dev, offset >> 1, wbuf);
/linux-master/drivers/input/touchscreen/
H A Dgoodix.c172 __be16 wbuf = cpu_to_be16(reg); local
178 msgs[0].buf = (u8 *)&wbuf;
H A Dedt-ft5x06.c191 u8 wbuf[4], rbuf[3]; local
195 wbuf[0] = addr;
199 wbuf[0] = 0xf5;
200 wbuf[1] = 0xe;
201 wbuf[2] = *((u8 *)val_buf);
209 wbuf[0] = M06_REG_CMD(tsdata->factory_mode);
210 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr);
211 wbuf[1] |= tsdata->factory_mode ? 0x80 : 0x40;
217 xfer[0].buf = wbuf;
247 wbuf[
264 u8 wbuf[4]; local
[all...]
/linux-master/fs/jbd2/
H A Dcommit.c354 struct buffer_head **wbuf = journal->j_wbuf; local
628 wbuf[bufs++] = descriptor;
665 jh, &wbuf[bufs], blocknr);
670 jbd2_file_log_bh(&io_bufs, wbuf[bufs]);
684 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs],
717 struct buffer_head *bh = wbuf[i];
/linux-master/drivers/media/usb/dvb-usb-v2/
H A Daf9035.c58 memcpy(&state->buf[REQ_HDR_LEN], req->wbuf, req->wlen);
117 u8 wbuf[MAX_XFER_SIZE]; local
119 struct usb_req req = { CMD_MEM_WR, mbox, 6 + len, wbuf, 0, NULL };
121 if (6 + len > sizeof(wbuf)) {
126 wbuf[0] = len;
127 wbuf[1] = 2;
128 wbuf[2] = 0;
129 wbuf[3] = 0;
130 wbuf[4] = (reg >> 8) & 0xff;
131 wbuf[
140 u8 wbuf[] = { len, 2, 0, 0, (reg >> 8) & 0xff, reg & 0xff }; local
492 u8 wbuf[1] = { 1 }; local
601 u8 wbuf[1]; local
732 u8 wbuf[1]; local
[all...]
/linux-master/include/sound/
H A Dwavefront.h517 unsigned char wbuf[WF_MAX_WRITE]; /* bytes written to card */ member in struct:wavefront_control
/linux-master/fs/jffs2/
H A Dos-linux.h103 #define jffs2_is_writebuffered(c) (c->wbuf != NULL)
115 /* wbuf.c */

Completed in 319 milliseconds

1234