| /drivers/gpu/drm/ |
| A D | drm_rect.c | 46 r1->x1 = max(r1->x1, r2->x1); in drm_rect_intersect() 96 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 102 dst->x1 += diff; in drm_rect_clip_scaled() 277 r->x1 = tmp.y1; in drm_rect_rotate() 280 r->y2 = width - tmp.x1; in drm_rect_rotate() 284 r->x1 = width - tmp.x2; in drm_rect_rotate() 285 r->x2 = width - tmp.x1; in drm_rect_rotate() 293 r->y1 = tmp.x1; in drm_rect_rotate() 337 r->x1 = width - tmp.y2; in drm_rect_rotate_inv() 339 r->y1 = tmp.x1; in drm_rect_rotate_inv() [all …]
|
| A D | drm_fbdev_ttm.c | 75 size_t len = clip->x2 - clip->x1; in drm_fbdev_ttm_damage_blit_real() 81 offset += clip->x1 / 8; in drm_fbdev_ttm_damage_blit_real() 82 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_ttm_damage_blit_real() 85 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real() 86 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_ttm_damage_blit_real() 89 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real() 90 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_ttm_damage_blit_real() 93 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real() 150 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_ttm_helper_fb_dirty()
|
| A D | drm_damage_helper.c | 45 dest->x1 = src->x1; in convert_clip_rect_to_rect() 241 iter->plane_src.x1 = src.x1 >> 16; in drm_atomic_helper_damage_iter_init() 320 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged() 327 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
|
| A D | drm_fbdev_dma.c | 118 size_t len = clip->x2 - clip->x1; in drm_fbdev_dma_damage_blit_real() 124 offset += clip->x1 / 8; in drm_fbdev_dma_damage_blit_real() 125 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_dma_damage_blit_real() 128 offset += clip->x1 / 4; in drm_fbdev_dma_damage_blit_real() 129 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_dma_damage_blit_real() 132 offset += clip->x1 / 2; in drm_fbdev_dma_damage_blit_real() 133 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_dma_damage_blit_real() 136 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_dma_damage_blit_real() 178 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_dma_helper_fb_dirty()
|
| A D | drm_plane_helper.c | 111 .src_x = src->x1, in drm_plane_helper_check_update() 115 .crtc_x = dst->x1, in drm_plane_helper_check_update() 181 .x1 = src_x, in drm_plane_helper_update_primary() 187 .x1 = crtc_x, in drm_plane_helper_update_primary()
|
| A D | drm_panic.c | 156 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, fg_color); in drm_panic_blit_pixel() 223 offset = (y + clip->y1) * dpitch + (x + clip->x1) * cpp; in drm_panic_blit_page() 271 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_blit() 299 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, color); in drm_panic_fill_pixel() 311 for (x = clip->x1; x < clip->x2; x++) { in drm_panic_fill_page() 352 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_fill() 404 rec.x1 = clip->x1; in draw_txt_rectangle() 407 rec.x1 += (drm_rect_width(clip) - (line_len * font->width)) / 2; in draw_txt_rectangle() 411 rec.x2 = rec.x1 + font->width; in draw_txt_rectangle() 413 rec.x1 += font->width; in draw_txt_rectangle() [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_msg_arm64.h | 54 register u64 x1 asm("x1") = in1; in vmware_hypercall1() 65 : "r" (x1), "r" (x2), "r" (x3), "r" (x7) in vmware_hypercall1() 77 register u64 x1 asm("x1") = in1; in vmware_hypercall5() 103 register u64 x1 asm("x1") = in1; in vmware_hypercall6() 116 : "r" (x1), "r" (x7) in vmware_hypercall6() 133 register u64 x1 asm("x1") = in1; in vmware_hypercall7() 145 : "+r" (x0), "+r" (x1), "+r" (x2), "+r" (x3) in vmware_hypercall7() 149 *out1 = x1; in vmware_hypercall7() 162 register u64 x1 asm("x1") = cmd; in vmware_hypercall_hb() 175 : "+r" (x0), "+r" (x1) in vmware_hypercall_hb() [all …]
|
| /drivers/gpu/drm/tests/ |
| A D | drm_rect_test.c | 19 KUNIT_EXPECT_EQ(test, r->x1, expected->x1); in drm_rect_compare() 63 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped() 65 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped() 77 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_not_clipped() 79 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped() 91 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_not_clipped() 93 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 2 || in drm_test_rect_clip_scaled_not_clipped() 111 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 1 << 16 || in drm_test_rect_clip_scaled_clipped() 113 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_clipped() 139 KUNIT_EXPECT_FALSE_MSG(test, src.x1 != 0 || src.x2 != 2 << 16 || in drm_test_rect_clip_scaled_clipped() [all …]
|
| A D | drm_damage_helper_test.c | 62 state->src_x = x1; in set_plane_src() 64 state->src_w = x2 - x1; in set_plane_src() 67 state->src.x1 = x1; in set_plane_src() 73 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2, in set_damage_clip() argument 76 r->x1 = x1; in set_damage_clip() 96 int x1, int y1, int x2, int y2) in check_damage_clip() argument 105 int src_x1 = state.src.x1 >> 16; in check_damage_clip() 110 if (x1 >= x2 || y1 >= y2) in check_damage_clip() 112 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2) in check_damage_clip() 114 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) in check_damage_clip() [all …]
|
| /drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ |
| A D | ia_css_ctc1_5.host.c | 17 int y1, int y0, int x1, int x0) in ctc_gradient() argument 21 int dx = x1 - x0; in ctc_gradient() 39 assert(x0 < x1); in ctc_gradient() 79 to->x1 = from->x1; in ia_css_ctc_encode() 87 from->x1, 0); in ia_css_ctc_encode() 92 from->x2, from->x1); in ia_css_ctc_encode()
|
| /drivers/gpu/drm/tiny/ |
| A D | ili9225.c | 90 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local 111 x1 = rect->x1; in ili9225_fb_dirty() 115 x_start = x1; in ili9225_fb_dirty() 119 x1 = rect->y1; in ili9225_fb_dirty() 122 y2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty() 123 x_start = x1; in ili9225_fb_dirty() 127 x1 = fb->width - rect->x2; in ili9225_fb_dirty() 128 x2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty() 135 x1 = fb->height - rect->y2; in ili9225_fb_dirty() 137 y1 = rect->x1; in ili9225_fb_dirty() [all …]
|
| A D | gm12u320.c | 255 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local 266 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks() 278 src = vaddr + y1 * fb->pitches[0] + x1 * 4; in gm12u320_copy_fb_to_blocks() 280 x1 += (GM12U320_REAL_WIDTH - GM12U320_USER_WIDTH) / 2; in gm12u320_copy_fb_to_blocks() 285 len = (x2 - x1) * 3; in gm12u320_copy_fb_to_blocks() 286 dst_offset = (y1 * GM12U320_REAL_WIDTH + x1) * 3; in gm12u320_copy_fb_to_blocks() 420 rect->x1 = min(rect->x1, dirty->x1); in gm12u320_fb_mark_dirty()
|
| /drivers/video/fbdev/ |
| A D | xen-fbfront.c | 45 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() 383 info->x1 = info->y1 = INT_MAX; in xenfb_probe()
|
| A D | hyperv_fb.c | 204 s32 x1, y1; /* top left corner */ member 274 int x1, y1, x2, y2; member 389 msg.dirt.rect[0].x1 = (x1 > x2) ? 0 : x1; in synthvid_update() 716 int x1, x2, y1, y2; in hvfb_update_work() local 724 x1 = par->x1; in hvfb_update_work() 730 par->x1 = par->y1 = INT_MAX; in hvfb_update_work() 744 (x1 * screen_depth / 8), in hvfb_update_work() 757 int x1, int y1, int w, int h) in hvfb_ondemand_refresh_throttle() argument 760 int x2 = x1 + w; in hvfb_ondemand_refresh_throttle() 766 par->x1 = min_t(int, par->x1, x1); in hvfb_ondemand_refresh_throttle() [all …]
|
| /drivers/clocksource/ |
| A D | timer-atmel-st.c | 33 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/ |
| A D | mc13783_ts.c | 70 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/gpu/drm/msm/dp/ |
| A D | dp_utils.c | 57 u8 x1 = 0; in msm_dp_utils_calculate_parity() local 67 ci = iData ^ x1; in msm_dp_utils_calculate_parity() 68 x1 = x0 ^ msm_dp_utils_get_g1_value(ci); in msm_dp_utils_calculate_parity() 72 parity_byte = x1 | (x0 << 4); in msm_dp_utils_calculate_parity()
|
| /drivers/gpu/drm/vkms/ |
| A D | vkms_composer.c | 163 x = tmp_b.x1 - tmp_a.x1; in direction_for_rotation() 203 *src_x_start = src_line->x1; in clamp_line_coordinates() 205 *dst_x_start = current_plane->frame_info->dst.x1; in clamp_line_coordinates() 277 dst_line = DRM_RECT_INIT(current_plane->frame_info->dst.x1, y, in blend_line() 287 dst_line.x1 = max_t(int, dst_line.x1, 0); in blend_line() 290 if (dst_line.x2 <= dst_line.x1) in blend_line() 305 drm_rect_translate(&src_line, -current_plane->frame_info->dst.x1, in blend_line() 310 drm_rect_translate(&src_line, tmp_src.x1, tmp_src.y1); in blend_line()
|
| /drivers/comedi/drivers/tests/ |
| A D | ni_routes_test.c | 64 #define I1(x1) \ argument 66 (x1), 0 \ 68 #define I2(x1, x2) \ argument 70 (x1), (x2), 0 \ 72 #define I3(x1, x2, x3) \ argument 74 (x1), (x2), (x3), 0 \ 78 #define O9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument 80 O(x1), O(x2), O(x3), O(x4), O(x5), O(x6), O(x7), O(x8), O(x9), \ 117 #define RV9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument 118 [x1] = V(x1), [x2] = V(x2), [x3] = V(x3), [x4] = V(x4), \
|
| /drivers/gpu/drm/sitronix/ |
| A D | st7571-i2c.c | 289 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_monochrome() 314 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_grayscale() 335 for (int x = rect->x1; x < rect->x2; x++) in st7571_fb_update_rect_monochrome() 338 st7571_set_position(st7571, rect->x1, y); in st7571_fb_update_rect_monochrome() 341 for (int x = rect->x1; x < rect->x2; x++) in st7571_fb_update_rect_monochrome() 353 int x1; in st7571_fb_update_rect_grayscale() local 365 x1 = rect->x1; in st7571_fb_update_rect_grayscale() 369 x1 = rect->x1 * 2; in st7571_fb_update_rect_grayscale() 375 for (int x = x1; x < x2; x++) in st7571_fb_update_rect_grayscale() 378 st7571_set_position(st7571, rect->x1, y); in st7571_fb_update_rect_grayscale() [all …]
|
| A D | st7586.c | 71 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332() 86 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332() 121 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty() 131 start = rect->x1 / 3; in st7586_fb_dirty() 180 .x1 = 0, in st7586_pipe_enable()
|
| /drivers/net/wireless/rsi/ |
| A D | Kconfig | 20 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/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/ |
| A D | ia_css_ctc2.host.c | 31 static int ctc2_slope(int y1, int y0, int x1, int x0) in ctc2_slope() argument 36 int dx = x1 - x0; in ctc2_slope() 45 assert(x1 > 0 && x1 <= max_slope); in ctc2_slope()
|
| /drivers/gpu/drm/gud/ |
| A D | gud_pipe.c | 68 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_r124() 115 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color() 121 sbuf32 += rect->x1; in gud_xrgb8888_to_color() 213 req->x = cpu_to_le32(rect->x1); in gud_prep_flush() 319 gdrm->damage.x1 = INT_MAX; in gud_clear_damage() 421 gdrm->damage.x1 = min(gdrm->damage.x1, damage->x1); in gud_fb_queue_damage()
|
| /drivers/gpu/drm/sun4i/ |
| A D | sun8i_ui_layer.c | 72 hphase = state->src.x1 & 0xffff; in sun8i_ui_layer_update_coord() 80 state->src.x1 >> 16, state->src.y1 >> 16); in sun8i_ui_layer_update_coord() 119 state->dst.x1, state->dst.y1); in sun8i_ui_layer_update_coord() 123 SUN8I_MIXER_COORD(state->dst.x1, state->dst.y1)); in sun8i_ui_layer_update_coord() 178 dma_addr += (state->src.x1 >> 16) * bpp; in sun8i_ui_layer_update_buffer()
|