gp                 48 arch/alpha/include/uapi/asm/ptrace.h 	unsigned long gp;
gp                188 arch/alpha/kernel/core_wildfire.c 	wildfire_gp *gp;
gp                229 arch/alpha/kernel/core_wildfire.c 		gp = WILDFIRE_gp(soft_qbb);
gp                232 arch/alpha/kernel/core_wildfire.c 			temp |= gp->gpa_qbb_map[i].csr << (i * 8);
gp                235 arch/alpha/kernel/core_wildfire.c 			       i, gp, temp);
gp                604 arch/alpha/kernel/core_wildfire.c 	wildfire_gp *gp = WILDFIRE_gp(qbbno);
gp                607 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR "GP registers for QBB %d (%p)\n", qbbno, gp);
gp                610 arch/alpha/kernel/core_wildfire.c 		       i, gp->gpa_qbb_map[i].csr);
gp                613 arch/alpha/kernel/core_wildfire.c 	       gp->gpa_mem_pop_map.csr);
gp                614 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR " GPA_SCRATCH:       0x%16lx\n", gp->gpa_scratch.csr);
gp                615 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR " GPA_DIAG:          0x%16lx\n", gp->gpa_diag.csr);
gp                616 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR " GPA_CONFIG_0:      0x%16lx\n", gp->gpa_config_0.csr);
gp                617 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR " GPA_INIT_ID:       0x%16lx\n", gp->gpa_init_id.csr);
gp                618 arch/alpha/kernel/core_wildfire.c 	printk(KERN_ERR " GPA_CONFIG_2:      0x%16lx\n", gp->gpa_config_2.csr);
gp                141 arch/alpha/kernel/module.c 	unsigned long got, gp;
gp                151 arch/alpha/kernel/module.c 	gp = (u64)me->core_layout.base + me->core_layout.size - 0x8000;
gp                181 arch/alpha/kernel/module.c 			value -= gp;
gp                188 arch/alpha/kernel/module.c 			lo = hi - gp;
gp                197 arch/alpha/kernel/module.c 			value = gp - (u64)location;
gp                240 arch/alpha/kernel/module.c 			value = (long)(value - gp + 0x8000) >> 16;
gp                246 arch/alpha/kernel/module.c 			value -= gp;
gp                250 arch/alpha/kernel/module.c 			value -= gp;
gp                323 arch/alpha/kernel/process.c 	dest[29] = pt->gp;
gp                 91 arch/alpha/kernel/ptrace.c 	PT_REG(	  r28), PT_REG(	   gp),		   -1,		   -1,
gp                188 arch/alpha/kernel/signal.c 	err |= __get_user(regs->gp, sc->sc_regs+29);
gp                311 arch/alpha/kernel/signal.c 	err |= __put_user(regs->gp , sc->sc_regs+29);
gp                 95 arch/alpha/kernel/traps.c 	printk("gp = %016lx  sp = %p\n", regs->gp, regs+1);
gp                424 arch/alpha/kernel/traps.c 	unsigned long ps, pc, gp, a0, a1, a2;
gp                625 arch/alpha/kernel/traps.c 	printk("gp = %016lx  sp = %p\n", regs->gp, regs+1);
gp                715 arch/alpha/kernel/traps.c 	R(r27), R(r28), R(gp),
gp                 58 arch/arc/include/asm/entry-arcv2.h 	; (B) Manually saved some regs: r12,r25,r30, sp,fp,gp, ACCL pair
gp                137 arch/arc/include/asm/entry-arcv2.h 	ST2	gp, fp, PT_r26		; gp (r26), fp (r27)
gp                173 arch/arc/include/asm/entry-arcv2.h 	LD2	gp, fp, PT_r26		; gp (r26), fp (r27)
gp                182 arch/arc/include/asm/entry-compact.h 	PUSH	gp
gp                231 arch/arc/include/asm/entry-compact.h 	POP	gp
gp                271 arch/arc/include/asm/entry-compact.h 	PUSH	gp
gp                315 arch/arc/include/asm/entry-compact.h 	POP	gp
gp                 39 arch/arc/include/uapi/asm/ptrace.h 		unsigned long status32, ret, blink, fp, gp;
gp                 56 arch/arc/kernel/ptrace.c 	REG_O_ONE(scratch.gp, &ptregs->r26);
gp                146 arch/arc/kernel/ptrace.c 	REG_IN_ONE(scratch.gp, &ptregs->r26);
gp                 79 arch/arc/kernel/signal.c 	uregs.scratch.gp	= regs->r26;
gp                124 arch/arc/kernel/signal.c 	regs->r26	= uregs.scratch.gp;
gp                148 arch/arm/mach-imx/iomux-imx31.c void mxc_iomux_set_gpr(enum iomux_gp_func gp, bool en)
gp                155 arch/arm/mach-imx/iomux-imx31.c 		l |= gp;
gp                157 arch/arm/mach-imx/iomux-imx31.c 		l &= ~gp;
gp                142 arch/hexagon/include/asm/elf.h 	DEST.gp = REGS->gp;		\
gp                 60 arch/hexagon/include/uapi/asm/registers.h 			unsigned long gp;
gp                 54 arch/hexagon/include/uapi/asm/user.h 	unsigned long gp;
gp                 61 arch/hexagon/kernel/kgdb.c 	{ " gp", GDB_SIZEOF_REG, offsetof(struct pt_regs, gp)},
gp                 74 arch/hexagon/kernel/ptrace.c 	ONEXT(&regs->gp, gp);
gp                123 arch/hexagon/kernel/ptrace.c 	INEXT(&regs->gp, gp);
gp                 52 arch/hexagon/kernel/signal.c 	err |= __put_user(regs->gp, &sc->sc_regs.gp);
gp                 82 arch/hexagon/kernel/signal.c 	err |= __get_user(regs->gp, &sc->sc_regs.gp);
gp                 34 arch/hexagon/kernel/vm_events.c 	       regs->gp, regs->ugp, regs->usr);
gp                 38 arch/ia64/hp/common/aml_nfw.c 	void *gp;
gp                 49 arch/ia64/hp/common/aml_nfw.c 	u64 gp;
gp                 67 arch/ia64/hp/common/aml_nfw.c 	virt_entry.gp = virt_map(c->gp);
gp                232 arch/ia64/include/asm/elf.h 	uint64_t gp;
gp                 29 arch/ia64/include/asm/mca.h 	unsigned long gp;
gp                130 arch/ia64/include/asm/mca_asm.h 	DATA_VA_TO_PA(gp);								\
gp                204 arch/ia64/include/asm/mca_asm.h 	movl	gp = __gp					\
gp                 22 arch/ia64/include/asm/module.h 	unsigned long gp;		/* global-pointer for module */
gp                173 arch/ia64/include/asm/sal.h 	u64 gp;
gp                 28 arch/ia64/include/asm/types.h 	unsigned long gp;
gp                108 arch/ia64/include/asm/unwind.h extern void *unw_add_unwind_table (const char *name, unsigned long segment_base, unsigned long gp,
gp                 40 arch/ia64/kernel/esi.c 	u64 gp;
gp                 46 arch/ia64/kernel/esi.c 	void *gp;
gp                123 arch/ia64/kernel/esi.c 				pdesc.gp = __va(esi->gp);
gp                175 arch/ia64/kernel/esi.c 				pdesc.gp = (void *)esi->gp;
gp                 88 arch/ia64/kernel/machine_kexec.c 	u64 fp, gp;
gp                 99 arch/ia64/kernel/machine_kexec.c 		gp = ia64_tpa(ia64_getreg(_IA64_REG_GP));
gp                100 arch/ia64/kernel/machine_kexec.c 		ia64_sal_set_vectors(SAL_VECTOR_OS_INIT, fp, gp, 0, fp, gp, 0);
gp               1988 arch/ia64/kernel/mca.c 				       ia64_tpa(mca_hldlr_ptr->gp),
gp               1998 arch/ia64/kernel/mca.c 		       ia64_mc_info.imi_mca_handler, ia64_tpa(mca_hldlr_ptr->gp));
gp                548 arch/ia64/kernel/mca_drv.c 		pmsa->pmsa_gr[1-1] = mca_hdlr_bh->gp;
gp                528 arch/ia64/kernel/module.c 	return (uint64_t) e - mod->arch.gp;
gp                534 arch/ia64/kernel/module.c 	return value - mod->arch.gp + MAX_LTOFF/2 < MAX_LTOFF;
gp                614 arch/ia64/kernel/module.c 	fdesc->gp = mod->arch.gp;
gp                634 arch/ia64/kernel/module.c 	      case RV_GPREL:	  val -= mod->arch.gp; break;
gp                718 arch/ia64/kernel/module.c 				val -= mod->arch.gp;
gp                809 arch/ia64/kernel/module.c 	if (!mod->arch.gp) {
gp                814 arch/ia64/kernel/module.c 		uint64_t gp;
gp                820 arch/ia64/kernel/module.c 			gp = mod->core_layout.size - MAX_LTOFF / 2;
gp                822 arch/ia64/kernel/module.c 			gp = mod->core_layout.size / 2;
gp                823 arch/ia64/kernel/module.c 		gp = (uint64_t) mod->core_layout.base + ((gp + 7) & -8);
gp                824 arch/ia64/kernel/module.c 		mod->arch.gp = gp;
gp                825 arch/ia64/kernel/module.c 		DEBUGP("%s: placing gp at 0x%lx\n", __func__, gp);
gp                886 arch/ia64/kernel/module.c 	       mod->name, mod->arch.gp, num_init, num_core);
gp                892 arch/ia64/kernel/module.c 		mod->arch.core_unw_table = unw_add_unwind_table(mod->name, 0, mod->arch.gp,
gp                898 arch/ia64/kernel/module.c 		mod->arch.init_unw_table = unw_add_unwind_table(mod->name, 0, mod->arch.gp,
gp                120 arch/ia64/kernel/sal.c 	ia64_sal_handler_init(__va(ep->sal_proc), __va(ep->gp));
gp                772 arch/ia64/kernel/smpboot.c 		unsigned long gp;
gp                779 arch/ia64/kernel/smpboot.c 				       ia64_tpa(ap_startup->fp), ia64_tpa(ap_startup->gp), 0, 0, 0, 0);
gp               2083 arch/ia64/kernel/unwind.c 		   unsigned long gp, const void *table_start, const void *table_end)
gp               2089 arch/ia64/kernel/unwind.c 	table->gp = gp;
gp               2097 arch/ia64/kernel/unwind.c unw_add_unwind_table (const char *name, unsigned long segment_base, unsigned long gp,
gp               2114 arch/ia64/kernel/unwind.c 	init_unwind_table(table, name, segment_base, gp, table_start, table_end);
gp                 52 arch/ia64/kernel/unwind_i.h 	unsigned long gp;		/* global pointer for this load-module */
gp                 68 arch/mips/fw/cfe/cfe_api.c int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1)
gp                 79 arch/mips/fw/cfe/cfe_api.c 	xiocb.plist.xiocb_cpuctl.gp_val = gp;
gp                 12 arch/mips/include/asm/amon.h 		   unsigned long gp, unsigned long a0);
gp                 85 arch/mips/include/asm/fw/cfe/cfe_api.h int cfe_cpu_start(int cpu, void (*fn) (void), long sp, long gp, long a1);
gp                123 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h 	LONG_L	gp, (t0)
gp                 49 arch/mips/include/asm/mach-paravirt/kernel-entry-init.h 	PTR_L	gp, 0(t1)
gp                 10 arch/mips/include/asm/mips-boards/launch.h     unsigned long	gp;
gp                 41 arch/mips/include/asm/pmon.h #define pmon_cpustart(n, f, sp, gp)	debug_vectors->_s.cpustart(n, f, sp, gp)
gp                 15 arch/mips/include/asm/smp-cps.h 	unsigned long gp;
gp                402 arch/mips/kernel/asm-offsets.c 	OFFSET(VPEBOOTCFG_GP, vpe_boot_config, gp);
gp                150 arch/mips/kernel/pm-cps.c 		vpe_cfg->gp = (unsigned long)current_thread_info();
gp                 71 arch/mips/kernel/smp-cmp.c 	struct thread_info *gp = task_thread_info(idle);
gp                 81 arch/mips/kernel/smp-cmp.c 	flush_icache_range((unsigned long)gp,
gp                 82 arch/mips/kernel/smp-cmp.c 			   (unsigned long)(gp + sizeof(struct thread_info)));
gp                 85 arch/mips/kernel/smp-cmp.c 	amon_cpu_start(cpu, pc, sp, (unsigned long)gp, a0);
gp                310 arch/mips/kernel/smp-cps.c 	vpe_cfg->gp = (unsigned long)task_thread_info(idle);
gp                144 arch/mips/kernel/smp-mt.c 	struct thread_info *gp = task_thread_info(idle);
gp                165 arch/mips/kernel/smp-mt.c 	write_tc_gpr_gp((unsigned long)gp);
gp                167 arch/mips/kernel/smp-mt.c 	flush_icache_range((unsigned long)gp,
gp                168 arch/mips/kernel/smp-mt.c 			   (unsigned long)(gp + sizeof(struct thread_info)));
gp                 43 arch/mips/mti-malta/malta-amon.c 		    unsigned long gp, unsigned long a0)
gp                 59 arch/mips/mti-malta/malta-amon.c 	launch->gp = gp;
gp                200 arch/mips/sgi-ip27/ip27-smp.c 	unsigned long gp = (unsigned long)task_thread_info(idle);
gp                205 arch/mips/sgi-ip27/ip27-smp.c 		0, (void *) sp, (void *) gp);
gp                 27 arch/nds32/include/asm/ptrace.h 			long gp;
gp                 15 arch/nds32/include/uapi/asm/ptrace.h 	long gp;
gp               1367 arch/nds32/kernel/perf_event_cpu.c 	unsigned long gp = 0;
gp               1381 arch/nds32/kernel/perf_event_cpu.c 	gp = regs->gp;
gp               1416 arch/nds32/kernel/perf_event_cpu.c 			if (buftail.stack_fp == gp) {
gp                103 arch/nds32/kernel/process.c 		regs->lp, print_tainted(), regs->sp, regs->fp, regs->gp);
gp                118 arch/nds32/kernel/signal.c 	__get_user_error(regs->gp, &sf->uc.uc_mcontext.nds32_gp, err);
gp                204 arch/nds32/kernel/signal.c 	__put_user_error(regs->gp, &sf->uc.uc_mcontext.nds32_gp, err);
gp                 57 arch/nios2/include/asm/elf.h 	pr_reg[19] = regs->gp;						\
gp                 72 arch/nios2/include/asm/elf.h 		pr_reg[32] = sw->gp;					\
gp                 58 arch/nios2/include/asm/entry.h 	stw	gp, PT_GP(sp)
gp                 82 arch/nios2/include/asm/entry.h 	ldw	gp, PT_GP(sp)
gp                100 arch/nios2/include/asm/entry.h 	stw	gp, SW_GP(sp)
gp                114 arch/nios2/include/asm/entry.h 	ldw	gp, SW_GP(sp)
gp                 42 arch/nios2/include/asm/ptrace.h 	unsigned long  gp;	/* Global pointer */
gp                 62 arch/nios2/include/asm/ptrace.h 	unsigned long  gp;
gp                 48 arch/nios2/kernel/asm-offsets.c 	OFFSET(PT_GP, pt_regs, gp);
gp                 63 arch/nios2/kernel/asm-offsets.c 	OFFSET(SW_GP, switch_stack, gp);
gp                 46 arch/nios2/kernel/kgdb.c 	{ "gp", GDB_SIZEOF_REG, offsetof(struct pt_regs, gp) },
gp                 93 arch/nios2/kernel/process.c 		regs->ra,  regs->fp,  regs->sp,  regs->gp);
gp                 51 arch/nios2/kernel/ptrace.c 	REG_O_ONE(&regs->gp, PTR_GP);
gp                 97 arch/nios2/kernel/ptrace.c 	REG_IN_ONE(&regs->gp, PTR_GP);
gp                 78 arch/nios2/kernel/signal.c 	err |= __get_user(sw->gp, &gregs[25]);  /* Verify, should this be
gp                159 arch/nios2/kernel/signal.c 	err |= __put_user(sw->gp, &gregs[25]);
gp                 28 arch/parisc/include/asm/asmregs.h gp:	.reg	r27
gp                 76 arch/parisc/include/asm/assembly.h 	gp	=	27
gp                161 arch/parisc/include/asm/elf.h 	__u32	gp;
gp                169 arch/parisc/include/asm/elf.h 	__u64	gp;
gp                 50 arch/parisc/include/asm/unwind.h 	unsigned long gp;
gp                 70 arch/parisc/include/asm/unwind.h 		 unsigned long gp, void *start, void *end);
gp                410 arch/parisc/kernel/module.c 	fdesc->gp = (Elf_Addr)me->core_layout.base + me->arch.got_offset;
gp                835 arch/parisc/kernel/module.c 	unsigned long gp;
gp                842 arch/parisc/kernel/module.c 	gp = (Elf_Addr)me->core_layout.base + me->arch.got_offset;
gp                845 arch/parisc/kernel/module.c 	       me->arch.unwind_section, table, end, gp);
gp                846 arch/parisc/kernel/module.c 	me->arch.unwind = unwind_table_add(me->name, 0, gp, table, end);
gp                874 arch/parisc/kernel/module.c 	       entry->gp, entry->addr);
gp                330 arch/parisc/kernel/signal.c 			regs->gr[19] = fdesc.gp;
gp                343 arch/parisc/kernel/signal.c 		regs->gr[19] = fdesc.gp;
gp                100 arch/parisc/kernel/unwind.c 		  unsigned long base_addr, unsigned long gp,
gp                109 arch/parisc/kernel/unwind.c 	table->gp = gp;
gp                144 arch/parisc/kernel/unwind.c 		 unsigned long gp,
gp                157 arch/parisc/kernel/unwind.c 	unwind_table_init(table, name, base_addr, gp, start, end);
gp                180 arch/parisc/kernel/unwind.c 	register unsigned long gp __asm__ ("r27");
gp                190 arch/parisc/kernel/unwind.c 			  gp, 
gp                112 arch/powerpc/include/asm/kvm_book3s_64.h void kvmhv_put_nested(struct kvm_nested_guest *gp);
gp                626 arch/powerpc/include/asm/smu.h 	__s32	gp,gr,gd;
gp                 25 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_update_ptbl_cache(struct kvm_nested_guest *gp);
gp                424 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_set_nested_ptbl(struct kvm_nested_guest *gp)
gp                429 arch/powerpc/kvm/book3s_hv_nested.c 		__pa(gp->shadow_pgtable) | RADIX_PGD_INDEX_SIZE;
gp                430 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_set_ptbl_entry(gp->shadow_lpid, dw0, gp->process_table);
gp                475 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                496 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kvmhv_get_nested(vcpu->kvm, l1_lpid, false);
gp                497 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp) {
gp                502 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_lock(&gp->tlb_lock);
gp                506 arch/powerpc/kvm/book3s_hv_nested.c 		rc = __kvmhv_copy_tofrom_guest_radix(gp->shadow_lpid, pid,
gp                522 arch/powerpc/kvm/book3s_hv_nested.c 		rc = __kvmhv_copy_tofrom_guest_radix(gp->shadow_lpid, pid,
gp                529 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_unlock(&gp->tlb_lock);
gp                530 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_put_nested(gp);
gp                543 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_update_ptbl_cache(struct kvm_nested_guest *gp)
gp                548 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm *kvm = gp->l1_host;
gp                551 arch/powerpc/kvm/book3s_hv_nested.c 	ptbl_addr = (kvm->arch.l1_ptcr & PRTB_MASK) + (gp->l1_lpid << 4);
gp                552 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp->l1_lpid < (1ul << ((kvm->arch.l1_ptcr & PRTS_MASK) + 8)))
gp                556 arch/powerpc/kvm/book3s_hv_nested.c 		gp->l1_gr_to_hr = 0;
gp                557 arch/powerpc/kvm/book3s_hv_nested.c 		gp->process_table = 0;
gp                559 arch/powerpc/kvm/book3s_hv_nested.c 		gp->l1_gr_to_hr = be64_to_cpu(ptbl_entry.patb0);
gp                560 arch/powerpc/kvm/book3s_hv_nested.c 		gp->process_table = be64_to_cpu(ptbl_entry.patb1);
gp                562 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_set_nested_ptbl(gp);
gp                567 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                570 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kzalloc(sizeof(*gp), GFP_KERNEL);
gp                571 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp)
gp                573 arch/powerpc/kvm/book3s_hv_nested.c 	gp->l1_host = kvm;
gp                574 arch/powerpc/kvm/book3s_hv_nested.c 	gp->l1_lpid = lpid;
gp                575 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_init(&gp->tlb_lock);
gp                576 arch/powerpc/kvm/book3s_hv_nested.c 	gp->shadow_pgtable = pgd_alloc(kvm->mm);
gp                577 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp->shadow_pgtable)
gp                582 arch/powerpc/kvm/book3s_hv_nested.c 	gp->shadow_lpid = shadow_lpid;
gp                583 arch/powerpc/kvm/book3s_hv_nested.c 	gp->radix = 1;
gp                585 arch/powerpc/kvm/book3s_hv_nested.c 	memset(gp->prev_cpu, -1, sizeof(gp->prev_cpu));
gp                587 arch/powerpc/kvm/book3s_hv_nested.c 	return gp;
gp                590 arch/powerpc/kvm/book3s_hv_nested.c 	pgd_free(kvm->mm, gp->shadow_pgtable);
gp                592 arch/powerpc/kvm/book3s_hv_nested.c 	kfree(gp);
gp                599 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_release_nested(struct kvm_nested_guest *gp)
gp                601 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm *kvm = gp->l1_host;
gp                603 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp->shadow_pgtable) {
gp                609 arch/powerpc/kvm/book3s_hv_nested.c 		kvmppc_free_pgtable_radix(kvm, gp->shadow_pgtable,
gp                610 arch/powerpc/kvm/book3s_hv_nested.c 					  gp->shadow_lpid);
gp                611 arch/powerpc/kvm/book3s_hv_nested.c 		pgd_free(kvm->mm, gp->shadow_pgtable);
gp                613 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_set_ptbl_entry(gp->shadow_lpid, 0, 0);
gp                614 arch/powerpc/kvm/book3s_hv_nested.c 	kvmppc_free_lpid(gp->shadow_lpid);
gp                615 arch/powerpc/kvm/book3s_hv_nested.c 	kfree(gp);
gp                618 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_remove_nested(struct kvm_nested_guest *gp)
gp                620 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm *kvm = gp->l1_host;
gp                621 arch/powerpc/kvm/book3s_hv_nested.c 	int lpid = gp->l1_lpid;
gp                625 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp == kvm->arch.nested_guests[lpid]) {
gp                632 arch/powerpc/kvm/book3s_hv_nested.c 		--gp->refcnt;
gp                634 arch/powerpc/kvm/book3s_hv_nested.c 	ref = gp->refcnt;
gp                637 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_release_nested(gp);
gp                649 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                656 arch/powerpc/kvm/book3s_hv_nested.c 		gp = kvm->arch.nested_guests[i];
gp                657 arch/powerpc/kvm/book3s_hv_nested.c 		if (!gp)
gp                660 arch/powerpc/kvm/book3s_hv_nested.c 		if (--gp->refcnt == 0) {
gp                661 arch/powerpc/kvm/book3s_hv_nested.c 			gp->next = freelist;
gp                662 arch/powerpc/kvm/book3s_hv_nested.c 			freelist = gp;
gp                667 arch/powerpc/kvm/book3s_hv_nested.c 	while ((gp = freelist) != NULL) {
gp                668 arch/powerpc/kvm/book3s_hv_nested.c 		freelist = gp->next;
gp                669 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_release_nested(gp);
gp                679 arch/powerpc/kvm/book3s_hv_nested.c static void kvmhv_flush_nested(struct kvm_nested_guest *gp)
gp                681 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm *kvm = gp->l1_host;
gp                684 arch/powerpc/kvm/book3s_hv_nested.c 	kvmppc_free_pgtable_radix(kvm, gp->shadow_pgtable, gp->shadow_lpid);
gp                686 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_flush_lpid(gp->shadow_lpid);
gp                687 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_update_ptbl_cache(gp);
gp                688 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp->l1_gr_to_hr == 0)
gp                689 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_remove_nested(gp);
gp                695 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp, *newgp;
gp                702 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kvm->arch.nested_guests[l1_lpid];
gp                703 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp)
gp                704 arch/powerpc/kvm/book3s_hv_nested.c 		++gp->refcnt;
gp                707 arch/powerpc/kvm/book3s_hv_nested.c 	if (gp || !create)
gp                708 arch/powerpc/kvm/book3s_hv_nested.c 		return gp;
gp                716 arch/powerpc/kvm/book3s_hv_nested.c 		gp = kvm->arch.nested_guests[l1_lpid];
gp                720 arch/powerpc/kvm/book3s_hv_nested.c 		gp = newgp;
gp                725 arch/powerpc/kvm/book3s_hv_nested.c 	++gp->refcnt;
gp                731 arch/powerpc/kvm/book3s_hv_nested.c 	return gp;
gp                734 arch/powerpc/kvm/book3s_hv_nested.c void kvmhv_put_nested(struct kvm_nested_guest *gp)
gp                736 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm *kvm = gp->l1_host;
gp                740 arch/powerpc/kvm/book3s_hv_nested.c 	ref = --gp->refcnt;
gp                743 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_release_nested(gp);
gp                795 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                802 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kvmhv_find_nested(kvm, lpid);
gp                803 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp)
gp                807 arch/powerpc/kvm/book3s_hv_nested.c 	ptep = __find_linux_pte(gp->shadow_pgtable, gpa, NULL, &shift);
gp                845 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                852 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kvmhv_find_nested(kvm, lpid);
gp                853 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp)
gp                857 arch/powerpc/kvm/book3s_hv_nested.c 	ptep = __find_linux_pte(gp->shadow_pgtable, gpa, NULL, &shift);
gp                860 arch/powerpc/kvm/book3s_hv_nested.c 		kvmppc_unmap_pte(kvm, ptep, gpa, shift, NULL, gp->shadow_lpid);
gp                915 arch/powerpc/kvm/book3s_hv_nested.c 					struct kvm_nested_guest *gp,
gp                924 arch/powerpc/kvm/book3s_hv_nested.c 	ptep = __find_linux_pte(gp->shadow_pgtable, gpa, NULL, &shift);
gp                928 arch/powerpc/kvm/book3s_hv_nested.c 		kvmppc_unmap_pte(kvm, ptep, gpa, shift, NULL, gp->shadow_lpid);
gp                977 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp                991 arch/powerpc/kvm/book3s_hv_nested.c 	gp = kvmhv_get_nested(kvm, lpid, false);
gp                992 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp) /* No such guest -> nothing to do */
gp                994 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_lock(&gp->tlb_lock);
gp                998 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_invalidate_shadow_pte(vcpu, gp, addr, &shadow_shift);
gp               1004 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_unlock(&gp->tlb_lock);
gp               1005 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_put_nested(gp);
gp               1010 arch/powerpc/kvm/book3s_hv_nested.c 				     struct kvm_nested_guest *gp, int ric)
gp               1014 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_lock(&gp->tlb_lock);
gp               1019 arch/powerpc/kvm/book3s_hv_nested.c 		kvmppc_free_pgtable_radix(kvm, gp->shadow_pgtable,
gp               1020 arch/powerpc/kvm/book3s_hv_nested.c 					  gp->shadow_lpid);
gp               1021 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_flush_lpid(gp->shadow_lpid);
gp               1032 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_flush_nested(gp);
gp               1037 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_unlock(&gp->tlb_lock);
gp               1043 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp               1048 arch/powerpc/kvm/book3s_hv_nested.c 		gp = kvm->arch.nested_guests[i];
gp               1049 arch/powerpc/kvm/book3s_hv_nested.c 		if (gp) {
gp               1051 arch/powerpc/kvm/book3s_hv_nested.c 			kvmhv_emulate_tlbie_lpid(vcpu, gp, ric);
gp               1062 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp;
gp               1098 arch/powerpc/kvm/book3s_hv_nested.c 		gp = kvmhv_get_nested(kvm, lpid, false);
gp               1099 arch/powerpc/kvm/book3s_hv_nested.c 		if (gp) {
gp               1100 arch/powerpc/kvm/book3s_hv_nested.c 			kvmhv_emulate_tlbie_lpid(vcpu, gp, ric);
gp               1101 arch/powerpc/kvm/book3s_hv_nested.c 			kvmhv_put_nested(gp);
gp               1134 arch/powerpc/kvm/book3s_hv_nested.c 				       struct kvm_nested_guest *gp,
gp               1141 arch/powerpc/kvm/book3s_hv_nested.c 	ret = kvmppc_mmu_walk_radix_tree(vcpu, n_gpa, gpte_p, gp->l1_gr_to_hr,
gp               1196 arch/powerpc/kvm/book3s_hv_nested.c 				       struct kvm_nested_guest *gp,
gp               1223 arch/powerpc/kvm/book3s_hv_nested.c 	ret = kvmppc_hv_handle_set_rc(kvm, gp->shadow_pgtable, writing, n_gpa,
gp               1224 arch/powerpc/kvm/book3s_hv_nested.c 				      gp->shadow_lpid);
gp               1262 arch/powerpc/kvm/book3s_hv_nested.c 					  struct kvm_nested_guest *gp)
gp               1279 arch/powerpc/kvm/book3s_hv_nested.c 	if (!gp->l1_gr_to_hr) {
gp               1280 arch/powerpc/kvm/book3s_hv_nested.c 		kvmhv_update_ptbl_cache(gp);
gp               1281 arch/powerpc/kvm/book3s_hv_nested.c 		if (!gp->l1_gr_to_hr)
gp               1290 arch/powerpc/kvm/book3s_hv_nested.c 	ret = kvmhv_translate_addr_nested(vcpu, gp, n_gpa, dsisr, &gpte);
gp               1306 arch/powerpc/kvm/book3s_hv_nested.c 		ret = kvmhv_handle_nested_set_rc(vcpu, gp, n_gpa, gpte, dsisr);
gp               1415 arch/powerpc/kvm/book3s_hv_nested.c 		(((unsigned long) gp->l1_lpid) << RMAP_NESTED_LPID_SHIFT);
gp               1417 arch/powerpc/kvm/book3s_hv_nested.c 	ret = kvmppc_create_pte(kvm, gp->shadow_pgtable, pte, n_gpa, level,
gp               1418 arch/powerpc/kvm/book3s_hv_nested.c 				mmu_seq, gp->shadow_lpid, rmapp, &n_rmap);
gp               1427 arch/powerpc/kvm/book3s_hv_nested.c 	kvmhv_invalidate_shadow_pte(vcpu, gp, n_gpa, NULL);
gp               1433 arch/powerpc/kvm/book3s_hv_nested.c 	struct kvm_nested_guest *gp = vcpu->arch.nested;
gp               1436 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_lock(&gp->tlb_lock);
gp               1437 arch/powerpc/kvm/book3s_hv_nested.c 	ret = __kvmhv_nested_page_fault(run, vcpu, gp);
gp               1438 arch/powerpc/kvm/book3s_hv_nested.c 	mutex_unlock(&gp->tlb_lock);
gp                 98 arch/powerpc/platforms/powermac/pfunc_base.c 	struct device_node *gparent, *gp;
gp                117 arch/powerpc/platforms/powermac/pfunc_base.c 	for (gp = NULL; (gp = of_get_next_child(gparent, gp)) != NULL;) {
gp                118 arch/powerpc/platforms/powermac/pfunc_base.c 		const u32 *reg = of_get_property(gp, "reg", NULL);
gp                129 arch/powerpc/platforms/powermac/pfunc_base.c 		pmf_register_driver(gp, &macio_gpio_handlers, (void *)offset);
gp                136 arch/powerpc/platforms/powermac/pfunc_base.c 	for (gp = NULL; (gp = of_get_next_child(gparent, gp)) != NULL;)
gp                137 arch/powerpc/platforms/powermac/pfunc_base.c 		pmf_do_functions(gp, NULL, 0, PMF_FLAGS_ON_INIT, NULL);
gp                 18 arch/riscv/include/asm/ptrace.h 	unsigned long gp;
gp                 23 arch/riscv/include/uapi/asm/ptrace.h 	unsigned long gp;
gp                106 arch/riscv/kernel/asm-offsets.c 	OFFSET(PT_GP, pt_regs, gp);
gp                 41 arch/riscv/kernel/process.c 		regs->gp, regs->tp, regs->t0);
gp                110 arch/riscv/kernel/process.c 		const register unsigned long gp __asm__ ("gp");
gp                112 arch/riscv/kernel/process.c 		childregs->gp = gp;
gp                242 arch/sparc/kernel/process_64.c static void __global_reg_poll(struct global_reg_snapshot *gp)
gp                246 arch/sparc/kernel/process_64.c 	while (!gp->thread && ++limit < 100) {
gp                274 arch/sparc/kernel/process_64.c 		struct global_reg_snapshot *gp;
gp                279 arch/sparc/kernel/process_64.c 		gp = &global_cpu_snapshot[cpu].reg;
gp                281 arch/sparc/kernel/process_64.c 		__global_reg_poll(gp);
gp                283 arch/sparc/kernel/process_64.c 		tp = gp->thread;
gp                286 arch/sparc/kernel/process_64.c 		       gp->tstate, gp->tpc, gp->tnpc,
gp                290 arch/sparc/kernel/process_64.c 		if (gp->tstate & TSTATE_PRIV) {
gp                292 arch/sparc/kernel/process_64.c 			       (void *) gp->tpc,
gp                293 arch/sparc/kernel/process_64.c 			       (void *) gp->o7,
gp                294 arch/sparc/kernel/process_64.c 			       (void *) gp->i7,
gp                295 arch/sparc/kernel/process_64.c 			       (void *) gp->rpc);
gp                298 arch/sparc/kernel/process_64.c 			       gp->tpc, gp->o7, gp->i7, gp->rpc);
gp                 37 arch/um/kernel/exec.c 	get_safe_registers(current_pt_regs()->regs.gp,
gp                170 arch/um/kernel/process.c 			REGS_SP(p->thread.regs.regs.gp) = sp;
gp                176 arch/um/kernel/process.c 		get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp);
gp                 31 arch/um/kernel/skas/syscall.c 	UPT_SYSCALL_NR(r) = PT_SYSCALL_NR(r->gp);
gp                 18 arch/um/os-Linux/registers.c 	err = ptrace(PTRACE_GETREGS, pid, 0, regs->gp);
gp                 28 arch/um/os-Linux/registers.c 	err = ptrace(PTRACE_SETREGS, pid, 0, regs->gp);
gp                354 arch/um/os-Linux/skas/process.c 		if (ptrace(PTRACE_SETREGS, pid, 0, regs->gp)) {
gp                386 arch/um/os-Linux/skas/process.c 		if (ptrace(PTRACE_GETREGS, pid, 0, regs->gp)) {
gp                442 arch/um/os-Linux/skas/process.c 				PT_SYSCALL_NR(regs->gp) = -1;
gp                150 arch/x86/um/asm/elf.h 	(pr_reg)[0] = (_regs)->regs.gp[0];			\
gp                151 arch/x86/um/asm/elf.h 	(pr_reg)[1] = (_regs)->regs.gp[1];			\
gp                152 arch/x86/um/asm/elf.h 	(pr_reg)[2] = (_regs)->regs.gp[2];			\
gp                153 arch/x86/um/asm/elf.h 	(pr_reg)[3] = (_regs)->regs.gp[3];			\
gp                154 arch/x86/um/asm/elf.h 	(pr_reg)[4] = (_regs)->regs.gp[4];			\
gp                155 arch/x86/um/asm/elf.h 	(pr_reg)[5] = (_regs)->regs.gp[5];			\
gp                156 arch/x86/um/asm/elf.h 	(pr_reg)[6] = (_regs)->regs.gp[6];			\
gp                157 arch/x86/um/asm/elf.h 	(pr_reg)[7] = (_regs)->regs.gp[7];			\
gp                158 arch/x86/um/asm/elf.h 	(pr_reg)[8] = (_regs)->regs.gp[8];			\
gp                159 arch/x86/um/asm/elf.h 	(pr_reg)[9] = (_regs)->regs.gp[9];			\
gp                160 arch/x86/um/asm/elf.h 	(pr_reg)[10] = (_regs)->regs.gp[10];			\
gp                161 arch/x86/um/asm/elf.h 	(pr_reg)[11] = (_regs)->regs.gp[11];			\
gp                162 arch/x86/um/asm/elf.h 	(pr_reg)[12] = (_regs)->regs.gp[12];			\
gp                163 arch/x86/um/asm/elf.h 	(pr_reg)[13] = (_regs)->regs.gp[13];			\
gp                164 arch/x86/um/asm/elf.h 	(pr_reg)[14] = (_regs)->regs.gp[14];			\
gp                165 arch/x86/um/asm/elf.h 	(pr_reg)[15] = (_regs)->regs.gp[15];			\
gp                166 arch/x86/um/asm/elf.h 	(pr_reg)[16] = (_regs)->regs.gp[16];			\
gp                167 arch/x86/um/asm/elf.h 	(pr_reg)[17] = (_regs)->regs.gp[17];			\
gp                168 arch/x86/um/asm/elf.h 	(pr_reg)[18] = (_regs)->regs.gp[18];			\
gp                169 arch/x86/um/asm/elf.h 	(pr_reg)[19] = (_regs)->regs.gp[19];			\
gp                170 arch/x86/um/asm/elf.h 	(pr_reg)[20] = (_regs)->regs.gp[20];			\
gp                 10 arch/x86/um/os-Linux/mcontext.c #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y]
gp                 11 arch/x86/um/os-Linux/mcontext.c #define COPY(X) regs->gp[X] = mc->gregs[REG_##X]
gp                 12 arch/x86/um/os-Linux/mcontext.c #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff;
gp                 13 arch/x86/um/os-Linux/mcontext.c #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3;
gp                 20 arch/x86/um/os-Linux/mcontext.c #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y]
gp                 21 arch/x86/um/os-Linux/mcontext.c #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X]
gp                 29 arch/x86/um/os-Linux/mcontext.c 	regs->gp[CS / sizeof(unsigned long)] &= 0xffff;
gp                 30 arch/x86/um/os-Linux/mcontext.c 	regs->gp[CS / sizeof(unsigned long)] |= 3;
gp                115 arch/x86/um/ptrace_32.c 		child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
gp                120 arch/x86/um/ptrace_32.c 	child->thread.regs.regs.gp[reg_offsets[regno]] = value;
gp                172 arch/x86/um/ptrace_32.c 	return mask & child->thread.regs.regs.gp[reg_offsets[regno]];
gp                107 arch/x86/um/ptrace_64.c 		child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
gp                114 arch/x86/um/ptrace_64.c 	child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value;
gp                178 arch/x86/um/ptrace_64.c 	return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]];
gp                 26 arch/x86/um/shared/sysdep/ptrace.h #define UPT_IP(r) REGS_IP((r)->gp)
gp                 27 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SP(r) REGS_SP((r)->gp)
gp                 28 arch/x86/um/shared/sysdep/ptrace.h #define UPT_EFLAGS(r) REGS_EFLAGS((r)->gp)
gp                 29 arch/x86/um/shared/sysdep/ptrace.h #define UPT_AX(r) REGS_AX((r)->gp)
gp                 30 arch/x86/um/shared/sysdep/ptrace.h #define UPT_BX(r) REGS_BX((r)->gp)
gp                 31 arch/x86/um/shared/sysdep/ptrace.h #define UPT_CX(r) REGS_CX((r)->gp)
gp                 32 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DX(r) REGS_DX((r)->gp)
gp                 33 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SI(r) REGS_SI((r)->gp)
gp                 34 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DI(r) REGS_DI((r)->gp)
gp                 35 arch/x86/um/shared/sysdep/ptrace.h #define UPT_BP(r) REGS_BP((r)->gp)
gp                 36 arch/x86/um/shared/sysdep/ptrace.h #define UPT_CS(r) REGS_CS((r)->gp)
gp                 37 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SS(r) REGS_SS((r)->gp)
gp                 38 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DS(r) REGS_DS((r)->gp)
gp                 39 arch/x86/um/shared/sysdep/ptrace.h #define UPT_ES(r) REGS_ES((r)->gp)
gp                 60 arch/x86/um/shared/sysdep/ptrace.h 	unsigned long gp[MAX_REG_NR];
gp                 44 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R8(r) REGS_R8((r)->gp)
gp                 45 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R9(r) REGS_R9((r)->gp)
gp                 46 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R10(r) REGS_R10((r)->gp)
gp                 47 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R11(r) REGS_R11((r)->gp)
gp                 48 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R12(r) REGS_R12((r)->gp)
gp                 49 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R13(r) REGS_R13((r)->gp)
gp                 50 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R14(r) REGS_R14((r)->gp)
gp                 51 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R15(r) REGS_R15((r)->gp)
gp                166 arch/x86/um/signal.c #define GETREG(regno, regname) regs->regs.gp[HOST_##regno] = sc.regname
gp                245 arch/x86/um/signal.c #define PUTREG(regno, regname) sc.regname = regs->regs.gp[HOST_##regno]
gp               1367 block/genhd.c  	struct gendisk *gp = v;
gp               1381 block/genhd.c  	disk_part_iter_init(&piter, gp, DISK_PITER_INCL_EMPTY_PART0);
gp               1383 block/genhd.c  		inflight = part_in_flight(gp->queue, hd);
gp               1390 block/genhd.c  			   disk_name(gp, hd->partno, buf),
gp                352 drivers/atm/idt77252.c 	u32 gp;
gp                354 drivers/atm/idt77252.c 	gp = readl(SAR_REG_GP);
gp                356 drivers/atm/idt77252.c 	printk("RD: %s\n", gp & SAR_GP_EEDI ? "1" : "0");
gp                358 drivers/atm/idt77252.c 	return gp;
gp                382 drivers/atm/idt77252.c 	u32 gp;
gp                385 drivers/atm/idt77252.c 	gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO);
gp                388 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | rdsrtab[i]);
gp                391 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                398 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++]);
gp                403 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++]);
gp                406 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                416 drivers/atm/idt77252.c 	u32 gp;
gp                419 drivers/atm/idt77252.c 	gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO);
gp                422 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | rdtab[i]);
gp                425 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                429 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                433 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                439 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                446 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++]);
gp                451 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++]);
gp                454 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                463 drivers/atm/idt77252.c 	u32 gp;
gp                466 drivers/atm/idt77252.c 	gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO);
gp                469 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | wrentab[i]);
gp                472 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                476 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | wrtab[i]);
gp                479 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                483 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                487 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                493 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                497 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                501 drivers/atm/idt77252.c 		idt77252_write_gp(card, gp | clktab[j++] |
gp                507 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                514 drivers/atm/idt77252.c 	u32 gp;
gp                516 drivers/atm/idt77252.c 	gp = idt77252_read_gp(card) & ~(SAR_GP_EESCLK|SAR_GP_EECS|SAR_GP_EEDO);
gp                518 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS | SAR_GP_EESCLK);
gp                520 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                522 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS | SAR_GP_EESCLK);
gp                524 drivers/atm/idt77252.c 	idt77252_write_gp(card, gp | SAR_GP_EECS);
gp                153 drivers/char/agp/uninorth-agp.c 	u32 *gp;
gp                174 drivers/char/agp/uninorth-agp.c 	gp = (u32 *) &agp_bridge->gatt_table[pg_start];
gp                176 drivers/char/agp/uninorth-agp.c 		if (gp[i] != scratch_value) {
gp                179 drivers/char/agp/uninorth-agp.c 				 i, gp[i]);
gp                186 drivers/char/agp/uninorth-agp.c 			gp[i] = (page_to_phys(mem->pages[i]) >> PAGE_SHIFT) | 0x80000000UL;
gp                188 drivers/char/agp/uninorth-agp.c 			gp[i] =	cpu_to_le32((page_to_phys(mem->pages[i]) & 0xFFFFF000UL) |
gp                202 drivers/char/agp/uninorth-agp.c 	u32 *gp;
gp                217 drivers/char/agp/uninorth-agp.c 	gp = (u32 *) &agp_bridge->gatt_table[pg_start];
gp                219 drivers/char/agp/uninorth-agp.c 		gp[i] = scratch_value;
gp               1198 drivers/edac/altera_edac.c 	struct gen_pool *gp;
gp               1205 drivers/edac/altera_edac.c 	gp = of_gen_pool_get(np, "iram", 0);
gp               1207 drivers/edac/altera_edac.c 	if (!gp)
gp               1210 drivers/edac/altera_edac.c 	sram_addr = (void *)gen_pool_alloc(gp, size);
gp               1219 drivers/edac/altera_edac.c 	*other = gp;
gp                 20 drivers/gpio/gpio-altera-a10sr.c 	struct gpio_chip gp;
gp                 90 drivers/gpio/gpio-altera-a10sr.c 	gpio->gp = altr_a10sr_gc;
gp                 91 drivers/gpio/gpio-altera-a10sr.c 	gpio->gp.parent = pdev->dev.parent;
gp                 92 drivers/gpio/gpio-altera-a10sr.c 	gpio->gp.of_node = pdev->dev.of_node;
gp                 94 drivers/gpio/gpio-altera-a10sr.c 	ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio);
gp                161 drivers/gpio/gpio-amd8111.c static struct amd_gpio gp = {
gp                201 drivers/gpio/gpio-amd8111.c 	err = pci_read_config_dword(pdev, 0x58, &gp.pmbase);
gp                205 drivers/gpio/gpio-amd8111.c 	gp.pmbase &= 0x0000FF00;
gp                206 drivers/gpio/gpio-amd8111.c 	if (gp.pmbase == 0)
gp                208 drivers/gpio/gpio-amd8111.c 	if (!devm_request_region(&pdev->dev, gp.pmbase + PMBASE_OFFSET,
gp                211 drivers/gpio/gpio-amd8111.c 			gp.pmbase + PMBASE_OFFSET);
gp                215 drivers/gpio/gpio-amd8111.c 	gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE);
gp                216 drivers/gpio/gpio-amd8111.c 	if (!gp.pm) {
gp                221 drivers/gpio/gpio-amd8111.c 	gp.pdev = pdev;
gp                222 drivers/gpio/gpio-amd8111.c 	gp.chip.parent = &pdev->dev;
gp                224 drivers/gpio/gpio-amd8111.c 	spin_lock_init(&gp.lock);
gp                227 drivers/gpio/gpio-amd8111.c 	err = gpiochip_add_data(&gp.chip, &gp);
gp                231 drivers/gpio/gpio-amd8111.c 		ioport_unmap(gp.pm);
gp                240 drivers/gpio/gpio-amd8111.c 	gpiochip_remove(&gp.chip);
gp                241 drivers/gpio/gpio-amd8111.c 	ioport_unmap(gp.pm);
gp                 46 drivers/gpio/gpio-da9052.c 	struct gpio_chip gp;
gp                208 drivers/gpio/gpio-da9052.c 	gpio->gp = reference_gp;
gp                210 drivers/gpio/gpio-da9052.c 		gpio->gp.base = pdata->gpio_base;
gp                212 drivers/gpio/gpio-da9052.c 	ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio);
gp                 30 drivers/gpio/gpio-da9055.c 	struct gpio_chip gp;
gp                145 drivers/gpio/gpio-da9055.c 	gpio->gp = reference_gp;
gp                147 drivers/gpio/gpio-da9055.c 		gpio->gp.base = pdata->gpio_base;
gp                149 drivers/gpio/gpio-da9055.c 	ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio);
gp                 51 drivers/gpu/drm/lima/lima_device.c 	LIMA_IP_DESC(gp,          true,  true,  0x00000, 0x00000, gp,       "gp"),
gp                 67 drivers/input/gameport/fm801-gp.c 	struct fm801_gp *gp;
gp                 71 drivers/input/gameport/fm801-gp.c 	gp = kzalloc(sizeof(struct fm801_gp), GFP_KERNEL);
gp                 73 drivers/input/gameport/fm801-gp.c 	if (!gp || !port) {
gp                 92 drivers/input/gameport/fm801-gp.c 	gp->gameport = port;
gp                 93 drivers/input/gameport/fm801-gp.c 	gp->res_port = request_region(port->io, 0x10, "FM801 GP");
gp                 94 drivers/input/gameport/fm801-gp.c 	if (!gp->res_port) {
gp                101 drivers/input/gameport/fm801-gp.c 	pci_set_drvdata(pci, gp);
gp                112 drivers/input/gameport/fm801-gp.c 	kfree(gp);
gp                118 drivers/input/gameport/fm801-gp.c 	struct fm801_gp *gp = pci_get_drvdata(pci);
gp                120 drivers/input/gameport/fm801-gp.c 	gameport_unregister_port(gp->gameport);
gp                121 drivers/input/gameport/fm801-gp.c 	release_resource(gp->res_port);
gp                122 drivers/input/gameport/fm801-gp.c 	kfree(gp);
gp                134 drivers/input/joystick/grip_mp.c static inline int poll_until(u8 onbits, u8 offbits, int u_sec, struct gameport* gp, u8 *data)
gp                138 drivers/input/joystick/grip_mp.c 	nloops = gameport_time(gp, u_sec);
gp                140 drivers/input/joystick/grip_mp.c 		*data = gameport_read(gp);
gp                 68 drivers/macintosh/windfarm_pid.c 		  error * (s64)st->param.gp) >> 36);
gp                132 drivers/macintosh/windfarm_pid.c 	prop *= st->param.gp;
gp                 29 drivers/macintosh/windfarm_pid.h 	s32	gd, gp, gr;	/* PID gains */
gp                 62 drivers/macintosh/windfarm_pid.h 	s32	gd, gp, gr;	/* PID gains */
gp                166 drivers/macintosh/windfarm_pm112.c 	pid.gp = piddata->gp;
gp                344 drivers/macintosh/windfarm_pm112.c 	.gp		= 5 << 20,
gp                394 drivers/macintosh/windfarm_pm112.c 	.gp		= 5 << 20,
gp                445 drivers/macintosh/windfarm_pm112.c 	.gp		= 0,
gp                354 drivers/macintosh/windfarm_pm121.c 	s32			gp, itarget;
gp                364 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x002A6666,
gp                370 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x0010CCCC,
gp                379 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x002D70A3,
gp                385 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x002170A3,
gp                394 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x003BD70A,
gp                400 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x0030F5C2,
gp                409 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x001FAE14,
gp                415 drivers/macintosh/windfarm_pm121.c 		  .gp		= 0x001FAE14,
gp                543 drivers/macintosh/windfarm_pm121.c 	pid_param.gp		= param->gp;
gp                685 drivers/macintosh/windfarm_pm121.c 	pid_param.gp = piddata->gp;
gp                424 drivers/macintosh/windfarm_pm72.c 	pid.gp		= mpu->pid_gp;
gp                443 drivers/macintosh/windfarm_pm72.c 	.gp		= 5 << 20,
gp                455 drivers/macintosh/windfarm_pm72.c 	.gp		= 5 << 20,
gp                535 drivers/macintosh/windfarm_pm72.c 	.gp		= 5 << 20,
gp                165 drivers/macintosh/windfarm_pm81.c 	s32	gd, gp, gr;
gp                198 drivers/macintosh/windfarm_pm81.c 		.gp		= 0x00200000,
gp                210 drivers/macintosh/windfarm_pm81.c 		.gp		= 0x00566666,
gp                222 drivers/macintosh/windfarm_pm81.c 		.gp		= 0x00233333,
gp                300 drivers/macintosh/windfarm_pm81.c 	pid_param.gp = param->gp;
gp                439 drivers/macintosh/windfarm_pm81.c 	pid_param.gp = piddata->gp;
gp                185 drivers/macintosh/windfarm_pm91.c 	pid_param.gp = piddata->gp;
gp                296 drivers/macintosh/windfarm_pm91.c 		.gp		= 0x00500000,
gp                377 drivers/macintosh/windfarm_pm91.c 		.gp		= 0x00000000,
gp                325 drivers/macintosh/windfarm_rm31.c 	pid.gp		= mpu->pid_gp;
gp                344 drivers/macintosh/windfarm_rm31.c 	.gp		= 0x0004cccc,
gp                357 drivers/macintosh/windfarm_rm31.c 	.gp		= 0,
gp                444 drivers/macintosh/windfarm_rm31.c 	.gp		= 0,
gp                176 drivers/media/usb/pvrusb2/pvrusb2-std.c 	const struct std_name *ip,*gp;
gp                182 drivers/media/usb/pvrusb2/pvrusb2-std.c 		gp = std_groups + idx1;
gp                186 drivers/media/usb/pvrusb2/pvrusb2-std.c 			if (!(gp->id & ip->id & id)) continue;
gp                196 drivers/media/usb/pvrusb2/pvrusb2-std.c 					       "%s-",gp->name);
gp                904 drivers/mtd/nand/raw/nandsim.c 	struct grave_page *gp;
gp                923 drivers/mtd/nand/raw/nandsim.c 		gp = kzalloc(sizeof(*gp), GFP_KERNEL);
gp                924 drivers/mtd/nand/raw/nandsim.c 		if (!gp) {
gp                928 drivers/mtd/nand/raw/nandsim.c 		gp->page_no = page_no;
gp                929 drivers/mtd/nand/raw/nandsim.c 		gp->max_reads = max_reads;
gp                930 drivers/mtd/nand/raw/nandsim.c 		list_add(&gp->list, &grave_pages);
gp                937 drivers/mtd/nand/raw/nandsim.c 	struct grave_page *gp;
gp                939 drivers/mtd/nand/raw/nandsim.c 	list_for_each_entry(gp, &grave_pages, list)
gp                940 drivers/mtd/nand/raw/nandsim.c 		if (gp->page_no == page_no) {
gp                941 drivers/mtd/nand/raw/nandsim.c 			if (gp->reads_done >= gp->max_reads)
gp                943 drivers/mtd/nand/raw/nandsim.c 			gp->reads_done += 1;
gp                117 drivers/net/ethernet/sun/sungem.c static u16 __sungem_phy_read(struct gem *gp, int phy_addr, int reg)
gp                127 drivers/net/ethernet/sun/sungem.c 	writel(cmd, gp->regs + MIF_FRAME);
gp                130 drivers/net/ethernet/sun/sungem.c 		cmd = readl(gp->regs + MIF_FRAME);
gp                145 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp                146 drivers/net/ethernet/sun/sungem.c 	return __sungem_phy_read(gp, mii_id, reg);
gp                149 drivers/net/ethernet/sun/sungem.c static inline u16 sungem_phy_read(struct gem *gp, int reg)
gp                151 drivers/net/ethernet/sun/sungem.c 	return __sungem_phy_read(gp, gp->mii_phy_addr, reg);
gp                154 drivers/net/ethernet/sun/sungem.c static void __sungem_phy_write(struct gem *gp, int phy_addr, int reg, u16 val)
gp                165 drivers/net/ethernet/sun/sungem.c 	writel(cmd, gp->regs + MIF_FRAME);
gp                168 drivers/net/ethernet/sun/sungem.c 		cmd = readl(gp->regs + MIF_FRAME);
gp                178 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp                179 drivers/net/ethernet/sun/sungem.c 	__sungem_phy_write(gp, mii_id, reg, val & 0xffff);
gp                182 drivers/net/ethernet/sun/sungem.c static inline void sungem_phy_write(struct gem *gp, int reg, u16 val)
gp                184 drivers/net/ethernet/sun/sungem.c 	__sungem_phy_write(gp, gp->mii_phy_addr, reg, val);
gp                187 drivers/net/ethernet/sun/sungem.c static inline void gem_enable_ints(struct gem *gp)
gp                190 drivers/net/ethernet/sun/sungem.c 	writel(GREG_STAT_TXDONE, gp->regs + GREG_IMASK);
gp                193 drivers/net/ethernet/sun/sungem.c static inline void gem_disable_ints(struct gem *gp)
gp                196 drivers/net/ethernet/sun/sungem.c 	writel(GREG_STAT_NAPI | GREG_STAT_TXDONE, gp->regs + GREG_IMASK);
gp                197 drivers/net/ethernet/sun/sungem.c 	(void)readl(gp->regs + GREG_IMASK); /* write posting */
gp                200 drivers/net/ethernet/sun/sungem.c static void gem_get_cell(struct gem *gp)
gp                202 drivers/net/ethernet/sun/sungem.c 	BUG_ON(gp->cell_enabled < 0);
gp                203 drivers/net/ethernet/sun/sungem.c 	gp->cell_enabled++;
gp                205 drivers/net/ethernet/sun/sungem.c 	if (gp->cell_enabled == 1) {
gp                207 drivers/net/ethernet/sun/sungem.c 		pmac_call_feature(PMAC_FTR_GMAC_ENABLE, gp->of_node, 0, 1);
gp                214 drivers/net/ethernet/sun/sungem.c static void gem_put_cell(struct gem *gp)
gp                216 drivers/net/ethernet/sun/sungem.c 	BUG_ON(gp->cell_enabled <= 0);
gp                217 drivers/net/ethernet/sun/sungem.c 	gp->cell_enabled--;
gp                219 drivers/net/ethernet/sun/sungem.c 	if (gp->cell_enabled == 0) {
gp                221 drivers/net/ethernet/sun/sungem.c 		pmac_call_feature(PMAC_FTR_GMAC_ENABLE, gp->of_node, 0, 0);
gp                227 drivers/net/ethernet/sun/sungem.c static inline void gem_netif_stop(struct gem *gp)
gp                229 drivers/net/ethernet/sun/sungem.c 	netif_trans_update(gp->dev);	/* prevent tx timeout */
gp                230 drivers/net/ethernet/sun/sungem.c 	napi_disable(&gp->napi);
gp                231 drivers/net/ethernet/sun/sungem.c 	netif_tx_disable(gp->dev);
gp                234 drivers/net/ethernet/sun/sungem.c static inline void gem_netif_start(struct gem *gp)
gp                240 drivers/net/ethernet/sun/sungem.c 	netif_wake_queue(gp->dev);
gp                241 drivers/net/ethernet/sun/sungem.c 	napi_enable(&gp->napi);
gp                244 drivers/net/ethernet/sun/sungem.c static void gem_schedule_reset(struct gem *gp)
gp                246 drivers/net/ethernet/sun/sungem.c 	gp->reset_task_pending = 1;
gp                247 drivers/net/ethernet/sun/sungem.c 	schedule_work(&gp->reset_task);
gp                250 drivers/net/ethernet/sun/sungem.c static void gem_handle_mif_event(struct gem *gp, u32 reg_val, u32 changed_bits)
gp                252 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_intr(gp))
gp                253 drivers/net/ethernet/sun/sungem.c 		printk(KERN_DEBUG "%s: mif interrupt\n", gp->dev->name);
gp                256 drivers/net/ethernet/sun/sungem.c static int gem_pcs_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                258 drivers/net/ethernet/sun/sungem.c 	u32 pcs_istat = readl(gp->regs + PCS_ISTAT);
gp                261 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_intr(gp))
gp                263 drivers/net/ethernet/sun/sungem.c 			gp->dev->name, pcs_istat);
gp                274 drivers/net/ethernet/sun/sungem.c 	pcs_miistat = readl(gp->regs + PCS_MIISTAT);
gp                277 drivers/net/ethernet/sun/sungem.c 			(readl(gp->regs + PCS_MIISTAT) &
gp                292 drivers/net/ethernet/sun/sungem.c 		netif_carrier_on(gp->dev);
gp                295 drivers/net/ethernet/sun/sungem.c 		netif_carrier_off(gp->dev);
gp                299 drivers/net/ethernet/sun/sungem.c 		if (!timer_pending(&gp->link_timer))
gp                306 drivers/net/ethernet/sun/sungem.c static int gem_txmac_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                308 drivers/net/ethernet/sun/sungem.c 	u32 txmac_stat = readl(gp->regs + MAC_TXSTAT);
gp                310 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_intr(gp))
gp                312 drivers/net/ethernet/sun/sungem.c 			gp->dev->name, txmac_stat);
gp                359 drivers/net/ethernet/sun/sungem.c static int gem_rxmac_reset(struct gem *gp)
gp                361 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp                367 drivers/net/ethernet/sun/sungem.c 	writel(MAC_RXRST_CMD, gp->regs + MAC_RXRST);
gp                369 drivers/net/ethernet/sun/sungem.c 		if (!(readl(gp->regs + MAC_RXRST) & MAC_RXRST_CMD))
gp                378 drivers/net/ethernet/sun/sungem.c 	writel(gp->mac_rx_cfg & ~MAC_RXCFG_ENAB,
gp                379 drivers/net/ethernet/sun/sungem.c 	       gp->regs + MAC_RXCFG);
gp                381 drivers/net/ethernet/sun/sungem.c 		if (!(readl(gp->regs + MAC_RXCFG) & MAC_RXCFG_ENAB))
gp                391 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + RXDMA_CFG);
gp                393 drivers/net/ethernet/sun/sungem.c 		if (!(readl(gp->regs + RXDMA_CFG) & RXDMA_CFG_ENABLE))
gp                405 drivers/net/ethernet/sun/sungem.c 	writel(gp->swrst_base | GREG_SWRST_RXRST,
gp                406 drivers/net/ethernet/sun/sungem.c 	       gp->regs + GREG_SWRST);
gp                408 drivers/net/ethernet/sun/sungem.c 		if (!(readl(gp->regs + GREG_SWRST) & GREG_SWRST_RXRST))
gp                419 drivers/net/ethernet/sun/sungem.c 		struct gem_rxd *rxd = &gp->init_block->rxd[i];
gp                421 drivers/net/ethernet/sun/sungem.c 		if (gp->rx_skbs[i] == NULL) {
gp                426 drivers/net/ethernet/sun/sungem.c 		rxd->status_word = cpu_to_le64(RXDCTRL_FRESH(gp));
gp                428 drivers/net/ethernet/sun/sungem.c 	gp->rx_new = gp->rx_old = 0;
gp                431 drivers/net/ethernet/sun/sungem.c 	desc_dma = (u64) gp->gblock_dvma;
gp                433 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma >> 32, gp->regs + RXDMA_DBHI);
gp                434 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma & 0xffffffff, gp->regs + RXDMA_DBLOW);
gp                435 drivers/net/ethernet/sun/sungem.c 	writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK);
gp                438 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + RXDMA_CFG);
gp                439 drivers/net/ethernet/sun/sungem.c 	if (readl(gp->regs + GREG_BIFCFG) & GREG_BIFCFG_M66EN)
gp                442 drivers/net/ethernet/sun/sungem.c 		       gp->regs + RXDMA_BLANK);
gp                446 drivers/net/ethernet/sun/sungem.c 		       gp->regs + RXDMA_BLANK);
gp                447 drivers/net/ethernet/sun/sungem.c 	val  = (((gp->rx_pause_off / 64) << 0) & RXDMA_PTHRESH_OFF);
gp                448 drivers/net/ethernet/sun/sungem.c 	val |= (((gp->rx_pause_on / 64) << 12) & RXDMA_PTHRESH_ON);
gp                449 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + RXDMA_PTHRESH);
gp                450 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + RXDMA_CFG);
gp                451 drivers/net/ethernet/sun/sungem.c 	writel(val | RXDMA_CFG_ENABLE, gp->regs + RXDMA_CFG);
gp                452 drivers/net/ethernet/sun/sungem.c 	writel(MAC_RXSTAT_RCV, gp->regs + MAC_RXMASK);
gp                453 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_RXCFG);
gp                454 drivers/net/ethernet/sun/sungem.c 	writel(val | MAC_RXCFG_ENAB, gp->regs + MAC_RXCFG);
gp                459 drivers/net/ethernet/sun/sungem.c static int gem_rxmac_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                461 drivers/net/ethernet/sun/sungem.c 	u32 rxmac_stat = readl(gp->regs + MAC_RXSTAT);
gp                464 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_intr(gp))
gp                466 drivers/net/ethernet/sun/sungem.c 			gp->dev->name, rxmac_stat);
gp                469 drivers/net/ethernet/sun/sungem.c 		u32 smac = readl(gp->regs + MAC_SMACHINE);
gp                475 drivers/net/ethernet/sun/sungem.c 		ret = gem_rxmac_reset(gp);
gp                493 drivers/net/ethernet/sun/sungem.c static int gem_mac_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                495 drivers/net/ethernet/sun/sungem.c 	u32 mac_cstat = readl(gp->regs + MAC_CSTAT);
gp                497 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_intr(gp))
gp                499 drivers/net/ethernet/sun/sungem.c 			gp->dev->name, mac_cstat);
gp                506 drivers/net/ethernet/sun/sungem.c 		gp->pause_entered++;
gp                509 drivers/net/ethernet/sun/sungem.c 		gp->pause_last_time_recvd = (mac_cstat >> 16);
gp                514 drivers/net/ethernet/sun/sungem.c static int gem_mif_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                516 drivers/net/ethernet/sun/sungem.c 	u32 mif_status = readl(gp->regs + MIF_STATUS);
gp                522 drivers/net/ethernet/sun/sungem.c 	gem_handle_mif_event(gp, reg_val, changed_bits);
gp                527 drivers/net/ethernet/sun/sungem.c static int gem_pci_interrupt(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                529 drivers/net/ethernet/sun/sungem.c 	u32 pci_estat = readl(gp->regs + GREG_PCIESTAT);
gp                531 drivers/net/ethernet/sun/sungem.c 	if (gp->pdev->vendor == PCI_VENDOR_ID_SUN &&
gp                532 drivers/net/ethernet/sun/sungem.c 	    gp->pdev->device == PCI_DEVICE_ID_SUN_GEM) {
gp                553 drivers/net/ethernet/sun/sungem.c 		pci_read_config_word(gp->pdev, PCI_STATUS,
gp                577 drivers/net/ethernet/sun/sungem.c 		pci_write_config_word(gp->pdev,
gp                590 drivers/net/ethernet/sun/sungem.c static int gem_abnormal_irq(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                594 drivers/net/ethernet/sun/sungem.c 		if (netif_msg_rx_err(gp))
gp                596 drivers/net/ethernet/sun/sungem.c 				gp->dev->name);
gp                602 drivers/net/ethernet/sun/sungem.c 		if (netif_msg_rx_err(gp))
gp                604 drivers/net/ethernet/sun/sungem.c 				gp->dev->name);
gp                611 drivers/net/ethernet/sun/sungem.c 		if (gem_pcs_interrupt(dev, gp, gem_status))
gp                616 drivers/net/ethernet/sun/sungem.c 		if (gem_txmac_interrupt(dev, gp, gem_status))
gp                621 drivers/net/ethernet/sun/sungem.c 		if (gem_rxmac_interrupt(dev, gp, gem_status))
gp                626 drivers/net/ethernet/sun/sungem.c 		if (gem_mac_interrupt(dev, gp, gem_status))
gp                631 drivers/net/ethernet/sun/sungem.c 		if (gem_mif_interrupt(dev, gp, gem_status))
gp                636 drivers/net/ethernet/sun/sungem.c 		if (gem_pci_interrupt(dev, gp, gem_status))
gp                643 drivers/net/ethernet/sun/sungem.c static __inline__ void gem_tx(struct net_device *dev, struct gem *gp, u32 gem_status)
gp                647 drivers/net/ethernet/sun/sungem.c 	entry = gp->tx_old;
gp                656 drivers/net/ethernet/sun/sungem.c 		if (netif_msg_tx_done(gp))
gp                658 drivers/net/ethernet/sun/sungem.c 				gp->dev->name, entry);
gp                659 drivers/net/ethernet/sun/sungem.c 		skb = gp->tx_skbs[entry];
gp                676 drivers/net/ethernet/sun/sungem.c 		gp->tx_skbs[entry] = NULL;
gp                680 drivers/net/ethernet/sun/sungem.c 			txd = &gp->init_block->txd[entry];
gp                685 drivers/net/ethernet/sun/sungem.c 			pci_unmap_page(gp->pdev, dma_addr, dma_len, PCI_DMA_TODEVICE);
gp                692 drivers/net/ethernet/sun/sungem.c 	gp->tx_old = entry;
gp                702 drivers/net/ethernet/sun/sungem.c 		     TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1))) {
gp                707 drivers/net/ethernet/sun/sungem.c 		    TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1))
gp                713 drivers/net/ethernet/sun/sungem.c static __inline__ void gem_post_rxds(struct gem *gp, int limit)
gp                717 drivers/net/ethernet/sun/sungem.c 	cluster_start = curr = (gp->rx_new & ~(4 - 1));
gp                725 drivers/net/ethernet/sun/sungem.c 				&gp->init_block->rxd[cluster_start];
gp                727 drivers/net/ethernet/sun/sungem.c 				rxd->status_word = cpu_to_le64(RXDCTRL_FRESH(gp));
gp                739 drivers/net/ethernet/sun/sungem.c 		writel(kick, gp->regs + RXDMA_KICK);
gp                757 drivers/net/ethernet/sun/sungem.c static int gem_rx(struct gem *gp, int work_to_do)
gp                759 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp                763 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_rx_status(gp))
gp                765 drivers/net/ethernet/sun/sungem.c 			gp->dev->name, readl(gp->regs + RXDMA_DONE), gp->rx_new);
gp                767 drivers/net/ethernet/sun/sungem.c 	entry = gp->rx_new;
gp                769 drivers/net/ethernet/sun/sungem.c 	done = readl(gp->regs + RXDMA_DONE);
gp                771 drivers/net/ethernet/sun/sungem.c 		struct gem_rxd *rxd = &gp->init_block->rxd[entry];
gp                791 drivers/net/ethernet/sun/sungem.c 			done = readl(gp->regs + RXDMA_DONE);
gp                799 drivers/net/ethernet/sun/sungem.c 		skb = gp->rx_skbs[entry];
gp                819 drivers/net/ethernet/sun/sungem.c 			new_skb = gem_alloc_skb(dev, RX_BUF_ALLOC_SIZE(gp), GFP_ATOMIC);
gp                824 drivers/net/ethernet/sun/sungem.c 			pci_unmap_page(gp->pdev, dma_addr,
gp                825 drivers/net/ethernet/sun/sungem.c 				       RX_BUF_ALLOC_SIZE(gp),
gp                827 drivers/net/ethernet/sun/sungem.c 			gp->rx_skbs[entry] = new_skb;
gp                828 drivers/net/ethernet/sun/sungem.c 			skb_put(new_skb, (gp->rx_buf_sz + RX_OFFSET));
gp                829 drivers/net/ethernet/sun/sungem.c 			rxd->buffer = cpu_to_le64(pci_map_page(gp->pdev,
gp                832 drivers/net/ethernet/sun/sungem.c 							       RX_BUF_ALLOC_SIZE(gp),
gp                848 drivers/net/ethernet/sun/sungem.c 			pci_dma_sync_single_for_cpu(gp->pdev, dma_addr, len, PCI_DMA_FROMDEVICE);
gp                850 drivers/net/ethernet/sun/sungem.c 			pci_dma_sync_single_for_device(gp->pdev, dma_addr, len, PCI_DMA_FROMDEVICE);
gp                863 drivers/net/ethernet/sun/sungem.c 		skb->protocol = eth_type_trans(skb, gp->dev);
gp                865 drivers/net/ethernet/sun/sungem.c 		napi_gro_receive(&gp->napi, skb);
gp                874 drivers/net/ethernet/sun/sungem.c 	gem_post_rxds(gp, entry);
gp                876 drivers/net/ethernet/sun/sungem.c 	gp->rx_new = entry;
gp                879 drivers/net/ethernet/sun/sungem.c 		netdev_info(gp->dev, "Memory squeeze, deferring packet\n");
gp                886 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = container_of(napi, struct gem, napi);
gp                887 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp                893 drivers/net/ethernet/sun/sungem.c 		if (unlikely(gp->status & GREG_STAT_ABNORMAL)) {
gp                903 drivers/net/ethernet/sun/sungem.c 			reset = gem_abnormal_irq(dev, gp, gp->status);
gp                906 drivers/net/ethernet/sun/sungem.c 				gem_schedule_reset(gp);
gp                913 drivers/net/ethernet/sun/sungem.c 		gem_tx(dev, gp, gp->status);
gp                920 drivers/net/ethernet/sun/sungem.c 		work_done += gem_rx(gp, budget - work_done);
gp                925 drivers/net/ethernet/sun/sungem.c 		gp->status = readl(gp->regs + GREG_STAT);
gp                926 drivers/net/ethernet/sun/sungem.c 	} while (gp->status & GREG_STAT_NAPI);
gp                929 drivers/net/ethernet/sun/sungem.c 	gem_enable_ints(gp);
gp                937 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp                939 drivers/net/ethernet/sun/sungem.c 	if (napi_schedule_prep(&gp->napi)) {
gp                940 drivers/net/ethernet/sun/sungem.c 		u32 gem_status = readl(gp->regs + GREG_STAT);
gp                943 drivers/net/ethernet/sun/sungem.c 			napi_enable(&gp->napi);
gp                946 drivers/net/ethernet/sun/sungem.c 		if (netif_msg_intr(gp))
gp                948 drivers/net/ethernet/sun/sungem.c 			       gp->dev->name, gem_status);
gp                950 drivers/net/ethernet/sun/sungem.c 		gp->status = gem_status;
gp                951 drivers/net/ethernet/sun/sungem.c 		gem_disable_ints(gp);
gp                952 drivers/net/ethernet/sun/sungem.c 		__napi_schedule(&gp->napi);
gp                965 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp                967 drivers/net/ethernet/sun/sungem.c 	disable_irq(gp->pdev->irq);
gp                968 drivers/net/ethernet/sun/sungem.c 	gem_interrupt(gp->pdev->irq, dev);
gp                969 drivers/net/ethernet/sun/sungem.c 	enable_irq(gp->pdev->irq);
gp                975 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp                980 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + TXDMA_CFG),
gp                981 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + MAC_TXSTAT),
gp                982 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + MAC_TXCFG));
gp                984 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + RXDMA_CFG),
gp                985 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + MAC_RXSTAT),
gp                986 drivers/net/ethernet/sun/sungem.c 		   readl(gp->regs + MAC_RXCFG));
gp                988 drivers/net/ethernet/sun/sungem.c 	gem_schedule_reset(gp);
gp               1003 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               1017 drivers/net/ethernet/sun/sungem.c 	if (unlikely(TX_BUFFS_AVAIL(gp) <= (skb_shinfo(skb)->nr_frags + 1))) {
gp               1026 drivers/net/ethernet/sun/sungem.c 	entry = gp->tx_new;
gp               1027 drivers/net/ethernet/sun/sungem.c 	gp->tx_skbs[entry] = skb;
gp               1030 drivers/net/ethernet/sun/sungem.c 		struct gem_txd *txd = &gp->init_block->txd[entry];
gp               1035 drivers/net/ethernet/sun/sungem.c 		mapping = pci_map_page(gp->pdev,
gp               1061 drivers/net/ethernet/sun/sungem.c 		first_mapping = pci_map_page(gp->pdev, virt_to_page(skb->data),
gp               1073 drivers/net/ethernet/sun/sungem.c 			mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag,
gp               1079 drivers/net/ethernet/sun/sungem.c 			txd = &gp->init_block->txd[entry];
gp               1089 drivers/net/ethernet/sun/sungem.c 		txd = &gp->init_block->txd[first_entry];
gp               1096 drivers/net/ethernet/sun/sungem.c 	gp->tx_new = entry;
gp               1097 drivers/net/ethernet/sun/sungem.c 	if (unlikely(TX_BUFFS_AVAIL(gp) <= (MAX_SKB_FRAGS + 1))) {
gp               1106 drivers/net/ethernet/sun/sungem.c 		if (TX_BUFFS_AVAIL(gp) > (MAX_SKB_FRAGS + 1))
gp               1109 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_tx_queued(gp))
gp               1113 drivers/net/ethernet/sun/sungem.c 	writel(gp->tx_new, gp->regs + TXDMA_KICK);
gp               1118 drivers/net/ethernet/sun/sungem.c static void gem_pcs_reset(struct gem *gp)
gp               1124 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_MIICTRL);
gp               1126 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_MIICTRL);
gp               1129 drivers/net/ethernet/sun/sungem.c 	while (readl(gp->regs + PCS_MIICTRL) & PCS_MIICTRL_RST) {
gp               1135 drivers/net/ethernet/sun/sungem.c 		netdev_warn(gp->dev, "PCS reset bit would not clear\n");
gp               1138 drivers/net/ethernet/sun/sungem.c static void gem_pcs_reinit_adv(struct gem *gp)
gp               1145 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_CFG);
gp               1147 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_CFG);
gp               1152 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_MIIADV);
gp               1155 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_MIIADV);
gp               1160 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_MIICTRL);
gp               1163 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_MIICTRL);
gp               1165 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_CFG);
gp               1167 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_CFG);
gp               1173 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + PCS_SCTRL);
gp               1174 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_serialink)
gp               1178 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + PCS_SCTRL);
gp               1183 drivers/net/ethernet/sun/sungem.c static void gem_reset(struct gem *gp)
gp               1189 drivers/net/ethernet/sun/sungem.c 	writel(0xffffffff, gp->regs + GREG_IMASK);
gp               1192 drivers/net/ethernet/sun/sungem.c 	writel(gp->swrst_base | GREG_SWRST_TXRST | GREG_SWRST_RXRST,
gp               1193 drivers/net/ethernet/sun/sungem.c 	       gp->regs + GREG_SWRST);
gp               1199 drivers/net/ethernet/sun/sungem.c 		val = readl(gp->regs + GREG_SWRST);
gp               1205 drivers/net/ethernet/sun/sungem.c 		netdev_err(gp->dev, "SW reset is ghetto\n");
gp               1207 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_serialink || gp->phy_type == phy_serdes)
gp               1208 drivers/net/ethernet/sun/sungem.c 		gem_pcs_reinit_adv(gp);
gp               1211 drivers/net/ethernet/sun/sungem.c static void gem_start_dma(struct gem *gp)
gp               1216 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + TXDMA_CFG);
gp               1217 drivers/net/ethernet/sun/sungem.c 	writel(val | TXDMA_CFG_ENABLE, gp->regs + TXDMA_CFG);
gp               1218 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + RXDMA_CFG);
gp               1219 drivers/net/ethernet/sun/sungem.c 	writel(val | RXDMA_CFG_ENABLE, gp->regs + RXDMA_CFG);
gp               1220 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_TXCFG);
gp               1221 drivers/net/ethernet/sun/sungem.c 	writel(val | MAC_TXCFG_ENAB, gp->regs + MAC_TXCFG);
gp               1222 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_RXCFG);
gp               1223 drivers/net/ethernet/sun/sungem.c 	writel(val | MAC_RXCFG_ENAB, gp->regs + MAC_RXCFG);
gp               1225 drivers/net/ethernet/sun/sungem.c 	(void) readl(gp->regs + MAC_RXCFG);
gp               1228 drivers/net/ethernet/sun/sungem.c 	gem_enable_ints(gp);
gp               1230 drivers/net/ethernet/sun/sungem.c 	writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK);
gp               1235 drivers/net/ethernet/sun/sungem.c static void gem_stop_dma(struct gem *gp)
gp               1240 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + TXDMA_CFG);
gp               1241 drivers/net/ethernet/sun/sungem.c 	writel(val & ~TXDMA_CFG_ENABLE, gp->regs + TXDMA_CFG);
gp               1242 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + RXDMA_CFG);
gp               1243 drivers/net/ethernet/sun/sungem.c 	writel(val & ~RXDMA_CFG_ENABLE, gp->regs + RXDMA_CFG);
gp               1244 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_TXCFG);
gp               1245 drivers/net/ethernet/sun/sungem.c 	writel(val & ~MAC_TXCFG_ENAB, gp->regs + MAC_TXCFG);
gp               1246 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_RXCFG);
gp               1247 drivers/net/ethernet/sun/sungem.c 	writel(val & ~MAC_RXCFG_ENAB, gp->regs + MAC_RXCFG);
gp               1249 drivers/net/ethernet/sun/sungem.c 	(void) readl(gp->regs + MAC_RXCFG);
gp               1256 drivers/net/ethernet/sun/sungem.c static void gem_begin_auto_negotiation(struct gem *gp,
gp               1269 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type != phy_mii_mdio0 &&
gp               1270 drivers/net/ethernet/sun/sungem.c      	    gp->phy_type != phy_mii_mdio1)
gp               1274 drivers/net/ethernet/sun/sungem.c 	if (found_mii_phy(gp))
gp               1275 drivers/net/ethernet/sun/sungem.c 		features = gp->phy_mii.def->features;
gp               1280 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_mii.advertising != 0)
gp               1281 drivers/net/ethernet/sun/sungem.c 		advertise &= gp->phy_mii.advertising;
gp               1283 drivers/net/ethernet/sun/sungem.c 	autoneg = gp->want_autoneg;
gp               1284 drivers/net/ethernet/sun/sungem.c 	speed = gp->phy_mii.speed;
gp               1285 drivers/net/ethernet/sun/sungem.c 	duplex = gp->phy_mii.duplex;
gp               1320 drivers/net/ethernet/sun/sungem.c 	if (!netif_device_present(gp->dev)) {
gp               1321 drivers/net/ethernet/sun/sungem.c 		gp->phy_mii.autoneg = gp->want_autoneg = autoneg;
gp               1322 drivers/net/ethernet/sun/sungem.c 		gp->phy_mii.speed = speed;
gp               1323 drivers/net/ethernet/sun/sungem.c 		gp->phy_mii.duplex = duplex;
gp               1328 drivers/net/ethernet/sun/sungem.c 	gp->want_autoneg = autoneg;
gp               1330 drivers/net/ethernet/sun/sungem.c 		if (found_mii_phy(gp))
gp               1331 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->setup_aneg(&gp->phy_mii, advertise);
gp               1332 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_aneg;
gp               1334 drivers/net/ethernet/sun/sungem.c 		if (found_mii_phy(gp))
gp               1335 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, speed, duplex);
gp               1336 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_ok;
gp               1340 drivers/net/ethernet/sun/sungem.c 	gp->timer_ticks = 0;
gp               1341 drivers/net/ethernet/sun/sungem.c 	mod_timer(&gp->link_timer, jiffies + ((12 * HZ) / 10));
gp               1347 drivers/net/ethernet/sun/sungem.c static int gem_set_link_modes(struct gem *gp)
gp               1349 drivers/net/ethernet/sun/sungem.c 	struct netdev_queue *txq = netdev_get_tx_queue(gp->dev, 0);
gp               1357 drivers/net/ethernet/sun/sungem.c 	if (found_mii_phy(gp)) {
gp               1358 drivers/net/ethernet/sun/sungem.c 	    	if (gp->phy_mii.def->ops->read_link(&gp->phy_mii))
gp               1360 drivers/net/ethernet/sun/sungem.c 		full_duplex = (gp->phy_mii.duplex == DUPLEX_FULL);
gp               1361 drivers/net/ethernet/sun/sungem.c 		speed = gp->phy_mii.speed;
gp               1362 drivers/net/ethernet/sun/sungem.c 		pause = gp->phy_mii.pause;
gp               1363 drivers/net/ethernet/sun/sungem.c 	} else if (gp->phy_type == phy_serialink ||
gp               1364 drivers/net/ethernet/sun/sungem.c 	    	   gp->phy_type == phy_serdes) {
gp               1365 drivers/net/ethernet/sun/sungem.c 		u32 pcs_lpa = readl(gp->regs + PCS_MIILP);
gp               1367 drivers/net/ethernet/sun/sungem.c 		if ((pcs_lpa & PCS_MIIADV_FD) || gp->phy_type == phy_serdes)
gp               1372 drivers/net/ethernet/sun/sungem.c 	netif_info(gp, link, gp->dev, "Link is up at %d Mbps, %s-duplex\n",
gp               1387 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + MAC_TXCFG);
gp               1391 drivers/net/ethernet/sun/sungem.c 	    (gp->phy_type == phy_mii_mdio0 ||
gp               1392 drivers/net/ethernet/sun/sungem.c 	     gp->phy_type == phy_mii_mdio1)) {
gp               1401 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + MAC_XIFCFG);
gp               1407 drivers/net/ethernet/sun/sungem.c 		val = readl(gp->regs + MAC_TXCFG);
gp               1408 drivers/net/ethernet/sun/sungem.c 		writel(val | MAC_TXCFG_TCE, gp->regs + MAC_TXCFG);
gp               1410 drivers/net/ethernet/sun/sungem.c 		val = readl(gp->regs + MAC_RXCFG);
gp               1411 drivers/net/ethernet/sun/sungem.c 		writel(val | MAC_RXCFG_RCE, gp->regs + MAC_RXCFG);
gp               1413 drivers/net/ethernet/sun/sungem.c 		val = readl(gp->regs + MAC_TXCFG);
gp               1414 drivers/net/ethernet/sun/sungem.c 		writel(val & ~MAC_TXCFG_TCE, gp->regs + MAC_TXCFG);
gp               1416 drivers/net/ethernet/sun/sungem.c 		val = readl(gp->regs + MAC_RXCFG);
gp               1417 drivers/net/ethernet/sun/sungem.c 		writel(val & ~MAC_RXCFG_RCE, gp->regs + MAC_RXCFG);
gp               1420 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_serialink ||
gp               1421 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_serdes) {
gp               1422 drivers/net/ethernet/sun/sungem.c  		u32 pcs_lpa = readl(gp->regs + PCS_MIILP);
gp               1429 drivers/net/ethernet/sun/sungem.c 		writel(512, gp->regs + MAC_STIME);
gp               1431 drivers/net/ethernet/sun/sungem.c 		writel(64, gp->regs + MAC_STIME);
gp               1432 drivers/net/ethernet/sun/sungem.c 	val = readl(gp->regs + MAC_MCCFG);
gp               1437 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + MAC_MCCFG);
gp               1439 drivers/net/ethernet/sun/sungem.c 	gem_start_dma(gp);
gp               1443 drivers/net/ethernet/sun/sungem.c 	if (netif_msg_link(gp)) {
gp               1445 drivers/net/ethernet/sun/sungem.c 			netdev_info(gp->dev,
gp               1447 drivers/net/ethernet/sun/sungem.c 				    gp->rx_fifo_sz,
gp               1448 drivers/net/ethernet/sun/sungem.c 				    gp->rx_pause_off,
gp               1449 drivers/net/ethernet/sun/sungem.c 				    gp->rx_pause_on);
gp               1451 drivers/net/ethernet/sun/sungem.c 			netdev_info(gp->dev, "Pause is disabled\n");
gp               1458 drivers/net/ethernet/sun/sungem.c static int gem_mdio_link_not_up(struct gem *gp)
gp               1460 drivers/net/ethernet/sun/sungem.c 	switch (gp->lstate) {
gp               1462 drivers/net/ethernet/sun/sungem.c 		netif_info(gp, link, gp->dev,
gp               1464 drivers/net/ethernet/sun/sungem.c 		gp->phy_mii.def->ops->setup_forced(&gp->phy_mii,
gp               1465 drivers/net/ethernet/sun/sungem.c 			gp->last_forced_speed, DUPLEX_HALF);
gp               1466 drivers/net/ethernet/sun/sungem.c 		gp->timer_ticks = 5;
gp               1467 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_ok;
gp               1474 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_mii.def->magic_aneg)
gp               1476 drivers/net/ethernet/sun/sungem.c 		netif_info(gp, link, gp->dev, "switching to forced 100bt\n");
gp               1478 drivers/net/ethernet/sun/sungem.c 		gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, SPEED_100,
gp               1480 drivers/net/ethernet/sun/sungem.c 		gp->timer_ticks = 5;
gp               1481 drivers/net/ethernet/sun/sungem.c 		gp->lstate = link_force_try;
gp               1488 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_mii.speed == SPEED_100) {
gp               1489 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->setup_forced(&gp->phy_mii, SPEED_10,
gp               1491 drivers/net/ethernet/sun/sungem.c 			gp->timer_ticks = 5;
gp               1492 drivers/net/ethernet/sun/sungem.c 			netif_info(gp, link, gp->dev,
gp               1504 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = from_timer(gp, t, link_timer);
gp               1505 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp               1509 drivers/net/ethernet/sun/sungem.c 	if (gp->reset_task_pending)
gp               1512 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_serialink ||
gp               1513 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_serdes) {
gp               1514 drivers/net/ethernet/sun/sungem.c 		u32 val = readl(gp->regs + PCS_MIISTAT);
gp               1517 drivers/net/ethernet/sun/sungem.c 			val = readl(gp->regs + PCS_MIISTAT);
gp               1520 drivers/net/ethernet/sun/sungem.c 			if (gp->lstate == link_up)
gp               1523 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_up;
gp               1525 drivers/net/ethernet/sun/sungem.c 			(void)gem_set_link_modes(gp);
gp               1529 drivers/net/ethernet/sun/sungem.c 	if (found_mii_phy(gp) && gp->phy_mii.def->ops->poll_link(&gp->phy_mii)) {
gp               1535 drivers/net/ethernet/sun/sungem.c 		if (gp->lstate == link_force_try && gp->want_autoneg) {
gp               1536 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_force_ret;
gp               1537 drivers/net/ethernet/sun/sungem.c 			gp->last_forced_speed = gp->phy_mii.speed;
gp               1538 drivers/net/ethernet/sun/sungem.c 			gp->timer_ticks = 5;
gp               1539 drivers/net/ethernet/sun/sungem.c 			if (netif_msg_link(gp))
gp               1542 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->setup_aneg(&gp->phy_mii, gp->phy_mii.advertising);
gp               1543 drivers/net/ethernet/sun/sungem.c 		} else if (gp->lstate != link_up) {
gp               1544 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_up;
gp               1546 drivers/net/ethernet/sun/sungem.c 			if (gem_set_link_modes(gp))
gp               1553 drivers/net/ethernet/sun/sungem.c 		if (gp->lstate == link_up) {
gp               1554 drivers/net/ethernet/sun/sungem.c 			gp->lstate = link_down;
gp               1555 drivers/net/ethernet/sun/sungem.c 			netif_info(gp, link, dev, "Link down\n");
gp               1557 drivers/net/ethernet/sun/sungem.c 			gem_schedule_reset(gp);
gp               1560 drivers/net/ethernet/sun/sungem.c 		} else if (++gp->timer_ticks > 10) {
gp               1561 drivers/net/ethernet/sun/sungem.c 			if (found_mii_phy(gp))
gp               1562 drivers/net/ethernet/sun/sungem.c 				restart_aneg = gem_mdio_link_not_up(gp);
gp               1568 drivers/net/ethernet/sun/sungem.c 		gem_begin_auto_negotiation(gp, NULL);
gp               1572 drivers/net/ethernet/sun/sungem.c 	mod_timer(&gp->link_timer, jiffies + ((12 * HZ) / 10));
gp               1575 drivers/net/ethernet/sun/sungem.c static void gem_clean_rings(struct gem *gp)
gp               1577 drivers/net/ethernet/sun/sungem.c 	struct gem_init_block *gb = gp->init_block;
gp               1586 drivers/net/ethernet/sun/sungem.c 		if (gp->rx_skbs[i] != NULL) {
gp               1587 drivers/net/ethernet/sun/sungem.c 			skb = gp->rx_skbs[i];
gp               1589 drivers/net/ethernet/sun/sungem.c 			pci_unmap_page(gp->pdev, dma_addr,
gp               1590 drivers/net/ethernet/sun/sungem.c 				       RX_BUF_ALLOC_SIZE(gp),
gp               1593 drivers/net/ethernet/sun/sungem.c 			gp->rx_skbs[i] = NULL;
gp               1601 drivers/net/ethernet/sun/sungem.c 		if (gp->tx_skbs[i] != NULL) {
gp               1605 drivers/net/ethernet/sun/sungem.c 			skb = gp->tx_skbs[i];
gp               1606 drivers/net/ethernet/sun/sungem.c 			gp->tx_skbs[i] = NULL;
gp               1613 drivers/net/ethernet/sun/sungem.c 				pci_unmap_page(gp->pdev, dma_addr,
gp               1625 drivers/net/ethernet/sun/sungem.c static void gem_init_rings(struct gem *gp)
gp               1627 drivers/net/ethernet/sun/sungem.c 	struct gem_init_block *gb = gp->init_block;
gp               1628 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp               1632 drivers/net/ethernet/sun/sungem.c 	gp->rx_new = gp->rx_old = gp->tx_new = gp->tx_old = 0;
gp               1634 drivers/net/ethernet/sun/sungem.c 	gem_clean_rings(gp);
gp               1636 drivers/net/ethernet/sun/sungem.c 	gp->rx_buf_sz = max(dev->mtu + ETH_HLEN + VLAN_HLEN,
gp               1643 drivers/net/ethernet/sun/sungem.c 		skb = gem_alloc_skb(dev, RX_BUF_ALLOC_SIZE(gp), GFP_KERNEL);
gp               1650 drivers/net/ethernet/sun/sungem.c 		gp->rx_skbs[i] = skb;
gp               1651 drivers/net/ethernet/sun/sungem.c 		skb_put(skb, (gp->rx_buf_sz + RX_OFFSET));
gp               1652 drivers/net/ethernet/sun/sungem.c 		dma_addr = pci_map_page(gp->pdev,
gp               1655 drivers/net/ethernet/sun/sungem.c 					RX_BUF_ALLOC_SIZE(gp),
gp               1659 drivers/net/ethernet/sun/sungem.c 		rxd->status_word = cpu_to_le64(RXDCTRL_FRESH(gp));
gp               1674 drivers/net/ethernet/sun/sungem.c static void gem_init_phy(struct gem *gp)
gp               1679 drivers/net/ethernet/sun/sungem.c 	mifcfg = readl(gp->regs + MIF_CFG);
gp               1681 drivers/net/ethernet/sun/sungem.c 	writel(mifcfg, gp->regs + MIF_CFG);
gp               1683 drivers/net/ethernet/sun/sungem.c 	if (gp->pdev->vendor == PCI_VENDOR_ID_APPLE) {
gp               1692 drivers/net/ethernet/sun/sungem.c 			pmac_call_feature(PMAC_FTR_GMAC_PHY_RESET, gp->of_node, 0, 0);
gp               1698 drivers/net/ethernet/sun/sungem.c 			sungem_phy_write(gp, MII_BMCR, BMCR_RESET);
gp               1700 drivers/net/ethernet/sun/sungem.c 			if (sungem_phy_read(gp, MII_BMCR) != 0xffff)
gp               1703 drivers/net/ethernet/sun/sungem.c 				netdev_warn(gp->dev, "GMAC PHY not responding !\n");
gp               1707 drivers/net/ethernet/sun/sungem.c 	if (gp->pdev->vendor == PCI_VENDOR_ID_SUN &&
gp               1708 drivers/net/ethernet/sun/sungem.c 	    gp->pdev->device == PCI_DEVICE_ID_SUN_GEM) {
gp               1712 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_type == phy_mii_mdio0 ||
gp               1713 drivers/net/ethernet/sun/sungem.c 		    gp->phy_type == phy_mii_mdio1) {
gp               1715 drivers/net/ethernet/sun/sungem.c 		} else if (gp->phy_type == phy_serialink) {
gp               1721 drivers/net/ethernet/sun/sungem.c 		writel(val, gp->regs + PCS_DMODE);
gp               1724 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_mii_mdio0 ||
gp               1725 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_mii_mdio1) {
gp               1727 drivers/net/ethernet/sun/sungem.c 		sungem_phy_probe(&gp->phy_mii, gp->mii_phy_addr);
gp               1730 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_mii.def && gp->phy_mii.def->ops->init)
gp               1731 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->init(&gp->phy_mii);
gp               1733 drivers/net/ethernet/sun/sungem.c 		gem_pcs_reset(gp);
gp               1734 drivers/net/ethernet/sun/sungem.c 		gem_pcs_reinit_adv(gp);
gp               1738 drivers/net/ethernet/sun/sungem.c 	gp->timer_ticks = 0;
gp               1739 drivers/net/ethernet/sun/sungem.c 	gp->lstate = link_down;
gp               1740 drivers/net/ethernet/sun/sungem.c 	netif_carrier_off(gp->dev);
gp               1743 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_mii_mdio0 ||
gp               1744 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_mii_mdio1)
gp               1745 drivers/net/ethernet/sun/sungem.c 		netdev_info(gp->dev, "Found %s PHY\n",
gp               1746 drivers/net/ethernet/sun/sungem.c 			    gp->phy_mii.def ? gp->phy_mii.def->name : "no");
gp               1748 drivers/net/ethernet/sun/sungem.c 	gem_begin_auto_negotiation(gp, NULL);
gp               1751 drivers/net/ethernet/sun/sungem.c static void gem_init_dma(struct gem *gp)
gp               1753 drivers/net/ethernet/sun/sungem.c 	u64 desc_dma = (u64) gp->gblock_dvma;
gp               1757 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + TXDMA_CFG);
gp               1759 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma >> 32, gp->regs + TXDMA_DBHI);
gp               1760 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma & 0xffffffff, gp->regs + TXDMA_DBLOW);
gp               1763 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + TXDMA_KICK);
gp               1767 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + RXDMA_CFG);
gp               1769 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma >> 32, gp->regs + RXDMA_DBHI);
gp               1770 drivers/net/ethernet/sun/sungem.c 	writel(desc_dma & 0xffffffff, gp->regs + RXDMA_DBLOW);
gp               1772 drivers/net/ethernet/sun/sungem.c 	writel(RX_RING_SIZE - 4, gp->regs + RXDMA_KICK);
gp               1774 drivers/net/ethernet/sun/sungem.c 	val  = (((gp->rx_pause_off / 64) << 0) & RXDMA_PTHRESH_OFF);
gp               1775 drivers/net/ethernet/sun/sungem.c 	val |= (((gp->rx_pause_on / 64) << 12) & RXDMA_PTHRESH_ON);
gp               1776 drivers/net/ethernet/sun/sungem.c 	writel(val, gp->regs + RXDMA_PTHRESH);
gp               1778 drivers/net/ethernet/sun/sungem.c 	if (readl(gp->regs + GREG_BIFCFG) & GREG_BIFCFG_M66EN)
gp               1781 drivers/net/ethernet/sun/sungem.c 		       gp->regs + RXDMA_BLANK);
gp               1785 drivers/net/ethernet/sun/sungem.c 		       gp->regs + RXDMA_BLANK);
gp               1788 drivers/net/ethernet/sun/sungem.c static u32 gem_setup_multicast(struct gem *gp)
gp               1793 drivers/net/ethernet/sun/sungem.c 	if ((gp->dev->flags & IFF_ALLMULTI) ||
gp               1794 drivers/net/ethernet/sun/sungem.c 	    (netdev_mc_count(gp->dev) > 256)) {
gp               1796 drivers/net/ethernet/sun/sungem.c 			writel(0xffff, gp->regs + MAC_HASH0 + (i << 2));
gp               1798 drivers/net/ethernet/sun/sungem.c 	} else if (gp->dev->flags & IFF_PROMISC) {
gp               1807 drivers/net/ethernet/sun/sungem.c 		netdev_for_each_mc_addr(ha, gp->dev) {
gp               1813 drivers/net/ethernet/sun/sungem.c 			writel(hash_table[i], gp->regs + MAC_HASH0 + (i << 2));
gp               1820 drivers/net/ethernet/sun/sungem.c static void gem_init_mac(struct gem *gp)
gp               1822 drivers/net/ethernet/sun/sungem.c 	unsigned char *e = &gp->dev->dev_addr[0];
gp               1824 drivers/net/ethernet/sun/sungem.c 	writel(0x1bf0, gp->regs + MAC_SNDPAUSE);
gp               1826 drivers/net/ethernet/sun/sungem.c 	writel(0x00, gp->regs + MAC_IPG0);
gp               1827 drivers/net/ethernet/sun/sungem.c 	writel(0x08, gp->regs + MAC_IPG1);
gp               1828 drivers/net/ethernet/sun/sungem.c 	writel(0x04, gp->regs + MAC_IPG2);
gp               1829 drivers/net/ethernet/sun/sungem.c 	writel(0x40, gp->regs + MAC_STIME);
gp               1830 drivers/net/ethernet/sun/sungem.c 	writel(0x40, gp->regs + MAC_MINFSZ);
gp               1833 drivers/net/ethernet/sun/sungem.c 	writel(0x20000000 | (gp->rx_buf_sz + 4), gp->regs + MAC_MAXFSZ);
gp               1835 drivers/net/ethernet/sun/sungem.c 	writel(0x07, gp->regs + MAC_PASIZE);
gp               1836 drivers/net/ethernet/sun/sungem.c 	writel(0x04, gp->regs + MAC_JAMSIZE);
gp               1837 drivers/net/ethernet/sun/sungem.c 	writel(0x10, gp->regs + MAC_ATTLIM);
gp               1838 drivers/net/ethernet/sun/sungem.c 	writel(0x8808, gp->regs + MAC_MCTYPE);
gp               1840 drivers/net/ethernet/sun/sungem.c 	writel((e[5] | (e[4] << 8)) & 0x3ff, gp->regs + MAC_RANDSEED);
gp               1842 drivers/net/ethernet/sun/sungem.c 	writel((e[4] << 8) | e[5], gp->regs + MAC_ADDR0);
gp               1843 drivers/net/ethernet/sun/sungem.c 	writel((e[2] << 8) | e[3], gp->regs + MAC_ADDR1);
gp               1844 drivers/net/ethernet/sun/sungem.c 	writel((e[0] << 8) | e[1], gp->regs + MAC_ADDR2);
gp               1846 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_ADDR3);
gp               1847 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_ADDR4);
gp               1848 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_ADDR5);
gp               1850 drivers/net/ethernet/sun/sungem.c 	writel(0x0001, gp->regs + MAC_ADDR6);
gp               1851 drivers/net/ethernet/sun/sungem.c 	writel(0xc200, gp->regs + MAC_ADDR7);
gp               1852 drivers/net/ethernet/sun/sungem.c 	writel(0x0180, gp->regs + MAC_ADDR8);
gp               1854 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AFILT0);
gp               1855 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AFILT1);
gp               1856 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AFILT2);
gp               1857 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AF21MSK);
gp               1858 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AF0MSK);
gp               1860 drivers/net/ethernet/sun/sungem.c 	gp->mac_rx_cfg = gem_setup_multicast(gp);
gp               1862 drivers/net/ethernet/sun/sungem.c 	gp->mac_rx_cfg |= MAC_RXCFG_SFCS;
gp               1864 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_NCOLL);
gp               1865 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_FASUCC);
gp               1866 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_ECOLL);
gp               1867 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_LCOLL);
gp               1868 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_DTIMER);
gp               1869 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_PATMPS);
gp               1870 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_RFCTR);
gp               1871 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_LERR);
gp               1872 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AERR);
gp               1873 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_FCSERR);
gp               1874 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_RXCVERR);
gp               1879 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_TXCFG);
gp               1880 drivers/net/ethernet/sun/sungem.c 	writel(gp->mac_rx_cfg, gp->regs + MAC_RXCFG);
gp               1881 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_MCCFG);
gp               1882 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_XIFCFG);
gp               1888 drivers/net/ethernet/sun/sungem.c 	writel(MAC_TXSTAT_XMIT, gp->regs + MAC_TXMASK);
gp               1889 drivers/net/ethernet/sun/sungem.c 	writel(MAC_RXSTAT_RCV, gp->regs + MAC_RXMASK);
gp               1894 drivers/net/ethernet/sun/sungem.c 	writel(0xffffffff, gp->regs + MAC_MCMASK);
gp               1898 drivers/net/ethernet/sun/sungem.c 	if (gp->has_wol)
gp               1899 drivers/net/ethernet/sun/sungem.c 		writel(0, gp->regs + WOL_WAKECSR);
gp               1902 drivers/net/ethernet/sun/sungem.c static void gem_init_pause_thresholds(struct gem *gp)
gp               1911 drivers/net/ethernet/sun/sungem.c 	if (gp->rx_fifo_sz <= (2 * 1024)) {
gp               1912 drivers/net/ethernet/sun/sungem.c 		gp->rx_pause_off = gp->rx_pause_on = gp->rx_fifo_sz;
gp               1914 drivers/net/ethernet/sun/sungem.c 		int max_frame = (gp->rx_buf_sz + 4 + 64) & ~63;
gp               1915 drivers/net/ethernet/sun/sungem.c 		int off = (gp->rx_fifo_sz - (max_frame * 2));
gp               1918 drivers/net/ethernet/sun/sungem.c 		gp->rx_pause_off = off;
gp               1919 drivers/net/ethernet/sun/sungem.c 		gp->rx_pause_on = on;
gp               1927 drivers/net/ethernet/sun/sungem.c        	if (gp->pdev->vendor == PCI_VENDOR_ID_APPLE)
gp               1934 drivers/net/ethernet/sun/sungem.c        	writel(cfg, gp->regs + GREG_CFG);
gp               1939 drivers/net/ethernet/sun/sungem.c 	if (!(readl(gp->regs + GREG_CFG) & GREG_CFG_IBURST)) {
gp               1942 drivers/net/ethernet/sun/sungem.c 		writel(cfg, gp->regs + GREG_CFG);
gp               1946 drivers/net/ethernet/sun/sungem.c static int gem_check_invariants(struct gem *gp)
gp               1948 drivers/net/ethernet/sun/sungem.c 	struct pci_dev *pdev = gp->pdev;
gp               1956 drivers/net/ethernet/sun/sungem.c 		gp->phy_type = phy_mii_mdio0;
gp               1957 drivers/net/ethernet/sun/sungem.c 		gp->tx_fifo_sz = readl(gp->regs + TXDMA_FSZ) * 64;
gp               1958 drivers/net/ethernet/sun/sungem.c 		gp->rx_fifo_sz = readl(gp->regs + RXDMA_FSZ) * 64;
gp               1959 drivers/net/ethernet/sun/sungem.c 		gp->swrst_base = 0;
gp               1961 drivers/net/ethernet/sun/sungem.c 		mif_cfg = readl(gp->regs + MIF_CFG);
gp               1964 drivers/net/ethernet/sun/sungem.c 		writel(mif_cfg, gp->regs + MIF_CFG);
gp               1965 drivers/net/ethernet/sun/sungem.c 		writel(PCS_DMODE_MGM, gp->regs + PCS_DMODE);
gp               1966 drivers/net/ethernet/sun/sungem.c 		writel(MAC_XIFCFG_OE, gp->regs + MAC_XIFCFG);
gp               1972 drivers/net/ethernet/sun/sungem.c 		if (gp->pdev->device == PCI_DEVICE_ID_APPLE_K2_GMAC)
gp               1973 drivers/net/ethernet/sun/sungem.c 			gp->mii_phy_addr = 1;
gp               1975 drivers/net/ethernet/sun/sungem.c 			gp->mii_phy_addr = 0;
gp               1980 drivers/net/ethernet/sun/sungem.c 	mif_cfg = readl(gp->regs + MIF_CFG);
gp               1999 drivers/net/ethernet/sun/sungem.c 		gp->phy_type = phy_mii_mdio1;
gp               2001 drivers/net/ethernet/sun/sungem.c 		writel(mif_cfg, gp->regs + MIF_CFG);
gp               2003 drivers/net/ethernet/sun/sungem.c 		gp->phy_type = phy_mii_mdio0;
gp               2005 drivers/net/ethernet/sun/sungem.c 		writel(mif_cfg, gp->regs + MIF_CFG);
gp               2010 drivers/net/ethernet/sun/sungem.c 		p = of_get_property(gp->of_node, "shared-pins", NULL);
gp               2012 drivers/net/ethernet/sun/sungem.c 			gp->phy_type = phy_serdes;
gp               2015 drivers/net/ethernet/sun/sungem.c 			gp->phy_type = phy_serialink;
gp               2017 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_mii_mdio1 ||
gp               2018 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_mii_mdio0) {
gp               2022 drivers/net/ethernet/sun/sungem.c 			gp->mii_phy_addr = i;
gp               2023 drivers/net/ethernet/sun/sungem.c 			if (sungem_phy_read(gp, MII_BMCR) != 0xffff)
gp               2031 drivers/net/ethernet/sun/sungem.c 			gp->phy_type = phy_serdes;
gp               2036 drivers/net/ethernet/sun/sungem.c 	gp->tx_fifo_sz = readl(gp->regs + TXDMA_FSZ) * 64;
gp               2037 drivers/net/ethernet/sun/sungem.c 	gp->rx_fifo_sz = readl(gp->regs + RXDMA_FSZ) * 64;
gp               2041 drivers/net/ethernet/sun/sungem.c 			if (gp->tx_fifo_sz != (9 * 1024) ||
gp               2042 drivers/net/ethernet/sun/sungem.c 			    gp->rx_fifo_sz != (20 * 1024)) {
gp               2044 drivers/net/ethernet/sun/sungem.c 				       gp->tx_fifo_sz, gp->rx_fifo_sz);
gp               2047 drivers/net/ethernet/sun/sungem.c 			gp->swrst_base = 0;
gp               2049 drivers/net/ethernet/sun/sungem.c 			if (gp->tx_fifo_sz != (2 * 1024) ||
gp               2050 drivers/net/ethernet/sun/sungem.c 			    gp->rx_fifo_sz != (2 * 1024)) {
gp               2052 drivers/net/ethernet/sun/sungem.c 				       gp->tx_fifo_sz, gp->rx_fifo_sz);
gp               2055 drivers/net/ethernet/sun/sungem.c 			gp->swrst_base = (64 / 4) << GREG_SWRST_CACHE_SHIFT;
gp               2062 drivers/net/ethernet/sun/sungem.c static void gem_reinit_chip(struct gem *gp)
gp               2065 drivers/net/ethernet/sun/sungem.c 	gem_reset(gp);
gp               2068 drivers/net/ethernet/sun/sungem.c 	gem_disable_ints(gp);
gp               2071 drivers/net/ethernet/sun/sungem.c 	gem_init_rings(gp);
gp               2074 drivers/net/ethernet/sun/sungem.c 	gem_init_pause_thresholds(gp);
gp               2077 drivers/net/ethernet/sun/sungem.c 	gem_init_dma(gp);
gp               2078 drivers/net/ethernet/sun/sungem.c 	gem_init_mac(gp);
gp               2082 drivers/net/ethernet/sun/sungem.c static void gem_stop_phy(struct gem *gp, int wol)
gp               2094 drivers/net/ethernet/sun/sungem.c 	mifcfg = readl(gp->regs + MIF_CFG);
gp               2096 drivers/net/ethernet/sun/sungem.c 	writel(mifcfg, gp->regs + MIF_CFG);
gp               2098 drivers/net/ethernet/sun/sungem.c 	if (wol && gp->has_wol) {
gp               2099 drivers/net/ethernet/sun/sungem.c 		unsigned char *e = &gp->dev->dev_addr[0];
gp               2104 drivers/net/ethernet/sun/sungem.c 		       gp->regs + MAC_RXCFG);
gp               2105 drivers/net/ethernet/sun/sungem.c 		writel((e[4] << 8) | e[5], gp->regs + WOL_MATCH0);
gp               2106 drivers/net/ethernet/sun/sungem.c 		writel((e[2] << 8) | e[3], gp->regs + WOL_MATCH1);
gp               2107 drivers/net/ethernet/sun/sungem.c 		writel((e[0] << 8) | e[1], gp->regs + WOL_MATCH2);
gp               2109 drivers/net/ethernet/sun/sungem.c 		writel(WOL_MCOUNT_N | WOL_MCOUNT_M, gp->regs + WOL_MCOUNT);
gp               2111 drivers/net/ethernet/sun/sungem.c 		if ((readl(gp->regs + MAC_XIFCFG) & MAC_XIFCFG_GMII) == 0)
gp               2113 drivers/net/ethernet/sun/sungem.c 		writel(csr, gp->regs + WOL_WAKECSR);
gp               2115 drivers/net/ethernet/sun/sungem.c 		writel(0, gp->regs + MAC_RXCFG);
gp               2116 drivers/net/ethernet/sun/sungem.c 		(void)readl(gp->regs + MAC_RXCFG);
gp               2124 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_TXCFG);
gp               2125 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_XIFCFG);
gp               2126 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + TXDMA_CFG);
gp               2127 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + RXDMA_CFG);
gp               2130 drivers/net/ethernet/sun/sungem.c 		gem_reset(gp);
gp               2131 drivers/net/ethernet/sun/sungem.c 		writel(MAC_TXRST_CMD, gp->regs + MAC_TXRST);
gp               2132 drivers/net/ethernet/sun/sungem.c 		writel(MAC_RXRST_CMD, gp->regs + MAC_RXRST);
gp               2134 drivers/net/ethernet/sun/sungem.c 		if (found_mii_phy(gp) && gp->phy_mii.def->ops->suspend)
gp               2135 drivers/net/ethernet/sun/sungem.c 			gp->phy_mii.def->ops->suspend(&gp->phy_mii);
gp               2140 drivers/net/ethernet/sun/sungem.c 		writel(mifcfg | MIF_CFG_BBMODE, gp->regs + MIF_CFG);
gp               2141 drivers/net/ethernet/sun/sungem.c 		writel(0, gp->regs + MIF_BBCLK);
gp               2142 drivers/net/ethernet/sun/sungem.c 		writel(0, gp->regs + MIF_BBDATA);
gp               2143 drivers/net/ethernet/sun/sungem.c 		writel(0, gp->regs + MIF_BBOENAB);
gp               2144 drivers/net/ethernet/sun/sungem.c 		writel(MAC_XIFCFG_GMII | MAC_XIFCFG_LBCK, gp->regs + MAC_XIFCFG);
gp               2145 drivers/net/ethernet/sun/sungem.c 		(void) readl(gp->regs + MAC_XIFCFG);
gp               2151 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2155 drivers/net/ethernet/sun/sungem.c 	gem_get_cell(gp);
gp               2158 drivers/net/ethernet/sun/sungem.c 	rc = pci_enable_device(gp->pdev);
gp               2165 drivers/net/ethernet/sun/sungem.c 		gem_put_cell(gp);
gp               2168 drivers/net/ethernet/sun/sungem.c 	pci_set_master(gp->pdev);
gp               2171 drivers/net/ethernet/sun/sungem.c 	gem_reinit_chip(gp);
gp               2174 drivers/net/ethernet/sun/sungem.c 	rc = request_irq(gp->pdev->irq, gem_interrupt,
gp               2179 drivers/net/ethernet/sun/sungem.c 		gem_reset(gp);
gp               2180 drivers/net/ethernet/sun/sungem.c 		gem_clean_rings(gp);
gp               2181 drivers/net/ethernet/sun/sungem.c 		gem_put_cell(gp);
gp               2191 drivers/net/ethernet/sun/sungem.c 	gem_netif_start(gp);
gp               2197 drivers/net/ethernet/sun/sungem.c 	gem_init_phy(gp);
gp               2204 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2207 drivers/net/ethernet/sun/sungem.c 	gem_netif_stop(gp);
gp               2214 drivers/net/ethernet/sun/sungem.c 	gem_disable_ints(gp);
gp               2217 drivers/net/ethernet/sun/sungem.c 	del_timer_sync(&gp->link_timer);
gp               2228 drivers/net/ethernet/sun/sungem.c 	gp->reset_task_pending = 0;
gp               2231 drivers/net/ethernet/sun/sungem.c 	gem_stop_dma(gp);
gp               2234 drivers/net/ethernet/sun/sungem.c 		gem_reset(gp);
gp               2238 drivers/net/ethernet/sun/sungem.c 	gem_clean_rings(gp);
gp               2241 drivers/net/ethernet/sun/sungem.c 	free_irq(gp->pdev->irq, (void *) dev);
gp               2244 drivers/net/ethernet/sun/sungem.c 	gem_stop_phy(gp, wol);
gp               2247 drivers/net/ethernet/sun/sungem.c 	pci_disable_device(gp->pdev);
gp               2251 drivers/net/ethernet/sun/sungem.c 		gem_put_cell(gp);
gp               2256 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = container_of(work, struct gem, reset_task);
gp               2266 drivers/net/ethernet/sun/sungem.c 	if (!netif_device_present(gp->dev) ||
gp               2267 drivers/net/ethernet/sun/sungem.c 	    !netif_running(gp->dev) ||
gp               2268 drivers/net/ethernet/sun/sungem.c 	    !gp->reset_task_pending) {
gp               2274 drivers/net/ethernet/sun/sungem.c 	del_timer_sync(&gp->link_timer);
gp               2277 drivers/net/ethernet/sun/sungem.c 	gem_netif_stop(gp);
gp               2280 drivers/net/ethernet/sun/sungem.c 	gem_reinit_chip(gp);
gp               2281 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate == link_up)
gp               2282 drivers/net/ethernet/sun/sungem.c 		gem_set_link_modes(gp);
gp               2285 drivers/net/ethernet/sun/sungem.c 	gem_netif_start(gp);
gp               2288 drivers/net/ethernet/sun/sungem.c 	gp->reset_task_pending = 0;
gp               2293 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate != link_up)
gp               2294 drivers/net/ethernet/sun/sungem.c 		gem_begin_auto_negotiation(gp, NULL);
gp               2296 drivers/net/ethernet/sun/sungem.c 		mod_timer(&gp->link_timer, jiffies + ((12 * HZ) / 10));
gp               2323 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2339 drivers/net/ethernet/sun/sungem.c 		    (gp->wake_on_lan && netif_running(dev)) ?
gp               2348 drivers/net/ethernet/sun/sungem.c 	gp->asleep_wol = !!gp->wake_on_lan;
gp               2349 drivers/net/ethernet/sun/sungem.c 	gem_do_stop(dev, gp->asleep_wol);
gp               2360 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2382 drivers/net/ethernet/sun/sungem.c 	if (gp->asleep_wol)
gp               2383 drivers/net/ethernet/sun/sungem.c 		gem_put_cell(gp);
gp               2394 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2407 drivers/net/ethernet/sun/sungem.c 	if (WARN_ON(!gp->cell_enabled))
gp               2410 drivers/net/ethernet/sun/sungem.c 	dev->stats.rx_crc_errors += readl(gp->regs + MAC_FCSERR);
gp               2411 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_FCSERR);
gp               2413 drivers/net/ethernet/sun/sungem.c 	dev->stats.rx_frame_errors += readl(gp->regs + MAC_AERR);
gp               2414 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_AERR);
gp               2416 drivers/net/ethernet/sun/sungem.c 	dev->stats.rx_length_errors += readl(gp->regs + MAC_LERR);
gp               2417 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_LERR);
gp               2419 drivers/net/ethernet/sun/sungem.c 	dev->stats.tx_aborted_errors += readl(gp->regs + MAC_ECOLL);
gp               2421 drivers/net/ethernet/sun/sungem.c 		(readl(gp->regs + MAC_ECOLL) + readl(gp->regs + MAC_LCOLL));
gp               2422 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_ECOLL);
gp               2423 drivers/net/ethernet/sun/sungem.c 	writel(0, gp->regs + MAC_LCOLL);
gp               2431 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2444 drivers/net/ethernet/sun/sungem.c 	if (WARN_ON(!gp->cell_enabled))
gp               2447 drivers/net/ethernet/sun/sungem.c 	writel((e[4] << 8) | e[5], gp->regs + MAC_ADDR0);
gp               2448 drivers/net/ethernet/sun/sungem.c 	writel((e[2] << 8) | e[3], gp->regs + MAC_ADDR1);
gp               2449 drivers/net/ethernet/sun/sungem.c 	writel((e[0] << 8) | e[1], gp->regs + MAC_ADDR2);
gp               2456 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2464 drivers/net/ethernet/sun/sungem.c 	if (gp->reset_task_pending || WARN_ON(!gp->cell_enabled))
gp               2467 drivers/net/ethernet/sun/sungem.c 	rxcfg = readl(gp->regs + MAC_RXCFG);
gp               2468 drivers/net/ethernet/sun/sungem.c 	rxcfg_new = gem_setup_multicast(gp);
gp               2472 drivers/net/ethernet/sun/sungem.c 	gp->mac_rx_cfg = rxcfg_new;
gp               2474 drivers/net/ethernet/sun/sungem.c 	writel(rxcfg & ~MAC_RXCFG_ENAB, gp->regs + MAC_RXCFG);
gp               2475 drivers/net/ethernet/sun/sungem.c 	while (readl(gp->regs + MAC_RXCFG) & MAC_RXCFG_ENAB) {
gp               2484 drivers/net/ethernet/sun/sungem.c 	writel(rxcfg, gp->regs + MAC_RXCFG);
gp               2497 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2506 drivers/net/ethernet/sun/sungem.c 	if (WARN_ON(!gp->cell_enabled))
gp               2509 drivers/net/ethernet/sun/sungem.c 	gem_netif_stop(gp);
gp               2510 drivers/net/ethernet/sun/sungem.c 	gem_reinit_chip(gp);
gp               2511 drivers/net/ethernet/sun/sungem.c 	if (gp->lstate == link_up)
gp               2512 drivers/net/ethernet/sun/sungem.c 		gem_set_link_modes(gp);
gp               2513 drivers/net/ethernet/sun/sungem.c 	gem_netif_start(gp);
gp               2520 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2524 drivers/net/ethernet/sun/sungem.c 	strlcpy(info->bus_info, pci_name(gp->pdev), sizeof(info->bus_info));
gp               2530 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2533 drivers/net/ethernet/sun/sungem.c 	if (gp->phy_type == phy_mii_mdio0 ||
gp               2534 drivers/net/ethernet/sun/sungem.c 	    gp->phy_type == phy_mii_mdio1) {
gp               2535 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_mii.def)
gp               2536 drivers/net/ethernet/sun/sungem.c 			supported = gp->phy_mii.def->features;
gp               2546 drivers/net/ethernet/sun/sungem.c 		cmd->base.autoneg = gp->want_autoneg;
gp               2547 drivers/net/ethernet/sun/sungem.c 		cmd->base.speed = gp->phy_mii.speed;
gp               2548 drivers/net/ethernet/sun/sungem.c 		cmd->base.duplex = gp->phy_mii.duplex;
gp               2549 drivers/net/ethernet/sun/sungem.c 		advertising = gp->phy_mii.advertising;
gp               2570 drivers/net/ethernet/sun/sungem.c 		if (gp->phy_type == phy_serdes) {
gp               2577 drivers/net/ethernet/sun/sungem.c 			if (gp->lstate == link_up)
gp               2595 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2620 drivers/net/ethernet/sun/sungem.c 	if (netif_device_present(gp->dev)) {
gp               2621 drivers/net/ethernet/sun/sungem.c 		del_timer_sync(&gp->link_timer);
gp               2622 drivers/net/ethernet/sun/sungem.c 		gem_begin_auto_negotiation(gp, cmd);
gp               2630 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2632 drivers/net/ethernet/sun/sungem.c 	if (!gp->want_autoneg)
gp               2636 drivers/net/ethernet/sun/sungem.c 	if (netif_device_present(gp->dev)) {
gp               2637 drivers/net/ethernet/sun/sungem.c 		del_timer_sync(&gp->link_timer);
gp               2638 drivers/net/ethernet/sun/sungem.c 		gem_begin_auto_negotiation(gp, NULL);
gp               2646 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2647 drivers/net/ethernet/sun/sungem.c 	return gp->msg_enable;
gp               2652 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2653 drivers/net/ethernet/sun/sungem.c 	gp->msg_enable = value;
gp               2664 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2667 drivers/net/ethernet/sun/sungem.c 	if (gp->has_wol) {
gp               2669 drivers/net/ethernet/sun/sungem.c 		wol->wolopts = gp->wake_on_lan;
gp               2678 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2680 drivers/net/ethernet/sun/sungem.c 	if (!gp->has_wol)
gp               2682 drivers/net/ethernet/sun/sungem.c 	gp->wake_on_lan = wol->wolopts & WOL_SUPPORTED_MASK;
gp               2700 drivers/net/ethernet/sun/sungem.c 	struct gem *gp = netdev_priv(dev);
gp               2711 drivers/net/ethernet/sun/sungem.c 		data->phy_id = gp->mii_phy_addr;
gp               2715 drivers/net/ethernet/sun/sungem.c 		data->val_out = __sungem_phy_read(gp, data->phy_id & 0x1f,
gp               2721 drivers/net/ethernet/sun/sungem.c 		__sungem_phy_write(gp, data->phy_id & 0x1f, data->reg_num & 0x1f,
gp               2781 drivers/net/ethernet/sun/sungem.c static int gem_get_device_address(struct gem *gp)
gp               2784 drivers/net/ethernet/sun/sungem.c 	struct net_device *dev = gp->dev;
gp               2787 drivers/net/ethernet/sun/sungem.c 	addr = of_get_property(gp->of_node, "local-mac-address", NULL);
gp               2799 drivers/net/ethernet/sun/sungem.c 	get_gem_mac_nonobp(gp->pdev, gp->dev->dev_addr);
gp               2809 drivers/net/ethernet/sun/sungem.c 		struct gem *gp = netdev_priv(dev);
gp               2814 drivers/net/ethernet/sun/sungem.c 		cancel_work_sync(&gp->reset_task);
gp               2819 drivers/net/ethernet/sun/sungem.c 				    gp->init_block,
gp               2820 drivers/net/ethernet/sun/sungem.c 				    gp->gblock_dvma);
gp               2821 drivers/net/ethernet/sun/sungem.c 		iounmap(gp->regs);
gp               2847 drivers/net/ethernet/sun/sungem.c 	struct gem *gp;
gp               2896 drivers/net/ethernet/sun/sungem.c 	dev = alloc_etherdev(sizeof(*gp));
gp               2903 drivers/net/ethernet/sun/sungem.c 	gp = netdev_priv(dev);
gp               2911 drivers/net/ethernet/sun/sungem.c 	gp->pdev = pdev;
gp               2912 drivers/net/ethernet/sun/sungem.c 	gp->dev = dev;
gp               2914 drivers/net/ethernet/sun/sungem.c 	gp->msg_enable = DEFAULT_MSG;
gp               2916 drivers/net/ethernet/sun/sungem.c 	timer_setup(&gp->link_timer, gem_link_timer, 0);
gp               2918 drivers/net/ethernet/sun/sungem.c 	INIT_WORK(&gp->reset_task, gem_reset_task);
gp               2920 drivers/net/ethernet/sun/sungem.c 	gp->lstate = link_down;
gp               2921 drivers/net/ethernet/sun/sungem.c 	gp->timer_ticks = 0;
gp               2924 drivers/net/ethernet/sun/sungem.c 	gp->regs = ioremap(gemreg_base, gemreg_len);
gp               2925 drivers/net/ethernet/sun/sungem.c 	if (!gp->regs) {
gp               2935 drivers/net/ethernet/sun/sungem.c 	gp->of_node = pci_device_to_OF_node(pdev);
gp               2940 drivers/net/ethernet/sun/sungem.c 		gp->has_wol = 1;
gp               2943 drivers/net/ethernet/sun/sungem.c 	gem_get_cell(gp);
gp               2946 drivers/net/ethernet/sun/sungem.c 	gem_reset(gp);
gp               2949 drivers/net/ethernet/sun/sungem.c 	gp->phy_mii.dev = dev;
gp               2950 drivers/net/ethernet/sun/sungem.c 	gp->phy_mii.mdio_read = _sungem_phy_read;
gp               2951 drivers/net/ethernet/sun/sungem.c 	gp->phy_mii.mdio_write = _sungem_phy_write;
gp               2953 drivers/net/ethernet/sun/sungem.c 	gp->phy_mii.platform_data = gp->of_node;
gp               2956 drivers/net/ethernet/sun/sungem.c 	gp->want_autoneg = 1;
gp               2959 drivers/net/ethernet/sun/sungem.c 	if (gem_check_invariants(gp)) {
gp               2967 drivers/net/ethernet/sun/sungem.c 	gp->init_block = (struct gem_init_block *)
gp               2969 drivers/net/ethernet/sun/sungem.c 				     &gp->gblock_dvma);
gp               2970 drivers/net/ethernet/sun/sungem.c 	if (!gp->init_block) {
gp               2976 drivers/net/ethernet/sun/sungem.c 	err = gem_get_device_address(gp);
gp               2981 drivers/net/ethernet/sun/sungem.c 	netif_napi_add(dev, &gp->napi, gem_poll, 64);
gp               3010 drivers/net/ethernet/sun/sungem.c 	gem_put_cell(gp);
gp               3020 drivers/net/ethernet/sun/sungem.c 	gem_put_cell(gp);
gp               3021 drivers/net/ethernet/sun/sungem.c 	iounmap(gp->regs);
gp                879 drivers/net/ethernet/sun/sungem.h #define RXDCTRL_FRESH(gp)	\
gp                880 drivers/net/ethernet/sun/sungem.h 	((((RX_BUF_ALLOC_SIZE(gp) - RX_OFFSET) << 16) & RXDCTRL_BUFSZ) | \
gp                939 drivers/net/ethernet/sun/sungem.h #define RX_BUF_ALLOC_SIZE(gp)	((gp)->rx_buf_sz + 28 + RX_OFFSET + 64)
gp               1025 drivers/net/ethernet/sun/sungem.h #define found_mii_phy(gp) ((gp->phy_type == phy_mii_mdio0 || gp->phy_type == phy_mii_mdio1) && \
gp               1026 drivers/net/ethernet/sun/sungem.h 			   gp->phy_mii.def && gp->phy_mii.def->ops)
gp                655 drivers/net/wireless/intel/iwlegacy/common.c 	u32 gp = _il_rd(il, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK;
gp                658 drivers/net/wireless/intel/iwlegacy/common.c 	D_EEPROM("EEPROM signature=0x%08x\n", gp);
gp                659 drivers/net/wireless/intel/iwlegacy/common.c 	switch (gp) {
gp                664 drivers/net/wireless/intel/iwlegacy/common.c 		IL_ERR("bad EEPROM signature," "EEPROM_GP=0x%08x\n", gp);
gp                699 drivers/net/wireless/intel/iwlegacy/common.c 	u32 gp = _il_rd(il, CSR_EEPROM_GP);
gp                717 drivers/net/wireless/intel/iwlegacy/common.c 		IL_ERR("EEPROM not found, EEPROM_GP=0x%08x\n", gp);
gp                128 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	u32 gp = iwl_read32(trans, CSR_EEPROM_GP) & CSR_EEPROM_GP_VALID_MSK;
gp                130 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	IWL_DEBUG_EEPROM(trans->dev, "EEPROM signature=0x%08x\n", gp);
gp                132 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	switch (gp) {
gp                136 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 				gp);
gp                143 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 			IWL_ERR(trans, "OTP with bad signature: 0x%08x\n", gp);
gp                151 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 			nvm_is_otp ? "OTP" : "EEPROM", gp);
gp                349 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	u32 gp = iwl_read32(trans, CSR_EEPROM_GP);
gp                373 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 		IWL_ERR(trans, "EEPROM not found, EEPROM_GP=0x%08x\n", gp);
gp                 52 drivers/net/wireless/ti/wl12xx/cmd.c 	struct wl1271_ini_general_params *gp =
gp                 61 drivers/net/wireless/ti/wl12xx/cmd.c 	if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) {
gp                 72 drivers/net/wireless/ti/wl12xx/cmd.c 	memcpy(&gen_parms->general_params, gp, sizeof(*gp));
gp                 90 drivers/net/wireless/ti/wl12xx/cmd.c 	gp->tx_bip_fem_manufacturer =
gp                 93 drivers/net/wireless/ti/wl12xx/cmd.c 	if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) {
gp                101 drivers/net/wireless/ti/wl12xx/cmd.c 		wl->fem_manuf = gp->tx_bip_fem_manufacturer;
gp                109 drivers/net/wireless/ti/wl12xx/cmd.c 		gp->tx_bip_fem_manufacturer);
gp                119 drivers/net/wireless/ti/wl12xx/cmd.c 	struct wl128x_ini_general_params *gp =
gp                128 drivers/net/wireless/ti/wl12xx/cmd.c 	if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) {
gp                139 drivers/net/wireless/ti/wl12xx/cmd.c 	memcpy(&gen_parms->general_params, gp, sizeof(*gp));
gp                158 drivers/net/wireless/ti/wl12xx/cmd.c 	gp->tx_bip_fem_manufacturer =
gp                161 drivers/net/wireless/ti/wl12xx/cmd.c 	if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) {
gp                169 drivers/net/wireless/ti/wl12xx/cmd.c 		wl->fem_manuf = gp->tx_bip_fem_manufacturer;
gp                177 drivers/net/wireless/ti/wl12xx/cmd.c 		gp->tx_bip_fem_manufacturer);
gp                188 drivers/net/wireless/ti/wl12xx/cmd.c 	struct wl1271_ini_general_params *gp = &nvs->general_params;
gp                200 drivers/net/wireless/ti/wl12xx/cmd.c 	fem_idx = WL12XX_FEM_TO_NVS_ENTRY(gp->tx_bip_fem_manufacturer);
gp                232 drivers/net/wireless/ti/wl12xx/cmd.c 	struct wl128x_ini_general_params *gp = &nvs->general_params;
gp                244 drivers/net/wireless/ti/wl12xx/cmd.c 	fem_idx = WL12XX_FEM_TO_NVS_ENTRY(gp->tx_bip_fem_manufacturer);
gp                938 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 			struct armada_37xx_pin_group *gp = &info->groups[g];
gp                941 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 			f = match_string(gp->funcs, NB_FUNCS, name);
gp                945 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c 			*groups = gp->name;
gp                 67 drivers/scsi/megaraid/mega_common.h 	unsigned long		gp;
gp               1067 drivers/scsi/megaraid/megaraid_mbox.c 		scb->gp			= 0;
gp               2233 drivers/scsi/megaraid/megaraid_mbox.c 			kioc			= (uioc_t *)scb->gp;
gp               2561 drivers/scsi/megaraid/megaraid_mbox.c 			kioc			= (uioc_t *)scb->gp;
gp               3445 drivers/scsi/megaraid/megaraid_mbox.c 		scb->gp			= 0;
gp               3599 drivers/scsi/megaraid/megaraid_mbox.c 	scb->gp		= (unsigned long)kioc;
gp               3693 drivers/scsi/megaraid/megaraid_mbox.c 	kioc			= (uioc_t *)scb->gp;
gp                872 drivers/thermal/tegra/soctherm.c 	u32 st, ex = 0, cp = 0, gp = 0, pl = 0, me = 0;
gp                880 drivers/thermal/tegra/soctherm.c 	gp |= st & TH_INTR_GD0_MASK;
gp                881 drivers/thermal/tegra/soctherm.c 	gp |= st & TH_INTR_GU0_MASK;
gp                889 drivers/thermal/tegra/soctherm.c 	ex |= cp | gp | pl | me;
gp                900 drivers/thermal/tegra/soctherm.c 		if (gp) {
gp                 94 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_dev(gp)		usbhs_priv_to_dev((gp)->mod.priv)
gp                 95 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_priv(gp)	((gp)->mod.priv)
gp                 96 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_dcp(gp)		((gp)->uep)
gp                 97 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_nth_uep(gp, i)	((gp)->uep + i)
gp                107 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_is_not_connected(gp) ((gp)->gadget.speed == USB_SPEED_UNKNOWN)
gp                110 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_status_init(gp)   do {(gp)->status = 0; } while (0)
gp                111 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_status_set(gp, b) (gp->status |=  b)
gp                112 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_status_clr(gp, b) (gp->status &= ~b)
gp                113 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_status_has(gp, b) (gp->status &   b)
gp                 33 drivers/video/fbdev/geode/gxfb.h 	uint32_t gp[GP_REG_COUNT];
gp                 43 drivers/video/fbdev/geode/lxfb.h 	uint32_t gp[GP_REG_COUNT];
gp                604 drivers/video/fbdev/geode/lxfb_ops.c 	memcpy(par->gp, par->gp_regs, sizeof(par->gp));
gp                643 drivers/video/fbdev/geode/lxfb_ops.c 	write_gp(par, GP_RASTER_MODE, par->gp[GP_RASTER_MODE]);
gp                645 drivers/video/fbdev/geode/lxfb_ops.c 	for (i = 0; i < ARRAY_SIZE(par->gp); i++) {
gp                659 drivers/video/fbdev/geode/lxfb_ops.c 			write_gp(par, i, par->gp[i]);
gp                 32 drivers/video/fbdev/geode/suspend_gx.c 	memcpy(par->gp, par->gp_regs, sizeof(par->gp));
gp                 70 drivers/video/fbdev/geode/suspend_gx.c 	for (i = 0; i < ARRAY_SIZE(par->gp); i++) {
gp                 79 drivers/video/fbdev/geode/suspend_gx.c 			write_gp(par, i, par->gp[i]);
gp                 29 drivers/video/fbdev/sunxvr1000.c static int gfb_get_props(struct gfb_info *gp)
gp                 31 drivers/video/fbdev/sunxvr1000.c 	gp->width = of_getintprop_default(gp->of_node, "width", 0);
gp                 32 drivers/video/fbdev/sunxvr1000.c 	gp->height = of_getintprop_default(gp->of_node, "height", 0);
gp                 33 drivers/video/fbdev/sunxvr1000.c 	gp->depth = of_getintprop_default(gp->of_node, "depth", 32);
gp                 35 drivers/video/fbdev/sunxvr1000.c 	if (!gp->width || !gp->height) {
gp                 37 drivers/video/fbdev/sunxvr1000.c 		       gp->of_node);
gp                 70 drivers/video/fbdev/sunxvr1000.c static int gfb_set_fbinfo(struct gfb_info *gp)
gp                 72 drivers/video/fbdev/sunxvr1000.c 	struct fb_info *info = gp->info;
gp                 77 drivers/video/fbdev/sunxvr1000.c 	info->screen_base = gp->fb_base;
gp                 78 drivers/video/fbdev/sunxvr1000.c 	info->screen_size = gp->fb_size;
gp                 80 drivers/video/fbdev/sunxvr1000.c 	info->pseudo_palette = gp->pseudo_palette;
gp                 84 drivers/video/fbdev/sunxvr1000.c         info->fix.smem_start = gp->fb_base_phys;
gp                 85 drivers/video/fbdev/sunxvr1000.c         info->fix.smem_len = gp->fb_size;
gp                 87 drivers/video/fbdev/sunxvr1000.c 	if (gp->depth == 32 || gp->depth == 24)
gp                 92 drivers/video/fbdev/sunxvr1000.c 	var->xres = gp->width;
gp                 93 drivers/video/fbdev/sunxvr1000.c 	var->yres = gp->height;
gp                 96 drivers/video/fbdev/sunxvr1000.c 	var->bits_per_pixel = gp->depth;
gp                119 drivers/video/fbdev/sunxvr1000.c 	struct gfb_info *gp;
gp                128 drivers/video/fbdev/sunxvr1000.c 	gp = info->par;
gp                129 drivers/video/fbdev/sunxvr1000.c 	gp->info = info;
gp                130 drivers/video/fbdev/sunxvr1000.c 	gp->of_node = dp;
gp                132 drivers/video/fbdev/sunxvr1000.c 	gp->fb_base_phys = op->resource[6].start;
gp                134 drivers/video/fbdev/sunxvr1000.c 	err = gfb_get_props(gp);
gp                140 drivers/video/fbdev/sunxvr1000.c 	gp->fb_size = info->fix.line_length * gp->height;
gp                142 drivers/video/fbdev/sunxvr1000.c 	gp->fb_base = of_ioremap(&op->resource[6], 0,
gp                143 drivers/video/fbdev/sunxvr1000.c 				 gp->fb_size, "gfb fb");
gp                144 drivers/video/fbdev/sunxvr1000.c 	if (!gp->fb_base) {
gp                149 drivers/video/fbdev/sunxvr1000.c 	err = gfb_set_fbinfo(gp);
gp                167 drivers/video/fbdev/sunxvr1000.c 	of_iounmap(&op->resource[6], gp->fb_base, gp->fb_size);
gp                249 fs/binfmt_aout.c 	regs->gp = ex.a_gpvalue;
gp                437 include/linux/genhd.h extern void del_gendisk(struct gendisk *gp);
gp                381 include/sound/core.h #define gameport_set_dev_parent(gp,xdev) ((gp)->dev.parent = (xdev))
gp                382 include/sound/core.h #define gameport_set_port_data(gp,r) ((gp)->port_data = (r))
gp                383 include/sound/core.h #define gameport_get_port_data(gp) (gp)->port_data
gp                209 net/802/garp.c 	struct garp_pdu_hdr *gp;
gp                221 net/802/garp.c 	gp = __skb_put(skb, sizeof(*gp));
gp                222 net/802/garp.c 	put_unaligned(htons(GARP_PROTOCOL_ID), &gp->protocol);
gp                504 net/802/garp.c 	const struct garp_pdu_hdr *gp;
gp                513 net/802/garp.c 	if (!pskb_may_pull(skb, sizeof(*gp)))
gp                515 net/802/garp.c 	gp = (struct garp_pdu_hdr *)skb->data;
gp                516 net/802/garp.c 	if (get_unaligned(&gp->protocol) != htons(GARP_PROTOCOL_ID))
gp                518 net/802/garp.c 	skb_pull(skb, sizeof(*gp));
gp                 51 net/phonet/pep-gprs.c static void gprs_writeable(struct gprs_dev *gp)
gp                 53 net/phonet/pep-gprs.c 	struct net_device *dev = gp->dev;
gp                 55 net/phonet/pep-gprs.c 	if (pep_writeable(gp->sk))
gp                 65 net/phonet/pep-gprs.c 	struct gprs_dev *gp = sk->sk_user_data;
gp                 68 net/phonet/pep-gprs.c 		struct net_device *dev = gp->dev;
gp                 75 net/phonet/pep-gprs.c static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb)
gp                 77 net/phonet/pep-gprs.c 	struct net_device *dev = gp->dev;
gp                138 net/phonet/pep-gprs.c 	struct gprs_dev *gp = sk->sk_user_data;
gp                143 net/phonet/pep-gprs.c 		gprs_recv(gp, skb);
gp                149 net/phonet/pep-gprs.c 	struct gprs_dev *gp = sk->sk_user_data;
gp                151 net/phonet/pep-gprs.c 	if (netif_running(gp->dev))
gp                152 net/phonet/pep-gprs.c 		gprs_writeable(gp);
gp                161 net/phonet/pep-gprs.c 	struct gprs_dev *gp = netdev_priv(dev);
gp                163 net/phonet/pep-gprs.c 	gprs_writeable(gp);
gp                175 net/phonet/pep-gprs.c 	struct gprs_dev *gp = netdev_priv(dev);
gp                176 net/phonet/pep-gprs.c 	struct sock *sk = gp->sk;
gp                240 net/phonet/pep-gprs.c 	struct gprs_dev *gp;
gp                248 net/phonet/pep-gprs.c 	dev = alloc_netdev(sizeof(*gp), ifname, NET_NAME_UNKNOWN, gprs_setup);
gp                251 net/phonet/pep-gprs.c 	gp = netdev_priv(dev);
gp                252 net/phonet/pep-gprs.c 	gp->sk = sk;
gp                253 net/phonet/pep-gprs.c 	gp->dev = dev;
gp                272 net/phonet/pep-gprs.c 	sk->sk_user_data	= gp;
gp                273 net/phonet/pep-gprs.c 	gp->old_state_change	= sk->sk_state_change;
gp                274 net/phonet/pep-gprs.c 	gp->old_data_ready	= sk->sk_data_ready;
gp                275 net/phonet/pep-gprs.c 	gp->old_write_space	= sk->sk_write_space;
gp                293 net/phonet/pep-gprs.c 	struct gprs_dev *gp = sk->sk_user_data;
gp                294 net/phonet/pep-gprs.c 	struct net_device *dev = gp->dev;
gp                298 net/phonet/pep-gprs.c 	sk->sk_state_change	= gp->old_state_change;
gp                299 net/phonet/pep-gprs.c 	sk->sk_data_ready	= gp->old_data_ready;
gp                300 net/phonet/pep-gprs.c 	sk->sk_write_space	= gp->old_write_space;
gp                383 sound/isa/cmi8328.c 		struct gameport *gp = cmi->gameport = gameport_allocate_port();
gp                387 sound/isa/cmi8328.c 			gameport_set_name(gp, "CMI8328 Gameport");
gp                388 sound/isa/cmi8328.c 			gameport_set_phys(gp, "%s/gameport0", dev_name(pdev));
gp                389 sound/isa/cmi8328.c 			gameport_set_dev_parent(gp, pdev);
gp                390 sound/isa/cmi8328.c 			gp->io = 0x200;
gp                391 sound/isa/cmi8328.c 			gameport_set_port_data(gp, res);
gp                395 sound/isa/cmi8328.c 			gameport_register_port(gp);
gp                282 sound/mips/ad1843.c 	const struct ad1843_gain *gp = ad1843_gain[id];
gp                285 sound/mips/ad1843.c 	ret = (1 << gp->lfield->nbits);
gp                286 sound/mips/ad1843.c 	if (!gp->lmute)
gp                299 sound/mips/ad1843.c 	const struct ad1843_gain *gp = ad1843_gain[id];
gp                300 sound/mips/ad1843.c 	unsigned short mask = (1 << gp->lfield->nbits) - 1;
gp                302 sound/mips/ad1843.c 	ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg);
gp                303 sound/mips/ad1843.c 	if (gp->negative) {
gp                307 sound/mips/ad1843.c 	if (gp->lmute) {
gp                308 sound/mips/ad1843.c 		ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm);
gp                325 sound/mips/ad1843.c 	const struct ad1843_gain *gp = ad1843_gain[id];
gp                326 sound/mips/ad1843.c 	unsigned short mask = (1 << gp->lfield->nbits) - 1;
gp                333 sound/mips/ad1843.c 	if (gp->negative) {
gp                337 sound/mips/ad1843.c 	if (gp->lmute)
gp                338 sound/mips/ad1843.c 		ad1843_write_multi(ad1843, 2, gp->lmute, lm, gp->rmute, rm);
gp                339 sound/mips/ad1843.c 	ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg);
gp                761 sound/pci/als4000.c 	struct gameport *gp;
gp                784 sound/pci/als4000.c 	acard->gameport = gp = gameport_allocate_port();
gp                785 sound/pci/als4000.c 	if (!gp) {
gp                791 sound/pci/als4000.c 	gameport_set_name(gp, "ALS4000 Gameport");
gp                792 sound/pci/als4000.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(acard->pci));
gp                793 sound/pci/als4000.c 	gameport_set_dev_parent(gp, &acard->pci->dev);
gp                794 sound/pci/als4000.c 	gp->io = io_port;
gp                795 sound/pci/als4000.c 	gameport_set_port_data(gp, r);
gp                 84 sound/pci/au88x0/au88x0_game.c 	struct gameport *gp;
gp                 86 sound/pci/au88x0/au88x0_game.c 	vortex->gameport = gp = gameport_allocate_port();
gp                 87 sound/pci/au88x0/au88x0_game.c 	if (!gp) {
gp                 93 sound/pci/au88x0/au88x0_game.c 	gameport_set_name(gp, "AU88x0 Gameport");
gp                 94 sound/pci/au88x0/au88x0_game.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(vortex->pci_dev));
gp                 95 sound/pci/au88x0/au88x0_game.c 	gameport_set_dev_parent(gp, &vortex->pci_dev->dev);
gp                 97 sound/pci/au88x0/au88x0_game.c 	gp->read = vortex_game_read;
gp                 98 sound/pci/au88x0/au88x0_game.c 	gp->trigger = vortex_game_trigger;
gp                 99 sound/pci/au88x0/au88x0_game.c 	gp->cooked_read = vortex_game_cooked_read;
gp                100 sound/pci/au88x0/au88x0_game.c 	gp->open = vortex_game_open;
gp                102 sound/pci/au88x0/au88x0_game.c 	gameport_set_port_data(gp, vortex);
gp                103 sound/pci/au88x0/au88x0_game.c 	gp->fuzz = 64;
gp                105 sound/pci/au88x0/au88x0_game.c 	gameport_register_port(gp);
gp               1811 sound/pci/azt3328.c 	struct gameport *gp;
gp               1813 sound/pci/azt3328.c 	chip->gameport = gp = gameport_allocate_port();
gp               1814 sound/pci/azt3328.c 	if (!gp) {
gp               1819 sound/pci/azt3328.c 	gameport_set_name(gp, "AZF3328 Gameport");
gp               1820 sound/pci/azt3328.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               1821 sound/pci/azt3328.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               1822 sound/pci/azt3328.c 	gp->io = chip->game_io;
gp               1823 sound/pci/azt3328.c 	gameport_set_port_data(gp, chip);
gp               1825 sound/pci/azt3328.c 	gp->open = snd_azf3328_gameport_open;
gp               1826 sound/pci/azt3328.c 	gp->close = snd_azf3328_gameport_close;
gp               1827 sound/pci/azt3328.c 	gp->fuzz = 16; /* seems ok */
gp               1828 sound/pci/azt3328.c 	gp->cooked_read = snd_azf3328_gameport_cooked_read;
gp               2851 sound/pci/cmipci.c 	struct gameport *gp;
gp               2875 sound/pci/cmipci.c 	cm->gameport = gp = gameport_allocate_port();
gp               2876 sound/pci/cmipci.c 	if (!gp) {
gp               2881 sound/pci/cmipci.c 	gameport_set_name(gp, "C-Media Gameport");
gp               2882 sound/pci/cmipci.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(cm->pci));
gp               2883 sound/pci/cmipci.c 	gameport_set_dev_parent(gp, &cm->pci->dev);
gp               2884 sound/pci/cmipci.c 	gp->io = io_port;
gp               2885 sound/pci/cmipci.c 	gameport_set_port_data(gp, r);
gp               1246 sound/pci/cs4281.c 	struct gameport *gp;
gp               1248 sound/pci/cs4281.c 	chip->gameport = gp = gameport_allocate_port();
gp               1249 sound/pci/cs4281.c 	if (!gp) {
gp               1255 sound/pci/cs4281.c 	gameport_set_name(gp, "CS4281 Gameport");
gp               1256 sound/pci/cs4281.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               1257 sound/pci/cs4281.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               1258 sound/pci/cs4281.c 	gp->open = snd_cs4281_gameport_open;
gp               1259 sound/pci/cs4281.c 	gp->read = snd_cs4281_gameport_read;
gp               1260 sound/pci/cs4281.c 	gp->trigger = snd_cs4281_gameport_trigger;
gp               1261 sound/pci/cs4281.c 	gp->cooked_read = snd_cs4281_gameport_cooked_read;
gp               1262 sound/pci/cs4281.c 	gameport_set_port_data(gp, chip);
gp               1267 sound/pci/cs4281.c 	gameport_register_port(gp);
gp               2768 sound/pci/cs46xx/cs46xx_lib.c 	struct gameport *gp;
gp               2770 sound/pci/cs46xx/cs46xx_lib.c 	chip->gameport = gp = gameport_allocate_port();
gp               2771 sound/pci/cs46xx/cs46xx_lib.c 	if (!gp) {
gp               2777 sound/pci/cs46xx/cs46xx_lib.c 	gameport_set_name(gp, "CS46xx Gameport");
gp               2778 sound/pci/cs46xx/cs46xx_lib.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               2779 sound/pci/cs46xx/cs46xx_lib.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               2780 sound/pci/cs46xx/cs46xx_lib.c 	gameport_set_port_data(gp, chip);
gp               2782 sound/pci/cs46xx/cs46xx_lib.c 	gp->open = snd_cs46xx_gameport_open;
gp               2783 sound/pci/cs46xx/cs46xx_lib.c 	gp->read = snd_cs46xx_gameport_read;
gp               2784 sound/pci/cs46xx/cs46xx_lib.c 	gp->trigger = snd_cs46xx_gameport_trigger;
gp               2785 sound/pci/cs46xx/cs46xx_lib.c 	gp->cooked_read = snd_cs46xx_gameport_cooked_read;
gp               2790 sound/pci/cs46xx/cs46xx_lib.c 	gameport_register_port(gp);
gp               1794 sound/pci/ens1370.c 	struct gameport *gp;
gp               1824 sound/pci/ens1370.c 	ensoniq->gameport = gp = gameport_allocate_port();
gp               1825 sound/pci/ens1370.c 	if (!gp) {
gp               1832 sound/pci/ens1370.c 	gameport_set_name(gp, "ES137x");
gp               1833 sound/pci/ens1370.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(ensoniq->pci));
gp               1834 sound/pci/ens1370.c 	gameport_set_dev_parent(gp, &ensoniq->pci->dev);
gp               1835 sound/pci/ens1370.c 	gp->io = io_port;
gp               1514 sound/pci/es1938.c 	struct gameport *gp;
gp               1516 sound/pci/es1938.c 	chip->gameport = gp = gameport_allocate_port();
gp               1517 sound/pci/es1938.c 	if (!gp) {
gp               1523 sound/pci/es1938.c 	gameport_set_name(gp, "ES1938");
gp               1524 sound/pci/es1938.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               1525 sound/pci/es1938.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               1526 sound/pci/es1938.c 	gp->io = chip->game_port;
gp               1528 sound/pci/es1938.c 	gameport_register_port(gp);
gp               2438 sound/pci/es1968.c 	struct gameport *gp;
gp               2449 sound/pci/es1968.c 	chip->gameport = gp = gameport_allocate_port();
gp               2450 sound/pci/es1968.c 	if (!gp) {
gp               2460 sound/pci/es1968.c 	gameport_set_name(gp, "ES1968 Gameport");
gp               2461 sound/pci/es1968.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               2462 sound/pci/es1968.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               2463 sound/pci/es1968.c 	gp->io = JOYSTICK_ADDR;
gp               2464 sound/pci/es1968.c 	gameport_set_port_data(gp, r);
gp               2466 sound/pci/es1968.c 	gameport_register_port(gp);
gp               1174 sound/pci/sonicvibes.c 	struct gameport *gp;
gp               1177 sound/pci/sonicvibes.c 	sonic->gameport = gp = gameport_allocate_port();
gp               1178 sound/pci/sonicvibes.c 	if (!gp) {
gp               1184 sound/pci/sonicvibes.c 	gameport_set_name(gp, "SonicVibes Gameport");
gp               1185 sound/pci/sonicvibes.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(sonic->pci));
gp               1186 sound/pci/sonicvibes.c 	gameport_set_dev_parent(gp, &sonic->pci->dev);
gp               1187 sound/pci/sonicvibes.c 	gp->io = sonic->game_port;
gp               1189 sound/pci/sonicvibes.c 	gameport_register_port(gp);
gp               3169 sound/pci/trident/trident_main.c 	struct gameport *gp;
gp               3171 sound/pci/trident/trident_main.c 	chip->gameport = gp = gameport_allocate_port();
gp               3172 sound/pci/trident/trident_main.c 	if (!gp) {
gp               3178 sound/pci/trident/trident_main.c 	gameport_set_name(gp, "Trident 4DWave");
gp               3179 sound/pci/trident/trident_main.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               3180 sound/pci/trident/trident_main.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               3182 sound/pci/trident/trident_main.c 	gameport_set_port_data(gp, chip);
gp               3183 sound/pci/trident/trident_main.c 	gp->fuzz = 64;
gp               3184 sound/pci/trident/trident_main.c 	gp->read = snd_trident_gameport_read;
gp               3185 sound/pci/trident/trident_main.c 	gp->trigger = snd_trident_gameport_trigger;
gp               3186 sound/pci/trident/trident_main.c 	gp->cooked_read = snd_trident_gameport_cooked_read;
gp               3187 sound/pci/trident/trident_main.c 	gp->open = snd_trident_gameport_open;
gp               3189 sound/pci/trident/trident_main.c 	gameport_register_port(gp);
gp               1923 sound/pci/via82xx.c 	struct gameport *gp;
gp               1936 sound/pci/via82xx.c 	chip->gameport = gp = gameport_allocate_port();
gp               1937 sound/pci/via82xx.c 	if (!gp) {
gp               1944 sound/pci/via82xx.c 	gameport_set_name(gp, "VIA686 Gameport");
gp               1945 sound/pci/via82xx.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp               1946 sound/pci/via82xx.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp               1947 sound/pci/via82xx.c 	gp->io = JOYSTICK_ADDR;
gp               1948 sound/pci/via82xx.c 	gameport_set_port_data(gp, r);
gp                 70 sound/pci/ymfpci/ymfpci.c 	struct gameport *gp;
gp                117 sound/pci/ymfpci/ymfpci.c 	chip->gameport = gp = gameport_allocate_port();
gp                118 sound/pci/ymfpci/ymfpci.c 	if (!gp) {
gp                126 sound/pci/ymfpci/ymfpci.c 	gameport_set_name(gp, "Yamaha YMF Gameport");
gp                127 sound/pci/ymfpci/ymfpci.c 	gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
gp                128 sound/pci/ymfpci/ymfpci.c 	gameport_set_dev_parent(gp, &chip->pci->dev);
gp                129 sound/pci/ymfpci/ymfpci.c 	gp->io = io_port;
gp                130 sound/pci/ymfpci/ymfpci.c 	gameport_set_port_data(gp, r);
gp                158 sound/ppc/tumbler.c #define do_gpio_write(gp, val) \
gp                159 sound/ppc/tumbler.c 	pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, (gp)->addr, val)
gp                160 sound/ppc/tumbler.c #define do_gpio_read(gp) \
gp                161 sound/ppc/tumbler.c 	pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, (gp)->addr, 0)
gp                162 sound/ppc/tumbler.c #define tumbler_gpio_free(gp) /* NOP */
gp                164 sound/ppc/tumbler.c static void write_audio_gpio(struct pmac_gpio *gp, int active)
gp                166 sound/ppc/tumbler.c 	if (! gp->addr)
gp                168 sound/ppc/tumbler.c 	active = active ? gp->active_val : gp->inactive_val;
gp                169 sound/ppc/tumbler.c 	do_gpio_write(gp, active);
gp                170 sound/ppc/tumbler.c 	DBG("(I) gpio %x write %d\n", gp->addr, active);
gp                173 sound/ppc/tumbler.c static int check_audio_gpio(struct pmac_gpio *gp)
gp                177 sound/ppc/tumbler.c 	if (! gp->addr)
gp                180 sound/ppc/tumbler.c 	ret = do_gpio_read(gp);
gp                182 sound/ppc/tumbler.c 	return (ret & 0x1) == (gp->active_val & 0x1);
gp                185 sound/ppc/tumbler.c static int read_audio_gpio(struct pmac_gpio *gp)
gp                188 sound/ppc/tumbler.c 	if (! gp->addr)
gp                190 sound/ppc/tumbler.c 	ret = do_gpio_read(gp);
gp                192 sound/ppc/tumbler.c 	return ret == gp->active_state;
gp                718 sound/ppc/tumbler.c 	struct pmac_gpio *gp;
gp                723 sound/ppc/tumbler.c 		gp = &mix->hp_mute;	break;
gp                725 sound/ppc/tumbler.c 		gp = &mix->amp_mute;	break;
gp                727 sound/ppc/tumbler.c 		gp = &mix->line_mute;	break;
gp                729 sound/ppc/tumbler.c 		gp = NULL;
gp                731 sound/ppc/tumbler.c 	if (gp == NULL)
gp                733 sound/ppc/tumbler.c 	ucontrol->value.integer.value[0] = !check_audio_gpio(gp);
gp                742 sound/ppc/tumbler.c 	struct pmac_gpio *gp;
gp                752 sound/ppc/tumbler.c 		gp = &mix->hp_mute;	break;
gp                754 sound/ppc/tumbler.c 		gp = &mix->amp_mute;	break;
gp                756 sound/ppc/tumbler.c 		gp = &mix->line_mute;	break;
gp                758 sound/ppc/tumbler.c 		gp = NULL;
gp                760 sound/ppc/tumbler.c 	if (gp == NULL)
gp                762 sound/ppc/tumbler.c 	val = ! check_audio_gpio(gp);
gp                764 sound/ppc/tumbler.c 		write_audio_gpio(gp, ! ucontrol->value.integer.value[0]);
gp                943 sound/ppc/tumbler.c static void check_mute(struct snd_pmac *chip, struct pmac_gpio *gp, int val, int do_notify,
gp                946 sound/ppc/tumbler.c 	if (check_audio_gpio(gp) != val) {
gp                947 sound/ppc/tumbler.c 		write_audio_gpio(gp, val);
gp               1084 sound/ppc/tumbler.c 				struct pmac_gpio *gp, int is_compatible)
gp               1116 sound/ppc/tumbler.c 	gp->addr = addr & 0x0000ffff;
gp               1120 sound/ppc/tumbler.c 		gp->active_state = *base;
gp               1121 sound/ppc/tumbler.c 		gp->active_val = (*base) ? 0x5 : 0x4;
gp               1122 sound/ppc/tumbler.c 		gp->inactive_val = (*base) ? 0x4 : 0x5;
gp               1125 sound/ppc/tumbler.c 		gp->active_state = IS_G4DA
gp               1127 sound/ppc/tumbler.c 		gp->active_val = 0x4;
gp               1128 sound/ppc/tumbler.c 		gp->inactive_val = 0x5;
gp               1137 sound/ppc/tumbler.c 				gp->active_val = 0xd;
gp               1138 sound/ppc/tumbler.c 				gp->inactive_val = 0xc;
gp               1141 sound/ppc/tumbler.c 				gp->active_val = 0x5;
gp               1142 sound/ppc/tumbler.c 				gp->inactive_val = 0x4;
gp               1148 sound/ppc/tumbler.c 	    device, gp->addr, gp->active_state);
gp                 34 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 	struct tcpbpf_globals g, *gp;
gp                 36 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 	gp = bpf_map_lookup_elem(&global_map, &key);
gp                 37 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 	if (gp == NULL) {
gp                 44 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 		g = *gp;
gp                 79 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			struct tcpbpf_globals g, *gp;
gp                 81 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			gp = bpf_map_lookup_elem(&global_map, &key);
gp                 82 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			if (!gp)
gp                 84 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			g = *gp;
gp                119 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			struct tcpbpf_globals g, *gp;
gp                121 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			gp = bpf_map_lookup_elem(&global_map, &key);
gp                122 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			if (!gp)
gp                124 tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c 			g = *gp;
gp                 65 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c 			struct tcpnotify_globals g, *gp;
gp                 76 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c 			gp = bpf_map_lookup_elem(&global_map, &key);
gp                 77 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c 			if (!gp)
gp                 79 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c 			g = *gp;