Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 18 of 18) 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/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/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;