Searched refs:nb_bytes (Results 1 – 8 of 8) sorted by relevance
/openbmc/qemu/block/ |
H A D | qcow2-cluster.c | 900 assert(start->nb_bytes <= UINT_MAX - end->nb_bytes); in perform_cow() 901 assert(start->nb_bytes + end->nb_bytes <= UINT_MAX - data_bytes); in perform_cow() 904 if ((start->nb_bytes == 0 && end->nb_bytes == 0) || m->skip_cow) { in perform_cow() 911 merge_reads = start->nb_bytes && end->nb_bytes && data_bytes <= 16384; in perform_cow() 913 buffer_size = start->nb_bytes + data_bytes + end->nb_bytes; in perform_cow() 921 UINT_MAX - end->nb_bytes); in perform_cow() 922 buffer_size = QEMU_ALIGN_UP(start->nb_bytes, align) + end->nb_bytes; in perform_cow() 985 if (start->nb_bytes) { in perform_cow() 989 if (end->nb_bytes) { in perform_cow() 1067 assert(m->cow_end.offset + m->cow_end.nb_bytes <= in qcow2_alloc_cluster_link_l2() [all …]
|
H A D | qcow2.c | 2459 if (m->cow_start.nb_bytes == 0 && m->cow_end.nb_bytes == 0) { in merge_cow() 2476 if (l2meta_cow_start(m) + m->cow_start.nb_bytes != offset) { in merge_cow() 2479 assert(m->cow_start.nb_bytes == 0); in merge_cow() 2487 assert(m->cow_end.nb_bytes == 0); in merge_cow() 2519 m->cow_start.nb_bytes); in is_zero_cow() 2525 m->cow_end.nb_bytes); in is_zero_cow() 2545 unsigned nb_bytes = m->cow_end.offset + m->cow_end.nb_bytes - in handle_alloc_space() local 2548 if (!m->cow_start.nb_bytes && !m->cow_end.nb_bytes) { in handle_alloc_space() 2571 ret = bdrv_co_pwrite_zeroes(s->data_file, start_offset, nb_bytes, in handle_alloc_space() 4572 .nb_bytes = cow_start_length, in qcow2_co_truncate() [all …]
|
H A D | qcow2.h | 435 unsigned nb_bytes; member 818 return m->offset + m->cow_end.offset + m->cow_end.nb_bytes; in l2meta_cow_end()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_fb_dma_helper.c | 130 size_t nb_bytes; in drm_fb_dma_sync_non_coherent() local 144 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 146 nb_bytes, DMA_TO_DEVICE); in drm_fb_dma_sync_non_coherent()
|
/openbmc/linux/drivers/ipack/devices/ |
H A D | ipoctal.c | 30 unsigned int nb_bytes; member 130 channel->nb_bytes = 0; in ipoctal_free_channel() 208 if (channel->nb_bytes == 0) in ipoctal_irq_tx() 217 channel->nb_bytes--; in ipoctal_irq_tx() 233 if ((sr & SR_TX_EMPTY) && (channel->nb_bytes == 0)) { in ipoctal_irq_channel() 406 channel->nb_bytes = 0; in ipoctal_inst_slot() 448 if (i <= (PAGE_SIZE - channel->nb_bytes)) { in ipoctal_copy_write_buffer() 452 channel->nb_bytes++; in ipoctal_copy_write_buffer() 488 return PAGE_SIZE - channel->nb_bytes; in ipoctal_write_room() 495 return channel->nb_bytes; in ipoctal_chars_in_buffer() [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-mipi-dsi.c | 502 int ret, nb_bytes; in dw_mipi_dsi_host_transfer() local 527 nb_bytes = msg->rx_len; in dw_mipi_dsi_host_transfer() 529 nb_bytes = packet.size; in dw_mipi_dsi_host_transfer() 532 return nb_bytes; in dw_mipi_dsi_host_transfer()
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_therm.c | 251 static int write_scratchpad(struct w1_slave *sl, const u8 *data, u8 nb_bytes); 1336 static int write_scratchpad(struct w1_slave *sl, const u8 *data, u8 nb_bytes) in write_scratchpad() argument 1357 w1_write_block(dev_master, data, nb_bytes); in write_scratchpad()
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | docg3.c | 610 static void doc_hamming_ecc_init(struct docg3 *docg3, int nb_bytes) in doc_hamming_ecc_init() argument 616 ecc_conf1 |= (nb_bytes & DOC_ECCCONF1_HAMMING_BITS_MASK); in doc_hamming_ecc_init()
|