Home
last modified time | relevance | path

Searched refs:box (Results 1 – 25 of 521) sorted by relevance

12345678910>>...21

/OK3568_Linux_fs/external/xserver/miext/rootless/
H A DrootlessGC.c430 BoxRec box; in RootlessFillSpans() local
432 box.x1 = ppt->x; in RootlessFillSpans()
433 box.x2 = box.x1 + *pwidth; in RootlessFillSpans()
434 box.y2 = box.y1 = ppt->y; in RootlessFillSpans()
439 if (box.x1 > ppt->x) in RootlessFillSpans()
440 box.x1 = ppt->x; in RootlessFillSpans()
441 if (box.x2 < (ppt->x + *pwidth)) in RootlessFillSpans()
442 box.x2 = ppt->x + *pwidth; in RootlessFillSpans()
443 if (box.y1 > ppt->y) in RootlessFillSpans()
444 box.y1 = ppt->y; in RootlessFillSpans()
[all …]
H A DrootlessCommon.h164 #define TRIM_BOX(box, pGC) { \ argument
166 if(box.x1 < extents->x1) box.x1 = extents->x1; \
167 if(box.x2 > extents->x2) box.x2 = extents->x2; \
168 if(box.y1 < extents->y1) box.y1 = extents->y1; \
169 if(box.y2 > extents->y2) box.y2 = extents->y2; \
172 #define TRANSLATE_BOX(box, pDraw) { \ argument
173 box.x1 += pDraw->x; \
174 box.x2 += pDraw->x; \
175 box.y1 += pDraw->y; \
176 box.y2 += pDraw->y; \
[all …]
/OK3568_Linux_fs/kernel/arch/x86/events/intel/
H A Duncore.h224 static inline bool uncore_mmio_is_valid_offset(struct intel_uncore_box *box, in uncore_mmio_is_valid_offset() argument
227 if (offset < box->pmu->type->mmio_map_size) in uncore_mmio_is_valid_offset()
231 offset, box->pmu->type->name); in uncore_mmio_is_valid_offset()
237 unsigned int uncore_mmio_box_ctl(struct intel_uncore_box *box) in uncore_mmio_box_ctl() argument
239 return box->pmu->type->box_ctl + in uncore_mmio_box_ctl()
240 box->pmu->type->mmio_offset * box->pmu->pmu_idx; in uncore_mmio_box_ctl()
243 static inline unsigned uncore_pci_box_ctl(struct intel_uncore_box *box) in uncore_pci_box_ctl() argument
245 return box->pmu->type->box_ctl; in uncore_pci_box_ctl()
248 static inline unsigned uncore_pci_fixed_ctl(struct intel_uncore_box *box) in uncore_pci_fixed_ctl() argument
250 return box->pmu->type->fixed_ctl; in uncore_pci_fixed_ctl()
[all …]
H A Duncore.c116 u64 uncore_msr_read_counter(struct intel_uncore_box *box, struct perf_event *event) in uncore_msr_read_counter() argument
125 void uncore_mmio_exit_box(struct intel_uncore_box *box) in uncore_mmio_exit_box() argument
127 if (box->io_addr) in uncore_mmio_exit_box()
128 iounmap(box->io_addr); in uncore_mmio_exit_box()
131 u64 uncore_mmio_read_counter(struct intel_uncore_box *box, in uncore_mmio_read_counter() argument
134 if (!box->io_addr) in uncore_mmio_read_counter()
137 if (!uncore_mmio_is_valid_offset(box, event->hw.event_base)) in uncore_mmio_read_counter()
140 return readq(box->io_addr + event->hw.event_base); in uncore_mmio_read_counter()
147 uncore_get_constraint(struct intel_uncore_box *box, struct perf_event *event) in uncore_get_constraint() argument
161 (!uncore_box_is_fake(box) && reg1->alloc)) in uncore_get_constraint()
[all …]
H A Duncore_nhmex.c200 static void nhmex_uncore_msr_init_box(struct intel_uncore_box *box) in nhmex_uncore_msr_init_box() argument
205 static void nhmex_uncore_msr_exit_box(struct intel_uncore_box *box) in nhmex_uncore_msr_exit_box() argument
210 static void nhmex_uncore_msr_disable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_disable_box() argument
212 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_disable_box()
217 config &= ~((1ULL << uncore_num_counters(box)) - 1); in nhmex_uncore_msr_disable_box()
219 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_disable_box()
225 static void nhmex_uncore_msr_enable_box(struct intel_uncore_box *box) in nhmex_uncore_msr_enable_box() argument
227 unsigned msr = uncore_msr_box_ctl(box); in nhmex_uncore_msr_enable_box()
232 config |= (1ULL << uncore_num_counters(box)) - 1; in nhmex_uncore_msr_enable_box()
234 if (uncore_msr_fixed_ctl(box)) in nhmex_uncore_msr_enable_box()
[all …]
/OK3568_Linux_fs/external/xserver/miext/damage/
H A Ddamage.c228 BoxRec box; in _damageRegionAppend() local
230 box.x1 = draw_x; in _damageRegionAppend()
231 box.y1 = draw_y; in _damageRegionAppend()
232 box.x2 = draw_x + pDamage->pDrawable->width; in _damageRegionAppend()
233 box.y2 = draw_y + pDamage->pDrawable->height; in _damageRegionAppend()
234 RegionInit(&pixClip, &box, 1); in _damageRegionAppend()
438 #define TRIM_BOX(box, pGC) if (pGC->pCompositeClip) { \ argument
440 if(box.x1 < extents->x1) box.x1 = extents->x1; \
441 if(box.x2 > extents->x2) box.x2 = extents->x2; \
442 if(box.y1 < extents->y1) box.y1 = extents->y1; \
[all …]
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_transfer.c50 BoxPtr box = glamor_pixmap_box_at(priv, box_index); in glamor_upload_boxes() local
60 int x1 = MAX(boxes->x1 + dx_dst, box->x1); in glamor_upload_boxes()
61 int x2 = MIN(boxes->x2 + dx_dst, box->x2); in glamor_upload_boxes()
62 int y1 = MAX(boxes->y1 + dy_dst, box->y1); in glamor_upload_boxes()
63 int y2 = MIN(boxes->y2 + dy_dst, box->y2); in glamor_upload_boxes()
76 x1 - box->x1, y1 - box->y1, in glamor_upload_boxes()
83 x1 - box->x1, y1 - box->y1, in glamor_upload_boxes()
116 BoxRec box; in glamor_upload_pixmap() local
118 box.x1 = 0; in glamor_upload_pixmap()
119 box.x2 = pixmap->drawable.width; in glamor_upload_pixmap()
[all …]
H A Dglamor_copy.c165 BoxPtr box, in glamor_copy_bail() argument
177 fbCopyNto1(src, dst, gc, box, nbox, dx, dy, in glamor_copy_bail()
180 fbCopy1toN(src, dst, gc, box, nbox, dx, dy, in glamor_copy_bail()
183 fbCopyNtoN(src, dst, gc, box, nbox, dx, dy, in glamor_copy_bail()
203 BoxPtr box, in glamor_copy_cpu_fbo() argument
252 fbCopyNto1(src, &tmp_pix->drawable, gc, box, nbox, dx, dy, in glamor_copy_cpu_fbo()
255 fbCopy1toN(src, &tmp_pix->drawable, gc, box, nbox, dx, dy, in glamor_copy_cpu_fbo()
258 glamor_upload_boxes(dst_pixmap, box, nbox, tmp_xoff, tmp_yoff, in glamor_copy_cpu_fbo()
269 glamor_upload_boxes(dst_pixmap, box, nbox, src_xoff + dx, src_yoff + dy, in glamor_copy_cpu_fbo()
289 BoxPtr box, in glamor_copy_fbo_cpu() argument
[all …]
H A Dglamor_spans.c125 BoxPtr box = RegionRects(gc->pCompositeClip); in glamor_fill_spans_gl() local
132 glScissor(box->x1 + off_x, in glamor_fill_spans_gl()
133 box->y1 + off_y, in glamor_fill_spans_gl()
134 box->x2 - box->x1, in glamor_fill_spans_gl()
135 box->y2 - box->y1); in glamor_fill_spans_gl()
136 box++; in glamor_fill_spans_gl()
205 BoxPtr box = glamor_pixmap_box_at(pixmap_priv, box_index); in glamor_get_spans_gl() local
223 if (x1 < box->x1) { in glamor_get_spans_gl()
224 l += (box->x1 - x1) * (drawable->bitsPerPixel >> 3); in glamor_get_spans_gl()
225 x1 = box->x1; in glamor_get_spans_gl()
[all …]
H A Dglamor_prepare.c34 glamor_prep_pixmap_box(PixmapPtr pixmap, glamor_access_t access, BoxPtr box) in glamor_prep_pixmap_box() argument
50 RegionInit(&region, box, 1); in glamor_prep_pixmap_box()
87 RegionInit(&priv->prepare_region, box, 1); in glamor_prep_pixmap_box()
239 BoxRec box; in glamor_prepare_access() local
244 box.x1 = drawable->x + off_x; in glamor_prepare_access()
245 box.x2 = box.x1 + drawable->width; in glamor_prepare_access()
246 box.y1 = drawable->y + off_y; in glamor_prepare_access()
247 box.y2 = box.y1 + drawable->height; in glamor_prepare_access()
248 return glamor_prep_pixmap_box(pixmap, access, &box); in glamor_prepare_access()
256 BoxRec box; in glamor_prepare_access_box() local
[all …]
H A Dglamor_image.c41 BoxRec box; in glamor_put_image_gl() local
63 box.x1 = x; in glamor_put_image_gl()
64 box.y1 = y; in glamor_put_image_gl()
65 box.x2 = box.x1 + w; in glamor_put_image_gl()
66 box.y2 = box.y1 + h; in glamor_put_image_gl()
67 RegionInit(&region, &box, 1); in glamor_put_image_gl()
116 BoxRec box; in glamor_get_image_gl() local
127 box.x1 = x; in glamor_get_image_gl()
128 box.x2 = x + w; in glamor_get_image_gl()
129 box.y1 = y; in glamor_get_image_gl()
[all …]
/OK3568_Linux_fs/external/xserver/mi/
H A Dmibitblt.c102 BoxRec box; in miCopyArea() local
104 box.x1 = pSrcDrawable->x; in miCopyArea()
105 box.y1 = pSrcDrawable->y; in miCopyArea()
106 box.x2 = pSrcDrawable->x + (int) pSrcDrawable->width; in miCopyArea()
107 box.y2 = pSrcDrawable->y + (int) pSrcDrawable->height; in miCopyArea()
109 prgnSrcClip = RegionCreate(&box, 1); in miCopyArea()
519 BoxRec box; in miCopyPlane() local
524 box.x1 = srcx + pSrcDrawable->x; in miCopyPlane()
525 box.y1 = srcy + pSrcDrawable->y; in miCopyPlane()
526 box.x2 = box.x1 + width; in miCopyPlane()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/detail/expand/
H A Dpoint.hpp64 static inline void apply(Box& box, Point const& source, Strategy const& strategy) in apply()
86 if (less(coord, get<min_corner, Dimension>(box))) in apply()
88 set<min_corner, Dimension>(box, coord); in apply()
91 if (greater(coord, get<max_corner, Dimension>(box))) in apply()
93 set<max_corner, Dimension>(box, coord); in apply()
99 >::apply(box, source, strategy); in apply()
130 static inline void apply(Box& box, in apply()
145 detail::normalize(box, box); in apply()
155 b_lon_min = geometry::get<min_corner, 0>(box), in apply()
156 b_lat_min = geometry::get<min_corner, 1>(box), in apply()
[all …]
H A Dinterface.hpp49 static inline void apply(Box& box, in apply()
53 dispatch::expand<Box, Geometry>::apply(box, geometry, strategy); in apply()
57 static inline void apply(Box& box, in apply()
70 dispatch::expand<Box, Geometry>::apply(box, geometry, strategy_type()); in apply()
84 static inline void apply(Box& box, in apply()
92 resolve_strategy::expand<Geometry>::apply(box, geometry, strategy); in apply()
105 visitor(Box& box, Strategy const& strategy) in visitor()
106 : m_box(box) in visitor()
119 apply(Box& box, in apply()
123 return boost::apply_visitor(visitor<Box, Strategy>(box, strategy), in apply()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/text/
H A Dcollision_index.cpp58 bool CollisionIndex::isOffscreen(const CollisionBox& box) const { in isOffscreen()
59 …return box.px2 < viewportPadding || box.px1 >= screenRightBoundary || box.py2 < viewportPadding ||… in isOffscreen()
62 bool CollisionIndex::isInsideGrid(const CollisionBox& box) const { in isInsideGrid()
63 …return box.px2 >= 0 && box.px1 < gridRightBoundary && box.py2 >= 0 && box.py1 < gridBottomBoundary; in isInsideGrid()
78 CollisionBox& box = feature.boxes.front(); in placeFeature() local
79 const auto projectedPoint = projectAndGetPerspectiveRatio(posMatrix, box.anchor); in placeFeature()
81 box.px1 = box.x1 * tileToViewport + projectedPoint.first.x; in placeFeature()
82 box.py1 = box.y1 * tileToViewport + projectedPoint.first.y; in placeFeature()
83 box.px2 = box.x2 * tileToViewport + projectedPoint.first.x; in placeFeature()
84 box.py2 = box.y2 * tileToViewport + projectedPoint.first.y; in placeFeature()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/renderer/
H A Drenderer.cpp44 std::vector<Feature> Renderer::queryRenderedFeatures(const ScreenBox& box, const RenderedQueryOptio… in queryRenderedFeatures() argument
47 box.min, in queryRenderedFeatures()
48 {box.max.x, box.min.y}, in queryRenderedFeatures()
49 box.max, in queryRenderedFeatures()
50 {box.min.x, box.max.y}, in queryRenderedFeatures()
51 box.min in queryRenderedFeatures()
57 AnnotationIDs Renderer::queryPointAnnotations(const ScreenBox& box) const { in queryPointAnnotations()
60 auto features = queryRenderedFeatures(box, options); in queryPointAnnotations()
64 AnnotationIDs Renderer::queryShapeAnnotations(const ScreenBox& box) const { in queryShapeAnnotations()
66 box.min, in queryShapeAnnotations()
[all …]
/OK3568_Linux_fs/external/xserver/randr/
H A Drrmonitor.c66 geometry->box = panned_area; in RRMonitorGetCrtcGeometry()
72 geometry->box.x1 = crtc->x; in RRMonitorGetCrtcGeometry()
73 geometry->box.y1 = crtc->y; in RRMonitorGetCrtcGeometry()
74 geometry->box.x2 = geometry->box.x1 + width; in RRMonitorGetCrtcGeometry()
75 geometry->box.y2 = geometry->box.y1 + height; in RRMonitorGetCrtcGeometry()
82 … geometry->mmWidth = floor ((geometry->box.x2 - geometry->box.x1) / DEFAULT_PIXELS_PER_MM + 0.5); in RRMonitorGetCrtcGeometry()
83 … geometry->mmHeight = floor ((geometry->box.y2 - geometry->box.y1) / DEFAULT_PIXELS_PER_MM + 0.5); in RRMonitorGetCrtcGeometry()
109 return (monitor->geometry.box.x1 == 0 && in RRMonitorAutomaticGeometry()
110 monitor->geometry.box.y1 == 0 && in RRMonitorAutomaticGeometry()
111 monitor->geometry.box.x2 == 0 && in RRMonitorAutomaticGeometry()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/geometries/
H A Dbox.hpp54 class box class
63 box() = default;
66 inline box()
70 inline box()
74 ~box()
83 inline box(Point const& min_corner, Point const& max_corner) in box() function in boost::geometry::model::box
143 struct tag<model::box<Point> >
149 struct point_type<model::box<Point> >
155 struct indexed_access<model::box<Point>, min_corner, Dimension>
159 static inline coordinate_type get(model::box<Point> const& b) in get()
[all …]
/OK3568_Linux_fs/external/xserver/render/
H A Dmitrap.c50 miTrapezoidBounds(int ntrap, xTrapezoid * traps, BoxPtr box) in miTrapezoidBounds() argument
52 box->y1 = MAXSHORT; in miTrapezoidBounds()
53 box->y2 = MINSHORT; in miTrapezoidBounds()
54 box->x1 = MAXSHORT; in miTrapezoidBounds()
55 box->x2 = MINSHORT; in miTrapezoidBounds()
62 if (y1 < box->y1) in miTrapezoidBounds()
63 box->y1 = y1; in miTrapezoidBounds()
66 if (y2 > box->y2) in miTrapezoidBounds()
67 box->y2 = y2; in miTrapezoidBounds()
71 if (x1 < box->x1) in miTrapezoidBounds()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/detail/
H A Dget_max_size.hpp31 static inline typename coordinate_type<Box>::type apply(Box const& box) in apply()
34 … = geometry::math::abs(geometry::get<1, Dimension>(box) - geometry::get<0, Dimension>(box)); in apply()
36 return (std::max)(s, get_max_size_box<Box, Dimension - 1>::apply(box)); in apply()
43 static inline typename coordinate_type<Box>::type apply(Box const& box) in apply()
45 return geometry::math::abs(geometry::get<1, 0>(box) - geometry::get<0, 0>(box)); in apply()
52 inline typename coordinate_type<Box>::type get_max_size(Box const& box) in get_max_size() argument
54 return get_max_size_box<Box, dimension<Box>::value - 1>::apply(box); in get_max_size()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/algorithms/detail/is_valid/
H A Dbox.hpp39 static inline bool apply(Box const& box, VisitPolicy& visitor) in apply()
41 if (math::equals(geometry::get<geometry::min_corner, I-1>(box), in apply()
42 geometry::get<geometry::max_corner, I-1>(box))) in apply()
47 else if (geometry::get<geometry::min_corner, I-1>(box) in apply()
49 geometry::get<geometry::max_corner, I-1>(box)) in apply()
53 return has_valid_corners<Box, I-1>::apply(box, visitor); in apply()
75 static inline bool apply(Box const& box, VisitPolicy& visitor, Strategy const&) in apply()
78 ! has_invalid_coordinate<Box>::apply(box, visitor) in apply()
80 has_valid_corners<Box, dimension<Box>::value>::apply(box, visitor); in apply()
/OK3568_Linux_fs/buildroot/support/kconfig/lxdialog/
H A Dtextbox.c39 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument
43 print_page(box, boxh, boxw, update_text, data); in refresh_text_box()
62 WINDOW *dialog, *box; in dialog_textbox() local
112 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox()
113 wattrset(box, dlg.dialog.atr); in dialog_textbox()
114 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox()
116 keypad(box, TRUE); in dialog_textbox()
137 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox()
138 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x, update_text, in dialog_textbox()
157 refresh_text_box(dialog, box, boxh, boxw, in dialog_textbox()
[all …]
/OK3568_Linux_fs/u-boot/scripts/kconfig/lxdialog/
H A Dtextbox.c27 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument
31 print_page(box, boxh, boxw, update_text, data); in refresh_text_box()
50 WINDOW *dialog, *box; in dialog_textbox() local
100 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox()
101 wattrset(box, dlg.dialog.atr); in dialog_textbox()
102 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox()
104 keypad(box, TRUE); in dialog_textbox()
125 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox()
126 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x, update_text, in dialog_textbox()
145 refresh_text_box(dialog, box, boxh, boxw, in dialog_textbox()
[all …]
/OK3568_Linux_fs/kernel/scripts/kconfig/lxdialog/
H A Dtextbox.c26 static void refresh_text_box(WINDOW *dialog, WINDOW *box, int boxh, int boxw, in refresh_text_box() argument
30 print_page(box, boxh, boxw, update_text, data); in refresh_text_box()
49 WINDOW *dialog, *box; in dialog_textbox() local
99 box = subwin(dialog, boxh, boxw, y + 1, x + 1); in dialog_textbox()
100 wattrset(box, dlg.dialog.atr); in dialog_textbox()
101 wbkgdset(box, dlg.dialog.atr & A_COLOR); in dialog_textbox()
103 keypad(box, TRUE); in dialog_textbox()
124 attr_clear(box, boxh, boxw, dlg.dialog.atr); in dialog_textbox()
125 refresh_text_box(dialog, box, boxh, boxw, cur_y, cur_x, update_text, in dialog_textbox()
144 refresh_text_box(dialog, box, boxh, boxw, in dialog_textbox()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/wagyu/0.4.3/include/mapbox/geometry/wagyu/
H A Dquick_clip.hpp17 mapbox::geometry::box<T> const& box) { in intersect() argument
21 …c_cast<double>(a.x) + static_cast<double>(b.x - a.x) * static_cast<double>(box.min.y - a.y) / stat… in intersect()
22 box.min.y); in intersect()
26 box.max.x, in intersect()
27 …c_cast<double>(a.y) + static_cast<double>(b.y - a.y) * static_cast<double>(box.max.x - a.x) / stat… in intersect()
31 …c_cast<double>(a.x) + static_cast<double>(b.x - a.x) * static_cast<double>(box.max.y - a.y) / stat… in intersect()
32 box.max.y); in intersect()
36 box.min.x, in intersect()
37 …c_cast<double>(a.y) + static_cast<double>(b.y - a.y) * static_cast<double>(box.min.x - a.x) / stat… in intersect()
42 bool inside(mapbox::geometry::point<T> p, size_t edge, mapbox::geometry::box<T> const& b) { in inside()
[all …]

12345678910>>...21