Home
last modified time | relevance | path

Searched refs:device_size (Results 1 – 25 of 25) sorted by relevance

/third_party/mindspore/tests/ut/cpp/common/
Dtrans_test.cc37 size_t device_size = 32; in TEST_F() local
38 auto trans_tmp = std::vector<uint8_t>(device_size); in TEST_F()
39 FormatArgs format_args{data, device_size, kOpFormat_NCHW, kOpFormat_HWCN, in TEST_F()
54 size_t device_size = 32; in TEST_F() local
55 auto trans_tmp = std::vector<uint8_t>(device_size); in TEST_F()
56 FormatArgs format_args{data, device_size, kOpFormat_NCHW, kOpFormat_HWCN, in TEST_F()
69 size_t device_size = 32; in TEST_F() local
70 auto trans_tmp = std::vector<uint8_t>(device_size); in TEST_F()
71 FormatArgs format_args{data, device_size, kOpFormat_NCHW, kOpFormat_NHWC, in TEST_F()
85 size_t device_size = 32; in TEST_F() local
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c255 le64 device_size; member
2141 (long long)le64_to_cpu(image_hdr.device_size));
2410 image_hdr.device_size = cpu_to_sle64(image_hdr.device_size);
2455 return le64_to_cpu(image_hdr.device_size);
2460 s64 device_size; local
2464 device_size = ntfs_device_size_get(vol->dev, 1);
2465 if (device_size <= 0)
2467 (long long)device_size);
2469 print_volume_size("Current device size", device_size);
2471 if (device_size < vol->nr_clusters * vol->cluster_size)
[all …]
Dntfsresize.c4540 s64 device_size; /* in bytes */ in main() local
4582 device_size = ntfs_device_size_get(vol->dev, vol->sector_size); in main()
4583 device_size *= vol->sector_size; in main()
4584 if (device_size <= 0) in main()
4586 (long long)device_size); in main()
4589 print_vol_size("Current device size", device_size); in main()
4591 if (device_size < vol->nr_clusters * vol->cluster_size) in main()
4597 opt.bytes = device_size; in main()
4610 if (device_size < opt.bytes) in main()
4617 (opt.bytes == device_size && in main()
/third_party/f2fs-tools/lib/
Dlibf2fs.c951 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info()
1080 static int win_get_device_size(const char *file, uint64_t *device_size) in win_get_device_size() argument
1103 *device_size = pi.PartitionLength.QuadPart; in win_get_device_size()
1110 *device_size = gi.BytesPerSector * in win_get_device_size()
1117 *device_size = filesize.QuadPart; in win_get_device_size()
1124 *device_size = filesize;
1135 uint64_t device_size = 0; in get_device_info() local
1140 if (win_get_device_size(dev->path, &device_size)) { in get_device_info()
1145 device_size = c.device_size; in get_device_info()
1157 dev->total_sectors = device_size / dev->sector_size; in get_device_info()
Dlibf2fs_io.c644 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, c.device_size); in f2fs_init_sparse_file()
653 c.device_size = sparse_file_len(f2fs_sparse_file, 0, 0); in f2fs_init_sparse_file()
654 c.device_size &= (~((u_int64_t)(F2FS_BLKSIZE - 1))); in f2fs_init_sparse_file()
661 blocks_count = c.device_size / F2FS_BLKSIZE; in f2fs_init_sparse_file()
720 c.device_size); in f2fs_finalize_device()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_kernel_runtime.h54 DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format,
56 …DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format, T…
Dcpu_kernel_runtime.cc176 DeviceAddressPtr CPUKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, const … in CreateDeviceAddress() argument
178 return std::make_shared<CPUDeviceAddress>(device_ptr, device_size, format, type_id); in CreateDeviceAddress()
181 DeviceAddressPtr CPUKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, const … in CreateDeviceAddress() argument
183 return std::make_shared<CPUDeviceAddress>(device_ptr, device_size, format, type_id, node_index); in CreateDeviceAddress()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_kernel_runtime.h76 DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format,
78 …DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format, T…
Dascend_kernel_runtime.cc403 DeviceAddressPtr AscendKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, con… in CreateDeviceAddress() argument
405 return std::make_shared<AscendDeviceAddress>(device_ptr, device_size, format, type_id); in CreateDeviceAddress()
408 DeviceAddressPtr AscendKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, con… in CreateDeviceAddress() argument
410 …return std::make_shared<AscendDeviceAddress>(device_ptr, device_size, format, type_id, node_index); in CreateDeviceAddress()
/third_party/mindspore/mindspore/ccsrc/common/
Dtrans.cc1077 if (*total_size != args.device_size) { in CheckArgs()
1078 …) << "Illegal total data size, total_size:" << *total_size << ", device_size:" << args.device_size; in CheckArgs()
1256 if (dst_size != args.device_size) { in NchwToFracZ()
1258 << "dst size is :" << dst_size << "device size is :" << args.device_size; in NchwToFracZ()
1297 if (total_size != args.device_size) { in FracZToNchw()
1298 …R) << "Illegal total data size, total_size:" << total_size << ", device_size:" << args.device_size; in FracZToNchw()
1442 if (dst_size != args.device_size) { in NchwToFracNz()
1443 …ROR) << "Illegal total data size, total_size:" << dst_size << ", device_size:" << args.device_size; in NchwToFracNz()
1504 if (dst_size != args.device_size) { in FracNzToNchw()
1505 …ROR) << "Illegal total data size, total_size:" << dst_size << ", device_size:" << args.device_size; in FracNzToNchw()
[all …]
Dtrans.h63 const size_t device_size; member
/third_party/mindspore/tests/ut/cpp/parallel/tensor_layout/
Dutil_layout_gen_test.cc109 int64_t device_size = device_arrangement.size(); in GenerateValidTensorMap() local
116 for (int64_t i = 0; i < device_size; i++) { in GenerateValidTensorMap()
121 for (int64_t pos_num = 1; (pos_num <= shape_size) && (pos_num <= device_size); pos_num++) { in GenerateValidTensorMap()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_kernel_runtime.h57 DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format,
59 …DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &format, T…
Dgpu_kernel_runtime.cc227 DeviceAddressPtr GPUKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, const … in CreateDeviceAddress() argument
229 return std::make_shared<GPUDeviceAddress>(device_ptr, device_size, format, type_id); in CreateDeviceAddress()
232 DeviceAddressPtr GPUKernelRuntime::CreateDeviceAddress(void *device_ptr, size_t device_size, const … in CreateDeviceAddress() argument
234 return std::make_shared<GPUDeviceAddress>(device_ptr, device_size, format, type_id, node_index); in CreateDeviceAddress()
/third_party/f2fs-tools/mkfs/
Df2fs_format_main.c201 c.device_size = atoll(optarg); in f2fs_parse_options()
202 c.device_size &= (~((u_int64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.h43 …DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const string &for…
Dcpu_device_context.cc102 DeviceAddressPtr CPUDeviceContext::CreateDeviceAddress(void *const device_ptr, size_t device_size, … in CreateDeviceAddress() argument
104 return std::make_shared<CPUDeviceAddress>(device_ptr, device_size, format, type_id); in CreateDeviceAddress()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_runtime.h122 …virtual DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &f…
124 …virtual DeviceAddressPtr CreateDeviceAddress(void *device_ptr, size_t device_size, const string &f…
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/
Ddevice_context.h71 …virtual DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const str…
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.h47 …DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const string &for…
Dgpu_device_context.cc199 DeviceAddressPtr GPUDeviceContext::CreateDeviceAddress(void *const device_ptr, size_t device_size, … in CreateDeviceAddress() argument
201 return std::make_shared<GPUDeviceAddress>(device_ptr, device_size, format, type_id); in CreateDeviceAddress()
/third_party/FreeBSD/sbin/newfs_msdos/
Dmkfs_msdos.c871 u_int64_t device_size; in getdiskinfo() local
872 if (ioctl(fd, BLKGETSIZE64, &device_size) == -1) { in getdiskinfo()
876 u_int64_t sectors = device_size/bpb->bpbBytesPerSec; in getdiskinfo()
879 sectors, device_size, bpb->bpbBytesPerSec); in getdiskinfo()
/third_party/libusb/examples/
Dxusb.c461 double device_size; in test_mass_storage() local
515 device_size = ((double)(max_lba+1))*block_size/(1024*1024*1024); in test_mass_storage()
516 printf(" Max LBA: %08X, Block Size: %08X (%.2f GB)\n", max_lba, block_size, device_size); in test_mass_storage()
/third_party/f2fs-tools/include/
Df2fs_fs.h364 u_int64_t device_size; member
/third_party/libdrm/
Dxf86drm.c3541 size_t bus_size, size_t device_size, in drmDeviceAlloc() argument
3552 size = sizeof(*device) + extra + bus_size + device_size; in drmDeviceAlloc()