Home
last modified time | relevance | path

Searched refs:bytes_copied (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/drivers/platform/x86/dell/
Ddell_rbu.c251 int bytes_copied = 0; in do_packet_read() local
270 bytes_copied = (*list_read_count - bytes_read); in do_packet_read()
273 bytes_copied = length; in do_packet_read()
274 memcpy(data, ptemp_buf, bytes_copied); in do_packet_read()
276 return bytes_copied; in do_packet_read()
283 int bytes_copied = 0; in packet_read_list() local
296 bytes_copied = do_packet_read(pdest, newpacket, in packet_read_list()
298 remaining_bytes -= bytes_copied; in packet_read_list()
299 bytes_read += bytes_copied; in packet_read_list()
300 pdest += bytes_copied; in packet_read_list()
/linux-6.1.9/drivers/ps3/
Dps3-lpm.c918 unsigned long *bytes_copied) in ps3_lpm_copy_tb() argument
922 *bytes_copied = 0; in ps3_lpm_copy_tb()
932 while (*bytes_copied < count) { in ps3_lpm_copy_tb()
933 const unsigned long request = count - *bytes_copied; in ps3_lpm_copy_tb()
950 *bytes_copied += tmp; in ps3_lpm_copy_tb()
954 *bytes_copied); in ps3_lpm_copy_tb()
973 unsigned long count, unsigned long *bytes_copied) in ps3_lpm_copy_tb_to_user() argument
977 *bytes_copied = 0; in ps3_lpm_copy_tb_to_user()
987 while (*bytes_copied < count) { in ps3_lpm_copy_tb_to_user()
988 const unsigned long request = count - *bytes_copied; in ps3_lpm_copy_tb_to_user()
[all …]
/linux-6.1.9/drivers/usb/gadget/function/
Df_printer.c433 size_t bytes_copied; in printer_read() local
463 bytes_copied = 0; in printer_read()
524 bytes_copied += size; in printer_read()
561 DBG(dev, "printer_read returned %d bytes\n", (int)bytes_copied); in printer_read()
563 if (bytes_copied) in printer_read()
564 return bytes_copied; in printer_read()
575 size_t bytes_copied = 0; in printer_write() local
646 return bytes_copied; in printer_write()
649 bytes_copied += size; in printer_write()
680 DBG(dev, "printer_write sent %d bytes\n", (int)bytes_copied); in printer_write()
[all …]
/linux-6.1.9/drivers/infiniband/hw/irdma/
Duk.c585 u32 bytes_copied; in irdma_copy_inline_data_gen_1() local
587 bytes_copied = min(sge_len, quanta_bytes_remaining); in irdma_copy_inline_data_gen_1()
588 memcpy(wqe, cur_sge, bytes_copied); in irdma_copy_inline_data_gen_1()
589 wqe += bytes_copied; in irdma_copy_inline_data_gen_1()
590 cur_sge += bytes_copied; in irdma_copy_inline_data_gen_1()
591 quanta_bytes_remaining -= bytes_copied; in irdma_copy_inline_data_gen_1()
592 sge_len -= bytes_copied; in irdma_copy_inline_data_gen_1()
651 u32 bytes_copied; in irdma_copy_inline_data() local
653 bytes_copied = min(sge_len, quanta_bytes_remaining); in irdma_copy_inline_data()
654 memcpy(wqe, cur_sge, bytes_copied); in irdma_copy_inline_data()
[all …]
/linux-6.1.9/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c445 u32 bytes_copied = 0; in cx231xx_get_vbi_line() local
462 return bytes_copied; in cx231xx_get_vbi_line()
466 bytes_copied = in cx231xx_get_vbi_line()
470 return bytes_copied; in cx231xx_get_vbi_line()
Dcx231xx-video.c501 u32 bytes_copied = 0; in cx231xx_get_video_line() local
515 return bytes_copied; in cx231xx_get_video_line()
529 return bytes_copied; in cx231xx_get_video_line()
536 bytes_copied = cx231xx_copy_video_line(dev, dma_q, p_buffer, in cx231xx_get_video_line()
539 return bytes_copied; in cx231xx_get_video_line()
/linux-6.1.9/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c337 size_t bytes_copied = 0; in qp_memcpy_to_queue_iter() local
339 while (bytes_copied < size) { in qp_memcpy_to_queue_iter()
341 (queue_offset + bytes_copied) / PAGE_SIZE; in qp_memcpy_to_queue_iter()
343 (queue_offset + bytes_copied) & (PAGE_SIZE - 1); in qp_memcpy_to_queue_iter()
353 if (size - bytes_copied > PAGE_SIZE - page_offset) in qp_memcpy_to_queue_iter()
357 to_copy = size - bytes_copied; in qp_memcpy_to_queue_iter()
365 bytes_copied += to_copy; in qp_memcpy_to_queue_iter()
384 size_t bytes_copied = 0; in qp_memcpy_from_queue_iter() local
386 while (bytes_copied < size) { in qp_memcpy_from_queue_iter()
388 (queue_offset + bytes_copied) / PAGE_SIZE; in qp_memcpy_from_queue_iter()
[all …]
/linux-6.1.9/sound/soc/intel/atom/sst/
Dsst_drv_interface.c260 fw_tstamp.bytes_copied = stream->cumm_bytes; in sst_cdev_ack()
262 fw_tstamp.bytes_copied, bytes); in sst_cdev_ack()
264 offset = offsetof(struct snd_sst_tstamp, bytes_copied); in sst_cdev_ack()
265 sst_shim_write(addr, offset, fw_tstamp.bytes_copied); in sst_cdev_ack()
/linux-6.1.9/arch/powerpc/include/asm/
Dps3.h488 unsigned long *bytes_copied);
490 unsigned long count, unsigned long *bytes_copied);
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dodp.c1203 size_t bytes_copied; in mlx5_ib_mr_wqe_pfault_handler() local
1229 &bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
1233 dev, pfault, qp, &wqe, &wqe_end, bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
1236 &bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
1240 dev, qp, wqe, &wqe_end, bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
1245 &bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
1249 dev, srq, &wqe, &wqe_end, bytes_copied); in mlx5_ib_mr_wqe_pfault_handler()
Dqp.c111 size_t *bytes_copied) in mlx5_ib_read_user_wqe_common() argument
128 if (!ret && bytes_copied) in mlx5_ib_read_user_wqe_common()
129 *bytes_copied = copy_length; in mlx5_ib_read_user_wqe_common()
138 size_t bytes_copied = 0; in mlx5_ib_read_kernel_wqe_sq() local
152 while (bytes_copied < wqe_length) { in mlx5_ib_read_kernel_wqe_sq()
154 min_t(size_t, buflen - bytes_copied, MLX5_SEND_WQE_BB); in mlx5_ib_read_kernel_wqe_sq()
159 memcpy(buffer + bytes_copied, p, copy_length); in mlx5_ib_read_kernel_wqe_sq()
160 bytes_copied += copy_length; in mlx5_ib_read_kernel_wqe_sq()
165 *bc = bytes_copied; in mlx5_ib_read_kernel_wqe_sq()
176 size_t bytes_copied; in mlx5_ib_read_user_wqe_sq() local
[all …]
/linux-6.1.9/drivers/memstick/host/
Dr592.c385 int bytes_copied = in r592_read_fifo_pio() local
387 buffer += bytes_copied; in r592_read_fifo_pio()
388 len -= bytes_copied; in r592_read_fifo_pio()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c2855 ssize_t *bytes_copied) in iwl_write_to_user_buf() argument
2857 int buf_size_left = count - *bytes_copied; in iwl_write_to_user_buf()
2864 *bytes_copied += *size; in iwl_write_to_user_buf()
2880 ssize_t size, bytes_copied = 0; in iwl_dbgfs_monitor_data_read() local
2911 &bytes_copied); in iwl_dbgfs_monitor_data_read()
2920 &bytes_copied); in iwl_dbgfs_monitor_data_read()
2927 &bytes_copied); in iwl_dbgfs_monitor_data_read()
2944 &bytes_copied); in iwl_dbgfs_monitor_data_read()
2951 return bytes_copied; in iwl_dbgfs_monitor_data_read()
/linux-6.1.9/fs/reiserfs/
Dinode.c2372 int bytes_copied = 0; in map_block_for_writepage() local
2405 if (bytes_copied > 0) { in map_block_for_writepage()
2407 "bytes_copied %d", bytes_copied); in map_block_for_writepage()
2448 memcpy(ih_item_body(bh, ih) + pos_in_item, p + bytes_copied, in map_block_for_writepage()
2452 bytes_copied += copy_size; in map_block_for_writepage()
2456 if (bytes_copied < bh_result->b_size && in map_block_for_writepage()
2457 (byte_offset + bytes_copied) < inode->i_size) { in map_block_for_writepage()
/linux-6.1.9/fs/nfsd/
Dnfs4proc.c1642 ssize_t bytes_copied = 0; in _nfsd_copy_file_range() local
1655 bytes_copied = nfsd_copy_file_range(src, src_pos, dst, dst_pos, in _nfsd_copy_file_range()
1657 if (bytes_copied <= 0) in _nfsd_copy_file_range()
1659 bytes_total -= bytes_copied; in _nfsd_copy_file_range()
1660 copy->cp_res.wr_bytes_written += bytes_copied; in _nfsd_copy_file_range()
1661 src_pos += bytes_copied; in _nfsd_copy_file_range()
1662 dst_pos += bytes_copied; in _nfsd_copy_file_range()
1674 return bytes_copied; in _nfsd_copy_file_range()
/linux-6.1.9/sound/soc/intel/atom/
Dsst-mfld-dsp.h254 u64 bytes_copied; member
/linux-6.1.9/drivers/android/
Dbinder.c2372 size_t bytes_copied = 0; in binder_do_deferred_txn_copies() local
2374 while (bytes_copied < sgc->length) { in binder_do_deferred_txn_copies()
2376 size_t bytes_left = sgc->length - bytes_copied; in binder_do_deferred_txn_copies()
2377 size_t offset = sgc->offset + bytes_copied; in binder_do_deferred_txn_copies()
2388 sgc->sender_uaddr + bytes_copied, in binder_do_deferred_txn_copies()
2390 bytes_copied += copy_size; in binder_do_deferred_txn_copies()
2401 bytes_copied += pf->skip_size; in binder_do_deferred_txn_copies()
2410 bytes_copied += sizeof(pf->fixup_data); in binder_do_deferred_txn_copies()
/linux-6.1.9/net/sctp/
Dsocket.c6133 int bytes_copied; in sctp_getsockopt_peer_addrs() local
6165 bytes_copied = ((char __user *)to) - optval; in sctp_getsockopt_peer_addrs()
6166 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_peer_addrs()
6173 size_t space_left, int *bytes_copied) in sctp_copy_laddrs() argument
6209 *bytes_copied += addrlen; in sctp_copy_laddrs()
6231 int bytes_copied = 0; in sctp_getsockopt_local_addrs() local
6271 space_left, &bytes_copied); in sctp_getsockopt_local_addrs()
6295 bytes_copied += addrlen; in sctp_getsockopt_local_addrs()
6301 if (copy_to_user(to, addrs, bytes_copied)) { in sctp_getsockopt_local_addrs()
6312 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_local_addrs()
/linux-6.1.9/drivers/scsi/
Dipr.c2968 int bytes_copied = 0; in ipr_sdt_copy() local
2979 while (bytes_copied < length && in ipr_sdt_copy()
2980 (ioa_dump->hdr.len + bytes_copied) < max_dump_size) { in ipr_sdt_copy()
2987 return bytes_copied; in ipr_sdt_copy()
2996 rem_len = length - bytes_copied; in ipr_sdt_copy()
3005 pci_address + bytes_copied, in ipr_sdt_copy()
3013 bytes_copied += cur_len; in ipr_sdt_copy()
3021 return bytes_copied; in ipr_sdt_copy()
3143 u32 max_dump_size, bytes_to_copy, bytes_copied, rc; in ipr_get_ioa_dump() local
3269 bytes_copied = ipr_sdt_copy(ioa_cfg, sdt_word, in ipr_get_ioa_dump()
[all …]
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_bsg.c214 unsigned int transfer_bytes, bytes_copied = 0; in lpfc_bsg_copy_data() local
258 bytes_copied += transfer_bytes; in lpfc_bsg_copy_data()
269 return bytes_copied; in lpfc_bsg_copy_data()