Home
last modified time | relevance | path

Searched refs:x1 (Results 1 – 25 of 111) sorted by relevance

12345

/drivers/gpu/drm/
Ddrm_rect.c46 r1->x1 = max(r1->x1, r2->x1); in drm_rect_intersect()
87 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
92 src->x1 = clamp_t(int64_t, src->x2 - new_src_w, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
93 dst->x1 = clip->x1; in drm_rect_clip_scaled()
108 src->x2 = clamp_t(int64_t, src->x1 + new_src_w, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
253 r->x1 = width - tmp.x2; in drm_rect_rotate()
254 r->x2 = width - tmp.x1; in drm_rect_rotate()
268 r->x1 = tmp.y1; in drm_rect_rotate()
271 r->y2 = width - tmp.x1; in drm_rect_rotate()
275 r->x1 = width - tmp.x2; in drm_rect_rotate()
[all …]
Ddrm_format_helper.c23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
40 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy()
68 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip()
91 size_t len = (clip->x2 - clip->x1) * sizeof(u16); in drm_fb_swab16()
105 src += clip->x1; in drm_fb_swab16()
108 for (x = clip->x1; x < clip->x2; x++) in drm_fb_swab16()
152 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565()
197 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565_dstclip()
249 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb888_dstclip()
290 unsigned int len = (clip->x2 - clip->x1) * sizeof(u32); in drm_fb_xrgb8888_to_gray8()
[all …]
Ddrm_damage_helper.c80 dest->x1 = src->x1; in convert_clip_rect_to_rect()
289 iter->plane_src.x1 = state->src.x1 >> 16; in drm_atomic_helper_damage_iter_init()
367 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged()
374 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
Ddrm_plane_helper.c117 .src_x = src->x1, in drm_plane_helper_check_update()
121 .crtc_x = dst->x1, in drm_plane_helper_check_update()
165 .x1 = src_x, in drm_primary_helper_update()
171 .x1 = crtc_x, in drm_primary_helper_update()
/drivers/gpu/drm/tiny/
Dili9225.c83 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
87 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local
114 x1 = rect->x1; in ili9225_fb_dirty()
118 x_start = x1; in ili9225_fb_dirty()
122 x1 = rect->y1; in ili9225_fb_dirty()
125 y2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty()
126 x_start = x1; in ili9225_fb_dirty()
130 x1 = fb->width - rect->x2; in ili9225_fb_dirty()
131 x2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty()
138 x1 = fb->height - rect->y2; in ili9225_fb_dirty()
[all …]
Dgm12u320.c265 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local
276 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks()
296 src = vaddr + y1 * fb->pitches[0] + x1 * 4; in gm12u320_copy_fb_to_blocks()
298 x1 += (GM12U320_REAL_WIDTH - GM12U320_USER_WIDTH) / 2; in gm12u320_copy_fb_to_blocks()
303 len = (x2 - x1) * 3; in gm12u320_copy_fb_to_blocks()
304 dst_offset = (y1 * GM12U320_REAL_WIDTH + x1) * 3; in gm12u320_copy_fb_to_blocks()
447 rect->x1 = min(rect->x1, dirty->x1); in gm12u320_fb_mark_dirty()
Dst7586.c68 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
80 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
128 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
138 start = rect->x1 / 3; in st7586_fb_dirty()
184 .x1 = 0, in st7586_pipe_enable()
/drivers/gpu/drm/selftests/
Dtest-drm_damage_helper.c12 static void set_plane_src(struct drm_plane_state *state, int x1, int y1, int x2, in set_plane_src() argument
15 state->src.x1 = x1; in set_plane_src()
21 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2, in set_damage_clip() argument
24 r->x1 = x1; in set_damage_clip()
44 int x1, int y1, int x2, int y2) in check_damage_clip() argument
50 int src_x1 = state->src.x1 >> 16; in check_damage_clip()
55 if (x1 >= x2 || y1 >= y2) { in check_damage_clip()
60 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2) { in check_damage_clip()
65 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) { in check_damage_clip()
66 pr_err("Damage = %d %d %d %d\n", r->x1, r->y1, r->x2, r->y2); in check_damage_clip()
Dtest-drm_plane_helper.c28 if (plane_state->src.x1 < 0) { in check_src_eq()
29 pr_err("src x coordinate %x should never be below 0.\n", plane_state->src.x1); in check_src_eq()
39 if (plane_state->src.x1 != src_x || in check_src_eq()
64 if (plane_state->dst.x1 != crtc_x || in check_crtc_eq()
/drivers/clocksource/
Dtimer-atmel-st.c33 unsigned int x1, x2; in read_CRTR() local
35 regmap_read(regmap_st, AT91_ST_CRTR, &x1); in read_CRTR()
38 if (x1 == x2) in read_CRTR()
40 x1 = x2; in read_CRTR()
42 return x1; in read_CRTR()
/drivers/input/touchscreen/
Dmc13783_ts.c70 int x0, x1, x2, y0, y1, y2; in mc13783_ts_report_sample() local
78 x1 = priv->sample[1] & 0xfff; in mc13783_ts_report_sample()
88 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample()
90 sort3(x0, x1, x2); in mc13783_ts_report_sample()
100 input_report_abs(idev, ABS_X, x1); in mc13783_ts_report_sample()
104 x1, y1, 0x1000 - cr0); in mc13783_ts_report_sample()
/drivers/video/fbdev/
Dxen-fbfront.c45 int x1, y1, x2, y2; /* dirty rectangle, member
141 int x1, int y1, int w, int h) in xenfb_refresh() argument
144 int x2 = x1 + w - 1; in xenfb_refresh()
159 if (info->x1 < x1) in xenfb_refresh()
160 x1 = info->x1; in xenfb_refresh()
166 info->x1 = x1; in xenfb_refresh()
175 info->x1 = info->y1 = INT_MAX; in xenfb_refresh()
180 if (x1 <= x2 && y1 <= y2) in xenfb_refresh()
181 xenfb_do_update(info, x1, y1, x2 - x1 + 1, y2 - y1 + 1); in xenfb_refresh()
405 info->x1 = info->y1 = INT_MAX; in xenfb_probe()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c61 unsigned x1; member
218 dst_x1 = par->dirty.x1 - par->fb_x; in vmw_fb_dirty_flush()
232 par->dirty.x1 = par->dirty.x2 = 0; in vmw_fb_dirty_flush()
249 clip.x1 = dst_x1; in vmw_fb_dirty_flush()
268 unsigned x1, unsigned y1, in vmw_fb_dirty_mark() argument
272 unsigned x2 = x1 + width; in vmw_fb_dirty_mark()
276 if (par->dirty.x1 == par->dirty.x2) { in vmw_fb_dirty_mark()
277 par->dirty.x1 = x1; in vmw_fb_dirty_mark()
287 if (x1 < par->dirty.x1) in vmw_fb_dirty_mark()
288 par->dirty.x1 = x1; in vmw_fb_dirty_mark()
[all …]
/drivers/staging/comedi/drivers/tests/
Dni_routes_test.c65 #define I1(x1) \ argument
67 x1, 0 \
69 #define I2(x1, x2) \ argument
71 (x1), (x2), 0 \
73 #define I3(x1, x2, x3) \ argument
75 (x1), (x2), (x3), 0 \
79 #define O9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
81 O(x1), O(x2), O(x3), O(x4), O(x5), O(x6), O(x7), O(x8), O(x9), \
118 #define RV9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
119 [x1] = V(x1), [x2] = V(x2), [x3] = V(x3), [x4] = V(x4), \
/drivers/net/wireless/rsi/
DKconfig20 This option enabes support for RSI 1x1 devices.
21 Select M (recommended), if you have a RSI 1x1 wireless module.
37 Select M (recommended), if you have a RSI 1x1 wireless module.
45 Select M (recommended), if you have a RSI 1x1 wireless module.
/drivers/iio/pressure/
Dbmp280-core.c809 s32 x1, x2; in bmp180_compensate_temp() local
812 x1 = ((adc_temp - calib->AC6) * calib->AC5) >> 15; in bmp180_compensate_temp()
813 x2 = (calib->MC << 11) / (x1 + calib->MD); in bmp180_compensate_temp()
814 data->t_fine = x1 + x2; in bmp180_compensate_temp()
868 s32 x1, x2, x3, p; in bmp180_compensate_press() local
875 x1 = (calib->B2 * (b6 * b6 >> 12)) >> 11; in bmp180_compensate_press()
877 x3 = x1 + x2; in bmp180_compensate_press()
879 x1 = calib->AC3 * b6 >> 13; in bmp180_compensate_press()
881 x3 = (x1 + x2 + 2) >> 2; in bmp180_compensate_press()
889 x1 = (p >> 8) * (p >> 8); in bmp180_compensate_press()
[all …]
/drivers/gpu/drm/sun4i/
Dsun8i_ui_layer.c96 hphase = state->src.x1 & 0xffff; in sun8i_ui_layer_update_coord()
134 state->src.x1 >> 16, state->src.y1 >> 16); in sun8i_ui_layer_update_coord()
161 state->dst.x1, state->dst.y1); in sun8i_ui_layer_update_coord()
165 SUN8I_MIXER_COORD(state->dst.x1, state->dst.y1)); in sun8i_ui_layer_update_coord()
218 paddr += (state->src.x1 >> 16) * bpp; in sun8i_ui_layer_update_buffer()
Dsun8i_vi_layer.c93 hphase = state->src.x1 & 0xffff; in sun8i_vi_layer_update_coord()
101 remainder = (state->src.x1 >> 16) & mask; in sun8i_vi_layer_update_coord()
120 (state->src.x1 >> 16) & ~(format->hsub - 1), in sun8i_vi_layer_update_coord()
201 state->dst.x1, state->dst.y1); in sun8i_vi_layer_update_coord()
205 SUN8I_MIXER_COORD(state->dst.x1, state->dst.y1)); in sun8i_vi_layer_update_coord()
277 src_x = (state->src.x1 >> 16) & ~(format->hsub - 1); in sun8i_vi_layer_update_buffer()
/drivers/gpu/drm/qxl/
Dqxl_draw.c155 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb()
158 left = clips->x1; in qxl_draw_dirty_fb()
166 left = min_t(int, left, (int)clips_ptr->x1); in qxl_draw_dirty_fb()
238 rects[i].left = clips_ptr->x1; in qxl_draw_dirty_fb()
/drivers/media/dvb-frontends/
Dsi21xx.c711 unsigned int x1; in si21xx_set_frontend() local
769 x1 = ((rf_freq - lnb_lo) / (afs[i] * 2500)) * in si21xx_set_frontend()
775 if (((band_low < x1) && (x1 < band_high)) || in si21xx_set_frontend()
782 x1 = ((rf_freq - lnb_lo) / (afs[i] * 5000)) * in si21xx_set_frontend()
788 if (((band_low < x1) && (x1 < band_high)) || in si21xx_set_frontend()
/drivers/gpu/drm/imx/
Dipuv3-plane.c97 int x = state->src.x1 >> 16; in drm_plane_state_to_eba()
113 int x = state->src.x1 >> 16; in drm_plane_state_to_ubo()
132 int x = state->src.x1 >> 16; in drm_plane_state_to_vbo()
474 if (((state->src.x1 >> 16) & (fb->format->hsub - 1)) || in ipu_plane_atomic_check()
563 ipu_dp_set_window_pos(ipu_plane->dp, dst->x1, dst->y1); in ipu_plane_atomic_update()
663 state->src.x1 >> 16, state->src.y1 >> 16); in ipu_plane_atomic_update()
674 state->src.x1 >> 16, state->src.y1 >> 16); in ipu_plane_atomic_update()
686 eba, alpha_eba, state->src.x1 >> 16, state->src.y1 >> 16); in ipu_plane_atomic_update()
704 eba, state->src.x1 >> 16, state->src.y1 >> 16); in ipu_plane_atomic_update()
/drivers/gpu/drm/mga/
Dmga_state.c60 MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_emit_clip_rect()
504 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear()
512 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
528 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
544 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
603 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap()
606 MGA_AR3, start + box->x1, in mga_dma_dispatch_swap()
607 MGA_FXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_dma_dispatch_swap()
793 int srcx = pbox[i].x1 + blit->delta_sx; in mga_dma_dispatch_blit()
795 int dstx = pbox[i].x1 + blit->delta_dx; in mga_dma_dispatch_blit()
[all …]
/drivers/media/pci/ttpci/
Dav7110_hw.c989 int x1, int y1, int inc, u8 __user * data) in OSDSetBlock() argument
995 w = x1 - x0 + 1; in OSDSetBlock()
1057 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1); in av7110_osd_cmd()
1080 ret = OSDSetColor(av7110, dc->color, dc->x0, dc->y0, dc->x1, dc->y1); in av7110_osd_cmd()
1112 ret = OSDSetBlock(av7110, dc->x0, dc->y0, dc->x1, dc->y1, dc->color, dc->data); in av7110_osd_cmd()
1116 dc->x1-dc->x0+1, dc->y1, dc->color); in av7110_osd_cmd()
1120 dc->x1 - dc->x0 + 1, dc->y1 - dc->y0 + 1, dc->color); in av7110_osd_cmd()
1124 dc->x0, dc->y0, dc->x1 - dc->x0, dc->y1 - dc->y0, dc->color); in av7110_osd_cmd()
1135 if (dc->x1 > 3) in av7110_osd_cmd()
1136 dc->x1 = 3; in av7110_osd_cmd()
[all …]
/drivers/net/wireless/mediatek/mt76/mt76x0/
DKconfig14 which comply with IEEE 802.11ac standards and support 1x1
26 which comply with IEEE 802.11ac standards and support 1x1
/drivers/video/backlight/
Dtdo24m.c42 #define CMD1(x, x1) ((1 << 30) | ((x) << 9) | 0x100 | (x1)) argument
43 #define CMD2(x, x1, x2) ((2 << 30) | ((x) << 18) | 0x20000 |\ argument
44 ((x1) << 9) | 0x100 | (x2))

12345