| /openbmc/qemu/ui/ |
| H A D | console.c | 77 static bool console_compatible_with(QemuConsole *con, 129 void graphic_hw_update_done(QemuConsole *con) in graphic_hw_update_done() argument 131 if (con) { in graphic_hw_update_done() 132 qemu_co_enter_all(&con->dump_queue, NULL); in graphic_hw_update_done() 136 void graphic_hw_update(QemuConsole *con) in graphic_hw_update() argument 139 if (!con) { in graphic_hw_update() 142 if (con->hw_ops->gfx_update) { in graphic_hw_update() 143 con->hw_ops->gfx_update(con->hw); in graphic_hw_update() 144 async = con->hw_ops->gfx_update_async; in graphic_hw_update() 147 graphic_hw_update_done(con); in graphic_hw_update() [all …]
|
| H A D | sdl2.c | 215 if (!qemu_input_is_absolute(scon->dcl.con)) { in sdl_hide_cursor() 226 if (!qemu_input_is_absolute(scon->dcl.con)) { in sdl_show_cursor() 231 (gui_grab || qemu_input_is_absolute(scon->dcl.con) || absolute_enabled)) { in sdl_show_cursor() 242 QemuConsole *con = scon ? scon->dcl.con : NULL; in sdl_grab_start() local 244 if (!con || !qemu_console_is_graphic(con)) { in sdl_grab_start() 257 if (!qemu_input_is_absolute(scon->dcl.con) && !absolute_enabled) { in sdl_grab_start() 290 if (qemu_input_is_absolute(sdl2_console[0].dcl.con)) { in sdl_mouse_mode_change() 317 qemu_input_update_buttons(scon->dcl.con, bma in sdl_send_mouse_event() 476 QemuConsole *con = scon ? scon->dcl.con : NULL; handle_textinput() local 880 QemuConsole *con = qemu_console_lookup_by_index(i); sdl2_display_init() local 891 QemuConsole *con = qemu_console_lookup_by_index(i); sdl2_display_init() local [all...] |
| H A D | dbus-console.c | 204 if (!dpy_ui_info_supported(ddc->dcl.con)) { in dbus_console_set_ui_info() 212 dpy_set_ui_info(ddc->dcl.con, &info, false); in dbus_console_set_ui_info() 385 if (qemu_input_is_absolute(ddc->dcl.con)) { in dbus_mouse_rel_motion() 393 qemu_input_queue_rel(ddc->dcl.con, INPUT_AXIS_X, dx); in dbus_mouse_rel_motion() 394 qemu_input_queue_rel(ddc->dcl.con, INPUT_AXIS_Y, dy); in dbus_mouse_rel_motion() 424 width = qemu_console_get_width(ddc->dcl.con, 0); in dbus_touch_send_event() 425 height = qemu_console_get_height(ddc->dcl.con, 0); in dbus_touch_send_event() 427 console_handle_touch_event(ddc->dcl.con, touch_slots, in dbus_touch_send_event() 452 if (!qemu_input_is_absolute(ddc->dcl.con)) { in dbus_mouse_set_pos() 460 width = qemu_console_get_width(ddc->dcl.con, 0); in dbus_mouse_set_pos() [all …]
|
| H A D | kbd-state.c | 13 QemuConsole *con; member 101 if (qemu_console_is_graphic(kbd->con)) { in qkbd_state_key_event() 102 qemu_input_event_send_key_qcode(kbd->con, qcode, down); in qkbd_state_key_event() 120 void qkbd_state_switch_console(QKbdState *kbd, QemuConsole *con) in qkbd_state_switch_console() argument 123 kbd->con = con; in qkbd_state_switch_console() 136 QKbdState *qkbd_state_init(QemuConsole *con) in qkbd_state_init() argument 140 kbd->con = con; in qkbd_state_init()
|
| H A D | sdl2-input.c | 36 QemuConsole *con = scon->dcl.con; in sdl2_process_key() local 46 if (QEMU_IS_TEXT_CONSOLE(con)) { in sdl2_process_key() 47 QemuTextConsole *s = QEMU_TEXT_CONSOLE(con); in sdl2_process_key()
|
| H A D | curses.c | 101 if (qemu_console_is_fixedsize(dcl->con)) { in curses_calc_pad() 204 if (!qemu_console_is_graphic(dcl->con)) { in curses_cursor_position() 278 graphic_hw_invalidate(dcl->con); in curses_refresh() 282 graphic_hw_text_update(dcl->con, screen); in curses_refresh() 323 … QemuConsole *con = qemu_console_lookup_by_index(keycode - QEMU_KEY_CONSOLE0); in curses_refresh() local 324 if (con) { in curses_refresh() 328 dcl->con = con; in curses_refresh() 364 if (qemu_console_is_graphic(dcl->con)) { in curses_refresh() 368 qemu_input_event_send_key_number(dcl->con, SHIFT_CODE, true); in curses_refresh() 372 qemu_input_event_send_key_number(dcl->con, CNTRL_CODE, true); in curses_refresh() [all …]
|
| H A D | egl-headless.c | 26 graphic_hw_update(dcl->con); in egl_refresh() 166 dpy_gfx_update(edpy->dcl.con, x, y, w, h); in egl_scanout_flush() 221 QemuConsole *con; in egl_headless_init() local 228 con = qemu_console_lookup_by_index(idx); in egl_headless_init() 229 if (!con || !qemu_console_is_graphic(con)) { in egl_headless_init() 234 edpy->dcl.con = con; in egl_headless_init() 239 qemu_console_set_display_gl_ctx(con, ctx); in egl_headless_init()
|
| H A D | input.c | 16 QemuConsole *con; member 88 QemuConsole *con; in qemu_input_handler_bind() local 91 con = qemu_console_lookup_by_device_name(device_id, head, &err); in qemu_input_handler_bind() 97 s->con = con; in qemu_input_handler_bind() 101 qemu_input_find_handler(uint32_t mask, QemuConsole *con) in qemu_input_find_handler() argument 106 if (s->con == NULL || s->con != con) { in qemu_input_find_handler() 115 if (s->con != NULL) { in qemu_input_find_handler() 130 QemuConsole *con; in qmp_input_send_event() local 133 con = NULL; in qmp_input_send_event() 138 con = qemu_console_lookup_by_device_name(device, head, &err); in qmp_input_send_event() [all …]
|
| /openbmc/qemu/include/ui/ |
| H A D | console.h | 121 void console_handle_touch_event(QemuConsole *con, 274 QemuConsole *con; member 311 bool dpy_ui_info_supported(const QemuConsole *con); 312 const QemuUIInfo *dpy_get_ui_info(const QemuConsole *con); 313 int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info, bool delay); 315 void dpy_gfx_update(QemuConsole *con, int x, int y, int w, int h); 316 void dpy_gfx_update_full(QemuConsole *con); 317 void dpy_gfx_replace_surface(QemuConsole *con, 319 void dpy_text_cursor(QemuConsole *con, int x, int y); 320 void dpy_text_update(QemuConsole *con, int x, int y, int w, int h); [all …]
|
| /openbmc/u-boot/test/dm/ |
| H A D | video.c | 111 struct udevice *dev, *con; in dm_test_video_text() local 121 ut_assertok(uclass_get_device(UCLASS_VIDEO_CONSOLE, 0, &con)); in dm_test_video_text() 122 vidconsole_putc_xy(con, 0, 0, 'a'); in dm_test_video_text() 125 vidconsole_putc_xy(con, 0, 0, ' '); in dm_test_video_text() 129 vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i); in dm_test_video_text() 132 vidconsole_set_row(con, 0, WHITE); in dm_test_video_text() 136 vidconsole_putc_xy(con, VID_TO_POS(i * 8), 0, ' ' + i); in dm_test_video_text() 146 struct udevice *dev, *con; in dm_test_video_chars() local 151 ut_assertok(uclass_get_device(UCLASS_VIDEO_CONSOLE, 0, &con)); in dm_test_video_chars() 152 vidconsole_put_string(con, test_string); in dm_test_video_chars() [all …]
|
| /openbmc/u-boot/drivers/clk/rockchip/ |
| H A D | clk_rk3128.c | 242 u32 con; in rkclk_pll_get_rate() local 256 con = readl(&cru->cru_mode_con); in rkclk_pll_get_rate() 260 switch ((con & mask) >> shift) { in rkclk_pll_get_rate() 265 con = readl(&pll->con0); in rkclk_pll_get_rate() 266 postdiv1 = (con & PLL_POSTDIV1_MASK) >> PLL_POSTDIV1_SHIFT; in rkclk_pll_get_rate() 267 fbdiv = (con & PLL_FBDIV_MASK) >> PLL_FBDIV_SHIFT; in rkclk_pll_get_rate() 268 con = readl(&pll->con1); in rkclk_pll_get_rate() 269 postdiv2 = (con & PLL_POSTDIV2_MASK) >> PLL_POSTDIV2_SHIFT; in rkclk_pll_get_rate() 270 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate() 283 u32 con; in rockchip_mmc_get_clk() local [all …]
|
| H A D | clk_rk3036.c | 173 uint32_t con; in rkclk_pll_get_rate() local 187 con = readl(&cru->cru_mode_con); in rkclk_pll_get_rate() 191 switch ((con & mask) >> shift) { in rkclk_pll_get_rate() 197 con = readl(&pll->con0); in rkclk_pll_get_rate() 198 postdiv1 = (con & PLL_POSTDIV1_MASK) >> PLL_POSTDIV1_SHIFT; in rkclk_pll_get_rate() 199 fbdiv = (con & PLL_FBDIV_MASK) >> PLL_FBDIV_SHIFT; in rkclk_pll_get_rate() 200 con = readl(&pll->con1); in rkclk_pll_get_rate() 201 postdiv2 = (con & PLL_POSTDIV2_MASK) >> PLL_POSTDIV2_SHIFT; in rkclk_pll_get_rate() 202 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate() 215 u32 con; in rockchip_mmc_get_clk() local [all …]
|
| H A D | clk_rk3288.c | 310 u32 con = readl(&cru->cru_clksel_con[21]); in rockchip_mac_set_clk() local 314 if (((con >> EMAC_PLL_SHIFT) & EMAC_PLL_MASK) == in rockchip_mac_set_clk() 317 else if (((con >> EMAC_PLL_SHIFT) & EMAC_PLL_MASK) == in rockchip_mac_set_clk() 541 uint32_t con; in rkclk_pll_get_rate() local 550 con = readl(&cru->cru_mode_con); in rkclk_pll_get_rate() 552 switch ((con >> shift) & CRU_MODE_MASK) { in rkclk_pll_get_rate() 557 con = readl(&pll->con0); in rkclk_pll_get_rate() 558 no = ((con & CLKOD_MASK) >> CLKOD_SHIFT) + 1; in rkclk_pll_get_rate() 559 nr = ((con & CLKR_MASK) >> CLKR_SHIFT) + 1; in rkclk_pll_get_rate() 560 con = readl(&pll->con1); in rkclk_pll_get_rate() [all …]
|
| H A D | clk_rk322x.c | 174 uint32_t con; in rkclk_pll_get_rate() local 188 con = readl(&cru->cru_mode_con); in rkclk_pll_get_rate() 192 switch ((con & mask) >> shift) { in rkclk_pll_get_rate() 198 con = readl(&pll->con0); in rkclk_pll_get_rate() 199 postdiv1 = (con & PLL_POSTDIV1_MASK) >> PLL_POSTDIV1_SHIFT; in rkclk_pll_get_rate() 200 fbdiv = (con & PLL_FBDIV_MASK) >> PLL_FBDIV_SHIFT; in rkclk_pll_get_rate() 201 con = readl(&pll->con1); in rkclk_pll_get_rate() 202 postdiv2 = (con & PLL_POSTDIV2_MASK) >> PLL_POSTDIV2_SHIFT; in rkclk_pll_get_rate() 203 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate() 215 u32 con; in rockchip_mmc_get_clk() local [all …]
|
| H A D | clk_rk3188.c | 229 uint32_t con; in rkclk_pll_get_rate() local 238 con = readl(&cru->cru_mode_con); in rkclk_pll_get_rate() 240 switch ((con >> shift) & APLL_MODE_MASK) { in rkclk_pll_get_rate() 245 con = readl(&pll->con0); in rkclk_pll_get_rate() 246 no = ((con >> CLKOD_SHIFT) & CLKOD_MASK) + 1; in rkclk_pll_get_rate() 247 nr = ((con >> CLKR_SHIFT) & CLKR_MASK) + 1; in rkclk_pll_get_rate() 248 con = readl(&pll->con1); in rkclk_pll_get_rate() 249 nf = ((con >> CLKF_SHIFT) & CLKF_MASK) + 1; in rkclk_pll_get_rate() 262 u32 con; in rockchip_mmc_get_clk() local 267 con = readl(&cru->cru_clksel_con[12]); in rockchip_mmc_get_clk() [all …]
|
| H A D | clk_rk3328.c | 331 u32 div, con; in rk3328_i2c_get_clk() local 335 con = readl(&cru->clksel_con[34]); in rk3328_i2c_get_clk() 336 div = con >> CLK_I2C0_DIV_CON_SHIFT & CLK_I2C_DIV_CON_MASK; in rk3328_i2c_get_clk() 339 con = readl(&cru->clksel_con[34]); in rk3328_i2c_get_clk() 340 div = con >> CLK_I2C1_DIV_CON_SHIFT & CLK_I2C_DIV_CON_MASK; in rk3328_i2c_get_clk() 343 con = readl(&cru->clksel_con[35]); in rk3328_i2c_get_clk() 344 div = con >> CLK_I2C2_DIV_CON_SHIFT & CLK_I2C_DIV_CON_MASK; in rk3328_i2c_get_clk() 347 con = readl(&cru->clksel_con[35]); in rk3328_i2c_get_clk() 348 div = con >> CLK_I2C3_DIV_CON_SHIFT & CLK_I2C_DIV_CON_MASK; in rk3328_i2c_get_clk() 418 u32 con = readl(&cru->clksel_con[27]); in rk3328_gmac2io_set_clk() local [all …]
|
| H A D | clk_rk3399.c | 503 #define I2C_CLK_DIV_VALUE(con, bus) \ argument 504 (con >> CLK_I2C ##bus## _DIV_CON_SHIFT) & \ 517 u32 div, con; in rk3399_i2c_get_clk() local 521 con = readl(&cru->clksel_con[61]); in rk3399_i2c_get_clk() 522 div = I2C_CLK_DIV_VALUE(con, 1); in rk3399_i2c_get_clk() 525 con = readl(&cru->clksel_con[62]); in rk3399_i2c_get_clk() 526 div = I2C_CLK_DIV_VALUE(con, 2); in rk3399_i2c_get_clk() 529 con = readl(&cru->clksel_con[63]); in rk3399_i2c_get_clk() 530 div = I2C_CLK_DIV_VALUE(con, 3); in rk3399_i2c_get_clk() 533 con = readl(&cru->clksel_con[61]); in rk3399_i2c_get_clk() [all …]
|
| /openbmc/qemu/hw/adc/ |
| H A D | npcm7xx_adc.c | 52 s->con = 0x000c0001; in npcm7xx_adc_reset() 70 return 2 * (NPCM7XX_ADC_CON_DIV(s->con) + 1); in npcm7xx_adc_prescaler() 97 uint32_t input = NPCM7XX_ADC_CON_MUX(s->con); in npcm7xx_adc_convert_done() 98 uint32_t ref = (s->con & NPCM7XX_ADC_CON_REFSEL) in npcm7xx_adc_convert_done() 107 if (s->con & NPCM7XX_ADC_CON_INT_EN) { in npcm7xx_adc_convert_done() 108 s->con |= NPCM7XX_ADC_CON_INT; in npcm7xx_adc_convert_done() 111 s->con &= ~NPCM7XX_ADC_CON_CONV; in npcm7xx_adc_convert_done() 124 uint32_t old_con = s->con; in npcm7xx_adc_write_con() 134 s->con = new_con; in npcm7xx_adc_write_con() 136 if (s->con & NPCM7XX_ADC_CON_RST) { in npcm7xx_adc_write_con() [all …]
|
| /openbmc/u-boot/board/atmel/common/ |
| H A D | video_display.c | 28 struct udevice *dev, *con; in at91_video_show_board_info() local 63 ret = uclass_get_device(UCLASS_VIDEO_CONSOLE, 0, &con); in at91_video_show_board_info() 67 priv = dev_get_uclass_priv(con); in at91_video_show_board_info() 68 vidconsole_position_cursor(con, 0, (logo_info.logo_height + in at91_video_show_board_info() 71 vidconsole_put_char(con, *s); in at91_video_show_board_info()
|
| /openbmc/qemu/hw/display/ |
| H A D | vhost-user-gpu.c | 145 dpy_cursor_define(s->con, s->current_cursor); in vhost_user_gpu_handle_cursor() 148 dpy_mouse_set(s->con, pos->x, pos->y, in vhost_user_gpu_handle_cursor() 173 QemuConsole *con = NULL; in vhost_user_gpu_handle_display() local 238 con = s->con; in vhost_user_gpu_handle_display() 241 dpy_gfx_replace_surface(con, NULL); in vhost_user_gpu_handle_display() 267 con = g->parent_obj.scanout[m->scanout_id].con; in vhost_user_gpu_handle_display() 272 dpy_gl_release_dmabuf(con, dmabuf); in vhost_user_gpu_handle_display() 277 dpy_gl_scanout_disable(con); in vhost_user_gpu_handle_display() 294 dpy_gl_scanout_dmabuf(con, dmabuf); in vhost_user_gpu_handle_display() 302 !g->parent_obj.scanout[m->scanout_id].con) { in vhost_user_gpu_handle_display() [all …]
|
| H A D | next-fb.c | 40 QemuConsole *con; member 77 DisplaySurface *surface = qemu_console_surface(s->con); in nextfb_update() 92 dpy_gfx_update(s->con, 0, 0, s->cols, s->rows); in nextfb_update() 118 s->con = graphic_console_init(dev, 0, &nextfb_ops, s); in nextfb_realize() 119 qemu_console_resize(s->con, s->cols, s->rows); in nextfb_realize()
|
| /openbmc/u-boot/drivers/sound/ |
| H A D | samsung-i2s.c | 62 unsigned int con = readl(&i2s_reg->con); in i2s_txctrl() local 66 con |= CON_ACTIVE; in i2s_txctrl() 67 con &= ~CON_TXCH_PAUSE; in i2s_txctrl() 69 con |= CON_TXCH_PAUSE; in i2s_txctrl() 70 con &= ~CON_ACTIVE; in i2s_txctrl() 74 writel(con, &i2s_reg->con); in i2s_txctrl() 281 if (!(CON_TXFIFO_FULL & (readl(&i2s_reg->con)))) { in i2s_transfer_tx_data() 334 writel(CON_RESET, &i2s_reg->con); in i2s_tx_init()
|
| /openbmc/qemu/hw/vfio/ |
| H A D | display.c | 267 dpy_gl_release_dmabuf(dpy->con, dmabuf->buf); in vfio_display_free_one_dmabuf() 299 ramfb_display_update(dpy->con, dpy->ramfb); in vfio_display_dmabuf_update() 309 qemu_console_resize(dpy->con, width, height); in vfio_display_dmabuf_update() 310 dpy_gl_scanout_dmabuf(dpy->con, primary->buf); in vfio_display_dmabuf_update() 324 dpy_gl_cursor_dmabuf(dpy->con, cursor->buf, have_hot, in vfio_display_dmabuf_update() 328 dpy_gl_cursor_dmabuf(dpy->con, NULL, false, 0, 0); in vfio_display_dmabuf_update() 332 dpy_gl_cursor_position(dpy->con, in vfio_display_dmabuf_update() 338 dpy_gl_update(dpy->con, 0, 0, width, height); in vfio_display_dmabuf_update() 364 vdev->dpy->con = graphic_console_init(DEVICE(vdev), 0, in vfio_display_dmabuf_init() 392 if (!vdev || !vdev->dpy || !vdev->dpy->con || in vfio_display_reset() [all …]
|
| /openbmc/u-boot/drivers/board/ |
| H A D | gazerbeam.c | 64 int mc4, mc2, sc, con; in _read_board_variant_data() local 108 con = dm_gpio_get_value(&priv->var_gpios[CON_GPIO_NO]); in _read_board_variant_data() 109 if (con < 0) { in _read_board_variant_data() 111 dev->name, con); in _read_board_variant_data() 112 return con; in _read_board_variant_data() 121 priv->variant = con ? VAR_CON : VAR_CPU; in _read_board_variant_data()
|
| /openbmc/u-boot/drivers/i2c/ |
| H A D | rk_i2c.c | 86 debug("i2c_con: 0x%08x\n", readl(®s->con)); in rk_i2c_show_regs() 110 writel(I2C_CON_EN | I2C_CON_START, ®s->con); in rk_i2c_send_start_bit() 138 writel(I2C_CON_EN | I2C_CON_STOP, ®s->con); in rk_i2c_send_stop_bit() 160 writel(0, &i2c->regs->con); in rk_i2c_disable() 172 uint con = 0; in rk_i2c_read() local 197 con = I2C_CON_EN; in rk_i2c_read() 204 con = I2C_CON_EN | I2C_CON_LASTACK; in rk_i2c_read() 213 con |= I2C_CON_MOD(I2C_MODE_RX); in rk_i2c_read() 215 con |= I2C_CON_MOD(I2C_MODE_TRX); in rk_i2c_read() 217 writel(con, ®s->con); in rk_i2c_read() [all …]
|