/linux-master/fs/ubifs/ |
H A D | io.c | 38 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned 40 * write-buffer size (@wbuf->size). 498 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); local 500 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); 501 wbuf->need_sync = 1; 502 wbuf->c->need_wbuf_sync = 1; 503 ubifs_wake_up_bgt(wbuf->c); 510 * @wbuf: write-buffer descriptor 512 static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) argument 520 ubifs_assert(c, !hrtimer_active(&wbuf 537 cancel_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) argument 558 ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf) argument 633 ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs) argument 684 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 715 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local 740 ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len) argument 1019 ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, int lnum, int offs) argument 1150 ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf) argument 1194 ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum) argument 1214 wbuf_has_ino(struct ubifs_wbuf *wbuf, ino_t inum) argument 1243 struct ubifs_wbuf *wbuf = &c->jheads[i].wbuf; local [all...] |
H A D | gc.c | 68 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, 73 c->leb_size - wbuf->offs - wbuf->used); 75 err = ubifs_wbuf_sync_nolock(wbuf); 92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); 297 * @wbuf 303 move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) argument 335 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 495 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 674 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 954 struct ubifs_wbuf *wbuf; local [all...] |
H A D | misc.h | 122 * @wbuf: write-buffer to synchronize 127 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) argument 131 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); 132 err = ubifs_wbuf_sync_nolock(wbuf); 133 mutex_unlock(&wbuf->io_mutex);
|
H A D | journal.c | 101 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 D | log.c | 53 * ubifs_get_wbuf - get the wbuf associated with a LEB, if there is one. 57 * This functions returns the wbuf for @lnum or %NULL if there is not one. 79 return &c->jheads[jhead].wbuf; 308 struct ubifs_wbuf *wbuf; local 312 wbuf = &c->jheads[bud->jhead].wbuf; 314 if (wbuf->lnum == bud->lnum) { 319 c->cmt_bud_bytes += wbuf->offs - bud->start; 322 wbuf->offs - bud->start, c->cmt_bud_bytes); 323 bud->start = wbuf [all...] |
H A D | recovery.c | 409 * the last wbuf written. After that should be empty space. 1160 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; local 1164 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); 1167 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) 1170 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); 1180 ubifs_assert(c, lp.free + lp.dirty >= wbuf->offs); 1192 mutex_lock_nested(&wbuf [all...] |
/linux-master/drivers/media/usb/dvb-usb-v2/ |
H A D | dvb_usb_urb.c | 12 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 16 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || 22 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); 25 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, 61 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 66 ret = dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); 86 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 88 return dvb_usb_v2_generic_io(d, wbuf, wlen, rbuf, rlen); 11 dvb_usb_v2_generic_io(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument 60 dvb_usbv2_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument 85 dvb_usbv2_generic_rw_locked(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
|
H A D | au6610.c | 15 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 31 index = wbuf[0] << 8; 34 index = wbuf[0] << 8; 35 index += wbuf[1]; 67 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 78 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); 14 au6610_usb_msg(struct dvb_usb_device *d, u8 operation, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument 66 au6610_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
|
H A D | af9035.c | 58 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...] |
H A D | af9035.h | 40 u8 *wbuf; member in struct:usb_req
|
/linux-master/drivers/slimbus/ |
H A D | stream.c | 127 u8 wbuf[2]; local 128 struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; 135 wbuf[0] = port->id; 136 wbuf[1] = port->ch.id; 147 u8 wbuf[1]; local 148 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; 152 wbuf[0] = port->id; 163 u8 wbuf[1]; local 164 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; 169 wbuf[ 274 u8 wbuf[4]; local 309 u8 wbuf[4]; local 333 u8 wbuf[1]; local [all...] |
H A D | sched.c | 99 msg.wbuf = &restart; 107 msg.wbuf = NULL;
|
H A D | qcom-ngd-ctrl.c | 793 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...] |
H A D | messaging.c | 194 if (msg->wbuf != NULL) 200 if (msg->rbuf != NULL && msg->wbuf != NULL) 275 size_t count, u8 *rbuf, u8 *wbuf) 280 msg->wbuf = wbuf; 274 slim_fill_msg(struct slim_val_inf *msg, u32 addr, size_t count, u8 *rbuf, u8 *wbuf) argument
|
/linux-master/drivers/media/common/b2c2/ |
H A D | flexcop-eeprom.c | 17 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, rbu [all...] |
/linux-master/fs/jffs2/ |
H A D | wbuf.c | 60 /* Look to see if the inode in question is pending in the wbuf */ 260 c->wbuf, c->wbuf_pagesize, 0); 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. */ 332 dbg_noderef("wbuf recover %08x-%08x (%d bytes in %d nodes)\n", 342 pr_crit("Malloc failure in wbuf recovery. Data loss ensues.\n"); 357 pr_crit("Old data are already lost in wbuf recovery. Data loss ensues.\n"); 375 /* It wasn't. Go on and try to recover nodes complete in the wbuf */ 377 dbg_noderef("wbuf no [all...] |
H A D | Makefile | 14 jffs2-$(CONFIG_JFFS2_FS_WRITEBUFFER) += wbuf.o
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-urb.c | 12 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, argument 17 if (!d || wbuf == NULL || wlen == 0) 29 debug_dump(wbuf,wlen,deb_xfer); 32 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen,
|
H A D | dtv5100.c | 26 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) 50 value = wbuf[1]; 56 index = (addr << 8) + wbuf[0]; 25 dtv5100_i2c_msg(struct dvb_usb_device *d, u8 addr, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) argument
|
/linux-master/drivers/media/pci/ddbridge/ |
H A D | ddbridge-i2c.c | 96 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); 108 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); 161 i2c->wbuf = DDB_LINK_TAG(link) | 163 i2c->rbuf = i2c->wbuf; /* + i2c->bsize / 2 */ 167 ddbwritel(dev, ((i2c->rbuf & 0xffff) << 16) | (i2c->wbuf & 0xffff),
|
H A D | ddbridge-i2c.h | 25 u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) 28 .buf = wbuf, .len = wlen }, 24 i2c_io(struct i2c_adapter *adapter, u8 adr, u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) argument
|
/linux-master/sound/isa/wavefront/ |
H A D | wavefront_synth.c | 334 int cmd, unsigned char *rbuf, unsigned char *wbuf) 376 if (wavefront_write (dev, wbuf[i])) { 384 i, wbuf[i]); 604 unsigned char wbuf[2]; 607 wbuf[0] = sample_num & 0x7f; 608 wbuf[1] = sample_num >> 7; 610 x = snd_wavefront_cmd(dev, WFC_DELETE_SAMPLE, NULL, wbuf); 622 unsigned char rbuf[32], wbuf[32]; 627 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { 636 wbuf[ 333 snd_wavefront_cmd(snd_wavefront_t *dev, int cmd, unsigned char *rbuf, unsigned char *wbuf) argument 602 unsigned char wbuf[2]; local 620 unsigned char rbuf[32], wbuf[32]; local 2171 unsigned char rbuf[4], wbuf[4]; local [all...] |
/linux-master/drivers/input/touchscreen/ |
H A D | edt-ft5x06.c | 191 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/drivers/video/backlight/ |
H A D | ams369fg06.c | 190 const unsigned short *wbuf) 194 while ((wbuf[i] & DEFMASK) != ENDDEF) { 195 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { 196 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); 200 msleep(wbuf[i+1]); 189 ams369fg06_panel_send_sequence(struct ams369fg06 *lcd, const unsigned short *wbuf) argument
|
/linux-master/drivers/media/tuners/ |
H A D | qm1d1c0042.c | 66 u8 wbuf[2] = { reg, val }; local 69 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); 70 if (ret >= 0 && ret < sizeof(wbuf)) 72 return (ret == sizeof(wbuf)) ? 0 : ret;
|