/linux-4.4.14/fs/ubifs/ |
D | io.c | 440 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local 442 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock() 443 wbuf->need_sync = 1; in wbuf_timer_callback_nolock() 444 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock() 445 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock() 453 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument 455 ubifs_assert(!hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() 457 if (wbuf->no_timer) in new_wbuf_timer_nolock() 460 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock() 461 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), in new_wbuf_timer_nolock() [all …]
|
D | gc.c | 84 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() 103 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head() 112 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head() 322 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument 324 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() 327 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node() 353 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes() local [all …]
|
D | journal.c | 118 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() local 128 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 135 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 136 if (wbuf->lnum != -1 && avail >= len) in reserve_space() 157 mutex_unlock(&wbuf->io_mutex); in reserve_space() 182 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 184 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 186 if (wbuf->lnum != -1 && avail >= len) { in reserve_space() 193 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space() 211 err = ubifs_wbuf_sync_nolock(wbuf); in reserve_space() [all …]
|
D | misc.h | 137 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) in ubifs_wbuf_sync() argument 141 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync() 142 err = ubifs_wbuf_sync_nolock(wbuf); in ubifs_wbuf_sync() 143 mutex_unlock(&wbuf->io_mutex); in ubifs_wbuf_sync()
|
D | log.c | 91 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()
|
D | recovery.c | 1172 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit() local 1176 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); in ubifs_rcvry_gc_commit() 1179 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) in ubifs_rcvry_gc_commit() 1182 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit() 1192 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1204 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit() 1207 int err2 = ubifs_wbuf_sync_nolock(wbuf); in ubifs_rcvry_gc_commit() 1212 mutex_unlock(&wbuf->io_mutex); in ubifs_rcvry_gc_commit()
|
D | tnc_misc.c | 463 struct ubifs_wbuf *wbuf; in ubifs_tnc_read_node() local 469 wbuf = ubifs_get_wbuf(c, zbr->lnum); in ubifs_tnc_read_node() 470 if (wbuf) in ubifs_tnc_read_node() 471 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, in ubifs_tnc_read_node()
|
D | ubifs.h | 735 struct ubifs_wbuf wbuf; member 1492 int ubifs_wbuf_write_nolock(struct ubifs_wbuf *wbuf, void *buf, int len); 1493 int ubifs_wbuf_seek_nolock(struct ubifs_wbuf *wbuf, int lnum, int offs); 1494 int ubifs_wbuf_init(struct ubifs_info *c, struct ubifs_wbuf *wbuf); 1497 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, 1507 int ubifs_wbuf_sync_nolock(struct ubifs_wbuf *wbuf); 1509 void ubifs_wbuf_add_ino_nolock(struct ubifs_wbuf *wbuf, ino_t inum);
|
D | tnc.c | 1635 static int read_wbuf(struct ubifs_wbuf *wbuf, void *buf, int len, int lnum, in read_wbuf() argument 1638 const struct ubifs_info *c = wbuf->c; in read_wbuf() 1642 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf() 1646 spin_lock(&wbuf->lock); in read_wbuf() 1647 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); in read_wbuf() 1650 spin_unlock(&wbuf->lock); in read_wbuf() 1655 rlen = wbuf->offs - offs; in read_wbuf() 1660 memcpy(buf + rlen, wbuf->buf + offs + rlen - wbuf->offs, len - rlen); in read_wbuf() 1661 spin_unlock(&wbuf->lock); in read_wbuf() 1737 struct ubifs_wbuf *wbuf; in ubifs_tnc_bulk_read() local [all …]
|
D | super.c | 468 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_sync_fs() 808 err = ubifs_wbuf_init(c, &c->jheads[i].wbuf); in alloc_wbufs() 812 c->jheads[i].wbuf.sync_callback = &bud_wbuf_callback; in alloc_wbufs() 813 c->jheads[i].wbuf.jhead = i; in alloc_wbufs() 821 c->jheads[GCHD].wbuf.no_timer = 1; in alloc_wbufs() 837 kfree(c->jheads[i].wbuf.buf); in free_wbufs() 838 kfree(c->jheads[i].wbuf.inodes); in free_wbufs() 1732 ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_remount_ro() 1799 ubifs_wbuf_sync(&c->jheads[i].wbuf); in ubifs_put_super() 1821 hrtimer_cancel(&c->jheads[i].wbuf.timer); in ubifs_put_super()
|
D | commit.c | 131 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in do_commit()
|
D | debug.c | 620 dbg_jhead(c->jheads[i].wbuf.jhead), in ubifs_dump_budg() 621 c->jheads[i].wbuf.lnum); in ubifs_dump_budg() 721 lp->lnum == c->jheads[i].wbuf.lnum) { in ubifs_dump_lprop() 2524 } else if (c->jheads && lnum == c->jheads[GCHD].wbuf.lnum) { in power_cut_emulated()
|
D | replay.c | 156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops()
|
D | lprops.c | 1279 err = ubifs_wbuf_sync(&c->jheads[i].wbuf); in dbg_check_lprops()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | friio.c | 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() 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() 74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen); in gl861_i2c_msg() 88 index = wbuf[0]; in gl861_i2c_msg() 91 index = wbuf[0]; in gl861_i2c_msg() 92 value = value + wbuf[1]; in gl861_i2c_msg() [all …]
|
D | friio-fe.c | 31 u8 wbuf[3]; in jdvbt90502_reg_read() local 34 wbuf[0] = reg & 0xFF; in jdvbt90502_reg_read() 35 wbuf[1] = 0; in jdvbt90502_reg_read() 36 wbuf[2] = reg >> 8; in jdvbt90502_reg_read() 40 msg[0].buf = wbuf; in jdvbt90502_reg_read() 41 msg[0].len = sizeof(wbuf); in jdvbt90502_reg_read() 61 u8 wbuf[2]; in jdvbt90502_single_reg_write() local 63 wbuf[0] = reg; in jdvbt90502_single_reg_write() 64 wbuf[1] = val; in jdvbt90502_single_reg_write() 68 msg.buf = wbuf; in jdvbt90502_single_reg_write() [all …]
|
D | dvb-usb-urb.c | 11 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, in dvb_usb_generic_rw() argument 16 if (!d || wbuf == NULL || wlen == 0) in dvb_usb_generic_rw() 28 debug_dump(wbuf,wlen,deb_xfer); in dvb_usb_generic_rw() 31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw()
|
D | dtv5100.c | 35 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument 55 value = wbuf[1]; in dtv5100_i2c_msg() 61 index = (addr << 8) + wbuf[0]; in dtv5100_i2c_msg()
|
D | dibusb-common.c | 109 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dibusb_i2c_msg() argument 124 memcpy(&sndbuf[2],wbuf,wlen); in dibusb_i2c_msg() 182 u8 wbuf[1] = { offs }; in dibusb_read_eeprom_byte() local 183 return dibusb_i2c_msg(d, 0x50, wbuf, 1, val, 1); in dibusb_read_eeprom_byte()
|
D | digitv.c | 29 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in digitv_ctrl_msg() argument 40 memcpy(&sndbuf[3],wbuf,wlen); in digitv_ctrl_msg()
|
D | ttusb2.c | 75 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in ttusb2_msg() argument 95 memcpy(&s[4],wbuf,wlen); in ttusb2_msg()
|
D | af9005.c | 461 int af9005_send_command(struct dvb_usb_device *d, u8 command, u8 * wbuf, in af9005_send_command() argument 492 buf[7 + i] = wbuf[i]; in af9005_send_command()
|
D | cxusb.c | 62 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in cxusb_ctrl_msg() argument 76 memcpy(&sndbuf[1], wbuf, wlen); in cxusb_ctrl_msg()
|
D | af9005.h | 3482 u8 * wbuf, int wlen, u8 * rbuf, int rlen);
|
/linux-4.4.14/drivers/media/common/b2c2/ |
D | flexcop-eeprom.c | 16 u32 len, u8 *wbuf, u8 *rbuf, int retries) 21 if (eeprom_write(adapter, addr, wbuf, len) == len) { 34 u8 wbuf[20]; 39 memcpy(wbuf, key, len); 40 wbuf[16] = 0; 41 wbuf[17] = 0; 42 wbuf[18] = 0; 43 wbuf[19] = calc_lrc(wbuf, 19); 44 return eeprom_lrc_write(adapter, 0x3e4, 20, wbuf, rbuf, 4);
|
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
D | dvb_usb_urb.c | 25 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()
|
D | au6610.c | 28 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument 44 index = wbuf[0] << 8; in au6610_usb_msg() 47 index = wbuf[0] << 8; in au6610_usb_msg() 48 index += wbuf[1]; in au6610_usb_msg() 80 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument 91 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
|
D | gl861.c | 17 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument 34 index = wbuf[0]; in gl861_i2c_msg() 37 index = wbuf[0]; in gl861_i2c_msg() 38 value = value + wbuf[1]; in gl861_i2c_msg()
|
D | af9035.c | 70 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() 142 wbuf[0] = len; in af9035_wr_regs() 143 wbuf[1] = 2; in af9035_wr_regs() 144 wbuf[2] = 0; in af9035_wr_regs() 145 wbuf[3] = 0; in af9035_wr_regs() 146 wbuf[4] = (reg >> 8) & 0xff; in af9035_wr_regs() 147 wbuf[5] = (reg >> 0) & 0xff; in af9035_wr_regs() [all …]
|
D | af9035.h | 52 u8 *wbuf; member
|
D | mxl111sf.h | 107 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen);
|
D | lmedm04.c | 177 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument 198 memcpy(buff, wbuf, (wlen < 64) ? wlen : 64); in lme2510_usb_talk() 523 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument 529 return lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg()
|
D | dvbsky.c | 54 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dvbsky_usb_generic_rw() argument 61 memcpy(state->obuf, wbuf, wlen); in dvbsky_usb_generic_rw()
|
D | mxl111sf.c | 59 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) in mxl111sf_ctrl_msg() argument 75 memcpy(&sndbuf[1], wbuf, wlen); in mxl111sf_ctrl_msg()
|
/linux-4.4.14/fs/jffs2/ |
D | wbuf.c | 260 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 …]
|
D | Makefile | 13 jffs2-$(CONFIG_JFFS2_FS_WRITEBUFFER) += wbuf.o
|
D | README.Locking | 33 the alloc_sem is also used to protect the wbuf-related members of the 35 if the wbuf is currently holding any data is permitted, though. 142 write-behind buffer ('wbuf') used for flash chips where we must write 143 in blocks. It protects both the contents of the wbuf and the metadata
|
D | jffs2_fs_sb.h | 130 unsigned char *wbuf; /* Write-behind buffer for NAND flash */ member
|
D | os-linux.h | 102 #define jffs2_is_writebuffered(c) (c->wbuf != NULL)
|
/linux-4.4.14/sound/isa/wavefront/ |
D | wavefront_synth.c | 336 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument 377 if (wavefront_write (dev, wbuf[i])) { in snd_wavefront_cmd() 385 i, wbuf[i]); in snd_wavefront_cmd() 602 unsigned char wbuf[2]; in wavefront_delete_sample() local 605 wbuf[0] = sample_num & 0x7f; in wavefront_delete_sample() 606 wbuf[1] = sample_num >> 7; in wavefront_delete_sample() 608 if ((x = snd_wavefront_cmd (dev, WFC_DELETE_SAMPLE, NULL, wbuf)) == 0) { in wavefront_delete_sample() 620 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local 625 if (snd_wavefront_cmd (dev, WFC_GET_NSAMPLES, rbuf, wbuf)) { in wavefront_get_sample_status() 634 wbuf[0] = i & 0x7f; in wavefront_get_sample_status() [all …]
|
D | wavefront_midi.c | 487 unsigned char rbuf[4], wbuf[4]; in snd_wavefront_midi_start() local 532 if (snd_wavefront_cmd (dev, WFC_MISYNTH_ON, rbuf, wbuf)) { in snd_wavefront_midi_start() 548 if (snd_wavefront_cmd (dev, WFC_VMIDI_OFF, rbuf, wbuf)) { in snd_wavefront_midi_start() 555 if (snd_wavefront_cmd (dev, WFC_VMIDI_ON, rbuf, wbuf)) { in snd_wavefront_midi_start()
|
/linux-4.4.14/drivers/staging/media/lirc/ |
D | lirc_parallel.c | 372 int *wbuf; in lirc_write() local 383 wbuf = memdup_user(buf, n); in lirc_write() 384 if (IS_ERR(wbuf)) in lirc_write() 385 return PTR_ERR(wbuf); in lirc_write() 401 helper = ((__u64) wbuf[i])*timer; in lirc_write() 403 wbuf[i] = (int) helper; in lirc_write() 423 } while (counttimer < wbuf[i]); in lirc_write() 440 } while (counttimer < wbuf[i]); in lirc_write() 449 kfree(wbuf); in lirc_write()
|
D | lirc_serial.c | 827 int *wbuf; in lirc_write() local 835 wbuf = memdup_user(buf, n); in lirc_write() 836 if (IS_ERR(wbuf)) in lirc_write() 837 return PTR_ERR(wbuf); in lirc_write() 845 hardware[type].send_space(wbuf[i] - delta); in lirc_write() 847 delta = hardware[type].send_pulse(wbuf[i]); in lirc_write() 851 kfree(wbuf); in lirc_write()
|
/linux-4.4.14/drivers/media/rc/ |
D | ir-rx51.c | 58 int wbuf[WBUF_LEN]; member 149 if (lirc_rx51->wbuf[lirc_rx51->wbuf_index] == -1) in lirc_rx51_interrupt_handler() 158 lirc_rx51->wbuf[lirc_rx51->wbuf_index]); in lirc_rx51_interrupt_handler() 253 if (copy_from_user(lirc_rx51->wbuf, buf, n)) in lirc_rx51_write() 258 if (lirc_rx51->wbuf[i] < 0) in lirc_rx51_write() 263 lirc_rx51->wbuf[count] = -1; /* Insert termination mark */ in lirc_rx51_write() 273 pulse_timer_set_timeout(lirc_rx51, lirc_rx51->wbuf[0]); in lirc_rx51_write()
|
/linux-4.4.14/drivers/media/i2c/m5mols/ |
D | m5mols_core.c | 149 u8 wbuf[5]; in m5mols_read() local 158 msg[0].buf = wbuf; in m5mols_read() 159 wbuf[0] = 5; in m5mols_read() 160 wbuf[1] = M5MOLS_BYTE_READ; in m5mols_read() 161 wbuf[2] = category; in m5mols_read() 162 wbuf[3] = cmd; in m5mols_read() 163 wbuf[4] = size; in m5mols_read() 244 u8 wbuf[M5MOLS_I2C_MAX_SIZE + 4]; in m5mols_write() local 248 u32 *buf = (u32 *)&wbuf[4]; in m5mols_write() 263 msg->buf = wbuf; in m5mols_write() [all …]
|
/linux-4.4.14/drivers/video/backlight/ |
D | ams369fg06.c | 195 const unsigned short *wbuf) in ams369fg06_panel_send_sequence() argument 199 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ams369fg06_panel_send_sequence() 200 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ams369fg06_panel_send_sequence() 201 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence() 205 msleep(wbuf[i+1]); in ams369fg06_panel_send_sequence()
|
D | ld9040.c | 458 const unsigned short *wbuf) in ld9040_panel_send_sequence() argument 462 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ld9040_panel_send_sequence() 463 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ld9040_panel_send_sequence() 464 ret = ld9040_spi_write(lcd, wbuf[i], wbuf[i+1]); in ld9040_panel_send_sequence() 468 msleep(wbuf[i+1]); in ld9040_panel_send_sequence()
|
D | s6e63m0.c | 389 const unsigned short *wbuf) in s6e63m0_panel_send_sequence() argument 393 while ((wbuf[i] & DEFMASK) != ENDDEF) { in s6e63m0_panel_send_sequence() 394 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in s6e63m0_panel_send_sequence() 395 ret = s6e63m0_spi_write(lcd, wbuf[i], wbuf[i+1]); in s6e63m0_panel_send_sequence() 399 msleep(wbuf[i+1]); in s6e63m0_panel_send_sequence()
|
D | lms501kf03.c | 141 const unsigned char *wbuf, in lms501kf03_panel_send_sequence() argument 148 ret = lms501kf03_spi_write(lcd, COMMAND_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence() 150 ret = lms501kf03_spi_write(lcd, DATA_ONLY, wbuf[i]); in lms501kf03_panel_send_sequence()
|
/linux-4.4.14/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 424 u16 len, u8 *wbuf) in spinand_program_data_to_cache() argument 436 cmd.tx_buf = wbuf; in spinand_program_data_to_cache() 482 u8 *wbuf; in spinand_program_page() local 487 wbuf = devm_kzalloc(&spi_nand->dev, CACHE_BUF, GFP_KERNEL); in spinand_program_page() 488 spinand_read_page(spi_nand, page_id, 0, CACHE_BUF, wbuf); in spinand_program_page() 491 wbuf[i] &= buf[j]; in spinand_program_page() 501 wbuf = buf; in spinand_program_page() 512 offset, len, wbuf); in spinand_program_page()
|
/linux-4.4.14/drivers/media/tuners/ |
D | qm1d1c0042.c | 65 u8 wbuf[2] = { reg, val }; in reg_write() local 68 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf)); in reg_write() 69 if (ret >= 0 && ret < sizeof(wbuf)) in reg_write() 71 return (ret == sizeof(wbuf)) ? 0 : ret; in reg_write()
|
D | mxl301rf.c | 63 u8 wbuf[2] = { 0xfb, reg }; in reg_read() local 66 ret = raw_write(state, wbuf, sizeof(wbuf)); in reg_read()
|
/linux-4.4.14/drivers/scsi/ |
D | advansys.c | 8883 ushort *wbuf; in AscGetEEPConfig() local 8889 wbuf = (ushort *)cfg_buf; in AscGetEEPConfig() 8892 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { in AscGetEEPConfig() 8893 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig() 8894 sum += *wbuf; in AscGetEEPConfig() 8903 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { in AscGetEEPConfig() 8910 *wbuf = le16_to_cpu(wval); in AscGetEEPConfig() 8913 *wbuf = wval; in AscGetEEPConfig() 8921 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig() 8995 ushort *wbuf; in AscSetEEPConfigOnce() local [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | ptrace_64.c | 153 struct reg_window *wbuf) in regwindow64_get() argument 164 wbuf->locals[i] = win32.locals[i]; in regwindow64_get() 166 wbuf->ins[i] = win32.ins[i]; in regwindow64_get() 169 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get() 178 struct reg_window *wbuf) in regwindow64_set() argument 187 win32.locals[i] = wbuf->locals[i]; in regwindow64_set() 189 win32.ins[i] = wbuf->ins[i]; in regwindow64_set() 195 if (set_to_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_set()
|
/linux-4.4.14/drivers/video/fbdev/omap/ |
D | lcd_mipid.c | 68 static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, in mipid_transfer() argument 91 x->tx_buf = wbuf; in mipid_transfer() 354 u16 wbuf[3]; in ls041y3_esd_check_mode2() member 367 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2() 375 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_scu_ipc.c | 221 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() local 239 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() 245 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() 250 ipc_data_writel(scu, wbuf[0], 0); /* Write wbuff */ in pwr_reg_rdwr()
|
D | intel_pmc_ipc.c | 258 u32 wbuf[4] = { 0 }; in intel_pmc_ipc_raw_cmd() local 270 memcpy(wbuf, in, inlen); in intel_pmc_ipc_raw_cmd() 275 ipc_data_writel(wbuf[i], 4 * i); in intel_pmc_ipc_raw_cmd()
|
/linux-4.4.14/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 117 memcpy_toio(dev->regs + I2C_TASKMEM_BASE + i2c->wbuf, in ddb_i2c_master_xfer() 130 ddbcpyto(I2C_TASKMEM_BASE + i2c->wbuf, msg[0].buf, msg[0].len); in ddb_i2c_master_xfer() 180 i2c->wbuf = i * (I2C_TASKMEM_SIZE / 4); in ddb_i2c_init() 181 i2c->rbuf = i2c->wbuf + (I2C_TASKMEM_SIZE / 8); in ddb_i2c_init() 184 ddbwritel((i2c->rbuf << 16) | i2c->wbuf, in ddb_i2c_init() 1339 static int flashio(struct ddb *dev, u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen) in flashio() argument 1347 data = swab32(*(u32 *)wbuf); in flashio() 1348 wbuf += 4; in flashio() 1364 data |= *wbuf; in flashio() 1366 wbuf++; in flashio() [all …]
|
D | ddbridge.h | 130 u32 wbuf; member
|
/linux-4.4.14/drivers/media/pci/ttpci/ |
D | av7110_ca.c | 234 struct dvb_ringbuffer *wbuf = &av7110->ci_wbuffer; in dvb_ca_poll() local 240 poll_wait(file, &wbuf->queue, wait); in dvb_ca_poll() 245 if (dvb_ringbuffer_free(wbuf) > 1024) in dvb_ca_poll()
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 305 u8 wbuf[2]; in i2c_hack_cx25840() local 349 wbuf[0] = subaddr >> 8; in i2c_hack_cx25840() 350 wbuf[1] = subaddr; in i2c_hack_cx25840() 351 ret = pvr2_i2c_basic_op(hdw,i2c_addr,wbuf,2,rdata,rlen); in i2c_hack_cx25840()
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-m41t80.c | 132 u8 wbuf[1 + M41T80_DATETIME_REG_SIZE]; in m41t80_set_datetime() local 133 u8 *buf = &wbuf[1]; in m41t80_set_datetime() 154 .buf = wbuf, in m41t80_set_datetime() 164 wbuf[0] = 0; /* offset into rtc's regs */ in m41t80_set_datetime()
|
/linux-4.4.14/fs/jbd2/ |
D | commit.c | 374 struct buffer_head **wbuf = journal->j_wbuf; in jbd2_journal_commit_transaction() local 639 wbuf[bufs++] = descriptor; in jbd2_journal_commit_transaction() 677 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction() 682 jbd2_file_log_bh(&io_bufs, wbuf[bufs]); in jbd2_journal_commit_transaction() 696 jbd2_block_tag_csum_set(journal, tag, wbuf[bufs], in jbd2_journal_commit_transaction() 727 struct buffer_head *bh = wbuf[i]; in jbd2_journal_commit_transaction()
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-jz4780.c | 164 unsigned char *wbuf; member 511 data = *i2c->wbuf; in jz4780_i2c_irq() 515 i2c->wbuf++; in jz4780_i2c_irq() 635 i2c->wbuf = buf; in jz4780_i2c_xfer_write()
|
/linux-4.4.14/drivers/net/ethernet/smsc/ |
D | smc91x.c | 1706 u16 wbuf; in smc_ethtool_geteeprom() local 1710 ret = smc_read_eeprom_word(dev, offset >> 1, &wbuf); in smc_ethtool_geteeprom() 1713 DBG(2, dev, "Read 0x%x from 0x%x\n", wbuf, offset >> 1); in smc_ethtool_geteeprom() 1714 data[i] = (wbuf >> 8) & 0xff; in smc_ethtool_geteeprom() 1715 data[i+1] = wbuf & 0xff; in smc_ethtool_geteeprom() 1731 u16 wbuf; in smc_ethtool_seteeprom() local 1735 wbuf = (data[i] << 8) | data[i + 1]; in smc_ethtool_seteeprom() 1736 DBG(2, dev, "Writing 0x%x to 0x%x\n", wbuf, offset >> 1); in smc_ethtool_seteeprom() 1737 ret = smc_write_eeprom_word(dev, offset >> 1, wbuf); in smc_ethtool_seteeprom()
|
/linux-4.4.14/drivers/input/touchscreen/ |
D | goodix.c | 101 u16 wbuf = cpu_to_be16(reg); in goodix_i2c_read() local 107 msgs[0].buf = (u8 *)&wbuf; in goodix_i2c_read()
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | tc90522.c | 651 u8 wbuf[256]; in tc90522_master_xfer() local 666 p = wbuf; in tc90522_master_xfer() 667 bufend = wbuf + sizeof(wbuf); in tc90522_master_xfer()
|
D | af9033.c | 1034 u8 wbuf[2] = {(pid >> 0) & 0xff, (pid >> 8) & 0xff}; in af9033_pid_filter() local 1042 ret = af9033_wr_regs(dev, 0x80f996, wbuf, 2); in af9033_pid_filter()
|
/linux-4.4.14/drivers/usb/atm/ |
D | cxacru.c | 591 u8 *wbuf = instance->snd_buf; in cxacru_cm() local 616 memset(wbuf, 0, wbuflen); in cxacru_cm() 618 wbuf[0] = cm; in cxacru_cm() 620 wbuf[offb] = cm; in cxacru_cm() 621 memcpy(wbuf + offb + 4, wdata + offd, min_t(int, stride, wsize - offd)); in cxacru_cm()
|
/linux-4.4.14/include/drm/ttm/ |
D | ttm_bo_api.h | 695 const char __user *wbuf, char __user *rbuf,
|
/linux-4.4.14/drivers/s390/char/ |
D | raw3270.c | 602 static const unsigned char wbuf[] = in raw3270_writesf_readpart() local 608 memcpy(&rp->init_data, wbuf, sizeof(wbuf)); in raw3270_writesf_readpart() 611 rp->init_readpart.ccw.count = sizeof(wbuf); in raw3270_writesf_readpart()
|
/linux-4.4.14/net/9p/ |
D | trans_fd.c | 139 char *wbuf; member 472 m->wbuf = req->tc->sdata; in p9_write_work() 481 err = p9_fd_write(m->client, m->wbuf + m->wpos, m->wsize - m->wpos); in p9_write_work()
|
/linux-4.4.14/drivers/video/fbdev/omap2/displays-new/ |
D | panel-sony-acx565akm.c | 117 const u8 *wbuf, int wlen, u8 *rbuf, int rlen) in acx565akm_transfer() argument 148 x->tx_buf = wbuf; in acx565akm_transfer()
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
D | saa7134-dvb.c | 1021 u8 wbuf[2] = { 0x1f, 00 }; in md8800_set_voltage2() local 1023 struct i2c_msg msg[] = { { .addr = 0x08, .flags = 0, .buf = wbuf, .len = 1 }, in md8800_set_voltage2() 1030 wbuf[1] = rbuf | 0x10; in md8800_set_voltage2() 1032 wbuf[1] = rbuf & 0xef; in md8800_set_voltage2()
|
/linux-4.4.14/include/sound/ |
D | wavefront.h | 581 unsigned char wbuf[WF_MAX_WRITE]; /* bytes written to card */ member
|
/linux-4.4.14/drivers/media/i2c/ |
D | s5k4ecgx.c | 207 u8 wbuf[2] = { addr >> 8, addr & 0xff }; in s5k4ecgx_i2c_read() local 215 msg[0].buf = wbuf; in s5k4ecgx_i2c_read()
|
D | s5k6aa.c | 335 u8 wbuf[2] = {addr >> 8, addr & 0xFF}; in s5k6aa_i2c_read() local 343 msg[0].buf = wbuf; in s5k6aa_i2c_read()
|
/linux-4.4.14/drivers/media/i2c/s5c73m3/ |
D | s5c73m3-core.c | 150 u8 rbuf[2], wbuf[2] = { addr >> 8, addr & 0xff }; in s5c73m3_i2c_read() local 155 .len = sizeof(wbuf), in s5c73m3_i2c_read() 156 .buf = wbuf in s5c73m3_i2c_read()
|
/linux-4.4.14/drivers/mtd/onenand/ |
D | onenand_base.c | 1768 u_char *wbuf = (u_char *) buf; in onenand_panic_write() local 1777 wbuf = this->page_buf; in onenand_panic_write() 1780 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_panic_write() 1901 u_char *wbuf = (u_char *) buf; in onenand_write_ops_nolock() local 1915 wbuf = this->page_buf; in onenand_write_ops_nolock() 1918 this->write_bufferram(mtd, ONENAND_DATARAM, wbuf, 0, mtd->writesize); in onenand_write_ops_nolock()
|
/linux-4.4.14/fs/logfs/ |
D | journal.c | 554 void *wbuf) in write_wbuf() argument 570 memcpy(wbuf, page_address(page) + page_ofs, super->s_writesize); in write_wbuf()
|
/linux-4.4.14/tools/perf/bench/ |
D | numa.c | 359 u64 *wbuf = (void *)buf; in alloc_data() local 364 wbuf[i] = i + off; in alloc_data()
|
/linux-4.4.14/drivers/mtd/nand/ |
D | nand_base.c | 2587 uint8_t *wbuf = buf; in nand_do_write_ops() local 2608 wbuf = chip->buffers->databuf; in nand_do_write_ops() 2619 ret = chip->write_page(mtd, chip, column, bytes, wbuf, in nand_do_write_ops()
|