/linux-2.4.37.9/arch/cris/kernel/ |
D | kgdb.c | 306 static int write_register (int regno, char *val); 310 static write_stack_register (int thread_id, int regno, char *valptr); 314 static int read_register (char regno, unsigned int *valptr); 616 write_register (int regno, char *val) in write_register() argument 621 if (regno >= R0 && regno <= PC) { in write_register() 623 hex2mem ((unsigned char *)current_reg + regno * sizeof(unsigned int), in write_register() 626 else if (regno == P0 || regno == VR || regno == P4 || regno == P8) { in write_register() 630 else if (regno == CCR) { in write_register() 633 hex2mem ((unsigned char *)&(current_reg->ccr) + (regno-CCR) * sizeof(unsigned short), in write_register() 636 else if (regno >= MOF && regno <= USP) { in write_register() [all …]
|
D | ptrace.c | 64 static inline long get_reg(struct task_struct *task, unsigned int regno) in get_reg() argument 70 if (regno == PT_USP) in get_reg() 72 else if (regno < PT_MAX) in get_reg() 73 return ((unsigned long *)user_regs(task))[regno]; in get_reg() 81 static inline int put_reg(struct task_struct *task, unsigned int regno, in put_reg() argument 84 if (regno == PT_USP) in put_reg() 86 else if (regno < PT_MAX) in put_reg() 87 ((unsigned long *)user_regs(task))[regno] = data; in put_reg()
|
/linux-2.4.37.9/drivers/video/ |
D | macfb.c | 69 static int (*macfb_setpalette) (unsigned int regno, unsigned int red, 71 static int valkyrie_setpalette (unsigned int regno, unsigned int red, 73 static int dafb_setpalette (unsigned int regno, unsigned int red, 75 static int rbv_setpalette (unsigned int regno, unsigned int red, 77 static int mdc_setpalette (unsigned int regno, unsigned int red, 79 static int toby_setpalette (unsigned int regno, unsigned int red, 81 static int civic_setpalette (unsigned int regno, unsigned int red, 83 static int csc_setpalette (unsigned int regno, unsigned int red, 341 static int valkyrie_setpalette (unsigned int regno, unsigned int red, in valkyrie_setpalette() argument 354 nubus_writeb(regno, &valkyrie_cmap_regs->addr); in valkyrie_setpalette() [all …]
|
D | fm2fb.c | 210 static int fm2fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 212 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 483 static int fm2fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in fm2fb_getcolreg() argument 486 if (regno > 15) in fm2fb_getcolreg() 488 *red = (palette[regno].red<<8) | palette[regno].red; in fm2fb_getcolreg() 489 *green = (palette[regno].green<<8) | palette[regno].green; in fm2fb_getcolreg() 490 *blue = (palette[regno].blue<<8) | palette[regno].blue; in fm2fb_getcolreg() 502 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in fm2fb_setcolreg() argument 505 if (regno > 15) in fm2fb_setcolreg() 510 palette[regno].red = red; in fm2fb_setcolreg() [all …]
|
D | tx3912fb.c | 79 static int tx3912fb_getcolreg(u_int regno, u_int *red, u_int *green, 81 static int tx3912fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 478 static int tx3912fb_getcolreg(u_int regno, u_int *red, u_int *green, in tx3912fb_getcolreg() argument 481 if (regno > 255) in tx3912fb_getcolreg() 488 grey = regno * 255 / 15; in tx3912fb_getcolreg() 499 *red = (palette[regno].red<<8) | palette[regno].red; in tx3912fb_getcolreg() 500 *green = (palette[regno].green<<8) | palette[regno].green; in tx3912fb_getcolreg() 501 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tx3912fb_getcolreg() 511 static int tx3912fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tx3912fb_setcolreg() argument 514 if (regno > 255) in tx3912fb_setcolreg() [all …]
|
D | igafb.c | 312 static int iga_getcolreg(unsigned regno, unsigned *red, unsigned *green, in iga_getcolreg() argument 322 if (regno >= info->video_cmap_len) in iga_getcolreg() 325 *red = info->palette[regno].red; in iga_getcolreg() 326 *green = info->palette[regno].green; in iga_getcolreg() 327 *blue = info->palette[regno].blue; in iga_getcolreg() 332 static int iga_setcolreg(unsigned regno, unsigned red, unsigned green, in iga_setcolreg() argument 345 if (regno >= info->video_cmap_len) in iga_setcolreg() 348 info->palette[regno].red = red; in iga_setcolreg() 349 info->palette[regno].green = green; in iga_setcolreg() 350 info->palette[regno].blue = blue; in iga_setcolreg() [all …]
|
D | offb.c | 124 static int offb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 126 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 725 static int offb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in offb_getcolreg() argument 730 if (!info2->cmap_adr || regno > 255) in offb_getcolreg() 733 *red = (info2->palette[regno].red<<8) | info2->palette[regno].red; in offb_getcolreg() 734 *green = (info2->palette[regno].green<<8) | info2->palette[regno].green; in offb_getcolreg() 735 *blue = (info2->palette[regno].blue<<8) | info2->palette[regno].blue; in offb_getcolreg() 747 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument 752 if (!info2->cmap_adr || regno > 255) in offb_setcolreg() 759 info2->palette[regno].red = red; in offb_setcolreg() [all …]
|
D | g364fb.c | 118 static int g364fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 120 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 444 static int g364fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in g364fb_getcolreg() argument 447 if (regno > 255) in g364fb_getcolreg() 449 *red = (palette[regno].red << 8) | palette[regno].red; in g364fb_getcolreg() 450 *green = (palette[regno].green << 8) | palette[regno].green; in g364fb_getcolreg() 451 *blue = (palette[regno].blue << 8) | palette[regno].blue; in g364fb_getcolreg() 459 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in g364fb_setcolreg() argument 464 if (regno > 255) in g364fb_setcolreg() 470 palette[regno].red = red; in g364fb_setcolreg() [all …]
|
D | vesafb.c | 289 static int vesa_getcolreg(unsigned regno, unsigned *red, unsigned *green, in vesa_getcolreg() argument 298 if (regno >= video_cmap_len) in vesa_getcolreg() 301 *red = palette[regno].red; in vesa_getcolreg() 302 *green = palette[regno].green; in vesa_getcolreg() 303 *blue = palette[regno].blue; in vesa_getcolreg() 310 static void vesa_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vesa_setpalette() argument 326 "d" (regno), /* EDX */ in vesa_setpalette() 331 outb_p(regno, dac_reg); in vesa_setpalette() 342 static int vesa_setcolreg(unsigned regno, unsigned red, unsigned green, in vesa_setcolreg() argument 353 if (regno >= video_cmap_len) in vesa_setcolreg() [all …]
|
D | platinumfb.c | 147 static int platinum_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 149 static int platinum_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 386 static int platinum_getcolreg(u_int regno, u_int *red, u_int *green, in platinum_getcolreg() argument 391 if (regno > 255) in platinum_getcolreg() 394 *red = (info->palette[regno].red<<8) | info->palette[regno].red; in platinum_getcolreg() 395 *green = (info->palette[regno].green<<8) | info->palette[regno].green; in platinum_getcolreg() 396 *blue = (info->palette[regno].blue<<8) | info->palette[regno].blue; in platinum_getcolreg() 401 static int platinum_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in platinum_setcolreg() argument 407 if (regno > 255) in platinum_setcolreg() 414 info->palette[regno].red = red; in platinum_setcolreg() [all …]
|
D | vfb.c | 112 static int vfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 114 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 556 static int vfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in vfb_getcolreg() argument 559 if (regno > 255) in vfb_getcolreg() 561 *red = (palette[regno].red<<8) | palette[regno].red; in vfb_getcolreg() 562 *green = (palette[regno].green<<8) | palette[regno].green; in vfb_getcolreg() 563 *blue = (palette[regno].blue<<8) | palette[regno].blue; in vfb_getcolreg() 575 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in vfb_setcolreg() argument 578 if (regno > 255) in vfb_setcolreg() 583 palette[regno].red = red; in vfb_setcolreg() [all …]
|
D | valkyriefb.c | 170 static int valkyriefb_getcolreg(u_int regno, u_int *red, u_int *green, 172 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 360 static int valkyriefb_getcolreg(u_int regno, u_int *red, u_int *green, in valkyriefb_getcolreg() argument 365 if (regno > 255) in valkyriefb_getcolreg() 367 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in valkyriefb_getcolreg() 368 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in valkyriefb_getcolreg() 369 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in valkyriefb_getcolreg() 374 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in valkyriefb_setcolreg() argument 381 if (regno > 255) in valkyriefb_setcolreg() 386 p->palette[regno].red = red; in valkyriefb_setcolreg() [all …]
|
D | skeletonfb.c | 165 static int xxx_getcolreg(unsigned regno, unsigned *red, unsigned *green, in xxx_getcolreg() argument 179 static int xxx_setcolreg(unsigned regno, unsigned red, unsigned green, in xxx_setcolreg() argument 189 if (regno < 16) { in xxx_setcolreg() 194 ...fbcon_cmap.cfb16[regno] = ((red & 0xf800) >> 1) | in xxx_setcolreg() 198 ...fbcon_cmap.cfb16[regno] = (red & 0xf800) | in xxx_setcolreg() 202 ...fbcon_cmap.cfb24[regno] = ((red & 0xff00) << 8) | in xxx_setcolreg() 206 ...fbcon_cmap.cfb32[regno] = ((red & 0xff00) << 16) | in xxx_setcolreg()
|
D | acornfb.c | 337 acornfb_palette_write(u_int regno, union palette pal) in acornfb_palette_write() argument 343 acornfb_palette_encode(u_int regno, u_int red, u_int green, u_int blue, in acornfb_palette_encode() argument 349 pal.vidc.reg = regno; in acornfb_palette_encode() 357 acornfb_palette_decode(u_int regno, u_int *red, u_int *green, u_int *blue, in acornfb_palette_decode() argument 360 *red = EXTEND4(current_par.palette[regno].vidc.red); in acornfb_palette_decode() 361 *green = EXTEND4(current_par.palette[regno].vidc.green); in acornfb_palette_decode() 362 *blue = EXTEND4(current_par.palette[regno].vidc.blue); in acornfb_palette_decode() 363 *trans = current_par.palette[regno].vidc.trans ? -1 : 0; in acornfb_palette_decode() 517 acornfb_palette_write(u_int regno, union palette pal) in acornfb_palette_write() argument 519 vidc_writel(0x10000000 | regno); in acornfb_palette_write() [all …]
|
D | chipsfb.c | 142 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, 144 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 284 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, in chipsfb_getcolreg() argument 289 if (regno > 255) in chipsfb_getcolreg() 291 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in chipsfb_getcolreg() 292 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in chipsfb_getcolreg() 293 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in chipsfb_getcolreg() 298 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument 303 if (regno > 255) in chipsfb_setcolreg() 308 p->palette[regno].red = red; in chipsfb_setcolreg() [all …]
|
D | au1100fb.c | 253 static int au1100_getcolreg(unsigned regno, unsigned *red, unsigned *green, in au1100_getcolreg() argument 260 if (regno > 255) in au1100_getcolreg() 263 *red = i->palette[regno].red; in au1100_getcolreg() 264 *green = i->palette[regno].green; in au1100_getcolreg() 265 *blue = i->palette[regno].blue; in au1100_getcolreg() 271 static int au1100_setcolreg(unsigned regno, unsigned red, unsigned green, in au1100_setcolreg() argument 278 if (regno > 255) in au1100_setcolreg() 281 i->palette[regno].red = red; in au1100_setcolreg() 282 i->palette[regno].green = green; in au1100_setcolreg() 283 i->palette[regno].blue = blue; in au1100_setcolreg() [all …]
|
D | q40fb.c | 173 static int q40_getcolreg(unsigned regno, unsigned *red, unsigned *green, in q40_getcolreg() argument 182 if (regno>=16) return 1; in q40_getcolreg() 185 *green = ((fbcon_cmap_cfb16[regno]>>11) & 31)<<11; in q40_getcolreg() 186 *red = ((fbcon_cmap_cfb16[regno]>>6) & 31)<<11; in q40_getcolreg() 187 *blue = ((fbcon_cmap_cfb16[regno]) & 63)<<10; in q40_getcolreg() 192 static int q40_setcolreg(unsigned regno, unsigned red, unsigned green, in q40_setcolreg() argument 205 if (regno < 16) { in q40_setcolreg() 206 fbcon_cmap_cfb16[regno] = ((red & 31) <<6) | in q40_setcolreg()
|
D | tgafb.c | 276 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 278 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 694 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in tgafb_getcolreg() argument 697 if (regno > 255) in tgafb_getcolreg() 699 *red = (palette[regno].red<<8) | palette[regno].red; in tgafb_getcolreg() 700 *green = (palette[regno].green<<8) | palette[regno].green; in tgafb_getcolreg() 701 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tgafb_getcolreg() 707 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tgafb_setcolreg() argument 710 if (regno > 255) in tgafb_setcolreg() 715 palette[regno].red = red; in tgafb_setcolreg() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | scc.h | 446 int regno, in _SCCwrite() argument 449 switch( regno ) { in _SCCwrite() 486 *port->ctrlp = regno; in _SCCwrite() 495 *port->ctrlp = regno; in _SCCwrite() 497 scc_shadow[0][regno] = val; in _SCCwrite() 503 *port->ctrlp = regno; in _SCCwrite() 505 shadow[regno] = val; in _SCCwrite() 514 *port->ctrlp = regno; in _SCCwrite() 515 shadow[regno] = val; in _SCCwrite() 521 printk( "Bad SCC write access to WR%d\n", regno ); in _SCCwrite() [all …]
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | ptrace.c | 74 unsigned long regno, unsigned long value) in putreg() argument 76 switch (regno >> 2) { in putreg() 104 if (regno > GS*4) in putreg() 105 regno -= 2*4; in putreg() 106 put_stack_long(child, regno - sizeof(struct pt_regs), value); in putreg() 111 unsigned long regno) in getreg() argument 115 switch (regno >> 2) { in getreg() 129 if (regno > GS*4) in getreg() 130 regno -= 2*4; in getreg() 131 regno = regno - sizeof(struct pt_regs); in getreg() [all …]
|
/linux-2.4.37.9/arch/alpha/kernel/ |
D | ptrace.c | 99 get_reg_addr(struct task_struct * task, unsigned long regno) in get_reg_addr() argument 103 if (regno == 30) { in get_reg_addr() 105 } else if (regno == 65) { in get_reg_addr() 107 } else if (regno == 31 || regno > 65) { in get_reg_addr() 111 addr = (long *)((long)task + regoff[regno]); in get_reg_addr() 120 get_reg(struct task_struct * task, unsigned long regno) in get_reg() argument 123 if (regno == 63) { in get_reg() 124 unsigned long fpcr = *get_reg_addr(task, regno); in get_reg() 129 return *get_reg_addr(task, regno); in get_reg() 136 put_reg(struct task_struct *task, unsigned long regno, long data) in put_reg() argument [all …]
|
/linux-2.4.37.9/arch/x86_64/ia32/ |
D | ptrace32.c | 35 static int putreg32(struct task_struct *child, unsigned regno, u32 val) in putreg32() argument 40 switch (regno) { in putreg32() 91 [(regno-offsetof(struct user32, u_debugreg[0]))/4] in putreg32() 105 if (regno > sizeof(struct user32) || (regno & 3)) in putreg32() 119 static int getreg32(struct task_struct *child, unsigned regno, u32 *val) in getreg32() argument 123 switch (regno) { in getreg32() 152 *val = child->thread.debugreg[(regno-offsetof(struct user32, u_debugreg[0]))/4]; in getreg32() 156 if (regno > sizeof(struct user32) || (regno & 3)) in getreg32()
|
/linux-2.4.37.9/arch/m68k/kernel/ |
D | ptrace.c | 59 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 63 if (regno == PT_USP) in get_reg() 65 else if (regno < sizeof(regoff)/sizeof(regoff[0])) in get_reg() 66 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg() 75 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 80 if (regno == PT_USP) in put_reg() 82 else if (regno < sizeof(regoff)/sizeof(regoff[0])) in put_reg() 83 addr = (unsigned long *) (task->thread.esp0 + regoff[regno]); in put_reg()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | ptrace.c | 50 static inline unsigned long get_reg(struct task_struct *task, int regno) in get_reg() argument 52 if (regno < sizeof(struct pt_regs) / sizeof(unsigned long) in get_reg() 54 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 61 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 64 if (regno <= PT_MQ && task->thread.regs != NULL) { in put_reg() 65 if (regno == PT_MSR) in put_reg() 68 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg()
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | ptrace.c | 47 static inline unsigned long get_reg(struct task_struct *task, int regno) in get_reg() argument 49 if (regno < sizeof(struct pt_regs) / sizeof(unsigned long)) in get_reg() 50 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 57 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 60 if (regno < PT_SOFTE) { in put_reg() 61 if (regno == PT_MSR) in put_reg() 64 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg()
|