| /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 restore_cur(struct vc_data *vc); 146 static void save_cur(struct vc_data *vc); 147 static void reset_terminal(struct vc_data *vc, int do_clear); 150 static void set_cursor(struct vc_data *vc); 151 static void hide_cursor(struct vc_data *vc); 155 static void set_palette(struct vc_data *vc); 236 * the attribute 'active' contains the name of the current vc 264 notify_write(struct vc_data * vc,unsigned int unicode) notify_write() argument 270 notify_update(struct vc_data * vc) notify_update() argument 279 con_is_fg(const struct vc_data * vc) con_is_fg() argument 284 con_should_update(const struct vc_data * vc) con_should_update() argument 289 screenpos(const struct vc_data * vc,unsigned int offset,bool viewed) screenpos() argument 297 con_putc(struct vc_data * vc,u16 ca,unsigned int y,unsigned int x) con_putc() argument 357 vc_uniscr_set(struct vc_data * vc,u32 ** new_uni_lines) vc_uniscr_set() argument 363 vc_uniscr_putc(struct vc_data * vc,u32 uc) vc_uniscr_putc() argument 369 vc_uniscr_insert(struct vc_data * vc,unsigned int nr) vc_uniscr_insert() argument 380 vc_uniscr_delete(struct vc_data * vc,unsigned int nr) vc_uniscr_delete() argument 391 vc_uniscr_clear_line(struct vc_data * vc,unsigned int x,unsigned int nr) vc_uniscr_clear_line() argument 398 vc_uniscr_clear_lines(struct vc_data * vc,unsigned int y,unsigned int nr) vc_uniscr_clear_lines() argument 428 vc_uniscr_scroll(struct vc_data * vc,unsigned int top,unsigned int bottom,enum con_scroll dir,unsigned int nr) vc_uniscr_scroll() argument 447 vc_uniscr_getc(struct vc_data * vc,int relative_pos) vc_uniscr_getc() argument 493 vc_uniscr_check(struct vc_data * vc) vc_uniscr_check() argument 537 vc_uniscr_copy_line(const struct vc_data * vc,void * dest,bool viewed,unsigned int row,unsigned int col,unsigned int nr) vc_uniscr_copy_line() argument 574 con_scroll(struct vc_data * vc,unsigned int top,unsigned int bottom,enum con_scroll dir,unsigned int nr) con_scroll() argument 602 do_update_region(struct vc_data * vc,unsigned long start,int count) do_update_region() argument 636 update_region(struct vc_data * vc,unsigned long start,int count) update_region() argument 650 build_attr(struct vc_data * vc,u8 _color,enum vc_intensity _intensity,bool _blink,bool _underline,bool _reverse,bool _italic) build_attr() argument 694 update_attr(struct vc_data * vc) update_attr() argument 705 invert_screen(struct vc_data * vc,int offset,int count,bool viewed) invert_screen() argument 754 complement_pos(struct vc_data * vc,int offset) complement_pos() argument 788 insert_char(struct vc_data * vc,unsigned int nr) insert_char() argument 801 delete_char(struct vc_data * vc,unsigned int nr) delete_char() argument 817 add_softcursor(struct vc_data * vc) add_softcursor() argument 839 hide_softcursor(struct vc_data * vc) hide_softcursor() argument 850 hide_cursor(struct vc_data * vc) hide_cursor() argument 859 set_cursor(struct vc_data * vc) set_cursor() argument 873 set_origin(struct vc_data * vc) set_origin() argument 887 save_screen(struct vc_data * vc) save_screen() argument 895 flush_scrollback(struct vc_data * vc) flush_scrollback() argument 918 clear_buffer_attributes(struct vc_data * vc) clear_buffer_attributes() argument 929 redraw_screen(struct vc_data * vc,int is_switch) redraw_screen() argument 999 visual_init(struct vc_data * vc,int num,bool init) visual_init() argument 1029 visual_deinit(struct vc_data * vc) visual_deinit() argument 1037 struct vc_data *vc = container_of(port, struct vc_data, port); vc_port_destruct() local 1057 struct vc_data *vc; vc_allocate() local 1114 resize_screen(struct vc_data * vc,int width,int height,bool from_user) resize_screen() argument 1141 vc_do_resize(struct tty_struct * tty,struct vc_data * vc,unsigned int cols,unsigned int lines,bool from_user) vc_do_resize() argument 1300 __vc_resize(struct vc_data * vc,unsigned int cols,unsigned int rows,bool from_user) __vc_resize() argument 1320 struct vc_data *vc = tty->driver_data; vt_resize() local 1328 struct vc_data *vc = NULL; vc_deallocate() local 1358 set_kbd(vc,x) global() argument 1359 clr_kbd(vc,x) global() argument 1360 is_kbd(vc,x) global() argument 1398 gotoxy(struct vc_data * vc,int new_x,int new_y) gotoxy() argument 1430 gotoxay(struct vc_data * vc,int new_x,int new_y) gotoxay() argument 1435 scrollback(struct vc_data * vc) scrollback() argument 1440 scrollfront(struct vc_data * vc,int lines) scrollfront() argument 1447 lf(struct vc_data * vc) lf() argument 1462 ri(struct vc_data * vc) ri() argument 1476 cr(struct vc_data * vc) cr() argument 1483 bs(struct vc_data * vc) bs() argument 1493 del(struct vc_data * vc) del() argument 1505 csi_J(struct vc_data * vc,enum CSI_J vpar) csi_J() argument 1548 csi_K(struct vc_data * vc) csi_K() argument 1578 csi_X(struct vc_data * vc) csi_X() argument 1589 default_attr(struct vc_data * vc) default_attr() argument 1622 rgb_foreground(struct vc_data * vc,const struct rgb * c) rgb_foreground() argument 1644 rgb_background(struct vc_data * vc,const struct rgb * c) rgb_background() argument 1660 vc_t416_color(struct vc_data * vc,int i,void (* set_color)(struct vc_data * vc,const struct rgb * c)) vc_t416_color() argument 1661 vc_t416_color(struct vc_data * vc,int i,void (* set_color)(struct vc_data * vc,const struct rgb * c)) vc_t416_color() argument 1721 csi_m(struct vc_data * vc) csi_m() argument 1833 cursor_report(struct vc_data * vc,struct tty_struct * tty) cursor_report() argument 1878 struct vc_data *vc = tty->driver_data; get_bracketed_paste() local 1884 enter_alt_screen(struct vc_data * vc) enter_alt_screen() argument 1901 leave_alt_screen(struct vc_data * vc) leave_alt_screen() argument 1937 csi_DEC_hl(struct vc_data * vc,bool on_off) csi_DEC_hl() argument 2005 csi_hl(struct vc_data * vc,bool on_off) csi_hl() argument 2047 csi_RSB(struct vc_data * vc) csi_RSB() argument 2112 csi_at(struct vc_data * vc,unsigned int nr) csi_at() argument 2119 csi_L(struct vc_data * vc) csi_L() argument 2128 csi_P(struct vc_data * vc) csi_P() argument 2136 csi_M(struct vc_data * vc) csi_M() argument 2145 save_cur(struct vc_data * vc) save_cur() argument 2151 restore_cur(struct vc_data * vc) restore_cur() argument 2206 reset_terminal(struct vc_data * vc,int do_clear) reset_terminal() argument 2262 vc_setGx(struct vc_data * vc,unsigned int which,u8 c) vc_setGx() argument 2318 handle_ascii(struct tty_struct * tty,struct vc_data * vc,u8 c) handle_ascii() argument 2387 handle_esc(struct tty_struct * tty,struct vc_data * vc,u8 c) handle_esc() argument 2457 csi_DEC(struct tty_struct * tty,struct vc_data * vc,u8 c) csi_DEC() argument 2495 csi_ECMA(struct tty_struct * tty,struct vc_data * vc,u8 c) csi_ECMA() argument 2627 vc_reset_params(struct vc_data * vc) vc_reset_params() argument 2634 do_con_trol(struct tty_struct * tty,struct vc_data * vc,u8 c) do_con_trol() argument 2796 con_flush(struct vc_data * vc,struct vc_draw_region * draw) con_flush() argument 2807 vc_translate_ascii(const struct vc_data * vc,int c) vc_translate_ascii() argument 2851 vc_translate_unicode(struct vc_data * vc,int c,bool * rescan) vc_translate_unicode() argument 2910 vc_translate(struct vc_data * vc,int * c,bool * rescan) vc_translate() argument 2923 vc_invert_attr(const struct vc_data * vc) vc_invert_attr() argument 2938 vc_is_control(struct vc_data * vc,int tc,int c) vc_is_control() argument 2985 vc_con_rewind(struct vc_data * vc) vc_con_rewind() argument 2998 vc_process_ucs(struct vc_data * vc,int * c,int * tc) vc_process_ucs() argument 3056 vc_get_glyph(struct vc_data * vc,int tc) vc_get_glyph() argument 3095 vc_con_write_normal(struct vc_data * vc,int tc,int c,struct vc_draw_region * draw) vc_con_write_normal() argument 3186 struct vc_data *vc = tty->driver_data; do_con_write() local 3274 struct vc_data *vc = vc_cons[fg_console].d; console_callback() local 3289 struct vc_data *vc = vc_cons[fg_console].d; set_console() local 3354 struct vc_data *vc = vc_cons[fg_console].d; vt_console_print() local 3594 struct vc_data *vc = tty->driver_data; con_unthrottle() local 3629 struct vc_data *vc = tty->driver_data; con_flush_chars() local 3644 struct vc_data *vc; con_install() local 3692 struct vc_data *vc = tty->driver_data; con_shutdown() local 3701 struct vc_data *vc = tty->driver_data; con_cleanup() local 3722 vc_init(struct vc_data * vc,int do_clear) vc_init() argument 3751 struct vc_data *vc; con_init() local 3940 struct vc_data *vc = vc_cons[i].d; do_bind_con_driver() local 3976 struct vc_data *vc = vc_cons[j].d; do_bind_con_driver() local 4272 con_is_visible(const struct vc_data * vc) con_is_visible() argument 4288 con_debug_enter(struct vc_data * vc) con_debug_enter() argument 4339 struct vc_data *vc; con_debug_leave() local 4591 struct vc_data *vc = vc_cons[fg_console].d; do_blank_screen() local 4653 struct vc_data *vc; do_unblank_screen() local 4749 set_palette(struct vc_data * vc) set_palette() argument 4808 reset_palette(struct vc_data * vc) reset_palette() argument 4837 con_font_get(struct vc_data * vc,struct console_font_op * op) con_font_get() argument 4882 con_font_set(struct vc_data * vc,const struct console_font_op * op) con_font_set() argument 4922 con_font_default(struct vc_data * vc,struct console_font_op * op) con_font_default() argument 4954 con_font_op(struct vc_data * vc,struct console_font_op * op) con_font_op() argument 4977 screen_glyph(const struct vc_data * vc,int offset) screen_glyph() argument 4988 screen_glyph_unicode(const struct vc_data * vc,int n) screen_glyph_unicode() argument 5000 screen_pos(const struct vc_data * vc,int w_offset,bool viewed) screen_pos() argument 5006 getconsxy(const struct vc_data * vc,unsigned char xy[static2]) getconsxy() argument 5013 putconsxy(struct vc_data * vc,unsigned char xy[static const2]) putconsxy() argument 5020 vcs_scr_readw(const struct vc_data * vc,const u16 * org) vcs_scr_readw() argument 5027 vcs_scr_writew(struct vc_data * vc,u16 val,u16 * org) vcs_scr_writew() argument 5036 vcs_scr_updated(struct vc_data * vc) vcs_scr_updated() argument [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 …]
|
| H A D | selection.c | 93 bool vc_is_sel(const struct vc_data *vc) in vc_is_sel() argument 95 return vc == vc_sel.cons; in vc_is_sel() 210 static int vc_selection_store_chars(struct vc_data *vc, bool unicode) in vc_selection_store_chars() argument 236 if (!((i + 2) % vc->vc_size_row)) { in vc_selection_store_chars() 251 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument 269 if (!(ps % vc->vc_size_row)) in vc_do_selection() 279 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection() 284 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection() 285 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection() 286 vc->vc_size_row - 2; in vc_do_selection() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbcon.c | 176 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 186 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 187 static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table); 194 static void fbcon_redraw_move(struct vc_data *vc, struct fbcon_display *p, 238 struct vc_data *vc; in fbcon_rotate_all() local 246 vc = vc_cons[i].d; in fbcon_rotate_all() 247 if (!vc || vc->vc_mode != KD_TEXT || in fbcon_rotate_all() 251 p = &fb_display[vc->vc_num]; in fbcon_rotate_all() 308 static inline bool fbcon_is_active(struct vc_data *vc, struc argument 316 get_color(struct vc_data * vc,struct fb_info * info,u16 c,bool is_fg) get_color() argument 383 get_fg_color(struct vc_data * vc,struct fb_info * info,u16 c) get_fg_color() argument 388 get_bg_color(struct vc_data * vc,struct fb_info * info,u16 c) get_bg_color() argument 397 struct vc_data *vc = NULL; fb_flashcursor() local 596 fbcon_prepare_logo(struct vc_data * vc,struct fb_info * info,int cols,int rows,int new_cols,int new_rows) fbcon_prepare_logo() argument 602 fbcon_prepare_logo(struct vc_data * vc,struct fb_info * info,int cols,int rows,int new_cols,int new_rows) fbcon_prepare_logo() argument 692 set_blitting_type(struct vc_data * vc,struct fb_info * info) set_blitting_type() argument 717 set_blitting_type(struct vc_data * vc,struct fb_info * info) set_blitting_type() argument 786 con2fb_acquire_newinfo(struct vc_data * vc,struct fb_info * info,int unit) con2fb_acquire_newinfo() argument 801 con2fb_release_oldinfo(struct vc_data * vc,struct fb_info * oldinfo,struct fb_info * newinfo) con2fb_release_oldinfo() argument 825 con2fb_init_display(struct vc_data * vc,struct fb_info * info,int unit,int show_logo) con2fb_init_display() argument 873 struct vc_data *vc = vc_cons[unit].d; set_con2fb_map() local 977 struct vc_data *vc = vc_cons[fg_console].d; fbcon_startup() local 1042 fbcon_init(struct vc_data * vc,bool init) fbcon_init() argument 1220 fbcon_deinit(struct vc_data * vc) fbcon_deinit() argument 1289 __fbcon_clear(struct vc_data * vc,unsigned int sy,unsigned int sx,unsigned int height,unsigned int width) __fbcon_clear() argument 1329 fbcon_clear(struct vc_data * vc,unsigned int sy,unsigned int sx,unsigned int width) fbcon_clear() argument 1335 fbcon_putcs(struct vc_data * vc,const u16 * s,unsigned int count,unsigned int ypos,unsigned int xpos) fbcon_putcs() argument 1348 fbcon_clear_margins(struct vc_data * vc,int bottom_only) fbcon_clear_margins() argument 1357 fbcon_cursor(struct vc_data * vc,bool enable) fbcon_cursor() argument 1391 struct vc_data **default_mode, *vc; fbcon_set_disp() local 1452 ywrap_up(struct vc_data * vc,int count) ywrap_up() argument 1471 ywrap_down(struct vc_data * vc,int count) ywrap_down() argument 1490 ypan_up(struct vc_data * vc,int count) ypan_up() argument 1514 ypan_up_redraw(struct vc_data * vc,int t,int count) ypan_up_redraw() argument 1538 ypan_down(struct vc_data * vc,int count) ypan_down() argument 1562 ypan_down_redraw(struct vc_data * vc,int t,int count) ypan_down_redraw() argument 1586 fbcon_redraw_move(struct vc_data * vc,struct fbcon_display * p,int line,int count,int dy) fbcon_redraw_move() argument 1620 fbcon_redraw_blit(struct vc_data * vc,struct fb_info * info,struct fbcon_display * p,int line,int count,int ycount) fbcon_redraw_blit() argument 1670 fbcon_redraw(struct vc_data * vc,int line,int count,int offset) fbcon_redraw() argument 1724 fbcon_bmove_rec(struct vc_data * vc,struct fbcon_display * p,int sy,int sx,int dy,int dx,int height,int width,u_int y_break) fbcon_bmove_rec() argument 1766 fbcon_bmove(struct vc_data * vc,int sy,int sx,int dy,int dx,int height,int width) fbcon_bmove() argument 1789 fbcon_scroll(struct vc_data * vc,unsigned int t,unsigned int b,enum con_scroll dir,unsigned int count) fbcon_scroll() argument 1987 updatescrollmode_accel(struct fbcon_display * p,struct fb_info * info,struct vc_data * vc) updatescrollmode_accel() argument 2027 updatescrollmode(struct fbcon_display * p,struct fb_info * info,struct vc_data * vc) updatescrollmode() argument 2047 fbcon_resize(struct vc_data * vc,unsigned int width,unsigned int height,bool from_user) fbcon_resize() argument 2109 fbcon_switch(struct vc_data * vc) fbcon_switch() argument 2235 fbcon_generic_blank(struct vc_data * vc,struct fb_info * info,int blank) fbcon_generic_blank() argument 2250 fbcon_blank(struct vc_data * vc,enum vesa_blank_mode blank,bool mode_switch) fbcon_blank() argument 2292 fbcon_debug_enter(struct vc_data * vc) fbcon_debug_enter() argument 2304 fbcon_debug_leave(struct vc_data * vc) fbcon_debug_leave() argument 2314 fbcon_get_font(struct vc_data * vc,struct console_font * font,unsigned int vpitch) fbcon_get_font() argument 2380 set_vc_hi_font(struct vc_data * vc,bool set) set_vc_hi_font() argument 2440 fbcon_do_set_font(struct vc_data * vc,int w,int h,int charcount,const u8 * data,int userfont) fbcon_do_set_font() argument 2509 fbcon_set_font(struct vc_data * vc,const struct console_font * font,unsigned int vpitch,unsigned int flags) fbcon_set_font() argument 2589 fbcon_set_def_font(struct vc_data * vc,struct console_font * font,const char * name) fbcon_set_def_font() argument 2614 fbcon_set_palette(struct vc_data * vc,const unsigned char * table) fbcon_set_palette() argument 2651 fbcon_invert_region(struct vc_data * vc,u16 * p,int cnt) fbcon_invert_region() argument 2669 struct vc_data *vc = NULL; fbcon_suspended() local 2682 struct vc_data *vc; fbcon_resumed() local 2695 struct vc_data *vc; fbcon_modechanged() local 2733 struct vc_data *vc; fbcon_set_all_vcs() local 2779 struct vc_data *vc; fbcon_modechange_possible() local 3083 struct vc_data *vc; fbcon_fb_blanked() local 3104 struct vc_data *vc; fbcon_new_modelist() local 3125 struct vc_data *vc; fbcon_get_requirement() local [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 …]
|
| /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 …]
|
| H A D | spk_types.h | 55 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 …]
|
| /linux/drivers/dma/ |
| 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 …]
|
| /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 …]
|
| /linux/lib/vdso/ |
| H A D | gettimeofday.c | 21 static __always_inline bool vdso_delta_ok(const struct vdso_clock *vc, u64 delta) in vdso_delta_ok() argument 23 return delta < vc->max_cycles; in vdso_delta_ok() 26 static __always_inline bool vdso_delta_ok(const struct vdso_clock *vc, u64 delta) in vdso_delta_ok() argument 43 static __always_inline u64 vdso_calc_ns(const struct vdso_clock *vc, u64 cycles, u64 base) in vdso_calc_ns() argument 45 u64 delta = (cycles - vc->cycle_last) & VDSO_DELTA_MASK(vc); in vdso_calc_ns() 47 if (likely(vdso_delta_ok(vc, delta))) in vdso_calc_ns() 48 return vdso_shift_ns((delta * vc->mult) + base, vc->shift); in vdso_calc_ns() 50 return mul_u64_u32_add_u64_shr(delta, vc in vdso_calc_ns() 62 vdso_clocksource_ok(const struct vdso_clock * vc) vdso_clocksource_ok() argument 92 vdso_get_timestamp(const struct vdso_time_data * vd,const struct vdso_clock * vc,unsigned int clkidx,u64 * sec,u64 * ns) vdso_get_timestamp() argument 123 const struct vdso_clock *vc = vd->clock_data; do_hres_timens() local 150 do_hres(const struct vdso_time_data * vd,const struct vdso_clock * vc,clockid_t clk,struct __kernel_timespec * ts) do_hres() argument 195 const struct vdso_clock *vc = vd->clock_data; do_coarse_timens() local 219 do_coarse(const struct vdso_time_data * vd,const struct vdso_clock * vc,clockid_t clk,struct __kernel_timespec * ts) do_coarse() argument 248 const struct vdso_clock *vc; do_aux() local 291 const struct vdso_clock *vc = vd->clock_data; __cvdso_clock_gettime_common() local 366 const struct vdso_clock *vc = vd->clock_data; __cvdso_gettimeofday_data() local 400 const struct vdso_clock *vc = vd->clock_data; __cvdso_time_data() local 428 const struct vdso_clock *vc = vd->clock_data; __cvdso_clock_getres_common() local [all...] |
| /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 …]
|
| /linux/include/vdso/ |
| H A D | helpers.h | 10 static __always_inline u32 vdso_read_begin(const struct vdso_clock *vc) in vdso_read_begin() argument 14 while (unlikely((seq = READ_ONCE(vc->seq)) & 1)) in vdso_read_begin() 21 static __always_inline u32 vdso_read_retry(const struct vdso_clock *vc, in vdso_read_retry() argument 27 seq = READ_ONCE(vc->seq); in vdso_read_retry() 31 static __always_inline void vdso_write_seq_begin(struct vdso_clock *vc) in vdso_write_seq_begin() argument 38 WRITE_ONCE(vc->seq, vc->seq + 1); in vdso_write_seq_begin() 41 static __always_inline void vdso_write_seq_end(struct vdso_clock *vc) in vdso_write_seq_end() argument 48 WRITE_ONCE(vc->seq, vc->seq + 1); in vdso_write_seq_end() 51 static __always_inline void vdso_write_begin_clock(struct vdso_clock *vc) in vdso_write_begin_clock() argument 53 vdso_write_seq_begin(vc); in vdso_write_begin_clock() [all …]
|
| /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 …]
|
| /linux/kernel/time/ |
| H A D | vsyscall.c | 18 static inline void fill_clock_configuration(struct vdso_clock *vc, const struct tk_read_base *base) in fill_clock_configuration() argument 20 vc->cycle_last = base->cycle_last; in fill_clock_configuration() 22 vc->max_cycles = base->clock->max_cycles; in fill_clock_configuration() 24 vc->mask = base->mask; in fill_clock_configuration() 25 vc->mult = base->mult; in fill_clock_configuration() 26 vc->shift = base->shift; in fill_clock_configuration() 31 struct vdso_clock *vc = vdata->clock_data; in update_vdso_time_data() local 35 fill_clock_configuration(&vc[CS_HRES_COARSE], &tk->tkr_mono); in update_vdso_time_data() 36 fill_clock_configuration(&vc[CS_RAW], &tk->tkr_raw); in update_vdso_time_data() 39 vdso_ts = &vc[CS_HRES_COARSE].basetime[CLOCK_MONOTONIC]; in update_vdso_time_data() [all …]
|
| /linux/drivers/video/console/ |
| H A D | dummycon.c | 53 static void dummycon_putc(struct vc_data *vc, u16 c, unsigned int y, in dummycon_putc() argument 62 static void dummycon_putcs(struct vc_data *vc, const u16 *s, unsigned int count, in dummycon_putcs() argument 70 if (s[i] != vc->vc_video_erase_char) in dummycon_putcs() 82 static bool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank, in dummycon_blank() argument 89 static bool dummycon_switch(struct vc_data *vc) in dummycon_switch() argument 98 static void dummycon_putc(struct vc_data *vc, u16 c, unsigned int y, in dummycon_putc() argument 100 static void dummycon_putcs(struct vc_data *vc, const u16 *s, unsigned int count, in dummycon_putcs() argument 102 static bool dummycon_blank(struct vc_data *vc, enum vesa_blank_mode blank, in dummycon_blank() argument 107 static bool dummycon_switch(struct vc_data *vc) in dummycon_switch() argument 118 static void dummycon_init(struct vc_data *vc, bool init) in dummycon_init() argument [all …]
|
| H A D | newport_con.c | 327 static void newport_init(struct vc_data *vc, bool 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, unsigned int sy, unsigned int sx, 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, u1 argument 399 newport_putcs(struct vc_data * vc,const u16 * s,unsigned int count,unsigned int ypos,unsigned int xpos) newport_putcs() argument 441 newport_cursor(struct vc_data * vc,bool enable) newport_cursor() argument 462 newport_switch(struct vc_data * vc) newport_switch() argument 567 newport_font_default(struct vc_data * vc,struct console_font * op,const char * name) newport_font_default() argument 573 newport_font_set(struct vc_data * vc,const struct console_font * font,unsigned int vpitch,unsigned int flags) newport_font_set() argument 579 newport_scroll(struct vc_data * vc,unsigned int t,unsigned int b,enum con_scroll dir,unsigned int lines) newport_scroll() argument 678 newport_save_screen(struct vc_data * vc) newport_save_screen() argument [all...] |
| /linux/include/linux/ |
| H A D | vt_kern.h | 28 int __vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines, 31 void reset_palette(struct vc_data *vc); 35 int con_font_op(struct vc_data *vc, struct console_font_op *op); 38 void scrollback(struct vc_data *vc); 39 void scrollfront(struct vc_data *vc, int lines); 40 void clear_buffer_attributes(struct vc_data *vc); 41 void update_region(struct vc_data *vc, unsigned long start, int count); 42 void redraw_screen(struct vc_data *vc, int is_switch); 46 static inline int vc_resize(struct vc_data *vc, unsigned int cols, in vc_resize() argument 49 return __vc_resize(vc, cols, lines, false); in vc_resize() [all …]
|
| H A D | selection.h | 26 bool vc_is_sel(const struct vc_data *vc); 35 unsigned short *screen_pos(const struct vc_data *vc, int w_offset, bool viewed); 36 u16 screen_glyph(const struct vc_data *vc, int offset); 37 u32 screen_glyph_unicode(const struct vc_data *vc, int offset); 38 void complement_pos(struct vc_data *vc, int offset); 39 void invert_screen(struct vc_data *vc, int offset, int count, bool viewed); 41 void getconsxy(const struct vc_data *vc, unsigned char xy[static 2]); 42 void putconsxy(struct vc_data *vc, unsigned char xy[static const 2]); 44 u16 vcs_scr_readw(const struct vc_data *vc, const u16 *org); 45 void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org); [all …]
|
| H A D | console.h | 45 * @con_init: initialize the console on @vc. @init is true for the very first 46 * call on this @vc. 47 * @con_deinit: deinitialize the console from @vc. 48 * @con_clear: erase @count characters at [@x, @y] on @vc. @count >= 1. 49 * @con_putc: emit one character with attributes @ca to [@x, @y] on @vc. 51 * @con_putcs: emit @count characters with attributes @s to [@x, @y] on @vc. 61 * @con_font_set: set console @vc font to @font with height @vpitch. @flags can 63 * @con_font_get: fetch the current font on @vc of height @vpitch into @font. 65 * @con_font_default: set default font on @vc. @name can be %NULL or font name 67 * @con_resize: resize the @vc consol 151 con_debug_enter(struct vc_data * vc) con_debug_enter() argument [all...] |
| /linux/drivers/atm/ |
| H A 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, struc argument 791 drain_scq(struct idt77252_dev * card,struct vc_map * vc) drain_scq() argument 830 queue_skb(struct idt77252_dev * card,struct vc_map * vc,struct sk_buff * skb,int oam) queue_skb() argument 937 get_free_scd(struct idt77252_dev * card,struct vc_map * vc) get_free_scd() argument 1018 struct vc_map *vc; dequeue_rx() local 1245 struct vc_map *vc; idt77252_rx_raw() local 1411 struct vc_map *vc; idt77252_tx() local 1597 __fill_tst(struct idt77252_dev * card,struct vc_map * vc,int n,unsigned int opc) __fill_tst() argument 1657 fill_tst(struct idt77252_dev * card,struct vc_map * vc,int n,unsigned int opc) fill_tst() argument 1675 __clear_tst(struct idt77252_dev * card,struct vc_map * vc) __clear_tst() argument 1700 clear_tst(struct idt77252_dev * card,struct vc_map * vc) clear_tst() argument 1718 change_tst(struct idt77252_dev * card,struct vc_map * vc,int n,unsigned int opc) change_tst() argument 1739 set_tct(struct idt77252_dev * card,struct vc_map * vc) set_tct() argument 1948 struct vc_map *vc = vcc->dev_data; idt77252_send_skb() local 2079 struct vc_map *vc = est->vc; idt77252_est_timer() local 2117 idt77252_init_est(struct vc_map * vc,int pcr) idt77252_init_est() argument 2138 idt77252_init_cbr(struct idt77252_dev * card,struct vc_map * vc,struct atm_vcc * vcc,struct atm_qos * qos) idt77252_init_cbr() argument 2208 idt77252_init_ubr(struct idt77252_dev * card,struct vc_map * vc,struct atm_vcc * vcc,struct atm_qos * qos) idt77252_init_ubr() argument 2244 idt77252_init_tx(struct idt77252_dev * card,struct vc_map * vc,struct atm_vcc * vcc,struct atm_qos * qos) idt77252_init_tx() argument 2322 idt77252_init_rx(struct idt77252_dev * card,struct vc_map * vc,struct atm_vcc * vcc,struct atm_qos * qos) idt77252_init_rx() argument 2390 struct vc_map *vc; idt77252_open() local 2492 struct vc_map *vc = vcc->dev_data; idt77252_close() local 2576 struct vc_map *vc = vcc->dev_data; idt77252_change_qos() local 2670 struct vc_map *vc; idt77252_proc_read() local 2851 struct vc_map *vc; open_card_oam() local 2894 struct vc_map *vc; close_card_oam() local 2926 struct vc_map *vc; open_card_ubr0() local 2967 struct vc_map *vc = card->vcs[0]; close_card_ubr0() local [all...] |
| /linux/arch/mips/math-emu/ |
| H A D | ieee754int.h | 54 #define EXPLODESP(v, vc, vs, ve, vm) \ argument 61 vc = IEEE754_CLASS_INF; \ 63 vc = IEEE754_CLASS_QNAN; \ 65 vc = IEEE754_CLASS_SNAN; \ 69 vc = IEEE754_CLASS_DNORM; \ 71 vc = IEEE754_CLASS_ZERO; \ 75 vc = IEEE754_CLASS_NORM; \ 92 #define EXPLODEDP(v, vc, vs, ve, vm) \ argument 99 vc = IEEE754_CLASS_INF; \ 101 vc = IEEE754_CLASS_QNAN; \ [all …]
|
| /linux/arch/powerpc/math-emu/ |
| H A D | math_efp.c | 183 union dw_union vc, va, vb; in do_spe_mathemu() local 200 vc.wp[0] = current->thread.evr[fc]; in do_spe_mathemu() 201 vc.wp[1] = regs->gpr[fc]; in do_spe_mathemu() 210 pr_debug("vc: %08x %08x\n", vc.wp[0], vc.wp[1]); in do_spe_mathemu() 236 vc.wp[1] = va.wp[1] & ~SIGN_BIT_S; in do_spe_mathemu() 240 vc.wp[1] = va.wp[1] | SIGN_BIT_S; in do_spe_mathemu() 244 vc.wp[1] = va.wp[1] ^ SIGN_BIT_S; in do_spe_mathemu() 278 vc.wp[1] = 0; in do_spe_mathemu() 282 FP_TO_INT_ROUND_S(vc.wp[1], SB, 32, in do_spe_mathemu() 302 vc.wp[1] = 0; in do_spe_mathemu() [all …]
|
| /linux/fs/afs/ |
| H A D | vlclient.c | 110 struct afs_vldb_entry *afs_vl_get_entry_by_name_u(struct afs_vl_cursor *vc, in afs_vl_get_entry_by_name_u() argument 116 struct afs_net *net = vc->cell->net; in afs_vl_get_entry_by_name_u() 136 call->key = vc->key; in afs_vl_get_entry_by_name_u() 139 call->peer = rxrpc_kernel_get_peer(vc->alist->addrs[vc->addr_index].peer); in afs_vl_get_entry_by_name_u() 140 call->service_id = vc->server->service_id; in afs_vl_get_entry_by_name_u() 153 vc->call_abort_code = call->abort_code; in afs_vl_get_entry_by_name_u() 154 vc->call_error = call->error; in afs_vl_get_entry_by_name_u() 155 vc->call_responded = call->responded; in afs_vl_get_entry_by_name_u() 157 if (vc->call_error) { in afs_vl_get_entry_by_name_u() 159 return ERR_PTR(vc->call_error); in afs_vl_get_entry_by_name_u() [all …]
|
| /linux/drivers/dma/mediatek/ |
| H A D | mtk-cqdma.c | 122 struct virt_dma_chan vc; member 144 struct mtk_cqdma_vchan *vc; member 155 return container_of(chan, struct mtk_cqdma_vchan, vc.chan); in to_cqdma_vchan() 272 lockdep_assert_held(&cvc->vc.lock); in mtk_cqdma_issue_vchan_pending() 275 list_for_each_entry_safe(vd, vd2, &cvc->vc.desc_issued, node) { in mtk_cqdma_issue_vchan_pending() 333 spin_lock(&cvc->vc.lock); in mtk_cqdma_consume_work_queue() 347 spin_unlock(&cvc->vc.lock); in mtk_cqdma_consume_work_queue() 429 list_for_each_entry(vd, &cvc->vc.desc_issued, node) in mtk_cqdma_find_active_desc() 452 spin_lock(&cvc->vc.lock); in mtk_cqdma_tx_status() 454 spin_unlock(&cvc->vc.lock); in mtk_cqdma_tx_status() [all …]
|
| /linux/arch/alpha/math-emu/ |
| H A D | math.c | 105 unsigned long res, va, vb, vc, swcr, fpcr; in alpha_fp_emul() local 174 vc = 0x4000000000000000UL; in alpha_fp_emul() 184 case FOP_FNC_CMPxUN: if (res != 3) vc = 0; break; in alpha_fp_emul() 185 case FOP_FNC_CMPxEQ: if (res) vc = 0; break; in alpha_fp_emul() 186 case FOP_FNC_CMPxLT: if (res != -1) vc = 0; break; in alpha_fp_emul() 187 case FOP_FNC_CMPxLE: if ((long)res > 0) vc = 0; break; in alpha_fp_emul() 237 vc = 0; in alpha_fp_emul() 239 FP_TO_INT_ROUND_D(vc, DB, 64, 2); in alpha_fp_emul() 253 vc = ((vb & 0xc0000000) << 32 | /* sign and msb */ in alpha_fp_emul() 271 FP_PACK_SP(&vc, SR); in alpha_fp_emul() [all …]
|