/drivers/tty/vt/ |
D | vt.c | 139 struct vc vc_cons [MAX_NR_CONSOLES]; 146 static void vc_init(struct vc_data *vc, unsigned int rows, 148 static void gotoxy(struct vc_data *vc, int new_x, int new_y); 149 static void save_cur(struct vc_data *vc); 150 static void reset_terminal(struct vc_data *vc, int do_clear); 153 static void set_cursor(struct vc_data *vc); 154 static void hide_cursor(struct vc_data *vc); 157 static void set_palette(struct vc_data *vc); 259 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument 261 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write() [all …]
|
D | keyboard.c | 77 typedef void (k_handler_fn)(struct vc_data *vc, unsigned char value, 89 typedef void (fn_handler_fn)(struct vc_data *vc); 302 static void put_queue(struct vc_data *vc, int ch) in put_queue() argument 304 tty_insert_flip_char(&vc->port, ch, 0); in put_queue() 305 tty_schedule_flip(&vc->port); in put_queue() 308 static void puts_queue(struct vc_data *vc, char *cp) in puts_queue() argument 311 tty_insert_flip_char(&vc->port, *cp, 0); in puts_queue() 314 tty_schedule_flip(&vc->port); in puts_queue() 317 static void applkey(struct vc_data *vc, int key, char mode) in applkey() argument 323 puts_queue(vc, buf); in applkey() [all …]
|
D | vt_ioctl.c | 62 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 …]
|
D | vc_screen.c | 65 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 …]
|
D | selection.c | 161 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 …]
|
D | consolemap.c | 245 unsigned short *set_translate(int m, struct vc_data *vc) in set_translate() argument 247 inv_translate[vc->vc_num] = m; in set_translate() 416 void con_free_unimap(struct vc_data *vc) in con_free_unimap() argument 420 p = *vc->vc_uni_pagedir_loc; in con_free_unimap() 423 *vc->vc_uni_pagedir_loc = NULL; in con_free_unimap() 498 static int con_do_clear_unimap(struct vc_data *vc, struct unimapinit *ui) in con_do_clear_unimap() argument 502 p = *vc->vc_uni_pagedir_loc; in con_do_clear_unimap() 511 *vc->vc_uni_pagedir_loc = q; in con_do_clear_unimap() 521 int con_clear_unimap(struct vc_data *vc, struct unimapinit *ui) in con_clear_unimap() argument 525 ret = con_do_clear_unimap(vc, ui); in con_clear_unimap() [all …]
|
/drivers/video/console/ |
D | fbcon.c | 145 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 161 static void fbcon_init(struct vc_data *vc, int init); 162 static void fbcon_deinit(struct vc_data *vc); 163 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height, 165 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos); 166 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s, 168 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 169 static void fbcon_cursor(struct vc_data *vc, int mode); 170 static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir, 172 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx, [all …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | newport_con.c | 328 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 …]
|
D | tileblit.c | 19 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 …]
|
D | fbcon_rotate.c | 21 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 …]
|
D | fbcon.h | 55 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); 117 static inline int attr_col_ec(int shift, struct vc_data *vc, in attr_col_ec() argument 125 if (!vc) in attr_col_ec() 128 if (vc->vc_can_do_color) in attr_col_ec() 129 return is_fg ? attr_fgcol(shift,vc->vc_video_erase_char) in attr_col_ec() [all …]
|
/drivers/staging/speakup/ |
D | main.c | 270 static void speakup_date(struct vc_data *vc) in speakup_date() argument 272 spk_x = spk_cx = vc->vc_x; in speakup_date() 273 spk_y = spk_cy = vc->vc_y; in speakup_date() 274 spk_pos = spk_cp = vc->vc_pos; in speakup_date() 296 static void speakup_shut_up(struct vc_data *vc) in speakup_shut_up() argument 302 speakup_date(vc); in speakup_shut_up() 307 static void speech_kill(struct vc_data *vc) in speech_kill() argument 325 static void speakup_off(struct vc_data *vc) in speakup_off() argument 334 speakup_date(vc); in speakup_off() 337 static void speakup_parked(struct vc_data *vc) in speakup_parked() argument [all …]
|
D | spk_types.h | 50 typedef int (*special_func)(struct vc_data *vc, u_char type, u_char ch, 82 #define spk_shut_up (speakup_console[vc->vc_num]->shut_up) 83 #define spk_killed (speakup_console[vc->vc_num]->shut_up & 0x40) 84 #define spk_x (speakup_console[vc->vc_num]->reading_x) 85 #define spk_cx (speakup_console[vc->vc_num]->cursor_x) 86 #define spk_y (speakup_console[vc->vc_num]->reading_y) 87 #define spk_cy (speakup_console[vc->vc_num]->cursor_y) 88 #define spk_pos (speakup_console[vc->vc_num]->reading_pos) 89 #define spk_cp (speakup_console[vc->vc_num]->cursor_pos) 90 #define goto_pos (speakup_console[vc->vc_num]->go_pos) [all …]
|
D | selection.c | 57 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/media/usb/s2255/ |
D | s2255drv.c | 260 struct s2255_vc vc[MAX_CHANNELS]; member 350 static int s2255_start_acquire(struct s2255_vc *vc); 351 static int s2255_stop_acquire(struct s2255_vc *vc); 352 static void s2255_fillbuff(struct s2255_vc *vc, struct s2255_buffer *buf, 354 static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode); 428 static int norm_maxw(struct s2255_vc *vc) in norm_maxw() argument 430 return (vc->std & V4L2_STD_525_60) ? in norm_maxw() 434 static int norm_maxh(struct s2255_vc *vc) in norm_maxh() argument 436 return (vc->std & V4L2_STD_525_60) ? in norm_maxh() 440 static int norm_minw(struct s2255_vc *vc) in norm_minw() argument [all …]
|
/drivers/dma/ |
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); 54 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument 59 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 72 static inline bool vchan_issue_pending(struct virt_dma_chan *vc) in vchan_issue_pending() argument 74 list_splice_tail_init(&vc->desc_submitted, &vc->desc_issued); in vchan_issue_pending() 75 return !list_empty(&vc->desc_issued); in vchan_issue_pending() 86 struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan); in vchan_cookie_complete() local 91 dev_vdbg(vc->chan.device->dev, "txd %p[%x]: marked complete\n", in vchan_cookie_complete() 93 list_add_tail(&vd->node, &vc->desc_completed); in vchan_cookie_complete() [all …]
|
D | virt-dma.c | 24 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_add_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() 42 struct virt_dma_desc *vchan_find_desc(struct virt_dma_chan *vc, in vchan_find_desc() argument 47 list_for_each_entry(vd, &vc->desc_issued, node) in vchan_find_desc() 61 struct virt_dma_chan *vc = (struct virt_dma_chan *)arg; in vchan_complete() local 67 spin_lock_irq(&vc->lock); in vchan_complete() [all …]
|
D | k3dma.c | 79 struct virt_dma_chan vc; member 112 return container_of(chan, struct k3_dma_chan, vc.chan); in to_k3_chan() 209 spin_lock_irqsave(&c->vc.lock, flags); in k3_dma_int_handler() 212 spin_unlock_irqrestore(&c->vc.lock, flags); in k3_dma_int_handler() 233 struct k3_dma_dev *d = to_k3_dma(c->vc.chan.device); in k3_dma_start_txd() 234 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in k3_dma_start_txd() 269 list_for_each_entry_safe(c, cn, &d->slave.channels, vc.chan.device_node) { in k3_dma_tasklet() 270 spin_lock_irq(&c->vc.lock); in k3_dma_tasklet() 281 spin_unlock_irq(&c->vc.lock); in k3_dma_tasklet() 298 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in k3_dma_tasklet() [all …]
|
D | sun6i-dma.c | 142 struct virt_dma_chan vc; member 176 return container_of(chan, struct sun6i_vchan, vc.chan); in to_sun6i_vchan() 320 dev_dbg(chan2dev(&vchan->vc.chan), in sun6i_dma_dump_lli() 357 struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vchan->vc.chan.device); in sun6i_dma_terminate_all() 366 spin_lock_irqsave(&vchan->vc.lock, flags); in sun6i_dma_terminate_all() 368 vchan_get_all_descriptors(&vchan->vc, &head); in sun6i_dma_terminate_all() 380 spin_unlock_irqrestore(&vchan->vc.lock, flags); in sun6i_dma_terminate_all() 382 vchan_dma_desc_free_list(&vchan->vc, &head); in sun6i_dma_terminate_all() 389 struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vchan->vc.chan.device); in sun6i_dma_start_desc() 390 struct virt_dma_desc *desc = vchan_next_desc(&vchan->vc); in sun6i_dma_start_desc() [all …]
|
/drivers/accessibility/braille/ |
D | braille_console.c | 123 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/ |
D | idt77252.c | 550 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() 702 push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) in push_on_scq() argument [all …]
|