/foundation/ability/ability_runtime/test/fuzztest/missionlistmanagerfirst_fuzzer/ |
H A D | missionlistmanagerfirst_fuzzer.cpp | 158 void DoSomethingTestWithMyAPI1(std::shared_ptr<MissionListManager> missionListMgr, const char* data, size_t size) in DoSomethingTestWithMyAPI1() argument 174 void DoSomethingTestWithMyAPI2(std::shared_ptr<MissionListManager> missionListMgr, const char* data, size_t size) in DoSomethingTestWithMyAPI2() argument 195 void DoSomethingTestWithMyAPI3(std::shared_ptr<MissionListManager> missionListMgr, const char* data, size_t size) in DoSomethingTestWithMyAPI3() argument 210 std::string stringParam(data, size); in DoSomethingTestWithMyAPI3() 224 void DoSomethingTestWithMyAPI4(std::shared_ptr<MissionListManager> missionListMgr, const char* data, size_t size) in DoSomethingTestWithMyAPI4() argument 253 std::string stringParam(data, size); in DoSomethingTestWithMyAPI4() 275 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 281 DoSomethingTestWithMyAPI1(missionListMgr, data, size); in DoSomethingInterestingWithMyAPI() 282 DoSomethingTestWithMyAPI2(missionListMgr, data, size); in DoSomethingInterestingWithMyAPI() 283 DoSomethingTestWithMyAPI3(missionListMgr, data, size); in DoSomethingInterestingWithMyAPI() 290 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/ability/ability_runtime/test/fuzztest/abilityappmgrapprunningmanager_fuzzer/ |
H A D | abilityappmgrapprunningmanager_fuzzer.cpp | 68 void DoSomethingInterestingWithMyAPIadda(const char* data, size_t size) in DoSomethingInterestingWithMyAPIadda() argument 72 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPIadda() 112 void DoSomethingInterestingWithMyAPIaddb(const char* data, size_t size) in DoSomethingInterestingWithMyAPIaddb() argument 115 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPIaddb() 152 void DoSomethingInterestingWithMyAPIaddc(const char* data, size_t size) in DoSomethingInterestingWithMyAPIaddc() argument 155 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPIaddc() 173 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 177 std::string jsonStr(data, size); in DoSomethingInterestingWithMyAPI() 214 DoSomethingInterestingWithMyAPIadda(data, size); in DoSomethingInterestingWithMyAPI() 215 DoSomethingInterestingWithMyAPIaddb(data, size); in DoSomethingInterestingWithMyAPI() 222 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/multimedia/camera_framework/frameworks/native/camera/src/utils/ |
H A D | metadata_common_utils.cpp | 36 Size size { .width = detail.width, .height = detail.height }; in FillSizeListFromStreamInfo() 37 sizeList.emplace_back(size); in FillSizeListFromStreamInfo() 49 Size size{.width = detail.width, .height = detail.height}; in FillSizeListFromStreamInfo() 50 sizeList.emplace_back(size); in FillSizeListFromStreamInfo() 78 static_cast<int>(sizeList->size())); in GetSupportedPreviewSizeRangeFromProfileLevel() 114 static_cast<int>(sizeList->size())); in GetSupportedPreviewSizeRangeFromExtendConfig() 136 Size size; in GetSupportedPreviewSizeRangeFromBasicConfig() local 137 size.width = static_cast<uint32_t>(item->data.i32[i + widthOffset]); in GetSupportedPreviewSizeRangeFromBasicConfig() 138 size.height = static_cast<uint32_t>(item->data.i32[i + heightOffset]); in GetSupportedPreviewSizeRangeFromBasicConfig() 139 sizeList->emplace_back(size); in GetSupportedPreviewSizeRangeFromBasicConfig() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | data_share_service_impl_test.cpp | 219 EXPECT_NE(result.size(), data.datas_.size());
in HWTEST_F() 227 EXPECT_NE(getData.datas_.size(), data.datas_.size());
in HWTEST_F() 243 EXPECT_EQ(result.size(), data.datas_.size());
in HWTEST_F() 251 EXPECT_NE(getData.datas_.size(), data.datas_.size());
in HWTEST_F() 276 EXPECT_EQ(result2.size(), uris.size());
in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | svc_restore_deps_manager_test.cpp | 48 if (lf.size() != rh.size()) { in IsEqual() 51 for (auto i = 0; i < lf.size(); ++i) { in IsEqual() 63 * @tc.size: MEDIUM 74 EXPECT_EQ(bundleNames.size(), 0); in HWTEST_F() 83 * @tc.size: MEDIUM 110 EXPECT_EQ(bundleNames.size(), 2); in HWTEST_F() 120 * @tc.size: MEDIUM 142 EXPECT_EQ(bundleNames.size(), 1); in HWTEST_F() 152 * @tc.size [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | device_sysfs.c | 125 * @size: Size of the buffer. 135 int size) in create_pnp_modalias() 158 len = snprintf(modalias, size, "acpi:"); in create_pnp_modalias() 159 if (len >= size) in create_pnp_modalias() 162 size -= len; in create_pnp_modalias() 168 count = snprintf(&modalias[len], size, "%s:", id->id); in create_pnp_modalias() 172 if (count >= size) in create_pnp_modalias() 176 size -= count; in create_pnp_modalias() 186 * @size: Size of the buffer. 193 int size) in create_of_modalias() 134 create_pnp_modalias(struct acpi_device *acpi_dev, char *modalias, int size) create_pnp_modalias() argument 192 create_of_modalias(struct acpi_device *acpi_dev, char *modalias, int size) create_of_modalias() argument 284 __acpi_device_modalias(struct acpi_device *adev, char *buf, int size) __acpi_device_modalias() argument 323 acpi_device_modalias(struct device *dev, char *buf, int size) acpi_device_modalias() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/ |
H A D | saa7164-cmd.c | 177 u16 size, idx; in saa7164_cmd_set() local 189 size = msg->size; in saa7164_cmd_set() 191 cmds = size / bus->m_wMaxReqSize; in saa7164_cmd_set() 192 if (size % bus->m_wMaxReqSize == 0) in saa7164_cmd_set() 201 msg->size = bus->m_wMaxReqSize; in saa7164_cmd_set() 222 msg->size = size - idx * bus->m_wMaxReqSize; in saa7164_cmd_set() 328 u16 controlselector, u16 size, void *buf) in saa7164_cmd_send() 343 if ((size in saa7164_cmd_send() 327 saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command, u16 controlselector, u16 size, void *buf) saa7164_cmd_send() argument [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-sis630.c | 121 static int sis630_transaction_start(struct i2c_adapter *adap, int size, in sis630_transaction_start() argument 158 /* start the transaction by setting bit 4 and size */ in sis630_transaction_start() 159 sis630_write(SMBHOST_CNT, SMB_START | (size & 0x07)); in sis630_transaction_start() 164 static int sis630_transaction_wait(struct i2c_adapter *adap, int size) in sis630_transaction_wait() argument 173 if (size == SIS630_BLOCK_DATA && (temp & BYTE_DONE_STS)) in sis630_transaction_wait() 215 static int sis630_transaction(struct i2c_adapter *adap, int size) in sis630_transaction() argument 220 result = sis630_transaction_start(adap, size, &oldclock); in sis630_transaction() 222 result = sis630_transaction_wait(adap, size); in sis630_transaction() 325 u8 command, int size, union i2c_smbus_data *data) in sis630_access() 329 switch (size) { in sis630_access() 323 sis630_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) sis630_access() argument [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
H A D | cg14.c | 373 .size = 0x1000 378 .size = 0x1000 383 .size = 0x1000 388 .size = 0x1000 393 .size = 0x1000 398 .size = 0x7000 403 .size = SBUS_MMAP_FBSIZE(1) 408 .size = 0x1000 413 .size = 0x400000 418 .size [all...] |
/kernel/linux/linux-5.10/tools/lib/traceevent/ |
H A D | kbuffer-parse.c | 36 * @size - The size of data on @data 52 unsigned int size; member 61 static void *zmalloc(size_t size) in zmalloc() argument 63 return calloc(1, size); in zmalloc() 159 * @size; enum to denote size of word 165 kbuffer_alloc(enum kbuffer_long_size size, enum kbuffer_endian endian) in kbuffer_alloc() argument 170 switch (size) { in kbuffer_alloc() 294 kbuf->next = kbuf->size; in old_update_pointers() 418 kbuffer_translate_data(int swap, void *data, unsigned int *size) kbuffer_translate_data() argument 781 unsigned int size; kbuffer_raw_get() local [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | logfile.c | 47 * If the system or log page sizes are smaller than the ntfs block size in ntfs_check_restart_page_header() 57 ntfs_error(vi->i_sb, "$LogFile uses unsupported page size."); in ntfs_check_restart_page_header() 62 * size (2nd restart page). in ntfs_check_restart_page_header() 86 /* Verify the size of the update sequence array. */ in ntfs_check_restart_page_header() 107 * - within the system page size. in ntfs_check_restart_page_header() 180 * The restart area must end within the system page size both when in ntfs_check_restart_area() 191 "of the system page size specified by the " in ntfs_check_restart_area() 213 * We cannot just use ffs() because the file size is not a power of 2. in ntfs_check_restart_area() 342 int size, err; in ntfs_check_and_load_restart_page() local 371 size in ntfs_check_and_load_restart_page() 473 s64 size, pos; ntfs_check_logfile() local [all...] |
/kernel/linux/linux-5.10/fs/orangefs/ |
H A D | orangefs-bufmap.c | 143 int array_count; /* size of above arrays */ 184 * XXX: Can the size and shift change while the caller gives up the 191 int size = 0; in orangefs_bufmap_size_query() local 195 size = bufmap->desc_size; in orangefs_bufmap_size_query() 197 return size; in orangefs_bufmap_size_query() 226 bufmap->desc_size = user_desc->size; in orangefs_bufmap_alloc() 321 user_desc->size, in orangefs_bufmap_initialize() 325 user_desc->size < 0 || in orangefs_bufmap_initialize() 330 * sanity check alignment and size of buffer that caller wants to in orangefs_bufmap_initialize() 348 if (user_desc->total_size != (user_desc->size * user_des in orangefs_bufmap_initialize() 484 orangefs_bufmap_copy_from_iovec(struct iov_iter *iter, int buffer_index, size_t size) orangefs_bufmap_copy_from_iovec() argument 512 orangefs_bufmap_copy_to_iovec(struct iov_iter *iter, int buffer_index, size_t size) orangefs_bufmap_copy_to_iovec() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/host1x/ |
H A D | cdma.c | 75 u32 size; in host1x_pushbuffer_init() local 80 pb->size = HOST1X_PUSHBUFFER_SLOTS * 8; in host1x_pushbuffer_init() 82 size = pb->size + 4; in host1x_pushbuffer_init() 85 pb->fence = pb->size - 8; in host1x_pushbuffer_init() 91 size = iova_align(&host1x->iova, size); in host1x_pushbuffer_init() 93 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init() 99 alloc = alloc_iova(&host1x->iova, size >> shift, in host1x_pushbuffer_init() 107 err = iommu_map(host1x->domain, pb->dma, pb->phys, size, in host1x_pushbuffer_init() [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 88 char *buffer, loff_t pos, size_t size); 122 int ind = 0, size; in ibm_slot_from_id() local 126 size = ibm_get_table_from_acpi(&table); in ibm_slot_from_id() 127 if (size < 0) in ibm_slot_from_id() 134 while (ind < size && (des->generic.type != 0x82 || in ibm_slot_from_id() 139 if (ind < size && des->slot.slot_num == id) in ibm_slot_from_id() 277 * the size of the table and returns that without filling 280 * Returns < 0 on error or the size of the table on success. 288 int i, size = -EIO; in ibm_get_table_from_acpi() local 304 for (size in ibm_get_table_from_acpi() 355 ibm_read_apci_table(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t size) ibm_read_apci_table() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | device_sysfs.c | 127 * @size: Size of the buffer. 137 int size) in create_pnp_modalias() 160 len = snprintf(modalias, size, "acpi:"); in create_pnp_modalias() 161 if (len >= size) in create_pnp_modalias() 164 size -= len; in create_pnp_modalias() 170 count = snprintf(&modalias[len], size, "%s:", id->id); in create_pnp_modalias() 174 if (count >= size) in create_pnp_modalias() 178 size -= count; in create_pnp_modalias() 188 * @size: Size of the buffer. 195 int size) in create_of_modalias() 136 create_pnp_modalias(const struct acpi_device *acpi_dev, char *modalias, int size) create_pnp_modalias() argument 194 create_of_modalias(const struct acpi_device *acpi_dev, char *modalias, int size) create_of_modalias() argument 288 __acpi_device_modalias(const struct acpi_device *adev, char *buf, int size) __acpi_device_modalias() argument 330 acpi_device_modalias(struct device *dev, char *buf, int size) acpi_device_modalias() argument [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | logfile.c | 47 * If the system or log page sizes are smaller than the ntfs block size in ntfs_check_restart_page_header() 57 ntfs_error(vi->i_sb, "$LogFile uses unsupported page size."); in ntfs_check_restart_page_header() 62 * size (2nd restart page). in ntfs_check_restart_page_header() 86 /* Verify the size of the update sequence array. */ in ntfs_check_restart_page_header() 107 * - within the system page size. in ntfs_check_restart_page_header() 180 * The restart area must end within the system page size both when in ntfs_check_restart_area() 191 "of the system page size specified by the " in ntfs_check_restart_area() 213 * We cannot just use ffs() because the file size is not a power of 2. in ntfs_check_restart_area() 342 int size, err; in ntfs_check_and_load_restart_page() local 371 size in ntfs_check_and_load_restart_page() 473 s64 size, pos; ntfs_check_logfile() local [all...] |
/kernel/linux/linux-6.6/fs/orangefs/ |
H A D | orangefs-bufmap.c | 143 int array_count; /* size of above arrays */ 184 * XXX: Can the size and shift change while the caller gives up the 191 int size = 0; in orangefs_bufmap_size_query() local 195 size = bufmap->desc_size; in orangefs_bufmap_size_query() 197 return size; in orangefs_bufmap_size_query() 226 bufmap->desc_size = user_desc->size; in orangefs_bufmap_alloc() 321 user_desc->size, in orangefs_bufmap_initialize() 325 user_desc->size < 0 || in orangefs_bufmap_initialize() 330 * sanity check alignment and size of buffer that caller wants to in orangefs_bufmap_initialize() 348 if (user_desc->total_size != (user_desc->size * user_des in orangefs_bufmap_initialize() 484 orangefs_bufmap_copy_from_iovec(struct iov_iter *iter, int buffer_index, size_t size) orangefs_bufmap_copy_from_iovec() argument 512 orangefs_bufmap_copy_to_iovec(struct iov_iter *iter, int buffer_index, size_t size) orangefs_bufmap_copy_to_iovec() argument [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | cg14.c | 374 .size = 0x1000 379 .size = 0x1000 384 .size = 0x1000 389 .size = 0x1000 394 .size = 0x1000 399 .size = 0x7000 404 .size = SBUS_MMAP_FBSIZE(1) 409 .size = 0x1000 414 .size = 0x400000 419 .size [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 50 static bool check_atom_bios(uint8_t *bios, size_t size) in check_atom_bios() argument 54 if (!bios || size < 0x49) { in check_atom_bios() 55 DRM_INFO("vbios mem is null or mem size is wrong\n"); in check_atom_bios() 71 if (size < tmp) { in check_atom_bios() 95 resource_size_t size = 256 * 1024; /* ??? */ in igp_read_bios_from_vram() local 107 bios = ioremap_wc(vram_base, size); in igp_read_bios_from_vram() 111 adev->bios = kmalloc(size, GFP_KERNEL); in igp_read_bios_from_vram() 116 adev->bios_size = size; in igp_read_bios_from_vram() 117 memcpy_fromio(adev->bios, bios, size); in igp_read_bios_from_vram() 120 if (!check_atom_bios(adev->bios, size)) { in igp_read_bios_from_vram() 131 size_t size; amdgpu_read_bios() local 280 int size = 256 * 1024; amdgpu_atrm_get_bios() local [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/saa7164/ |
H A D | saa7164-cmd.c | 177 u16 size, idx; in saa7164_cmd_set() local 189 size = msg->size; in saa7164_cmd_set() 190 cmds = size / bus->m_wMaxReqSize; in saa7164_cmd_set() 191 if (size % bus->m_wMaxReqSize == 0) in saa7164_cmd_set() 200 msg->size = bus->m_wMaxReqSize; in saa7164_cmd_set() 221 msg->size = size - idx * bus->m_wMaxReqSize; in saa7164_cmd_set() 327 u16 controlselector, u16 size, void *buf) in saa7164_cmd_send() 342 if ((size in saa7164_cmd_send() 326 saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command, u16 controlselector, u16 size, void *buf) saa7164_cmd_send() argument [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | acpiphp_ibm.c | 88 char *buffer, loff_t pos, size_t size); 122 int ind = 0, size; in ibm_slot_from_id() local 126 size = ibm_get_table_from_acpi(&table); in ibm_slot_from_id() 127 if (size < 0) in ibm_slot_from_id() 134 while (ind < size && (des->generic.type != 0x82 || in ibm_slot_from_id() 139 if (ind < size && des->slot.slot_num == id) in ibm_slot_from_id() 277 * the size of the table and returns that without filling 280 * Returns < 0 on error or the size of the table on success. 288 int i, size = -EIO; in ibm_get_table_from_acpi() local 304 for (size in ibm_get_table_from_acpi() 355 ibm_read_apci_table(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t size) ibm_read_apci_table() argument [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-uclogic-core.c | 251 * @size: The size of event. 256 static bool uclogic_exec_event_hook(struct uclogic_params *p, u8 *event, int size) in uclogic_exec_event_hook() argument 264 if (curr->size == size && memcmp(curr->event, event, size) == 0) { in uclogic_exec_event_hook() 278 * @size: Report data size, bytes. 284 u8 *data, int size) in uclogic_raw_event_pen() 289 WARN_ON(data == NULL && size ! in uclogic_raw_event_pen() 283 uclogic_raw_event_pen(struct uclogic_drvdata *drvdata, u8 *data, int size) uclogic_raw_event_pen() argument 348 uclogic_raw_event_frame( struct uclogic_drvdata *drvdata, const struct uclogic_params_frame *frame, u8 *data, int size) uclogic_raw_event_frame() argument 416 uclogic_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size) uclogic_raw_event() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/host1x/ |
H A D | cdma.c | 75 u32 size; in host1x_pushbuffer_init() local 80 pb->size = HOST1X_PUSHBUFFER_SLOTS * 8; in host1x_pushbuffer_init() 82 size = pb->size + 4; in host1x_pushbuffer_init() 85 pb->fence = pb->size - 8; in host1x_pushbuffer_init() 91 size = iova_align(&host1x->iova, size); in host1x_pushbuffer_init() 93 pb->mapped = dma_alloc_wc(host1x->dev, size, &pb->phys, in host1x_pushbuffer_init() 99 alloc = alloc_iova(&host1x->iova, size >> shift, in host1x_pushbuffer_init() 107 err = iommu_map(host1x->domain, pb->dma, pb->phys, size, in host1x_pushbuffer_init() [all...] |
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-sis630.c | 121 static int sis630_transaction_start(struct i2c_adapter *adap, int size, in sis630_transaction_start() argument 158 /* start the transaction by setting bit 4 and size */ in sis630_transaction_start() 159 sis630_write(SMBHOST_CNT, SMB_START | (size & 0x07)); in sis630_transaction_start() 164 static int sis630_transaction_wait(struct i2c_adapter *adap, int size) in sis630_transaction_wait() argument 173 if (size == SIS630_BLOCK_DATA && (temp & BYTE_DONE_STS)) in sis630_transaction_wait() 215 static int sis630_transaction(struct i2c_adapter *adap, int size) in sis630_transaction() argument 220 result = sis630_transaction_start(adap, size, &oldclock); in sis630_transaction() 222 result = sis630_transaction_wait(adap, size); in sis630_transaction() 325 u8 command, int size, union i2c_smbus_data *data) in sis630_access() 329 switch (size) { in sis630_access() 323 sis630_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) sis630_access() argument [all...] |
/kernel/liteos_a/kernel/base/vm/ |
H A D | los_vm_dump.c | 96 if (region->range.base == regionTemp->range.base && region->range.size == regionTemp->range.size) { in OsRegionOverlapCheckUnlock() 99 if (((region->range.base + region->range.size) > regionTemp->range.base) && in OsRegionOverlapCheckUnlock() 100 (region->range.base < (regionTemp->range.base + regionTemp->range.size))) { in OsRegionOverlapCheckUnlock() 102 "flags:%#x base:%p size:%08x space:%p\n" in OsRegionOverlapCheckUnlock() 103 "flags:%#x base:%p size:%08x space:%p", in OsRegionOverlapCheckUnlock() 104 region->regionFlags, region->range.base, region->range.size, region->space, in OsRegionOverlapCheckUnlock() 105 regionTemp->regionFlags, regionTemp->range.base, regionTemp->range.size, regionTemp->space); in OsRegionOverlapCheckUnlock() 135 used += region->range.size; in OsShellCmdProcessVmUsage() 207 size_t size; in OsUProcessPmUsage() local [all...] |