/linux/drivers/slimbus/ |
H A D | stream.c | 129 u8 wbuf[2]; in slim_connect_port_channel() local 130 struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; in slim_connect_port_channel() 137 wbuf[0] = port->id; in slim_connect_port_channel() 138 wbuf[1] = port->ch.id; in slim_connect_port_channel() 149 u8 wbuf[1]; in slim_disconnect_port() local 150 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_disconnect_port() 154 wbuf[0] = port->id; in slim_disconnect_port() 165 u8 wbuf[1]; in slim_deactivate_remove_channel() local 166 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_deactivate_remove_channel() 171 wbuf[0] = port->ch.id; in slim_deactivate_remove_channel() [all …]
|
H A D | qcom-ngd-ctrl.c | 793 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_xfer_msg() local 841 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg() 843 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg() 845 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg() 854 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg() 857 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg() 884 if (txn->msg && txn->msg->wbuf) in qcom_slim_ngd_xfer_msg() 885 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg() 1001 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local 1012 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream() [all …]
|
H A D | messaging.c | 196 if (msg->wbuf != NULL) in slim_val_inf_sanity() 202 if (msg->rbuf != NULL && msg->wbuf != NULL) in slim_val_inf_sanity() 277 size_t count, u8 *rbuf, u8 *wbuf) in slim_fill_msg() argument 282 msg->wbuf = wbuf; in slim_fill_msg()
|
H A D | sched.c | 99 msg.wbuf = &restart; in slim_ctrl_clk_pause() 107 msg.wbuf = NULL; in slim_ctrl_clk_pause()
|
/linux/fs/ubifs/ |
H 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() 75 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head() 92 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head() 297 * @wbuf: write-buffer to move node to 299 * This function moves node @snod to @wbuf, changes TNC correspondingly, and 304 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument 306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() 309 err = ubifs_wbuf_write_nolock(wbuf, snod->node, snod->len); in move_node() [all …]
|
H 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() 119 if (wbuf->lnum != -1 && avail >= len) in reserve_space() 140 mutex_unlock(&wbuf->io_mutex); in reserve_space() 151 * because we dropped @wbuf->io_mutex, so try once 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() 169 if (wbuf->lnum != -1 && avail >= len) { in reserve_space() 176 lnum, wbuf->lnum, wbuf->offs + wbuf->used); in reserve_space() [all …]
|
H A D | misc.h | 122 * @wbuf: write-buffer to synchronize 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()
|
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; 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() [all …]
|
H A D | recovery.c | 409 * the last wbuf written. After that should be empty space. in is_last_write() 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/fs/jffs2/ |
H A D | wbuf.c | 60 /* Look to see if the inode in question is pending in the wbuf */ in jffs2_wbuf_pending_for_ino() 260 c->wbuf, c->wbuf_pagesize, 0); in jffs2_verify_write() 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. */ in jffs2_wbuf_recover() 332 dbg_noderef("wbuf recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover() 342 pr_crit("Malloc failure in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover() 357 pr_crit("Old data are already lost in wbuf recovery. Data loss ensues.\n"); in jffs2_wbuf_recover() 375 /* It wasn't. Go on and try to recover nodes complete in the wbuf */ in jffs2_wbuf_recover() 377 dbg_noderef("wbuf now recover %08x-%08x (%d bytes in %d nodes)\n", in jffs2_wbuf_recover() [all …]
|
H A 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
|
H A D | jffs2_fs_sb.h | 102 …sable_pending_wbuf_list; /* Blocks which need erasing but only after the current wbuf is flushed */ 125 uint32_t wbuf_pagesize; /* 0 for NOR and other flashes with no wbuf */ 131 unsigned char *wbuf; /* Write-behind buffer for NAND flash */ member
|
/linux/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, rbuf, 4);
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H 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()
|
/linux/include/linux/platform_data/x86/ |
H A D | intel_pmc_ipc.h | 23 u32 wbuf[4]; member 66 params[3].integer.value = ipc_cmd->wbuf[0]; in intel_pmc_ipc() 67 params[4].integer.value = ipc_cmd->wbuf[1]; in intel_pmc_ipc() 68 params[5].integer.value = ipc_cmd->wbuf[2]; in intel_pmc_ipc() 69 params[6].integer.value = ipc_cmd->wbuf[3]; in intel_pmc_ipc()
|
/linux/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, 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()
|
/linux/drivers/input/touchscreen/ |
H A D | edt-ft5x06.c | 191 u8 wbuf[4], rbuf[3]; in edt_M06_i2c_read() local 195 wbuf[0] = addr; in edt_M06_i2c_read() 199 wbuf[0] = 0xf5; in edt_M06_i2c_read() 200 wbuf[1] = 0xe; in edt_M06_i2c_read() 201 wbuf[2] = *((u8 *)val_buf); in edt_M06_i2c_read() 209 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_read() 210 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_read() 211 wbuf[1] |= tsdata->factory_mode ? 0x80 : 0x40; in edt_M06_i2c_read() 217 xfer[0].buf = wbuf; in edt_M06_i2c_read() 247 wbuf[2] = rbuf[0]; in edt_M06_i2c_read() [all …]
|
/linux/drivers/media/pci/ddbridge/ |
H A D | ddbridge-i2c.c | 96 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); in ddb_i2c_master_xfer() 108 ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); in ddb_i2c_master_xfer() 161 i2c->wbuf = DDB_LINK_TAG(link) | in ddb_i2c_add() 163 i2c->rbuf = i2c->wbuf; /* + i2c->bsize / 2 */ in ddb_i2c_add() 167 ddbwritel(dev, ((i2c->rbuf & 0xffff) << 16) | (i2c->wbuf & 0xffff), in ddb_i2c_add()
|
/linux/sound/isa/wavefront/ |
H A D | wavefront_synth.c | 334 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument 376 if (wavefront_write (dev, wbuf[i])) { in snd_wavefront_cmd() 384 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 x = snd_wavefront_cmd(dev, WFC_DELETE_SAMPLE, NULL, wbuf); 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/drivers/video/backlight/ |
H A D | ams369fg06.c | 189 const unsigned short *wbuf) in ams369fg06_panel_send_sequence() argument 193 while ((wbuf[i] & DEFMASK) != ENDDEF) { in ams369fg06_panel_send_sequence() 194 if ((wbuf[i] & DEFMASK) != SLEEPMSEC) { in ams369fg06_panel_send_sequence() 195 ret = ams369fg06_spi_write(lcd, wbuf[i], wbuf[i+1]); in ams369fg06_panel_send_sequence() 199 msleep(wbuf[i+1]); in ams369fg06_panel_send_sequence()
|
/linux/arch/sparc/kernel/ |
H A D | ptrace_64.c | 192 struct reg_window *wbuf) in regwindow64_get() argument 203 wbuf->locals[i] = win32.locals[i]; in regwindow64_get() 205 wbuf->ins[i] = win32.ins[i]; in regwindow64_get() 208 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get() 217 struct reg_window *wbuf) in regwindow64_set() argument 226 win32.locals[i] = wbuf->locals[i]; in regwindow64_set() 228 win32.ins[i] = wbuf->ins[i]; in regwindow64_set() 234 if (set_to_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_set()
|
/linux/drivers/media/tuners/ |
H 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/drivers/scsi/ |
H A D | advansys.c | 8705 ushort *wbuf; in AscGetEEPConfig() local 8711 wbuf = (ushort *)cfg_buf; in AscGetEEPConfig() 8714 for (s_addr = 0; s_addr < 2; s_addr++, wbuf++) { in AscGetEEPConfig() 8715 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig() 8716 sum += *wbuf; in AscGetEEPConfig() 8725 for (s_addr = cfg_beg; s_addr <= (cfg_end - 1); s_addr++, wbuf++) { in AscGetEEPConfig() 8732 *wbuf = le16_to_cpu(wval); in AscGetEEPConfig() 8735 *wbuf = wval; in AscGetEEPConfig() 8743 *wbuf = AscReadEEPWord(iop_base, (uchar)s_addr); in AscGetEEPConfig() 8817 ushort *wbuf; in AscSetEEPConfigOnce() local [all …]
|
/linux/drivers/platform/x86/ |
H A D | intel_scu_ipc.c | 287 u32 *wbuf = (u32 *)&cbuf; in pwr_reg_rdwr() local 304 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() 310 ipc_data_writel(scu, wbuf[nc], offset); in pwr_reg_rdwr() 315 ipc_data_writel(scu, wbuf[0], 0); /* Write wbuff */ in pwr_reg_rdwr() 325 wbuf[nc] = ipc_data_readl(scu, offset); in pwr_reg_rdwr() 326 memcpy(data, wbuf, count); in pwr_reg_rdwr()
|
/linux/drivers/video/fbdev/omap/ |
H A D | lcd_mipid.c | 56 static void mipid_transfer(struct mipid_device *md, int cmd, const u8 *wbuf, in mipid_transfer() argument 79 x->tx_buf = wbuf; in mipid_transfer() 342 u16 wbuf[3]; in ls041y3_esd_check_mode2() member 355 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2() 363 mipid_write(md, rd->cmd, (u8 *)rd->wbuf, rd->wlen); in ls041y3_esd_check_mode2()
|