/third_party/mindspore/tests/ut/cpp/common/ |
D | trans_test.cc | 37 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/ |
D | ntfsclone.c | 255 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 …]
|
D | ntfsresize.c | 4540 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/ |
D | libf2fs.c | 951 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()
|
D | libf2fs_io.c | 644 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/ |
D | cpu_kernel_runtime.h | 54 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…
|
D | cpu_kernel_runtime.cc | 176 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/ |
D | ascend_kernel_runtime.h | 76 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…
|
D | ascend_kernel_runtime.cc | 403 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/ |
D | trans.cc | 1077 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 …]
|
D | trans.h | 63 const size_t device_size; member
|
/third_party/mindspore/tests/ut/cpp/parallel/tensor_layout/ |
D | util_layout_gen_test.cc | 109 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/ |
D | gpu_kernel_runtime.h | 57 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…
|
D | gpu_kernel_runtime.cc | 227 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/ |
D | f2fs_format_main.c | 201 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/ |
D | cpu_device_context.h | 43 …DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const string &for…
|
D | cpu_device_context.cc | 102 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/ |
D | kernel_runtime.h | 122 …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/ |
D | device_context.h | 71 …virtual DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const str…
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/ |
D | gpu_device_context.h | 47 …DeviceAddressPtr CreateDeviceAddress(void *const device_ptr, size_t device_size, const string &for…
|
D | gpu_device_context.cc | 199 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/ |
D | mkfs_msdos.c | 871 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/ |
D | xusb.c | 461 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/ |
D | f2fs_fs.h | 364 u_int64_t device_size; member
|
/third_party/libdrm/ |
D | xf86drm.c | 3541 size_t bus_size, size_t device_size, in drmDeviceAlloc() argument 3552 size = sizeof(*device) + extra + bus_size + device_size; in drmDeviceAlloc()
|