Home
last modified time | relevance | path

Searched refs:file_length (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/drivers/staging/rtl8192u/
H A Dr819xU_firmware.c203 u32 file_length = 0; in init_firmware() local
256 file_length = fw_entry->size; in init_firmware()
261 file_length = fw_entry->size + 128; in init_firmware()
263 pfirmware->firmware_buf_size = file_length; in init_firmware()
267 file_length = pfirmware->firmware_buf_size; in init_firmware()
277 rt_status = fw_download_code(dev, mapped_file, file_length); in init_firmware()
/openbmc/qemu/tests/qemu-iotests/
H A D125190 file_length=$(stat -c '%s' "$TEST_IMG_FILE")
191 if [ "$file_length" != "$expected_file_length" ]; then
192 echo "ERROR: file length $file_length (expected $expected_file_length)"
/openbmc/qemu/block/
H A Dvhdx-log.c498 int64_t file_length; in vhdx_log_flush() local
518 file_length = bdrv_getlength(bs->file->bs); in vhdx_log_flush()
519 if (file_length < 0) { in vhdx_log_flush()
520 ret = file_length; in vhdx_log_flush()
526 if (hdr_tmp.flushed_file_offset > file_length) { in vhdx_log_flush()
878 int64_t file_length; in vhdx_log_write() local
932 file_length = bdrv_co_getlength(bs->file->bs); in vhdx_log_write()
933 if (file_length < 0) { in vhdx_log_write()
934 ret = file_length; in vhdx_log_write()
947 .flushed_file_offset = file_length, in vhdx_log_write()
[all …]
H A Dgluster.c1512 int64_t file_length = qemu_gluster_co_getlength(bs); in qemu_gluster_co_block_status() local
1513 if (file_length > 0) { in qemu_gluster_co_block_status()
1515 assert(hole == file_length); in qemu_gluster_co_block_status()
H A Dqcow2-refcount.c3722 int64_t file_length, real_allocation, real_clusters; in qcow2_detect_metadata_preallocation() local
3726 file_length = bdrv_co_getlength(bs->file->bs); in qcow2_detect_metadata_preallocation()
3727 if (file_length < 0) { in qcow2_detect_metadata_preallocation()
3728 return file_length; in qcow2_detect_metadata_preallocation()
3739 end_cluster = size_to_clusters(s, file_length); in qcow2_detect_metadata_preallocation()
H A Dqcow2.c3264 int64_t file_length; in preallocate_co() local
3302 file_length = bdrv_co_getlength(s->data_file->bs); in preallocate_co()
3303 if (file_length < 0) { in preallocate_co()
3304 error_setg_errno(errp, -file_length, "Could not get file size"); in preallocate_co()
3305 ret = file_length; in preallocate_co()
3309 if (host_offset + cur_bytes > file_length) { in preallocate_co()
H A Dfile-posix.c3233 int64_t file_length = raw_getlength(bs); in raw_co_block_status() local
3234 if (file_length > 0) { in raw_co_block_status()
3236 assert(hole == file_length); in raw_co_block_status()
/openbmc/u-boot/common/
H A DxyzModem.c52 unsigned long file_length, read_length; member
439 xyz.file_length = 0; in xyzModem_stream_open()
461 parse_num ((char *) xyz.bufp, &xyz.file_length, NULL, " "); in xyzModem_stream_open()
514 if (xyz.mode == xyzModem_xmodem || xyz.file_length == 0) in xyzModem_stream_read()
536 if (xyz.mode != xyzModem_xmodem && 0 != xyz.file_length) in xyzModem_stream_read()
539 if (xyz.read_length > xyz.file_length) in xyzModem_stream_read()
541 xyz.len -= (xyz.read_length - xyz.file_length); in xyzModem_stream_read()
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/
H A Dr8192E_firmware.c131 u32 file_length = 0; in rtl92e_init_fw() local
172 file_length = pfirmware->blobs[i].size; in rtl92e_init_fw()
175 mapped_file, file_length); in rtl92e_init_fw()
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A D32and64bit.patch20 size_t file_length)
221 + size_t file_length)
306 + size_t file_length)
324 + return process_elf_file32(file_name, lib,flag, osversion, soname, file_contents, file_length);
326 + return process_elf_file64(file_name, lib,flag, osversion, soname, file_contents, file_length);
/openbmc/linux/drivers/comedi/drivers/
H A Dme_daq.c344 unsigned int file_length; in me2600_xilinx_download() local
371 file_length = (((unsigned int)data[0] & 0xff) << 24) + in me2600_xilinx_download()
380 for (i = 0; i < file_length; i++) in me2600_xilinx_download()
H A Dme4000.c314 unsigned int file_length; in me4000_xilinx_download() local
349 file_length = (((unsigned int)data[0] & 0xff) << 24) + in me4000_xilinx_download()
355 for (i = 0; i < file_length; i++) { in me4000_xilinx_download()
/openbmc/u-boot/drivers/usb/gadget/
H A Dstorage_common.c276 loff_t file_length; member
575 curlun->file_length = num_sectors << 9; in fsg_lun_open()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dfirmware.c1731 u32 header1 = 0, header2 = 0, magic_num = 0, crc = 0, file_length = 0; in parse_platform_config() local
1760 file_length = (*ptr) * 4; in parse_platform_config()
1767 if (file_length > MAX_PLATFORM_CONFIG_FILE_SIZE) { in parse_platform_config()
1771 file_length = PLATFORM_CONFIG_FORMAT_4_FILE_SIZE; in parse_platform_config()
1776 if (file_length > dd->platform_config.size) { in parse_platform_config()
1781 } else if (file_length < dd->platform_config.size) { in parse_platform_config()
1793 while (ptr < (u32 *)(dd->platform_config.data + file_length)) { in parse_platform_config()
/openbmc/linux/drivers/usb/gadget/function/
H A Dstorage_common.h100 loff_t file_length; member
H A Dstorage_common.c267 curlun->file_length = size; in fsg_lun_open()
H A Df_mass_storage.c659 curlun->file_length - file_offset); in do_read()
810 if (usb_offset >= curlun->file_length) { in do_write()
863 if (curlun->file_length - file_offset < amount) { in do_write()
866 (unsigned long long)curlun->file_length); in do_write()
867 amount = curlun->file_length - file_offset; in do_write()
1009 curlun->file_length - file_offset); in do_verify()