/Linux-v4.19/drivers/tty/vt/ |
D | vt.c | 144 struct vc vc_cons [MAX_NR_CONSOLES]; 151 static void vc_init(struct vc_data *vc, unsigned int rows, 153 static void gotoxy(struct vc_data *vc, int new_x, int new_y); 154 static void save_cur(struct vc_data *vc); 155 static void reset_terminal(struct vc_data *vc, int do_clear); 158 static void set_cursor(struct vc_data *vc); 159 static void hide_cursor(struct vc_data *vc); 163 static void set_palette(struct vc_data *vc); 268 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument 270 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write() [all …]
|
D | vt_ioctl.c | 65 static void complete_change_console(struct vc_data *vc); 266 do_unimap_ioctl(int cmd, struct unimapdesc __user *user_ud, int perm, struct vc_data *vc) in do_unimap_ioctl() argument 276 return con_set_unimap(vc, tmp.entry_ct, tmp.entries); in do_unimap_ioctl() 278 if (!perm && fg_console != vc->vc_num) in do_unimap_ioctl() 280 return con_get_unimap(vc, tmp.entry_ct, &(user_ud->entry_ct), tmp.entries); in do_unimap_ioctl() 288 struct vc_data *vc = NULL; in vt_disallocate() local 295 vc = vc_deallocate(vc_num); in vt_disallocate() 298 if (vc && vc_num >= MIN_NR_CONSOLES) { in vt_disallocate() 299 tty_port_destroy(&vc->port); in vt_disallocate() 300 kfree(vc); in vt_disallocate() [all …]
|
D | keyboard.c | 80 typedef void (k_handler_fn)(struct vc_data *vc, unsigned char value, 92 typedef void (fn_handler_fn)(struct vc_data *vc); 305 static void put_queue(struct vc_data *vc, int ch) in put_queue() argument 307 tty_insert_flip_char(&vc->port, ch, 0); in put_queue() 308 tty_schedule_flip(&vc->port); in put_queue() 311 static void puts_queue(struct vc_data *vc, char *cp) in puts_queue() argument 314 tty_insert_flip_char(&vc->port, *cp, 0); in puts_queue() 317 tty_schedule_flip(&vc->port); in puts_queue() 320 static void applkey(struct vc_data *vc, int key, char mode) in applkey() argument 326 puts_queue(vc, buf); in applkey() [all …]
|
D | vc_screen.c | 92 struct vc_data *vc = param->vc; in vcs_notifier() local 104 if (currcons != vc->vc_num) in vcs_notifier() 193 struct vc_data *vc; in vcs_size() local 197 vc = vcs_vc(inode, NULL); in vcs_size() 198 if (!vc) in vcs_size() 201 size = vc->vc_rows * vc->vc_cols; in vcs_size() 229 struct vc_data *vc; in vcs_read() local 251 vc = vcs_vc(inode, &viewed); in vcs_read() 252 if (!vc) in vcs_read() 300 maxcol = vc->vc_cols; in vcs_read() [all …]
|
/Linux-v4.19/drivers/media/pci/tw686x/ |
D | tw686x-video.c | 53 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 …]
|
/Linux-v4.19/drivers/dma/ |
D | virt-dma.h | 46 void vchan_dma_desc_free_list(struct virt_dma_chan *vc, struct list_head *head); 47 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev); 58 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument 63 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 68 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_prep() 69 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep() 70 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_prep() 81 static inline bool vchan_issue_pending(struct virt_dma_chan *vc) in vchan_issue_pending() argument 83 list_splice_tail_init(&vc->desc_submitted, &vc->desc_issued); in vchan_issue_pending() 84 return !list_empty(&vc->desc_issued); in vchan_issue_pending() [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_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 …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | fbcon.c | 153 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 166 static void fbcon_init(struct vc_data *vc, int init); 167 static void fbcon_deinit(struct vc_data *vc); 168 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height, 170 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos); 171 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s, 173 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 174 static void fbcon_cursor(struct vc_data *vc, int mode); 175 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx, 177 static int fbcon_switch(struct vc_data *vc); [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 | 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 …]
|
/Linux-v4.19/drivers/staging/speakup/ |
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, 1); 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->vc_x; in speakup_date() 267 spk_y = spk_cy = vc->vc_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 …]
|
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 …]
|
/Linux-v4.19/drivers/media/usb/s2255/ |
D | s2255drv.c | 257 struct s2255_vc vc[MAX_CHANNELS]; member 347 static int s2255_start_acquire(struct s2255_vc *vc); 348 static int s2255_stop_acquire(struct s2255_vc *vc); 349 static void s2255_fillbuff(struct s2255_vc *vc, struct s2255_buffer *buf, 351 static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode); 425 static int norm_maxw(struct s2255_vc *vc) in norm_maxw() argument 427 return (vc->std & V4L2_STD_525_60) ? in norm_maxw() 431 static int norm_maxh(struct s2255_vc *vc) in norm_maxh() argument 433 return (vc->std & V4L2_STD_525_60) ? in norm_maxh() 437 static int norm_minw(struct s2255_vc *vc) in norm_minw() argument [all …]
|
/Linux-v4.19/arch/arm/mach-omap2/ |
D | vc.c | 96 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_config_channel() local 102 if (vc->flags & OMAP_VC_CHANNEL_DEFAULT) in omap_vc_config_channel() 103 vc->cfg_channel &= vc_cfg_bits->racen; in omap_vc_config_channel() 105 voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, in omap_vc_config_channel() 106 vc->cfg_channel << vc->cfg_channel_sa_shift, in omap_vc_config_channel() 107 vc->cfg_channel_reg); in omap_vc_config_channel() 117 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_pre_scale() local 143 vc_cmdval = voltdm->read(vc->cmdval_reg); in omap_vc_pre_scale() 144 vc_cmdval &= ~vc->common->cmd_on_mask; in omap_vc_pre_scale() 145 vc_cmdval |= (*target_vsel << vc->common->cmd_on_shift); in omap_vc_pre_scale() [all …]
|
/Linux-v4.19/include/linux/ |
D | console.h | 51 void (*con_init)(struct vc_data *vc, int init); 52 void (*con_deinit)(struct vc_data *vc); 53 void (*con_clear)(struct vc_data *vc, int sy, int sx, int height, 55 void (*con_putc)(struct vc_data *vc, int c, int ypos, int xpos); 56 void (*con_putcs)(struct vc_data *vc, const unsigned short *s, 58 void (*con_cursor)(struct vc_data *vc, int mode); 59 bool (*con_scroll)(struct vc_data *vc, unsigned int top, 62 int (*con_switch)(struct vc_data *vc); 63 int (*con_blank)(struct vc_data *vc, int blank, int mode_switch); 64 int (*con_font_set)(struct vc_data *vc, struct console_font *font, [all …]
|
D | vt_kern.h | 39 int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines); 41 void reset_palette(struct vc_data *vc); 46 int con_font_op(struct vc_data *vc, struct console_font_op *op); 49 void scrollback(struct vc_data *vc); 50 void scrollfront(struct vc_data *vc, int lines); 51 void clear_buffer_attributes(struct vc_data *vc); 52 void update_region(struct vc_data *vc, unsigned long start, int count); 53 void redraw_screen(struct vc_data *vc, int is_switch); 69 int con_clear_unimap(struct vc_data *vc); 70 int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list); [all …]
|
D | selection.h | 33 extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed); 34 extern u16 screen_glyph(struct vc_data *vc, int offset); 35 extern u32 screen_glyph_unicode(struct vc_data *vc, int offset); 36 extern void complement_pos(struct vc_data *vc, int offset); 37 extern void invert_screen(struct vc_data *vc, int offset, int count, int shift); 39 extern void getconsxy(struct vc_data *vc, unsigned char *p); 40 extern void putconsxy(struct vc_data *vc, unsigned char *p); 42 extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org); 43 extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); 44 extern void vcs_scr_updated(struct vc_data *vc); [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/video/console/ |
D | dummycon.c | 47 static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) in dummycon_putc() argument 53 static void dummycon_putcs(struct vc_data *vc, const unsigned short *s, in dummycon_putcs() argument 61 if (s[i] != vc->vc_video_erase_char) in dummycon_putcs() 73 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument 79 static void dummycon_putc(struct vc_data *vc, int c, int ypos, int xpos) { } in dummycon_putc() argument 80 static void dummycon_putcs(struct vc_data *vc, const unsigned short *s, in dummycon_putcs() argument 82 static int dummycon_blank(struct vc_data *vc, int blank, int mode_switch) in dummycon_blank() argument 93 static void dummycon_init(struct vc_data *vc, int init) in dummycon_init() argument 95 vc->vc_can_do_color = 1; in dummycon_init() 97 vc->vc_cols = DUMMY_COLUMNS; in dummycon_init() [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 …]
|
/Linux-v4.19/arch/mips/math-emu/ |
D | ieee754int.h | 65 #define EXPLODESP(v, vc, vs, ve, vm) \ argument 72 vc = IEEE754_CLASS_INF; \ 74 vc = IEEE754_CLASS_QNAN; \ 76 vc = IEEE754_CLASS_SNAN; \ 80 vc = IEEE754_CLASS_DNORM; \ 82 vc = IEEE754_CLASS_ZERO; \ 86 vc = IEEE754_CLASS_NORM; \ 103 #define EXPLODEDP(v, vc, vs, ve, vm) \ argument 110 vc = IEEE754_CLASS_INF; \ 112 vc = IEEE754_CLASS_QNAN; \ [all …]
|
/Linux-v4.19/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() 703 push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) in push_on_scq() argument [all …]
|