Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 23 of 23) sorted by relevance

/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_packedtags2.c45 ptt->obj_id, ptt->chunk_id, ptt->n_bytes, ptt->seq_number); in yaffs_dump_packed_tags2_tags_only()
58 t->chunk_id, t->n_bytes, t->is_deleted, t->serial_number, in yaffs_dump_tags2()
80 ptt->n_bytes = t->n_bytes; in yaffs_pack_tags2_tags_only()
100 ptt->n_bytes = t->extra_equiv_id; in yaffs_pack_tags2_tags_only()
102 ptt->n_bytes = (unsigned) t->extra_file_size; in yaffs_pack_tags2_tags_only()
104 ptt->n_bytes = 0; in yaffs_pack_tags2_tags_only()
134 t->n_bytes = ptt->n_bytes; in yaffs_unpack_tags2_tags_only()
142 t->n_bytes = 0; in yaffs_unpack_tags2_tags_only()
152 t->extra_equiv_id = ptt->n_bytes; in yaffs_unpack_tags2_tags_only()
154 t->extra_file_size = ptt->n_bytes; in yaffs_unpack_tags2_tags_only()
H A Dyaffs_summary.c43 unsigned n_bytes; member
123 int n_bytes; in yaffs_summary_write() local
133 n_bytes = sizeof(struct yaffs_summary_tags) * in yaffs_summary_write()
147 this_tx = n_bytes; in yaffs_summary_write()
152 tags.n_bytes = this_tx + sizeof(hdr); in yaffs_summary_write()
162 n_bytes -= this_tx; in yaffs_summary_write()
167 } while (result == YAFFS_OK && n_bytes > 0); in yaffs_summary_write()
185 int n_bytes; in yaffs_summary_read() local
196 n_bytes = sizeof(struct yaffs_summary_tags) * dev->chunks_per_summary; in yaffs_summary_read()
202 this_tx = n_bytes; in yaffs_summary_read()
[all …]
H A Dyaffs_packedtags1.c30 pt->n_bytes = t->n_bytes; in yaffs_pack_tags1()
49 t->n_bytes = pt->n_bytes; in yaffs_unpack_tags1()
H A Dyaffs_yaffs2.c211 int n_bytes = 0; in yaffs_calc_checkpt_blocks_required() local
221 n_bytes += sizeof(struct yaffs_checkpt_validity); in yaffs_calc_checkpt_blocks_required()
222 n_bytes += sizeof(struct yaffs_checkpt_dev); in yaffs_calc_checkpt_blocks_required()
223 n_bytes += dev_blocks * sizeof(struct yaffs_block_info); in yaffs_calc_checkpt_blocks_required()
224 n_bytes += dev_blocks * dev->chunk_bit_stride; in yaffs_calc_checkpt_blocks_required()
225 n_bytes += in yaffs_calc_checkpt_blocks_required()
228 n_bytes += (dev->tnode_size + sizeof(u32)) * dev->n_tnodes; in yaffs_calc_checkpt_blocks_required()
229 n_bytes += sizeof(struct yaffs_checkpt_validity); in yaffs_calc_checkpt_blocks_required()
230 n_bytes += sizeof(u32); /* checksum */ in yaffs_calc_checkpt_blocks_required()
236 (n_bytes / in yaffs_calc_checkpt_blocks_required()
[all …]
H A Dyaffs_ecc.h39 void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes,
41 int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes,
H A Dyaffs_checkptrw.h23 int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes);
25 int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes);
H A Dyaffs_ecc.c205 void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes, in yaffs_ecc_calc_other() argument
214 for (i = 0; i < n_bytes; i++) { in yaffs_ecc_calc_other()
231 int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes, in yaffs_ecc_correct_other() argument
261 if (delta_line >= n_bytes) in yaffs_ecc_correct_other()
H A Dyaffs_checkptrw.c220 tags.n_bytes = dev->data_bytes_per_chunk; in yaffs2_checkpt_flush_buffer()
257 int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes) in yaffs2_checkpt_wr() argument
269 while (i < n_bytes && ok) { in yaffs2_checkpt_wr()
287 int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes) in yaffs2_checkpt_rd() argument
302 while (i < n_bytes && ok) { in yaffs2_checkpt_rd()
H A Dyaffs_packedtags1.h26 unsigned n_bytes:10; member
H A Dyaffs_tagscompat.c295 tags.n_bytes_lsb = ext_tags->n_bytes & (1024 - 1); in yaffs_tags_compat_wr()
298 tags.n_bytes_msb = (ext_tags->n_bytes >> 10) & 3; in yaffs_tags_compat_wr()
349 ext_tags->n_bytes = tags.n_bytes_lsb; in yaffs_tags_compat_rd()
352 ext_tags->n_bytes |= in yaffs_tags_compat_rd()
H A Dyaffs_packedtags2.h28 unsigned n_bytes; member
H A Dyaffs_guts.h134 int n_bytes; /* Only valid if the cache is dirty */ member
183 unsigned n_bytes; /* Only valid for data chunks */ member
849 int n_bytes);
851 int n_bytes, int write_trhrough);
915 int yaffs_check_ff(u8 *buffer, int n_bytes);
947 int n_bytes, int write_trhrough);
H A Dyaffs_guts.c41 const u8 *buffer, int n_bytes, int use_reserve);
301 int yaffs_check_ff(u8 *buffer, int n_bytes) in yaffs_check_ff() argument
304 while (n_bytes--) { in yaffs_check_ff()
349 temp_tags.n_bytes != tags->n_bytes) in yaffs_verify_chunk_written()
1415 cache->n_bytes, 1); in yaffs_flush_file_cache()
2403 tags.chunk_id, tags.n_bytes); in yaffs_gc_process_chunk()
2432 tags.n_bytes); in yaffs_gc_process_chunk()
2983 const u8 *buffer, int n_bytes, int use_reserve) in yaffs_wr_data_obj() argument
3014 new_tags.n_bytes = n_bytes; in yaffs_wr_data_obj()
3016 if (n_bytes < 1 || n_bytes > dev->param.total_bytes_per_chunk) { in yaffs_wr_data_obj()
[all …]
H A Dyaffs_yaffs1.c159 tags.n_bytes; in yaffs1_scan()
/openbmc/qemu/block/
H A Dvdi.c559 uint32_t n_bytes; in vdi_co_preadv() local
570 n_bytes = MIN(bytes, s->block_size - offset_in_block); in vdi_co_preadv()
573 n_bytes, offset); in vdi_co_preadv()
581 qemu_iovec_memset(qiov, bytes_done, 0, n_bytes); in vdi_co_preadv()
589 qemu_iovec_concat(&local_qiov, qiov, bytes_done, n_bytes); in vdi_co_preadv()
591 ret = bdrv_co_preadv(bs->file, data_offset, n_bytes, in vdi_co_preadv()
594 logout("%u bytes read\n", n_bytes); in vdi_co_preadv()
596 bytes -= n_bytes; in vdi_co_preadv()
597 offset += n_bytes; in vdi_co_preadv()
598 bytes_done += n_bytes; in vdi_co_preadv()
[all …]
H A Dvpc.c627 int64_t n_bytes; in vpc_co_preadv() local
640 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_preadv()
643 qemu_iovec_memset(qiov, bytes_done, 0, n_bytes); in vpc_co_preadv()
646 qemu_iovec_concat(&local_qiov, qiov, bytes_done, n_bytes); in vpc_co_preadv()
649 ret = bdrv_co_preadv(bs->file, image_offset, n_bytes, in vpc_co_preadv()
657 bytes -= n_bytes; in vpc_co_preadv()
658 offset += n_bytes; in vpc_co_preadv()
659 bytes_done += n_bytes; in vpc_co_preadv()
676 int64_t n_bytes; in vpc_co_pwritev() local
694 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_pwritev()
[all …]
H A Dvmdk.c1834 uint64_t qiov_offset, uint64_t n_bytes, in vmdk_write_extent() argument
1849 n_bytes > (extent->cluster_sectors * SECTOR_SIZE) || in vmdk_write_extent()
1850 (n_bytes < (extent->cluster_sectors * SECTOR_SIZE) && in vmdk_write_extent()
1851 offset + n_bytes != extent->end_sector * SECTOR_SIZE)) in vmdk_write_extent()
1864 compressed_data = g_malloc(n_bytes); in vmdk_write_extent()
1865 qemu_iovec_to_buf(qiov, qiov_offset, compressed_data, n_bytes); in vmdk_write_extent()
1866 ret = compress(data->data, &buf_len, compressed_data, n_bytes); in vmdk_write_extent()
1877 n_bytes = buf_len + sizeof(VmdkGrainMarker); in vmdk_write_extent()
1878 qemu_iovec_init_buf(&local_qiov, data, n_bytes); in vmdk_write_extent()
1883 qemu_iovec_concat(&local_qiov, qiov, qiov_offset, n_bytes); in vmdk_write_extent()
[all …]
/openbmc/qemu/audio/
H A Dpwaudio.c88 uint32_t req, index, n_bytes; in playback_on_process() local
110 n_bytes = SPA_MIN(req, buf->datas[0].maxsize); in playback_on_process()
117 audio_pcm_info_clear_buf(&vo->hw.info, p, n_bytes / v->frame_size); in playback_on_process()
119 if ((uint32_t) avail < n_bytes) { in playback_on_process()
125 n_bytes = avail; in playback_on_process()
130 index & RINGBUFFER_MASK, p, n_bytes); in playback_on_process()
132 index += n_bytes; in playback_on_process()
138 buf->datas[0].chunk->size = n_bytes; in playback_on_process()
153 uint32_t index, offs, n_bytes; in capture_on_process() local
171 n_bytes = SPA_MIN(buf->datas[0].chunk->size, buf->datas[0].maxsize - offs); in capture_on_process()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dpic32_spi.c107 static u32 pic32_tx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_tx_max() argument
111 tx_left = (priv->tx_end - priv->tx) / n_bytes; in pic32_tx_max()
115 rxtx_gap /= n_bytes; in pic32_tx_max()
120 static u32 pic32_rx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_rx_max() argument
122 u32 rx_left = (priv->rx_end - priv->rx) / n_bytes; in pic32_rx_max()
H A Dmxc_spi.c337 int n_bytes = DIV_ROUND_UP(bitlen, 8); in mxc_spi_xfer_internal() local
350 while (n_bytes > 0) { in mxc_spi_xfer_internal()
351 if (n_bytes < MAX_SPI_BYTES) in mxc_spi_xfer_internal()
352 blk_size = n_bytes; in mxc_spi_xfer_internal()
366 n_bytes -= blk_size; in mxc_spi_xfer_internal()
H A Drk_spi.c44 u8 n_bytes; member
285 priv->n_bytes = 1; in rockchip_spi_claim_bus()
290 priv->n_bytes = 2; in rockchip_spi_claim_bus()
/openbmc/qemu/rust/qemu-api/src/
H A Dlib.rs59 fn g_malloc0(n_bytes: bindings::gsize) -> bindings::gpointer; in g_malloc0()
/openbmc/qemu/target/mips/tcg/
H A Dmips16e_translate.c.inc659 int n_bytes;
669 n_bytes = 2;
695 n_bytes = 4;
1107 n_bytes = 4;
1120 return n_bytes;