/drivers/dma/ |
H A D | iovlock.c | 15 * 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 D | fsldma.c | 581 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/w1/slaves/ |
H A D | w1_ds2431.c | 211 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 D | brd.c | 199 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 D | xen-blkfront.c | 19 * 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/gpu/drm/radeon/ |
H A D | radeon_asic.c | 7 * copy of this software and associated documentation files (the "Software"), 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 166 .copy = { 171 .copy = &r100_copy_blit, 240 .copy = { 245 .copy = &r100_copy_blit, 314 .copy = { 319 .copy = &r100_copy_blit, 388 .copy = { 393 .copy [all...] |
H A D | radeon_benchmark.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 64 DRM_ERROR("Unknown copy method\n"); 134 if ((rdev->asic->copy.dma) && (sdomain != ddomain)) {
|
H A D | radeon.h | 7 * copy of this software and associated documentation files (the "Software"), 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1191 /* copy functions for bo handling */ 1205 /* method used for bo copy */ 1206 int (*copy)(struct radeon_device *rdev, member in struct:radeon_asic::__anon652 1213 } copy; member in struct:radeon_asic 1747 #define radeon_copy_blit(rdev, s, d, np, f) (rdev)->asic->copy.blit((rdev), (s), (d), (np), (f)) 1748 #define radeon_copy_dma(rdev, s, d, np, f) (rdev)->asic->copy.dma((rdev), (s), (d), (np), (f)) 1749 #define radeon_copy(rdev, s, d, np, f) (rdev)->asic->copy.copy((rde [all...] |
/drivers/net/ethernet/sfc/ |
H A D | siena_sriov.c | 405 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/ |
H A D | macvtap.c | 411 * 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 D | virtio_net.c | 15 * 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/block/paride/ |
H A D | pg.c | 22 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/wireless/hostap/ |
H A D | hostap_proc.c | 276 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/s390/block/ |
H A D | dasd_fba.c | 329 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/crypto/ |
H A D | hifn_795x.c | 15 * You should have received a copy of the GNU General Public License 1463 unsigned int copy, drest = *drestp, nbytes = *nbytesp; local 1470 copy = min3(drest, size, dst->length); 1472 size -= copy; 1473 drest -= copy; 1474 nbytes -= copy; 1476 dprintk("%s: copy: %u, size: %u, drest: %u, nbytes: %u.\n", 1477 __func__, copy, size, drest, nbytes); 1493 unsigned int nbytes = req->nbytes, offset, copy, diff; local 1521 copy 1724 unsigned int srest = *srestp, nbytes = *nbytesp, copy; local [all...] |
/drivers/acpi/ |
H A D | ec.c | 22 * 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/infiniband/hw/ipath/ |
H A D | ipath_file_ops.c | 280 * 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 D | qib_file_ops.c | 265 * 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/scsi/ |
H A D | libiscsi_tcp.c | 129 * 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...] |
H A D | iscsi_tcp.c | 273 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.
|
/drivers/dma/ioat/ |
H A D | dma_v2.c | 14 * 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 D | dma.c | 14 * 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/input/misc/ |
H A D | yealink.c | 16 * 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/mtd/ubi/ |
H A D | vtbl.c | 15 * 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/gpu/drm/nouveau/ |
H A D | nvc0_pm.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 151 perflvl->copy = read_clk(dev, 0x09); 331 (ret = calc_clk(dev, 0x09, &info->eng[0x09], perflvl->copy)) ||
|