/openbmc/linux/drivers/tty/vt/ |
H A D | vt.c | 137 struct vc vc_cons [MAX_NR_CONSOLES]; 143 static void vc_init(struct vc_data *vc, int do_clear); 144 static void gotoxy(struct vc_data *vc, int new_x, int new_y); 145 static void save_cur(struct vc_data *vc); 146 static void reset_terminal(struct vc_data *vc, int do_clear); 149 static void set_cursor(struct vc_data *vc); 150 static void hide_cursor(struct vc_data *vc); 154 static void set_palette(struct vc_data *vc); 264 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument 266 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write() [all …]
|
H A D | vt_ioctl.c | 46 const struct vc_data *vc = vc_cons[i].d; in vt_in_use() local 54 return vc && kref_read(&vc->port.kref) > 1; in vt_in_use() 86 static void complete_change_console(struct vc_data *vc); 252 static int vt_kdsetmode(struct vc_data *vc, unsigned long mode) in vt_kdsetmode() argument 267 if (vc->vc_mode == mode) in vt_kdsetmode() 270 vc->vc_mode = mode; in vt_kdsetmode() 271 if (vc->vc_num != fg_console) in vt_kdsetmode() 286 struct vc_data *vc = tty->driver_data; in vt_k_ioctl() local 288 unsigned int console = vc->vc_num; in vt_k_ioctl() 381 ret = vt_kdsetmode(vc, arg); in vt_k_ioctl() [all …]
|
H A D | vc_screen.c | 88 struct vc_data *vc = param->vc; in vcs_notifier() local 109 if (currcons != vc->vc_num) in vcs_notifier() 209 static int vcs_size(const struct vc_data *vc, bool attr, bool unicode) in vcs_size() argument 215 size = vc->vc_rows * vc->vc_cols; in vcs_size() 231 struct vc_data *vc; in vcs_lseek() local 235 vc = vcs_vc(inode, NULL); in vcs_lseek() 236 if (!vc) { in vcs_lseek() 241 size = vcs_size(vc, use_attributes(inode), use_unicode(inode)); in vcs_lseek() 248 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf, in vcs_read_buf_uni() argument 251 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni() [all …]
|
H A D | keyboard.c | 79 typedef void (k_handler_fn)(struct vc_data *vc, unsigned char value, 91 typedef void (fn_handler_fn)(struct vc_data *vc); 325 static void put_queue(struct vc_data *vc, int ch) in put_queue() argument 327 tty_insert_flip_char(&vc->port, ch, 0); in put_queue() 328 tty_flip_buffer_push(&vc->port); in put_queue() 331 static void puts_queue(struct vc_data *vc, const char *cp) in puts_queue() argument 333 tty_insert_flip_string(&vc->port, cp, strlen(cp)); in puts_queue() 334 tty_flip_buffer_push(&vc->port); in puts_queue() 337 static void applkey(struct vc_data *vc, int key, char mode) in applkey() argument 343 puts_queue(vc, buf); in applkey() [all …]
|
/openbmc/qemu/ui/ |
H A D | gtk-egl.c | 27 static void gtk_egl_set_scanout_mode(VirtualConsole *vc, bool scanout) in gtk_egl_set_scanout_mode() argument 29 if (vc->gfx.scanout_mode == scanout) { in gtk_egl_set_scanout_mode() 33 vc->gfx.scanout_mode = scanout; in gtk_egl_set_scanout_mode() 34 if (!vc->gfx.scanout_mode) { in gtk_egl_set_scanout_mode() 35 eglMakeCurrent(qemu_egl_display, vc->gfx.esurface, in gtk_egl_set_scanout_mode() 36 vc->gfx.esurface, vc->gfx.ectx); in gtk_egl_set_scanout_mode() 37 egl_fb_destroy(&vc->gfx.guest_fb); in gtk_egl_set_scanout_mode() 38 if (vc->gfx.surface) { in gtk_egl_set_scanout_mode() 39 surface_gl_destroy_texture(vc->gfx.gls, vc->gfx.ds); in gtk_egl_set_scanout_mode() 40 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds); in gtk_egl_set_scanout_mode() [all …]
|
H A D | gtk-gl-area.c | 21 static void gtk_gl_area_set_scanout_mode(VirtualConsole *vc, bool scanout) in gtk_gl_area_set_scanout_mode() argument 23 if (vc->gfx.scanout_mode == scanout) { in gtk_gl_area_set_scanout_mode() 27 vc->gfx.scanout_mode = scanout; in gtk_gl_area_set_scanout_mode() 28 if (!vc->gfx.scanout_mode) { in gtk_gl_area_set_scanout_mode() 29 gtk_gl_area_make_current(GTK_GL_AREA(vc->gfx.drawing_area)); in gtk_gl_area_set_scanout_mode() 30 egl_fb_destroy(&vc->gfx.guest_fb); in gtk_gl_area_set_scanout_mode() 31 if (vc->gfx.surface) { in gtk_gl_area_set_scanout_mode() 32 surface_gl_destroy_texture(vc->gfx.gls, vc->gfx.ds); in gtk_gl_area_set_scanout_mode() 33 surface_gl_create_texture(vc->gfx.gls, vc->gfx.ds); in gtk_gl_area_set_scanout_mode() 40 void gd_gl_area_draw(VirtualConsole *vc) in gd_gl_area_draw() argument [all …]
|
H A D | gtk.c | 137 static void gd_grab_pointer(VirtualConsole *vc, const char *reason); 139 static void gd_grab_keyboard(VirtualConsole *vc, const char *reason); 146 VirtualConsole *vc; in gd_vc_find_by_menu() local 150 vc = &s->vc[i]; in gd_vc_find_by_menu() 152 (GTK_CHECK_MENU_ITEM(vc->menu_item))) { in gd_vc_find_by_menu() 153 return vc; in gd_vc_find_by_menu() 161 VirtualConsole *vc; in gd_vc_find_by_page() local 165 vc = &s->vc[i]; in gd_vc_find_by_page() 166 p = gtk_notebook_page_num(GTK_NOTEBOOK(s->notebook), vc->tab_item); in gd_vc_find_by_page() 168 return vc; in gd_vc_find_by_page() [all …]
|
H A D | console-vc.c | 416 static void vc_put_lf(VCChardev *vc) in vc_put_lf() argument 418 QemuTextConsole *s = vc->console; in vc_put_lf() 465 static void vc_handle_escape(VCChardev *vc) in vc_handle_escape() argument 469 for (i = 0; i < vc->nb_esc_params; i++) { in vc_handle_escape() 470 switch (vc->esc_params[i]) { in vc_handle_escape() 472 vc->t_attrib = TEXT_ATTRIBUTES_DEFAULT; in vc_handle_escape() 475 vc->t_attrib.bold = 1; in vc_handle_escape() 478 vc->t_attrib.uline = 1; in vc_handle_escape() 481 vc->t_attrib.blink = 1; in vc_handle_escape() 484 vc->t_attrib.invers = 1; in vc_handle_escape() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | vl_rotate.c | 17 bool afs_begin_vlserver_operation(struct afs_vl_cursor *vc, struct afs_cell *cell, in afs_begin_vlserver_operation() argument 20 memset(vc, 0, sizeof(*vc)); in afs_begin_vlserver_operation() 21 vc->cell = cell; in afs_begin_vlserver_operation() 22 vc->key = key; in afs_begin_vlserver_operation() 23 vc->error = -EDESTADDRREQ; in afs_begin_vlserver_operation() 24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation() 27 vc->error = -EINTR; in afs_begin_vlserver_operation() 28 vc->flags |= AFS_VL_CURSOR_STOP; in afs_begin_vlserver_operation() 39 static bool afs_start_vl_iteration(struct afs_vl_cursor *vc) in afs_start_vl_iteration() argument 41 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/shadow/files/ |
H A D | securetty | 177 vc/1 178 vc/2 179 vc/3 180 vc/4 181 vc/5 182 vc/6 183 vc/7 184 vc/8 185 vc/9 186 vc/10 [all …]
|
/openbmc/linux/drivers/media/pci/tw686x/ |
H A D | tw686x-video.c | 49 static void tw686x_buf_done(struct tw686x_video_channel *vc, in tw686x_buf_done() argument 52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done() 53 struct tw686x_dev *dev = vc->dev; in tw686x_buf_done() 57 if (vc->curr_bufs[pb]) { in tw686x_buf_done() 58 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done() 61 vb->sequence = vc->sequence++; in tw686x_buf_done() 71 vc->pb = !pb; in tw686x_buf_done() 77 static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc, in tw686x_memcpy_dma_free() argument 80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free() 81 struct tw686x_dev *dev = vc->dev; in tw686x_memcpy_dma_free() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fbcon.c | 166 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 176 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 177 static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table); 184 static void fbcon_redraw_move(struct vc_data *vc, struct fbcon_display *p, 228 struct vc_data *vc; in fbcon_rotate_all() local 236 vc = vc_cons[i].d; in fbcon_rotate_all() 237 if (!vc || vc->vc_mode != KD_TEXT || in fbcon_rotate_all() 241 p = &fb_display[vc->vc_num]; in fbcon_rotate_all() 273 static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info) in fbcon_is_inactive() argument 278 vc->vc_mode != KD_TEXT || ops->graphics); in fbcon_is_inactive() [all …]
|
H A D | bitblit.c | 26 struct vc_data *vc) in update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr() 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 46 static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 52 area.sy = sy * vc->vc_font.height; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 54 area.dy = dy * vc->vc_font.height; in bit_bmove() 55 area.height = height * vc->vc_font.height; in bit_bmove() [all …]
|
H A D | fbcon_cw.c | 26 struct vc_data *vc) in cw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() 32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr() 48 static void cw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in cw_bmove() argument 55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove() 56 area.sy = sx * vc->vc_font.width; in cw_bmove() 57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove() 58 area.dy = dx * vc->vc_font.width; in cw_bmove() 59 area.width = height * vc->vc_font.height; in cw_bmove() [all …]
|
H A D | fbcon_ccw.c | 26 struct vc_data *vc) in ccw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() 30 int mod = vc->vc_font.height % 8; in ccw_update_attr() 39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr() 63 static void ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ccw_bmove() argument 70 area.sx = sy * vc->vc_font.height; in ccw_bmove() 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove() 72 area.dx = dy * vc->vc_font.height; in ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove() [all …]
|
H A D | fbcon_ud.c | 26 struct vc_data *vc) in ud_update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr() 29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr() 48 static void ud_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ud_bmove() argument 56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove() 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove() 58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove() 60 area.height = height * vc->vc_font.height; in ud_bmove() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | virt-dma.h | 44 void vchan_dma_desc_free_list(struct virt_dma_chan *vc, struct list_head *head); 45 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev); 56 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument 61 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 69 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_prep() 70 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep() 71 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_prep() 82 static inline bool vchan_issue_pending(struct virt_dma_chan *vc) in vchan_issue_pending() argument 84 list_splice_tail_init(&vc->desc_submitted, &vc->desc_issued); in vchan_issue_pending() 85 return !list_empty(&vc->desc_issued); in vchan_issue_pending() [all …]
|
H A D | virt-dma.c | 21 struct virt_dma_chan *vc = to_virt_chan(tx->chan); in vchan_tx_submit() local 26 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_submit() 29 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit() 30 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_submit() 32 dev_dbg(vc->chan.device->dev, "vchan %p: txd %p[%x]: submitted\n", in vchan_tx_submit() 33 vc, vd, cookie); in vchan_tx_submit() 51 struct virt_dma_chan *vc = to_virt_chan(tx->chan); in vchan_tx_desc_free() local 55 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_desc_free() 57 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_desc_free() 59 dev_dbg(vc->chan.device->dev, "vchan %p: txd %p[%x]: freeing\n", in vchan_tx_desc_free() [all …]
|
/openbmc/linux/drivers/accessibility/speakup/ |
H A D | main.c | 258 static unsigned char get_attributes(struct vc_data *vc, u16 *pos) in get_attributes() argument 260 pos = screen_pos(vc, pos - (u16 *)vc->vc_origin, true); in get_attributes() 261 return (scr_readw(pos) & ~vc->vc_hi_font_mask) >> 8; in get_attributes() 264 static void speakup_date(struct vc_data *vc) in speakup_date() argument 266 spk_x = spk_cx = vc->state.x; in speakup_date() 267 spk_y = spk_cy = vc->state.y; in speakup_date() 268 spk_pos = spk_cp = vc->vc_pos; in speakup_date() 270 spk_attr = get_attributes(vc, (u_short *)spk_pos); in speakup_date() 290 static void speakup_shut_up(struct vc_data *vc) in speakup_shut_up() argument 296 speakup_date(vc); in speakup_shut_up() [all …]
|
/openbmc/linux/drivers/media/usb/s2255/ |
H A D | s2255drv.c | 248 struct s2255_vc vc[MAX_CHANNELS]; member 337 static int s2255_start_acquire(struct s2255_vc *vc); 338 static int s2255_stop_acquire(struct s2255_vc *vc); 339 static void s2255_fillbuff(struct s2255_vc *vc, struct s2255_buffer *buf, 341 static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode); 409 static int norm_maxw(struct s2255_vc *vc) in norm_maxw() argument 411 return (vc->std & V4L2_STD_525_60) ? in norm_maxw() 415 static int norm_maxh(struct s2255_vc *vc) in norm_maxh() argument 417 return (vc->std & V4L2_STD_525_60) ? in norm_maxh() 421 static int norm_minw(struct s2255_vc *vc) in norm_minw() argument [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | vc.c | 118 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_config_channel() local 124 if (vc->flags & OMAP_VC_CHANNEL_DEFAULT) in omap_vc_config_channel() 125 vc->cfg_channel &= vc_cfg_bits->racen; in omap_vc_config_channel() 127 voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, in omap_vc_config_channel() 128 vc->cfg_channel << vc->cfg_channel_sa_shift, in omap_vc_config_channel() 129 vc->cfg_channel_reg); in omap_vc_config_channel() 139 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_pre_scale() local 165 vc_cmdval = voltdm->read(vc->cmdval_reg); in omap_vc_pre_scale() 166 vc_cmdval &= ~vc->common->cmd_on_mask; in omap_vc_pre_scale() 167 vc_cmdval |= (*target_vsel << vc->common->cmd_on_shift); in omap_vc_pre_scale() [all …]
|
/openbmc/linux/drivers/accessibility/braille/ |
H A D | braille_console.c | 109 static void vc_follow_cursor(struct vc_data *vc) in vc_follow_cursor() argument 111 vc_x = vc->state.x - (vc->state.x % WIDTH); in vc_follow_cursor() 112 vc_y = vc->state.y; in vc_follow_cursor() 113 lastvc_x = vc->state.x; in vc_follow_cursor() 114 lastvc_y = vc->state.y; in vc_follow_cursor() 118 static void vc_maybe_cursor_moved(struct vc_data *vc) in vc_maybe_cursor_moved() argument 120 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y) in vc_maybe_cursor_moved() 121 vc_follow_cursor(vc); in vc_maybe_cursor_moved() 125 static void vc_refresh(struct vc_data *vc) in vc_refresh() argument 131 u16 glyph = screen_glyph(vc, in vc_refresh() [all …]
|
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/raspidmx/raspidmx/ |
H A D | 0004-add-libvchostif-to-link.patch | 36 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… 37 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lras… 39 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 49 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -L../lib -lraspidmx 50 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -L../lib -lraspidmx 52 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 62 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… 63 +LDFLAGS+=-L/opt/vc/lib/ -lvchostif -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lras… 65 …INCLUDES+=-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface… 75 -LDFLAGS+=-L/opt/vc/lib/ -lbcm_host -lm $(shell pkg-config --libs libpng) -L../lib -lraspidmx -lras… [all …]
|
/openbmc/qemu/target/alpha/ |
H A D | translate.c | 678 static void gen_cvtlq(TCGv vc, TCGv vb) in gen_cvtlq() argument 685 tcg_gen_sari_i64(vc, vb, 32); in gen_cvtlq() 686 tcg_gen_deposit_i64(vc, vc, tmp, 0, 30); in gen_cvtlq() 717 TCGv vb, vc; in IEEE_ARITH2() local 721 vc = dest_fpr(ctx, rc); in IEEE_ARITH2() 726 gen_helper_cvttq_c(vc, tcg_env, vb); in IEEE_ARITH2() 729 gen_helper_cvttq(vc, tcg_env, vb); in IEEE_ARITH2() 738 TCGv vb, vc; in gen_ieee_intcvt() local 742 vc = dest_fpr(ctx, rc); in gen_ieee_intcvt() 748 helper(vc, tcg_env, vb); in gen_ieee_intcvt() [all …]
|
/openbmc/linux/include/linux/ |
H A D | console.h | 49 void (*con_init)(struct vc_data *vc, int init); 50 void (*con_deinit)(struct vc_data *vc); 51 void (*con_clear)(struct vc_data *vc, int sy, int sx, int height, 53 void (*con_putc)(struct vc_data *vc, int c, int ypos, int xpos); 54 void (*con_putcs)(struct vc_data *vc, const unsigned short *s, 56 void (*con_cursor)(struct vc_data *vc, int mode); 57 bool (*con_scroll)(struct vc_data *vc, unsigned int top, 60 int (*con_switch)(struct vc_data *vc); 61 int (*con_blank)(struct vc_data *vc, int blank, int mode_switch); 62 int (*con_font_set)(struct vc_data *vc, struct console_font *font, [all …]
|