Home
last modified time | relevance | path

Searched refs:vc (Results 1 – 25 of 104) sorted by relevance

12345

/drivers/tty/vt/
Dvt.c137 struct vc vc_cons [MAX_NR_CONSOLES];
144 static void vc_init(struct vc_data *vc, unsigned int rows,
146 static void gotoxy(struct vc_data *vc, int new_x, int new_y);
147 static void save_cur(struct vc_data *vc);
148 static void reset_terminal(struct vc_data *vc, int do_clear);
151 static void set_cursor(struct vc_data *vc);
152 static void hide_cursor(struct vc_data *vc);
156 static void set_palette(struct vc_data *vc);
261 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument
263 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write()
[all …]
Dvt_ioctl.c46 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 …]
Dvc_screen.c88 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 …]
Dkeyboard.c79 typedef void (k_handler_fn)(struct vc_data *vc, unsigned char value,
91 typedef void (fn_handler_fn)(struct vc_data *vc);
324 static void put_queue(struct vc_data *vc, int ch) in put_queue() argument
326 tty_insert_flip_char(&vc->port, ch, 0); in put_queue()
327 tty_flip_buffer_push(&vc->port); in put_queue()
330 static void puts_queue(struct vc_data *vc, const char *cp) in puts_queue() argument
332 tty_insert_flip_string(&vc->port, cp, strlen(cp)); in puts_queue()
333 tty_flip_buffer_push(&vc->port); in puts_queue()
336 static void applkey(struct vc_data *vc, int key, char mode) in applkey() argument
342 puts_queue(vc, buf); in applkey()
[all …]
Dselection.c90 bool vc_is_sel(struct vc_data *vc) in vc_is_sel() argument
92 return vc == vc_sel.cons; in vc_is_sel()
188 static int vc_selection_store_chars(struct vc_data *vc, bool unicode) in vc_selection_store_chars() argument
214 if (!((i + 2) % vc->vc_size_row)) { in vc_selection_store_chars()
229 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument
247 if (!(ps % vc->vc_size_row)) in vc_do_selection()
257 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
262 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
263 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
264 vc->vc_size_row - 2; in vc_do_selection()
[all …]
/drivers/media/pci/tw686x/
Dtw686x-video.c49 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 …]
/drivers/video/fbdev/core/
Dfbcon.c156 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
167 static void fbcon_init(struct vc_data *vc, int init);
168 static void fbcon_deinit(struct vc_data *vc);
169 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
171 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos);
172 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s,
174 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only);
175 static void fbcon_cursor(struct vc_data *vc, int mode);
176 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx,
178 static int fbcon_switch(struct vc_data *vc);
[all …]
Dbitblit.c26 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 …]
Dfbcon_cw.c26 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 …]
Dfbcon_ud.c26 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 …]
Dfbcon_ccw.c26 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 …]
Dtileblit.c19 static void tile_bmove(struct vc_data *vc, struct fb_info *info, int sy, in tile_bmove() argument
34 static void tile_clear(struct vc_data *vc, struct fb_info *info, int sy, in tile_clear() argument
38 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in tile_clear()
39 int fgshift = (vc->vc_hi_font_mask) ? 9 : 8; in tile_clear()
41 rect.index = vc->vc_video_erase_char & in tile_clear()
42 ((vc->vc_hi_font_mask) ? 0x1ff : 0xff); in tile_clear()
43 rect.fg = attr_fgcol_ec(fgshift, vc, info); in tile_clear()
44 rect.bg = attr_bgcol_ec(bgshift, vc, info); in tile_clear()
54 static void tile_putcs(struct vc_data *vc, struct fb_info *info, in tile_putcs() argument
59 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff; in tile_putcs()
[all …]
Dfbcon_rotate.c21 static int fbcon_rotate_font(struct fb_info *info, struct vc_data *vc) in fbcon_rotate_font() argument
29 if (vc->vc_font.data == ops->fontdata && in fbcon_rotate_font()
33 src = ops->fontdata = vc->vc_font.data; in fbcon_rotate_font()
35 len = vc->vc_font.charcount; in fbcon_rotate_font()
36 s_cellsize = ((vc->vc_font.width + 7)/8) * in fbcon_rotate_font()
37 vc->vc_font.height; in fbcon_rotate_font()
42 d_cellsize = ((vc->vc_font.height + 7)/8) * in fbcon_rotate_font()
43 vc->vc_font.width; in fbcon_rotate_font()
67 rotate_ud(src, dst, vc->vc_font.width, in fbcon_rotate_font()
68 vc->vc_font.height); in fbcon_rotate_font()
[all …]
Dfbcon.h57 void (*bmove)(struct vc_data *vc, struct fb_info *info, int sy,
59 void (*clear)(struct vc_data *vc, struct fb_info *info, int sy,
61 void (*putcs)(struct vc_data *vc, struct fb_info *info,
64 void (*clear_margins)(struct vc_data *vc, struct fb_info *info,
66 void (*cursor)(struct vc_data *vc, struct fb_info *info, int mode,
69 int (*rotate_font)(struct fb_info *info, struct vc_data *vc);
121 static inline int attr_col_ec(int shift, struct vc_data *vc, in attr_col_ec() argument
129 if (!vc) in attr_col_ec()
132 if (vc->vc_can_do_color) in attr_col_ec()
133 return is_fg ? attr_fgcol(shift,vc->vc_video_erase_char) in attr_col_ec()
[all …]
/drivers/dma/
Dvirt-dma.h44 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 …]
Dvirt-dma.c21 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 …]
Dmilbeaut-hdmac.c68 struct virt_dma_chan vc; member
84 to_milbeaut_hdmac_chan(struct virt_dma_chan *vc) in to_milbeaut_hdmac_chan() argument
86 return container_of(vc, struct milbeaut_hdmac_chan, vc); in to_milbeaut_hdmac_chan()
101 vd = vchan_next_desc(&mc->vc); in milbeaut_hdmac_next_desc()
177 spin_lock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
203 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
215 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_chan_config() local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_chan_config()
218 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
220 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
[all …]
Duniphier-mdmac.c60 struct virt_dma_chan vc; member
75 to_uniphier_mdmac_chan(struct virt_dma_chan *vc) in to_uniphier_mdmac_chan() argument
77 return container_of(vc, struct uniphier_mdmac_chan, vc); in to_uniphier_mdmac_chan()
92 vd = vchan_next_desc(&mc->vc); in uniphier_mdmac_next_desc()
182 spin_lock(&mc->vc.lock); in uniphier_mdmac_interrupt()
219 spin_unlock(&mc->vc.lock); in uniphier_mdmac_interrupt()
235 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_mdmac_prep_slave_sg() local
249 return vchan_tx_prep(vc, &md->vd, flags); in uniphier_mdmac_prep_slave_sg()
254 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_mdmac_terminate_all() local
255 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); in uniphier_mdmac_terminate_all()
[all …]
/drivers/accessibility/speakup/
Dmain.c257 static unsigned char get_attributes(struct vc_data *vc, u16 *pos) in get_attributes() argument
259 pos = screen_pos(vc, pos - (u16 *)vc->vc_origin, true); in get_attributes()
260 return (scr_readw(pos) & ~vc->vc_hi_font_mask) >> 8; in get_attributes()
263 static void speakup_date(struct vc_data *vc) in speakup_date() argument
265 spk_x = spk_cx = vc->state.x; in speakup_date()
266 spk_y = spk_cy = vc->state.y; in speakup_date()
267 spk_pos = spk_cp = vc->vc_pos; in speakup_date()
269 spk_attr = get_attributes(vc, (u_short *)spk_pos); in speakup_date()
289 static void speakup_shut_up(struct vc_data *vc) in speakup_shut_up() argument
295 speakup_date(vc); in speakup_shut_up()
[all …]
Dspk_types.h55 typedef int (*special_func)(struct vc_data *vc, u_char type, u_char ch,
87 #define spk_shut_up (speakup_console[vc->vc_num]->shut_up)
88 #define spk_killed (speakup_console[vc->vc_num]->shut_up & 0x40)
89 #define spk_x (speakup_console[vc->vc_num]->reading_x)
90 #define spk_cx (speakup_console[vc->vc_num]->cursor_x)
91 #define spk_y (speakup_console[vc->vc_num]->reading_y)
92 #define spk_cy (speakup_console[vc->vc_num]->cursor_y)
93 #define spk_pos (speakup_console[vc->vc_num]->reading_pos)
94 #define spk_cp (speakup_console[vc->vc_num]->cursor_pos)
95 #define goto_pos (speakup_console[vc->vc_num]->go_pos)
[all …]
/drivers/media/usb/s2255/
Ds2255drv.c248 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 …]
/drivers/accessibility/braille/
Dbraille_console.c110 static void vc_follow_cursor(struct vc_data *vc) in vc_follow_cursor() argument
112 vc_x = vc->state.x - (vc->state.x % WIDTH); in vc_follow_cursor()
113 vc_y = vc->state.y; in vc_follow_cursor()
114 lastvc_x = vc->state.x; in vc_follow_cursor()
115 lastvc_y = vc->state.y; in vc_follow_cursor()
119 static void vc_maybe_cursor_moved(struct vc_data *vc) in vc_maybe_cursor_moved() argument
121 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y) in vc_maybe_cursor_moved()
122 vc_follow_cursor(vc); in vc_maybe_cursor_moved()
126 static void vc_refresh(struct vc_data *vc) in vc_refresh() argument
132 u16 glyph = screen_glyph(vc, in vc_refresh()
[all …]
/drivers/atm/
Didt77252.c550 struct vc_map *vc; in idt77252_tx_dump() local
555 vc = card->vcs[i]; in idt77252_tx_dump()
556 if (!vc) in idt77252_tx_dump()
560 if (vc->rx_vcc) in idt77252_tx_dump()
561 vcc = vc->rx_vcc; in idt77252_tx_dump()
562 else if (vc->tx_vcc) in idt77252_tx_dump()
563 vcc = vc->tx_vcc; in idt77252_tx_dump()
568 printk("%s: Connection %d:\n", card->name, vc->index); in idt77252_tx_dump()
569 dump_tct(card, vc->index); in idt77252_tx_dump()
703 push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) in push_on_scq() argument
[all …]
/drivers/video/console/
Ddummycon.c52 static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) in dummycon_putc() argument
60 static void dummycon_putcs(struct vc_data *vc, const unsigned short *s, in dummycon_putcs() argument
68 if (s[i] != vc->vc_video_erase_char) in dummycon_putcs()
80 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument
86 static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) { } in dummycon_putc() argument
87 static void dummycon_putcs(struct vc_data *vc, const unsigned short *s, in dummycon_putcs() argument
89 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument
100 static void dummycon_init(struct vc_data *vc, int init) in dummycon_init() argument
102 vc->vc_can_do_color = 1; in dummycon_init()
104 vc->vc_cols = DUMMY_COLUMNS; in dummycon_init()
[all …]
Dnewport_con.c327 static void newport_init(struct vc_data *vc, int init) in newport_init() argument
333 vc->vc_can_do_color = 1; in newport_init()
335 vc->vc_cols = cols; in newport_init()
336 vc->vc_rows = rows; in newport_init()
338 vc_resize(vc, cols, rows); in newport_init()
349 static void newport_clear(struct vc_data *vc, int sy, int sx, int height, in newport_clear() argument
361 (vc->state.color & 0xf0) >> 4); in newport_clear()
364 (vc->state.color & 0xf0) >> 4); in newport_clear()
366 (vc->state.color & 0xf0) >> 4); in newport_clear()
370 static void newport_putc(struct vc_data *vc, int charattr, int ypos, in newport_putc() argument
[all …]

12345