Home
last modified time | relevance | path

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

/drivers/usb/misc/
Dldusb.c528 size_t bytes_to_write; in ld_usb_write() local
563 bytes_to_write = min(count, write_buffer_size*dev->interrupt_out_endpoint_size); in ld_usb_write()
564 if (bytes_to_write < count) in ld_usb_write()
566 count - bytes_to_write); in ld_usb_write()
568 __func__, count, bytes_to_write); in ld_usb_write()
570 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) { in ld_usb_write()
583 bytes_to_write, in ld_usb_write()
598 bytes_to_write, in ld_usb_write()
613 retval = bytes_to_write; in ld_usb_write()
Dadutux.c512 size_t bytes_to_write; in adu_write() local
577 bytes_to_write = count > buffer_size ? buffer_size : count; in adu_write()
580 __func__, buffer_size, count, bytes_to_write); in adu_write()
582 if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write) != 0) { in adu_write()
593 bytes_to_write, in adu_write()
597 dev->interrupt_out_urb->actual_length = bytes_to_write; in adu_write()
607 buffer += bytes_to_write; in adu_write()
608 count -= bytes_to_write; in adu_write()
610 bytes_written += bytes_to_write; in adu_write()
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()
/drivers/media/pci/saa7164/
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()
/drivers/gpu/drm/i915/display/
Dintel_dp_hdcp.c425 ssize_t ret, bytes_to_write, len; in intel_dp_hdcp2_write_msg() local
435 bytes_to_write = size - 1; in intel_dp_hdcp2_write_msg()
440 while (bytes_to_write) { in intel_dp_hdcp2_write_msg()
441 len = bytes_to_write > DP_AUX_MAX_PAYLOAD_BYTES ? in intel_dp_hdcp2_write_msg()
442 DP_AUX_MAX_PAYLOAD_BYTES : bytes_to_write; in intel_dp_hdcp2_write_msg()
449 bytes_to_write -= ret; in intel_dp_hdcp2_write_msg()
/drivers/i2c/busses/
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()
Di2c-bcm-kona.c454 unsigned int bytes_to_write = MAX_TX_FIFO_SIZE; in bcm_kona_i2c_write_fifo() local
462 bytes_to_write = msg->len - bytes_written; in bcm_kona_i2c_write_fifo()
465 bytes_to_write); in bcm_kona_i2c_write_fifo()
469 bytes_written += bytes_to_write; in bcm_kona_i2c_write_fifo()
470 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/drivers/char/pcmcia/
Dcm4040_cs.c324 unsigned int bytes_to_write; in cm4040_write() local
347 bytes_to_write = count; in cm4040_write()
348 if (copy_from_user(dev->s_buf, buf, bytes_to_write)) in cm4040_write()
387 for (i = 0; i < bytes_to_write; i++) { in cm4040_write()
/drivers/scsi/aic94xx/
Daic94xx_sds.h97 const void *src, u32 dest_offset, u32 bytes_to_write);
Daic94xx_sds.c1111 const void *src, u32 dest_offset, u32 bytes_to_write) in asd_write_flash_seg() argument
1127 err = asd_erase_nv_sector(asd_ha, nv_offset, bytes_to_write); in asd_write_flash_seg()
1141 for (i = 0; i < bytes_to_write; i++) { in asd_write_flash_seg()
/drivers/gpu/drm/nouveau/
Dnouveau_bios.c1922 uint8_t bytes_to_write; in load_nv17_hwsq_ucode_entry() local
1932 bytes_to_write = bios->data[hwsq_offset + 1]; in load_nv17_hwsq_ucode_entry()
1934 if (bytes_to_write != 36) { in load_nv17_hwsq_ucode_entry()
1941 hwsq_entry_offset = hwsq_offset + 2 + entry * bytes_to_write; in load_nv17_hwsq_ucode_entry()
1945 bytes_to_write -= 4; in load_nv17_hwsq_ucode_entry()
1948 for (i = 0; i < bytes_to_write; i += 4) in load_nv17_hwsq_ucode_entry()
/drivers/spi/
Dspi-geni-qcom.c422 unsigned int bytes_to_write; in geni_spi_handle_tx() local
426 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
427 for (j = 0; j < bytes_to_write; j++) in geni_spi_handle_tx()