Searched defs:copy (Results 1 - 25 of 31) sorted by relevance

12

/drivers/dma/
H A Diovlock.c15 * You should have received a copy of the GNU General Public License along with
155 int copy; local
179 copy = min_t(int, PAGE_SIZE - iov_byte_offset, len);
180 copy = min_t(int, copy, iov[iovec_idx].iov_len);
186 copy);
193 len -= copy;
194 iov[iovec_idx].iov_len -= copy;
195 iov[iovec_idx].iov_base += copy;
200 kdata += copy;
217 int copy; local
[all...]
H A Dfsldma.c581 size_t copy; local
600 copy = min(len, (size_t)FSL_DMA_BCR_MAX_CNT);
602 set_desc_cnt(chan, &new->hw, copy);
615 len -= copy;
616 dma_src += copy;
617 dma_dst += copy;
/drivers/net/wireless/hostap/
H A Dhostap_proc.c276 int start_bytes, left, copy, copied; local
290 copy = start_bytes - off;
291 if (copy > count)
292 copy = count;
293 memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy);
294 left -= copy;
296 memcpy(&page[copy], local->io_debug, left);
/drivers/mtd/ubi/
H A Dvtbl.c15 * You should have received a copy of the GNU General Public License
30 * eraseblock stores one volume table copy, i.e. LEB 0 and LEB 1 duplicate each
296 * create_vtbl - create a copy of volume table.
299 * @copy: number of the volume table copy
306 int copy, void *vtbl)
312 ubi_msg("create volume table (copy #%d)", copy + 1);
330 vid_hdr->lnum = cpu_to_be32(copy);
408 * we compare it with LEB 1, and if they are different, we copy LE
305 create_vtbl(struct ubi_device *ubi, struct ubi_scan_info *si, int copy, void *vtbl) argument
[all...]
/drivers/w1/slaves/
H A Dw1_ds2431.c211 int copy; local
235 /* copy at most to the boundary of the PAGE or len */
236 copy = W1_F2D_SCRATCH_SIZE -
239 if (copy > len)
240 copy = len;
242 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy);
250 copy = W1_F2D_SCRATCH_SIZE;
251 if (w1_f2d_write(sl, addr, copy, buf) < 0) {
256 buf += copy;
257 addr += copy;
[all...]
/drivers/block/
H A Dbrd.c199 size_t copy; local
201 copy = min_t(size_t, n, PAGE_SIZE - offset);
204 if (copy < n) {
205 sector += copy >> SECTOR_SHIFT;
239 size_t copy; local
241 copy = min_t(size_t, n, PAGE_SIZE - offset);
246 memcpy(dst + offset, src, copy);
249 if (copy < n) {
250 src += copy;
251 sector += copy >> SECTOR_SHIF
271 size_t copy; local
[all...]
H A Dxen-blkfront.c19 * Permission is hereby granted, free of charge, to any person obtaining a copy
21 * restriction, including without limitation the rights to use, copy, modify,
346 /* Keep a private copy so we can reissue requests when recovering. */
1021 struct blk_shadow *copy; local
1024 /* Stage 1: Make a safe copy of the shadow state. */
1025 copy = kmalloc(sizeof(info->shadow),
1027 if (!copy)
1029 memcpy(copy, info->shadow, sizeof(info->shadow));
1041 if (!copy[i].request)
1044 /* Grab a request slot and copy shado
[all...]
/drivers/dma/ioat/
H A Ddma_v2.c14 * You should have received a copy of the GNU General Public License along with
601 /* copy current descriptors to the new ring */
639 /* copy current descriptors to the new ring, dropping the
751 size_t copy = min_t(size_t, len, 1 << ioat->xfercap_log); local
756 hw->size = copy;
761 len -= copy;
762 dst += copy;
763 src += copy;
H A Ddma.c14 * You should have received a copy of the GNU General Public License along with
25 * copy operations.
464 size_t copy; local
479 copy = min_t(size_t, len, ioat->xfercap);
482 hw->size = copy;
489 len -= copy;
490 dest += copy;
491 src += copy;
825 /* Start copy, using first DMA channel */
863 dev_err(dev, "Self-test copy time
[all...]
/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c420 u32 copy = (ring->size - index) * TXBB_SIZE; local
423 for (i = desc_size - copy - 4; i >= 0; i -= 4) {
428 *((u32 *) (ring->bounce_buf + copy + i));
431 for (i = copy - 4; i >= 4 ; i -= 4) {
762 /* If we used a bounce buffer then copy descriptor back into place */
/drivers/s390/block/
H A Ddasd_fba.c329 char *copy = kmem_cache_alloc(dasd_page_cache, local
331 if (copy && rq_data_dir(req) == WRITE)
332 memcpy(copy + bv->bv_offset, dst, bv->bv_len);
333 if (copy)
334 dst = copy + bv->bv_offset;
/drivers/input/misc/
H A Dyealink.c16 * You should have received a copy of the GNU General Public License
127 } master, copy; member in struct:yealink_dev
347 /* find update candidates: copy != master */
350 if (val != yld->copy.b[ix])
364 yld->copy.b[ix] = val;
402 yld->copy.b[ix] = val;
518 yld->copy.b[i] = ~yld->master.b[i];
/drivers/scsi/
H A Discsi_tcp.c273 unsigned int offset, copy; local
278 copy = segment->size - offset;
288 copy, flags);
293 .iov_len = copy
296 r = kernel_sendmsg(sk, &msg, &iov, 1, copy);
388 * Simply copy the data_segment to the send segment, and return.
H A Dlibiscsi_tcp.c129 * to the network layer's zero copy send path. If not we
274 * iscsi_tcp_segment_recv - copy data to segment
276 * @segment: the buffer to copy to
287 * but in the future we could implement combined copy+crc,
295 unsigned int copy = 0, copied = 0; local
297 while (!iscsi_tcp_segment_done(tcp_conn, segment, 1, copy)) {
304 copy = min(len - copied, segment->size - segment->copied);
305 ISCSI_DBG_TCP(tcp_conn->iscsi_conn, "copying %d\n", copy);
306 memcpy(segment->data + segment->copied, ptr + copied, copy);
307 copied += copy;
[all...]
/drivers/acpi/
H A Dec.c22 * You should have received a copy of the GNU General Public License along
574 struct acpi_ec_query_handler *handler, *copy; local
580 copy = kmalloc(sizeof(*handler), GFP_KERNEL);
581 if (!copy)
583 memcpy(copy, handler, sizeof(*copy));
585 return acpi_os_execute((copy->func) ?
587 acpi_ec_run, copy);
/drivers/block/paride/
H A Dpg.c22 copy the data through an internal buffer. In keeping with all
621 int copy; local
637 copy = 0;
641 copy = hdr.dlen;
642 if (copy > (count - hs))
643 copy = count - hs;
651 if (copy > 0)
652 if (copy_to_user(buf + hs, dev->bufptr, copy))
654 return copy + hs;
/drivers/net/
H A Dmacvtap.c411 * so far only KVM virtio_net uses macvtap, enable zero copy between
415 * copy so we don't have to look at the lower device directly.
489 int copy = skb_headlen(skb); local
500 /* copy up to skb headlen */
501 while (count && (copy > 0)) {
502 size = min_t(unsigned int, copy, from->iov_len - offset);
506 if (copy > size) {
510 copy -= size;
736 /* copy skb_ubuf_info for callback when skb has no error */
801 int copy; local
[all...]
H A Dvirtio_net.c15 * You should have received a copy of the GNU General Public License
165 unsigned int copy, hdr_len, offset; local
170 /* copy small packet so we can reuse these pages for small data */
190 copy = len;
191 if (copy > skb_tailroom(skb))
192 copy = skb_tailroom(skb);
193 memcpy(skb_put(skb, copy), p, copy); local
195 len -= copy;
196 offset += copy;
[all...]
/drivers/staging/wlags49_h2/
H A Dhcf.c1247 * - a copy is made from the information in the last descriptor of the FrameList into the current
1249 * - the remainder of the DescriptorList is detached from the copy by setting the next_desc_addr at NULL
1250 * - the DMA control bits of the copy are cleared to do not confuse the MSF
1251 * - the copy of the last descriptor (i.e. the "old" DELWA Descriptor) is chained to the prev Descriptor
1256 * This function makes a copy of that last host-owned descriptor, so the MSF will get a copy of the descriptor.
1263 8: Be careful once you start re-ordering the steps in the copy process, that it still works for cases
1275 DESC_STRCT *copy, *p, *prev; local
1309 copy = head;
1312 copy
[all...]
/drivers/video/
H A Dleo.c119 u32 copy; member in struct:leo_lc_ss0_usr
264 * @regno: boolean, 0 copy local, 1 get_user() function
/drivers/infiniband/hw/ipath/
H A Dipath_file_ops.c280 * use again, in our shadow copy.
433 /* jump here if copy out of updated info failed... */
462 * to user. Since we did the copy in already, this "should
741 * re-init the software copy of the head register
756 * On enable, force in-memory copy of the tail register to
759 * copy or not on return from the system call. The chip
763 * the disable, but eventually the in-memory copy will be
783 * in memory copy, since we could overwrite an update by the
1320 /* in-memory copy of pioavail registers */
1336 /* in-memory copy o
2237 size_t consumed, copy; local
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c265 * use again, in our shadow copy.
396 /* jump here if copy out of updated info failed... */
426 * to user. Since we did the copy in already, this "should
653 * re-init the software copy of the head register
666 * On enable, force in-memory copy of the tail register to
669 * copy or not on return from the system call. The chip
1056 /* in-memory copy of pioavail registers */
1071 /* in-memory copy of rcvhdrq tail register */
1629 * have the in-memory copy out of date at startup for this range of
1663 * explicitly set the in-memory tail copy t
1969 size_t consumed, copy = 0; local
[all...]
/drivers/net/ethernet/sfc/
H A Dsiena_sriov.c405 struct efx_memcpy_req copy[4]; local
417 memset(copy, '\0', sizeof(copy));
419 copy[0].from_buf = &status->generation_start;
420 copy[0].to_rid = vf->pci_rid;
421 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status,
423 copy[0].length = sizeof(status->generation_start);
429 copy[1].from_rid = efx->pci_dev->devfn;
430 copy[1].from_addr = efx->vfdi_status.dma_addr + data_offset;
431 copy[
866 struct efx_memcpy_req copy[2]; local
[all...]
/drivers/net/xen-netback/
H A Dnetback.c16 * Permission is hereby granted, free of charge, to any person obtaining a copy
18 * restriction, including without limitation the rights to use, copy, modify,
110 * head/fragment page uses 2 copy operations because it
212 * This is the amount of packet we copy rather than map, so that the
361 struct gnttab_copy *copy; member in struct:netrx_pending_operations
427 copy_gop = npo->copy + npo->copy_prod++;
551 copy_op = npo->copy + npo->copy_cons++;
554 "Bad status %d from copy to DOM%d.\n",
609 .copy = netbk->grant_copy_op,
1249 rmb(); /* Ensure that we see the request before we copy i
[all...]
/drivers/scsi/cxgbi/
H A Dlibcxgbi.c1807 unsigned int copy; local
1821 copy = min(datalen, sglen);
1825 frags[i - 1].size += copy;
1835 frags[i].size = copy;
1838 datalen -= copy;
1839 sgoffset += copy;
1840 sglen -= copy;

Completed in 2330 milliseconds

12