regno             109 arch/alpha/kernel/ptrace.c get_reg_addr(struct task_struct * task, unsigned long regno)
regno             113 arch/alpha/kernel/ptrace.c 	if (regno == 30) {
regno             115 arch/alpha/kernel/ptrace.c 	} else if (regno == 65) {
regno             117 arch/alpha/kernel/ptrace.c 	} else if (regno == 31 || regno > 65) {
regno             121 arch/alpha/kernel/ptrace.c 		addr = task_stack_page(task) + regoff[regno];
regno             130 arch/alpha/kernel/ptrace.c get_reg(struct task_struct * task, unsigned long regno)
regno             133 arch/alpha/kernel/ptrace.c 	if (regno == 63) {
regno             134 arch/alpha/kernel/ptrace.c 		unsigned long fpcr = *get_reg_addr(task, regno);
regno             140 arch/alpha/kernel/ptrace.c 	return *get_reg_addr(task, regno);
regno             147 arch/alpha/kernel/ptrace.c put_reg(struct task_struct *task, unsigned long regno, unsigned long data)
regno             149 arch/alpha/kernel/ptrace.c 	if (regno == 63) {
regno             155 arch/alpha/kernel/ptrace.c 	*get_reg_addr(task, regno) = data;
regno              17 arch/arc/kernel/kgdb.c 	int regno;
regno              19 arch/arc/kernel/kgdb.c 	for (regno = 0; regno <= 26; regno++)
regno              20 arch/arc/kernel/kgdb.c 		gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs);
regno              22 arch/arc/kernel/kgdb.c 	for (regno = 27; regno < GDB_MAX_REGS; regno++)
regno              23 arch/arc/kernel/kgdb.c 		gdb_regs[regno] = 0;
regno              40 arch/arc/kernel/kgdb.c 	int regno;
regno              42 arch/arc/kernel/kgdb.c 	for (regno = 0; regno <= 26; regno++)
regno              43 arch/arc/kernel/kgdb.c 		set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs);
regno              51 arch/arm/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno              53 arch/arm/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              56 arch/arm/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno              57 arch/arm/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno              58 arch/arm/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno              60 arch/arm/kernel/kgdb.c 		memset(mem, 0, dbg_reg_def[regno].size);
regno              61 arch/arm/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno              64 arch/arm/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno              66 arch/arm/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              69 arch/arm/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno              70 arch/arm/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno              71 arch/arm/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno              79 arch/arm/kernel/kgdb.c 	int regno;
regno              86 arch/arm/kernel/kgdb.c 	for (regno = 0; regno < GDB_MAX_REGS; regno++)
regno              87 arch/arm/kernel/kgdb.c 		gdb_regs[regno] = 0;
regno             103 arch/arm64/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno             105 arch/arm64/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             108 arch/arm64/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno             109 arch/arm64/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno             110 arch/arm64/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             112 arch/arm64/kernel/kgdb.c 		memset(mem, 0, dbg_reg_def[regno].size);
regno             113 arch/arm64/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno             116 arch/arm64/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno             118 arch/arm64/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             121 arch/arm64/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno             122 arch/arm64/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno             123 arch/arm64/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno            1811 arch/arm64/kernel/ptrace.c 	int regno;
regno            1818 arch/arm64/kernel/ptrace.c 	regno = (is_compat_task() ? 12 : 7);
regno            1819 arch/arm64/kernel/ptrace.c 	saved_reg = regs->regs[regno];
regno            1820 arch/arm64/kernel/ptrace.c 	regs->regs[regno] = dir;
regno            1827 arch/arm64/kernel/ptrace.c 	regs->regs[regno] = saved_reg;
regno              31 arch/c6x/kernel/ptrace.c static inline long get_reg(struct task_struct *task, int regno)
regno              35 arch/c6x/kernel/ptrace.c 	if (regno == PT_TSR || regno == PT_CSR)
regno              38 arch/c6x/kernel/ptrace.c 	return addr[regno];
regno              45 arch/c6x/kernel/ptrace.c 			  int regno,
regno              50 arch/c6x/kernel/ptrace.c 	if (regno != PT_TSR && regno != PT_CSR)
regno              51 arch/c6x/kernel/ptrace.c 		addr[regno] = data;
regno              34 arch/h8300/include/asm/ptrace.h extern long h8300_get_reg(struct task_struct *task, int regno);
regno              35 arch/h8300/include/asm/ptrace.h extern int h8300_put_reg(struct task_struct *task, int regno,
regno              35 arch/h8300/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno              37 arch/h8300/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              40 arch/h8300/kernel/kgdb.c 	switch (regno) {
regno              46 arch/h8300/kernel/kgdb.c 				       dbg_reg_def[regno].offset);
regno              49 arch/h8300/kernel/kgdb.c 		if (dbg_reg_def[regno].offset >= 0)
regno              50 arch/h8300/kernel/kgdb.c 			memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno              51 arch/h8300/kernel/kgdb.c 			       dbg_reg_def[regno].size);
regno              53 arch/h8300/kernel/kgdb.c 			memset(mem, 0, dbg_reg_def[regno].size);
regno              56 arch/h8300/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno              59 arch/h8300/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno              61 arch/h8300/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              64 arch/h8300/kernel/kgdb.c 	switch (regno) {
regno              70 arch/h8300/kernel/kgdb.c 			 dbg_reg_def[regno].offset) = *(u32 *)mem;
regno              73 arch/h8300/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno              74 arch/h8300/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno              39 arch/h8300/kernel/ptrace.c long h8300_get_reg(struct task_struct *task, int regno)
regno              41 arch/h8300/kernel/ptrace.c 	switch (regno) {
regno              47 arch/h8300/kernel/ptrace.c 				       register_offset[regno]);
regno              50 arch/h8300/kernel/ptrace.c 				      register_offset[regno]);
regno              54 arch/h8300/kernel/ptrace.c int h8300_put_reg(struct task_struct *task, int regno, unsigned long data)
regno              59 arch/h8300/kernel/ptrace.c 	switch (regno) {
regno              64 arch/h8300/kernel/ptrace.c 					     register_offset[regno]);
regno              69 arch/h8300/kernel/ptrace.c 				    register_offset[regno]) = data;
regno              73 arch/h8300/kernel/ptrace.c 					     register_offset[regno]);
regno              78 arch/h8300/kernel/ptrace.c 				    register_offset[regno]) = data;
regno              82 arch/h8300/kernel/ptrace.c 				   register_offset[regno]) = data;
regno             169 arch/h8300/kernel/ptrace_h.c 	int regno;
regno             191 arch/h8300/kernel/ptrace_h.c 		regno = (*pc >> 4) & 0x07;
regno             192 arch/h8300/kernel/ptrace_h.c 		if (regno == 0)
regno             195 arch/h8300/kernel/ptrace_h.c 			addr = h8300_get_reg(child, regno-1 + PT_ER1);
regno              78 arch/hexagon/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno              80 arch/hexagon/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              84 arch/hexagon/kernel/kgdb.c 		dbg_reg_def[regno].offset));
regno              86 arch/hexagon/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno              89 arch/hexagon/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno              91 arch/hexagon/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              94 arch/hexagon/kernel/kgdb.c 	*((unsigned long *) ((void *)regs + dbg_reg_def[regno].offset)) =
regno             246 arch/ia64/kernel/unaligned.c invala_gr (int regno)
regno             250 arch/ia64/kernel/unaligned.c 	switch (regno) {
regno             273 arch/ia64/kernel/unaligned.c invala_fr (int regno)
regno             277 arch/ia64/kernel/unaligned.c 	switch (regno) {
regno              75 arch/m68k/kernel/ptrace.c static inline long get_reg(struct task_struct *task, int regno)
regno              79 arch/m68k/kernel/ptrace.c 	if (regno == PT_USP)
regno              81 arch/m68k/kernel/ptrace.c 	else if (regno < ARRAY_SIZE(regoff))
regno              82 arch/m68k/kernel/ptrace.c 		addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
regno              86 arch/m68k/kernel/ptrace.c 	if (regno == PT_SR || regno == PT_PC) {
regno              90 arch/m68k/kernel/ptrace.c 		if (regno == PT_SR)
regno              99 arch/m68k/kernel/ptrace.c static inline int put_reg(struct task_struct *task, int regno,
regno             104 arch/m68k/kernel/ptrace.c 	if (regno == PT_USP)
regno             106 arch/m68k/kernel/ptrace.c 	else if (regno < ARRAY_SIZE(regoff))
regno             107 arch/m68k/kernel/ptrace.c 		addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
regno             111 arch/m68k/kernel/ptrace.c 	if (regno == PT_SR || regno == PT_PC) {
regno             115 arch/m68k/kernel/ptrace.c 		if (regno == PT_SR) {
regno             167 arch/m68k/kernel/ptrace.c 	int regno = addr >> 2; /* temporary hack. */
regno             176 arch/m68k/kernel/ptrace.c 		if (regno >= 0 && regno < 19) {
regno             177 arch/m68k/kernel/ptrace.c 			tmp = get_reg(child, regno);
regno             178 arch/m68k/kernel/ptrace.c 		} else if (regno >= 21 && regno < 49) {
regno             179 arch/m68k/kernel/ptrace.c 			tmp = child->thread.fp[regno - 21];
regno             183 arch/m68k/kernel/ptrace.c 			if (FPU_IS_EMU && (regno < 45) && !(regno % 3))
regno             187 arch/m68k/kernel/ptrace.c 		} else if (regno == 49) {
regno             189 arch/m68k/kernel/ptrace.c 		} else if (regno == 50) {
regno             191 arch/m68k/kernel/ptrace.c 		} else if (regno == 51) {
regno             204 arch/m68k/kernel/ptrace.c 		if (regno == PT_SR) {
regno             208 arch/m68k/kernel/ptrace.c 		if (regno >= 0 && regno < 19) {
regno             209 arch/m68k/kernel/ptrace.c 			if (put_reg(child, regno, data))
regno             211 arch/m68k/kernel/ptrace.c 		} else if (regno >= 21 && regno < 48) {
regno             215 arch/m68k/kernel/ptrace.c 			if (FPU_IS_EMU && (regno < 45) && !(regno % 3)) {
regno             220 arch/m68k/kernel/ptrace.c 			child->thread.fp[regno - 21] = data;
regno             131 arch/mips/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno             135 arch/mips/kernel/kgdb.c 	if (regno < 0 || regno >= DBG_MAX_REG_NUM)
regno             138 arch/mips/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1 && regno < 38) {
regno             139 arch/mips/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno             140 arch/mips/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             141 arch/mips/kernel/kgdb.c 	} else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) {
regno             145 arch/mips/kernel/kgdb.c 		if (regno == 70) {
regno             148 arch/mips/kernel/kgdb.c 			       dbg_reg_def[regno].size);
regno             150 arch/mips/kernel/kgdb.c 		} else if (regno == 71) {
regno             154 arch/mips/kernel/kgdb.c 		fp_reg = dbg_reg_def[regno].offset;
regno             156 arch/mips/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             164 arch/mips/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno             168 arch/mips/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             171 arch/mips/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1 && regno < 38) {
regno             173 arch/mips/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno             174 arch/mips/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             175 arch/mips/kernel/kgdb.c 	} else if (current && dbg_reg_def[regno].offset != -1 && regno < 72) {
regno             180 arch/mips/kernel/kgdb.c 		if (regno == 70) {
regno             183 arch/mips/kernel/kgdb.c 			       dbg_reg_def[regno].size);
regno             185 arch/mips/kernel/kgdb.c 		} else if (regno == 71) {
regno             187 arch/mips/kernel/kgdb.c 			memset(mem, 0, dbg_reg_def[regno].size);
regno             190 arch/mips/kernel/kgdb.c 		fp_reg = dbg_reg_def[regno].offset;
regno             192 arch/mips/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             196 arch/mips/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno              71 arch/nios2/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno              73 arch/nios2/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              76 arch/nios2/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno              77 arch/nios2/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno              78 arch/nios2/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno              80 arch/nios2/kernel/kgdb.c 		memset(mem, 0, dbg_reg_def[regno].size);
regno              82 arch/nios2/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno              85 arch/nios2/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno              87 arch/nios2/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno              90 arch/nios2/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno              91 arch/nios2/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno              92 arch/nios2/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             172 arch/powerpc/include/asm/ptrace.h extern int ptrace_get_reg(struct task_struct *task, int regno,
regno             174 arch/powerpc/include/asm/ptrace.h extern int ptrace_put_reg(struct task_struct *task, int regno,
regno             321 arch/powerpc/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno             323 arch/powerpc/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             326 arch/powerpc/kernel/kgdb.c 	if (regno < 32 || regno >= 64)
regno             329 arch/powerpc/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno             330 arch/powerpc/kernel/kgdb.c 				dbg_reg_def[regno].size);
regno             332 arch/powerpc/kernel/kgdb.c 	if (regno >= 32 && regno < 64) {
regno             336 arch/powerpc/kernel/kgdb.c 			memcpy(mem, &current->thread.evr[regno-32],
regno             337 arch/powerpc/kernel/kgdb.c 					dbg_reg_def[regno].size);
regno             340 arch/powerpc/kernel/kgdb.c 		memset(mem, 0, dbg_reg_def[regno].size);
regno             344 arch/powerpc/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno             347 arch/powerpc/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno             349 arch/powerpc/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             352 arch/powerpc/kernel/kgdb.c 	if (regno < 32 || regno >= 64)
regno             355 arch/powerpc/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno             356 arch/powerpc/kernel/kgdb.c 				dbg_reg_def[regno].size);
regno             358 arch/powerpc/kernel/kgdb.c 	if (regno >= 32 && regno < 64) {
regno             361 arch/powerpc/kernel/kgdb.c 		memcpy(&current->thread.evr[regno-32], mem,
regno             362 arch/powerpc/kernel/kgdb.c 				dbg_reg_def[regno].size);
regno             277 arch/powerpc/kernel/ptrace.c int ptrace_get_reg(struct task_struct *task, int regno, unsigned long *data)
regno             284 arch/powerpc/kernel/ptrace.c 	if (regno == PT_MSR) {
regno             289 arch/powerpc/kernel/ptrace.c 	if (regno == PT_DSCR)
regno             298 arch/powerpc/kernel/ptrace.c 	if (regno == PT_SOFTE) {
regno             305 arch/powerpc/kernel/ptrace.c 	if (regno < regs_max) {
regno             306 arch/powerpc/kernel/ptrace.c 		regno = array_index_nospec(regno, regs_max);
regno             307 arch/powerpc/kernel/ptrace.c 		*data = ((unsigned long *)task->thread.regs)[regno];
regno             317 arch/powerpc/kernel/ptrace.c int ptrace_put_reg(struct task_struct *task, int regno, unsigned long data)
regno             322 arch/powerpc/kernel/ptrace.c 	if (regno == PT_MSR)
regno             324 arch/powerpc/kernel/ptrace.c 	if (regno == PT_TRAP)
regno             326 arch/powerpc/kernel/ptrace.c 	if (regno == PT_DSCR)
regno             329 arch/powerpc/kernel/ptrace.c 	if (regno <= PT_MAX_PUT_REG) {
regno             330 arch/powerpc/kernel/ptrace.c 		regno = array_index_nospec(regno, PT_MAX_PUT_REG + 1);
regno             331 arch/powerpc/kernel/ptrace.c 		((unsigned long *)task->thread.regs)[regno] = data;
regno            1987 arch/powerpc/xmon/xmon.c 	static unsigned long regno;
regno            2016 arch/powerpc/xmon/xmon.c 		scanhex(&regno);
regno            2018 arch/powerpc/xmon/xmon.c 		read_spr(regno, &val);
regno            2020 arch/powerpc/xmon/xmon.c 		write_spr(regno, val);
regno            2021 arch/powerpc/xmon/xmon.c 		dump_one_spr(regno, true);
regno            2025 arch/powerpc/xmon/xmon.c 		scanhex(&regno);
regno            2026 arch/powerpc/xmon/xmon.c 		dump_one_spr(regno, true);
regno             193 arch/sh/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno             195 arch/sh/kernel/kgdb.c 	if (regno < 0 || regno >= DBG_MAX_REG_NUM)
regno             198 arch/sh/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno             199 arch/sh/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno             200 arch/sh/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             205 arch/sh/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno             207 arch/sh/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             210 arch/sh/kernel/kgdb.c 	if (dbg_reg_def[regno].size != -1)
regno             211 arch/sh/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno             212 arch/sh/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             214 arch/sh/kernel/kgdb.c 	switch (regno) {
regno             220 arch/sh/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno             726 arch/sh/kernel/traps_64.c 			unsigned long regno = (opcode >> 20) & 0x3f;
regno             728 arch/sh/kernel/traps_64.c 			if (regno >= 62)
regno             733 arch/sh/kernel/traps_64.c 			unsigned long regno = (opcode >> 4) & 0x3f;
regno             735 arch/sh/kernel/traps_64.c 			if (regno >= 62)
regno              36 arch/um/include/asm/ptrace-generic.h extern unsigned long getreg(struct task_struct *child, int regno);
regno              37 arch/um/include/asm/ptrace-generic.h extern int putreg(struct task_struct *child, int regno, unsigned long value);
regno              21 arch/x86/include/asm/debugreg.h static inline unsigned long native_get_debugreg(int regno)
regno              25 arch/x86/include/asm/debugreg.h 	switch (regno) {
regno              50 arch/x86/include/asm/debugreg.h static inline void native_set_debugreg(int regno, unsigned long value)
regno              52 arch/x86/include/asm/debugreg.h 	switch (regno) {
regno             114 arch/x86/include/asm/paravirt_types.h 	unsigned long (*get_debugreg)(int regno);
regno             115 arch/x86/include/asm/paravirt_types.h 	void (*set_debugreg)(int regno, unsigned long value);
regno              91 arch/x86/kernel/kgdb.c int dbg_set_reg(int regno, void *mem, struct pt_regs *regs)
regno              95 arch/x86/kernel/kgdb.c 	    regno == GDB_SS || regno == GDB_FS || regno == GDB_GS ||
regno              97 arch/x86/kernel/kgdb.c 	    regno == GDB_SP || regno == GDB_ORIG_AX)
regno             100 arch/x86/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno             101 arch/x86/kernel/kgdb.c 		memcpy((void *)regs + dbg_reg_def[regno].offset, mem,
regno             102 arch/x86/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             106 arch/x86/kernel/kgdb.c char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
regno             108 arch/x86/kernel/kgdb.c 	if (regno == GDB_ORIG_AX) {
regno             112 arch/x86/kernel/kgdb.c 	if (regno >= DBG_MAX_REG_NUM || regno < 0)
regno             115 arch/x86/kernel/kgdb.c 	if (dbg_reg_def[regno].offset != -1)
regno             116 arch/x86/kernel/kgdb.c 		memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
regno             117 arch/x86/kernel/kgdb.c 		       dbg_reg_def[regno].size);
regno             120 arch/x86/kernel/kgdb.c 	switch (regno) {
regno             127 arch/x86/kernel/kgdb.c 	return dbg_reg_def[regno].name;
regno             158 arch/x86/kernel/ptrace.c static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno)
regno             161 arch/x86/kernel/ptrace.c 	return &regs->bx + (regno >> 2);
regno             865 arch/x86/kernel/ptrace.c static int putreg32(struct task_struct *child, unsigned regno, u32 value)
regno             869 arch/x86/kernel/ptrace.c 	switch (regno) {
regno             909 arch/x86/kernel/ptrace.c 		regno -= offsetof(struct user32, u_debugreg[0]);
regno             910 arch/x86/kernel/ptrace.c 		return ptrace_set_debugreg(child, regno / 4, value);
regno             913 arch/x86/kernel/ptrace.c 		if (regno > sizeof(struct user32) || (regno & 3))
regno             938 arch/x86/kernel/ptrace.c static int getreg32(struct task_struct *child, unsigned regno, u32 *val)
regno             942 arch/x86/kernel/ptrace.c 	switch (regno) {
regno             968 arch/x86/kernel/ptrace.c 		regno -= offsetof(struct user32, u_debugreg[0]);
regno             969 arch/x86/kernel/ptrace.c 		*val = ptrace_get_debugreg(child, regno / 4);
regno             973 arch/x86/kernel/ptrace.c 		if (regno > sizeof(struct user32) || (regno & 3))
regno             399 arch/x86/lib/insn-eval.c 	int regno = 0;
regno             431 arch/x86/lib/insn-eval.c 		regno = X86_MODRM_RM(insn->modrm.value);
regno             437 arch/x86/lib/insn-eval.c 		if (!X86_MODRM_MOD(insn->modrm.value) && regno == 5)
regno             441 arch/x86/lib/insn-eval.c 			regno += 8;
regno             445 arch/x86/lib/insn-eval.c 		regno = X86_SIB_INDEX(insn->sib.value);
regno             447 arch/x86/lib/insn-eval.c 			regno += 8;
regno             455 arch/x86/lib/insn-eval.c 		if (X86_MODRM_MOD(insn->modrm.value) != 3 && regno == 4)
regno             460 arch/x86/lib/insn-eval.c 		regno = X86_SIB_BASE(insn->sib.value);
regno             466 arch/x86/lib/insn-eval.c 		if (!X86_MODRM_MOD(insn->modrm.value) && regno == 5)
regno             470 arch/x86/lib/insn-eval.c 			regno += 8;
regno             478 arch/x86/lib/insn-eval.c 	if (regno >= nr_registers) {
regno             482 arch/x86/lib/insn-eval.c 	return regoff[regno];
regno              75 arch/x86/um/ptrace_32.c int putreg(struct task_struct *child, int regno, unsigned long value)
regno              77 arch/x86/um/ptrace_32.c 	regno >>= 2;
regno              78 arch/x86/um/ptrace_32.c 	switch (regno) {
regno             118 arch/x86/um/ptrace_32.c 		panic("Bad register in putreg() : %d\n", regno);
regno             120 arch/x86/um/ptrace_32.c 	child->thread.regs.regs.gp[reg_offsets[regno]] = value;
regno             143 arch/x86/um/ptrace_32.c unsigned long getreg(struct task_struct *child, int regno)
regno             147 arch/x86/um/ptrace_32.c 	regno >>= 2;
regno             148 arch/x86/um/ptrace_32.c 	switch (regno) {
regno             170 arch/x86/um/ptrace_32.c 		panic("Bad register in getreg() : %d\n", regno);
regno             172 arch/x86/um/ptrace_32.c 	return mask & child->thread.regs.regs.gp[reg_offsets[regno]];
regno              53 arch/x86/um/ptrace_64.c int putreg(struct task_struct *child, int regno, unsigned long value)
regno              63 arch/x86/um/ptrace_64.c 	switch (regno) {
regno             111 arch/x86/um/ptrace_64.c 		panic("Bad register in putreg(): %d\n", regno);
regno             114 arch/x86/um/ptrace_64.c 	child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value;
regno             137 arch/x86/um/ptrace_64.c unsigned long getreg(struct task_struct *child, int regno)
regno             144 arch/x86/um/ptrace_64.c 	switch (regno) {
regno             176 arch/x86/um/ptrace_64.c 		panic("Bad register in getreg: %d\n", regno);
regno             178 arch/x86/um/ptrace_64.c 	return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]];
regno             166 arch/x86/um/signal.c #define GETREG(regno, regname) regs->regs.gp[HOST_##regno] = sc.regname
regno             245 arch/x86/um/signal.c #define PUTREG(regno, regname) sc.regname = regs->regs.gp[HOST_##regno]
regno             269 arch/xtensa/kernel/ptrace.c static int ptrace_peekusr(struct task_struct *child, long regno,
regno             278 arch/xtensa/kernel/ptrace.c 	switch(regno) {
regno             280 arch/xtensa/kernel/ptrace.c 		tmp = regs->areg[regno - REG_AR_BASE];
regno             284 arch/xtensa/kernel/ptrace.c 		tmp = regs->areg[regno - REG_A_BASE];
regno             336 arch/xtensa/kernel/ptrace.c static int ptrace_pokeusr(struct task_struct *child, long regno, long val)
regno             341 arch/xtensa/kernel/ptrace.c 	switch (regno) {
regno             343 arch/xtensa/kernel/ptrace.c 		regs->areg[regno - REG_AR_BASE] = val;
regno             347 arch/xtensa/kernel/ptrace.c 		regs->areg[regno - REG_A_BASE] = val;
regno            1119 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			   uint32_t thread, uint32_t regno,
regno            1124 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		(regno << SQ_IND_INDEX__INDEX__SHIFT) |
regno            2999 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			   uint32_t regno, uint32_t num, uint32_t *out)
regno            3004 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		(regno << SQ_IND_INDEX__INDEX__SHIFT) |
regno            4153 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			   uint32_t regno, uint32_t num, uint32_t *out)
regno            4158 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		(regno << SQ_IND_INDEX__INDEX__SHIFT) |
regno            5253 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			   uint32_t regno, uint32_t num, uint32_t *out)
regno            5258 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		(regno << SQ_IND_INDEX__INDEX__SHIFT) |
regno            1788 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			   uint32_t regno, uint32_t num, uint32_t *out)
regno            1793 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		(regno << SQ_IND_INDEX__INDEX__SHIFT) |
regno              39 drivers/gpu/drm/gma500/framebuffer.c static int psbfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              50 drivers/gpu/drm/gma500/framebuffer.c 	if (regno > 255)
regno              63 drivers/gpu/drm/gma500/framebuffer.c 	if (regno < 16) {
regno              66 drivers/gpu/drm/gma500/framebuffer.c 			((uint32_t *) info->pseudo_palette)[regno] = v;
regno              70 drivers/gpu/drm/gma500/framebuffer.c 			((uint32_t *) info->pseudo_palette)[regno] = v;
regno              72 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c static int vmw_fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              79 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c 	if (regno > 15) {
regno              80 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c 		DRM_ERROR("Bad regno %u.\n", regno);
regno              87 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c 		pal[regno] = ((red & 0xff00) << 8) |
regno            8533 drivers/infiniband/hw/hfi1/chip.c 	u32 regno;
regno            8546 drivers/infiniband/hw/hfi1/chip.c 	regno = (addr - DC_LCB_CFG_RUN) >> 3;
regno            8547 drivers/infiniband/hw/hfi1/chip.c 	ret = do_8051_command(dd, HCMD_READ_LCB_CSR, regno, data);
regno            8627 drivers/infiniband/hw/hfi1/chip.c 	u32 regno;
regno            8641 drivers/infiniband/hw/hfi1/chip.c 	regno = (addr - DC_LCB_CFG_RUN) >> 3;
regno            8642 drivers/infiniband/hw/hfi1/chip.c 	ret = do_8051_command(dd, HCMD_WRITE_LCB_CSR, regno, &data);
regno            14082 drivers/infiniband/hw/hfi1/chip.c 	u64 regno = RCV_QP_MAP_TABLE;
regno            14092 drivers/infiniband/hw/hfi1/chip.c 			write_csr(dd, regno, reg);
regno            14094 drivers/infiniband/hw/hfi1/chip.c 			regno += 8;
regno             121 drivers/infiniband/hw/qib/qib_7220.h 				  const u16 regno)
regno             125 drivers/infiniband/hw/qib/qib_7220.h 	return readl((u32 __iomem *)&dd->kregbase[regno]);
regno             129 drivers/infiniband/hw/qib/qib_7220.h 				  const u16 regno)
regno             134 drivers/infiniband/hw/qib/qib_7220.h 	return readq(&dd->kregbase[regno]);
regno             138 drivers/infiniband/hw/qib/qib_7220.h 				  const u16 regno, u64 value)
regno             141 drivers/infiniband/hw/qib/qib_7220.h 		writeq(value, &dd->kregbase[regno]);
regno             307 drivers/infiniband/hw/qib/qib_iba6120.c 				  enum qib_ureg regno, int ctxt)
regno             313 drivers/infiniband/hw/qib/qib_iba6120.c 		return readl(regno + (u64 __iomem *)
regno             317 drivers/infiniband/hw/qib/qib_iba6120.c 		return readl(regno + (u64 __iomem *)
regno             333 drivers/infiniband/hw/qib/qib_iba6120.c 				  enum qib_ureg regno, u64 value, int ctxt)
regno             348 drivers/infiniband/hw/qib/qib_iba6120.c 		writeq(value, &ubase[regno]);
regno             352 drivers/infiniband/hw/qib/qib_iba6120.c 				  const u16 regno)
regno             356 drivers/infiniband/hw/qib/qib_iba6120.c 	return readl((u32 __iomem *)&dd->kregbase[regno]);
regno             360 drivers/infiniband/hw/qib/qib_iba6120.c 				  const u16 regno)
regno             365 drivers/infiniband/hw/qib/qib_iba6120.c 	return readq(&dd->kregbase[regno]);
regno             369 drivers/infiniband/hw/qib/qib_iba6120.c 				  const u16 regno, u64 value)
regno             372 drivers/infiniband/hw/qib/qib_iba6120.c 		writeq(value, &dd->kregbase[regno]);
regno             383 drivers/infiniband/hw/qib/qib_iba6120.c 				       const u16 regno, unsigned ctxt,
regno             386 drivers/infiniband/hw/qib/qib_iba6120.c 	qib_write_kreg(dd, regno + ctxt, value);
regno             390 drivers/infiniband/hw/qib/qib_iba6120.c 				   u16 regno, u64 value)
regno             393 drivers/infiniband/hw/qib/qib_iba6120.c 		writeq(value, &dd->cspec->cregbase[regno]);
regno             396 drivers/infiniband/hw/qib/qib_iba6120.c static inline u64 read_6120_creg(const struct qib_devdata *dd, u16 regno)
regno             400 drivers/infiniband/hw/qib/qib_iba6120.c 	return readq(&dd->cspec->cregbase[regno]);
regno             403 drivers/infiniband/hw/qib/qib_iba6120.c static inline u32 read_6120_creg32(const struct qib_devdata *dd, u16 regno)
regno             407 drivers/infiniband/hw/qib/qib_iba6120.c 	return readl(&dd->cspec->cregbase[regno]);
regno             231 drivers/infiniband/hw/qib/qib_iba7220.c 				  enum qib_ureg regno, int ctxt)
regno             237 drivers/infiniband/hw/qib/qib_iba7220.c 		return readl(regno + (u64 __iomem *)
regno             241 drivers/infiniband/hw/qib/qib_iba7220.c 		return readl(regno + (u64 __iomem *)
regno             257 drivers/infiniband/hw/qib/qib_iba7220.c 				  enum qib_ureg regno, u64 value, int ctxt)
regno             272 drivers/infiniband/hw/qib/qib_iba7220.c 		writeq(value, &ubase[regno]);
regno             283 drivers/infiniband/hw/qib/qib_iba7220.c 				       const u16 regno, unsigned ctxt,
regno             286 drivers/infiniband/hw/qib/qib_iba7220.c 	qib_write_kreg(dd, regno + ctxt, value);
regno             290 drivers/infiniband/hw/qib/qib_iba7220.c 				   u16 regno, u64 value)
regno             293 drivers/infiniband/hw/qib/qib_iba7220.c 		writeq(value, &dd->cspec->cregbase[regno]);
regno             296 drivers/infiniband/hw/qib/qib_iba7220.c static inline u64 read_7220_creg(const struct qib_devdata *dd, u16 regno)
regno             300 drivers/infiniband/hw/qib/qib_iba7220.c 	return readq(&dd->cspec->cregbase[regno]);
regno             303 drivers/infiniband/hw/qib/qib_iba7220.c static inline u32 read_7220_creg32(const struct qib_devdata *dd, u16 regno)
regno             307 drivers/infiniband/hw/qib/qib_iba7220.c 	return readl(&dd->cspec->cregbase[regno]);
regno             703 drivers/infiniband/hw/qib/qib_iba7322.c 	u16     regno;
regno             759 drivers/infiniband/hw/qib/qib_iba7322.c 				  const u32 regno, u64 value);
regno             783 drivers/infiniband/hw/qib/qib_iba7322.c 				  enum qib_ureg regno, int ctxt)
regno             787 drivers/infiniband/hw/qib/qib_iba7322.c 	return readl(regno + (u64 __iomem *)(
regno             804 drivers/infiniband/hw/qib/qib_iba7322.c 				enum qib_ureg regno, int ctxt)
regno             809 drivers/infiniband/hw/qib/qib_iba7322.c 	return readq(regno + (u64 __iomem *)(
regno             825 drivers/infiniband/hw/qib/qib_iba7322.c 				  enum qib_ureg regno, u64 value, int ctxt)
regno             840 drivers/infiniband/hw/qib/qib_iba7322.c 		writeq(value, &ubase[regno]);
regno             844 drivers/infiniband/hw/qib/qib_iba7322.c 				  const u32 regno)
regno             848 drivers/infiniband/hw/qib/qib_iba7322.c 	return readl((u32 __iomem *) &dd->kregbase[regno]);
regno             852 drivers/infiniband/hw/qib/qib_iba7322.c 				  const u32 regno)
regno             856 drivers/infiniband/hw/qib/qib_iba7322.c 	return readq(&dd->kregbase[regno]);
regno             860 drivers/infiniband/hw/qib/qib_iba7322.c 				  const u32 regno, u64 value)
regno             863 drivers/infiniband/hw/qib/qib_iba7322.c 		writeq(value, &dd->kregbase[regno]);
regno             871 drivers/infiniband/hw/qib/qib_iba7322.c 				     const u16 regno)
regno             875 drivers/infiniband/hw/qib/qib_iba7322.c 	return readq(&ppd->cpspec->kpregbase[regno]);
regno             879 drivers/infiniband/hw/qib/qib_iba7322.c 				       const u16 regno, u64 value)
regno             883 drivers/infiniband/hw/qib/qib_iba7322.c 		writeq(value, &ppd->cpspec->kpregbase[regno]);
regno             894 drivers/infiniband/hw/qib/qib_iba7322.c 				       const u16 regno, unsigned ctxt,
regno             897 drivers/infiniband/hw/qib/qib_iba7322.c 	qib_write_kreg(dd, regno + ctxt, value);
regno             900 drivers/infiniband/hw/qib/qib_iba7322.c static inline u64 read_7322_creg(const struct qib_devdata *dd, u16 regno)
regno             904 drivers/infiniband/hw/qib/qib_iba7322.c 	return readq(&dd->cspec->cregbase[regno]);
regno             909 drivers/infiniband/hw/qib/qib_iba7322.c static inline u32 read_7322_creg32(const struct qib_devdata *dd, u16 regno)
regno             913 drivers/infiniband/hw/qib/qib_iba7322.c 	return readl(&dd->cspec->cregbase[regno]);
regno             919 drivers/infiniband/hw/qib/qib_iba7322.c 					u16 regno, u64 value)
regno             923 drivers/infiniband/hw/qib/qib_iba7322.c 		writeq(value, &ppd->cpspec->cpregbase[regno]);
regno             927 drivers/infiniband/hw/qib/qib_iba7322.c 				      u16 regno)
regno             932 drivers/infiniband/hw/qib/qib_iba7322.c 	return readq(&ppd->cpspec->cpregbase[regno]);
regno             936 drivers/infiniband/hw/qib/qib_iba7322.c 					u16 regno)
regno             941 drivers/infiniband/hw/qib/qib_iba7322.c 	return readl(&ppd->cpspec->cpregbase[regno]);
regno            2711 drivers/infiniband/hw/qib/qib_iba7322.c 		qib_write_kreg(dd, rmp->regno,
regno            4356 drivers/infiniband/hw/qib/qib_iba7322.c static void get_vl_weights(struct qib_pportdata *ppd, unsigned regno,
regno            4361 drivers/infiniband/hw/qib/qib_iba7322.c 	for (i = 0; i < 16; i++, regno++, vl++) {
regno            4362 drivers/infiniband/hw/qib/qib_iba7322.c 		u32 val = qib_read_kreg_port(ppd, regno);
regno            4371 drivers/infiniband/hw/qib/qib_iba7322.c static void set_vl_weights(struct qib_pportdata *ppd, unsigned regno,
regno            4376 drivers/infiniband/hw/qib/qib_iba7322.c 	for (i = 0; i < 16; i++, regno++, vl++) {
regno            4383 drivers/infiniband/hw/qib/qib_iba7322.c 		qib_write_kreg_port(ppd, regno, val);
regno            6293 drivers/infiniband/hw/qib/qib_iba7322.c 		unsigned n, regno;
regno            6308 drivers/infiniband/hw/qib/qib_iba7322.c 		regno = krp_rcvqpmaptable;
regno            6326 drivers/infiniband/hw/qib/qib_iba7322.c 				qib_write_kreg_port(ppd, regno, val);
regno            6328 drivers/infiniband/hw/qib/qib_iba7322.c 				regno++;
regno            6331 drivers/infiniband/hw/qib/qib_iba7322.c 		qib_write_kreg_port(ppd, regno, val);
regno              45 drivers/leds/leds-lm355x.c 	u8 regno;
regno             203 drivers/leds/leds-lm355x.c 	ret = regmap_read(chip->regmap, preg[REG_FLAG].regno, &chip->last_flag);
regno             217 drivers/leds/leds-lm355x.c 		    regmap_update_bits(chip->regmap, preg[REG_TORCH_CTRL].regno,
regno             227 drivers/leds/leds-lm355x.c 					       preg[REG_TORCH_CFG].regno,
regno             242 drivers/leds/leds-lm355x.c 		    regmap_update_bits(chip->regmap, preg[REG_FLASH_CTRL].regno,
regno             256 drivers/leds/leds-lm355x.c 					       preg[REG_STROBE_CFG].regno,
regno             270 drivers/leds/leds-lm355x.c 		    regmap_update_bits(chip->regmap, preg[REG_INDI_CTRL].regno,
regno             280 drivers/leds/leds-lm355x.c 					       preg[REG_INDI_CFG].regno,
regno             295 drivers/leds/leds-lm355x.c 	ret = regmap_update_bits(chip->regmap, preg[REG_OPMODE].regno,
regno             502 drivers/leds/leds-lm355x.c 	regmap_write(chip->regmap, preg[REG_OPMODE].regno, 0);
regno             857 drivers/media/pci/ivtv/ivtvfb.c static int ivtvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             864 drivers/media/pci/ivtv/ivtvfb.c 	if (regno >= info->cmap.len)
regno             869 drivers/media/pci/ivtv/ivtvfb.c 		write_reg(regno, 0x02a30);
regno             871 drivers/media/pci/ivtv/ivtvfb.c 		itv->osd_info->palette_cur[regno] = color;
regno             874 drivers/media/pci/ivtv/ivtvfb.c 	if (regno >= 16)
regno             897 drivers/media/pci/ivtv/ivtvfb.c 	palette[regno] = color;
regno             194 drivers/media/platform/vivid/vivid-osd.c static int vivid_fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             200 drivers/media/platform/vivid/vivid-osd.c 	if (regno >= info->cmap.len)
regno             205 drivers/media/platform/vivid/vivid-osd.c 	if (regno >= 16)
regno             224 drivers/media/platform/vivid/vivid-osd.c 	palette[regno] = color;
regno             532 drivers/net/dsa/lan9303-core.c static int lan9303_csr_reg_wait(struct lan9303 *chip, int regno, u32 mask)
regno             539 drivers/net/dsa/lan9303-core.c 		lan9303_read_switch_reg(chip, regno, &reg);
regno             224 drivers/net/ethernet/cirrus/cs89x0.c readreg(struct net_device *dev, u16 regno)
regno             228 drivers/net/ethernet/cirrus/cs89x0.c 	iowrite16(regno, lp->virt_addr + ADD_PORT);
regno             233 drivers/net/ethernet/cirrus/cs89x0.c writereg(struct net_device *dev, u16 regno, u16 value)
regno             237 drivers/net/ethernet/cirrus/cs89x0.c 	iowrite16(regno, lp->virt_addr + ADD_PORT);
regno              95 drivers/net/ethernet/realtek/r8169_firmware.c 		u32 regno = (action & 0x0fff0000) >> 16;
regno             109 drivers/net/ethernet/realtek/r8169_firmware.c 			if (regno > index)
regno             119 drivers/net/ethernet/realtek/r8169_firmware.c 			if (index + 1 + regno >= pa->size)
regno             146 drivers/net/ethernet/realtek/r8169_firmware.c 		u32 regno = (action & 0x0fff0000) >> 16;
regno             154 drivers/net/ethernet/realtek/r8169_firmware.c 			predata = fw_read(tp, regno);
regno             164 drivers/net/ethernet/realtek/r8169_firmware.c 			index -= (regno + 1);
regno             180 drivers/net/ethernet/realtek/r8169_firmware.c 			fw_write(tp, regno, data);
regno             188 drivers/net/ethernet/realtek/r8169_firmware.c 				index += regno;
regno             192 drivers/net/ethernet/realtek/r8169_firmware.c 				index += regno;
regno             195 drivers/net/ethernet/realtek/r8169_firmware.c 			fw_write(tp, regno, predata);
regno             198 drivers/net/ethernet/realtek/r8169_firmware.c 			index += regno;
regno              12 drivers/net/wan/lmc/lmc.h       			  devaddr, unsigned regno);
regno              14 drivers/net/wan/lmc/lmc.h 			       unsigned regno, unsigned data);
regno            1709 drivers/net/wan/lmc/lmc_main.c unsigned lmc_mii_readreg (lmc_softc_t * const sc, unsigned devaddr, unsigned regno) /*fold00*/
regno            1712 drivers/net/wan/lmc/lmc_main.c     int command = (0xf6 << 10) | (devaddr << 5) | regno;
regno            1751 drivers/net/wan/lmc/lmc_main.c void lmc_mii_writereg (lmc_softc_t * const sc, unsigned devaddr, unsigned regno, unsigned data) /*fold00*/
regno            1754 drivers/net/wan/lmc/lmc_main.c     int command = (0x5002 << 16) | (devaddr << 23) | (regno << 18) | data;
regno              42 drivers/phy/socionext/phy-uniphier-usb3hs.c #define PHY_F(regno, msb, lsb) { (regno), (msb), (lsb) }
regno              30 drivers/phy/socionext/phy-uniphier-usb3ss.c #define PHY_F(regno, msb, lsb) { (regno), (msb), (lsb) }
regno             436 drivers/staging/fbtft/fbtft-core.c static int fbtft_fb_setcolreg(unsigned int regno, unsigned int red,
regno             445 drivers/staging/fbtft/fbtft-core.c 		__func__, regno, red, green, blue, transp);
regno             449 drivers/staging/fbtft/fbtft-core.c 		if (regno < 16) {
regno             456 drivers/staging/fbtft/fbtft-core.c 			pal[regno] = val;
regno             580 drivers/staging/sm750fb/sm750.c static int lynxfb_ops_setcolreg(unsigned int regno,
regno             597 drivers/staging/sm750fb/sm750.c 	if (regno > 256) {
regno             598 drivers/staging/sm750fb/sm750.c 		pr_err("regno = %d\n", regno);
regno             610 drivers/staging/sm750fb/sm750.c 		ret = hw_sm750_setColReg(crtc, regno, red, green, blue);
regno             614 drivers/staging/sm750fb/sm750.c 	if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 256) {
regno             623 drivers/staging/sm750fb/sm750.c 			par->pseudo_palette[regno] = val;
regno              93 drivers/video/fbdev/68328fb.c static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             278 drivers/video/fbdev/68328fb.c static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             281 drivers/video/fbdev/68328fb.c 	if (regno >= 256)	/* no. of hw registers */
regno             337 drivers/video/fbdev/68328fb.c 		if (regno >= 16)
regno             348 drivers/video/fbdev/68328fb.c 			((u32 *) (info->pseudo_palette))[regno] = v;
regno             352 drivers/video/fbdev/68328fb.c 			((u32 *) (info->pseudo_palette))[regno] = v;
regno             266 drivers/video/fbdev/acornfb.c acornfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             271 drivers/video/fbdev/acornfb.c 	if (regno >= current_par.palette_size)
regno             274 drivers/video/fbdev/acornfb.c 	if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
regno             277 drivers/video/fbdev/acornfb.c 		pseudo_val  = regno << info->var.red.offset;
regno             278 drivers/video/fbdev/acornfb.c 		pseudo_val |= regno << info->var.green.offset;
regno             279 drivers/video/fbdev/acornfb.c 		pseudo_val |= regno << info->var.blue.offset;
regno             281 drivers/video/fbdev/acornfb.c 		((u32 *)info->pseudo_palette)[regno] = pseudo_val;
regno             289 drivers/video/fbdev/acornfb.c 	current_par.palette[regno] = pal;
regno             304 drivers/video/fbdev/acornfb.c 		vidc_writel(0x10000000 | regno);
regno             348 drivers/video/fbdev/amba-clcd.c clcdfb_setcolreg(unsigned int regno, unsigned int red, unsigned int green,
regno             353 drivers/video/fbdev/amba-clcd.c 	if (regno < 16)
regno             354 drivers/video/fbdev/amba-clcd.c 		fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) |
regno             359 drivers/video/fbdev/amba-clcd.c 	if (fb->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) {
regno             360 drivers/video/fbdev/amba-clcd.c 		int hw_reg = CLCD_PALETTE + ((regno * 2) & ~3);
regno             372 drivers/video/fbdev/amba-clcd.c 			regno ^= 1;
regno             374 drivers/video/fbdev/amba-clcd.c 		if (regno & 1) {
regno             385 drivers/video/fbdev/amba-clcd.c 	return regno > 255;
regno            2447 drivers/video/fbdev/amifb.c static int amifb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            2453 drivers/video/fbdev/amifb.c 		if (regno > 255)
regno            2456 drivers/video/fbdev/amifb.c 		if (regno > 3)
regno            2459 drivers/video/fbdev/amifb.c 		if (regno > 31)
regno            2465 drivers/video/fbdev/amifb.c 	if (!regno) {
regno            2479 drivers/video/fbdev/amifb.c 	if (regno || !is_blanked) {
regno            2484 drivers/video/fbdev/amifb.c 			custom.bplcon3 = bplcon3 | (regno << 8 & 0xe000);
regno            2485 drivers/video/fbdev/amifb.c 			custom.color[regno & 31] = rgb2hw8_high(red, green,
regno            2487 drivers/video/fbdev/amifb.c 			custom.bplcon3 = bplcon3 | (regno << 8 & 0xe000) |
regno            2489 drivers/video/fbdev/amifb.c 			custom.color[regno & 31] = rgb2hw8_low(red, green,
regno            2503 drivers/video/fbdev/amifb.c 			for (i = regno + 12; i >= (int)regno; i -= 4)
regno            2506 drivers/video/fbdev/amifb.c 			regno = down16(regno) + mul4(mod4(regno));
regno            2507 drivers/video/fbdev/amifb.c 			for (i = regno + 3; i >= (int)regno; i--)
regno            2512 drivers/video/fbdev/amifb.c 			custom.color[regno] = rgb2hw4(red, green, blue);
regno             802 drivers/video/fbdev/arkfb.c static int arkfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             808 drivers/video/fbdev/arkfb.c 		if (regno >= 16)
regno             814 drivers/video/fbdev/arkfb.c 			outb(regno*16, VGA_PEL_IW);
regno             817 drivers/video/fbdev/arkfb.c 			outb(regno, VGA_PEL_IW);
regno             824 drivers/video/fbdev/arkfb.c 		if (regno >= 256)
regno             828 drivers/video/fbdev/arkfb.c 		outb(regno, VGA_PEL_IW);
regno             834 drivers/video/fbdev/arkfb.c 		if (regno >= 16)
regno             838 drivers/video/fbdev/arkfb.c 			((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) |
regno             841 drivers/video/fbdev/arkfb.c 			((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) |
regno             848 drivers/video/fbdev/arkfb.c 		if (regno >= 16)
regno             851 drivers/video/fbdev/arkfb.c 		((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) |
regno              95 drivers/video/fbdev/asiliantfb.c static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             306 drivers/video/fbdev/asiliantfb.c static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             309 drivers/video/fbdev/asiliantfb.c 	if (regno > 255)
regno             316 drivers/video/fbdev/asiliantfb.c 	writeb(regno, mmio_base + 0x790);
regno             322 drivers/video/fbdev/asiliantfb.c 	if (regno < 16) {
regno             325 drivers/video/fbdev/asiliantfb.c 			((u32 *)(p->pseudo_palette))[regno] =
regno             331 drivers/video/fbdev/asiliantfb.c 			((u32 *)(p->pseudo_palette))[regno] =
regno             337 drivers/video/fbdev/asiliantfb.c 			((u32 *)(p->pseudo_palette))[regno] =
regno             782 drivers/video/fbdev/atafb.c static int tt_setcolreg(unsigned int regno, unsigned int red,
regno             787 drivers/video/fbdev/atafb.c 		regno += 254;
regno             788 drivers/video/fbdev/atafb.c 	if (regno > 255)
regno             790 drivers/video/fbdev/atafb.c 	tt_palette[regno] = (((red >> 12) << 8) | ((green >> 12) << 4) |
regno             793 drivers/video/fbdev/atafb.c 	    TT_SHIFTER_STHIGH && regno == 254)
regno            1684 drivers/video/fbdev/atafb.c static int falcon_setcolreg(unsigned int regno, unsigned int red,
regno            1688 drivers/video/fbdev/atafb.c 	if (regno > 255)
regno            1690 drivers/video/fbdev/atafb.c 	f030_col[regno] = (((red & 0xfc00) << 16) |
regno            1693 drivers/video/fbdev/atafb.c 	if (regno < 16) {
regno            1694 drivers/video/fbdev/atafb.c 		shifter_tt.color_reg[regno] =
regno            1698 drivers/video/fbdev/atafb.c 		((u32 *)info->pseudo_palette)[regno] = ((red & 0xf800) |
regno            1972 drivers/video/fbdev/atafb.c static int stste_setcolreg(unsigned int regno, unsigned int red,
regno            1976 drivers/video/fbdev/atafb.c 	if (regno > 15)
regno            1982 drivers/video/fbdev/atafb.c 		shifter_tt.color_reg[regno] =
regno            1987 drivers/video/fbdev/atafb.c 		shifter_tt.color_reg[regno] =
regno            2210 drivers/video/fbdev/atafb.c static int ext_setcolreg(unsigned int regno, unsigned int red,
regno            2219 drivers/video/fbdev/atafb.c 	if (regno > 255)
regno            2224 drivers/video/fbdev/atafb.c 		OUTB(0x3c8, regno);
regno            2235 drivers/video/fbdev/atafb.c 		OUTB((MV300_reg[regno] << 2) + 1, red);
regno            2236 drivers/video/fbdev/atafb.c 		OUTB((MV300_reg[regno] << 2) + 1, green);
regno            2237 drivers/video/fbdev/atafb.c 		OUTB((MV300_reg[regno] << 2) + 1, blue);
regno            2418 drivers/video/fbdev/atafb.c static int atafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            2425 drivers/video/fbdev/atafb.c 	return info->fbops->fb_setcolreg(regno, red, green, blue, transp, info);
regno             723 drivers/video/fbdev/atmel_lcdfb.c static int atmel_lcdfb_setcolreg(unsigned int regno, unsigned int red,
regno             739 drivers/video/fbdev/atmel_lcdfb.c 		if (regno < 16) {
regno             746 drivers/video/fbdev/atmel_lcdfb.c 			pal[regno] = val;
regno             752 drivers/video/fbdev/atmel_lcdfb.c 		if (regno < 256) {
regno             776 drivers/video/fbdev/atmel_lcdfb.c 			lcdc_writel(sinfo, ATMEL_LCDC_LUT(regno), val);
regno             782 drivers/video/fbdev/atmel_lcdfb.c 		if (regno < 2) {
regno             783 drivers/video/fbdev/atmel_lcdfb.c 			val = (regno == 0) ? 0x00 : 0x1F;
regno             784 drivers/video/fbdev/atmel_lcdfb.c 			lcdc_writel(sinfo, ATMEL_LCDC_LUT(regno), val);
regno             474 drivers/video/fbdev/aty/aty128fb.c static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            1659 drivers/video/fbdev/aty/aty128fb.c static void aty128_st_pal(u_int regno, u_int red, u_int green, u_int blue,
regno            1667 drivers/video/fbdev/aty/aty128fb.c 	aty_st_8(PALETTE_INDEX, regno);
regno            2237 drivers/video/fbdev/aty/aty128fb.c static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            2242 drivers/video/fbdev/aty/aty128fb.c 	if (regno > 255
regno            2243 drivers/video/fbdev/aty/aty128fb.c 	    || (par->crtc.depth == 16 && regno > 63)
regno            2244 drivers/video/fbdev/aty/aty128fb.c 	    || (par->crtc.depth == 15 && regno > 31))
regno            2251 drivers/video/fbdev/aty/aty128fb.c 	if (regno < 16) {
regno            2257 drivers/video/fbdev/aty/aty128fb.c 			pal[regno] = (regno << 10) | (regno << 5) | regno;
regno            2260 drivers/video/fbdev/aty/aty128fb.c 			pal[regno] = (regno << 11) | (regno << 6) | regno;
regno            2263 drivers/video/fbdev/aty/aty128fb.c 			pal[regno] = (regno << 16) | (regno << 8) | regno;
regno            2266 drivers/video/fbdev/aty/aty128fb.c 			i = (regno << 8) | regno;
regno            2267 drivers/video/fbdev/aty/aty128fb.c 			pal[regno] = (i << 16) | i;
regno            2272 drivers/video/fbdev/aty/aty128fb.c 	if (par->crtc.depth == 16 && regno > 0) {
regno            2280 drivers/video/fbdev/aty/aty128fb.c 		par->green[regno] = green;
regno            2281 drivers/video/fbdev/aty/aty128fb.c 		if (regno < 32) {
regno            2282 drivers/video/fbdev/aty/aty128fb.c 			par->red[regno] = red;
regno            2283 drivers/video/fbdev/aty/aty128fb.c 			par->blue[regno] = blue;
regno            2284 drivers/video/fbdev/aty/aty128fb.c 			aty128_st_pal(regno * 8, red, par->green[regno*2],
regno            2287 drivers/video/fbdev/aty/aty128fb.c 		red = par->red[regno/2];
regno            2288 drivers/video/fbdev/aty/aty128fb.c 		blue = par->blue[regno/2];
regno            2289 drivers/video/fbdev/aty/aty128fb.c 		regno <<= 2;
regno            2291 drivers/video/fbdev/aty/aty128fb.c 		regno <<= 3;
regno            2292 drivers/video/fbdev/aty/aty128fb.c 	aty128_st_pal(regno, red, green, blue, par);
regno             232 drivers/video/fbdev/aty/atyfb_base.c static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            2818 drivers/video/fbdev/aty/atyfb_base.c static void aty_st_pal(u_int regno, u_int red, u_int green, u_int blue,
regno            2821 drivers/video/fbdev/aty/atyfb_base.c 	aty_st_8(DAC_W_INDEX, regno, par);
regno            2834 drivers/video/fbdev/aty/atyfb_base.c static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            2848 drivers/video/fbdev/aty/atyfb_base.c 	if (regno > 255 ||
regno            2849 drivers/video/fbdev/aty/atyfb_base.c 	    (depth == 16 && regno > 63) ||
regno            2850 drivers/video/fbdev/aty/atyfb_base.c 	    (depth == 15 && regno > 31))
regno            2857 drivers/video/fbdev/aty/atyfb_base.c 	par->palette[regno].red = red;
regno            2858 drivers/video/fbdev/aty/atyfb_base.c 	par->palette[regno].green = green;
regno            2859 drivers/video/fbdev/aty/atyfb_base.c 	par->palette[regno].blue = blue;
regno            2861 drivers/video/fbdev/aty/atyfb_base.c 	if (regno < 16) {
regno            2864 drivers/video/fbdev/aty/atyfb_base.c 			pal[regno] = (regno << 10) | (regno << 5) | regno;
regno            2867 drivers/video/fbdev/aty/atyfb_base.c 			pal[regno] = (regno << 11) | (regno << 5) | regno;
regno            2870 drivers/video/fbdev/aty/atyfb_base.c 			pal[regno] = (regno << 16) | (regno << 8) | regno;
regno            2873 drivers/video/fbdev/aty/atyfb_base.c 			i = (regno << 8) | regno;
regno            2874 drivers/video/fbdev/aty/atyfb_base.c 			pal[regno] = (i << 16) | i;
regno            2887 drivers/video/fbdev/aty/atyfb_base.c 			if (regno < 32)
regno            2888 drivers/video/fbdev/aty/atyfb_base.c 				aty_st_pal(regno << 3, red,
regno            2889 drivers/video/fbdev/aty/atyfb_base.c 					   par->palette[regno << 1].green,
regno            2891 drivers/video/fbdev/aty/atyfb_base.c 			red = par->palette[regno >> 1].red;
regno            2892 drivers/video/fbdev/aty/atyfb_base.c 			blue = par->palette[regno >> 1].blue;
regno            2893 drivers/video/fbdev/aty/atyfb_base.c 			regno <<= 2;
regno            2895 drivers/video/fbdev/aty/atyfb_base.c 			regno <<= 3;
regno            2897 drivers/video/fbdev/aty/atyfb_base.c 				aty_st_pal(regno + i, red, green, blue, par);
regno            2900 drivers/video/fbdev/aty/atyfb_base.c 	aty_st_pal(regno, red, green, blue, par);
regno            1168 drivers/video/fbdev/aty/radeon_base.c static int radeon_setcolreg (unsigned regno, unsigned red, unsigned green,
regno            1176 drivers/video/fbdev/aty/radeon_base.c 	if (regno > 255)
regno            1182 drivers/video/fbdev/aty/radeon_base.c 	rinfo->palette[regno].red = red;
regno            1183 drivers/video/fbdev/aty/radeon_base.c 	rinfo->palette[regno].green = green;
regno            1184 drivers/video/fbdev/aty/radeon_base.c 	rinfo->palette[regno].blue = blue;
regno            1187 drivers/video/fbdev/aty/radeon_base.c         pindex = regno;
regno            1193 drivers/video/fbdev/aty/radeon_base.c 			pindex = regno * 8;
regno            1195 drivers/video/fbdev/aty/radeon_base.c 			if (rinfo->depth == 16 && regno > 63)
regno            1197 drivers/video/fbdev/aty/radeon_base.c 			if (rinfo->depth == 15 && regno > 31)
regno            1206 drivers/video/fbdev/aty/radeon_base.c 				       (rinfo->palette[regno>>1].red << 16) |
regno            1208 drivers/video/fbdev/aty/radeon_base.c 				       (rinfo->palette[regno>>1].blue));
regno            1209 drivers/video/fbdev/aty/radeon_base.c 	                	green = rinfo->palette[regno<<1].green;
regno            1213 drivers/video/fbdev/aty/radeon_base.c 		if (rinfo->depth != 16 || regno < 32) {
regno            1219 drivers/video/fbdev/aty/radeon_base.c  	if (regno < 16) {
regno            1223 drivers/video/fbdev/aty/radeon_base.c 			pal[regno] = (regno << 10) | (regno << 5) | regno;
regno            1226 drivers/video/fbdev/aty/radeon_base.c 			pal[regno] = (regno << 11) | (regno << 5) | regno;
regno            1229 drivers/video/fbdev/aty/radeon_base.c 			pal[regno] = (regno << 16) | (regno << 8) | regno;
regno            1232 drivers/video/fbdev/aty/radeon_base.c 			i = (regno << 8) | regno;
regno            1233 drivers/video/fbdev/aty/radeon_base.c 			pal[regno] = (i << 16) | i;
regno            1240 drivers/video/fbdev/aty/radeon_base.c static int radeonfb_setcolreg (unsigned regno, unsigned red, unsigned green,
regno            1263 drivers/video/fbdev/aty/radeon_base.c 	rc = radeon_setcolreg (regno, red, green, blue, transp, rinfo);
regno             235 drivers/video/fbdev/au1100fb.c int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi)
regno             244 drivers/video/fbdev/au1100fb.c 	if (regno > (AU1100_LCD_NBR_PALETTE_ENTRIES - 1))
regno             255 drivers/video/fbdev/au1100fb.c 		if (regno > 16)
regno             286 drivers/video/fbdev/au1100fb.c 	palette[regno] = value;
regno            1142 drivers/video/fbdev/au1200fb.c static int au1200fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1148 drivers/video/fbdev/au1200fb.c 	if (regno > (AU1200_LCD_NBR_PALETTE_ENTRIES - 1))
regno            1159 drivers/video/fbdev/au1200fb.c 		if (regno > 16)
regno            1189 drivers/video/fbdev/au1200fb.c 	palette[regno] = value;
regno             163 drivers/video/fbdev/carminefb.c static int carmine_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             166 drivers/video/fbdev/carminefb.c 	if (regno >= 16)
regno             174 drivers/video/fbdev/carminefb.c 	((__be32 *)info->pseudo_palette)[regno] = cpu_to_be32(transp << 24 |
regno             243 drivers/video/fbdev/cg14.c static int cg14_setcolreg(unsigned regno,
regno             252 drivers/video/fbdev/cg14.c 	if (regno >= 256)
regno             261 drivers/video/fbdev/cg14.c 	sbus_writel(val, &clut->c_clut[regno]);
regno             138 drivers/video/fbdev/cg3.c static int cg3_setcolreg(unsigned regno,
regno             149 drivers/video/fbdev/cg3.c 	if (regno >= 256)
regno             158 drivers/video/fbdev/cg3.c 	p8 = (u8 *)par->sw_cmap + (regno * 3);
regno             167 drivers/video/fbdev/cg3.c 	p32 = &par->sw_cmap[D4M3(regno)];
regno             168 drivers/video/fbdev/cg3.c 	sbus_writel(D4M4(regno), &bt->addr);
regno             484 drivers/video/fbdev/cg6.c static int cg6_setcolreg(unsigned regno,
regno             492 drivers/video/fbdev/cg6.c 	if (regno >= 256)
regno             501 drivers/video/fbdev/cg6.c 	sbus_writel((u32)regno << 24, &bt->addr);
regno              78 drivers/video/fbdev/chipsfb.c static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             150 drivers/video/fbdev/chipsfb.c static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             153 drivers/video/fbdev/chipsfb.c 	if (regno > 255)
regno             158 drivers/video/fbdev/chipsfb.c 	outb(regno, 0x3c8);
regno            1276 drivers/video/fbdev/cirrusfb.c static int cirrusfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1282 drivers/video/fbdev/cirrusfb.c 	if (regno > 255)
regno            1291 drivers/video/fbdev/cirrusfb.c 		if (regno >= 16)
regno            1297 drivers/video/fbdev/cirrusfb.c 		cinfo->pseudo_palette[regno] = v;
regno            1302 drivers/video/fbdev/cirrusfb.c 		WClut(cinfo, regno, red >> 10, green >> 10, blue >> 10);
regno              44 drivers/video/fbdev/clps711x-fb.c static int clps711x_fb_setcolreg(u_int regno, u_int red, u_int green,
regno              50 drivers/video/fbdev/clps711x-fb.c 	if (regno >= BIT(info->var.bits_per_pixel))
regno              53 drivers/video/fbdev/clps711x-fb.c 	shift = 4 * (regno & 7);
regno              60 drivers/video/fbdev/clps711x-fb.c 	regno = (regno < 8) ? CLPS711X_PALLSW : CLPS711X_PALMSW;
regno              62 drivers/video/fbdev/clps711x-fb.c 	writel((readl(cfb->base + regno) & ~mask) | level, cfb->base + regno);
regno             126 drivers/video/fbdev/controlfb.c static int controlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             343 drivers/video/fbdev/controlfb.c static int controlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             350 drivers/video/fbdev/controlfb.c 	if (regno > 255)
regno             357 drivers/video/fbdev/controlfb.c 	out_8(&p->cmap_regs->addr, regno);	/* tell clut what addr to fill	*/
regno             362 drivers/video/fbdev/controlfb.c 	if (regno < 16) {
regno             366 drivers/video/fbdev/controlfb.c 			p->pseudo_palette[regno] =
regno             367 drivers/video/fbdev/controlfb.c 			    (regno << 10) | (regno << 5) | regno;
regno             370 drivers/video/fbdev/controlfb.c 			i = (regno << 8) | regno;
regno             371 drivers/video/fbdev/controlfb.c 			p->pseudo_palette[regno] = (i << 16) | i;
regno             272 drivers/video/fbdev/cyber2000fb.c cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             294 drivers/video/fbdev/cyber2000fb.c 		if (regno >= NR_PALETTE)
regno             301 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].red = red;
regno             302 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].green = green;
regno             303 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].blue = blue;
regno             305 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(regno, 0x3c8, cfb);
regno             326 drivers/video/fbdev/cyber2000fb.c 		if (var->green.length == 6 && regno < 64) {
regno             327 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 2].green = green;
regno             333 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 2, 0x3c8, cfb);
regno             334 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[regno >> 1].red,
regno             337 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[regno >> 1].blue,
regno             340 drivers/video/fbdev/cyber2000fb.c 			green = cfb->palette[regno << 3].green;
regno             345 drivers/video/fbdev/cyber2000fb.c 		if (var->green.length >= 5 && regno < 32) {
regno             346 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].red = red;
regno             347 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].green = green;
regno             348 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].blue = blue;
regno             354 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 3, 0x3c8, cfb);
regno             361 drivers/video/fbdev/cyber2000fb.c 		if (var->green.length == 4 && regno < 16) {
regno             362 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].red = red;
regno             363 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].green = green;
regno             364 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].blue = blue;
regno             370 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 4, 0x3c8, cfb);
regno             381 drivers/video/fbdev/cyber2000fb.c 		pseudo_val = regno << var->red.offset |
regno             382 drivers/video/fbdev/cyber2000fb.c 			     regno << var->green.offset |
regno             383 drivers/video/fbdev/cyber2000fb.c 			     regno << var->blue.offset;
regno             408 drivers/video/fbdev/cyber2000fb.c 	if (regno < 16)
regno             409 drivers/video/fbdev/cyber2000fb.c 		((u32 *)cfb->fb.pseudo_palette)[regno] = pseudo_val;
regno             592 drivers/video/fbdev/da8xx-fb.c static int fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             601 drivers/video/fbdev/da8xx-fb.c 	if (regno > 255)
regno             619 drivers/video/fbdev/da8xx-fb.c 			if (regno > 15)
regno             623 drivers/video/fbdev/da8xx-fb.c 				pal = regno;
regno             633 drivers/video/fbdev/da8xx-fb.c 			if (regno == 0)
regno             635 drivers/video/fbdev/da8xx-fb.c 			palette[regno] = pal;
regno             647 drivers/video/fbdev/da8xx-fb.c 			if (palette[regno] != pal) {
regno             649 drivers/video/fbdev/da8xx-fb.c 				palette[regno] = pal;
regno             660 drivers/video/fbdev/da8xx-fb.c 		if (regno > 15)
regno             667 drivers/video/fbdev/da8xx-fb.c 		((u32 *) (info->pseudo_palette))[regno] = v;
regno              67 drivers/video/fbdev/efifb.c static int efifb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              78 drivers/video/fbdev/efifb.c 	if (regno >= info->cmap.len)
regno              81 drivers/video/fbdev/efifb.c 	if (regno < 16) {
regno              85 drivers/video/fbdev/efifb.c 		((u32 *)(info->pseudo_palette))[regno] =
regno             349 drivers/video/fbdev/ep93xx-fb.c static int ep93xxfb_setcolreg(unsigned int regno, unsigned int red,
regno             359 drivers/video/fbdev/ep93xx-fb.c 		if (regno > 255)
regno             364 drivers/video/fbdev/ep93xx-fb.c 		pal[regno] = rgb;
regno             365 drivers/video/fbdev/ep93xx-fb.c 		ep93xxfb_writel(fbi, rgb, (EP93XXFB_COLOR_LUT + (regno << 2)));
regno             383 drivers/video/fbdev/ep93xx-fb.c 		if (regno > 16)
regno             392 drivers/video/fbdev/ep93xx-fb.c 		pal[regno] = (red << info->var.red.offset) |
regno             554 drivers/video/fbdev/fb-puv3.c static int unifb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             557 drivers/video/fbdev/fb-puv3.c 	if (regno >= 256)	/* no. of hw registers */
regno             589 drivers/video/fbdev/fb-puv3.c 		if (regno >= 16)
regno             602 drivers/video/fbdev/fb-puv3.c 			((u32 *) (info->pseudo_palette))[regno] = v;
regno             649 drivers/video/fbdev/ffb.c static int ffb_setcolreg(unsigned regno,
regno             655 drivers/video/fbdev/ffb.c 	if (regno >= 16)
regno             663 drivers/video/fbdev/ffb.c 	((u32 *)info->pseudo_palette)[regno] = value;
regno             164 drivers/video/fbdev/fm2fb.c static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             195 drivers/video/fbdev/fm2fb.c static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             198 drivers/video/fbdev/fm2fb.c 	if (regno < 16) {
regno             203 drivers/video/fbdev/fm2fb.c 		((u32*)(info->pseudo_palette))[regno] = (red << 16) |
regno            1195 drivers/video/fbdev/fsl-diu-fb.c static int fsl_diu_setcolreg(unsigned int regno, unsigned int red,
regno            1214 drivers/video/fbdev/fsl-diu-fb.c 		if (regno < 16) {
regno            1228 drivers/video/fbdev/fsl-diu-fb.c 			pal[regno] = v;
regno             108 drivers/video/fbdev/g364fb.c static int g364fb_setcolreg(u_int regno, u_int red, u_int green,
regno             175 drivers/video/fbdev/g364fb.c static int g364fb_setcolreg(u_int regno, u_int red, u_int green,
regno             180 drivers/video/fbdev/g364fb.c 	if (regno > 255)
regno             187 drivers/video/fbdev/g364fb.c 	ptr[regno << 1] = (red << 16) | (green << 8) | blue;
regno             850 drivers/video/fbdev/gbefb.c static int gbefb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             856 drivers/video/fbdev/gbefb.c 	if (regno > 255)
regno             863 drivers/video/fbdev/gbefb.c 		gbe_cmap[regno] = (red << 24) | (green << 16) | (blue << 8);
regno             872 drivers/video/fbdev/gbefb.c 			gbe->cmap[regno] = gbe_cmap[regno];
regno             874 drivers/video/fbdev/gbefb.c 	} else if (regno < 16) {
regno             881 drivers/video/fbdev/gbefb.c 			pseudo_palette[regno] =
regno             887 drivers/video/fbdev/gbefb.c 			pseudo_palette[regno] =
regno             167 drivers/video/fbdev/geode/display_gx.c void gx_set_hw_palette_reg(struct fb_info *info, unsigned regno,
regno             178 drivers/video/fbdev/geode/display_gx.c 	write_dc(par, DC_PAL_ADDRESS, regno);
regno             192 drivers/video/fbdev/geode/display_gx1.c static void gx1_set_hw_palette_reg(struct fb_info *info, unsigned regno,
regno             203 drivers/video/fbdev/geode/display_gx1.c 	writel(regno, par->dc_regs + DC_PAL_ADDRESS);
regno             153 drivers/video/fbdev/geode/gx1fb_core.c static int gx1fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             169 drivers/video/fbdev/geode/gx1fb_core.c 		if (regno >= 16)
regno             176 drivers/video/fbdev/geode/gx1fb_core.c 		pal[regno] = v;
regno             178 drivers/video/fbdev/geode/gx1fb_core.c 		if (regno >= 256)
regno             181 drivers/video/fbdev/geode/gx1fb_core.c 		par->dc_ops->set_palette_reg(info, regno, red, green, blue);
regno              45 drivers/video/fbdev/geode/gxfb.h void gx_set_hw_palette_reg(struct fb_info *info, unsigned regno,
regno             178 drivers/video/fbdev/geode/gxfb_core.c static int gxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             192 drivers/video/fbdev/geode/gxfb_core.c 		if (regno >= 16)
regno             199 drivers/video/fbdev/geode/gxfb_core.c 		pal[regno] = v;
regno             201 drivers/video/fbdev/geode/gxfb_core.c 		if (regno >= 256)
regno             204 drivers/video/fbdev/geode/gxfb_core.c 		gx_set_hw_palette_reg(info, regno, red, green, blue);
regno             286 drivers/video/fbdev/geode/lxfb_core.c static int lxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             300 drivers/video/fbdev/geode/lxfb_core.c 		if (regno >= 16)
regno             307 drivers/video/fbdev/geode/lxfb_core.c 		pal[regno] = v;
regno             309 drivers/video/fbdev/geode/lxfb_core.c 		if (regno >= 256)
regno             312 drivers/video/fbdev/geode/lxfb_core.c 		lx_set_palette_reg(info, regno, red, green, blue);
regno             505 drivers/video/fbdev/geode/lxfb_ops.c void lx_set_palette_reg(struct fb_info *info, unsigned regno,
regno             517 drivers/video/fbdev/geode/lxfb_ops.c 	write_dc(par, DC_PAL_ADDRESS, regno);
regno              72 drivers/video/fbdev/goldfishfb.c goldfish_fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green,
regno              77 drivers/video/fbdev/goldfishfb.c 	if (regno < 16) {
regno              78 drivers/video/fbdev/goldfishfb.c 		fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) |
regno             188 drivers/video/fbdev/grvga.c static int grvga_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *info)
regno             193 drivers/video/fbdev/grvga.c 	if (regno >= 256)	/* Size of CLUT */
regno             214 drivers/video/fbdev/grvga.c 		__raw_writel((regno << 24) | (red << 16) | (green << 8) | blue,
regno             220 drivers/video/fbdev/grvga.c 		if (regno >= 16)
regno             229 drivers/video/fbdev/grvga.c 		((u32 *) (info->pseudo_palette))[regno] = v;
regno             399 drivers/video/fbdev/hgafb.c static int hgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             402 drivers/video/fbdev/hgafb.c 	if (regno > 1)
regno             207 drivers/video/fbdev/hitfb.c static int hitfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             210 drivers/video/fbdev/hitfb.c 	if (regno >= 256)
regno             215 drivers/video/fbdev/hitfb.c 		fb_writew(regno << 8, HD64461_CPTWAR);
regno             221 drivers/video/fbdev/hitfb.c 		if (regno >= 16)
regno             223 drivers/video/fbdev/hitfb.c 		((u32 *) (info->pseudo_palette))[regno] =
regno              76 drivers/video/fbdev/hpfb.c static int hpfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              84 drivers/video/fbdev/hpfb.c 	unsigned char _regno=regno;
regno              93 drivers/video/fbdev/hpfb.c 	if (regno >= info->cmap.len)
regno             575 drivers/video/fbdev/hyperv_fb.c static int hvfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             580 drivers/video/fbdev/hyperv_fb.c 	if (regno > 15)
regno             583 drivers/video/fbdev/hyperv_fb.c 	pal[regno] = chan_to_field(red, &info->var.red)
regno             860 drivers/video/fbdev/i740fb.c static int i740fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             867 drivers/video/fbdev/i740fb.c 		regno, red, green, blue, transp, info->var.bits_per_pixel);
regno             871 drivers/video/fbdev/i740fb.c 		if (regno >= 256)
regno             873 drivers/video/fbdev/i740fb.c 		i740outb(info->par, VGA_PEL_IW, regno);
regno             879 drivers/video/fbdev/i740fb.c 		if (regno >= 16)
regno             887 drivers/video/fbdev/i740fb.c 		((u32 *) info->pseudo_palette)[regno] = r | g | b;
regno              90 drivers/video/fbdev/i810/i810_main.c static int i810fb_getcolreg  (u8 regno, u8 *red, u8 *green, u8 *blue,
regno              92 drivers/video/fbdev/i810/i810_main.c static int i810fb_setcolreg  (unsigned regno, unsigned red, unsigned green, unsigned blue,
regno             440 drivers/video/fbdev/i810/i810_main.c static void i810_write_dac(u8 regno, u8 red, u8 green, u8 blue,
regno             443 drivers/video/fbdev/i810/i810_main.c 	i810_writeb(CLUT_INDEX_WRITE, mmio, regno);
regno             449 drivers/video/fbdev/i810/i810_main.c static void i810_read_dac(u8 regno, u8 *red, u8 *green, u8 *blue,
regno             452 drivers/video/fbdev/i810/i810_main.c 	i810_writeb(CLUT_INDEX_READ, mmio, regno);
regno            1199 drivers/video/fbdev/i810/i810_main.c static int i810fb_getcolreg(u8 regno, u8 *red, u8 *green, u8 *blue, 
regno            1207 drivers/video/fbdev/i810/i810_main.c 		if ((info->var.green.length == 5 && regno > 31) ||
regno            1208 drivers/video/fbdev/i810/i810_main.c 		    (info->var.green.length == 6 && regno > 63))
regno            1217 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac(regno * 8, red, green, blue, mmio);
regno            1223 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac(regno * 8, red, &tmp, blue, mmio);
regno            1224 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac(regno * 4, &tmp, green, &tmp, mmio);
regno            1227 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac(regno, red, green, blue, mmio);
regno            1281 drivers/video/fbdev/i810/i810_main.c static int i810fb_setcolreg(unsigned regno, unsigned red, unsigned green, 
regno            1290 drivers/video/fbdev/i810/i810_main.c  	if (regno > 255) return 1;
regno            1293 drivers/video/fbdev/i810/i810_main.c 		if ((info->var.green.length == 5 && regno > 31) ||
regno            1294 drivers/video/fbdev/i810/i810_main.c 		    (info->var.green.length == 6 && regno > 63))
regno            1308 drivers/video/fbdev/i810/i810_main.c 			i810_write_dac((u8) (regno * 8) + i, (u8) red, 
regno            1314 drivers/video/fbdev/i810/i810_main.c 		if (regno < 32) {
regno            1316 drivers/video/fbdev/i810/i810_main.c 				i810_write_dac((u8) (regno * 8) + i,
regno            1320 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac((u8) (regno*4), &r, &g, &b, mmio);
regno            1322 drivers/video/fbdev/i810/i810_main.c 			i810_write_dac((u8) (regno*4) + i, r, (u8) green, 
regno            1325 drivers/video/fbdev/i810/i810_main.c 		i810_write_dac((u8) regno, (u8) red, (u8) green,
regno            1331 drivers/video/fbdev/i810/i810_main.c 	if (regno < 16) {
regno            1336 drivers/video/fbdev/i810/i810_main.c 					((u32 *)info->pseudo_palette)[regno] = 
regno            1337 drivers/video/fbdev/i810/i810_main.c 						(regno << 10) | (regno << 5) |
regno            1338 drivers/video/fbdev/i810/i810_main.c 						regno;
regno            1340 drivers/video/fbdev/i810/i810_main.c 					((u32 *)info->pseudo_palette)[regno] = 
regno            1341 drivers/video/fbdev/i810/i810_main.c 						(regno << 11) | (regno << 5) |
regno            1342 drivers/video/fbdev/i810/i810_main.c 						regno;
regno            1346 drivers/video/fbdev/i810/i810_main.c 					((u32 *)info->pseudo_palette)[regno] = 
regno            1352 drivers/video/fbdev/i810/i810_main.c 					((u32 *)info->pseudo_palette)[regno] =
regno            1362 drivers/video/fbdev/i810/i810_main.c 				((u32 *)info->pseudo_palette)[regno] = 
regno            1363 drivers/video/fbdev/i810/i810_main.c 					(regno << 16) | (regno << 8) |
regno            1364 drivers/video/fbdev/i810/i810_main.c 					regno;
regno            1366 drivers/video/fbdev/i810/i810_main.c 				((u32 *)info->pseudo_palette)[regno] = 
regno             876 drivers/video/fbdev/imsttfb.c imsttfb_setcolreg (u_int regno, u_int red, u_int green, u_int blue,
regno             882 drivers/video/fbdev/imsttfb.c 	if (regno > 255)
regno             891 drivers/video/fbdev/imsttfb.c 		par->cmap_regs[PADDRW] = regno << 3;
regno             893 drivers/video/fbdev/imsttfb.c 		par->cmap_regs[PADDRW] = regno;
regno             900 drivers/video/fbdev/imsttfb.c 	if (regno < 16)
regno             903 drivers/video/fbdev/imsttfb.c 				par->palette[regno] =
regno             904 drivers/video/fbdev/imsttfb.c 					(regno << (info->var.green.length ==
regno             905 drivers/video/fbdev/imsttfb.c 					5 ? 10 : 11)) | (regno << 5) | regno;
regno             908 drivers/video/fbdev/imsttfb.c 				par->palette[regno] =
regno             909 drivers/video/fbdev/imsttfb.c 					(regno << 16) | (regno << 8) | regno;
regno             912 drivers/video/fbdev/imsttfb.c 				int i = (regno << 8) | regno;
regno             913 drivers/video/fbdev/imsttfb.c 				par->palette[regno] = (i << 16) |i;
regno             258 drivers/video/fbdev/imxfb.c static int imxfb_setpalettereg(u_int regno, u_int red, u_int green, u_int blue,
regno             265 drivers/video/fbdev/imxfb.c 	if (regno < fbi->palette_size) {
regno             270 drivers/video/fbdev/imxfb.c 		writel(val, fbi->regs + 0x800 + (regno << 2));
regno             276 drivers/video/fbdev/imxfb.c static int imxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             309 drivers/video/fbdev/imxfb.c 		if (regno < 16) {
regno             316 drivers/video/fbdev/imxfb.c 			pal[regno] = val;
regno             323 drivers/video/fbdev/imxfb.c 		ret = imxfb_setpalettereg(regno, red, green, blue, trans, info);
regno             139 drivers/video/fbdev/intelfb/intelfbdrv.c static int intelfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1377 drivers/video/fbdev/intelfb/intelfbdrv.c static int intelfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1384 drivers/video/fbdev/intelfb/intelfbdrv.c 	DBG_MSG("intelfb_setcolreg: regno %d, depth %d\n", regno, dinfo->depth);
regno            1387 drivers/video/fbdev/intelfb/intelfbdrv.c 	if (regno > 255)
regno            1395 drivers/video/fbdev/intelfb/intelfbdrv.c 		intelfbhw_setcolreg(dinfo, regno, red, green, blue,
regno            1399 drivers/video/fbdev/intelfb/intelfbdrv.c 	if (regno < 16) {
regno            1402 drivers/video/fbdev/intelfb/intelfbdrv.c 			dinfo->pseudo_palette[regno] = ((red & 0xf800) >>  1) |
regno            1407 drivers/video/fbdev/intelfb/intelfbdrv.c 			dinfo->pseudo_palette[regno] = (red & 0xf800) |
regno            1412 drivers/video/fbdev/intelfb/intelfbdrv.c 			dinfo->pseudo_palette[regno] = ((red & 0xff00) << 8) |
regno             499 drivers/video/fbdev/intelfb/intelfbhw.c void intelfbhw_setcolreg(struct intelfb_info *dinfo, unsigned regno,
regno             508 drivers/video/fbdev/intelfb/intelfbhw.c 		regno, red, green, blue);
regno             511 drivers/video/fbdev/intelfb/intelfbhw.c 	OUTREG(palette_reg + (regno << 2),
regno             571 drivers/video/fbdev/intelfb/intelfbhw.h extern void intelfbhw_setcolreg(struct intelfb_info *dinfo, unsigned regno,
regno             526 drivers/video/fbdev/kyro/fbdev.c static int kyrofb_setcolreg(u_int regno, u_int red, u_int green,
regno             531 drivers/video/fbdev/kyro/fbdev.c 	if (regno > 255)
regno             534 drivers/video/fbdev/kyro/fbdev.c 	if (regno < 16) {
regno             537 drivers/video/fbdev/kyro/fbdev.c 			par->palette[regno] =
regno             544 drivers/video/fbdev/kyro/fbdev.c 			par->palette[regno] =
regno             272 drivers/video/fbdev/leo.c static int leo_setcolreg(unsigned regno,
regno             282 drivers/video/fbdev/leo.c 	if (regno >= 256)
regno             289 drivers/video/fbdev/leo.c 	par->clut_data[regno] = red | (green << 8) | (blue << 16);
regno              52 drivers/video/fbdev/macfb.c static int (*macfb_setpalette)(unsigned int regno, unsigned int red,
regno             144 drivers/video/fbdev/macfb.c static int dafb_setpalette(unsigned int regno, unsigned int red,
regno             157 drivers/video/fbdev/macfb.c 	if (regno != lastreg + 1) {
regno             165 drivers/video/fbdev/macfb.c 		for (i = 0; i < regno; i++) {
regno             185 drivers/video/fbdev/macfb.c 	lastreg = regno;
regno             190 drivers/video/fbdev/macfb.c static int v8_brazil_setpalette(unsigned int regno, unsigned int red,
regno             205 drivers/video/fbdev/macfb.c 	regno = (regno << (8 - bpp)) | (0xFF >> bpp);
regno             206 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &v8_brazil_cmap_regs->addr);
regno             221 drivers/video/fbdev/macfb.c static int rbv_setpalette(unsigned int regno, unsigned int red,
regno             233 drivers/video/fbdev/macfb.c 	regno += 256 - (1 << info->var.bits_per_pixel);
regno             240 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &rbv_cmap_regs->addr);
regno             255 drivers/video/fbdev/macfb.c static int mdc_setpalette(unsigned int regno, unsigned int red,
regno             265 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &cmap_regs->addr);
regno             278 drivers/video/fbdev/macfb.c static int toby_setpalette(unsigned int regno, unsigned int red,
regno             289 drivers/video/fbdev/macfb.c 	regno = (regno << (8 - bpp)) | (0xFF >> bpp);
regno             293 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &cmap_regs->addr);
regno             306 drivers/video/fbdev/macfb.c static int jet_setpalette(unsigned int regno, unsigned int red,
regno             315 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &cmap_regs->addr);
regno             336 drivers/video/fbdev/macfb.c static int civic_setpalette(unsigned int regno, unsigned int red,
regno             346 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &civic_cmap_regs->addr);
regno             414 drivers/video/fbdev/macfb.c static int csc_setpalette(unsigned int regno, unsigned int red,
regno             423 drivers/video/fbdev/macfb.c 	nubus_writeb(regno, &csc_cmap_regs->clut_waddr);
regno             432 drivers/video/fbdev/macfb.c static int macfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             443 drivers/video/fbdev/macfb.c 	if (regno >= fb_info->cmap.len)
regno             455 drivers/video/fbdev/macfb.c 				macfb_setpalette(regno, red >> 8, green >> 8,
regno             461 drivers/video/fbdev/macfb.c 	} else if (regno < 16) {
regno             466 drivers/video/fbdev/macfb.c 				((u32*) (fb_info->pseudo_palette))[regno] =
regno             473 drivers/video/fbdev/macfb.c 				((u32*) (fb_info->pseudo_palette))[regno] =
regno             488 drivers/video/fbdev/macfb.c 			((u32 *)(fb_info->pseudo_palette))[regno] =
regno             643 drivers/video/fbdev/matrox/matroxfb_base.c static int matroxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             658 drivers/video/fbdev/matrox/matroxfb_base.c 	if (regno >= minfo->curr.cmap_len)
regno             674 drivers/video/fbdev/matrox/matroxfb_base.c 		mga_outb(M_DAC_REG, regno);
regno             680 drivers/video/fbdev/matrox/matroxfb_base.c 		if (regno >= 16)
regno             688 drivers/video/fbdev/matrox/matroxfb_base.c 			minfo->cmap[regno] = col | (col << 16);
regno             693 drivers/video/fbdev/matrox/matroxfb_base.c 		if (regno >= 16)
regno             695 drivers/video/fbdev/matrox/matroxfb_base.c 		minfo->cmap[regno] =
regno              31 drivers/video/fbdev/matrox/matroxfb_crtc2.c static int matroxfb_dh_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              36 drivers/video/fbdev/matrox/matroxfb_crtc2.c 	if (regno >= 16)
regno              54 drivers/video/fbdev/matrox/matroxfb_crtc2.c 			m2info->cmap[regno] = col | (col << 16);
regno              57 drivers/video/fbdev/matrox/matroxfb_crtc2.c 			m2info->cmap[regno] = col;
regno              64 drivers/video/fbdev/maxinefb.c void maxinefb_ims332_write_register(int regno, register unsigned int val)
regno              69 drivers/video/fbdev/maxinefb.c 	wptr = regs + 0xa0000 + (regno << 4);
regno              74 drivers/video/fbdev/maxinefb.c unsigned int maxinefb_ims332_read_register(int regno)
regno              80 drivers/video/fbdev/maxinefb.c 	rptr = regs + 0x80000 + (regno << 4);
regno              88 drivers/video/fbdev/maxinefb.c static int maxinefb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              94 drivers/video/fbdev/maxinefb.c 	if (regno > 255)
regno             103 drivers/video/fbdev/maxinefb.c 	maxinefb_ims332_write_register(IMS332_REG_COLOR_PALETTE + regno,
regno              77 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c static int mb862xxfb_setcolreg(unsigned regno,
regno              86 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 		if (regno < 16) {
regno              90 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 			par->pseudo_palette[regno] = val;
regno              94 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 		if (regno < 256) {
regno              98 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 			outreg(disp, GC_L0PAL0 + (regno * 4), val);
regno             165 drivers/video/fbdev/mbx/mbxfb.c static int mbxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             170 drivers/video/fbdev/mbx/mbxfb.c 	if (regno < MAX_PALETTES) {
regno             175 drivers/video/fbdev/mbx/mbxfb.c 		pal[regno] = val;
regno             313 drivers/video/fbdev/mmp/fb/mmpfb.c static int mmpfb_setcolreg(unsigned int regno, unsigned int red,
regno             320 drivers/video/fbdev/mmp/fb/mmpfb.c 	if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 16) {
regno             324 drivers/video/fbdev/mmp/fb/mmpfb.c 		fbi->pseudo_palette[regno] = val;
regno             327 drivers/video/fbdev/mmp/fb/mmpfb.c 	if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) {
regno            1025 drivers/video/fbdev/mx3fb.c static int mx3fb_setcolreg(unsigned int regno, unsigned int red,
regno            1033 drivers/video/fbdev/mx3fb.c 	dev_dbg(fbi->device, "%s, regno = %u\n", __func__, regno);
regno            1049 drivers/video/fbdev/mx3fb.c 		if (regno < 16) {
regno            1056 drivers/video/fbdev/mx3fb.c 			pal[regno] = val;
regno            1206 drivers/video/fbdev/neofb.c static int neofb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            1209 drivers/video/fbdev/neofb.c 	if (regno >= fb->cmap.len || regno > 255)
regno            1213 drivers/video/fbdev/neofb.c 		outb(regno, 0x3c8);
regno            1218 drivers/video/fbdev/neofb.c 	} else if (regno < 16) {
regno            1221 drivers/video/fbdev/neofb.c 			((u32 *) fb->pseudo_palette)[regno] =
regno            1226 drivers/video/fbdev/neofb.c 			((u32 *) fb->pseudo_palette)[regno] =
regno            1232 drivers/video/fbdev/neofb.c 			((u32 *) fb->pseudo_palette)[regno] =
regno             697 drivers/video/fbdev/nvidia/nvidia.c static int nvidiafb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             705 drivers/video/fbdev/nvidia/nvidia.c 	if (regno >= (1 << info->var.green.length))
regno             713 drivers/video/fbdev/nvidia/nvidia.c 	if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
regno             714 drivers/video/fbdev/nvidia/nvidia.c 		((u32 *) info->pseudo_palette)[regno] =
regno             715 drivers/video/fbdev/nvidia/nvidia.c 		    (regno << info->var.red.offset) |
regno             716 drivers/video/fbdev/nvidia/nvidia.c 		    (regno << info->var.green.offset) |
regno             717 drivers/video/fbdev/nvidia/nvidia.c 		    (regno << info->var.blue.offset);
regno             723 drivers/video/fbdev/nvidia/nvidia.c 		nvidia_write_clut(par, regno, red >> 8, green >> 8, blue >> 8);
regno             728 drivers/video/fbdev/nvidia/nvidia.c 				nvidia_write_clut(par, regno * 8 + i, red >> 8,
regno             734 drivers/video/fbdev/nvidia/nvidia.c 			if (regno < 32) {
regno             736 drivers/video/fbdev/nvidia/nvidia.c 					nvidia_write_clut(par, regno * 8 + i,
regno             742 drivers/video/fbdev/nvidia/nvidia.c 			nvidia_read_clut(par, regno * 4, &r, &g, &b);
regno             745 drivers/video/fbdev/nvidia/nvidia.c 				nvidia_write_clut(par, regno * 4 + i, r,
regno             750 drivers/video/fbdev/nvidia/nvidia.c 		nvidia_write_clut(par, regno, red >> 8, green >> 8, blue >> 8);
regno             174 drivers/video/fbdev/ocfb.c static int ocfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             181 drivers/video/fbdev/ocfb.c 	if (regno >= info->cmap.len) {
regno             197 drivers/video/fbdev/ocfb.c 		regno <<= 2;
regno             199 drivers/video/fbdev/ocfb.c 		ocfb_writereg(fbdev, OCFB_PALETTE + regno, color);
regno             201 drivers/video/fbdev/ocfb.c 		((u32 *)(info->pseudo_palette))[regno] =
regno              96 drivers/video/fbdev/offb.c static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             108 drivers/video/fbdev/offb.c 		if (regno >= 16)
regno             119 drivers/video/fbdev/offb.c 		pal[regno] = value;
regno             123 drivers/video/fbdev/offb.c 	if (regno > 255)
regno             135 drivers/video/fbdev/offb.c 		writeb(regno, par->cmap_adr);
regno             147 drivers/video/fbdev/offb.c 		out_8(par->cmap_adr + 0xb0, regno);
regno             156 drivers/video/fbdev/offb.c 		out_8(par->cmap_adr + 0xb0, regno);
regno             161 drivers/video/fbdev/offb.c 		out_8(par->cmap_adr + 0xb0, regno);
regno             165 drivers/video/fbdev/offb.c 		out_le32(((unsigned __iomem *) par->cmap_adr) + regno,
regno             171 drivers/video/fbdev/offb.c 		writeb(regno, par->cmap_adr + AVIVO_DC_LUT_RW_INDEX);
regno             175 drivers/video/fbdev/offb.c 		writeb(regno, par->cmap_adr + AVIVO_DC_LUT_RW_INDEX);
regno             411 drivers/video/fbdev/omap/lcdc.c static int omap_lcdc_setcolreg(u_int regno, u16 red, u16 green, u16 blue,
regno             416 drivers/video/fbdev/omap/lcdc.c 	if (lcdc.color_mode != OMAPFB_COLOR_CLUT_8BPP || regno > 255)
regno             421 drivers/video/fbdev/omap/lcdc.c 	palette[regno] &= ~0x0fff;
regno             422 drivers/video/fbdev/omap/lcdc.c 	palette[regno] |= ((red >> 12) << 8) | ((green >> 12) << 4 ) |
regno             175 drivers/video/fbdev/omap/omapfb.h 	int		(*setcolreg)	  (u_int regno, u16 red, u16 green,
regno             239 drivers/video/fbdev/omap/omapfb_main.c static int _setcolreg(struct fb_info *info, u_int regno, u_int red, u_int green,
regno             258 drivers/video/fbdev/omap/omapfb_main.c 			r = fbdev->ctrl->setcolreg(regno, red, green, blue,
regno             266 drivers/video/fbdev/omap/omapfb_main.c 		if (regno < 16) {
regno             273 drivers/video/fbdev/omap/omapfb_main.c 			((u32 *)(info->pseudo_palette))[regno] = pal;
regno             282 drivers/video/fbdev/omap/omapfb_main.c static int omapfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             285 drivers/video/fbdev/omap/omapfb_main.c 	return _setcolreg(info, regno, red, green, blue, transp, 1);
regno            1131 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int _setcolreg(struct fb_info *fbi, u_int regno, u_int red, u_int green,
regno            1167 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (regno < 16) {
regno            1174 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			((u32 *)(fbi->pseudo_palette))[regno] = pal;
regno            1183 drivers/video/fbdev/omap2/omapfb/omapfb-main.c static int omapfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno            1188 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return _setcolreg(info, regno, red, green, blue, transp, 1);
regno             149 drivers/video/fbdev/p9100.c static int p9100_setcolreg(unsigned regno,
regno             157 drivers/video/fbdev/p9100.c 	if (regno >= 256)
regno             166 drivers/video/fbdev/p9100.c 	sbus_writel((regno << 16), &regs->ramdac_cmap_wridx);
regno              77 drivers/video/fbdev/platinumfb.c static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             182 drivers/video/fbdev/platinumfb.c static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             188 drivers/video/fbdev/platinumfb.c 	if (regno > 255)
regno             195 drivers/video/fbdev/platinumfb.c 	pinfo->palette[regno].red = red;
regno             196 drivers/video/fbdev/platinumfb.c 	pinfo->palette[regno].green = green;
regno             197 drivers/video/fbdev/platinumfb.c 	pinfo->palette[regno].blue = blue;
regno             199 drivers/video/fbdev/platinumfb.c 	out_8(&cmap_regs->addr, regno);		/* tell clut what addr to fill	*/
regno             204 drivers/video/fbdev/platinumfb.c 	if (regno < 16) {
regno             209 drivers/video/fbdev/platinumfb.c 			pal[regno] = (regno << 10) | (regno << 5) | regno;
regno             212 drivers/video/fbdev/platinumfb.c 			i = (regno << 8) | regno;
regno             213 drivers/video/fbdev/platinumfb.c 			pal[regno] = (i << 16) | i;
regno             433 drivers/video/fbdev/pm2fb.c static void set_color(struct pm2fb_par *p, unsigned char regno,
regno             437 drivers/video/fbdev/pm2fb.c 	pm2_WR(p, PM2R_RD_PALETTE_WRITE_ADDRESS, regno);
regno             866 drivers/video/fbdev/pm2fb.c static int pm2fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             872 drivers/video/fbdev/pm2fb.c 	if (regno >= info->cmap.len)  /* no. of hw registers */
regno             930 drivers/video/fbdev/pm2fb.c 		if (regno >= 16)
regno             944 drivers/video/fbdev/pm2fb.c 			par->palette[regno] = v;
regno             949 drivers/video/fbdev/pm2fb.c 		set_color(par, regno, red, green, blue);
regno             120 drivers/video/fbdev/pm3fb.c static inline void pm3fb_set_color(struct pm3_par *par, unsigned char regno,
regno             124 drivers/video/fbdev/pm3fb.c 	PM3_WRITE_REG(par, PM3RD_PaletteWriteAddress, regno);
regno            1068 drivers/video/fbdev/pm3fb.c static int pm3fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1074 drivers/video/fbdev/pm3fb.c 	if (regno >= 256)  /* no. of hw registers */
regno            1116 drivers/video/fbdev/pm3fb.c 		if (regno >= 16)
regno            1129 drivers/video/fbdev/pm3fb.c 			((u32 *)(info->pseudo_palette))[regno] = v;
regno            1134 drivers/video/fbdev/pm3fb.c 		pm3fb_set_color(par, regno, red, green, blue);
regno              94 drivers/video/fbdev/pmag-ba-fb.c static int pmagbafb_setcolreg(unsigned int regno, unsigned int red,
regno             100 drivers/video/fbdev/pmag-ba-fb.c 	if (regno >= info->cmap.len)
regno             108 drivers/video/fbdev/pmag-ba-fb.c 	dac_write(par, BT459_ADDR_LO, regno);
regno              98 drivers/video/fbdev/pmagb-b-fb.c static int pmagbbfb_setcolreg(unsigned int regno, unsigned int red,
regno             104 drivers/video/fbdev/pmagb-b-fb.c 	if (regno >= info->cmap.len)
regno             112 drivers/video/fbdev/pmagb-b-fb.c 	dac_write(par, BT459_ADDR_LO, regno);
regno             675 drivers/video/fbdev/ps3fb.c static int ps3fb_setcolreg(unsigned int regno, unsigned int red,
regno             679 drivers/video/fbdev/ps3fb.c 	if (regno >= 16)
regno             687 drivers/video/fbdev/ps3fb.c 	((u32 *)info->pseudo_palette)[regno] = transp << 24 | red << 16 |
regno             237 drivers/video/fbdev/pvr2fb.c 					unsigned int regno,
regno             240 drivers/video/fbdev/pvr2fb.c 	fb_writel(val, par->mmio_base + 0x1000 + (4 * regno));
regno             280 drivers/video/fbdev/pvr2fb.c static int pvr2fb_setcolreg(unsigned int regno, unsigned int red,
regno             287 drivers/video/fbdev/pvr2fb.c 	if (regno > info->cmap.len)
regno             301 drivers/video/fbdev/pvr2fb.c 		pvr2fb_set_pal_entry(par, regno, tmp);
regno             311 drivers/video/fbdev/pvr2fb.c 		pvr2fb_set_pal_entry(par, regno, tmp);
regno             318 drivers/video/fbdev/pvr2fb.c 	if (regno < 16)
regno             319 drivers/video/fbdev/pvr2fb.c 		((u32*)(info->pseudo_palette))[regno] = tmp;
regno             489 drivers/video/fbdev/pxa168fb.c pxa168fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green,
regno             499 drivers/video/fbdev/pxa168fb.c 	if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 16) {
regno             503 drivers/video/fbdev/pxa168fb.c 		fbi->pseudo_palette[regno] = val;
regno             506 drivers/video/fbdev/pxa168fb.c 	if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) {
regno             509 drivers/video/fbdev/pxa168fb.c 		writel(0x8300 | regno, fbi->reg_base + LCD_SPU_SRAM_CTRL);
regno             142 drivers/video/fbdev/pxafb.c pxafb_setpalettereg(u_int regno, u_int red, u_int green, u_int blue,
regno             148 drivers/video/fbdev/pxafb.c 	if (regno >= fbi->palette_size)
regno             152 drivers/video/fbdev/pxafb.c 		fbi->palette_cpu[regno] = ((blue >> 8) & 0x00ff);
regno             161 drivers/video/fbdev/pxafb.c 		fbi->palette_cpu[regno] = val;
regno             167 drivers/video/fbdev/pxafb.c 		((u32 *)(fbi->palette_cpu))[regno] = val;
regno             173 drivers/video/fbdev/pxafb.c 		((u32 *)(fbi->palette_cpu))[regno] = val;
regno             179 drivers/video/fbdev/pxafb.c 		((u32 *)(fbi->palette_cpu))[regno] = val;
regno             187 drivers/video/fbdev/pxafb.c pxafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             220 drivers/video/fbdev/pxafb.c 		if (regno < 16) {
regno             227 drivers/video/fbdev/pxafb.c 			pal[regno] = val;
regno             234 drivers/video/fbdev/pxafb.c 		ret = pxafb_setpalettereg(regno, red, green, blue, trans, info);
regno              54 drivers/video/fbdev/q40fb.c static int q40fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno              64 drivers/video/fbdev/q40fb.c     if (regno > 255)
regno              70 drivers/video/fbdev/q40fb.c     if (regno < 16) {
regno              71 drivers/video/fbdev/q40fb.c 	((u32 *)info->pseudo_palette)[regno] = ((red & 31) <<6) |
regno            1299 drivers/video/fbdev/riva/fbdev.c static int rivafb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1307 drivers/video/fbdev/riva/fbdev.c 	if (regno >= riva_get_cmap_len(&info->var))
regno            1316 drivers/video/fbdev/riva/fbdev.c 	if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
regno            1317 drivers/video/fbdev/riva/fbdev.c 		((u32 *) info->pseudo_palette)[regno] =
regno            1318 drivers/video/fbdev/riva/fbdev.c 			(regno << info->var.red.offset) |
regno            1319 drivers/video/fbdev/riva/fbdev.c 			(regno << info->var.green.offset) |
regno            1320 drivers/video/fbdev/riva/fbdev.c 			(regno << info->var.blue.offset);
regno            1328 drivers/video/fbdev/riva/fbdev.c 				par->palette[regno] = ((red & 0xf800) >> 1) |
regno            1333 drivers/video/fbdev/riva/fbdev.c 				par->palette[regno] = ((red & 0xff00) << 8) |
regno            1344 drivers/video/fbdev/riva/fbdev.c 		riva_wclut(chip, regno, red >> 8, green >> 8, blue >> 8);
regno            1349 drivers/video/fbdev/riva/fbdev.c 				riva_wclut(chip, regno*8+i, red >> 8,
regno            1355 drivers/video/fbdev/riva/fbdev.c 			if (regno < 32) {
regno            1357 drivers/video/fbdev/riva/fbdev.c 					riva_wclut(chip, regno*8+i,
regno            1362 drivers/video/fbdev/riva/fbdev.c 			riva_rclut(chip, regno*4, &r, &g, &b);
regno            1364 drivers/video/fbdev/riva/fbdev.c 				riva_wclut(chip, regno*4+i, r,
regno            1369 drivers/video/fbdev/riva/fbdev.c 		riva_wclut(chip, regno, red >> 8, green >> 8, blue >> 8);
regno              97 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_readreg(struct s1d13xxxfb_par *par, u16 regno)
regno              99 drivers/video/fbdev/s1d13xxxfb.c 	return readb(par->regs + regno);
regno             103 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_writereg(struct s1d13xxxfb_par *par, u16 regno, u8 value)
regno             105 drivers/video/fbdev/s1d13xxxfb.c 	writeb(value, par->regs + regno);
regno             264 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             270 drivers/video/fbdev/s1d13xxxfb.c 	if (regno >= S1D_PALETTE_SIZE)
regno             274 drivers/video/fbdev/s1d13xxxfb.c 		    regno, red, green, blue, transp);
regno             281 drivers/video/fbdev/s1d13xxxfb.c 			if (regno >= 16)
regno             291 drivers/video/fbdev/s1d13xxxfb.c 				    regno, pseudo_val);
regno             293 drivers/video/fbdev/s1d13xxxfb.c 			((u32 *)info->pseudo_palette)[regno] = pseudo_val;
regno             297 drivers/video/fbdev/s1d13xxxfb.c 			s1d13xxxfb_writereg(s1dfb, S1DREG_LKUP_ADDR, regno);
regno             739 drivers/video/fbdev/s3c-fb.c static int s3c_fb_setcolreg(unsigned regno,
regno             748 drivers/video/fbdev/s3c-fb.c 		__func__, win->index, regno, red, green, blue);
regno             756 drivers/video/fbdev/s3c-fb.c 		if (regno < 16) {
regno             763 drivers/video/fbdev/s3c-fb.c 			pal[regno] = val;
regno             768 drivers/video/fbdev/s3c-fb.c 		if (regno < win->variant.palette_sz) {
regno             773 drivers/video/fbdev/s3c-fb.c 			s3c_fb_update_palette(sfb, win, regno, val);
regno             455 drivers/video/fbdev/s3c2410fb.c 				    unsigned int regno, unsigned int val)
regno             463 drivers/video/fbdev/s3c2410fb.c 	fbi->palette_buffer[regno] = val;
regno             486 drivers/video/fbdev/s3c2410fb.c static int s3c2410fb_setcolreg(unsigned regno,
regno             501 drivers/video/fbdev/s3c2410fb.c 		if (regno < 16) {
regno             508 drivers/video/fbdev/s3c2410fb.c 			pal[regno] = val;
regno             513 drivers/video/fbdev/s3c2410fb.c 		if (regno < 256) {
regno             520 drivers/video/fbdev/s3c2410fb.c 			writel(val, regs + S3C2410_TFTPAL(regno));
regno             521 drivers/video/fbdev/s3c2410fb.c 			schedule_palette_update(fbi, regno, val);
regno             915 drivers/video/fbdev/s3fb.c static int s3fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             921 drivers/video/fbdev/s3fb.c 		if (regno >= 16)
regno             927 drivers/video/fbdev/s3fb.c 			outb(regno*16, VGA_PEL_IW);
regno             930 drivers/video/fbdev/s3fb.c 			outb(regno, VGA_PEL_IW);
regno             937 drivers/video/fbdev/s3fb.c 		if (regno >= 256)
regno             941 drivers/video/fbdev/s3fb.c 		outb(regno, VGA_PEL_IW);
regno             947 drivers/video/fbdev/s3fb.c 		if (regno >= 16)
regno             951 drivers/video/fbdev/s3fb.c 			((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) |
regno             954 drivers/video/fbdev/s3fb.c 			((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) |
regno             960 drivers/video/fbdev/s3fb.c 		if (regno >= 16)
regno             963 drivers/video/fbdev/s3fb.c 		((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) |
regno             269 drivers/video/fbdev/sa1100fb.c sa1100fb_setpalettereg(u_int regno, u_int red, u_int green, u_int blue,
regno             276 drivers/video/fbdev/sa1100fb.c 	if (regno < fbi->palette_size) {
regno             281 drivers/video/fbdev/sa1100fb.c 		if (regno == 0)
regno             284 drivers/video/fbdev/sa1100fb.c 		fbi->palette_cpu[regno] = val;
regno             291 drivers/video/fbdev/sa1100fb.c sa1100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             325 drivers/video/fbdev/sa1100fb.c 		if (regno < 16) {
regno             330 drivers/video/fbdev/sa1100fb.c 			fbi->pseudo_palette[regno] = val;
regno             337 drivers/video/fbdev/sa1100fb.c 		ret = sa1100fb_setpalettereg(regno, red, green, blue, trans, info);
regno            1200 drivers/video/fbdev/savage/savagefb_driver.c static int savagefb_setcolreg(unsigned        regno,
regno            1209 drivers/video/fbdev/savage/savagefb_driver.c 	if (regno >= NR_PALETTE)
regno            1212 drivers/video/fbdev/savage/savagefb_driver.c 	par->palette[regno].red    = red;
regno            1213 drivers/video/fbdev/savage/savagefb_driver.c 	par->palette[regno].green  = green;
regno            1214 drivers/video/fbdev/savage/savagefb_driver.c 	par->palette[regno].blue   = blue;
regno            1215 drivers/video/fbdev/savage/savagefb_driver.c 	par->palette[regno].transp = transp;
regno            1219 drivers/video/fbdev/savage/savagefb_driver.c 		vga_out8(0x3c8, regno, par);
regno            1227 drivers/video/fbdev/savage/savagefb_driver.c 		if (regno < 16)
regno            1228 drivers/video/fbdev/savage/savagefb_driver.c 			((u32 *)info->pseudo_palette)[regno] =
regno            1235 drivers/video/fbdev/savage/savagefb_driver.c 		if (regno < 16)
regno            1236 drivers/video/fbdev/savage/savagefb_driver.c 			((u32 *)info->pseudo_palette)[regno] =
regno            1242 drivers/video/fbdev/savage/savagefb_driver.c 		if (regno < 16)
regno            1243 drivers/video/fbdev/savage/savagefb_driver.c 			((u32 *)info->pseudo_palette)[regno] =
regno              97 drivers/video/fbdev/sh7760fb.c static int sh7760_setcolreg (u_int regno,
regno             103 drivers/video/fbdev/sh7760fb.c 	if (regno >= 16)
regno             113 drivers/video/fbdev/sh7760fb.c 	palette[regno] = (red << info->var.red.offset) |
regno            1627 drivers/video/fbdev/sh_mobile_lcdcfb.c static int sh_mobile_lcdc_setcolreg(u_int regno,
regno            1633 drivers/video/fbdev/sh_mobile_lcdcfb.c 	if (regno >= PALETTE_NR)
regno            1643 drivers/video/fbdev/sh_mobile_lcdcfb.c 	palette[regno] = (red << info->var.red.offset) |
regno              44 drivers/video/fbdev/simplefb.c static int simplefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno              53 drivers/video/fbdev/simplefb.c 	if (regno >= PSEUDO_PALETTE_SIZE)
regno              64 drivers/video/fbdev/simplefb.c 	pal[regno] = value;
regno              79 drivers/video/fbdev/sis/sis_main.c static int	sisfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1405 drivers/video/fbdev/sis/sis_main.c sisfb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue,
regno            1410 drivers/video/fbdev/sis/sis_main.c 	if(regno >= sisfb_get_cmap_len(&info->var))
regno            1415 drivers/video/fbdev/sis/sis_main.c 		SiS_SetRegByte(SISDACA, regno);
regno            1420 drivers/video/fbdev/sis/sis_main.c 			SiS_SetRegByte(SISDAC2A, regno);
regno            1427 drivers/video/fbdev/sis/sis_main.c 		if (regno >= 16)
regno            1430 drivers/video/fbdev/sis/sis_main.c 		((u32 *)(info->pseudo_palette))[regno] =
regno            1436 drivers/video/fbdev/sis/sis_main.c 		if (regno >= 16)
regno            1442 drivers/video/fbdev/sis/sis_main.c 		((u32 *)(info->pseudo_palette))[regno] =
regno             284 drivers/video/fbdev/skeletonfb.c static int xxxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             288 drivers/video/fbdev/skeletonfb.c     if (regno >= 256)  /* no. of hw registers */
regno             399 drivers/video/fbdev/skeletonfb.c 	    if (regno >= 16)
regno             407 drivers/video/fbdev/skeletonfb.c 	    ((u32*)(info->pseudo_palette))[regno] = v;
regno             911 drivers/video/fbdev/sm501fb.c static int sm501fb_setcolreg(unsigned regno,
regno             929 drivers/video/fbdev/sm501fb.c 		if (regno < 16) {
regno             936 drivers/video/fbdev/sm501fb.c 			pal[regno] = val;
regno             941 drivers/video/fbdev/sm501fb.c 		if (regno < 256) {
regno             946 drivers/video/fbdev/sm501fb.c 			smc501_writel(val, base + (regno * 4));
regno             860 drivers/video/fbdev/sm712fb.c static void sm712_setpalette(int regno, unsigned int red, unsigned int green,
regno             866 drivers/video/fbdev/sm712fb.c 	smtc_mmiowb(regno, dac_reg);
regno             971 drivers/video/fbdev/sm712fb.c static int smtc_setcolreg(unsigned int regno, unsigned int red,
regno             980 drivers/video/fbdev/sm712fb.c 	if (regno > 255)
regno             989 drivers/video/fbdev/sm712fb.c 		if (regno >= 16)
regno             997 drivers/video/fbdev/sm712fb.c 			pal[regno] = pal_rgb(red, green, blue, val);
regno            1004 drivers/video/fbdev/sm712fb.c 			pal[regno] = big_swap(val);
regno            1010 drivers/video/fbdev/sm712fb.c 		sm712_setpalette(regno, red, green, blue, info);
regno            1035 drivers/video/fbdev/smscufx.c ufx_ops_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1040 drivers/video/fbdev/smscufx.c 	if (regno >= info->cmap.len)
regno            1043 drivers/video/fbdev/smscufx.c 	if (regno < 16) {
regno            1046 drivers/video/fbdev/smscufx.c 			((u32 *) (info->pseudo_palette))[regno] =
regno            1051 drivers/video/fbdev/smscufx.c 			((u32 *) (info->pseudo_palette))[regno] =
regno             667 drivers/video/fbdev/sstfb.c static int sstfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             675 drivers/video/fbdev/sstfb.c 	            regno, red, green, blue, transp);
regno             676 drivers/video/fbdev/sstfb.c 	if (regno > 15)
regno             688 drivers/video/fbdev/sstfb.c 	par->palette[regno] = col;
regno             925 drivers/video/fbdev/stifb.c stifb_setcolreg(u_int regno, u_int red, u_int green,
regno             931 drivers/video/fbdev/stifb.c 	if (regno >= NR_PALETTE)
regno             955 drivers/video/fbdev/stifb.c 		if (regno < 16)
regno             956 drivers/video/fbdev/stifb.c 			((u32 *)fb->info.pseudo_palette)[regno] =
regno             957 drivers/video/fbdev/stifb.c 				regno << var->red.offset |
regno             958 drivers/video/fbdev/stifb.c 				regno << var->green.offset |
regno             959 drivers/video/fbdev/stifb.c 				regno << var->blue.offset;
regno             962 drivers/video/fbdev/stifb.c 	WRITE_IMAGE_COLOR(fb, regno, color);
regno              44 drivers/video/fbdev/sunxvr1000.c static int gfb_setcolreg(unsigned regno,
regno              50 drivers/video/fbdev/sunxvr1000.c 	if (regno < 16) {
regno              56 drivers/video/fbdev/sunxvr1000.c 		((u32 *)info->pseudo_palette)[regno] = value;
regno              48 drivers/video/fbdev/sunxvr2500.c static int s3d_setcolreg(unsigned regno,
regno              54 drivers/video/fbdev/sunxvr2500.c 	if (regno < 16) {
regno              60 drivers/video/fbdev/sunxvr2500.c 		((u32 *)info->pseudo_palette)[regno] = value;
regno             111 drivers/video/fbdev/sunxvr500.c static int e3d_setcolreg(unsigned regno,
regno             120 drivers/video/fbdev/sunxvr500.c 	if (regno >= 256)
regno             129 drivers/video/fbdev/sunxvr500.c 	if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 16)
regno             130 drivers/video/fbdev/sunxvr500.c 		((u32 *)info->pseudo_palette)[regno] = value;
regno             138 drivers/video/fbdev/sunxvr500.c 	e3d_clut_write(ep, regno, value);
regno             170 drivers/video/fbdev/tcx.c static int tcx_setcolreg(unsigned regno,
regno             178 drivers/video/fbdev/tcx.c 	if (regno >= 256)
regno             187 drivers/video/fbdev/tcx.c 	sbus_writel(regno << 24, &bt->addr);
regno             280 drivers/video/fbdev/tdfxfb.c static inline void do_setpalentry(struct tdfx_par *par, unsigned regno, u32 c)
regno             283 drivers/video/fbdev/tdfxfb.c 	tdfx_outl(par, DACADDR, regno);
regno             740 drivers/video/fbdev/tdfxfb.c static int tdfxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             747 drivers/video/fbdev/tdfxfb.c 	if (regno >= info->cmap.len || regno > 255)
regno             763 drivers/video/fbdev/tdfxfb.c 		do_setpalentry(par, regno, rgbcol);
regno             767 drivers/video/fbdev/tdfxfb.c 		if (regno < 16) {
regno             776 drivers/video/fbdev/tdfxfb.c 			par->palette[regno] = rgbcol;
regno             515 drivers/video/fbdev/tgafb.c tgafb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue,
regno             522 drivers/video/fbdev/tgafb.c 	if (regno > 255)
regno             529 drivers/video/fbdev/tgafb.c 		BT485_WRITE(par, regno, BT485_ADDR_PAL_WRITE);
regno             535 drivers/video/fbdev/tgafb.c 		BT459_LOAD_ADDR(par, regno);
regno             541 drivers/video/fbdev/tgafb.c 		if (regno < 16) {
regno             542 drivers/video/fbdev/tgafb.c 			u32 value = (regno << 16) | (regno << 8) | regno;
regno             543 drivers/video/fbdev/tgafb.c 			((u32 *)info->pseudo_palette)[regno] = value;
regno             545 drivers/video/fbdev/tgafb.c 		BT463_LOAD_ADDR(par, regno);
regno             623 drivers/video/fbdev/tmiofb.c static int tmiofb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             629 drivers/video/fbdev/tmiofb.c 	if (regno < ARRAY_SIZE(par->pseudo_palette)) {
regno             630 drivers/video/fbdev/tmiofb.c 		par->pseudo_palette[regno] =
regno            1362 drivers/video/fbdev/tridentfb.c static int tridentfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno            1369 drivers/video/fbdev/tridentfb.c 	if (regno >= info->cmap.len)
regno            1374 drivers/video/fbdev/tridentfb.c 		t_outb(par, regno, VGA_PEL_IW);
regno            1380 drivers/video/fbdev/tridentfb.c 	} else if (regno < 16) {
regno            1387 drivers/video/fbdev/tridentfb.c 			((u32 *)(info->pseudo_palette))[regno] = col;
regno            1389 drivers/video/fbdev/tridentfb.c 			((u32 *)info->pseudo_palette)[regno] =
regno             926 drivers/video/fbdev/udlfb.c dlfb_ops_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             931 drivers/video/fbdev/udlfb.c 	if (regno >= info->cmap.len)
regno             934 drivers/video/fbdev/udlfb.c 	if (regno < 16) {
regno             937 drivers/video/fbdev/udlfb.c 			((u32 *) (info->pseudo_palette))[regno] =
regno             942 drivers/video/fbdev/udlfb.c 			((u32 *) (info->pseudo_palette))[regno] =
regno             987 drivers/video/fbdev/uvesafb.c static int uvesafb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             995 drivers/video/fbdev/uvesafb.c 	if (regno >= info->cmap.len)
regno            1004 drivers/video/fbdev/uvesafb.c 		err = uvesafb_setpalette(&entry, 1, regno, info);
regno            1005 drivers/video/fbdev/uvesafb.c 	} else if (regno < 16) {
regno            1010 drivers/video/fbdev/uvesafb.c 				((u32 *) (info->pseudo_palette))[regno] =
regno            1016 drivers/video/fbdev/uvesafb.c 				((u32 *) (info->pseudo_palette))[regno] =
regno            1028 drivers/video/fbdev/uvesafb.c 			((u32 *)(info->pseudo_palette))[regno] =
regno             103 drivers/video/fbdev/valkyriefb.c static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             219 drivers/video/fbdev/valkyriefb.c static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             227 drivers/video/fbdev/valkyriefb.c 	if (regno > 255)
regno             234 drivers/video/fbdev/valkyriefb.c 	out_8(&p->cmap_regs->addr, regno);
regno             241 drivers/video/fbdev/valkyriefb.c 	if (regno < 16 && par->cmode == CMODE_16)
regno             242 drivers/video/fbdev/valkyriefb.c 		((u32 *)info->pseudo_palette)[regno] =
regno             243 drivers/video/fbdev/valkyriefb.c 			(regno << 10) | (regno << 5) | regno;
regno             950 drivers/video/fbdev/vermilion/vermilion.c static int vmlfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             955 drivers/video/fbdev/vermilion/vermilion.c 	if (regno >= 16)
regno             977 drivers/video/fbdev/vermilion/vermilion.c 		((u32 *) info->pseudo_palette)[regno] = v;
regno             981 drivers/video/fbdev/vermilion/vermilion.c 		((u32 *) info->pseudo_palette)[regno] = v;
regno              86 drivers/video/fbdev/vesafb.c static int vesa_setpalette(int regno, unsigned red, unsigned green,
regno              96 drivers/video/fbdev/vesafb.c 		outb_p(regno,       dac_reg);
regno             120 drivers/video/fbdev/vesafb.c                   "d" (regno),          /* EDX */
regno             130 drivers/video/fbdev/vesafb.c static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             143 drivers/video/fbdev/vesafb.c 	if (regno >= info->cmap.len)
regno             147 drivers/video/fbdev/vesafb.c 		err = vesa_setpalette(regno,red,green,blue);
regno             148 drivers/video/fbdev/vesafb.c 	else if (regno < 16) {
regno             153 drivers/video/fbdev/vesafb.c 				((u32*) (info->pseudo_palette))[regno] =
regno             159 drivers/video/fbdev/vesafb.c 				((u32*) (info->pseudo_palette))[regno] =
regno             170 drivers/video/fbdev/vesafb.c 			((u32 *)(info->pseudo_palette))[regno] =
regno              74 drivers/video/fbdev/vfb.c static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             268 drivers/video/fbdev/vfb.c static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             271 drivers/video/fbdev/vfb.c 	if (regno >= 256)	/* no. of hw registers */
regno             330 drivers/video/fbdev/vfb.c 		if (regno >= 16)
regno             341 drivers/video/fbdev/vfb.c 			((u32 *) (info->pseudo_palette))[regno] = v;
regno             345 drivers/video/fbdev/vfb.c 			((u32 *) (info->pseudo_palette))[regno] = v;
regno             636 drivers/video/fbdev/vga16fb.c static void ega16_setpalette(int regno, unsigned red, unsigned green, unsigned blue)
regno             641 drivers/video/fbdev/vga16fb.c 	if (regno >= 16)
regno             645 drivers/video/fbdev/vga16fb.c 	vga_io_wattr(regno, val);
regno             650 drivers/video/fbdev/vga16fb.c static void vga16_setpalette(int regno, unsigned red, unsigned green, unsigned blue)
regno             652 drivers/video/fbdev/vga16fb.c 	outb(regno,       VGA_PEL_IW);
regno             658 drivers/video/fbdev/vga16fb.c static int vga16fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             672 drivers/video/fbdev/vga16fb.c 	if (regno >= 256)
regno             682 drivers/video/fbdev/vga16fb.c 		vga16_setpalette(regno,red,green,blue);
regno             684 drivers/video/fbdev/vga16fb.c 		ega16_setpalette(regno,red,green,blue);
regno             296 drivers/video/fbdev/via/viafbdev.c static int viafb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             303 drivers/video/fbdev/via/viafbdev.c 		if (regno > 255)
regno             307 drivers/video/fbdev/via/viafbdev.c 			viafb_set_primary_color_register(regno, red >> 8,
regno             311 drivers/video/fbdev/via/viafbdev.c 			viafb_set_secondary_color_register(regno, red >> 8,
regno             314 drivers/video/fbdev/via/viafbdev.c 		if (regno > 15)
regno             323 drivers/video/fbdev/via/viafbdev.c 		((u32 *) info->pseudo_palette)[regno] = r | g | b;
regno             139 drivers/video/fbdev/vt8500lcdfb.c static int vt8500lcd_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             145 drivers/video/fbdev/vt8500lcdfb.c 	if (regno >= 256)
regno             154 drivers/video/fbdev/vt8500lcdfb.c 		if (regno < 16) {
regno             161 drivers/video/fbdev/vt8500lcdfb.c 			pal[regno] = val;
regno             171 drivers/video/fbdev/vt8500lcdfb.c 		       fbi->palette_cpu + sizeof(u16) * regno);
regno             518 drivers/video/fbdev/vt8623fb.c static int vt8623fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             524 drivers/video/fbdev/vt8623fb.c 		if (regno >= 16)
regno             528 drivers/video/fbdev/vt8623fb.c 		outb(regno, VGA_PEL_IW);
regno             534 drivers/video/fbdev/vt8623fb.c 		if (regno >= 256)
regno             538 drivers/video/fbdev/vt8623fb.c 		outb(regno, VGA_PEL_IW);
regno             544 drivers/video/fbdev/vt8623fb.c 		if (regno >= 16)
regno             548 drivers/video/fbdev/vt8623fb.c 			((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) |
regno             551 drivers/video/fbdev/vt8623fb.c 			((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) |
regno             558 drivers/video/fbdev/vt8623fb.c 		if (regno >= 16)
regno             562 drivers/video/fbdev/vt8623fb.c 		((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) |
regno             202 drivers/video/fbdev/w100fb.c static int w100fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno             219 drivers/video/fbdev/w100fb.c 	if (regno < MAX_PALETTES) {
regno             223 drivers/video/fbdev/w100fb.c 		pal[regno] = val;
regno             192 drivers/video/fbdev/wm8505fb.c static int wm8505fb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             198 drivers/video/fbdev/wm8505fb.c 	if (regno >= 256)
regno             207 drivers/video/fbdev/wm8505fb.c 		if (regno < 16) {
regno             214 drivers/video/fbdev/wm8505fb.c 			pal[regno] = val;
regno             214 drivers/video/fbdev/xen-fbfront.c static int xenfb_setcolreg(unsigned regno, unsigned red, unsigned green,
regno             220 drivers/video/fbdev/xen-fbfront.c 	if (regno > info->cmap.len)
regno             238 drivers/video/fbdev/xen-fbfront.c 		((u32 *)info->pseudo_palette)[regno] = v;
regno             198 drivers/video/fbdev/xilinxfb.c xilinx_fb_setcolreg(unsigned int regno, unsigned int red, unsigned int green,
regno             203 drivers/video/fbdev/xilinxfb.c 	if (regno >= PALETTE_ENTRIES_NO)
regno             221 drivers/video/fbdev/xilinxfb.c 	palette[regno] = (red << RED_SHIFT) | (green << GREEN_SHIFT) |
regno             250 include/linux/fb.h 	int (*fb_setcolreg)(unsigned regno, unsigned red, unsigned green,
regno              93 include/linux/kgdb.h extern char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs);
regno              94 include/linux/kgdb.h extern int dbg_set_reg(int regno, void *mem, struct pt_regs *regs);
regno             202 kernel/bpf/verifier.c 	int regno;
regno             887 kernel/bpf/verifier.c 				struct bpf_reg_state *regs, u32 regno)
regno             889 kernel/bpf/verifier.c 	if (WARN_ON(regno >= MAX_BPF_REG)) {
regno             890 kernel/bpf/verifier.c 		verbose(env, "mark_reg_known_zero(regs, %u)\n", regno);
regno             892 kernel/bpf/verifier.c 		for (regno = 0; regno < MAX_BPF_REG; regno++)
regno             893 kernel/bpf/verifier.c 			__mark_reg_not_init(env, regs + regno);
regno             896 kernel/bpf/verifier.c 	__mark_reg_known_zero(regs + regno);
regno            1008 kernel/bpf/verifier.c 			     struct bpf_reg_state *regs, u32 regno)
regno            1010 kernel/bpf/verifier.c 	if (WARN_ON(regno >= MAX_BPF_REG)) {
regno            1011 kernel/bpf/verifier.c 		verbose(env, "mark_reg_unknown(regs, %u)\n", regno);
regno            1013 kernel/bpf/verifier.c 		for (regno = 0; regno < BPF_REG_FP; regno++)
regno            1014 kernel/bpf/verifier.c 			__mark_reg_not_init(env, regs + regno);
regno            1017 kernel/bpf/verifier.c 	__mark_reg_unknown(env, regs + regno);
regno            1028 kernel/bpf/verifier.c 			      struct bpf_reg_state *regs, u32 regno)
regno            1030 kernel/bpf/verifier.c 	if (WARN_ON(regno >= MAX_BPF_REG)) {
regno            1031 kernel/bpf/verifier.c 		verbose(env, "mark_reg_not_init(regs, %u)\n", regno);
regno            1033 kernel/bpf/verifier.c 		for (regno = 0; regno < BPF_REG_FP; regno++)
regno            1034 kernel/bpf/verifier.c 			__mark_reg_not_init(env, regs + regno);
regno            1037 kernel/bpf/verifier.c 	__mark_reg_not_init(env, regs + regno);
regno            1248 kernel/bpf/verifier.c 		     u32 regno, struct bpf_reg_state *reg, enum reg_arg_type t)
regno            1312 kernel/bpf/verifier.c 		if (regno == BPF_REG_6)
regno            1358 kernel/bpf/verifier.c static int check_reg_arg(struct bpf_verifier_env *env, u32 regno,
regno            1367 kernel/bpf/verifier.c 	if (regno >= MAX_BPF_REG) {
regno            1368 kernel/bpf/verifier.c 		verbose(env, "R%d is invalid\n", regno);
regno            1372 kernel/bpf/verifier.c 	reg = &regs[regno];
regno            1373 kernel/bpf/verifier.c 	rw64 = is_reg64(env, insn, regno, reg, t);
regno            1377 kernel/bpf/verifier.c 			verbose(env, "R%d !read_ok\n", regno);
regno            1381 kernel/bpf/verifier.c 		if (regno == BPF_REG_FP)
regno            1391 kernel/bpf/verifier.c 		if (regno == BPF_REG_FP) {
regno            1398 kernel/bpf/verifier.c 			mark_reg_unknown(env, regs, regno);
regno            1660 kernel/bpf/verifier.c static int __mark_chain_precision(struct bpf_verifier_env *env, int regno,
regno            1668 kernel/bpf/verifier.c 	u32 reg_mask = regno >= 0 ? 1u << regno : 0;
regno            1679 kernel/bpf/verifier.c 	if (regno >= 0) {
regno            1680 kernel/bpf/verifier.c 		reg = &func->regs[regno];
regno            1823 kernel/bpf/verifier.c static int mark_chain_precision(struct bpf_verifier_env *env, int regno)
regno            1825 kernel/bpf/verifier.c 	return __mark_chain_precision(env, regno, -1);
regno            2147 kernel/bpf/verifier.c static int check_map_access_type(struct bpf_verifier_env *env, u32 regno,
regno            2151 kernel/bpf/verifier.c 	struct bpf_map *map = regs[regno].map_ptr;
regno            2170 kernel/bpf/verifier.c static int __check_map_access(struct bpf_verifier_env *env, u32 regno, int off,
regno            2174 kernel/bpf/verifier.c 	struct bpf_map *map = regs[regno].map_ptr;
regno            2186 kernel/bpf/verifier.c static int check_map_access(struct bpf_verifier_env *env, u32 regno,
regno            2191 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = &state->regs[regno];
regno            2212 kernel/bpf/verifier.c 			regno);
regno            2215 kernel/bpf/verifier.c 	err = __check_map_access(env, regno, reg->smin_value + off, size,
regno            2219 kernel/bpf/verifier.c 			regno);
regno            2229 kernel/bpf/verifier.c 			regno);
regno            2232 kernel/bpf/verifier.c 	err = __check_map_access(env, regno, reg->umax_value + off, size,
regno            2236 kernel/bpf/verifier.c 			regno);
regno            2297 kernel/bpf/verifier.c static int __check_packet_access(struct bpf_verifier_env *env, u32 regno,
regno            2301 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = &regs[regno];
regno            2306 kernel/bpf/verifier.c 			off, size, regno, reg->id, reg->off, reg->range);
regno            2312 kernel/bpf/verifier.c static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off,
regno            2316 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = &regs[regno];
regno            2329 kernel/bpf/verifier.c 			regno);
regno            2332 kernel/bpf/verifier.c 	err = __check_packet_access(env, regno, off, size, zero_size_allowed);
regno            2334 kernel/bpf/verifier.c 		verbose(env, "R%d offset is outside of the packet\n", regno);
regno            2394 kernel/bpf/verifier.c 			     u32 regno, int off, int size,
regno            2398 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = &regs[regno];
regno            2404 kernel/bpf/verifier.c 			regno);
regno            2433 kernel/bpf/verifier.c 		regno, reg_type_str[reg->type], off, size);
regno            2438 kernel/bpf/verifier.c static struct bpf_reg_state *reg_state(struct bpf_verifier_env *env, int regno)
regno            2440 kernel/bpf/verifier.c 	return cur_regs(env) + regno;
regno            2443 kernel/bpf/verifier.c static bool is_pointer_value(struct bpf_verifier_env *env, int regno)
regno            2445 kernel/bpf/verifier.c 	return __is_pointer_value(env->allow_ptr_leaks, reg_state(env, regno));
regno            2448 kernel/bpf/verifier.c static bool is_ctx_reg(struct bpf_verifier_env *env, int regno)
regno            2450 kernel/bpf/verifier.c 	const struct bpf_reg_state *reg = reg_state(env, regno);
regno            2455 kernel/bpf/verifier.c static bool is_sk_reg(struct bpf_verifier_env *env, int regno)
regno            2457 kernel/bpf/verifier.c 	const struct bpf_reg_state *reg = reg_state(env, regno);
regno            2462 kernel/bpf/verifier.c static bool is_pkt_reg(struct bpf_verifier_env *env, int regno)
regno            2464 kernel/bpf/verifier.c 	const struct bpf_reg_state *reg = reg_state(env, regno);
regno            2469 kernel/bpf/verifier.c static bool is_flow_key_reg(struct bpf_verifier_env *env, int regno)
regno            2471 kernel/bpf/verifier.c 	const struct bpf_reg_state *reg = reg_state(env, regno);
regno            2680 kernel/bpf/verifier.c 			 const struct bpf_reg_state *reg, int regno)
regno            2688 kernel/bpf/verifier.c 			regno, reg->off);
regno            2705 kernel/bpf/verifier.c 				  int regno, int off, int size)
regno            2710 kernel/bpf/verifier.c 			regno, off, size);
regno            2719 kernel/bpf/verifier.c 			regno, off, tn_buf);
regno            2758 kernel/bpf/verifier.c static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regno,
regno            2763 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = regs + regno;
regno            2785 kernel/bpf/verifier.c 		err = check_map_access_type(env, regno, off, size, t);
regno            2788 kernel/bpf/verifier.c 		err = check_map_access(env, regno, off, size, false);
regno            2801 kernel/bpf/verifier.c 		err = check_ctx_reg(env, reg, regno);
regno            2856 kernel/bpf/verifier.c 		err = check_packet_access(env, regno, off, size, false);
regno            2873 kernel/bpf/verifier.c 				regno, reg_type_str[reg->type]);
regno            2876 kernel/bpf/verifier.c 		err = check_sock_access(env, insn_idx, regno, off, size, t);
regno            2880 kernel/bpf/verifier.c 		err = check_tp_buffer_access(env, reg, regno, off, size);
regno            2884 kernel/bpf/verifier.c 		verbose(env, "R%d invalid mem access '%s'\n", regno,
regno            2943 kernel/bpf/verifier.c static int __check_stack_boundary(struct bpf_verifier_env *env, u32 regno,
regno            2947 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = reg_state(env, regno);
regno            2953 kernel/bpf/verifier.c 				regno, off, access_size);
regno            2959 kernel/bpf/verifier.c 				regno, tn_buf, access_size);
regno            2972 kernel/bpf/verifier.c static int check_stack_boundary(struct bpf_verifier_env *env, int regno,
regno            2976 kernel/bpf/verifier.c 	struct bpf_reg_state *reg = reg_state(env, regno);
regno            2986 kernel/bpf/verifier.c 		verbose(env, "R%d type=%s expected=%s\n", regno,
regno            2994 kernel/bpf/verifier.c 		err = __check_stack_boundary(env, regno, min_off, access_size,
regno            3009 kernel/bpf/verifier.c 				regno, tn_buf);
regno            3024 kernel/bpf/verifier.c 				regno);
regno            3029 kernel/bpf/verifier.c 		err = __check_stack_boundary(env, regno, min_off, access_size,
regno            3033 kernel/bpf/verifier.c 				regno);
regno            3036 kernel/bpf/verifier.c 		err = __check_stack_boundary(env, regno, max_off, access_size,
regno            3040 kernel/bpf/verifier.c 				regno);
regno            3047 kernel/bpf/verifier.c 		meta->regno = regno;
regno            3097 kernel/bpf/verifier.c static int check_helper_mem_access(struct bpf_verifier_env *env, int regno,
regno            3101 kernel/bpf/verifier.c 	struct bpf_reg_state *regs = cur_regs(env), *reg = &regs[regno];
regno            3106 kernel/bpf/verifier.c 		return check_packet_access(env, regno, reg->off, access_size,
regno            3109 kernel/bpf/verifier.c 		if (check_map_access_type(env, regno, reg->off, access_size,
regno            3113 kernel/bpf/verifier.c 		return check_map_access(env, regno, reg->off, access_size,
regno            3116 kernel/bpf/verifier.c 		return check_stack_boundary(env, regno, access_size,
regno            3140 kernel/bpf/verifier.c static int process_spin_lock(struct bpf_verifier_env *env, int regno,
regno            3143 kernel/bpf/verifier.c 	struct bpf_reg_state *regs = cur_regs(env), *reg = &regs[regno];
regno            3150 kernel/bpf/verifier.c 		verbose(env, "R%d is not a pointer to map_value\n", regno);
regno            3156 kernel/bpf/verifier.c 			regno);
regno            3235 kernel/bpf/verifier.c static int check_func_arg(struct bpf_verifier_env *env, u32 regno,
regno            3239 kernel/bpf/verifier.c 	struct bpf_reg_state *regs = cur_regs(env), *reg = &regs[regno];
regno            3246 kernel/bpf/verifier.c 	err = check_reg_arg(env, regno, SRC_OP);
regno            3251 kernel/bpf/verifier.c 		if (is_pointer_value(env, regno)) {
regno            3253 kernel/bpf/verifier.c 				regno);
regno            3290 kernel/bpf/verifier.c 		err = check_ctx_reg(env, reg, regno);
regno            3301 kernel/bpf/verifier.c 					regno, reg->ref_obj_id,
regno            3313 kernel/bpf/verifier.c 			if (process_spin_lock(env, regno, true))
regno            3316 kernel/bpf/verifier.c 			if (process_spin_lock(env, regno, false))
regno            3364 kernel/bpf/verifier.c 		err = check_helper_mem_access(env, regno,
regno            3380 kernel/bpf/verifier.c 		err = check_helper_mem_access(env, regno,
regno            3404 kernel/bpf/verifier.c 				regno);
regno            3409 kernel/bpf/verifier.c 			err = check_helper_mem_access(env, regno - 1, 0,
regno            3418 kernel/bpf/verifier.c 				regno);
regno            3421 kernel/bpf/verifier.c 		err = check_helper_mem_access(env, regno - 1,
regno            3425 kernel/bpf/verifier.c 			err = mark_chain_precision(env, regno);
regno            3429 kernel/bpf/verifier.c 		err = check_helper_mem_access(env, regno, size, false, meta);
regno            3437 kernel/bpf/verifier.c 	verbose(env, "R%d type=%s expected=%s\n", regno,
regno            4045 kernel/bpf/verifier.c 		err = check_mem_access(env, insn_idx, meta.regno, i, BPF_B,
regno            5749 kernel/bpf/verifier.c static void mark_ptr_or_null_regs(struct bpf_verifier_state *vstate, u32 regno,
regno            5754 kernel/bpf/verifier.c 	u32 ref_obj_id = regs[regno].ref_obj_id;
regno            5755 kernel/bpf/verifier.c 	u32 id = regs[regno].id;
regno              58 samples/vfio-mdev/mdpy-fb.c static int mdpy_fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
regno              67 samples/vfio-mdev/mdpy-fb.c 	if (regno >= PSEUDO_PALETTE_SIZE)
regno              78 samples/vfio-mdev/mdpy-fb.c 	pal[regno] = value;