Home
last modified time | relevance | path

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

123

/linux-3.4.99/fs/ubifs/
Dio.c441 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local
443 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock()
444 wbuf->need_sync = 1; in wbuf_timer_callback_nolock()
445 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock()
446 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock()
454 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument
456 ubifs_assert(!hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
458 if (wbuf->no_timer) in new_wbuf_timer_nolock()
461 dbg_jhead(wbuf->jhead), in new_wbuf_timer_nolock()
462 div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC), 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()
103 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head()
112 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0, UBI_LONGTERM); 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 …]
Djournal.c118 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 …]
Dmisc.h137 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()
Dlog.c95 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf()
310 struct ubifs_wbuf *wbuf; in remove_buds() local
314 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds()
316 if (wbuf->lnum == bud->lnum) { in remove_buds()
321 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds()
324 dbg_jhead(bud->jhead), wbuf->offs - bud->start, in remove_buds()
326 bud->start = wbuf->offs; in remove_buds()
390 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit()
391 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit()
Drecovery.c1179 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_rcvry_gc_commit() local
1183 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs); in ubifs_rcvry_gc_commit()
1186 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) in ubifs_rcvry_gc_commit()
1189 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit()
1199 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit()
1211 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_rcvry_gc_commit()
1214 int err2 = ubifs_wbuf_sync_nolock(wbuf); in ubifs_rcvry_gc_commit()
1219 mutex_unlock(&wbuf->io_mutex); in ubifs_rcvry_gc_commit()
/linux-3.4.99/drivers/media/dvb/dvb-usb/
Dfriio.c34 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 …]
Dfriio-fe.c31 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 …]
Dau6610.c32 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_usb_msg() argument
48 index = wbuf[0] << 8; in au6610_usb_msg()
51 index = wbuf[0] << 8; in au6610_usb_msg()
52 index += wbuf[1]; in au6610_usb_msg()
78 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in au6610_i2c_msg() argument
89 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
Ddvb-usb-urb.c11 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()
Dlmedm04.c163 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_usb_talk() argument
184 memcpy(buff, wbuf, (wlen < 64) ? wlen : 64); in lme2510_usb_talk()
434 u8 *wbuf, int wlen, u8 *rbuf, int rlen) in lme2510_msg() argument
441 ret = lme2510_usb_talk(d, wbuf, wlen, rbuf, rlen); in lme2510_msg()
445 if (wbuf[2] == 0x1c) { in lme2510_msg()
446 if (wbuf[3] == 0x0e) { in lme2510_msg()
458 if (wbuf[2] == 0xd0) { in lme2510_msg()
459 if (wbuf[3] == 0x24) { in lme2510_msg()
470 if (wbuf[2] == 0xd0) { in lme2510_msg()
471 if (wbuf[3] == 0x1b) { in lme2510_msg()
[all …]
Dgl861.c22 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in gl861_i2c_msg() argument
39 index = wbuf[0]; in gl861_i2c_msg()
42 index = wbuf[0]; in gl861_i2c_msg()
43 value = value + wbuf[1]; in gl861_i2c_msg()
Ddtv5100.c35 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()
/linux-3.4.99/drivers/media/dvb/b2c2/
Dflexcop-eeprom.c16 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-3.4.99/fs/jffs2/
Dwbuf.c259 c->wbuf, c->wbuf_pagesize, 0); in jffs2_verify_write()
381 memcpy(buf + (c->wbuf_ofs - start), c->wbuf, end - c->wbuf_ofs); in jffs2_wbuf_recover()
413 unsigned char *rewrite_buf = buf?:c->wbuf; in jffs2_wbuf_recover()
445 memmove(c->wbuf, rewrite_buf + towrite, c->wbuf_len); in jffs2_wbuf_recover()
450 memcpy(c->wbuf, buf, end-start); in jffs2_wbuf_recover()
452 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start); in jffs2_wbuf_recover()
517 (void *)(buf?:c->wbuf) + (ref_offset(raw) - start)); in jffs2_wbuf_recover()
613 memset(c->wbuf + c->wbuf_len, 0, c->wbuf_pagesize - c->wbuf_len); in __jffs2_flush_wbuf()
616 struct jffs2_unknown_node *padnode = (void *)(c->wbuf + c->wbuf_len); in __jffs2_flush_wbuf()
638 &retlen, c->wbuf); in __jffs2_flush_wbuf()
[all …]
/linux-3.4.99/sound/isa/wavefront/
Dwavefront_synth.c336 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 …]
/linux-3.4.99/drivers/staging/media/lirc/
Dlirc_parallel.c379 int *wbuf; in lirc_write() local
390 wbuf = memdup_user(buf, n); in lirc_write()
391 if (IS_ERR(wbuf)) in lirc_write()
392 return PTR_ERR(wbuf); in lirc_write()
408 helper = ((__u64) wbuf[i])*timer; in lirc_write()
410 wbuf[i] = (int) helper; in lirc_write()
430 } while (counttimer < wbuf[i]); in lirc_write()
447 } while (counttimer < wbuf[i]); in lirc_write()
456 kfree(wbuf); in lirc_write()
/linux-3.4.99/fs/jbd/
Dcommit.c158 static void journal_do_submit_data(struct buffer_head **wbuf, int bufs, in journal_do_submit_data() argument
164 wbuf[i]->b_end_io = end_buffer_write_sync; in journal_do_submit_data()
166 submit_bh(write_op, wbuf[i]); in journal_do_submit_data()
181 struct buffer_head **wbuf = journal->j_wbuf; in journal_submit_data_buffers() local
216 journal_do_submit_data(wbuf, bufs, write_op); in journal_submit_data_buffers()
241 wbuf[bufs++] = bh; in journal_submit_data_buffers()
249 journal_do_submit_data(wbuf, bufs, write_op); in journal_submit_data_buffers()
276 journal_do_submit_data(wbuf, bufs, write_op); in journal_submit_data_buffers()
291 struct buffer_head **wbuf = journal->j_wbuf; in journal_commit_transaction() local
564 wbuf[bufs++] = bh; in journal_commit_transaction()
[all …]
/linux-3.4.99/drivers/media/video/m5mols/
Dm5mols_core.c149 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-3.4.99/drivers/video/backlight/
Dams369fg06.c204 const unsigned short *wbuf) in ams369fg06_panel_send_sequence() argument
208 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ams369fg06_panel_send_sequence()
209 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ams369fg06_panel_send_sequence()
210 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence()
214 mdelay(wbuf[i+1]); in ams369fg06_panel_send_sequence()
Dld9040.c468 const unsigned short *wbuf) in ld9040_panel_send_sequence() argument
472 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ld9040_panel_send_sequence()
473 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ld9040_panel_send_sequence()
474 ret = ld9040_spi_write(lcd, wbuf[i], wbuf[i+1]); in ld9040_panel_send_sequence()
478 udelay(wbuf[i+1]*1000); in ld9040_panel_send_sequence()
/linux-3.4.99/drivers/rtc/
Drtc-m41t80.c131 u8 wbuf[1 + M41T80_DATETIME_REG_SIZE]; in m41t80_set_datetime() local
132 u8 *buf = &wbuf[1]; in m41t80_set_datetime()
153 .buf = wbuf, in m41t80_set_datetime()
163 wbuf[0] = 0; /* offset into rtc's regs */ in m41t80_set_datetime()
241 u8 wbuf[1 + M41T80_ALARM_REG_SIZE]; in m41t80_rtc_set_alarm() local
242 u8 *buf = &wbuf[1]; in m41t80_rtc_set_alarm()
264 .buf = wbuf, in m41t80_rtc_set_alarm()
278 wbuf[0] = M41T80_REG_ALARM_MON; /* offset into rtc's regs */ in m41t80_rtc_set_alarm()
/linux-3.4.99/arch/sparc/kernel/
Dptrace_64.c150 struct reg_window *wbuf) in regwindow64_get() argument
161 wbuf->locals[i] = win32.locals[i]; in regwindow64_get()
163 wbuf->ins[i] = win32.ins[i]; in regwindow64_get()
166 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get()
175 struct reg_window *wbuf) in regwindow64_set() argument
184 win32.locals[i] = wbuf->locals[i]; in regwindow64_set()
186 win32.ins[i] = wbuf->ins[i]; in regwindow64_set()
192 if (set_to_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_set()
/linux-3.4.99/drivers/platform/x86/
Dintel_scu_ipc.c166 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() local
184 ipc_data_writel(wbuf[nc], offset); in pwr_reg_rdwr()
190 ipc_data_writel(wbuf[nc], offset); in pwr_reg_rdwr()
195 ipc_data_writel(wbuf[0], 0); /* Write wbuff */ in pwr_reg_rdwr()
/linux-3.4.99/drivers/scsi/
Dadvansys.c9829 ushort *wbuf; in AscGetEEPConfig() local
9835 wbuf = (ushort *)cfg_buf; in AscGetEEPConfig()
9838 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { in AscGetEEPConfig()
9839 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig()
9840 sum += *wbuf; in AscGetEEPConfig()
9849 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { in AscGetEEPConfig()
9856 *wbuf = le16_to_cpu(wval); in AscGetEEPConfig()
9859 *wbuf = wval; in AscGetEEPConfig()
9867 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig()
9942 ushort *wbuf; in AscSetEEPConfigOnce() local
[all …]

123