Home
last modified time | relevance | path

Searched refs:copy_len (Results 1 – 25 of 27) sorted by relevance

12

/linux-3.4.99/net/sunrpc/xprtrdma/
Drpc_rdma.c296 int copy_len; in rpcrdma_inline_pullup() local
316 copy_len = rqst->rq_snd_buf.page_len; in rpcrdma_inline_pullup()
320 if (destp + copy_len != rqst->rq_snd_buf.tail[0].iov_base) { in rpcrdma_inline_pullup()
321 memmove(destp + copy_len, in rpcrdma_inline_pullup()
326 __func__, destp + copy_len, curlen); in rpcrdma_inline_pullup()
329 r_xprt->rx_stats.pullup_copy_count += copy_len; in rpcrdma_inline_pullup()
334 npages = PAGE_ALIGN(page_base+copy_len) >> PAGE_SHIFT; in rpcrdma_inline_pullup()
335 for (i = 0; copy_len && i < npages; i++) { in rpcrdma_inline_pullup()
337 if (curlen > copy_len) in rpcrdma_inline_pullup()
338 curlen = copy_len; in rpcrdma_inline_pullup()
[all …]
/linux-3.4.99/net/ipv4/netfilter/
Dipt_ULOG.c162 size_t size, copy_len; in ipt_ulog_packet() local
173 copy_len = skb->len; in ipt_ulog_packet()
175 copy_len = loginfo->copy_range; in ipt_ulog_packet()
177 size = NLMSG_SPACE(sizeof(*pm) + copy_len); in ipt_ulog_packet()
201 sizeof(*pm)+copy_len); in ipt_ulog_packet()
211 pm->data_len = copy_len; in ipt_ulog_packet()
243 if (skb_copy_bits(skb, 0, pm->payload, copy_len) < 0) in ipt_ulog_packet()
301 loginfo.copy_range = li->u.ulog.copy_len; in ipt_logfn()
/linux-3.4.99/net/bridge/netfilter/
Debt_ulog.c125 size_t size, copy_len; in ebt_ulog_packet() local
134 copy_len = skb->len + ETH_HLEN; in ebt_ulog_packet()
136 copy_len = uloginfo->cprange; in ebt_ulog_packet()
138 size = NLMSG_SPACE(sizeof(*pm) + copy_len); in ebt_ulog_packet()
168 pm->data_len = copy_len; in ebt_ulog_packet()
195 if (skb_copy_bits(skb, -ETH_HLEN, pm->data, copy_len) < 0) in ebt_ulog_packet()
237 loginfo.cprange = li->u.ulog.copy_len; in ebt_log_packet()
Debt_nflog.c29 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
/linux-3.4.99/drivers/staging/ozwpan/
Dozhcd.c725 int copy_len; in oz_hcd_get_desc_cnf() local
729 copy_len = required_size-offset; in oz_hcd_get_desc_cnf()
730 if (length <= copy_len) in oz_hcd_get_desc_cnf()
731 copy_len = length; in oz_hcd_get_desc_cnf()
732 memcpy(urb->transfer_buffer+offset, desc, copy_len); in oz_hcd_get_desc_cnf()
733 offset += copy_len; in oz_hcd_get_desc_cnf()
884 int copy_len; in oz_hcd_control_cnf() local
887 copy_len = data_len; in oz_hcd_control_cnf()
889 copy_len = urb->transfer_buffer_length; in oz_hcd_control_cnf()
890 if (copy_len) in oz_hcd_control_cnf()
[all …]
/linux-3.4.99/drivers/scsi/isci/
Dprobe_roms.c67 size_t copy_len; in isci_request_oprom() local
71 copy_len = min(oem_hdr.len - sizeof(oem_hdr), in isci_request_oprom()
76 copy_len); in isci_request_oprom()
Drequest.c1411 int copy_len; in sci_stp_request_pio_data_in_copy_data_buffer() local
1427 copy_len = min_t(int, total_len, sg_dma_len(sg)); in sci_stp_request_pio_data_in_copy_data_buffer()
1429 memcpy(kaddr + sg->offset, src_addr, copy_len); in sci_stp_request_pio_data_in_copy_data_buffer()
1431 total_len -= copy_len; in sci_stp_request_pio_data_in_copy_data_buffer()
1432 src_addr += copy_len; in sci_stp_request_pio_data_in_copy_data_buffer()
/linux-3.4.99/drivers/net/wireless/hostap/
Dhostap_info.c305 int i, result_size, copy_len, new_count; in prism2_info_hostscanresults() local
320 copy_len = result_size = le16_to_cpu(*pos); in prism2_info_hostscanresults()
326 if (copy_len > sizeof(struct hfa384x_hostscan_result)) in prism2_info_hostscanresults()
327 copy_len = sizeof(struct hfa384x_hostscan_result); in prism2_info_hostscanresults()
341 memcpy(&results[i], ptr, copy_len); in prism2_info_hostscanresults()
/linux-3.4.99/drivers/infiniband/hw/cxgb4/
Dmem.c48 int copy_len, num_wqe, i, ret = 0; in write_adapter_mem() local
57 copy_len = len > C4IW_MAX_INLINE_SIZE ? C4IW_MAX_INLINE_SIZE : in write_adapter_mem()
60 roundup(copy_len, T4_ULPTX_MIN_IO), 16); in write_adapter_mem()
82 DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO))); in write_adapter_mem()
89 sc->len = cpu_to_be32(roundup(copy_len, T4_ULPTX_MIN_IO)); in write_adapter_mem()
94 memcpy(to_dp, from_dp, copy_len); in write_adapter_mem()
96 memset(to_dp, 0, copy_len); in write_adapter_mem()
97 if (copy_len % T4_ULPTX_MIN_IO) in write_adapter_mem()
98 memset(to_dp + copy_len, 0, T4_ULPTX_MIN_IO - in write_adapter_mem()
99 (copy_len % T4_ULPTX_MIN_IO)); in write_adapter_mem()
/linux-3.4.99/drivers/scsi/libfc/
Dfc_libfc.c117 u32 copy_len = 0; in fc_copy_buffer_to_sglist() local
152 copy_len += sg_bytes; in fc_copy_buffer_to_sglist()
154 return copy_len; in fc_copy_buffer_to_sglist()
Dfc_fcp.c442 u32 copy_len = 0; in fc_fcp_recv_data() local
487 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents, in fc_fcp_recv_data()
491 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents, in fc_fcp_recv_data()
523 fsp->xfer_contig_end += copy_len; in fc_fcp_recv_data()
524 fsp->xfer_len += copy_len; in fc_fcp_recv_data()
/linux-3.4.99/drivers/memstick/host/
Dr592.c335 int copy_len = kfifo_in(&dev->pio_fifo, buffer, len); in r592_write_fifo_pio() local
339 len -= copy_len; in r592_write_fifo_pio()
340 buffer += copy_len; in r592_write_fifo_pio()
342 copy_len = kfifo_out(&dev->pio_fifo, tmp, 4); in r592_write_fifo_pio()
343 WARN_ON(copy_len != 4); in r592_write_fifo_pio()
/linux-3.4.99/include/net/netfilter/
Dnf_log.h22 u_int32_t copy_len; member
/linux-3.4.99/net/netfilter/
Dxt_NFLOG.c31 li.u.ulog.copy_len = info->len; in nflog_tg()
/linux-3.4.99/drivers/crypto/
Dmv_cesa.c190 int copy_len; in copy_src_to_buf() local
202 copy_len = min(p->sg_src_left, len); in copy_src_to_buf()
203 memcpy(dbuf, sbuf, copy_len); in copy_src_to_buf()
205 p->src_start += copy_len; in copy_src_to_buf()
206 p->sg_src_left -= copy_len; in copy_src_to_buf()
208 len -= copy_len; in copy_src_to_buf()
209 dbuf += copy_len; in copy_src_to_buf()
/linux-3.4.99/fs/xfs/
Dxfs_log.c1829 int *copy_len, in xlog_write_setup_copy() argument
1840 *copy_len = still_to_copy; in xlog_write_setup_copy()
1841 ophdr->oh_len = cpu_to_be32(*copy_len); in xlog_write_setup_copy()
1850 *copy_len = space_available; in xlog_write_setup_copy()
1851 ophdr->oh_len = cpu_to_be32(*copy_len); in xlog_write_setup_copy()
1855 *bytes_consumed += *copy_len; in xlog_write_setup_copy()
2020 int copy_len; in xlog_write() local
2043 &copy_off, &copy_len, in xlog_write()
2049 ASSERT(copy_len >= 0); in xlog_write()
2050 memcpy(ptr, reg->i_addr + copy_off, copy_len); in xlog_write()
[all …]
/linux-3.4.99/drivers/infiniband/hw/cxgb3/
Dcxio_hal.c600 u32 i, nr_wqe, copy_len; in cxio_hal_ctrl_qp_write_mem() local
659 copy_len = len > 96 ? 96 : len; in cxio_hal_ctrl_qp_write_mem()
663 memcpy(wqe, copy_data, copy_len); in cxio_hal_ctrl_qp_write_mem()
665 memset(wqe, 0, copy_len); in cxio_hal_ctrl_qp_write_mem()
666 if (copy_len % 32) in cxio_hal_ctrl_qp_write_mem()
667 memset(((u8 *) wqe) + copy_len, 0, in cxio_hal_ctrl_qp_write_mem()
668 32 - (copy_len % 32)); in cxio_hal_ctrl_qp_write_mem()
/linux-3.4.99/drivers/net/wireless/libertas_tf/
Dcmd.c50 uint16_t copy_len; in lbtf_cmd_copyback() local
52 copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); in lbtf_cmd_copyback()
53 memcpy(buf, resp, copy_len); in lbtf_cmd_copyback()
/linux-3.4.99/drivers/net/tokenring/
D3c359.c921 int frame_length = 0, copy_len = 0 ; in xl_rx() local
962 copy_len = le32_to_cpu(xl_priv->xl_rx_ring[xl_priv->rx_ring_tail].upfraglen) & 0x7FFF; in xl_rx()
963 frame_length -= copy_len ; in xl_rx()
966 skb_put(skb, copy_len), in xl_rx()
967 copy_len); in xl_rx()
975 skb_put(skb,copy_len), frame_length); in xl_rx()
/linux-3.4.99/drivers/net/ethernet/sun/
Dsunvnet.c201 unsigned int copy_len; in vnet_rx_one() local
218 copy_len = (len + VNET_PACKET_SKIP + 7U) & ~7U; in vnet_rx_one()
219 skb_put(skb, copy_len); in vnet_rx_one()
221 skb->data, copy_len, 0, in vnet_rx_one()
/linux-3.4.99/drivers/net/ethernet/atheros/atlx/
Datl2.c850 u32 offset, copy_len; in atl2_xmit_frame() local
884 copy_len = adapter->txd_ring_size - offset; in atl2_xmit_frame()
885 if (copy_len >= skb->len) { in atl2_xmit_frame()
889 memcpy(((u8 *)adapter->txd_ring)+offset, skb->data, copy_len); in atl2_xmit_frame()
890 memcpy((u8 *)adapter->txd_ring, skb->data+copy_len, in atl2_xmit_frame()
891 skb->len-copy_len); in atl2_xmit_frame()
892 offset = ((u32)(skb->len-copy_len + 3) & ~3); in atl2_xmit_frame()
/linux-3.4.99/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c1806 int copied, offset, copy_len, hdr_len = 0, tso = 0, vlan_oob = 0; in netxen_tso_check() local
1883 copy_len = min((int)sizeof(struct cmd_desc_type0) - offset, in netxen_tso_check()
1891 (char *)vh + 16, copy_len - 16); in netxen_tso_check()
1893 copied = copy_len - VLAN_HLEN; in netxen_tso_check()
1901 copy_len = min((int)sizeof(struct cmd_desc_type0) - offset, in netxen_tso_check()
1908 (char *)hwdesc + offset, copy_len); in netxen_tso_check()
1910 copied += copy_len; in netxen_tso_check()
/linux-3.4.99/Documentation/crypto/
Dasync-tx-api.txt138 size_t copy_len)
151 tx = async_memcpy(copy_dest, copy_src, 0, 0, copy_len, &submit);
/linux-3.4.99/drivers/net/wireless/libertas/
Dcmd.c34 uint16_t copy_len; in lbs_cmd_copyback() local
36 copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); in lbs_cmd_copyback()
37 memcpy(buf, resp, copy_len); in lbs_cmd_copyback()
/linux-3.4.99/drivers/infiniband/hw/nes/
Dnes_hw.c3161 int copy_len = 0; in nes_bld_terminate_hdr() local
3175 copy_len = 2; in nes_bld_terminate_hdr()
3180 copy_len += TERM_DDP_LEN_TAGGED; in nes_bld_terminate_hdr()
3185 copy_len += TERM_DDP_LEN_UNTAGGED; in nes_bld_terminate_hdr()
3191 copy_len += TERM_RDMA_LEN; in nes_bld_terminate_hdr()
3355 if (copy_len) in nes_bld_terminate_hdr()
3356 memcpy(termhdr + 1, pkt, copy_len); in nes_bld_terminate_hdr()
3365 return sizeof(struct nes_terminate_hdr) + copy_len; in nes_bld_terminate_hdr()

12