Home
last modified time | relevance | path

Searched refs:regno (Results 76 – 100 of 229) sorted by relevance

12345678910

/openbmc/linux/drivers/video/fbdev/
H A Dsunxvr2500.c49 static int s3d_setcolreg(unsigned regno, in s3d_setcolreg() argument
55 if (regno < 16) { in s3d_setcolreg()
61 ((u32 *)info->pseudo_palette)[regno] = value; in s3d_setcolreg()
H A Dimsttfb.c883 if (regno > 255) in imsttfb_setcolreg()
892 par->cmap_regs[PADDRW] = regno << 3; in imsttfb_setcolreg()
894 par->cmap_regs[PADDRW] = regno; in imsttfb_setcolreg()
901 if (regno < 16) in imsttfb_setcolreg()
904 par->palette[regno] = in imsttfb_setcolreg()
905 (regno << (info->var.green.length == in imsttfb_setcolreg()
906 5 ? 10 : 11)) | (regno << 5) | regno; in imsttfb_setcolreg()
909 par->palette[regno] = in imsttfb_setcolreg()
910 (regno << 16) | (regno << 8) | regno; in imsttfb_setcolreg()
913 int i = (regno << 8) | regno; in imsttfb_setcolreg()
[all …]
H A Dpmag-ba-fb.c94 static int pmagbafb_setcolreg(unsigned int regno, unsigned int red, in pmagbafb_setcolreg() argument
100 if (regno >= info->cmap.len) in pmagbafb_setcolreg()
108 dac_write(par, BT459_ADDR_LO, regno); in pmagbafb_setcolreg()
H A Darkfb.c805 static int arkfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in arkfb_setcolreg() argument
811 if (regno >= 16) in arkfb_setcolreg()
817 outb(regno*16, VGA_PEL_IW); in arkfb_setcolreg()
820 outb(regno, VGA_PEL_IW); in arkfb_setcolreg()
827 if (regno >= 256) in arkfb_setcolreg()
831 outb(regno, VGA_PEL_IW); in arkfb_setcolreg()
837 if (regno >= 16) in arkfb_setcolreg()
841 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | in arkfb_setcolreg()
844 ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | in arkfb_setcolreg()
851 if (regno >= 16) in arkfb_setcolreg()
[all …]
H A Dacornfb.c265 acornfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in acornfb_setcolreg() argument
270 if (regno >= current_par.palette_size) in acornfb_setcolreg()
273 if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in acornfb_setcolreg()
276 pseudo_val = regno << info->var.red.offset; in acornfb_setcolreg()
277 pseudo_val |= regno << info->var.green.offset; in acornfb_setcolreg()
278 pseudo_val |= regno << info->var.blue.offset; in acornfb_setcolreg()
280 ((u32 *)info->pseudo_palette)[regno] = pseudo_val; in acornfb_setcolreg()
288 current_par.palette[regno] = pal; in acornfb_setcolreg()
303 vidc_writel(0x10000000 | regno); in acornfb_setcolreg()
H A Dep93xx-fb.c349 static int ep93xxfb_setcolreg(unsigned int regno, unsigned int red, in ep93xxfb_setcolreg() argument
359 if (regno > 255) in ep93xxfb_setcolreg()
364 pal[regno] = rgb; in ep93xxfb_setcolreg()
365 ep93xxfb_writel(fbi, rgb, (EP93XXFB_COLOR_LUT + (regno << 2))); in ep93xxfb_setcolreg()
383 if (regno > 16) in ep93xxfb_setcolreg()
392 pal[regno] = (red << info->var.red.offset) | in ep93xxfb_setcolreg()
H A Dhitfb.c222 static int hitfb_setcolreg(unsigned regno, unsigned red, unsigned green, in hitfb_setcolreg() argument
225 if (regno >= 256) in hitfb_setcolreg()
230 hitfb_writew(regno << 8, HD64461_CPTWAR); in hitfb_setcolreg()
236 if (regno >= 16) in hitfb_setcolreg()
238 ((u32 *) (info->pseudo_palette))[regno] = in hitfb_setcolreg()
H A Dgrvga.c187 static int grvga_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tr… in grvga_setcolreg() argument
192 if (regno >= 256) /* Size of CLUT */ in grvga_setcolreg()
213 __raw_writel((regno << 24) | (red << 16) | (green << 8) | blue, in grvga_setcolreg()
219 if (regno >= 16) in grvga_setcolreg()
228 ((u32 *) (info->pseudo_palette))[regno] = v; in grvga_setcolreg()
H A Dpvr2fb.c238 unsigned int regno, in pvr2fb_set_pal_entry() argument
241 fb_writel(val, par->mmio_base + 0x1000 + (4 * regno)); in pvr2fb_set_pal_entry()
281 static int pvr2fb_setcolreg(unsigned int regno, unsigned int red, in pvr2fb_setcolreg() argument
288 if (regno > info->cmap.len) in pvr2fb_setcolreg()
302 pvr2fb_set_pal_entry(par, regno, tmp); in pvr2fb_setcolreg()
312 pvr2fb_set_pal_entry(par, regno, tmp); in pvr2fb_setcolreg()
319 if (regno < 16) in pvr2fb_setcolreg()
320 ((u32*)(info->pseudo_palette))[regno] = tmp; in pvr2fb_setcolreg()
H A Dchipsfb.c79 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
149 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument
152 if (regno > 255) in chipsfb_setcolreg()
157 outb(regno, 0x3c8); in chipsfb_setcolreg()
H A Dsm712fb.c866 static void sm712_setpalette(int regno, unsigned int red, unsigned int green, in sm712_setpalette() argument
872 smtc_mmiowb(regno, dac_reg); in sm712_setpalette()
977 static int smtc_setcolreg(unsigned int regno, unsigned int red, in smtc_setcolreg() argument
986 if (regno > 255) in smtc_setcolreg()
995 if (regno >= 16) in smtc_setcolreg()
1003 pal[regno] = pal_rgb(red, green, blue, val); in smtc_setcolreg()
1010 pal[regno] = big_swap(val); in smtc_setcolreg()
1016 sm712_setpalette(regno, red, green, blue, info); in smtc_setcolreg()
/openbmc/linux/samples/vfio-mdev/
H A Dmdpy-fb.c58 static int mdpy_fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in mdpy_fb_setcolreg() argument
67 if (regno >= PSEUDO_PALETTE_SIZE) in mdpy_fb_setcolreg()
78 pal[regno] = value; in mdpy_fb_setcolreg()
/openbmc/u-boot/drivers/video/
H A Dda8xx-fb.c557 static int fb_setcolreg(unsigned regno, unsigned red, unsigned green, in fb_setcolreg() argument
566 if (regno > 255) in fb_setcolreg()
581 if (palette[regno] != pal) { in fb_setcolreg()
583 palette[regno] = pal; in fb_setcolreg()
585 } else if ((info->var.bits_per_pixel == 16) && regno < 16) { in fb_setcolreg()
595 par->pseudo_palette[regno] = red | green | blue; in fb_setcolreg()
601 } else if (((info->var.bits_per_pixel == 32) && regno < 32) || in fb_setcolreg()
602 ((info->var.bits_per_pixel == 24) && regno < 24)) { in fb_setcolreg()
612 par->pseudo_palette[regno] = red | green | blue; in fb_setcolreg()
/openbmc/linux/arch/x86/entry/vdso/vdso32/
H A Dsigreturn.S83 #define do_expr(regno, offset) \ argument
85 .uleb128 regno; /* regno */ \
/openbmc/linux/arch/parisc/kernel/vdso32/
H A Dsigtramp.S65 .macro rsave regno,ofs
67 .uleb128 \regno; /* regno */
/openbmc/linux/drivers/video/fbdev/aty/
H A Datyfb_base.c2883 if (regno > 255 || in atyfb_setcolreg()
2892 par->palette[regno].red = red; in atyfb_setcolreg()
2896 if (regno < 16) { in atyfb_setcolreg()
2899 pal[regno] = (regno << 10) | (regno << 5) | regno; in atyfb_setcolreg()
2902 pal[regno] = (regno << 11) | (regno << 5) | regno; in atyfb_setcolreg()
2905 pal[regno] = (regno << 16) | (regno << 8) | regno; in atyfb_setcolreg()
2908 i = (regno << 8) | regno; in atyfb_setcolreg()
2909 pal[regno] = (i << 16) | i; in atyfb_setcolreg()
2922 if (regno < 32) in atyfb_setcolreg()
2928 regno <<= 2; in atyfb_setcolreg()
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-osd.c194 static int vivid_fb_setcolreg(unsigned regno, unsigned red, unsigned green, in vivid_fb_setcolreg() argument
200 if (regno >= info->cmap.len) in vivid_fb_setcolreg()
205 if (regno >= 16) in vivid_fb_setcolreg()
224 palette[regno] = color; in vivid_fb_setcolreg()
/openbmc/linux/drivers/video/fbdev/geode/
H A Dgx1fb_core.c154 static int gx1fb_setcolreg(unsigned regno, unsigned red, unsigned green, in gx1fb_setcolreg() argument
170 if (regno >= 16) in gx1fb_setcolreg()
177 pal[regno] = v; in gx1fb_setcolreg()
179 if (regno >= 256) in gx1fb_setcolreg()
182 par->dc_ops->set_palette_reg(info, regno, red, green, blue); in gx1fb_setcolreg()
H A Dgxfb_core.c179 static int gxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in gxfb_setcolreg() argument
193 if (regno >= 16) in gxfb_setcolreg()
200 pal[regno] = v; in gxfb_setcolreg()
202 if (regno >= 256) in gxfb_setcolreg()
205 gx_set_hw_palette_reg(info, regno, red, green, blue); in gxfb_setcolreg()
H A Dlxfb_core.c290 static int lxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in lxfb_setcolreg() argument
304 if (regno >= 16) in lxfb_setcolreg()
311 pal[regno] = v; in lxfb_setcolreg()
313 if (regno >= 256) in lxfb_setcolreg()
316 lx_set_palette_reg(info, regno, red, green, blue); in lxfb_setcolreg()
H A Ddisplay_gx.c167 void gx_set_hw_palette_reg(struct fb_info *info, unsigned regno, in gx_set_hw_palette_reg() argument
178 write_dc(par, DC_PAL_ADDRESS, regno); in gx_set_hw_palette_reg()
/openbmc/linux/arch/m68k/ifpsp060/src/
H A Disp.S1046 mov.b &0x0,EXC_SAVREG(%a6) # save regno, too
1057 mov.b &0x1,EXC_SAVREG(%a6) # save regno, too
1068 mov.b &0x2,EXC_SAVREG(%a6) # save regno, too
1079 mov.b &0x3,EXC_SAVREG(%a6) # save regno, too
1090 mov.b &0x4,EXC_SAVREG(%a6) # save regno, too
1101 mov.b &0x5,EXC_SAVREG(%a6) # save regno, too
1112 mov.b &0x6,EXC_SAVREG(%a6) # save regno, too
1135 mov.b &0x0,EXC_SAVREG(%a6) # save regno, too
1146 mov.b &0x1,EXC_SAVREG(%a6) # save regno, too
1157 mov.b &0x2,EXC_SAVREG(%a6) # save regno, too
[all …]
/openbmc/linux/include/linux/
H A Dkgdb.h94 extern char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs);
95 extern int dbg_set_reg(int regno, void *mem, struct pt_regs *regs);
H A Dbpf_verifier.h711 const struct bpf_reg_state *reg, int regno);
713 const struct bpf_reg_state *reg, int regno,
716 u32 regno, u32 mem_size);
744 int mark_chain_precision(struct bpf_verifier_env *env, int regno);
/openbmc/linux/drivers/video/fbdev/nvidia/
H A Dnvidia.c703 if (regno >= (1 << info->var.green.length)) in nvidiafb_setcolreg()
711 if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in nvidiafb_setcolreg()
712 ((u32 *) info->pseudo_palette)[regno] = in nvidiafb_setcolreg()
713 (regno << info->var.red.offset) | in nvidiafb_setcolreg()
714 (regno << info->var.green.offset) | in nvidiafb_setcolreg()
715 (regno << info->var.blue.offset); in nvidiafb_setcolreg()
726 nvidia_write_clut(par, regno * 8 + i, red >> 8, in nvidiafb_setcolreg()
732 if (regno < 32) { in nvidiafb_setcolreg()
734 nvidia_write_clut(par, regno * 8 + i, in nvidiafb_setcolreg()
740 nvidia_read_clut(par, regno * 4, &r, &g, &b); in nvidiafb_setcolreg()
[all …]

12345678910