Home
last modified time | relevance | path

Searched full:vc (Results 1 – 25 of 238) sorted by relevance

12345678910

/linux/drivers/video/fbdev/core/
H A Dfbcon.c173 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
183 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only);
184 static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table);
191 static void fbcon_redraw_move(struct vc_data *vc, struct fbcon_display *p,
235 struct vc_data *vc; in fbcon_rotate_all() local
243 vc = vc_cons[i].d; in fbcon_rotate_all()
244 if (!vc || vc->vc_mode != KD_TEXT || in fbcon_rotate_all()
248 p = &fb_display[vc->vc_num]; in fbcon_rotate_all()
285 static inline bool fbcon_is_active(struct vc_data *vc, struct fb_info *info) in fbcon_is_active() argument
290 vc->vc_mode == KD_TEXT && !ops->graphics && !fbcon_skip_panic(info); in fbcon_is_active()
[all …]
H A 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 …]
H A 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 …]
/linux/lib/vdso/
H A Dgettimeofday.c21 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->mult, base, vc->shift); in vdso_calc_ns()
62 static inline bool vdso_clocksource_ok(const struct vdso_clock *vc) in vdso_clocksource_ok() argument
64 return vc->clock_mode != VDSO_CLOCKMODE_NONE; in vdso_clocksource_ok()
[all …]
/linux/drivers/accessibility/speakup/
H A Dmain.c258 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 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 …]
/linux/drivers/dma/
H A 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 …]
/linux/drivers/media/usb/s2255/
H A 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 …]
/linux/arch/arm/mach-omap2/
H A Dvc.c3 * OMAP Voltage Controller (VC) interface
18 #include "vc.h"
81 * On OMAP3+, all VC channels have the above default bitfield
83 * to be a freak accident as every other VC channel has the
101 * omap_vc_config_channel - configure VC channel to PMIC mappings
102 * @voltdm: pointer to voltagdomain defining the desired VC channel
104 * Configures the VC channel to PMIC mappings for the following
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()
[all …]
/linux/include/vdso/
H A Dhelpers.h10 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
35 * updates to vc->seq and it is possible that the value seen by the in vdso_write_seq_begin()
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
45 * updates to vc->seq and it is possible that the value seen by the in vdso_write_seq_end()
48 WRITE_ONCE(vc->seq, vc->seq + 1); in vdso_write_seq_end()
[all …]
/linux/drivers/accessibility/braille/
H A Dbraille_console.c6 * Pressing Insert switches to VC browsing.
49 /* mini view of VC */
52 /* show console ? (or show VC) */
108 /* Follow the VC cursor*/
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()
117 /* Maybe the VC cursor moved, if so follow it */
[all …]
/linux/drivers/pci/
H A Dvc.c41 * pci_vc_load_arb_table - load and wait for VC arbitration table
43 * @pos: starting position of VC capability (VC/VC9/MFVC)
45 * Set Load VC Arbitration Table bit requesting hardware to apply the VC
46 * Arbitration Table (previously loaded). When the VC Arbitration Table
47 * Status clears, hardware has latched the table into VC arbitration logic.
60 pci_err(dev, "VC arbitration table failed to load\n"); in pci_vc_load_arb_table()
64 * pci_vc_load_port_arb_table - Load and wait for VC port arbitration table
66 * @pos: starting position of VC capability (VC/VC9/MFVC)
67 * @res: VC resource number, ie. VCn (0-7)
88 pci_err(dev, "VC%d port arbitration table failed to load\n", res); in pci_vc_load_port_arb_table()
[all …]
/linux/kernel/time/
H A Dvsyscall.c18 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/include/linux/
H A Dvt_kern.h28 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 Dselection.h26 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 …]
/linux/arch/mips/math-emu/
H A Dieee754int.h54 #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/drivers/tty/vt/
H A Dkeyboard.c79 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 …]
/linux/drivers/atm/
H A 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 …]
/linux/drivers/video/console/
H A Ddummycon.c53 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 Dnewport_con.c327 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, u16 charattr, unsigned int ypos, in newport_putc() argument
[all …]
/linux/drivers/dma/mediatek/
H A Dmtk-cqdma.c115 * channel (VC)
116 * @vc: An instance for struct virt_dma_chan
122 struct virt_dma_chan vc; member
135 * @vc: The pointer to all available VCs
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()
295 * return true if this VC is active,
333 spin_lock(&cvc->vc.lock); in mtk_cqdma_consume_work_queue()
[all …]
/linux/arch/powerpc/math-emu/
H A Dmath_efp.c183 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 Dvlclient.c110 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/vhost/
H A Dscsi.c1076 struct vhost_scsi_ctx *vc, u8 status) in vhost_scsi_send_status() argument
1085 iov_iter_init(&iov_iter, ITER_DEST, &vq->iov[vc->out], vc->in, in vhost_scsi_send_status()
1091 vhost_add_used_and_signal(&vs->dev, vq, vc->head, 0); in vhost_scsi_send_status()
1103 struct vhost_scsi_ctx *vc, int type) in vhost_scsi_send_bad_target() argument
1127 iov_iter_init(&iov_iter, ITER_DEST, &vq->iov[vc->out], vc->in, in vhost_scsi_send_bad_target()
1133 vhost_add_used_and_signal(&vs->dev, vq, vc->head, 0); in vhost_scsi_send_bad_target()
1140 struct vhost_scsi_ctx *vc, in vhost_scsi_get_desc() argument
1148 vc->head = vhost_get_vq_desc(vq, vq->iov, in vhost_scsi_get_desc()
1149 ARRAY_SIZE(vq->iov), &vc->out, &vc->in, in vhost_scsi_get_desc()
1153 vc->head, vc->out, vc->in); in vhost_scsi_get_desc()
[all …]
/linux/arch/x86/include/asm/
H A Dsev-internal.h8 /* #VC handler runtime per-CPU data */
14 * It is needed when an NMI happens while the #VC handler uses the real
15 * GHCB, and the NMI handler itself is causing another #VC exception. In
22 * Mark the per-cpu GHCBs as in-use to detect nested #VC exceptions.
25 * to use it when a nested #VC exception happens before the write.
27 * This is necessary for example in the #VC->NMI->#VC case when the NMI
28 * happens while the first #VC handler uses the GHCB. When the NMI code
29 * raises a second #VC handler it might overwrite the contents of the

12345678910