Home
last modified time | relevance | path

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

12345

/linux/drivers/tty/vt/
H A Dvt.c137 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);
292 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument
[all …]
H A Dvc_screen.c89 struct vc_data *vc = param->vc; in vcs_notifier() local
110 if (currcons != vc->vc_num) in vcs_notifier()
210 static int vcs_size(const struct vc_data *vc, bool attr, bool unicode) in vcs_size() argument
216 size = vc->vc_rows * vc->vc_cols; in vcs_size()
232 struct vc_data *vc; in vcs_lseek() local
236 vc = vcs_vc(inode, NULL); in vcs_lseek()
237 if (!vc) in vcs_lseek()
240 size = vcs_size(vc, use_attributes(inode), use_unicode(inode)); in vcs_lseek()
247 static int vcs_read_buf_uni(struct vc_data *vc, char *con_buf, in vcs_read_buf_uni() argument
250 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni()
[all …]
H A Dselection.c93 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 …]
H A Dconsolemap.c287 unsigned short *set_translate(enum translation_map m, struct vc_data *vc) in set_translate() argument
289 inv_translate[vc->vc_num] = m; in set_translate()
450 void con_free_unimap(struct vc_data *vc) in con_free_unimap() argument
454 p = *vc->uni_pagedict_loc; in con_free_unimap()
457 *vc->uni_pagedict_loc = NULL; in con_free_unimap()
538 static int con_allocate_new(struct vc_data *vc) in con_allocate_new() argument
540 struct uni_pagedict *new, *old = *vc->uni_pagedict_loc; in con_allocate_new()
547 *vc->uni_pagedict_loc = new; in con_allocate_new()
556 static int con_do_clear_unimap(struct vc_data *vc) in con_do_clear_unimap() argument
558 struct uni_pagedict *old = *vc->uni_pagedict_loc; in con_do_clear_unimap()
[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/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/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 …]
H A Dmilbeaut-hdmac.c68 struct virt_dma_chan vc; member
84 to_milbeaut_hdmac_chan(struct virt_dma_chan *vc) in to_milbeaut_hdmac_chan() argument
86 return container_of(vc, struct milbeaut_hdmac_chan, vc); in to_milbeaut_hdmac_chan()
101 vd = vchan_next_desc(&mc->vc); in milbeaut_hdmac_next_desc()
177 spin_lock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
203 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
215 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_hdmac_chan_config() local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); in milbeaut_hdmac_chan_config()
218 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
220 spin_unlock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
[all …]
H A Duniphier-mdmac.c60 struct virt_dma_chan vc; member
75 to_uniphier_mdmac_chan(struct virt_dma_chan *vc) in to_uniphier_mdmac_chan() argument
77 return container_of(vc, struct uniphier_mdmac_chan, vc); in to_uniphier_mdmac_chan()
92 vd = vchan_next_desc(&mc->vc); in uniphier_mdmac_next_desc()
182 spin_lock(&mc->vc.lock); in uniphier_mdmac_interrupt()
219 spin_unlock(&mc->vc.lock); in uniphier_mdmac_interrupt()
235 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_mdmac_prep_slave_sg() local
249 return vchan_tx_prep(vc, &md->vd, flags); in uniphier_mdmac_prep_slave_sg()
254 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_mdmac_terminate_all() local
255 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); in uniphier_mdmac_terminate_all()
[all …]
H A Dpxa_dma.c105 struct virt_dma_chan vc; /* Virtual channel */ member
140 container_of(dchan, struct pxad_chan, vc.chan)
152 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
160 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
167 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
371 struct pxad_device *pdev = to_pxad_dev(pchan->vc.chan.device); in lookup_phy()
399 dev_dbg(&pchan->vc.chan.dev->device, in lookup_phy()
408 struct pxad_device *pdev = to_pxad_dev(chan->vc.chan.device); in pxad_free_phy()
412 dev_dbg(&chan->vc.chan.dev->device, in pxad_free_phy()
457 dev_dbg(&phy->vchan->vc.chan.dev->device, in phy_enable()
[all …]
H A Dmilbeaut-xdmac.c69 struct virt_dma_chan vc; member
81 to_milbeaut_xdmac_chan(struct virt_dma_chan *vc) in to_milbeaut_xdmac_chan() argument
83 return container_of(vc, struct milbeaut_xdmac_chan, vc); in to_milbeaut_xdmac_chan()
98 vd = vchan_next_desc(&mc->vc); in milbeaut_xdmac_next_desc()
165 spin_lock(&mc->vc.lock); in milbeaut_xdmac_interrupt()
179 spin_unlock(&mc->vc.lock); in milbeaut_xdmac_interrupt()
192 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_xdmac_prep_memcpy() local
203 return vchan_tx_prep(vc, &md->vd, flags); in milbeaut_xdmac_prep_memcpy()
208 struct virt_dma_chan *vc = to_virt_chan(chan); in milbeaut_xdmac_terminate_all() local
209 struct milbeaut_xdmac_chan *mc = to_milbeaut_xdmac_chan(vc); in milbeaut_xdmac_terminate_all()
[all …]
H A Duniphier-xdmac.c87 struct virt_dma_chan vc; member
104 to_uniphier_xdmac_chan(struct virt_dma_chan *vc) in to_uniphier_xdmac_chan() argument
106 return container_of(vc, struct uniphier_xdmac_chan, vc); in to_uniphier_xdmac_chan()
121 vd = vchan_next_desc(&xc->vc); in uniphier_xdmac_next_desc()
235 spin_lock(&xc->vc.lock); in uniphier_xdmac_chan_irq()
261 spin_unlock(&xc->vc.lock); in uniphier_xdmac_chan_irq()
284 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_xdmac_prep_dma_memcpy() local
315 return vchan_tx_prep(vc, &xd->vd, flags); in uniphier_xdmac_prep_dma_memcpy()
324 struct virt_dma_chan *vc = to_virt_chan(chan); in uniphier_xdmac_prep_slave_sg() local
325 struct uniphier_xdmac_chan *xc = to_uniphier_xdmac_chan(vc); in uniphier_xdmac_prep_slave_sg()
[all …]
/linux/lib/vdso/
H A Dgettimeofday.c38 static __always_inline bool vdso_delta_ok(const struct vdso_clock *vc, u64 delta) in vdso_delta_ok() argument
40 return delta < vc->max_cycles; in vdso_delta_ok()
43 static __always_inline bool vdso_delta_ok(const struct vdso_clock *vc, u64 delta) in vdso_delta_ok() argument
60 static __always_inline u64 vdso_calc_ns(const struct vdso_clock *vc, u64 cycles, u64 base) in vdso_calc_ns() argument
62 u64 delta = (cycles - vc->cycle_last) & VDSO_DELTA_MASK(vc); in vdso_calc_ns()
64 if (likely(vdso_delta_ok(vc, delta))) in vdso_calc_ns()
65 return vdso_shift_ns((delta * vc->mult) + base, vc->shift); in vdso_calc_ns()
67 return mul_u64_u32_add_u64_shr(delta, vc->mult, base, vc->shift); in vdso_calc_ns()
79 static inline bool vdso_clocksource_ok(const struct vdso_clock *vc) in vdso_clocksource_ok() argument
81 return vc->clock_mode != VDSO_CLOCKMODE_NONE; in vdso_clocksource_ok()
[all …]
/linux/arch/arm/mach-omap2/
H A Dvc.c118 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/drivers/accessibility/braille/
H A Dbraille_console.c109 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 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/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 …]
/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/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/dma/mediatek/
H A Dmtk-hsdma.c200 struct virt_dma_chan vc; member
238 struct mtk_hsdma_vchan *vc; member
255 return container_of(chan, struct mtk_hsdma_vchan, vc.chan); in to_hsdma_vchan()
500 lockdep_assert_held(&hvc->vc.lock); in mtk_hsdma_issue_vchan_pending()
502 list_for_each_entry_safe(vd, vd2, &hvc->vc.desc_issued, node) { in mtk_hsdma_issue_vchan_pending()
585 spin_lock(&hvc->vc.lock); in mtk_hsdma_free_rooms_in_ring()
598 spin_unlock(&hvc->vc.lock); in mtk_hsdma_free_rooms_in_ring()
633 hvc = &hsdma->vc[i]; in mtk_hsdma_free_rooms_in_ring()
634 spin_lock(&hvc->vc.lock); in mtk_hsdma_free_rooms_in_ring()
636 spin_unlock(&hvc->vc.lock); in mtk_hsdma_free_rooms_in_ring()
[all …]
H A Dmtk-cqdma.c122 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 …]

12345