Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/drivers/usb/misc/
H A Dldusb.c527 size_t bytes_to_write; in ld_usb_write() local
562 bytes_to_write = min(count, write_buffer_size*dev->interrupt_out_endpoint_size); in ld_usb_write()
563 if (bytes_to_write < count) in ld_usb_write()
565 count - bytes_to_write); in ld_usb_write()
567 __func__, count, bytes_to_write); in ld_usb_write()
569 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) { in ld_usb_write()
582 bytes_to_write, in ld_usb_write()
597 bytes_to_write, in ld_usb_write()
612 retval = bytes_to_write; in ld_usb_write()
H A Dadutux.c509 size_t bytes_to_write; in adu_write() local
574 bytes_to_write = count > buffer_size ? buffer_size : count; in adu_write()
577 __func__, buffer_size, count, bytes_to_write); in adu_write()
579 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) { in adu_write()
590 bytes_to_write, in adu_write()
594 dev->interrupt_out_urb->actual_length = bytes_to_write; in adu_write()
604 buffer += bytes_to_write; in adu_write()
605 count -= bytes_to_write; in adu_write()
607 bytes_written += bytes_to_write; in adu_write()
H A Dlegousbtower.c579 size_t bytes_to_write; in tower_write() local
615 bytes_to_write = min_t(int, count, write_buffer_size); in tower_write()
617 __func__, count, bytes_to_write); in tower_write()
619 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) { in tower_write()
629 bytes_to_write, in tower_write()
644 retval = bytes_to_write; in tower_write()
/openbmc/linux/sound/soc/qcom/qdsp6/
H A Dq6apm-dai.c167 uint32_t bytes_written, bytes_to_write; in event_handler_compr() local
195 bytes_to_write = prtd->pcm_count; in event_handler_compr()
199 bytes_to_write = avail; in event_handler_compr()
202 if (bytes_to_write) { in event_handler_compr()
207 bytes_to_write, 0, 0, wflags); in event_handler_compr()
209 prtd->bytes_sent += bytes_to_write; in event_handler_compr()
764 uint32_t bytes_to_write; in q6apm_compr_copy() local
804 bytes_to_write = prtd->pcm_count; in q6apm_compr_copy()
808 bytes_to_write = avail; in q6apm_compr_copy()
810 q6apm_write_async(prtd->graph, bytes_to_write, 0, 0, wflags); in q6apm_compr_copy()
[all …]
H A Dq6asm-dai.c508 uint32_t bytes_written, bytes_to_write; in compress_event_handler() local
568 bytes_to_write = prtd->pcm_count; in compress_event_handler()
572 bytes_to_write = avail; in compress_event_handler()
575 if (bytes_to_write) { in compress_event_handler()
584 bytes_to_write, 0, 0, wflags); in compress_event_handler()
586 prtd->bytes_sent += bytes_to_write; in compress_event_handler()
1101 uint32_t bytes_to_write = prtd->pcm_count; in q6asm_compr_copy() local
1106 bytes_to_write = avail; in q6asm_compr_copy()
1109 bytes_to_write, 0, 0, wflags); in q6asm_compr_copy()
1110 prtd->bytes_sent += bytes_to_write; in q6asm_compr_copy()
/openbmc/linux/drivers/media/pci/saa7164/
H A Dsaa7164-bus.c124 u32 bytes_to_write, free_write_space, timeout, curr_srp, curr_swp; in saa7164_bus_set() local
152 bytes_to_write = sizeof(*msg) + msg->size; in saa7164_bus_set()
167 bytes_to_write); in saa7164_bus_set()
176 while (bytes_to_write >= free_write_space) { in saa7164_bus_set()
203 new_swp = curr_swp + bytes_to_write; in saa7164_bus_set()
262 bytes_to_write - space_rem); in saa7164_bus_set()
/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c362 size_t bytes_to_write = 0; in ne_load_enclave_image() local
379 bytes_to_write = memory_size < remaining_bytes ? in ne_load_enclave_image()
383 enclave_image + image_written_bytes, bytes_to_write); in ne_load_enclave_image()
385 image_written_bytes += bytes_to_write; in ne_load_enclave_image()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-fsi.c272 int bytes_to_write = i2c->fifo_size - fifo_count; in fsi_i2c_write_fifo() local
275 bytes_to_write = min(bytes_to_write, bytes_remaining); in fsi_i2c_write_fifo()
277 while (bytes_to_write) { in fsi_i2c_write_fifo()
278 write = fsi_i2c_get_op_bytes(bytes_to_write); in fsi_i2c_write_fifo()
286 bytes_to_write -= write; in fsi_i2c_write_fifo()
H A Di2c-bcm-kona.c444 unsigned int bytes_to_write = MAX_TX_FIFO_SIZE; in bcm_kona_i2c_write_fifo() local
452 bytes_to_write = msg->len - bytes_written; in bcm_kona_i2c_write_fifo()
455 bytes_to_write); in bcm_kona_i2c_write_fifo()
459 bytes_written += bytes_to_write; in bcm_kona_i2c_write_fifo()
460 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/openbmc/u-boot/drivers/i2c/
H A Dkona_i2c.c399 unsigned int bytes_to_write = MAX_TX_FIFO_SIZE; in bcm_kona_i2c_write_fifo() local
407 bytes_to_write = msg->len - bytes_written; in bcm_kona_i2c_write_fifo()
410 bytes_to_write); in bcm_kona_i2c_write_fifo()
414 bytes_written += bytes_to_write; in bcm_kona_i2c_write_fifo()
415 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_dp_hdcp.c445 ssize_t ret, bytes_to_write, len; in intel_dp_hdcp2_write_msg() local
455 bytes_to_write = size - 1; in intel_dp_hdcp2_write_msg()
458 while (bytes_to_write) { in intel_dp_hdcp2_write_msg()
459 len = bytes_to_write > DP_AUX_MAX_PAYLOAD_BYTES ? in intel_dp_hdcp2_write_msg()
460 DP_AUX_MAX_PAYLOAD_BYTES : bytes_to_write; in intel_dp_hdcp2_write_msg()
467 bytes_to_write -= ret; in intel_dp_hdcp2_write_msg()
/openbmc/linux/drivers/scsi/aic94xx/
H A Daic94xx_sds.h97 const void *src, u32 dest_offset, u32 bytes_to_write);
H A Daic94xx_sds.c1115 const void *src, u32 dest_offset, u32 bytes_to_write) in asd_write_flash_seg() argument
1131 err = asd_erase_nv_sector(asd_ha, nv_offset, bytes_to_write); in asd_write_flash_seg()
1145 for (i = 0; i < bytes_to_write; i++) { in asd_write_flash_seg()
/openbmc/openbmc-test-automation/ipmi/dcmi/
H A Dtest_dcmi_management_controller.robot120 ${bytes_to_write}= Evaluate ${bytes_in_int} + 1
121 ${no_of_bytes_to_write}= Get Response Length In Hex ${bytes_to_write}
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bios.c1928 uint8_t bytes_to_write; in load_nv17_hwsq_ucode_entry() local
1938 bytes_to_write = bios->data[hwsq_offset + 1]; in load_nv17_hwsq_ucode_entry()
1940 if (bytes_to_write != 36) { in load_nv17_hwsq_ucode_entry()
1947 hwsq_entry_offset = hwsq_offset + 2 + entry * bytes_to_write; in load_nv17_hwsq_ucode_entry()
1951 bytes_to_write -= 4; in load_nv17_hwsq_ucode_entry()
1954 for (i = 0; i < bytes_to_write; i += 4) in load_nv17_hwsq_ucode_entry()
/openbmc/linux/fs/jfs/
H A Dxattr.c212 s32 bytes_to_write; in ea_write() local
252 bytes_to_write = in ea_write()
256 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { in ea_write()
/openbmc/linux/drivers/spi/
H A Dspi-geni-qcom.c764 unsigned int bytes_to_write; in geni_spi_handle_tx() local
768 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
769 for (j = 0; j < bytes_to_write; j++) in geni_spi_handle_tx()
/openbmc/qemu/hw/net/
H A De1000e_core.c1405 uint32_t bytes_to_write = MIN(data_len, cur_buf_bytes_left); in e1000e_write_payload_frag_to_rx_buffers() local
1411 bytes_to_write); in e1000e_write_payload_frag_to_rx_buffers()
1415 data, bytes_to_write); in e1000e_write_payload_frag_to_rx_buffers()
1417 bastate->written[bastate->cur_idx] += bytes_to_write; in e1000e_write_payload_frag_to_rx_buffers()
1418 data += bytes_to_write; in e1000e_write_payload_frag_to_rx_buffers()
1419 data_len -= bytes_to_write; in e1000e_write_payload_frag_to_rx_buffers()
H A Digb_core.c1800 uint32_t bytes_to_write = MIN(data_len, cur_buf_bytes_left); in igb_write_payload_frag_to_rx_buffers() local
1807 bytes_to_write); in igb_write_payload_frag_to_rx_buffers()
1812 data, bytes_to_write); in igb_write_payload_frag_to_rx_buffers()
1814 pdma_st->bastate.written[pdma_st->bastate.cur_idx] += bytes_to_write; in igb_write_payload_frag_to_rx_buffers()
1815 data += bytes_to_write; in igb_write_payload_frag_to_rx_buffers()
1816 data_len -= bytes_to_write; in igb_write_payload_frag_to_rx_buffers()
/openbmc/u-boot/drivers/video/
H A Dlogicore_dp_tx.c612 static int aux_write(struct udevice *dev, u32 dpcd_address, u32 bytes_to_write, in aux_write() argument
622 bytes_to_write, (u8 *)write_data); in aux_write()
/openbmc/linux/sound/pci/asihpi/
H A Dhpi.h1215 u32 bytes_to_write, const struct hpi_format *p_format);
H A Dhpifunc.c499 u32 bytes_to_write, const struct hpi_format *p_format) in hpi_outstream_write_buf() argument
508 hm.u.d.u.data.data_size = bytes_to_write; in hpi_outstream_write_buf()