Home
last modified time | relevance | path

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

12345678910>>...42

/third_party/uboot/u-boot-2020.01/common/
Dimage-fit.c115 static void fit_get_debug(const void *fit, int noffset, in fit_get_debug() argument
119 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL), in fit_get_debug()
131 int fit_get_subimage_count(const void *fit, int images_noffset) in fit_get_subimage_count() argument
139 noffset = fdt_next_node(fit, images_noffset, &ndepth); in fit_get_subimage_count()
141 noffset = fdt_next_node(fit, noffset, &ndepth)) { in fit_get_subimage_count()
166 static void fit_image_print_data(const void *fit, int noffset, const char *p, in fit_image_print_data() argument
178 fit_get_name(fit, noffset, NULL)); in fit_image_print_data()
180 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_print_data()
185 keyname = fdt_getprop(fit, noffset, FIT_KEY_HINT, NULL); in fit_image_print_data()
186 required = fdt_getprop(fit, noffset, FIT_KEY_REQUIRED, NULL) != NULL; in fit_image_print_data()
[all …]
Dimage-sig.c181 struct image_region *fit_region_make_list(const void *fit, in fit_region_make_list() argument
203 region[i].data = fit + fdt_regions[i].offset; in fit_region_make_list()
211 const void *fit, int noffset, int required_keynode, in fit_image_setup_verify() argument
217 if (fdt_totalsize(fit) > CONFIG_FIT_SIGNATURE_MAX_SIZE) { in fit_image_setup_verify()
222 if (fit_image_hash_get_algo(fit, noffset, &algo_name)) { in fit_image_setup_verify()
227 padding_name = fdt_getprop(fit, noffset, "padding", NULL); in fit_image_setup_verify()
232 info->keyname = fdt_getprop(fit, noffset, FIT_KEY_HINT, NULL); in fit_image_setup_verify()
233 info->fit = (void *)fit; in fit_image_setup_verify()
251 int fit_image_check_sig(const void *fit, int noffset, const void *data, in fit_image_check_sig() argument
260 if (fit_image_setup_verify(&info, fit, noffset, required_keynode, in fit_image_check_sig()
[all …]
Dboot_fit.c15 static int fdt_offset(const void *fit) in fdt_offset() argument
20 node = fit_find_config_node(fit); in fdt_offset()
24 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in fdt_offset()
30 fdt_name = fdt_getprop(fit, node, FIT_FDT_PROP, &fdt_len); in fdt_offset()
37 fdt_node = fdt_subnode_offset(fit, images, fdt_name); in fdt_offset()
44 fdt_offset = fdt_getprop_u32(fit, fdt_node, "data-offset"); in fdt_offset()
49 fdt_len = fdt_getprop_u32(fit, fdt_node, "data-size"); in fdt_offset()
57 void *locate_dtb_in_fit(const void *fit) in locate_dtb_in_fit() argument
63 size = fdt_totalsize(fit); in locate_dtb_in_fit()
66 header = (struct image_header *)fit; in locate_dtb_in_fit()
[all …]
Dimage-fit.c.orig112 static void fit_get_debug(const void *fit, int noffset,
116 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL),
122 * @fit: pointer to the FIT format image header
128 int fit_get_subimage_count(const void *fit, int images_noffset)
136 noffset = fdt_next_node(fit, images_noffset, &ndepth);
138 noffset = fdt_next_node(fit, noffset, &ndepth)) {
150 * @fit: pointer to the FIT format image header
163 static void fit_image_print_data(const void *fit, int noffset, const char *p,
175 fit_get_name(fit, noffset, NULL));
177 if (fit_image_hash_get_algo(fit, noffset, &algo)) {
[all …]
Dimage-cipher.c69 const void *fit, int image_noffset, in fit_image_setup_decrypt() argument
79 node_name = fit_get_name(fit, image_noffset, NULL); in fit_image_setup_decrypt()
85 if (fit_image_cipher_get_algo(fit, cipher_noffset, &algo_name)) { in fit_image_setup_decrypt()
91 info->keyname = fdt_getprop(fit, cipher_noffset, FIT_KEY_HINT, NULL); in fit_image_setup_decrypt()
97 info->ivname = fdt_getprop(fit, cipher_noffset, "iv-name-hint", NULL); in fit_image_setup_decrypt()
103 info->fit = fit; in fit_image_setup_decrypt()
112 ret = fit_image_get_data_size_unciphered(fit, image_noffset, in fit_image_setup_decrypt()
149 int fit_image_decrypt_data(const void *fit, in fit_image_decrypt_data() argument
157 ret = fit_image_setup_decrypt(&info, fit, image_noffset, in fit_image_decrypt_data()
Dupdate.c217 static int update_fit_getparams(const void *fit, int noffset, ulong *addr, in update_fit_getparams() argument
222 if (fit_image_get_data(fit, noffset, &data, (size_t *)size)) in update_fit_getparams()
225 if (fit_image_get_load(fit, noffset, (ulong *)fladdr)) in update_fit_getparams()
240 void *fit; in update_tftp() local
283 fit = (void *)addr; in update_tftp()
285 if (fit_check_format((void *)fit, IMAGE_SIZE_INVAL)) { in update_tftp()
292 images_noffset = fdt_path_offset(fit, FIT_IMAGES_PATH); in update_tftp()
295 noffset = fdt_next_node(fit, images_noffset, &ndepth); in update_tftp()
300 fit_image_name = (char *)fit_get_name(fit, noffset, NULL); in update_tftp()
303 if (!fit_image_verify(fit, noffset)) { in update_tftp()
[all …]
/third_party/uboot/u-boot-2020.01/tools/
Dimage-host.c31 static int fit_set_hash_value(void *fit, int noffset, uint8_t *value, in fit_set_hash_value() argument
36 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len); in fit_set_hash_value()
39 FIT_VALUE_PROP, fit_get_name(fit, noffset, NULL), in fit_set_hash_value()
60 static int fit_image_process_hash(void *fit, const char *image_name, in fit_image_process_hash() argument
69 node_name = fit_get_name(fit, noffset, NULL); in fit_image_process_hash()
71 if (fit_image_hash_get_algo(fit, noffset, &algo)) { in fit_image_process_hash()
83 ret = fit_set_hash_value(fit, noffset, value, value_len); in fit_image_process_hash()
108 static int fit_image_write_sig(void *fit, int noffset, uint8_t *value, in fit_image_write_sig() argument
119 string_size = fdt_size_dt_strings(fit); in fit_image_write_sig()
121 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len); in fit_image_write_sig()
[all …]
Dimage-host.c.orig19 * @fit: pointer to the FIT format image header
31 static int fit_set_hash_value(void *fit, int noffset, uint8_t *value,
36 ret = fdt_setprop(fit, noffset, FIT_VALUE_PROP, value, value_len);
39 FIT_VALUE_PROP, fit_get_name(fit, noffset, NULL),
53 * @fit: pointer to the FIT format image header
60 static int fit_image_process_hash(void *fit, const char *image_name,
69 node_name = fit_get_name(fit, noffset, NULL);
71 if (fit_image_hash_get_algo(fit, noffset, &algo)) {
83 ret = fit_set_hash_value(fit, noffset, value, value_len);
98 * @fit: pointer to the FIT format image header
[all …]
/third_party/uboot/u-boot-2020.01/common/spl/
Dspl_fit.c42 static int spl_fit_get_image_name(const void *fit, int images, in spl_fit_get_image_name() argument
51 conf_node = fit_find_config_node(fit); in spl_fit_get_image_name()
55 for (node = fdt_first_subnode(fit, conf_node); in spl_fit_get_image_name()
57 node = fdt_next_subnode(fit, node)) { in spl_fit_get_image_name()
58 name = fdt_getprop(fit, node, "description", &len); in spl_fit_get_image_name()
65 name = fdt_getprop(fit, conf_node, type, &len); in spl_fit_get_image_name()
96 static int spl_fit_get_image_node(const void *fit, int images, in spl_fit_get_image_node() argument
103 err = spl_fit_get_image_name(fit, images, type, index, &str); in spl_fit_get_image_node()
109 node = fdt_subnode_offset(fit, images, str); in spl_fit_get_image_node()
174 void *fit, ulong base_offset, int node, in spl_load_fit_image() argument
[all …]
/third_party/flutter/flutter/packages/flutter/test/gestures/
Dlsq_solver_test.dart15 test('Least-squares fit: linear polynomial to line', () {
21 final PolynomialFit fit = solver.solve(1);
23 expect(fit.coefficients.length, 2);
24 expect(approx(fit.coefficients[0], 1.0), isTrue);
25 expect(approx(fit.coefficients[1], 0.0), isTrue);
26 expect(approx(fit.confidence, 1.0), isTrue);
29 test('Least-squares fit: linear polynomial to sloped line', () {
35 final PolynomialFit fit = solver.solve(1);
37 expect(fit.coefficients.length, 2);
38 expect(approx(fit.coefficients[0], 1.0), isTrue);
[all …]
/third_party/uboot/u-boot-2020.01/include/
Dimage.h974 int fit_get_subimage_count(const void *fit, int images_noffset);
975 void fit_print_contents(const void *fit);
976 void fit_image_print(const void *fit, int noffset, const char *p);
985 static inline ulong fit_get_size(const void *fit) in fit_get_size() argument
987 return fdt_totalsize(fit); in fit_get_size()
997 ulong fit_get_end(const void *fit);
1013 int fit_get_desc(const void *fit, int noffset, char **desc);
1014 int fit_get_timestamp(const void *fit, int noffset, time_t *timestamp);
1016 int fit_image_get_node(const void *fit, const char *image_uname);
1017 int fit_image_get_os(const void *fit, int noffset, uint8_t *os);
[all …]
/third_party/uboot/u-boot-2020.01/test/py/tests/
Dtest_vboot.py78 def run_bootm(sha_algo, test_type, expect_string, boots, fit=None): argument
93 if not fit:
94 fit = '%stest.fit' % tmpdir
98 ['host load hostfs - 100 %s' % fit,
117 '%s%s' % (datadir, its), fit])
131 '-r', fit])
146 with open(fit, 'r+b') as handle:
207 util.run_and_log(cons, [fit_check_sign, '-f', fit, '-k', dtb])
213 shutil.copyfile(fit, ffit)
227 shutil.copyfile(fit, efit)
[all …]
Dtest_fit.py185 fit = make_fname('test.fit')
187 util.run_and_log(cons, [mkimage, '-f', its, fit])
190 return fit
369 fit = make_fit(mkimage, params)
370 params['fit'] = fit
389 data = read_file(fit)
400 fit = make_fit(mkimage, params)
412 fit = make_fit(mkimage, params)
424 fit = make_fit(mkimage, params)
438 fit = make_fit(mkimage, params)
/third_party/uboot/u-boot-2020.01/arch/arm/mach-k3/
Dsysfw-loader.c53 static int fit_get_data_by_name(const void *fit, int images, const char *name, in fit_get_data_by_name() argument
58 node_offset = fdt_subnode_offset(fit, images, name); in fit_get_data_by_name()
62 return fit_image_get_data(fit, node_offset, addr, size); in fit_get_data_by_name()
65 static void k3_sysfw_load_using_fit(void *fit) in k3_sysfw_load_using_fit() argument
73 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in k3_sysfw_load_using_fit()
78 ret = fit_get_data_by_name(fit, images, SYSFW_FIRMWARE, in k3_sysfw_load_using_fit()
103 static void k3_sysfw_configure_using_fit(void *fit, in k3_sysfw_configure_using_fit() argument
113 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in k3_sysfw_configure_using_fit()
118 ret = fit_get_data_by_name(fit, images, SYSFW_CFG_BOARD, in k3_sysfw_configure_using_fit()
132 ret = fit_get_data_by_name(fit, images, SYSFW_CFG_PM, in k3_sysfw_configure_using_fit()
[all …]
/third_party/skia/src/gpu/
DGrTextureRenderTargetProxy.cpp31 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
37 : GrSurfaceProxy(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) in GrTextureRenderTargetProxy()
39 , GrRenderTargetProxy(caps, format, dimensions, sampleCnt, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
41 , GrTextureProxy(format, dimensions, mipMapped, mipmapStatus, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
54 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
60 : GrSurfaceProxy(std::move(callback), format, dimensions, fit, budgeted, isProtected, in GrTextureRenderTargetProxy()
64 , GrRenderTargetProxy(LazyInstantiateCallback(), format, dimensions, sampleCnt, fit, in GrTextureRenderTargetProxy()
68 fit, budgeted, isProtected, surfaceFlags, useAllocator, in GrTextureRenderTargetProxy()
154 SkBackingFit fit; in callbackDesc() local
156 fit = SkBackingFit::kApprox; in callbackDesc()
[all …]
DGrSurfaceProxy.cpp29 static bool is_valid_lazy(const SkISize& dimensions, SkBackingFit fit) { in is_valid_lazy() argument
34 return ((dimensions.fWidth < 0 && dimensions.fHeight < 0 && SkBackingFit::kApprox == fit) || in is_valid_lazy()
46 SkBackingFit fit, in GrSurfaceProxy() argument
54 , fFit(fit) in GrSurfaceProxy()
66 SkBackingFit fit, in GrSurfaceProxy() argument
74 , fFit(fit) in GrSurfaceProxy()
81 SkASSERT(is_valid_lazy(dimensions, fit)); in GrSurfaceProxy()
86 SkBackingFit fit, in GrSurfaceProxy() argument
92 , fFit(fit) in GrSurfaceProxy()
262 SkBackingFit fit, in Copy() argument
[all …]
DGrRecordingContextPriv.cpp42 SkBackingFit fit, in createDevice() argument
50 return skgpu::v1::Device::Make(this->context(), budgeted, ii, fit, sampleCount, in createDevice()
119 SkBackingFit fit, in makeSC() argument
135 fit, in makeSC()
153 SkBackingFit fit, in makeSFC() argument
165 fit, in makeSFC()
181 fit, in makeSFC()
208 SkBackingFit fit, in makeSFC() argument
225 fit, in makeSFC()
243 fit, in makeSFC()
[all …]
DGrTextureProxy.cpp24 SkBackingFit fit, in GrTextureProxy() argument
30 : INHERITED(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) in GrTextureProxy()
49 SkBackingFit fit, in GrTextureProxy() argument
55 : INHERITED(std::move(callback), format, dimensions, fit, budgeted, isProtected, in GrTextureProxy()
191 SkBackingFit fit; in callbackDesc() local
193 fit = SkBackingFit::kApprox; in callbackDesc()
196 fit = this->isFunctionallyExact() ? SkBackingFit::kExact : SkBackingFit::kApprox; in callbackDesc()
201 fit, in callbackDesc()
/third_party/flutter/flutter/packages/flutter/test/painting/
Dbox_fit_test.dart39 void _testZeroAndNegativeSizes(BoxFit fit) {
42 result = applyBoxFit(fit, const Size(-400.0, 2000.0), const Size(100.0, 1000.0));
46 result = applyBoxFit(fit, const Size(400.0, -2000.0), const Size(100.0, 1000.0));
50 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(-100.0, 1000.0));
54 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, -1000.0));
58 result = applyBoxFit(fit, const Size(0.0, 2000.0), const Size(100.0, 1000.0));
62 result = applyBoxFit(fit, const Size(400.0, 0.0), const Size(100.0, 1000.0));
66 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(0.0, 1000.0));
70 result = applyBoxFit(fit, const Size(400.0, 2000.0), const Size(100.0, 0.0));
/third_party/flutter/skia/src/gpu/
DGrTextureRenderTargetProxy.cpp30 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
34 : GrSurfaceProxy(format, desc, GrRenderable::kYes, origin, texSwizzle, fit, budgeted, in GrTextureRenderTargetProxy()
37 , GrRenderTargetProxy(caps, format, desc, sampleCnt, origin, texSwizzle, outSwizzle, fit, in GrTextureRenderTargetProxy()
39 , GrTextureProxy(format, desc, origin, mipMapped, mipMapsStatus, texSwizzle, fit, budgeted, in GrTextureRenderTargetProxy()
53 SkBackingFit fit, in GrTextureRenderTargetProxy() argument
58 texSwizzle, fit, budgeted, isProtected, surfaceFlags) in GrTextureRenderTargetProxy()
62 texSwizzle, outSwizzle, fit, budgeted, isProtected, surfaceFlags, in GrTextureRenderTargetProxy()
65 mipMapsStatus, texSwizzle, fit, budgeted, isProtected, surfaceFlags) {} in GrTextureRenderTargetProxy()
DGrRecordingContext.cpp169 SkBackingFit fit, in makeDeferredTextureContext() argument
196 fit, budgeted, isProtected); in makeDeferredTextureContext()
212 SkBackingFit fit, in makeDeferredRenderTargetContext() argument
245 origin, fit, budgeted, isProtected); in makeDeferredRenderTargetContext()
289 SkBackingFit fit, in makeDeferredRenderTargetContextWithFallback() argument
303 rtc = this->makeDeferredRenderTargetContext(fit, width, height, colorType, colorSpace, in makeDeferredRenderTargetContextWithFallback()
339 SkBackingFit fit, in makeDeferredTextureContext() argument
349 return fContext->makeDeferredTextureContext(fit, width, height, colorType, alphaType, in makeDeferredTextureContext()
355 SkBackingFit fit, in makeDeferredRenderTargetContext() argument
366 return fContext->makeDeferredRenderTargetContext(fit, width, height, colorType, in makeDeferredRenderTargetContext()
[all …]
/third_party/skia/tests/
DProxyTest.cpp48 SkBackingFit fit, in check_rendertarget() argument
66 if (SkBackingFit::kExact == fit) { in check_rendertarget()
81 SkBackingFit fit) { in check_texture() argument
124 for (auto fit : {SkBackingFit::kExact, SkBackingFit::kApprox}) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
137 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
149 fit, budgeted, GrProtected::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
166 fit, caps.maxWindowRectangles()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
185 fit, budgeted, GrProtected::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 fit); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/flutter/skia/tests/
DProxyTest.cpp48 SkBackingFit fit, in check_rendertarget() argument
66 if (SkBackingFit::kExact == fit) { in check_rendertarget()
82 SkBackingFit fit) { in check_texture() argument
97 if (SkBackingFit::kExact == fit) { in check_texture()
119 for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
139 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
152 format, desc, GrRenderable::kYes, numSamples, origin, fit, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
171 fit, caps.maxWindowRectangles()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
178 if (SkBackingFit::kApprox == fit) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
191 format, desc, GrRenderable::kNo, numSamples, origin, fit, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DTextureProxyTest.cpp41 GrProxyProvider* proxyProvider, SkBackingFit fit) { in deferred_tex() argument
48 kBottomLeft_GrSurfaceOrigin, fit, in deferred_tex()
56 GrProxyProvider* proxyProvider, SkBackingFit fit) { in deferred_texRT() argument
64 kBottomLeft_GrSurfaceOrigin, fit, in deferred_texRT()
72 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped() argument
74 kSize, kColorType, GrRenderable::kNo, 1, kBottomLeft_GrSurfaceOrigin, fit, in wrapped()
82 GrProxyProvider* proxyProvider, SkBackingFit fit) { in wrapped_with_key() argument
94 kSize, kColorType, GrRenderable::kNo, 1, kBottomLeft_GrSurfaceOrigin, fit, in wrapped_with_key()
101 static sk_sp<GrTextureProxy> create_wrapped_backend(GrContext* context, SkBackingFit fit, in create_wrapped_backend() argument
317 for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/skia/docs/examples/
DMatrix_ScaleToFit.cpp14 for (auto fit : { SkMatrix::kFill_ScaleToFit, SkMatrix::kStart_ScaleToFit,
19 if (!matrix.setRectToRect(bounds, rect, fit)) {
26 canvas->drawString(labels[fit], 10, 255, paint);

12345678910>>...42