Home
last modified time | relevance | path

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

12

/external/u-boot/fs/yaffs2/
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 …]
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()
Dyaffs_packedtags1.c30 pt->n_bytes = t->n_bytes; in yaffs_pack_tags1()
49 t->n_bytes = pt->n_bytes; in yaffs_unpack_tags1()
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 …]
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()
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,
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);
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()
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()
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);
Dyaffs_packedtags1.h26 unsigned n_bytes:10; member
Dyaffs_packedtags2.h28 unsigned n_bytes; member
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 …]
Dyaffs_yaffs1.c159 tags.n_bytes; in yaffs1_scan()
/external/adhd/cras/src/server/
Dcras_gpio_jack.c24 int gpio_switch_read(int fd, void *buf, size_t n_bytes) in gpio_switch_read() argument
26 return read(fd, buf, n_bytes); in gpio_switch_read()
29 int gpio_switch_eviocgname(int fd, char *name, size_t n_bytes) in gpio_switch_eviocgname() argument
31 return ioctl(fd, EVIOCGNAME(n_bytes), name); in gpio_switch_eviocgname()
34 int gpio_switch_eviocgbit(int fd, void *buf, size_t n_bytes) in gpio_switch_eviocgbit() argument
36 return ioctl(fd, EVIOCGBIT(EV_SW, n_bytes), buf); in gpio_switch_eviocgbit()
39 int gpio_switch_eviocgsw(int fd, void *bits, size_t n_bytes) in gpio_switch_eviocgsw() argument
41 return ioctl(fd, EVIOCGSW(n_bytes), bits); in gpio_switch_eviocgsw()
Dcras_gpio_jack.h14 int gpio_switch_read(int fd, void *buf, size_t n_bytes);
16 int gpio_switch_eviocgbit(int fd, void *buf, size_t n_bytes);
17 int gpio_switch_eviocgsw(int fd, void *bits, size_t n_bytes);
/external/openssh/
Dttymodes.c352 int n_bytes = 0; in tty_parse_modes() local
379 n_bytes += 1; in tty_parse_modes()
388 n_bytes += 4; in tty_parse_modes()
398 n_bytes += 4; in tty_parse_modes()
407 n_bytes += arg_size; \ in tty_parse_modes()
412 n_bytes += arg_size; \ in tty_parse_modes()
436 n_bytes += 1; in tty_parse_modes()
440 n_bytes += 4; in tty_parse_modes()
464 n_bytes += 4; in tty_parse_modes()
477 if (*n_bytes_ptr != n_bytes) { in tty_parse_modes()
[all …]
/external/boringssl/src/util/fipstools/cavp/
Dcavp_rsa2_keygen_test.cc54 std::vector<uint8_t> n_bytes(BN_num_bytes(n)), e_bytes(BN_num_bytes(e)), in TestRSA2KeyGen() local
58 BN_bn2bin(n, n_bytes.data()) != n_bytes.size() || in TestRSA2KeyGen()
74 EncodeHex(n_bytes.data(), n_bytes.size()).c_str(), in TestRSA2KeyGen()
Dcavp_rsa2_siggen_test.cc62 std::vector<uint8_t> n_bytes(BN_num_bytes(n)); in TestRSA2SigGen() local
64 if (!BN_bn2bin_padded(n_bytes.data(), n_bytes.size(), n) || in TestRSA2SigGen()
71 EncodeHex(n_bytes.data(), n_bytes.size()).c_str(), in TestRSA2SigGen()
/external/boringssl/src/crypto/bio/
Dhexdump.c150 const unsigned n_bytes = ctx->used; in finish() local
154 if (n_bytes == 0) { in finish()
173 ctx->right_chars[n_bytes] = '|'; in finish()
174 ctx->right_chars[n_bytes + 1] = '\n'; in finish()
175 if (BIO_write(ctx->bio, ctx->right_chars, n_bytes + 2) < 0) { in finish()
/external/libevent/
Devutil_rand.c100 int n_bytes = 4 - (((ev_uintptr_t)b) & 3); in ev_arc4random_buf()
101 memcpy(b, &u, n_bytes); in ev_arc4random_buf()
102 b += n_bytes; in ev_arc4random_buf()
103 n -= n_bytes; in ev_arc4random_buf()
Diocp-internal.h188 ev_uintptr_t key, ev_uint32_t n_bytes);
/external/u-boot/drivers/spi/
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()
Dmxc_spi.c357 int n_bytes = DIV_ROUND_UP(bitlen, 8); in mxc_spi_xfer_internal() local
370 while (n_bytes > 0) { in mxc_spi_xfer_internal()
371 if (n_bytes < MAX_SPI_BYTES) in mxc_spi_xfer_internal()
372 blk_size = n_bytes; in mxc_spi_xfer_internal()
386 n_bytes -= blk_size; in mxc_spi_xfer_internal()
/external/adhd/cras/src/tests/
Dalsa_jack_unittest.cc966 int gpio_switch_eviocgbit(int fd, void* buf, size_t n_bytes) { in gpio_switch_eviocgbit() argument
975 memcpy(p, eviocbit_ret, n_bytes); in gpio_switch_eviocgbit()
977 memset(p, 0, n_bytes); in gpio_switch_eviocgbit()
983 int gpio_switch_eviocgsw(int fd, void* bits, size_t n_bytes) { in gpio_switch_eviocgsw() argument
988 memset(bits, 0xff, n_bytes); in gpio_switch_eviocgsw()
992 int gpio_switch_read(int fd, void* buf, size_t n_bytes) { in gpio_switch_read() argument

12