/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/ |
H A D | rs_render_node_drawable_autocache_test.cpp | 98 bool res = drawable->PreDrawableCacheState(params, isOpincDropNodeExt); in HWTEST() local 99 ASSERT_TRUE(res); in HWTEST() 102 res = drawable->PreDrawableCacheState(params, isOpincDropNodeExt); in HWTEST() 103 ASSERT_TRUE(res); in HWTEST() 184 bool res = drawable->BeforeDrawCacheProcessChildNode(cacheStragy, params); in HWTEST() local 185 ASSERT_TRUE(res); in HWTEST() 190 res = drawable->BeforeDrawCacheProcessChildNode(cacheStragy, params); in HWTEST() 191 ASSERT_FALSE(res); in HWTEST() 196 res = drawable->BeforeDrawCacheProcessChildNode(cacheStragy, params); in HWTEST() 197 ASSERT_FALSE(res); in HWTEST() 343 bool res = drawable->DrawAutoCache(canvas, image, samplingOption, constraint); HWTEST() local 407 std::string res = drawable->GetNodeDebugInfo(); HWTEST() local [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_utils_test.cpp | 106 bool res = imageUtils.GetFileSize(IMAGE_INPUT_JPEG_PATH, size); in HWTEST_F() local 107 ASSERT_EQ(res, true); in HWTEST_F() 122 bool res = imageUtils.GetFileSize(path, size); in HWTEST_F() local 123 ASSERT_EQ(res, false); in HWTEST_F() 138 bool res = imageUtils.GetFileSize(path, size); in HWTEST_F() local 139 ASSERT_EQ(res, false); in HWTEST_F() 154 bool res = imageUtils.GetFileSize(fd, size); in HWTEST_F() local 155 ASSERT_EQ(res, true); in HWTEST_F() 170 bool res = imageUtils.GetFileSize(fd, size); in HWTEST_F() local 171 ASSERT_EQ(res, fals in HWTEST_F() 186 bool res = imageUtils.GetFileSize(fd, size); HWTEST_F() local 218 bool res = ImageUtils::PathToRealPath(path, realPath); HWTEST_F() local 237 bool res = ImageUtils::PathToRealPath(path, realPath); HWTEST_F() local 275 bool res = ImageUtils::CheckMulOverflow(width, height, bytesPerPixel); HWTEST_F() local 319 uint32_t res = ImageUtils::SurfaceBuffer_Reference(buffer); HWTEST_F() local 409 uint32_t res = ImageUtils::SaveDataToFile(fileName, data, totalSize); HWTEST_F() local 426 auto res = ImageUtils::GetPixelMapName(pixelMap); HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_remote_object_unittest.cpp | 64 bool res = globalHelper_->PrepareTestSuite(); in SetUpTestCase() local 65 ASSERT_TRUE(res); in SetUpTestCase() 72 bool res = globalHelper_->TearDownTestSuite(); in TearDownTestCase() local 73 ASSERT_TRUE(res); in TearDownTestCase() 176 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); in HWTEST_F() local 177 ASSERT_TRUE(res); in HWTEST_F() 192 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); in HWTEST_F() local 193 ASSERT_TRUE(res); in HWTEST_F() 233 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); in HWTEST_F() local 234 ASSERT_TRUE(res); in HWTEST_F() 273 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); HWTEST_F() local 300 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); HWTEST_F() local 331 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); HWTEST_F() local 354 bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER); HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | assist_test_service.cpp | 34 int res = Remote()->SendRequest(TEST_PARCEL_BOOL, data, reply, option); in TestParcelBool() local 35 return (res == ERR_NONE) ? reply.ReadBool() : false; in TestParcelBool() 43 int res = Remote()->SendRequest(TEST_PARCEL_CHAR, data, reply, option); in TestParcelChar() local 44 return (res == ERR_NONE) ? reply.ReadInt16() : 0; in TestParcelChar() 52 int res = Remote()->SendRequest(TEST_PARCEL_INT32, data, reply, option); in TestParcelInt32() local 53 return (res == ERR_NONE) ? reply.ReadInt32() : 0; in TestParcelInt32() 61 int res = Remote()->SendRequest(TEST_PARCEL_INT64, data, reply, option); in TestParcelInt64() local 62 return (res == ERR_NONE) ? reply.ReadInt64() : 0; in TestParcelInt64() 70 int res = Remote()->SendRequest(TEST_PARCEL_BYTE, data, reply, option); in TestParcelByte() local 71 return (res in TestParcelByte() 79 int res = Remote()->SendRequest(TEST_PARCEL_UINT32, data, reply, option); TestParcelUint32() local 88 int res = Remote()->SendRequest(TEST_PARCEL_UINT64, data, reply, option); TestParcelUint64() local 97 int res = Remote()->SendRequest(TEST_PARCEL_FLOAT, data, reply, option); TestParcelFloat() local 106 int res = Remote()->SendRequest(TEST_PARCEL_DOUBLE, data, reply, option); TestParcelDouble() local 115 int res = Remote()->SendRequest(TEST_PARCEL_CSTRING, data, reply, option); TestParcelCString() local 124 int res = Remote()->SendRequest(TEST_PARCEL_STRING8, data, reply, option); TestParcelString() local 133 int res = Remote()->SendRequest(TEST_PARCEL_STRING16, data, reply, option); TestParcelString16() local 172 int res = Remote()->SendRequest(TEST_PARCEL_INT8_VECTOR, data, reply, option); TestParcelInt8Vector() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
H A D | pipe_binarydesc.c | 230 in_info->res = pipe->config.input_effective_res; in ia_css_pipe_get_preview_binarydesc() 231 in_info->padded_width = in_info->res.width; in ia_css_pipe_get_preview_binarydesc() 258 bds_out_info->res.width = in ia_css_pipe_get_preview_binarydesc() 260 bds_out_info->res.height = in ia_css_pipe_get_preview_binarydesc() 265 binarydesc_calculate_bds_factor(in_info->res, in ia_css_pipe_get_preview_binarydesc() 266 bds_out_info->res, in ia_css_pipe_get_preview_binarydesc() 271 bds_out_info->res.width = in_info->res.width / 2; in ia_css_pipe_get_preview_binarydesc() 272 bds_out_info->res.height = in_info->res in ia_css_pipe_get_preview_binarydesc() [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | suballoc.c | 57 static u64 ocfs2_group_from_res(struct ocfs2_suballoc_result *res) in ocfs2_group_from_res() argument 59 if (res->sr_blkno == 0) in ocfs2_group_from_res() 62 if (res->sr_bg_blkno) in ocfs2_group_from_res() 63 return res->sr_bg_blkno; in ocfs2_group_from_res() 65 return ocfs2_which_suballoc_group(res->sr_blkno, res->sr_bit_offset); in ocfs2_group_from_res() 87 struct ocfs2_suballoc_result *res); 92 struct ocfs2_suballoc_result *res); 97 struct ocfs2_suballoc_result *res); 1281 struct ocfs2_suballoc_result *res) in ocfs2_block_group_find_clear_bits() 1277 ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb, struct buffer_head *bg_bh, unsigned int bits_wanted, unsigned int total_bits, struct ocfs2_suballoc_result *res) ocfs2_block_group_find_clear_bits() argument 1476 ocfs2_cluster_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_cluster_group_search() argument 1547 ocfs2_block_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_block_group_search() argument 1621 ocfs2_bg_discontig_fix_by_rec(struct ocfs2_suballoc_result *res, struct ocfs2_extent_rec *rec, struct ocfs2_chain_list *cl) ocfs2_bg_discontig_fix_by_rec() argument 1640 ocfs2_bg_discontig_fix_result(struct ocfs2_alloc_context *ac, struct ocfs2_group_desc *bg, struct ocfs2_suballoc_result *res) ocfs2_bg_discontig_fix_result() argument 1670 ocfs2_search_one_group(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_one_group() argument 1737 ocfs2_search_chain(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_chain() argument 1878 ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res) ocfs2_claim_suballoc_bits() argument 1998 struct ocfs2_suballoc_result res = { .sr_blkno = 0, }; ocfs2_claim_metadata() local 2069 struct ocfs2_suballoc_result *res; ocfs2_find_new_inode_loc() local 2132 struct ocfs2_suballoc_result *res = ac->ac_find_loc_priv; ocfs2_claim_new_inode_at_loc() local 2203 struct ocfs2_suballoc_result res; ocfs2_claim_new_inode() local 2307 struct ocfs2_suballoc_result res = { .sr_blkno = 0, }; __ocfs2_claim_clusters() local 2754 ocfs2_test_suballoc_bit(struct ocfs2_super *osb, struct inode *suballoc, struct buffer_head *alloc_bh, u64 group_blkno, u64 blkno, u16 bit, int *res) ocfs2_test_suballoc_bit() argument 2812 ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res) ocfs2_test_inode_bit() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | suballoc.c | 55 static u64 ocfs2_group_from_res(struct ocfs2_suballoc_result *res) in ocfs2_group_from_res() argument 57 if (res->sr_blkno == 0) in ocfs2_group_from_res() 60 if (res->sr_bg_blkno) in ocfs2_group_from_res() 61 return res->sr_bg_blkno; in ocfs2_group_from_res() 63 return ocfs2_which_suballoc_group(res->sr_blkno, res->sr_bit_offset); in ocfs2_group_from_res() 85 struct ocfs2_suballoc_result *res); 90 struct ocfs2_suballoc_result *res); 95 struct ocfs2_suballoc_result *res); 1279 struct ocfs2_suballoc_result *res) in ocfs2_block_group_find_clear_bits() 1275 ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb, struct buffer_head *bg_bh, unsigned int bits_wanted, unsigned int total_bits, struct ocfs2_suballoc_result *res) ocfs2_block_group_find_clear_bits() argument 1474 ocfs2_cluster_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_cluster_group_search() argument 1545 ocfs2_block_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_block_group_search() argument 1619 ocfs2_bg_discontig_fix_by_rec(struct ocfs2_suballoc_result *res, struct ocfs2_extent_rec *rec, struct ocfs2_chain_list *cl) ocfs2_bg_discontig_fix_by_rec() argument 1638 ocfs2_bg_discontig_fix_result(struct ocfs2_alloc_context *ac, struct ocfs2_group_desc *bg, struct ocfs2_suballoc_result *res) ocfs2_bg_discontig_fix_result() argument 1668 ocfs2_search_one_group(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_one_group() argument 1735 ocfs2_search_chain(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_chain() argument 1876 ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res) ocfs2_claim_suballoc_bits() argument 1996 struct ocfs2_suballoc_result res = { .sr_blkno = 0, }; ocfs2_claim_metadata() local 2067 struct ocfs2_suballoc_result *res; ocfs2_find_new_inode_loc() local 2130 struct ocfs2_suballoc_result *res = ac->ac_find_loc_priv; ocfs2_claim_new_inode_at_loc() local 2201 struct ocfs2_suballoc_result res; ocfs2_claim_new_inode() local 2305 struct ocfs2_suballoc_result res = { .sr_blkno = 0, }; __ocfs2_claim_clusters() local 2752 ocfs2_test_suballoc_bit(struct ocfs2_super *osb, struct inode *suballoc, struct buffer_head *alloc_bh, u64 group_blkno, u64 blkno, u16 bit, int *res) ocfs2_test_suballoc_bit() argument 2810 ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res) ocfs2_test_inode_bit() argument [all...] |
/foundation/ability/ability_runtime/tools/test/unittest/ability_delegator/ |
H A D | test_observer_stub_test.cpp | 65 int res = stub.OnRemoteRequest(static_cast<uint32_t>(ITestObserver::Message::AA_TEST_STATUS), data, reply, option); in HWTEST_F() local 66 EXPECT_EQ(res, NO_ERROR); in HWTEST_F() 90 int res = stub.OnRemoteRequest(static_cast<uint32_t>(ITestObserver::Message::AA_TEST_FINISHED), in HWTEST_F() local 92 EXPECT_EQ(res, NO_ERROR); in HWTEST_F() 116 int res = stub.OnRemoteRequest(static_cast<uint32_t>(ITestObserver::Message::AA_EXECUTE_SHELL_COMMAND), in HWTEST_F() local 118 EXPECT_EQ(res, NO_ERROR); in HWTEST_F() 142 int res = stub.OnRemoteRequest(0, data, reply, option); in HWTEST_F() local 143 EXPECT_EQ(res, IPC_STUB_UNKNOW_TRANS_ERR); in HWTEST_F() 166 int res = stub.OnRemoteRequest(0, data, reply, option); in HWTEST_F() local 167 EXPECT_EQ(res, ERR_TRANSACTION_FAILE in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/ |
H A D | bundle_manager_ffi.cpp | 58 auto res = strcpy_s(result[i], vec[i].length() + 1, vec[i].c_str()); in VectorToCArrString() local 59 if (res != EOK) { in VectorToCArrString() 107 RetCArrString res = { .code = -1, .value = {}}; in FfiGetProfileByExtensionAbility() local 114 res.code = SUCCESS_CODE; in FfiGetProfileByExtensionAbility() 115 res.value = VectorToCArrString(extensionAbilityInfo); in FfiGetProfileByExtensionAbility() 117 return res; in FfiGetProfileByExtensionAbility() 123 RetCArrString res = { .code = -1, .value = {}}; in FfiGetProfileByAbility() local 130 res.code = SUCCESS_CODE; in FfiGetProfileByAbility() 131 res.value = VectorToCArrString(extensionAbilityInfo); in FfiGetProfileByAbility() 133 return res; in FfiGetProfileByAbility() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/animat/ |
H A D | rs_steps_interpolator_animat_test.cpp | 112 float res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() local 113 EXPECT_EQ(res, 1.0f); in HWTEST_F() 116 res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() 117 EXPECT_EQ(res, 1.0f); in HWTEST_F() 120 res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() 121 EXPECT_EQ(res, 1.0f); in HWTEST_F() 123 res = stepsCurveStart2.InterpolateImpl(fraction); in HWTEST_F() 124 EXPECT_EQ(res, 1.0f); in HWTEST_F() 172 bool res = stepsCurveStart.Marshalling(parcel); in HWTEST_F() local 173 ASSERT_EQ(res, tru in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/ |
H A D | rs_steps_interpolator_test.cpp | 134 float res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() local 135 EXPECT_EQ(res, 1.0f); in HWTEST_F() 138 res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() 139 EXPECT_EQ(res, 1.0f); in HWTEST_F() 142 res = stepsCurveStart.InterpolateImpl(fraction); in HWTEST_F() 143 EXPECT_EQ(res, 1.0f); in HWTEST_F() 145 res = stepsCurveStart2.InterpolateImpl(fraction); in HWTEST_F() 146 EXPECT_EQ(res, 1.0f); in HWTEST_F() 158 bool res = stepsCurveStart.Marshalling(parcel); in HWTEST_F() local 159 ASSERT_EQ(res, tru in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/checker/ |
H A D | checker_manager.cpp | 117 std::vector<CheckerManager::StoreInfo> res; in GetDynamicStores() local 122 res = checker->GetDynamicStores(); in GetDynamicStores() 123 if (!res.empty()) { in GetDynamicStores() 124 return res; in GetDynamicStores() 127 return res; in GetDynamicStores() 131 std::vector<CheckerManager::StoreInfo> res; in GetStaticStores() local 136 res = checker->GetStaticStores(); in GetStaticStores() 137 if (!res.empty()) { in GetStaticStores() 138 return res; in GetStaticStores() 141 return res; in GetStaticStores() [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/ |
H A D | cloud_sync_asset_manager_impl_test.cpp | 72 int32_t res = CloudSyncAssetManagerImpl::GetInstance().UploadAsset(userId, request, result); in HWTEST_F() local 73 EXPECT_EQ(res, E_BROKEN_IPC); in HWTEST_F() 94 int32_t res = CloudSyncAssetManagerImpl::GetInstance().DownloadFile(userId, bundleName, assetInfo); in HWTEST_F() local 95 EXPECT_EQ(res, E_BROKEN_IPC); in HWTEST_F() 118 int32_t res = CloudSyncAssetManagerImpl::GetInstance().DownloadFile(userId, in HWTEST_F() local 120 EXPECT_EQ(res, E_BROKEN_IPC); in HWTEST_F() 142 int32_t res = CloudSyncAssetManagerImpl::GetInstance().DownloadFiles(userId, in HWTEST_F() local 144 EXPECT_EQ(res, E_INVAL_ARG); in HWTEST_F() 164 int32_t res = CloudSyncAssetManagerImpl::GetInstance().DeleteAsset(userId, uri); in HWTEST_F() local 165 EXPECT_EQ(res, E_BROKEN_IP in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
H A D | timer.c | 69 struct resource res[2]; in omap1_dm_timer_init() local 120 memset(res, 0, 2 * sizeof(struct resource)); in omap1_dm_timer_init() 121 res[0].start = base; in omap1_dm_timer_init() 122 res[0].end = base + 0x46; in omap1_dm_timer_init() 123 res[0].flags = IORESOURCE_MEM; in omap1_dm_timer_init() 124 res[1].start = irq; in omap1_dm_timer_init() 125 res[1].end = irq; in omap1_dm_timer_init() 126 res[1].flags = IORESOURCE_IRQ; in omap1_dm_timer_init() 127 ret = platform_device_add_resources(pdev, res, in omap1_dm_timer_init() 128 ARRAY_SIZE(res)); in omap1_dm_timer_init() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
H A D | riscv-runtime.c | 89 struct resource *res; in riscv_enable_runtime_services() local 94 res = kzalloc(sizeof(*res), GFP_KERNEL); in riscv_enable_runtime_services() 95 if (WARN_ON(!res)) in riscv_enable_runtime_services() 98 res->start = md->phys_addr; in riscv_enable_runtime_services() 99 res->end = md->phys_addr + md_size - 1; in riscv_enable_runtime_services() 100 res->name = "Soft Reserved"; in riscv_enable_runtime_services() 101 res->flags = IORESOURCE_MEM; in riscv_enable_runtime_services() 102 res->desc = IORES_DESC_SOFT_RESERVED; in riscv_enable_runtime_services() 104 insert_resource(&iomem_resource, res); in riscv_enable_runtime_services() [all...] |
H A D | arm-runtime.c | 111 struct resource *res; in arm_enable_runtime_services() local 116 res = kzalloc(sizeof(*res), GFP_KERNEL); in arm_enable_runtime_services() 117 if (WARN_ON(!res)) in arm_enable_runtime_services() 120 res->start = md->phys_addr; in arm_enable_runtime_services() 121 res->end = md->phys_addr + md_size - 1; in arm_enable_runtime_services() 122 res->name = "Soft Reserved"; in arm_enable_runtime_services() 123 res->flags = IORESOURCE_MEM; in arm_enable_runtime_services() 124 res->desc = IORES_DESC_SOFT_RESERVED; in arm_enable_runtime_services() 126 insert_resource(&iomem_resource, res); in arm_enable_runtime_services() [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-omap1/ |
H A D | timer.c | 62 struct resource res[2]; in omap1_dm_timer_init() local 113 memset(res, 0, 2 * sizeof(struct resource)); in omap1_dm_timer_init() 114 res[0].start = base; in omap1_dm_timer_init() 115 res[0].end = base + 0x46; in omap1_dm_timer_init() 116 res[0].flags = IORESOURCE_MEM; in omap1_dm_timer_init() 117 res[1].start = irq; in omap1_dm_timer_init() 118 res[1].end = irq; in omap1_dm_timer_init() 119 res[1].flags = IORESOURCE_IRQ; in omap1_dm_timer_init() 120 ret = platform_device_add_resources(pdev, res, in omap1_dm_timer_init() 121 ARRAY_SIZE(res)); in omap1_dm_timer_init() [all...] |
/kernel/linux/linux-6.6/drivers/pwm/ |
H A D | pwm-ntxec.c | 88 int res; in ntxec_pwm_apply() local 109 res = ntxec_pwm_set_raw_period_and_duty_cycle(chip, period, duty); in ntxec_pwm_apply() 110 if (res) in ntxec_pwm_apply() 111 return res; in ntxec_pwm_apply() 113 res = regmap_write(priv->ec->regmap, NTXEC_REG_ENABLE, ntxec_reg8(1)); in ntxec_pwm_apply() 114 if (res) in ntxec_pwm_apply() 115 return res; in ntxec_pwm_apply() 118 res = regmap_write(priv->ec->regmap, NTXEC_REG_AUTO_OFF_HI, ntxec_reg8(0xff)); in ntxec_pwm_apply() 119 if (res) in ntxec_pwm_apply() 120 return res; in ntxec_pwm_apply() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/ |
H A D | arm-runtime.c | 111 struct resource *res; in arm_enable_runtime_services() local 116 res = kzalloc(sizeof(*res), GFP_KERNEL); in arm_enable_runtime_services() 117 if (WARN_ON(!res)) in arm_enable_runtime_services() 120 res->start = md->phys_addr; in arm_enable_runtime_services() 121 res->end = md->phys_addr + md_size - 1; in arm_enable_runtime_services() 122 res->name = "Soft Reserved"; in arm_enable_runtime_services() 123 res->flags = IORESOURCE_MEM; in arm_enable_runtime_services() 124 res->desc = IORES_DESC_SOFT_RESERVED; in arm_enable_runtime_services() 126 insert_resource(&iomem_resource, res); in arm_enable_runtime_services() [all...] |
H A D | riscv-runtime.c | 89 struct resource *res; in riscv_enable_runtime_services() local 94 res = kzalloc(sizeof(*res), GFP_KERNEL); in riscv_enable_runtime_services() 95 if (WARN_ON(!res)) in riscv_enable_runtime_services() 98 res->start = md->phys_addr; in riscv_enable_runtime_services() 99 res->end = md->phys_addr + md_size - 1; in riscv_enable_runtime_services() 100 res->name = "Soft Reserved"; in riscv_enable_runtime_services() 101 res->flags = IORESOURCE_MEM; in riscv_enable_runtime_services() 102 res->desc = IORES_DESC_SOFT_RESERVED; in riscv_enable_runtime_services() 104 insert_resource(&iomem_resource, res); in riscv_enable_runtime_services() [all...] |
/kernel/linux/linux-6.6/drivers/dma/bestcomm/ |
H A D | sram.c | 41 struct resource res; in bcom_sram_init() local 59 rv = of_address_to_resource(sram_node, 0, &res); in bcom_sram_init() 66 bcom_sram->base_phys = res.start; in bcom_sram_init() 67 bcom_sram->size = resource_size(&res); in bcom_sram_init() 70 if (!request_mem_region(res.start, resource_size(&res), owner)) { in bcom_sram_init() 79 bcom_sram->base_virt = (void *)ioremap(res.start, resource_size(&res)); in bcom_sram_init() 120 release_mem_region(res.start, resource_size(&res)); in bcom_sram_init() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | observer_manager.cpp | 249 auto res = HiviewDFX::HiSysEventManager::AddListener(hiSysEventObserver_, sysRules); in InitHiSysEventObserver() local 250 if (res == 0) { in InitHiSysEventObserver() 268 auto res = HiviewDFX::HiSysEventManager::RemoveListener(hiSysEventObserver_); in DisableHiSysEventObserver() local 269 if (res == 0) { in DisableHiSysEventObserver() 285 auto res = Telephony::TelephonyObserverClient::GetInstance().AddStateObserver( in InitTelephonyObserver() local 287 if (res == OPERATION_SUCCESS) { in InitTelephonyObserver() 323 auto res = AudioStandard::AudioStreamManager::GetInstance()->RegisterAudioRendererEventListener(pid_, in InitAudioObserver() local 325 if (res == OPERATION_SUCCESS) { in InitAudioObserver() 335 res = AudioStandard::AudioSystemManager::GetInstance()->SetRingerModeCallback(pid_, audioObserver_); in InitAudioObserver() 336 if (res in InitAudioObserver() 370 auto res = AudioStandard::AudioStreamManager::GetInstance()->UnregisterAudioRendererEventListener(pid_); DisableAudioObserver() local 457 auto res = MMI::InputManager::GetInstance()->AddInputEventObserver(mmiEventObserver_); InitMMiEventObserver() local 482 auto res = MMI::InputManager::GetInstance()->RemoveInputEventObserver(mmiEventObserver_); DisableMMiEventObserver() local 571 auto res = AbilityRuntime::ConnectionObserverClient::GetInstance().RegisterObserver(connectionSubscriber_); InitConnectionSubscriber() local 591 auto res = AbilityRuntime::ConnectionObserverClient::GetInstance().UnregisterObserver(connectionSubscriber_); DisableConnectionSubscriber() local 619 auto res = AVSession::AVSessionManager::GetInstance().RegisterSessionListenerForAllUsers(avSessionStateListener_); InitAVSessionStateChangeListener() local 644 auto res = OHOS::Request::SubscribeRunningTaskCount(downLoadUploadObserver_); InitDownloadUploadObserver() local [all...] |
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/ |
H A D | system_ability_mgr_stub_unload_test.cpp | 107 int32_t res = saMgr->RemoveSystemAbility(INVALID_SAID); in HWTEST_F() local 108 EXPECT_EQ(res, ERR_INVALID_VALUE); in HWTEST_F() 115 int32_t res = saMgr->RemoveSystemAbility(SAID); in HWTEST_F() local 116 EXPECT_EQ(res, ERR_INVALID_VALUE); in HWTEST_F() 126 int32_t res = saMgr->RemoveSystemAbility(SAID); in HWTEST_F() local 127 EXPECT_EQ(res, ERR_OK); in HWTEST_F() 138 int32_t res = saMgr->RemoveSystemAbility(SAID); in HWTEST_F() local 140 EXPECT_EQ(res, ERR_OK); in HWTEST_F() 147 int32_t res = saMgr->RemoveSystemAbility(nullptr); in HWTEST_F() local 148 EXPECT_EQ(res, ERR_INVALID_VALU in HWTEST_F() 159 int32_t res = saMgr->RemoveSystemAbility(saMgr); HWTEST_F() local 172 int32_t res = saMgr->RemoveSystemAbility(saMgr); HWTEST_F() local 181 int32_t res = saMgr->UnSubscribeSystemAbility(INVALID_SAID, listener); HWTEST_F() local 192 int32_t res = saMgr->UnSubscribeSystemAbility(SAID, listener); HWTEST_F() local 205 int32_t res = saMgr->UnSubscribeSystemAbility(INVALID_SAID, listener); HWTEST_F() local 219 int32_t res = saMgr->UnSubscribeSystemAbility(SAID, listener); HWTEST_F() local 236 int32_t res = saMgr->UnSubscribeSystemAbility(SAID, listener); HWTEST_F() local 246 int32_t res = saMgr->RemoveSystemProcess(testAbility); HWTEST_F() local 269 int32_t res = saMgr->AddSystemProcess(procName, testAbility); HWTEST_F() local 289 int32_t res = saMgr->RemoveSystemProcess(testAbility); HWTEST_F() local [all...] |
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | i10nm_base.c | 207 static void show_retry_rd_err_log(struct decoded_addr *res, char *msg, in show_retry_rd_err_log() argument 210 struct skx_imc *imc = &res->dev->imc[res->imc]; in show_retry_rd_err_log() 224 pch = res->cs & 1; in show_retry_rd_err_log() 241 log0 = I10NM_GET_REG32(imc, res->channel, offsets[0]); in show_retry_rd_err_log() 242 log1 = I10NM_GET_REG32(imc, res->channel, offsets[1]); in show_retry_rd_err_log() 243 log3 = I10NM_GET_REG32(imc, res->channel, offsets[3]); in show_retry_rd_err_log() 244 log4 = I10NM_GET_REG32(imc, res->channel, offsets[4]); in show_retry_rd_err_log() 245 log5 = I10NM_GET_REG64(imc, res->channel, offsets[5]); in show_retry_rd_err_log() 248 lxg0 = I10NM_GET_REG32(imc, res in show_retry_rd_err_log() 513 i10nm_mc_decode(struct decoded_addr *res) i10nm_mc_decode() argument [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | wm_occlusion_region.h | 113 inline void PushRange(std::vector<Range>& res) in PushRange() argument 115 if (res.size() > 0 && start_ == res[res.size() - 1].end_) { in PushRange() 117 res[res.size() - 1].end_ = end_; in PushRange() 119 res.emplace_back(Range { start_, end_ }); in PushRange() 126 void GetOrRange(std::vector<Range>& res, bool isParentNodePos, bool isParentNodeNeg); 128 void GetAndRange(std::vector<Range>& res, bool isParentNodePos, bool isParentNodeNeg); 130 void GetSubRange(std::vector<Range>& res, boo [all...] |