Home
last modified time | relevance | path

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

/openbmc/linux/arch/x86/platform/efi/
H A Dquirks.c138 u64 storage_size, remaining_size, max_size; in query_variable_store_nonblocking() local
141 &remaining_size, in query_variable_store_nonblocking()
146 if (remaining_size - size < EFI_MIN_RESERVE) in query_variable_store_nonblocking()
163 u64 storage_size, remaining_size, max_size; in efi_query_variable_store() local
172 &remaining_size, &max_size); in efi_query_variable_store()
181 if ((remaining_size - size < EFI_MIN_RESERVE) && in efi_query_variable_store()
189 unsigned long dummy_size = remaining_size + 1024; in efi_query_variable_store()
217 &remaining_size, &max_size); in efi_query_variable_store()
225 if (remaining_size - size < EFI_MIN_RESERVE) in efi_query_variable_store()
/openbmc/linux/drivers/misc/bcm-vk/
H A 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()
/openbmc/linux/drivers/base/firmware_loader/
H A 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()
H A Dsysfs_upload.h35 u32 remaining_size; /* size remaining to transfer */ member
/openbmc/linux/drivers/md/
H A 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()
H A 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()
H A Ddm-crypt.c1686 unsigned int remaining_size; in crypt_alloc_buffer() local
1698 remaining_size = size; in crypt_alloc_buffer()
1700 while (remaining_size) { in crypt_alloc_buffer()
1703 unsigned remaining_order = __fls((remaining_size + PAGE_SIZE - 1) >> PAGE_SHIFT); in crypt_alloc_buffer()
1731 size_to_add = min((unsigned)PAGE_SIZE << order, remaining_size); in crypt_alloc_buffer()
1733 remaining_size -= size_to_add; in crypt_alloc_buffer()
/openbmc/linux/include/linux/
H A Dposix_acl.h110 ssize_t *remaining_size);
159 ssize_t *remaining_size) in posix_acl_listxattr() argument
H A Dxattr.h130 int xattr_list_one(char **buffer, ssize_t *remaining_size, const char *name);
/openbmc/linux/fs/
H A Dxattr.c978 int xattr_list_one(char **buffer, ssize_t *remaining_size, const char *name) in xattr_list_one() argument
984 if (*remaining_size < len) in xattr_list_one()
989 *remaining_size -= len; in xattr_list_one()
1008 ssize_t remaining_size = buffer_size; in generic_listxattr() local
1014 err = xattr_list_one(&buffer, &remaining_size, handler->name); in generic_listxattr()
1019 return err ? err : buffer_size - remaining_size; in generic_listxattr()
1319 ssize_t remaining_size = size; in simple_xattr_list() local
1322 err = posix_acl_listxattr(inode, &buffer, &remaining_size); in simple_xattr_list()
1334 err = xattr_list_one(&buffer, &remaining_size, xattr->name); in simple_xattr_list()
1340 return err ? err : size - remaining_size; in simple_xattr_list()
H A Dposix_acl.c961 ssize_t *remaining_size) in posix_acl_listxattr() argument
969 err = xattr_list_one(buffer, remaining_size, in posix_acl_listxattr()
976 err = xattr_list_one(buffer, remaining_size, in posix_acl_listxattr()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
/openbmc/qemu/migration/
H A Dram.c3313 uint64_t remaining_size = rs->migration_dirty_pages * TARGET_PAGE_SIZE; in ram_state_pending_estimate() local
3317 *can_postcopy += remaining_size; in ram_state_pending_estimate()
3319 *must_precopy += remaining_size; in ram_state_pending_estimate()
3328 uint64_t remaining_size; in ram_state_pending_exact() local
3338 remaining_size = rs->migration_dirty_pages * TARGET_PAGE_SIZE; in ram_state_pending_exact()
3342 *can_postcopy += remaining_size; in ram_state_pending_exact()
3344 *must_precopy += remaining_size; in ram_state_pending_exact()
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-class-firmware49 What: /sys/class/firmware/.../remaining_size
/openbmc/linux/drivers/dma/
H A 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()
/openbmc/linux/Documentation/driver-api/firmware/
H A Dfw_upload.rst126 * remaining_size - tracks the data transfer portion of an update
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_validate.c600 uint32_t remaining_size = tex->base.size - p0; in reloc_tex() local
606 if (p1 > remaining_size - 4) { in reloc_tex()
/openbmc/linux/block/
H A Dsed-opal.c692 static size_t remaining_size(struct opal_dev *cmd) in remaining_size() function
702 if (remaining_size(cmd) < len) { in can_add()
1436 len = min(remaining_size(dev) - (2+1+CMD_FINALIZE_BYTES_NEEDED), in generic_table_write_data()