Searched refs:n_bytes (Results 1 - 16 of 16) sorted by relevance

/u-boot/fs/yaffs2/
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.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_packedtags2.c45 ptt->obj_id, ptt->chunk_id, ptt->n_bytes, ptt->seq_number);
58 t->chunk_id, t->n_bytes, t->is_deleted, t->serial_number,
80 ptt->n_bytes = t->n_bytes;
100 ptt->n_bytes = t->extra_equiv_id;
102 ptt->n_bytes = (unsigned) t->extra_file_size;
104 ptt->n_bytes = 0;
134 t->n_bytes = ptt->n_bytes;
142 t->n_bytes
[all...]
H A Dyaffs_summary.c44 unsigned n_bytes; member in struct:yaffs_summary_tags
124 int n_bytes; local
134 n_bytes = sizeof(struct yaffs_summary_tags) *
148 this_tx = n_bytes;
153 tags.n_bytes = this_tx + sizeof(hdr);
163 n_bytes -= this_tx;
168 } while (result == YAFFS_OK && n_bytes > 0);
186 int n_bytes; local
197 n_bytes = sizeof(struct yaffs_summary_tags) * dev->chunks_per_summary;
203 this_tx = n_bytes;
[all...]
H A Dyaffs_packedtags1.c30 pt->n_bytes = t->n_bytes;
49 t->n_bytes = pt->n_bytes;
H A Dyaffs_packedtags1.h26 unsigned n_bytes:10; member in struct:yaffs_packed_tags1
H A Dyaffs_packedtags2.h28 unsigned n_bytes; member in struct:yaffs_packed_tags2_tags_only
H A Dyaffs_yaffs2.c212 int n_bytes = 0; local
222 n_bytes += sizeof(struct yaffs_checkpt_validity);
223 n_bytes += sizeof(struct yaffs_checkpt_dev);
224 n_bytes += dev_blocks * sizeof(struct yaffs_block_info);
225 n_bytes += dev_blocks * dev->chunk_bit_stride;
226 n_bytes +=
229 n_bytes += (dev->tnode_size + sizeof(u32)) * dev->n_tnodes;
230 n_bytes += sizeof(struct yaffs_checkpt_validity);
231 n_bytes += sizeof(u32); /* checksum */
237 (n_bytes /
313 u32 n_bytes; local
341 u32 n_bytes; local
[all...]
H A Dyaffs_checkptrw.c221 tags.n_bytes = dev->data_bytes_per_chunk;
258 int yaffs2_checkpt_wr(struct yaffs_dev *dev, const void *data, int n_bytes) argument
270 while (i < n_bytes && ok) {
288 int yaffs2_checkpt_rd(struct yaffs_dev *dev, void *data, int n_bytes) argument
303 while (i < n_bytes && ok) {
H A Dyaffs_ecc.c205 void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes, argument
214 for (i = 0; i < n_bytes; i++) {
231 int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes, argument
261 if (delta_line >= n_bytes)
H A Dyaffs_tagscompat.c295 tags.n_bytes_lsb = ext_tags->n_bytes & (1024 - 1);
298 tags.n_bytes_msb = (ext_tags->n_bytes >> 10) & 3;
349 ext_tags->n_bytes = tags.n_bytes_lsb;
352 ext_tags->n_bytes |=
H A Dyaffs_guts.h134 int n_bytes; /* Only valid if the cache is dirty */ member in struct:yaffs_cache
183 unsigned n_bytes; /* Only valid for data chunks */ member in struct:yaffs_ext_tags
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.c42 const u8 *buffer, int n_bytes, int use_reserve);
302 int yaffs_check_ff(u8 *buffer, int n_bytes) argument
305 while (n_bytes--) {
350 temp_tags.n_bytes != tags->n_bytes)
1416 cache->n_bytes, 1);
2404 tags.chunk_id, tags.n_bytes);
2433 tags.n_bytes);
2984 const u8 *buffer, int n_bytes, int use_reserve)
3015 new_tags.n_bytes
2983 yaffs_wr_data_obj(struct yaffs_obj *in, int inode_chunk, const u8 *buffer, int n_bytes, int use_reserve) argument
3413 yaffs_file_rd(struct yaffs_obj *in, u8 * buffer, loff_t offset, int n_bytes) argument
3492 yaffs_do_file_wr(struct yaffs_obj *in, const u8 *buffer, loff_t offset, int n_bytes, int write_through) argument
3663 yaffs_wr_file(struct yaffs_obj *in, const u8 *buffer, loff_t offset, int n_bytes, int write_through) argument
[all...]
H A Dyaffs_yaffs1.c160 tags.n_bytes;
/u-boot/drivers/spi/
H A Dpic32_spi.c110 static u32 pic32_tx_max(struct pic32_spi_priv *priv, int n_bytes) argument
114 tx_left = (priv->tx_end - priv->tx) / n_bytes;
118 rxtx_gap /= n_bytes;
123 static u32 pic32_rx_max(struct pic32_spi_priv *priv, int n_bytes) argument
125 u32 rx_left = (priv->rx_end - priv->rx) / n_bytes;
H A Dmxc_spi.c420 int n_bytes = DIV_ROUND_UP(bitlen, 8); local
433 while (n_bytes > 0) {
434 if (n_bytes < MAX_SPI_BYTES)
435 blk_size = n_bytes;
449 n_bytes -= blk_size;

Completed in 205 milliseconds