/linux/fs/ubifs/ |
A D | io.c | 548 wbuf->lnum, wbuf->offs, wbuf->used, dbg_jhead(wbuf->jhead)); in ubifs_wbuf_sync_nolock() 591 wbuf->avail = wbuf->size; in ubifs_wbuf_sync_nolock() 632 wbuf->avail = wbuf->size; in ubifs_wbuf_seek_nolock() 726 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs + wbuf->used); in ubifs_wbuf_write_nolock() 770 wbuf->offs += wbuf->size; in ubifs_wbuf_write_nolock() 775 wbuf->avail = wbuf->size; in ubifs_wbuf_write_nolock() 796 dbg_jhead(wbuf->jhead), wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() 797 memcpy(wbuf->buf + wbuf->used, buf, wbuf->avail); in ubifs_wbuf_write_nolock() 803 wbuf->offs += wbuf->size; in ubifs_wbuf_write_nolock() 816 wbuf->size, wbuf->lnum, wbuf->offs); in ubifs_wbuf_write_nolock() [all …]
|
A D | gc.c | 68 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local 72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head() 73 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head() 306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() 335 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in move_nodes() local 358 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 380 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes() 495 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect_leb() local 674 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in ubifs_garbage_collect() local 682 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_garbage_collect() [all …]
|
A D | journal.c | 101 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() 165 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in reserve_space() 167 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 176 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space() 272 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in write_head() local 640 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_update() local 1147 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_xrename() local 1348 struct ubifs_wbuf *wbuf = &c->jheads[BASEHD].wbuf; in ubifs_jnl_rename() local [all …]
|
A D | misc.h | 127 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()
|
A D | log.c | 79 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()
|
A D | recovery.c | 1160 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/drivers/slimbus/ |
A D | stream.c | 127 u8 wbuf[2]; in slim_connect_port_channel() local 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 152 wbuf[0] = port->id; in slim_disconnect_port() 163 u8 wbuf[1]; in slim_deactivate_remove_channel() local 169 wbuf[0] = port->ch.id; in slim_deactivate_remove_channel() 267 u8 wbuf[4]; in slim_define_channel_content() local 302 u8 wbuf[4]; in slim_define_channel() local 326 u8 wbuf[1]; in slim_activate_channel() local [all …]
|
A D | qcom-ngd-ctrl.c | 834 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg() 836 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg() 838 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg() 847 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg() 850 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg() 948 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream() 1008 wbuf[0] = txn.tid; in qcom_slim_ngd_enable_stream() 1025 u8 wbuf[10] = {0}; in qcom_slim_ngd_get_laddr() local 1038 txn.msg->wbuf = wbuf; in qcom_slim_ngd_get_laddr() 1176 u8 wbuf[8]; in qcom_slim_ngd_master_worker() local [all …]
|
A D | messaging.c | 194 if (msg->wbuf != NULL) in slim_val_inf_sanity() 200 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity() 275 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument 280 msg->wbuf = wbuf; in slim_fill_msg()
|
/linux/drivers/media/common/b2c2/ |
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, rbuf, 4);
|
/linux/drivers/media/usb/dvb-usb-v2/ |
A D | dvb_usb_urb.c | 12 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()
|
A D | au6610.c | 15 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()
|
A D | af9035.c | 117 u8 wbuf[MAX_XFER_SIZE]; in af9035_wr_regs() local 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() 142 struct usb_req req = { CMD_MEM_RD, mbox, sizeof(wbuf), wbuf, len, val }; in af9035_rd_regs() 486 u8 wbuf[1] = { 1 }; in af9035_identify_state() local 488 struct usb_req req = { CMD_FW_QUERYINFO, 0, sizeof(wbuf), wbuf, in af9035_identify_state() 595 u8 wbuf[1]; in af9035_download_firmware_old() local 726 u8 wbuf[1]; in af9035_download_firmware() local [all …]
|
/linux/fs/jffs2/ |
A D | wbuf.c | 453 memmove(c->wbuf, c->wbuf + (start - c->wbuf_ofs), end - start); in jffs2_wbuf_recover() 710 if (!c->wbuf) in jffs2_flush_wbuf_gc() 768 if (!c->wbuf) in jffs2_flush_wbuf_pad() 1208 if (!c->wbuf) in jffs2_nand_flash_setup() 1233 kfree(c->wbuf); in jffs2_nand_flash_cleanup() 1269 if (!c->wbuf) in jffs2_dataflash_setup() 1290 kfree(c->wbuf); in jffs2_dataflash_cleanup() 1306 if (!c->wbuf) in jffs2_nor_wbuf_flash_setup() 1323 kfree(c->wbuf); in jffs2_nor_wbuf_flash_cleanup() 1339 if (!c->wbuf) in jffs2_ubivol_setup() [all …]
|
/linux/drivers/media/rc/ |
A D | ir-rx51.c | 28 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/sound/isa/wavefront/ |
A D | wavefront_synth.c | 384 i, wbuf[i]); in snd_wavefront_cmd() 604 unsigned char wbuf[2]; in wavefront_delete_sample() local 607 wbuf[0] = sample_num & 0x7f; in wavefront_delete_sample() 608 wbuf[1] = sample_num >> 7; in wavefront_delete_sample() 622 unsigned char rbuf[32], wbuf[32]; in wavefront_get_sample_status() local 636 wbuf[0] = i & 0x7f; in wavefront_get_sample_status() 637 wbuf[1] = i >> 7; in wavefront_get_sample_status() 1552 i = wc->wbuf[0] | (wc->wbuf[1] << 7); in wavefront_synth_control() 1564 dev->debug = wc->wbuf[0]; in wavefront_synth_control() 2172 unsigned char rbuf[4], wbuf[4]; in snd_wavefront_detect() local [all …]
|
/linux/drivers/media/i2c/m5mols/ |
A D | m5mols_core.c | 147 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() 262 msg->buf = wbuf; in m5mols_write() 263 wbuf[0] = size + 4; in m5mols_write() 265 wbuf[2] = category; in m5mols_write() [all …]
|
/linux/drivers/soundwire/ |
A D | stream.c | 68 u16 wbuf; in _sdw_program_slave_port_params() local 107 ret = sdw_write(slave, addr3, wbuf); 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 662 u8 *wbuf; in sdw_bank_switch() local 672 wbuf = kzalloc(sizeof(*wbuf), GFP_KERNEL); in sdw_bank_switch() 673 if (!wbuf) { in sdw_bank_switch() 681 wbuf[0] = col_index | (row_index << 3); in sdw_bank_switch() 689 SDW_MSG_FLAG_WRITE, wbuf); in sdw_bank_switch() 710 kfree(wbuf); in sdw_bank_switch() [all …]
|
/linux/drivers/media/usb/dvb-usb/ |
A D | dvb-usb-urb.c | 12 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()
|
A D | dtv5100.c | 26 u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen) in dtv5100_i2c_msg() argument 50 value = wbuf[1]; in dtv5100_i2c_msg() 56 index = (addr << 8) + wbuf[0]; in dtv5100_i2c_msg()
|
/linux/drivers/media/pci/ddbridge/ |
A D | ddbridge-i2c.c | 105 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/drivers/video/backlight/ |
A D | ams369fg06.c | 190 const unsigned short *wbuf) in ams369fg06_panel_send_sequence() argument 194 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ams369fg06_panel_send_sequence() 195 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ams369fg06_panel_send_sequence() 196 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence() 200 msleep(wbuf[i+1]); in ams369fg06_panel_send_sequence()
|
/linux/drivers/scsi/ |
A D | advansys.c | 8695 ushort *wbuf; in AscGetEEPConfig() local 8853 *wbuf = sum; in AscSetEEPConfigOnce() 9648 wbuf++; in AdvSet3550EEPConfig() 9715 wbuf++; in AdvSet38C0800EEPConfig() 9782 wbuf++; in AdvSet38C1600EEPConfig() 9835 wbuf++; in AdvGet3550EEPConfig() 9843 *wbuf = le16_to_cpu(*wbuf); in AdvGet3550EEPConfig() 9878 wbuf++; in AdvGet38C0800EEPConfig() 9886 *wbuf = le16_to_cpu(*wbuf); in AdvGet38C0800EEPConfig() 9921 wbuf++; in AdvGet38C1600EEPConfig() [all …]
|
/linux/drivers/media/tuners/ |
A D | qm1d1c0042.c | 66 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()
|
/linux/arch/sparc/kernel/ |
A D | ptrace_64.c | 193 struct reg_window *wbuf) in regwindow64_get() argument 204 wbuf->locals[i] = win32.locals[i]; in regwindow64_get() 206 wbuf->ins[i] = win32.ins[i]; in regwindow64_get() 209 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get() 218 struct reg_window *wbuf) in regwindow64_set() argument 227 win32.locals[i] = wbuf->locals[i]; in regwindow64_set() 229 win32.ins[i] = wbuf->ins[i]; in regwindow64_set() 235 if (set_to_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_set()
|