| /OK3568_Linux_fs/u-boot/fs/ubifs/ |
| H A D | io.c | 39 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned 41 * write-buffer size (@wbuf->size). 443 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local 445 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock() 446 wbuf->need_sync = 1; in wbuf_timer_callback_nolock() 447 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock() 448 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock() 454 * @wbuf: write-buffer descriptor 456 static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument 458 ubifs_assert(!hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() [all …]
|
| H A D | gc.c | 75 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() local 79 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head() 80 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head() 82 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head() 94 err = ubifs_wbuf_sync_nolock(wbuf); in switch_gc_head() 103 err = ubifs_wbuf_seek_nolock(wbuf, gc_lnum, 0); in switch_gc_head() 306 * @wbuf: write-buffer to move node to 308 * This function moves node @snod to @wbuf, changes TNC correspondingly, and 313 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument 315 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() [all …]
|
| H A D | log.c | 57 * ubifs_get_wbuf - get the wbuf associated with a LEB, if there is one. 61 * This functions returns the wbuf for @lnum or %NULL if there is not one. 83 return &c->jheads[jhead].wbuf; in ubifs_get_wbuf() 303 struct ubifs_wbuf *wbuf; in remove_buds() local 307 wbuf = &c->jheads[bud->jhead].wbuf; in remove_buds() 309 if (wbuf->lnum == bud->lnum) { in remove_buds() 314 c->cmt_bud_bytes += wbuf->offs - bud->start; in remove_buds() 317 wbuf->offs - bud->start, c->cmt_bud_bytes); in remove_buds() 318 bud->start = wbuf->offs; in remove_buds() 381 int lnum = c->jheads[i].wbuf.lnum; in ubifs_log_start_commit() [all …]
|
| H A D | misc.h | 121 * @wbuf: write-buffer to synchronize 126 static inline int ubifs_wbuf_sync(struct ubifs_wbuf *wbuf) in ubifs_wbuf_sync() argument 130 mutex_lock_nested(&wbuf->io_mutex, wbuf->jhead); in ubifs_wbuf_sync() 131 err = ubifs_wbuf_sync_nolock(wbuf); in ubifs_wbuf_sync() 132 mutex_unlock(&wbuf->io_mutex); in ubifs_wbuf_sync()
|
| /OK3568_Linux_fs/kernel/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). 488 struct ubifs_wbuf *wbuf = container_of(timer, struct ubifs_wbuf, timer); in wbuf_timer_callback_nolock() local 490 dbg_io("jhead %s", dbg_jhead(wbuf->jhead)); in wbuf_timer_callback_nolock() 491 wbuf->need_sync = 1; in wbuf_timer_callback_nolock() 492 wbuf->c->need_wbuf_sync = 1; in wbuf_timer_callback_nolock() 493 ubifs_wake_up_bgt(wbuf->c); in wbuf_timer_callback_nolock() 500 * @wbuf: write-buffer descriptor 502 static void new_wbuf_timer_nolock(struct ubifs_info *c, struct ubifs_wbuf *wbuf) in new_wbuf_timer_nolock() argument 510 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock() [all …]
|
| 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() 296 * @wbuf: write-buffer to move node to 298 * This function moves node @snod to @wbuf, changes TNC correspondingly, and 303 struct ubifs_scan_node *snod, struct ubifs_wbuf *wbuf) in move_node() argument 305 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node() 308 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/slimbus/ |
| H A D | stream.c | 127 u8 wbuf[2]; in slim_connect_port_channel() local 128 struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; in slim_connect_port_channel() 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 148 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_disconnect_port() 152 wbuf[0] = port->id; in slim_disconnect_port() 163 u8 wbuf[1]; in slim_deactivate_remove_channel() local 164 struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; in slim_deactivate_remove_channel() 169 wbuf[0] = port->ch.id; in slim_deactivate_remove_channel() [all …]
|
| H A D | qcom-ngd-ctrl.c | 777 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_xfer_msg() local 825 wbuf[i++] = txn->la; in qcom_slim_ngd_xfer_msg() 827 wbuf[i++] = txn->msg->wbuf[0]; in qcom_slim_ngd_xfer_msg() 829 wbuf[i++] = txn->msg->wbuf[1]; in qcom_slim_ngd_xfer_msg() 838 wbuf[i++] = txn->tid; in qcom_slim_ngd_xfer_msg() 841 txn->msg->wbuf = wbuf; in qcom_slim_ngd_xfer_msg() 868 if (txn->msg && txn->msg->wbuf) in qcom_slim_ngd_xfer_msg() 869 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg() 922 u8 wbuf[SLIM_MSGQ_BUF_LEN]; in qcom_slim_ngd_enable_stream() local 933 txn.msg->wbuf = wbuf; in qcom_slim_ngd_enable_stream() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-bad/ |
| H A D | 0023-waylandsink-Use-create_immed-to-create-dmabuf.patch | 37 struct wl_buffer *wbuf; 47 - d->wbuf = new_buffer; 59 - d->wbuf = NULL; 102 - data.wbuf = (gpointer) 0x1; 104 - while (data.wbuf == (gpointer) 0x1) { 108 - data.wbuf = NULL; 111 + data.wbuf = 117 if (!data.wbuf) { 119 data.wbuf, width, height, (char *) &format, nplanes); 126 return data.wbuf;
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22/ |
| H A D | 0023-waylandsink-Use-create_immed-to-create-dmabuf.patch | 37 struct wl_buffer *wbuf; 47 - d->wbuf = new_buffer; 59 - d->wbuf = NULL; 102 - data.wbuf = (gpointer) 0x1; 104 - while (data.wbuf == (gpointer) 0x1) { 108 - data.wbuf = NULL; 111 + data.wbuf = 117 if (!data.wbuf) { 119 data.wbuf, width, height, (char *) &format, nplanes); 126 return data.wbuf;
|
| /OK3568_Linux_fs/kernel/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);
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20/ |
| H A D | 0022-waylandsink-Use-create_immed-to-create-dmabuf.patch | 37 struct wl_buffer *wbuf; 47 - d->wbuf = new_buffer; 59 - d->wbuf = NULL; 102 - data.wbuf = (gpointer) 0x1; 104 - while (data.wbuf == (gpointer) 0x1) { 108 - data.wbuf = NULL; 111 + data.wbuf = 117 if (!data.wbuf) { 119 data.wbuf, width, height, (char *) &format, nplanes); 126 return data.wbuf;
|
| /OK3568_Linux_fs/kernel/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()
|
| H 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()
|
| /OK3568_Linux_fs/u-boot/tools/rockchip/ |
| H A D | sha2.c | 226 ctx->wbuf[i & 15] += \ 227 g256_1(ctx->wbuf[(i + 14) & 15]) + ctx->wbuf[(i + 9) & 15] + \ 228 g256_0(ctx->wbuf[(i + 1) & 15]) 232 (j ? h2(i) : ctx->wbuf[i & 15]) + k256[i + j] + s256_1(v[(4 - i) & 7]) + \ 274 /* ctx->wbuf[] at this point is in such an order that low */ 328 memcpy(((unsigned char *)ctx->wbuf) + pos, sp, space); in sha256_hash() 333 bsw_32(ctx->wbuf, SHA256_BLOCK_SIZE >> 2); in sha256_hash() 337 memcpy(((unsigned char *)ctx->wbuf) + pos, sp, len); in sha256_hash() 354 bsw_32(ctx->wbuf, (i + 3) >> 2) in sha256_end() 361 ctx->wbuf[i >> 2] = (ctx->wbuf[i >> 2] & m1[i & 3]) | b1[i & 3]; in sha256_end() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/ |
| H A D | mali_kbase_debugfs_helper.c | 147 char *const wbuf = kstrdup(buf, GFP_KERNEL); in kbase_debugfs_helper_set_attr_from_string() local 150 if (!wbuf) in kbase_debugfs_helper_set_attr_from_string() 154 err = kbase_debugfs_string_validator(wbuf); in kbase_debugfs_helper_set_attr_from_string() 156 kfree(wbuf); in kbase_debugfs_helper_set_attr_from_string() 160 err = set_attr_from_string(wbuf, array, nelems, in kbase_debugfs_helper_set_attr_from_string() 163 kfree(wbuf); in kbase_debugfs_helper_set_attr_from_string()
|
| /OK3568_Linux_fs/kernel/drivers/media/rc/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/m5mols/ |
| H 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() 243 u8 wbuf[M5MOLS_I2C_MAX_SIZE + 4]; in m5mols_write() local 247 u32 *buf = (u32 *)&wbuf[4]; in m5mols_write() 262 msg->buf = wbuf; in m5mols_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soundwire/ |
| H A D | stream.c | 68 u16 wbuf; in _sdw_program_slave_port_params() local 105 wbuf = FIELD_GET(SDW_DPN_SAMPLECTRL_HIGH, t_params->sample_interval - 1); in _sdw_program_slave_port_params() 107 ret = sdw_write(slave, addr3, wbuf); in _sdw_program_slave_port_params() 114 wbuf = FIELD_PREP(SDW_DPN_HCTRL_HSTART, t_params->hstart); in _sdw_program_slave_port_params() 115 wbuf |= FIELD_PREP(SDW_DPN_HCTRL_HSTOP, t_params->hstop); 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 159 wbuf = FIELD_PREP(SDW_DPN_PORTCTRL_DATAMODE, p_params->data_mode); in sdw_program_slave_port_params() 160 wbuf |= FIELD_PREP(SDW_DPN_PORTCTRL_FLOWMODE, p_params->flow_mode); in sdw_program_slave_port_params() 162 ret = sdw_update(s_rt->slave, addr1, 0xF, wbuf); in sdw_program_slave_port_params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/ddbridge/ |
| H 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()
|