/drivers/video/ |
D | macfb.c | 56 static int (*macfb_setpalette)(unsigned int regno, unsigned int red, 152 static int dafb_setpalette(unsigned int regno, unsigned int red, in dafb_setpalette() argument 165 if (regno != lastreg + 1) { in dafb_setpalette() 173 for (i = 0; i < regno; i++) { in dafb_setpalette() 193 lastreg = regno; in dafb_setpalette() 198 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, in v8_brazil_setpalette() argument 216 regno = (regno << (8 - bpp)) | (0xFF >> bpp); in v8_brazil_setpalette() 217 nubus_writeb(regno, &v8_brazil_cmap_regs->addr); in v8_brazil_setpalette() 232 static int rbv_setpalette(unsigned int regno, unsigned int red, in rbv_setpalette() argument 247 regno += 256 - (1 << info->var.bits_per_pixel); in rbv_setpalette() [all …]
|
D | maxinefb.c | 64 void maxinefb_ims332_write_register(int regno, register unsigned int val) in maxinefb_ims332_write_register() argument 69 wptr = regs + 0xa0000 + (regno << 4); in maxinefb_ims332_write_register() 74 unsigned int maxinefb_ims332_read_register(int regno) in maxinefb_ims332_read_register() argument 80 rptr = regs + 0x80000 + (regno << 4); in maxinefb_ims332_read_register() 88 static int maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green, in maxinefb_setcolreg() argument 94 if (regno > 255) in maxinefb_setcolreg() 103 maxinefb_ims332_write_register(IMS332_REG_COLOR_PALETTE + regno, in maxinefb_setcolreg()
|
D | igafb.c | 276 static int igafb_setcolreg(unsigned regno, unsigned red, unsigned green, in igafb_setcolreg() argument 288 if (regno >= info->cmap.len) in igafb_setcolreg() 291 pci_outb(par, regno, DAC_W_INDEX); in igafb_setcolreg() 296 if (regno < 16) { in igafb_setcolreg() 299 ((u16*)(info->pseudo_palette))[regno] = in igafb_setcolreg() 300 (regno << 10) | (regno << 5) | regno; in igafb_setcolreg() 303 ((u32*)(info->pseudo_palette))[regno] = in igafb_setcolreg() 304 (regno << 16) | (regno << 8) | regno; in igafb_setcolreg() 308 i = (regno << 8) | regno; in igafb_setcolreg() 309 ((u32*)(info->pseudo_palette))[regno] = (i << 16) | i; in igafb_setcolreg()
|
D | s1d13xxxfb.c | 98 s1d13xxxfb_readreg(struct s1d13xxxfb_par *par, u16 regno) in s1d13xxxfb_readreg() argument 101 regno=((regno & 1) ? (regno & ~1L) : (regno + 1)); in s1d13xxxfb_readreg() 103 return readb(par->regs + regno); in s1d13xxxfb_readreg() 107 s1d13xxxfb_writereg(struct s1d13xxxfb_par *par, u16 regno, u8 value) in s1d13xxxfb_writereg() argument 110 regno=((regno & 1) ? (regno & ~1L) : (regno + 1)); in s1d13xxxfb_writereg() 112 writeb(value, par->regs + regno); in s1d13xxxfb_writereg() 271 s1d13xxxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in s1d13xxxfb_setcolreg() argument 277 if (regno >= S1D_PALETTE_SIZE) in s1d13xxxfb_setcolreg() 281 regno, red, green, blue, transp); in s1d13xxxfb_setcolreg() 288 if (regno >= 16) in s1d13xxxfb_setcolreg() [all …]
|
D | platinumfb.c | 79 static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 184 static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in platinumfb_setcolreg() argument 190 if (regno > 255) in platinumfb_setcolreg() 197 pinfo->palette[regno].red = red; in platinumfb_setcolreg() 198 pinfo->palette[regno].green = green; in platinumfb_setcolreg() 199 pinfo->palette[regno].blue = blue; in platinumfb_setcolreg() 201 out_8(&cmap_regs->addr, regno); /* tell clut what addr to fill */ in platinumfb_setcolreg() 206 if (regno < 16) { in platinumfb_setcolreg() 211 pal[regno] = (regno << 10) | (regno << 5) | regno; in platinumfb_setcolreg() 214 i = (regno << 8) | regno; in platinumfb_setcolreg() [all …]
|
D | clps711xfb.c | 50 clps7111fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in clps7111fb_setcolreg() argument 55 if (regno >= (1 << info->var.bits_per_pixel)) in clps7111fb_setcolreg() 72 shift = 4 * (regno & 7); in clps7111fb_setcolreg() 77 regno = regno < 8 ? PALLSW : PALMSW; in clps7111fb_setcolreg() 79 pal = clps_readl(regno); in clps7111fb_setcolreg() 81 clps_writel(pal, regno); in clps7111fb_setcolreg()
|
D | vesafb.c | 81 static int vesa_setpalette(int regno, unsigned red, unsigned green, in vesa_setpalette() argument 91 outb_p(regno, dac_reg); in vesa_setpalette() 115 "d" (regno), /* EDX */ in vesa_setpalette() 125 static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green, in vesafb_setcolreg() argument 138 if (regno >= info->cmap.len) in vesafb_setcolreg() 142 err = vesa_setpalette(regno,red,green,blue); in vesafb_setcolreg() 143 else if (regno < 16) { in vesafb_setcolreg() 148 ((u32*) (info->pseudo_palette))[regno] = in vesafb_setcolreg() 154 ((u32*) (info->pseudo_palette))[regno] = in vesafb_setcolreg() 165 ((u32 *)(info->pseudo_palette))[regno] = in vesafb_setcolreg()
|
D | q40fb.c | 54 static int q40fb_setcolreg(unsigned regno, unsigned red, unsigned green, in q40fb_setcolreg() argument 64 if (regno > 255) in q40fb_setcolreg() 70 if (regno < 16) { in q40fb_setcolreg() 71 ((u32 *)info->pseudo_palette)[regno] = ((red & 31) <<6) | in q40fb_setcolreg()
|
D | cyber2000fb.c | 276 cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in cyber2000fb_setcolreg() argument 298 if (regno >= NR_PALETTE) in cyber2000fb_setcolreg() 305 cfb->palette[regno].red = red; in cyber2000fb_setcolreg() 306 cfb->palette[regno].green = green; in cyber2000fb_setcolreg() 307 cfb->palette[regno].blue = blue; in cyber2000fb_setcolreg() 309 cyber2000fb_writeb(regno, 0x3c8, cfb); in cyber2000fb_setcolreg() 330 if (var->green.length == 6 && regno < 64) { in cyber2000fb_setcolreg() 331 cfb->palette[regno << 2].green = green; in cyber2000fb_setcolreg() 337 cyber2000fb_writeb(regno << 2, 0x3c8, cfb); in cyber2000fb_setcolreg() 338 cyber2000fb_writeb(cfb->palette[regno >> 1].red, in cyber2000fb_setcolreg() [all …]
|
D | valkyriefb.c | 113 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 227 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in valkyriefb_setcolreg() argument 234 if (regno > 255) in valkyriefb_setcolreg() 241 out_8(&p->cmap_regs->addr, regno); in valkyriefb_setcolreg() 248 if (regno < 16 && par->cmode == CMODE_16) in valkyriefb_setcolreg() 249 ((u32 *)info->pseudo_palette)[regno] = in valkyriefb_setcolreg() 250 (regno << 10) | (regno << 5) | regno; in valkyriefb_setcolreg()
|
D | offb.c | 100 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument 112 if (regno >= 16) in offb_setcolreg() 123 pal[regno] = value; in offb_setcolreg() 127 if (regno > 255) in offb_setcolreg() 139 writeb(regno, par->cmap_adr); in offb_setcolreg() 150 out_8(par->cmap_adr + 0xb0, regno); in offb_setcolreg() 159 out_8(par->cmap_adr + 0xb0, regno); in offb_setcolreg() 164 out_8(par->cmap_adr + 0xb0, regno); in offb_setcolreg() 168 out_le32(((unsigned __iomem *) par->cmap_adr) + regno, in offb_setcolreg() 174 writeb(regno, par->cmap_adr + AVIVO_DC_LUT_RW_INDEX); in offb_setcolreg() [all …]
|
D | g364fb.c | 108 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, 175 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, in g364fb_setcolreg() argument 180 if (regno > 255) in g364fb_setcolreg() 187 ptr[regno << 1] = (red << 16) | (green << 8) | blue; in g364fb_setcolreg()
|
D | fm2fb.c | 164 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 195 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in fm2fb_setcolreg() argument 198 if (regno < 16) { in fm2fb_setcolreg() 203 ((u32*)(info->pseudo_palette))[regno] = (red << 16) | in fm2fb_setcolreg()
|
D | asiliantfb.c | 95 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 306 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument 309 if (regno > 255) in asiliantfb_setcolreg() 316 writeb(regno, mmio_base + 0x790); in asiliantfb_setcolreg() 322 if (regno < 16) { in asiliantfb_setcolreg() 325 ((u32 *)(p->pseudo_palette))[regno] = in asiliantfb_setcolreg() 331 ((u32 *)(p->pseudo_palette))[regno] = in asiliantfb_setcolreg() 337 ((u32 *)(p->pseudo_palette))[regno] = in asiliantfb_setcolreg()
|
D | controlfb.c | 128 static int controlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 342 static int controlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in controlfb_setcolreg() argument 348 if (regno > 255) in controlfb_setcolreg() 355 out_8(&p->cmap_regs->addr, regno); /* tell clut what addr to fill */ in controlfb_setcolreg() 360 if (regno < 16) { in controlfb_setcolreg() 364 p->pseudo_palette[regno] = in controlfb_setcolreg() 365 (regno << 10) | (regno << 5) | regno; in controlfb_setcolreg() 368 i = (regno << 8) | regno; in controlfb_setcolreg() 369 p->pseudo_palette[regno] = (i << 16) | i; in controlfb_setcolreg()
|
/drivers/infiniband/hw/qib/ |
D | qib_7220.h | 121 const u16 regno) in qib_read_kreg32() argument 125 return readl((u32 __iomem *)&dd->kregbase[regno]); in qib_read_kreg32() 129 const u16 regno) in qib_read_kreg64() argument 134 return readq(&dd->kregbase[regno]); in qib_read_kreg64() 138 const u16 regno, u64 value) in qib_write_kreg() argument 141 writeq(value, &dd->kregbase[regno]); in qib_write_kreg()
|
/drivers/video/i810/ |
D | i810_main.c | 89 static int i810fb_getcolreg (u8 regno, u8 *red, u8 *green, u8 *blue, 91 static int i810fb_setcolreg (unsigned regno, unsigned red, unsigned green, unsigned blue, 439 static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue, in i810_write_dac() argument 442 i810_writeb(CLUT_INDEX_WRITE, mmio, regno); in i810_write_dac() 448 static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue, in i810_read_dac() argument 451 i810_writeb(CLUT_INDEX_READ, mmio, regno); in i810_read_dac() 1198 static int i810fb_getcolreg(u8 regno, u8 *red, u8 *green, u8 *blue, in i810fb_getcolreg() argument 1206 if ((info->var.green.length == 5 && regno > 31) || in i810fb_getcolreg() 1207 (info->var.green.length == 6 && regno > 63)) in i810fb_getcolreg() 1216 i810_read_dac(regno * 8, red, green, blue, mmio); in i810fb_getcolreg() [all …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_kernel.h | 1121 ipath_ureg regno, int port) in ipath_read_ureg32() argument 1126 return readl(regno + (u64 __iomem *) in ipath_read_ureg32() 1142 ipath_ureg regno, u64 value, int port) in ipath_write_ureg() argument 1148 writeq(value, &ubase[regno]); in ipath_write_ureg() 1152 ipath_kreg regno) in ipath_read_kreg32() argument 1156 return readl((u32 __iomem *) & dd->ipath_kregbase[regno]); in ipath_read_kreg32() 1160 ipath_kreg regno) in ipath_read_kreg64() argument 1165 return readq(&dd->ipath_kregbase[regno]); in ipath_read_kreg64() 1169 ipath_kreg regno, u64 value) in ipath_write_kreg() argument 1172 writeq(value, &dd->ipath_kregbase[regno]); in ipath_write_kreg() [all …]
|
/drivers/video/aty/ |
D | aty128fb.c | 435 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 1625 static void aty128_st_pal(u_int regno, u_int red, u_int green, u_int blue, in aty128_st_pal() argument 1639 aty_st_8(PALETTE_INDEX, regno); in aty128_st_pal() 1646 aty_st_8(PALETTE_INDEX, regno); in aty128_st_pal() 2234 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in aty128fb_setcolreg() argument 2239 if (regno > 255 in aty128fb_setcolreg() 2240 || (par->crtc.depth == 16 && regno > 63) in aty128fb_setcolreg() 2241 || (par->crtc.depth == 15 && regno > 31)) in aty128fb_setcolreg() 2248 if (regno < 16) { in aty128fb_setcolreg() 2254 pal[regno] = (regno << 10) | (regno << 5) | regno; in aty128fb_setcolreg() [all …]
|
D | radeon_base.c | 1055 static int radeon_setcolreg (unsigned regno, unsigned red, unsigned green, in radeon_setcolreg() argument 1063 if (regno > 255) in radeon_setcolreg() 1069 rinfo->palette[regno].red = red; in radeon_setcolreg() 1070 rinfo->palette[regno].green = green; in radeon_setcolreg() 1071 rinfo->palette[regno].blue = blue; in radeon_setcolreg() 1074 pindex = regno; in radeon_setcolreg() 1080 pindex = regno * 8; in radeon_setcolreg() 1082 if (rinfo->depth == 16 && regno > 63) in radeon_setcolreg() 1084 if (rinfo->depth == 15 && regno > 31) in radeon_setcolreg() 1093 (rinfo->palette[regno>>1].red << 16) | in radeon_setcolreg() [all …]
|
/drivers/leds/ |
D | leds-lm355x.c | 49 u8 regno; member 215 ret = regmap_read(chip->regmap, preg[REG_FLAG].regno, &chip->last_flag); in lm355x_control() 229 regmap_update_bits(chip->regmap, preg[REG_TORCH_CTRL].regno, in lm355x_control() 239 preg[REG_TORCH_CFG].regno, in lm355x_control() 254 regmap_update_bits(chip->regmap, preg[REG_FLASH_CTRL].regno, in lm355x_control() 268 preg[REG_STROBE_CFG].regno, in lm355x_control() 282 regmap_update_bits(chip->regmap, preg[REG_INDI_CTRL].regno, in lm355x_control() 292 preg[REG_INDI_CFG].regno, in lm355x_control() 307 ret = regmap_update_bits(chip->regmap, preg[REG_OPMODE].regno, in lm355x_control() 536 regmap_write(chip->regmap, preg[REG_OPMODE].regno, 0); in lm355x_remove()
|
/drivers/gpu/drm/ast/ |
D | ast_fb.c | 272 u16 blue, int regno) in ast_fb_gamma_set() argument 275 ast_crtc->lut_r[regno] = red >> 8; in ast_fb_gamma_set() 276 ast_crtc->lut_g[regno] = green >> 8; in ast_fb_gamma_set() 277 ast_crtc->lut_b[regno] = blue >> 8; in ast_fb_gamma_set() 281 u16 *blue, int regno) in ast_fb_gamma_get() argument 284 *red = ast_crtc->lut_r[regno] << 8; in ast_fb_gamma_get() 285 *green = ast_crtc->lut_g[regno] << 8; in ast_fb_gamma_get() 286 *blue = ast_crtc->lut_b[regno] << 8; in ast_fb_gamma_get()
|
/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 55 static int psbfb_setcolreg(unsigned regno, unsigned red, unsigned green, in psbfb_setcolreg() argument 66 if (regno > 255) in psbfb_setcolreg() 79 if (regno < 16) { in psbfb_setcolreg() 82 ((uint32_t *) info->pseudo_palette)[regno] = v; in psbfb_setcolreg() 86 ((uint32_t *) info->pseudo_palette)[regno] = v; in psbfb_setcolreg() 523 u16 blue, int regno) in psbfb_gamma_set() argument 527 intel_crtc->lut_r[regno] = red >> 8; in psbfb_gamma_set() 528 intel_crtc->lut_g[regno] = green >> 8; in psbfb_gamma_set() 529 intel_crtc->lut_b[regno] = blue >> 8; in psbfb_gamma_set() 533 u16 *green, u16 *blue, int regno) in psbfb_gamma_get() argument [all …]
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_mode.c | 409 u16 blue, int regno) in cirrus_crtc_fb_gamma_set() argument 413 cirrus_crtc->lut_r[regno] = red; in cirrus_crtc_fb_gamma_set() 414 cirrus_crtc->lut_g[regno] = green; in cirrus_crtc_fb_gamma_set() 415 cirrus_crtc->lut_b[regno] = blue; in cirrus_crtc_fb_gamma_set() 420 u16 *blue, int regno) in cirrus_crtc_fb_gamma_get() argument 424 *red = cirrus_crtc->lut_r[regno]; in cirrus_crtc_fb_gamma_get() 425 *green = cirrus_crtc->lut_g[regno]; in cirrus_crtc_fb_gamma_get() 426 *blue = cirrus_crtc->lut_b[regno]; in cirrus_crtc_fb_gamma_get()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_fbcon.c | 216 u16 blue, int regno) in nouveau_fbcon_gamma_set() argument 220 nv_crtc->lut.r[regno] = red; in nouveau_fbcon_gamma_set() 221 nv_crtc->lut.g[regno] = green; in nouveau_fbcon_gamma_set() 222 nv_crtc->lut.b[regno] = blue; in nouveau_fbcon_gamma_set() 226 u16 *blue, int regno) in nouveau_fbcon_gamma_get() argument 230 *red = nv_crtc->lut.r[regno]; in nouveau_fbcon_gamma_get() 231 *green = nv_crtc->lut.g[regno]; in nouveau_fbcon_gamma_get() 232 *blue = nv_crtc->lut.b[regno]; in nouveau_fbcon_gamma_get()
|