/drivers/infiniband/hw/qib/ |
H A D | qib_7220.h | 121 const u16 regno) 125 return readl((u32 __iomem *)&dd->kregbase[regno]); 129 const u16 regno) 134 return readq(&dd->kregbase[regno]); 138 const u16 regno, u64 value) 141 writeq(value, &dd->kregbase[regno]); 120 qib_read_kreg32(const struct qib_devdata *dd, const u16 regno) argument 128 qib_read_kreg64(const struct qib_devdata *dd, const u16 regno) argument 137 qib_write_kreg(const struct qib_devdata *dd, const u16 regno, u64 value) argument
|
/drivers/video/fbdev/ |
H A D | maxinefb.c | 64 void maxinefb_ims332_write_register(int regno, register unsigned int val) argument 69 wptr = regs + 0xa0000 + (regno << 4); 74 unsigned int maxinefb_ims332_read_register(int regno) argument 80 rptr = regs + 0x80000 + (regno << 4); 88 static int maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green, argument 94 if (regno > 255) 103 maxinefb_ims332_write_register(IMS332_REG_COLOR_PALETTE + regno,
|
H A D | macfb.c | 55 static int (*macfb_setpalette)(unsigned int regno, unsigned int red, 151 static int dafb_setpalette(unsigned int regno, unsigned int red, argument 164 if (regno != lastreg + 1) { 172 for (i = 0; i < regno; i++) { 192 lastreg = regno; 197 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, argument 215 regno = (regno << (8 - bpp)) | (0xFF >> bpp); 216 nubus_writeb(regno, &v8_brazil_cmap_regs->addr); 231 static int rbv_setpalette(unsigned int regno, unsigne argument 268 mdc_setpalette(unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *info) argument 291 toby_setpalette(unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *info) argument 319 jet_setpalette(unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *info) argument 349 civic_setpalette(unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *info) argument 430 csc_setpalette(unsigned int regno, unsigned int red, unsigned int green, unsigned int blue, struct fb_info *info) argument 448 macfb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fb_info) argument [all...] |
H A D | q40fb.c | 54 static int q40fb_setcolreg(unsigned regno, unsigned red, unsigned green, argument 61 * Return != 0 for invalid regno. 64 if (regno > 255) 70 if (regno < 16) { 71 ((u32 *)info->pseudo_palette)[regno] = ((red & 31) <<6) |
|
H A D | igafb.c | 276 static int igafb_setcolreg(unsigned regno, unsigned red, unsigned green, argument 284 * != 0 for invalid regno. 288 if (regno >= info->cmap.len) 291 pci_outb(par, regno, DAC_W_INDEX); 296 if (regno < 16) { 299 ((u16*)(info->pseudo_palette))[regno] = 300 (regno << 10) | (regno << 5) | regno; 303 ((u32*)(info->pseudo_palette))[regno] [all...] |
H A D | clps711xfb.c | 47 * Set a single color register. Return != 0 for invalid regno. 50 clps7111fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 55 if (regno >= (1 << info->var.bits_per_pixel)) 72 shift = 4 * (regno & 7); 77 regno = regno < 8 ? PALLSW : PALMSW; 79 pal = clps_readl(regno); 81 clps_writel(pal, regno);
|
H A D | fm2fb.c | 164 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 193 * entries in the var structure). Return != 0 for invalid regno. 195 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 198 if (regno < 16) { 203 ((u32*)(info->pseudo_palette))[regno] = (red << 16) |
|
H A 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, argument 190 if (regno > 255) 197 pinfo->palette[regno].red = red; 198 pinfo->palette[regno].green = green; 199 pinfo->palette[regno].blue = blue; 201 out_8(&cmap_regs->addr, regno); /* tell clut what addr to fill */ 206 if (regno < 16) { 211 pal[regno] = (regno << 1 [all...] |
H A D | vesafb.c | 81 static int vesa_setpalette(int regno, unsigned red, unsigned green, argument 91 outb_p(regno, dac_reg); 115 "d" (regno), /* EDX */ 125 static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green, argument 135 * != 0 for invalid regno. 138 if (regno >= info->cmap.len) 142 err = vesa_setpalette(regno,red,green,blue); 143 else if (regno < 16) { 148 ((u32*) (info->pseudo_palette))[regno] = 154 ((u32*) (info->pseudo_palette))[regno] [all...] |
H A D | s1d13xxxfb.c | 98 s1d13xxxfb_readreg(struct s1d13xxxfb_par *par, u16 regno) argument 101 regno=((regno & 1) ? (regno & ~1L) : (regno + 1)); 103 return readb(par->regs + regno); 107 s1d13xxxfb_writereg(struct s1d13xxxfb_par *par, u16 regno, u8 value) argument 110 regno=((regno & 1) ? (regno 271 s1d13xxxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, u_int transp, struct fb_info *info) argument [all...] |
H A D | g364fb.c | 108 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, 173 * Set a single color register. Return != 0 for invalid regno. 175 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, argument 180 if (regno > 255) 187 ptr[regno << 1] = (red << 16) | (green << 8) | blue;
|
H A D | clps711x-fb.c | 48 static int clps711x_fb_setcolreg(u_int regno, u_int red, u_int green, argument 54 if (regno >= BIT(info->var.bits_per_pixel)) 57 shift = 4 * (regno & 7); 64 regno = (regno < 8) ? CLPS711X_PALLSW : CLPS711X_PALMSW; 66 writel((readl(cfb->base + regno) & ~mask) | level, cfb->base + regno);
|
H A D | cyber2000fb.c | 273 * Set a single color register. Return != 0 for invalid regno. 276 cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 298 if (regno >= NR_PALETTE) 305 cfb->palette[regno].red = red; 306 cfb->palette[regno].green = green; 307 cfb->palette[regno].blue = blue; 309 cyber2000fb_writeb(regno, 0x3c8, cfb); 330 if (var->green.length == 6 && regno < 64) { 331 cfb->palette[regno << 2].green = green; 337 cyber2000fb_writeb(regno << [all...] |
H A D | valkyriefb.c | 112 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 228 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 236 if (regno > 255) 243 out_8(&p->cmap_regs->addr, regno); 250 if (regno < 16 && par->cmode == CMODE_16) 251 ((u32 *)info->pseudo_palette)[regno] = 252 (regno << 10) | (regno << 5) | regno;
|
H A D | 68328fb.c | 93 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 275 * entries in the var structure). Return != 0 for invalid regno. 278 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 281 if (regno >= 256) /* no. of hw registers */ 337 if (regno >= 16) 348 ((u32 *) (info->pseudo_palette))[regno] = v; 352 ((u32 *) (info->pseudo_palette))[regno] = v;
|
H A D | vfb.c | 119 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 295 * entries in the var structure). Return != 0 for invalid regno. 298 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 301 if (regno >= 256) /* no. of hw registers */ 360 if (regno >= 16) 371 ((u32 *) (info->pseudo_palette))[regno] = v; 375 ((u32 *) (info->pseudo_palette))[regno] = v;
|
/drivers/net/wan/lmc/ |
H A D | lmc.h | 11 devaddr, unsigned regno); 13 unsigned regno, unsigned data);
|
/drivers/gpu/drm/gma500/ |
H A D | framebuffer.c | 55 static int psbfb_setcolreg(unsigned regno, unsigned red, unsigned green, argument 66 if (regno > 255) 79 if (regno < 16) { 82 ((uint32_t *) info->pseudo_palette)[regno] = v; 86 ((uint32_t *) info->pseudo_palette)[regno] = v; 521 u16 blue, int regno) 525 gma_crtc->lut_r[regno] = red >> 8; 526 gma_crtc->lut_g[regno] = green >> 8; 527 gma_crtc->lut_b[regno] = blue >> 8; 531 u16 *green, u16 *blue, int regno) 520 psbfb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno) argument 530 psbfb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno) argument [all...] |
/drivers/gpu/drm/bochs/ |
H A D | bochs_fbdev.c | 170 u16 blue, int regno) 175 u16 *blue, int regno) 177 *red = regno; 178 *green = regno; 179 *blue = regno; 169 bochs_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno) argument 174 bochs_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno) argument
|
/drivers/gpu/drm/ast/ |
H A D | ast_fb.c | 274 u16 blue, int regno) 277 ast_crtc->lut_r[regno] = red >> 8; 278 ast_crtc->lut_g[regno] = green >> 8; 279 ast_crtc->lut_b[regno] = blue >> 8; 283 u16 *blue, int regno) 286 *red = ast_crtc->lut_r[regno] << 8; 287 *green = ast_crtc->lut_g[regno] << 8; 288 *blue = ast_crtc->lut_b[regno] << 8; 273 ast_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno) argument 282 ast_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno) argument
|
/drivers/gpu/drm/cirrus/ |
H A D | cirrus_mode.c | 412 u16 blue, int regno) 416 cirrus_crtc->lut_r[regno] = red; 417 cirrus_crtc->lut_g[regno] = green; 418 cirrus_crtc->lut_b[regno] = blue; 423 u16 *blue, int regno) 427 *red = cirrus_crtc->lut_r[regno]; 428 *green = cirrus_crtc->lut_g[regno]; 429 *blue = cirrus_crtc->lut_b[regno]; 411 cirrus_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, u16 blue, int regno) argument 422 cirrus_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, int regno) argument
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_kernel.h | 1113 * @regno: register number 1121 ipath_ureg regno, int port) 1126 return readl(regno + (u64 __iomem *) 1135 * @regno: register number 1142 ipath_ureg regno, u64 value, int port) 1148 writeq(value, &ubase[regno]); 1152 ipath_kreg regno) 1156 return readl((u32 __iomem *) & dd->ipath_kregbase[regno]); 1160 ipath_kreg regno) 1165 return readq(&dd->ipath_kregbase[regno]); 1120 ipath_read_ureg32(const struct ipath_devdata *dd, ipath_ureg regno, int port) argument 1141 ipath_write_ureg(const struct ipath_devdata *dd, ipath_ureg regno, u64 value, int port) argument 1151 ipath_read_kreg32(const struct ipath_devdata *dd, ipath_kreg regno) argument 1159 ipath_read_kreg64(const struct ipath_devdata *dd, ipath_kreg regno) argument 1168 ipath_write_kreg(const struct ipath_devdata *dd, ipath_kreg regno, u64 value) argument 1175 ipath_read_creg(const struct ipath_devdata *dd, ipath_sreg regno) argument 1186 ipath_read_creg32(const struct ipath_devdata *dd, ipath_sreg regno) argument 1196 ipath_write_creg(const struct ipath_devdata *dd, ipath_creg regno, u64 value) argument [all...] |
/drivers/leds/ |
H A D | leds-lm355x.c | 49 u8 regno; member in struct:lm355x_reg_data 215 ret = regmap_read(chip->regmap, preg[REG_FLAG].regno, &chip->last_flag); 229 regmap_update_bits(chip->regmap, preg[REG_TORCH_CTRL].regno, 239 preg[REG_TORCH_CFG].regno, 254 regmap_update_bits(chip->regmap, preg[REG_FLASH_CTRL].regno, 268 preg[REG_STROBE_CFG].regno, 282 regmap_update_bits(chip->regmap, preg[REG_INDI_CTRL].regno, 292 preg[REG_INDI_CFG].regno, 307 ret = regmap_update_bits(chip->regmap, preg[REG_OPMODE].regno, 535 regmap_write(chip->regmap, preg[REG_OPMODE].regno, [all...] |
/drivers/video/fbdev/i810/ |
H A 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, argument 442 i810_writeb(CLUT_INDEX_WRITE, mmio, regno); 448 static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue, argument 451 i810_writeb(CLUT_INDEX_READ, mmio, regno); 1187 * @regno: DAC index 1195 * Gets the red, green and blue values of the hardware DAC as pointed by @regno 1198 static int i810fb_getcolreg(u8 regno, u8 *red, u8 *green, u8 *blue, argument 1206 if ((info->var.green.length == 5 && regno > 3 1280 i810fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *info) argument [all...] |
/drivers/video/fbdev/aty/ |
H A D | aty128fb.c | 483 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 1673 static void aty128_st_pal(u_int regno, u_int red, u_int green, u_int blue, argument 1687 aty_st_8(PALETTE_INDEX, regno); 1694 aty_st_8(PALETTE_INDEX, regno); 2275 * entries in the var structure). Return != 0 for invalid regno. 2277 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, argument 2282 if (regno > 255 2283 || (par->crtc.depth == 16 && regno > 63) 2284 || (par->crtc.depth == 15 && regno > 31)) 2291 if (regno < 1 [all...] |