Home
last modified time | relevance | path

Searched refs:remaining_size (Results 1 – 10 of 10) sorted by relevance

/drivers/misc/bcm-vk/
Dbcm_vk_sg.c45 u32 remaining_size; in bcm_vk_dma_alloc() local
100 remaining_size = vkdata->size; in bcm_vk_dma_alloc()
104 size = min_t(size_t, PAGE_SIZE - offset, remaining_size); in bcm_vk_dma_alloc()
105 remaining_size -= size; in bcm_vk_dma_alloc()
118 size = min_t(size_t, PAGE_SIZE, remaining_size); in bcm_vk_dma_alloc()
119 remaining_size -= size; in bcm_vk_dma_alloc()
/drivers/base/firmware_loader/
Dsysfs_upload.c117 return sysfs_emit(buf, "%u\n", fwlp->remaining_size); in remaining_size_show()
119 DEVICE_ATTR_RO(remaining_size);
173 ret = fwlp->ops->prepare(fwl, fwlp->data, fwlp->remaining_size); in fw_upload_main()
180 while (fwlp->remaining_size) { in fw_upload_main()
182 fwlp->remaining_size, &written); in fw_upload_main()
192 fwlp->remaining_size -= written; in fw_upload_main()
253 fwlp->remaining_size = fw_priv->size; in fw_upload_start()
Dsysfs_upload.h35 u32 remaining_size; /* size remaining to transfer */ member
/drivers/md/
Ddm-flakey.c416 unsigned size, remaining_size, nr_iovecs, order; in clone_bio() local
435 remaining_size = size; in clone_bio()
438 while (remaining_size) { in clone_bio()
442 unsigned remaining_order = __fls((remaining_size + PAGE_SIZE - 1) >> PAGE_SHIFT); in clone_bio()
455 size_to_add = min((unsigned)PAGE_SIZE << order, remaining_size); in clone_bio()
472 remaining_size -= size_to_add; in clone_bio()
Ddm-writecache.c1252 unsigned int remaining_size = wc->block_size; in bio_copy_block() local
1259 if (unlikely(size > remaining_size)) in bio_copy_block()
1260 size = remaining_size; in bio_copy_block()
1279 remaining_size -= size; in bio_copy_block()
1281 } while (unlikely(remaining_size)); in bio_copy_block()
Ddm-crypt.c1686 unsigned int remaining_size; in crypt_alloc_buffer() local
1699 remaining_size = size; in crypt_alloc_buffer()
1701 while (remaining_size) { in crypt_alloc_buffer()
1704 unsigned remaining_order = __fls((remaining_size + PAGE_SIZE - 1) >> PAGE_SHIFT); in crypt_alloc_buffer()
1732 size_to_add = min((unsigned)PAGE_SIZE << order, remaining_size); in crypt_alloc_buffer()
1734 remaining_size -= size_to_add; in crypt_alloc_buffer()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c431 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local
481 remaining_size = (u64)vres->base.size; in amdgpu_vram_mgr_new()
484 while (remaining_size) { in amdgpu_vram_mgr_new()
493 size = min(remaining_size, 2ULL << 30); in amdgpu_vram_mgr_new()
527 if (size > remaining_size) in amdgpu_vram_mgr_new()
528 remaining_size = 0; in amdgpu_vram_mgr_new()
530 remaining_size -= size; in amdgpu_vram_mgr_new()
/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c221 int remaining_size = driver_ver_sz; in mlx5_set_driver_version() local
229 strncpy(string, "Linux", remaining_size); in mlx5_set_driver_version()
231 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
232 strncat(string, ",", remaining_size); in mlx5_set_driver_version()
234 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
235 strncat(string, KBUILD_MODNAME, remaining_size); in mlx5_set_driver_version()
237 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
238 strncat(string, ",", remaining_size); in mlx5_set_driver_version()
240 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
242 snprintf(string + strlen(string), remaining_size, "%u.%u.%u", in mlx5_set_driver_version()
/drivers/dma/
Dat_xdmac.c1174 size_t remaining_size = len, xfer_size = 0, ublen; in at_xdmac_prep_dma_memcpy() local
1208 while (remaining_size) { in at_xdmac_prep_dma_memcpy()
1211 dev_dbg(chan2dev(chan), "%s: remaining_size=%zu\n", __func__, remaining_size); in at_xdmac_prep_dma_memcpy()
1228 if (remaining_size >= AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth) in at_xdmac_prep_dma_memcpy()
1231 xfer_size = remaining_size; in at_xdmac_prep_dma_memcpy()
1242 remaining_size -= xfer_size; in at_xdmac_prep_dma_memcpy()
/drivers/gpu/drm/vc4/
Dvc4_validate.c600 uint32_t remaining_size = tex->base.size - p0; in reloc_tex() local
606 if (p1 > remaining_size - 4) { in reloc_tex()