Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/tty/vt/
Dvt.c139 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);
261 static void notify_write(struct vc_data *vc, unsigned int unicode) in notify_write() argument
263 struct vt_notifier_param param = { .vc = vc, .c = unicode }; in notify_write()
[all …]
Dkeyboard.c77 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 …]
Dvt_ioctl.c62 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 …]
Dvc_screen.c65 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 …]
Dselection.c161 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 …]
Dconsolemap.c245 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 …]
/linux-4.1.27/drivers/video/console/
Dfbcon.c145 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row)
158 static void fbcon_init(struct vc_data *vc, int init);
159 static void fbcon_deinit(struct vc_data *vc);
160 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
162 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos);
163 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s,
165 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only);
166 static void fbcon_cursor(struct vc_data *vc, int mode);
167 static int fbcon_scroll(struct vc_data *vc, int t, int b, int dir,
169 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx,
[all …]
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 …]
Dfbcon_ccw.c26 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 …]
Dfbcon_cw.c26 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 …]
Dfbcon_ud.c26 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 …]
Dnewport_con.c328 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 …]
Dtileblit.c19 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 …]
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()
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 …]
Dfbcon.h55 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 …]
Ddummycon.c34 static void dummycon_init(struct vc_data *vc, int init) in dummycon_init() argument
36 vc->vc_can_do_color = 1; in dummycon_init()
38 vc->vc_cols = DUMMY_COLUMNS; in dummycon_init()
39 vc->vc_rows = DUMMY_ROWS; in dummycon_init()
41 vc_resize(vc, DUMMY_COLUMNS, DUMMY_ROWS); in dummycon_init()
Dvgacon.c83 static int vgacon_set_palette(struct vc_data *vc, unsigned char *table);
850 static void vga_set_palette(struct vc_data *vc, unsigned char *table) in vga_set_palette() argument
857 vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); in vga_set_palette()
858 vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); in vga_set_palette()
859 vga_w(vgastate.vgabase, VGA_PEL_D, vc->vc_palette[j++] >> 2); in vga_set_palette()
863 static int vgacon_set_palette(struct vc_data *vc, unsigned char *table) in vgacon_set_palette() argument
867 || !CON_IS_VISIBLE(vc)) in vgacon_set_palette()
869 vga_set_palette(vc, table); in vgacon_set_palette()
1214 static int vgacon_adjust_height(struct vc_data *vc, unsigned fontheight) in vgacon_adjust_height() argument
1219 rows = vc->vc_scan_lines / fontheight; /* Number of video rows we end up with */ in vgacon_adjust_height()
/linux-4.1.27/drivers/staging/speakup/
Dmain.c270 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 …]
Dspk_types.h51 typedef int (*special_func)(struct vc_data *vc, u_char type, u_char ch,
83 #define spk_shut_up (speakup_console[vc->vc_num]->shut_up)
84 #define spk_killed (speakup_console[vc->vc_num]->shut_up & 0x40)
85 #define spk_x (speakup_console[vc->vc_num]->reading_x)
86 #define spk_cx (speakup_console[vc->vc_num]->cursor_x)
87 #define spk_y (speakup_console[vc->vc_num]->reading_y)
88 #define spk_cy (speakup_console[vc->vc_num]->cursor_y)
89 #define spk_pos (speakup_console[vc->vc_num]->reading_pos)
90 #define spk_cp (speakup_console[vc->vc_num]->cursor_pos)
91 #define goto_pos (speakup_console[vc->vc_num]->go_pos)
[all …]
Dselection.c57 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 …]
Dspeakup.h68 extern int spk_handle_help(struct vc_data *vc, u_char type, u_char ch,
Dkeyhelp.c145 int spk_handle_help(struct vc_data *vc, u_char type, u_char ch, u_short key) in spk_handle_help() argument
Dkobjects.c330 struct vc_data *vc = vc_cons[fg_console].d; in silent_store() local
/linux-4.1.27/drivers/dma/
Dvirt-dma.h44 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 …]
Dvirt-dma.c24 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 …]
Dk3dma.c79 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 …]
Dsa11x0-dma.c91 struct virt_dma_chan vc; member
132 return container_of(chan, struct sa11x0_dma_chan, vc.chan); in to_sa11x0_dma_chan()
142 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in sa11x0_dma_next_desc()
283 spin_lock_irqsave(&c->vc.lock, flags); in sa11x0_dma_irq()
297 spin_unlock_irqrestore(&c->vc.lock, flags); in sa11x0_dma_irq()
339 list_for_each_entry(c, &d->slave.channels, vc.chan.device_node) { in sa11x0_dma_tasklet()
340 spin_lock_irq(&c->vc.lock); in sa11x0_dma_tasklet()
353 spin_unlock_irq(&c->vc.lock); in sa11x0_dma_tasklet()
370 dev_dbg(d->slave.dev, "pchan %u: alloc vchan %p\n", pch, &c->vc); in sa11x0_dma_tasklet()
380 spin_lock_irq(&c->vc.lock); in sa11x0_dma_tasklet()
[all …]
Dmoxart-dma.c134 struct virt_dma_chan vc; member
171 return container_of(c, struct moxart_chan, vc.chan); in to_moxart_dma_chan()
194 spin_lock_irqsave(&ch->vc.lock, flags); in moxart_terminate_all()
205 vchan_get_all_descriptors(&ch->vc, &head); in moxart_terminate_all()
206 spin_unlock_irqrestore(&ch->vc.lock, flags); in moxart_terminate_all()
207 vchan_dma_desc_free_list(&ch->vc, &head); in moxart_terminate_all()
328 return vchan_tx_prep(&ch->vc, &d->vd, tx_flags); in moxart_prep_slave_sg()
363 vchan_free_chan_resources(&ch->vc); in moxart_free_chan_resources()
390 dev_dbg(chan2dev(&ch->vc.chan), "%s: set %u DMA cycles (len=%u)\n", in moxart_set_transfer_params()
423 vd = vchan_next_desc(&ch->vc); in moxart_dma_start_desc()
[all …]
Dbcm2835-dma.c66 struct virt_dma_chan vc; member
134 return container_of(c, struct bcm2835_chan, vc.chan); in to_bcm2835_dma_chan()
190 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc()
212 spin_lock_irqsave(&c->vc.lock, flags); in bcm2835_dma_callback()
227 spin_unlock_irqrestore(&c->vc.lock, flags); in bcm2835_dma_callback()
236 dev_dbg(c->vc.chan.device->dev, in bcm2835_dma_alloc_chan_resources()
247 vchan_free_chan_resources(&c->vc); in bcm2835_dma_free_chan_resources()
250 dev_dbg(c->vc.chan.device->dev, "Freeing DMA channel %u\n", c->ch); in bcm2835_dma_free_chan_resources()
295 spin_lock_irqsave(&c->vc.lock, flags); in bcm2835_dma_tx_status()
296 vd = vchan_find_desc(&c->vc, cookie); in bcm2835_dma_tx_status()
[all …]
Dsun6i-dma.c144 struct virt_dma_chan vc; member
179 return container_of(chan, struct sun6i_vchan, vc.chan); in to_sun6i_vchan()
323 dev_dbg(chan2dev(&vchan->vc.chan), in sun6i_dma_dump_lli()
360 struct sun6i_dma_dev *sdev = to_sun6i_dma_dev(vchan->vc.chan.device); in sun6i_dma_start_desc()
361 struct virt_dma_desc *desc = vchan_next_desc(&vchan->vc); in sun6i_dma_start_desc()
406 list_for_each_entry(vchan, &sdev->slave.channels, vc.chan.device_node) { in sun6i_dma_tasklet()
407 spin_lock_irq(&vchan->vc.lock); in sun6i_dma_tasklet()
424 spin_unlock_irq(&vchan->vc.lock); in sun6i_dma_tasklet()
445 pchan->idx, &vchan->vc); in sun6i_dma_tasklet()
456 spin_lock_irq(&vchan->vc.lock); in sun6i_dma_tasklet()
[all …]
Dqcom_bam_dma.c348 struct virt_dma_chan vc; member
377 return container_of(common, struct bam_chan, vc.chan); in to_bam_chan()
427 lockdep_assert_held(&bchan->vc.lock); in bam_reset_channel()
537 spin_lock_irqsave(&bchan->vc.lock, flags); in bam_free_chan()
539 spin_unlock_irqrestore(&bchan->vc.lock, flags); in bam_free_chan()
568 spin_lock_irqsave(&bchan->vc.lock, flag); in bam_slave_config()
571 spin_unlock_irqrestore(&bchan->vc.lock, flag); in bam_slave_config()
651 return vchan_tx_prep(&bchan->vc, &async_desc->vd, flags); in bam_prep_slave_sg()
673 spin_lock_irqsave(&bchan->vc.lock, flag); in bam_dma_terminate_all()
675 list_add(&bchan->curr_txd->vd.node, &bchan->vc.desc_issued); in bam_dma_terminate_all()
[all …]
Ds3c24xx-dma.c220 struct virt_dma_chan vc; member
375 return container_of(chan, struct s3c24xx_dma_chan, vc.chan); in to_s3c24xx_dma_chan()
399 spin_lock_irqsave(&s3cchan->vc.lock, flags); in s3c24xx_dma_set_runtime_config()
409 spin_unlock_irqrestore(&s3cchan->vc.lock, flags); in s3c24xx_dma_set_runtime_config()
514 struct virt_dma_desc *vd = vchan_next_desc(&s3cchan->vc); in s3c24xx_dma_start_next_txd()
535 vchan_get_all_descriptors(&s3cchan->vc, &head); in s3c24xx_dma_free_txd_list()
536 vchan_dma_desc_free_list(&s3cchan->vc, &head); in s3c24xx_dma_free_txd_list()
598 list_for_each_entry(p, &s3cdma->memcpy.channels, vc.chan.device_node) in s3c24xx_dma_phy_free()
606 vc.chan.device_node) in s3c24xx_dma_phy_free()
624 spin_lock(&next->vc.lock); in s3c24xx_dma_phy_free()
[all …]
Domap-dma.c40 struct virt_dma_chan vc; member
168 return container_of(c, struct omap_chan, vc.chan); in to_omap_dma_chan()
282 struct omap_dmadev *od = to_omap_dma_dev(c->vc.chan.device); in omap_dma_start()
300 struct omap_dmadev *od = to_omap_dma_dev(c->vc.chan.device); in omap_dma_stop()
335 dev_err(c->vc.chan.device->dev, in omap_dma_stop()
386 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in omap_dma_start_desc()
436 spin_lock_irqsave(&c->vc.lock, flags); in omap_dma_callback()
450 spin_unlock_irqrestore(&c->vc.lock, flags); in omap_dma_callback()
473 spin_lock_irq(&c->vc.lock); in omap_dma_sched()
476 spin_unlock_irq(&c->vc.lock); in omap_dma_sched()
[all …]
Dimg-mdc-dma.c121 struct virt_dma_chan vc; member
173 return container_of(to_virt_chan(c), struct mdc_chan, vc); in to_mdc_chan()
335 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_dma_memcpy()
443 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_dma_cyclic()
521 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_slave_sg()
536 vd = vchan_next_desc(&mchan->vc); in mdc_issue_desc()
570 spin_lock_irqsave(&mchan->vc.lock, flags); in mdc_issue_pending()
571 if (vchan_issue_pending(&mchan->vc) && !mchan->desc) in mdc_issue_pending()
573 spin_unlock_irqrestore(&mchan->vc.lock, flags); in mdc_issue_pending()
593 spin_lock_irqsave(&mchan->vc.lock, flags); in mdc_tx_status()
[all …]
Damba-pl08x.c233 struct virt_dma_chan vc; member
299 return container_of(chan, struct pl08x_dma_chan, vc.chan); in to_pl08x_chan()
398 struct virt_dma_desc *vd = vchan_next_desc(&plchan->vc); in pl08x_start_next_txd()
694 list_for_each_entry(p, &pl08x->memcpy.channels, vc.chan.device_node) in pl08x_phy_free()
701 list_for_each_entry(p, &pl08x->slave.channels, vc.chan.device_node) in pl08x_phy_free()
718 spin_lock(&next->vc.lock); in pl08x_phy_free()
723 spin_unlock(&next->vc.lock); in pl08x_phy_free()
1187 vchan_get_all_descriptors(&plchan->vc, &head); in pl08x_free_txd_list()
1188 vchan_dma_desc_free_list(&plchan->vc, &head); in pl08x_free_txd_list()
1236 spin_lock_irqsave(&plchan->vc.lock, flags); in pl08x_dma_tx_status()
[all …]
/linux-4.1.27/drivers/media/usb/s2255/
Ds2255drv.c260 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 …]
/linux-4.1.27/arch/arm/mach-omap2/
Dvc.c96 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 …]
Dvoltagedomains54xx_data.c42 .vc = &omap4_vc_mpu,
53 .vc = &omap4_vc_iva,
64 .vc = &omap4_vc_core,
Dvoltagedomains44xx_data.c56 .vc = &omap4_vc_mpu,
67 .vc = &omap4_vc_iva,
78 .vc = &omap4_vc_core,
Dvoltagedomains3xxx_data.c57 .vc = &omap3_vc_mpu,
68 .vc = &omap3_vc_core,
Dvoltage.h69 struct omap_vc_channel *vc; member
Dvoltage.c258 if (voltdm->vc) { in omap_voltage_late_init()
DMakefile130 voltagedomain-common := voltage.o vc.o vp.o
/linux-4.1.27/drivers/accessibility/braille/
Dbraille_console.c123 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-4.1.27/include/linux/
Dvt_kern.h38 int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines);
40 void reset_palette(struct vc_data *vc);
45 int con_font_op(struct vc_data *vc, struct console_font_op *op);
48 void scrollback(struct vc_data *vc, int lines);
49 void scrollfront(struct vc_data *vc, int lines);
50 void clear_buffer_attributes(struct vc_data *vc);
51 void update_region(struct vc_data *vc, unsigned long start, int count);
52 void redraw_screen(struct vc_data *vc, int is_switch);
69 int con_clear_unimap(struct vc_data *vc, struct unimapinit *ui);
70 int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list);
[all …]
Dselection.h32 extern unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed);
33 extern u16 screen_glyph(struct vc_data *vc, int offset);
34 extern void complement_pos(struct vc_data *vc, int offset);
35 extern void invert_screen(struct vc_data *vc, int offset, int count, int shift);
37 extern void getconsxy(struct vc_data *vc, unsigned char *p);
38 extern void putconsxy(struct vc_data *vc, unsigned char *p);
40 extern u16 vcs_scr_readw(struct vc_data *vc, const u16 *org);
41 extern void vcs_scr_writew(struct vc_data *vc, u16 val, u16 *org);
42 extern void vcs_scr_updated(struct vc_data *vc);
Dconsolemap.h20 extern unsigned short *set_translate(int m, struct vc_data *vc);
27 #define set_translate(m, vc) ((unsigned short *)NULL) argument
Dconsole_struct.h114 struct vc { struct
123 extern struct vc vc_cons [MAX_NR_CONSOLES]; argument
Dconsole.h82 int con_debug_enter(struct vc_data *vc);
85 static inline int con_debug_enter(struct vc_data *vc) in con_debug_enter() argument
Dkeyboard.h11 struct vc_data *vc; /* VC on which the keyboard press was done */ member
/linux-4.1.27/arch/mips/math-emu/
Dieee754int.h58 #define EXPLODESP(v, vc, vs, ve, vm) \ argument
65 vc = IEEE754_CLASS_INF; \
67 vc = IEEE754_CLASS_SNAN; \
69 vc = IEEE754_CLASS_QNAN; \
73 vc = IEEE754_CLASS_DNORM; \
75 vc = IEEE754_CLASS_ZERO; \
79 vc = IEEE754_CLASS_NORM; \
92 #define EXPLODEDP(v, vc, vs, ve, vm) \ argument
99 vc = IEEE754_CLASS_INF; \
101 vc = IEEE754_CLASS_SNAN; \
[all …]
/linux-4.1.27/drivers/atm/
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 …]
Dnicstar.c130 static void fill_tst(ns_dev * card, int n, vc_map * vc);
132 static int push_scqe(ns_dev * card, vc_map * vc, scq_info * scq, ns_scqe * tbd,
1229 vc_map *vc; in ns_open() local
1251 vc = &(card->vcmap[vpi << card->vcibits | vci]); in ns_open()
1252 vcc->dev_data = vc; in ns_open()
1255 if (vcc->qos.txtp.traffic_class != ATM_NONE && vc->tx) in ns_open()
1257 if (vcc->qos.rxtp.traffic_class != ATM_NONE && vc->rx) in ns_open()
1337 card->scd2vc[frscdi] = vc; in ns_open()
1351 vc->cbr_scd = NS_FRSCD + frscdi * NS_FRSCD_SIZE; in ns_open()
1353 scq = get_scq(card, CBR_SCQSIZE, vc->cbr_scd); in ns_open()
[all …]
Dambassador.h368 __be32 vc; member
373 __be32 vc; member
377 __be32 vc; member
381 __be32 vc; member
428 u16 vc; member
454 __be16 vc; member
473 __be16 vc; member
Dambassador.c401 static inline void dump_skb (char * prefix, unsigned int vc, struct sk_buff * skb) { in dump_skb() argument
405 PRINTDB (DBG_DATA, "%s(%u) ", prefix, vc); in dump_skb()
411 (void) vc; in dump_skb()
473 u16 vc = be16_to_cpu (rx->vc); in rx_complete() local
482 struct atm_vcc * atm_vcc = dev->rxer[vc]; in rx_complete()
495 dump_skb ("<<<", vc, skb); in rx_complete()
506 … PRINTD (DBG_INFO|DBG_RX, "dropped thanks to atm_charge (vc %hu, truesize %u)", vc, skb->truesize); in rx_complete()
517 PRINTD (DBG_WARN|DBG_RX, "got frame but RX closed for channel %hu", vc); in rx_complete()
1161 cmd.args.modify_rate.vc = cpu_to_be32 (vci); // vpi 0 in amb_open()
1167 cmd.args.modify_flags.vc = cpu_to_be32 (vci); // vpi 0 in amb_open()
[all …]
Dhorizon.c463 static inline void dump_skb (char * prefix, unsigned int vc, struct sk_buff * skb) { in dump_skb() argument
467 PRINTDB (DBG_DATA, "%s(%u) ", prefix, vc); in dump_skb()
473 (void) vc; in dump_skb()
794 static void hrz_close_rx (hrz_dev * dev, u16 vc) { in hrz_close_rx() argument
801 rx_ch_desc * rx_desc = &memmap->rx_descs[vc]; in hrz_close_rx()
811 PRINTD (DBG_VCC, "closing VC: RX channel %u already disabled", vc); in hrz_close_rx()
861 u16 other = vc^(RX_CHANS/2); in hrz_close_rx()
871 SELECT_RX_CHANNEL (dev, vc); in hrz_close_rx()
876 FLUSH_RX_CHANNEL (dev, vc); in hrz_close_rx()
904 if (vc == rx_q_entry_to_rx_channel (x)) { in hrz_close_rx()
Diphase.c1748 struct main_vc *vc; local
1810 vc = (struct main_vc *)iadev->MAIN_VC_TABLE_ADDR;
1812 vc += vcc->vci;
1814 memset((caddr_t)vc, 0, sizeof(*vc));
1828 vc->type = UBR;
1829 vc->status = CRC_APPEND;
1830 vc->acr = cellrate_to_float(iadev->LineRate);
1832 vc->acr = cellrate_to_float(vcc->qos.txtp.pcr);
1834 vcc->qos.txtp.max_pcr,vc->acr);)
1882 vc->type = CBR;
[all …]
Didt77252.h311 struct vc_map *vc; member
/linux-4.1.27/arch/powerpc/math-emu/
Dmath_efp.c186 union dw_union vc, va, vb; in do_spe_mathemu() local
203 vc.wp[0] = current->thread.evr[fc]; in do_spe_mathemu()
204 vc.wp[1] = regs->gpr[fc]; in do_spe_mathemu()
213 pr_debug("vc: %08x %08x\n", vc.wp[0], vc.wp[1]); in do_spe_mathemu()
238 vc.wp[1] = va.wp[1] & ~SIGN_BIT_S; in do_spe_mathemu()
242 vc.wp[1] = va.wp[1] | SIGN_BIT_S; in do_spe_mathemu()
246 vc.wp[1] = va.wp[1] ^ SIGN_BIT_S; in do_spe_mathemu()
280 vc.wp[1] = 0; in do_spe_mathemu()
284 FP_TO_INT_ROUND_S(vc.wp[1], SB, 32, in do_spe_mathemu()
304 vc.wp[1] = 0; in do_spe_mathemu()
[all …]
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_hv.c169 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_core_vcpu_load_hv() local
178 if (vc->runner == vcpu && vc->vcore_state != VCORE_INACTIVE) { in kvmppc_core_vcpu_load_hv()
179 spin_lock_irqsave(&vc->stoltb_lock, flags); in kvmppc_core_vcpu_load_hv()
180 if (vc->preempt_tb != TB_NIL) { in kvmppc_core_vcpu_load_hv()
181 vc->stolen_tb += mftb() - vc->preempt_tb; in kvmppc_core_vcpu_load_hv()
182 vc->preempt_tb = TB_NIL; in kvmppc_core_vcpu_load_hv()
184 spin_unlock_irqrestore(&vc->stoltb_lock, flags); in kvmppc_core_vcpu_load_hv()
197 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_core_vcpu_put_hv() local
200 if (vc->runner == vcpu && vc->vcore_state != VCORE_INACTIVE) { in kvmppc_core_vcpu_put_hv()
201 spin_lock_irqsave(&vc->stoltb_lock, flags); in kvmppc_core_vcpu_put_hv()
[all …]
Dbook3s_hv_builtin.c113 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_rm_h_confer() local
120 set_bit(vcpu->arch.ptid, &vc->conferring_threads); in kvmppc_rm_h_confer()
121 while ((get_tb() < stop) && !VCORE_IS_EXITING(vc)) { in kvmppc_rm_h_confer()
122 threads_running = VCORE_ENTRY_MAP(vc); in kvmppc_rm_h_confer()
123 threads_ceded = vc->napping_threads; in kvmppc_rm_h_confer()
124 threads_conferring = vc->conferring_threads; in kvmppc_rm_h_confer()
130 clear_bit(vcpu->arch.ptid, &vc->conferring_threads); in kvmppc_rm_h_confer()
226 static void kvmhv_interrupt_vcore(struct kvmppc_vcore *vc, int active) in kvmhv_interrupt_vcore() argument
228 int cpu = vc->pcpu; in kvmhv_interrupt_vcore()
239 struct kvmppc_vcore *vc = local_paca->kvm_hstate.kvm_vcore; in kvmhv_commence_exit() local
[all …]
Dtrace_hv.h388 TP_PROTO(struct kvmppc_vcore *vc, int where),
390 TP_ARGS(vc, where),
400 __entry->runner_vcpu = vc->runner->vcpu_id;
401 __entry->n_runnable = vc->n_runnable;
412 TP_PROTO(struct kvmppc_vcore *vc, int where),
414 TP_ARGS(vc, where),
424 __entry->runner_vcpu = vc->runner->vcpu_id;
425 __entry->n_runnable = vc->n_runnable;
/linux-4.1.27/arch/alpha/math-emu/
Dmath.c105 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 …]
/linux-4.1.27/fs/coda/
Dinode.c155 struct venus_comm *vc; in coda_fill_super() local
171 vc = &coda_comms[idx]; in coda_fill_super()
172 mutex_lock(&vc->vc_mutex); in coda_fill_super()
174 if (!vc->vc_inuse) { in coda_fill_super()
180 if (vc->vc_sb) { in coda_fill_super()
186 error = bdi_setup_and_register(&vc->bdi, "coda"); in coda_fill_super()
190 vc->vc_sb = sb; in coda_fill_super()
191 mutex_unlock(&vc->vc_mutex); in coda_fill_super()
193 sb->s_fs_info = vc; in coda_fill_super()
200 sb->s_bdi = &vc->bdi; in coda_fill_super()
[all …]
Dupcall.c41 static int coda_upcall(struct venus_comm *vc, int inSize, int *outSize,
/linux-4.1.27/drivers/dma/sh/
Dusb-dmac.c80 struct virt_dma_chan vc; member
90 #define to_usb_dmac_chan(c) container_of(c, struct usb_dmac_chan, vc.chan)
210 dev_dbg(chan->vc.chan.device->dev, in usb_dmac_chan_start_sg()
229 vd = vchan_next_desc(&chan->vc); in usb_dmac_chan_start_desc()
279 spin_lock_irqsave(&chan->vc.lock, flags); in usb_dmac_desc_alloc()
281 spin_unlock_irqrestore(&chan->vc.lock, flags); in usb_dmac_desc_alloc()
308 spin_lock_irqsave(&chan->vc.lock, flags); in usb_dmac_desc_get()
312 spin_unlock_irqrestore(&chan->vc.lock, flags); in usb_dmac_desc_get()
316 spin_unlock_irqrestore(&chan->vc.lock, flags); in usb_dmac_desc_get()
321 spin_lock_irqsave(&chan->vc.lock, flags); in usb_dmac_desc_get()
[all …]
/linux-4.1.27/net/netrom/
Dnr_subr.c91 unsigned short vc = nrom->va; in nr_validate_nr() local
93 while (vc != nrom->vs) { in nr_validate_nr()
94 if (nr == vc) return 1; in nr_validate_nr()
95 vc = (vc + 1) % NR_MODULUS; in nr_validate_nr()
107 unsigned short vc = nr->vr; in nr_in_rx_window() local
110 while (vc != vt) { in nr_in_rx_window()
111 if (ns == vc) return 1; in nr_in_rx_window()
112 vc = (vc + 1) % NR_MODULUS; in nr_in_rx_window()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-capture.c479 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_capture_open() local
480 struct exynos_video_entity *ve = &vc->ve; in fimc_capture_open()
506 if (ret == 0 && vc->user_subdev_api && vc->inh_sensor_ctrls) { in fimc_capture_open()
511 fimc_ctrls_delete(vc->ctx); in fimc_capture_open()
513 ret = fimc_ctrls_create(vc->ctx); in fimc_capture_open()
515 vc->inh_sensor_ctrls = false; in fimc_capture_open()
539 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_capture_release() local
547 if (close && vc->streaming) { in fimc_capture_release()
548 media_entity_pipeline_stop(&vc->ve.vdev.entity); in fimc_capture_release()
549 vc->streaming = false; in fimc_capture_release()
[all …]
Dfimc-reg.c604 struct fimc_vid_cap *vc = &fimc->vid_cap; in fimc_hw_set_camera_source() local
605 struct fimc_frame *f = &vc->ctx->s_frame; in fimc_hw_set_camera_source()
613 if (vc->ci_fmt.code == pix_desc[i].pixelcode) { in fimc_hw_set_camera_source()
621 v4l2_err(&vc->ve.vdev, in fimc_hw_set_camera_source()
623 vc->ci_fmt.code); in fimc_hw_set_camera_source()
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c530 struct v4l2_queryctrl *vc) in pvr2_queryctrl() argument
537 if (vc->id & V4L2_CTRL_FLAG_NEXT_CTRL) { in pvr2_queryctrl()
539 hdw, (vc->id & ~V4L2_CTRL_FLAG_NEXT_CTRL)); in pvr2_queryctrl()
541 vc->id = pvr2_ctrl_get_v4lid(cptr); in pvr2_queryctrl()
543 cptr = pvr2_hdw_get_ctrl_v4l(hdw, vc->id); in pvr2_queryctrl()
548 vc->id); in pvr2_queryctrl()
554 vc->id, pvr2_ctrl_get_name(cptr), in pvr2_queryctrl()
556 strlcpy(vc->name, pvr2_ctrl_get_desc(cptr), sizeof(vc->name)); in pvr2_queryctrl()
557 vc->flags = pvr2_ctrl_get_v4lflags(cptr); in pvr2_queryctrl()
559 vc->default_value = val; in pvr2_queryctrl()
[all …]
/linux-4.1.27/drivers/staging/fbtft/
Dfb_ili9325.c44 static unsigned vc = 0x03; /* Vci1=Vci*0.80 */ variable
45 module_param(vc, uint, 0);
46 MODULE_PARM_DESC(vc,
112 vc &= 0x07; in init_display()
141 write_reg(par, 0x0011, 0x220 | vc); /* DC1[2:0], DC0[2:0], VC[2:0] */ in init_display()
/linux-4.1.27/drivers/media/usb/cpia2/
Dcpia2_v4l.c222 static int cpia2_querycap(struct file *file, void *fh, struct v4l2_capability *vc) in cpia2_querycap() argument
226 strcpy(vc->driver, "cpia2"); in cpia2_querycap()
229 strcpy(vc->card, "QX5 Microscope"); in cpia2_querycap()
231 strcpy(vc->card, "CPiA2 Camera"); in cpia2_querycap()
234 strcat(vc->card, " (672/"); in cpia2_querycap()
237 strcat(vc->card, " (676/"); in cpia2_querycap()
240 strcat(vc->card, " (XXX/"); in cpia2_querycap()
245 strcat(vc->card, "404)"); in cpia2_querycap()
248 strcat(vc->card, "407)"); in cpia2_querycap()
251 strcat(vc->card, "409)"); in cpia2_querycap()
[all …]
/linux-4.1.27/net/ax25/
Dax25_subr.c84 unsigned short vc = ax25->va; in ax25_validate_nr() local
86 while (vc != ax25->vs) { in ax25_validate_nr()
87 if (nr == vc) return 1; in ax25_validate_nr()
88 vc = (vc + 1) % ax25->modulus; in ax25_validate_nr()
/linux-4.1.27/arch/powerpc/kernel/
Dvecemu.c262 unsigned int va, vb, vc, vd; in emulate_altivec() local
272 vc = (instr >> 6) & 0x1f; in emulate_altivec()
277 switch (vc) { in emulate_altivec()
335 vmaddfp(&vrs[vd], &vrs[va], &vrs[vb], &vrs[vc]); in emulate_altivec()
338 vnmsubfp(&vrs[vd], &vrs[va], &vrs[vb], &vrs[vc]); in emulate_altivec()
/linux-4.1.27/net/lapb/
Dlapb_subr.c93 unsigned short vc = lapb->va; in lapb_validate_nr() local
98 while (vc != lapb->vs) { in lapb_validate_nr()
99 if (nr == vc) in lapb_validate_nr()
101 vc = (vc + 1) % modulus; in lapb_validate_nr()
/linux-4.1.27/net/x25/
Dx25_subr.c98 unsigned short vc = x25->va; in x25_validate_nr() local
101 while (vc != x25->vs) { in x25_validate_nr()
102 if (nr == vc) in x25_validate_nr()
104 vc = (vc + 1) % modulus; in x25_validate_nr()
/linux-4.1.27/drivers/usb/misc/sisusbvga/
Dsisusb_con.c336 sisusbcon_invert_region(struct vc_data *vc, u16 *p, int count) in sisusbcon_invert_region() argument
1257 struct vc_data *vc = vc_cons[i].d; in sisusbcon_do_font_op() local
1259 if (vc && vc->vc_sw == &sisusb_con) { in sisusbcon_do_font_op()
1260 if (CON_IS_VISIBLE(vc)) { in sisusbcon_do_font_op()
1261 vc->vc_sw->con_cursor(vc, CM_DRAW); in sisusbcon_do_font_op()
1263 vc->vc_font.height = fh; in sisusbcon_do_font_op()
1264 vc_resize(vc, 0, rows); in sisusbcon_do_font_op()
1391 static void sisusbdummycon_init(struct vc_data *vc, int init) in sisusbdummycon_init() argument
1393 vc->vc_can_do_color = 1; in sisusbdummycon_init()
1395 vc->vc_cols = 80; in sisusbdummycon_init()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dkvm_host.h299 #define VCORE_ENTRY_MAP(vc) ((vc)->entry_exit_map & 0xff) argument
300 #define VCORE_EXIT_MAP(vc) ((vc)->entry_exit_map >> 8) argument
301 #define VCORE_IS_EXITING(vc) (VCORE_EXIT_MAP(vc) != 0) argument
/linux-4.1.27/net/rose/
Drose_subr.c88 unsigned short vc = rose->va; in rose_validate_nr() local
90 while (vc != rose->vs) { in rose_validate_nr()
91 if (nr == vc) return 1; in rose_validate_nr()
92 vc = (vc + 1) % ROSE_MODULUS; in rose_validate_nr()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Ddsi.c331 } vc[4]; member
913 static void _omap_dsi_set_irqs_vc(struct platform_device *dsidev, int vc) in _omap_dsi_set_irqs_vc() argument
917 _omap_dsi_configure_irqs(dsidev, dsi->isr_tables.isr_table_vc[vc], in _omap_dsi_set_irqs_vc()
918 ARRAY_SIZE(dsi->isr_tables.isr_table_vc[vc]), in _omap_dsi_set_irqs_vc()
920 DSI_VC_IRQENABLE(vc), DSI_VC_IRQSTATUS(vc)); in _omap_dsi_set_irqs_vc()
938 int vc; in _dsi_initialize_irq() local
945 for (vc = 0; vc < 4; ++vc) in _dsi_initialize_irq()
946 _omap_dsi_set_irqs_vc(dsidev, vc); in _dsi_initialize_irq()
2216 dsi->vc[0].tx_fifo_size = size1; in dsi_config_tx_fifo()
2217 dsi->vc[1].tx_fifo_size = size2; in dsi_config_tx_fifo()
[all …]
/linux-4.1.27/Documentation/arm/
DCCN.txt23 "port" (device port number) and "vc" (virtual channel ID) and
44 / # perf stat -C 0 -e ccn/cycles/,ccn/xp_valid_flit,xp=1,port=0,vc=1,dir=1/ \
/linux-4.1.27/drivers/media/usb/usbvision/
Dusbvision-video.c503 struct v4l2_capability *vc) in vidioc_querycap() argument
507 strlcpy(vc->driver, "USBVision", sizeof(vc->driver)); in vidioc_querycap()
508 strlcpy(vc->card, in vidioc_querycap()
510 sizeof(vc->card)); in vidioc_querycap()
511 usb_make_path(usbvision->dev, vc->bus_info, sizeof(vc->bus_info)); in vidioc_querycap()
512 vc->device_caps = V4L2_CAP_VIDEO_CAPTURE | in vidioc_querycap()
517 vc->capabilities = vc->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-video.c1350 struct v4l2_ctrl *vc; in cx8800_initdev() local
1352 vc = v4l2_ctrl_new_std(&core->audio_hdl, &cx8800_ctrl_aud_ops, in cx8800_initdev()
1354 if (vc == NULL) { in cx8800_initdev()
1358 vc->priv = (void *)cc; in cx8800_initdev()
1363 struct v4l2_ctrl *vc; in cx8800_initdev() local
1365 vc = v4l2_ctrl_new_std(&core->video_hdl, &cx8800_ctrl_vid_ops, in cx8800_initdev()
1367 if (vc == NULL) { in cx8800_initdev()
1371 vc->priv = (void *)cc; in cx8800_initdev()
1372 if (vc->id == V4L2_CID_CHROMA_AGC) in cx8800_initdev()
1373 core->chroma_agc = vc; in cx8800_initdev()
/linux-4.1.27/drivers/gpu/ipu-v3/
Dipu-csi.c561 int ipu_csi_set_mipi_datatype(struct ipu_csi *csi, u32 vc, in ipu_csi_set_mipi_datatype() argument
568 if (vc > 3) in ipu_csi_set_mipi_datatype()
576 temp &= ~(0xff << (vc * 8)); in ipu_csi_set_mipi_datatype()
577 temp |= (cfg.mipi_dt << (vc * 8)); in ipu_csi_set_mipi_datatype()
/linux-4.1.27/drivers/pci/
DMakefile7 irq.o vpd.o setup-bus.o vc.o
/linux-4.1.27/Documentation/input/
Dnotifier.txt7 - 'vc' always provide the VC for which the keyboard event applies;
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600_cs.c86 #define FMT_8_BIT(fmt, vc) [fmt] = { 1, 1, 1, vc, CHIP_R600 } argument
87 #define FMT_16_BIT(fmt, vc) [fmt] = { 1, 1, 2, vc, CHIP_R600 } argument
89 #define FMT_32_BIT(fmt, vc) [fmt] = { 1, 1, 4, vc, CHIP_R600 } argument
91 #define FMT_64_BIT(fmt, vc) [fmt] = { 1, 1, 8, vc, CHIP_R600 } argument
93 #define FMT_128_BIT(fmt, vc) [fmt] = { 1, 1, 16,vc, CHIP_R600 } argument
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgk104.c256 int vc = !next->bios.ramcfg_11_02_08; in gk104_ram_calc_gddr5() local
270 if (vc == 1 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_gddr5()
599 if (vc == 0 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_gddr5()
685 int vc = !next->bios.ramcfg_11_02_08; in gk104_ram_calc_sddr3() local
693 if (vc == 1 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_sddr3()
895 if (vc == 0 && ram_have(fuc, gpio2E)) { in gk104_ram_calc_sddr3()
/linux-4.1.27/net/ipx/
DKconfig12 <ftp://platan.vc.cvut.cz/pub/linux/ncpfs/>) or from
/linux-4.1.27/drivers/bus/
Darm-ccn.c238 static CCN_FORMAT_ATTR(vc, "config:26-28");
678 u32 vc = CCN_CONFIG_VC(event->attr.config); in arm_ccn_pmu_event_init() local
689 if (e->num_vcs && vc >= e->num_vcs) { in arm_ccn_pmu_event_init()
691 vc, node_xp); in arm_ccn_pmu_event_init()
/linux-4.1.27/include/video/
Dimx-ipu-v3.h278 int ipu_csi_set_mipi_datatype(struct ipu_csi *csi, u32 vc,
/linux-4.1.27/arch/arm/include/asm/
Dassembler.h433 .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
/linux-4.1.27/kernel/trace/
Dtrace_events_filter.c2273 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \ argument
2276 .rec = { .a = va, .b = vb, .c = vc, .d = vd, \
/linux-4.1.27/Documentation/fb/
Dfbcon.txt115 4. fbcon=vc:<n1>-<n2>
Dmatroxfb.txt413 Petr Vandrovec <vandrove@vc.cvut.cz>
/linux-4.1.27/drivers/video/fbdev/
DKconfig1266 (available at <ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/>) to
1317 <ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/>) to switch it to
/linux-4.1.27/Documentation/
Ddevices.txt261 0 = /dev/vcs Current vc text contents
265 128 = /dev/vcsa Current vc text/attribute contents