/openbmc/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_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_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_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);
|
/openbmc/qemu/block/ |
H A D | vdi.c | 559 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 D | vpc.c | 622 int64_t n_bytes; in vpc_co_preadv() local 635 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_preadv() 638 qemu_iovec_memset(qiov, bytes_done, 0, n_bytes); in vpc_co_preadv() 641 qemu_iovec_concat(&local_qiov, qiov, bytes_done, n_bytes); in vpc_co_preadv() 644 ret = bdrv_co_preadv(bs->file, image_offset, n_bytes, in vpc_co_preadv() 652 bytes -= n_bytes; in vpc_co_preadv() 653 offset += n_bytes; in vpc_co_preadv() 654 bytes_done += n_bytes; in vpc_co_preadv() 671 int64_t n_bytes; in vpc_co_pwritev() local 689 n_bytes = MIN(bytes, s->block_size - (offset % s->block_size)); in vpc_co_pwritev() [all …]
|
H A D | vmdk.c | 1832 uint64_t qiov_offset, uint64_t n_bytes, in vmdk_write_extent() argument 1847 n_bytes > (extent->cluster_sectors * SECTOR_SIZE) || in vmdk_write_extent() 1848 (n_bytes < (extent->cluster_sectors * SECTOR_SIZE) && in vmdk_write_extent() 1849 offset + n_bytes != extent->end_sector * SECTOR_SIZE)) in vmdk_write_extent() 1862 compressed_data = g_malloc(n_bytes); in vmdk_write_extent() 1863 qemu_iovec_to_buf(qiov, qiov_offset, compressed_data, n_bytes); in vmdk_write_extent() 1864 ret = compress(data->data, &buf_len, compressed_data, n_bytes); in vmdk_write_extent() 1875 n_bytes = buf_len + sizeof(VmdkGrainMarker); in vmdk_write_extent() 1876 qemu_iovec_init_buf(&local_qiov, data, n_bytes); in vmdk_write_extent() 1881 qemu_iovec_concat(&local_qiov, qiov, qiov_offset, n_bytes); in vmdk_write_extent() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-rockchip.c | 192 u8 n_bytes; member 305 if (rs->n_bytes == 1) in rockchip_spi_pio_writer() 311 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer() 341 if (rs->n_bytes == 1) in rockchip_spi_pio_reader() 345 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader() 383 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq() 384 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq() 462 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() 463 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma() 484 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() [all …]
|
H A D | spi-hisi-kunpeng.c | 136 u8 n_bytes; /* current is a 1/2/4 bytes op */ member 233 switch (hs->n_bytes) { in hisi_spi_reader() 244 hs->rx += hs->n_bytes; in hisi_spi_reader() 258 switch (hs->n_bytes) { in hisi_spi_writer() 269 hs->tx += hs->n_bytes; in hisi_spi_writer() 391 hs->n_bytes = hisi_spi_n_bytes(transfer); in hisi_spi_transfer_one() 393 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one()
|
H A D | spi-dw-core.c | 140 if (dws->n_bytes == 1) in dw_writer() 142 else if (dws->n_bytes == 2) in dw_writer() 147 dws->tx += dws->n_bytes; in dw_writer() 162 if (dws->n_bytes == 1) in dw_reader() 164 else if (dws->n_bytes == 2) in dw_reader() 169 dws->rx += dws->n_bytes; in dw_reader() 393 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer() 424 dws->n_bytes = in dw_spi_transfer_one() 429 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 532 dws->n_bytes = 1; in dw_spi_init_mem_buf() [all …]
|
H A D | spi-dw-dma.c | 231 static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) in dw_spi_dma_convert_width() argument 233 switch (n_bytes) { in dw_spi_dma_convert_width() 254 dma_bus_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_can_dma() 296 delay.value = nents * dws->n_bytes * BITS_PER_BYTE; in dw_spi_dma_wait_tx_done() 333 txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_tx() 434 rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_rx()
|
H A D | spi-imx.c | 413 int n_bytes = spi_imx->target_burst % sizeof(val); in mx53_ecspi_rx_target() local 415 if (!n_bytes) in mx53_ecspi_rx_target() 416 n_bytes = sizeof(val); in mx53_ecspi_rx_target() 419 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_target() 421 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_target() 422 spi_imx->target_burst -= n_bytes; in mx53_ecspi_rx_target() 431 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_target() local 433 if (!n_bytes) in mx53_ecspi_tx_target() 434 n_bytes = sizeof(val); in mx53_ecspi_tx_target() 437 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_target() [all …]
|
H A D | spi-pxa2xx.c | 491 u8 n_bytes = drv_data->n_bytes; in null_writer() local 498 drv_data->tx += n_bytes; in null_writer() 505 u8 n_bytes = drv_data->n_bytes; in null_reader() local 509 drv_data->rx += n_bytes; in null_reader() 694 switch (drv_data->n_bytes) { in interrupt_transfer() 995 drv_data->n_bytes = 1; in pxa2xx_spi_transfer_one() 999 drv_data->n_bytes = 2; in pxa2xx_spi_transfer_one() 1003 drv_data->n_bytes = 4; in pxa2xx_spi_transfer_one()
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | hcd_ddma.c | 80 qh->n_bytes = kcalloc(dwc2_max_desc_num(qh), sizeof(u32), flags); in dwc2_desc_list_alloc() 81 if (!qh->n_bytes) { in dwc2_desc_list_alloc() 110 kfree(qh->n_bytes); in dwc2_desc_list_free() 111 qh->n_bytes = NULL; in dwc2_desc_list_free() 523 qh->n_bytes[idx] = max_xfer_size; in dwc2_fill_host_isoc_dma_desc() 525 qh->n_bytes[idx] = frame_desc->length; in dwc2_fill_host_isoc_dma_desc() 528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc() 685 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc() 902 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() 906 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() [all …]
|
/openbmc/qemu/audio/ |
H A D | pwaudio.c | 88 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/linux/drivers/infiniband/hw/hfi1/ |
H A D | fault.c | 47 u64 n_packets = 0, n_bytes = 0; in _fault_stats_seq_show() local 56 n_bytes += rcd->opstats->stats[i].n_bytes; in _fault_stats_seq_show() 65 n_bytes += sp->stats[i].n_bytes; in _fault_stats_seq_show() 67 if (!n_packets && !n_bytes) in _fault_stats_seq_show() 73 (unsigned long long)n_bytes, in _fault_stats_seq_show()
|
/openbmc/linux/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()
|
/openbmc/u-boot/drivers/spi/ |
H A D | pic32_spi.c | 107 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 D | mxc_spi.c | 337 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()
|