/kernel/linux/linux-5.10/fs/erofs/ |
H A D | decompressor.c | 40 unsigned int i, j, top; in z_erofs_lz4_prepare_destpages() local 42 top = 0; in z_erofs_lz4_prepare_destpages() 53 DBG_BUGON(top >= LZ4_MAX_DISTANCE_PAGES); in z_erofs_lz4_prepare_destpages() 54 availables[top++] = rq->out[i - LZ4_MAX_DISTANCE_PAGES]; in z_erofs_lz4_prepare_destpages() 76 if (top) { in z_erofs_lz4_prepare_destpages() 77 victim = availables[--top]; in z_erofs_lz4_prepare_destpages()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_allocator.c | 49 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_alloc() 55 obj |= alloc->top; in mthca_alloc() 74 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_free() 87 alloc->top = 0; in mthca_alloc_init()
|
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
H A D | test_VIDIOC_CROPCAP.c | 61 /* top + +-------- cropcap ------------+ ^ */ in do_ioctl_VIDIOC_CROPCAP() 76 /* top left corner */ in do_ioctl_VIDIOC_CROPCAP() 78 CU_ASSERT(cropcap.bounds.top <= cropcap.defrect.top); in do_ioctl_VIDIOC_CROPCAP() 88 CU_ASSERT(cropcap.defrect.top + cropcap.defrect.height <= in do_ioctl_VIDIOC_CROPCAP() 89 cropcap.bounds.top + cropcap.bounds.height); in do_ioctl_VIDIOC_CROPCAP() 97 ".bounds = { .left = %i, .top = %i, .width = %i, .height = %i }, " in do_ioctl_VIDIOC_CROPCAP() 98 ".defrect = { .left = %i, .top = %i, .width = %i, .height = %i }, " in do_ioctl_VIDIOC_CROPCAP() 103 cropcap.bounds.top, in do_ioctl_VIDIOC_CROPCAP() 107 cropcap.defrect.top, in do_ioctl_VIDIOC_CROPCAP() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
H A D | esextcGeometryShaderOutput.cpp | 557 const unsigned int top = height - 1; in verifyResult() local 561 (true == comparePixel(result_image, left, top, width, height, pixel_size, 255, 255, 255, 255)) && in verifyResult() 562 (true == comparePixel(result_image, right, top, width, height, pixel_size, 255, 255, 255, 255)) && in verifyResult() 624 const unsigned int top = height - 1; in verifyResult() local 628 (true == comparePixel(result_image, left, top, width, height, pixel_size, 0, 0, 0, 0)) && in verifyResult() 629 (true == comparePixel(result_image, right, top, width, height, pixel_size, 0, 0, 0, 0)) && in verifyResult()
|
/third_party/skia/third_party/externals/swiftshader/src/Main/ |
H A D | FrameBufferDD.cpp | 297 dRect.bottom = bounds.top + destRect->y1; in blit() 300 dRect.top = bounds.top + destRect->y0; in blit() 304 dRect.bottom = bounds.top + height; in blit() 307 dRect.top = bounds.top + 0; in blit()
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | filters.c | 95 // Very first top-left pixel is copied. in DoVerticalFilter_C() 97 // Rest of top scan-line is left-predicted. in DoVerticalFilter_C() 139 // left prediction for top scan-line in DoGradientFilter_C() 219 uint8_t top = prev[0], top_left = top, left = top; in GradientUnfilter_C() local 222 top = prev[i]; // need to read this first, in case prev==out in GradientUnfilter_C() 223 left = (uint8_t)(in[i] + GradientPredictor_C(left, top, top_left)); in GradientUnfilter_C() 224 top_left = top; in GradientUnfilter_C()
|
H A D | filters_mips_dsp_r2.c | 257 // Very first top-left pixel is copied. in DoVerticalFilter_MIPSdspR2() 259 // Rest of top scan-line is left-predicted. in DoVerticalFilter_MIPSdspR2() 324 // left prediction for top scan-line in DoGradientFilter_MIPSdspR2() 367 uint8_t top = prev[0], top_left = top, left = top; in GradientUnfilter_MIPSdspR2() local 370 top = prev[i]; // need to read this first, in case prev==dst in GradientUnfilter_MIPSdspR2() 371 left = in[i] + GradientPredictor_MIPSdspR2(left, top, top_left); in GradientUnfilter_MIPSdspR2() 372 top_left = top; in GradientUnfilter_MIPSdspR2()
|
H A D | lossless_neon.c | 191 static uint32_t Predictor5_NEON(uint32_t left, const uint32_t* const top) { in Predictor5_NEON() argument 192 return Average3_NEON(left, top[0], top[1]); in Predictor5_NEON() 194 static uint32_t Predictor6_NEON(uint32_t left, const uint32_t* const top) { in Predictor6_NEON() argument 195 return Average2_NEON(left, top[-1]); in Predictor6_NEON() 197 static uint32_t Predictor7_NEON(uint32_t left, const uint32_t* const top) { in Predictor7_NEON() argument 198 return Average2_NEON(left, top[0]); in Predictor7_NEON() 200 static uint32_t Predictor13_NEON(uint32_t left, const uint32_t* const top) { in Predictor13_NEON() argument 201 return ClampedAddSubtractHalf_NEON(left, top[0], top[ in Predictor13_NEON() 305 const uint8x16_t top = LOADQ_U32P_AS_U8(&upper[i - 1]); PredictorAdd6_NEON() local 321 const uint8x16_t top = LOADQ_U32P_AS_U8(&upper[i]); PredictorAdd7_NEON() local [all...] |
/third_party/skia/src/xml/ |
H A D | SkXMLWriter.cpp | 55 fElems.top()->fHasText = true; in addText() 202 SkASSERT(!fElems.top()->fHasChildren && !fElems.top()->fHasText); in onAddAttributeLen() 211 Elem* elem = fElems.top(); in onAddText() 284 SkASSERT(fElems.count() == 0 || (!fElems.top()->fHasChildren && !fElems.top()->fHasText)); in onAddAttributeLen()
|
/third_party/skia/tests/ |
H A D | TDPQueueTest.cpp | 114 // Make sure the top of the queue is really the highest priority. in random_test() 115 Mock* top = pq.peek(); in random_test() local 118 array[k].fPriority >= top->fPriority); in random_test() 123 case 0: { // pop the top, in random_test() 124 top = pq.peek(); in random_test() 125 REPORTER_ASSERT(reporter, array.begin() <= top && top < array.end()); in random_test() 127 *top = kSentinel; in random_test()
|
/third_party/python/Lib/tkinter/ |
H A D | dnd.py | 272 self.top = tkinter.Toplevel(root) 273 self.canvas = tkinter.Canvas(self.top, width=100, height=100) 294 self.top.focus_set() # Hide highlight border 309 t1.top.geometry("+1+60") 311 t2.top.geometry("+120+60") 313 t3.top.geometry("+240+60")
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 49 RectT(T left, T top, T width, T height) in RectT() argument 52 data_[1] = top; in RectT() 98 void SetAll(T left, T top, T width, T height) in SetAll() argument 101 data_[1] = top; in SetAll() 171 T top = std::max(top_, rect.top_); in IntersectRect() local 173 T height = std::min(GetBottom(), rect.GetBottom()) - top; in IntersectRect() 174 return ((width <= 0) || (height <= 0)) ? RectT<T>() : RectT<T>(left, top, width, height); in IntersectRect() 185 T top = std::min(top_, rect.top_); in JoinRect() local 187 T height = std::max(GetBottom(), rect.GetBottom()) - top; in JoinRect() 188 return ((width <= 0) || (height <= 0)) ? RectT<T>() : RectT<T>(left, top, widt in JoinRect() [all...] |
/kernel/linux/linux-5.10/block/ |
H A D | blk-settings.c | 481 * @t: the stacking driver limits (top device) 489 * struct (top) and then iteratively call the stacking function for 493 * Returns 0 if the top and bottom queue_limits are compatible. The 494 * top device's block sizes and alignment offsets may be adjusted to 496 * and alignments exist, -1 is returned and the resulting top 503 unsigned int top, bottom, alignment, ret = 0; in blk_stack_limits() local 535 * compatible with the current top alignment. in blk_stack_limits() 539 top = max(t->physical_block_size, t->io_min) in blk_stack_limits() 543 /* Verify that top and bottom intervals line up */ in blk_stack_limits() 544 if (max(top, botto in blk_stack_limits() 655 char top[BDEVNAME_SIZE], bottom[BDEVNAME_SIZE]; disk_stack_limits() local [all...] |
/kernel/linux/linux-5.10/sound/soc/generic/ |
H A D | audio-graph-card.c | 169 struct device_node *top = dev->of_node; in graph_parse_convert() local 174 asoc_simple_parse_convert(dev, top, NULL, adata); in graph_parse_convert() 185 static void graph_parse_mclk_fs(struct device_node *top, in graph_parse_mclk_fs() argument 193 of_property_read_u32(top, "mclk-fs", &props->mclk_fs); in graph_parse_mclk_fs() 212 struct device_node *top = dev->of_node; in graph_dai_link_of_dpcm() local 297 /* check "prefix" from top node */ in graph_dai_link_of_dpcm() 298 snd_soc_of_parse_node_prefix(top, cconf, codecs->of_node, in graph_dai_link_of_dpcm() 309 graph_parse_mclk_fs(top, ep, dai_props); in graph_dai_link_of_dpcm() 342 struct device_node *top = dev->of_node; in graph_dai_link_of() local 361 graph_parse_mclk_fs(top, cpu_e in graph_dai_link_of() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_blend.c | 55 const AVFrame *top, *bottom; member 136 const type *top = (type*)_top; \ 149 values[VAR_TOP] = values[VAR_A] = top[x]; \ 154 top += top_linesize; \ 169 const uint8_t *top = td->top->data[td->plane]; in filter_slice() local 181 td->param->blend(top + slice_start * td->top->linesize[td->plane], in filter_slice() 182 td->top->linesize[td->plane], in filter_slice() 215 ThreadData td = { .top in blend_frame() [all...] |
/third_party/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
H A D | TransliteratorRegistry.java | 95 private String top; // top spec field in TransliteratorRegistry.Spec 98 private String scriptName; // script name equivalent of top, if != top 104 top = theSpec; in Spec() 108 // Canonicalize script name. If top is a script name then in Spec() 110 int script = UScript.getCodeFromName(top); in Spec() 113 int[] s = UScript.getCode(top); in Spec() 116 // If the script name is the same as top then it's redundant in Spec() 117 if (scriptName.equalsIgnoreCase(top)) { in Spec() [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | TransliteratorRegistry.java | 96 private String top; // top spec field in TransliteratorRegistry.Spec 99 private String scriptName; // script name equivalent of top, if != top 105 top = theSpec; in Spec() 109 // Canonicalize script name. If top is a script name then in Spec() 111 int script = UScript.getCodeFromName(top); in Spec() 114 int[] s = UScript.getCode(top); in Spec() 117 // If the script name is the same as top then it's redundant in Spec() 118 if (scriptName.equalsIgnoreCase(top)) { in Spec() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tab_content.cpp | 397 padding.top = NG::CalcLength(length); in SetPadding() 406 padding.top = NG::CalcLength(tabTheme->GetSubTabTopPadding()); in SetPadding() 411 padding.top = NG::CalcLength(0.0_vp); in SetPadding() 429 CalcDimension top; in SetPadding() local 430 if (ParseJsDimensionVp(paddingObj->GetProperty("top"), top) && NonNegative(top.Value()) && in SetPadding() 431 top.Unit() != DimensionUnit::PERCENT) { in SetPadding() 432 padding.top = NG::CalcLength(top); in SetPadding() 444 CalcDimension top; SetPadding() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | OlsonTimeZone.java | 477 * @param top the top-level zoneinfo resource bundle. This is used 482 public OlsonTimeZone(UResourceBundle top, UResourceBundle res, String id){ in OlsonTimeZone() argument 484 construct(top, res, id); in OlsonTimeZone() 487 private void construct(UResourceBundle top, UResourceBundle res, String id){ in construct() argument 489 if ((top == null || res == null)) { in construct() 591 r = loadRule(top, ruleID); in construct() 638 UResourceBundle top = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, in OlsonTimeZone() 640 UResourceBundle res = ZoneMeta.openOlsonResource(top, id); in OlsonTimeZone() 641 construct(top, re in OlsonTimeZone() 886 loadRule(UResourceBundle top, String ruleid) loadRule() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | OlsonTimeZone.java | 479 * @param top the top-level zoneinfo resource bundle. This is used 484 public OlsonTimeZone(UResourceBundle top, UResourceBundle res, String id){ in OlsonTimeZone() argument 486 construct(top, res, id); in OlsonTimeZone() 489 private void construct(UResourceBundle top, UResourceBundle res, String id){ in construct() argument 491 if ((top == null || res == null)) { in construct() 593 r = loadRule(top, ruleID); in construct() 640 UResourceBundle top = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, in OlsonTimeZone() 642 UResourceBundle res = ZoneMeta.openOlsonResource(top, id); in OlsonTimeZone() 643 construct(top, re in OlsonTimeZone() 888 loadRule(UResourceBundle top, String ruleid) loadRule() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | Blit9.cpp | 172 rect.top = 0; in getSurfaceRect() 354 destOffset.y + (sourceRect.bottom - sourceRect.top)}; in copy() 372 adjustedSourceRect.top = 0; in copy() 373 adjustedSourceRect.bottom = sourceRect.bottom - sourceRect.top; in copy() 376 sourceSize.height = sourceRect.bottom - sourceRect.top; in copy() 407 destRect.top = destOffset.y; in formatConvert() 408 destRect.bottom = destOffset.y + (sourceRect.bottom - sourceRect.top); in formatConvert() 597 sourceRect.right - sourceRect.left, sourceRect.bottom - sourceRect.top, 1, in copySurfaceToTexture() 622 vp.Y = destRect.top; in setViewportAndShaderConstants() 624 vp.Height = destRect.bottom - destRect.top; in setViewportAndShaderConstants() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/sti/bdisp/ |
H A D | bdisp-v4l2.c | 833 frame->crop.top = 0; in bdisp_s_fmt() 866 s->r.top = 0; in bdisp_g_selection() 887 s->r.top = 0; in bdisp_g_selection() 909 if (a->left < b->left || a->top < b->top) in is_rect_enclosed() 915 if (a->top + a->height > b->top + b->height) in is_rect_enclosed() 953 out.top = ALIGN(in->top, frame->fmt->h_align); in bdisp_s_selection() 956 (out.top < in bdisp_s_selection() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
H A D | ipu-cpmem.c | 781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 784 image->rect.top) - offset; in ipu_cpmem_set_image() 787 image->rect.top) - offset; in ipu_cpmem_set_image() 793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 796 image->rect.top) - offset; in ipu_cpmem_set_image() 799 image->rect.top) - offset; in ipu_cpmem_set_image() 805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 808 image->rect.top) - offset; in ipu_cpmem_set_image() 811 image->rect.top) - offset; in ipu_cpmem_set_image() 817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp-v4l2.c | 833 frame->crop.top = 0; in bdisp_s_fmt() 866 s->r.top = 0; in bdisp_g_selection() 887 s->r.top = 0; in bdisp_g_selection() 909 if (a->left < b->left || a->top < b->top) in is_rect_enclosed() 915 if (a->top + a->height > b->top + b->height) in is_rect_enclosed() 953 out.top = ALIGN(in->top, frame->fmt->h_align); in bdisp_s_selection() 956 (out.top < in bdisp_s_selection() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
H A D | ipu-cpmem.c | 781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 784 image->rect.top) - offset; in ipu_cpmem_set_image() 787 image->rect.top) - offset; in ipu_cpmem_set_image() 793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 796 image->rect.top) - offset; in ipu_cpmem_set_image() 799 image->rect.top) - offset; in ipu_cpmem_set_image() 805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 808 image->rect.top) - offset; in ipu_cpmem_set_image() 811 image->rect.top) - offset; in ipu_cpmem_set_image() 817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() [all...] |