| /OK3568_Linux_fs/u-boot/fs/yaffs2/ |
| H A D | yaffs_summary.c | 43 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 D | yaffs_packedtags2.c | 45 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 D | yaffs_yaffs2.c | 211 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 D | yaffs_packedtags1.c | 30 pt->n_bytes = t->n_bytes; in yaffs_pack_tags1() 49 t->n_bytes = pt->n_bytes; in yaffs_unpack_tags1()
|
| H A D | yaffs_ecc.c | 205 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 D | yaffs_ecc.h | 39 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 D | yaffs_checkptrw.h | 23 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 D | yaffs_checkptrw.c | 220 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 D | yaffs_tagscompat.c | 295 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 D | yaffs_guts.h | 134 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);
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/spirit/home/support/detail/endian/ |
| H A D | endian.hpp | 68 template <typename T, std::size_t n_bytes, 72 typedef unrolled_byte_loops<T, n_bytes - 1, sign> next; 118 template <typename T, std::size_t n_bytes> 122 return static_cast<T>(unrolled_byte_loops<T, n_bytes>::load_big in load_big_endian() 123 (static_cast<const unsigned char*>(bytes) + n_bytes)); in load_big_endian() 164 template <typename T, std::size_t n_bytes> 168 return static_cast<T>(unrolled_byte_loops<T, n_bytes>::load_little in load_little_endian() 208 template <typename T, std::size_t n_bytes> 212 unrolled_byte_loops<T, n_bytes>::store_big in store_big_endian() 213 (static_cast<char*>(bytes) + n_bytes, value); in store_big_endian() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc2/ |
| H A D | hcd_ddma.c | 110 qh->n_bytes = kcalloc(dwc2_max_desc_num(qh), sizeof(u32), flags); in dwc2_desc_list_alloc() 111 if (!qh->n_bytes) { in dwc2_desc_list_alloc() 140 kfree(qh->n_bytes); in dwc2_desc_list_free() 141 qh->n_bytes = NULL; in dwc2_desc_list_free() 553 qh->n_bytes[idx] = max_xfer_size; in dwc2_fill_host_isoc_dma_desc() 555 qh->n_bytes[idx] = frame_desc->length; in dwc2_fill_host_isoc_dma_desc() 558 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc() 715 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc() 925 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() 929 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A D | fault.c | 89 u64 n_packets = 0, n_bytes = 0; in _fault_stats_seq_show() local 98 n_bytes += rcd->opstats->stats[i].n_bytes; in _fault_stats_seq_show() 107 n_bytes += sp->stats[i].n_bytes; in _fault_stats_seq_show() 109 if (!n_packets && !n_bytes) in _fault_stats_seq_show() 115 (unsigned long long)n_bytes, in _fault_stats_seq_show()
|
| H A D | debugfs.c | 136 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local 145 n_bytes += rcd->opstats->stats[i].n_bytes; in _opcode_stats_seq_show() 149 return opcode_stats_show(s, i, n_packets, n_bytes); in _opcode_stats_seq_show() 175 u64 n_packets = 0, n_bytes = 0; in _tx_opcode_stats_seq_show() local 183 n_bytes += s->stats[i].n_bytes; in _tx_opcode_stats_seq_show() 185 return opcode_stats_show(s, i, n_packets, n_bytes); in _tx_opcode_stats_seq_show()
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/ |
| H A D | qib_debugfs.c | 98 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local 106 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show() 108 if (!n_packets && !n_bytes) in _opcode_stats_seq_show() 112 (unsigned long long) n_bytes); in _opcode_stats_seq_show()
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-rockchip.c | 213 u8 n_bytes; member 346 if (rs->n_bytes == 1) in rockchip_spi_pio_writer() 352 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer() 382 if (rs->n_bytes == 1) in rockchip_spi_pio_reader() 386 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader() 422 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq() 423 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq() 502 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() 503 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma() 524 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() [all …]
|
| H A D | spi-dw-core.c | 144 if (dws->n_bytes == 1) in dw_writer() 149 dws->tx += dws->n_bytes; in dw_writer() 164 if (dws->n_bytes == 1) in dw_reader() 169 dws->rx += dws->n_bytes; in dw_reader() 385 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer() 415 dws->n_bytes = DIV_ROUND_UP(transfer->bits_per_word, BITS_PER_BYTE); in dw_spi_transfer_one() 417 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 520 dws->n_bytes = 1; in dw_spi_init_mem_buf() 614 ns *= dws->n_bytes * BITS_PER_BYTE; in dw_spi_wait_mem_op_done()
|
| H A D | spi-dw-dma.c | 197 static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) in dw_spi_dma_convert_width() argument 199 if (n_bytes == 1) in dw_spi_dma_convert_width() 201 else if (n_bytes == 2) in dw_spi_dma_convert_width() 244 delay.value = nents * dws->n_bytes * BITS_PER_BYTE; in dw_spi_dma_wait_tx_done() 281 txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_tx() 382 rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_rx()
|
| H A D | spi-imx.c | 391 int n_bytes = spi_imx->slave_burst % sizeof(val); in mx53_ecspi_rx_slave() local 393 if (!n_bytes) in mx53_ecspi_rx_slave() 394 n_bytes = sizeof(val); in mx53_ecspi_rx_slave() 397 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_slave() 399 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_slave() 400 spi_imx->slave_burst -= n_bytes; in mx53_ecspi_rx_slave() 409 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_slave() local 411 if (!n_bytes) in mx53_ecspi_tx_slave() 412 n_bytes = sizeof(val); in mx53_ecspi_tx_slave() 415 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_slave() [all …]
|
| H A D | spi-pxa2xx.c | 505 u8 n_bytes = drv_data->n_bytes; in null_writer() local 512 drv_data->tx += n_bytes; in null_writer() 519 u8 n_bytes = drv_data->n_bytes; in null_reader() local 524 drv_data->rx += n_bytes; in null_reader() 703 switch (drv_data->n_bytes) { in interrupt_transfer() 997 drv_data->n_bytes = chip->n_bytes; in pxa2xx_spi_transfer_one() 1012 drv_data->n_bytes = 1; in pxa2xx_spi_transfer_one() 1018 drv_data->n_bytes = 2; in pxa2xx_spi_transfer_one() 1024 drv_data->n_bytes = 4; in pxa2xx_spi_transfer_one() 1401 chip->n_bytes = 1; in setup() [all …]
|
| H A D | spi-pxa2xx.h | 54 u8 n_bytes; member 73 u8 n_bytes; member
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | pic32_spi.c | 108 static u32 pic32_tx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_tx_max() argument 112 tx_left = (priv->tx_end - priv->tx) / n_bytes; in pic32_tx_max() 116 rxtx_gap /= n_bytes; in pic32_tx_max() 121 static u32 pic32_rx_max(struct pic32_spi_priv *priv, int n_bytes) in pic32_rx_max() argument 123 u32 rx_left = (priv->rx_end - priv->rx) / n_bytes; in pic32_rx_max()
|
| H A D | mxc_spi.c | 338 int n_bytes = DIV_ROUND_UP(bitlen, 8); in mxc_spi_xfer_internal() local 351 while (n_bytes > 0) { in mxc_spi_xfer_internal() 352 if (n_bytes < MAX_SPI_BYTES) in mxc_spi_xfer_internal() 353 blk_size = n_bytes; in mxc_spi_xfer_internal() 367 n_bytes -= blk_size; in mxc_spi_xfer_internal()
|
| /OK3568_Linux_fs/kernel/drivers/media/rc/ |
| H A D | imon.c | 69 size_t n_bytes, loff_t *pos); 73 size_t n_bytes, loff_t *pos); 948 size_t n_bytes, loff_t *pos) in vfd_write() argument 969 if (n_bytes <= 0 || n_bytes > 32) { in vfd_write() 975 if (copy_from_user(ictx->tx.data_buf, buf, n_bytes)) { in vfd_write() 981 for (i = n_bytes; i < 32; ++i) in vfd_write() 1015 return (!retval) ? n_bytes : retval; in vfd_write() 1032 size_t n_bytes, loff_t *pos) in lcd_write() argument 1048 if (n_bytes != 8) { in lcd_write() 1050 (int)n_bytes); in lcd_write() [all …]
|
| /OK3568_Linux_fs/u-boot/examples/standalone/ |
| H A D | rkspi.c | 19 u8 n_bytes; member 147 priv->n_bytes = 1; in rockchip_spi_claim_bus() 152 priv->n_bytes = 2; in rockchip_spi_claim_bus()
|