Lines Matching +full:invert +full:- +full:x
11 * SPDX-License-Identifier: Apache-2.0
21 #define HELP_DRAW_POINT "<x> <y0>"
24 #define HELP_INVERT "[<x> <y> <width> <height>]"
93 return -EINVAL; in cmd_print()
99 return -EINVAL; in cmd_print()
114 int x, y; in cmd_draw_text() local
116 x = strtol(argv[1], NULL, 10); in cmd_draw_text()
118 err = cfb_draw_text(dev, argv[3], x, y); in cmd_draw_text()
134 pos.x = strtol(argv[1], NULL, 10); in cmd_draw_point()
153 start.x = strtol(argv[1], NULL, 10); in cmd_draw_line()
155 end.x = strtol(argv[3], NULL, 10); in cmd_draw_line()
174 start.x = strtol(argv[1], NULL, 10); in cmd_draw_rect()
176 end.x = strtol(argv[3], NULL, 10); in cmd_draw_rect()
199 return -EINVAL; in cmd_scroll_vert()
205 return -EINVAL; in cmd_scroll_vert()
208 boundary = cfb_get_display_parameter(dev, CFB_DISPLAY_ROWS) - row; in cmd_scroll_vert()
235 return -EINVAL; in cmd_scroll_horz()
241 return -EINVAL; in cmd_scroll_horz()
245 boundary = cfb_get_display_parameter(dev, CFB_DISPLAY_COLS) - col; in cmd_scroll_horz()
299 return -EINVAL; in cmd_set_kerning()
322 int x, y, w, h; in cmd_invert() local
324 x = strtol(argv[1], NULL, 10); in cmd_invert()
329 err = cfb_invert_area(dev, x, y, w, h); in cmd_invert()
331 shell_error(sh, "Error invert area"); in cmd_invert()
373 shell_print(sh, "Framebuffer Device: %s", dev->name); in cmd_get_device()
459 return -ENODEV; in cmd_init()
483 shell_print(sh, "Framebuffer initialized: %s", dev->name); in cmd_init()
523 SHELL_CMD_ARG(invert, NULL, HELP_INVERT, cmd_invert, 1, 5),