| /kernel/linux/linux-6.6/drivers/tty/vt/ |
| 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 save_cur(struct vc_data *vc); 146 static void reset_terminal(struct vc_data *vc, int do_clear); 149 static void set_cursor(struct vc_data *vc); 150 static void hide_cursor(struct vc_data *vc); 154 static void set_palette(struct vc_data *vc); 242 * the attribute 'active' contains the name of the current vc 243 * console and it supports poll() to detect vc switches [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/vt/ |
| D | vt.c | 137 struct vc vc_cons [MAX_NR_CONSOLES]; 144 static void vc_init(struct vc_data *vc, unsigned int rows, 146 static void gotoxy(struct vc_data *vc, int new_x, int new_y); 147 static void save_cur(struct vc_data *vc); 148 static void reset_terminal(struct vc_data *vc, int do_clear); 151 static void set_cursor(struct vc_data *vc); 152 static void hide_cursor(struct vc_data *vc); 156 static void set_palette(struct vc_data *vc); 239 * the attribute 'active' contains the name of the current vc 240 * console and it supports poll() to detect vc switches [all …]
|
| /kernel/linux/linux-5.10/fs/afs/ |
| D | vl_rotate.c | 17 bool afs_begin_vlserver_operation(struct afs_vl_cursor *vc, struct afs_cell *cell, in afs_begin_vlserver_operation() argument 20 memset(vc, 0, sizeof(*vc)); in afs_begin_vlserver_operation() 21 vc->cell = cell; in afs_begin_vlserver_operation() 22 vc->key = key; in afs_begin_vlserver_operation() 23 vc->error = -EDESTADDRREQ; in afs_begin_vlserver_operation() 24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation() 27 vc->error = -EINTR; in afs_begin_vlserver_operation() 28 vc->flags |= AFS_VL_CURSOR_STOP; in afs_begin_vlserver_operation() 39 static bool afs_start_vl_iteration(struct afs_vl_cursor *vc) in afs_start_vl_iteration() argument 41 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() [all …]
|
| /kernel/linux/linux-6.6/fs/afs/ |
| D | vl_rotate.c | 17 bool afs_begin_vlserver_operation(struct afs_vl_cursor *vc, struct afs_cell *cell, in afs_begin_vlserver_operation() argument 20 memset(vc, 0, sizeof(*vc)); in afs_begin_vlserver_operation() 21 vc->cell = cell; in afs_begin_vlserver_operation() 22 vc->key = key; in afs_begin_vlserver_operation() 23 vc->error = -EDESTADDRREQ; in afs_begin_vlserver_operation() 24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation() 27 vc->error = -EINTR; in afs_begin_vlserver_operation() 28 vc->flags |= AFS_VL_CURSOR_STOP; in afs_begin_vlserver_operation() 39 static bool afs_start_vl_iteration(struct afs_vl_cursor *vc) in afs_start_vl_iteration() argument 41 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/tw686x/ |
| D | tw686x-video.c | 49 static void tw686x_buf_done(struct tw686x_video_channel *vc, in tw686x_buf_done() argument 52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done() 53 struct tw686x_dev *dev = vc->dev; in tw686x_buf_done() 57 if (vc->curr_bufs[pb]) { in tw686x_buf_done() 58 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done() 61 vb->sequence = vc->sequence++; in tw686x_buf_done() 71 vc->pb = !pb; in tw686x_buf_done() 77 static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc, in tw686x_memcpy_dma_free() argument 80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free() 81 struct tw686x_dev *dev = vc->dev; in tw686x_memcpy_dma_free() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/pci/tw686x/ |
| D | tw686x-video.c | 49 static void tw686x_buf_done(struct tw686x_video_channel *vc, in tw686x_buf_done() argument 52 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_buf_done() 53 struct tw686x_dev *dev = vc->dev; in tw686x_buf_done() 57 if (vc->curr_bufs[pb]) { in tw686x_buf_done() 58 vb = &vc->curr_bufs[pb]->vb; in tw686x_buf_done() 61 vb->sequence = vc->sequence++; in tw686x_buf_done() 71 vc->pb = !pb; in tw686x_buf_done() 77 static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc, in tw686x_memcpy_dma_free() argument 80 struct tw686x_dma_desc *desc = &vc->dma_descs[pb]; in tw686x_memcpy_dma_free() 81 struct tw686x_dev *dev = vc->dev; in tw686x_memcpy_dma_free() [all …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
| D | fbcon.c | 166 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 176 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 177 static void fbcon_set_palette(struct vc_data *vc, const unsigned char *table); 184 static void fbcon_redraw_move(struct vc_data *vc, struct fbcon_display *p, 228 struct vc_data *vc; in fbcon_rotate_all() local 236 vc = vc_cons[i].d; in fbcon_rotate_all() 237 if (!vc || vc->vc_mode != KD_TEXT || in fbcon_rotate_all() 241 p = &fb_display[vc->vc_num]; in fbcon_rotate_all() 273 static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info) in fbcon_is_inactive() argument 278 vc->vc_mode != KD_TEXT || ops->graphics); in fbcon_is_inactive() [all …]
|
| D | bitblit.c | 26 struct vc_data *vc) in update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr() 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 46 static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 52 area.sy = sy * vc->vc_font.height; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 54 area.dy = dy * vc->vc_font.height; in bit_bmove() 55 area.height = height * vc->vc_font.height; in bit_bmove() [all …]
|
| D | fbcon_ccw.c | 26 struct vc_data *vc) in ccw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() 30 int mod = vc->vc_font.height % 8; in ccw_update_attr() 39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr() 63 static void ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ccw_bmove() argument 70 area.sx = sy * vc->vc_font.height; in ccw_bmove() 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove() 72 area.dx = dy * vc->vc_font.height; in ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove() [all …]
|
| D | fbcon_cw.c | 26 struct vc_data *vc) in cw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() 32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr() 48 static void cw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in cw_bmove() argument 55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove() 56 area.sy = sx * vc->vc_font.width; in cw_bmove() 57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove() 58 area.dy = dx * vc->vc_font.width; in cw_bmove() 59 area.width = height * vc->vc_font.height; in cw_bmove() [all …]
|
| D | fbcon_ud.c | 26 struct vc_data *vc) in ud_update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr() 29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr() 48 static void ud_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ud_bmove() argument 56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove() 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove() 58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove() 60 area.height = height * vc->vc_font.height; in ud_bmove() [all …]
|
| /kernel/linux/linux-5.10/drivers/dma/ |
| D | virt-dma.h | 18 /* protected by vc.lock */ 29 /* protected by vc.lock */ 44 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); 52 * @vc: virtual channel allocating this descriptor 56 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument 61 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 69 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_prep() 70 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep() 71 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_prep() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/dma/ |
| D | virt-dma.h | 18 /* protected by vc.lock */ 29 /* protected by vc.lock */ 44 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); 52 * @vc: virtual channel allocating this descriptor 56 static inline struct dma_async_tx_descriptor *vchan_tx_prep(struct virt_dma_chan *vc, in vchan_tx_prep() argument 61 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep() 69 spin_lock_irqsave(&vc->lock, flags); in vchan_tx_prep() 70 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep() 71 spin_unlock_irqrestore(&vc->lock, flags); in vchan_tx_prep() [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
| D | fbcon.c | 164 #define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) 175 static void fbcon_init(struct vc_data *vc, int init); 176 static void fbcon_deinit(struct vc_data *vc); 177 static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height, 179 static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos); 180 static void fbcon_putcs(struct vc_data *vc, const unsigned short *s, 182 static void fbcon_clear_margins(struct vc_data *vc, int bottom_only); 183 static void fbcon_cursor(struct vc_data *vc, int mode); 184 static void fbcon_bmove(struct vc_data *vc, int sy, int sx, int dy, int dx, 186 static int fbcon_switch(struct vc_data *vc); [all …]
|
| D | bitblit.c | 26 struct vc_data *vc) in update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr() 29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in update_attr() 46 static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, in bit_bmove() argument 51 area.sx = sx * vc->vc_font.width; in bit_bmove() 52 area.sy = sy * vc->vc_font.height; in bit_bmove() 53 area.dx = dx * vc->vc_font.width; in bit_bmove() 54 area.dy = dy * vc->vc_font.height; in bit_bmove() 55 area.height = height * vc->vc_font.height; in bit_bmove() [all …]
|
| D | fbcon_ccw.c | 26 struct vc_data *vc) in ccw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() 30 int mod = vc->vc_font.height % 8; in ccw_update_attr() 39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr() 63 static void ccw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ccw_bmove() argument 70 area.sx = sy * vc->vc_font.height; in ccw_bmove() 71 area.sy = vyres - ((sx + width) * vc->vc_font.width); in ccw_bmove() 72 area.dx = dy * vc->vc_font.height; in ccw_bmove() 73 area.dy = vyres - ((dx + width) * vc->vc_font.width); in ccw_bmove() [all …]
|
| D | fbcon_cw.c | 26 struct vc_data *vc) in cw_update_attr() argument 28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr() 29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() 32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr() 48 static void cw_bmove(struct vc_data *vc, struct fb_info *info, int sy, in cw_bmove() argument 55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove() 56 area.sy = sx * vc->vc_font.width; in cw_bmove() 57 area.dx = vxres - ((dy + height) * vc->vc_font.height); in cw_bmove() 58 area.dy = dx * vc->vc_font.width; in cw_bmove() 59 area.width = height * vc->vc_font.height; in cw_bmove() [all …]
|
| D | fbcon_ud.c | 26 struct vc_data *vc) in ud_update_attr() argument 28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr() 29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() 30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr() 48 static void ud_bmove(struct vc_data *vc, struct fb_info *info, int sy, in ud_bmove() argument 56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove() 57 area.sx = vxres - ((sx + width) * vc->vc_font.width); in ud_bmove() 58 area.dy = vyres - ((dy + height) * vc->vc_font.height); in ud_bmove() 59 area.dx = vxres - ((dx + width) * vc->vc_font.width); in ud_bmove() 60 area.height = height * vc->vc_font.height; in ud_bmove() [all …]
|
| /kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
| D | main.c | 258 static unsigned char get_attributes(struct vc_data *vc, u16 *pos) in get_attributes() argument 260 pos = screen_pos(vc, pos - (u16 *)vc->vc_origin, 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 …]
|
| /kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
| D | main.c | 258 static unsigned char get_attributes(struct vc_data *vc, u16 *pos) in get_attributes() argument 260 pos = screen_pos(vc, pos - (u16 *)vc->vc_origin, 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/usb/s2255/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/s2255/ |
| 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
| D | vc.c | 3 * 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 …]
|