Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/platform/efi/
Dquirks.c130 u64 storage_size, remaining_size, max_size; in query_variable_store_nonblocking() local
133 &remaining_size, in query_variable_store_nonblocking()
138 if (remaining_size - size < EFI_MIN_RESERVE) in query_variable_store_nonblocking()
155 u64 storage_size, remaining_size, max_size; in efi_query_variable_store() local
164 &remaining_size, &max_size); in efi_query_variable_store()
173 if ((remaining_size - size < EFI_MIN_RESERVE) && in efi_query_variable_store()
181 unsigned long dummy_size = remaining_size + 1024; in efi_query_variable_store()
209 &remaining_size, &max_size); in efi_query_variable_store()
217 if (remaining_size - size < EFI_MIN_RESERVE) in efi_query_variable_store()
/linux-6.1.9/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()
/linux-6.1.9/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
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c392 u64 size, remaining_size, lpfn, fpfn; in amdgpu_vram_mgr_new() local
442 remaining_size = (u64)vres->base.num_pages << PAGE_SHIFT; in amdgpu_vram_mgr_new()
445 while (remaining_size) { in amdgpu_vram_mgr_new()
454 size = min(remaining_size, 2ULL << 30); in amdgpu_vram_mgr_new()
487 if (size > remaining_size) in amdgpu_vram_mgr_new()
488 remaining_size = 0; in amdgpu_vram_mgr_new()
490 remaining_size -= size; in amdgpu_vram_mgr_new()
/linux-6.1.9/fs/
Dxattr.c1123 static int xattr_list_one(char **buffer, ssize_t *remaining_size, in xattr_list_one() argument
1128 if (*remaining_size < len) in xattr_list_one()
1133 *remaining_size -= len; in xattr_list_one()
1145 ssize_t remaining_size = size; in simple_xattr_list() local
1151 err = xattr_list_one(&buffer, &remaining_size, in simple_xattr_list()
1157 err = xattr_list_one(&buffer, &remaining_size, in simple_xattr_list()
1171 err = xattr_list_one(&buffer, &remaining_size, xattr->name); in simple_xattr_list()
1177 return err ? err : size - remaining_size; in simple_xattr_list()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c215 int remaining_size = driver_ver_sz; in mlx5_set_driver_version() local
223 strncpy(string, "Linux", remaining_size); in mlx5_set_driver_version()
225 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
226 strncat(string, ",", remaining_size); in mlx5_set_driver_version()
228 remaining_size = max_t(int, 0, driver_ver_sz - strlen(string)); in mlx5_set_driver_version()
229 strncat(string, KBUILD_MODNAME, 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()
236 snprintf(string + strlen(string), remaining_size, "%u.%u.%u", in mlx5_set_driver_version()
/linux-6.1.9/drivers/dma/
Dat_xdmac.c1094 size_t remaining_size = len, xfer_size = 0, ublen; in at_xdmac_prep_dma_memcpy() local
1128 while (remaining_size) { in at_xdmac_prep_dma_memcpy()
1131 dev_dbg(chan2dev(chan), "%s: remaining_size=%zu\n", __func__, remaining_size); in at_xdmac_prep_dma_memcpy()
1148 if (remaining_size >= AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth) in at_xdmac_prep_dma_memcpy()
1151 xfer_size = remaining_size; in at_xdmac_prep_dma_memcpy()
1162 remaining_size -= xfer_size; in at_xdmac_prep_dma_memcpy()
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-class-firmware49 What: /sys/class/firmware/.../remaining_size
/linux-6.1.9/Documentation/driver-api/firmware/
Dfw_upload.rst125 * remaining_size - tracks the data transfer portion of an update
/linux-6.1.9/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()
/linux-6.1.9/drivers/md/
Ddm-writecache.c1243 unsigned remaining_size = wc->block_size; in bio_copy_block() local
1249 if (unlikely(size > remaining_size)) in bio_copy_block()
1250 size = remaining_size; in bio_copy_block()
1268 remaining_size -= size; in bio_copy_block()
1270 } while (unlikely(remaining_size)); in bio_copy_block()
Ddm-crypt.c1667 unsigned i, len, remaining_size; in crypt_alloc_buffer() local
1679 remaining_size = size; in crypt_alloc_buffer()
1690 len = (remaining_size > PAGE_SIZE) ? PAGE_SIZE : remaining_size; in crypt_alloc_buffer()
1694 remaining_size -= len; in crypt_alloc_buffer()
/linux-6.1.9/mm/
Dmemory_hotplug.c1279 unsigned long remaining_size = size - vmemmap_size; in mhp_supports_memmap_on_memory() local
1310 IS_ALIGNED(remaining_size, (pageblock_nr_pages << PAGE_SHIFT)); in mhp_supports_memmap_on_memory()
/linux-6.1.9/block/
Dsed-opal.c572 static size_t remaining_size(struct opal_dev *cmd) in remaining_size() function
582 if (remaining_size(cmd) < len) { in can_add()
1306 len = min(remaining_size(dev) - (2+1+CMD_FINALIZE_BYTES_NEEDED), in generic_table_write_data()