Home
last modified time | relevance | path

Searched refs:to_copy (Results 26 – 49 of 49) sorted by relevance

12

/openbmc/qemu/audio/
H A Dossaudio.c440 size_t to_copy = MIN(len, hw->size_emul - hw->pos_emul); in oss_write() local
441 memcpy(hw->buf_emul + hw->pos_emul, buf, to_copy); in oss_write()
443 hw->pos_emul = (hw->pos_emul + to_copy) % hw->size_emul; in oss_write()
444 buf += to_copy; in oss_write()
445 len -= to_copy; in oss_write()
/openbmc/qemu/hw/audio/
H A Dvia-ac97.c176 int temp, to_copy, copied; in out_cb() local
190 to_copy = MIN(temp, sizeof(tmpbuf)); in out_cb()
191 pci_dma_read(&s->dev, c->addr, tmpbuf, to_copy); in out_cb()
192 copied = AUD_write(s->vo, tmpbuf, to_copy); in out_cb()
H A Dsb16.c1192 size_t to_copy; in write_audio() local
1194 to_copy = MIN (temp, left); in write_audio()
1195 if (to_copy > sizeof (tmpbuf)) { in write_audio()
1196 to_copy = sizeof (tmpbuf); in write_audio()
1199 copied = k->read_memory(isa_dma, nchan, tmpbuf, dma_pos, to_copy); in write_audio()
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_queue_pair.c345 size_t to_copy; in qp_memcpy_to_queue_iter() local
355 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_to_queue_iter()
357 to_copy = size - bytes_copied; in qp_memcpy_to_queue_iter()
359 if (!copy_from_iter_full((u8 *)va + page_offset, to_copy, in qp_memcpy_to_queue_iter()
365 bytes_copied += to_copy; in qp_memcpy_to_queue_iter()
392 size_t to_copy; in qp_memcpy_from_queue_iter() local
403 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_from_queue_iter()
405 to_copy = size - bytes_copied; in qp_memcpy_from_queue_iter()
407 err = copy_to_iter((u8 *)va + page_offset, to_copy, to); in qp_memcpy_from_queue_iter()
408 if (err != to_copy) { in qp_memcpy_from_queue_iter()
[all …]
/openbmc/linux/net/batman-adv/
H A Dtp_meter.c539 size_t to_copy; in batadv_tp_fill_prerandom() local
551 to_copy = min(nbytes, bytes_inbuf); in batadv_tp_fill_prerandom()
553 memcpy(&buf[pos], &batadv_tp_prerandom[local_offset], to_copy); in batadv_tp_fill_prerandom()
554 pos += to_copy; in batadv_tp_fill_prerandom()
555 nbytes -= to_copy; in batadv_tp_fill_prerandom()
/openbmc/qemu/chardev/
H A Dchar-socket.c229 int to_copy = (s->read_msgfds_num < num) ? s->read_msgfds_num : num; in tcp_get_msgfds() local
233 if (to_copy) { in tcp_get_msgfds()
236 memcpy(fds, s->read_msgfds, to_copy * sizeof(int)); in tcp_get_msgfds()
239 for (i = to_copy; i < s->read_msgfds_num; i++) { in tcp_get_msgfds()
248 return to_copy; in tcp_get_msgfds()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c906 unsigned int to_copy; in efx_mcdi_phy_get_module_eeprom_page() local
913 to_copy = min(space, SFP_PAGE_SIZE - offset); in efx_mcdi_phy_get_module_eeprom_page()
933 to_copy); in efx_mcdi_phy_get_module_eeprom_page()
935 return to_copy; in efx_mcdi_phy_get_module_eeprom_page()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port_common.c914 unsigned int to_copy; in efx_mcdi_phy_get_module_eeprom_page() local
921 to_copy = min(space, SFP_PAGE_SIZE - offset); in efx_mcdi_phy_get_module_eeprom_page()
941 to_copy); in efx_mcdi_phy_get_module_eeprom_page()
943 return to_copy; in efx_mcdi_phy_get_module_eeprom_page()
/openbmc/linux/fs/smb/client/
H A Dsmbdirect.c1740 int to_copy, to_read, data_read, offset; in smbd_recv_buf() local
1796 to_copy = min_t(int, data_length - offset, to_read); in smbd_recv_buf()
1800 to_copy); in smbd_recv_buf()
1803 if (to_copy == data_length - offset) { in smbd_recv_buf()
1825 offset += to_copy; in smbd_recv_buf()
1827 to_read -= to_copy; in smbd_recv_buf()
1828 data_read += to_copy; in smbd_recv_buf()
1831 to_copy, data_length - offset, in smbd_recv_buf()
/openbmc/linux/fs/smb/server/
H A Dtransport_rdma.c677 int to_copy, to_read, data_read, offset; in smb_direct_read() local
737 to_copy = min_t(int, data_length - offset, to_read); in smb_direct_read()
739 to_copy); in smb_direct_read()
742 if (to_copy == data_length - offset) { in smb_direct_read()
759 offset += to_copy; in smb_direct_read()
762 to_read -= to_copy; in smb_direct_read()
763 data_read += to_copy; in smb_direct_read()
/openbmc/linux/drivers/crypto/amcc/
H A Dcrypto4xx_core.c455 unsigned int to_copy; in crypto4xx_copy_pkt_to_dst() local
474 to_copy = min(nbytes, PPC4XX_SD_BUFFER_SIZE * in crypto4xx_copy_pkt_to_dst()
476 scatterwalk_map_and_copy(buf, dst, dst_start, to_copy, 1); in crypto4xx_copy_pkt_to_dst()
477 nbytes -= to_copy; in crypto4xx_copy_pkt_to_dst()
482 dst_start += to_copy; in crypto4xx_copy_pkt_to_dst()
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-tmc-etr.c1481 unsigned long to_copy) in tmc_etr_sync_perf_buffer() argument
1493 while (to_copy > 0) { in tmc_etr_sync_perf_buffer()
1504 bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy, in tmc_etr_sync_perf_buffer()
1512 to_copy -= bytes; in tmc_etr_sync_perf_buffer()
/openbmc/linux/drivers/md/
H A Ddm-integrity.c1426 unsigned int to_copy; in dm_integrity_rw_tag() local
1440 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag()
1442 if (memcmp(dp, tag, to_copy)) { in dm_integrity_rw_tag()
1443 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag()
1450 if (unlikely(memcmp(dp, tag, to_copy))) in dm_integrity_rw_tag()
1452 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) { in dm_integrity_rw_tag()
1460 for (i = 0; i < to_copy; i++, ts--) { in dm_integrity_rw_tag()
1479 tag += to_copy; in dm_integrity_rw_tag()
1480 *metadata_offset += to_copy; in dm_integrity_rw_tag()
1487 hash_offset = (hash_offset + to_copy) % ic->tag_size; in dm_integrity_rw_tag()
[all …]
/openbmc/linux/drivers/media/usb/dvb-usb/
H A Dcxusb-analog.c153 unsigned int to_copy; in cxusb_auxbuf_append_urb() local
155 to_copy = urb->iso_frame_desc[i].actual_length; in cxusb_auxbuf_append_urb()
158 urb->iso_frame_desc[i].offset, to_copy); in cxusb_auxbuf_append_urb()
160 auxbuf->paylen += to_copy; in cxusb_auxbuf_append_urb()
/openbmc/linux/net/xdp/
H A Dxsk.c1436 void *to_copy; in xsk_getsockopt() local
1465 to_copy = &off; in xsk_getsockopt()
1473 to_copy = &off_v1; in xsk_getsockopt()
1476 if (copy_to_user(optval, to_copy, len)) in xsk_getsockopt()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dsta.c1084 size_t to_copy; in iwlagn_send_sta_key() local
1105 to_copy = min_t(size_t, sizeof(sta_cmd.key.key), keyconf->keylen); in iwlagn_send_sta_key()
1106 memcpy(sta_cmd.key.key, keyconf->key, to_copy); in iwlagn_send_sta_key()
/openbmc/linux/net/ceph/
H A Dosdmap.c1202 u32 to_copy; in osdmap_set_max_osd() local
1219 to_copy = min(map->max_osd, max); in osdmap_set_max_osd()
1221 memcpy(state, map->osd_state, to_copy * sizeof(*state)); in osdmap_set_max_osd()
1222 memcpy(weight, map->osd_weight, to_copy * sizeof(*weight)); in osdmap_set_max_osd()
1223 memcpy(addr, map->osd_addr, to_copy * sizeof(*addr)); in osdmap_set_max_osd()
1247 to_copy * sizeof(*affinity)); in osdmap_set_max_osd()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c3435 size_t to_copy = log_ctx.pos - *pos; in dtn_log_read() local
3437 to_copy = min(to_copy, size); in dtn_log_read()
3439 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { in dtn_log_read()
3440 *pos += to_copy; in dtn_log_read()
3441 result = to_copy; in dtn_log_read()
/openbmc/linux/fs/ntfs3/
H A Dindex.c1799 u32 to_copy, used, used1; in indx_insert_into_buffer() local
1871 to_copy = PtrOffset(de_t, sp); in indx_insert_into_buffer()
1872 hdr_insert_head(hdr2, de_t, to_copy); in indx_insert_into_buffer()
1875 used = used1 - to_copy - sp_size; in indx_insert_into_buffer()
/openbmc/linux/kernel/trace/
H A Dbpf_trace.c1763 u32 to_copy; in BPF_CALL_4() local
1780 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4()
1781 memcpy(buf, br_stack->entries, to_copy); in BPF_CALL_4()
1783 return to_copy; in BPF_CALL_4()
/openbmc/qemu/hw/9pfs/
H A D9p.c2623 int i, to_copy; in v9fs_xattr_write() local
2647 to_copy = sg[i].iov_len; in v9fs_xattr_write()
2649 to_copy = write_count; in v9fs_xattr_write()
2651 memcpy((char *)fidp->fs.xattr.value + off, sg[i].iov_base, to_copy); in v9fs_xattr_write()
2653 off += to_copy; in v9fs_xattr_write()
2654 write_count -= to_copy; in v9fs_xattr_write()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c3423 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local
3457 to_copy = 1; in bnx2x_pkt_req_lin()
3471 to_copy = 1; in bnx2x_pkt_req_lin()
3480 to_copy = 1; in bnx2x_pkt_req_lin()
3485 if (unlikely(to_copy)) in bnx2x_pkt_req_lin()
3491 return to_copy; in bnx2x_pkt_req_lin()
/openbmc/linux/net/core/
H A Dskbuff.c6574 int to_copy, gfp_t gfp) in pskb_extract() argument
6582 pskb_trim(clone, to_copy)) { in pskb_extract()
/openbmc/linux/include/linux/
H A Dskbuff.h4040 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,

12