Home
last modified time | relevance | path

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

123

/drivers/tty/vt/
Dvt.c141 struct vc vc_cons [MAX_NR_CONSOLES];
148 static void vc_init(struct vc_data *vc, unsigned int rows,
150 static void gotoxy(struct vc_data *vc, int new_x, int new_y);
151 static void save_cur(struct vc_data *vc);
152 static void reset_terminal(struct vc_data *vc, int do_clear);
155 static void set_cursor(struct vc_data *vc);
156 static void hide_cursor(struct vc_data *vc);
160 static void set_palette(struct vc_data *vc);
265 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument
267 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write()
[all …]
Dvt_ioctl.c62 static void complete_change_console(struct vc_data *vc);
263 do_unimap_ioctl(int cmd, struct unimapdesc __user *user_ud, int perm, struct vc_data *vc) in do_unimap_ioctl() argument
277 return con_set_unimap(vc, tmp.entry_ct, tmp.entries); in do_unimap_ioctl()
279 if (!perm && fg_console != vc->vc_num) in do_unimap_ioctl()
281 return con_get_unimap(vc, tmp.entry_ct, &(user_ud->entry_ct), tmp.entries); in do_unimap_ioctl()
289 struct vc_data *vc = NULL; in vt_disallocate() local
296 vc = vc_deallocate(vc_num); in vt_disallocate()
299 if (vc && vc_num >= MIN_NR_CONSOLES) { in vt_disallocate()
300 tty_port_destroy(&vc->port); in vt_disallocate()
301 kfree(vc); in vt_disallocate()
[all …]
Dkeyboard.c78 typedef void (k_handler_fn)(struct vc_data *vc, unsigned char value,
90 typedef void (fn_handler_fn)(struct vc_data *vc);
303 static void put_queue(struct vc_data *vc, int ch) in put_queue() argument
305 tty_insert_flip_char(&vc->port, ch, 0); in put_queue()
306 tty_schedule_flip(&vc->port); in put_queue()
309 static void puts_queue(struct vc_data *vc, char *cp) in puts_queue() argument
312 tty_insert_flip_char(&vc->port, *cp, 0); in puts_queue()
315 tty_schedule_flip(&vc->port); in puts_queue()
318 static void applkey(struct vc_data *vc, int key, char mode) in applkey() argument
324 puts_queue(vc, buf); in applkey()
[all …]
Dvc_screen.c65 struct vc_data *vc = param->vc; in vcs_notifier() local
77 if (currcons != vc->vc_num) in vcs_notifier()
167 struct vc_data *vc; in vcs_size() local
171 vc = vcs_vc(inode, NULL); in vcs_size()
172 if (!vc) in vcs_size()
175 size = vc->vc_rows * vc->vc_cols; in vcs_size()
200 struct vc_data *vc; in vcs_read() local
222 vc = vcs_vc(inode, &viewed); in vcs_read()
223 if (!vc) in vcs_read()
267 maxcol = vc->vc_cols; in vcs_read()
[all …]
Dselection.c161 struct vc_data *vc = vc_cons[fg_console].d; in set_selection() local
180 xs = limit(xs, vc->vc_cols - 1); in set_selection()
181 ys = limit(ys, vc->vc_rows - 1); in set_selection()
182 xe = limit(xe, vc->vc_cols - 1); in set_selection()
183 ye = limit(ye, vc->vc_rows - 1); in set_selection()
184 ps = ys * vc->vc_size_row + (xs << 1); in set_selection()
185 pe = ye * vc->vc_size_row + (xe << 1); in set_selection()
230 if (!(ps % vc->vc_size_row)) in set_selection()
240 if (!((pe + 2) % vc->vc_size_row)) in set_selection()
245 new_sel_start = ps - ps % vc->vc_size_row; in set_selection()
[all …]
/drivers/media/pci/tw686x/
Dtw686x-video.c53 static void tw686x_buf_done(struct tw686x_video_channel *vc, in tw686x_buf_done() argument
56 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done()
57 struct tw686x_dev *dev = vc->dev; in tw686x_buf_done()
61 if (vc->curr_bufs[pb]) { in tw686x_buf_done()
62 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done()
65 vb->sequence = vc->sequence++; in tw686x_buf_done()
75 vc->pb = !pb; in tw686x_buf_done()
81 static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc, in tw686x_memcpy_dma_free() argument
84 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free()
85 struct tw686x_dev *dev = vc->dev; in tw686x_memcpy_dma_free()
[all …]
/drivers/video/console/
Dfbcon.c145 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
158 static void fbcon_init(struct vc_data *vc, int init);
159 static void fbcon_deinit(struct vc_data *vc);
160 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
162 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos);
163 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s,
165 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only);
166 static void fbcon_cursor(struct vc_data *vc, int mode);
167 static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
169 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx,
[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_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 …]
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 …]
Ddummycon.c34 static void dummycon_init(struct vc_data *vc, int init) in dummycon_init() argument
36 vc->vc_can_do_color = 1; in dummycon_init()
38 vc->vc_cols = DUMMY_COLUMNS; in dummycon_init()
39 vc->vc_rows = DUMMY_ROWS; in dummycon_init()
41 vc_resize(vc, DUMMY_COLUMNS, DUMMY_ROWS); in dummycon_init()
44 static void dummycon_deinit(struct vc_data *vc) in dummycon_deinit() argument
48 static void dummycon_clear(struct vc_data *vc, int a, int b, int c, int d) in dummycon_clear() argument
52 static void dummycon_putc(struct vc_data *vc, int a, int b, int c) in dummycon_putc() argument
56 static void dummycon_putcs(struct vc_data *vc, const unsigned short *s, int a, int b, int c) in dummycon_putcs() argument
60 static void dummycon_cursor(struct vc_data *vc, int a) in dummycon_cursor() argument
[all …]
Dnewport_con.c328 static void newport_init(struct vc_data *vc, int init) in newport_init() argument
334 vc->vc_can_do_color = 1; in newport_init()
336 vc->vc_cols = cols; in newport_init()
337 vc->vc_rows = rows; in newport_init()
339 vc_resize(vc, cols, rows); in newport_init()
350 static void newport_clear(struct vc_data *vc, int sy, int sx, int height, in newport_clear() argument
362 (vc->vc_color & 0xf0) >> 4); in newport_clear()
365 (vc->vc_color & 0xf0) >> 4); in newport_clear()
367 (vc->vc_color & 0xf0) >> 4); in newport_clear()
371 static void newport_putc(struct vc_data *vc, int charattr, int ypos, in newport_putc() argument
[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()
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()
76 rotate_cw(src, dst, vc->vc_font.width, in fbcon_rotate_font()
[all …]
Dfbcon.h55 void (*bmove)(struct vc_data *vc, struct fb_info *info, int sy,
57 void (*clear)(struct vc_data *vc, struct fb_info *info, int sy,
59 void (*putcs)(struct vc_data *vc, struct fb_info *info,
62 void (*clear_margins)(struct vc_data *vc, struct fb_info *info,
64 void (*cursor)(struct vc_data *vc, struct fb_info *info, int mode,
67 int (*rotate_font)(struct fb_info *info, struct vc_data *vc);
118 static inline int attr_col_ec(int shift, struct vc_data *vc, in attr_col_ec() argument
126 if (!vc) in attr_col_ec()
129 if (vc->vc_can_do_color) in attr_col_ec()
130 return is_fg ? attr_fgcol(shift,vc->vc_video_erase_char) in attr_col_ec()
[all …]
/drivers/staging/speakup/
Dmain.c263 static unsigned char get_attributes(struct vc_data *vc, u16 *pos) in get_attributes() argument
265 pos = screen_pos(vc, pos - (u16 *)vc->vc_origin, 1); in get_attributes()
266 return (scr_readw(pos) & ~vc->vc_hi_font_mask) >> 8; in get_attributes()
269 static void speakup_date(struct vc_data *vc) in speakup_date() argument
271 spk_x = spk_cx = vc->vc_x; in speakup_date()
272 spk_y = spk_cy = vc->vc_y; in speakup_date()
273 spk_pos = spk_cp = vc->vc_pos; in speakup_date()
275 spk_attr = get_attributes(vc, (u_short *)spk_pos); in speakup_date()
295 static void speakup_shut_up(struct vc_data *vc) in speakup_shut_up() argument
301 speakup_date(vc); in speakup_shut_up()
[all …]
Dspk_types.h51 typedef int (*special_func)(struct vc_data *vc, u_char type, u_char ch,
83 #define spk_shut_up (speakup_console[vc->vc_num]->shut_up)
84 #define spk_killed (speakup_console[vc->vc_num]->shut_up & 0x40)
85 #define spk_x (speakup_console[vc->vc_num]->reading_x)
86 #define spk_cx (speakup_console[vc->vc_num]->cursor_x)
87 #define spk_y (speakup_console[vc->vc_num]->reading_y)
88 #define spk_cy (speakup_console[vc->vc_num]->cursor_y)
89 #define spk_pos (speakup_console[vc->vc_num]->reading_pos)
90 #define spk_cp (speakup_console[vc->vc_num]->cursor_pos)
91 #define goto_pos (speakup_console[vc->vc_num]->go_pos)
[all …]
Dselection.c57 struct vc_data *vc = vc_cons[fg_console].d; in speakup_set_selection() local
59 spk_xs = limit(spk_xs, vc->vc_cols - 1); in speakup_set_selection()
60 spk_ys = limit(spk_ys, vc->vc_rows - 1); in speakup_set_selection()
61 spk_xe = limit(spk_xe, vc->vc_cols - 1); in speakup_set_selection()
62 spk_ye = limit(spk_ye, vc->vc_rows - 1); in speakup_set_selection()
63 ps = spk_ys * vc->vc_size_row + (spk_xs << 1); in speakup_set_selection()
64 pe = spk_ye * vc->vc_size_row + (spk_xe << 1); in speakup_set_selection()
87 !atedge(new_sel_end, vc->vc_size_row) && in speakup_set_selection()
91 atedge(pe, vc->vc_size_row)) in speakup_set_selection()
115 if (!((i + 2) % vc->vc_size_row)) { in speakup_set_selection()
[all …]
/drivers/dma/
Dvirt-dma.c24 struct virt_dma_chan *vc = to_virt_chan(tx->chan); in vchan_tx_submit() local
29 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_submit()
32 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit()
33 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_submit()
35 dev_dbg(vc->chan.device->dev, "vchan %p: txd %p[%x]: submitted\n", in vchan_tx_submit()
36 vc, vd, cookie); in vchan_tx_submit()
54 struct virt_dma_chan *vc = to_virt_chan(tx->chan); in vchan_tx_desc_free() local
58 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_desc_free()
60 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_desc_free()
62 dev_dbg(vc->chan.device->dev, "vchan %p: txd %p[%x]: freeing\n", in vchan_tx_desc_free()
[all …]
Dvirt-dma.h45 void vchan_dma_desc_free_list(struct virt_dma_chan *vc, struct list_head *head);
46 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
57 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument
62 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep()
67 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_prep()
68 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep()
69 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_prep()
80 static inline bool vchan_issue_pending(struct virt_dma_chan *vc) in vchan_issue_pending() argument
82 list_splice_tail_init(&vc->desc_submitted, &vc->desc_issued); in vchan_issue_pending()
83 return !list_empty(&vc->desc_issued); in vchan_issue_pending()
[all …]
Dpxa_dma.c107 struct virt_dma_chan vc; /* Virtual channel */ member
143 container_of(dchan, struct pxad_chan, vc.chan)
155 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
163 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
170 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
428 struct pxad_device *pdev = to_pxad_dev(pchan->vc.chan.device); in lookup_phy()
460 dev_dbg(&pchan->vc.chan.dev->device, in lookup_phy()
469 struct pxad_device *pdev = to_pxad_dev(chan->vc.chan.device); in pxad_free_phy()
474 dev_dbg(&chan->vc.chan.dev->device, in pxad_free_phy()
522 dev_dbg(&phy->vchan->vc.chan.dev->device, in phy_enable()
[all …]
/drivers/media/usb/s2255/
Ds2255drv.c261 struct s2255_vc vc[MAX_CHANNELS]; member
351 static int s2255_start_acquire(struct s2255_vc *vc);
352 static int s2255_stop_acquire(struct s2255_vc *vc);
353 static void s2255_fillbuff(struct s2255_vc *vc, struct s2255_buffer *buf,
355 static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode);
429 static int norm_maxw(struct s2255_vc *vc) in norm_maxw() argument
431 return (vc->std & V4L2_STD_525_60) ? in norm_maxw()
435 static int norm_maxh(struct s2255_vc *vc) in norm_maxh() argument
437 return (vc->std & V4L2_STD_525_60) ? in norm_maxh()
441 static int norm_minw(struct s2255_vc *vc) in norm_minw() argument
[all …]
/drivers/accessibility/braille/
Dbraille_console.c123 static void vc_follow_cursor(struct vc_data *vc) in vc_follow_cursor() argument
125 vc_x = vc->vc_x - (vc->vc_x % WIDTH); in vc_follow_cursor()
126 vc_y = vc->vc_y; in vc_follow_cursor()
127 lastvc_x = vc->vc_x; in vc_follow_cursor()
128 lastvc_y = vc->vc_y; in vc_follow_cursor()
132 static void vc_maybe_cursor_moved(struct vc_data *vc) in vc_maybe_cursor_moved() argument
134 if (vc->vc_x != lastvc_x || vc->vc_y != lastvc_y) in vc_maybe_cursor_moved()
135 vc_follow_cursor(vc); in vc_maybe_cursor_moved()
139 static void vc_refresh(struct vc_data *vc) in vc_refresh() argument
145 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 …]

123