r                 378 arch/alpha/include/asm/bitops.h 	unsigned long t, a, r;
r                 383 arch/alpha/include/asm/bitops.h 	r = a*8 + __flsm1_tab[t] + (x != 0);
r                 385 arch/alpha/include/asm/bitops.h 	return r;
r                 147 arch/alpha/include/asm/core_lca.h #define LCA_GET_PRIMARY(r)  ((r) & LCA_PMR_PDIV)
r                 148 arch/alpha/include/asm/core_lca.h #define LCA_GET_OVERRIDE(r) (((r) >> 3) & LCA_PMR_PDIV)
r                 149 arch/alpha/include/asm/core_lca.h #define LCA_SET_PRIMARY_CLOCK(r, c) ((r) = (((r) & LCA_PMR_PRIMARY_MASK)|(c)))
r                  25 arch/alpha/kernel/err_impl.h #define SUBPACKET_ANNOTATION(c, t, r, d, a) {NULL, (c), (t), (r), (d), (a)}
r                1145 arch/alpha/kernel/osf_sys.c 	struct rusage32 r;
r                1152 arch/alpha/kernel/osf_sys.c 	memset(&r, 0, sizeof(r));
r                1158 arch/alpha/kernel/osf_sys.c 		jiffies_to_timeval32(utime_jiffies, &r.ru_utime);
r                1159 arch/alpha/kernel/osf_sys.c 		jiffies_to_timeval32(stime_jiffies, &r.ru_stime);
r                1160 arch/alpha/kernel/osf_sys.c 		r.ru_minflt = current->min_flt;
r                1161 arch/alpha/kernel/osf_sys.c 		r.ru_majflt = current->maj_flt;
r                1166 arch/alpha/kernel/osf_sys.c 		jiffies_to_timeval32(utime_jiffies, &r.ru_utime);
r                1167 arch/alpha/kernel/osf_sys.c 		jiffies_to_timeval32(stime_jiffies, &r.ru_stime);
r                1168 arch/alpha/kernel/osf_sys.c 		r.ru_minflt = current->signal->cmin_flt;
r                1169 arch/alpha/kernel/osf_sys.c 		r.ru_majflt = current->signal->cmaj_flt;
r                1173 arch/alpha/kernel/osf_sys.c 	return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0;
r                1179 arch/alpha/kernel/osf_sys.c 	struct rusage r;
r                1180 arch/alpha/kernel/osf_sys.c 	long err = kernel_wait4(pid, ustatus, options, &r);
r                1185 arch/alpha/kernel/osf_sys.c 	if (put_tv_to_tv32(&ur->ru_utime, &r.ru_utime))
r                1187 arch/alpha/kernel/osf_sys.c 	if (put_tv_to_tv32(&ur->ru_stime, &r.ru_stime))
r                1189 arch/alpha/kernel/osf_sys.c 	if (copy_to_user(&ur->ru_maxrss, &r.ru_maxrss,
r                 294 arch/alpha/kernel/pci.c 			struct resource *r = &dev->resource[i];
r                 296 arch/alpha/kernel/pci.c 			if (r->parent || !r->start || !r->flags)
r                 299 arch/alpha/kernel/pci.c 			    (r->flags & IORESOURCE_PCI_FIXED)) {
r                 433 arch/alpha/kernel/traps.c #define una_reg(r)  (_regs[(r) >= 16 && (r) <= 18 ? (r)+19 : (r)])
r                  21 arch/alpha/math-emu/sfp-util.h #define udiv_qrnnd(q, r, n1, n0, d)				\
r                  24 arch/alpha/math-emu/sfp-util.h     (r) = __r;							\
r                  79 arch/alpha/mm/fault.c #define dpf_reg(r)							\
r                  80 arch/alpha/mm/fault.c 	(((unsigned long *)regs)[(r) <= 8 ? (r) : (r) <= 15 ? (r)-16 :	\
r                  81 arch/alpha/mm/fault.c 				 (r) <= 18 ? (r)+10 : (r)-10])
r                 280 arch/arc/include/asm/bitops.h 	int r = 32;
r                 286 arch/arc/include/asm/bitops.h 		r -= 16;
r                 290 arch/arc/include/asm/bitops.h 		r -= 8;
r                 294 arch/arc/include/asm/bitops.h 		r -= 4;
r                 298 arch/arc/include/asm/bitops.h 		r -= 2;
r                 302 arch/arc/include/asm/bitops.h 		r -= 1;
r                 304 arch/arc/include/asm/bitops.h 	return r;
r                  27 arch/arc/include/asm/checksum.h 	unsigned r = s << 16 | s >> 16;	/* ror */
r                  29 arch/arc/include/asm/checksum.h 	s -= r;
r                  41 arch/arc/include/asm/perf_event.h 	unsigned int m:8, c:8, r:5, i:1, s:2, v:8;
r                  43 arch/arc/include/asm/perf_event.h 	unsigned int v:8, s:2, i:1, r:5, c:8, m:8;
r                  49 arch/arc/include/asm/perf_event.h 	unsigned int c:16, r:8, v:8;
r                  51 arch/arc/include/asm/perf_event.h 	unsigned int v:8, r:8, c:16;
r                 203 arch/arc/kernel/troubleshoot.c #define STS_BIT(r, bit)	r->status32 & STATUS_##bit##_MASK ? #bit" " : ""
r                  62 arch/arc/kernel/unwind.c #define REG_INVALID(r) (reg_info[r].width == 0)
r                 901 arch/arc/kernel/unwind.c #define FRAME_REG(r, t) (((t *)frame)[reg_info[r].offs])
r                 561 arch/arc/mm/cache.c 	const int r = ARC_REG_DC_CTRL;
r                 564 arch/arc/mm/cache.c 	write_aux_reg(r, read_aux_reg(r) | DC_CTRL_DIS);
r                 569 arch/arc/mm/cache.c 	const int r = ARC_REG_DC_CTRL;
r                 571 arch/arc/mm/cache.c 	write_aux_reg(r, read_aux_reg(r) & ~DC_CTRL_DIS);
r                 783 arch/arc/mm/cache.c 	unsigned int ctrl, r = ARC_REG_SLC_CTRL;
r                 785 arch/arc/mm/cache.c 	ctrl = read_aux_reg(r);
r                 792 arch/arc/mm/cache.c 	write_aux_reg(r, ctrl);
r                 800 arch/arc/mm/cache.c 	read_aux_reg(r);
r                 803 arch/arc/mm/cache.c 	while (read_aux_reg(r) & SLC_CTRL_BUSY);
r                 808 arch/arc/mm/cache.c 	const int r = ARC_REG_SLC_CTRL;
r                 811 arch/arc/mm/cache.c 	write_aux_reg(r, read_aux_reg(r) | SLC_CTRL_DIS);
r                 816 arch/arc/mm/cache.c 	const int r = ARC_REG_SLC_CTRL;
r                 818 arch/arc/mm/cache.c 	write_aux_reg(r, read_aux_reg(r) & ~SLC_CTRL_DIS);
r                 170 arch/arm/common/locomo.c 	unsigned int r;
r                 171 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_ICR);
r                 172 arch/arm/common/locomo.c 	r &= ~(0x0010 << (d->irq - lchip->irq_base));
r                 173 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_ICR);
r                 179 arch/arm/common/locomo.c 	unsigned int r;
r                 180 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_ICR);
r                 181 arch/arm/common/locomo.c 	r |= (0x0010 << (d->irq - lchip->irq_base));
r                 182 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_ICR);
r                 321 arch/arm/common/locomo.c 	unsigned long r;
r                 340 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_KEYBOARD + LOCOMO_KIC);
r                 341 arch/arm/common/locomo.c 	r &= 0xFEFF;
r                 342 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KIC);
r                 372 arch/arm/common/locomo.c 	unsigned long r;
r                 421 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_ASD);
r                 422 arch/arm/common/locomo.c 	r |= 0x8000;
r                 423 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_ASD);
r                 426 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_HSD);
r                 427 arch/arm/common/locomo.c 	r |= 0x8000;
r                 428 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_HSD);
r                 436 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_TADC);
r                 437 arch/arm/common/locomo.c 	r |= 0x10;
r                 438 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_TADC);
r                 442 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_DAC);
r                 443 arch/arm/common/locomo.c 	r |= LOCOMO_DAC_SCLOEB | LOCOMO_DAC_SDAOEB;
r                 444 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_DAC);
r                 446 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_VER);
r                 447 arch/arm/common/locomo.c 	printk(KERN_INFO "LoCoMo Chip: %lu%lu\n", (r >> 8), (r & 0xff));
r                 541 arch/arm/common/locomo.c 	unsigned int r;
r                 548 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_GPD);
r                 550 arch/arm/common/locomo.c 		r |= bits;
r                 552 arch/arm/common/locomo.c 		r &= ~bits;
r                 553 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_GPD);
r                 555 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_GPE);
r                 557 arch/arm/common/locomo.c 		r |= bits;
r                 559 arch/arm/common/locomo.c 		r &= ~bits;
r                 560 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_GPE);
r                 606 arch/arm/common/locomo.c 	unsigned int r;
r                 613 arch/arm/common/locomo.c 	r = locomo_readl(lchip->base + LOCOMO_GPO);
r                 615 arch/arm/common/locomo.c 		r |= bits;
r                 617 arch/arm/common/locomo.c 		r &= ~bits;
r                 618 arch/arm/common/locomo.c 	locomo_writel(r, lchip->base + LOCOMO_GPO);
r                 626 arch/arm/common/locomo.c 	unsigned int r;
r                 628 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 629 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 630 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 633 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 634 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 635 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 640 arch/arm/common/locomo.c 		r = locomo_readl(mapbase + LOCOMO_DAC);
r                 641 arch/arm/common/locomo.c 		r |=  LOCOMO_DAC_SDAOEB;
r                 642 arch/arm/common/locomo.c 		locomo_writel(r, mapbase + LOCOMO_DAC);
r                 645 arch/arm/common/locomo.c 		r = locomo_readl(mapbase + LOCOMO_DAC);
r                 646 arch/arm/common/locomo.c 		r &=  ~(LOCOMO_DAC_SDAOEB);
r                 647 arch/arm/common/locomo.c 		locomo_writel(r, mapbase + LOCOMO_DAC);
r                 652 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 653 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB;
r                 654 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 664 arch/arm/common/locomo.c 	unsigned int r;
r                 672 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 673 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB | LOCOMO_DAC_SDAOEB;
r                 674 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 677 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 678 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SDAOEB);
r                 679 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 690 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 691 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 692 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 695 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 696 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SDAOEB);
r                 697 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 699 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 700 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB;
r                 701 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 718 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 719 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 720 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 723 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 724 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SDAOEB);
r                 725 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 727 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 728 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB;
r                 729 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 743 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 744 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 745 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 748 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 749 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SDAOEB);
r                 750 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 752 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 753 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB;
r                 754 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 763 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 764 arch/arm/common/locomo.c 	r &=  ~(LOCOMO_DAC_SCLOEB);
r                 765 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 768 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 769 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB;
r                 770 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 773 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 774 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SDAOEB;
r                 775 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 779 arch/arm/common/locomo.c 	r = locomo_readl(mapbase + LOCOMO_DAC);
r                 780 arch/arm/common/locomo.c 	r |=  LOCOMO_DAC_SCLOEB | LOCOMO_DAC_SDAOEB;
r                 781 arch/arm/common/locomo.c 	locomo_writel(r, mapbase + LOCOMO_DAC);
r                 643 arch/arm/common/sa1111.c 	unsigned long flags, r;
r                 652 arch/arm/common/sa1111.c 	r = readl_relaxed(sachip->base + SA1111_SKCR);
r                 653 arch/arm/common/sa1111.c 	r &= ~SKCR_VCO_OFF;
r                 654 arch/arm/common/sa1111.c 	writel_relaxed(r, sachip->base + SA1111_SKCR);
r                 655 arch/arm/common/sa1111.c 	r |= SKCR_PLL_BYPASS | SKCR_OE_EN;
r                 656 arch/arm/common/sa1111.c 	writel_relaxed(r, sachip->base + SA1111_SKCR);
r                 667 arch/arm/common/sa1111.c 	r |= SKCR_RCLKEN | SKCR_RDYEN;
r                 668 arch/arm/common/sa1111.c 	writel_relaxed(r, sachip->base + SA1111_SKCR);
r                 174 arch/arm/include/asm/arch_gicv3.h #define read_gicreg(r)                 read_##r()
r                 175 arch/arm/include/asm/arch_gicv3.h #define write_gicreg(v, r)             write_##r(v)
r                  58 arch/arm/include/asm/cp15.h #define __read_sysreg(r, w, c, t) ({				\
r                  60 arch/arm/include/asm/cp15.h 	asm volatile(r " " c : "=r" (__val));			\
r                  65 arch/arm/include/asm/cp15.h #define __write_sysreg(v, r, w, c, t)	asm volatile(w " " c : : "r" ((t)(v)))
r                 224 arch/arm/include/asm/kvm_host.h #define vcpu_cp15(v,r)	(v)->arch.ctxt.cp15[r]
r                  20 arch/arm/include/asm/kvm_hyp.h #define write_special(v, r)					\
r                  21 arch/arm/include/asm/kvm_hyp.h 	asm volatile("msr " __stringify(r) ", %0" : : "r" (v))
r                  22 arch/arm/include/asm/kvm_hyp.h #define read_special(r) ({					\
r                  24 arch/arm/include/asm/kvm_hyp.h 	asm volatile("mrs %0, " __stringify(r) : "=r" (__val));	\
r                  85 arch/arm/include/asm/kvm_hyp.h #define read_sysreg_el0(r)		read_sysreg(r##_EL0)
r                  86 arch/arm/include/asm/kvm_hyp.h #define write_sysreg_el0(v, r)		write_sysreg(v, r##_EL0)
r                  25 arch/arm/include/asm/ptrace.h #define to_svc_pt_regs(r) container_of(r, struct svc_pt_regs, regs)
r                  14 arch/arm/include/asm/tls.h 	mrc	p15, 0, \tmp2, c13, c0, 2	@ get the user r/w register
r                  16 arch/arm/include/asm/tls.h 	mcr	p15, 0, \tpuser, c13, c0, 2	@ and the user r/w register
r                  26 arch/arm/include/asm/tls.h 	mrcne	p15, 0, \tmp2, c13, c0, 2	@ get the user r/w register
r                  28 arch/arm/include/asm/tls.h 	mcrne	p15, 0, \tpuser, c13, c0, 2	@ set user r/w register
r                 214 arch/arm/include/uapi/asm/kvm.h #define KVM_REG_ARM_FW_REG(r)		(KVM_REG_ARM | KVM_REG_SIZE_U64 | \
r                 215 arch/arm/include/uapi/asm/kvm.h 					 KVM_REG_ARM_FW | ((r) & 0xffff))
r                 164 arch/arm/kernel/bios32.c 	struct resource *r;
r                 171 arch/arm/kernel/bios32.c 		r = dev->resource + i;
r                 172 arch/arm/kernel/bios32.c 		if ((r->start & ~0x80) == 0x374) {
r                 173 arch/arm/kernel/bios32.c 			r->start |= 2;
r                 174 arch/arm/kernel/bios32.c 			r->end = r->start;
r                  65 arch/arm/kernel/ptrace.c #define REG_OFFSET_NAME(r) \
r                  66 arch/arm/kernel/ptrace.c 	{.name = #r, .offset = offsetof(struct pt_regs, ARM_##r)}
r                 442 arch/arm/kernel/sys_oabi-compat.c 	unsigned long r = -EFAULT, a[6];
r                 447 arch/arm/kernel/sys_oabi-compat.c 			r = sys_oabi_bind(a[0], (struct sockaddr __user *)a[1], a[2]);
r                 451 arch/arm/kernel/sys_oabi-compat.c 			r = sys_oabi_connect(a[0], (struct sockaddr __user *)a[1], a[2]);
r                 455 arch/arm/kernel/sys_oabi-compat.c 			r = sys_oabi_sendto(a[0], (void __user *)a[1], a[2], a[3],
r                 460 arch/arm/kernel/sys_oabi-compat.c 			r = sys_oabi_sendmsg(a[0], (struct user_msghdr __user *)a[1], a[2]);
r                 463 arch/arm/kernel/sys_oabi-compat.c 		r = sys_socketcall(call, args);
r                 466 arch/arm/kernel/sys_oabi-compat.c 	return r;
r                  63 arch/arm/kvm/coproc.c 				       const struct coproc_reg *r,
r                  66 arch/arm/kvm/coproc.c 	vcpu_cp15(vcpu, r->reg) = val & 0xffffffff;
r                  67 arch/arm/kvm/coproc.c 	vcpu_cp15(vcpu, r->reg + 1) = val >> 32;
r                  71 arch/arm/kvm/coproc.c 				      const struct coproc_reg *r)
r                  75 arch/arm/kvm/coproc.c 	val = vcpu_cp15(vcpu, r->reg + 1);
r                  77 arch/arm/kvm/coproc.c 	val = val | vcpu_cp15(vcpu, r->reg);
r                 103 arch/arm/kvm/coproc.c static void reset_mpidr(struct kvm_vcpu *vcpu, const struct coproc_reg *r)
r                 118 arch/arm/kvm/coproc.c 			 const struct coproc_reg *r)
r                 130 arch/arm/kvm/coproc.c 			const struct coproc_reg *r)
r                 140 arch/arm/kvm/coproc.c 			  const struct coproc_reg *r)
r                 149 arch/arm/kvm/coproc.c static void reset_l2ctlr(struct kvm_vcpu *vcpu, const struct coproc_reg *r)
r                 165 arch/arm/kvm/coproc.c static void reset_actlr(struct kvm_vcpu *vcpu, const struct coproc_reg *r)
r                 186 arch/arm/kvm/coproc.c 			   const struct coproc_reg *r)
r                 200 arch/arm/kvm/coproc.c 			const struct coproc_reg *r)
r                 218 arch/arm/kvm/coproc.c 		   const struct coproc_reg *r)
r                 224 arch/arm/kvm/coproc.c 	vcpu_cp15(vcpu, r->reg) = *vcpu_reg(vcpu, p->Rt1);
r                 226 arch/arm/kvm/coproc.c 		vcpu_cp15(vcpu, r->reg + 1) = *vcpu_reg(vcpu, p->Rt2);
r                 234 arch/arm/kvm/coproc.c 			   const struct coproc_reg *r)
r                 270 arch/arm/kvm/coproc.c 			   const struct coproc_reg *r)
r                 282 arch/arm/kvm/coproc.c 			     const struct coproc_reg *r)
r                 301 arch/arm/kvm/coproc.c 			    const struct coproc_reg *r)
r                 320 arch/arm/kvm/coproc.c 			     const struct coproc_reg *r)
r                 350 arch/arm/kvm/coproc.c 		    const struct coproc_reg *r)
r                 558 arch/arm/kvm/coproc.c 	const struct coproc_reg *r = elt;
r                 560 arch/arm/kvm/coproc.c 	return pval - reg_to_match_value(r);
r                 576 arch/arm/kvm/coproc.c 	const struct coproc_reg *table, *r;
r                 584 arch/arm/kvm/coproc.c 	r = find_reg(params, table, num);
r                 585 arch/arm/kvm/coproc.c 	if (!r)
r                 586 arch/arm/kvm/coproc.c 		r = find_reg(params, cp15_regs, ARRAY_SIZE(cp15_regs));
r                 588 arch/arm/kvm/coproc.c 	if (likely(r)) {
r                 590 arch/arm/kvm/coproc.c 		BUG_ON(!r->access);
r                 592 arch/arm/kvm/coproc.c 		if (likely(r->access(vcpu, params, r))) {
r                 770 arch/arm/kvm/coproc.c 	const struct coproc_reg *table, *r;
r                 781 arch/arm/kvm/coproc.c 	r = find_reg(&params, table, num);
r                 782 arch/arm/kvm/coproc.c 	if (!r)
r                 783 arch/arm/kvm/coproc.c 		r = find_reg(&params, cp15_regs, ARRAY_SIZE(cp15_regs));
r                 786 arch/arm/kvm/coproc.c 	if (r && !r->reg)
r                 787 arch/arm/kvm/coproc.c 		r = NULL;
r                 789 arch/arm/kvm/coproc.c 	return r;
r                 802 arch/arm/kvm/coproc.c 			       const struct coproc_reg *r)		\
r                 810 arch/arm/kvm/coproc.c 		((struct coproc_reg *)r)->val = val;			\
r                 888 arch/arm/kvm/coproc.c 	const struct coproc_reg *r;
r                 894 arch/arm/kvm/coproc.c 	r = find_reg(&params, invariant_cp15, ARRAY_SIZE(invariant_cp15));
r                 895 arch/arm/kvm/coproc.c 	if (!r)
r                 900 arch/arm/kvm/coproc.c 		u32 val = r->val;
r                 904 arch/arm/kvm/coproc.c 		ret = reg_to_user(uaddr, &r->val, id);
r                 912 arch/arm/kvm/coproc.c 	const struct coproc_reg *r;
r                 918 arch/arm/kvm/coproc.c 	r = find_reg(&params, invariant_cp15, ARRAY_SIZE(invariant_cp15));
r                 919 arch/arm/kvm/coproc.c 	if (!r)
r                 936 arch/arm/kvm/coproc.c 	if (r->val != val)
r                1207 arch/arm/kvm/coproc.c 	const struct coproc_reg *r;
r                1217 arch/arm/kvm/coproc.c 	r = index_to_coproc_reg(vcpu, reg->id);
r                1218 arch/arm/kvm/coproc.c 	if (!r)
r                1225 arch/arm/kvm/coproc.c 		val = vcpu_cp15_reg64_get(vcpu, r);
r                1228 arch/arm/kvm/coproc.c 		ret = reg_to_user(uaddr, &vcpu_cp15(vcpu, r->reg), reg->id);
r                1236 arch/arm/kvm/coproc.c 	const struct coproc_reg *r;
r                1246 arch/arm/kvm/coproc.c 	r = index_to_coproc_reg(vcpu, reg->id);
r                1247 arch/arm/kvm/coproc.c 	if (!r)
r                1256 arch/arm/kvm/coproc.c 			vcpu_cp15_reg64_set(vcpu, r, val);
r                1258 arch/arm/kvm/coproc.c 		ret = reg_from_user(&vcpu_cp15(vcpu, r->reg), uaddr, reg->id);
r                  74 arch/arm/kvm/coproc.h 				 const struct coproc_reg *r)
r                  76 arch/arm/kvm/coproc.h 	BUG_ON(!r->reg);
r                  77 arch/arm/kvm/coproc.h 	BUG_ON(r->reg >= ARRAY_SIZE(vcpu->arch.ctxt.cp15));
r                  78 arch/arm/kvm/coproc.h 	vcpu_cp15(vcpu, r->reg) = 0xdecafbad;
r                  81 arch/arm/kvm/coproc.h static inline void reset_val(struct kvm_vcpu *vcpu, const struct coproc_reg *r)
r                  83 arch/arm/kvm/coproc.h 	BUG_ON(!r->reg);
r                  84 arch/arm/kvm/coproc.h 	BUG_ON(r->reg >= ARRAY_SIZE(vcpu->arch.ctxt.cp15));
r                  85 arch/arm/kvm/coproc.h 	vcpu_cp15(vcpu, r->reg) = r->val;
r                  89 arch/arm/kvm/coproc.h 				   const struct coproc_reg *r)
r                  91 arch/arm/kvm/coproc.h 	BUG_ON(!r->reg);
r                  92 arch/arm/kvm/coproc.h 	BUG_ON(r->reg + 1 >= ARRAY_SIZE(vcpu->arch.ctxt.cp15));
r                  94 arch/arm/kvm/coproc.h 	vcpu_cp15(vcpu, r->reg) = 0xdecafbad;
r                  95 arch/arm/kvm/coproc.h 	vcpu_cp15(vcpu, r->reg+1) = 0xd0c0ffee;
r                 128 arch/arm/kvm/coproc.h 		   const struct coproc_reg *r);
r                 405 arch/arm/mach-footbridge/netwinder-hw.c #define WRITE_RWA(r,v) do { outb((r), 0x279); udelay(10); outb((v), 0xa79); } while (0)
r                 416 arch/arm/mach-omap1/lcd_dma.c 	int r;
r                 432 arch/arm/mach-omap1/lcd_dma.c 	r = request_irq(INT_DMA_LCD, lcd_dma_irq_handler, 0,
r                 434 arch/arm/mach-omap1/lcd_dma.c 	if (r != 0)
r                 435 arch/arm/mach-omap1/lcd_dma.c 		pr_err("unable to request IRQ for LCD DMA (error %d)\n", r);
r                 437 arch/arm/mach-omap1/lcd_dma.c 	return r;
r                 291 arch/arm/mach-omap2/board-n8x0.c 	int r;
r                 299 arch/arm/mach-omap2/board-n8x0.c 		r = menelaus_set_mmc_opendrain(slot, 1);
r                 302 arch/arm/mach-omap2/board-n8x0.c 		r = menelaus_set_mmc_opendrain(slot, 0);
r                 307 arch/arm/mach-omap2/board-n8x0.c 	if (r != 0 && printk_ratelimit())
r                 310 arch/arm/mach-omap2/board-n8x0.c 	return r;
r                 351 arch/arm/mach-omap2/board-n8x0.c 	int r, bit, *openp;
r                 356 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_set_slot_sel(1);
r                 357 arch/arm/mach-omap2/board-n8x0.c 	if (r < 0)
r                 358 arch/arm/mach-omap2/board-n8x0.c 		return r;
r                 365 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_set_mmc_slot(2, 0, vs2sel, 1);
r                 366 arch/arm/mach-omap2/board-n8x0.c 	if (r < 0)
r                 367 arch/arm/mach-omap2/board-n8x0.c 		return r;
r                 372 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_set_mmc_slot(1, 1, 0, 1);
r                 373 arch/arm/mach-omap2/board-n8x0.c 	if (r < 0)
r                 374 arch/arm/mach-omap2/board-n8x0.c 		return r;
r                 375 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_set_mmc_slot(2, 1, vs2sel, 1);
r                 376 arch/arm/mach-omap2/board-n8x0.c 	if (r < 0)
r                 377 arch/arm/mach-omap2/board-n8x0.c 		return r;
r                 379 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_get_slot_pin_states();
r                 380 arch/arm/mach-omap2/board-n8x0.c 	if (r < 0)
r                 381 arch/arm/mach-omap2/board-n8x0.c 		return r;
r                 393 arch/arm/mach-omap2/board-n8x0.c 	if (r == 0xf || r == (0xf & ~bit))
r                 394 arch/arm/mach-omap2/board-n8x0.c 		r = ~r;
r                 396 arch/arm/mach-omap2/board-n8x0.c 	if (r & bit)
r                 401 arch/arm/mach-omap2/board-n8x0.c 	r = menelaus_register_mmc_callback(n8x0_mmc_callback, NULL);
r                 403 arch/arm/mach-omap2/board-n8x0.c 	return r;
r                 173 arch/arm/mach-omap2/display.c 	int r;
r                 183 arch/arm/mach-omap2/display.c 	r = platform_device_register(&omap_display_device);
r                 184 arch/arm/mach-omap2/display.c 	if (r < 0) {
r                 186 arch/arm/mach-omap2/display.c 		return r;
r                 190 arch/arm/mach-omap2/display.c 	r = omap_init_vrfb();
r                 191 arch/arm/mach-omap2/display.c 	if (r < 0) {
r                 193 arch/arm/mach-omap2/display.c 		return r;
r                 197 arch/arm/mach-omap2/display.c 	r = omap_init_fb();
r                 198 arch/arm/mach-omap2/display.c 	if (r < 0) {
r                 200 arch/arm/mach-omap2/display.c 		return r;
r                 204 arch/arm/mach-omap2/display.c 	r = omap_init_vout();
r                 205 arch/arm/mach-omap2/display.c 	if (r < 0) {
r                 207 arch/arm/mach-omap2/display.c 		return r;
r                 243 arch/arm/mach-omap2/display.c 	int r;
r                 265 arch/arm/mach-omap2/display.c 	r = of_platform_populate(node, NULL, NULL, &pdev->dev);
r                 266 arch/arm/mach-omap2/display.c 	if (r) {
r                 269 arch/arm/mach-omap2/display.c 		return r;
r                 380 arch/arm/mach-omap2/display.c 	int i, r;
r                 418 arch/arm/mach-omap2/display.c 	r = (c == MAX_MODULE_SOFTRESET_WAIT) ? -ETIMEDOUT : 0;
r                 420 arch/arm/mach-omap2/display.c 	return r;
r                  47 arch/arm/mach-omap2/omap_device.c 	struct clk *r;
r                  55 arch/arm/mach-omap2/omap_device.c 	r = clk_get_sys(dev_name(&od->pdev->dev), clk_alias);
r                  56 arch/arm/mach-omap2/omap_device.c 	if (!IS_ERR(r)) {
r                  59 arch/arm/mach-omap2/omap_device.c 		clk_put(r);
r                  63 arch/arm/mach-omap2/omap_device.c 	r = clk_get_sys(NULL, clk_name);
r                  65 arch/arm/mach-omap2/omap_device.c 	if (IS_ERR(r)) {
r                  70 arch/arm/mach-omap2/omap_device.c 		r = of_clk_get_from_provider(&clkspec);
r                  72 arch/arm/mach-omap2/omap_device.c 		rc = clk_register_clkdev(r, clk_alias,
r                 190 arch/arm/mach-omap2/omap_device.c 		struct resource *r = &pdev->resource[i];
r                 192 arch/arm/mach-omap2/omap_device.c 		if (r->name == NULL)
r                 193 arch/arm/mach-omap2/omap_device.c 			r->name = dev_name(&pdev->dev);
r                1819 arch/arm/mach-omap2/omap_hwmod.c 	int i, r;
r                1824 arch/arm/mach-omap2/omap_hwmod.c 		r = oh->class->reset(oh);
r                1831 arch/arm/mach-omap2/omap_hwmod.c 			r = _ocp_softreset(oh);
r                1832 arch/arm/mach-omap2/omap_hwmod.c 			if (r == -ENOENT)
r                1833 arch/arm/mach-omap2/omap_hwmod.c 				r = 0;
r                1849 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                1915 arch/arm/mach-omap2/omap_hwmod.c 	int r;
r                1957 arch/arm/mach-omap2/omap_hwmod.c 		r = clkdm_hwmod_enable(oh->clkdm, oh);
r                1958 arch/arm/mach-omap2/omap_hwmod.c 		if (r) {
r                1960 arch/arm/mach-omap2/omap_hwmod.c 			     oh->name, oh->clkdm->name, r);
r                1961 arch/arm/mach-omap2/omap_hwmod.c 			return r;
r                1974 arch/arm/mach-omap2/omap_hwmod.c 	r = (soc_ops.wait_target_ready) ? soc_ops.wait_target_ready(oh) :
r                1979 arch/arm/mach-omap2/omap_hwmod.c 	if (!r) {
r                1988 arch/arm/mach-omap2/omap_hwmod.c 		r = _enable_preprogram(oh);
r                1994 arch/arm/mach-omap2/omap_hwmod.c 		       oh->name, r);
r                2000 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                2393 arch/arm/mach-omap2/omap_hwmod.c 	int r, index;
r                2404 arch/arm/mach-omap2/omap_hwmod.c 	r = of_dev_hwmod_lookup(bus, oh, &index, &np);
r                2405 arch/arm/mach-omap2/omap_hwmod.c 	if (r)
r                2411 arch/arm/mach-omap2/omap_hwmod.c 	r = _init_mpu_rt_base(oh, NULL, index, np);
r                2412 arch/arm/mach-omap2/omap_hwmod.c 	if (r < 0) {
r                2418 arch/arm/mach-omap2/omap_hwmod.c 	r = _init_clocks(oh, np);
r                2419 arch/arm/mach-omap2/omap_hwmod.c 	if (r < 0) {
r                2483 arch/arm/mach-omap2/omap_hwmod.c 	int r = 0;
r                2492 arch/arm/mach-omap2/omap_hwmod.c 		r = _enable(oh);
r                2493 arch/arm/mach-omap2/omap_hwmod.c 		if (r) {
r                2501 arch/arm/mach-omap2/omap_hwmod.c 		r = _reset(oh);
r                2503 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                2596 arch/arm/mach-omap2/omap_hwmod.c 		int r;
r                2598 arch/arm/mach-omap2/omap_hwmod.c 		r = _enable(oh->parent_hwmod);
r                2599 arch/arm/mach-omap2/omap_hwmod.c 		WARN(r, "hwmod: %s: setup: failed to enable parent hwmod %s\n",
r                3080 arch/arm/mach-omap2/omap_hwmod.c 	int r, i;
r                3093 arch/arm/mach-omap2/omap_hwmod.c 		r = _register_link(ois[i]);
r                3094 arch/arm/mach-omap2/omap_hwmod.c 		WARN(r && r != -EEXIST,
r                3096 arch/arm/mach-omap2/omap_hwmod.c 		     ois[i]->master->name, ois[i]->slave->name, r);
r                3739 arch/arm/mach-omap2/omap_hwmod.c 	int r;
r                3746 arch/arm/mach-omap2/omap_hwmod.c 	r = _enable(oh);
r                3749 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                3761 arch/arm/mach-omap2/omap_hwmod.c 	int r;
r                3768 arch/arm/mach-omap2/omap_hwmod.c 	r = _idle(oh);
r                3771 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                3784 arch/arm/mach-omap2/omap_hwmod.c 	int r;
r                3791 arch/arm/mach-omap2/omap_hwmod.c 	r = _shutdown(oh);
r                3794 arch/arm/mach-omap2/omap_hwmod.c 	return r;
r                2837 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	int r;
r                2846 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	r = omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs);
r                2847 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	if (r < 0)
r                2848 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		return r;
r                2880 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	r = omap_hwmod_register_links(h);
r                2881 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	if (r < 0)
r                2882 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		return r;
r                2886 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		r = omap_hwmod_register_links(h_gp);
r                2887 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		if (r < 0)
r                2888 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 			return r;
r                2899 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		r = omap_hwmod_register_links(h_sham);
r                2900 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		if (r < 0)
r                2905 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		r = omap_hwmod_register_links(h_aes);
r                2906 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		if (r < 0)
r                2925 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		r = omap_hwmod_register_links(h);
r                2926 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		if (r < 0)
r                2927 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 			return r;
r                2940 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		r = omap_hwmod_register_links(h);
r                2941 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	if (r < 0)
r                2942 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 		return r;
r                2955 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs);
r                2957 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	return r;
r                2961 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c 	return r;
r                  57 arch/arm/mach-omap2/prm2xxx.c 	u32 r = 0;
r                  65 arch/arm/mach-omap2/prm2xxx.c 			r |= 1 << p->std_shift;
r                  69 arch/arm/mach-omap2/prm2xxx.c 	return r;
r                 449 arch/arm/mach-omap2/prm3xxx.c 	u32 r = 0;
r                 457 arch/arm/mach-omap2/prm3xxx.c 			r |= 1 << p->std_shift;
r                 461 arch/arm/mach-omap2/prm3xxx.c 	return r;
r                 373 arch/arm/mach-omap2/prm44xx.c 	u32 r = 0;
r                 387 arch/arm/mach-omap2/prm44xx.c 			r |= 1 << p->std_shift;
r                 391 arch/arm/mach-omap2/prm44xx.c 	return r;
r                  85 arch/arm/mach-omap2/sdrc.c int omap2_sdrc_get_params(unsigned long r,
r                  97 arch/arm/mach-omap2/sdrc.c 	while (sp0->rate && sp0->rate != r) {
r                  83 arch/arm/mach-omap2/sdrc.h int omap2_sdrc_get_params(unsigned long r,
r                 293 arch/arm/mach-omap2/timer.c 	int r = 0;
r                 356 arch/arm/mach-omap2/timer.c 	return r;
r                  85 arch/arm/mach-orion5x/common.h #define orion5x_setbits(r, mask)	writel(readl(r) | (mask), (r))
r                  86 arch/arm/mach-orion5x/common.h #define orion5x_clrbits(r, mask)	writel(readl(r) & ~(mask), (r))
r                 283 arch/arm/mach-pxa/pxa3xx-ulpi.c 	struct resource *r;
r                 297 arch/arm/mach-pxa/pxa3xx-ulpi.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 298 arch/arm/mach-pxa/pxa3xx-ulpi.c 	if (!r) {
r                 304 arch/arm/mach-pxa/pxa3xx-ulpi.c         r = request_mem_region(r->start, resource_size(r), pdev->name);
r                 305 arch/arm/mach-pxa/pxa3xx-ulpi.c         if (!r) {
r                 311 arch/arm/mach-pxa/pxa3xx-ulpi.c 	u2d->mmio_base = ioremap(r->start, resource_size(r));
r                 341 arch/arm/mach-pxa/pxa3xx-ulpi.c 	release_mem_region(r->start, resource_size(r));
r                 352 arch/arm/mach-pxa/pxa3xx-ulpi.c 	struct resource *r;
r                 364 arch/arm/mach-pxa/pxa3xx-ulpi.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 365 arch/arm/mach-pxa/pxa3xx-ulpi.c 	release_mem_region(r->start, resource_size(r));
r                  44 arch/arm/mach-rpc/include/mach/acornfb.h 	u_int r, best_r = 2, best_v = 2;
r                  47 arch/arm/mach-rpc/include/mach/acornfb.h 	for (r = 2; r <= 32; r++) {
r                  51 arch/arm/mach-rpc/include/mach/acornfb.h 		rr = 41667 * r;
r                  68 arch/arm/mach-rpc/include/mach/acornfb.h 			best_r = r - 1;
r                 176 arch/arm/mach-sa1100/collie.c 	unsigned int r;
r                 178 arch/arm/mach-sa1100/collie.c 	r = locomo_gpio_read_output(&collie_locomo_device.dev, LOCOMO_GPIO_CTS & LOCOMO_GPIO_DSR);
r                 179 arch/arm/mach-sa1100/collie.c 	if (r == -ENODEV)
r                 181 arch/arm/mach-sa1100/collie.c 	if (r & LOCOMO_GPIO_CTS)
r                 183 arch/arm/mach-sa1100/collie.c 	if (r & LOCOMO_GPIO_DSR)
r                  37 arch/arm/mach-shmobile/platsmp-apmu.c #define CPUNST(r, n)	(((r) >> (n * 4)) & 3)	/* CPUn Status Bit */
r                  84 arch/arm/mach-ux500/cpu-db8500.c 	struct resource r;
r                  88 arch/arm/mach-ux500/cpu-db8500.c 	of_address_to_resource(np, 0, &r);
r                  90 arch/arm/mach-ux500/cpu-db8500.c 	if (!r.start) {
r                  94 arch/arm/mach-ux500/cpu-db8500.c 	prcmu_early_init(r.start, r.end-r.start);
r                  95 arch/arm/mach-ux500/cpu-db8500.c 	ux500_pm_init(r.start, r.end-r.start);
r                 246 arch/arm/net/bpf_jit_32.c 	({ int r;					\
r                 249 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 0);			\
r                 251 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 2);			\
r                 253 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 4);			\
r                 255 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 6);			\
r                 257 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 8);			\
r                 259 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 10);			\
r                 261 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 12);			\
r                 263 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 14);			\
r                 265 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 16);			\
r                 267 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 18);			\
r                 269 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 20);			\
r                 271 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 22);			\
r                 273 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 24);			\
r                 275 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 26);			\
r                 277 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 28);			\
r                 279 arch/arm/net/bpf_jit_32.c 		r = imm12val(v, 30);			\
r                 281 arch/arm/net/bpf_jit_32.c 		r = -1;					\
r                 282 arch/arm/net/bpf_jit_32.c 	   r; })
r                  37 arch/arm/plat-orion/pcie.c #define  PCIE_CONF_REG(r)		((((r) & 0xf00) << 16) | ((r) & 0xfc))
r                 728 arch/arm/probes/kprobes/test-core.c 		int r = (h->type_regs.bits >> (DECODE_TYPE_BITS + i)) & 0xf;
r                 729 arch/arm/probes/kprobes/test-core.c 		regs |= coverage_register_lookup[r] << i;
r                 176 arch/arm/xen/enlighten.c 	struct sched_shutdown r = { .reason = reason };
r                 179 arch/arm/xen/enlighten.c 	rc = HYPERVISOR_sched_op(SCHEDOP_shutdown, &r);
r                  19 arch/arm64/include/asm/arch_gicv3.h #define read_gicreg(r)			read_sysreg_s(SYS_ ## r)
r                  20 arch/arm64/include/asm/arch_gicv3.h #define write_gicreg(v, r)		write_sysreg_s(v, SYS_ ## r)
r                 648 arch/arm64/include/asm/assembler.h 	\op\()r		\reg1, [sp, #(\num + 1) * 8]
r                 153 arch/arm64/include/asm/cputype.h #define MIDR_REV(m, v, r) MIDR_RANGE(m, v, r, v, r)
r                  71 arch/arm64/include/asm/fpsimdmacros.h 	.if (\nr) < 0 || (\nr) > 30
r                 386 arch/arm64/include/asm/kvm_host.h #define __vcpu_sys_reg(v,r)	((v)->arch.ctxt.sys_regs[(r)])
r                 397 arch/arm64/include/asm/kvm_host.h #define vcpu_cp14(v,r)		((v)->arch.ctxt.copro[(r) ^ CPx_BIAS])
r                 398 arch/arm64/include/asm/kvm_host.h #define vcpu_cp15(v,r)		((v)->arch.ctxt.copro[(r) ^ CPx_BIAS])
r                  18 arch/arm64/include/asm/kvm_hyp.h #define read_sysreg_elx(r,nvh,vh)					\
r                  21 arch/arm64/include/asm/kvm_hyp.h 		asm volatile(ALTERNATIVE(__mrs_s("%0", r##nvh),	\
r                  22 arch/arm64/include/asm/kvm_hyp.h 					 __mrs_s("%0", r##vh),		\
r                  28 arch/arm64/include/asm/kvm_hyp.h #define write_sysreg_elx(v,r,nvh,vh)					\
r                  31 arch/arm64/include/asm/kvm_hyp.h 		asm volatile(ALTERNATIVE(__msr_s(r##nvh, "%x0"),	\
r                  32 arch/arm64/include/asm/kvm_hyp.h 					 __msr_s(r##vh, "%x0"),		\
r                  43 arch/arm64/include/asm/kvm_hyp.h #define read_sysreg_el0(r)	read_sysreg_elx(r, _EL0, _EL02)
r                  44 arch/arm64/include/asm/kvm_hyp.h #define write_sysreg_el0(v,r)	write_sysreg_elx(v, r, _EL0, _EL02)
r                  45 arch/arm64/include/asm/kvm_hyp.h #define read_sysreg_el1(r)	read_sysreg_elx(r, _EL1, _EL12)
r                  46 arch/arm64/include/asm/kvm_hyp.h #define write_sysreg_el1(v,r)	write_sysreg_elx(v, r, _EL1, _EL12)
r                  47 arch/arm64/include/asm/kvm_hyp.h #define read_sysreg_el2(r)	read_sysreg_elx(r, _EL2, _EL1)
r                  48 arch/arm64/include/asm/kvm_hyp.h #define write_sysreg_el2(v,r)	write_sysreg_elx(v, r, _EL2, _EL1)
r                 278 arch/arm64/include/asm/ptrace.h static inline unsigned long pt_regs_read_reg(const struct pt_regs *regs, int r)
r                 280 arch/arm64/include/asm/ptrace.h 	return (r == 31) ? 0 : regs->regs[r];
r                 287 arch/arm64/include/asm/ptrace.h static inline void pt_regs_write_reg(struct pt_regs *regs, int r,
r                 290 arch/arm64/include/asm/ptrace.h 	if (r != 31)
r                 291 arch/arm64/include/asm/ptrace.h 		regs->regs[r] = val;
r                 787 arch/arm64/include/asm/sysreg.h #define __mrs_s(v, r)						\
r                 789 arch/arm64/include/asm/sysreg.h "	mrs_s " v ", " __stringify(r) "\n"			\
r                 792 arch/arm64/include/asm/sysreg.h #define __msr_s(r, v)						\
r                 794 arch/arm64/include/asm/sysreg.h "	msr_s " __stringify(r) ", " v "\n"			\
r                 801 arch/arm64/include/asm/sysreg.h #define read_sysreg(r) ({					\
r                 803 arch/arm64/include/asm/sysreg.h 	asm volatile("mrs %0, " __stringify(r) : "=r" (__val));	\
r                 811 arch/arm64/include/asm/sysreg.h #define write_sysreg(v, r) do {					\
r                 813 arch/arm64/include/asm/sysreg.h 	asm volatile("msr " __stringify(r) ", %x0"		\
r                 821 arch/arm64/include/asm/sysreg.h #define read_sysreg_s(r) ({						\
r                 823 arch/arm64/include/asm/sysreg.h 	asm volatile(__mrs_s("%0", r) : "=r" (__val));			\
r                 827 arch/arm64/include/asm/sysreg.h #define write_sysreg_s(v, r) do {					\
r                 829 arch/arm64/include/asm/sysreg.h 	asm volatile(__msr_s(r, "%x0") : : "rZ" (__val));		\
r                 229 arch/arm64/include/uapi/asm/kvm.h #define KVM_REG_ARM_FW_REG(r)		(KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \
r                 230 arch/arm64/include/uapi/asm/kvm.h 					 KVM_REG_ARM_FW | ((r) & 0xffff))
r                 809 arch/arm64/kernel/cpufeature.c #define read_sysreg_case(r)	\
r                 810 arch/arm64/kernel/cpufeature.c 	case r:		return read_sysreg_s(r)
r                  52 arch/arm64/kernel/ptrace.c #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
r                  54 arch/arm64/kernel/ptrace.c #define GPR_OFFSET_NAME(r) \
r                  55 arch/arm64/kernel/ptrace.c 	{.name = "x" #r, .offset = offsetof(struct pt_regs, regs[r])}
r                  15 arch/arm64/kvm/hyp/debug-sr.c #define read_debug(r,n)		read_sysreg(r##n##_el1)
r                  16 arch/arm64/kvm/hyp/debug-sr.c #define write_debug(v,r,n)	write_sysreg(v, r##n##_el1)
r                  65 arch/arm64/kvm/reset.c 	int r;
r                  69 arch/arm64/kvm/reset.c 		r = cpu_has_32bit_el1();
r                  72 arch/arm64/kvm/reset.c 		r = get_num_brps();
r                  75 arch/arm64/kvm/reset.c 		r = get_num_wrps();
r                  78 arch/arm64/kvm/reset.c 		r = kvm_arm_support_pmu_v3();
r                  81 arch/arm64/kvm/reset.c 		r = cpus_have_const_cap(ARM64_HAS_RAS_EXTN);
r                  85 arch/arm64/kvm/reset.c 		r = 1;
r                  88 arch/arm64/kvm/reset.c 		r = kvm_ipa_limit;
r                  91 arch/arm64/kvm/reset.c 		r = system_supports_sve();
r                  95 arch/arm64/kvm/reset.c 		r = has_vhe() && system_supports_address_auth() &&
r                  99 arch/arm64/kvm/reset.c 		r = 0;
r                 102 arch/arm64/kvm/reset.c 	return r;
r                  50 arch/arm64/kvm/sys_regs.c 				 const struct sys_reg_desc *r)
r                  60 arch/arm64/kvm/sys_regs.c 			       const struct sys_reg_desc *r)
r                 181 arch/arm64/kvm/sys_regs.c 			const struct sys_reg_desc *r)
r                 184 arch/arm64/kvm/sys_regs.c 		return read_from_write_only(vcpu, p, r);
r                 206 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                 210 arch/arm64/kvm/sys_regs.c 	int reg = r->reg;
r                 216 arch/arm64/kvm/sys_regs.c 		reg = r->reg / 2;
r                 222 arch/arm64/kvm/sys_regs.c 		if (r->reg % 2)
r                 242 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 247 arch/arm64/kvm/sys_regs.c 		return read_from_write_only(vcpu, p, r);
r                 287 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 298 arch/arm64/kvm/sys_regs.c 			const struct sys_reg_desc *r)
r                 314 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                 317 arch/arm64/kvm/sys_regs.c 	u32 sr = sys_reg((u32)r->Op0, (u32)r->Op1,
r                 318 arch/arm64/kvm/sys_regs.c 			 (u32)r->CRn, (u32)r->CRm, (u32)r->Op2);
r                 326 arch/arm64/kvm/sys_regs.c 		return write_to_read_only(vcpu, p, r);
r                 328 arch/arm64/kvm/sys_regs.c 	return trap_raz_wi(vcpu, p, r);
r                 333 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 345 arch/arm64/kvm/sys_regs.c 				   const struct sys_reg_desc *r)
r                 384 arch/arm64/kvm/sys_regs.c 			    const struct sys_reg_desc *r)
r                 387 arch/arm64/kvm/sys_regs.c 		vcpu_write_sys_reg(vcpu, p->regval, r->reg);
r                 390 arch/arm64/kvm/sys_regs.c 		p->regval = vcpu_read_sys_reg(vcpu, r->reg);
r                 393 arch/arm64/kvm/sys_regs.c 	trace_trap_reg(__func__, r->reg, p->is_write, p->regval);
r                 450 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_bvr[rd->reg];
r                 452 arch/arm64/kvm/sys_regs.c 	if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0)
r                 460 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_bvr[rd->reg];
r                 462 arch/arm64/kvm/sys_regs.c 	if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0)
r                 492 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_bcr[rd->reg];
r                 494 arch/arm64/kvm/sys_regs.c 	if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0)
r                 503 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_bcr[rd->reg];
r                 505 arch/arm64/kvm/sys_regs.c 	if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0)
r                 536 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wvr[rd->reg];
r                 538 arch/arm64/kvm/sys_regs.c 	if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0)
r                 546 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wvr[rd->reg];
r                 548 arch/arm64/kvm/sys_regs.c 	if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0)
r                 578 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wcr[rd->reg];
r                 580 arch/arm64/kvm/sys_regs.c 	if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0)
r                 588 arch/arm64/kvm/sys_regs.c 	__u64 *r = &vcpu->arch.vcpu_debug_state.dbg_wcr[rd->reg];
r                 590 arch/arm64/kvm/sys_regs.c 	if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0)
r                 601 arch/arm64/kvm/sys_regs.c static void reset_amair_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
r                 607 arch/arm64/kvm/sys_regs.c static void reset_mpidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
r                 624 arch/arm64/kvm/sys_regs.c static void reset_pmcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
r                 637 arch/arm64/kvm/sys_regs.c 	__vcpu_sys_reg(vcpu, r->reg) = val;
r                 672 arch/arm64/kvm/sys_regs.c 			const struct sys_reg_desc *r)
r                 677 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 703 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                 706 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 722 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                 727 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 760 arch/arm64/kvm/sys_regs.c 			      const struct sys_reg_desc *r)
r                 765 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 767 arch/arm64/kvm/sys_regs.c 	if (r->CRn == 9 && r->CRm == 13) {
r                 768 arch/arm64/kvm/sys_regs.c 		if (r->Op2 == 2) {
r                 775 arch/arm64/kvm/sys_regs.c 		} else if (r->Op2 == 0) {
r                 784 arch/arm64/kvm/sys_regs.c 	} else if (r->CRn == 0 && r->CRm == 9) {
r                 790 arch/arm64/kvm/sys_regs.c 	} else if (r->CRn == 14 && (r->CRm & 12) == 8) {
r                 795 arch/arm64/kvm/sys_regs.c 		idx = ((r->CRm & 3) << 3) | (r->Op2 & 7);
r                 816 arch/arm64/kvm/sys_regs.c 			       const struct sys_reg_desc *r)
r                 821 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 826 arch/arm64/kvm/sys_regs.c 	if (r->CRn == 9 && r->CRm == 13 && r->Op2 == 1) {
r                 830 arch/arm64/kvm/sys_regs.c 	} else if (r->CRn == 14 && (r->CRm & 12) == 12) {
r                 831 arch/arm64/kvm/sys_regs.c 		idx = ((r->CRm & 3) << 3) | (r->Op2 & 7);
r                 856 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 861 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 869 arch/arm64/kvm/sys_regs.c 		if (r->Op2 & 0x1) {
r                 887 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 892 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 902 arch/arm64/kvm/sys_regs.c 		if (r->Op2 & 0x1)
r                 916 arch/arm64/kvm/sys_regs.c 			 const struct sys_reg_desc *r)
r                 921 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 927 arch/arm64/kvm/sys_regs.c 		if (r->CRm & 0x2)
r                 941 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                 946 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                 949 arch/arm64/kvm/sys_regs.c 		return read_from_write_only(vcpu, p, r);
r                 960 arch/arm64/kvm/sys_regs.c 			     const struct sys_reg_desc *r)
r                 963 arch/arm64/kvm/sys_regs.c 		return trap_raz_wi(vcpu, p, r);
r                1039 arch/arm64/kvm/sys_regs.c 			      const struct sys_reg_desc *r)
r                1043 arch/arm64/kvm/sys_regs.c 	u64 reg = reg_to_encoding(r);
r                1075 arch/arm64/kvm/sys_regs.c 		struct sys_reg_desc const *r, bool raz)
r                1077 arch/arm64/kvm/sys_regs.c 	u32 id = sys_reg((u32)r->Op0, (u32)r->Op1,
r                1078 arch/arm64/kvm/sys_regs.c 			 (u32)r->CRn, (u32)r->CRm, (u32)r->Op2);
r                1097 arch/arm64/kvm/sys_regs.c 			    const struct sys_reg_desc *r,
r                1101 arch/arm64/kvm/sys_regs.c 		return write_to_read_only(vcpu, p, r);
r                1103 arch/arm64/kvm/sys_regs.c 	p->regval = read_id_reg(vcpu, r, raz);
r                1109 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                1111 arch/arm64/kvm/sys_regs.c 	return __access_id_reg(vcpu, p, r, false);
r                1116 arch/arm64/kvm/sys_regs.c 			      const struct sys_reg_desc *r)
r                1118 arch/arm64/kvm/sys_regs.c 	return __access_id_reg(vcpu, p, r, true);
r                1261 arch/arm64/kvm/sys_regs.c 		       const struct sys_reg_desc *r)
r                1264 arch/arm64/kvm/sys_regs.c 		return write_to_read_only(vcpu, p, r);
r                1271 arch/arm64/kvm/sys_regs.c 			 const struct sys_reg_desc *r)
r                1274 arch/arm64/kvm/sys_regs.c 		return write_to_read_only(vcpu, p, r);
r                1281 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                1283 arch/arm64/kvm/sys_regs.c 	int reg = r->reg;
r                1287 arch/arm64/kvm/sys_regs.c 		reg = r->reg / 2;
r                1297 arch/arm64/kvm/sys_regs.c 			  const struct sys_reg_desc *r)
r                1302 arch/arm64/kvm/sys_regs.c 		return write_to_read_only(vcpu, p, r);
r                1655 arch/arm64/kvm/sys_regs.c 			const struct sys_reg_desc *r)
r                1674 arch/arm64/kvm/sys_regs.c 			 const struct sys_reg_desc *r)
r                1677 arch/arm64/kvm/sys_regs.c 		vcpu_cp14(vcpu, r->reg) = p->regval;
r                1680 arch/arm64/kvm/sys_regs.c 		p->regval = vcpu_cp14(vcpu, r->reg);
r                2013 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r = elt;
r                2015 arch/arm64/kvm/sys_regs.c 	return pval - reg_to_encoding(r);
r                2035 arch/arm64/kvm/sys_regs.c 			   const struct sys_reg_desc *r)
r                2037 arch/arm64/kvm/sys_regs.c 	trace_kvm_sys_access(*vcpu_pc(vcpu), params, r);
r                2040 arch/arm64/kvm/sys_regs.c 	if (sysreg_hidden_from_guest(vcpu, r)) {
r                2050 arch/arm64/kvm/sys_regs.c 	BUG_ON(!r->access);
r                2053 arch/arm64/kvm/sys_regs.c 	if (likely(r->access(vcpu, params, r)))
r                2072 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r;
r                2077 arch/arm64/kvm/sys_regs.c 	r = find_reg(params, table, num);
r                2079 arch/arm64/kvm/sys_regs.c 	if (r) {
r                2080 arch/arm64/kvm/sys_regs.c 		perform_access(vcpu, params, r);
r                2246 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *table, *r;
r                2251 arch/arm64/kvm/sys_regs.c 	r = find_reg(params, table, num);
r                2252 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2253 arch/arm64/kvm/sys_regs.c 		r = find_reg(params, sys_reg_descs, ARRAY_SIZE(sys_reg_descs));
r                2255 arch/arm64/kvm/sys_regs.c 	if (likely(r)) {
r                2256 arch/arm64/kvm/sys_regs.c 		perform_access(vcpu, params, r);
r                2362 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *table, *r;
r                2373 arch/arm64/kvm/sys_regs.c 	r = find_reg(&params, table, num);
r                2374 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2375 arch/arm64/kvm/sys_regs.c 		r = find_reg(&params, sys_reg_descs, ARRAY_SIZE(sys_reg_descs));
r                2378 arch/arm64/kvm/sys_regs.c 	if (r && !(r->reg || r->get_user))
r                2379 arch/arm64/kvm/sys_regs.c 		r = NULL;
r                2381 arch/arm64/kvm/sys_regs.c 	return r;
r                2394 arch/arm64/kvm/sys_regs.c 			      const struct sys_reg_desc *r)		\
r                2396 arch/arm64/kvm/sys_regs.c 		((struct sys_reg_desc *)r)->val = read_sysreg(reg);	\
r                2404 arch/arm64/kvm/sys_regs.c static void get_ctr_el0(struct kvm_vcpu *v, const struct sys_reg_desc *r)
r                2406 arch/arm64/kvm/sys_regs.c 	((struct sys_reg_desc *)r)->val = read_sanitised_ftr_reg(SYS_CTR_EL0);
r                2435 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r;
r                2437 arch/arm64/kvm/sys_regs.c 	r = find_reg_by_id(id, &params, invariant_sys_regs,
r                2439 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2442 arch/arm64/kvm/sys_regs.c 	return reg_to_user(uaddr, &r->val, id);
r                2448 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r;
r                2452 arch/arm64/kvm/sys_regs.c 	r = find_reg_by_id(id, &params, invariant_sys_regs,
r                2454 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2462 arch/arm64/kvm/sys_regs.c 	if (r->val != val)
r                2552 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r;
r                2561 arch/arm64/kvm/sys_regs.c 	r = index_to_sys_reg_desc(vcpu, reg->id);
r                2562 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2566 arch/arm64/kvm/sys_regs.c 	if (sysreg_hidden_from_user(vcpu, r))
r                2569 arch/arm64/kvm/sys_regs.c 	if (r->get_user)
r                2570 arch/arm64/kvm/sys_regs.c 		return (r->get_user)(vcpu, r, reg, uaddr);
r                2572 arch/arm64/kvm/sys_regs.c 	return reg_to_user(uaddr, &__vcpu_sys_reg(vcpu, r->reg), reg->id);
r                2577 arch/arm64/kvm/sys_regs.c 	const struct sys_reg_desc *r;
r                2586 arch/arm64/kvm/sys_regs.c 	r = index_to_sys_reg_desc(vcpu, reg->id);
r                2587 arch/arm64/kvm/sys_regs.c 	if (!r)
r                2591 arch/arm64/kvm/sys_regs.c 	if (sysreg_hidden_from_user(vcpu, r))
r                2594 arch/arm64/kvm/sys_regs.c 	if (r->set_user)
r                2595 arch/arm64/kvm/sys_regs.c 		return (r->set_user)(vcpu, r, reg, uaddr);
r                2597 arch/arm64/kvm/sys_regs.c 	return reg_from_user(&__vcpu_sys_reg(vcpu, r->reg), uaddr, reg->id);
r                  87 arch/arm64/kvm/sys_regs.h 				 const struct sys_reg_desc *r)
r                  89 arch/arm64/kvm/sys_regs.h 	BUG_ON(!r->reg);
r                  90 arch/arm64/kvm/sys_regs.h 	BUG_ON(r->reg >= NR_SYS_REGS);
r                  91 arch/arm64/kvm/sys_regs.h 	__vcpu_sys_reg(vcpu, r->reg) = 0x1de7ec7edbadc0deULL;
r                  94 arch/arm64/kvm/sys_regs.h static inline void reset_val(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
r                  96 arch/arm64/kvm/sys_regs.h 	BUG_ON(!r->reg);
r                  97 arch/arm64/kvm/sys_regs.h 	BUG_ON(r->reg >= NR_SYS_REGS);
r                  98 arch/arm64/kvm/sys_regs.h 	__vcpu_sys_reg(vcpu, r->reg) = r->val;
r                 102 arch/arm64/kvm/sys_regs.h 					    const struct sys_reg_desc *r)
r                 104 arch/arm64/kvm/sys_regs.h 	if (likely(!r->visibility))
r                 107 arch/arm64/kvm/sys_regs.h 	return r->visibility(vcpu, r) & REG_HIDDEN_GUEST;
r                 111 arch/arm64/kvm/sys_regs.h 					   const struct sys_reg_desc *r)
r                 113 arch/arm64/kvm/sys_regs.h 	if (likely(!r->visibility))
r                 116 arch/arm64/kvm/sys_regs.h 	return r->visibility(vcpu, r) & REG_HIDDEN_USER;
r                  25 arch/arm64/kvm/sys_regs_generic_v8.c 			 const struct sys_reg_desc *r)
r                  34 arch/arm64/kvm/sys_regs_generic_v8.c static void reset_actlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r)
r                  14 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r)
r                  88 arch/arm64/kvm/vgic-sys-reg-v3.c 			   const struct sys_reg_desc *r)
r                 104 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r)
r                 122 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r)
r                 148 arch/arm64/kvm/vgic-sys-reg-v3.c 			      const struct sys_reg_desc *r)
r                 166 arch/arm64/kvm/vgic-sys-reg-v3.c 			      const struct sys_reg_desc *r)
r                 201 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r, u8 apr)
r                 203 arch/arm64/kvm/vgic-sys-reg-v3.c 	u8 idx = r->Op2 & 3;
r                 218 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r)
r                 221 arch/arm64/kvm/vgic-sys-reg-v3.c 	return access_gic_aprn(vcpu, p, r, 0);
r                 225 arch/arm64/kvm/vgic-sys-reg-v3.c 			    const struct sys_reg_desc *r)
r                 227 arch/arm64/kvm/vgic-sys-reg-v3.c 	return access_gic_aprn(vcpu, p, r, 1);
r                 231 arch/arm64/kvm/vgic-sys-reg-v3.c 			   const struct sys_reg_desc *r)
r                 285 arch/arm64/kvm/vgic-sys-reg-v3.c 	const struct sys_reg_desc *r;
r                 294 arch/arm64/kvm/vgic-sys-reg-v3.c 	r = find_reg_by_id(sysreg, &params, gic_v3_icc_reg_descs,
r                 296 arch/arm64/kvm/vgic-sys-reg-v3.c 	if (!r)
r                 299 arch/arm64/kvm/vgic-sys-reg-v3.c 	if (!r->access(vcpu, &params, r))
r                 258 arch/c6x/platforms/dscr.c 	struct rmii_reset_reg *r;
r                 265 arch/c6x/platforms/dscr.c 	r = &dscr.rmii_resets[id];
r                 266 arch/c6x/platforms/dscr.c 	if (r->mask == 0)
r                 271 arch/c6x/platforms/dscr.c 	val = soc_readl(dscr.base + r->reg);
r                 273 arch/c6x/platforms/dscr.c 		dscr_write(r->reg, val | r->mask);
r                 275 arch/c6x/platforms/dscr.c 		dscr_write(r->reg, val & ~(r->mask));
r                 396 arch/c6x/platforms/dscr.c 	struct locked_reg *r;
r                 408 arch/c6x/platforms/dscr.c 			r = &dscr.locked[i];
r                 410 arch/c6x/platforms/dscr.c 			r->reg = be32_to_cpup(p++);
r                 411 arch/c6x/platforms/dscr.c 			r->lockreg = be32_to_cpup(p++);
r                 412 arch/c6x/platforms/dscr.c 			r->key = be32_to_cpup(p++);
r                 469 arch/c6x/platforms/dscr.c 	struct devstate_ctl_reg *r;
r                 481 arch/c6x/platforms/dscr.c 			r = &dscr.devctl[i];
r                 483 arch/c6x/platforms/dscr.c 			r->start_id = be32_to_cpup(p++);
r                 484 arch/c6x/platforms/dscr.c 			r->num_ids = be32_to_cpup(p++);
r                 485 arch/c6x/platforms/dscr.c 			r->reg = be32_to_cpup(p++);
r                 486 arch/c6x/platforms/dscr.c 			r->enable = be32_to_cpup(p++);
r                 487 arch/c6x/platforms/dscr.c 			r->disable = be32_to_cpup(p++);
r                 488 arch/c6x/platforms/dscr.c 			if (r->disable == 0xffffffff)
r                 489 arch/c6x/platforms/dscr.c 				r->enable_only = 1;
r                 490 arch/c6x/platforms/dscr.c 			r->shift = be32_to_cpup(p++);
r                 491 arch/c6x/platforms/dscr.c 			r->nbits = be32_to_cpup(p++);
r                 493 arch/c6x/platforms/dscr.c 			for (j = r->start_id;
r                 494 arch/c6x/platforms/dscr.c 			     j < (r->start_id + r->num_ids);
r                 496 arch/c6x/platforms/dscr.c 				dscr.devstate_info[j].ctl = r;
r                 525 arch/c6x/platforms/dscr.c 	struct devstate_stat_reg *r;
r                 537 arch/c6x/platforms/dscr.c 			r = &dscr.devstat[i];
r                 539 arch/c6x/platforms/dscr.c 			r->start_id = be32_to_cpup(p++);
r                 540 arch/c6x/platforms/dscr.c 			r->num_ids = be32_to_cpup(p++);
r                 541 arch/c6x/platforms/dscr.c 			r->reg = be32_to_cpup(p++);
r                 542 arch/c6x/platforms/dscr.c 			r->enable = be32_to_cpup(p++);
r                 543 arch/c6x/platforms/dscr.c 			r->disable = be32_to_cpup(p++);
r                 544 arch/c6x/platforms/dscr.c 			r->shift = be32_to_cpup(p++);
r                 545 arch/c6x/platforms/dscr.c 			r->nbits = be32_to_cpup(p++);
r                 547 arch/c6x/platforms/dscr.c 			for (j = r->start_id;
r                 548 arch/c6x/platforms/dscr.c 			     j < (r->start_id + r->num_ids);
r                 550 arch/c6x/platforms/dscr.c 				dscr.devstate_info[j].stat = r;
r                  22 arch/h8300/kernel/ptrace.c #define PT_REG(r) offsetof(struct pt_regs, r)
r                  93 arch/h8300/kernel/ptrace.c 	int r;
r                  99 arch/h8300/kernel/ptrace.c 	for (r = 0; r < sizeof(regs) / sizeof(long); r++)
r                 100 arch/h8300/kernel/ptrace.c 		*reg++ = h8300_get_reg(target, r);
r                 111 arch/h8300/kernel/ptrace.c 	int r;
r                 118 arch/h8300/kernel/ptrace.c 	for (reg = (long *)&regs, r = 0; r < sizeof(regs) / sizeof(long); r++)
r                 119 arch/h8300/kernel/ptrace.c 		*reg++ = h8300_get_reg(target, r);
r                 127 arch/h8300/kernel/ptrace.c 	for (reg = (long *)&regs, r = 0; r < sizeof(regs) / sizeof(long); r++)
r                 128 arch/h8300/kernel/ptrace.c 		h8300_put_reg(target, r, *reg++);
r                  86 arch/h8300/kernel/signal.c #define COPY(r)  do { err |= get_user(regs->r, &usc->sc_##r); } while (0)
r                 185 arch/hexagon/include/asm/bitops.h 	int r;
r                 188 arch/hexagon/include/asm/bitops.h 		: "=&r" (r)
r                 190 arch/hexagon/include/asm/bitops.h 	return r;
r                 202 arch/hexagon/include/asm/bitops.h 	int r;
r                 206 arch/hexagon/include/asm/bitops.h 		: "=&r" (r)
r                 210 arch/hexagon/include/asm/bitops.h 	return r;
r                 223 arch/hexagon/include/asm/bitops.h 	int r;
r                 227 arch/hexagon/include/asm/bitops.h 		: "=&r" (r)
r                 231 arch/hexagon/include/asm/bitops.h 	return r;
r                  17 arch/hexagon/include/asm/switch_to.h #define switch_to(p, n, r) do {\
r                  18 arch/hexagon/include/asm/switch_to.h 	r = __switch_to((p), (n), (r));\
r                  19 arch/ia64/include/asm/page.h #define RGN_BASE(r)	(__IA64_UL_CONST(r)<<RGN_SHIFT)
r                 131 arch/ia64/include/asm/processor.h 		__u64 r : 1;
r                 360 arch/ia64/include/asm/processor.h 	unsigned long r = 0;					\
r                 363 arch/ia64/include/asm/processor.h 	    case 0: r = ia64_getreg(_IA64_REG_AR_KR0); break;	\
r                 364 arch/ia64/include/asm/processor.h 	    case 1: r = ia64_getreg(_IA64_REG_AR_KR1); break;	\
r                 365 arch/ia64/include/asm/processor.h 	    case 2: r = ia64_getreg(_IA64_REG_AR_KR2); break;	\
r                 366 arch/ia64/include/asm/processor.h 	    case 3: r = ia64_getreg(_IA64_REG_AR_KR3); break;	\
r                 367 arch/ia64/include/asm/processor.h 	    case 4: r = ia64_getreg(_IA64_REG_AR_KR4); break;	\
r                 368 arch/ia64/include/asm/processor.h 	    case 5: r = ia64_getreg(_IA64_REG_AR_KR5); break;	\
r                 369 arch/ia64/include/asm/processor.h 	    case 6: r = ia64_getreg(_IA64_REG_AR_KR6); break;	\
r                 370 arch/ia64/include/asm/processor.h 	    case 7: r = ia64_getreg(_IA64_REG_AR_KR7); break;	\
r                 373 arch/ia64/include/asm/processor.h 	r;							\
r                 376 arch/ia64/include/asm/processor.h #define ia64_set_kr(regnum, r) 					\
r                 379 arch/ia64/include/asm/processor.h 	    case 0: ia64_setreg(_IA64_REG_AR_KR0, r); break;	\
r                 380 arch/ia64/include/asm/processor.h 	    case 1: ia64_setreg(_IA64_REG_AR_KR1, r); break;	\
r                 381 arch/ia64/include/asm/processor.h 	    case 2: ia64_setreg(_IA64_REG_AR_KR2, r); break;	\
r                 382 arch/ia64/include/asm/processor.h 	    case 3: ia64_setreg(_IA64_REG_AR_KR3, r); break;	\
r                 383 arch/ia64/include/asm/processor.h 	    case 4: ia64_setreg(_IA64_REG_AR_KR4, r); break;	\
r                 384 arch/ia64/include/asm/processor.h 	    case 5: ia64_setreg(_IA64_REG_AR_KR5, r); break;	\
r                 385 arch/ia64/include/asm/processor.h 	    case 6: ia64_setreg(_IA64_REG_AR_KR6, r); break;	\
r                 386 arch/ia64/include/asm/processor.h 	    case 7: ia64_setreg(_IA64_REG_AR_KR7, r); break;	\
r                 608 arch/ia64/include/asm/processor.h 	__u64 r;
r                 610 arch/ia64/include/asm/processor.h 	r = ia64_getreg(_IA64_REG_CR_IVR);
r                 612 arch/ia64/include/asm/processor.h 	return r;
r                1284 arch/ia64/kernel/efi.c kdump_find_rsvd_region (unsigned long size, struct rsvd_region *r, int n)
r                1304 arch/ia64/kernel/efi.c 			if (__pa(r[i].start) >= start && __pa(r[i].end) < end) {
r                1305 arch/ia64/kernel/efi.c 				if (__pa(r[i].start) > start + size)
r                1307 arch/ia64/kernel/efi.c 				start = ALIGN(__pa(r[i].end), alignment);
r                1309 arch/ia64/kernel/efi.c 				    __pa(r[i+1].start) < start + size)
r                1406 arch/ia64/kernel/perfmon.c 	int r;
r                1419 arch/ia64/kernel/perfmon.c 	r = vm_munmap((unsigned long)vaddr, size);
r                1421 arch/ia64/kernel/perfmon.c 	if (r !=0) {
r                1425 arch/ia64/kernel/perfmon.c 	DPRINT(("do_unmap(%p, %lu)=%d\n", vaddr, size, r));
r                  81 arch/ia64/kernel/ptrace.c 		unsigned long bit = ia64_unat_pos(&pt->r##first);	\
r                 120 arch/ia64/kernel/ptrace.c 		unsigned long bit = ia64_unat_pos(&pt->r##first);	\
r                1087 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r;
r                1092 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 0);
r                1093 arch/ia64/kernel/unwind.c 	r->where = UNW_WHERE_NONE;
r                1094 arch/ia64/kernel/unwind.c 	r->when = UNW_WHEN_NEVER;
r                1095 arch/ia64/kernel/unwind.c 	r->val = 0;
r                1103 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r;
r                1113 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 0);
r                1114 arch/ia64/kernel/unwind.c 	r->where = where;
r                1115 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r                1116 arch/ia64/kernel/unwind.c 	r->val = (ytreg & 0x7f);
r                1123 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r;
r                1128 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 1);
r                1129 arch/ia64/kernel/unwind.c 	r->where = UNW_WHERE_PSPREL;
r                1130 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r                1131 arch/ia64/kernel/unwind.c 	r->val = 0x10 - 4*pspoff;
r                1138 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r;
r                1143 arch/ia64/kernel/unwind.c 	r = sr->curr.reg + decode_abreg(abreg, 1);
r                1144 arch/ia64/kernel/unwind.c 	r->where = UNW_WHERE_SPREL;
r                1145 arch/ia64/kernel/unwind.c 	r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r                1146 arch/ia64/kernel/unwind.c 	r->val = 4*spoff;
r                1155 arch/ia64/kernel/unwind.c #define UNW_DEC_PROLOGUE_GR(fmt,r,m,gr,arg)	desc_prologue(0,r,m,gr,arg)
r                1156 arch/ia64/kernel/unwind.c #define UNW_DEC_PROLOGUE(fmt,b,r,arg)		desc_prologue(b,r,0,32,arg)
r                1169 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_GR(fmt,r,d,arg)		desc_reg_gr(r,d,arg)
r                1170 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_PSPREL(fmt,r,o,arg)		desc_reg_psprel(r,o,arg)
r                1171 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_SPREL(fmt,r,o,arg)		desc_reg_sprel(r,o,arg)
r                1172 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_WHEN(fmt,r,t,arg)		desc_reg_when(r,t,arg)
r                1175 arch/ia64/kernel/unwind.c #define UNW_DEC_PRIUNAT_GR(fmt,r,arg)		desc_reg_gr(UNW_REG_PRI_UNAT_GR,r,arg)
r                1359 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r = sr->curr.reg + i;
r                1364 arch/ia64/kernel/unwind.c 	switch (r->where) {
r                1366 arch/ia64/kernel/unwind.c 		if (r->val >= 32) {
r                1392 arch/ia64/kernel/unwind.c 			   __func__, r->where);
r                1404 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r = sr->curr.reg + i;
r                1410 arch/ia64/kernel/unwind.c 	if (r->where == UNW_WHERE_NONE || r->when >= sr->when_target)
r                1414 arch/ia64/kernel/unwind.c 	val = rval = r->val;
r                1417 arch/ia64/kernel/unwind.c 	switch (r->where) {
r                1477 arch/ia64/kernel/unwind.c 			   __func__, i, r->where);
r                1535 arch/ia64/kernel/unwind.c 	struct unw_reg_info *r;
r                1546 arch/ia64/kernel/unwind.c 	for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r)
r                1547 arch/ia64/kernel/unwind.c 		r->when = UNW_WHEN_NEVER;
r                1615 arch/ia64/kernel/unwind.c 		for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r)
r                1616 arch/ia64/kernel/unwind.c 			if ((r->where == UNW_WHERE_PSPREL && r->val <= 0x10)
r                1617 arch/ia64/kernel/unwind.c 			    || r->where == UNW_WHERE_SPREL)
r                1619 arch/ia64/kernel/unwind.c 				r->val = 0;
r                1620 arch/ia64/kernel/unwind.c 				r->where = UNW_WHERE_NONE;
r                1621 arch/ia64/kernel/unwind.c 				r->when = UNW_WHEN_NEVER;
r                1643 arch/ia64/kernel/unwind.c 	for (r = sr.curr.reg; r < sr.curr.reg + UNW_NUM_REGS; ++r) {
r                1644 arch/ia64/kernel/unwind.c 		if (r->where != UNW_WHERE_NONE || r->when != UNW_WHEN_NEVER) {
r                1645 arch/ia64/kernel/unwind.c 			UNW_DPRINT(1, "  %s <- ", unw.preg_name[r - sr.curr.reg]);
r                1646 arch/ia64/kernel/unwind.c 			switch (r->where) {
r                1647 arch/ia64/kernel/unwind.c 			      case UNW_WHERE_GR:     UNW_DPRINT(1, "r%lu", r->val); break;
r                1648 arch/ia64/kernel/unwind.c 			      case UNW_WHERE_FR:     UNW_DPRINT(1, "f%lu", r->val); break;
r                1649 arch/ia64/kernel/unwind.c 			      case UNW_WHERE_BR:     UNW_DPRINT(1, "b%lu", r->val); break;
r                1650 arch/ia64/kernel/unwind.c 			      case UNW_WHERE_SPREL:  UNW_DPRINT(1, "[sp+0x%lx]", r->val); break;
r                1651 arch/ia64/kernel/unwind.c 			      case UNW_WHERE_PSPREL: UNW_DPRINT(1, "[psp+0x%lx]", r->val); break;
r                1653 arch/ia64/kernel/unwind.c 				UNW_DPRINT(1, "%s+0x%lx", unw.preg_name[r - sr.curr.reg], r->val);
r                1657 arch/ia64/kernel/unwind.c 				UNW_DPRINT(1, "BADWHERE(%d)", r->where);
r                1660 arch/ia64/kernel/unwind.c 			UNW_DPRINT(1, "\t\t%d\n", r->when);
r                 218 arch/ia64/kernel/unwind_decoder.c       unsigned char byte1 = *dp++, r, dst;
r                 220 arch/ia64/kernel/unwind_decoder.c       r = ((code & 0x7) << 1) | ((byte1 >> 7) & 1);
r                 222 arch/ia64/kernel/unwind_decoder.c       switch (r)
r                 236 arch/ia64/kernel/unwind_decoder.c 	default: UNW_DEC_BAD_CODE(r); break;
r                 271 arch/ia64/kernel/unwind_decoder.c   unsigned char r, byte1, byte2;
r                 276 arch/ia64/kernel/unwind_decoder.c       r = (code & 0xf);
r                 278 arch/ia64/kernel/unwind_decoder.c       switch (r)
r                 300 arch/ia64/kernel/unwind_decoder.c 	default: UNW_DEC_BAD_CODE(r); break;
r                 309 arch/ia64/kernel/unwind_decoder.c 	    r = *dp++;
r                 311 arch/ia64/kernel/unwind_decoder.c 	    switch (r)
r                 332 arch/ia64/kernel/unwind_decoder.c 	      default: UNW_DEC_BAD_CODE(r); break;
r                 457 arch/ia64/mm/tlb.c 	int i, r;
r                 469 arch/ia64/mm/tlb.c 	r = -EINVAL;
r                 512 arch/ia64/mm/tlb.c 			r = -EINVAL;
r                 544 arch/ia64/mm/tlb.c 	r = i;
r                 546 arch/ia64/mm/tlb.c 	return r;
r                 334 arch/ia64/pci/pci.c 		struct resource *r = &dev->resource[idx];
r                 336 arch/ia64/pci/pci.c 		if (!r->flags || r->parent || !r->start)
r                 352 arch/ia64/pci/pci.c 		struct resource *r = &dev->resource[idx];
r                 354 arch/ia64/pci/pci.c 		if (!r->flags || r->parent || !r->start)
r                  96 arch/m68k/coldfire/m5249.c 	u32 r;
r                 104 arch/m68k/coldfire/m5249.c 	r = readl(MCFINTC2_INTPRI_REG(MCF_IRQ_I2C1));
r                 105 arch/m68k/coldfire/m5249.c 	r &= ~MCFINTC2_INTPRI_BITS(0xf, MCF_IRQ_I2C1);
r                 106 arch/m68k/coldfire/m5249.c 	r |= MCFINTC2_INTPRI_BITS(0x5, MCF_IRQ_I2C1);
r                 107 arch/m68k/coldfire/m5249.c 	writel(r, MCFINTC2_INTPRI_REG(MCF_IRQ_I2C1));
r                  68 arch/m68k/coldfire/m525x.c 	u32 r;
r                  76 arch/m68k/coldfire/m525x.c 	r = readl(MCFINTC2_INTPRI_REG(MCF_IRQ_I2C1));
r                  77 arch/m68k/coldfire/m525x.c 	r &= ~MCFINTC2_INTPRI_BITS(0xf, MCF_IRQ_I2C1);
r                  78 arch/m68k/coldfire/m525x.c 	r |= MCFINTC2_INTPRI_BITS(0x5, MCF_IRQ_I2C1);
r                  79 arch/m68k/coldfire/m525x.c 	writel(r, MCFINTC2_INTPRI_REG(MCF_IRQ_I2C1));
r                 180 arch/m68k/coldfire/m53xx.c 	u8 r = readb(MCFGPIO_PAR_FECI2C);
r                 181 arch/m68k/coldfire/m53xx.c 	r |= 0x0f;
r                 182 arch/m68k/coldfire/m53xx.c 	writeb(r, MCFGPIO_PAR_FECI2C);
r                  74 arch/m68k/coldfire/m54xx.c 	u32 r;
r                  77 arch/m68k/coldfire/m54xx.c 	r = readl(MCF_PAR_FECI2CIRQ);
r                  78 arch/m68k/coldfire/m54xx.c 	r |= MCF_PAR_FECI2CIRQ_SDA | MCF_PAR_FECI2CIRQ_SCL;
r                  79 arch/m68k/coldfire/m54xx.c 	writel(r, MCF_PAR_FECI2CIRQ);
r                 247 arch/m68k/include/asm/math-emu.h 	.if	\nr
r                 248 arch/m68k/include/asm/math-emu.h 	movestack	(\nr-1),\arg2,\arg3,\arg4,\arg5
r                 271 arch/m68k/include/asm/math-emu.h 	movestack	\nr,\arg1,\arg2,\arg3,\arg4,\arg5
r                 274 arch/m68k/include/asm/math-emu.h 	lea	((\nr+1)*4,%sp),%sp
r                  71 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(__pu_err, __pu_val, ptr, w, r, -EFAULT);	\
r                  74 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(__pu_err, __pu_val, ptr, l, r, -EFAULT);	\
r                 139 arch/m68k/include/asm/uaccess_mm.h 		__get_user_asm(__gu_err, x, ptr, u16, w, r, -EFAULT);	\
r                 142 arch/m68k/include/asm/uaccess_mm.h 		__get_user_asm(__gu_err, x, ptr, u32, l, r, -EFAULT);	\
r                 325 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(res, *(u16 *)from, (u16 __user *)to, w, r, 2);
r                 331 arch/m68k/include/asm/uaccess_mm.h 		__put_user_asm(res, *(u32 *)from, (u32 __user *)to, l, r, 4);
r                  47 arch/m68k/kernel/pcibios.c 	struct resource *r;
r                  59 arch/m68k/kernel/pcibios.c 		r = dev->resource + idx;
r                  60 arch/m68k/kernel/pcibios.c 		if (!r->start && r->end) {
r                  65 arch/m68k/kernel/pcibios.c 		if (r->flags & IORESOURCE_IO)
r                  67 arch/m68k/kernel/pcibios.c 		if (r->flags & IORESOURCE_MEM)
r                 147 arch/m68k/mac/misc.c #define RTC_CMD_READ(r)         (RTC_FLG_READ | (r << 2))
r                 148 arch/m68k/mac/misc.c #define RTC_CMD_WRITE(r)        (r << 2)
r                  31 arch/microblaze/include/asm/mmu.h 	unsigned long    r:1;	/* Referenced */
r                 747 arch/microblaze/pci/pci-common.c 	struct resource *pr, *r = &dev->resource[idx];
r                 751 arch/microblaze/pci/pci-common.c 		 (unsigned long long)r->start,
r                 752 arch/microblaze/pci/pci-common.c 		 (unsigned long long)r->end,
r                 753 arch/microblaze/pci/pci-common.c 		 (unsigned int)r->flags);
r                 755 arch/microblaze/pci/pci-common.c 	pr = pci_find_parent_resource(dev, r);
r                 757 arch/microblaze/pci/pci-common.c 	    request_resource(pr, r) < 0) {
r                 767 arch/microblaze/pci/pci-common.c 		r->flags |= IORESOURCE_UNSET;
r                 768 arch/microblaze/pci/pci-common.c 		r->end -= r->start;
r                 769 arch/microblaze/pci/pci-common.c 		r->start = 0;
r                 778 arch/microblaze/pci/pci-common.c 	struct resource *r;
r                 783 arch/microblaze/pci/pci-common.c 			r = &dev->resource[idx];
r                 784 arch/microblaze/pci/pci-common.c 			if (r->parent)		/* Already allocated */
r                 786 arch/microblaze/pci/pci-common.c 			if (!r->flags || (r->flags & IORESOURCE_UNSET))
r                 793 arch/microblaze/pci/pci-common.c 			if (r->flags & IORESOURCE_IO)
r                 802 arch/microblaze/pci/pci-common.c 		r = &dev->resource[PCI_ROM_RESOURCE];
r                 803 arch/microblaze/pci/pci-common.c 		if (r->flags) {
r                 812 arch/microblaze/pci/pci-common.c 				r->flags &= ~IORESOURCE_ROM_ENABLE;
r                 125 arch/microblaze/pci/xilinx_pci.c 	struct resource r;
r                 133 arch/microblaze/pci/xilinx_pci.c 	if (of_address_to_resource(pci_node, 0, &r)) {
r                 145 arch/microblaze/pci/xilinx_pci.c 	setup_indirect_pci(hose, r.start + XPLB_PCI_ADDR,
r                 146 arch/microblaze/pci/xilinx_pci.c 			   r.start + XPLB_PCI_DATA,
r                 516 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 519 arch/mips/alchemy/common/irq.c 	r += gpio * 4;	/* offset into pin config array */
r                 520 arch/mips/alchemy/common/irq.c 	l = __raw_readl(r + AU1300_GPIC_PINCFG);
r                 523 arch/mips/alchemy/common/irq.c 	__raw_writel(l, r + AU1300_GPIC_PINCFG);
r                 551 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 554 arch/mips/alchemy/common/irq.c 	r += GPIC_GPIO_BANKOFF(gpio);
r                 556 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_DEVSEL);
r                 583 arch/mips/alchemy/common/irq.c 	unsigned long r;
r                 586 arch/mips/alchemy/common/irq.c 		r = __raw_readl(AU1300_GPIC_ADDR + AU1300_GPIC_DMASEL);
r                 587 arch/mips/alchemy/common/irq.c 		r &= ~(0xff << (8 * dchan));
r                 588 arch/mips/alchemy/common/irq.c 		r |= (gpio & 0x7f) << (8 * dchan);
r                 589 arch/mips/alchemy/common/irq.c 		__raw_writel(r, AU1300_GPIC_ADDR + AU1300_GPIC_DMASEL);
r                 602 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 606 arch/mips/alchemy/common/irq.c 	r += GPIC_GPIO_BANKOFF(irq);
r                 608 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_IDIS);
r                 616 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 623 arch/mips/alchemy/common/irq.c 	r += GPIC_GPIO_BANKOFF(irq);
r                 625 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_IEN);
r                 631 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 635 arch/mips/alchemy/common/irq.c 	r += GPIC_GPIO_BANKOFF(irq);
r                 637 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_IPEND);	/* ack */
r                 638 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_IDIS);	/* mask */
r                 646 arch/mips/alchemy/common/irq.c 	void __iomem *r = AU1300_GPIC_ADDR;
r                 650 arch/mips/alchemy/common/irq.c 	r += GPIC_GPIO_BANKOFF(irq);
r                 652 arch/mips/alchemy/common/irq.c 	__raw_writel(bit, r + AU1300_GPIC_IPEND);	/* ack */
r                 856 arch/mips/alchemy/common/irq.c 	unsigned long r = __raw_readl((void __iomem *)KSEG1ADDR(addr));	      \
r                 857 arch/mips/alchemy/common/irq.c 	if (likely(r))							      \
r                 858 arch/mips/alchemy/common/irq.c 		generic_handle_irq(base + __ffs(r));			      \
r                 994 arch/mips/alchemy/common/irq.c 	unsigned long r = (read_c0_status() & read_c0_cause()) >> 8;
r                 995 arch/mips/alchemy/common/irq.c 	do_IRQ(MIPS_CPU_IRQ_BASE + __ffs(r & 0xff));
r                 197 arch/mips/alchemy/common/platform.c static int __init _new_usbres(struct resource **r, struct platform_device **d)
r                 199 arch/mips/alchemy/common/platform.c 	*r = kcalloc(2, sizeof(struct resource), GFP_KERNEL);
r                 200 arch/mips/alchemy/common/platform.c 	if (!*r)
r                 204 arch/mips/alchemy/common/platform.c 		kfree(*r);
r                 210 arch/mips/alchemy/common/platform.c 	(*d)->resource = *r;
r                 100 arch/mips/alchemy/common/usb.c 	unsigned long r, s;
r                 102 arch/mips/alchemy/common/usb.c 	r = __raw_readl(base + USB_DWC_CTRL2);
r                 110 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS |
r                 112 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL2);
r                 116 arch/mips/alchemy/common/usb.c 		r &= ~(USB_DWC_CTRL2_PHY1RS | USB_DWC_CTRL2_PHY0RS |
r                 118 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL2);
r                 125 arch/mips/alchemy/common/usb.c 	unsigned long r;
r                 131 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);	/* enable OHCI block */
r                 132 arch/mips/alchemy/common/usb.c 		r |= (id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN
r                 134 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 139 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 140 arch/mips/alchemy/common/usb.c 		r |= (id == 0) ? USB_INTEN_OHCI0 : USB_INTEN_OHCI1;
r                 141 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 148 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 149 arch/mips/alchemy/common/usb.c 		r &= ~((id == 0) ? USB_INTEN_OHCI0 : USB_INTEN_OHCI1);
r                 150 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 153 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);
r                 154 arch/mips/alchemy/common/usb.c 		r &= ~((id == 0) ? USB_DWC_CTRL3_OHCI0_CKEN
r                 156 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 165 arch/mips/alchemy/common/usb.c 	unsigned long r;
r                 168 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);
r                 169 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL3_EHCI0_CKEN;
r                 170 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 173 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 174 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL1_HSTRS;
r                 175 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 180 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 181 arch/mips/alchemy/common/usb.c 		r |= USB_INTEN_EHCI;
r                 182 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 185 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 186 arch/mips/alchemy/common/usb.c 		r &= ~USB_INTEN_EHCI;
r                 187 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 190 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 191 arch/mips/alchemy/common/usb.c 		r &= ~USB_DWC_CTRL1_HSTRS;
r                 192 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 195 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);
r                 196 arch/mips/alchemy/common/usb.c 		r &= ~USB_DWC_CTRL3_EHCI0_CKEN;
r                 197 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 206 arch/mips/alchemy/common/usb.c 	unsigned long r;
r                 209 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 210 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL1_DCRS;
r                 211 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 216 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 217 arch/mips/alchemy/common/usb.c 		r |= USB_INTEN_UDC;
r                 218 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 221 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_INT_ENABLE);
r                 222 arch/mips/alchemy/common/usb.c 		r &= ~USB_INTEN_UDC;
r                 223 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_INT_ENABLE);
r                 226 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 227 arch/mips/alchemy/common/usb.c 		r &= ~USB_DWC_CTRL1_DCRS;
r                 228 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 237 arch/mips/alchemy/common/usb.c 	unsigned long r;
r                 239 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);
r                 240 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL3_OTG0_CKEN;
r                 241 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 244 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 245 arch/mips/alchemy/common/usb.c 		r &= ~USB_DWC_CTRL1_OTGD;
r                 246 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 251 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL1);
r                 252 arch/mips/alchemy/common/usb.c 		r |= USB_DWC_CTRL1_OTGD;
r                 253 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL1);
r                 256 arch/mips/alchemy/common/usb.c 		r = __raw_readl(base + USB_DWC_CTRL3);
r                 257 arch/mips/alchemy/common/usb.c 		r &= ~USB_DWC_CTRL3_OTG0_CKEN;
r                 258 arch/mips/alchemy/common/usb.c 		__raw_writel(r, base + USB_DWC_CTRL3);
r                 318 arch/mips/alchemy/common/usb.c 	unsigned long r = __raw_readl(base + AU1200_USBCFG);
r                 320 arch/mips/alchemy/common/usb.c 		__raw_writel(r | USBCFG_OCE, base + AU1200_USBCFG);
r                 324 arch/mips/alchemy/common/usb.c 		__raw_writel(r & ~USBCFG_OCE, base + AU1200_USBCFG);
r                 332 arch/mips/alchemy/common/usb.c 	unsigned long r = __raw_readl(base + AU1200_USBCFG);
r                 334 arch/mips/alchemy/common/usb.c 		__raw_writel(r | USBCFG_ECE | USBCFG_PPE, base + AU1200_USBCFG);
r                 338 arch/mips/alchemy/common/usb.c 		if (!(r & USBCFG_UCE))		/* UDC also off? */
r                 339 arch/mips/alchemy/common/usb.c 			r &= ~USBCFG_PPE;	/* yes: disable HS PHY PLL */
r                 340 arch/mips/alchemy/common/usb.c 		__raw_writel(r & ~USBCFG_ECE, base + AU1200_USBCFG);
r                 348 arch/mips/alchemy/common/usb.c 	unsigned long r = __raw_readl(base + AU1200_USBCFG);
r                 350 arch/mips/alchemy/common/usb.c 		__raw_writel(r | USBCFG_UCE | USBCFG_PPE, base + AU1200_USBCFG);
r                 353 arch/mips/alchemy/common/usb.c 		if (!(r & USBCFG_ECE))		/* EHCI also off? */
r                 354 arch/mips/alchemy/common/usb.c 			r &= ~USBCFG_PPE;	/* yes: disable HS PHY PLL */
r                 355 arch/mips/alchemy/common/usb.c 		__raw_writel(r & ~USBCFG_UCE, base + AU1200_USBCFG);
r                 395 arch/mips/alchemy/common/usb.c 	unsigned long r = __raw_readl(base);
r                 413 arch/mips/alchemy/common/usb.c 	r |= USBHEN_BE;
r                 415 arch/mips/alchemy/common/usb.c 	r |= USBHEN_C;
r                 417 arch/mips/alchemy/common/usb.c 	__raw_writel(r, base);
r                 428 arch/mips/alchemy/common/usb.c 	unsigned long r = __raw_readl(base + creg);
r                 438 arch/mips/alchemy/common/usb.c 		__raw_writel(r | USBHEN_CE, base + creg);
r                 441 arch/mips/alchemy/common/usb.c 		__raw_writel(r | USBHEN_CE | USBHEN_E, base + creg);
r                 450 arch/mips/alchemy/common/usb.c 		__raw_writel(r & ~(USBHEN_CE | USBHEN_E), base + creg);
r                  52 arch/mips/alchemy/devboards/bcsr.c 	unsigned short r;
r                  56 arch/mips/alchemy/devboards/bcsr.c 	r = __raw_readw(bcsr_regs[reg].raddr);
r                  58 arch/mips/alchemy/devboards/bcsr.c 	return r;
r                  75 arch/mips/alchemy/devboards/bcsr.c 	unsigned short r;
r                  79 arch/mips/alchemy/devboards/bcsr.c 	r = __raw_readw(bcsr_regs[reg].raddr);
r                  80 arch/mips/alchemy/devboards/bcsr.c 	r &= ~clr;
r                  81 arch/mips/alchemy/devboards/bcsr.c 	r |= set;
r                  82 arch/mips/alchemy/devboards/bcsr.c 	__raw_writew(r, bcsr_regs[reg].raddr);
r                  56 arch/mips/bcm63xx/dev-usb-usbd.c 		struct resource *r = &usbd_resources[NUM_MMIO + i];
r                  58 arch/mips/bcm63xx/dev-usb-usbd.c 		r->start = r->end = bcm63xx_get_irq_number(irq_list[i]);
r                  59 arch/mips/bcm63xx/dev-usb-usbd.c 		r->flags = IORESOURCE_IRQ;
r                  45 arch/mips/bmips/dma.c 	struct bmips_dma_range *r;
r                  47 arch/mips/bmips/dma.c 	for (r = bmips_dma_ranges; r && r->size; r++) {
r                  48 arch/mips/bmips/dma.c 		if (pa >= r->child_addr &&
r                  49 arch/mips/bmips/dma.c 		    pa < (r->child_addr + r->size))
r                  50 arch/mips/bmips/dma.c 			return pa - r->child_addr + r->parent_addr;
r                  57 arch/mips/bmips/dma.c 	struct bmips_dma_range *r;
r                  59 arch/mips/bmips/dma.c 	for (r = bmips_dma_ranges; r && r->size; r++) {
r                  60 arch/mips/bmips/dma.c 		if (dma_addr >= r->parent_addr &&
r                  61 arch/mips/bmips/dma.c 		    dma_addr < (r->parent_addr + r->size))
r                  62 arch/mips/bmips/dma.c 			return dma_addr - r->parent_addr + r->child_addr;
r                  88 arch/mips/bmips/dma.c 	struct bmips_dma_range *r;
r                 108 arch/mips/bmips/dma.c 	for (r = bmips_dma_ranges; len; len--, r++) {
r                 109 arch/mips/bmips/dma.c 		r->child_addr = be32_to_cpup(data++);
r                 110 arch/mips/bmips/dma.c 		r->parent_addr = be32_to_cpup(data++);
r                 111 arch/mips/bmips/dma.c 		r->size = be32_to_cpup(data++);
r                 442 arch/mips/boot/tools/relocs.c static void add_reloc(struct relocs *r, uint32_t offset, unsigned type)
r                 454 arch/mips/boot/tools/relocs.c 	if (r->count == r->size) {
r                 455 arch/mips/boot/tools/relocs.c 		unsigned long newsize = r->size + 50000;
r                 456 arch/mips/boot/tools/relocs.c 		void *mem = realloc(r->offset, newsize * sizeof(r->offset[0]));
r                 461 arch/mips/boot/tools/relocs.c 		r->offset = mem;
r                 462 arch/mips/boot/tools/relocs.c 		r->size = newsize;
r                 464 arch/mips/boot/tools/relocs.c 	r->offset[r->count++] = offset;
r                  32 arch/mips/cavium-octeon/flash_setup.c 	map_word r;
r                  35 arch/mips/cavium-octeon/flash_setup.c 	r = inline_map_read(map, ofs);
r                  38 arch/mips/cavium-octeon/flash_setup.c 	return r;
r                  74 arch/mips/cavium-octeon/flash_setup.c 	int r;
r                  77 arch/mips/cavium-octeon/flash_setup.c 	r = of_property_read_u32(np, "reg", &cs);
r                  78 arch/mips/cavium-octeon/flash_setup.c 	if (r)
r                  79 arch/mips/cavium-octeon/flash_setup.c 		return r;
r                1259 arch/mips/cavium-octeon/octeon-irq.c 	int r;
r                1272 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_set_ciu_mapping(virq, line, bit, hw,
r                1274 arch/mips/cavium-octeon/octeon-irq.c 	return r;
r                1447 arch/mips/cavium-octeon/octeon-irq.c 	unsigned int i, r;
r                1502 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                1504 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                1508 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_set_ciu_mapping(
r                1510 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1512 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_set_ciu_mapping(
r                1514 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1518 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                1520 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                1524 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                1526 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                1530 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_TWSI, 0, 45);
r                1531 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1534 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_RML, 0, 46);
r                1535 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1539 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                1541 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                1545 arch/mips/cavium-octeon/octeon-irq.c 	r = octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_TWSI2, 0, 59);
r                1546 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1551 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_set_ciu_mapping(
r                1554 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                1567 arch/mips/cavium-octeon/octeon-irq.c 	return r;
r                1576 arch/mips/cavium-octeon/octeon-irq.c 	int r;
r                1578 arch/mips/cavium-octeon/octeon-irq.c 	r = of_property_read_u32(parent, "#interrupt-cells", &interrupt_cells);
r                1579 arch/mips/cavium-octeon/octeon-irq.c 	if (r)
r                1580 arch/mips/cavium-octeon/octeon-irq.c 		return r;
r                1585 arch/mips/cavium-octeon/octeon-irq.c 		r = of_property_read_u32_index(gpio_node, "interrupts", 0, &v);
r                1586 arch/mips/cavium-octeon/octeon-irq.c 		if (r) {
r                1588 arch/mips/cavium-octeon/octeon-irq.c 			return r;
r                1594 arch/mips/cavium-octeon/octeon-irq.c 		r = of_property_read_u32_index(gpio_node, "interrupts", 0, &v0);
r                1595 arch/mips/cavium-octeon/octeon-irq.c 		if (r) {
r                1597 arch/mips/cavium-octeon/octeon-irq.c 			return r;
r                1599 arch/mips/cavium-octeon/octeon-irq.c 		r = of_property_read_u32_index(gpio_node, "interrupts", 1, &v1);
r                1600 arch/mips/cavium-octeon/octeon-irq.c 		if (r) {
r                1602 arch/mips/cavium-octeon/octeon-irq.c 			return r;
r                2038 arch/mips/cavium-octeon/octeon-irq.c 	unsigned int i, r;
r                2058 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                2060 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                2065 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_set_ciu_mapping(i + OCTEON_IRQ_WDOG0, 1, i, 0,
r                2067 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                2072 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                2074 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                2079 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                2081 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                2086 arch/mips/cavium-octeon/octeon-irq.c 		r = octeon_irq_force_ciu_mapping(
r                2088 arch/mips/cavium-octeon/octeon-irq.c 		if (r)
r                2102 arch/mips/cavium-octeon/octeon-irq.c 	return r;
r                2272 arch/mips/cavium-octeon/octeon-irq.c 	int r;
r                2303 arch/mips/cavium-octeon/octeon-irq.c 	r = of_property_read_u32(ciu_node, "cavium,max-bits", &val);
r                2304 arch/mips/cavium-octeon/octeon-irq.c 	if (r) {
r                2307 arch/mips/cavium-octeon/octeon-irq.c 		return r;
r                2322 arch/mips/cavium-octeon/octeon-irq.c 	r = request_irq(parent_irq, octeon_irq_cib_handler,
r                2324 arch/mips/cavium-octeon/octeon-irq.c 	if (r) {
r                2325 arch/mips/cavium-octeon/octeon-irq.c 		pr_err("request_irq cib failed %d\n", r);
r                2326 arch/mips/cavium-octeon/octeon-irq.c 		return r;
r                 567 arch/mips/cavium-octeon/octeon-platform.c 	int r;
r                 581 arch/mips/cavium-octeon/octeon-platform.c 	r = fdt_setprop_inplace(initial_boot_params, n, "local-mac-address",
r                 584 arch/mips/cavium-octeon/octeon-platform.c 	if (r) {
r                 585 arch/mips/cavium-octeon/octeon-platform.c 		pr_err("Setting \"local-mac-address\" failed %d", r);
r                 578 arch/mips/include/asm/bitops.h 	int r;
r                 593 arch/mips/include/asm/bitops.h 	r = 32;
r                 598 arch/mips/include/asm/bitops.h 		r -= 16;
r                 602 arch/mips/include/asm/bitops.h 		r -= 8;
r                 606 arch/mips/include/asm/bitops.h 		r -= 4;
r                 610 arch/mips/include/asm/bitops.h 		r -= 2;
r                 614 arch/mips/include/asm/bitops.h 		r -= 1;
r                 616 arch/mips/include/asm/bitops.h 	return r;
r                  19 arch/mips/include/asm/cop2.h #define cop2_save(r)		octeon_cop2_save(&(r)->thread.cp2)
r                  20 arch/mips/include/asm/cop2.h #define cop2_restore(r)		octeon_cop2_restore(&(r)->thread.cp2)
r                  30 arch/mips/include/asm/cop2.h #define cop2_save(r)		nlm_cop2_save(&(r)->thread.cp2)
r                  31 arch/mips/include/asm/cop2.h #define cop2_restore(r)		nlm_cop2_restore(&(r)->thread.cp2)
r                  40 arch/mips/include/asm/cop2.h #define cop2_save(r)		do { (void)(r); } while (0)
r                  41 arch/mips/include/asm/cop2.h #define cop2_restore(r)		do { (void)(r); } while (0)
r                  47 arch/mips/include/asm/cop2.h #define cop2_save(r)		do { (void)(r); } while (0)
r                  48 arch/mips/include/asm/cop2.h #define cop2_restore(r)		do { (void)(r); } while (0)
r                  19 arch/mips/include/asm/kvm_para.h 	register unsigned long r asm("v0");
r                  24 arch/mips/include/asm/kvm_para.h 		: "=r" (r) : "r" (n) : "memory"
r                  27 arch/mips/include/asm/kvm_para.h 	return r;
r                  34 arch/mips/include/asm/kvm_para.h 	register unsigned long r asm("v0");
r                  41 arch/mips/include/asm/kvm_para.h 		: "=r" (r) : "r" (n), "r" (a0) : "memory"
r                  44 arch/mips/include/asm/kvm_para.h 	return r;
r                  51 arch/mips/include/asm/kvm_para.h 	register unsigned long r asm("v0");
r                  60 arch/mips/include/asm/kvm_para.h 		: "=r" (r) : "r" (n), "r" (a0), "r" (a1) : "memory"
r                  63 arch/mips/include/asm/kvm_para.h 	return r;
r                  70 arch/mips/include/asm/kvm_para.h 	register unsigned long r asm("v0");
r                  81 arch/mips/include/asm/kvm_para.h 		: "=r" (r) : "r" (n), "r" (a0), "r" (a1), "r" (a2) : "memory"
r                  84 arch/mips/include/asm/kvm_para.h 	return r;
r                 221 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 	unsigned long r = v ? AU1000_SYS_OUTPUTSET : AU1000_SYS_OUTPUTCLR;
r                 222 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 	alchemy_wrsys(mask, r);
r                 362 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 	unsigned long r = __raw_readl(base + AU1000_GPIO2_INTENABLE);
r                 364 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 		r |= 1 << gpio2;
r                 366 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 		r &= ~(1 << gpio2);
r                 367 arch/mips/include/asm/mach-au1x00/gpio-au1000.h 	__raw_writel(r, base + AU1000_GPIO2_INTENABLE);
r                 178 arch/mips/include/asm/netlogic/xlp-hal/bridge.h #define nlm_read_bridge_reg(b, r)	nlm_read_reg(b, r)
r                 179 arch/mips/include/asm/netlogic/xlp-hal/bridge.h #define nlm_write_bridge_reg(b, r, v)	nlm_write_reg(b, r, v)
r                 200 arch/mips/include/asm/netlogic/xlp-hal/iomap.h #define nlm_read_pci_reg(b, r)		nlm_read_reg(b, r)
r                 201 arch/mips/include/asm/netlogic/xlp-hal/iomap.h #define nlm_write_pci_reg(b, r, v)	nlm_write_reg(b, r, v)
r                  99 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h #define nlm_read_pcie_reg(b, r)		nlm_read_reg(b, r)
r                 100 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h #define nlm_write_pcie_reg(b, r, v)	nlm_write_reg(b, r, v)
r                 217 arch/mips/include/asm/netlogic/xlp-hal/pic.h #define nlm_read_pic_reg(b, r)	nlm_read_reg64(b, r)
r                 218 arch/mips/include/asm/netlogic/xlp-hal/pic.h #define nlm_write_pic_reg(b, r, v) nlm_write_reg64(b, r, v)
r                 194 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define nlm_read_sys_reg(b, r)		nlm_read_reg(b, r)
r                 195 arch/mips/include/asm/netlogic/xlp-hal/sys.h #define nlm_write_sys_reg(b, r, v)	nlm_write_reg(b, r, v)
r                  94 arch/mips/include/asm/netlogic/xlp-hal/uart.h #define nlm_read_uart_reg(b, r)		nlm_read_reg(b, r)
r                  95 arch/mips/include/asm/netlogic/xlp-hal/uart.h #define nlm_write_uart_reg(b, r, v)	nlm_write_reg(b, r, v)
r                3511 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t r:1;
r                3527 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t r:1;
r                 149 arch/mips/include/asm/octeon/cvmx-spi.h 	union cvmx_gmxx_rxx_rx_inbnd r;
r                 150 arch/mips/include/asm/octeon/cvmx-spi.h 	r.u64 = 0;
r                 151 arch/mips/include/asm/octeon/cvmx-spi.h 	return r;
r                 340 arch/mips/include/asm/octeon/cvmx-sriox-defs.h 		uint64_t r:1;
r                 368 arch/mips/include/asm/octeon/cvmx-sriox-defs.h 		uint64_t r:1;
r                 703 arch/mips/include/asm/pci/bridge.h #define BRIDGE_RRB_VALID(r)	(0x00010000<<(r))
r                 704 arch/mips/include/asm/pci/bridge.h #define BRIDGE_RRB_INUSE(r)	(0x00000001<<(r))
r                 707 arch/mips/include/asm/pci/bridge.h #define BRIDGE_RRB_CLEAR(r)	(0x00000001<<(r))
r                 317 arch/mips/include/asm/sibyte/bcm1480_regs.h #define A_BCM1480_SCD_WDOG_REGISTER(w, r) (A_BCM1480_SCD_WDOG_BASE(w) + (r))
r                 423 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_DM_CUR_DSCR_DSCR_COUNT(r) _SB_MAKEVALUE(r, S_DM_CUR_DSCR_DSCR_COUNT)
r                 424 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_DM_CUR_DSCR_DSCR_COUNT(r) _SB_GETVALUE(r, S_DM_CUR_DSCR_DSCR_COUNT,\
r                 438 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_DM_PARTIAL_CRC_PARTIAL(r)   _SB_MAKEVALUE(r, S_DM_PARTIAL_CRC_PARTIAL)
r                 439 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_DM_PARTIAL_CRC_PARTIAL(r)   _SB_GETVALUE(r, S_DM_PARTIAL_CRC_PARTIAL,\
r                 444 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_MAKEVALUE(r, S_DM_PARTIAL_TCPCS_PARTIAL)
r                 445 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_DM_PARTIAL_TCPCS_PARTIAL(r) _SB_GETVALUE(r, S_DM_PARTIAL_TCPCS_PARTIAL,\
r                 460 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_CRC_DEF_CRC_INIT(r)	      _SB_MAKEVALUE(r, S_CRC_DEF_CRC_INIT)
r                 461 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_CRC_DEF_CRC_INIT(r)	      _SB_GETVALUE(r, S_CRC_DEF_CRC_INIT,\
r                 466 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_CRC_DEF_CRC_POLY(r)	      _SB_MAKEVALUE(r, S_CRC_DEF_CRC_POLY)
r                 467 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_CRC_DEF_CRC_POLY(r)	      _SB_GETVALUE(r, S_CRC_DEF_CRC_POLY,\
r                 480 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_CTCP_DEF_CRC_TXOR(r)	      _SB_MAKEVALUE(r, S_CTCP_DEF_CRC_TXOR)
r                 481 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_CTCP_DEF_CRC_TXOR(r)	      _SB_GETVALUE(r, S_CTCP_DEF_CRC_TXOR,\
r                 486 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_CTCP_DEF_TCPCS_INIT(r)      _SB_MAKEVALUE(r, S_CTCP_DEF_TCPCS_INIT)
r                 487 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_CTCP_DEF_TCPCS_INIT(r)      _SB_GETVALUE(r, S_CTCP_DEF_TCPCS_INIT,\
r                 492 arch/mips/include/asm/sibyte/sb1250_dma.h #define V_CTCP_DEF_CRC_WIDTH(r)	      _SB_MAKEVALUE(r, S_CTCP_DEF_CRC_WIDTH)
r                 493 arch/mips/include/asm/sibyte/sb1250_dma.h #define G_CTCP_DEF_CRC_WIDTH(r)	      _SB_GETVALUE(r, S_CTCP_DEF_CRC_WIDTH,\
r                 479 arch/mips/include/asm/sibyte/sb1250_regs.h #define A_IO_EXT_REG(r)		    (A_IO_EXT_BASE + (r))
r                 601 arch/mips/include/asm/sibyte/sb1250_regs.h #define A_SCD_WDOG_REGISTER(w, r)   (A_SCD_WDOG_BASE(w) + (r))
r                 625 arch/mips/include/asm/sibyte/sb1250_regs.h #define A_SCD_TIMER_REGISTER(w, r)  (A_SCD_TIMER_BASE(w) + (r))
r                  31 arch/mips/include/asm/stacktrace.h #define STORE_ONE_REG(r) \
r                  32 arch/mips/include/asm/stacktrace.h     STR_LONG_S   " $" __stringify(r)",("STR_LONGSIZE"*"__stringify(r)")(%1)\n\t"
r                  18 arch/mips/include/asm/tlbex.h void build_get_pmde64(u32 **p, struct uasm_label **l, struct uasm_reloc **r,
r                  24 arch/mips/include/asm/tlbex.h 			   struct uasm_reloc **r,
r                  68 arch/mips/include/asm/txx9/generic.h 	int r = 7;
r                  71 arch/mips/include/asm/txx9/generic.h 		r -= 4;
r                  75 arch/mips/include/asm/txx9/generic.h 		r -= 2;
r                  79 arch/mips/include/asm/txx9/generic.h 		r -= 1;
r                  80 arch/mips/include/asm/txx9/generic.h 	return r;
r                  96 arch/mips/include/asm/txx9/generic.h void __init txx9_sramc_init(struct resource *r);
r                  51 arch/mips/include/asm/txx9/tx4939.h 	__u32 r;
r                 309 arch/mips/include/asm/uasm.h void uasm_il_b(u32 **p, struct uasm_reloc **r, int lid);
r                 310 arch/mips/include/asm/uasm.h void uasm_il_bbit0(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 312 arch/mips/include/asm/uasm.h void uasm_il_bbit1(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 314 arch/mips/include/asm/uasm.h void uasm_il_beq(u32 **p, struct uasm_reloc **r, unsigned int r1,
r                 316 arch/mips/include/asm/uasm.h void uasm_il_beqz(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 317 arch/mips/include/asm/uasm.h void uasm_il_beqzl(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 318 arch/mips/include/asm/uasm.h void uasm_il_bgezl(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 319 arch/mips/include/asm/uasm.h void uasm_il_bgez(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 320 arch/mips/include/asm/uasm.h void uasm_il_bltz(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 321 arch/mips/include/asm/uasm.h void uasm_il_bne(u32 **p, struct uasm_reloc **r, unsigned int reg1,
r                 323 arch/mips/include/asm/uasm.h void uasm_il_bnez(u32 **p, struct uasm_reloc **r, unsigned int reg, int lid);
r                 250 arch/mips/include/asm/xtalk/xwidget.h 	widgetreg_t		r;
r                  69 arch/mips/kernel/irq-msc01.c 		u32 r;
r                  70 arch/mips/kernel/irq-msc01.c 		MSCIC_READ(MSC01_IC_SUP+irq*8, r);
r                  71 arch/mips/kernel/irq-msc01.c 		MSCIC_WRITE(MSC01_IC_SUP+irq*8, r | ~MSC01_IC_SUP_EDGE_BIT);
r                  72 arch/mips/kernel/irq-msc01.c 		MSCIC_WRITE(MSC01_IC_SUP+irq*8, r);
r                 314 arch/mips/kernel/module.c 	} r;
r                 326 arch/mips/kernel/module.c 	r.rel = (void *)sechdrs[relsec].sh_addr;
r                 327 arch/mips/kernel/module.c 	reloc_sz = rela ? sizeof(*r.rela) : sizeof(*r.rel);
r                 332 arch/mips/kernel/module.c 			+ r.rel->r_offset;
r                 335 arch/mips/kernel/module.c 			+ ELF_MIPS_R_SYM(*r.rel);
r                 346 arch/mips/kernel/module.c 		type = ELF_MIPS_R_TYPE(*r.rel);
r                 360 arch/mips/kernel/module.c 			v = sym->st_value + r.rela->r_addend;
r                 362 arch/mips/kernel/module.c 			r.rela = &r.rela[1];
r                 366 arch/mips/kernel/module.c 			r.rel = &r.rel[1];
r                1449 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_P_34K_EVENT(r, b)					\
r                1450 arch/mips/kernel/perf_event_mipsxx.c 	((b) == 0 || (r) == 18 || (b) == 21 || (b) == 22 ||		\
r                1451 arch/mips/kernel/perf_event_mipsxx.c 	 (b) == 25 || (b) == 39 || (r) == 44 || (r) == 174 ||		\
r                1452 arch/mips/kernel/perf_event_mipsxx.c 	 (r) == 176 || ((b) >= 50 && (b) <= 55) ||			\
r                1454 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_V_34K_EVENT(r) ((r) == 47)
r                1472 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_P_1004K_EVENT(r, b)					\
r                1473 arch/mips/kernel/perf_event_mipsxx.c 	((b) == 0 || (r) == 18 || (b) == 21 || (b) == 22 ||		\
r                1474 arch/mips/kernel/perf_event_mipsxx.c 	 (b) == 25 || (b) == 36 || (b) == 39 || (r) == 44 ||		\
r                1475 arch/mips/kernel/perf_event_mipsxx.c 	 (r) == 174 || (r) == 176 || ((b) >= 50 && (b) <= 59) ||	\
r                1476 arch/mips/kernel/perf_event_mipsxx.c 	 (r) == 188 || (b) == 61 || (b) == 62 ||			\
r                1478 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_V_1004K_EVENT(r)	((r) == 47)
r                1486 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_P_INTERAPTIV_EVENT(r, b)				\
r                1487 arch/mips/kernel/perf_event_mipsxx.c 	((b) == 0 || (r) == 18 || (b) == 21 || (b) == 22 ||		\
r                1489 arch/mips/kernel/perf_event_mipsxx.c 	 (r) == 44 || (r) == 174 || (r) == 176 || ((b) >= 50 &&		\
r                1490 arch/mips/kernel/perf_event_mipsxx.c 	 (b) <= 59) || (r) == 188 || (b) == 61 || (b) == 62 ||		\
r                1492 arch/mips/kernel/perf_event_mipsxx.c #define IS_RANGE_V_INTERAPTIV_EVENT(r)	((r) == 47 || (r) == 175)
r                 345 arch/mips/kernel/pm-cps.c 	struct uasm_reloc *r = relocs;
r                 405 arch/mips/kernel/pm-cps.c 		uasm_il_beqz(&p, &r, t2, lbl_incready);
r                 415 arch/mips/kernel/pm-cps.c 		uasm_il_beq(&p, &r, t1, r_online, lbl_disable_coherence);
r                 428 arch/mips/kernel/pm-cps.c 			uasm_il_bltz(&p, &r, t0, lbl_secondary_cont);
r                 432 arch/mips/kernel/pm-cps.c 			uasm_il_b(&p, &r, lbl_poll_cont);
r                 455 arch/mips/kernel/pm-cps.c 			uasm_il_b(&p, &r, lbl_secondary_hang);
r                 468 arch/mips/kernel/pm-cps.c 	cps_gen_cache_routine(&p, &l, &r, &cpu_data[cpu].icache,
r                 472 arch/mips/kernel/pm-cps.c 	cps_gen_cache_routine(&p, &l, &r, &cpu_data[cpu].dcache,
r                 499 arch/mips/kernel/pm-cps.c 		err = cps_gen_flush_fsb(&p, &l, &r, &cpu_data[cpu],
r                 525 arch/mips/kernel/pm-cps.c 			uasm_il_b(&p, &r, lbl_hang);
r                 548 arch/mips/kernel/pm-cps.c 			cps_gen_set_top_bit(&p, &l, &r, r_nc_count,
r                 585 arch/mips/kernel/pm-cps.c 		uasm_il_beqz(&p, &r, t2, lbl_decready);
r                 598 arch/mips/kernel/pm-cps.c 		cps_gen_set_top_bit(&p, &l, &r, r_nc_count, lbl_set_cont);
r                 622 arch/mips/kernel/pm-cps.c 	BUG_ON((r - relocs) > ARRAY_SIZE(relocs));
r                 935 arch/mips/kernel/ptrace.c #define REG_OFFSET_NAME(reg, r) {					\
r                 937 arch/mips/kernel/ptrace.c 	.offset = offsetof(struct pt_regs, r)				\
r                 137 arch/mips/kernel/relocate.c 	u32 *r;
r                 143 arch/mips/kernel/relocate.c 	for (r = _relocation_start; r < _relocation_end; r++) {
r                 145 arch/mips/kernel/relocate.c 		if (*r == 0)
r                 148 arch/mips/kernel/relocate.c 		type = (*r >> 24) & 0xff;
r                 149 arch/mips/kernel/relocate.c 		loc_orig = kbase_old + ((*r & 0x00ffffff) << 2);
r                 458 arch/mips/kernel/vpe.c 			char *r = rstrs[ELF32_R_TYPE(r_info)];
r                 460 arch/mips/kernel/vpe.c 				rel[i].r_offset, r ? r : "UNKNOWN",
r                 299 arch/mips/kvm/entry.c 	struct uasm_reloc __maybe_unused *r = relocs;
r                 374 arch/mips/kvm/entry.c 	uasm_il_bnez(&p, &r, T0, label_kernel_asid);
r                 473 arch/mips/kvm/entry.c 	struct uasm_reloc *r = relocs;
r                 505 arch/mips/kvm/entry.c 	build_get_pmde64(&p, &l, &r, K0, K1); /* get pmd in K1 */
r                 514 arch/mips/kvm/entry.c 	build_tlb_write_entry(&p, &l, &r, tlb_random);
r                 548 arch/mips/kvm/entry.c 	struct uasm_reloc *r = relocs;
r                 564 arch/mips/kvm/entry.c 	uasm_il_b(&p, &r, label_exit_common);
r                 591 arch/mips/kvm/entry.c 	struct uasm_reloc *r = relocs;
r                 685 arch/mips/kvm/entry.c 		uasm_il_beqz(&p, &r, V1, label_fpu_1);
r                 701 arch/mips/kvm/entry.c 		uasm_il_beqz(&p, &r, T0, label_msa_1);
r                 823 arch/mips/kvm/entry.c 	struct uasm_reloc *r = relocs;
r                 846 arch/mips/kvm/entry.c 	uasm_il_bnez(&p, &r, T0, label_return_to_host);
r                 437 arch/mips/kvm/mips.c 	int r = -EINTR;
r                 466 arch/mips/kvm/mips.c 	r = kvm_mips_callbacks->vcpu_run(run, vcpu);
r                 476 arch/mips/kvm/mips.c 	return r;
r                 872 arch/mips/kvm/mips.c 	int r = 0;
r                 889 arch/mips/kvm/mips.c 		r = -EINVAL;
r                 893 arch/mips/kvm/mips.c 	return r;
r                 921 arch/mips/kvm/mips.c 	long r;
r                 930 arch/mips/kvm/mips.c 		r = -EFAULT;
r                 934 arch/mips/kvm/mips.c 			r = kvm_mips_set_reg(vcpu, &reg);
r                 936 arch/mips/kvm/mips.c 			r = kvm_mips_get_reg(vcpu, &reg);
r                 944 arch/mips/kvm/mips.c 		r = -EFAULT;
r                 951 arch/mips/kvm/mips.c 		r = -E2BIG;
r                 954 arch/mips/kvm/mips.c 		r = kvm_mips_copy_reg_indices(vcpu, user_list->reg);
r                 960 arch/mips/kvm/mips.c 		r = -EFAULT;
r                 963 arch/mips/kvm/mips.c 		r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap);
r                 967 arch/mips/kvm/mips.c 		r = -ENOIOCTLCMD;
r                 971 arch/mips/kvm/mips.c 	return r;
r                 998 arch/mips/kvm/mips.c 	int r;
r                1002 arch/mips/kvm/mips.c 	r = kvm_get_dirty_log_protect(kvm, log, &flush);
r                1013 arch/mips/kvm/mips.c 	return r;
r                1021 arch/mips/kvm/mips.c 	int r;
r                1025 arch/mips/kvm/mips.c 	r = kvm_clear_dirty_log_protect(kvm, log, &flush);
r                1036 arch/mips/kvm/mips.c 	return r;
r                1041 arch/mips/kvm/mips.c 	long r;
r                1045 arch/mips/kvm/mips.c 		r = -ENOIOCTLCMD;
r                1048 arch/mips/kvm/mips.c 	return r;
r                1099 arch/mips/kvm/mips.c 	int r;
r                1107 arch/mips/kvm/mips.c 		r = 1;
r                1110 arch/mips/kvm/mips.c 		r = num_online_cpus();
r                1113 arch/mips/kvm/mips.c 		r = KVM_MAX_VCPUS;
r                1116 arch/mips/kvm/mips.c 		r = KVM_MAX_VCPU_ID;
r                1120 arch/mips/kvm/mips.c 		r = !!raw_cpu_has_fpu;
r                1135 arch/mips/kvm/mips.c 		r = cpu_has_msa && !(boot_cpu_data.msa_id & MSA_IR_WRPF);
r                1138 arch/mips/kvm/mips.c 		r = kvm_mips_callbacks->check_extension(kvm, ext);
r                1141 arch/mips/kvm/mips.c 	return r;
r                 526 arch/mips/kvm/trap_emul.c 	int r;
r                 530 arch/mips/kvm/trap_emul.c 		r = 1;
r                 533 arch/mips/kvm/trap_emul.c 		r = 0;
r                 537 arch/mips/kvm/trap_emul.c 	return r;
r                1229 arch/mips/kvm/trap_emul.c 	int r;
r                1253 arch/mips/kvm/trap_emul.c 	r = vcpu->arch.vcpu_run(run, vcpu);
r                1266 arch/mips/kvm/trap_emul.c 	return r;
r                2917 arch/mips/kvm/vz.c 	int r;
r                2922 arch/mips/kvm/vz.c 		r = 1;
r                2927 arch/mips/kvm/vz.c 		r = 2;
r                2931 arch/mips/kvm/vz.c 		r = 0;
r                2935 arch/mips/kvm/vz.c 	return r;
r                3151 arch/mips/kvm/vz.c 	int r;
r                3161 arch/mips/kvm/vz.c 	r = vcpu->arch.vcpu_run(run, vcpu);
r                3165 arch/mips/kvm/vz.c 	return r;
r                  85 arch/mips/lantiq/clk.c 		unsigned long *r = clk->rates;
r                  87 arch/mips/lantiq/clk.c 		while (*r && (*r != rate))
r                  88 arch/mips/lantiq/clk.c 			r++;
r                  89 arch/mips/lantiq/clk.c 		if (!*r) {
r                 105 arch/mips/lantiq/clk.c 		unsigned long *r = clk->rates;
r                 107 arch/mips/lantiq/clk.c 		while (*r && (*r != rate))
r                 108 arch/mips/lantiq/clk.c 			r++;
r                 109 arch/mips/lantiq/clk.c 		if (!*r) {
r                  32 arch/mips/lasat/sysctl.c 	int r;
r                  34 arch/mips/lasat/sysctl.c 	r = proc_dostring(table, write, buffer, lenp, ppos);
r                  35 arch/mips/lasat/sysctl.c 	if ((!write) || r)
r                  36 arch/mips/lasat/sysctl.c 		return r;
r                  51 arch/mips/lasat/sysctl.c 	int r;
r                  60 arch/mips/lasat/sysctl.c 	r = proc_dointvec(table, write, buffer, lenp, ppos);
r                  61 arch/mips/lasat/sysctl.c 	if (r)
r                  62 arch/mips/lasat/sysctl.c 		return r;
r                 143 arch/mips/lasat/sysctl.c 	int r;
r                 145 arch/mips/lasat/sysctl.c 	r = proc_dointvec(table, write, buffer, lenp, ppos);
r                 146 arch/mips/lasat/sysctl.c 	if (r < 0)
r                 147 arch/mips/lasat/sysctl.c 		return r;
r                 130 arch/mips/loongson64/common/mem.c 	struct resource *r;
r                 139 arch/mips/loongson64/common/mem.c 				r = &dev->resource[idx];
r                 140 arch/mips/loongson64/common/mem.c 				if (!r->start && r->end)
r                 142 arch/mips/loongson64/common/mem.c 				if (r->flags & IORESOURCE_IO)
r                 144 arch/mips/loongson64/common/mem.c 				if (r->flags & IORESOURCE_MEM) {
r                 145 arch/mips/loongson64/common/mem.c 					uca_start = r->start;
r                 146 arch/mips/loongson64/common/mem.c 					uca_end = r->end;
r                1419 arch/mips/math-emu/cp1emu.c static union ieee754##p fpemu_##p##_##name(union ieee754##p r,		\
r                1425 arch/mips/math-emu/cp1emu.c 	s = f2(s, r);							\
r                  40 arch/mips/math-emu/ieee754dp.c union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp r)
r                  42 arch/mips/math-emu/ieee754dp.c 	assert(ieee754dp_issnan(r));
r                  46 arch/mips/math-emu/ieee754dp.c 		DPMANT(r) |= DP_MBIT(DP_FBITS - 1);
r                  48 arch/mips/math-emu/ieee754dp.c 		DPMANT(r) &= ~DP_MBIT(DP_FBITS - 1);
r                  49 arch/mips/math-emu/ieee754dp.c 		if (!ieee754dp_isnan(r))
r                  50 arch/mips/math-emu/ieee754dp.c 			DPMANT(r) |= DP_MBIT(DP_FBITS - 2);
r                  53 arch/mips/math-emu/ieee754dp.c 	return r;
r                  58 arch/mips/math-emu/ieee754dp.h 	union ieee754dp r;
r                  65 arch/mips/math-emu/ieee754dp.h 	r.sign = s;
r                  66 arch/mips/math-emu/ieee754dp.h 	r.bexp = bx;
r                  67 arch/mips/math-emu/ieee754dp.h 	r.mant = m;
r                  69 arch/mips/math-emu/ieee754dp.h 	return r;
r                  40 arch/mips/math-emu/ieee754sp.c union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp r)
r                  42 arch/mips/math-emu/ieee754sp.c 	assert(ieee754sp_issnan(r));
r                  46 arch/mips/math-emu/ieee754sp.c 		SPMANT(r) |= SP_MBIT(SP_FBITS - 1);
r                  48 arch/mips/math-emu/ieee754sp.c 		SPMANT(r) &= ~SP_MBIT(SP_FBITS - 1);
r                  49 arch/mips/math-emu/ieee754sp.c 		if (!ieee754sp_isnan(r))
r                  50 arch/mips/math-emu/ieee754sp.c 			SPMANT(r) |= SP_MBIT(SP_FBITS - 2);
r                  53 arch/mips/math-emu/ieee754sp.c 	return r;
r                  62 arch/mips/math-emu/ieee754sp.h 	union ieee754sp r;
r                  69 arch/mips/math-emu/ieee754sp.h 	r.sign = s;
r                  70 arch/mips/math-emu/ieee754sp.h 	r.bexp = bx;
r                  71 arch/mips/math-emu/ieee754sp.h 	r.mant = m;
r                  73 arch/mips/math-emu/ieee754sp.h 	return r;
r                  15 arch/mips/math-emu/sp_sqrt.c 	unsigned int r;
r                  75 arch/mips/math-emu/sp_sqrt.c 	r = 0x01000000;		/* r = moving bit from right to left */
r                  77 arch/mips/math-emu/sp_sqrt.c 	while (r != 0) {
r                  78 arch/mips/math-emu/sp_sqrt.c 		t = s + r;
r                  80 arch/mips/math-emu/sp_sqrt.c 			s = t + r;
r                  82 arch/mips/math-emu/sp_sqrt.c 			q += r;
r                  85 arch/mips/math-emu/sp_sqrt.c 		r >>= 1;
r                 279 arch/mips/mm/page.c 	struct uasm_reloc *r = relocs;
r                 326 arch/mips/mm/page.c 			uasm_il_bne(&buf, &r, A0, A2, label_clear_pref);
r                 343 arch/mips/mm/page.c 				uasm_il_bne(&buf, &r, A0, A2,
r                 426 arch/mips/mm/page.c 	struct uasm_reloc *r = relocs;
r                 512 arch/mips/mm/page.c 			uasm_il_bne(&buf, &r, A2, A0, label_copy_pref_both);
r                 553 arch/mips/mm/page.c 				uasm_il_bne(&buf, &r, A2, A0,
r                 587 arch/mips/mm/page.c 				uasm_il_bne(&buf, &r, A2, A0,
r                 201 arch/mips/mm/tlbex.c static void uasm_bgezl_hazard(u32 **p, struct uasm_reloc **r, int instance)
r                 205 arch/mips/mm/tlbex.c 		uasm_il_bgezl(p, r, 0, label_tlbw_hazard_0 + instance);
r                 335 arch/mips/mm/tlbex.c 	int r;
r                 338 arch/mips/mm/tlbex.c 	r = ffs(a);
r                 340 arch/mips/mm/tlbex.c 	if (r == 0)
r                 343 arch/mips/mm/tlbex.c 	r--; /* make it zero based */
r                 345 arch/mips/mm/tlbex.c 	kscratch_used_mask |= (1 << r);
r                 347 arch/mips/mm/tlbex.c 	return r;
r                 357 arch/mips/mm/tlbex.c 	struct work_registers r;
r                 362 arch/mips/mm/tlbex.c 		r.r1 = K0;
r                 363 arch/mips/mm/tlbex.c 		r.r2 = K1;
r                 364 arch/mips/mm/tlbex.c 		r.r3 = 1;
r                 365 arch/mips/mm/tlbex.c 		return r;
r                 385 arch/mips/mm/tlbex.c 	r.r1 = K1;
r                 386 arch/mips/mm/tlbex.c 	r.r2 = 1;
r                 387 arch/mips/mm/tlbex.c 	r.r3 = 2;
r                 388 arch/mips/mm/tlbex.c 	return r;
r                 499 arch/mips/mm/tlbex.c 			   struct uasm_reloc **r,
r                 527 arch/mips/mm/tlbex.c 		uasm_bgezl_hazard(p, r, hazard_instance);
r                 651 arch/mips/mm/tlbex.c static void build_restore_pagemask(u32 **p, struct uasm_reloc **r,
r                 668 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 672 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 675 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 686 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 690 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 693 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, lid);
r                 700 arch/mips/mm/tlbex.c 				       struct uasm_reloc **r,
r                 710 arch/mips/mm/tlbex.c 	build_tlb_write_entry(p, l, r, wmode);
r                 712 arch/mips/mm/tlbex.c 	build_restore_pagemask(p, r, tmp, label_leave, restore_scratch);
r                 719 arch/mips/mm/tlbex.c build_is_huge_pte(u32 **p, struct uasm_reloc **r, unsigned int tmp,
r                 724 arch/mips/mm/tlbex.c 		uasm_il_bbit1(p, r, tmp, ilog2(_PAGE_HUGE), lid);
r                 727 arch/mips/mm/tlbex.c 		uasm_il_bnez(p, r, tmp, lid);
r                 762 arch/mips/mm/tlbex.c static void build_huge_handler_tail(u32 **p, struct uasm_reloc **r,
r                 770 arch/mips/mm/tlbex.c 	uasm_il_beqz(p, r, pte, label_tlb_huge_update);
r                 781 arch/mips/mm/tlbex.c 		build_tlb_write_entry(p, l, r, tlb_indexed);
r                 786 arch/mips/mm/tlbex.c 		build_huge_tlb_write_entry(p, l, r, pte, tlb_random, 0);
r                 792 arch/mips/mm/tlbex.c 	build_huge_tlb_write_entry(p, l, r, pte, tlb_indexed, 0);
r                 801 arch/mips/mm/tlbex.c void build_get_pmde64(u32 **p, struct uasm_label **l, struct uasm_reloc **r,
r                 825 arch/mips/mm/tlbex.c 		uasm_il_bnez(p, r, ptr, label_vmalloc);
r                 827 arch/mips/mm/tlbex.c 		uasm_il_bltz(p, r, tmp, label_vmalloc);
r                 892 arch/mips/mm/tlbex.c build_get_pgd_vmalloc64(u32 **p, struct uasm_label **l, struct uasm_reloc **r,
r                 906 arch/mips/mm/tlbex.c 			uasm_il_bltz(p, r, bvaddr, label_vmalloc_done);
r                 911 arch/mips/mm/tlbex.c 			uasm_il_bgez(p, r, bvaddr, label_large_segbits_fault);
r                 916 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, label_vmalloc_done);
r                 920 arch/mips/mm/tlbex.c 			uasm_il_b(p, r, label_vmalloc_done);
r                1107 arch/mips/mm/tlbex.c 			       struct uasm_reloc **r, unsigned int tmp,
r                1134 arch/mips/mm/tlbex.c 		uasm_il_bnez(p, r, scratch, label_vmalloc);
r                1158 arch/mips/mm/tlbex.c 		uasm_il_bltz(p, r, tmp, label_vmalloc);
r                1234 arch/mips/mm/tlbex.c 	uasm_il_bbit1(p, r, scratch, ilog2(_PAGE_HUGE), label_tlb_huge_update);
r                1273 arch/mips/mm/tlbex.c 		build_tlb_write_entry(p, l, r, tlb_random);
r                1277 arch/mips/mm/tlbex.c 		build_tlb_write_entry(p, l, r, tlb_random);
r                1282 arch/mips/mm/tlbex.c 		build_tlb_write_entry(p, l, r, tlb_random);
r                1304 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                1316 arch/mips/mm/tlbex.c 		htlb_info = build_fast_tlb_refill_handler(&p, &l, &r, K0, K1,
r                1337 arch/mips/mm/tlbex.c 			uasm_il_bnez(&p, &r, K0, label_leave);
r                1342 arch/mips/mm/tlbex.c 		build_get_pmde64(&p, &l, &r, K0, K1); /* get pmd in K1 */
r                1348 arch/mips/mm/tlbex.c 		build_is_huge_pte(&p, &r, K0, K1, label_tlb_huge_update);
r                1353 arch/mips/mm/tlbex.c 		build_tlb_write_entry(&p, &l, &r, tlb_random);
r                1362 arch/mips/mm/tlbex.c 	build_huge_tlb_write_entry(&p, &l, &r, K0, tlb_random,
r                1367 arch/mips/mm/tlbex.c 	build_get_pgd_vmalloc64(&p, &l, &r, K0, K1, vmalloc_mode);
r                1451 arch/mips/mm/tlbex.c 					uasm_il_b(&f, &r, label_split);
r                1532 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                1541 arch/mips/mm/tlbex.c 		uasm_il_beqz(&p, &r, K1, label_vmalloc);
r                1544 arch/mips/mm/tlbex.c 		uasm_il_bgez(&p, &r, K0, label_large_segbits_fault);
r                1604 arch/mips/mm/tlbex.c 		struct uasm_reloc *r = relocs;
r                1615 arch/mips/mm/tlbex.c 		uasm_il_bnez(&p, &r, a1, label_tlbl_goaround1);
r                1689 arch/mips/mm/tlbex.c iPTE_SW(u32 **p, struct uasm_reloc **r, unsigned int pte, unsigned int ptr,
r                1712 arch/mips/mm/tlbex.c 		uasm_il_beqzl(p, r, pte, label_smp_pgtable_change);
r                1714 arch/mips/mm/tlbex.c 		uasm_il_beqz(p, r, pte, label_smp_pgtable_change);
r                1723 arch/mips/mm/tlbex.c 		uasm_il_beqz(p, r, pte, label_smp_pgtable_change);
r                1757 arch/mips/mm/tlbex.c build_pte_present(u32 **p, struct uasm_reloc **r,
r                1765 arch/mips/mm/tlbex.c 			uasm_il_bbit0(p, r, pte, ilog2(_PAGE_PRESENT), lid);
r                1773 arch/mips/mm/tlbex.c 			uasm_il_beqz(p, r, t, lid);
r                1786 arch/mips/mm/tlbex.c 		uasm_il_bnez(p, r, t, lid);
r                1795 arch/mips/mm/tlbex.c build_make_valid(u32 **p, struct uasm_reloc **r, unsigned int pte,
r                1800 arch/mips/mm/tlbex.c 	iPTE_SW(p, r, pte, ptr, mode, scratch);
r                1808 arch/mips/mm/tlbex.c build_pte_writable(u32 **p, struct uasm_reloc **r,
r                1823 arch/mips/mm/tlbex.c 	uasm_il_bnez(p, r, t, lid);
r                1835 arch/mips/mm/tlbex.c build_make_write(u32 **p, struct uasm_reloc **r, unsigned int pte,
r                1841 arch/mips/mm/tlbex.c 	iPTE_SW(p, r, pte, ptr, mode, scratch);
r                1849 arch/mips/mm/tlbex.c build_pte_modifiable(u32 **p, struct uasm_reloc **r,
r                1854 arch/mips/mm/tlbex.c 		uasm_il_bbit0(p, r, pte, ilog2(_PAGE_WRITE), lid);
r                1860 arch/mips/mm/tlbex.c 		uasm_il_beqz(p, r, t, lid);
r                1896 arch/mips/mm/tlbex.c 			     struct uasm_reloc **r, unsigned int pte,
r                1901 arch/mips/mm/tlbex.c 	uasm_il_bltz(p, r, tmp, label_r3000_write_probe_fail); /* cp0 delay */
r                1936 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                1943 arch/mips/mm/tlbex.c 	build_pte_present(&p, &r, K0, K1, -1, label_nopage_tlbl);
r                1945 arch/mips/mm/tlbex.c 	build_make_valid(&p, &r, K0, K1, -1);
r                1946 arch/mips/mm/tlbex.c 	build_r3000_tlb_reload_write(&p, &l, &r, K0, K1);
r                1966 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                1973 arch/mips/mm/tlbex.c 	build_pte_writable(&p, &r, K0, K1, -1, label_nopage_tlbs);
r                1975 arch/mips/mm/tlbex.c 	build_make_write(&p, &r, K0, K1, -1);
r                1976 arch/mips/mm/tlbex.c 	build_r3000_tlb_reload_write(&p, &l, &r, K0, K1);
r                1996 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                2003 arch/mips/mm/tlbex.c 	build_pte_modifiable(&p, &r, K0, K1,  -1, label_nopage_tlbm);
r                2005 arch/mips/mm/tlbex.c 	build_make_write(&p, &r, K0, K1, -1);
r                2048 arch/mips/mm/tlbex.c 				   struct uasm_reloc **r)
r                2053 arch/mips/mm/tlbex.c 	build_get_pmde64(p, l, r, wr.r1, wr.r2); /* get pmd in ptr */
r                2064 arch/mips/mm/tlbex.c 	build_is_huge_pte(p, r, wr.r1, wr.r2, label_tlb_huge_update);
r                2083 arch/mips/mm/tlbex.c 			uasm_il_bltz(p, r, wr.r3, label_leave);
r                2092 arch/mips/mm/tlbex.c 				   struct uasm_reloc **r, unsigned int tmp,
r                2098 arch/mips/mm/tlbex.c 	build_tlb_write_entry(p, l, r, tlb_indexed);
r                2104 arch/mips/mm/tlbex.c 	build_get_pgd_vmalloc64(p, l, r, tmp, ptr, not_refill);
r                2112 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                2129 arch/mips/mm/tlbex.c 		uasm_il_bnez(&p, &r, K0, label_leave);
r                2133 arch/mips/mm/tlbex.c 	wr = build_r4000_tlbchange_handler_head(&p, &l, &r);
r                2134 arch/mips/mm/tlbex.c 	build_pte_present(&p, &r, wr.r1, wr.r2, wr.r3, label_nopage_tlbl);
r                2144 arch/mips/mm/tlbex.c 			uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID),
r                2148 arch/mips/mm/tlbex.c 			uasm_il_beqz(&p, &r, wr.r3, label_tlbl_goaround1);
r                2190 arch/mips/mm/tlbex.c 			uasm_il_bbit1(&p, &r, wr.r3, 1, label_nopage_tlbl);
r                2195 arch/mips/mm/tlbex.c 			uasm_il_bnez(&p, &r, wr.r3, label_nopage_tlbl);
r                2200 arch/mips/mm/tlbex.c 	build_make_valid(&p, &r, wr.r1, wr.r2, wr.r3);
r                2201 arch/mips/mm/tlbex.c 	build_r4000_tlbchange_handler_tail(&p, &l, &r, wr.r1, wr.r2);
r                2210 arch/mips/mm/tlbex.c 	build_pte_present(&p, &r, wr.r1, wr.r2, wr.r3, label_nopage_tlbl);
r                2219 arch/mips/mm/tlbex.c 			uasm_il_bbit0(&p, &r, wr.r1, ilog2(_PAGE_VALID),
r                2223 arch/mips/mm/tlbex.c 			uasm_il_beqz(&p, &r, wr.r3, label_tlbl_goaround2);
r                2265 arch/mips/mm/tlbex.c 			uasm_il_bbit0(&p, &r, wr.r3, 1, label_tlbl_goaround2);
r                2268 arch/mips/mm/tlbex.c 			uasm_il_beqz(&p, &r, wr.r3, label_tlbl_goaround2);
r                2276 arch/mips/mm/tlbex.c 		build_restore_pagemask(&p, &r, wr.r3, label_nopage_tlbl, 0);
r                2281 arch/mips/mm/tlbex.c 	build_huge_handler_tail(&p, &r, &l, wr.r1, wr.r2, 1);
r                2312 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                2319 arch/mips/mm/tlbex.c 	wr = build_r4000_tlbchange_handler_head(&p, &l, &r);
r                2320 arch/mips/mm/tlbex.c 	build_pte_writable(&p, &r, wr.r1, wr.r2, wr.r3, label_nopage_tlbs);
r                2323 arch/mips/mm/tlbex.c 	build_make_write(&p, &r, wr.r1, wr.r2, wr.r3);
r                2324 arch/mips/mm/tlbex.c 	build_r4000_tlbchange_handler_tail(&p, &l, &r, wr.r1, wr.r2);
r                2333 arch/mips/mm/tlbex.c 	build_pte_writable(&p, &r, wr.r1, wr.r2, wr.r3, label_nopage_tlbs);
r                2337 arch/mips/mm/tlbex.c 	build_huge_handler_tail(&p, &r, &l, wr.r1, wr.r2, 1);
r                2368 arch/mips/mm/tlbex.c 	struct uasm_reloc *r = relocs;
r                2375 arch/mips/mm/tlbex.c 	wr = build_r4000_tlbchange_handler_head(&p, &l, &r);
r                2376 arch/mips/mm/tlbex.c 	build_pte_modifiable(&p, &r, wr.r1, wr.r2, wr.r3, label_nopage_tlbm);
r                2380 arch/mips/mm/tlbex.c 	build_make_write(&p, &r, wr.r1, wr.r2, wr.r3);
r                2381 arch/mips/mm/tlbex.c 	build_r4000_tlbchange_handler_tail(&p, &l, &r, wr.r1, wr.r2);
r                2390 arch/mips/mm/tlbex.c 	build_pte_modifiable(&p, &r, wr.r1, wr.r2,  wr.r3, label_nopage_tlbm);
r                2394 arch/mips/mm/tlbex.c 	build_huge_handler_tail(&p, &r, &l, wr.r1, wr.r2, 0);
r                 558 arch/mips/mm/uasm.c void uasm_il_bltz(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 561 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 566 arch/mips/mm/uasm.c void uasm_il_b(u32 **p, struct uasm_reloc **r, int lid)
r                 568 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 573 arch/mips/mm/uasm.c void uasm_il_beq(u32 **p, struct uasm_reloc **r, unsigned int r1,
r                 576 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 581 arch/mips/mm/uasm.c void uasm_il_beqz(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 584 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 589 arch/mips/mm/uasm.c void uasm_il_beqzl(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 592 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 597 arch/mips/mm/uasm.c void uasm_il_bne(u32 **p, struct uasm_reloc **r, unsigned int reg1,
r                 600 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 605 arch/mips/mm/uasm.c void uasm_il_bnez(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 608 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 613 arch/mips/mm/uasm.c void uasm_il_bgezl(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 616 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 621 arch/mips/mm/uasm.c void uasm_il_bgez(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 624 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 629 arch/mips/mm/uasm.c void uasm_il_bbit0(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 632 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 637 arch/mips/mm/uasm.c void uasm_il_bbit1(u32 **p, struct uasm_reloc **r, unsigned int reg,
r                 640 arch/mips/mm/uasm.c 	uasm_r_mips_pc16(r, *p, lid);
r                 144 arch/mips/net/ebpf_jit.c 	unsigned int r;
r                 154 arch/mips/net/ebpf_jit.c 	r = target_va & 0x0ffffffful;
r                 155 arch/mips/net/ebpf_jit.c 	return r;
r                 662 arch/mips/net/ebpf_jit.c 	int src, dst, r, td, ts, mem_off, b_off;
r                 692 arch/mips/net/ebpf_jit.c 		r = gen_imm_insn(insn, ctx, this_idx);
r                 693 arch/mips/net/ebpf_jit.c 		if (r < 0)
r                 694 arch/mips/net/ebpf_jit.c 			return r;
r                1522 arch/mips/net/ebpf_jit.c 	int i, r;
r                1535 arch/mips/net/ebpf_jit.c 		r = build_one_insn(insn, ctx, i, prog->len);
r                1536 arch/mips/net/ebpf_jit.c 		if (r < 0)
r                1537 arch/mips/net/ebpf_jit.c 			return r;
r                1538 arch/mips/net/ebpf_jit.c 		i += r;
r                 143 arch/mips/netlogic/xlp/ahci-init-xlp2.c #define nlm_read_sata_reg(b, r)		nlm_read_reg(b, r)
r                 144 arch/mips/netlogic/xlp/ahci-init-xlp2.c #define nlm_write_sata_reg(b, r, v)	nlm_write_reg(b, r, v)
r                  87 arch/mips/netlogic/xlp/ahci-init.c #define nlm_read_sata_reg(b, r)		nlm_read_reg(b, r)
r                  88 arch/mips/netlogic/xlp/ahci-init.c #define nlm_write_sata_reg(b, r, v)	nlm_write_reg(b, r, v)
r                  32 arch/mips/netlogic/xlp/cop2-ex.c void nlm_cop2_save(struct nlm_cop2_state *r)
r                  54 arch/mips/netlogic/xlp/cop2-ex.c 		: "=m"(*r)
r                  55 arch/mips/netlogic/xlp/cop2-ex.c 		: "r"(r->tx), "r"(r->rx));
r                  57 arch/mips/netlogic/xlp/cop2-ex.c 	r->tx_msg_status = __read_32bit_c2_register($2, 0);
r                  58 arch/mips/netlogic/xlp/cop2-ex.c 	r->rx_msg_status = __read_32bit_c2_register($3, 0) & 0x0fffffff;
r                  61 arch/mips/netlogic/xlp/cop2-ex.c void nlm_cop2_restore(struct nlm_cop2_state *r)
r                  85 arch/mips/netlogic/xlp/cop2-ex.c 		: : "m"(*r), "r"(r->tx), "r"(r->rx));
r                  87 arch/mips/netlogic/xlp/cop2-ex.c 	__write_32bit_c2_register($2, 0, r->tx_msg_status);
r                  89 arch/mips/netlogic/xlp/cop2-ex.c 	__write_32bit_c2_register($3, 0, r->rx_msg_status | rstat);
r                  84 arch/mips/netlogic/xlp/usb-init-xlp2.c #define nlm_read_usb_reg(b, r)		nlm_read_reg(b, r)
r                  85 arch/mips/netlogic/xlp/usb-init-xlp2.c #define nlm_write_usb_reg(b, r, v)	nlm_write_reg(b, r, v)
r                  63 arch/mips/netlogic/xlp/usb-init.c #define nlm_read_usb_reg(b, r)			nlm_read_reg(b, r)
r                  64 arch/mips/netlogic/xlp/usb-init.c #define nlm_write_usb_reg(b, r, v)		nlm_write_reg(b, r, v)
r                  82 arch/mips/oprofile/op_model_mipsxx.c #define __define_perf_accessors(r, n, np)				\
r                  84 arch/mips/oprofile/op_model_mipsxx.c static inline unsigned int r_c0_ ## r ## n(void)			\
r                  90 arch/mips/oprofile/op_model_mipsxx.c 		return read_c0_ ## r ## n();				\
r                  92 arch/mips/oprofile/op_model_mipsxx.c 		return read_c0_ ## r ## np();				\
r                  99 arch/mips/oprofile/op_model_mipsxx.c static inline void w_c0_ ## r ## n(unsigned int value)			\
r                 105 arch/mips/oprofile/op_model_mipsxx.c 		write_c0_ ## r ## n(value);				\
r                 108 arch/mips/oprofile/op_model_mipsxx.c 		write_c0_ ## r ## np(value);				\
r                 105 arch/mips/pci/pci-alchemy.c 	unsigned long offset, status, cfg_base, flags, entryLo0, entryLo1, r;
r                 114 arch/mips/pci/pci-alchemy.c 	r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff;
r                 115 arch/mips/pci/pci-alchemy.c 	r |= PCI_STATCMD_STATUS(0x2000);
r                 116 arch/mips/pci/pci-alchemy.c 	__raw_writel(r, ctx->regs + PCI_REG_STATCMD);
r                 368 arch/mips/pci/pci-alchemy.c 	struct resource *r;
r                 386 arch/mips/pci/pci-alchemy.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 387 arch/mips/pci/pci-alchemy.c 	if (!r) {
r                 393 arch/mips/pci/pci-alchemy.c 	if (!request_mem_region(r->start, resource_size(r), pdev->name)) {
r                 412 arch/mips/pci/pci-alchemy.c 	ctx->regs = ioremap_nocache(r->start, resource_size(r));
r                 499 arch/mips/pci/pci-alchemy.c 	release_mem_region(r->start, resource_size(r));
r                 251 arch/mips/pci/pci-legacy.c 	struct resource *r;
r                 260 arch/mips/pci/pci-legacy.c 		r = &dev->resource[idx];
r                 261 arch/mips/pci/pci-legacy.c 		if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM)))
r                 264 arch/mips/pci/pci-legacy.c 				(!(r->flags & IORESOURCE_ROM_ENABLE)))
r                 266 arch/mips/pci/pci-legacy.c 		if (!r->start && r->end) {
r                 271 arch/mips/pci/pci-legacy.c 		if (r->flags & IORESOURCE_IO)
r                 273 arch/mips/pci/pci-legacy.c 		if (r->flags & IORESOURCE_MEM)
r                 192 arch/mips/rb532/gpio.c 	struct resource *r;
r                 194 arch/mips/rb532/gpio.c 	r = rb532_gpio_reg0_res;
r                 195 arch/mips/rb532/gpio.c 	rb532_gpio_chip->regbase = ioremap_nocache(r->start, resource_size(r));
r                  55 arch/mips/sibyte/swarm/platform.c 	struct resource *r;
r                  75 arch/mips/sibyte/swarm/platform.c 	r = swarm_pata_resource;
r                  76 arch/mips/sibyte/swarm/platform.c 	r[0].start = offset + (SWARM_IDE_BASE << SWARM_IDE_SHIFT);
r                  77 arch/mips/sibyte/swarm/platform.c 	r[0].end   = offset + ((SWARM_IDE_BASE + 8) << SWARM_IDE_SHIFT) - 1;
r                  78 arch/mips/sibyte/swarm/platform.c 	r[1].start = offset + (SWARM_IDE_CTRL << SWARM_IDE_SHIFT);
r                  79 arch/mips/sibyte/swarm/platform.c 	r[1].end   = offset + ((SWARM_IDE_CTRL + 1) << SWARM_IDE_SHIFT) - 1;
r                  34 arch/mips/sni/eisa.c 	int r;
r                  36 arch/mips/sni/eisa.c 	r = platform_device_register(&eisa_root_dev);
r                  37 arch/mips/sni/eisa.c 	if (!r)
r                  38 arch/mips/sni/eisa.c 		return r;
r                  60 arch/mips/txx9/generic/irq_tx4939.c 		lvlp = &tx4939_ircptr->lvl[(irq_nr % 16) / 2].r;
r                  63 arch/mips/txx9/generic/irq_tx4939.c 		lvlp = &tx4939_ircptr->lvl[8 + (irq_nr % 16) / 2].r;
r                  78 arch/mips/txx9/generic/irq_tx4939.c 		lvlp = &tx4939_ircptr->lvl[(irq_nr % 16) / 2].r;
r                  81 arch/mips/txx9/generic/irq_tx4939.c 		lvlp = &tx4939_ircptr->lvl[8 + (irq_nr % 16) / 2].r;
r                 100 arch/mips/txx9/generic/irq_tx4939.c 			     &tx4939_ircptr->edc.r);
r                 132 arch/mips/txx9/generic/irq_tx4939.c 		crp = &tx4939_ircptr->dm[(irq_nr & 8) >> 3].r;
r                 135 arch/mips/txx9/generic/irq_tx4939.c 		crp = &tx4939_ircptr->dm2[((irq_nr & 8) >> 3)].r;
r                 172 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(0, &tx4939_ircptr->den.r);
r                 173 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(0, &tx4939_ircptr->maskint.r);
r                 174 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(0, &tx4939_ircptr->maskext.r);
r                 184 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(0, &tx4939_ircptr->msk.r);
r                 186 arch/mips/txx9/generic/irq_tx4939.c 		__raw_writel(0, &tx4939_ircptr->lvl[i].r);
r                 189 arch/mips/txx9/generic/irq_tx4939.c 		__raw_writel(0, &tx4939_ircptr->dm[i].r);
r                 191 arch/mips/txx9/generic/irq_tx4939.c 		__raw_writel(0, &tx4939_ircptr->dm2[i].r);
r                 193 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(TXx9_IRCER_ICE, &tx4939_ircptr->den.r);
r                 194 arch/mips/txx9/generic/irq_tx4939.c 	__raw_writel(irc_elevel, &tx4939_ircptr->msk.r);
r                 211 arch/mips/txx9/generic/irq_tx4939.c 	u32 csr = __raw_readl(&tx4939_ircptr->cs.r);
r                 926 arch/mips/txx9/generic/setup.c void __init txx9_sramc_init(struct resource *r)
r                 938 arch/mips/txx9/generic/setup.c 	size = resource_size(r);
r                 939 arch/mips/txx9/generic/setup.c 	dev->base = ioremap(r->start, size);
r                 311 arch/mips/txx9/rbtx4939/setup.c 	map_word r;
r                 314 arch/mips/txx9/rbtx4939/setup.c 	r.x[0] = __raw_readw(map->virt + ofs);
r                 315 arch/mips/txx9/rbtx4939/setup.c 	return r;
r                 420 arch/mips/txx9/rbtx4939/setup.c 		struct resource *r = &pdevs[i].res;
r                 423 arch/mips/txx9/rbtx4939/setup.c 		r->start = 0x1f000000 - i * 0x1000000;
r                 424 arch/mips/txx9/rbtx4939/setup.c 		r->end = r->start + 0x1000000 - 1;
r                 425 arch/mips/txx9/rbtx4939/setup.c 		r->flags = IORESOURCE_MEM;
r                 428 arch/mips/txx9/rbtx4939/setup.c 		dev->resource = r;
r                 128 arch/nds32/include/asm/sfp-machine.h #define udiv_qrnnd(q, r, n1, n0, d)				\
r                 157 arch/nds32/include/asm/sfp-machine.h 	(r) = __r0;						\
r                  11 arch/nds32/math-emu/fd2si.c 	int r;
r                  25 arch/nds32/math-emu/fd2si.c 		FP_TO_INT_ROUND_D(r, A, 32, 1);
r                  27 arch/nds32/math-emu/fd2si.c 		*(int *)ft = r;
r                  11 arch/nds32/math-emu/fd2siz.c 	int r;
r                  25 arch/nds32/math-emu/fd2siz.c 		FP_TO_INT_D(r, A, 32, 1);
r                  27 arch/nds32/math-emu/fd2siz.c 		*(int *)ft = r;
r                  11 arch/nds32/math-emu/fd2ui.c 	unsigned int r;
r                  25 arch/nds32/math-emu/fd2ui.c 		FP_TO_INT_ROUND_D(r, A, 32, 0);
r                  27 arch/nds32/math-emu/fd2ui.c 		*(unsigned int *)ft = r;
r                  11 arch/nds32/math-emu/fd2uiz.c 	unsigned int r;
r                  25 arch/nds32/math-emu/fd2uiz.c 		FP_TO_INT_D(r, A, 32, 0);
r                  27 arch/nds32/math-emu/fd2uiz.c 		*(unsigned int *)ft = r;
r                  11 arch/nds32/math-emu/fs2si.c 	int r;
r                  25 arch/nds32/math-emu/fs2si.c 		FP_TO_INT_ROUND_S(r, A, 32, 1);
r                  27 arch/nds32/math-emu/fs2si.c 		*(int *)ft = r;
r                  11 arch/nds32/math-emu/fs2siz.c 	int r;
r                  25 arch/nds32/math-emu/fs2siz.c 		FP_TO_INT_S(r, A, 32, 1);
r                  27 arch/nds32/math-emu/fs2siz.c 		*(int *)ft = r;
r                  11 arch/nds32/math-emu/fs2ui.c 	unsigned int r;
r                  25 arch/nds32/math-emu/fs2ui.c 		FP_TO_INT_ROUND_S(r, A, 32, 0);
r                  27 arch/nds32/math-emu/fs2ui.c 		*(unsigned int *)ft = r;
r                  11 arch/nds32/math-emu/fs2uiz.c 	unsigned int r;
r                  25 arch/nds32/math-emu/fs2uiz.c 		FP_TO_INT_S(r, A, 32, 0);
r                  27 arch/nds32/math-emu/fs2uiz.c 		*(unsigned int *)ft = r;
r                  36 arch/nios2/include/asm/pgtable.h #define MKP(x, w, r) __pgprot(_PAGE_PRESENT | _PAGE_CACHED |		\
r                  38 arch/nios2/include/asm/pgtable.h 				((r) ? _PAGE_READ : 0) |		\
r                  32 arch/nios2/include/asm/registers.h #define RDCTL(r)	__builtin_rdctl(r)
r                  33 arch/nios2/include/asm/registers.h #define WRCTL(r, v)	__builtin_wrctl(r, v)
r                 206 arch/nios2/kernel/misaligned.c 	int i, r, offset;
r                 213 arch/nios2/kernel/misaligned.c 		r = sys_stack_frame_reg_offset[i];
r                 214 arch/nios2/kernel/misaligned.c 		reg_offsets[r] = offset;
r                 221 arch/nios2/kernel/misaligned.c 		r = sys_stack_frame_reg_offset[i];
r                 222 arch/nios2/kernel/misaligned.c 		reg_offsets[r] = offset;
r                 258 arch/nios2/kernel/process.c int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r)
r                 100 arch/parisc/include/asm/assembly.h 	sub     \gr, %r1, \gr
r                 105 arch/parisc/include/asm/assembly.h 	add     \gr, %r1, \gr
r                 119 arch/parisc/include/asm/assembly.h 	.macro shlw r, sa, t
r                 124 arch/parisc/include/asm/assembly.h 	.macro shld r, sa, t
r                 129 arch/parisc/include/asm/assembly.h 	.macro shr r, sa, t
r                 134 arch/parisc/include/asm/assembly.h 	.macro shrd r, sa, t
r                 157 arch/parisc/include/asm/assembly.h #define SAVE_SP(r, where) mfsp r, %r1 ! STREG %r1, where
r                 158 arch/parisc/include/asm/assembly.h #define REST_SP(r, where) LDREG where, %r1 ! mtsp %r1, r
r                 159 arch/parisc/include/asm/assembly.h #define SAVE_CR(r, where) mfctl r, %r1 ! STREG %r1, where
r                 160 arch/parisc/include/asm/assembly.h #define REST_CR(r, where) LDREG where, %r1 ! mtctl %r1, r
r                  89 arch/parisc/include/asm/psw.h 	unsigned int r:1;
r                 563 arch/parisc/kernel/module.c 			r(R_PARISC_PLABEL32)
r                 564 arch/parisc/kernel/module.c 			r(R_PARISC_DIR32)
r                 565 arch/parisc/kernel/module.c 			r(R_PARISC_DIR21L)
r                 566 arch/parisc/kernel/module.c 			r(R_PARISC_DIR14R)
r                 567 arch/parisc/kernel/module.c 			r(R_PARISC_SEGREL32)
r                 568 arch/parisc/kernel/module.c 			r(R_PARISC_DPREL21L)
r                 569 arch/parisc/kernel/module.c 			r(R_PARISC_DPREL14R)
r                 570 arch/parisc/kernel/module.c 			r(R_PARISC_PCREL17F)
r                 571 arch/parisc/kernel/module.c 			r(R_PARISC_PCREL22F)
r                 708 arch/parisc/kernel/module.c 			r(R_PARISC_LTOFF14R)
r                 709 arch/parisc/kernel/module.c 			r(R_PARISC_LTOFF21L)
r                 710 arch/parisc/kernel/module.c 			r(R_PARISC_PCREL22F)
r                 711 arch/parisc/kernel/module.c 			r(R_PARISC_DIR64)
r                 712 arch/parisc/kernel/module.c 			r(R_PARISC_SEGREL32)
r                 713 arch/parisc/kernel/module.c 			r(R_PARISC_FPTR64)
r                 159 arch/parisc/kernel/process.c int dump_fpu (struct pt_regs * regs, elf_fpregset_t *r)
r                 164 arch/parisc/kernel/process.c 	memcpy(r, regs->fr, sizeof *r);
r                 168 arch/parisc/kernel/process.c int dump_task_fpu (struct task_struct *tsk, elf_fpregset_t *r)
r                 170 arch/parisc/kernel/process.c 	memcpy(r, tsk->thread.regs.fr, sizeof(*r));
r                  58 arch/parisc/kernel/ptrace.c 	pa_psw(task)->r = 0;
r                 106 arch/parisc/kernel/ptrace.c 	pa_psw(task)->r = 1;
r                 118 arch/parisc/kernel/ptrace.c 	pa_psw(task)->r = 0;
r                 710 arch/parisc/kernel/ptrace.c #define REG_OFFSET_NAME(r)    {.name = #r, .offset = offsetof(struct pt_regs, r)}
r                 711 arch/parisc/kernel/ptrace.c #define REG_OFFSET_INDEX(r,i) {.name = #r#i, .offset = offsetof(struct pt_regs, r[i])}
r                 375 arch/parisc/kernel/signal.c 		if (pa_psw(current)->r) {
r                 376 arch/parisc/kernel/signal.c 			pa_psw(current)->r = 0;
r                  73 arch/parisc/kernel/traps.c #define PRINTREGS(lvl,r,f,fmt,x)	\
r                  75 arch/parisc/kernel/traps.c 		lvl, f, (x), (x+3), (r)[(x)+0], (r)[(x)+1],		\
r                  76 arch/parisc/kernel/traps.c 		(r)[(x)+2], (r)[(x)+3])
r                 395 arch/parisc/kernel/unwind.c 	struct pt_regs *r = &t->thread.regs;
r                 401 arch/parisc/kernel/unwind.c 	*r2 = *r;
r                 402 arch/parisc/kernel/unwind.c 	r2->gr[30] = r->ksp;
r                 403 arch/parisc/kernel/unwind.c 	r2->iaoq[0] = r->kpc;
r                 420 arch/parisc/kernel/unwind.c 		struct pt_regs r;
r                 423 arch/parisc/kernel/unwind.c 			memset(&r, 0, sizeof(r));
r                 424 arch/parisc/kernel/unwind.c 			r.iaoq[0] =  _THIS_IP_;
r                 425 arch/parisc/kernel/unwind.c 			r.gr[2] = _RET_IP_;
r                 426 arch/parisc/kernel/unwind.c 			r.gr[30] = get_parisc_stackpointer();
r                 427 arch/parisc/kernel/unwind.c 			regs = &r;
r                  25 arch/parisc/math-emu/driver.c #define extru(r,pos,len) (((r) >> (31-(pos))) & (( 1 << (len)) - 1))
r                  52 arch/parisc/math-emu/fpudispatch.c #define extru(r,pos,len)	(((r) >> (31-(pos))) & (( 1 << (len)) - 1))
r                  81 arch/powerpc/include/asm/book3s/32/mmu-hash.h 	unsigned long r:1;	/* Referenced */
r                 139 arch/powerpc/include/asm/book3s/64/hash-64k.h #define __rpte_to_pte(r)	((r).pte)
r                 177 arch/powerpc/include/asm/book3s/64/mmu-hash.h 	__be64 r;
r                 354 arch/powerpc/include/asm/book3s/64/mmu-hash.h static inline unsigned long hpte_old_to_new_r(unsigned long v, unsigned long r)
r                 357 arch/powerpc/include/asm/book3s/64/mmu-hash.h 	return (r & ~HPTE_R_3_0_SSIZE_MASK) |
r                 361 arch/powerpc/include/asm/book3s/64/mmu-hash.h static inline unsigned long hpte_new_to_old_v(unsigned long v, unsigned long r)
r                 365 arch/powerpc/include/asm/book3s/64/mmu-hash.h 		((r & HPTE_R_3_0_SSIZE_MASK) <<
r                 369 arch/powerpc/include/asm/book3s/64/mmu-hash.h static inline unsigned long hpte_new_to_old_r(unsigned long r)
r                 372 arch/powerpc/include/asm/book3s/64/mmu-hash.h 	return r & ~HPTE_R_3_0_SSIZE_MASK;
r                 381 arch/powerpc/include/asm/book3s/64/mmu-hash.h 		hpte_v = hpte_new_to_old_v(hpte_v, be64_to_cpu(hptep->r));
r                 335 arch/powerpc/include/asm/book3s/64/pgtable.h #define __rpte_to_pte(r)	((r).pte)
r                 336 arch/powerpc/include/asm/book3s/64/pgtable.h #define __rpte_to_hidx(r,index)	(pte_val(__rpte_to_pte(r)) >> H_PAGE_F_GIX_SHIFT)
r                 513 arch/powerpc/include/asm/epapr_hcalls.h 	unsigned long r;
r                 515 arch/powerpc/include/asm/epapr_hcalls.h 	r = epapr_hypercall(in, out, nr);
r                 518 arch/powerpc/include/asm/epapr_hcalls.h 	return r;
r                 399 arch/powerpc/include/asm/kvm_book3s.h static inline bool is_kvmppc_resume_guest(int r)
r                 401 arch/powerpc/include/asm/kvm_book3s.h 	return (r == RESUME_GUEST || r == RESUME_GUEST_NV);
r                 116 arch/powerpc/include/asm/kvm_book3s_64.h #define H_TLBIE_P1_ENC(ric, prs, r)	(___PPC_RIC(ric) | ___PPC_PRS(prs) | \
r                 117 arch/powerpc/include/asm/kvm_book3s_64.h 					 ___PPC_R(r))
r                 264 arch/powerpc/include/asm/kvm_book3s_64.h static inline unsigned long kvmppc_actual_pgsz(unsigned long v, unsigned long r)
r                 266 arch/powerpc/include/asm/kvm_book3s_64.h 	int shift = kvmppc_hpte_actual_page_shift(v, r);
r                 300 arch/powerpc/include/asm/kvm_book3s_64.h static inline unsigned long compute_tlbie_rb(unsigned long v, unsigned long r,
r                 306 arch/powerpc/include/asm/kvm_book3s_64.h 	b_pgshift = a_pgshift = kvmppc_hpte_page_shifts(v, r);
r                 369 arch/powerpc/include/asm/kvm_book3s_64.h 		rb |= r & 0xff000 & ((1ul << a_pgshift) - 1); /* LP field */
r                  42 arch/powerpc/include/asm/kvm_para.h 	unsigned long r;
r                  47 arch/powerpc/include/asm/kvm_para.h 	if(epapr_hypercall0_1(KVM_HCALL_TOKEN(KVM_HC_FEATURES), &r))
r                  50 arch/powerpc/include/asm/kvm_para.h 	return r;
r                 365 arch/powerpc/include/asm/kvm_ppc.h 	u32 r;
r                 371 arch/powerpc/include/asm/kvm_ppc.h 	r = (inst >> (63 - lsb)) & mask;
r                 373 arch/powerpc/include/asm/kvm_ppc.h 	return r;
r                 381 arch/powerpc/include/asm/kvm_ppc.h 	u32 r;
r                 387 arch/powerpc/include/asm/kvm_ppc.h 	r = (inst & ~mask) | ((value << (63 - lsb)) & mask);
r                 389 arch/powerpc/include/asm/kvm_ppc.h 	return r;
r                 367 arch/powerpc/include/asm/pmac_feature.h #define MACIO_FCR32(macio, r)	((macio)->base + ((r) >> 2))
r                 368 arch/powerpc/include/asm/pmac_feature.h #define MACIO_FCR8(macio, r)	(((volatile u8 __iomem *)((macio)->base)) + (r))
r                 370 arch/powerpc/include/asm/pmac_feature.h #define MACIO_IN32(r)		(in_le32(MACIO_FCR32(macio,r)))
r                 371 arch/powerpc/include/asm/pmac_feature.h #define MACIO_OUT32(r,v)	(out_le32(MACIO_FCR32(macio,r), (v)))
r                 372 arch/powerpc/include/asm/pmac_feature.h #define MACIO_BIS(r,v)		(MACIO_OUT32((r), MACIO_IN32(r) | (v)))
r                 373 arch/powerpc/include/asm/pmac_feature.h #define MACIO_BIC(r,v)		(MACIO_OUT32((r), MACIO_IN32(r) & ~(v)))
r                 374 arch/powerpc/include/asm/pmac_feature.h #define MACIO_IN8(r)		(in_8(MACIO_FCR8(macio,r)))
r                 375 arch/powerpc/include/asm/pmac_feature.h #define MACIO_OUT8(r,v)		(out_8(MACIO_FCR8(macio,r), (v)))
r                 389 arch/powerpc/include/asm/pmac_feature.h #define UN_REG(r)	(uninorth_base + ((r) >> 2))
r                 390 arch/powerpc/include/asm/pmac_feature.h #define UN_IN(r)	(in_be32(UN_REG(r)))
r                 391 arch/powerpc/include/asm/pmac_feature.h #define UN_OUT(r,v)	(out_be32(UN_REG(r), (v)))
r                 392 arch/powerpc/include/asm/pmac_feature.h #define UN_BIS(r,v)	(UN_OUT((r), UN_IN(r) | (v)))
r                 393 arch/powerpc/include/asm/pmac_feature.h #define UN_BIC(r,v)	(UN_OUT((r), UN_IN(r) & ~(v)))
r                 386 arch/powerpc/include/asm/ppc-opcode.h #define ___PPC_R(r)	(((r) & 0x1) << 16)
r                 409 arch/powerpc/include/asm/ppc-opcode.h #define __PPC_SPR(r)	((((r) & 0x1f) << 16) | ((((r) >> 5) & 0x1f) << 11))
r                 492 arch/powerpc/include/asm/ppc-opcode.h #define	PPC_TLBIE_5(rb,rs,ric,prs,r) \
r                 496 arch/powerpc/include/asm/ppc-opcode.h 					___PPC_R(r))
r                 497 arch/powerpc/include/asm/ppc-opcode.h #define	PPC_TLBIEL(rb,rs,ric,prs,r) \
r                 501 arch/powerpc/include/asm/ppc-opcode.h 					___PPC_R(r))
r                 570 arch/powerpc/include/asm/ppc-opcode.h #define PPC_MFBHRBE(r, n)	stringify_in_c(.long PPC_INST_BHRBE | \
r                 571 arch/powerpc/include/asm/ppc-opcode.h 						__PPC_RT(r) | \
r                 576 arch/powerpc/include/asm/ppc-opcode.h #define TRECLAIM(r)		stringify_in_c(.long PPC_INST_TRECLAIM \
r                 577 arch/powerpc/include/asm/ppc-opcode.h 					       | __PPC_RA(r))
r                 578 arch/powerpc/include/asm/ppc-opcode.h #define TABORT(r)		stringify_in_c(.long PPC_INST_TABORT \
r                 579 arch/powerpc/include/asm/ppc-opcode.h 					       | __PPC_RA(r))
r                 583 arch/powerpc/include/asm/ppc-opcode.h #define MTTMR(tmr, r)		stringify_in_c(.long PPC_INST_MTTMR | \
r                 584 arch/powerpc/include/asm/ppc-opcode.h 					       TMRN(tmr) | ___PPC_RS(r))
r                 585 arch/powerpc/include/asm/ppc-opcode.h #define MFTMR(tmr, r)		stringify_in_c(.long PPC_INST_MFTMR | \
r                 586 arch/powerpc/include/asm/ppc-opcode.h 					       TMRN(tmr) | ___PPC_RT(r))
r                 320 arch/powerpc/include/asm/ppc_asm.h .macro __LOAD_REG_IMMEDIATE_32 r, x
r                 331 arch/powerpc/include/asm/ppc_asm.h .macro __LOAD_REG_IMMEDIATE r, x
r                 510 arch/powerpc/include/asm/ppc_asm.h #define MTMSRD(r)	mtmsrd	r
r                 518 arch/powerpc/include/asm/ppc_asm.h #define MTMSRD(r)	mtmsr	r
r                 119 arch/powerpc/include/asm/ps3.h 	struct ps3_dma_region *r, enum ps3_dma_page_size page_size,
r                 121 arch/powerpc/include/asm/ps3.h int ps3_dma_region_create(struct ps3_dma_region *r);
r                 122 arch/powerpc/include/asm/ps3.h int ps3_dma_region_free(struct ps3_dma_region *r);
r                 123 arch/powerpc/include/asm/ps3.h int ps3_dma_map(struct ps3_dma_region *r, unsigned long virt_addr,
r                 126 arch/powerpc/include/asm/ps3.h int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr,
r                 164 arch/powerpc/include/asm/ps3.h 	struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
r                 166 arch/powerpc/include/asm/ps3.h int ps3_mmio_region_create(struct ps3_mmio_region *r);
r                 167 arch/powerpc/include/asm/ps3.h int ps3_free_mmio_region(struct ps3_mmio_region *r);
r                 280 arch/powerpc/include/asm/sfp-machine.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 314 arch/powerpc/include/asm/sfp-machine.h     (r) = __r0;								\
r                 192 arch/powerpc/include/asm/trace.h 		unsigned long r),
r                 193 arch/powerpc/include/asm/trace.h 	TP_ARGS(lpid, local, rb, rs, ric, prs, r),
r                 201 arch/powerpc/include/asm/trace.h 		__field(unsigned long, r)
r                 211 arch/powerpc/include/asm/trace.h 		__entry->r = r;
r                 217 arch/powerpc/include/asm/trace.h 		__entry->r)
r                 298 arch/powerpc/kernel/align.c 	int r, type;
r                 337 arch/powerpc/kernel/align.c 	r = analyse_instr(&op, regs, instr);
r                 338 arch/powerpc/kernel/align.c 	if (r < 0)
r                 346 arch/powerpc/kernel/align.c 		r = emulate_dcbz(op.ea, regs);
r                 351 arch/powerpc/kernel/align.c 		r = emulate_loadstore(regs, &op);
r                 354 arch/powerpc/kernel/align.c 	if (!r)
r                 356 arch/powerpc/kernel/align.c 	return r;
r                1942 arch/powerpc/kernel/eeh.c 		struct resource *r = &pdev->resource[i];
r                1944 arch/powerpc/kernel/eeh.c 		if (!r->flags || !r->start)
r                1946 arch/powerpc/kernel/eeh.c 		if (r->flags & IORESOURCE_IO)
r                1948 arch/powerpc/kernel/eeh.c 		if (r->flags & IORESOURCE_UNSET)
r                1951 arch/powerpc/kernel/eeh.c 		bar = r;
r                1232 arch/powerpc/kernel/pci-common.c 	struct resource *pr, *r = &dev->resource[idx];
r                1235 arch/powerpc/kernel/pci-common.c 		 pci_name(dev), idx, r);
r                1237 arch/powerpc/kernel/pci-common.c 	pr = pci_find_parent_resource(dev, r);
r                1239 arch/powerpc/kernel/pci-common.c 	    request_resource(pr, r) < 0) {
r                1245 arch/powerpc/kernel/pci-common.c 		r->flags |= IORESOURCE_UNSET;
r                1246 arch/powerpc/kernel/pci-common.c 		r->end -= r->start;
r                1247 arch/powerpc/kernel/pci-common.c 		r->start = 0;
r                1256 arch/powerpc/kernel/pci-common.c 	struct resource *r;
r                1261 arch/powerpc/kernel/pci-common.c 			r = &dev->resource[idx];
r                1262 arch/powerpc/kernel/pci-common.c 			if (r->parent)		/* Already allocated */
r                1264 arch/powerpc/kernel/pci-common.c 			if (!r->flags || (r->flags & IORESOURCE_UNSET))
r                1271 arch/powerpc/kernel/pci-common.c 			if (r->flags & IORESOURCE_IO)
r                1280 arch/powerpc/kernel/pci-common.c 		r = &dev->resource[PCI_ROM_RESOURCE];
r                1281 arch/powerpc/kernel/pci-common.c 		if (r->flags) {
r                1290 arch/powerpc/kernel/pci-common.c 				r->flags &= ~IORESOURCE_ROM_ENABLE;
r                1398 arch/powerpc/kernel/pci-common.c 			struct resource *r = &dev->resource[i];
r                1400 arch/powerpc/kernel/pci-common.c 			if (r->parent || !r->start || !r->flags)
r                1404 arch/powerpc/kernel/pci-common.c 				 pci_name(dev), i, r);
r                1539 arch/powerpc/kernel/prom_init.c 	unsigned long r = 0;
r                1546 arch/powerpc/kernel/prom_init.c 	r = be32_to_cpu(*p++);
r                1549 arch/powerpc/kernel/prom_init.c 		r <<= 32;
r                1550 arch/powerpc/kernel/prom_init.c 		r |= be32_to_cpu(*(p++));
r                1554 arch/powerpc/kernel/prom_init.c 	return r;
r                2305 arch/powerpc/kernel/prom_init.c static int __init prom_set_color(ihandle ih, int i, int r, int g, int b)
r                2307 arch/powerpc/kernel/prom_init.c 	return call_prom("call-method", 6, 1, ADDR("color!"), ih, i, b, g, r);
r                  67 arch/powerpc/kernel/ptrace.c #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
r                  69 arch/powerpc/kernel/ptrace.c 	{.name = STR(r##num), .offset = offsetof(struct pt_regs, gpr[num])}, \
r                 201 arch/powerpc/kernel/rtas_pci.c 	struct resource r;
r                 205 arch/powerpc/kernel/rtas_pci.c 	if (of_address_to_resource(phb, 0, &r))
r                 207 arch/powerpc/kernel/rtas_pci.c 	return r.start;
r                1049 arch/powerpc/kernel/sysfs.c 	int cpu, r;
r                1072 arch/powerpc/kernel/sysfs.c 	r = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "powerpc/topology:online",
r                1074 arch/powerpc/kernel/sysfs.c 	WARN_ON(r < 0);
r                 458 arch/powerpc/kvm/book3s.c 	int r;
r                 461 arch/powerpc/kvm/book3s.c 		r = vcpu->arch.mmu.xlate(vcpu, eaddr, pte, data, iswrite);
r                 469 arch/powerpc/kvm/book3s.c 		r = 0;
r                 479 arch/powerpc/kvm/book3s.c 	return r;
r                 486 arch/powerpc/kvm/book3s.c 	int r;
r                 491 arch/powerpc/kvm/book3s.c 	r = kvmppc_ld(vcpu, &pc, sizeof(u32), inst, false);
r                 492 arch/powerpc/kvm/book3s.c 	if (r == EMULATE_DONE)
r                 493 arch/powerpc/kvm/book3s.c 		return r;
r                 605 arch/powerpc/kvm/book3s.c 	int r = 0;
r                 608 arch/powerpc/kvm/book3s.c 	r = vcpu->kvm->arch.kvm_ops->get_one_reg(vcpu, id, val);
r                 609 arch/powerpc/kvm/book3s.c 	if (r == -EINVAL) {
r                 610 arch/powerpc/kvm/book3s.c 		r = 0;
r                 632 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 642 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 654 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 658 arch/powerpc/kvm/book3s.c 				r = kvmppc_xive_native_get_vp(vcpu, val);
r                 660 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 682 arch/powerpc/kvm/book3s.c 			r = -EINVAL;
r                 687 arch/powerpc/kvm/book3s.c 	return r;
r                 693 arch/powerpc/kvm/book3s.c 	int r = 0;
r                 696 arch/powerpc/kvm/book3s.c 	r = vcpu->kvm->arch.kvm_ops->set_one_reg(vcpu, id, val);
r                 697 arch/powerpc/kvm/book3s.c 	if (r == -EINVAL) {
r                 698 arch/powerpc/kvm/book3s.c 		r = 0;
r                 720 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 727 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 731 arch/powerpc/kvm/book3s.c 				r = kvmppc_xive_set_icp(vcpu, set_reg_val(id, *val));
r                 733 arch/powerpc/kvm/book3s.c 				r = kvmppc_xics_set_icp(vcpu, set_reg_val(id, *val));
r                 739 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 743 arch/powerpc/kvm/book3s.c 				r = kvmppc_xive_native_set_vp(vcpu, val);
r                 745 arch/powerpc/kvm/book3s.c 				r = -ENXIO;
r                 767 arch/powerpc/kvm/book3s.c 			r = -EINVAL;
r                 772 arch/powerpc/kvm/book3s.c 	return r;
r                1072 arch/powerpc/kvm/book3s.c 	int r;
r                1074 arch/powerpc/kvm/book3s.c 	r = kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE);
r                1075 arch/powerpc/kvm/book3s.c 	if (r)
r                1076 arch/powerpc/kvm/book3s.c 		return r;
r                1078 arch/powerpc/kvm/book3s.c 	r = kvmppc_book3s_init_pr();
r                1095 arch/powerpc/kvm/book3s.c 	return r;
r                 104 arch/powerpc/kvm/book3s_32_mmu.c 	hva_t r;
r                 120 arch/powerpc/kvm/book3s_32_mmu.c 	r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT);
r                 121 arch/powerpc/kvm/book3s_32_mmu.c 	if (kvm_is_error_hva(r))
r                 122 arch/powerpc/kvm/book3s_32_mmu.c 		return r;
r                 123 arch/powerpc/kvm/book3s_32_mmu.c 	return r | (pteg & ~PAGE_MASK);
r                 299 arch/powerpc/kvm/book3s_32_mmu.c 	int r;
r                 319 arch/powerpc/kvm/book3s_32_mmu.c 	r = kvmppc_mmu_book3s_32_xlate_bat(vcpu, eaddr, pte, data, iswrite);
r                 320 arch/powerpc/kvm/book3s_32_mmu.c 	if (r < 0)
r                 321 arch/powerpc/kvm/book3s_32_mmu.c 		r = kvmppc_mmu_book3s_32_xlate_pte(vcpu, eaddr, pte,
r                 323 arch/powerpc/kvm/book3s_32_mmu.c 	if (r == -ENOENT)
r                 324 arch/powerpc/kvm/book3s_32_mmu.c 		r = kvmppc_mmu_book3s_32_xlate_pte(vcpu, eaddr, pte,
r                 327 arch/powerpc/kvm/book3s_32_mmu.c 	return r;
r                 144 arch/powerpc/kvm/book3s_32_mmu_host.c 	int r = 0;
r                 152 arch/powerpc/kvm/book3s_32_mmu_host.c 		r = -EINVAL;
r                 236 arch/powerpc/kvm/book3s_32_mmu_host.c 		r = -EAGAIN;
r                 255 arch/powerpc/kvm/book3s_32_mmu_host.c 	return r;
r                 309 arch/powerpc/kvm/book3s_32_mmu_host.c 	int r = 0;
r                 314 arch/powerpc/kvm/book3s_32_mmu_host.c 		r = -ENOENT;
r                 330 arch/powerpc/kvm/book3s_32_mmu_host.c 	return r;
r                 137 arch/powerpc/kvm/book3s_64_mmu.c 	hva_t r;
r                 160 arch/powerpc/kvm/book3s_64_mmu.c 		r = pteg;
r                 162 arch/powerpc/kvm/book3s_64_mmu.c 		r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT);
r                 164 arch/powerpc/kvm/book3s_64_mmu.c 	if (kvm_is_error_hva(r))
r                 165 arch/powerpc/kvm/book3s_64_mmu.c 		return r;
r                 166 arch/powerpc/kvm/book3s_64_mmu.c 	return r | (pteg & ~PAGE_MASK);
r                 190 arch/powerpc/kvm/book3s_64_mmu.c static int decode_pagesize(struct kvmppc_slb *slbe, u64 r)
r                 194 arch/powerpc/kvm/book3s_64_mmu.c 		if ((r & 0xf000) == 0x1000)
r                 198 arch/powerpc/kvm/book3s_64_mmu.c 		if ((r & 0xff000) == 0)
r                 213 arch/powerpc/kvm/book3s_64_mmu.c 	u64 v, r;
r                 303 arch/powerpc/kvm/book3s_64_mmu.c 	r = be64_to_cpu(pteg[i+1]);
r                 304 arch/powerpc/kvm/book3s_64_mmu.c 	pp = (r & HPTE_R_PP) | key;
r                 305 arch/powerpc/kvm/book3s_64_mmu.c 	if (r & HPTE_R_PP0)
r                 312 arch/powerpc/kvm/book3s_64_mmu.c 	gpte->raddr = (r & HPTE_R_RPN & ~eaddr_mask) | (eaddr & eaddr_mask);
r                 314 arch/powerpc/kvm/book3s_64_mmu.c 	gpte->may_execute = ((r & HPTE_R_N) ? false : true);
r                 320 arch/powerpc/kvm/book3s_64_mmu.c 	gpte->wimg = r & HPTE_R_WIMG;
r                 343 arch/powerpc/kvm/book3s_64_mmu.c 	if (gpte->may_read && !(r & HPTE_R_R)) {
r                 352 arch/powerpc/kvm/book3s_64_mmu.c 		r |= HPTE_R_R;
r                 353 arch/powerpc/kvm/book3s_64_mmu.c 		put_user(r >> 8, addr + 6);
r                 355 arch/powerpc/kvm/book3s_64_mmu.c 	if (iswrite && gpte->may_write && !(r & HPTE_R_C)) {
r                 359 arch/powerpc/kvm/book3s_64_mmu.c 		r |= HPTE_R_C;
r                 360 arch/powerpc/kvm/book3s_64_mmu.c 		put_user(r, addr + 7);
r                  82 arch/powerpc/kvm/book3s_64_mmu_host.c 	int r = 0;
r                 100 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = -EINVAL;
r                 117 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = -EINVAL;
r                 153 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = -EAGAIN;
r                 163 arch/powerpc/kvm/book3s_64_mmu_host.c 			r = -1;
r                 177 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = -EIO;
r                 209 arch/powerpc/kvm/book3s_64_mmu_host.c 	return r;
r                 275 arch/powerpc/kvm/book3s_64_mmu_host.c 	int r;
r                 282 arch/powerpc/kvm/book3s_64_mmu_host.c 			r = i;
r                 289 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = found_inval;
r                 302 arch/powerpc/kvm/book3s_64_mmu_host.c 	r = svcpu->slb_max;
r                 307 arch/powerpc/kvm/book3s_64_mmu_host.c 	return r;
r                 319 arch/powerpc/kvm/book3s_64_mmu_host.c 	int r = 0;
r                 326 arch/powerpc/kvm/book3s_64_mmu_host.c 		r = -ENOENT;
r                 353 arch/powerpc/kvm/book3s_64_mmu_host.c 	return r;
r                 331 arch/powerpc/kvm/book3s_64_mmu_hv.c static unsigned long kvmppc_mmu_get_real_addr(unsigned long v, unsigned long r,
r                 336 arch/powerpc/kvm/book3s_64_mmu_hv.c 	ra_mask = kvmppc_actual_pgsz(v, r) - 1;
r                 337 arch/powerpc/kvm/book3s_64_mmu_hv.c 	return (r & HPTE_R_RPN & ~ra_mask) | (ea & ra_mask);
r                 495 arch/powerpc/kvm/book3s_64_mmu_hv.c 	unsigned long hpte[3], r;
r                 527 arch/powerpc/kvm/book3s_64_mmu_hv.c 			r = vcpu->arch.pgfault_cache->rpte;
r                 529 arch/powerpc/kvm/book3s_64_mmu_hv.c 						   r);
r                 530 arch/powerpc/kvm/book3s_64_mmu_hv.c 			gpa_base = r & HPTE_R_RPN & ~(psize - 1);
r                 545 arch/powerpc/kvm/book3s_64_mmu_hv.c 	hpte[2] = r = rev->guest_rpte;
r                 558 arch/powerpc/kvm/book3s_64_mmu_hv.c 	psize = kvmppc_actual_pgsz(hpte[0], r);
r                 559 arch/powerpc/kvm/book3s_64_mmu_hv.c 	gpa_base = r & HPTE_R_RPN & ~(psize - 1);
r                 616 arch/powerpc/kvm/book3s_64_mmu_hv.c 		if (!writing && hpte_is_writable(r)) {
r                 639 arch/powerpc/kvm/book3s_64_mmu_hv.c 	if (!hpte_cache_flags_ok(r, is_ci)) {
r                 646 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = (r & ~(HPTE_R_W|HPTE_R_I|HPTE_R_G)) | HPTE_R_M;
r                 656 arch/powerpc/kvm/book3s_64_mmu_hv.c 	r = (r & HPTE_R_KEY_HI) | (r & ~(HPTE_R_PP0 - psize)) |
r                 658 arch/powerpc/kvm/book3s_64_mmu_hv.c 	if (hpte_is_writable(r) && !write_ok)
r                 659 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = hpte_make_readonly(r);
r                 699 arch/powerpc/kvm/book3s_64_mmu_hv.c 	r &= rcbits | ~(HPTE_R_R | HPTE_R_C);
r                 707 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r |= be64_to_cpu(hptep[1]) & (HPTE_R_R | HPTE_R_C);
r                 713 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = hpte_old_to_new_r(hpte[0], r);
r                 716 arch/powerpc/kvm/book3s_64_mmu_hv.c 	hptep[1] = cpu_to_be64(r);
r                 721 arch/powerpc/kvm/book3s_64_mmu_hv.c 	if (page && hpte_is_writable(r))
r                1053 arch/powerpc/kvm/book3s_64_mmu_hv.c 	unsigned long v, r;
r                1107 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = be64_to_cpu(hptep[1]);
r                1108 arch/powerpc/kvm/book3s_64_mmu_hv.c 		if (r & HPTE_R_C) {
r                1109 arch/powerpc/kvm/book3s_64_mmu_hv.c 			hptep[1] = cpu_to_be64(r & ~HPTE_R_C);
r                1114 arch/powerpc/kvm/book3s_64_mmu_hv.c 			n = kvmppc_actual_pgsz(v, r);
r                1670 arch/powerpc/kvm/book3s_64_mmu_hv.c 	unsigned long v, r, hr;
r                1690 arch/powerpc/kvm/book3s_64_mmu_hv.c 	v = r = 0;
r                1723 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = revp->guest_rpte;
r                1726 arch/powerpc/kvm/book3s_64_mmu_hv.c 			r &= ~HPTE_GR_MODIFIED;
r                1727 arch/powerpc/kvm/book3s_64_mmu_hv.c 			revp->guest_rpte = r;
r                1735 arch/powerpc/kvm/book3s_64_mmu_hv.c 	hpte[1] = cpu_to_be64(r);
r                1845 arch/powerpc/kvm/book3s_64_mmu_hv.c 	unsigned long v, r;
r                1903 arch/powerpc/kvm/book3s_64_mmu_hv.c 			r = be64_to_cpu(hpte_r);
r                1907 arch/powerpc/kvm/book3s_64_mmu_hv.c 			pshift = kvmppc_hpte_base_page_shift(v, r);
r                1916 arch/powerpc/kvm/book3s_64_mmu_hv.c 			ret = kvmppc_virtmode_do_h_enter(kvm, H_EXACT, i, v, r,
r                1920 arch/powerpc/kvm/book3s_64_mmu_hv.c 				       "r=%lx\n", ret, i, v, r);
r                2057 arch/powerpc/kvm/book3s_64_mmu_hv.c 	ssize_t ret, r;
r                2075 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = copy_to_user(buf, p->buf + p->buf_index, n);
r                2076 arch/powerpc/kvm/book3s_64_mmu_hv.c 		n -= r;
r                2082 arch/powerpc/kvm/book3s_64_mmu_hv.c 		if (r) {
r                2115 arch/powerpc/kvm/book3s_64_mmu_hv.c 		r = copy_to_user(buf, p->buf, n);
r                2116 arch/powerpc/kvm/book3s_64_mmu_hv.c 		n -= r;
r                2122 arch/powerpc/kvm/book3s_64_mmu_hv.c 		if (r) {
r                1193 arch/powerpc/kvm/book3s_64_mmu_radix.c 	ssize_t ret, r;
r                1218 arch/powerpc/kvm/book3s_64_mmu_radix.c 		r = copy_to_user(buf, p->buf + p->buf_index, n);
r                1219 arch/powerpc/kvm/book3s_64_mmu_radix.c 		n -= r;
r                1225 arch/powerpc/kvm/book3s_64_mmu_radix.c 		if (r) {
r                1317 arch/powerpc/kvm/book3s_64_mmu_radix.c 		r = copy_to_user(buf, p->buf, n);
r                1318 arch/powerpc/kvm/book3s_64_mmu_radix.c 		n -= r;
r                1324 arch/powerpc/kvm/book3s_64_mmu_radix.c 		if (r) {
r                 458 arch/powerpc/kvm/book3s_emulate.c 			int r;
r                 468 arch/powerpc/kvm/book3s_emulate.c 			r = kvmppc_st(vcpu, &addr, 32, zeros, true);
r                 469 arch/powerpc/kvm/book3s_emulate.c 			if ((r == -ENOENT) || (r == -EPERM)) {
r                 475 arch/powerpc/kvm/book3s_emulate.c 				if (r == -ENOENT)
r                 477 arch/powerpc/kvm/book3s_emulate.c 				else if (r == -EPERM)
r                 416 arch/powerpc/kvm/book3s_hv.c 	int r;
r                 421 arch/powerpc/kvm/book3s_hv.c 	for (r = 0; r < 16; ++r)
r                 423 arch/powerpc/kvm/book3s_hv.c 		       r, kvmppc_get_gpr(vcpu, r),
r                 424 arch/powerpc/kvm/book3s_hv.c 		       r+16, kvmppc_get_gpr(vcpu, r+16));
r                 439 arch/powerpc/kvm/book3s_hv.c 	for (r = 0; r < vcpu->arch.slb_max; ++r)
r                 441 arch/powerpc/kvm/book3s_hv.c 		       vcpu->arch.slb[r].orige, vcpu->arch.slb[r].origv);
r                 807 arch/powerpc/kvm/book3s_hv.c 	int r;
r                 834 arch/powerpc/kvm/book3s_hv.c 	r = raw_copy_in_user((void __user *)to_addr, (void __user *)from_addr,
r                 836 arch/powerpc/kvm/book3s_hv.c 	if (r)
r                1253 arch/powerpc/kvm/book3s_hv.c 	int r = RESUME_HOST;
r                1281 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1287 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1293 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1308 arch/powerpc/kvm/book3s_hv.c 			r = RESUME_GUEST;
r                1323 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1336 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1353 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1364 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_PAGE_FAULT;
r                1372 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_PAGE_FAULT;
r                1387 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_emulate_debug_inst(run, vcpu);
r                1390 arch/powerpc/kvm/book3s_hv.c 			r = RESUME_GUEST;
r                1401 arch/powerpc/kvm/book3s_hv.c 		r = EMULATE_FAIL;
r                1404 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_emulate_doorbell_instr(vcpu);
r                1405 arch/powerpc/kvm/book3s_hv.c 		if (r == EMULATE_FAIL) {
r                1407 arch/powerpc/kvm/book3s_hv.c 			r = RESUME_GUEST;
r                1419 arch/powerpc/kvm/book3s_hv.c 		r = kvmhv_p9_tm_emulation(vcpu);
r                1424 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_PASSTHROUGH;
r                1432 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1436 arch/powerpc/kvm/book3s_hv.c 	return r;
r                1441 arch/powerpc/kvm/book3s_hv.c 	int r;
r                1466 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1470 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1475 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1481 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1485 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1497 arch/powerpc/kvm/book3s_hv.c 		r = kvmhv_nested_page_fault(run, vcpu);
r                1507 arch/powerpc/kvm/book3s_hv.c 		r = kvmhv_nested_page_fault(run, vcpu);
r                1519 arch/powerpc/kvm/book3s_hv.c 		r = kvmhv_p9_tm_emulation(vcpu);
r                1525 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_GUEST;
r                1530 arch/powerpc/kvm/book3s_hv.c 		r = RESUME_HOST;
r                1534 arch/powerpc/kvm/book3s_hv.c 	return r;
r                1625 arch/powerpc/kvm/book3s_hv.c 	int r = 0;
r                1781 arch/powerpc/kvm/book3s_hv.c 				r = -ENXIO;
r                1813 arch/powerpc/kvm/book3s_hv.c 			r = -ENXIO;
r                1836 arch/powerpc/kvm/book3s_hv.c 		r = -EINVAL;
r                1840 arch/powerpc/kvm/book3s_hv.c 	return r;
r                1846 arch/powerpc/kvm/book3s_hv.c 	int r = 0;
r                1854 arch/powerpc/kvm/book3s_hv.c 			r = -EINVAL;
r                1948 arch/powerpc/kvm/book3s_hv.c 		r = -EINVAL;
r                1952 arch/powerpc/kvm/book3s_hv.c 		r = set_vpa(vcpu, &vcpu->arch.vpa, addr, sizeof(struct lppaca));
r                1957 arch/powerpc/kvm/book3s_hv.c 		r = -EINVAL;
r                1960 arch/powerpc/kvm/book3s_hv.c 		r = set_vpa(vcpu, &vcpu->arch.slb_shadow, addr, len);
r                1965 arch/powerpc/kvm/book3s_hv.c 		r = -EINVAL;
r                1970 arch/powerpc/kvm/book3s_hv.c 		r = set_vpa(vcpu, &vcpu->arch.dtl, addr, len);
r                2011 arch/powerpc/kvm/book3s_hv.c 				r = -ENXIO;
r                2042 arch/powerpc/kvm/book3s_hv.c 			r = - ENXIO;
r                2052 arch/powerpc/kvm/book3s_hv.c 		r = kvmppc_set_arch_compat(vcpu, set_reg_val(id, *val));
r                2070 arch/powerpc/kvm/book3s_hv.c 		r = -EINVAL;
r                2074 arch/powerpc/kvm/book3s_hv.c 	return r;
r                3889 arch/powerpc/kvm/book3s_hv.c 	int r = 0;
r                3895 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_hv_setup_htab_rma(vcpu);
r                3896 arch/powerpc/kvm/book3s_hv.c 		if (!r) {
r                3903 arch/powerpc/kvm/book3s_hv.c 	return r;
r                3908 arch/powerpc/kvm/book3s_hv.c 	int n_ceded, i, r;
r                3956 arch/powerpc/kvm/book3s_hv.c 			r = kvmhv_setup_mmu(vcpu);
r                3958 arch/powerpc/kvm/book3s_hv.c 			if (r) {
r                3962 arch/powerpc/kvm/book3s_hv.c 				vcpu->arch.ret = r;
r                4040 arch/powerpc/kvm/book3s_hv.c 	int trap, r, pcpu;
r                4170 arch/powerpc/kvm/book3s_hv.c 	r = RESUME_GUEST;
r                4173 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_handle_exit_hv(kvm_run, vcpu, current);
r                4175 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_handle_nested_exit(kvm_run, vcpu);
r                4177 arch/powerpc/kvm/book3s_hv.c 	vcpu->arch.ret = r;
r                4179 arch/powerpc/kvm/book3s_hv.c 	if (is_kvmppc_resume_guest(r) && vcpu->arch.ceded &&
r                4217 arch/powerpc/kvm/book3s_hv.c 	int r;
r                4300 arch/powerpc/kvm/book3s_hv.c 			r = kvmhv_run_single_vcpu(run, vcpu, ~(u64)0,
r                4303 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_run_vcpu(run, vcpu);
r                4308 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_pseries_do_hcall(vcpu);
r                4309 arch/powerpc/kvm/book3s_hv.c 			trace_kvm_hcall_exit(vcpu, r);
r                4311 arch/powerpc/kvm/book3s_hv.c 		} else if (r == RESUME_PAGE_FAULT) {
r                4313 arch/powerpc/kvm/book3s_hv.c 			r = kvmppc_book3s_hv_page_fault(run, vcpu,
r                4316 arch/powerpc/kvm/book3s_hv.c 		} else if (r == RESUME_PASSTHROUGH) {
r                4318 arch/powerpc/kvm/book3s_hv.c 				r = H_SUCCESS;
r                4320 arch/powerpc/kvm/book3s_hv.c 				r = kvmppc_xics_rm_complete(vcpu, 0);
r                4322 arch/powerpc/kvm/book3s_hv.c 	} while (is_kvmppc_resume_guest(r));
r                4336 arch/powerpc/kvm/book3s_hv.c 	return r;
r                4397 arch/powerpc/kvm/book3s_hv.c 	int i, r;
r                4404 arch/powerpc/kvm/book3s_hv.c 	r = -EINVAL;
r                4410 arch/powerpc/kvm/book3s_hv.c 	r = -ENOENT;
r                4423 arch/powerpc/kvm/book3s_hv.c 		r = kvmppc_hv_get_dirty_log_radix(kvm, memslot, buf);
r                4425 arch/powerpc/kvm/book3s_hv.c 		r = kvmppc_hv_get_dirty_log_hpt(kvm, memslot, buf);
r                4426 arch/powerpc/kvm/book3s_hv.c 	if (r)
r                4448 arch/powerpc/kvm/book3s_hv.c 	r = -EFAULT;
r                4452 arch/powerpc/kvm/book3s_hv.c 	r = 0;
r                4455 arch/powerpc/kvm/book3s_hv.c 	return r;
r                5187 arch/powerpc/kvm/book3s_hv.c 	long r;
r                5194 arch/powerpc/kvm/book3s_hv.c 		r = -EFAULT;
r                5197 arch/powerpc/kvm/book3s_hv.c 		r = kvmppc_alloc_reset_hpt(kvm, htab_order);
r                5198 arch/powerpc/kvm/book3s_hv.c 		if (r)
r                5200 arch/powerpc/kvm/book3s_hv.c 		r = 0;
r                5207 arch/powerpc/kvm/book3s_hv.c 		r = -EFAULT;
r                5210 arch/powerpc/kvm/book3s_hv.c 		r = kvm_vm_ioctl_get_htab_fd(kvm, &ghf);
r                5217 arch/powerpc/kvm/book3s_hv.c 		r = -EFAULT;
r                5221 arch/powerpc/kvm/book3s_hv.c 		r = kvm_vm_ioctl_resize_hpt_prepare(kvm, &rhpt);
r                5228 arch/powerpc/kvm/book3s_hv.c 		r = -EFAULT;
r                5232 arch/powerpc/kvm/book3s_hv.c 		r = kvm_vm_ioctl_resize_hpt_commit(kvm, &rhpt);
r                5237 arch/powerpc/kvm/book3s_hv.c 		r = -ENOTTY;
r                5240 arch/powerpc/kvm/book3s_hv.c 	return r;
r                5482 arch/powerpc/kvm/book3s_hv.c 	int r;
r                5492 arch/powerpc/kvm/book3s_hv.c 	r = kvmppc_core_check_processor_compat_hv();
r                5493 arch/powerpc/kvm/book3s_hv.c 	if (r < 0)
r                5496 arch/powerpc/kvm/book3s_hv.c 	r = kvmhv_nested_init();
r                5497 arch/powerpc/kvm/book3s_hv.c 	if (r)
r                5498 arch/powerpc/kvm/book3s_hv.c 		return r;
r                5500 arch/powerpc/kvm/book3s_hv.c 	r = kvm_init_subcore_bitmap();
r                5501 arch/powerpc/kvm/book3s_hv.c 	if (r)
r                5502 arch/powerpc/kvm/book3s_hv.c 		return r;
r                5531 arch/powerpc/kvm/book3s_hv.c 	r = kvmppc_mmu_hv_init();
r                5532 arch/powerpc/kvm/book3s_hv.c 	if (r)
r                5533 arch/powerpc/kvm/book3s_hv.c 		return r;
r                5536 arch/powerpc/kvm/book3s_hv.c 		r = kvmppc_radix_init();
r                5550 arch/powerpc/kvm/book3s_hv.c 	return r;
r                 208 arch/powerpc/kvm/book3s_hv_builtin.c 	int r;
r                 212 arch/powerpc/kvm/book3s_hv_builtin.c 		r = powernv_get_random_long(&vcpu->arch.regs.gpr[4]);
r                 214 arch/powerpc/kvm/book3s_hv_builtin.c 		r = powernv_get_random_real_mode(&vcpu->arch.regs.gpr[4]);
r                 215 arch/powerpc/kvm/book3s_hv_builtin.c 	if (r)
r                 220 arch/powerpc/kvm/book3s_hv_nested.c 	long int err, r;
r                 290 arch/powerpc/kvm/book3s_hv_nested.c 			r = RESUME_HOST;
r                 293 arch/powerpc/kvm/book3s_hv_nested.c 		r = kvmhv_run_single_vcpu(vcpu->arch.kvm_run, vcpu, hdec_exp,
r                 295 arch/powerpc/kvm/book3s_hv_nested.c 	} while (is_kvmppc_resume_guest(r));
r                 336 arch/powerpc/kvm/book3s_hv_nested.c 	if (r == -EINTR)
r                1063 arch/powerpc/kvm/book3s_hv_nested.c 	int r, ric, prs, is, ap;
r                1070 arch/powerpc/kvm/book3s_hv_nested.c 	r = get_r(instr);
r                1082 arch/powerpc/kvm/book3s_hv_nested.c 	if ((!r) || (prs) || (ric == 3) || (is == 1) ||
r                 429 arch/powerpc/kvm/book3s_hv_rm_mmu.c static inline int is_mmio_hpte(unsigned long v, unsigned long r)
r                 432 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		(r & (HPTE_R_KEY_HI | HPTE_R_KEY_LO)) ==
r                 442 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		unsigned long rb,rs,prs,r,ric;
r                 447 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = 1;   /* radix format */
r                 456 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			     : : "r"(rb), "i"(r), "i"(prs),
r                 503 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, rb;
r                 545 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	r = rev->guest_rpte & ~HPTE_GR_RESERVED;
r                 555 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	hpret[1] = r;
r                 692 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, rb, mask, bits;
r                 722 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = (rev->guest_rpte & ~mask) | bits;
r                 723 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		rev->guest_rpte = r;
r                 734 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = (pte_r & ~mask) | bits;
r                 735 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		if (hpte_is_writable(r) && !hpte_is_writable(pte_r))
r                 736 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r = hpte_make_readonly(r);
r                 738 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		if (r != pte_r) {
r                 739 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			rb = compute_tlbie_rb(v, r, pte_index);
r                 744 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r |= be64_to_cpu(hpte[1]) & (HPTE_R_R | HPTE_R_C);
r                 745 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			hpte[1] = cpu_to_be64(r);
r                 761 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r;
r                 777 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = be64_to_cpu(hpte[1]);
r                 779 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			v = hpte_new_to_old_v(v, r);
r                 780 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r = hpte_new_to_old_r(r);
r                 787 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r = rev[i].guest_rpte | (r & (HPTE_R_R | HPTE_R_C));
r                 788 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r &= ~HPTE_GR_RESERVED;
r                 791 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		vcpu->arch.regs.gpr[5 + i * 2] = r;
r                 801 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, gr;
r                 816 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	r = be64_to_cpu(hpte[1]);
r                 826 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		gr |= r & (HPTE_R_R | HPTE_R_C);
r                 827 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		if (r & HPTE_R_R) {
r                 849 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, gr;
r                 863 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	r = be64_to_cpu(hpte[1]);
r                 876 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = be64_to_cpu(hpte[1]);
r                 877 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		gr |= r & (HPTE_R_R | HPTE_R_C);
r                 878 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		if (r & HPTE_R_C) {
r                 879 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			hpte[1] = cpu_to_be64(r & ~HPTE_R_C);
r                1125 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, orig_v;
r                1171 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r = be64_to_cpu(hpte[i+1]);
r                1173 arch/powerpc/kvm/book3s_hv_rm_mmu.c 				v = hpte_new_to_old_v(v, r);
r                1174 arch/powerpc/kvm/book3s_hv_rm_mmu.c 				r = hpte_new_to_old_r(r);
r                1181 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			    kvmppc_hpte_base_page_shift(v, r) == pshift)
r                1213 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	unsigned long v, r, gr, orig_v;
r                1231 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = cache_entry->hpte_r;
r                1242 arch/powerpc/kvm/book3s_hv_rm_mmu.c 		r = be64_to_cpu(hpte[1]);
r                1244 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			v = hpte_new_to_old_v(v, r);
r                1245 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			r = hpte_new_to_old_r(r);
r                1288 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	vcpu->arch.pgfault_hpte[1] = r;
r                1292 arch/powerpc/kvm/book3s_hv_rm_mmu.c 	if ((r & (HPTE_R_KEY_HI | HPTE_R_KEY_LO)) ==
r                1307 arch/powerpc/kvm/book3s_hv_rm_mmu.c 			cache_entry->hpte_r = r;
r                 176 arch/powerpc/kvm/book3s_paired_singles.c 	int r;
r                 184 arch/powerpc/kvm/book3s_paired_singles.c 	r = kvmppc_ld(vcpu, &addr, len, tmp, true);
r                 187 arch/powerpc/kvm/book3s_paired_singles.c 	if (r < 0) {
r                 190 arch/powerpc/kvm/book3s_paired_singles.c 	} else if (r == EMULATE_DO_MMIO) {
r                 220 arch/powerpc/kvm/book3s_paired_singles.c 	int r;
r                 246 arch/powerpc/kvm/book3s_paired_singles.c 	r = kvmppc_st(vcpu, &addr, len, tmp, true);
r                 248 arch/powerpc/kvm/book3s_paired_singles.c 	if (r < 0) {
r                 250 arch/powerpc/kvm/book3s_paired_singles.c 	} else if (r == EMULATE_DO_MMIO) {
r                 266 arch/powerpc/kvm/book3s_paired_singles.c 	int r;
r                 272 arch/powerpc/kvm/book3s_paired_singles.c 		r = kvmppc_ld(vcpu, &addr, sizeof(u32), tmp, true);
r                 275 arch/powerpc/kvm/book3s_paired_singles.c 		r = kvmppc_ld(vcpu, &addr, sizeof(u32) * 2, tmp, true);
r                 278 arch/powerpc/kvm/book3s_paired_singles.c 	if (r < 0) {
r                 281 arch/powerpc/kvm/book3s_paired_singles.c 	} else if ((r == EMULATE_DO_MMIO) && w) {
r                 286 arch/powerpc/kvm/book3s_paired_singles.c 	} else if (r == EMULATE_DO_MMIO) {
r                 309 arch/powerpc/kvm/book3s_paired_singles.c 	int r;
r                 316 arch/powerpc/kvm/book3s_paired_singles.c 	r = kvmppc_st(vcpu, &addr, len, tmp, true);
r                 318 arch/powerpc/kvm/book3s_paired_singles.c 	if (r < 0) {
r                 320 arch/powerpc/kvm/book3s_paired_singles.c 	} else if ((r == EMULATE_DO_MMIO) && w) {
r                 322 arch/powerpc/kvm/book3s_paired_singles.c 	} else if (r == EMULATE_DO_MMIO) {
r                 381 arch/powerpc/kvm/book3s_pr.c 	int r = 1; /* Indicate we want to get back into the guest */
r                 388 arch/powerpc/kvm/book3s_pr.c 	return r;
r                 672 arch/powerpc/kvm/book3s_pr.c 	int r = RESUME_GUEST;
r                 775 arch/powerpc/kvm/book3s_pr.c 		r = kvmppc_emulate_mmio(run, vcpu);
r                 776 arch/powerpc/kvm/book3s_pr.c 		if ( r == RESUME_HOST_NV )
r                 777 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_HOST;
r                 780 arch/powerpc/kvm/book3s_pr.c 	return r;
r                1062 arch/powerpc/kvm/book3s_pr.c 	int emul, r;
r                1094 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST_NV;
r                1097 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1103 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1107 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_HOST_NV;
r                1110 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_HOST_NV;
r                1116 arch/powerpc/kvm/book3s_pr.c 	return r;
r                1122 arch/powerpc/kvm/book3s_pr.c 	int r = RESUME_HOST;
r                1156 arch/powerpc/kvm/book3s_pr.c 				r = RESUME_GUEST;
r                1165 arch/powerpc/kvm/book3s_pr.c 			r = kvmppc_handle_pagefault(run, vcpu, kvmppc_get_pc(vcpu), exit_nr);
r                1176 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1180 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1202 arch/powerpc/kvm/book3s_pr.c 				r = RESUME_GUEST;
r                1215 arch/powerpc/kvm/book3s_pr.c 			r = kvmppc_handle_pagefault(run, vcpu, dar, exit_nr);
r                1219 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1229 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1236 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1244 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1250 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1255 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1259 arch/powerpc/kvm/book3s_pr.c 		r = kvmppc_exit_pr_progint(run, vcpu, exit_nr);
r                1272 arch/powerpc/kvm/book3s_pr.c 				r = RESUME_GUEST;
r                1286 arch/powerpc/kvm/book3s_pr.c 				r = RESUME_GUEST;
r                1298 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_HOST;
r                1310 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_HOST_NV;
r                1315 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1320 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1337 arch/powerpc/kvm/book3s_pr.c 				r = kvmppc_exit_pr_progint(run, vcpu, exit_nr);
r                1339 arch/powerpc/kvm/book3s_pr.c 				r = RESUME_GUEST;
r                1359 arch/powerpc/kvm/book3s_pr.c 		r = kvmppc_handle_ext(vcpu, exit_nr, ext_msr);
r                1379 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1384 arch/powerpc/kvm/book3s_pr.c 		r = kvmppc_handle_fac(vcpu, vcpu->arch.shadow_fscr >> 56);
r                1389 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_GUEST;
r                1394 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_HOST;
r                1397 arch/powerpc/kvm/book3s_pr.c 			r = RESUME_GUEST;
r                1406 arch/powerpc/kvm/book3s_pr.c 		r = RESUME_HOST;
r                1412 arch/powerpc/kvm/book3s_pr.c 	if (!(r & RESUME_HOST)) {
r                1425 arch/powerpc/kvm/book3s_pr.c 			r = s;
r                1434 arch/powerpc/kvm/book3s_pr.c 	trace_kvm_book3s_reenter(r, vcpu);
r                1436 arch/powerpc/kvm/book3s_pr.c 	return r;
r                1515 arch/powerpc/kvm/book3s_pr.c 	int r = 0;
r                1563 arch/powerpc/kvm/book3s_pr.c 				r = -ENXIO;
r                1595 arch/powerpc/kvm/book3s_pr.c 			r = -ENXIO;
r                1605 arch/powerpc/kvm/book3s_pr.c 		r = -EINVAL;
r                1609 arch/powerpc/kvm/book3s_pr.c 	return r;
r                1623 arch/powerpc/kvm/book3s_pr.c 	int r = 0;
r                1663 arch/powerpc/kvm/book3s_pr.c 				r = -ENXIO;
r                1694 arch/powerpc/kvm/book3s_pr.c 			r = -ENXIO;
r                1704 arch/powerpc/kvm/book3s_pr.c 		r = -EINVAL;
r                1708 arch/powerpc/kvm/book3s_pr.c 	return r;
r                1870 arch/powerpc/kvm/book3s_pr.c 	int r;
r                1875 arch/powerpc/kvm/book3s_pr.c 	r = kvm_get_dirty_log(kvm, log, &is_dirty);
r                1876 arch/powerpc/kvm/book3s_pr.c 	if (r)
r                1894 arch/powerpc/kvm/book3s_pr.c 	r = 0;
r                1897 arch/powerpc/kvm/book3s_pr.c 	return r;
r                2097 arch/powerpc/kvm/book3s_pr.c 	int r;
r                2099 arch/powerpc/kvm/book3s_pr.c 	r = kvmppc_core_check_processor_compat_pr();
r                2100 arch/powerpc/kvm/book3s_pr.c 	if (r < 0)
r                2101 arch/powerpc/kvm/book3s_pr.c 		return r;
r                2106 arch/powerpc/kvm/book3s_pr.c 	r = kvmppc_mmu_hpte_sysinit();
r                2107 arch/powerpc/kvm/book3s_pr.c 	return r;
r                 219 arch/powerpc/kvm/book3s_pr_papr.c 	unsigned long rb, pteg, r, v;
r                 237 arch/powerpc/kvm/book3s_pr_papr.c 	r = pte[1];
r                 238 arch/powerpc/kvm/book3s_pr_papr.c 	r &= ~(HPTE_R_PP0 | HPTE_R_PP | HPTE_R_N | HPTE_R_KEY_HI |
r                 240 arch/powerpc/kvm/book3s_pr_papr.c 	r |= (flags << 55) & HPTE_R_PP0;
r                 241 arch/powerpc/kvm/book3s_pr_papr.c 	r |= (flags << 48) & HPTE_R_KEY_HI;
r                 242 arch/powerpc/kvm/book3s_pr_papr.c 	r |= flags & (HPTE_R_PP | HPTE_R_N | HPTE_R_KEY_LO);
r                 244 arch/powerpc/kvm/book3s_pr_papr.c 	pte[1] = r;
r                 246 arch/powerpc/kvm/book3s_pr_papr.c 	rb = compute_tlbie_rb(v, r, pte_index);
r                1412 arch/powerpc/kvm/book3s_xics.c 	int r = -EBUSY;
r                1421 arch/powerpc/kvm/book3s_xics.c 	r = kvmppc_xics_create_icp(vcpu, xcpu);
r                1422 arch/powerpc/kvm/book3s_xics.c 	if (!r)
r                1425 arch/powerpc/kvm/book3s_xics.c 	return r;
r                1219 arch/powerpc/kvm/book3s_xive.c 	int i, r = -EBUSY;
r                1243 arch/powerpc/kvm/book3s_xive.c 		r = -EEXIST;
r                1249 arch/powerpc/kvm/book3s_xive.c 		r = -ENOMEM;
r                1261 arch/powerpc/kvm/book3s_xive.c 	r = xive_native_get_vp_info(xc->vp_id, &xc->vp_cam, &xc->vp_chip_id);
r                1262 arch/powerpc/kvm/book3s_xive.c 	if (r)
r                1273 arch/powerpc/kvm/book3s_xive.c 		r = -EIO;
r                1278 arch/powerpc/kvm/book3s_xive.c 	r = xive_native_populate_irq_data(xc->vp_ipi, &xc->vp_ipi_data);
r                1279 arch/powerpc/kvm/book3s_xive.c 	if (r)
r                1286 arch/powerpc/kvm/book3s_xive.c 	r = xive_native_enable_vp(xc->vp_id, xive->single_escalation);
r                1287 arch/powerpc/kvm/book3s_xive.c 	if (r) {
r                1288 arch/powerpc/kvm/book3s_xive.c 		pr_err("Failed to enable VP in OPAL, err %d\n", r);
r                1308 arch/powerpc/kvm/book3s_xive.c 			r = xive_provision_queue(vcpu, i);
r                1309 arch/powerpc/kvm/book3s_xive.c 			if (r == 0 && !xive->single_escalation)
r                1312 arch/powerpc/kvm/book3s_xive.c 			if (r)
r                1315 arch/powerpc/kvm/book3s_xive.c 			r = xive_native_configure_queue(xc->vp_id,
r                1317 arch/powerpc/kvm/book3s_xive.c 			if (r) {
r                1326 arch/powerpc/kvm/book3s_xive.c 	r = kvmppc_xive_attach_escalation(vcpu, 0, xive->single_escalation);
r                1327 arch/powerpc/kvm/book3s_xive.c 	if (r)
r                1331 arch/powerpc/kvm/book3s_xive.c 	r = xive_native_configure_irq(xc->vp_ipi, xc->vp_id, 0, XICS_IPI);
r                1332 arch/powerpc/kvm/book3s_xive.c 	if (!r)
r                1337 arch/powerpc/kvm/book3s_xive.c 	if (r) {
r                1339 arch/powerpc/kvm/book3s_xive.c 		return r;
r                 684 arch/powerpc/kvm/booke.c 	int r = 0;
r                 701 arch/powerpc/kvm/booke.c 		r = 1;
r                 704 arch/powerpc/kvm/booke.c 	return r;
r                 709 arch/powerpc/kvm/booke.c 	int r = 1; /* Indicate we want to get back into the guest */
r                 720 arch/powerpc/kvm/booke.c 		r = 0;
r                 727 arch/powerpc/kvm/booke.c 		r = 0;
r                 730 arch/powerpc/kvm/booke.c 	return r;
r                 987 arch/powerpc/kvm/booke.c 	int r = RESUME_HOST;
r                1027 arch/powerpc/kvm/booke.c 		r = kvmppc_resume_inst_load(run, vcpu, emulated, last_inst);
r                1038 arch/powerpc/kvm/booke.c 		r = RESUME_HOST;
r                1043 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1048 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1052 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1057 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1068 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1079 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1083 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1087 arch/powerpc/kvm/booke.c 		r = emulation_exit(run, vcpu);
r                1097 arch/powerpc/kvm/booke.c 			r = kvmppc_handle_debug(run, vcpu);
r                1113 arch/powerpc/kvm/booke.c 			r = RESUME_GUEST;
r                1118 arch/powerpc/kvm/booke.c 		r = emulation_exit(run, vcpu);
r                1124 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1134 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1140 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1145 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1154 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1166 arch/powerpc/kvm/booke.c 		r = RESUME_HOST;
r                1177 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1182 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1190 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1196 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1202 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1217 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1225 arch/powerpc/kvm/booke.c 			r = RESUME_GUEST;
r                1231 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1246 arch/powerpc/kvm/booke.c 			r = RESUME_GUEST;
r                1261 arch/powerpc/kvm/booke.c 			r = RESUME_GUEST;
r                1279 arch/powerpc/kvm/booke.c 			r = RESUME_GUEST;
r                1285 arch/powerpc/kvm/booke.c 			r = kvmppc_emulate_mmio(run, vcpu);
r                1299 arch/powerpc/kvm/booke.c 		r = RESUME_GUEST;
r                1336 arch/powerpc/kvm/booke.c 		r = kvmppc_handle_debug(run, vcpu);
r                1337 arch/powerpc/kvm/booke.c 		if (r == RESUME_HOST)
r                1353 arch/powerpc/kvm/booke.c 	if (!(r & RESUME_HOST)) {
r                1356 arch/powerpc/kvm/booke.c 			r = (s << 2) | RESUME_HOST | (r & RESUME_FLAG_NV);
r                1365 arch/powerpc/kvm/booke.c 	return r;
r                1384 arch/powerpc/kvm/booke.c 	int r;
r                1405 arch/powerpc/kvm/booke.c 	r = kvmppc_core_vcpu_setup(vcpu);
r                1407 arch/powerpc/kvm/booke.c 	return r;
r                1656 arch/powerpc/kvm/booke.c 	int r = 0;
r                1702 arch/powerpc/kvm/booke.c 		r = vcpu->kvm->arch.kvm_ops->get_one_reg(vcpu, id, val);
r                1706 arch/powerpc/kvm/booke.c 	return r;
r                1712 arch/powerpc/kvm/booke.c 	int r = 0;
r                1771 arch/powerpc/kvm/booke.c 		r = vcpu->kvm->arch.kvm_ops->set_one_reg(vcpu, id, val);
r                1775 arch/powerpc/kvm/booke.c 	return r;
r                1791 arch/powerpc/kvm/booke.c 	int r;
r                1794 arch/powerpc/kvm/booke.c 	r = kvmppc_core_vcpu_translate(vcpu, tr);
r                1796 arch/powerpc/kvm/booke.c 	return r;
r                 319 arch/powerpc/kvm/e500.c 	int r;
r                 322 arch/powerpc/kvm/e500.c 		r = 0;
r                 324 arch/powerpc/kvm/e500.c 		r = -ENOTSUPP;
r                 326 arch/powerpc/kvm/e500.c 	return r;
r                 425 arch/powerpc/kvm/e500.c 	int r = kvmppc_get_one_reg_e500_tlb(vcpu, id, val);
r                 426 arch/powerpc/kvm/e500.c 	return r;
r                 432 arch/powerpc/kvm/e500.c 	int r = kvmppc_get_one_reg_e500_tlb(vcpu, id, val);
r                 433 arch/powerpc/kvm/e500.c 	return r;
r                 525 arch/powerpc/kvm/e500.c 	int r, i;
r                 532 arch/powerpc/kvm/e500.c 	r = kvmppc_core_check_processor_compat();
r                 533 arch/powerpc/kvm/e500.c 	if (r)
r                 536 arch/powerpc/kvm/e500.c 	r = kvmppc_booke_init();
r                 537 arch/powerpc/kvm/e500.c 	if (r)
r                 556 arch/powerpc/kvm/e500.c 	r = kvm_init(NULL, sizeof(struct kvmppc_vcpu_e500), 0, THIS_MODULE);
r                 557 arch/powerpc/kvm/e500.c 	if (r)
r                 563 arch/powerpc/kvm/e500.c 	return r;
r                 604 arch/powerpc/kvm/e500_mmu.c 	int r = 0;
r                 647 arch/powerpc/kvm/e500_mmu.c 		r = -EINVAL;
r                 651 arch/powerpc/kvm/e500_mmu.c 	return r;
r                 657 arch/powerpc/kvm/e500_mmu.c 	int r = 0;
r                 683 arch/powerpc/kvm/e500_mmu.c 			r = -EINVAL;
r                 689 arch/powerpc/kvm/e500_mmu.c 			r = -EINVAL;
r                 700 arch/powerpc/kvm/e500_mmu.c 			r = -EINVAL;
r                 710 arch/powerpc/kvm/e500_mmu.c 			r = -EINVAL;
r                 714 arch/powerpc/kvm/e500_mmu.c 		r = -EINVAL;
r                 718 arch/powerpc/kvm/e500_mmu.c 	return r;
r                 518 arch/powerpc/kvm/e500_mmu_host.c 	int r;
r                 523 arch/powerpc/kvm/e500_mmu_host.c 	r = kvmppc_e500_shadow_map(vcpu_e500, get_tlb_eaddr(gtlbe),
r                 526 arch/powerpc/kvm/e500_mmu_host.c 	if (r)
r                 527 arch/powerpc/kvm/e500_mmu_host.c 		return r;
r                 565 arch/powerpc/kvm/e500_mmu_host.c 	int r;
r                 567 arch/powerpc/kvm/e500_mmu_host.c 	r = kvmppc_e500_shadow_map(vcpu_e500, gvaddr, gfn, gtlbe, 1, stlbe,
r                 569 arch/powerpc/kvm/e500_mmu_host.c 	if (r)
r                 570 arch/powerpc/kvm/e500_mmu_host.c 		return r;
r                 173 arch/powerpc/kvm/e500mc.c 	int r;
r                 176 arch/powerpc/kvm/e500mc.c 		r = 0;
r                 178 arch/powerpc/kvm/e500mc.c 		r = 0;
r                 187 arch/powerpc/kvm/e500mc.c 		r = 0;
r                 190 arch/powerpc/kvm/e500mc.c 		r = -ENOTSUPP;
r                 192 arch/powerpc/kvm/e500mc.c 	return r;
r                 275 arch/powerpc/kvm/e500mc.c 	int r = 0;
r                 282 arch/powerpc/kvm/e500mc.c 		r = kvmppc_get_one_reg_e500_tlb(vcpu, id, val);
r                 285 arch/powerpc/kvm/e500mc.c 	return r;
r                 291 arch/powerpc/kvm/e500mc.c 	int r = 0;
r                 298 arch/powerpc/kvm/e500mc.c 		r = kvmppc_set_one_reg_e500_tlb(vcpu, id, val);
r                 301 arch/powerpc/kvm/e500mc.c 	return r;
r                 407 arch/powerpc/kvm/e500mc.c 	int r;
r                 409 arch/powerpc/kvm/e500mc.c 	r = kvmppc_booke_init();
r                 410 arch/powerpc/kvm/e500mc.c 	if (r)
r                 422 arch/powerpc/kvm/e500mc.c 	r = kvm_init(NULL, sizeof(struct kvmppc_vcpu_e500), 0, THIS_MODULE);
r                 423 arch/powerpc/kvm/e500mc.c 	if (r)
r                 429 arch/powerpc/kvm/e500mc.c 	return r;
r                 970 arch/powerpc/kvm/mpic.c 	uint32_t r = 0;
r                 988 arch/powerpc/kvm/mpic.c 		r = opp->msi[srs].msir;
r                 995 arch/powerpc/kvm/mpic.c 			r |= (opp->msi[i].msir ? 1 : 0) << i;
r                 999 arch/powerpc/kvm/mpic.c 	pr_debug("%s: => 0x%08x\n", __func__, r);
r                1000 arch/powerpc/kvm/mpic.c 	*ptr = r;
r                1006 arch/powerpc/kvm/mpic.c 	uint32_t r = 0;
r                1012 arch/powerpc/kvm/mpic.c 	*ptr = r;
r                1830 arch/powerpc/kvm/mpic.c 	int r = -EINVAL;
r                1850 arch/powerpc/kvm/mpic.c 	r = 0;
r                1852 arch/powerpc/kvm/mpic.c 	return r;
r                  79 arch/powerpc/kvm/powerpc.c 	int r;
r                  95 arch/powerpc/kvm/powerpc.c 			r = -EINTR;
r                 116 arch/powerpc/kvm/powerpc.c 			r = kvmppc_core_check_requests(vcpu);
r                 118 arch/powerpc/kvm/powerpc.c 			if (r > 0)
r                 135 arch/powerpc/kvm/powerpc.c 	return r;
r                 163 arch/powerpc/kvm/powerpc.c 	int r;
r                 225 arch/powerpc/kvm/powerpc.c 		r = EV_SUCCESS;
r                 229 arch/powerpc/kvm/powerpc.c 		r = EV_SUCCESS;
r                 237 arch/powerpc/kvm/powerpc.c 		r = EV_SUCCESS;
r                 242 arch/powerpc/kvm/powerpc.c 		r = EV_UNIMPLEMENTED;
r                 248 arch/powerpc/kvm/powerpc.c 	return r;
r                 254 arch/powerpc/kvm/powerpc.c 	int r = false;
r                 273 arch/powerpc/kvm/powerpc.c 	r = true;
r                 276 arch/powerpc/kvm/powerpc.c 	vcpu->arch.sane = r;
r                 277 arch/powerpc/kvm/powerpc.c 	return r ? 0 : -EINVAL;
r                 284 arch/powerpc/kvm/powerpc.c 	int r;
r                 291 arch/powerpc/kvm/powerpc.c 		r = RESUME_GUEST_NV;
r                 294 arch/powerpc/kvm/powerpc.c 		r = RESUME_GUEST;
r                 302 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST_NV;
r                 311 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST;
r                 316 arch/powerpc/kvm/powerpc.c 		r = RESUME_GUEST;
r                 319 arch/powerpc/kvm/powerpc.c 	return r;
r                 328 arch/powerpc/kvm/powerpc.c 	int r = -EINVAL;
r                 333 arch/powerpc/kvm/powerpc.c 		r = vcpu->kvm->arch.kvm_ops->store_to_eaddr(vcpu, eaddr, ptr,
r                 336 arch/powerpc/kvm/powerpc.c 	if ((!r) || (r == -EAGAIN))
r                 337 arch/powerpc/kvm/powerpc.c 		return r;
r                 339 arch/powerpc/kvm/powerpc.c 	r = kvmppc_xlate(vcpu, *eaddr, data ? XLATE_DATA : XLATE_INST,
r                 341 arch/powerpc/kvm/powerpc.c 	if (r < 0)
r                 342 arch/powerpc/kvm/powerpc.c 		return r;
r                 494 arch/powerpc/kvm/powerpc.c 	int r;
r                 523 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 532 arch/powerpc/kvm/powerpc.c 		r = !hv_enabled;
r                 536 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 543 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 546 arch/powerpc/kvm/powerpc.c 		r = !!cpu_has_feature(CPU_FTR_HVMODE);
r                 555 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 564 arch/powerpc/kvm/powerpc.c 		r = xive_enabled() && !!cpu_has_feature(CPU_FTR_HVMODE) &&
r                 570 arch/powerpc/kvm/powerpc.c 		r = hv_enabled;
r                 575 arch/powerpc/kvm/powerpc.c 		r = 0;
r                 578 arch/powerpc/kvm/powerpc.c 				r = kvm->arch.emul_smt_mode;
r                 580 arch/powerpc/kvm/powerpc.c 				r = kvm->arch.smt_mode;
r                 583 arch/powerpc/kvm/powerpc.c 				r = 1;
r                 585 arch/powerpc/kvm/powerpc.c 				r = threads_per_subcore;
r                 589 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 592 arch/powerpc/kvm/powerpc.c 				r = ((threads_per_subcore << 1) - 1);
r                 595 arch/powerpc/kvm/powerpc.c 				r = 8 | 4 | 2 | 1;
r                 599 arch/powerpc/kvm/powerpc.c 		r = 0;
r                 602 arch/powerpc/kvm/powerpc.c 		r = kvmppc_hwrng_present();
r                 605 arch/powerpc/kvm/powerpc.c 		r = !!(hv_enabled && radix_enabled());
r                 608 arch/powerpc/kvm/powerpc.c 		r = !!(hv_enabled && cpu_has_feature(CPU_FTR_ARCH_300) &&
r                 612 arch/powerpc/kvm/powerpc.c 		r = !!(hv_enabled && kvmppc_hv_ops->enable_nested &&
r                 618 arch/powerpc/kvm/powerpc.c 		r = hv_enabled;
r                 620 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 622 arch/powerpc/kvm/powerpc.c 		r = 0;
r                 627 arch/powerpc/kvm/powerpc.c 		r = hv_enabled;
r                 638 arch/powerpc/kvm/powerpc.c 			r = num_present_cpus();
r                 640 arch/powerpc/kvm/powerpc.c 			r = num_online_cpus();
r                 643 arch/powerpc/kvm/powerpc.c 		r = KVM_MAX_VCPUS;
r                 646 arch/powerpc/kvm/powerpc.c 		r = KVM_MAX_VCPU_ID;
r                 650 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 653 arch/powerpc/kvm/powerpc.c 		r = 1;
r                 656 arch/powerpc/kvm/powerpc.c 		r = !!hv_enabled;
r                 661 arch/powerpc/kvm/powerpc.c 		r = hv_enabled;
r                 666 arch/powerpc/kvm/powerpc.c 		r = !!(cur_cpu_spec->cpu_user_features2 & PPC_FEATURE2_HTM) ||
r                 671 arch/powerpc/kvm/powerpc.c 		r = 0;
r                 674 arch/powerpc/kvm/powerpc.c 	return r;
r                1461 arch/powerpc/kvm/powerpc.c 	int r;
r                1476 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST;
r                1482 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST;
r                1485 arch/powerpc/kvm/powerpc.c 		r = RESUME_GUEST;
r                1488 arch/powerpc/kvm/powerpc.c 	return r;
r                1640 arch/powerpc/kvm/powerpc.c 	int r;
r                1655 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST;
r                1661 arch/powerpc/kvm/powerpc.c 		r = RESUME_HOST;
r                1664 arch/powerpc/kvm/powerpc.c 		r = RESUME_GUEST;
r                1667 arch/powerpc/kvm/powerpc.c 	return r;
r                1673 arch/powerpc/kvm/powerpc.c 	int r = 0;
r                1681 arch/powerpc/kvm/powerpc.c 	r = kvmppc_get_one_reg(vcpu, reg->id, &val);
r                1682 arch/powerpc/kvm/powerpc.c 	if (r == -EINVAL) {
r                1683 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1688 arch/powerpc/kvm/powerpc.c 				r = -ENXIO;
r                1695 arch/powerpc/kvm/powerpc.c 				r = -ENXIO;
r                1705 arch/powerpc/kvm/powerpc.c 			r = -EINVAL;
r                1710 arch/powerpc/kvm/powerpc.c 	if (r)
r                1711 arch/powerpc/kvm/powerpc.c 		return r;
r                1714 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                1716 arch/powerpc/kvm/powerpc.c 	return r;
r                1721 arch/powerpc/kvm/powerpc.c 	int r;
r                1732 arch/powerpc/kvm/powerpc.c 	r = kvmppc_set_one_reg(vcpu, reg->id, &val);
r                1733 arch/powerpc/kvm/powerpc.c 	if (r == -EINVAL) {
r                1734 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1739 arch/powerpc/kvm/powerpc.c 				r = -ENXIO;
r                1746 arch/powerpc/kvm/powerpc.c 				r = -ENXIO;
r                1753 arch/powerpc/kvm/powerpc.c 				r = -ENXIO;
r                1760 arch/powerpc/kvm/powerpc.c 			r = -EINVAL;
r                1765 arch/powerpc/kvm/powerpc.c 	return r;
r                1770 arch/powerpc/kvm/powerpc.c 	int r;
r                1785 arch/powerpc/kvm/powerpc.c 			r = kvmppc_emulate_mmio_vsx_loadstore(vcpu, run);
r                1786 arch/powerpc/kvm/powerpc.c 			if (r == RESUME_HOST) {
r                1799 arch/powerpc/kvm/powerpc.c 			r = kvmppc_emulate_mmio_vmx_loadstore(vcpu, run);
r                1800 arch/powerpc/kvm/powerpc.c 			if (r == RESUME_HOST) {
r                1830 arch/powerpc/kvm/powerpc.c 		r = -EINTR;
r                1832 arch/powerpc/kvm/powerpc.c 		r = kvmppc_vcpu_run(run, vcpu);
r                1840 arch/powerpc/kvm/powerpc.c 	return r;
r                1860 arch/powerpc/kvm/powerpc.c 	int r;
r                1867 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1871 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1875 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1883 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1892 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                1896 arch/powerpc/kvm/powerpc.c 		r = kvm_vcpu_ioctl_config_tlb(vcpu, &cfg);
r                1905 arch/powerpc/kvm/powerpc.c 		r = -EBADF;
r                1910 arch/powerpc/kvm/powerpc.c 		r = -EPERM;
r                1913 arch/powerpc/kvm/powerpc.c 			r = kvmppc_mpic_connect_vcpu(dev, vcpu, cap->args[1]);
r                1924 arch/powerpc/kvm/powerpc.c 		r = -EBADF;
r                1929 arch/powerpc/kvm/powerpc.c 		r = -EPERM;
r                1933 arch/powerpc/kvm/powerpc.c 				r = kvmppc_xive_connect_vcpu(dev, vcpu, cap->args[1]);
r                1935 arch/powerpc/kvm/powerpc.c 				r = kvmppc_xics_connect_vcpu(dev, vcpu, cap->args[1]);
r                1947 arch/powerpc/kvm/powerpc.c 		r = -EBADF;
r                1952 arch/powerpc/kvm/powerpc.c 		r = -ENXIO;
r                1956 arch/powerpc/kvm/powerpc.c 		r = -EPERM;
r                1959 arch/powerpc/kvm/powerpc.c 			r = kvmppc_xive_native_connect_vcpu(dev, vcpu,
r                1968 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                1971 arch/powerpc/kvm/powerpc.c 		r = 0;
r                1976 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                1980 arch/powerpc/kvm/powerpc.c 	if (!r)
r                1981 arch/powerpc/kvm/powerpc.c 		r = kvmppc_sanity_check(vcpu);
r                1983 arch/powerpc/kvm/powerpc.c 	return r;
r                2031 arch/powerpc/kvm/powerpc.c 	long r;
r                2037 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2041 arch/powerpc/kvm/powerpc.c 		r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap);
r                2050 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2054 arch/powerpc/kvm/powerpc.c 			r = kvm_vcpu_ioctl_set_one_reg(vcpu, &reg);
r                2056 arch/powerpc/kvm/powerpc.c 			r = kvm_vcpu_ioctl_get_one_reg(vcpu, &reg);
r                2063 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2067 arch/powerpc/kvm/powerpc.c 		r = kvm_vcpu_ioctl_dirty_tlb(vcpu, &dirty);
r                2073 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2077 arch/powerpc/kvm/powerpc.c 	return r;
r                2136 arch/powerpc/kvm/powerpc.c 	int r;
r                2146 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2156 arch/powerpc/kvm/powerpc.c 		r = 0;
r                2163 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2165 arch/powerpc/kvm/powerpc.c 			r = kvm->arch.kvm_ops->set_smt_mode(kvm, mode, flags);
r                2170 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2174 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->enable_nested(kvm);
r                2178 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2182 arch/powerpc/kvm/powerpc.c 	return r;
r                2234 arch/powerpc/kvm/powerpc.c 	bool r = false;
r                2238 arch/powerpc/kvm/powerpc.c 		r = of_property_read_bool(np, state);
r                2241 arch/powerpc/kvm/powerpc.c 	return r;
r                2247 arch/powerpc/kvm/powerpc.c 	int r;
r                2250 arch/powerpc/kvm/powerpc.c 	r = pseries_get_cpu_char(cp);
r                2251 arch/powerpc/kvm/powerpc.c 	if (r != -ENOTTY)
r                2252 arch/powerpc/kvm/powerpc.c 		return r;
r                2318 arch/powerpc/kvm/powerpc.c 	long r;
r                2324 arch/powerpc/kvm/powerpc.c 		r = kvm_vm_ioctl_get_pvinfo(&pvinfo);
r                2326 arch/powerpc/kvm/powerpc.c 			r = -EFAULT;
r                2336 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2340 arch/powerpc/kvm/powerpc.c 			r = -EINVAL;
r                2343 arch/powerpc/kvm/powerpc.c 		r = kvm_vm_ioctl_create_spapr_tce(kvm, &create_tce_64);
r                2350 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2360 arch/powerpc/kvm/powerpc.c 		r = kvm_vm_ioctl_create_spapr_tce(kvm, &create_tce_64);
r                2370 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->get_smmu_info(kvm, &info);
r                2371 arch/powerpc/kvm/powerpc.c 		if (r >= 0 && copy_to_user(argp, &info, sizeof(info)))
r                2372 arch/powerpc/kvm/powerpc.c 			r = -EFAULT;
r                2378 arch/powerpc/kvm/powerpc.c 		r = kvm_vm_ioctl_rtas_define_token(kvm, argp);
r                2385 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2388 arch/powerpc/kvm/powerpc.c 		r = -EFAULT;
r                2391 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->configure_mmu(kvm, &cfg);
r                2398 arch/powerpc/kvm/powerpc.c 		r = -EINVAL;
r                2401 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->get_rmmu_info(kvm, &info);
r                2402 arch/powerpc/kvm/powerpc.c 		if (r >= 0 && copy_to_user(argp, &info, sizeof(info)))
r                2403 arch/powerpc/kvm/powerpc.c 			r = -EFAULT;
r                2409 arch/powerpc/kvm/powerpc.c 		r = kvmppc_get_cpu_char(&cpuchar);
r                2410 arch/powerpc/kvm/powerpc.c 		if (r >= 0 && copy_to_user(argp, &cpuchar, sizeof(cpuchar)))
r                2411 arch/powerpc/kvm/powerpc.c 			r = -EFAULT;
r                2416 arch/powerpc/kvm/powerpc.c 		r = kvm->arch.kvm_ops->arch_vm_ioctl(filp, ioctl, arg);
r                2420 arch/powerpc/kvm/powerpc.c 		r = -ENOTTY;
r                2424 arch/powerpc/kvm/powerpc.c 	return r;
r                  13 arch/powerpc/kvm/trace_pr.h 	TP_PROTO(int r, struct kvm_vcpu *vcpu),
r                  14 arch/powerpc/kvm/trace_pr.h 	TP_ARGS(r, vcpu),
r                  17 arch/powerpc/kvm/trace_pr.h 		__field(	unsigned int,	r		)
r                  22 arch/powerpc/kvm/trace_pr.h 		__entry->r		= r;
r                  26 arch/powerpc/kvm/trace_pr.h 	TP_printk("reentry r=%d | pc=0x%lx", __entry->r, __entry->pc)
r                 333 arch/powerpc/lib/rheap.c 	int r;
r                 354 arch/powerpc/lib/rheap.c 	r = assure_empty(info, 1);
r                 355 arch/powerpc/lib/rheap.c 	if (r < 0)
r                 356 arch/powerpc/lib/rheap.c 		return r;
r                3107 arch/powerpc/lib/sstep.c 	int r, err, type;
r                3111 arch/powerpc/lib/sstep.c 	r = analyse_instr(&op, regs, instr);
r                3112 arch/powerpc/lib/sstep.c 	if (r < 0)
r                3113 arch/powerpc/lib/sstep.c 		return r;
r                3114 arch/powerpc/lib/sstep.c 	if (r > 0) {
r                  21 arch/powerpc/lib/test_emulate_step.c #define TEST_LD(r, base, i)	(PPC_INST_LD | ___PPC_RT(r) |		\
r                  23 arch/powerpc/lib/test_emulate_step.c #define TEST_LWZ(r, base, i)	(PPC_INST_LWZ | ___PPC_RT(r) |		\
r                  27 arch/powerpc/lib/test_emulate_step.c #define TEST_STD(r, base, i)	(PPC_INST_STD | ___PPC_RS(r) |		\
r                  15 arch/powerpc/math-emu/fctiw.c 	unsigned int r;
r                  18 arch/powerpc/math-emu/fctiw.c 	FP_TO_INT_D(r, B, 32, 1);
r                  19 arch/powerpc/math-emu/fctiw.c 	frD[1] = r;
r                  16 arch/powerpc/math-emu/fctiwz.c 	unsigned int r;
r                  23 arch/powerpc/math-emu/fctiwz.c 	FP_TO_INT_D(r, B, 32, 1);
r                  24 arch/powerpc/math-emu/fctiwz.c 	frD[1] = r;
r                  10 arch/powerpc/math-emu/udivmodti4.c _fp_udivmodti4(_FP_W_TYPE q[2], _FP_W_TYPE r[2],
r                 191 arch/powerpc/math-emu/udivmodti4.c   r[0] = r0, r[1] = r1;
r                  65 arch/powerpc/mm/book3s64/hash_native.c 	unsigned int r = 0; /* hash format */
r                  71 arch/powerpc/mm/book3s64/hash_native.c 		     : : "r"(rb), "r"(rs), "i"(ric), "i"(prs), "r"(r)
r                 206 arch/powerpc/mm/book3s64/hash_native.c 		unsigned long rb,rs,prs,r,ric;
r                 211 arch/powerpc/mm/book3s64/hash_native.c 		r = 1;   /* radix format */
r                 220 arch/powerpc/mm/book3s64/hash_native.c 			     : : "r"(rb), "i"(r), "i"(prs),
r                 379 arch/powerpc/mm/book3s64/hash_native.c 	hptep->r = cpu_to_be64(hpte_r);
r                 466 arch/powerpc/mm/book3s64/hash_native.c 			hptep->r = cpu_to_be64((be64_to_cpu(hptep->r) &
r                 535 arch/powerpc/mm/book3s64/hash_native.c 	hptep->r = cpu_to_be64((be64_to_cpu(hptep->r) &
r                 692 arch/powerpc/mm/book3s64/hash_native.c 	unsigned long hpte_r = be64_to_cpu(hpte->r);
r                  96 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 102 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 105 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 106 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(0, 1, rb, rs, ric, prs, r);
r                 111 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 116 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 119 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 120 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(0, 0, rb, rs, ric, prs, r);
r                 125 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 130 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 133 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 134 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(lpid, 0, rb, rs, ric, prs, r);
r                 139 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 144 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 147 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 148 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(lpid, 0, rb, rs, ric, prs, r);
r                 154 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 160 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 163 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 164 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(0, 1, rb, rs, ric, prs, r);
r                 170 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 176 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 179 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 180 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(0, 0, rb, rs, ric, prs, r);
r                 186 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,rs,prs,r;
r                 192 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                 195 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs) : "memory");
r                 196 arch/powerpc/mm/book3s64/radix_tlb.c 	trace_tlbie(lpid, 0, rb, rs, ric, prs, r);
r                1194 arch/powerpc/mm/book3s64/radix_tlb.c 	unsigned long rb,prs,r,rs;
r                1199 arch/powerpc/mm/book3s64/radix_tlb.c 	r = 1;   /* radix format */
r                1207 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(1), "i"(ric), "r"(rs) : "memory");
r                1212 arch/powerpc/mm/book3s64/radix_tlb.c 		     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(0) : "memory");
r                 184 arch/powerpc/mm/ptdump/hashpagetable.c static void dump_hpte_info(struct pg_state *st, unsigned long ea, u64 v, u64 r,
r                 197 arch/powerpc/mm/ptdump/hashpagetable.c 	dump_flag_info(st, r_flag_array, r, ARRAY_SIZE(r_flag_array));
r                 208 arch/powerpc/mm/ptdump/hashpagetable.c 		*r)
r                 232 arch/powerpc/mm/ptdump/hashpagetable.c 			*r = be64_to_cpu(hptep->r);
r                 240 arch/powerpc/mm/ptdump/hashpagetable.c static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r)
r                 269 arch/powerpc/mm/ptdump/hashpagetable.c 				*r = ptes[j].r;
r                 277 arch/powerpc/mm/ptdump/hashpagetable.c static void decode_r(int bps, unsigned long r, unsigned long *rpn, int *aps,
r                 294 arch/powerpc/mm/ptdump/hashpagetable.c 	arpn = (r & HPTE_R_RPN) >> HPTE_R_RPN_SHIFT;
r                 315 arch/powerpc/mm/ptdump/hashpagetable.c 			  u64 *r)
r                 318 arch/powerpc/mm/ptdump/hashpagetable.c 		return pseries_find(ea, psize, primary, v, r);
r                 320 arch/powerpc/mm/ptdump/hashpagetable.c 	return native_find(ea, psize, primary, v, r);
r                 326 arch/powerpc/mm/ptdump/hashpagetable.c 	u64 v  = 0, r = 0;
r                 334 arch/powerpc/mm/ptdump/hashpagetable.c 	slot = base_hpte_find(ea, psize, true, &v, &r);
r                 338 arch/powerpc/mm/ptdump/hashpagetable.c 		slot = base_hpte_find(ea, psize, false, &v, &r);
r                 353 arch/powerpc/mm/ptdump/hashpagetable.c 		decode_r(psize, r, &rpn, &actual_psize, &lp_bits);
r                 357 arch/powerpc/mm/ptdump/hashpagetable.c 		rpn = (r & HPTE_R_RPN) >> HPTE_R_RPN_SHIFT;
r                 368 arch/powerpc/mm/ptdump/hashpagetable.c 	dump_hpte_info(st, ea, v, r, rpn, base_psize, actual_psize, lp_bits);
r                  38 arch/powerpc/net/bpf_jit.h #define PPC_MTLR(r)		EMIT(PPC_INST_MTLR | ___PPC_RT(r))
r                  40 arch/powerpc/net/bpf_jit.h #define PPC_MTCTR(r)		EMIT(PPC_INST_MTCTR | ___PPC_RT(r))
r                  44 arch/powerpc/net/bpf_jit.h #define PPC_LI(r, i)		PPC_ADDI(r, 0, i)
r                  47 arch/powerpc/net/bpf_jit.h #define PPC_LIS(r, i)		PPC_ADDIS(r, 0, i)
r                  48 arch/powerpc/net/bpf_jit.h #define PPC_STD(r, base, i)	EMIT(PPC_INST_STD | ___PPC_RS(r) |	      \
r                  50 arch/powerpc/net/bpf_jit.h #define PPC_STDX(r, base, b)	EMIT(PPC_INST_STDX | ___PPC_RS(r) |	      \
r                  52 arch/powerpc/net/bpf_jit.h #define PPC_STDU(r, base, i)	EMIT(PPC_INST_STDU | ___PPC_RS(r) |	      \
r                  54 arch/powerpc/net/bpf_jit.h #define PPC_STW(r, base, i)	EMIT(PPC_INST_STW | ___PPC_RS(r) |	      \
r                  56 arch/powerpc/net/bpf_jit.h #define PPC_STWU(r, base, i)	EMIT(PPC_INST_STWU | ___PPC_RS(r) |	      \
r                  58 arch/powerpc/net/bpf_jit.h #define PPC_STH(r, base, i)	EMIT(PPC_INST_STH | ___PPC_RS(r) |	      \
r                  60 arch/powerpc/net/bpf_jit.h #define PPC_STB(r, base, i)	EMIT(PPC_INST_STB | ___PPC_RS(r) |	      \
r                  63 arch/powerpc/net/bpf_jit.h #define PPC_LBZ(r, base, i)	EMIT(PPC_INST_LBZ | ___PPC_RT(r) |	      \
r                  65 arch/powerpc/net/bpf_jit.h #define PPC_LD(r, base, i)	EMIT(PPC_INST_LD | ___PPC_RT(r) |	      \
r                  67 arch/powerpc/net/bpf_jit.h #define PPC_LDX(r, base, b)	EMIT(PPC_INST_LDX | ___PPC_RT(r) |	      \
r                  69 arch/powerpc/net/bpf_jit.h #define PPC_LWZ(r, base, i)	EMIT(PPC_INST_LWZ | ___PPC_RT(r) |	      \
r                  71 arch/powerpc/net/bpf_jit.h #define PPC_LHZ(r, base, i)	EMIT(PPC_INST_LHZ | ___PPC_RT(r) |	      \
r                  73 arch/powerpc/net/bpf_jit.h #define PPC_LHBRX(r, base, b)	EMIT(PPC_INST_LHBRX | ___PPC_RT(r) |	      \
r                  75 arch/powerpc/net/bpf_jit.h #define PPC_LDBRX(r, base, b)	EMIT(PPC_INST_LDBRX | ___PPC_RT(r) |	      \
r                  75 arch/powerpc/net/bpf_jit32.h #define PPC_LBZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LBZ(r, base, i);   \
r                  76 arch/powerpc/net/bpf_jit32.h 		else {	PPC_ADDIS(r, base, IMM_HA(i));			      \
r                  77 arch/powerpc/net/bpf_jit32.h 			PPC_LBZ(r, r, IMM_L(i)); } } while(0)
r                  79 arch/powerpc/net/bpf_jit32.h #define PPC_LD_OFFS(r, base, i) do { if ((i) < 32768) PPC_LD(r, base, i);     \
r                  80 arch/powerpc/net/bpf_jit32.h 		else {	PPC_ADDIS(r, base, IMM_HA(i));			      \
r                  81 arch/powerpc/net/bpf_jit32.h 			PPC_LD(r, r, IMM_L(i)); } } while(0)
r                  83 arch/powerpc/net/bpf_jit32.h #define PPC_LWZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LWZ(r, base, i);   \
r                  84 arch/powerpc/net/bpf_jit32.h 		else {	PPC_ADDIS(r, base, IMM_HA(i));			      \
r                  85 arch/powerpc/net/bpf_jit32.h 			PPC_LWZ(r, r, IMM_L(i)); } } while(0)
r                  87 arch/powerpc/net/bpf_jit32.h #define PPC_LHZ_OFFS(r, base, i) do { if ((i) < 32768) PPC_LHZ(r, base, i);   \
r                  88 arch/powerpc/net/bpf_jit32.h 		else {	PPC_ADDIS(r, base, IMM_HA(i));			      \
r                  89 arch/powerpc/net/bpf_jit32.h 			PPC_LHZ(r, r, IMM_L(i)); } } while(0)
r                  92 arch/powerpc/net/bpf_jit32.h #define PPC_LL_OFFS(r, base, i) do { PPC_LD_OFFS(r, base, i); } while(0)
r                  94 arch/powerpc/net/bpf_jit32.h #define PPC_LL_OFFS(r, base, i) do { PPC_LWZ_OFFS(r, base, i); } while(0)
r                  99 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_LOAD_CPU(r)		\
r                 101 arch/powerpc/net/bpf_jit32.h 		PPC_LHZ_OFFS(r, 13, offsetof(struct paca_struct, paca_index));	\
r                 104 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_LOAD_CPU(r)     \
r                 106 arch/powerpc/net/bpf_jit32.h 		PPC_LHZ_OFFS(r, 2, offsetof(struct task_struct, cpu));		\
r                 110 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_LOAD_CPU(r) do { PPC_LI(r, 0); } while(0)
r                 113 arch/powerpc/net/bpf_jit32.h #define PPC_LHBRX_OFFS(r, base, i) \
r                 114 arch/powerpc/net/bpf_jit32.h 		do { PPC_LI32(r, i); PPC_LHBRX(r, r, base); } while(0)
r                 116 arch/powerpc/net/bpf_jit32.h #define PPC_NTOHS_OFFS(r, base, i)	PPC_LHBRX_OFFS(r, base, i)
r                 118 arch/powerpc/net/bpf_jit32.h #define PPC_NTOHS_OFFS(r, base, i)	PPC_LHZ_OFFS(r, base, i)
r                 121 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_LL(r, base, i) do { PPC_LWZ(r, base, i); } while(0)
r                 122 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_STL(r, base, i) do { PPC_STW(r, base, i); } while(0)
r                 123 arch/powerpc/net/bpf_jit32.h #define PPC_BPF_STLU(r, base, i) do { PPC_STWU(r, base, i); } while(0)
r                  71 arch/powerpc/net/bpf_jit64.h #define PPC_BPF_LL(r, base, i) do {					      \
r                  74 arch/powerpc/net/bpf_jit64.h 					PPC_LDX(r, base, b2p[TMP_REG_2]);     \
r                  76 arch/powerpc/net/bpf_jit64.h 					PPC_LD(r, base, i);		      \
r                  78 arch/powerpc/net/bpf_jit64.h #define PPC_BPF_STL(r, base, i) do {					      \
r                  81 arch/powerpc/net/bpf_jit64.h 					PPC_STDX(r, base, b2p[TMP_REG_2]);    \
r                  83 arch/powerpc/net/bpf_jit64.h 					PPC_STD(r, base, i);		      \
r                  85 arch/powerpc/net/bpf_jit64.h #define PPC_BPF_STLU(r, base, i) do { PPC_STDU(r, base, i); } while(0)
r                 548 arch/powerpc/perf/hv-24x7.c 	int r = memord(v1, s1, v2, s2);
r                 550 arch/powerpc/perf/hv-24x7.c 	if (r)
r                 551 arch/powerpc/perf/hv-24x7.c 		return r;
r                1572 arch/powerpc/perf/hv-24x7.c 	int r;
r                1607 arch/powerpc/perf/hv-24x7.c 	r = create_events_from_catalog(&event_group.attrs,
r                1611 arch/powerpc/perf/hv-24x7.c 	if (r)
r                1612 arch/powerpc/perf/hv-24x7.c 		return r;
r                1614 arch/powerpc/perf/hv-24x7.c 	r = perf_pmu_register(&h_24x7_pmu, h_24x7_pmu.name, -1);
r                1615 arch/powerpc/perf/hv-24x7.c 	if (r)
r                1616 arch/powerpc/perf/hv-24x7.c 		return r;
r                  10 arch/powerpc/perf/hv-common.c 	unsigned long r;
r                  25 arch/powerpc/perf/hv-common.c 	r = plpar_hcall_norets(H_GET_PERF_COUNTER_INFO,
r                  28 arch/powerpc/perf/hv-common.c 	if (r)
r                  29 arch/powerpc/perf/hv-common.c 		return r;
r                  39 arch/powerpc/perf/hv-common.c 	return r;
r                 280 arch/powerpc/perf/hv-gpci.c 	int r;
r                 301 arch/powerpc/perf/hv-gpci.c 	r = perf_pmu_register(&h_gpci_pmu, h_gpci_pmu.name, -1);
r                 302 arch/powerpc/perf/hv-gpci.c 	if (r)
r                 303 arch/powerpc/perf/hv-gpci.c 		return r;
r                  16 arch/powerpc/perf/perf_regs.c #define PT_REGS_OFFSET(id, r) [id] = offsetof(struct pt_regs, r)
r                  73 arch/powerpc/platforms/4xx/soc.c 	u32 r;
r                 137 arch/powerpc/platforms/4xx/soc.c 	r = mfdcr(dcrbase_l2c + DCRN_L2C0_CFG) &
r                 139 arch/powerpc/platforms/4xx/soc.c 	r |= L2C_CFG_L2M | L2C_CFG_SS_256;
r                 140 arch/powerpc/platforms/4xx/soc.c 	mtdcr(dcrbase_l2c + DCRN_L2C0_CFG, r);
r                 153 arch/powerpc/platforms/4xx/soc.c 	r = mfdcr(dcrbase_l2c + DCRN_L2C0_SNP0) &
r                 155 arch/powerpc/platforms/4xx/soc.c 	r |= L2C_SNP_SSR_32G | L2C_SNP_ESR;
r                 156 arch/powerpc/platforms/4xx/soc.c 	mtdcr(dcrbase_l2c + DCRN_L2C0_SNP0, r);
r                 158 arch/powerpc/platforms/4xx/soc.c 	r = mfdcr(dcrbase_l2c + DCRN_L2C0_SNP1) &
r                 160 arch/powerpc/platforms/4xx/soc.c 	r |= 0x80000000 | L2C_SNP_SSR_32G | L2C_SNP_ESR;
r                 161 arch/powerpc/platforms/4xx/soc.c 	mtdcr(dcrbase_l2c + DCRN_L2C0_SNP1, r);
r                 166 arch/powerpc/platforms/4xx/soc.c 	r = mfdcr(dcrbase_l2c + DCRN_L2C0_CFG);
r                 167 arch/powerpc/platforms/4xx/soc.c 	r &= ~(L2C_CFG_DCW_MASK | L2C_CFG_PMUX_MASK | L2C_CFG_PMIM
r                 169 arch/powerpc/platforms/4xx/soc.c 	r |= L2C_CFG_ICU | L2C_CFG_DCU | L2C_CFG_TPC | L2C_CFG_CPC | L2C_CFG_FRAN
r                 175 arch/powerpc/platforms/4xx/soc.c 		r |= L2C_CFG_RDBW;
r                 177 arch/powerpc/platforms/4xx/soc.c 	mtdcr(dcrbase_l2c + DCRN_L2C0_CFG, r);
r                 431 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c 	struct resource r;
r                 441 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c 	if (of_address_to_resource(pdev->dev.of_node, 0, &r) != 0) {
r                 447 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c 	lpbfifo.regs_phys = r.start;
r                 448 arch/powerpc/platforms/512x/mpc512x_lpbfifo.c 	lpbfifo.regs_size = resource_size(&r);
r                 289 arch/powerpc/platforms/52xx/mpc52xx_gpt.c 	u32 r;
r                 292 arch/powerpc/platforms/52xx/mpc52xx_gpt.c 	r = v ? MPC52xx_GPT_MODE_GPIO_OUT_HIGH : MPC52xx_GPT_MODE_GPIO_OUT_LOW;
r                 295 arch/powerpc/platforms/52xx/mpc52xx_gpt.c 	clrsetbits_be32(&gpt->regs->mode, MPC52xx_GPT_MODE_GPIO_MASK, r);
r                  46 arch/powerpc/platforms/82xx/pq2.c 	struct resource r;
r                  48 arch/powerpc/platforms/82xx/pq2.c 	if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b)
r                  59 arch/powerpc/platforms/82xx/pq2.c 	setup_indirect_pci(hose, r.start + 0x100, r.start + 0x104, 0);
r                  85 arch/powerpc/platforms/85xx/xes_mpc85xx.c 		struct resource r[2];
r                  97 arch/powerpc/platforms/85xx/xes_mpc85xx.c 		err = of_address_to_resource(np, 0, &r[0]);
r                 105 arch/powerpc/platforms/85xx/xes_mpc85xx.c 		l2_base = ioremap(r[0].start, resource_size(&r[0]));
r                 279 arch/powerpc/platforms/86xx/mpc8610_hpcd.c 	struct resource r;
r                 297 arch/powerpc/platforms/86xx/mpc8610_hpcd.c 		of_address_to_resource(pixis_node, 0, &r);
r                 299 arch/powerpc/platforms/86xx/mpc8610_hpcd.c 		pixis = ioremap(r.start, 32);
r                 259 arch/powerpc/platforms/cell/iommu.c 	struct resource r;
r                 267 arch/powerpc/platforms/cell/iommu.c 		if (of_address_to_resource(np, 0, &r)) {
r                 272 arch/powerpc/platforms/cell/iommu.c 		*base = r.start;
r                 117 arch/powerpc/platforms/cell/spider-pci.c 	struct resource r;
r                 130 arch/powerpc/platforms/cell/spider-pci.c 	if (of_address_to_resource(np, 0, &r)) {
r                 135 arch/powerpc/platforms/cell/spider-pci.c 	regs = ioremap(r.start + offset, SPIDER_PCI_REG_SIZE);
r                 322 arch/powerpc/platforms/cell/spider-pic.c 	struct resource r;
r                 335 arch/powerpc/platforms/cell/spider-pic.c 			if (of_address_to_resource(dn, 0, &r)) {
r                 343 arch/powerpc/platforms/cell/spider-pic.c 			r.start = hard_coded_pics[chip];
r                 346 arch/powerpc/platforms/cell/spider-pic.c 		spider_init_one(dn, chip++, r.start);
r                 138 arch/powerpc/platforms/chrp/pci.c 	struct resource r;
r                 141 arch/powerpc/platforms/chrp/pci.c 	if (np == NULL || of_address_to_resource(np, 0, &r)) {
r                 146 arch/powerpc/platforms/chrp/pci.c 	Hydra = ioremap(r.start, resource_size(&r));
r                 147 arch/powerpc/platforms/chrp/pci.c 	printk("Hydra Mac I/O at %llx\n", (unsigned long long)r.start);
r                 169 arch/powerpc/platforms/chrp/pci.c 	struct resource r;
r                 171 arch/powerpc/platforms/chrp/pci.c 	if (of_address_to_resource(dev, 0, &r)) {
r                 177 arch/powerpc/platforms/chrp/pci.c 	reg = ioremap(r.start + 0xf6000, 0x40);
r                 186 arch/powerpc/platforms/chrp/pci.c 	setup_indirect_pci(hose, r.start + 0xf8000, r.start + 0xf8010, 0);
r                 218 arch/powerpc/platforms/chrp/pci.c 	struct resource r;
r                 238 arch/powerpc/platforms/chrp/pci.c 		if (of_address_to_resource(dev, 0, &r) && !is_longtrail) {
r                 256 arch/powerpc/platforms/chrp/pci.c 			printk(" at %llx", (unsigned long long)r.start);
r                 287 arch/powerpc/platforms/chrp/pci.c 					   r.start + 0x000f8000,
r                 288 arch/powerpc/platforms/chrp/pci.c 					   r.start + 0x000f8010,
r                 397 arch/powerpc/platforms/chrp/setup.c 		struct resource r;
r                 398 arch/powerpc/platforms/chrp/setup.c 		if (of_address_to_resource(np, 0, &r)) {
r                 401 arch/powerpc/platforms/chrp/setup.c 		opaddr = r.start;
r                  46 arch/powerpc/platforms/chrp/time.c 	struct resource r;
r                  54 arch/powerpc/platforms/chrp/time.c 	if (of_address_to_resource(rtcs, 0, &r)) {
r                  60 arch/powerpc/platforms/chrp/time.c 	base = r.start;
r                  74 arch/powerpc/platforms/maple/setup.c 		struct resource r;
r                  75 arch/powerpc/platforms/maple/setup.c 		if (of_address_to_resource(rtcs, 0, &r)) {
r                  80 arch/powerpc/platforms/maple/setup.c 		if (!(r.flags & IORESOURCE_IO)) {
r                  84 arch/powerpc/platforms/maple/setup.c 		result = r.start;
r                 306 arch/powerpc/platforms/maple/setup.c 	struct resource r;
r                 318 arch/powerpc/platforms/maple/setup.c 	ret = of_address_to_resource(np, 0, &r);
r                 327 arch/powerpc/platforms/maple/setup.c 	mem = ioremap(r.start, resource_size(&r));
r                 343 arch/powerpc/platforms/maple/setup.c 	pdev = platform_device_register_simple("cpc925_edac", 0, &r, 1);
r                 142 arch/powerpc/platforms/maple/time.c 		struct resource r;
r                 143 arch/powerpc/platforms/maple/time.c 		if (of_address_to_resource(rtcs, 0, &r)) {
r                 148 arch/powerpc/platforms/maple/time.c 		if (!(r.flags & IORESOURCE_IO)) {
r                 152 arch/powerpc/platforms/maple/time.c 		maple_rtc_addr = r.start;
r                1202 arch/powerpc/platforms/powermac/pci.c 		struct resource *r = &host->mem_resources[i];
r                1203 arch/powerpc/platforms/powermac/pci.c 		if (!(r->flags & IORESOURCE_MEM))
r                1208 arch/powerpc/platforms/powermac/pci.c 		if (r->start >= 0xf0000000 && r->start < 0xf3000000)
r                1210 arch/powerpc/platforms/powermac/pci.c 		if (!region || resource_size(r) > resource_size(region))
r                1211 arch/powerpc/platforms/powermac/pci.c 			region = r;
r                 300 arch/powerpc/platforms/powermac/pic.c 	struct resource r;
r                 350 arch/powerpc/platforms/powermac/pic.c 	BUG_ON(of_address_to_resource(master, 0, &r));
r                 353 arch/powerpc/platforms/powermac/pic.c 	addr = (u8 __iomem *) ioremap(r.start, 0x40);
r                 366 arch/powerpc/platforms/powermac/pic.c 	if (slave && !of_address_to_resource(slave, 0, &r)) {
r                 367 arch/powerpc/platforms/powermac/pic.c 		addr = (u8 __iomem *)ioremap(r.start, 0x40);
r                 101 arch/powerpc/platforms/powermac/smp.c #define PSURGE_QUAD_OUT(r, v)	(out_8(quad_base + ((r) << 4) + 4, (v)))
r                 102 arch/powerpc/platforms/powermac/smp.c #define PSURGE_QUAD_IN(r)	(in_8(quad_base + ((r) << 4) + 4) & 0x0f)
r                 103 arch/powerpc/platforms/powermac/smp.c #define PSURGE_QUAD_BIS(r, v)	(PSURGE_QUAD_OUT((r), PSURGE_QUAD_IN(r) | (v)))
r                 104 arch/powerpc/platforms/powermac/smp.c #define PSURGE_QUAD_BIC(r, v)	(PSURGE_QUAD_OUT((r), PSURGE_QUAD_IN(r) & ~(v)))
r                 236 arch/powerpc/platforms/powernv/opal-irqchip.c 			struct resource *r = &opal_irqs[i];
r                 254 arch/powerpc/platforms/powernv/opal-irqchip.c 			r->start = r->end = virq;
r                 255 arch/powerpc/platforms/powernv/opal-irqchip.c 			r->flags = IORESOURCE_IRQ | IRQ_TYPE_LEVEL_LOW;
r                 256 arch/powerpc/platforms/powernv/opal-irqchip.c 			r->name = name;
r                 272 arch/powerpc/platforms/powernv/opal-irqchip.c 		struct resource *r = &opal_irqs[i];
r                 276 arch/powerpc/platforms/powernv/opal-irqchip.c 		if (r->name && strlen(r->name))
r                 277 arch/powerpc/platforms/powernv/opal-irqchip.c 			name = kasprintf(GFP_KERNEL, "opal-%s", r->name);
r                 282 arch/powerpc/platforms/powernv/opal-irqchip.c 		rc = request_irq(r->start, opal_interrupt, r->flags & IRQD_TRIGGER_MASK,
r                 285 arch/powerpc/platforms/powernv/opal-irqchip.c 			pr_warn("Error %d requesting OPAL irq %d\n", rc, (int)r->start);
r                 117 arch/powerpc/platforms/powernv/pci-ioda.c static inline bool pnv_pci_is_m64(struct pnv_phb *phb, struct resource *r)
r                 126 arch/powerpc/platforms/powernv/pci-ioda.c 	return (r->start >= phb->ioda.m64_base &&
r                 127 arch/powerpc/platforms/powernv/pci-ioda.c 		r->start < (phb->ioda.m64_base + phb->ioda.m64_size));
r                 201 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *r;
r                 230 arch/powerpc/platforms/powernv/pci-ioda.c 	r = &phb->hose->mem_resources[1];
r                 232 arch/powerpc/platforms/powernv/pci-ioda.c 		r->start += (2 * phb->ioda.m64_segsize);
r                 234 arch/powerpc/platforms/powernv/pci-ioda.c 		r->end -= (2 * phb->ioda.m64_segsize);
r                 256 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *r;
r                 263 arch/powerpc/platforms/powernv/pci-ioda.c 		r = &pdev->resource[i];
r                 264 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!r->parent || !pnv_pci_is_m64(phb, r))
r                 267 arch/powerpc/platforms/powernv/pci-ioda.c 		start = _ALIGN_DOWN(r->start - base, sgsz);
r                 268 arch/powerpc/platforms/powernv/pci-ioda.c 		end = _ALIGN_UP(r->end - base, sgsz);
r                 280 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *r;
r                 317 arch/powerpc/platforms/powernv/pci-ioda.c 	r = &phb->hose->mem_resources[1];
r                 319 arch/powerpc/platforms/powernv/pci-ioda.c 		r->start += (2 * phb->ioda.m64_segsize);
r                 321 arch/powerpc/platforms/powernv/pci-ioda.c 		r->end -= (2 * phb->ioda.m64_segsize);
r                 437 arch/powerpc/platforms/powernv/pci-ioda.c 	const __be32 *r;
r                 450 arch/powerpc/platforms/powernv/pci-ioda.c 	r = of_get_property(dn, "ibm,opal-m64-window", NULL);
r                 451 arch/powerpc/platforms/powernv/pci-ioda.c 	if (!r) {
r                 483 arch/powerpc/platforms/powernv/pci-ioda.c 	res->start = of_translate_address(dn, r + 2);
r                 484 arch/powerpc/platforms/powernv/pci-ioda.c 	res->end = res->start + of_read_number(r + 4, 2) - 1;
r                 486 arch/powerpc/platforms/powernv/pci-ioda.c 	pci_addr = of_read_number(r, 2);
r                3259 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource *r, *w;
r                3270 arch/powerpc/platforms/powernv/pci-ioda.c 		r = &bridge->resource[PCI_BRIDGE_RESOURCES + i];
r                3271 arch/powerpc/platforms/powernv/pci-ioda.c 		if (!r->flags || !r->parent)
r                3275 arch/powerpc/platforms/powernv/pci-ioda.c 		if (r->flags & type & IORESOURCE_IO)
r                3277 arch/powerpc/platforms/powernv/pci-ioda.c 		else if (pnv_pci_is_m64(phb, r) &&
r                3281 arch/powerpc/platforms/powernv/pci-ioda.c 		else if (r->flags & type & IORESOURCE_MEM) {
r                3286 arch/powerpc/platforms/powernv/pci-ioda.c 		r->start = w->start;
r                3287 arch/powerpc/platforms/powernv/pci-ioda.c 		r->end = w->end;
r                3297 arch/powerpc/platforms/powernv/pci-ioda.c 			r->end += 0x10000;
r                3298 arch/powerpc/platforms/powernv/pci-ioda.c 			r->end -= 0x100000;
r                3668 arch/powerpc/platforms/powernv/pci-ioda.c 	struct resource r;
r                3748 arch/powerpc/platforms/powernv/pci-ioda.c 	if (!of_address_to_resource(np, 0, &r)) {
r                3749 arch/powerpc/platforms/powernv/pci-ioda.c 		phb->regs_phys = r.start;
r                3750 arch/powerpc/platforms/powernv/pci-ioda.c 		phb->regs = ioremap(r.start, resource_size(&r));
r                 268 arch/powerpc/platforms/powernv/vas.h #define VREG(r)		VREG_SFX(r, _OFFSET)
r                 214 arch/powerpc/platforms/ps3/mm.c static int ps3_mm_get_repository_highmem(struct mem_region *r)
r                 220 arch/powerpc/platforms/ps3/mm.c 	result = ps3_repository_read_highmem_info(0, &r->base, &r->size);
r                 225 arch/powerpc/platforms/ps3/mm.c 	if (!r->base || !r->size) {
r                 230 arch/powerpc/platforms/ps3/mm.c 	r->offset = r->base - map.rm.size;
r                 233 arch/powerpc/platforms/ps3/mm.c 	    __func__, __LINE__, r->base, r->size);
r                 240 arch/powerpc/platforms/ps3/mm.c 	r->size = r->base = r->offset = 0;
r                 244 arch/powerpc/platforms/ps3/mm.c static int ps3_mm_set_repository_highmem(const struct mem_region *r)
r                 248 arch/powerpc/platforms/ps3/mm.c 	return r ? ps3_repository_write_highmem_info(0, r->base, r->size) :
r                 261 arch/powerpc/platforms/ps3/mm.c static int ps3_mm_region_create(struct mem_region *r, unsigned long size)
r                 266 arch/powerpc/platforms/ps3/mm.c 	r->size = _ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M);
r                 269 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d actual     %llxh\n", __func__, __LINE__, r->size);
r                 271 arch/powerpc/platforms/ps3/mm.c 		size - r->size, (size - r->size) / 1024 / 1024);
r                 273 arch/powerpc/platforms/ps3/mm.c 	if (r->size == 0) {
r                 279 arch/powerpc/platforms/ps3/mm.c 	result = lv1_allocate_memory(r->size, PAGE_SHIFT_16M, 0,
r                 280 arch/powerpc/platforms/ps3/mm.c 		ALLOCATE_MEMORY_TRY_ALT_UNIT, &r->base, &muid);
r                 282 arch/powerpc/platforms/ps3/mm.c 	if (result || r->base < map.rm.size) {
r                 288 arch/powerpc/platforms/ps3/mm.c 	r->destroy = 1;
r                 289 arch/powerpc/platforms/ps3/mm.c 	r->offset = r->base - map.rm.size;
r                 293 arch/powerpc/platforms/ps3/mm.c 	r->size = r->base = r->offset = 0;
r                 302 arch/powerpc/platforms/ps3/mm.c static void ps3_mm_region_destroy(struct mem_region *r)
r                 306 arch/powerpc/platforms/ps3/mm.c 	if (!r->destroy) {
r                 308 arch/powerpc/platforms/ps3/mm.c 			__func__, __LINE__, r->base, r->size);
r                 312 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: r->base = %llxh\n", __func__, __LINE__, r->base);
r                 314 arch/powerpc/platforms/ps3/mm.c 	if (r->base) {
r                 315 arch/powerpc/platforms/ps3/mm.c 		result = lv1_release_memory(r->base);
r                 317 arch/powerpc/platforms/ps3/mm.c 		r->size = r->base = r->offset = 0;
r                 333 arch/powerpc/platforms/ps3/mm.c static unsigned long dma_sb_lpar_to_bus(struct ps3_dma_region *r,
r                 338 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(lpar_addr < r->offset);
r                 339 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(lpar_addr >= r->offset + r->len);
r                 340 arch/powerpc/platforms/ps3/mm.c 	return r->bus_addr + lpar_addr - r->offset;
r                 344 arch/powerpc/platforms/ps3/mm.c static void  __maybe_unused _dma_dump_region(const struct ps3_dma_region *r,
r                 347 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: dev        %llu:%llu\n", func, line, r->dev->bus_id,
r                 348 arch/powerpc/platforms/ps3/mm.c 		r->dev->dev_id);
r                 349 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: page_size  %u\n", func, line, r->page_size);
r                 350 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: bus_addr   %lxh\n", func, line, r->bus_addr);
r                 351 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: len        %lxh\n", func, line, r->len);
r                 352 arch/powerpc/platforms/ps3/mm.c 	DBG("%s:%d: offset     %lxh\n", func, line, r->offset);
r                 393 arch/powerpc/platforms/ps3/mm.c static struct dma_chunk * dma_find_chunk(struct ps3_dma_region *r,
r                 397 arch/powerpc/platforms/ps3/mm.c 	unsigned long aligned_bus = _ALIGN_DOWN(bus_addr, 1 << r->page_size);
r                 399 arch/powerpc/platforms/ps3/mm.c 					      1 << r->page_size);
r                 401 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry(c, &r->chunk_list.head, link) {
r                 422 arch/powerpc/platforms/ps3/mm.c static struct dma_chunk *dma_find_chunk_lpar(struct ps3_dma_region *r,
r                 426 arch/powerpc/platforms/ps3/mm.c 	unsigned long aligned_lpar = _ALIGN_DOWN(lpar_addr, 1 << r->page_size);
r                 428 arch/powerpc/platforms/ps3/mm.c 					      1 << r->page_size);
r                 430 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry(c, &r->chunk_list.head, link) {
r                 472 arch/powerpc/platforms/ps3/mm.c 	struct ps3_dma_region *r = c->region;
r                 475 arch/powerpc/platforms/ps3/mm.c 	for (iopage = 0; iopage < (c->len >> r->page_size); iopage++) {
r                 476 arch/powerpc/platforms/ps3/mm.c 		offset = (1 << r->page_size) * iopage;
r                 481 arch/powerpc/platforms/ps3/mm.c 				       r->ioid,
r                 486 arch/powerpc/platforms/ps3/mm.c 		    r->ioid);
r                 509 arch/powerpc/platforms/ps3/mm.c static int dma_sb_map_pages(struct ps3_dma_region *r, unsigned long phys_addr,
r                 521 arch/powerpc/platforms/ps3/mm.c 	c->region = r;
r                 523 arch/powerpc/platforms/ps3/mm.c 	c->bus_addr = dma_sb_lpar_to_bus(r, c->lpar_addr);
r                 536 arch/powerpc/platforms/ps3/mm.c 	list_add(&c->link, &r->chunk_list.head);
r                 549 arch/powerpc/platforms/ps3/mm.c static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr,
r                 566 arch/powerpc/platforms/ps3/mm.c 	c->region = r;
r                 570 arch/powerpc/platforms/ps3/mm.c 	if (list_empty(&r->chunk_list.head)) {
r                 572 arch/powerpc/platforms/ps3/mm.c 		c->bus_addr = r->bus_addr;
r                 575 arch/powerpc/platforms/ps3/mm.c 		last  = list_entry(r->chunk_list.head.next,
r                 585 arch/powerpc/platforms/ps3/mm.c 	pages = len >> r->page_size;
r                 587 arch/powerpc/platforms/ps3/mm.c 	    r->page_size, r->len, pages, iopte_flag);
r                 589 arch/powerpc/platforms/ps3/mm.c 		offset = (1 << r->page_size) * iopage;
r                 593 arch/powerpc/platforms/ps3/mm.c 				       r->ioid,
r                 602 arch/powerpc/platforms/ps3/mm.c 		    r->ioid);
r                 606 arch/powerpc/platforms/ps3/mm.c 	list_add(&c->link, &r->chunk_list.head);
r                 617 arch/powerpc/platforms/ps3/mm.c 			      r->ioid,
r                 634 arch/powerpc/platforms/ps3/mm.c static int dma_sb_region_create(struct ps3_dma_region *r)
r                 641 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r);
r                 643 arch/powerpc/platforms/ps3/mm.c 	if (!r->dev->bus_id) {
r                 645 arch/powerpc/platforms/ps3/mm.c 			r->dev->bus_id, r->dev->dev_id);
r                 650 arch/powerpc/platforms/ps3/mm.c 	    __LINE__, r->len, r->page_size, r->offset);
r                 652 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->len);
r                 653 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->page_size);
r                 654 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->region_ops);
r                 656 arch/powerpc/platforms/ps3/mm.c 	INIT_LIST_HEAD(&r->chunk_list.head);
r                 657 arch/powerpc/platforms/ps3/mm.c 	spin_lock_init(&r->chunk_list.lock);
r                 659 arch/powerpc/platforms/ps3/mm.c 	result = lv1_allocate_device_dma_region(r->dev->bus_id, r->dev->dev_id,
r                 660 arch/powerpc/platforms/ps3/mm.c 		roundup_pow_of_two(r->len), r->page_size, r->region_type,
r                 662 arch/powerpc/platforms/ps3/mm.c 	r->bus_addr = bus_addr;
r                 667 arch/powerpc/platforms/ps3/mm.c 		r->len = r->bus_addr = 0;
r                 673 arch/powerpc/platforms/ps3/mm.c static int dma_ioc0_region_create(struct ps3_dma_region *r)
r                 678 arch/powerpc/platforms/ps3/mm.c 	INIT_LIST_HEAD(&r->chunk_list.head);
r                 679 arch/powerpc/platforms/ps3/mm.c 	spin_lock_init(&r->chunk_list.lock);
r                 682 arch/powerpc/platforms/ps3/mm.c 					 r->len,
r                 683 arch/powerpc/platforms/ps3/mm.c 					 r->page_size,
r                 685 arch/powerpc/platforms/ps3/mm.c 	r->bus_addr = bus_addr;
r                 689 arch/powerpc/platforms/ps3/mm.c 		r->len = r->bus_addr = 0;
r                 692 arch/powerpc/platforms/ps3/mm.c 	    r->len, r->page_size, r->bus_addr);
r                 704 arch/powerpc/platforms/ps3/mm.c static int dma_sb_region_free(struct ps3_dma_region *r)
r                 710 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r);
r                 712 arch/powerpc/platforms/ps3/mm.c 	if (!r->dev->bus_id) {
r                 714 arch/powerpc/platforms/ps3/mm.c 			r->dev->bus_id, r->dev->dev_id);
r                 718 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry_safe(c, tmp, &r->chunk_list.head, link) {
r                 723 arch/powerpc/platforms/ps3/mm.c 	result = lv1_free_device_dma_region(r->dev->bus_id, r->dev->dev_id,
r                 724 arch/powerpc/platforms/ps3/mm.c 		r->bus_addr);
r                 730 arch/powerpc/platforms/ps3/mm.c 	r->bus_addr = 0;
r                 735 arch/powerpc/platforms/ps3/mm.c static int dma_ioc0_region_free(struct ps3_dma_region *r)
r                 741 arch/powerpc/platforms/ps3/mm.c 	list_for_each_entry_safe(c, n, &r->chunk_list.head, link) {
r                 746 arch/powerpc/platforms/ps3/mm.c 	result = lv1_release_io_segment(0, r->bus_addr);
r                 752 arch/powerpc/platforms/ps3/mm.c 	r->bus_addr = 0;
r                 769 arch/powerpc/platforms/ps3/mm.c static int dma_sb_map_area(struct ps3_dma_region *r, unsigned long virt_addr,
r                 778 arch/powerpc/platforms/ps3/mm.c 	unsigned long aligned_phys = _ALIGN_DOWN(phys_addr, 1 << r->page_size);
r                 780 arch/powerpc/platforms/ps3/mm.c 					      1 << r->page_size);
r                 781 arch/powerpc/platforms/ps3/mm.c 	*bus_addr = dma_sb_lpar_to_bus(r, ps3_mm_phys_to_lpar(phys_addr));
r                 797 arch/powerpc/platforms/ps3/mm.c 	spin_lock_irqsave(&r->chunk_list.lock, flags);
r                 798 arch/powerpc/platforms/ps3/mm.c 	c = dma_find_chunk(r, *bus_addr, len);
r                 804 arch/powerpc/platforms/ps3/mm.c 		spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 808 arch/powerpc/platforms/ps3/mm.c 	result = dma_sb_map_pages(r, aligned_phys, aligned_len, &c, iopte_flag);
r                 814 arch/powerpc/platforms/ps3/mm.c 		spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 820 arch/powerpc/platforms/ps3/mm.c 	spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 824 arch/powerpc/platforms/ps3/mm.c static int dma_ioc0_map_area(struct ps3_dma_region *r, unsigned long virt_addr,
r                 833 arch/powerpc/platforms/ps3/mm.c 	unsigned long aligned_phys = _ALIGN_DOWN(phys_addr, 1 << r->page_size);
r                 835 arch/powerpc/platforms/ps3/mm.c 					      1 << r->page_size);
r                 842 arch/powerpc/platforms/ps3/mm.c 	spin_lock_irqsave(&r->chunk_list.lock, flags);
r                 843 arch/powerpc/platforms/ps3/mm.c 	c = dma_find_chunk_lpar(r, ps3_mm_phys_to_lpar(phys_addr), len);
r                 850 arch/powerpc/platforms/ps3/mm.c 		spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 854 arch/powerpc/platforms/ps3/mm.c 	result = dma_ioc0_map_pages(r, aligned_phys, aligned_len, &c,
r                 861 arch/powerpc/platforms/ps3/mm.c 		spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 869 arch/powerpc/platforms/ps3/mm.c 	spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 882 arch/powerpc/platforms/ps3/mm.c static int dma_sb_unmap_area(struct ps3_dma_region *r, dma_addr_t bus_addr,
r                 888 arch/powerpc/platforms/ps3/mm.c 	spin_lock_irqsave(&r->chunk_list.lock, flags);
r                 889 arch/powerpc/platforms/ps3/mm.c 	c = dma_find_chunk(r, bus_addr, len);
r                 893 arch/powerpc/platforms/ps3/mm.c 			1 << r->page_size);
r                 895 arch/powerpc/platforms/ps3/mm.c 			- aligned_bus, 1 << r->page_size);
r                 914 arch/powerpc/platforms/ps3/mm.c 	spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 918 arch/powerpc/platforms/ps3/mm.c static int dma_ioc0_unmap_area(struct ps3_dma_region *r,
r                 925 arch/powerpc/platforms/ps3/mm.c 	spin_lock_irqsave(&r->chunk_list.lock, flags);
r                 926 arch/powerpc/platforms/ps3/mm.c 	c = dma_find_chunk(r, bus_addr, len);
r                 930 arch/powerpc/platforms/ps3/mm.c 							1 << r->page_size);
r                 933 arch/powerpc/platforms/ps3/mm.c 						      1 << r->page_size);
r                 952 arch/powerpc/platforms/ps3/mm.c 	spin_unlock_irqrestore(&r->chunk_list.lock, flags);
r                 965 arch/powerpc/platforms/ps3/mm.c static int dma_sb_region_create_linear(struct ps3_dma_region *r)
r                 971 arch/powerpc/platforms/ps3/mm.c 	if (r->len > 16*1024*1024) {	/* FIXME: need proper fix */
r                 973 arch/powerpc/platforms/ps3/mm.c 		if (r->page_size != PS3_DMA_16M) {
r                 976 arch/powerpc/platforms/ps3/mm.c 			r->page_size = PS3_DMA_16M;
r                 977 arch/powerpc/platforms/ps3/mm.c 			r->len = _ALIGN_UP(r->len, 1 << r->page_size);
r                 981 arch/powerpc/platforms/ps3/mm.c 	result = dma_sb_region_create(r);
r                 984 arch/powerpc/platforms/ps3/mm.c 	if (r->offset < map.rm.size) {
r                 986 arch/powerpc/platforms/ps3/mm.c 		virt_addr = map.rm.base + r->offset;
r                 987 arch/powerpc/platforms/ps3/mm.c 		len = map.rm.size - r->offset;
r                 988 arch/powerpc/platforms/ps3/mm.c 		if (len > r->len)
r                 989 arch/powerpc/platforms/ps3/mm.c 			len = r->len;
r                 990 arch/powerpc/platforms/ps3/mm.c 		result = dma_sb_map_area(r, virt_addr, len, &tmp,
r                 996 arch/powerpc/platforms/ps3/mm.c 	if (r->offset + r->len > map.rm.size) {
r                 999 arch/powerpc/platforms/ps3/mm.c 		len = r->len;
r                1000 arch/powerpc/platforms/ps3/mm.c 		if (r->offset >= map.rm.size)
r                1001 arch/powerpc/platforms/ps3/mm.c 			virt_addr += r->offset - map.rm.size;
r                1003 arch/powerpc/platforms/ps3/mm.c 			len -= map.rm.size - r->offset;
r                1004 arch/powerpc/platforms/ps3/mm.c 		result = dma_sb_map_area(r, virt_addr, len, &tmp,
r                1020 arch/powerpc/platforms/ps3/mm.c static int dma_sb_region_free_linear(struct ps3_dma_region *r)
r                1026 arch/powerpc/platforms/ps3/mm.c 	if (r->offset < map.rm.size) {
r                1028 arch/powerpc/platforms/ps3/mm.c 		lpar_addr = map.rm.base + r->offset;
r                1029 arch/powerpc/platforms/ps3/mm.c 		len = map.rm.size - r->offset;
r                1030 arch/powerpc/platforms/ps3/mm.c 		if (len > r->len)
r                1031 arch/powerpc/platforms/ps3/mm.c 			len = r->len;
r                1032 arch/powerpc/platforms/ps3/mm.c 		bus_addr = dma_sb_lpar_to_bus(r, lpar_addr);
r                1033 arch/powerpc/platforms/ps3/mm.c 		result = dma_sb_unmap_area(r, bus_addr, len);
r                1037 arch/powerpc/platforms/ps3/mm.c 	if (r->offset + r->len > map.rm.size) {
r                1040 arch/powerpc/platforms/ps3/mm.c 		len = r->len;
r                1041 arch/powerpc/platforms/ps3/mm.c 		if (r->offset >= map.rm.size)
r                1042 arch/powerpc/platforms/ps3/mm.c 			lpar_addr += r->offset - map.rm.size;
r                1044 arch/powerpc/platforms/ps3/mm.c 			len -= map.rm.size - r->offset;
r                1045 arch/powerpc/platforms/ps3/mm.c 		bus_addr = dma_sb_lpar_to_bus(r, lpar_addr);
r                1046 arch/powerpc/platforms/ps3/mm.c 		result = dma_sb_unmap_area(r, bus_addr, len);
r                1050 arch/powerpc/platforms/ps3/mm.c 	result = dma_sb_region_free(r);
r                1068 arch/powerpc/platforms/ps3/mm.c static int dma_sb_map_area_linear(struct ps3_dma_region *r,
r                1074 arch/powerpc/platforms/ps3/mm.c 	*bus_addr = dma_sb_lpar_to_bus(r, ps3_mm_phys_to_lpar(phys_addr));
r                1087 arch/powerpc/platforms/ps3/mm.c static int dma_sb_unmap_area_linear(struct ps3_dma_region *r,
r                1115 arch/powerpc/platforms/ps3/mm.c 	struct ps3_dma_region *r, enum ps3_dma_page_size page_size,
r                1122 arch/powerpc/platforms/ps3/mm.c 	r->dev = dev;
r                1123 arch/powerpc/platforms/ps3/mm.c 	r->page_size = page_size;
r                1124 arch/powerpc/platforms/ps3/mm.c 	r->region_type = region_type;
r                1125 arch/powerpc/platforms/ps3/mm.c 	r->offset = lpar_addr;
r                1126 arch/powerpc/platforms/ps3/mm.c 	if (r->offset >= map.rm.size)
r                1127 arch/powerpc/platforms/ps3/mm.c 		r->offset -= map.r1.offset;
r                1128 arch/powerpc/platforms/ps3/mm.c 	r->len = len ? len : _ALIGN_UP(map.total, 1 << r->page_size);
r                1132 arch/powerpc/platforms/ps3/mm.c 		r->region_ops =  (USE_DYNAMIC_DMA)
r                1137 arch/powerpc/platforms/ps3/mm.c 		r->region_ops = &ps3_dma_ioc0_region_ops;
r                1147 arch/powerpc/platforms/ps3/mm.c int ps3_dma_region_create(struct ps3_dma_region *r)
r                1149 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r);
r                1150 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->region_ops);
r                1151 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->region_ops->create);
r                1152 arch/powerpc/platforms/ps3/mm.c 	return r->region_ops->create(r);
r                1156 arch/powerpc/platforms/ps3/mm.c int ps3_dma_region_free(struct ps3_dma_region *r)
r                1158 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r);
r                1159 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->region_ops);
r                1160 arch/powerpc/platforms/ps3/mm.c 	BUG_ON(!r->region_ops->free);
r                1161 arch/powerpc/platforms/ps3/mm.c 	return r->region_ops->free(r);
r                1165 arch/powerpc/platforms/ps3/mm.c int ps3_dma_map(struct ps3_dma_region *r, unsigned long virt_addr,
r                1169 arch/powerpc/platforms/ps3/mm.c 	return r->region_ops->map(r, virt_addr, len, bus_addr, iopte_flag);
r                1172 arch/powerpc/platforms/ps3/mm.c int ps3_dma_unmap(struct ps3_dma_region *r, dma_addr_t bus_addr,
r                1175 arch/powerpc/platforms/ps3/mm.c 	return r->region_ops->unmap(r, bus_addr, len);
r                 230 arch/powerpc/platforms/ps3/system-bus.c static void _dump_mmio_region(const struct ps3_mmio_region* r,
r                 233 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug("%s:%d: dev       %llu:%llu\n", func, line, r->dev->bus_id,
r                 234 arch/powerpc/platforms/ps3/system-bus.c 		r->dev->dev_id);
r                 235 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug("%s:%d: bus_addr  %lxh\n", func, line, r->bus_addr);
r                 236 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug("%s:%d: len       %lxh\n", func, line, r->len);
r                 237 arch/powerpc/platforms/ps3/system-bus.c 	pr_debug("%s:%d: lpar_addr %lxh\n", func, line, r->lpar_addr);
r                 240 arch/powerpc/platforms/ps3/system-bus.c static int ps3_sb_mmio_region_create(struct ps3_mmio_region *r)
r                 245 arch/powerpc/platforms/ps3/system-bus.c 	result = lv1_map_device_mmio_region(r->dev->bus_id, r->dev->dev_id,
r                 246 arch/powerpc/platforms/ps3/system-bus.c 		r->bus_addr, r->len, r->page_size, &lpar_addr);
r                 247 arch/powerpc/platforms/ps3/system-bus.c 	r->lpar_addr = lpar_addr;
r                 252 arch/powerpc/platforms/ps3/system-bus.c 		r->lpar_addr = 0;
r                 255 arch/powerpc/platforms/ps3/system-bus.c 	dump_mmio_region(r);
r                 259 arch/powerpc/platforms/ps3/system-bus.c static int ps3_ioc0_mmio_region_create(struct ps3_mmio_region *r)
r                 265 arch/powerpc/platforms/ps3/system-bus.c int ps3_mmio_region_create(struct ps3_mmio_region *r)
r                 267 arch/powerpc/platforms/ps3/system-bus.c 	return r->mmio_ops->create(r);
r                 271 arch/powerpc/platforms/ps3/system-bus.c static int ps3_sb_free_mmio_region(struct ps3_mmio_region *r)
r                 275 arch/powerpc/platforms/ps3/system-bus.c 	dump_mmio_region(r);
r                 276 arch/powerpc/platforms/ps3/system-bus.c 	result = lv1_unmap_device_mmio_region(r->dev->bus_id, r->dev->dev_id,
r                 277 arch/powerpc/platforms/ps3/system-bus.c 		r->lpar_addr);
r                 283 arch/powerpc/platforms/ps3/system-bus.c 	r->lpar_addr = 0;
r                 287 arch/powerpc/platforms/ps3/system-bus.c static int ps3_ioc0_free_mmio_region(struct ps3_mmio_region *r)
r                 294 arch/powerpc/platforms/ps3/system-bus.c int ps3_free_mmio_region(struct ps3_mmio_region *r)
r                 296 arch/powerpc/platforms/ps3/system-bus.c 	return r->mmio_ops->free(r);
r                 312 arch/powerpc/platforms/ps3/system-bus.c 	struct ps3_mmio_region *r, unsigned long bus_addr, unsigned long len,
r                 315 arch/powerpc/platforms/ps3/system-bus.c 	r->dev = dev;
r                 316 arch/powerpc/platforms/ps3/system-bus.c 	r->bus_addr = bus_addr;
r                 317 arch/powerpc/platforms/ps3/system-bus.c 	r->len = len;
r                 318 arch/powerpc/platforms/ps3/system-bus.c 	r->page_size = page_size;
r                 321 arch/powerpc/platforms/ps3/system-bus.c 		r->mmio_ops = &ps3_mmio_sb_region_ops;
r                 324 arch/powerpc/platforms/ps3/system-bus.c 		r->mmio_ops = &ps3_mmio_ioc0_region_ops;
r                  31 arch/powerpc/platforms/pseries/hotplug-memory.c 	struct resource r;
r                  47 arch/powerpc/platforms/pseries/hotplug-memory.c 			if (!of_address_to_resource(np, 0, &r))
r                  48 arch/powerpc/platforms/pseries/hotplug-memory.c 				memzero_size = resource_size(&r);
r                  61 arch/powerpc/platforms/pseries/hotplug-memory.c 				if (!of_address_to_resource(np, 0, &r))
r                  62 arch/powerpc/platforms/pseries/hotplug-memory.c 					memblock_size = resource_size(&r);
r                 622 arch/powerpc/platforms/pseries/setup.c 	int i, r, num_res;
r                 626 arch/powerpc/platforms/pseries/setup.c 	for (i = START_OF_ENTRIES, r = 0; r < num_res && r < PCI_SRIOV_NUM_BARS;
r                 627 arch/powerpc/platforms/pseries/setup.c 	     i += NEXT_ENTRY, r++) {
r                 628 arch/powerpc/platforms/pseries/setup.c 		res = &dev->resource[r + PCI_IOV_RESOURCES];
r                 644 arch/powerpc/platforms/pseries/setup.c 	int i, r, num_res;
r                 652 arch/powerpc/platforms/pseries/setup.c 	for (i = START_OF_ENTRIES, r = 0; r < num_res && r < PCI_SRIOV_NUM_BARS;
r                 653 arch/powerpc/platforms/pseries/setup.c 	     i += NEXT_ENTRY, r++) {
r                 654 arch/powerpc/platforms/pseries/setup.c 		res = &dev->resource[r + PCI_IOV_RESOURCES];
r                 663 arch/powerpc/platforms/pseries/setup.c 			 r + PCI_IOV_RESOURCES, res);
r                 668 arch/powerpc/platforms/pseries/setup.c 				 r + PCI_IOV_RESOURCES, res,
r                  46 arch/powerpc/sysdev/dart.h #define DART_REG(r)	(dart + ((r) >> 2))
r                  47 arch/powerpc/sysdev/dart.h #define DART_IN(r)	(in_be32(DART_REG(r)))
r                  48 arch/powerpc/sysdev/dart.h #define DART_OUT(r,v)	(out_be32(DART_REG(r), (v)))
r                 267 arch/powerpc/sysdev/dart_iommu.c 	struct resource r;
r                 285 arch/powerpc/sysdev/dart_iommu.c 	if (of_address_to_resource(dart_node, 0, &r))
r                 289 arch/powerpc/sysdev/dart_iommu.c 	dart = ioremap(r.start, resource_size(&r));
r                 101 arch/powerpc/sysdev/mmio_nvram.c 	struct resource r;
r                 112 arch/powerpc/sysdev/mmio_nvram.c 	ret = of_address_to_resource(nvram_node, 0, &r);
r                 118 arch/powerpc/sysdev/mmio_nvram.c 	nvram_addr = r.start;
r                 119 arch/powerpc/sysdev/mmio_nvram.c 	mmio_nvram_len = resource_size(&r);
r                 297 arch/powerpc/sysdev/mpic.c #define mpic_read(b,r)		_mpic_read(mpic->reg_type,&(b),(r))
r                 298 arch/powerpc/sysdev/mpic.c #define mpic_write(b,r,v)	_mpic_write(mpic->reg_type,&(b),(r),(v))
r                 305 arch/powerpc/sysdev/mpic.c #define mpic_irq_read(s,r)	_mpic_irq_read(mpic,(s),(r))
r                 306 arch/powerpc/sysdev/mpic.c #define mpic_irq_write(s,r,v)	_mpic_irq_write(mpic,(s),(r),(v))
r                 351 arch/powerpc/sysdev/mpic.c 	u32 r;
r                 354 arch/powerpc/sysdev/mpic.c 	r = mpic_read(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0));
r                 356 arch/powerpc/sysdev/mpic.c 	if (r == le32_to_cpu(MPIC_VECPRI_MASK)) {
r                1253 arch/powerpc/sysdev/mpic.c 			struct resource r;
r                1254 arch/powerpc/sysdev/mpic.c 			if (of_address_to_resource(node, 0, &r))
r                1256 arch/powerpc/sysdev/mpic.c 			phys_addr = r.start;
r                 118 arch/powerpc/sysdev/simple_gpio.c 		struct resource r;
r                 120 arch/powerpc/sysdev/simple_gpio.c 		ret = of_address_to_resource(np, 0, &r);
r                 124 arch/powerpc/sysdev/simple_gpio.c 		switch (resource_size(&r)) {
r                  72 arch/powerpc/sysdev/tsi108_dev.c 		struct resource r[2];
r                  79 arch/powerpc/sysdev/tsi108_dev.c 		memset(r, 0, sizeof(r));
r                  82 arch/powerpc/sysdev/tsi108_dev.c 		ret = of_address_to_resource(np, 0, &r[0]);
r                  84 arch/powerpc/sysdev/tsi108_dev.c 		    __func__, r[0].name, &r[0]);
r                  88 arch/powerpc/sysdev/tsi108_dev.c 		r[1].name = "tx";
r                  89 arch/powerpc/sysdev/tsi108_dev.c 		r[1].start = irq_of_parse_and_map(np, 0);
r                  90 arch/powerpc/sysdev/tsi108_dev.c 		r[1].end = irq_of_parse_and_map(np, 0);
r                  91 arch/powerpc/sysdev/tsi108_dev.c 		r[1].flags = IORESOURCE_IRQ;
r                  93 arch/powerpc/sysdev/tsi108_dev.c 			__func__, r[1].name, &r[1]);
r                  96 arch/powerpc/sysdev/tsi108_dev.c 		    platform_device_register_simple("tsi-ethernet", i++, &r[0],
r                 125 arch/powerpc/sysdev/tsi108_dev.c 		tsi_eth_data.regs = r[0].start;
r                 297 arch/powerpc/sysdev/xics/icp-native.c 		struct resource r;
r                 300 arch/powerpc/sysdev/xics/icp-native.c 		err = of_address_to_resource(np, i, &r);
r                 307 arch/powerpc/sysdev/xics/icp-native.c 		if (icp_native_map_one_cpu(*indx, r.start, resource_size(&r)))
r                  85 arch/powerpc/sysdev/xilinx_pci.c 	struct resource r;
r                  93 arch/powerpc/sysdev/xilinx_pci.c 	if (of_address_to_resource(pci_node, 0, &r)) {
r                 105 arch/powerpc/sysdev/xilinx_pci.c 	setup_indirect_pci(hose, r.start + XPLB_PCI_ADDR,
r                 106 arch/powerpc/sysdev/xilinx_pci.c 			   r.start + XPLB_PCI_DATA,
r                 552 arch/powerpc/sysdev/xive/native.c 	struct resource r;
r                 572 arch/powerpc/sysdev/xive/native.c 	if (of_address_to_resource(np, 1, &r)) {
r                 576 arch/powerpc/sysdev/xive/native.c 	tima = ioremap(r.start, resource_size(&r));
r                 599 arch/powerpc/sysdev/xive/native.c 		kvmppc_set_xive_tima(cpu, r.start, tima);
r                 602 arch/powerpc/sysdev/xive/native.c 	if (of_address_to_resource(np, 2, &r)) {
r                 607 arch/powerpc/sysdev/xive/native.c 	xive_tima_os = r.start;
r                 778 arch/powerpc/sysdev/xive/spapr.c 	struct resource r;
r                 799 arch/powerpc/sysdev/xive/spapr.c 	if (of_address_to_resource(np, 1, &r)) {
r                 803 arch/powerpc/sysdev/xive/spapr.c 	tima = ioremap(r.start, resource_size(&r));
r                2378 arch/powerpc/xmon/xmon.c 	long n, m, r, nr;
r                2382 arch/powerpc/xmon/xmon.c 		r = n < 16? n: 16;
r                2383 arch/powerpc/xmon/xmon.c 		nr = mread(adrs, temp, r);
r                2385 arch/powerpc/xmon/xmon.c 		for (m = 0; m < r; ++m) {
r                2391 arch/powerpc/xmon/xmon.c 		n -= r;
r                2392 arch/powerpc/xmon/xmon.c 		if (nr < r)
r                2797 arch/powerpc/xmon/xmon.c 	long n, m, c, r, nr;
r                2803 arch/powerpc/xmon/xmon.c 		r = n < 16? n: 16;
r                2804 arch/powerpc/xmon/xmon.c 		nr = mread(adrs, temp, r);
r                2806 arch/powerpc/xmon/xmon.c 		for (m = 0; m < r; ++m) {
r                2820 arch/powerpc/xmon/xmon.c 		for (m = 0; m < r; ++m) {
r                2827 arch/powerpc/xmon/xmon.c 		n -= r;
r                2831 arch/powerpc/xmon/xmon.c 		if (nr < r)
r                  27 arch/riscv/include/asm/barrier.h #define __smp_rmb()	RISCV_FENCE(r,r)
r                  41 arch/riscv/include/asm/barrier.h 	RISCV_FENCE(r,rw);						\
r                  31 arch/riscv/include/asm/futex.h 	: [r] "+r" (ret), [ov] "=&r" (oldval),			\
r                 106 arch/riscv/include/asm/futex.h 	: [r] "+r" (ret), [v] "=&r" (val), [u] "+m" (*uaddr), [t] "=&r" (tmp)
r                 113 arch/s390/include/asm/cio.h 	__u32 r : 1;
r                  43 arch/s390/include/asm/fcx.h 	u32 r:1;
r                 297 arch/s390/include/asm/fcx.h void tcw_init(struct tcw *tcw, int r, int w);
r                  57 arch/s390/include/asm/kvm_host.h 		__u8 r : 1;
r                  57 arch/s390/include/asm/nospec-insn.h 	.ifc \reg,%r\r1
r                  59 arch/s390/include/asm/nospec-insn.h 	.ifc \ruse,%r\r2
r                  74 arch/s390/include/asm/nospec-insn.h 	.ifc \rsave,%r\r1
r                  76 arch/s390/include/asm/nospec-insn.h 	.ifc \rtarget,%r\r2
r                  78 arch/s390/include/asm/nospec-insn.h 	.ifc \ruse,%r\r3
r                  95 arch/s390/include/asm/nospec-insn.h 	.ifc \reg,%r\r1
r                  97 arch/s390/include/asm/nospec-insn.h 	.ifc \ruse,%r\r2
r                  27 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r0
r                  30 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r1
r                  33 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r2
r                  36 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r3
r                  39 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r4
r                  42 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r5
r                  45 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r6
r                  48 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r7
r                  51 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r8
r                  54 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r9
r                  57 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r10
r                  60 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r11
r                  63 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r12
r                  66 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r13
r                  69 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r14
r                  72 arch/s390/include/asm/vx-insn.h 	.ifc \gr,%r15
r                  76 arch/s390/include/asm/vx-insn.h 		\opd = \gr
r                 248 arch/s390/include/asm/vx-insn.h 	VX_NUM	v1, \vr
r                 264 arch/s390/include/asm/vx-insn.h 	GR_NUM	r3, \gr
r                 270 arch/s390/include/asm/vx-insn.h 	VLVG	\v, \gr, \index, \base, 0
r                 273 arch/s390/include/asm/vx-insn.h 	VLVG	\v, \gr, \index, 1
r                 276 arch/s390/include/asm/vx-insn.h 	VLVG	\v, \gr, \index, 2
r                 279 arch/s390/include/asm/vx-insn.h 	VLVG	\v, \gr, \index, 3
r                 345 arch/s390/include/asm/vx-insn.h 	GR_NUM	r1, \gr
r                 347 arch/s390/include/asm/vx-insn.h 	VX_NUM	v3, \vr
r                 353 arch/s390/include/asm/vx-insn.h 	VLGV	\gr, \vr, \disp, \base, 0
r                 356 arch/s390/include/asm/vx-insn.h 	VLGV	\gr, \vr, \disp, \base, 1
r                 359 arch/s390/include/asm/vx-insn.h 	VLGV	\gr, \vr, \disp, \base, 2
r                 362 arch/s390/include/asm/vx-insn.h 	VLGV	\gr, \vr, \disp, \base, 3
r                  17 arch/s390/include/uapi/asm/clp.h 	unsigned int r : 1;
r                  39 arch/s390/include/uapi/asm/runtime_instr.h 	__u32 r			: 1;
r                  19 arch/s390/include/uapi/asm/vtoc.h 	__u8 r;
r                 305 arch/s390/kernel/sthyi.c 	int i, r, pages;
r                 324 arch/s390/kernel/sthyi.c 	r = diag204((unsigned long)DIAG204_SUBC_STIB7 |
r                 326 arch/s390/kernel/sthyi.c 	if (r < 0)
r                 445 arch/s390/kernel/sthyi.c 	int r;
r                 448 arch/s390/kernel/sthyi.c 	r = fill_dst(sthyi_cache.info, rc);
r                 449 arch/s390/kernel/sthyi.c 	if (r)
r                 450 arch/s390/kernel/sthyi.c 		return r;
r                 452 arch/s390/kernel/sthyi.c 	return r;
r                 469 arch/s390/kernel/sthyi.c 	int r;
r                 472 arch/s390/kernel/sthyi.c 	r = sthyi_init_cache();
r                 473 arch/s390/kernel/sthyi.c 	if (r)
r                 478 arch/s390/kernel/sthyi.c 		r = sthyi_update_cache(rc);
r                 479 arch/s390/kernel/sthyi.c 		if (r)
r                 486 arch/s390/kernel/sthyi.c 	return r;
r                 495 arch/s390/kernel/sthyi.c 	int r;
r                 504 arch/s390/kernel/sthyi.c 	r = sthyi_fill(info, &sthyi_rc);
r                 505 arch/s390/kernel/sthyi.c 	if (r < 0)
r                 508 arch/s390/kernel/sthyi.c 		r = -EFAULT;
r                 512 arch/s390/kernel/sthyi.c 		r = -EFAULT;
r                 515 arch/s390/kernel/sthyi.c 	return r;
r                  28 arch/s390/kvm/gaccess.c 		unsigned long r  : 1; /* Real-Space Control */
r                 562 arch/s390/kvm/gaccess.c 		asce->r = 1;
r                 631 arch/s390/kvm/gaccess.c 	if (asce.r)
r                 853 arch/s390/kvm/gaccess.c 	need_ipte_lock = psw_bits(*psw).dat && !asce.r;
r                 922 arch/s390/kvm/gaccess.c 	if (psw_bits(*psw).dat && !asce.r) {	/* Use DAT? */
r                 998 arch/s390/kvm/gaccess.c 	if (asce.r) {
r                 363 arch/s390/kvm/intercept.c 	int reg1, reg2, r = 0;
r                 398 arch/s390/kvm/intercept.c 		r = write_guest(vcpu, addr, reg2, sctns, PAGE_SIZE);
r                 399 arch/s390/kvm/intercept.c 		if (r) {
r                 401 arch/s390/kvm/intercept.c 			return kvm_s390_inject_prog_cond(vcpu, r);
r                 408 arch/s390/kvm/intercept.c 	return r;
r                2209 arch/s390/kvm/interrupt.c 	int r;
r                2213 arch/s390/kvm/interrupt.c 		r = get_all_floating_irqs(dev->kvm, (u8 __user *) attr->addr,
r                2217 arch/s390/kvm/interrupt.c 		r = flic_ais_mode_get_all(dev->kvm, attr);
r                2220 arch/s390/kvm/interrupt.c 		r = -EINVAL;
r                2223 arch/s390/kvm/interrupt.c 	return r;
r                2270 arch/s390/kvm/interrupt.c 	int r = 0;
r                2283 arch/s390/kvm/interrupt.c 		r = copy_irq_from_user(inti, attr->addr);
r                2284 arch/s390/kvm/interrupt.c 		if (r) {
r                2286 arch/s390/kvm/interrupt.c 			return r;
r                2288 arch/s390/kvm/interrupt.c 		r = __inject_vm(dev->kvm, inti);
r                2289 arch/s390/kvm/interrupt.c 		if (r) {
r                2291 arch/s390/kvm/interrupt.c 			return r;
r                2297 arch/s390/kvm/interrupt.c 	return r;
r                2598 arch/s390/kvm/interrupt.c 	int r = 0;
r                2604 arch/s390/kvm/interrupt.c 		r = enqueue_floating_irq(dev, attr);
r                2624 arch/s390/kvm/interrupt.c 		r = register_io_adapter(dev, attr);
r                2627 arch/s390/kvm/interrupt.c 		r = modify_io_adapter(dev, attr);
r                2630 arch/s390/kvm/interrupt.c 		r = clear_io_irq(dev->kvm, attr);
r                2633 arch/s390/kvm/interrupt.c 		r = modify_ais_mode(dev->kvm, attr);
r                2636 arch/s390/kvm/interrupt.c 		r = flic_inject_airq(dev->kvm, attr);
r                2639 arch/s390/kvm/interrupt.c 		r = flic_ais_mode_set_all(dev->kvm, attr);
r                2642 arch/s390/kvm/interrupt.c 		r = -EINVAL;
r                2645 arch/s390/kvm/interrupt.c 	return r;
r                2851 arch/s390/kvm/interrupt.c 	int r = 0;
r                2859 arch/s390/kvm/interrupt.c 		r = -EFAULT;
r                2869 arch/s390/kvm/interrupt.c 		r = -EBUSY;
r                2874 arch/s390/kvm/interrupt.c 		r = do_inject_vcpu(vcpu, &buf[n]);
r                2875 arch/s390/kvm/interrupt.c 		if (r)
r                2884 arch/s390/kvm/interrupt.c 	return r;
r                 506 arch/s390/kvm/kvm-s390.c 	int r;
r                 535 arch/s390/kvm/kvm-s390.c 		r = 1;
r                 538 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 540 arch/s390/kvm/kvm-s390.c 			r = 1;
r                 543 arch/s390/kvm/kvm-s390.c 		r = MEM_OP_MAX_SIZE;
r                 548 arch/s390/kvm/kvm-s390.c 		r = KVM_S390_BSCA_CPU_SLOTS;
r                 550 arch/s390/kvm/kvm-s390.c 			r = KVM_MAX_VCPUS;
r                 552 arch/s390/kvm/kvm-s390.c 			r = KVM_S390_ESCA_CPU_SLOTS;
r                 555 arch/s390/kvm/kvm-s390.c 		r = MACHINE_HAS_ESOP;
r                 558 arch/s390/kvm/kvm-s390.c 		r = MACHINE_HAS_VX;
r                 561 arch/s390/kvm/kvm-s390.c 		r = test_facility(64);
r                 564 arch/s390/kvm/kvm-s390.c 		r = test_facility(133);
r                 567 arch/s390/kvm/kvm-s390.c 		r = test_facility(82);
r                 570 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 572 arch/s390/kvm/kvm-s390.c 	return r;
r                 615 arch/s390/kvm/kvm-s390.c 	int r;
r                 626 arch/s390/kvm/kvm-s390.c 	r = -EINVAL;
r                 632 arch/s390/kvm/kvm-s390.c 	r = -ENOENT;
r                 637 arch/s390/kvm/kvm-s390.c 	r = kvm_get_dirty_log(kvm, log, &is_dirty);
r                 638 arch/s390/kvm/kvm-s390.c 	if (r)
r                 646 arch/s390/kvm/kvm-s390.c 	r = 0;
r                 649 arch/s390/kvm/kvm-s390.c 	return r;
r                 664 arch/s390/kvm/kvm-s390.c 	int r;
r                 673 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 678 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 683 arch/s390/kvm/kvm-s390.c 			r = -EBUSY;
r                 703 arch/s390/kvm/kvm-s390.c 			r = 0;
r                 705 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                 708 arch/s390/kvm/kvm-s390.c 			 r ? "(not available)" : "(success)");
r                 711 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                 714 arch/s390/kvm/kvm-s390.c 			r = -EBUSY;
r                 718 arch/s390/kvm/kvm-s390.c 			r = 0;
r                 722 arch/s390/kvm/kvm-s390.c 			 r ? "(not available)" : "(success)");
r                 727 arch/s390/kvm/kvm-s390.c 			r = -EBUSY;
r                 731 arch/s390/kvm/kvm-s390.c 			r = 0;
r                 735 arch/s390/kvm/kvm-s390.c 			 r ? "(not available)" : "(success)");
r                 738 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                 741 arch/s390/kvm/kvm-s390.c 			r = -EBUSY;
r                 745 arch/s390/kvm/kvm-s390.c 			r = 0;
r                 749 arch/s390/kvm/kvm-s390.c 			 r ? "(not available)" : "(success)");
r                 754 arch/s390/kvm/kvm-s390.c 			r = -EBUSY;
r                 756 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                 758 arch/s390/kvm/kvm-s390.c 			r = 0;
r                 772 arch/s390/kvm/kvm-s390.c 			 r ? "(not available)" : "(success)");
r                 777 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 783 arch/s390/kvm/kvm-s390.c 		r = 0;
r                 786 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                 789 arch/s390/kvm/kvm-s390.c 	return r;
r                1794 arch/s390/kvm/kvm-s390.c 	int srcu_idx, i, r = 0;
r                1816 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                1820 arch/s390/kvm/kvm-s390.c 		r = get_guest_storage_key(current->mm, hva, &keys[i]);
r                1821 arch/s390/kvm/kvm-s390.c 		if (r)
r                1827 arch/s390/kvm/kvm-s390.c 	if (!r) {
r                1828 arch/s390/kvm/kvm-s390.c 		r = copy_to_user((uint8_t __user *)args->skeydata_addr, keys,
r                1830 arch/s390/kvm/kvm-s390.c 		if (r)
r                1831 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                1835 arch/s390/kvm/kvm-s390.c 	return r;
r                1842 arch/s390/kvm/kvm-s390.c 	int srcu_idx, i, r = 0;
r                1856 arch/s390/kvm/kvm-s390.c 	r = copy_from_user(keys, (uint8_t __user *)args->skeydata_addr,
r                1858 arch/s390/kvm/kvm-s390.c 	if (r) {
r                1859 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                1864 arch/s390/kvm/kvm-s390.c 	r = s390_enable_skey();
r                1865 arch/s390/kvm/kvm-s390.c 	if (r)
r                1875 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                1881 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                1885 arch/s390/kvm/kvm-s390.c 		r = set_guest_storage_key(current->mm, hva, keys[i], 0);
r                1886 arch/s390/kvm/kvm-s390.c 		if (r) {
r                1887 arch/s390/kvm/kvm-s390.c 			r = fixup_user_fault(current, current->mm, hva,
r                1889 arch/s390/kvm/kvm-s390.c 			if (r)
r                1892 arch/s390/kvm/kvm-s390.c 		if (!r)
r                1899 arch/s390/kvm/kvm-s390.c 	return r;
r                2113 arch/s390/kvm/kvm-s390.c 	int srcu_idx, r = 0;
r                2133 arch/s390/kvm/kvm-s390.c 	r = copy_from_user(bits, (void __user *)args->values, args->count);
r                2134 arch/s390/kvm/kvm-s390.c 	if (r) {
r                2135 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2144 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                2163 arch/s390/kvm/kvm-s390.c 	return r;
r                2172 arch/s390/kvm/kvm-s390.c 	int r;
r                2178 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2181 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_inject_vm(kvm, &s390int);
r                2187 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                2191 arch/s390/kvm/kvm-s390.c 			r = kvm_set_irq_routing(kvm, &routing, 0, 0);
r                2196 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2199 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_vm_set_attr(kvm, &attr);
r                2203 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2206 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_vm_get_attr(kvm, &attr);
r                2210 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2213 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_vm_has_attr(kvm, &attr);
r                2219 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2223 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_get_skeys(kvm, &args);
r                2229 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2233 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_set_skeys(kvm, &args);
r                2239 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2243 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_get_cmma_bits(kvm, &args);
r                2245 arch/s390/kvm/kvm-s390.c 		if (!r) {
r                2246 arch/s390/kvm/kvm-s390.c 			r = copy_to_user(argp, &args, sizeof(args));
r                2247 arch/s390/kvm/kvm-s390.c 			if (r)
r                2248 arch/s390/kvm/kvm-s390.c 				r = -EFAULT;
r                2255 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                2259 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_set_cmma_bits(kvm, &args);
r                2264 arch/s390/kvm/kvm-s390.c 		r = -ENOTTY;
r                2267 arch/s390/kvm/kvm-s390.c 	return r;
r                3195 arch/s390/kvm/kvm-s390.c 	int r = -EINVAL;
r                3199 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.sie_block->todpr,
r                3203 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.sie_block->epoch,
r                3207 arch/s390/kvm/kvm-s390.c 		r = put_user(kvm_s390_get_cpu_timer(vcpu),
r                3211 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.sie_block->ckc,
r                3215 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.pfault_token,
r                3219 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.pfault_compare,
r                3223 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.pfault_select,
r                3227 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.sie_block->pp,
r                3231 arch/s390/kvm/kvm-s390.c 		r = put_user(vcpu->arch.sie_block->gbea,
r                3238 arch/s390/kvm/kvm-s390.c 	return r;
r                3244 arch/s390/kvm/kvm-s390.c 	int r = -EINVAL;
r                3249 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.sie_block->todpr,
r                3253 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.sie_block->epoch,
r                3257 arch/s390/kvm/kvm-s390.c 		r = get_user(val, (u64 __user *)reg->addr);
r                3258 arch/s390/kvm/kvm-s390.c 		if (!r)
r                3262 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.sie_block->ckc,
r                3266 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.pfault_token,
r                3272 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.pfault_compare,
r                3276 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.pfault_select,
r                3280 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.sie_block->pp,
r                3284 arch/s390/kvm/kvm-s390.c 		r = get_user(vcpu->arch.sie_block->gbea,
r                3291 arch/s390/kvm/kvm-s390.c 	return r;
r                4235 arch/s390/kvm/kvm-s390.c 	int r;
r                4247 arch/s390/kvm/kvm-s390.c 		r = 0;
r                4250 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                4253 arch/s390/kvm/kvm-s390.c 	return r;
r                4261 arch/s390/kvm/kvm-s390.c 	int r, srcu_idx;
r                4282 arch/s390/kvm/kvm-s390.c 			r = check_gva_range(vcpu, mop->gaddr, mop->ar,
r                4286 arch/s390/kvm/kvm-s390.c 		r = read_guest(vcpu, mop->gaddr, mop->ar, tmpbuf, mop->size);
r                4287 arch/s390/kvm/kvm-s390.c 		if (r == 0) {
r                4289 arch/s390/kvm/kvm-s390.c 				r = -EFAULT;
r                4294 arch/s390/kvm/kvm-s390.c 			r = check_gva_range(vcpu, mop->gaddr, mop->ar,
r                4299 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                4302 arch/s390/kvm/kvm-s390.c 		r = write_guest(vcpu, mop->gaddr, mop->ar, tmpbuf, mop->size);
r                4305 arch/s390/kvm/kvm-s390.c 		r = -EINVAL;
r                4310 arch/s390/kvm/kvm-s390.c 	if (r > 0 && (mop->flags & KVM_S390_MEMOP_F_INJECT_EXCEPTION) != 0)
r                4314 arch/s390/kvm/kvm-s390.c 	return r;
r                4351 arch/s390/kvm/kvm-s390.c 	long r;
r                4358 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_store_status_unloaded(vcpu, arg);
r                4364 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                4367 arch/s390/kvm/kvm-s390.c 		r = kvm_arch_vcpu_ioctl_set_initial_psw(vcpu, psw);
r                4371 arch/s390/kvm/kvm-s390.c 		r = kvm_arch_vcpu_ioctl_initial_reset(vcpu);
r                4376 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                4380 arch/s390/kvm/kvm-s390.c 			r = kvm_arch_vcpu_ioctl_set_one_reg(vcpu, &reg);
r                4382 arch/s390/kvm/kvm-s390.c 			r = kvm_arch_vcpu_ioctl_get_one_reg(vcpu, &reg);
r                4390 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                4395 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                4399 arch/s390/kvm/kvm-s390.c 		r = gmap_map_segment(vcpu->arch.gmap, ucasmap.user_addr,
r                4407 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                4412 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                4416 arch/s390/kvm/kvm-s390.c 		r = gmap_unmap_segment(vcpu->arch.gmap, ucasmap.vcpu_addr,
r                4422 arch/s390/kvm/kvm-s390.c 		r = gmap_fault(vcpu->arch.gmap, arg, 0);
r                4428 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                4431 arch/s390/kvm/kvm-s390.c 		r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap);
r                4438 arch/s390/kvm/kvm-s390.c 			r = kvm_s390_guest_mem_op(vcpu, &mem_op);
r                4440 arch/s390/kvm/kvm-s390.c 			r = -EFAULT;
r                4446 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                4452 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                4456 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_set_irq_state(vcpu,
r                4464 arch/s390/kvm/kvm-s390.c 		r = -EFAULT;
r                4468 arch/s390/kvm/kvm-s390.c 			r = -EINVAL;
r                4472 arch/s390/kvm/kvm-s390.c 		r = kvm_s390_get_irq_state(vcpu,
r                4478 arch/s390/kvm/kvm-s390.c 		r = -ENOTTY;
r                4482 arch/s390/kvm/kvm-s390.c 	return r;
r                 489 arch/s390/pci/pci.c 	struct resource *r;
r                 491 arch/s390/pci/pci.c 	r = kzalloc(sizeof(*r), GFP_KERNEL);
r                 492 arch/s390/pci/pci.c 	if (!r)
r                 495 arch/s390/pci/pci.c 	r->start = start;
r                 496 arch/s390/pci/pci.c 	r->end = r->start + size - 1;
r                 497 arch/s390/pci/pci.c 	r->flags = flags;
r                 498 arch/s390/pci/pci.c 	r->name = zdev->res_name;
r                 500 arch/s390/pci/pci.c 	if (request_resource(&iomem_resource, r)) {
r                 501 arch/s390/pci/pci.c 		kfree(r);
r                 504 arch/s390/pci/pci.c 	return r;
r                 636 arch/s390/pci/pci_clp.c 	if (req.r != 0)
r                  55 arch/sh/include/asm/ptrace.h #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
r                  57 arch/sh/include/asm/ptrace.h 	{.name = __stringify(r##num), .offset = offsetof(struct pt_regs, regs[num])}
r                  30 arch/sh/kernel/cpu/sh4a/clock-sh7734.c 	u32 r = __raw_readl(MODEMR);
r                  32 arch/sh/kernel/cpu/sh4a/clock-sh7734.c 	if ((r & MODEMR_MASK) & MODEMR_533MHZ)
r                  57 arch/sh/math-emu/math.c #define PACK_S(r,f)	FP_PACK_SP(&r,f)
r                  58 arch/sh/math-emu/math.c #define UNPACK_S(f,r)	FP_UNPACK_SP(f,&r)
r                  59 arch/sh/math-emu/math.c #define PACK_D(r,f) \
r                  60 arch/sh/math-emu/math.c 	{u32 t[2]; FP_PACK_DP(t,f); ((u32*)&r)[0]=t[1]; ((u32*)&r)[1]=t[0];}
r                  61 arch/sh/math-emu/math.c #define UNPACK_D(f,r) \
r                  62 arch/sh/math-emu/math.c 	{u32 t[2]; t[0]=((u32*)&r)[1]; t[1]=((u32*)&r)[0]; FP_UNPACK_DP(f,t);}
r                  76 arch/sh/math-emu/math.c #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
r                  32 arch/sh/math-emu/sfp-util.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                  66 arch/sh/math-emu/sfp-util.h     (r) = __r0;								\
r                  40 arch/sh/mm/consistent.c 	struct resource *r;
r                  44 arch/sh/mm/consistent.c 	r = pdev->resource + pdev->num_resources - 1;
r                  45 arch/sh/mm/consistent.c 	if (r->flags) {
r                  63 arch/sh/mm/consistent.c 	r->flags = IORESOURCE_MEM;
r                  64 arch/sh/mm/consistent.c 	r->start = dma_handle;
r                  65 arch/sh/mm/consistent.c 	r->end = r->start + memsize - 1;
r                  66 arch/sh/mm/consistent.c 	r->name = name;
r                 279 arch/sparc/include/asm/floppy_32.h 	struct resource r;
r                 316 arch/sparc/include/asm/floppy_32.h 	memset(&r, 0, sizeof(r));
r                 317 arch/sparc/include/asm/floppy_32.h 	r.flags = fd_regs[0].which_io;
r                 318 arch/sparc/include/asm/floppy_32.h 	r.start = fd_regs[0].phys_addr;
r                 319 arch/sparc/include/asm/floppy_32.h 	sun_fdc = of_ioremap(&r, 0, fd_regs[0].reg_size, "floppy");
r                  90 arch/sparc/include/asm/leon_amba.h #define LEON3_GPTIMER_CTRL_ISPENDING(r)  (((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0)
r                  34 arch/sparc/kernel/auxio_32.c 	struct resource r;
r                  67 arch/sparc/kernel/auxio_32.c 	r.flags = auxregs[0].which_io & 0xF;
r                  68 arch/sparc/kernel/auxio_32.c 	r.start = auxregs[0].phys_addr;
r                  69 arch/sparc/kernel/auxio_32.c 	r.end = auxregs[0].phys_addr + auxregs[0].reg_size - 1;
r                  70 arch/sparc/kernel/auxio_32.c 	auxio_register = of_ioremap(&r, 0, auxregs[0].reg_size, "auxio");
r                 116 arch/sparc/kernel/auxio_32.c 	struct resource r;
r                 130 arch/sparc/kernel/auxio_32.c 	memset(&r, 0, sizeof(r));
r                 131 arch/sparc/kernel/auxio_32.c 	r.flags = regs.which_io & 0xF;
r                 132 arch/sparc/kernel/auxio_32.c 	r.start = regs.phys_addr;
r                 133 arch/sparc/kernel/auxio_32.c 	r.end = regs.phys_addr + regs.reg_size - 1;
r                 135 arch/sparc/kernel/auxio_32.c 		(u8 __iomem *)of_ioremap(&r, 0, regs.reg_size, "auxpower");
r                 383 arch/sparc/kernel/ioport.c 	struct resource *root = m->private, *r;
r                 386 arch/sparc/kernel/ioport.c 	for (r = root->child; r != NULL; r = r->sibling) {
r                 387 arch/sparc/kernel/ioport.c 		if ((nm = r->name) == NULL) nm = "???";
r                 389 arch/sparc/kernel/ioport.c 				(unsigned long long)r->start,
r                 390 arch/sparc/kernel/ioport.c 				(unsigned long long)r->end, nm);
r                  75 arch/sparc/kernel/ldc.c 		} r;
r                 476 arch/sparc/kernel/ldc.c 		p->u.r.ackid = lp->rcv_nxt;
r                 479 arch/sparc/kernel/ldc.c 		       p->env, p->seqid, p->u.r.ackid);
r                 500 arch/sparc/kernel/ldc.c 	p->u.r.ackid = lp->rcv_nxt;
r                 503 arch/sparc/kernel/ldc.c 	       p->type, p->ctrl, p->seqid, p->u.r.ackid);
r                 716 arch/sparc/kernel/ldc.c 	       p->stype, p->seqid, p->env, p->u.r.ackid);
r                 761 arch/sparc/kernel/ldc.c 	u32 ackid = ack->u.r.ackid;
r                1599 arch/sparc/kernel/ldc.c 			    p->u.r.r_data);
r                1731 arch/sparc/kernel/ldc.c 		p->u.r.ackid = lp->rcv_nxt;
r                1776 arch/sparc/kernel/ldc.c 		       p->u.r.ackid,
r                1868 arch/sparc/kernel/ldc.c 			p->u.u_data : p->u.r.r_data), pkt_len);
r                 275 arch/sparc/kernel/of_device_32.c 		struct resource *r = &op->resource[index];
r                 324 arch/sparc/kernel/of_device_32.c 		memset(r, 0, sizeof(*r));
r                 332 arch/sparc/kernel/of_device_32.c 			r->start = result & 0xffffffff;
r                 333 arch/sparc/kernel/of_device_32.c 			r->end = result + size - 1;
r                 334 arch/sparc/kernel/of_device_32.c 			r->flags = flags | ((result >> 32ULL) & 0xffUL);
r                 336 arch/sparc/kernel/of_device_32.c 		r->name = op->dev.of_node->full_name;
r                  21 arch/sparc/kernel/of_device_64.c 	struct resource *r;
r                  24 arch/sparc/kernel/of_device_64.c 		r = request_mem_region(ret, size, name);
r                  26 arch/sparc/kernel/of_device_64.c 		r = request_region(ret, size, name);
r                  27 arch/sparc/kernel/of_device_64.c 	if (!r)
r                 353 arch/sparc/kernel/of_device_64.c 		struct resource *r = &op->resource[index];
r                 401 arch/sparc/kernel/of_device_64.c 		memset(r, 0, sizeof(*r));
r                 412 arch/sparc/kernel/of_device_64.c 			r->start = result;
r                 413 arch/sparc/kernel/of_device_64.c 			r->end = result + size - 1;
r                 414 arch/sparc/kernel/of_device_64.c 			r->flags = flags;
r                 416 arch/sparc/kernel/of_device_64.c 		r->name = op->dev.of_node->full_name;
r                  28 arch/sparc/kernel/of_device_common.c 			   struct resource *r)
r                  35 arch/sparc/kernel/of_device_common.c 	memcpy(r, &op->archdata.resource[index], sizeof(*r));
r                  43 arch/sparc/kernel/of_device_common.c 	struct resource *r;
r                  48 arch/sparc/kernel/of_device_common.c 	r = &op->archdata.resource[index];
r                  50 arch/sparc/kernel/of_device_common.c 	return of_ioremap(r, 0, resource_size(r), (char *) r->name);
r                   7 arch/sparc/kernel/of_device_common.h 	u64 r = 0;
r                   9 arch/sparc/kernel/of_device_common.h 		r = (r << 32) | *(cell++);
r                  10 arch/sparc/kernel/of_device_common.h 	return r;
r                 670 arch/sparc/kernel/pci.c 			struct resource *r = &dev->resource[i];
r                 672 arch/sparc/kernel/pci.c 			if (r->parent || !r->start || !r->flags)
r                 677 arch/sparc/kernel/pci.c 					 i, r);
r                 122 arch/sparc/kernel/process_32.c void show_regs(struct pt_regs *r)
r                 124 arch/sparc/kernel/process_32.c 	struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14];
r                 129 arch/sparc/kernel/process_32.c 	       r->psr, r->pc, r->npc, r->y, print_tainted());
r                 130 arch/sparc/kernel/process_32.c 	printk("PC: <%pS>\n", (void *) r->pc);
r                 132 arch/sparc/kernel/process_32.c 	       r->u_regs[0], r->u_regs[1], r->u_regs[2], r->u_regs[3],
r                 133 arch/sparc/kernel/process_32.c 	       r->u_regs[4], r->u_regs[5], r->u_regs[6], r->u_regs[7]);
r                 135 arch/sparc/kernel/process_32.c 	       r->u_regs[8], r->u_regs[9], r->u_regs[10], r->u_regs[11],
r                 136 arch/sparc/kernel/process_32.c 	       r->u_regs[12], r->u_regs[13], r->u_regs[14], r->u_regs[15]);
r                 137 arch/sparc/kernel/process_32.c 	printk("RPC: <%pS>\n", (void *) r->u_regs[15]);
r                  56 arch/sparc/kernel/ptrace_64.c #define REG_OFFSET_NAME(n, r) \
r                  57 arch/sparc/kernel/ptrace_64.c 	{.name = n, .offset = (PT_V9_##r)}
r                 446 arch/sparc/kernel/time_64.c 	struct resource *r;
r                 457 arch/sparc/kernel/time_64.c 	r = &rtc_cmos_resource;
r                 458 arch/sparc/kernel/time_64.c 	r->flags = IORESOURCE_IO;
r                 459 arch/sparc/kernel/time_64.c 	r->name = op->resource[0].name;
r                 460 arch/sparc/kernel/time_64.c 	r->start = op->resource[0].start;
r                 461 arch/sparc/kernel/time_64.c 	r->end = op->resource[0].end;
r                 282 arch/sparc/math-emu/math_32.c #define TYPE(dummy, r, ru, b, bu, a, au) type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru << 8) | (r << 6)
r                 176 arch/sparc/math-emu/math_64.c #define TYPE(ftt, r, ru, b, bu, a, au) type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru << 8) | (r << 6) | (ftt << 9)
r                  77 arch/sparc/math-emu/sfp-util_32.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 103 arch/sparc/math-emu/sfp-util_32.h 	     "=&r" (r)							\
r                  76 arch/sparc/math-emu/sfp-util_64.h #define udiv_qrnnd(q, r, n1, n0, d) 			\
r                 109 arch/sparc/math-emu/sfp-util_64.h     (r) = __r0;                                         \
r                 180 arch/um/drivers/hostaudio_kern.c 	int r = 0, w = 0;
r                 194 arch/um/drivers/hostaudio_kern.c 		r = 1;
r                 200 arch/um/drivers/hostaudio_kern.c 	ret = os_open_file(dsp, of_set_rw(OPENFLAGS(), r, w), 0);
r                 243 arch/um/drivers/hostaudio_kern.c 	int r = 0, w = 0;
r                 255 arch/um/drivers/hostaudio_kern.c 		r = 1;
r                 261 arch/um/drivers/hostaudio_kern.c 	ret = os_open_file(mixer, of_set_rw(OPENFLAGS(), r, w), 0);
r                 125 arch/um/drivers/ubd_kern.c #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
r                 128 arch/um/drivers/ubd_kern.c #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
r                  21 arch/um/include/asm/ptrace-generic.h #define PT_REGS_IP(r) UPT_IP(&(r)->regs)
r                  22 arch/um/include/asm/ptrace-generic.h #define PT_REGS_SP(r) UPT_SP(&(r)->regs)
r                  24 arch/um/include/asm/ptrace-generic.h #define PT_REGS_RESTART_SYSCALL(r) UPT_RESTART_SYSCALL(&(r)->regs)
r                  26 arch/um/include/asm/ptrace-generic.h #define PT_REGS_SYSCALL_NR(r) UPT_SYSCALL_NR(&(r)->regs)
r                  55 arch/um/include/asm/syscall-generic.h 	const struct uml_pt_regs *r = &regs->regs;
r                  57 arch/um/include/asm/syscall-generic.h 	*args++ = UPT_SYSCALL_ARG1(r);
r                  58 arch/um/include/asm/syscall-generic.h 	*args++ = UPT_SYSCALL_ARG2(r);
r                  59 arch/um/include/asm/syscall-generic.h 	*args++ = UPT_SYSCALL_ARG3(r);
r                  60 arch/um/include/asm/syscall-generic.h 	*args++ = UPT_SYSCALL_ARG4(r);
r                  61 arch/um/include/asm/syscall-generic.h 	*args++ = UPT_SYSCALL_ARG5(r);
r                  62 arch/um/include/asm/syscall-generic.h 	*args   = UPT_SYSCALL_ARG6(r);
r                  69 arch/um/include/asm/syscall-generic.h 	struct uml_pt_regs *r = &regs->regs;
r                  71 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG1(r) = *args++;
r                  72 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG2(r) = *args++;
r                  73 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG3(r) = *args++;
r                  74 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG4(r) = *args++;
r                  75 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG5(r) = *args++;
r                  76 arch/um/include/asm/syscall-generic.h 	UPT_SYSCALL_ARG6(r) = *args;
r                  60 arch/um/include/shared/mem_user.h 		       unsigned long len, int r, int w, int x);
r                  61 arch/um/include/shared/os.h 	unsigned int r : 1;
r                  71 arch/um/include/shared/os.h #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \
r                  76 arch/um/include/shared/os.h 	flags.r = 1;
r                  91 arch/um/include/shared/os.h static inline struct openflags of_set_rw(struct openflags flags, int r, int w)
r                  93 arch/um/include/shared/os.h 	flags.r = r;
r                 160 arch/um/include/shared/os.h extern int os_shutdown_socket(int fd, int r, int w);
r                 207 arch/um/include/shared/os.h 			 unsigned long len, int r, int w, int x);
r                 209 arch/um/include/shared/os.h 			     int r, int w, int x);
r                  16 arch/um/include/shared/skas/skas.h extern long execute_syscall_skas(void *r);
r                  42 arch/um/kernel/physmem.c 		int r, int w, int x)
r                  48 arch/um/kernel/physmem.c 	err = os_map_memory((void *) virt, fd, offset, len, r, w, x);
r                  55 arch/um/kernel/physmem.c 		      "err = %d\n", virt, fd, offset, len, r, w, x, err);
r                  15 arch/um/kernel/skas/syscall.c void handle_syscall(struct uml_pt_regs *r)
r                  17 arch/um/kernel/skas/syscall.c 	struct pt_regs *regs = container_of(r, struct pt_regs, regs);
r                  31 arch/um/kernel/skas/syscall.c 	UPT_SYSCALL_NR(r) = PT_SYSCALL_NR(r->gp);
r                  41 arch/um/kernel/skas/syscall.c 	syscall = UPT_SYSCALL_NR(r);
r                 226 arch/um/kernel/tlb.c 	int r, w, x, prot, ret = 0;
r                 233 arch/um/kernel/tlb.c 		r = pte_read(*pte);
r                 237 arch/um/kernel/tlb.c 			r = 0;
r                 242 arch/um/kernel/tlb.c 		prot = ((r ? UM_PROT_READ : 0) | (w ? UM_PROT_WRITE : 0) |
r                 432 arch/um/kernel/tlb.c 	int r, w, x, prot, err = 0;
r                 450 arch/um/kernel/tlb.c 	r = pte_read(*pte);
r                 454 arch/um/kernel/tlb.c 		r = 0;
r                 461 arch/um/kernel/tlb.c 	prot = ((r ? UM_PROT_READ : 0) | (w ? UM_PROT_WRITE : 0) |
r                 180 arch/um/os-Linux/file.c 	if (flags.r && flags.w)
r                 182 arch/um/os-Linux/file.c 	else if (flags.r)
r                 483 arch/um/os-Linux/file.c int os_shutdown_socket(int fd, int r, int w)
r                 487 arch/um/os-Linux/file.c 	if (r && w)
r                 489 arch/um/os-Linux/file.c 	else if (r)
r                 139 arch/um/os-Linux/process.c 		  int r, int w, int x)
r                 144 arch/um/os-Linux/process.c 	prot = (r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
r                 154 arch/um/os-Linux/process.c int os_protect_memory(void *addr, unsigned long len, int r, int w, int x)
r                 156 arch/um/os-Linux/process.c 	int prot = ((r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
r                  34 arch/um/os-Linux/signal.c 	struct uml_pt_regs r;
r                  37 arch/um/os-Linux/signal.c 	r.is_user = 0;
r                  40 arch/um/os-Linux/signal.c 		get_regs_from_mc(&r, mc);
r                  41 arch/um/os-Linux/signal.c 		GET_FAULTINFO_FROM_MC(r.faultinfo, mc);
r                  48 arch/um/os-Linux/signal.c 	(*sig_info[sig])(sig, si, &r);
r                 348 arch/unicore32/kernel/pci.c 	struct resource *r;
r                 357 arch/unicore32/kernel/pci.c 		r = dev->resource + idx;
r                 358 arch/unicore32/kernel/pci.c 		if (!r->start && r->end) {
r                 363 arch/unicore32/kernel/pci.c 		if (r->flags & IORESOURCE_IO)
r                 365 arch/unicore32/kernel/pci.c 		if (r->flags & IORESOURCE_MEM)
r                 774 arch/x86/crypto/camellia_glue.c #define ROLDQ(l, r, bits) ({ \
r                 776 arch/x86/crypto/camellia_glue.c 	l = (l << bits) | (r >> (64 - bits));		\
r                 777 arch/x86/crypto/camellia_glue.c 	r = (r << bits) | (t >> (64 - bits));		\
r                  31 arch/x86/crypto/poly1305_glue.c 				    const u32 *r, unsigned int blocks);
r                  32 arch/x86/crypto/poly1305_glue.c asmlinkage void poly1305_2block_sse2(u32 *h, const u8 *src, const u32 *r,
r                  35 arch/x86/crypto/poly1305_glue.c asmlinkage void poly1305_4block_avx2(u32 *h, const u8 *src, const u32 *r,
r                  82 arch/x86/crypto/poly1305_glue.c 				memcpy(sctx->u, dctx->r.r, sizeof(sctx->u));
r                  83 arch/x86/crypto/poly1305_glue.c 				poly1305_simd_mult(sctx->u, dctx->r.r);
r                  87 arch/x86/crypto/poly1305_glue.c 			poly1305_simd_mult(sctx->u + 5, dctx->r.r);
r                  89 arch/x86/crypto/poly1305_glue.c 			poly1305_simd_mult(sctx->u + 10, dctx->r.r);
r                  93 arch/x86/crypto/poly1305_glue.c 		poly1305_4block_avx2(dctx->h.h, src, dctx->r.r, blocks,
r                 101 arch/x86/crypto/poly1305_glue.c 			memcpy(sctx->u, dctx->r.r, sizeof(sctx->u));
r                 102 arch/x86/crypto/poly1305_glue.c 			poly1305_simd_mult(sctx->u, dctx->r.r);
r                 106 arch/x86/crypto/poly1305_glue.c 		poly1305_2block_sse2(dctx->h.h, src, dctx->r.r, blocks,
r                 112 arch/x86/crypto/poly1305_glue.c 		poly1305_block_sse2(dctx->h.h, src, dctx->r.r, 1);
r                 138 arch/x86/events/intel/uncore_nhmex.c #define MBOX_INC_SEL_EXTAR_REG(c, r) \
r                 139 arch/x86/events/intel/uncore_nhmex.c 		EVENT_EXTRA_REG(MBOX_INC_SEL(c), NHMEX_M0_MSR_PMU_##r, \
r                 140 arch/x86/events/intel/uncore_nhmex.c 				MBOX_INC_SEL_MASK, (u64)-1, NHMEX_M_##r)
r                 141 arch/x86/events/intel/uncore_nhmex.c #define MBOX_SET_FLAG_SEL_EXTRA_REG(c, r) \
r                 142 arch/x86/events/intel/uncore_nhmex.c 		EVENT_EXTRA_REG(MBOX_SET_FLAG_SEL(c), NHMEX_M0_MSR_PMU_##r, \
r                 144 arch/x86/events/intel/uncore_nhmex.c 				(u64)-1, NHMEX_M_##r)
r                 195 arch/x86/include/asm/apic.h static inline void lapic_assign_legacy_vector(unsigned int i, bool r) { }
r                  27 arch/x86/include/asm/asm.h #define __ASM_REG(reg)         __ASM_SEL_RAW(e##reg, r##reg)
r                 122 arch/x86/include/asm/atomic64_32.h 	s64 r;
r                 123 arch/x86/include/asm/atomic64_32.h 	alternative_atomic64(read, "=&A" (r), "c" (v) : "memory");
r                 124 arch/x86/include/asm/atomic64_32.h 	return r;
r                 248 arch/x86/include/asm/atomic64_32.h 	int r;
r                 249 arch/x86/include/asm/atomic64_32.h 	alternative_atomic64(inc_not_zero, "=&a" (r),
r                 251 arch/x86/include/asm/atomic64_32.h 	return r;
r                 257 arch/x86/include/asm/atomic64_32.h 	s64 r;
r                 258 arch/x86/include/asm/atomic64_32.h 	alternative_atomic64(dec_if_positive, "=&A" (r),
r                 260 arch/x86/include/asm/atomic64_32.h 	return r;
r                 285 arch/x86/include/asm/bitops.h 	int r;
r                 298 arch/x86/include/asm/bitops.h 	    : "=r" (r)
r                 303 arch/x86/include/asm/bitops.h 	    : "=&r" (r) : "rm" (x), "r" (-1));
r                 308 arch/x86/include/asm/bitops.h 	    "1:" : "=r" (r) : "rm" (x));
r                 310 arch/x86/include/asm/bitops.h 	return r + 1;
r                 326 arch/x86/include/asm/bitops.h 	int r;
r                 339 arch/x86/include/asm/bitops.h 	    : "=r" (r)
r                 344 arch/x86/include/asm/bitops.h 	    : "=&r" (r) : "rm" (x), "rm" (-1));
r                 349 arch/x86/include/asm/bitops.h 	    "1:" : "=r" (r) : "rm" (x));
r                 351 arch/x86/include/asm/bitops.h 	return r + 1;
r                 143 arch/x86/include/asm/nospec-branch.h 		__stringify(__FILL_RETURN_BUFFER(\reg,\nr,%_ASM_SP))	\
r                  42 arch/x86/include/asm/refcount.h static __always_inline void refcount_add(unsigned int i, refcount_t *r)
r                  46 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
r                  51 arch/x86/include/asm/refcount.h static __always_inline void refcount_inc(refcount_t *r)
r                  55 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
r                  59 arch/x86/include/asm/refcount.h static __always_inline void refcount_dec(refcount_t *r)
r                  63 arch/x86/include/asm/refcount.h 		: [var] "+m" (r->refs.counter)
r                  68 arch/x86/include/asm/refcount.h bool refcount_sub_and_test(unsigned int i, refcount_t *r)
r                  72 arch/x86/include/asm/refcount.h 					 r->refs.counter, e, "er", i, "cx");
r                  82 arch/x86/include/asm/refcount.h static __always_inline __must_check bool refcount_dec_and_test(refcount_t *r)
r                  86 arch/x86/include/asm/refcount.h 					 r->refs.counter, e, "cx");
r                  97 arch/x86/include/asm/refcount.h bool refcount_add_not_zero(unsigned int i, refcount_t *r)
r                 101 arch/x86/include/asm/refcount.h 	c = atomic_read(&(r->refs));
r                 111 arch/x86/include/asm/refcount.h 				     : : [var] "m" (r->refs.counter)
r                 116 arch/x86/include/asm/refcount.h 	} while (!atomic_try_cmpxchg(&(r->refs), &c, result));
r                 121 arch/x86/include/asm/refcount.h static __always_inline __must_check bool refcount_inc_not_zero(refcount_t *r)
r                 123 arch/x86/include/asm/refcount.h 	return refcount_add_not_zero(1, r);
r                 157 arch/x86/include/asm/smp.h __visible void smp_call_function_single_interrupt(struct pt_regs *r);
r                 408 arch/x86/include/asm/xen/hypercall.h 	struct sched_shutdown r = { .reason = SHUTDOWN_suspend };
r                 416 arch/x86/include/asm/xen/hypercall.h 	return _hypercall3(int, sched_op, SCHEDOP_shutdown, &r, start_info_mfn);
r                 341 arch/x86/include/asm/xen/interface.h 	} r;
r                  91 arch/x86/include/asm/xen/interface_64.h     uint64_t r ## name, e ## name; \
r                  96 arch/x86/include/asm/xen/interface_64.h #define __DECL_REG(name) uint64_t r ## name
r                2709 arch/x86/kernel/apic/io_apic.c 	struct resource *r = ioapic_resources;
r                2711 arch/x86/kernel/apic/io_apic.c 	if (!r) {
r                2719 arch/x86/kernel/apic/io_apic.c 		insert_resource(&iomem_resource, r);
r                2720 arch/x86/kernel/apic/io_apic.c 		r++;
r                 218 arch/x86/kernel/cpu/mce/intel.c 	int r;
r                 236 arch/x86/kernel/cpu/mce/intel.c 	r = atomic_add_return(1, &cmci_storm_on_cpus);
r                 240 arch/x86/kernel/cpu/mce/intel.c 	if (r == 1)
r                  53 arch/x86/kernel/cpu/resctrl/core.c 		struct rdt_resource *r);
r                  55 arch/x86/kernel/cpu/resctrl/core.c cat_wrmsr(struct rdt_domain *d, struct msr_param *m, struct rdt_resource *r);
r                  58 arch/x86/kernel/cpu/resctrl/core.c 	      struct rdt_resource *r);
r                 176 arch/x86/kernel/cpu/resctrl/core.c static unsigned int cbm_idx(struct rdt_resource *r, unsigned int closid)
r                 178 arch/x86/kernel/cpu/resctrl/core.c 	return closid * r->cache.cbm_idx_mult + r->cache.cbm_idx_offset;
r                 201 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r  = &rdt_resources_all[RDT_RESOURCE_L3];
r                 213 arch/x86/kernel/cpu/resctrl/core.c 	r->num_closid = 4;
r                 214 arch/x86/kernel/cpu/resctrl/core.c 	r->default_ctrl = max_cbm;
r                 215 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.cbm_len = 20;
r                 216 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.shareable_bits = 0xc0000;
r                 217 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.min_cbm_bits = 2;
r                 218 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_capable = true;
r                 219 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_enabled = true;
r                 224 arch/x86/kernel/cpu/resctrl/core.c bool is_mba_sc(struct rdt_resource *r)
r                 226 arch/x86/kernel/cpu/resctrl/core.c 	if (!r)
r                 229 arch/x86/kernel/cpu/resctrl/core.c 	return r->membw.mba_sc;
r                 242 arch/x86/kernel/cpu/resctrl/core.c static inline bool rdt_get_mb_table(struct rdt_resource *r)
r                 253 arch/x86/kernel/cpu/resctrl/core.c static bool __get_mem_config_intel(struct rdt_resource *r)
r                 260 arch/x86/kernel/cpu/resctrl/core.c 	r->num_closid = edx.split.cos_max + 1;
r                 261 arch/x86/kernel/cpu/resctrl/core.c 	r->membw.max_delay = eax.split.max_delay + 1;
r                 262 arch/x86/kernel/cpu/resctrl/core.c 	r->default_ctrl = MAX_MBA_BW;
r                 264 arch/x86/kernel/cpu/resctrl/core.c 		r->membw.delay_linear = true;
r                 265 arch/x86/kernel/cpu/resctrl/core.c 		r->membw.min_bw = MAX_MBA_BW - r->membw.max_delay;
r                 266 arch/x86/kernel/cpu/resctrl/core.c 		r->membw.bw_gran = MAX_MBA_BW - r->membw.max_delay;
r                 268 arch/x86/kernel/cpu/resctrl/core.c 		if (!rdt_get_mb_table(r))
r                 271 arch/x86/kernel/cpu/resctrl/core.c 	r->data_width = 3;
r                 273 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_capable = true;
r                 274 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_enabled = true;
r                 279 arch/x86/kernel/cpu/resctrl/core.c static bool __rdt_get_mem_config_amd(struct rdt_resource *r)
r                 286 arch/x86/kernel/cpu/resctrl/core.c 	r->num_closid = edx.split.cos_max + 1;
r                 287 arch/x86/kernel/cpu/resctrl/core.c 	r->default_ctrl = MAX_MBA_BW_AMD;
r                 290 arch/x86/kernel/cpu/resctrl/core.c 	r->membw.delay_linear = false;
r                 292 arch/x86/kernel/cpu/resctrl/core.c 	r->membw.min_bw = 0;
r                 293 arch/x86/kernel/cpu/resctrl/core.c 	r->membw.bw_gran = 1;
r                 295 arch/x86/kernel/cpu/resctrl/core.c 	r->data_width = 4;
r                 297 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_capable = true;
r                 298 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_enabled = true;
r                 303 arch/x86/kernel/cpu/resctrl/core.c static void rdt_get_cache_alloc_cfg(int idx, struct rdt_resource *r)
r                 310 arch/x86/kernel/cpu/resctrl/core.c 	r->num_closid = edx.split.cos_max + 1;
r                 311 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.cbm_len = eax.split.cbm_len + 1;
r                 312 arch/x86/kernel/cpu/resctrl/core.c 	r->default_ctrl = BIT_MASK(eax.split.cbm_len + 1) - 1;
r                 313 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.shareable_bits = ebx & r->default_ctrl;
r                 314 arch/x86/kernel/cpu/resctrl/core.c 	r->data_width = (r->cache.cbm_len + 3) / 4;
r                 315 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_capable = true;
r                 316 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_enabled = true;
r                 322 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r = &rdt_resources_all[type];
r                 324 arch/x86/kernel/cpu/resctrl/core.c 	r->num_closid = r_l->num_closid / 2;
r                 325 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.cbm_len = r_l->cache.cbm_len;
r                 326 arch/x86/kernel/cpu/resctrl/core.c 	r->default_ctrl = r_l->default_ctrl;
r                 327 arch/x86/kernel/cpu/resctrl/core.c 	r->cache.shareable_bits = r_l->cache.shareable_bits;
r                 328 arch/x86/kernel/cpu/resctrl/core.c 	r->data_width = (r->cache.cbm_len + 3) / 4;
r                 329 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_capable = true;
r                 334 arch/x86/kernel/cpu/resctrl/core.c 	r->alloc_enabled = false;
r                 363 arch/x86/kernel/cpu/resctrl/core.c mba_wrmsr_amd(struct rdt_domain *d, struct msr_param *m, struct rdt_resource *r)
r                 368 arch/x86/kernel/cpu/resctrl/core.c 		wrmsrl(r->msr_base + i, d->ctrl_val[i]);
r                 376 arch/x86/kernel/cpu/resctrl/core.c u32 delay_bw_map(unsigned long bw, struct rdt_resource *r)
r                 378 arch/x86/kernel/cpu/resctrl/core.c 	if (r->membw.delay_linear)
r                 382 arch/x86/kernel/cpu/resctrl/core.c 	return r->default_ctrl;
r                 387 arch/x86/kernel/cpu/resctrl/core.c 		struct rdt_resource *r)
r                 393 arch/x86/kernel/cpu/resctrl/core.c 		wrmsrl(r->msr_base + i, delay_bw_map(d->ctrl_val[i], r));
r                 397 arch/x86/kernel/cpu/resctrl/core.c cat_wrmsr(struct rdt_domain *d, struct msr_param *m, struct rdt_resource *r)
r                 402 arch/x86/kernel/cpu/resctrl/core.c 		wrmsrl(r->msr_base + cbm_idx(r, i), d->ctrl_val[i]);
r                 405 arch/x86/kernel/cpu/resctrl/core.c struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r)
r                 409 arch/x86/kernel/cpu/resctrl/core.c 	list_for_each_entry(d, &r->domains, list) {
r                 421 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r = m->res;
r                 425 arch/x86/kernel/cpu/resctrl/core.c 	d = get_domain_from_cpu(cpu, r);
r                 427 arch/x86/kernel/cpu/resctrl/core.c 		r->msr_update(d, m, r);
r                 431 arch/x86/kernel/cpu/resctrl/core.c 		     cpu, r->name);
r                 442 arch/x86/kernel/cpu/resctrl/core.c struct rdt_domain *rdt_find_domain(struct rdt_resource *r, int id,
r                 451 arch/x86/kernel/cpu/resctrl/core.c 	list_for_each(l, &r->domains) {
r                 467 arch/x86/kernel/cpu/resctrl/core.c void setup_default_ctrlval(struct rdt_resource *r, u32 *dc, u32 *dm)
r                 477 arch/x86/kernel/cpu/resctrl/core.c 	for (i = 0; i < r->num_closid; i++, dc++, dm++) {
r                 478 arch/x86/kernel/cpu/resctrl/core.c 		*dc = r->default_ctrl;
r                 483 arch/x86/kernel/cpu/resctrl/core.c static int domain_setup_ctrlval(struct rdt_resource *r, struct rdt_domain *d)
r                 488 arch/x86/kernel/cpu/resctrl/core.c 	dc = kmalloc_array(r->num_closid, sizeof(*d->ctrl_val), GFP_KERNEL);
r                 492 arch/x86/kernel/cpu/resctrl/core.c 	dm = kmalloc_array(r->num_closid, sizeof(*d->mbps_val), GFP_KERNEL);
r                 500 arch/x86/kernel/cpu/resctrl/core.c 	setup_default_ctrlval(r, dc, dm);
r                 503 arch/x86/kernel/cpu/resctrl/core.c 	m.high = r->num_closid;
r                 504 arch/x86/kernel/cpu/resctrl/core.c 	r->msr_update(d, &m, r);
r                 508 arch/x86/kernel/cpu/resctrl/core.c static int domain_setup_mon_state(struct rdt_resource *r, struct rdt_domain *d)
r                 513 arch/x86/kernel/cpu/resctrl/core.c 		d->rmid_busy_llc = bitmap_zalloc(r->num_rmid, GFP_KERNEL);
r                 520 arch/x86/kernel/cpu/resctrl/core.c 		d->mbm_total = kcalloc(r->num_rmid, tsize, GFP_KERNEL);
r                 528 arch/x86/kernel/cpu/resctrl/core.c 		d->mbm_local = kcalloc(r->num_rmid, tsize, GFP_KERNEL);
r                 557 arch/x86/kernel/cpu/resctrl/core.c static void domain_add_cpu(int cpu, struct rdt_resource *r)
r                 559 arch/x86/kernel/cpu/resctrl/core.c 	int id = get_cache_id(cpu, r->cache_level);
r                 563 arch/x86/kernel/cpu/resctrl/core.c 	d = rdt_find_domain(r, id, &add_pos);
r                 581 arch/x86/kernel/cpu/resctrl/core.c 	rdt_domain_reconfigure_cdp(r);
r                 583 arch/x86/kernel/cpu/resctrl/core.c 	if (r->alloc_capable && domain_setup_ctrlval(r, d)) {
r                 588 arch/x86/kernel/cpu/resctrl/core.c 	if (r->mon_capable && domain_setup_mon_state(r, d)) {
r                 600 arch/x86/kernel/cpu/resctrl/core.c 		mkdir_mondata_subdir_allrdtgrp(r, d);
r                 603 arch/x86/kernel/cpu/resctrl/core.c static void domain_remove_cpu(int cpu, struct rdt_resource *r)
r                 605 arch/x86/kernel/cpu/resctrl/core.c 	int id = get_cache_id(cpu, r->cache_level);
r                 608 arch/x86/kernel/cpu/resctrl/core.c 	d = rdt_find_domain(r, id, NULL);
r                 621 arch/x86/kernel/cpu/resctrl/core.c 			rmdir_mondata_subdir_allrdtgrp(r, d->id);
r                 623 arch/x86/kernel/cpu/resctrl/core.c 		if (r->mon_capable && is_mbm_enabled())
r                 625 arch/x86/kernel/cpu/resctrl/core.c 		if (is_llc_occupancy_enabled() &&  has_busy_rmid(r, d)) {
r                 654 arch/x86/kernel/cpu/resctrl/core.c 	if (r == &rdt_resources_all[RDT_RESOURCE_L3]) {
r                 660 arch/x86/kernel/cpu/resctrl/core.c 		    has_busy_rmid(r, d)) {
r                 680 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 683 arch/x86/kernel/cpu/resctrl/core.c 	for_each_capable_rdt_resource(r)
r                 684 arch/x86/kernel/cpu/resctrl/core.c 		domain_add_cpu(cpu, r);
r                 693 arch/x86/kernel/cpu/resctrl/core.c static void clear_childcpus(struct rdtgroup *r, unsigned int cpu)
r                 697 arch/x86/kernel/cpu/resctrl/core.c 	list_for_each_entry(cr, &r->mon.crdtgrp_list, mon.crdtgrp_list) {
r                 707 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 710 arch/x86/kernel/cpu/resctrl/core.c 	for_each_capable_rdt_resource(r)
r                 711 arch/x86/kernel/cpu/resctrl/core.c 		domain_remove_cpu(cpu, r);
r                 730 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 733 arch/x86/kernel/cpu/resctrl/core.c 	for_each_alloc_capable_rdt_resource(r) {
r                 734 arch/x86/kernel/cpu/resctrl/core.c 		cl = strlen(r->name);
r                 738 arch/x86/kernel/cpu/resctrl/core.c 		if (r->data_width > max_data_width)
r                 739 arch/x86/kernel/cpu/resctrl/core.c 			max_data_width = r->data_width;
r                 913 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 915 arch/x86/kernel/cpu/resctrl/core.c 	for_each_rdt_resource(r) {
r                 916 arch/x86/kernel/cpu/resctrl/core.c 		if (r->rid == RDT_RESOURCE_L3 ||
r                 917 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L3DATA ||
r                 918 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L3CODE ||
r                 919 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2 ||
r                 920 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2DATA ||
r                 921 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2CODE)
r                 922 arch/x86/kernel/cpu/resctrl/core.c 			r->cbm_validate = cbm_validate_intel;
r                 923 arch/x86/kernel/cpu/resctrl/core.c 		else if (r->rid == RDT_RESOURCE_MBA) {
r                 924 arch/x86/kernel/cpu/resctrl/core.c 			r->msr_base = MSR_IA32_MBA_THRTL_BASE;
r                 925 arch/x86/kernel/cpu/resctrl/core.c 			r->msr_update = mba_wrmsr_intel;
r                 926 arch/x86/kernel/cpu/resctrl/core.c 			r->parse_ctrlval = parse_bw_intel;
r                 933 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 935 arch/x86/kernel/cpu/resctrl/core.c 	for_each_rdt_resource(r) {
r                 936 arch/x86/kernel/cpu/resctrl/core.c 		if (r->rid == RDT_RESOURCE_L3 ||
r                 937 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L3DATA ||
r                 938 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L3CODE ||
r                 939 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2 ||
r                 940 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2DATA ||
r                 941 arch/x86/kernel/cpu/resctrl/core.c 		    r->rid == RDT_RESOURCE_L2CODE)
r                 942 arch/x86/kernel/cpu/resctrl/core.c 			r->cbm_validate = cbm_validate_amd;
r                 943 arch/x86/kernel/cpu/resctrl/core.c 		else if (r->rid == RDT_RESOURCE_MBA) {
r                 944 arch/x86/kernel/cpu/resctrl/core.c 			r->msr_base = MSR_IA32_MBA_BW_BASE;
r                 945 arch/x86/kernel/cpu/resctrl/core.c 			r->msr_update = mba_wrmsr_amd;
r                 946 arch/x86/kernel/cpu/resctrl/core.c 			r->parse_ctrlval = parse_bw_amd;
r                 963 arch/x86/kernel/cpu/resctrl/core.c 	struct rdt_resource *r;
r                 992 arch/x86/kernel/cpu/resctrl/core.c 	for_each_alloc_capable_rdt_resource(r)
r                 993 arch/x86/kernel/cpu/resctrl/core.c 		pr_info("%s allocation detected\n", r->name);
r                 995 arch/x86/kernel/cpu/resctrl/core.c 	for_each_mon_capable_rdt_resource(r)
r                 996 arch/x86/kernel/cpu/resctrl/core.c 		pr_info("%s monitoring detected\n", r->name);
r                  31 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 			    struct rdt_resource *r)
r                  42 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (bw < r->membw.min_bw || bw > r->default_ctrl) {
r                  44 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				    r->membw.min_bw, r->default_ctrl);
r                  48 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	*data = roundup(bw, (unsigned long)r->membw.bw_gran);
r                  52 arch/x86/kernel/cpu/resctrl/ctrlmondata.c int parse_bw_amd(struct rdt_parse_data *data, struct rdt_resource *r,
r                  62 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (!bw_validate_amd(data->buf, &bw_val, r))
r                  77 arch/x86/kernel/cpu/resctrl/ctrlmondata.c static bool bw_validate(char *buf, unsigned long *data, struct rdt_resource *r)
r                  85 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (!r->membw.delay_linear) {
r                  96 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if ((bw < r->membw.min_bw || bw > r->default_ctrl) &&
r                  97 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	    !is_mba_sc(r)) {
r                  99 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				    r->membw.min_bw, r->default_ctrl);
r                 103 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	*data = roundup(bw, (unsigned long)r->membw.bw_gran);
r                 107 arch/x86/kernel/cpu/resctrl/ctrlmondata.c int parse_bw_intel(struct rdt_parse_data *data, struct rdt_resource *r,
r                 117 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (!bw_validate(data->buf, &bw_val, r))
r                 131 arch/x86/kernel/cpu/resctrl/ctrlmondata.c bool cbm_validate_intel(char *buf, u32 *data, struct rdt_resource *r)
r                 134 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	unsigned int cbm_len = r->cache.cbm_len;
r                 143 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (val == 0 || val > r->default_ctrl) {
r                 156 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if ((zero_bit - first_bit) < r->cache.min_cbm_bits) {
r                 158 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				    r->cache.min_cbm_bits);
r                 170 arch/x86/kernel/cpu/resctrl/ctrlmondata.c bool cbm_validate_amd(char *buf, u32 *data, struct rdt_resource *r)
r                 181 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (val > r->default_ctrl) {
r                 194 arch/x86/kernel/cpu/resctrl/ctrlmondata.c int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r,
r                 215 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (!r->cbm_validate(data->buf, &cbm_val, r))
r                 229 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (rdtgroup_cbm_overlaps(r, d, cbm_val, rdtgrp->closid, true)) {
r                 234 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	if (rdtgroup_cbm_overlaps(r, d, cbm_val, rdtgrp->closid, false)) {
r                 254 arch/x86/kernel/cpu/resctrl/ctrlmondata.c static int parse_line(char *line, struct rdt_resource *r,
r                 263 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	    r->rid == RDT_RESOURCE_MBA) {
r                 278 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	list_for_each_entry(d, &r->domains, list) {
r                 282 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 			if (r->parse_ctrlval(&data, r, d))
r                 293 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				rdtgrp->plr->r = r;
r                 305 arch/x86/kernel/cpu/resctrl/ctrlmondata.c int update_domains(struct rdt_resource *r, int closid)
r                 319 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	msr_param.res = r;
r                 321 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	mba_sc = is_mba_sc(r);
r                 322 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	list_for_each_entry(d, &r->domains, list) {
r                 353 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	struct rdt_resource *r;
r                 355 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	for_each_alloc_enabled_rdt_resource(r) {
r                 356 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		if (!strcmp(resname, r->name) && rdtgrp->closid < r->num_closid)
r                 357 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 			return parse_line(tok, r, rdtgrp);
r                 368 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	struct rdt_resource *r;
r                 396 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	for_each_alloc_enabled_rdt_resource(r) {
r                 397 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		list_for_each_entry(dom, &r->domains, list)
r                 418 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	for_each_alloc_enabled_rdt_resource(r) {
r                 419 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		ret = update_domains(r, rdtgrp->closid);
r                 440 arch/x86/kernel/cpu/resctrl/ctrlmondata.c static void show_doms(struct seq_file *s, struct rdt_resource *r, int closid)
r                 446 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	seq_printf(s, "%*s:", max_name_width, r->name);
r                 447 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	list_for_each_entry(dom, &r->domains, list) {
r                 451 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		ctrl_val = (!is_mba_sc(r) ? dom->ctrl_val[closid] :
r                 453 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		seq_printf(s, r->format_str, dom->id, max_data_width,
r                 464 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	struct rdt_resource *r;
r                 471 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 			for_each_alloc_enabled_rdt_resource(r)
r                 472 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				seq_printf(s, "%s:uninitialized\n", r->name);
r                 480 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 					   rdtgrp->plr->r->name,
r                 486 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 			for_each_alloc_enabled_rdt_resource(r) {
r                 487 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 				if (closid < r->num_closid)
r                 488 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 					show_doms(s, r, closid);
r                 518 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	struct rdt_resource *r;
r                 535 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	r = &rdt_resources_all[resid];
r                 536 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 	d = rdt_find_domain(r, domid, NULL);
r                 549 arch/x86/kernel/cpu/resctrl/ctrlmondata.c 		seq_printf(m, "%llu\n", rr.val * r->mon_scale);
r                 172 arch/x86/kernel/cpu/resctrl/internal.h 	struct rdt_resource	*r;
r                 450 arch/x86/kernel/cpu/resctrl/internal.h 				 struct rdt_resource *r);
r                 457 arch/x86/kernel/cpu/resctrl/internal.h 			     struct rdt_resource *r,
r                 459 arch/x86/kernel/cpu/resctrl/internal.h 	bool (*cbm_validate)(char *buf, u32 *data, struct rdt_resource *r);
r                 466 arch/x86/kernel/cpu/resctrl/internal.h int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r,
r                 468 arch/x86/kernel/cpu/resctrl/internal.h int parse_bw_intel(struct rdt_parse_data *data, struct rdt_resource *r,
r                 470 arch/x86/kernel/cpu/resctrl/internal.h int parse_bw_amd(struct rdt_parse_data *data, struct rdt_resource *r,
r                 494 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_rdt_resource(r)					      \
r                 495 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 496 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)
r                 498 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_capable_rdt_resource(r)				      \
r                 499 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 500 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)							      \
r                 501 arch/x86/kernel/cpu/resctrl/internal.h 		if (r->alloc_capable || r->mon_capable)
r                 503 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_alloc_capable_rdt_resource(r)				      \
r                 504 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 505 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)							      \
r                 506 arch/x86/kernel/cpu/resctrl/internal.h 		if (r->alloc_capable)
r                 508 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_mon_capable_rdt_resource(r)				      \
r                 509 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 510 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)							      \
r                 511 arch/x86/kernel/cpu/resctrl/internal.h 		if (r->mon_capable)
r                 513 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_alloc_enabled_rdt_resource(r)				      \
r                 514 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 515 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)							      \
r                 516 arch/x86/kernel/cpu/resctrl/internal.h 		if (r->alloc_enabled)
r                 518 arch/x86/kernel/cpu/resctrl/internal.h #define for_each_mon_enabled_rdt_resource(r)				      \
r                 519 arch/x86/kernel/cpu/resctrl/internal.h 	for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
r                 520 arch/x86/kernel/cpu/resctrl/internal.h 	     r++)							      \
r                 521 arch/x86/kernel/cpu/resctrl/internal.h 		if (r->mon_enabled)
r                 554 arch/x86/kernel/cpu/resctrl/internal.h int rdtgroup_kn_mode_restrict(struct rdtgroup *r, const char *name);
r                 555 arch/x86/kernel/cpu/resctrl/internal.h int rdtgroup_kn_mode_restore(struct rdtgroup *r, const char *name,
r                 557 arch/x86/kernel/cpu/resctrl/internal.h struct rdt_domain *rdt_find_domain(struct rdt_resource *r, int id,
r                 563 arch/x86/kernel/cpu/resctrl/internal.h bool rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d,
r                 565 arch/x86/kernel/cpu/resctrl/internal.h unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r, struct rdt_domain *d,
r                 568 arch/x86/kernel/cpu/resctrl/internal.h int rdtgroup_tasks_assigned(struct rdtgroup *r);
r                 577 arch/x86/kernel/cpu/resctrl/internal.h struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
r                 578 arch/x86/kernel/cpu/resctrl/internal.h int update_domains(struct rdt_resource *r, int closid);
r                 583 arch/x86/kernel/cpu/resctrl/internal.h int rdt_get_mon_l3_config(struct rdt_resource *r);
r                 586 arch/x86/kernel/cpu/resctrl/internal.h void rmdir_mondata_subdir_allrdtgrp(struct rdt_resource *r,
r                 588 arch/x86/kernel/cpu/resctrl/internal.h void mkdir_mondata_subdir_allrdtgrp(struct rdt_resource *r,
r                 595 arch/x86/kernel/cpu/resctrl/internal.h bool is_mba_sc(struct rdt_resource *r);
r                 596 arch/x86/kernel/cpu/resctrl/internal.h void setup_default_ctrlval(struct rdt_resource *r, u32 *dc, u32 *dm);
r                 597 arch/x86/kernel/cpu/resctrl/internal.h u32 delay_bw_map(unsigned long bw, struct rdt_resource *r);
r                 600 arch/x86/kernel/cpu/resctrl/internal.h bool has_busy_rmid(struct rdt_resource *r, struct rdt_domain *d);
r                 602 arch/x86/kernel/cpu/resctrl/internal.h bool cbm_validate_intel(char *buf, u32 *data, struct rdt_resource *r);
r                 603 arch/x86/kernel/cpu/resctrl/internal.h bool cbm_validate_amd(char *buf, u32 *data, struct rdt_resource *r);
r                 604 arch/x86/kernel/cpu/resctrl/internal.h void rdt_domain_reconfigure_cdp(struct rdt_resource *r);
r                 111 arch/x86/kernel/cpu/resctrl/monitor.c 	struct rdt_resource *r;
r                 114 arch/x86/kernel/cpu/resctrl/monitor.c 	r = &rdt_resources_all[RDT_RESOURCE_L3];
r                 123 arch/x86/kernel/cpu/resctrl/monitor.c 		nrmid = find_next_bit(d->rmid_busy_llc, r->num_rmid, crmid);
r                 124 arch/x86/kernel/cpu/resctrl/monitor.c 		if (nrmid >= r->num_rmid)
r                 139 arch/x86/kernel/cpu/resctrl/monitor.c bool has_busy_rmid(struct rdt_resource *r, struct rdt_domain *d)
r                 141 arch/x86/kernel/cpu/resctrl/monitor.c 	return find_first_bit(d->rmid_busy_llc, r->num_rmid) != r->num_rmid;
r                 167 arch/x86/kernel/cpu/resctrl/monitor.c 	struct rdt_resource *r;
r                 172 arch/x86/kernel/cpu/resctrl/monitor.c 	r = &rdt_resources_all[RDT_RESOURCE_L3];
r                 176 arch/x86/kernel/cpu/resctrl/monitor.c 	list_for_each_entry(d, &r->domains, list) {
r                 187 arch/x86/kernel/cpu/resctrl/monitor.c 		if (!has_busy_rmid(r, d))
r                 273 arch/x86/kernel/cpu/resctrl/monitor.c 	struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_L3];
r                 284 arch/x86/kernel/cpu/resctrl/monitor.c 	cur_bw = (chunks * r->mon_scale) >> 20;
r                 474 arch/x86/kernel/cpu/resctrl/monitor.c 	struct rdt_resource *r;
r                 479 arch/x86/kernel/cpu/resctrl/monitor.c 	r = &rdt_resources_all[RDT_RESOURCE_L3];
r                 480 arch/x86/kernel/cpu/resctrl/monitor.c 	d = get_domain_from_cpu(cpu, r);
r                 489 arch/x86/kernel/cpu/resctrl/monitor.c 	if (has_busy_rmid(r, d))
r                 553 arch/x86/kernel/cpu/resctrl/monitor.c static int dom_data_init(struct rdt_resource *r)
r                 558 arch/x86/kernel/cpu/resctrl/monitor.c 	nr_rmids = r->num_rmid;
r                 603 arch/x86/kernel/cpu/resctrl/monitor.c static void l3_mon_evt_init(struct rdt_resource *r)
r                 605 arch/x86/kernel/cpu/resctrl/monitor.c 	INIT_LIST_HEAD(&r->evt_list);
r                 608 arch/x86/kernel/cpu/resctrl/monitor.c 		list_add_tail(&llc_occupancy_event.list, &r->evt_list);
r                 610 arch/x86/kernel/cpu/resctrl/monitor.c 		list_add_tail(&mbm_total_event.list, &r->evt_list);
r                 612 arch/x86/kernel/cpu/resctrl/monitor.c 		list_add_tail(&mbm_local_event.list, &r->evt_list);
r                 615 arch/x86/kernel/cpu/resctrl/monitor.c int rdt_get_mon_l3_config(struct rdt_resource *r)
r                 620 arch/x86/kernel/cpu/resctrl/monitor.c 	r->mon_scale = boot_cpu_data.x86_cache_occ_scale;
r                 621 arch/x86/kernel/cpu/resctrl/monitor.c 	r->num_rmid = boot_cpu_data.x86_cache_max_rmid + 1;
r                 630 arch/x86/kernel/cpu/resctrl/monitor.c 	resctrl_cqm_threshold = cl_size * 1024 / r->num_rmid;
r                 633 arch/x86/kernel/cpu/resctrl/monitor.c 	resctrl_cqm_threshold /= r->mon_scale;
r                 635 arch/x86/kernel/cpu/resctrl/monitor.c 	ret = dom_data_init(r);
r                 639 arch/x86/kernel/cpu/resctrl/monitor.c 	l3_mon_evt_init(r);
r                 641 arch/x86/kernel/cpu/resctrl/monitor.c 	r->mon_capable = true;
r                 642 arch/x86/kernel/cpu/resctrl/monitor.c 	r->mon_enabled = true;
r                 249 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	plr->r = NULL;
r                 293 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	plr->size = rdtgroup_cbm_to_size(plr->r, plr->d, plr->cbm);
r                 296 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 		if (ci->info_list[i].level == plr->r->cache_level) {
r                 799 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 		cbm_len = d->plr->r->cache.cbm_len;
r                 823 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	struct rdt_resource *r;
r                 834 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	for_each_alloc_enabled_rdt_resource(r) {
r                 835 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 		list_for_each_entry(d_i, &r->domains, list) {
r                 103 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                 107 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r)
r                 108 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		rdt_min_closid = min(rdt_min_closid, r->num_closid);
r                 302 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdtgroup *r = info;
r                 304 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (r) {
r                 305 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		this_cpu_write(pqr_state.default_closid, r->closid);
r                 306 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		this_cpu_write(pqr_state.default_rmid, r->mon.rmid);
r                 323 arch/x86/kernel/cpu/resctrl/rdtgroup.c update_closid_rmid(const struct cpumask *cpu_mask, struct rdtgroup *r)
r                 328 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		update_cpu_closid_rmid(r);
r                 329 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	smp_call_function_many(cpu_mask, update_cpu_closid_rmid, r, 1);
r                 376 arch/x86/kernel/cpu/resctrl/rdtgroup.c static void cpumask_rdtgrp_clear(struct rdtgroup *r, struct cpumask *m)
r                 380 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	cpumask_andnot(&r->cpu_mask, &r->cpu_mask, m);
r                 382 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(crgrp, &r->mon.crdtgrp_list, mon.crdtgrp_list)
r                 383 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		cpumask_and(&crgrp->cpu_mask, &r->cpu_mask, &crgrp->cpu_mask);
r                 389 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdtgroup *r, *crgrp;
r                 414 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		list_for_each_entry(r, &rdt_all_groups, rdtgroup_list) {
r                 415 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			if (r == rdtgrp)
r                 417 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			cpumask_and(tmpmask1, &r->cpu_mask, tmpmask);
r                 419 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				cpumask_rdtgrp_clear(r, tmpmask1);
r                 597 arch/x86/kernel/cpu/resctrl/rdtgroup.c int rdtgroup_tasks_assigned(struct rdtgroup *r)
r                 606 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if ((r->type == RDTCTRL_GROUP && t->closid == r->closid) ||
r                 607 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		    (r->type == RDTMON_GROUP && t->rmid == r->mon.rmid)) {
r                 699 arch/x86/kernel/cpu/resctrl/rdtgroup.c static void show_rdt_tasks(struct rdtgroup *r, struct seq_file *s)
r                 705 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if ((r->type == RDTCTRL_GROUP && t->closid == r->closid) ||
r                 706 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		    (r->type == RDTMON_GROUP && t->rmid == r->mon.rmid))
r                 746 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 748 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%d\n", r->num_closid);
r                 755 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 757 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%x\n", r->default_ctrl);
r                 764 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 766 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%u\n", r->cache.min_cbm_bits);
r                 773 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 775 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%x\n", r->cache.shareable_bits);
r                 796 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 810 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	hw_shareable = r->cache.shareable_bits;
r                 811 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(dom, &r->domains, list) {
r                 845 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		for (i = r->cache.cbm_len - 1; i >= 0; i--) {
r                 874 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 876 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%u\n", r->membw.min_bw);
r                 883 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 885 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%d\n", r->num_rmid);
r                 893 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 896 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(mevt, &r->evt_list, list)
r                 905 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 907 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%u\n", r->membw.bw_gran);
r                 914 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 916 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%u\n", r->membw.delay_linear);
r                 923 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 925 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	seq_printf(seq, "%u\n", resctrl_cqm_threshold * r->mon_scale);
r                 933 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = of->kn->parent->priv;
r                 944 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	resctrl_cqm_threshold = bytes / r->mon_scale;
r                 992 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdt_cdp_peer_get(struct rdt_resource *r, struct rdt_domain *d,
r                1000 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	switch (r->rid) {
r                1060 arch/x86/kernel/cpu/resctrl/rdtgroup.c static bool __rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d,
r                1070 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ctrl_b = r->cache.shareable_bits;
r                1071 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if (bitmap_intersects(&cbm, &ctrl_b, r->cache.cbm_len))
r                1082 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			if (bitmap_intersects(&cbm, &ctrl_b, r->cache.cbm_len)) {
r                1116 arch/x86/kernel/cpu/resctrl/rdtgroup.c bool rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d,
r                1122 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (__rdtgroup_cbm_overlaps(r, d, cbm, closid, exclusive))
r                1125 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (rdt_cdp_peer_get(r, d, &r_cdp, &d_cdp) < 0)
r                1146 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                1150 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r) {
r                1151 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if (r->rid == RDT_RESOURCE_MBA)
r                1154 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		list_for_each_entry(d, &r->domains, list) {
r                1155 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			if (rdtgroup_cbm_overlaps(r, d, d->ctrl_val[closid],
r                1258 arch/x86/kernel/cpu/resctrl/rdtgroup.c unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r,
r                1265 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	num_b = bitmap_weight(&cbm, r->cache.cbm_len);
r                1268 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if (ci->info_list[i].level == r->cache_level) {
r                1269 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			size = ci->info_list[i].size / r->cache.cbm_len * num_b;
r                1288 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                1308 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				   rdtgrp->plr->r->name);
r                1309 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			size = rdtgroup_cbm_to_size(rdtgrp->plr->r,
r                1317 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r) {
r                1319 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		seq_printf(s, "%*s:", max_name_width, r->name);
r                1320 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		list_for_each_entry(d, &r->domains, list) {
r                1326 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				ctrl = (!is_mba_sc(r) ?
r                1329 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				if (r->rid == RDT_RESOURCE_MBA)
r                1332 arch/x86/kernel/cpu/resctrl/rdtgroup.c 					size = rdtgroup_cbm_to_size(r, d, ctrl);
r                1529 arch/x86/kernel/cpu/resctrl/rdtgroup.c int rdtgroup_kn_mode_restrict(struct rdtgroup *r, const char *name)
r                1535 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	kn = kernfs_find_and_get_ns(r->kn, name, NULL);
r                1567 arch/x86/kernel/cpu/resctrl/rdtgroup.c int rdtgroup_kn_mode_restore(struct rdtgroup *r, const char *name,
r                1583 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	kn = kernfs_find_and_get_ns(r->kn, name, NULL);
r                1609 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdtgroup_mkdir_info_resdir(struct rdt_resource *r, char *name,
r                1616 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				      kn_info->mode, r);
r                1634 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                1649 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r) {
r                1650 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		fflags =  r->fflags | RF_CTRL_INFO;
r                1651 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = rdtgroup_mkdir_info_resdir(r, r->name, fflags);
r                1656 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_mon_enabled_rdt_resource(r) {
r                1657 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		fflags =  r->fflags | RF_MON_INFO;
r                1658 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		sprintf(name, "%s_MON", r->name);
r                1659 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = rdtgroup_mkdir_info_resdir(r, name, fflags);
r                1773 arch/x86/kernel/cpu/resctrl/rdtgroup.c void rdt_domain_reconfigure_cdp(struct rdt_resource *r)
r                1775 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (!r->alloc_capable)
r                1778 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (r == &rdt_resources_all[RDT_RESOURCE_L2DATA])
r                1779 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		l2_qos_cfg_update(&r->alloc_enabled);
r                1781 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (r == &rdt_resources_all[RDT_RESOURCE_L3DATA])
r                1782 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		l3_qos_cfg_update(&r->alloc_enabled);
r                1793 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = &rdt_resources_all[RDT_RESOURCE_MBA];
r                1797 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	    mba_sc == is_mba_sc(r))
r                1800 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	r->membw.mba_sc = mba_sc;
r                1801 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(d, &r->domains, list)
r                1802 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		setup_default_ctrlval(r, d->ctrl_val, d->mbps_val);
r                1841 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r = &rdt_resources_all[level];
r                1843 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	r->alloc_enabled = r->alloc_capable;
r                1961 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                2017 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		r = &rdt_resources_all[RDT_RESOURCE_L3];
r                2018 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		list_for_each_entry(dom, &r->domains, list)
r                2124 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int reset_all_ctrls(struct rdt_resource *r)
r                2134 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	msr_param.res = r;
r                2136 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	msr_param.high = r->num_closid;
r                2143 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(d, &r->domains, list) {
r                2146 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		for (i = 0; i < r->num_closid; i++)
r                2147 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			d->ctrl_val[i] = r->default_ctrl;
r                2162 arch/x86/kernel/cpu/resctrl/rdtgroup.c static bool is_closid_match(struct task_struct *t, struct rdtgroup *r)
r                2165 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		(r->type == RDTCTRL_GROUP) && (t->closid == r->closid));
r                2168 arch/x86/kernel/cpu/resctrl/rdtgroup.c static bool is_rmid_match(struct task_struct *t, struct rdtgroup *r)
r                2171 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		(r->type == RDTMON_GROUP) && (t->rmid == r->mon.rmid));
r                2279 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                2287 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r)
r                2288 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		reset_all_ctrls(r);
r                2333 arch/x86/kernel/cpu/resctrl/rdtgroup.c void rmdir_mondata_subdir_allrdtgrp(struct rdt_resource *r, unsigned int dom_id)
r                2338 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (!r->mon_enabled)
r                2342 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		sprintf(name, "mon_%s_%02d", r->name, dom_id);
r                2352 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				struct rdt_resource *r, struct rdtgroup *prgrp)
r                2361 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	sprintf(name, "mon_%s_%02d", r->name, d->id);
r                2376 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (WARN_ON(list_empty(&r->evt_list))) {
r                2381 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	priv.u.rid = r->rid;
r                2383 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(mevt, &r->evt_list, list) {
r                2404 arch/x86/kernel/cpu/resctrl/rdtgroup.c void mkdir_mondata_subdir_allrdtgrp(struct rdt_resource *r,
r                2411 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (!r->mon_enabled)
r                2416 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		mkdir_mondata_subdir(parent_kn, d, r, prgrp);
r                2421 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			mkdir_mondata_subdir(parent_kn, d, r, crgrp);
r                2427 arch/x86/kernel/cpu/resctrl/rdtgroup.c 				       struct rdt_resource *r,
r                2433 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(dom, &r->domains, list) {
r                2434 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = mkdir_mondata_subdir(parent_kn, dom, r, prgrp);
r                2463 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                2481 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_mon_enabled_rdt_resource(r) {
r                2482 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = mkdir_mondata_subdir_alldom(kn, r, prgrp);
r                2509 arch/x86/kernel/cpu/resctrl/rdtgroup.c static u32 cbm_ensure_valid(u32 _val, struct rdt_resource *r)
r                2511 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	unsigned int cbm_len = r->cache.cbm_len;
r                2532 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int __init_one_rdt_domain(struct rdt_domain *d, struct rdt_resource *r,
r                2543 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	rdt_cdp_peer_get(r, d, &r_cdp, &d_cdp);
r                2545 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	d->new_ctrl = r->cache.shareable_bits;
r                2546 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	used_b = r->cache.shareable_bits;
r                2574 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	unused_b = used_b ^ (BIT_MASK(r->cache.cbm_len) - 1);
r                2575 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	unused_b &= BIT_MASK(r->cache.cbm_len) - 1;
r                2581 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	d->new_ctrl = cbm_ensure_valid(d->new_ctrl, r);
r                2587 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (bitmap_weight(&tmp_cbm, r->cache.cbm_len) < r->cache.min_cbm_bits) {
r                2588 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		rdt_last_cmd_printf("No space on %s:%d\n", r->name, d->id);
r                2606 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdtgroup_init_cat(struct rdt_resource *r, u32 closid)
r                2611 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(d, &r->domains, list) {
r                2612 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = __init_one_rdt_domain(d, r, closid);
r                2621 arch/x86/kernel/cpu/resctrl/rdtgroup.c static void rdtgroup_init_mba(struct rdt_resource *r)
r                2625 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	list_for_each_entry(d, &r->domains, list) {
r                2626 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		d->new_ctrl = is_mba_sc(r) ? MBA_MAX_MBPS : r->default_ctrl;
r                2634 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	struct rdt_resource *r;
r                2637 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	for_each_alloc_enabled_rdt_resource(r) {
r                2638 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		if (r->rid == RDT_RESOURCE_MBA) {
r                2639 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			rdtgroup_init_mba(r);
r                2641 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			ret = rdtgroup_init_cat(r, rdtgrp->closid);
r                2646 arch/x86/kernel/cpu/resctrl/rdtgroup.c 		ret = update_domains(r, rdtgrp->closid);
r                2662 arch/x86/kernel/cpu/resctrl/rdtgroup.c 			     enum rdt_group_type rtype, struct rdtgroup **r)
r                2690 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	*r = rdtgrp;
r                 120 arch/x86/kernel/devicetree.c 	struct resource r;
r                 126 arch/x86/kernel/devicetree.c 	ret = of_address_to_resource(dn, 0, &r);
r                 131 arch/x86/kernel/devicetree.c 	hpet_address = r.start;
r                 157 arch/x86/kernel/devicetree.c 	struct resource r;
r                 163 arch/x86/kernel/devicetree.c 		ret = of_address_to_resource(dn, 0, &r);
r                 166 arch/x86/kernel/devicetree.c 		lapic_addr = r.start;
r                 246 arch/x86/kernel/devicetree.c 	struct resource r;
r                 254 arch/x86/kernel/devicetree.c 	ret = of_address_to_resource(dn, 0, &r);
r                 259 arch/x86/kernel/devicetree.c 	mp_register_ioapic(++ioapic_id, r.start, gsi_top, &cfg);
r                 229 arch/x86/kernel/kvmclock.c 	int r;
r                 250 arch/x86/kernel/kvmclock.c 		r = set_memory_decrypted((unsigned long) hvclock_mem,
r                 252 arch/x86/kernel/kvmclock.c 		if (r) {
r                1531 arch/x86/kernel/pci-calgary_64.c 		struct resource *r = &dev->resource[PCI_BRIDGE_RESOURCES + i];
r                1534 arch/x86/kernel/pci-calgary_64.c 		if (!(r->flags & IORESOURCE_MEM))
r                1538 arch/x86/kernel/pci-calgary_64.c 		if (!r->start)
r                1542 arch/x86/kernel/pci-calgary_64.c 		npages = resource_size(r) >> PAGE_SHIFT;
r                1545 arch/x86/kernel/pci-calgary_64.c 		iommu_range_reserve(tbl, r->start, npages);
r                  18 arch/x86/kernel/perf_regs.c #define PT_REGS_OFFSET(id, r) [id] = offsetof(struct pt_regs, r)
r                  63 arch/x86/kernel/ptrace.c #define REG_OFFSET_NAME(r) {.name = #r, .offset = offsetof(struct pt_regs, r)}
r                 257 arch/x86/kernel/smp.c __visible void __irq_entry smp_call_function_single_interrupt(struct pt_regs *r)
r                 202 arch/x86/kvm/cpuid.c 	int r, i;
r                 205 arch/x86/kvm/cpuid.c 	r = -E2BIG;
r                 208 arch/x86/kvm/cpuid.c 	r = -ENOMEM;
r                 215 arch/x86/kvm/cpuid.c 		r = -EFAULT;
r                 236 arch/x86/kvm/cpuid.c 	r = kvm_update_cpuid(vcpu);
r                 240 arch/x86/kvm/cpuid.c 	return r;
r                 247 arch/x86/kvm/cpuid.c 	int r;
r                 249 arch/x86/kvm/cpuid.c 	r = -E2BIG;
r                 252 arch/x86/kvm/cpuid.c 	r = -EFAULT;
r                 259 arch/x86/kvm/cpuid.c 	r = kvm_update_cpuid(vcpu);
r                 261 arch/x86/kvm/cpuid.c 	return r;
r                 268 arch/x86/kvm/cpuid.c 	int r;
r                 270 arch/x86/kvm/cpuid.c 	r = -E2BIG;
r                 273 arch/x86/kvm/cpuid.c 	r = -EFAULT;
r                 281 arch/x86/kvm/cpuid.c 	return r;
r                 435 arch/x86/kvm/cpuid.c 	int r;
r                 508 arch/x86/kvm/cpuid.c 	r = -E2BIG;
r                 806 arch/x86/kvm/cpuid.c 	r = 0;
r                 811 arch/x86/kvm/cpuid.c 	return r;
r                 870 arch/x86/kvm/cpuid.c 	int limit, nent = 0, r = -E2BIG, i;
r                 887 arch/x86/kvm/cpuid.c 	r = -ENOMEM;
r                 893 arch/x86/kvm/cpuid.c 	r = 0;
r                 900 arch/x86/kvm/cpuid.c 		r = do_cpuid_func(&cpuid_entries[nent], ent->func,
r                 903 arch/x86/kvm/cpuid.c 		if (r)
r                 907 arch/x86/kvm/cpuid.c 		for (func = ent->func + 1; func <= limit && nent < cpuid->nent && r == 0; ++func)
r                 908 arch/x86/kvm/cpuid.c 			r = do_cpuid_func(&cpuid_entries[nent], func,
r                 911 arch/x86/kvm/cpuid.c 		if (r)
r                 915 arch/x86/kvm/cpuid.c 	r = -EFAULT;
r                 920 arch/x86/kvm/cpuid.c 	r = 0;
r                 925 arch/x86/kvm/cpuid.c 	return r;
r                2534 arch/x86/kvm/emulate.c 		int r = rsm_load_seg_32(ctxt, smstate, i);
r                2535 arch/x86/kvm/emulate.c 		if (r != X86EMUL_CONTINUE)
r                2536 arch/x86/kvm/emulate.c 			return r;
r                2555 arch/x86/kvm/emulate.c 	int i, r;
r                2597 arch/x86/kvm/emulate.c 	r = rsm_enter_protected_mode(ctxt, cr0, cr3, cr4);
r                2598 arch/x86/kvm/emulate.c 	if (r != X86EMUL_CONTINUE)
r                2599 arch/x86/kvm/emulate.c 		return r;
r                2602 arch/x86/kvm/emulate.c 		r = rsm_load_seg_64(ctxt, smstate, i);
r                2603 arch/x86/kvm/emulate.c 		if (r != X86EMUL_CONTINUE)
r                2604 arch/x86/kvm/emulate.c 			return r;
r                2976 arch/x86/kvm/emulate.c 	int r;
r                2998 arch/x86/kvm/emulate.c 	r = ops->read_std(ctxt, base + 102, &io_bitmap_ptr, 2, NULL, true);
r                2999 arch/x86/kvm/emulate.c 	if (r != X86EMUL_CONTINUE)
r                3003 arch/x86/kvm/emulate.c 	r = ops->read_std(ctxt, base + io_bitmap_ptr + port/8, &perm, 2, NULL, true);
r                3004 arch/x86/kvm/emulate.c 	if (r != X86EMUL_CONTINUE)
r                5810 arch/x86/kvm/emulate.c 		struct read_cache *r = &ctxt->io_read;
r                5822 arch/x86/kvm/emulate.c 			if ((r->end != 0 || reg_read(ctxt, VCPU_REGS_RCX) & 0x3ff) &&
r                5823 arch/x86/kvm/emulate.c 			    (r->end == 0 || r->end != r->pos)) {
r                 571 arch/x86/kvm/hyperv.c 	int r;
r                 584 arch/x86/kvm/hyperv.c 	r = kvm_vcpu_read_guest_page(vcpu, msg_page_gfn, &hv_hdr.message_type,
r                 588 arch/x86/kvm/hyperv.c 	if (r < 0)
r                 589 arch/x86/kvm/hyperv.c 		return r;
r                 596 arch/x86/kvm/hyperv.c 		r = kvm_vcpu_write_guest_page(vcpu, msg_page_gfn,
r                 602 arch/x86/kvm/hyperv.c 		if (r < 0)
r                 603 arch/x86/kvm/hyperv.c 			return r;
r                 607 arch/x86/kvm/hyperv.c 	r = kvm_vcpu_write_guest_page(vcpu, msg_page_gfn, src_msg, msg_off,
r                 610 arch/x86/kvm/hyperv.c 	if (r < 0)
r                 611 arch/x86/kvm/hyperv.c 		return r;
r                 613 arch/x86/kvm/hyperv.c 	r = synic_set_irq(synic, sint);
r                 614 arch/x86/kvm/hyperv.c 	if (r < 0)
r                 615 arch/x86/kvm/hyperv.c 		return r;
r                 616 arch/x86/kvm/hyperv.c 	if (r == 0)
r                 656 arch/x86/kvm/hyperv.c 	int r, direct = stimer->config.direct_mode;
r                 660 arch/x86/kvm/hyperv.c 		r = stimer_send_msg(stimer);
r                 662 arch/x86/kvm/hyperv.c 		r = stimer_notify_direct(stimer);
r                 664 arch/x86/kvm/hyperv.c 				       stimer->index, direct, r);
r                 665 arch/x86/kvm/hyperv.c 	if (!r) {
r                 788 arch/x86/kvm/hyperv.c 	bool r = false;
r                 801 arch/x86/kvm/hyperv.c 		r = true;
r                 805 arch/x86/kvm/hyperv.c 	return r;
r                1301 arch/x86/kvm/hyperv.c 		int r;
r                1304 arch/x86/kvm/hyperv.c 		r = kvm_hv_set_msr_pw(vcpu, msr, data, host);
r                1306 arch/x86/kvm/hyperv.c 		return r;
r                1314 arch/x86/kvm/hyperv.c 		int r;
r                1317 arch/x86/kvm/hyperv.c 		r = kvm_hv_get_msr_pw(vcpu, msr, pdata);
r                1319 arch/x86/kvm/hyperv.c 		return r;
r                  50 arch/x86/kvm/irq_comm.c 	int i, r = -1;
r                  61 arch/x86/kvm/irq_comm.c 	if (kvm_irq_delivery_to_apic_fast(kvm, src, irq, &r, dest_map))
r                  62 arch/x86/kvm/irq_comm.c 		return r;
r                  75 arch/x86/kvm/irq_comm.c 			if (r < 0)
r                  76 arch/x86/kvm/irq_comm.c 				r = 0;
r                  77 arch/x86/kvm/irq_comm.c 			r += kvm_apic_set_irq(vcpu, irq, dest_map);
r                  99 arch/x86/kvm/irq_comm.c 		r = kvm_apic_set_irq(lowest, irq, dest_map);
r                 101 arch/x86/kvm/irq_comm.c 	return r;
r                 165 arch/x86/kvm/irq_comm.c 	int r;
r                 178 arch/x86/kvm/irq_comm.c 		if (kvm_irq_delivery_to_apic_fast(kvm, NULL, &irq, &r, NULL))
r                 179 arch/x86/kvm/irq_comm.c 			return r;
r                 327 arch/x86/kvm/irq_comm.c 	int i, r = 0;
r                 341 arch/x86/kvm/irq_comm.c 		if (++r == 2)
r                 347 arch/x86/kvm/irq_comm.c 	return r == 1;
r                 946 arch/x86/kvm/lapic.c 		struct kvm_lapic_irq *irq, int *r, struct dest_map *dest_map)
r                 954 arch/x86/kvm/lapic.c 	*r = -1;
r                 957 arch/x86/kvm/lapic.c 		*r = kvm_apic_set_irq(src->vcpu, irq, dest_map);
r                 966 arch/x86/kvm/lapic.c 		*r = 0;
r                 970 arch/x86/kvm/lapic.c 			*r += kvm_apic_set_irq(dst[i]->vcpu, irq, dest_map);
r                2343 arch/x86/kvm/lapic.c 	int r = 0;
r                2346 arch/x86/kvm/lapic.c 		r = 1;
r                2349 arch/x86/kvm/lapic.c 		r = 1;
r                2350 arch/x86/kvm/lapic.c 	return r;
r                2435 arch/x86/kvm/lapic.c 	int r;
r                2442 arch/x86/kvm/lapic.c 	r = kvm_apic_state_fixup(vcpu, s, true);
r                2443 arch/x86/kvm/lapic.c 	if (r)
r                2444 arch/x86/kvm/lapic.c 		return r;
r                  95 arch/x86/kvm/lapic.h 		struct kvm_lapic_irq *irq, int *r, struct dest_map *dest_map);
r                1112 arch/x86/kvm/mmu.c 	int r;
r                1114 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_cache(&vcpu->arch.mmu_pte_list_desc_cache,
r                1116 arch/x86/kvm/mmu.c 	if (r)
r                1118 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_cache_page(&vcpu->arch.mmu_page_cache, 8);
r                1119 arch/x86/kvm/mmu.c 	if (r)
r                1121 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_header_cache,
r                1124 arch/x86/kvm/mmu.c 	return r;
r                2936 arch/x86/kvm/mmu.c 	int r;
r                2939 arch/x86/kvm/mmu.c 	r = 0;
r                2944 arch/x86/kvm/mmu.c 		r = 1;
r                2950 arch/x86/kvm/mmu.c 	return r;
r                3649 arch/x86/kvm/mmu.c 	int r;
r                3681 arch/x86/kvm/mmu.c 	if (handle_abnormal_pfn(vcpu, gpa, gfn, pfn, ACC_ALL, &r))
r                3682 arch/x86/kvm/mmu.c 		return r;
r                3684 arch/x86/kvm/mmu.c 	r = RET_PF_RETRY;
r                3692 arch/x86/kvm/mmu.c 	r = __direct_map(vcpu, gpa, write, map_writable, level, pfn,
r                3697 arch/x86/kvm/mmu.c 	return r;
r                4162 arch/x86/kvm/mmu.c 	int r;
r                4170 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_caches(vcpu);
r                4171 arch/x86/kvm/mmu.c 	if (r)
r                4172 arch/x86/kvm/mmu.c 		return r;
r                4233 arch/x86/kvm/mmu.c 	int r = 1;
r                4248 arch/x86/kvm/mmu.c 		r = kvm_mmu_page_fault(vcpu, fault_address, error_code, insn,
r                4264 arch/x86/kvm/mmu.c 	return r;
r                4282 arch/x86/kvm/mmu.c 	int r;
r                4297 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_caches(vcpu);
r                4298 arch/x86/kvm/mmu.c 	if (r)
r                4299 arch/x86/kvm/mmu.c 		return r;
r                4321 arch/x86/kvm/mmu.c 	if (handle_abnormal_pfn(vcpu, 0, gfn, pfn, ACC_ALL, &r))
r                4322 arch/x86/kvm/mmu.c 		return r;
r                4324 arch/x86/kvm/mmu.c 	r = RET_PF_RETRY;
r                4332 arch/x86/kvm/mmu.c 	r = __direct_map(vcpu, gpa, write, map_writable, level, pfn,
r                4337 arch/x86/kvm/mmu.c 	return r;
r                5278 arch/x86/kvm/mmu.c 	int r;
r                5280 arch/x86/kvm/mmu.c 	r = mmu_topup_memory_caches(vcpu);
r                5281 arch/x86/kvm/mmu.c 	if (r)
r                5283 arch/x86/kvm/mmu.c 	r = mmu_alloc_roots(vcpu);
r                5285 arch/x86/kvm/mmu.c 	if (r)
r                5290 arch/x86/kvm/mmu.c 	return r;
r                5333 arch/x86/kvm/mmu.c 	int r;
r                5347 arch/x86/kvm/mmu.c 		r = kvm_vcpu_read_guest_atomic(vcpu, *gpa, &gentry, *bytes);
r                5348 arch/x86/kvm/mmu.c 		if (r)
r                5502 arch/x86/kvm/mmu.c 	int r;
r                5509 arch/x86/kvm/mmu.c 	r = kvm_mmu_unprotect_page(vcpu->kvm, gpa >> PAGE_SHIFT);
r                5511 arch/x86/kvm/mmu.c 	return r;
r                5538 arch/x86/kvm/mmu.c 	int r, emulation_type = 0;
r                5547 arch/x86/kvm/mmu.c 	r = RET_PF_INVALID;
r                5549 arch/x86/kvm/mmu.c 		r = handle_mmio_page_fault(vcpu, cr2_or_gpa, direct);
r                5550 arch/x86/kvm/mmu.c 		if (r == RET_PF_EMULATE)
r                5554 arch/x86/kvm/mmu.c 	if (r == RET_PF_INVALID) {
r                5555 arch/x86/kvm/mmu.c 		r = vcpu->arch.mmu->page_fault(vcpu, cr2_or_gpa,
r                5558 arch/x86/kvm/mmu.c 		WARN_ON(r == RET_PF_INVALID);
r                5561 arch/x86/kvm/mmu.c 	if (r == RET_PF_RETRY)
r                5563 arch/x86/kvm/mmu.c 	if (r < 0)
r                5564 arch/x86/kvm/mmu.c 		return r;
r                 340 arch/x86/kvm/mmutrace.h 		__field(bool, r)
r                 350 arch/x86/kvm/mmutrace.h 		__entry->r = shadow_present_mask || (__entry->spte & PT_PRESENT_MASK);
r                 357 arch/x86/kvm/mmutrace.h 		  __entry->r ? "r" : "-",
r                 561 arch/x86/kvm/paging_tmpl.h 	int r, index;
r                 568 arch/x86/kvm/paging_tmpl.h 		r = kvm_vcpu_read_guest_atomic(vcpu, base_gpa,
r                 572 arch/x86/kvm/paging_tmpl.h 		r = kvm_vcpu_read_guest_atomic(vcpu, pte_gpa,
r                 575 arch/x86/kvm/paging_tmpl.h 	return r || curr_pte != gw->ptes[level - 1];
r                 774 arch/x86/kvm/paging_tmpl.h 	int r;
r                 785 arch/x86/kvm/paging_tmpl.h 	r = mmu_topup_memory_caches(vcpu);
r                 786 arch/x86/kvm/paging_tmpl.h 	if (r)
r                 787 arch/x86/kvm/paging_tmpl.h 		return r;
r                 798 arch/x86/kvm/paging_tmpl.h 	r = FNAME(walk_addr)(&walker, vcpu, addr, error_code);
r                 803 arch/x86/kvm/paging_tmpl.h 	if (!r) {
r                 837 arch/x86/kvm/paging_tmpl.h 	if (handle_abnormal_pfn(vcpu, addr, walker.gfn, pfn, walker.pte_access, &r))
r                 838 arch/x86/kvm/paging_tmpl.h 		return r;
r                 860 arch/x86/kvm/paging_tmpl.h 	r = RET_PF_RETRY;
r                 870 arch/x86/kvm/paging_tmpl.h 	r = FNAME(fetch)(vcpu, addr, &walker, write_fault,
r                 877 arch/x86/kvm/paging_tmpl.h 	return r;
r                 954 arch/x86/kvm/paging_tmpl.h 	int r;
r                 956 arch/x86/kvm/paging_tmpl.h 	r = FNAME(walk_addr)(&walker, vcpu, addr, access);
r                 958 arch/x86/kvm/paging_tmpl.h 	if (r) {
r                 975 arch/x86/kvm/paging_tmpl.h 	int r;
r                 982 arch/x86/kvm/paging_tmpl.h 	r = FNAME(walk_addr_nested)(&walker, vcpu, vaddr, access);
r                 984 arch/x86/kvm/paging_tmpl.h 	if (r) {
r                 391 arch/x86/kvm/pmu.c 	int r;
r                 411 arch/x86/kvm/pmu.c 	r = -EFAULT;
r                 424 arch/x86/kvm/pmu.c 	r = 0;
r                 427 arch/x86/kvm/pmu.c 	return r;
r                1346 arch/x86/kvm/svm.c 	int r;
r                1387 arch/x86/kvm/svm.c 			r = sev_hardware_setup();
r                1388 arch/x86/kvm/svm.c 			if (r)
r                1398 arch/x86/kvm/svm.c 		r = svm_cpu_init(cpu);
r                1399 arch/x86/kvm/svm.c 		if (r)
r                1456 arch/x86/kvm/svm.c 	return r;
r                2047 arch/x86/kvm/svm.c avic_update_iommu_vcpu_affinity(struct kvm_vcpu *vcpu, int cpu, bool r)
r                2067 arch/x86/kvm/svm.c 		ret = amd_iommu_update_ga(cpu, r, ir->data);
r                4140 arch/x86/kvm/svm.c 	int r;
r                4144 arch/x86/kvm/svm.c 	r = cr_interception(svm);
r                4146 arch/x86/kvm/svm.c 		return r;
r                4148 arch/x86/kvm/svm.c 		return r;
r                7022 arch/x86/kvm/svm.c 	int r;
r                7034 arch/x86/kvm/svm.c 		r = sev_guest_init(kvm, &sev_cmd);
r                7037 arch/x86/kvm/svm.c 		r = sev_launch_start(kvm, &sev_cmd);
r                7040 arch/x86/kvm/svm.c 		r = sev_launch_update_data(kvm, &sev_cmd);
r                7043 arch/x86/kvm/svm.c 		r = sev_launch_measure(kvm, &sev_cmd);
r                7046 arch/x86/kvm/svm.c 		r = sev_launch_finish(kvm, &sev_cmd);
r                7049 arch/x86/kvm/svm.c 		r = sev_guest_status(kvm, &sev_cmd);
r                7052 arch/x86/kvm/svm.c 		r = sev_dbg_crypt(kvm, &sev_cmd, true);
r                7055 arch/x86/kvm/svm.c 		r = sev_dbg_crypt(kvm, &sev_cmd, false);
r                7058 arch/x86/kvm/svm.c 		r = sev_launch_secret(kvm, &sev_cmd);
r                7061 arch/x86/kvm/svm.c 		r = -EINVAL;
r                7066 arch/x86/kvm/svm.c 		r = -EFAULT;
r                7070 arch/x86/kvm/svm.c 	return r;
r                2737 arch/x86/kvm/vmx/nested.c 	int r = 0;
r                2754 arch/x86/kvm/vmx/nested.c 		r = -EINVAL;
r                2757 arch/x86/kvm/vmx/nested.c 	return r;
r                4378 arch/x86/kvm/vmx/nested.c 	int r;
r                4380 arch/x86/kvm/vmx/nested.c 	r = alloc_loaded_vmcs(&vmx->nested.vmcs02);
r                4381 arch/x86/kvm/vmx/nested.c 	if (r < 0)
r                3430 arch/x86/kvm/vmx/vmx.c 	int idx, r;
r                3434 arch/x86/kvm/vmx/vmx.c 	r = kvm_clear_guest_page(kvm, fn, 0, PAGE_SIZE);
r                3435 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3438 arch/x86/kvm/vmx/vmx.c 	r = kvm_write_guest_page(kvm, fn++, &data,
r                3440 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3442 arch/x86/kvm/vmx/vmx.c 	r = kvm_clear_guest_page(kvm, fn++, 0, PAGE_SIZE);
r                3443 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3445 arch/x86/kvm/vmx/vmx.c 	r = kvm_clear_guest_page(kvm, fn, 0, PAGE_SIZE);
r                3446 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3449 arch/x86/kvm/vmx/vmx.c 	r = kvm_write_guest_page(kvm, fn, &data,
r                3454 arch/x86/kvm/vmx/vmx.c 	return r;
r                3460 arch/x86/kvm/vmx/vmx.c 	int i, idx, r = 0;
r                3474 arch/x86/kvm/vmx/vmx.c 	r = __x86_set_memory_region(kvm, IDENTITY_PAGETABLE_PRIVATE_MEMSLOT,
r                3476 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3480 arch/x86/kvm/vmx/vmx.c 	r = kvm_clear_guest_page(kvm, identity_map_pfn, 0, PAGE_SIZE);
r                3481 arch/x86/kvm/vmx/vmx.c 	if (r < 0)
r                3487 arch/x86/kvm/vmx/vmx.c 		r = kvm_write_guest_page(kvm, identity_map_pfn,
r                3489 arch/x86/kvm/vmx/vmx.c 		if (r < 0)
r                3499 arch/x86/kvm/vmx/vmx.c 	return r;
r                3520 arch/x86/kvm/vmx/vmx.c 	int r = 0;
r                3525 arch/x86/kvm/vmx/vmx.c 	r = __x86_set_memory_region(kvm, APIC_ACCESS_PAGE_PRIVATE_MEMSLOT,
r                3527 arch/x86/kvm/vmx/vmx.c 	if (r)
r                3532 arch/x86/kvm/vmx/vmx.c 		r = -EFAULT;
r                3544 arch/x86/kvm/vmx/vmx.c 	return r;
r                3829 arch/x86/kvm/vmx/vmx.c 	int r;
r                3831 arch/x86/kvm/vmx/vmx.c 	r = vmx_deliver_nested_posted_interrupt(vcpu, vector);
r                3832 arch/x86/kvm/vmx/vmx.c 	if (!r)
r                7614 arch/x86/kvm/vmx/vmx.c 	int r, i;
r                7766 arch/x86/kvm/vmx/vmx.c 		r = nested_vmx_hardware_setup(kvm_vmx_exit_handlers);
r                7767 arch/x86/kvm/vmx/vmx.c 		if (r)
r                7768 arch/x86/kvm/vmx/vmx.c 			return r;
r                7771 arch/x86/kvm/vmx/vmx.c 	r = alloc_kvm_area();
r                7772 arch/x86/kvm/vmx/vmx.c 	if (r)
r                7774 arch/x86/kvm/vmx/vmx.c 	return r;
r                7987 arch/x86/kvm/vmx/vmx.c 	int r, cpu;
r                8023 arch/x86/kvm/vmx/vmx.c 	r = kvm_init(&vmx_x86_ops, sizeof(struct vcpu_vmx),
r                8025 arch/x86/kvm/vmx/vmx.c 	if (r)
r                8026 arch/x86/kvm/vmx/vmx.c 		return r;
r                8035 arch/x86/kvm/vmx/vmx.c 	r = vmx_setup_l1d_flush(vmentry_l1d_flush_param);
r                8036 arch/x86/kvm/vmx/vmx.c 	if (r) {
r                8038 arch/x86/kvm/vmx/vmx.c 		return r;
r                  23 arch/x86/kvm/vmx/vmx.h #define X2APIC_MSR(r) (APIC_BASE_MSR + ((r) >> 4))
r                 739 arch/x86/kvm/x86.c 	int r;
r                 750 arch/x86/kvm/x86.c 	r = kvm_read_nested_guest_page(vcpu, gfn, pdpte, offset, sizeof(pdpte),
r                 752 arch/x86/kvm/x86.c 	if (r < 0)
r                1419 arch/x86/kvm/x86.c 	int r;
r                1422 arch/x86/kvm/x86.c 	r = kvm_get_msr_feature(&msr);
r                1423 arch/x86/kvm/x86.c 	if (r)
r                1424 arch/x86/kvm/x86.c 		return r;
r                1671 arch/x86/kvm/x86.c 	int r;
r                1678 arch/x86/kvm/x86.c 	r = kvm_read_guest(kvm, wall_clock, &version, sizeof(version));
r                1679 arch/x86/kvm/x86.c 	if (r)
r                2589 arch/x86/kvm/x86.c 	int r;
r                2591 arch/x86/kvm/x86.c 	r = -E2BIG;
r                2594 arch/x86/kvm/x86.c 	r = -ENOMEM;
r                2597 arch/x86/kvm/x86.c 		r = PTR_ERR(page);
r                2602 arch/x86/kvm/x86.c 	r = 0;
r                2606 arch/x86/kvm/x86.c 	return r;
r                3225 arch/x86/kvm/x86.c 	int r, n;
r                3228 arch/x86/kvm/x86.c 	r = -EFAULT;
r                3232 arch/x86/kvm/x86.c 	r = -E2BIG;
r                3239 arch/x86/kvm/x86.c 		r = PTR_ERR(entries);
r                3243 arch/x86/kvm/x86.c 	r = n = __msr_io(vcpu, &msrs, entries, do_msr);
r                3244 arch/x86/kvm/x86.c 	if (r < 0)
r                3247 arch/x86/kvm/x86.c 	r = -EFAULT;
r                3251 arch/x86/kvm/x86.c 	r = n;
r                3256 arch/x86/kvm/x86.c 	return r;
r                3268 arch/x86/kvm/x86.c 	int r = 0;
r                3321 arch/x86/kvm/x86.c 		r = 1;
r                3324 arch/x86/kvm/x86.c 		r = KVM_SYNC_X86_VALID_FIELDS;
r                3327 arch/x86/kvm/x86.c 		r = KVM_CLOCK_TSC_STABLE;
r                3330 arch/x86/kvm/x86.c 		r |=  KVM_X86_DISABLE_EXITS_HLT | KVM_X86_DISABLE_EXITS_PAUSE |
r                3333 arch/x86/kvm/x86.c 			r |= KVM_X86_DISABLE_EXITS_MWAIT;
r                3344 arch/x86/kvm/x86.c 		r = kvm_x86_ops->has_emulated_msr(MSR_IA32_SMBASE);
r                3347 arch/x86/kvm/x86.c 		r = !kvm_x86_ops->cpu_has_accelerated_tpr();
r                3350 arch/x86/kvm/x86.c 		r = KVM_SOFT_MAX_VCPUS;
r                3353 arch/x86/kvm/x86.c 		r = KVM_MAX_VCPUS;
r                3356 arch/x86/kvm/x86.c 		r = KVM_MAX_VCPU_ID;
r                3359 arch/x86/kvm/x86.c 		r = 0;
r                3362 arch/x86/kvm/x86.c 		r = KVM_MAX_MCE_BANKS;
r                3365 arch/x86/kvm/x86.c 		r = boot_cpu_has(X86_FEATURE_XSAVE);
r                3368 arch/x86/kvm/x86.c 		r = kvm_has_tsc_control;
r                3371 arch/x86/kvm/x86.c 		r = KVM_X2APIC_API_VALID_FLAGS;
r                3374 arch/x86/kvm/x86.c 		r = kvm_x86_ops->get_nested_state ?
r                3378 arch/x86/kvm/x86.c 		r = kvm_x86_ops->enable_direct_tlbflush != NULL;
r                3381 arch/x86/kvm/x86.c 		r = kvm_x86_ops->nested_enable_evmcs != NULL;
r                3386 arch/x86/kvm/x86.c 	return r;
r                3394 arch/x86/kvm/x86.c 	long r;
r                3402 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3409 arch/x86/kvm/x86.c 		r = -E2BIG;
r                3412 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3420 arch/x86/kvm/x86.c 		r = 0;
r                3428 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3432 arch/x86/kvm/x86.c 		r = kvm_dev_ioctl_get_cpuid(&cpuid, cpuid_arg->entries,
r                3434 arch/x86/kvm/x86.c 		if (r)
r                3437 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3440 arch/x86/kvm/x86.c 		r = 0;
r                3444 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3448 arch/x86/kvm/x86.c 		r = 0;
r                3455 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3462 arch/x86/kvm/x86.c 		r = -E2BIG;
r                3465 arch/x86/kvm/x86.c 		r = -EFAULT;
r                3469 arch/x86/kvm/x86.c 		r = 0;
r                3473 arch/x86/kvm/x86.c 		r = msr_io(NULL, argp, do_get_msr_feature, 1);
r                3477 arch/x86/kvm/x86.c 		r = -EINVAL;
r                3480 arch/x86/kvm/x86.c 	return r;
r                3612 arch/x86/kvm/x86.c 	int r;
r                3614 arch/x86/kvm/x86.c 	r = kvm_apic_set_state(vcpu, s);
r                3615 arch/x86/kvm/x86.c 	if (r)
r                3616 arch/x86/kvm/x86.c 		return r;
r                3695 arch/x86/kvm/x86.c 	int r;
r                3698 arch/x86/kvm/x86.c 	r = -EINVAL;
r                3703 arch/x86/kvm/x86.c 	r = 0;
r                3714 arch/x86/kvm/x86.c 	return r;
r                4095 arch/x86/kvm/x86.c 	int i, r = 0;
r                4106 arch/x86/kvm/x86.c 			r = __kvm_set_xcr(vcpu, XCR_XFEATURE_ENABLED_MASK,
r                4110 arch/x86/kvm/x86.c 	if (r)
r                4111 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4112 arch/x86/kvm/x86.c 	return r;
r                4133 arch/x86/kvm/x86.c 	int r;
r                4154 arch/x86/kvm/x86.c 		r = kvm_x86_ops->nested_enable_evmcs(vcpu, &vmcs_version);
r                4155 arch/x86/kvm/x86.c 		if (!r) {
r                4159 arch/x86/kvm/x86.c 				r = -EFAULT;
r                4161 arch/x86/kvm/x86.c 		return r;
r                4178 arch/x86/kvm/x86.c 	int r;
r                4191 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4197 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                4200 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_get_lapic(vcpu, u.lapic);
r                4201 arch/x86/kvm/x86.c 		if (r)
r                4203 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4206 arch/x86/kvm/x86.c 		r = 0;
r                4210 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4215 arch/x86/kvm/x86.c 			r = PTR_ERR(u.lapic);
r                4219 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_set_lapic(vcpu, u.lapic);
r                4225 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4228 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_interrupt(vcpu, &irq);
r                4232 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_nmi(vcpu);
r                4236 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_smi(vcpu);
r                4243 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4246 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_set_cpuid(vcpu, &cpuid, cpuid_arg->entries);
r                4253 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4256 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_set_cpuid2(vcpu, &cpuid,
r                4264 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4267 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_get_cpuid2(vcpu, &cpuid,
r                4269 arch/x86/kvm/x86.c 		if (r)
r                4271 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4274 arch/x86/kvm/x86.c 		r = 0;
r                4279 arch/x86/kvm/x86.c 		r = msr_io(vcpu, argp, do_get_msr, 1);
r                4285 arch/x86/kvm/x86.c 		r = msr_io(vcpu, argp, do_set_msr, 0);
r                4292 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4295 arch/x86/kvm/x86.c 		r = vcpu_ioctl_tpr_access_reporting(vcpu, &tac);
r                4296 arch/x86/kvm/x86.c 		if (r)
r                4298 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4301 arch/x86/kvm/x86.c 		r = 0;
r                4308 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4311 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4315 arch/x86/kvm/x86.c 		r = kvm_lapic_set_vapic_addr(vcpu, va.vapic_addr);
r                4322 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4325 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_setup_mce(vcpu, mcg_cap);
r                4331 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4334 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_set_mce(vcpu, &mce);
r                4342 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4345 arch/x86/kvm/x86.c 		r = 0;
r                4351 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4355 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_set_vcpu_events(vcpu, &events);
r                4363 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4367 arch/x86/kvm/x86.c 		r = 0;
r                4373 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4378 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_set_debugregs(vcpu, &dbgregs);
r                4383 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                4389 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4392 arch/x86/kvm/x86.c 		r = 0;
r                4398 arch/x86/kvm/x86.c 			r = PTR_ERR(u.xsave);
r                4402 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_set_xsave(vcpu, u.xsave);
r                4407 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                4413 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4417 arch/x86/kvm/x86.c 		r = 0;
r                4423 arch/x86/kvm/x86.c 			r = PTR_ERR(u.xcrs);
r                4427 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_x86_set_xcrs(vcpu, u.xcrs);
r                4433 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4443 arch/x86/kvm/x86.c 			r = 0;
r                4448 arch/x86/kvm/x86.c 		r = vcpu->arch.virtual_tsc_khz;
r                4452 arch/x86/kvm/x86.c 		r = kvm_set_guest_paused(vcpu);
r                4458 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4461 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap);
r                4468 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4473 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4477 arch/x86/kvm/x86.c 		r = kvm_x86_ops->get_nested_state(vcpu, user_kvm_nested_state,
r                4479 arch/x86/kvm/x86.c 		if (r < 0)
r                4482 arch/x86/kvm/x86.c 		if (r > user_data_size) {
r                4483 arch/x86/kvm/x86.c 			if (put_user(r, &user_kvm_nested_state->size))
r                4484 arch/x86/kvm/x86.c 				r = -EFAULT;
r                4486 arch/x86/kvm/x86.c 				r = -E2BIG;
r                4490 arch/x86/kvm/x86.c 		r = 0;
r                4498 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4502 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4506 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4521 arch/x86/kvm/x86.c 		r = kvm_x86_ops->set_nested_state(vcpu, user_kvm_nested_state, &kvm_state);
r                4529 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4533 arch/x86/kvm/x86.c 		r = kvm_vcpu_ioctl_get_hv_cpuid(vcpu, &cpuid,
r                4535 arch/x86/kvm/x86.c 		if (r)
r                4538 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4541 arch/x86/kvm/x86.c 		r = 0;
r                4545 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4551 arch/x86/kvm/x86.c 	return r;
r                4598 arch/x86/kvm/x86.c 	int r;
r                4600 arch/x86/kvm/x86.c 	r = 0;
r                4614 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4617 arch/x86/kvm/x86.c 	return r;
r                4623 arch/x86/kvm/x86.c 	int r;
r                4625 arch/x86/kvm/x86.c 	r = 0;
r                4643 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4647 arch/x86/kvm/x86.c 	return r;
r                4749 arch/x86/kvm/x86.c 	int r;
r                4759 arch/x86/kvm/x86.c 	r = kvm_get_dirty_log_protect(kvm, log, &flush);
r                4770 arch/x86/kvm/x86.c 	return r;
r                4776 arch/x86/kvm/x86.c 	int r;
r                4786 arch/x86/kvm/x86.c 	r = kvm_clear_dirty_log_protect(kvm, log, &flush);
r                4797 arch/x86/kvm/x86.c 	return r;
r                4815 arch/x86/kvm/x86.c 	int r;
r                4823 arch/x86/kvm/x86.c 		r = 0;
r                4827 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4830 arch/x86/kvm/x86.c 		r = -EEXIST;
r                4835 arch/x86/kvm/x86.c 		r = kvm_setup_empty_irq_routing(kvm);
r                4836 arch/x86/kvm/x86.c 		if (r)
r                4842 arch/x86/kvm/x86.c 		r = 0;
r                4848 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4857 arch/x86/kvm/x86.c 		r = 0;
r                4860 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4873 arch/x86/kvm/x86.c 		r = 0;
r                4877 arch/x86/kvm/x86.c 		r = 0;
r                4881 arch/x86/kvm/x86.c 		r = 0;
r                4884 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4887 arch/x86/kvm/x86.c 	return r;
r                4895 arch/x86/kvm/x86.c 	int r = -ENOTTY;
r                4909 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_tss_addr(kvm, arg);
r                4915 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4918 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4921 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_identity_map_addr(kvm, ident_addr);
r                4927 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_nr_mmu_pages(kvm, arg);
r                4930 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_get_nr_mmu_pages(kvm);
r                4935 arch/x86/kvm/x86.c 		r = -EEXIST;
r                4939 arch/x86/kvm/x86.c 		r = -EINVAL;
r                4943 arch/x86/kvm/x86.c 		r = kvm_pic_init(kvm);
r                4944 arch/x86/kvm/x86.c 		if (r)
r                4947 arch/x86/kvm/x86.c 		r = kvm_ioapic_init(kvm);
r                4948 arch/x86/kvm/x86.c 		if (r) {
r                4953 arch/x86/kvm/x86.c 		r = kvm_setup_default_irq_routing(kvm);
r                4954 arch/x86/kvm/x86.c 		if (r) {
r                4970 arch/x86/kvm/x86.c 		r = -EFAULT;
r                4976 arch/x86/kvm/x86.c 		r = -EEXIST;
r                4979 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                4982 arch/x86/kvm/x86.c 			r = 0;
r                4992 arch/x86/kvm/x86.c 			r = PTR_ERR(chip);
r                4996 arch/x86/kvm/x86.c 		r = -ENXIO;
r                4999 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_get_irqchip(kvm, chip);
r                5000 arch/x86/kvm/x86.c 		if (r)
r                5002 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5005 arch/x86/kvm/x86.c 		r = 0;
r                5016 arch/x86/kvm/x86.c 			r = PTR_ERR(chip);
r                5020 arch/x86/kvm/x86.c 		r = -ENXIO;
r                5023 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_irqchip(kvm, chip);
r                5024 arch/x86/kvm/x86.c 		if (r)
r                5026 arch/x86/kvm/x86.c 		r = 0;
r                5032 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5035 arch/x86/kvm/x86.c 		r = -ENXIO;
r                5038 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_get_pit(kvm, &u.ps);
r                5039 arch/x86/kvm/x86.c 		if (r)
r                5041 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5044 arch/x86/kvm/x86.c 		r = 0;
r                5048 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5051 arch/x86/kvm/x86.c 		r = -ENXIO;
r                5054 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_pit(kvm, &u.ps);
r                5058 arch/x86/kvm/x86.c 		r = -ENXIO;
r                5061 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_get_pit2(kvm, &u.ps2);
r                5062 arch/x86/kvm/x86.c 		if (r)
r                5064 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5067 arch/x86/kvm/x86.c 		r = 0;
r                5071 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5074 arch/x86/kvm/x86.c 		r = -ENXIO;
r                5077 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_pit2(kvm, &u.ps2);
r                5082 arch/x86/kvm/x86.c 		r =  -EFAULT;
r                5085 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_reinject(kvm, &control);
r                5089 arch/x86/kvm/x86.c 		r = 0;
r                5092 arch/x86/kvm/x86.c 			r = -EBUSY;
r                5099 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5102 arch/x86/kvm/x86.c 		r = -EINVAL;
r                5106 arch/x86/kvm/x86.c 		r = 0;
r                5113 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5117 arch/x86/kvm/x86.c 		r = -EINVAL;
r                5121 arch/x86/kvm/x86.c 		r = 0;
r                5142 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5145 arch/x86/kvm/x86.c 		r = 0;
r                5149 arch/x86/kvm/x86.c 		r = -ENOTTY;
r                5151 arch/x86/kvm/x86.c 			r = kvm_x86_ops->mem_enc_op(kvm, argp);
r                5157 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5161 arch/x86/kvm/x86.c 		r = -ENOTTY;
r                5163 arch/x86/kvm/x86.c 			r = kvm_x86_ops->mem_enc_reg_region(kvm, &region);
r                5169 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5173 arch/x86/kvm/x86.c 		r = -ENOTTY;
r                5175 arch/x86/kvm/x86.c 			r = kvm_x86_ops->mem_enc_unreg_region(kvm, &region);
r                5181 arch/x86/kvm/x86.c 		r = -EFAULT;
r                5184 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_hv_eventfd(kvm, &hvevfd);
r                5188 arch/x86/kvm/x86.c 		r = kvm_vm_ioctl_set_pmu_event_filter(kvm, argp);
r                5191 arch/x86/kvm/x86.c 		r = -ENOTTY;
r                5194 arch/x86/kvm/x86.c 	return r;
r                5391 arch/x86/kvm/x86.c 	int r = X86EMUL_CONTINUE;
r                5405 arch/x86/kvm/x86.c 			r = X86EMUL_IO_NEEDED;
r                5414 arch/x86/kvm/x86.c 	return r;
r                5479 arch/x86/kvm/x86.c 	int r = kvm_vcpu_read_guest(vcpu, addr, val, bytes);
r                5481 arch/x86/kvm/x86.c 	return r < 0 ? X86EMUL_IO_NEEDED : X86EMUL_CONTINUE;
r                5489 arch/x86/kvm/x86.c 	int r = X86EMUL_CONTINUE;
r                5503 arch/x86/kvm/x86.c 			r = X86EMUL_IO_NEEDED;
r                5512 arch/x86/kvm/x86.c 	return r;
r                5894 arch/x86/kvm/x86.c 	int r = 0, i;
r                5898 arch/x86/kvm/x86.c 			r = kvm_io_bus_read(vcpu, KVM_PIO_BUS, vcpu->arch.pio.port,
r                5901 arch/x86/kvm/x86.c 			r = kvm_io_bus_write(vcpu, KVM_PIO_BUS,
r                5904 arch/x86/kvm/x86.c 		if (r)
r                5908 arch/x86/kvm/x86.c 	return r;
r                6604 arch/x86/kvm/x86.c 	int r;
r                6606 arch/x86/kvm/x86.c 	r = kvm_x86_ops->skip_emulated_instruction(vcpu);
r                6607 arch/x86/kvm/x86.c 	if (unlikely(!r))
r                6619 arch/x86/kvm/x86.c 		r = kvm_vcpu_do_singlestep(vcpu);
r                6620 arch/x86/kvm/x86.c 	return r;
r                6624 arch/x86/kvm/x86.c static bool kvm_vcpu_check_breakpoint(struct kvm_vcpu *vcpu, int *r)
r                6639 arch/x86/kvm/x86.c 			*r = 0;
r                6655 arch/x86/kvm/x86.c 			*r = 1;
r                6697 arch/x86/kvm/x86.c 	int r;
r                6721 arch/x86/kvm/x86.c 		    kvm_vcpu_check_breakpoint(vcpu, &r))
r                6722 arch/x86/kvm/x86.c 			return r;
r                6731 arch/x86/kvm/x86.c 		r = x86_decode_insn(ctxt, insn, insn_len);
r                6735 arch/x86/kvm/x86.c 		if (r != EMULATION_OK)  {
r                6791 arch/x86/kvm/x86.c 	r = x86_emulate_insn(ctxt);
r                6793 arch/x86/kvm/x86.c 	if (r == EMULATION_INTERCEPTED)
r                6796 arch/x86/kvm/x86.c 	if (r == EMULATION_FAILED) {
r                6805 arch/x86/kvm/x86.c 		r = 1;
r                6807 arch/x86/kvm/x86.c 			return r;
r                6816 arch/x86/kvm/x86.c 		r = 0;
r                6822 arch/x86/kvm/x86.c 		r = 0;
r                6824 arch/x86/kvm/x86.c 	} else if (r == EMULATION_RESTART)
r                6827 arch/x86/kvm/x86.c 		r = 1;
r                6836 arch/x86/kvm/x86.c 			if (r && (ctxt->tf || (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP)))
r                6837 arch/x86/kvm/x86.c 				r = kvm_vcpu_do_singlestep(vcpu);
r                6852 arch/x86/kvm/x86.c 	return r;
r                7243 arch/x86/kvm/x86.c 	int r;
r                7248 arch/x86/kvm/x86.c 		r = -EEXIST;
r                7254 arch/x86/kvm/x86.c 		r = -EOPNOTSUPP;
r                7259 arch/x86/kvm/x86.c 		r = -EOPNOTSUPP;
r                7270 arch/x86/kvm/x86.c 		r = -EOPNOTSUPP;
r                7274 arch/x86/kvm/x86.c 	r = -ENOMEM;
r                7289 arch/x86/kvm/x86.c 	r = kvm_mmu_module_init();
r                7290 arch/x86/kvm/x86.c 	if (r)
r                7322 arch/x86/kvm/x86.c 	return r;
r                7574 arch/x86/kvm/x86.c 	int r;
r                7608 arch/x86/kvm/x86.c 		r = kvm_x86_ops->check_nested_events(vcpu);
r                7609 arch/x86/kvm/x86.c 		if (r != 0)
r                7610 arch/x86/kvm/x86.c 			return r;
r                7670 arch/x86/kvm/x86.c 			r = kvm_x86_ops->check_nested_events(vcpu);
r                7671 arch/x86/kvm/x86.c 			if (r != 0)
r                7672 arch/x86/kvm/x86.c 				return r;
r                8031 arch/x86/kvm/x86.c 	int r;
r                8041 arch/x86/kvm/x86.c 				r = 0;
r                8054 arch/x86/kvm/x86.c 			r = kvm_guest_time_update(vcpu);
r                8055 arch/x86/kvm/x86.c 			if (unlikely(r))
r                8066 arch/x86/kvm/x86.c 			r = 0;
r                8072 arch/x86/kvm/x86.c 			r = 0;
r                8078 arch/x86/kvm/x86.c 			r = 1;
r                8098 arch/x86/kvm/x86.c 				r = 0;
r                8111 arch/x86/kvm/x86.c 			r = 0;
r                8117 arch/x86/kvm/x86.c 			r = 0;
r                8123 arch/x86/kvm/x86.c 			r = 0;
r                8140 arch/x86/kvm/x86.c 			r = 1;
r                8177 arch/x86/kvm/x86.c 	r = kvm_mmu_reload(vcpu);
r                8178 arch/x86/kvm/x86.c 	if (unlikely(r)) {
r                8224 arch/x86/kvm/x86.c 		r = 1;
r                8329 arch/x86/kvm/x86.c 	r = kvm_x86_ops->handle_exit(vcpu);
r                8330 arch/x86/kvm/x86.c 	return r;
r                8337 arch/x86/kvm/x86.c 	return r;
r                8385 arch/x86/kvm/x86.c 	int r;
r                8393 arch/x86/kvm/x86.c 			r = vcpu_enter_guest(vcpu);
r                8395 arch/x86/kvm/x86.c 			r = vcpu_block(kvm, vcpu);
r                8398 arch/x86/kvm/x86.c 		if (r <= 0)
r                8407 arch/x86/kvm/x86.c 			r = 0;
r                8416 arch/x86/kvm/x86.c 			r = -EINTR;
r                8430 arch/x86/kvm/x86.c 	return r;
r                8435 arch/x86/kvm/x86.c 	int r;
r                8438 arch/x86/kvm/x86.c 	r = kvm_emulate_instruction(vcpu, EMULTYPE_NO_DECODE);
r                8440 arch/x86/kvm/x86.c 	return r;
r                8561 arch/x86/kvm/x86.c 	int r;
r                8569 arch/x86/kvm/x86.c 			r = -EINTR;
r                8575 arch/x86/kvm/x86.c 		r = -EAGAIN;
r                8577 arch/x86/kvm/x86.c 			r = -EINTR;
r                8585 arch/x86/kvm/x86.c 		r = -EINVAL;
r                8590 arch/x86/kvm/x86.c 		r = sync_regs(vcpu);
r                8591 arch/x86/kvm/x86.c 		if (r != 0)
r                8598 arch/x86/kvm/x86.c 			r = -EINVAL;
r                8606 arch/x86/kvm/x86.c 		r = cui(vcpu);
r                8607 arch/x86/kvm/x86.c 		if (r <= 0)
r                8613 arch/x86/kvm/x86.c 		r = -EINTR;
r                8615 arch/x86/kvm/x86.c 		r = vcpu_run(vcpu);
r                8625 arch/x86/kvm/x86.c 	return r;
r                8967 arch/x86/kvm/x86.c 	int i, r;
r                8972 arch/x86/kvm/x86.c 		r = -EBUSY;
r                9013 arch/x86/kvm/x86.c 	r = 0;
r                9017 arch/x86/kvm/x86.c 	return r;
r                9395 arch/x86/kvm/x86.c 	int r;
r                9397 arch/x86/kvm/x86.c 	r = kvm_x86_ops->hardware_setup();
r                9398 arch/x86/kvm/x86.c 	if (r != 0)
r                9399 arch/x86/kvm/x86.c 		return r;
r                9448 arch/x86/kvm/x86.c 	int r;
r                9458 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                9465 arch/x86/kvm/x86.c 	r = kvm_mmu_create(vcpu);
r                9466 arch/x86/kvm/x86.c 	if (r < 0)
r                9471 arch/x86/kvm/x86.c 		r = kvm_create_lapic(vcpu, lapic_timer_advance_ns);
r                9472 arch/x86/kvm/x86.c 		if (r < 0)
r                9480 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                9487 arch/x86/kvm/x86.c 		r = -ENOMEM;
r                9518 arch/x86/kvm/x86.c 	return r;
r                9624 arch/x86/kvm/x86.c 	int i, r;
r                9662 arch/x86/kvm/x86.c 		r = __kvm_set_memory_region(kvm, &m);
r                9663 arch/x86/kvm/x86.c 		if (r < 0)
r                9664 arch/x86/kvm/x86.c 			return r;
r                9676 arch/x86/kvm/x86.c 	int r;
r                9679 arch/x86/kvm/x86.c 	r = __x86_set_memory_region(kvm, id, gpa, size);
r                9682 arch/x86/kvm/x86.c 	return r;
r                10065 arch/x86/kvm/x86.c 	int r;
r                10071 arch/x86/kvm/x86.c 	r = kvm_mmu_reload(vcpu);
r                10072 arch/x86/kvm/x86.c 	if (unlikely(r))
r                  21 arch/x86/lib/insn.c 	({ t r = *(t*)insn->next_byte; insn->next_byte += sizeof(t); r; })
r                  24 arch/x86/lib/insn.c 	({ t r = *(t*)((insn)->next_byte + n); r; })
r                 179 arch/x86/math-emu/errors.c 		FPU_REG *r = &st(i);
r                 188 arch/x86/math-emu/errors.c 			tagi = FPU_Special(r);
r                 192 arch/x86/math-emu/errors.c 			       getsign(r) ? '-' : '+',
r                 193 arch/x86/math-emu/errors.c 			       (long)(r->sigh >> 16),
r                 194 arch/x86/math-emu/errors.c 			       (long)(r->sigh & 0xFFFF),
r                 195 arch/x86/math-emu/errors.c 			       (long)(r->sigl >> 16),
r                 196 arch/x86/math-emu/errors.c 			       (long)(r->sigl & 0xFFFF),
r                 197 arch/x86/math-emu/errors.c 			       exponent(r) - EXP_BIAS + 1);
r                  79 arch/x86/math-emu/fpu_proto.h extern void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr);
r                  80 arch/x86/math-emu/fpu_proto.h extern void FPU_copy_to_reg1(FPU_REG const *r, u_char tag);
r                  81 arch/x86/math-emu/fpu_proto.h extern void FPU_copy_to_reg0(FPU_REG const *r, u_char tag);
r                 145 arch/x86/math-emu/fpu_proto.h extern int FPU_round_to_int(FPU_REG *r, u_char tag);
r                  95 arch/x86/math-emu/fpu_tags.c void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr)
r                  97 arch/x86/math-emu/fpu_tags.c 	reg_copy(r, &st(stnr));
r                 101 arch/x86/math-emu/fpu_tags.c void FPU_copy_to_reg1(FPU_REG const *r, u_char tag)
r                 103 arch/x86/math-emu/fpu_tags.c 	reg_copy(r, &st(1));
r                 107 arch/x86/math-emu/fpu_tags.c void FPU_copy_to_reg0(FPU_REG const *r, u_char tag)
r                 112 arch/x86/math-emu/fpu_tags.c 	reg_copy(r, &st(0));
r                  39 arch/x86/math-emu/reg_ld_str.c static u_char normalize_no_excep(FPU_REG *r, int exp, int sign)
r                  43 arch/x86/math-emu/reg_ld_str.c 	setexponent16(r, exp);
r                  45 arch/x86/math-emu/reg_ld_str.c 	tag = FPU_normalize_nuo(r);
r                  46 arch/x86/math-emu/reg_ld_str.c 	stdexp(r);
r                  48 arch/x86/math-emu/reg_ld_str.c 		setnegative(r);
r                 970 arch/x86/math-emu/reg_ld_str.c int FPU_round_to_int(FPU_REG *r, u_char tag)
r                 977 arch/x86/math-emu/reg_ld_str.c 		significand(r) = 0;
r                 981 arch/x86/math-emu/reg_ld_str.c 	if (exponent(r) > 63) {
r                 982 arch/x86/math-emu/reg_ld_str.c 		r->sigl = r->sigh = ~0;	/* The largest representable number */
r                 986 arch/x86/math-emu/reg_ld_str.c 	eax = FPU_shrxs(&r->sigl, 63 - exponent(r));
r                 987 arch/x86/math-emu/reg_ld_str.c 	very_big = !(~(r->sigh) | ~(r->sigl));	/* test for 0xfff...fff */
r                 994 arch/x86/math-emu/reg_ld_str.c 		    || (half_or_more && (r->sigl & 1))) {	/* odd -> even */
r                 997 arch/x86/math-emu/reg_ld_str.c 			significand(r)++;
r                1002 arch/x86/math-emu/reg_ld_str.c 		if (frac_part && getsign(r)) {
r                1005 arch/x86/math-emu/reg_ld_str.c 			significand(r)++;
r                1010 arch/x86/math-emu/reg_ld_str.c 		if (frac_part && !getsign(r)) {
r                1013 arch/x86/math-emu/reg_ld_str.c 			significand(r)++;
r                 383 arch/x86/mm/mem_encrypt.c 	int r;
r                 394 arch/x86/mm/mem_encrypt.c 		r = set_memory_encrypted(vaddr, npages);
r                 395 arch/x86/mm/mem_encrypt.c 		if (r) {
r                 476 arch/x86/pci/fixup.c 	u8 r;
r                 478 arch/x86/pci/fixup.c 	pci_read_config_byte(dev, 0x42, &r);
r                 479 arch/x86/pci/fixup.c 	r &= 0xfd;
r                 480 arch/x86/pci/fixup.c 	pci_write_config_byte(dev, 0x42, r);
r                 529 arch/x86/pci/fixup.c 	struct resource *r = &dev->resource[1];
r                 531 arch/x86/pci/fixup.c 	if (r->flags & IORESOURCE_MEM && r->start == hpet_address) {
r                 532 arch/x86/pci/fixup.c 		r->flags |= IORESOURCE_PCI_FIXED;
r                 655 arch/x86/pci/fixup.c 	struct resource *r = &dev->resource[4];
r                 661 arch/x86/pci/fixup.c 	if (r->end == r->start + 0x7ff) {
r                 662 arch/x86/pci/fixup.c 		r->start = 0;
r                 663 arch/x86/pci/fixup.c 		r->end   = 0x3fffff;
r                 664 arch/x86/pci/fixup.c 		r->flags |= IORESOURCE_UNSET;
r                 212 arch/x86/pci/i386.c 	struct resource *r;
r                 215 arch/x86/pci/i386.c 		r = &dev->resource[idx];
r                 216 arch/x86/pci/i386.c 		if (!r->flags)
r                 218 arch/x86/pci/i386.c 		if (r->parent)	/* Already allocated */
r                 220 arch/x86/pci/i386.c 		if (!r->start || pci_claim_bridge_resource(dev, idx) < 0) {
r                 227 arch/x86/pci/i386.c 			r->start = r->end = 0;
r                 228 arch/x86/pci/i386.c 			r->flags = 0;
r                 253 arch/x86/pci/i386.c 	struct resource *r;
r                 265 arch/x86/pci/i386.c 			r = &dev->resource[idx];
r                 266 arch/x86/pci/i386.c 			if (r->parent)	/* Already allocated */
r                 268 arch/x86/pci/i386.c 			if (!r->start)	/* Address not assigned at all */
r                 270 arch/x86/pci/i386.c 			if (r->flags & IORESOURCE_IO)
r                 277 arch/x86/pci/i386.c 					idx, r, disabled, pass);
r                 279 arch/x86/pci/i386.c 					if (r->flags & IORESOURCE_PCI_FIXED) {
r                 281 arch/x86/pci/i386.c 							 idx, r);
r                 285 arch/x86/pci/i386.c 								idx, r->start);
r                 286 arch/x86/pci/i386.c 						r->end -= r->start;
r                 287 arch/x86/pci/i386.c 						r->start = 0;
r                 293 arch/x86/pci/i386.c 		r = &dev->resource[PCI_ROM_RESOURCE];
r                 294 arch/x86/pci/i386.c 		if (r->flags & IORESOURCE_ROM_ENABLE) {
r                 298 arch/x86/pci/i386.c 			dev_dbg(&dev->dev, "disabling ROM %pR\n", r);
r                 299 arch/x86/pci/i386.c 			r->flags &= ~IORESOURCE_ROM_ENABLE;
r                 323 arch/x86/pci/i386.c 	struct resource *r;
r                 330 arch/x86/pci/i386.c 	r = &dev->resource[PCI_ROM_RESOURCE];
r                 331 arch/x86/pci/i386.c 	if (!r->flags || !r->start)
r                 333 arch/x86/pci/i386.c 	if (r->parent) /* Already allocated */
r                 337 arch/x86/pci/i386.c 		r->end -= r->start;
r                 338 arch/x86/pci/i386.c 		r->start = 0;
r                  54 arch/x86/pci/irq.c 	int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
r                 539 arch/x86/pci/irq.c static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 593 arch/x86/pci/irq.c 		r->name = "PIIX/ICH";
r                 594 arch/x86/pci/irq.c 		r->get = pirq_piix_get;
r                 595 arch/x86/pci/irq.c 		r->set = pirq_piix_set;
r                 607 arch/x86/pci/irq.c 		r->name = "PIIX/ICH";
r                 608 arch/x86/pci/irq.c 		r->get = pirq_piix_get;
r                 609 arch/x86/pci/irq.c 		r->set = pirq_piix_set;
r                 616 arch/x86/pci/irq.c static __init int via_router_probe(struct irq_router *r,
r                 652 arch/x86/pci/irq.c 		r->name = "VIA";
r                 653 arch/x86/pci/irq.c 		r->get = pirq_via586_get;
r                 654 arch/x86/pci/irq.c 		r->set = pirq_via586_set;
r                 663 arch/x86/pci/irq.c 		r->name = "VIA";
r                 664 arch/x86/pci/irq.c 		r->get = pirq_via_get;
r                 665 arch/x86/pci/irq.c 		r->set = pirq_via_set;
r                 671 arch/x86/pci/irq.c static __init int vlsi_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 675 arch/x86/pci/irq.c 		r->name = "VLSI 82C534";
r                 676 arch/x86/pci/irq.c 		r->get = pirq_vlsi_get;
r                 677 arch/x86/pci/irq.c 		r->set = pirq_vlsi_set;
r                 684 arch/x86/pci/irq.c static __init int serverworks_router_probe(struct irq_router *r,
r                 690 arch/x86/pci/irq.c 		r->name = "ServerWorks";
r                 691 arch/x86/pci/irq.c 		r->get = pirq_serverworks_get;
r                 692 arch/x86/pci/irq.c 		r->set = pirq_serverworks_set;
r                 698 arch/x86/pci/irq.c static __init int sis_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 703 arch/x86/pci/irq.c 	r->name = "SIS";
r                 704 arch/x86/pci/irq.c 	r->get = pirq_sis_get;
r                 705 arch/x86/pci/irq.c 	r->set = pirq_sis_set;
r                 709 arch/x86/pci/irq.c static __init int cyrix_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 713 arch/x86/pci/irq.c 		r->name = "NatSemi";
r                 714 arch/x86/pci/irq.c 		r->get = pirq_cyrix_get;
r                 715 arch/x86/pci/irq.c 		r->set = pirq_cyrix_set;
r                 721 arch/x86/pci/irq.c static __init int opti_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 725 arch/x86/pci/irq.c 		r->name = "OPTI";
r                 726 arch/x86/pci/irq.c 		r->get = pirq_opti_get;
r                 727 arch/x86/pci/irq.c 		r->set = pirq_opti_set;
r                 733 arch/x86/pci/irq.c static __init int ite_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 737 arch/x86/pci/irq.c 		r->name = "ITE";
r                 738 arch/x86/pci/irq.c 		r->get = pirq_ite_get;
r                 739 arch/x86/pci/irq.c 		r->set = pirq_ite_set;
r                 745 arch/x86/pci/irq.c static __init int ali_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 750 arch/x86/pci/irq.c 		r->name = "ALI";
r                 751 arch/x86/pci/irq.c 		r->get = pirq_ali_get;
r                 752 arch/x86/pci/irq.c 		r->set = pirq_ali_set;
r                 758 arch/x86/pci/irq.c static __init int amd_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 762 arch/x86/pci/irq.c 		r->name = "AMD756";
r                 765 arch/x86/pci/irq.c 		r->name = "AMD766";
r                 768 arch/x86/pci/irq.c 		r->name = "AMD768";
r                 773 arch/x86/pci/irq.c 	r->get = pirq_amd756_get;
r                 774 arch/x86/pci/irq.c 	r->set = pirq_amd756_set;
r                 778 arch/x86/pci/irq.c static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router, u16 device)
r                 782 arch/x86/pci/irq.c 		r->name = "PicoPower PT86C523";
r                 783 arch/x86/pci/irq.c 		r->get = pirq_pico_get;
r                 784 arch/x86/pci/irq.c 		r->set = pirq_pico_set;
r                 788 arch/x86/pci/irq.c 		r->name = "PicoPower PT86C523 rev. BB+";
r                 789 arch/x86/pci/irq.c 		r->get = pirq_pico_get;
r                 790 arch/x86/pci/irq.c 		r->set = pirq_pico_set;
r                 820 arch/x86/pci/irq.c static void __init pirq_find_router(struct irq_router *r)
r                 828 arch/x86/pci/irq.c 		r->set = pirq_bios_set;
r                 829 arch/x86/pci/irq.c 		r->name = "BIOS";
r                 835 arch/x86/pci/irq.c 	r->name = "default";
r                 836 arch/x86/pci/irq.c 	r->get = NULL;
r                 837 arch/x86/pci/irq.c 	r->set = NULL;
r                 853 arch/x86/pci/irq.c 			h->probe(r, pirq_router_dev, rt->rtr_device))
r                 857 arch/x86/pci/irq.c 			h->probe(r, pirq_router_dev, pirq_router_dev->device))
r                 888 arch/x86/pci/irq.c 	struct irq_router *r = &pirq_router;
r                 929 arch/x86/pci/irq.c 		r->set(pirq_router_dev, dev, pirq, 11);
r                 937 arch/x86/pci/irq.c 		dev->irq = r->get(pirq_router_dev, dev, pirq);
r                 968 arch/x86/pci/irq.c 	} else if (r->get && (irq = r->get(pirq_router_dev, dev, pirq)) && \
r                 972 arch/x86/pci/irq.c 	} else if (newirq && r->set &&
r                 974 arch/x86/pci/irq.c 		if (r->set(pirq_router_dev, dev, pirq, newirq)) {
r                 184 arch/x86/platform/olpc/olpc-xo1-pm.c 	int r;
r                 186 arch/x86/platform/olpc/olpc-xo1-pm.c 	r = platform_driver_register(&cs5535_pms_driver);
r                 187 arch/x86/platform/olpc/olpc-xo1-pm.c 	if (r)
r                 188 arch/x86/platform/olpc/olpc-xo1-pm.c 		return r;
r                 190 arch/x86/platform/olpc/olpc-xo1-pm.c 	r = platform_driver_register(&cs5535_acpi_driver);
r                 191 arch/x86/platform/olpc/olpc-xo1-pm.c 	if (r)
r                 194 arch/x86/platform/olpc/olpc-xo1-pm.c 	return r;
r                  58 arch/x86/platform/olpc/olpc-xo1-rtc.c 	int r;
r                  71 arch/x86/platform/olpc/olpc-xo1-rtc.c 	r = platform_device_register(&xo1_rtc_device);
r                  72 arch/x86/platform/olpc/olpc-xo1-rtc.c 	if (r)
r                  73 arch/x86/platform/olpc/olpc-xo1-rtc.c 		return r;
r                 177 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 181 arch/x86/platform/olpc/olpc-xo1-sci.c 		r = olpc_ec_sci_query(&data);
r                 182 arch/x86/platform/olpc/olpc-xo1-sci.c 		if (r || !data)
r                 203 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 318 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 349 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = request_irq(sci_irq, xo1_sci_intr, 0, DRV_NAME, pdev);
r                 350 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 353 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                 358 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 360 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = gpio_request(OLPC_GPIO_ECSCI, "OLPC-ECSCI");
r                 361 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 362 arch/x86/platform/olpc/olpc-xo1-sci.c 		return r;
r                 402 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 404 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = gpio_request(OLPC_GPIO_LID, "OLPC-LID");
r                 405 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 406 arch/x86/platform/olpc/olpc-xo1-sci.c 		return r;
r                 439 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 453 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = input_register_device(power_button_idev);
r                 454 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r) {
r                 455 arch/x86/platform/olpc/olpc-xo1-sci.c 		dev_err(&pdev->dev, "failed to register power button: %d\n", r);
r                 459 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                 469 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 483 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = input_register_device(ebook_switch_idev);
r                 484 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r) {
r                 485 arch/x86/platform/olpc/olpc-xo1-sci.c 		dev_err(&pdev->dev, "failed to register ebook switch: %d\n", r);
r                 489 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                 499 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 513 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = input_register_device(lid_switch_idev);
r                 514 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r) {
r                 515 arch/x86/platform/olpc/olpc-xo1-sci.c 		dev_err(&pdev->dev, "failed to register lid switch: %d\n", r);
r                 523 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                 534 arch/x86/platform/olpc/olpc-xo1-sci.c 	int r;
r                 540 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = mfd_cell_enable(pdev);
r                 541 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 542 arch/x86/platform/olpc/olpc-xo1-sci.c 		return r;
r                 551 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_power_button(pdev);
r                 552 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 553 arch/x86/platform/olpc/olpc-xo1-sci.c 		return r;
r                 555 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_ebook_switch(pdev);
r                 556 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 559 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_lid_switch(pdev);
r                 560 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 563 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_lid_events();
r                 564 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 567 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_ec_sci();
r                 568 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 584 arch/x86/platform/olpc/olpc-xo1-sci.c 	r = setup_sci_interrupt(pdev);
r                 585 arch/x86/platform/olpc/olpc-xo1-sci.c 	if (r)
r                 591 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                 603 arch/x86/platform/olpc/olpc-xo1-sci.c 	return r;
r                  99 arch/x86/platform/olpc/olpc-xo15-sci.c 	int r;
r                 102 arch/x86/platform/olpc/olpc-xo15-sci.c 		r = olpc_ec_sci_query(&data);
r                 103 arch/x86/platform/olpc/olpc-xo15-sci.c 		if (r || !data)
r                 121 arch/x86/platform/olpc/olpc-xo15-sci.c 	if (r)
r                 142 arch/x86/platform/olpc/olpc-xo15-sci.c 	int r;
r                 164 arch/x86/platform/olpc/olpc-xo15-sci.c 	r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr);
r                 165 arch/x86/platform/olpc/olpc-xo15-sci.c 	if (r)
r                 183 arch/x86/platform/olpc/olpc-xo15-sci.c 	return r;
r                 288 arch/x86/platform/olpc/olpc.c 	int r = 0;
r                 313 arch/x86/platform/olpc/olpc.c 		r = add_xo1_platform_devices();
r                 314 arch/x86/platform/olpc/olpc.c 		if (r)
r                 315 arch/x86/platform/olpc/olpc.c 			return r;
r                 205 arch/x86/platform/olpc/olpc_dt.c 	int r;
r                 211 arch/x86/platform/olpc/olpc_dt.c 	r = olpc_dt_getproperty(node, "board-revision-int",
r                 213 arch/x86/platform/olpc/olpc_dt.c 	if (r < 0)
r                 649 arch/x86/tools/relocs.c static void add_reloc(struct relocs *r, uint32_t offset)
r                 651 arch/x86/tools/relocs.c 	if (r->count == r->size) {
r                 652 arch/x86/tools/relocs.c 		unsigned long newsize = r->size + 50000;
r                 653 arch/x86/tools/relocs.c 		void *mem = realloc(r->offset, newsize * sizeof(r->offset[0]));
r                 658 arch/x86/tools/relocs.c 		r->offset = mem;
r                 659 arch/x86/tools/relocs.c 		r->size = newsize;
r                 661 arch/x86/tools/relocs.c 	r->offset[r->count++] = offset;
r                 982 arch/x86/tools/relocs.c static void sort_relocs(struct relocs *r)
r                 984 arch/x86/tools/relocs.c 	qsort(r->offset, r->count, sizeof(r->offset[0]), cmp_relocs);
r                  11 arch/x86/um/asm/ptrace.h #define user_mode(r) UPT_IS_USER(&(r)->regs)
r                  13 arch/x86/um/asm/ptrace.h #define PT_REGS_AX(r) UPT_AX(&(r)->regs)
r                  14 arch/x86/um/asm/ptrace.h #define PT_REGS_BX(r) UPT_BX(&(r)->regs)
r                  15 arch/x86/um/asm/ptrace.h #define PT_REGS_CX(r) UPT_CX(&(r)->regs)
r                  16 arch/x86/um/asm/ptrace.h #define PT_REGS_DX(r) UPT_DX(&(r)->regs)
r                  18 arch/x86/um/asm/ptrace.h #define PT_REGS_SI(r) UPT_SI(&(r)->regs)
r                  19 arch/x86/um/asm/ptrace.h #define PT_REGS_DI(r) UPT_DI(&(r)->regs)
r                  20 arch/x86/um/asm/ptrace.h #define PT_REGS_BP(r) UPT_BP(&(r)->regs)
r                  21 arch/x86/um/asm/ptrace.h #define PT_REGS_EFLAGS(r) UPT_EFLAGS(&(r)->regs)
r                  23 arch/x86/um/asm/ptrace.h #define PT_REGS_CS(r) UPT_CS(&(r)->regs)
r                  24 arch/x86/um/asm/ptrace.h #define PT_REGS_SS(r) UPT_SS(&(r)->regs)
r                  25 arch/x86/um/asm/ptrace.h #define PT_REGS_DS(r) UPT_DS(&(r)->regs)
r                  26 arch/x86/um/asm/ptrace.h #define PT_REGS_ES(r) UPT_ES(&(r)->regs)
r                  28 arch/x86/um/asm/ptrace.h #define PT_REGS_ORIG_SYSCALL(r) PT_REGS_AX(r)
r                  29 arch/x86/um/asm/ptrace.h #define PT_REGS_SYSCALL_RET(r) PT_REGS_AX(r)
r                  35 arch/x86/um/asm/ptrace.h #define UPT_RESTART_SYSCALL(r) (UPT_IP(r) -= 2)
r                  36 arch/x86/um/asm/ptrace.h #define PT_REGS_SET_SYSCALL_RETURN(r, res) (PT_REGS_AX(r) = (res))
r                  59 arch/x86/um/asm/ptrace.h #define PT_REGS_R8(r) UPT_R8(&(r)->regs)
r                  60 arch/x86/um/asm/ptrace.h #define PT_REGS_R9(r) UPT_R9(&(r)->regs)
r                  61 arch/x86/um/asm/ptrace.h #define PT_REGS_R10(r) UPT_R10(&(r)->regs)
r                  62 arch/x86/um/asm/ptrace.h #define PT_REGS_R11(r) UPT_R11(&(r)->regs)
r                  63 arch/x86/um/asm/ptrace.h #define PT_REGS_R12(r) UPT_R12(&(r)->regs)
r                  64 arch/x86/um/asm/ptrace.h #define PT_REGS_R13(r) UPT_R13(&(r)->regs)
r                  65 arch/x86/um/asm/ptrace.h #define PT_REGS_R14(r) UPT_R14(&(r)->regs)
r                  66 arch/x86/um/asm/ptrace.h #define PT_REGS_R15(r) UPT_R15(&(r)->regs)
r                  11 arch/x86/um/shared/sysdep/ptrace.h #define REGS_IP(r) ((r)[HOST_IP])
r                  12 arch/x86/um/shared/sysdep/ptrace.h #define REGS_SP(r) ((r)[HOST_SP])
r                  13 arch/x86/um/shared/sysdep/ptrace.h #define REGS_EFLAGS(r) ((r)[HOST_EFLAGS])
r                  14 arch/x86/um/shared/sysdep/ptrace.h #define REGS_AX(r) ((r)[HOST_AX])
r                  15 arch/x86/um/shared/sysdep/ptrace.h #define REGS_BX(r) ((r)[HOST_BX])
r                  16 arch/x86/um/shared/sysdep/ptrace.h #define REGS_CX(r) ((r)[HOST_CX])
r                  17 arch/x86/um/shared/sysdep/ptrace.h #define REGS_DX(r) ((r)[HOST_DX])
r                  18 arch/x86/um/shared/sysdep/ptrace.h #define REGS_SI(r) ((r)[HOST_SI])
r                  19 arch/x86/um/shared/sysdep/ptrace.h #define REGS_DI(r) ((r)[HOST_DI])
r                  20 arch/x86/um/shared/sysdep/ptrace.h #define REGS_BP(r) ((r)[HOST_BP])
r                  21 arch/x86/um/shared/sysdep/ptrace.h #define REGS_CS(r) ((r)[HOST_CS])
r                  22 arch/x86/um/shared/sysdep/ptrace.h #define REGS_SS(r) ((r)[HOST_SS])
r                  23 arch/x86/um/shared/sysdep/ptrace.h #define REGS_DS(r) ((r)[HOST_DS])
r                  24 arch/x86/um/shared/sysdep/ptrace.h #define REGS_ES(r) ((r)[HOST_ES])
r                  26 arch/x86/um/shared/sysdep/ptrace.h #define UPT_IP(r) REGS_IP((r)->gp)
r                  27 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SP(r) REGS_SP((r)->gp)
r                  28 arch/x86/um/shared/sysdep/ptrace.h #define UPT_EFLAGS(r) REGS_EFLAGS((r)->gp)
r                  29 arch/x86/um/shared/sysdep/ptrace.h #define UPT_AX(r) REGS_AX((r)->gp)
r                  30 arch/x86/um/shared/sysdep/ptrace.h #define UPT_BX(r) REGS_BX((r)->gp)
r                  31 arch/x86/um/shared/sysdep/ptrace.h #define UPT_CX(r) REGS_CX((r)->gp)
r                  32 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DX(r) REGS_DX((r)->gp)
r                  33 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SI(r) REGS_SI((r)->gp)
r                  34 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DI(r) REGS_DI((r)->gp)
r                  35 arch/x86/um/shared/sysdep/ptrace.h #define UPT_BP(r) REGS_BP((r)->gp)
r                  36 arch/x86/um/shared/sysdep/ptrace.h #define UPT_CS(r) REGS_CS((r)->gp)
r                  37 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SS(r) REGS_SS((r)->gp)
r                  38 arch/x86/um/shared/sysdep/ptrace.h #define UPT_DS(r) REGS_DS((r)->gp)
r                  39 arch/x86/um/shared/sysdep/ptrace.h #define UPT_ES(r) REGS_ES((r)->gp)
r                  51 arch/x86/um/shared/sysdep/ptrace.h #define SYSCALL_ARGS(r) ((struct syscall_args) \
r                  52 arch/x86/um/shared/sysdep/ptrace.h 			 { .args = { UPT_SYSCALL_ARG1(r),	 \
r                  53 arch/x86/um/shared/sysdep/ptrace.h 				     UPT_SYSCALL_ARG2(r),	 \
r                  54 arch/x86/um/shared/sysdep/ptrace.h 				     UPT_SYSCALL_ARG3(r),	 \
r                  55 arch/x86/um/shared/sysdep/ptrace.h 				     UPT_SYSCALL_ARG4(r),	 \
r                  56 arch/x86/um/shared/sysdep/ptrace.h 				     UPT_SYSCALL_ARG5(r),	 \
r                  57 arch/x86/um/shared/sysdep/ptrace.h 				     UPT_SYSCALL_ARG6(r) } } )
r                  69 arch/x86/um/shared/sysdep/ptrace.h #define UPT_SYSCALL_NR(r) ((r)->syscall)
r                  70 arch/x86/um/shared/sysdep/ptrace.h #define UPT_FAULTINFO(r) (&(r)->faultinfo)
r                  71 arch/x86/um/shared/sysdep/ptrace.h #define UPT_IS_USER(r) ((r)->is_user)
r                  15 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG1(r) UPT_BX(r)
r                  16 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG2(r) UPT_CX(r)
r                  17 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG3(r) UPT_DX(r)
r                  18 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG4(r) UPT_SI(r)
r                  19 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG5(r) UPT_DI(r)
r                  20 arch/x86/um/shared/sysdep/ptrace_32.h #define UPT_SYSCALL_ARG6(r) UPT_BP(r)
r                  13 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R8(r) ((r)[HOST_R8])
r                  14 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R9(r) ((r)[HOST_R9])
r                  15 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R10(r) ((r)[HOST_R10])
r                  16 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R11(r) ((r)[HOST_R11])
r                  17 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R12(r) ((r)[HOST_R12])
r                  18 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R13(r) ((r)[HOST_R13])
r                  19 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R14(r) ((r)[HOST_R14])
r                  20 arch/x86/um/shared/sysdep/ptrace_64.h #define REGS_R15(r) ((r)[HOST_R15])
r                  44 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R8(r) REGS_R8((r)->gp)
r                  45 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R9(r) REGS_R9((r)->gp)
r                  46 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R10(r) REGS_R10((r)->gp)
r                  47 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R11(r) REGS_R11((r)->gp)
r                  48 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R12(r) REGS_R12((r)->gp)
r                  49 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R13(r) REGS_R13((r)->gp)
r                  50 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R14(r) REGS_R14((r)->gp)
r                  51 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_R15(r) REGS_R15((r)->gp)
r                  53 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG1(r) UPT_DI(r)
r                  54 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG2(r) UPT_SI(r)
r                  55 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG3(r) UPT_DX(r)
r                  56 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG4(r) UPT_R10(r)
r                  57 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG5(r) UPT_R8(r)
r                  58 arch/x86/um/shared/sysdep/ptrace_64.h #define UPT_SYSCALL_ARG6(r) UPT_R9(r)
r                   4 arch/x86/um/shared/sysdep/ptrace_user.h #define PT_OFFSET(r) ((r) * sizeof(long))
r                 262 arch/x86/xen/enlighten.c 	struct sched_shutdown r = { .reason = reason };
r                 268 arch/x86/xen/enlighten.c 	if (HYPERVISOR_sched_op(SCHEDOP_shutdown, &r))
r                 135 arch/x86/xen/platform-pci-unplug.c 	int r;
r                 145 arch/x86/xen/platform-pci-unplug.c 	r = check_platform_magic();
r                 150 arch/x86/xen/platform-pci-unplug.c 	if (r && !(r == XEN_PLATFORM_ERR_MAGIC &&
r                 443 arch/x86/xen/pmu.c 		return !!(xenpmu_data->pmu.r.regs.cpl & 3);
r                 455 arch/x86/xen/pmu.c 	return xenpmu_data->pmu.r.regs.ip;
r                 499 arch/x86/xen/pmu.c 	xen_convert_regs(&xenpmu_data->pmu.r.regs, &regs,
r                  38 arch/xtensa/boot/lib/zmem.c 	int r, i, flags;
r                  63 arch/xtensa/boot/lib/zmem.c         r = zlib_inflateInit2(&s, -MAX_WBITS);
r                  64 arch/xtensa/boot/lib/zmem.c         if (r != Z_OK) {
r                  72 arch/xtensa/boot/lib/zmem.c         r = zlib_inflate(&s, Z_FINISH);
r                  73 arch/xtensa/boot/lib/zmem.c         if (r != Z_OK && r != Z_STREAM_END) {
r                  55 arch/xtensa/include/asm/asmmacro.h 		addi	\at, \ar, \size
r                  91 arch/xtensa/include/asm/asmmacro.h 			add	\at, \ar, \at
r                  93 arch/xtensa/include/asm/asmmacro.h 			add	\at, \ar, \as
r                 107 arch/xtensa/include/asm/asmmacro.h 		sub	\at, \as, \ar
r                 139 arch/xtensa/include/asm/asmmacro.h 		bltu	\ar, \as, 98b
r                 149 arch/xtensa/include/asm/asmmacro.h 		addi	\ar, \ar, \incr
r                 150 arch/xtensa/include/asm/asmmacro.h 		__endl	\ar \as
r                 168 arch/xtensa/include/asm/asmmacro.h 	.macro __src_b	r, w0, w1
r                 186 arch/xtensa/include/asm/asmmacro.h 	.macro __ssa8	r
r                  45 arch/xtensa/include/asm/cacheasm.h 	__loopi	\ar, \at, \size, (_reps << (\line_width))
r                  48 arch/xtensa/include/asm/cacheasm.h 	\insn	\ar, _index << (\line_width)
r                  51 arch/xtensa/include/asm/cacheasm.h 	__endla	\ar, \at, _reps << (\line_width)
r                  58 arch/xtensa/include/asm/cacheasm.h 	movi	\ar, 0
r                  59 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_unroll \ar, \at, \insn, \size, \line_width, \max_immed
r                  66 arch/xtensa/include/asm/cacheasm.h 	extui	\at, \ar, 0, \line_width
r                  69 arch/xtensa/include/asm/cacheasm.h 	__loops	\ar, \as, \at, \line_width
r                  70 arch/xtensa/include/asm/cacheasm.h 	\insn	\ar, 0
r                  71 arch/xtensa/include/asm/cacheasm.h 	__endla	\ar, \at, (1 << (\line_width))
r                  78 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_unroll \ar, \at, \insn, PAGE_SIZE, \line_width, \max_immed
r                  86 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at diu XCHAL_DCACHE_SIZE \
r                  96 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at iiu XCHAL_ICACHE_SIZE \
r                 106 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at diwbi XCHAL_DCACHE_SIZE \
r                 116 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at diwb XCHAL_DCACHE_SIZE \
r                 126 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at dii XCHAL_DCACHE_SIZE \
r                 136 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_all \ar \at iii XCHAL_ICACHE_SIZE \
r                 147 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_range \ar \as \at dhwbi XCHAL_DCACHE_LINEWIDTH
r                 156 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_range \ar \as \at dhwb XCHAL_DCACHE_LINEWIDTH
r                 165 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_range \ar \as \at dhi XCHAL_DCACHE_LINEWIDTH
r                 174 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_range \ar \as \at ihi XCHAL_ICACHE_LINEWIDTH
r                 184 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_page \ar \as dhwbi XCHAL_DCACHE_LINEWIDTH 1020
r                 193 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_page \ar \as dhwb XCHAL_DCACHE_LINEWIDTH 1020
r                 202 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_page \ar \as dhi XCHAL_DCACHE_LINEWIDTH 1020
r                 211 arch/xtensa/include/asm/cacheasm.h 	__loop_cache_page \ar \as ihi XCHAL_ICACHE_LINEWIDTH 1020
r                  22 arch/xtensa/kernel/platform.c #define _F(r,f,a,b)							\
r                  23 arch/xtensa/kernel/platform.c 	r __platform_##f a b;                                   	\
r                  24 arch/xtensa/kernel/platform.c 	r platform_##f a __attribute__((weak, alias("__platform_"#f)))
r                 249 arch/xtensa/kernel/stacktrace.c 	struct return_addr_data *r = data;
r                 251 arch/xtensa/kernel/stacktrace.c 	if (r->skip) {
r                 252 arch/xtensa/kernel/stacktrace.c 		--r->skip;
r                 257 arch/xtensa/kernel/stacktrace.c 	r->addr = frame->pc;
r                 267 arch/xtensa/kernel/stacktrace.c 	struct return_addr_data r = {
r                 270 arch/xtensa/kernel/stacktrace.c 	walk_stackframe(stack_pointer(NULL), return_address_cb, &r);
r                 271 arch/xtensa/kernel/stacktrace.c 	return r.addr;
r                 246 block/scsi_ioctl.c 	int r, ret = 0;
r                 271 block/scsi_ioctl.c 	r = blk_rq_unmap_user(bio);
r                 273 block/scsi_ioctl.c 		ret = r;
r                 194 crypto/adiantum.c static inline void le128_add(le128 *r, const le128 *v1, const le128 *v2)
r                 199 crypto/adiantum.c 	r->b = cpu_to_le64(x + y);
r                 200 crypto/adiantum.c 	r->a = cpu_to_le64(le64_to_cpu(v1->a) + le64_to_cpu(v2->a) +
r                 205 crypto/adiantum.c static inline void le128_sub(le128 *r, const le128 *v1, const le128 *v2)
r                 210 crypto/adiantum.c 	r->b = cpu_to_le64(x - y);
r                 211 crypto/adiantum.c 	r->a = cpu_to_le64(le64_to_cpu(v1->a) - le64_to_cpu(v2->a) -
r                 468 crypto/anubis.c 	int N, R, i, r;
r                 492 crypto/anubis.c 	for (r = 0; r <= R; r++) {
r                 524 crypto/anubis.c 		ctx->E[r][0] = K0;
r                 525 crypto/anubis.c 		ctx->E[r][1] = K1;
r                 526 crypto/anubis.c 		ctx->E[r][2] = K2;
r                 527 crypto/anubis.c 		ctx->E[r][3] = K3;
r                 532 crypto/anubis.c 		if (r == R)
r                 547 crypto/anubis.c 		kappa[0] = inter[0] ^ rc[r];
r                 560 crypto/anubis.c 	for (r = 1; r < R; r++) {
r                 562 crypto/anubis.c 			u32 v = ctx->E[R - r][i];
r                 563 crypto/anubis.c 			ctx->D[r][i] =
r                 579 crypto/anubis.c 	int i, r;
r                 594 crypto/anubis.c 	for (r = 1; r < R; r++) {
r                 600 crypto/anubis.c 			roundKey[r][0];
r                 606 crypto/anubis.c 			roundKey[r][1];
r                 612 crypto/anubis.c 			roundKey[r][2];
r                 618 crypto/anubis.c 			roundKey[r][3];
r                 527 crypto/asymmetric_keys/asym_tpm.c 	int r;
r                 544 crypto/asymmetric_keys/asym_tpm.c 	r = tpm_loadkey2(tb, SRKHANDLE, srkauth,
r                 546 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0) {
r                 547 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("loadkey2 failed (%d)\n", r);
r                 554 crypto/asymmetric_keys/asym_tpm.c 	r = tpm_unbind(tb, keyhandle, keyauth,
r                 556 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0)
r                 557 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("tpm_unbind failed (%d)\n", r);
r                 560 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("flushspecific failed (%d)\n", r);
r                 564 crypto/asymmetric_keys/asym_tpm.c 	pr_devel("<==%s() = %d\n", __func__, r);
r                 565 crypto/asymmetric_keys/asym_tpm.c 	return r;
r                 653 crypto/asymmetric_keys/asym_tpm.c 	int r;
r                 681 crypto/asymmetric_keys/asym_tpm.c 		r = -EOVERFLOW;
r                 685 crypto/asymmetric_keys/asym_tpm.c 	r = -ENOMEM;
r                 693 crypto/asymmetric_keys/asym_tpm.c 	r = tpm_loadkey2(tb, SRKHANDLE, srkauth,
r                 695 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0) {
r                 696 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("loadkey2 failed (%d)\n", r);
r                 703 crypto/asymmetric_keys/asym_tpm.c 	r = tpm_sign(tb, keyhandle, keyauth, in, in_len, out, params->out_len);
r                 704 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0)
r                 705 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("tpm_sign failed (%d)\n", r);
r                 708 crypto/asymmetric_keys/asym_tpm.c 		pr_devel("flushspecific failed (%d)\n", r);
r                 714 crypto/asymmetric_keys/asym_tpm.c 	pr_devel("<==%s() = %d\n", __func__, r);
r                 715 crypto/asymmetric_keys/asym_tpm.c 	return r;
r                 917 crypto/asymmetric_keys/asym_tpm.c 	int r;
r                 920 crypto/asymmetric_keys/asym_tpm.c 	r = tpm_is_tpm2(NULL);
r                 921 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0)
r                 925 crypto/asymmetric_keys/asym_tpm.c 	if (r > 0) {
r                 926 crypto/asymmetric_keys/asym_tpm.c 		r = -ENODEV;
r                 930 crypto/asymmetric_keys/asym_tpm.c 	r = -ENOMEM;
r                 941 crypto/asymmetric_keys/asym_tpm.c 	r = extract_key_parameters(tk);
r                 942 crypto/asymmetric_keys/asym_tpm.c 	if (r < 0)
r                 953 crypto/asymmetric_keys/asym_tpm.c 	return ERR_PTR(r);
r                 295 crypto/cast5_generic.c #define F1(D, m, r)  ((I = ((m) + (D))), (I = rol32(I, (r))),   \
r                 297 crypto/cast5_generic.c #define F2(D, m, r)  ((I = ((m) ^ (D))), (I = rol32(I, (r))),   \
r                 299 crypto/cast5_generic.c #define F3(D, m, r)  ((I = ((m) - (D))), (I = rol32(I, (r))),   \
r                 307 crypto/cast5_generic.c 	u32 l, r, t;
r                 319 crypto/cast5_generic.c 	r = be32_to_cpu(src[1]);
r                 329 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]);
r                 330 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]);
r                 331 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]);
r                 332 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]);
r                 333 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]);
r                 334 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[5], Kr[5]);
r                 335 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[6], Kr[6]);
r                 336 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[7], Kr[7]);
r                 337 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[8], Kr[8]);
r                 338 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[9], Kr[9]);
r                 339 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[10], Kr[10]);
r                 340 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[11], Kr[11]);
r                 342 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F1(r, Km[12], Kr[12]);
r                 343 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F2(r, Km[13], Kr[13]);
r                 344 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F3(r, Km[14], Kr[14]);
r                 345 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F1(r, Km[15], Kr[15]);
r                 350 crypto/cast5_generic.c 	dst[0] = cpu_to_be32(r);
r                 364 crypto/cast5_generic.c 	u32 l, r, t;
r                 373 crypto/cast5_generic.c 	r = be32_to_cpu(src[1]);
r                 376 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F1(r, Km[15], Kr[15]);
r                 377 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F3(r, Km[14], Kr[14]);
r                 378 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F2(r, Km[13], Kr[13]);
r                 379 crypto/cast5_generic.c 		t = l; l = r; r = t ^ F1(r, Km[12], Kr[12]);
r                 381 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[11], Kr[11]);
r                 382 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[10], Kr[10]);
r                 383 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[9], Kr[9]);
r                 384 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[8], Kr[8]);
r                 385 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[7], Kr[7]);
r                 386 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[6], Kr[6]);
r                 387 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[5], Kr[5]);
r                 388 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]);
r                 389 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]);
r                 390 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]);
r                 391 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]);
r                 392 crypto/cast5_generic.c 	t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]);
r                 394 crypto/cast5_generic.c 	dst[0] = cpu_to_be32(r);
r                  27 crypto/cast6_generic.c #define F1(D, r, m)  ((I = ((m) + (D))), (I = rol32(I, (r))),   \
r                  29 crypto/cast6_generic.c #define F2(D, r, m)  ((I = ((m) ^ (D))), (I = rol32(I, (r))),   \
r                  31 crypto/cast6_generic.c #define F3(D, r, m)  ((I = ((m) - (D))), (I = rol32(I, (r))),   \
r                 521 crypto/ecc.c   	u64 r[ECC_MAX_DIGITS * 2];
r                 523 crypto/ecc.c   	vli_set(r, product, ndigits * 2);
r                 524 crypto/ecc.c   	while (!vli_is_zero(r + ndigits, ndigits)) {
r                 525 crypto/ecc.c   		vli_umult(t, r + ndigits, c, ndigits);
r                 526 crypto/ecc.c   		vli_clear(r + ndigits, ndigits);
r                 527 crypto/ecc.c   		vli_add(r, r, t, ndigits * 2);
r                 531 crypto/ecc.c   	while (vli_cmp(r, t, ndigits * 2) >= 0)
r                 532 crypto/ecc.c   		vli_sub(r, r, t, ndigits * 2);
r                 533 crypto/ecc.c   	vli_set(result, r, ndigits);
r                 555 crypto/ecc.c   	u64 r[ECC_MAX_DIGITS * 2];
r                 563 crypto/ecc.c   	vli_set(r, product, ndigits);
r                 566 crypto/ecc.c   	vli_clear(r + ndigits, ndigits);
r                 567 crypto/ecc.c   	carry = vli_is_negative(r, ndigits);
r                 569 crypto/ecc.c   		r[ndigits - 1] &= (1ull << 63) - 1;
r                 582 crypto/ecc.c   			vli_sub(r, r, qc, ndigits * 2);
r                 584 crypto/ecc.c   			vli_add(r, r, qc, ndigits * 2);
r                 586 crypto/ecc.c   	while (vli_is_negative(r, ndigits * 2))
r                 587 crypto/ecc.c   		vli_add(r, r, m, ndigits * 2);
r                 588 crypto/ecc.c   	while (vli_cmp(r, m, ndigits * 2) >= 0)
r                 589 crypto/ecc.c   		vli_sub(r, r, m, ndigits * 2);
r                 591 crypto/ecc.c   	vli_set(result, r, ndigits);
r                 653 crypto/ecc.c   	u64 r[ECC_MAX_DIGITS * 2];
r                 659 crypto/ecc.c   	vli_mult(r, mod, q + ndigits, ndigits);
r                 660 crypto/ecc.c   	vli_sub(r, product, r, ndigits * 2);
r                 661 crypto/ecc.c   	while (!vli_is_zero(r + ndigits, ndigits) ||
r                 662 crypto/ecc.c   	       vli_cmp(r, mod, ndigits) != -1) {
r                 665 crypto/ecc.c   		carry = vli_sub(r, r, mod, ndigits);
r                 666 crypto/ecc.c   		vli_usub(r + ndigits, r + ndigits, carry, ndigits);
r                 668 crypto/ecc.c   	vli_set(result, r, ndigits);
r                  77 crypto/ecrdsa.c 	u64 r[ECRDSA_MAX_DIGITS]; /* witness (r) */
r                 111 crypto/ecrdsa.c 	vli_from_be64(r, sig + ndigits * sizeof(u64), ndigits);
r                 114 crypto/ecrdsa.c 	if (vli_is_zero(r, ndigits) ||
r                 115 crypto/ecrdsa.c 	    vli_cmp(r, ctx->curve->n, ndigits) == 1 ||
r                 133 crypto/ecrdsa.c 	vli_sub(_r, ctx->curve->n, r, ndigits);
r                 143 crypto/ecrdsa.c 	if (!vli_cmp(cc.x, r, ndigits))
r                 240 crypto/fcrypt.c 		__be32 l, r;
r                 245 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x0]);
r                 246 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x1]);
r                 247 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x2]);
r                 248 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x3]);
r                 249 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x4]);
r                 250 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x5]);
r                 251 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x6]);
r                 252 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x7]);
r                 253 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x8]);
r                 254 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x9]);
r                 255 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xa]);
r                 256 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xb]);
r                 257 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xc]);
r                 258 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xd]);
r                 259 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xe]);
r                 260 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xf]);
r                 272 crypto/fcrypt.c 		__be32 l, r;
r                 277 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xf]);
r                 278 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xe]);
r                 279 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xd]);
r                 280 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xc]);
r                 281 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0xb]);
r                 282 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0xa]);
r                 283 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x9]);
r                 284 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x8]);
r                 285 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x7]);
r                 286 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x6]);
r                 287 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x5]);
r                 288 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x4]);
r                 289 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x3]);
r                 290 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x2]);
r                 291 crypto/fcrypt.c 	F_ENCRYPT(X.l, X.r, ctx->sched[0x1]);
r                 292 crypto/fcrypt.c 	F_ENCRYPT(X.r, X.l, ctx->sched[0x0]);
r                 159 crypto/gf128mul.c void gf128mul_x8_ble(le128 *r, const le128 *x)
r                 165 crypto/gf128mul.c 	r->a = cpu_to_le64((a << 8) | (b >> 56));
r                 166 crypto/gf128mul.c 	r->b = cpu_to_le64((b << 8) ^ _tt);
r                 170 crypto/gf128mul.c void gf128mul_lle(be128 *r, const be128 *b)
r                 175 crypto/gf128mul.c 	p[0] = *r;
r                 179 crypto/gf128mul.c 	memset(r, 0, sizeof(*r));
r                 184 crypto/gf128mul.c 			be128_xor(r, r, &p[0]);
r                 186 crypto/gf128mul.c 			be128_xor(r, r, &p[1]);
r                 188 crypto/gf128mul.c 			be128_xor(r, r, &p[2]);
r                 190 crypto/gf128mul.c 			be128_xor(r, r, &p[3]);
r                 192 crypto/gf128mul.c 			be128_xor(r, r, &p[4]);
r                 194 crypto/gf128mul.c 			be128_xor(r, r, &p[5]);
r                 196 crypto/gf128mul.c 			be128_xor(r, r, &p[6]);
r                 198 crypto/gf128mul.c 			be128_xor(r, r, &p[7]);
r                 203 crypto/gf128mul.c 		gf128mul_x8_lle(r);
r                 208 crypto/gf128mul.c void gf128mul_bbe(be128 *r, const be128 *b)
r                 213 crypto/gf128mul.c 	p[0] = *r;
r                 217 crypto/gf128mul.c 	memset(r, 0, sizeof(*r));
r                 222 crypto/gf128mul.c 			be128_xor(r, r, &p[7]);
r                 224 crypto/gf128mul.c 			be128_xor(r, r, &p[6]);
r                 226 crypto/gf128mul.c 			be128_xor(r, r, &p[5]);
r                 228 crypto/gf128mul.c 			be128_xor(r, r, &p[4]);
r                 230 crypto/gf128mul.c 			be128_xor(r, r, &p[3]);
r                 232 crypto/gf128mul.c 			be128_xor(r, r, &p[2]);
r                 234 crypto/gf128mul.c 			be128_xor(r, r, &p[1]);
r                 236 crypto/gf128mul.c 			be128_xor(r, r, &p[0]);
r                 241 crypto/gf128mul.c 		gf128mul_x8_bbe(r);
r                 315 crypto/gf128mul.c 	be128 r[1];
r                 318 crypto/gf128mul.c 	*r = t->t[0]->t[ap[15]];
r                 320 crypto/gf128mul.c 		be128_xor(r, r, &t->t[i]->t[ap[15 - i]]);
r                 321 crypto/gf128mul.c 	*a = *r;
r                 388 crypto/gf128mul.c 	be128 r[1];
r                 391 crypto/gf128mul.c 	*r = t->t[ap[15]];
r                 393 crypto/gf128mul.c 		gf128mul_x8_lle(r);
r                 394 crypto/gf128mul.c 		be128_xor(r, r, &t->t[ap[i]]);
r                 396 crypto/gf128mul.c 	*a = *r;
r                 403 crypto/gf128mul.c 	be128 r[1];
r                 406 crypto/gf128mul.c 	*r = t->t[ap[0]];
r                 408 crypto/gf128mul.c 		gf128mul_x8_bbe(r);
r                 409 crypto/gf128mul.c 		be128_xor(r, r, &t->t[ap[i]]);
r                 411 crypto/gf128mul.c 	*a = *r;
r                 761 crypto/khazad.c 	int r;
r                 770 crypto/khazad.c 	for (r = 0; r <= KHAZAD_ROUNDS; r++) {
r                 771 crypto/khazad.c 		ctx->E[r] = T0[(int)(K1 >> 56)       ] ^
r                 779 crypto/khazad.c 			    c[r] ^ K2;
r                 781 crypto/khazad.c 		K1 = ctx->E[r];
r                 785 crypto/khazad.c 	for (r = 1; r < KHAZAD_ROUNDS; r++) {
r                 786 crypto/khazad.c 		K1 = ctx->E[KHAZAD_ROUNDS - r];
r                 787 crypto/khazad.c 		ctx->D[r] = T0[(int)S[(int)(K1 >> 56)       ] & 0xff] ^
r                 807 crypto/khazad.c 	int r;
r                 812 crypto/khazad.c 	for (r = 1; r < KHAZAD_ROUNDS; r++) {
r                 821 crypto/khazad.c 			roundKey[r];
r                  18 crypto/michael_mic.c 	u32 l, r;
r                  25 crypto/michael_mic.c 	u32 l, r;
r                  34 crypto/michael_mic.c #define michael_block(l, r)	\
r                  36 crypto/michael_mic.c 	r ^= rol32(l, 17);	\
r                  37 crypto/michael_mic.c 	l += r;			\
r                  38 crypto/michael_mic.c 	r ^= xswap(l);		\
r                  39 crypto/michael_mic.c 	l += r;			\
r                  40 crypto/michael_mic.c 	r ^= rol32(l, 3);	\
r                  41 crypto/michael_mic.c 	l += r;			\
r                  42 crypto/michael_mic.c 	r ^= ror32(l, 2);	\
r                  43 crypto/michael_mic.c 	l += r;			\
r                  53 crypto/michael_mic.c 	mctx->r = ctx->r;
r                  79 crypto/michael_mic.c 		michael_block(mctx->l, mctx->r);
r                  87 crypto/michael_mic.c 		michael_block(mctx->l, mctx->r);
r                 122 crypto/michael_mic.c 	michael_block(mctx->l, mctx->r);
r                 124 crypto/michael_mic.c 	michael_block(mctx->l, mctx->r);
r                 127 crypto/michael_mic.c 	dst[1] = cpu_to_le32(mctx->r);
r                 146 crypto/michael_mic.c 	mctx->r = le32_to_cpu(data[1]);
r                  53 crypto/poly1305_generic.c 	key->r[0] = (get_unaligned_le32(raw_key +  0) >> 0) & 0x3ffffff;
r                  54 crypto/poly1305_generic.c 	key->r[1] = (get_unaligned_le32(raw_key +  3) >> 2) & 0x3ffff03;
r                  55 crypto/poly1305_generic.c 	key->r[2] = (get_unaligned_le32(raw_key +  6) >> 4) & 0x3ffc0ff;
r                  56 crypto/poly1305_generic.c 	key->r[3] = (get_unaligned_le32(raw_key +  9) >> 6) & 0x3f03fff;
r                  57 crypto/poly1305_generic.c 	key->r[4] = (get_unaligned_le32(raw_key + 12) >> 8) & 0x00fffff;
r                  71 crypto/poly1305_generic.c 			poly1305_core_setkey(&dctx->r, src);
r                 103 crypto/poly1305_generic.c 	r0 = key->r[0];
r                 104 crypto/poly1305_generic.c 	r1 = key->r[1];
r                 105 crypto/poly1305_generic.c 	r2 = key->r[2];
r                 106 crypto/poly1305_generic.c 	r3 = key->r[3];
r                 107 crypto/poly1305_generic.c 	r4 = key->r[4];
r                 177 crypto/poly1305_generic.c 	poly1305_blocks_internal(&dctx->h, &dctx->r,
r                 935 crypto/streebog_generic.c 			    struct streebog_uint512 *r)
r                 947 crypto/streebog_generic.c 		r->qword[i] = cpu_to_le64(sum);
r                 783 crypto/wp512.c 	int i, r;
r                 802 crypto/wp512.c 	for (r = 0; r < WHIRLPOOL_ROUNDS; r++) {
r                 812 crypto/wp512.c 			   rc[r];
r                 105 drivers/acpi/acpi_adxl.c 	union acpi_object argv4[2], *results, *r;
r                 121 drivers/acpi/acpi_adxl.c 	r = results->package.elements + 1;
r                 122 drivers/acpi/acpi_adxl.c 	cnt = r->package.count;
r                 127 drivers/acpi/acpi_adxl.c 	r = r->package.elements;
r                 130 drivers/acpi/acpi_adxl.c 		component_values[i] = r[i].integer.value;
r                 222 drivers/acpi/acpi_extlog.c 	struct resource *r;
r                 239 drivers/acpi/acpi_extlog.c 	r = request_mem_region(l1_dirbase, l1_hdr_size, "L1 DIR HDR");
r                 240 drivers/acpi/acpi_extlog.c 	if (!r) {
r                 257 drivers/acpi/acpi_extlog.c 	r = request_mem_region(l1_dirbase, l1_size, "L1 Table");
r                 258 drivers/acpi/acpi_extlog.c 	if (!r) {
r                 268 drivers/acpi/acpi_extlog.c 	r = request_mem_region(elog_base, elog_size, "Elog Table");
r                 269 drivers/acpi/acpi_extlog.c 	if (!r) {
r                 379 drivers/acpi/acpi_lpss.c 	struct resource r;
r                 380 drivers/acpi/acpi_lpss.c 	return !acpi_dev_resource_memory(res, &r);
r                 233 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_2(a, r)        ((((u8)  (a)) & 0x02) ? (r)+1 : (r))
r                 234 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_4(a, r)        ((((u8)  (a)) & 0x0C) ? \
r                 235 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_2  ((a)>>2,  (r)+2) : \
r                 236 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_2  ((a), (r)))
r                 237 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_8(a, r)        ((((u8)  (a)) & 0xF0) ? \
r                 238 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_4  ((a)>>4,  (r)+4) : \
r                 239 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_4  ((a), (r)))
r                 240 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_16(a, r)       ((((u16) (a)) & 0xFF00) ? \
r                 241 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_8  ((a)>>8,  (r)+8) : \
r                 242 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_8  ((a), (r)))
r                 243 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_32(a, r)       ((((u32) (a)) & 0xFFFF0000) ? \
r                 244 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_16 ((a)>>16, (r)+16) : \
r                 245 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_16 ((a), (r)))
r                 246 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_LAST_BIT_64(a, r)       ((((u64) (a)) & 0xFFFFFFFF00000000) ? \
r                 247 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_32 ((a)>>32, (r)+32) : \
r                 248 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_LAST_BIT_32 ((a), (r)))
r                 255 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_2(a, r)       ((((u8) (a)) & 0x01) ? (r) : (r)+1)
r                 256 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_4(a, r)       ((((u8) (a)) & 0x03) ? \
r                 257 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_2  ((a), (r)) : \
r                 258 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_2  ((a)>>2, (r)+2))
r                 259 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_8(a, r)       ((((u8) (a)) & 0x0F) ? \
r                 260 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_4  ((a), (r)) : \
r                 261 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_4  ((a)>>4, (r)+4))
r                 262 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_16(a, r)      ((((u16) (a)) & 0x00FF) ? \
r                 263 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_8  ((a), (r)) : \
r                 264 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_8  ((a)>>8, (r)+8))
r                 265 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_32(a, r)      ((((u32) (a)) & 0x0000FFFF) ? \
r                 266 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_16 ((a), (r)) : \
r                 267 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_16 ((a)>>16, (r)+16))
r                 268 drivers/acpi/acpica/acmacros.h #define __ACPI_FIND_FIRST_BIT_64(a, r)      ((((u64) (a)) & 0x00000000FFFFFFFF) ? \
r                 269 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_32 ((a), (r)) : \
r                 270 drivers/acpi/acpica/acmacros.h 											 __ACPI_FIND_FIRST_BIT_32 ((a)>>32, (r)+32))
r                  97 drivers/acpi/acpica/amlresrc.h #define ACPI_AML_SIZE_LARGE(r)      (sizeof (r) - sizeof (struct aml_resource_large_header))
r                  98 drivers/acpi/acpica/amlresrc.h #define ACPI_AML_SIZE_SMALL(r)      (sizeof (r) - sizeof (struct aml_resource_small_header))
r                 468 drivers/acpi/apei/apei-base.c 	struct resource *r;
r                 501 drivers/acpi/apei/apei-base.c 		r = request_mem_region(res->start, res->end - res->start,
r                 503 drivers/acpi/apei/apei-base.c 		if (!r) {
r                 514 drivers/acpi/apei/apei-base.c 		r = request_region(res->start, res->end - res->start, desc);
r                 515 drivers/acpi/apei/apei-base.c 		if (!r) {
r                 294 drivers/acpi/apei/einj.c 	struct resource *r;
r                 299 drivers/acpi/apei/einj.c 	r = request_mem_region(trigger_paddr, sizeof(*trigger_tab),
r                 301 drivers/acpi/apei/einj.c 	if (!r) {
r                 325 drivers/acpi/apei/einj.c 	r = request_mem_region(trigger_paddr + sizeof(*trigger_tab),
r                 328 drivers/acpi/apei/einj.c 	if (!r) {
r                1099 drivers/acpi/apei/erst.c 	struct resource *r;
r                1150 drivers/acpi/apei/erst.c 	r = request_mem_region(erst_erange.base, erst_erange.size, "APEI ERST");
r                1151 drivers/acpi/apei/erst.c 	if (!r) {
r                1462 drivers/acpi/arm64/iort.c 	struct resource *r;
r                1477 drivers/acpi/arm64/iort.c 	r = kcalloc(count, sizeof(*r), GFP_KERNEL);
r                1478 drivers/acpi/arm64/iort.c 	if (!r) {
r                1483 drivers/acpi/arm64/iort.c 	ops->dev_init_resources(r, node);
r                1485 drivers/acpi/arm64/iort.c 	ret = platform_device_add_resources(pdev, r, count);
r                1490 drivers/acpi/arm64/iort.c 	kfree(r);
r                  79 drivers/acpi/evged.c 	struct resource r;
r                  88 drivers/acpi/evged.c 	if (!acpi_dev_resource_interrupt(ares, 0, &r)) {
r                 100 drivers/acpi/evged.c 	irq = r.start;
r                 127 drivers/acpi/evged.c 	if (r.flags & IORESOURCE_IRQ_SHAREABLE)
r                  12 drivers/acpi/pmic/intel_pmic.h 	int (*get_power)(struct regmap *r, int reg, int bit, u64 *value);
r                  13 drivers/acpi/pmic/intel_pmic.h 	int (*update_power)(struct regmap *r, int reg, int bit, bool on);
r                  14 drivers/acpi/pmic/intel_pmic.h 	int (*get_raw_temp)(struct regmap *r, int reg);
r                  15 drivers/acpi/pmic/intel_pmic.h 	int (*update_aux)(struct regmap *r, int reg, int raw_temp);
r                  16 drivers/acpi/pmic/intel_pmic.h 	int (*get_policy)(struct regmap *r, int reg, int bit, u64 *value);
r                  17 drivers/acpi/pmic/intel_pmic.h 	int (*update_policy)(struct regmap *r, int reg, int bit, int enable);
r                  18 drivers/acpi/pmic/intel_pmic.h 	int (*exec_mipi_pmic_seq_element)(struct regmap *r, u16 i2c_address,
r                 911 drivers/acpi/power.c 		struct acpi_power_resource *r;
r                 913 drivers/acpi/power.c 		list_for_each_entry(r, &acpi_power_resource_list, list_node)
r                 914 drivers/acpi/power.c 			if (r->order > resource->order) {
r                 915 drivers/acpi/power.c 				list_add_tail(&resource->list_node, &r->list_node);
r                 733 drivers/amba/bus.c 	int r;
r                 735 drivers/amba/bus.c 	r = (pcdev->periphid & d->mask) == d->id;
r                 737 drivers/amba/bus.c 		r &= d->parent == dev->parent;
r                 739 drivers/amba/bus.c 		r &= strcmp(dev_name(dev), d->busid) == 0;
r                 741 drivers/amba/bus.c 	if (r) {
r                 746 drivers/amba/bus.c 	return r;
r                 128 drivers/ata/ata_generic.c 	u32 r;
r                 132 drivers/ata/ata_generic.c 	pci_read_config_dword(dev, 0xF8, &r);
r                 134 drivers/ata/ata_generic.c 	if (r != 0)
r                3410 drivers/ata/libata-scsi.c 	size_t r;
r                3432 drivers/ata/libata-scsi.c 	r = sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, len);
r                3435 drivers/ata/libata-scsi.c 	return r;
r                 343 drivers/ata/pata_ali.c 	u8 r;
r                 349 drivers/ata/pata_ali.c 		pci_read_config_byte(ali_isa_bridge, 0x58, &r);
r                 350 drivers/ata/pata_ali.c 		r &= ~port_bit;
r                 351 drivers/ata/pata_ali.c 		pci_write_config_byte(ali_isa_bridge, 0x58, r);
r                 352 drivers/ata/pata_ali.c 		r |= port_bit;
r                 353 drivers/ata/pata_ali.c 		pci_write_config_byte(ali_isa_bridge, 0x58, r);
r                 184 drivers/ata/pata_amd.c 	u8 r;
r                 195 drivers/ata/pata_amd.c 	pci_read_config_byte(pdev, 0x41, &r);
r                 196 drivers/ata/pata_amd.c 	r &= ~fifobit[ap->port_no];
r                 197 drivers/ata/pata_amd.c 	r |= fifo;
r                 198 drivers/ata/pata_amd.c 	pci_write_config_byte(pdev, 0x41, r);
r                  76 drivers/ata/pata_cmd64x.c 	u8 r;
r                  79 drivers/ata/pata_cmd64x.c 	pci_read_config_byte(pdev, BMIDECSR, &r);
r                  80 drivers/ata/pata_cmd64x.c 	if (r & (1 << ap->port_no))
r                 119 drivers/ata/pata_hpt3x3.c 	u8 r = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS);
r                 120 drivers/ata/pata_hpt3x3.c 	r |= ATA_DMA_INTR | ATA_DMA_ERR;
r                 121 drivers/ata/pata_hpt3x3.c 	iowrite8(r, ap->ioaddr.bmdma_addr + ATA_DMA_STATUS);
r                 429 drivers/ata/pata_legacy.c 	u8 r;
r                 434 drivers/ata/pata_legacy.c 	r = inb(0x24);
r                 436 drivers/ata/pata_legacy.c 	return r;
r                1037 drivers/ata/pata_legacy.c 		u16 r;
r                1038 drivers/ata/pata_legacy.c 		pci_read_config_word(p, 0x6C, &r);
r                1039 drivers/ata/pata_legacy.c 		if (r & 0x8000) {
r                1041 drivers/ata/pata_legacy.c 			if (r & 0x4000)
r                1081 drivers/ata/pata_legacy.c static __init void qdi65_identify_port(u8 r, u8 res, unsigned long port)
r                1085 drivers/ata/pata_legacy.c 	if ((r & 0xF0) == 0xC0) {
r                1087 drivers/ata/pata_legacy.c 		if (r & 8)
r                1090 drivers/ata/pata_legacy.c 		legacy_probe_add(ide_port[r & 0x01], 14 + (r & 0x01),
r                1093 drivers/ata/pata_legacy.c 	if (((r & 0xF0) == 0xA0) || (r & 0xF0) == 0x50) {
r                1102 drivers/ata/pata_legacy.c 			legacy_probe_add(ide_port[r & 0x01], 14 + (r & 0x01),
r                1125 drivers/ata/pata_legacy.c 		u8 r, res;
r                1133 drivers/ata/pata_legacy.c 			r = inb(port);
r                1139 drivers/ata/pata_legacy.c 			outb(r, port);
r                1149 drivers/ata/pata_legacy.c 			r = inb(port + 1);
r                1152 drivers/ata/pata_legacy.c 			if ((r & 2) >> 1 == i)
r                1153 drivers/ata/pata_legacy.c 				qdi65_identify_port(r, res, port);
r                1182 drivers/ata/pata_legacy.c 		int r;
r                1186 drivers/ata/pata_legacy.c 		for (r = 0; r < 6; r++) {
r                1187 drivers/ata/pata_legacy.c 			if (pci_resource_start(p, r) == 0x1f0)
r                1189 drivers/ata/pata_legacy.c 			if (pci_resource_start(p, r) == 0x170)
r                 321 drivers/ata/pata_optidma.c 	u8 r;
r                 326 drivers/ata/pata_optidma.c 		pci_read_config_byte(pdev, 0x43, &r);
r                 328 drivers/ata/pata_optidma.c 		r &= (0x0F << nybble);
r                 329 drivers/ata/pata_optidma.c 		r |= (optidma_make_bits43(&link->device[0]) +
r                 331 drivers/ata/pata_optidma.c 		pci_write_config_byte(pdev, 0x43, r);
r                 362 drivers/ata/pata_optidma.c 	u8 r;
r                 373 drivers/ata/pata_optidma.c 	pci_read_config_byte(dev1, 0x08, &r);
r                 374 drivers/ata/pata_optidma.c 	if (r < 0x10)
r                 377 drivers/ata/pata_optidma.c 	pci_read_config_byte(dev1, 0x5F, &r);
r                 378 drivers/ata/pata_optidma.c 	ioport |= (r << 8);
r                 385 drivers/ata/pata_optidma.c 	pci_read_config_byte(pdev, 0x42, &r);
r                 386 drivers/ata/pata_optidma.c 	if ((r & 0x36) != 0x36)
r                 388 drivers/ata/pata_optidma.c 	pci_read_config_byte(dev1, 0x52, &r);
r                 389 drivers/ata/pata_optidma.c 	if (r & 0x80)	/* IDEDIR disabled */
r                  50 drivers/ata/pata_sil680.c static unsigned long sil680_selreg(struct ata_port *ap, int r)
r                  52 drivers/ata/pata_sil680.c 	unsigned long base = 0xA0 + r;
r                  67 drivers/ata/pata_sil680.c static unsigned long sil680_seldev(struct ata_port *ap, struct ata_device *adev, int r)
r                  69 drivers/ata/pata_sil680.c 	unsigned long base = 0xA0 + r;
r                 874 drivers/atm/ambassador.c static int make_rate (unsigned int rate, rounding r,
r                 898 drivers/atm/ambassador.c     if (r == round_up) {
r                 930 drivers/atm/ambassador.c     switch (r) {
r                 969 drivers/atm/ambassador.c     if (r == round_down) {
r                1053 drivers/atm/ambassador.c 	  rounding r;
r                1055 drivers/atm/ambassador.c 	    r = round_down;
r                1058 drivers/atm/ambassador.c 	    r = round_up;
r                1060 drivers/atm/ambassador.c 	  error = make_rate (pcr, r, &tx_rate_bits, NULL);
r                1443 drivers/atm/ambassador.c       amb_rxq * r = &dev->rxq[pool];
r                1445 drivers/atm/ambassador.c 			r->pending, r->maximum, r->buffers_wanted, r->low, r->emptied);
r                1454 drivers/atm/ambassador.c       amb_rxq * r = &dev->rxq[pool];
r                1455 drivers/atm/ambassador.c       count += sprintf (page+count, " %u", r->buffer_size);
r                 160 drivers/atm/eni.c #define eni_in(r)	readl(eni_dev->reg+(r)*4)
r                 161 drivers/atm/eni.c #define eni_out(v,r)	writel((v),eni_dev->reg+(r)*4)
r                 436 drivers/atm/firestream.c static int make_rate(unsigned int rate, int r,
r                 463 drivers/atm/firestream.c 		if (r == ROUND_UP) {
r                 497 drivers/atm/firestream.c 		switch (r) {
r                 536 drivers/atm/firestream.c 		if (r == ROUND_DOWN) {
r                 991 drivers/atm/firestream.c 				int r;
r                 993 drivers/atm/firestream.c 					r = ROUND_DOWN;
r                 996 drivers/atm/firestream.c 					r = ROUND_UP;
r                 998 drivers/atm/firestream.c 				error = make_rate (pcr, r, &tmc0, NULL);
r                 572 drivers/atm/horizon.c static int make_rate (const hrz_dev * dev, u32 c, rounding r,
r                 589 drivers/atm/horizon.c 		r == round_up ? "up" : r == round_down ? "down" : "nearest");
r                 607 drivers/atm/horizon.c 		switch (r) {
r                 640 drivers/atm/horizon.c 			switch (r) {
r                 658 drivers/atm/horizon.c 	if (r == round_down)
r                 679 drivers/atm/horizon.c static int make_rate_with_tolerance (const hrz_dev * dev, u32 c, rounding r, unsigned int tol,
r                 684 drivers/atm/horizon.c 	  c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol);
r                 699 drivers/atm/horizon.c     return make_rate (dev, c, r, bit_pattern, actual);
r                2225 drivers/atm/horizon.c 	rounding r;
r                2232 drivers/atm/horizon.c 	  r = round_down;
r                2238 drivers/atm/horizon.c 	  r = round_down;
r                2241 drivers/atm/horizon.c 	  r = round_up;
r                2243 drivers/atm/horizon.c 	error = make_rate_with_tolerance (dev, pcr, r, 10,
r                1598 drivers/atm/idt77252.c 	int e, r;
r                1614 drivers/atm/idt77252.c 	r = n;
r                1625 drivers/atm/idt77252.c 	while (r > 0) {
r                1641 drivers/atm/idt77252.c 			r--;
r                2021 drivers/atm/idt77252.c 	int r = 1;
r                2027 drivers/atm/idt77252.c 		r += 16;
r                2031 drivers/atm/idt77252.c 		r += 8;
r                2035 drivers/atm/idt77252.c 		r += 4;
r                2039 drivers/atm/idt77252.c 		r += 2;
r                2042 drivers/atm/idt77252.c 		r += 1;
r                2043 drivers/atm/idt77252.c 	return r;
r                1136 drivers/atm/lanai.c 	int r;
r                1137 drivers/atm/lanai.c 	r = endptr * 16;
r                1138 drivers/atm/lanai.c 	r -= ((unsigned long) lvcc->tx.buf.ptr) -
r                1140 drivers/atm/lanai.c 	r -= 16;	/* Leave "bubble" - if start==end it looks empty */
r                1141 drivers/atm/lanai.c 	if (r < 0)
r                1142 drivers/atm/lanai.c 		r += lanai_buf_size(&lvcc->tx.buf);
r                1143 drivers/atm/lanai.c 	return r;
r                1577 drivers/atm/nicstar.c 	int e, r;
r                1597 drivers/atm/nicstar.c 	r = n;
r                1601 drivers/atm/nicstar.c 	while (r > 0) {
r                1606 drivers/atm/nicstar.c 			r--;
r                 127 drivers/atm/zatm.c #define zin_n(r) inl(zatm_dev->base+r*4)
r                 128 drivers/atm/zatm.c #define zin(r) inl(zatm_dev->base+uPD98401_##r*4)
r                 129 drivers/atm/zatm.c #define zout(v,r) outl(v,zatm_dev->base+uPD98401_##r*4)
r                3322 drivers/base/core.c 	int r;
r                3326 drivers/base/core.c 	r = dev_vprintk_emit(level, dev, fmt, args);
r                3330 drivers/base/core.c 	return r;
r                  55 drivers/base/platform.c 		struct resource *r = &dev->resource[i];
r                  57 drivers/base/platform.c 		if (type == resource_type(r) && num-- == 0)
r                  58 drivers/base/platform.c 			return r;
r                  92 drivers/base/platform.c 	struct resource *r;
r                 101 drivers/base/platform.c 	r = platform_get_resource(dev, IORESOURCE_IRQ, num);
r                 103 drivers/base/platform.c 		if (r && r->flags & IORESOURCE_DISABLED) {
r                 106 drivers/base/platform.c 			ret = acpi_irq_get(ACPI_HANDLE(&dev->dev), num, r);
r                 118 drivers/base/platform.c 	if (r && r->flags & IORESOURCE_BITS) {
r                 121 drivers/base/platform.c 		irqd = irq_get_irq_data(r->start);
r                 124 drivers/base/platform.c 		irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS);
r                 127 drivers/base/platform.c 	if (r)
r                 128 drivers/base/platform.c 		return r->start;
r                 233 drivers/base/platform.c 		struct resource *r = &dev->resource[i];
r                 235 drivers/base/platform.c 		if (unlikely(!r->name))
r                 238 drivers/base/platform.c 		if (type == resource_type(r) && !strcmp(r->name, name))
r                 239 drivers/base/platform.c 			return r;
r                 248 drivers/base/platform.c 	struct resource *r;
r                 258 drivers/base/platform.c 	r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name);
r                 259 drivers/base/platform.c 	if (r)
r                 260 drivers/base/platform.c 		return r->start;
r                 410 drivers/base/platform.c 	struct resource *r = NULL;
r                 413 drivers/base/platform.c 		r = kmemdup(res, sizeof(struct resource) * num, GFP_KERNEL);
r                 414 drivers/base/platform.c 		if (!r)
r                 419 drivers/base/platform.c 	pdev->resource = r;
r                 511 drivers/base/platform.c 		struct resource *p, *r = &pdev->resource[i];
r                 513 drivers/base/platform.c 		if (r->name == NULL)
r                 514 drivers/base/platform.c 			r->name = dev_name(&pdev->dev);
r                 516 drivers/base/platform.c 		p = r->parent;
r                 518 drivers/base/platform.c 			if (resource_type(r) == IORESOURCE_MEM)
r                 520 drivers/base/platform.c 			else if (resource_type(r) == IORESOURCE_IO)
r                 525 drivers/base/platform.c 			ret = insert_resource(p, r);
r                 527 drivers/base/platform.c 				dev_err(&pdev->dev, "failed to claim resource %d: %pR\n", i, r);
r                 547 drivers/base/platform.c 		struct resource *r = &pdev->resource[i];
r                 548 drivers/base/platform.c 		if (r->parent)
r                 549 drivers/base/platform.c 			release_resource(r);
r                 578 drivers/base/platform.c 			struct resource *r = &pdev->resource[i];
r                 579 drivers/base/platform.c 			if (r->parent)
r                 580 drivers/base/platform.c 				release_resource(r);
r                 646 drivers/base/regmap/regcache.c 	struct reg_default *r;
r                 651 drivers/base/regmap/regcache.c 	r = bsearch(&key, map->reg_defaults, map->num_reg_defaults,
r                 654 drivers/base/regmap/regcache.c 	if (r)
r                 655 drivers/base/regmap/regcache.c 		return r - map->reg_defaults;
r                 868 drivers/base/regmap/regmap-irq.c 	struct regmap_irq_chip_data **r = res;
r                 870 drivers/base/regmap/regmap-irq.c 	if (!r || !*r) {
r                 871 drivers/base/regmap/regmap-irq.c 		WARN_ON(!r || !*r);
r                 874 drivers/base/regmap/regmap-irq.c 	return *r == data;
r                  63 drivers/base/regmap/regmap.c 	const struct regmap_range *r;
r                  66 drivers/base/regmap/regmap.c 	for (i = 0, r = ranges; i < nranges; i++, r++)
r                  67 drivers/base/regmap/regmap.c 		if (regmap_reg_in_range(reg, r))
r                1365 drivers/base/regmap/regmap.c 	struct regmap **r = res;
r                1366 drivers/base/regmap/regmap.c 	if (!r || !*r) {
r                1367 drivers/base/regmap/regmap.c 		WARN_ON(!r || !*r);
r                1373 drivers/base/regmap/regmap.c 		return (*r)->name == data;
r                1392 drivers/base/regmap/regmap.c 	struct regmap **r = devres_find(dev, dev_get_regmap_release,
r                1395 drivers/base/regmap/regmap.c 	if (!r)
r                1397 drivers/base/regmap/regmap.c 	return *r;
r                  84 drivers/block/drbd/drbd_actlog.c 	int r;
r                  87 drivers/block/drbd/drbd_actlog.c 		   (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 ||
r                  90 drivers/block/drbd/drbd_actlog.c 	if (r)
r                 185 drivers/block/drbd/drbd_main.c 	struct drbd_request *r;
r                 194 drivers/block/drbd/drbd_main.c 	list_for_each_entry(r, &connection->transfer_log, tl_requests) {
r                 195 drivers/block/drbd/drbd_main.c 		const unsigned s = r->rq_state;
r                 203 drivers/block/drbd/drbd_main.c 			req = r;
r                 207 drivers/block/drbd/drbd_main.c 			if (r->epoch != expect_epoch)
r                 242 drivers/block/drbd/drbd_main.c 	list_for_each_entry_safe_from(req, r, &connection->transfer_log, tl_requests) {
r                 268 drivers/block/drbd/drbd_main.c 	struct drbd_request *req, *r;
r                 270 drivers/block/drbd/drbd_main.c 	list_for_each_entry_safe(req, r, &connection->transfer_log, tl_requests)
r                 301 drivers/block/drbd/drbd_main.c 	struct drbd_request *req, *r;
r                 304 drivers/block/drbd/drbd_main.c 	list_for_each_entry_safe(req, r, &connection->transfer_log, tl_requests) {
r                2429 drivers/block/drbd/drbd_main.c 	int r = 0;
r                2433 drivers/block/drbd/drbd_main.c 		r = bdi_bits;
r                2439 drivers/block/drbd/drbd_main.c 		r |= (1 << WB_async_congested);
r                2446 drivers/block/drbd/drbd_main.c 			r |= (1 << WB_sync_congested);
r                2449 drivers/block/drbd/drbd_main.c 		r &= bdi_bits;
r                2456 drivers/block/drbd/drbd_main.c 		r = bdi_congested(q->backing_dev_info, bdi_bits);
r                2458 drivers/block/drbd/drbd_main.c 		if (r)
r                2464 drivers/block/drbd/drbd_main.c 		r |= (1 << WB_async_congested);
r                2470 drivers/block/drbd/drbd_main.c 	return r;
r                 478 drivers/block/drbd/drbd_nl.c 	int r;
r                 520 drivers/block/drbd/drbd_nl.c 	r = conn_khelper(connection, "fence-peer");
r                 522 drivers/block/drbd/drbd_nl.c 	switch ((r>>8) & 0xff) {
r                 562 drivers/block/drbd/drbd_nl.c 		drbd_err(connection, "fence-peer helper broken, returned %d\n", (r>>8)&0xff);
r                 567 drivers/block/drbd/drbd_nl.c 		  (r>>8) & 0xff, ex_to_string);
r                1839 drivers/block/drbd/drbd_receiver.c 			      struct drbd_peer_request *r, void *d,
r                1842 drivers/block/drbd/drbd_receiver.c 	unsigned int tmp = r->i.size;
r                1843 drivers/block/drbd/drbd_receiver.c 	r->i.size = payload_size;
r                1844 drivers/block/drbd/drbd_receiver.c 	drbd_csum_ee(h, r, d);
r                1845 drivers/block/drbd/drbd_receiver.c 	r->i.size = tmp;
r                4827 drivers/block/drbd/drbd_receiver.c 	unsigned int r;
r                4838 drivers/block/drbd/drbd_receiver.c 	r = (total > UINT_MAX/1000) ? (total / (plain/1000))
r                4841 drivers/block/drbd/drbd_receiver.c 	if (r > 1000)
r                4842 drivers/block/drbd/drbd_receiver.c 		r = 1000;
r                4844 drivers/block/drbd/drbd_receiver.c 	r = 1000 - r;
r                4850 drivers/block/drbd/drbd_receiver.c 			total, r/10, r % 10);
r                1737 drivers/block/drbd/drbd_worker.c 	int r;
r                1754 drivers/block/drbd/drbd_worker.c 			r = drbd_khelper(device, "before-resync-target");
r                1755 drivers/block/drbd/drbd_worker.c 			r = (r >> 8) & 0xff;
r                1756 drivers/block/drbd/drbd_worker.c 			if (r > 0) {
r                1758 drivers/block/drbd/drbd_worker.c 					 "dropping connection.\n", r);
r                1763 drivers/block/drbd/drbd_worker.c 			r = drbd_khelper(device, "before-resync-source");
r                1764 drivers/block/drbd/drbd_worker.c 			r = (r >> 8) & 0xff;
r                1765 drivers/block/drbd/drbd_worker.c 			if (r > 0) {
r                1766 drivers/block/drbd/drbd_worker.c 				if (r == 3) {
r                1768 drivers/block/drbd/drbd_worker.c 						 "ignoring. Old userland tools?", r);
r                1771 drivers/block/drbd/drbd_worker.c 						 "dropping connection.\n", r);
r                1813 drivers/block/drbd/drbd_worker.c 	r = _drbd_set_state(device, ns, CS_VERBOSE, NULL);
r                1817 drivers/block/drbd/drbd_worker.c 		r = SS_UNKNOWN_ERROR;
r                1819 drivers/block/drbd/drbd_worker.c 	if (r == SS_SUCCESS) {
r                1846 drivers/block/drbd/drbd_worker.c 	if (r == SS_SUCCESS) {
r                1466 drivers/block/floppy.c 	int r;
r                1497 drivers/block/floppy.c 	r = 0;
r                1499 drivers/block/floppy.c 		r |= output_byte(raw_cmd->cmd[i]);
r                1503 drivers/block/floppy.c 	if (r) {
r                4258 drivers/block/floppy.c 	int r;
r                4263 drivers/block/floppy.c 	r = result();
r                4264 drivers/block/floppy.c 	if (r <= 0x00)
r                4266 drivers/block/floppy.c 	if ((r == 1) && (reply_buffer[0] == 0x80)) {
r                4270 drivers/block/floppy.c 	if (r != 10) {
r                4272 drivers/block/floppy.c 			fdc, r);
r                4290 drivers/block/floppy.c 	r = result();
r                4291 drivers/block/floppy.c 	if ((r == 1) && (reply_buffer[0] == 0x80)) {
r                4296 drivers/block/floppy.c 	if ((r != 1) || (reply_buffer[0] != 0x00)) {
r                4298 drivers/block/floppy.c 			fdc, r);
r                4302 drivers/block/floppy.c 	r = result();
r                4303 drivers/block/floppy.c 	if (r != 1) {
r                4305 drivers/block/floppy.c 			fdc, r);
r                  40 drivers/block/paride/aten.c {	int r;
r                  42 drivers/block/paride/aten.c 	r = regr + cont_map[cont] + 0x80;
r                  44 drivers/block/paride/aten.c 	w0(r); w2(0xe); w2(6); w0(val); w2(7); w2(6); w2(0xc);
r                  49 drivers/block/paride/aten.c {	int  a, b, r;
r                  51 drivers/block/paride/aten.c         r = regr + cont_map[cont] + 0x40;
r                  55 drivers/block/paride/aten.c         case 0: w0(r); w2(0xe); w2(6); 
r                  60 drivers/block/paride/aten.c         case 1: r |= 0x10;
r                  61 drivers/block/paride/aten.c 		w0(r); w2(0xe); w2(6); w0(0xff); 
r                  50 drivers/block/paride/bpck.c {       int r, l, h;
r                  52 drivers/block/paride/bpck.c 	r = regr + cont_map[cont];
r                  56 drivers/block/paride/bpck.c 	case 0: w0(r & 0xf); w0(r); t2(2); t2(4);
r                  62 drivers/block/paride/bpck.c 	case 1: w0(r & 0xf); w0(r); t2(2);
r                  70 drivers/block/paride/bpck.c 	case 4: w0(r); w2(9); w2(0); w2(0x20);
r                  81 drivers/block/paride/bpck.c {	int	r;
r                  83 drivers/block/paride/bpck.c         r = regr + cont_map[cont];
r                  88 drivers/block/paride/bpck.c 	case 1: w0(r);
r                  96 drivers/block/paride/bpck.c 	case 4: w0(r); w2(9); w2(0);
r                 105 drivers/block/paride/bpck.c #define WR(r,v)		bpck_write_regr(pi,2,r,v)
r                 106 drivers/block/paride/bpck.c #define RR(r)		(bpck_read_regr(pi,2,r))
r                 401 drivers/block/paride/bpck.c {	int	i, r, m;
r                 403 drivers/block/paride/bpck.c 	w2(0x2c); i = r0(); w0(255-i); r = r0(); w0(i);
r                 405 drivers/block/paride/bpck.c 	if (r == i) m = 2;
r                 406 drivers/block/paride/bpck.c 	if (r == (255-i)) m = 0;
r                 408 drivers/block/paride/bpck.c 	w2(0xc); i = r0(); w0(255-i); r = r0(); w0(i);
r                 409 drivers/block/paride/bpck.c 	if (r != (255-i)) m = -1;
r                 411 drivers/block/paride/bpck.c 	if (m == 0) { w2(6); w2(0xc); r = r0(); w0(0xaa); w0(r); w0(0xaa); }
r                  47 drivers/block/paride/comm.c {       int     l, h, r;
r                  49 drivers/block/paride/comm.c         r = regr + cont_map[cont];
r                  53 drivers/block/paride/comm.c         case 0: w0(r); P1; w0(0);
r                  57 drivers/block/paride/comm.c         case 1: w0(r+0x20); P1; 
r                  63 drivers/block/paride/comm.c         case 4: w3(r+0x20); (void)r1();
r                  73 drivers/block/paride/comm.c {       int  r;
r                  75 drivers/block/paride/comm.c         r = regr + cont_map[cont];
r                  80 drivers/block/paride/comm.c         case 1: w0(r); P1; w0(val); P2;
r                  85 drivers/block/paride/comm.c         case 4: w3(r); (void)r1(); w4(val);
r                  49 drivers/block/paride/dstr.c {       int     a, b, r;
r                  51 drivers/block/paride/dstr.c         r = regr + cont_map[cont];
r                  55 drivers/block/paride/dstr.c 	P2; w0(r); P1;
r                  76 drivers/block/paride/dstr.c {       int  r;
r                  78 drivers/block/paride/dstr.c         r = regr + cont_map[cont];
r                  82 drivers/block/paride/dstr.c 	P2; w0(r); P1;
r                  49 drivers/block/paride/epat.c {	int r;
r                  51 drivers/block/paride/epat.c 	r = regr + cont_map[cont];
r                  57 drivers/block/paride/epat.c 	case 2:	w0(0x60+r); w2(1); w0(val); w2(4);
r                  62 drivers/block/paride/epat.c 	case 5: w3(0x40+r); w4(val);
r                  70 drivers/block/paride/epat.c {	int  a, b, r;
r                  72 drivers/block/paride/epat.c 	r = regr + cont_map[cont];
r                  76 drivers/block/paride/epat.c 	case 0:	w0(r); w2(1); w2(3); 
r                  80 drivers/block/paride/epat.c 	case 1: w0(0x40+r); w2(1); w2(4);
r                  84 drivers/block/paride/epat.c 	case 2: w0(0x20+r); w2(1); w2(0x25);
r                  90 drivers/block/paride/epat.c 	case 5: w3(r); w2(0x24); a = r4(); w2(4);
r                 200 drivers/block/paride/epat.c #define	WR(r,v)		epat_write_regr(pi,2,r,v)
r                 201 drivers/block/paride/epat.c #define	RR(r)		(epat_read_regr(pi,2,r))
r                 205 drivers/block/paride/epat.c #define WRi(r,v)         epat_write_regr(pi,0,r,v)
r                 206 drivers/block/paride/epat.c #define RRi(r)           (epat_read_regr(pi,0,r))
r                  51 drivers/block/paride/epia.c {       int     a, b, r;
r                  57 drivers/block/paride/epia.c         case 0: r = regr^0x39;
r                  58 drivers/block/paride/epia.c                 w0(r); w2(1); w2(3); w0(r);
r                  62 drivers/block/paride/epia.c         case 1: r = regr^0x31;
r                  63 drivers/block/paride/epia.c                 w0(r); w2(1); w0(r&0x37); 
r                  64 drivers/block/paride/epia.c                 w2(3); w2(5); w0(r|0xf0);
r                  68 drivers/block/paride/epia.c         case 2: r = regr^0x29;
r                  69 drivers/block/paride/epia.c                 w0(r); w2(1); w2(0X21); w2(0x23); 
r                  84 drivers/block/paride/epia.c {       int  r;
r                  92 drivers/block/paride/epia.c         case 2: r = regr^0x19;
r                  93 drivers/block/paride/epia.c                 w0(r); w2(1); w0(val); w2(3); w2(4);
r                  98 drivers/block/paride/epia.c         case 5: r = regr^0x40;
r                  99 drivers/block/paride/epia.c                 w3(r); w4(val); w2(4);
r                 104 drivers/block/paride/epia.c #define WR(r,v)         epia_write_regr(pi,0,r,v)
r                 105 drivers/block/paride/epia.c #define RR(r)           (epia_read_regr(pi,0,r))
r                  48 drivers/block/paride/fit2.c {	int  a, b, r;
r                  52 drivers/block/paride/fit2.c 	  r = 7;
r                  53 drivers/block/paride/fit2.c 	} else r = regr + 0x10;
r                  55 drivers/block/paride/fit2.c 	w2(0xc); w0(r); w2(4); w2(5); 
r                  53 drivers/block/paride/friq.c {	int	h,l,r;
r                  55 drivers/block/paride/friq.c 	r = regr + cont_map[cont];
r                  57 drivers/block/paride/friq.c 	CMD(r);
r                  68 drivers/block/paride/friq.c {	int r;
r                  70 drivers/block/paride/friq.c         r = regr + cont_map[cont];
r                  72 drivers/block/paride/friq.c 	CMD(r);
r                 185 drivers/block/paride/friq.c {       int     j, k, r;
r                 206 drivers/block/paride/friq.c         r = 0;
r                 207 drivers/block/paride/friq.c         for (k=0;k<128;k++) if (scratch[k] != k) r++;
r                 212 drivers/block/paride/friq.c                    pi->device,pi->port,pi->mode,e[0],e[1],r);
r                 215 drivers/block/paride/friq.c         return (r || (e[0] && e[1]));
r                  49 drivers/block/paride/frpw.c {	int	h,l,r;
r                  51 drivers/block/paride/frpw.c 	r = regr + cont_map[cont];
r                  54 drivers/block/paride/frpw.c 	w0(r); cec4;
r                  65 drivers/block/paride/frpw.c {	int r;
r                  67 drivers/block/paride/frpw.c         r = regr + cont_map[cont];
r                  69 drivers/block/paride/frpw.c 	w2(4); w0(r); cec4; 
r                 226 drivers/block/paride/frpw.c {       int     j, k, r;
r                 259 drivers/block/paride/frpw.c         r = 0;
r                 260 drivers/block/paride/frpw.c         for (k=0;k<128;k++) if (scratch[k] != k) r++;
r                 265 drivers/block/paride/frpw.c                    pi->device,pi->port,(pi->private%2),pi->mode,e[0],e[1],r);
r                 268 drivers/block/paride/frpw.c         return (r || (e[0] && e[1]));
r                  34 drivers/block/paride/ktti.c {	int r;
r                  36 drivers/block/paride/ktti.c 	r = regr + cont_map[cont];
r                  38 drivers/block/paride/ktti.c 	w0(r); w2(0xb); w2(0xa); w2(3); w2(6); 
r                  44 drivers/block/paride/ktti.c {	int  a, b, r;
r                  46 drivers/block/paride/ktti.c         r = regr + cont_map[cont];
r                  48 drivers/block/paride/ktti.c         w0(r); w2(0xb); w2(0xa); w2(9); w2(0xc); w2(9); 
r                  38 drivers/block/paride/on20.c {	int h,l, r ;
r                  40 drivers/block/paride/on20.c         r = (regr<<2) + 1 + cont;
r                  42 drivers/block/paride/on20.c         op(1); vl(r); op(0);
r                  51 drivers/block/paride/on20.c 	case 1:  w2(4); w2(0x26); r = r0(); 
r                  53 drivers/block/paride/on20.c 		 return r;
r                  61 drivers/block/paride/on20.c {	int r;
r                  63 drivers/block/paride/on20.c 	r = (regr<<2) + 1 + cont;
r                  65 drivers/block/paride/on20.c 	op(1); vl(r); 
r                  49 drivers/block/paride/on26.c {       int     a, b, r;
r                  51 drivers/block/paride/on26.c 	r = (regr<<2) + 1 + cont;
r                  55 drivers/block/paride/on26.c         case 0: w0(1); P1; w0(r); P2; w0(0); P1; 
r                  61 drivers/block/paride/on26.c         case 1: w0(1); P1; w0(r); P2; w0(0); P1;
r                  67 drivers/block/paride/on26.c         case 4: w3(1); w3(1); w2(5); w4(r); w2(4);
r                  78 drivers/block/paride/on26.c {       int  r;
r                  80 drivers/block/paride/on26.c         r = (regr<<2) + 1 + cont;
r                  85 drivers/block/paride/on26.c         case 1: w0(1); P1; w0(r); P2; w0(0); P1;
r                  91 drivers/block/paride/on26.c         case 4: w3(1); w3(1); w2(5); w4(r); w2(4);
r                 120 drivers/block/paride/paride.h { 	union { u16 u; char t[2]; } r;
r                 122 drivers/block/paride/paride.h 	r.t[0]=b[2*k+1]; r.t[1]=b[2*k];
r                 123 drivers/block/paride/paride.h         return r.u;
r                 128 drivers/block/paride/paride.h { 	union { u32 u; char f[4]; } r;
r                 130 drivers/block/paride/paride.h 	r.f[0]=b[4*k+1]; r.f[1]=b[4*k];
r                 131 drivers/block/paride/paride.h 	r.f[2]=b[4*k+3]; r.f[3]=b[4*k+2];
r                 132 drivers/block/paride/paride.h         return r.u;
r                 379 drivers/block/paride/pcd.c 	int j, r, e, s, p;
r                 382 drivers/block/paride/pcd.c 	while ((((r = status_reg(cd)) & go) || (stop && (!(r & stop))))
r                 386 drivers/block/paride/pcd.c 	if ((r & (IDE_ERR & stop)) || (j > PCD_SPIN)) {
r                 395 drivers/block/paride/pcd.c 			       cd->name, fun, msg, r, s, e, j, p);
r                 396 drivers/block/paride/pcd.c 		return (s << 8) + r;
r                 434 drivers/block/paride/pcd.c 	int r, d, p, n, k, j;
r                 436 drivers/block/paride/pcd.c 	r = -1;
r                 442 drivers/block/paride/pcd.c 		r = 0;
r                 453 drivers/block/paride/pcd.c 				r = 0;
r                 473 drivers/block/paride/pcd.c 				r = -1;
r                 481 drivers/block/paride/pcd.c 	return r;
r                 488 drivers/block/paride/pcd.c 	int r, c;
r                 490 drivers/block/paride/pcd.c 	r = pcd_command(cd, rs_cmd, 16, "Request sense");
r                 492 drivers/block/paride/pcd.c 	if (!r)
r                 497 drivers/block/paride/pcd.c 	if (!r) {
r                 511 drivers/block/paride/pcd.c 	int r;
r                 513 drivers/block/paride/pcd.c 	r = pcd_command(cd, cmd, dlen, fun);
r                 515 drivers/block/paride/pcd.c 	if (!r)
r                 516 drivers/block/paride/pcd.c 		r = pcd_completion(cd, buf, fun);
r                 517 drivers/block/paride/pcd.c 	if (r)
r                 520 drivers/block/paride/pcd.c 	return r;
r                 681 drivers/block/paride/pcd.c 	int unit, r;
r                 689 drivers/block/paride/pcd.c 		r = pcd_atapi(cd, cmd, 18, buffer, "mode sense capabilities");
r                 690 drivers/block/paride/pcd.c 		if (r)
r                 937 drivers/block/paride/pcd.c 			int r;
r                 939 drivers/block/paride/pcd.c 			r = pcd_atapi(cd, cmd, 12, buffer, "read toc header");
r                 944 drivers/block/paride/pcd.c 			return r ? -EIO : 0;
r                 957 drivers/block/paride/pcd.c 			int r;
r                 963 drivers/block/paride/pcd.c 			r = pcd_atapi(cd, cmd, 12, buffer, "read toc entry");
r                 978 drivers/block/paride/pcd.c 			return r ? -EIO : 0;
r                 309 drivers/block/paride/pd.c 	int k, r, e;
r                 313 drivers/block/paride/pd.c 		r = status_reg(disk);
r                 315 drivers/block/paride/pd.c 		if (((r & w) == w) && !(r & STAT_BUSY))
r                 675 drivers/block/paride/pd.c 	int r = pd_wait_for(disk, STAT_READY, DBMSG("before media_check"));
r                 676 drivers/block/paride/pd.c 	if (!(r & STAT_ERR)) {
r                 678 drivers/block/paride/pd.c 		r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after READ_VRFY"));
r                 681 drivers/block/paride/pd.c 	if (r & ERR_MC) {
r                 686 drivers/block/paride/pd.c 		r = pd_wait_for(disk, STAT_READY, DBMSG("RDY after VRFY"));
r                 853 drivers/block/paride/pd.c 	int r;
r                 857 drivers/block/paride/pd.c 	r = disk->changed;
r                 859 drivers/block/paride/pd.c 	return r ? DISK_EVENT_MEDIA_CHANGE : 0;
r                 428 drivers/block/paride/pf.c 	int j, r, e, s, p;
r                 431 drivers/block/paride/pf.c 	while ((((r = status_reg(pf)) & go) || (stop && (!(r & stop))))
r                 435 drivers/block/paride/pf.c 	if ((r & (STAT_ERR & stop)) || (j > PF_SPIN)) {
r                 444 drivers/block/paride/pf.c 			       pf->name, fun, msg, r, s, e, j, p);
r                 483 drivers/block/paride/pf.c 	int r, s, n;
r                 485 drivers/block/paride/pf.c 	r = pf_wait(pf, STAT_BUSY, STAT_DRQ | STAT_READY | STAT_ERR,
r                 498 drivers/block/paride/pf.c 	return (r ? r : s);
r                 506 drivers/block/paride/pf.c 	int r;
r                 508 drivers/block/paride/pf.c 	r = pf_command(pf, rs_cmd, 16, "Request sense");
r                 510 drivers/block/paride/pf.c 	if (!r)
r                 513 drivers/block/paride/pf.c 	if ((!r) && (!quiet))
r                 520 drivers/block/paride/pf.c 	int r;
r                 522 drivers/block/paride/pf.c 	r = pf_command(pf, cmd, dlen, fun);
r                 524 drivers/block/paride/pf.c 	if (!r)
r                 525 drivers/block/paride/pf.c 		r = pf_completion(pf, buf, fun);
r                 526 drivers/block/paride/pf.c 	if (r)
r                 529 drivers/block/paride/pf.c 	return r;
r                 290 drivers/block/paride/pg.c 	int j, r, e, s, p, to;
r                 295 drivers/block/paride/pg.c 	while ((((r = status_reg(dev)) & go) || (stop && (!(r & stop))))
r                 305 drivers/block/paride/pg.c 	if ((r & (STAT_ERR & stop)) || to) {
r                 359 drivers/block/paride/pg.c 	int r, d, n, p;
r                 361 drivers/block/paride/pg.c 	r = pg_wait(dev, STAT_BUSY, STAT_DRQ | STAT_READY | STAT_ERR,
r                 379 drivers/block/paride/pg.c 		r = pg_wait(dev, STAT_BUSY, STAT_DRQ | STAT_READY | STAT_ERR,
r                 385 drivers/block/paride/pg.c 	return r;
r                 274 drivers/block/paride/pt.c 	int j, r, e, s, p;
r                 278 drivers/block/paride/pt.c 	while ((((r = status_reg(pi)) & go) || (stop && (!(r & stop))))
r                 282 drivers/block/paride/pt.c 	if ((r & (STAT_ERR & stop)) || (j > PT_SPIN)) {
r                 291 drivers/block/paride/pt.c 			       tape->name, fun, msg, r, s, e, j, p);
r                 332 drivers/block/paride/pt.c 	int r, s, n, p;
r                 334 drivers/block/paride/pt.c 	r = pt_wait(tape, STAT_BUSY, STAT_DRQ | STAT_READY | STAT_ERR,
r                 351 drivers/block/paride/pt.c 	return (r ? r : s);
r                 358 drivers/block/paride/pt.c 	int r;
r                 360 drivers/block/paride/pt.c 	r = pt_command(tape, rs_cmd, 16, "Request sense");
r                 362 drivers/block/paride/pt.c 	if (!r)
r                 366 drivers/block/paride/pt.c 	if (!r) {
r                 377 drivers/block/paride/pt.c 	int r;
r                 379 drivers/block/paride/pt.c 	r = pt_command(tape, cmd, dlen, fun);
r                 381 drivers/block/paride/pt.c 	if (!r)
r                 382 drivers/block/paride/pt.c 		r = pt_completion(tape, buf, fun);
r                 383 drivers/block/paride/pt.c 	if (r)
r                 386 drivers/block/paride/pt.c 	return r;
r                 770 drivers/block/paride/pt.c 	int k, n, r, p, s, t, b;
r                 797 drivers/block/paride/pt.c 		r = pt_command(tape, rd_cmd, n, "read");
r                 801 drivers/block/paride/pt.c 		if (r) {
r                 808 drivers/block/paride/pt.c 			r = pt_wait(tape, STAT_BUSY,
r                 812 drivers/block/paride/pt.c 			if (r & STAT_SENSE) {
r                 818 drivers/block/paride/pt.c 			if (r)
r                 867 drivers/block/paride/pt.c 	int k, n, r, p, s, t, b;
r                 898 drivers/block/paride/pt.c 		r = pt_command(tape, wr_cmd, n, "write");
r                 902 drivers/block/paride/pt.c 		if (r) {	/* error delivering command only */
r                 909 drivers/block/paride/pt.c 			r = pt_wait(tape, STAT_BUSY,
r                 913 drivers/block/paride/pt.c 			if (r & STAT_SENSE) {
r                 919 drivers/block/paride/pt.c 			if (r)
r                 132 drivers/block/xen-blkback/xenbus.c 	unsigned int r;
r                 139 drivers/block/xen-blkback/xenbus.c 	for (r = 0; r < blkif->nr_rings; r++) {
r                 140 drivers/block/xen-blkback/xenbus.c 		struct xen_blkif_ring *ring = &blkif->rings[r];
r                 248 drivers/block/xen-blkback/xenbus.c 	unsigned int j, r;
r                 251 drivers/block/xen-blkback/xenbus.c 	for (r = 0; r < blkif->nr_rings; r++) {
r                 252 drivers/block/xen-blkback/xenbus.c 		struct xen_blkif_ring *ring = &blkif->rings[r];
r                 233 drivers/block/xsysace.c 	void __iomem *r = ace->baseaddr + reg;
r                 234 drivers/block/xsysace.c 	return in_8(r) | (in_8(r + 1) << 8);
r                 239 drivers/block/xsysace.c 	void __iomem *r = ace->baseaddr + reg;
r                 240 drivers/block/xsysace.c 	out_8(r, val);
r                 241 drivers/block/xsysace.c 	out_8(r + 1, val >> 8);
r                 246 drivers/block/xsysace.c 	void __iomem *r = ace->baseaddr + 0x40;
r                 250 drivers/block/xsysace.c 		*dst++ = in_8(r++);
r                 256 drivers/block/xsysace.c 	void __iomem *r = ace->baseaddr + 0x40;
r                 260 drivers/block/xsysace.c 		out_8(r++, *src++);
r                 339 drivers/bluetooth/bt3c_cs.c 	irqreturn_t r = IRQ_NONE;
r                 372 drivers/bluetooth/bt3c_cs.c 		r = IRQ_HANDLED;
r                 377 drivers/bluetooth/bt3c_cs.c 	return r;
r                 296 drivers/bluetooth/dtl1_cs.c 	irqreturn_t r = IRQ_NONE;
r                 309 drivers/bluetooth/dtl1_cs.c 		r = IRQ_HANDLED;
r                 346 drivers/bluetooth/dtl1_cs.c 		r = IRQ_HANDLED;
r                 351 drivers/bluetooth/dtl1_cs.c 	return r;
r                 319 drivers/bus/brcmstb_gisb.c 	struct resource *r;
r                 324 drivers/bus/brcmstb_gisb.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 335 drivers/bus/brcmstb_gisb.c 	gdev->base = devm_ioremap_resource(&pdev->dev, r);
r                 613 drivers/bus/mvebu-mbus.c 	struct memblock_region *r;
r                 616 drivers/bus/mvebu-mbus.c 	for_each_memblock(memory, r) {
r                 621 drivers/bus/mvebu-mbus.c 		if (r->base >= 0x100000000ULL)
r                 628 drivers/bus/mvebu-mbus.c 		if (r->base + r->size > s)
r                 629 drivers/bus/mvebu-mbus.c 			s = r->base + r->size;
r                1243 drivers/bus/mvebu-mbus.c 	const __be32 *r, *ranges_start, *ranges_end;
r                1251 drivers/bus/mvebu-mbus.c 	for (i = 0, r = ranges_start; r < ranges_end; r += cell_count, i++) {
r                1259 drivers/bus/mvebu-mbus.c 		windowid = of_read_number(r, 1);
r                1266 drivers/bus/mvebu-mbus.c 		base = of_read_number(r + c_addr_cells, addr_cells);
r                1267 drivers/bus/mvebu-mbus.c 		size = of_read_number(r + c_addr_cells + addr_cells,
r                 627 drivers/bus/sunxi-rsb.c 	struct resource *r;
r                 648 drivers/bus/sunxi-rsb.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 649 drivers/bus/sunxi-rsb.c 	rsb->regs = devm_ioremap_resource(dev, r);
r                 348 drivers/char/agp/efficeon-agp.c 	struct resource *r;
r                 387 drivers/char/agp/efficeon-agp.c 	r = &pdev->resource[0];
r                 388 drivers/char/agp/efficeon-agp.c 	if (!r->start && r->end) {
r                 729 drivers/char/agp/intel-agp.c 	struct resource *r;
r                 776 drivers/char/agp/intel-agp.c 	r = &pdev->resource[0];
r                 777 drivers/char/agp/intel-agp.c 	if (!r->start && r->end) {
r                 320 drivers/char/dsp56k.c 			int r, len;
r                 335 drivers/char/dsp56k.c 			r = dsp56k_upload(bin, len);
r                 337 drivers/char/dsp56k.c 			if (r < 0) {
r                 338 drivers/char/dsp56k.c 				return r;
r                 145 drivers/char/hw_random/bcm2835-rng.c 	struct resource *r;
r                 154 drivers/char/hw_random/bcm2835-rng.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 157 drivers/char/hw_random/bcm2835-rng.c 	priv->base = devm_ioremap_resource(dev, r);
r                 550 drivers/char/hw_random/core.c 	struct hwrng **r = res;
r                 552 drivers/char/hw_random/core.c 	if (WARN_ON(!r || !*r))
r                 555 drivers/char/hw_random/core.c 	return *r == data;
r                  40 drivers/char/hw_random/omap3-rom-rng.c 	int r;
r                  42 drivers/char/hw_random/omap3-rom-rng.c 	r = omap3_rom_rng_call(0, 0, RNG_RESET);
r                  43 drivers/char/hw_random/omap3-rom-rng.c 	if (r != 0) {
r                  44 drivers/char/hw_random/omap3-rom-rng.c 		pr_err("reset failed: %d\n", r);
r                  53 drivers/char/hw_random/omap3-rom-rng.c 	u32 r;
r                  58 drivers/char/hw_random/omap3-rom-rng.c 		r = clk_prepare_enable(rng_clk);
r                  59 drivers/char/hw_random/omap3-rom-rng.c 		if (r)
r                  60 drivers/char/hw_random/omap3-rom-rng.c 			return r;
r                  62 drivers/char/hw_random/omap3-rom-rng.c 		r = omap3_rom_rng_call(0, 0, RNG_GEN_PRNG_HW_INIT);
r                  63 drivers/char/hw_random/omap3-rom-rng.c 		if (r != 0) {
r                  65 drivers/char/hw_random/omap3-rom-rng.c 			pr_err("HW init failed: %d\n", r);
r                  72 drivers/char/hw_random/omap3-rom-rng.c 	r = omap3_rom_rng_call(ptr, count, RNG_GEN_HW);
r                  74 drivers/char/hw_random/omap3-rom-rng.c 	if (r != 0)
r                  81 drivers/char/hw_random/omap3-rom-rng.c 	int r;
r                  83 drivers/char/hw_random/omap3-rom-rng.c 	r = omap3_rom_rng_get_random(data, 4);
r                  84 drivers/char/hw_random/omap3-rom-rng.c 	if (r < 0)
r                  85 drivers/char/hw_random/omap3-rom-rng.c 		return r;
r                  70 drivers/char/hw_random/optee-rng.c #define to_optee_rng_private(r) \
r                  71 drivers/char/hw_random/optee-rng.c 		container_of(r, struct optee_rng_private, optee_rng)
r                 110 drivers/char/hw_random/tx4939-rng.c 	struct resource *r;
r                 116 drivers/char/hw_random/tx4939-rng.c 	r = platform_get_resource(dev, IORESOURCE_MEM, 0);
r                 117 drivers/char/hw_random/tx4939-rng.c 	rngdev->base = devm_ioremap_resource(&dev->dev, r);
r                  16 drivers/char/ipmi/ipmi_plat_data.c 	struct resource r[4];
r                  22 drivers/char/ipmi/ipmi_plat_data.c 	memset(r, 0, sizeof(r));
r                  69 drivers/char/ipmi/ipmi_plat_data.c 	r[0].start = p->addr;
r                  70 drivers/char/ipmi/ipmi_plat_data.c 	r[0].end = r[0].start + p->regsize - 1;
r                  71 drivers/char/ipmi/ipmi_plat_data.c 	r[0].name = "IPMI Address 1";
r                  72 drivers/char/ipmi/ipmi_plat_data.c 	r[0].flags = flags;
r                  75 drivers/char/ipmi/ipmi_plat_data.c 		r[1].start = r[0].start + p->regspacing;
r                  76 drivers/char/ipmi/ipmi_plat_data.c 		r[1].end = r[1].start + p->regsize - 1;
r                  77 drivers/char/ipmi/ipmi_plat_data.c 		r[1].name = "IPMI Address 2";
r                  78 drivers/char/ipmi/ipmi_plat_data.c 		r[1].flags = flags;
r                  83 drivers/char/ipmi/ipmi_plat_data.c 		r[2].start = r[1].start + p->regspacing;
r                  84 drivers/char/ipmi/ipmi_plat_data.c 		r[2].end = r[2].start + p->regsize - 1;
r                  85 drivers/char/ipmi/ipmi_plat_data.c 		r[2].name = "IPMI Address 3";
r                  86 drivers/char/ipmi/ipmi_plat_data.c 		r[2].flags = flags;
r                  91 drivers/char/ipmi/ipmi_plat_data.c 		r[num_r].start = p->irq;
r                  92 drivers/char/ipmi/ipmi_plat_data.c 		r[num_r].end = p->irq;
r                  93 drivers/char/ipmi/ipmi_plat_data.c 		r[num_r].name = "IPMI IRQ";
r                  94 drivers/char/ipmi/ipmi_plat_data.c 		r[num_r].flags = IORESOURCE_IRQ;
r                  98 drivers/char/ipmi/ipmi_plat_data.c 	rv = platform_device_add_resources(pdev, r, num_r);
r                1093 drivers/char/lp.c 					unsigned long r = simple_strtoul(parport[n], &ep, 0);
r                1095 drivers/char/lp.c 						parport_nr[n] = r;
r                 371 drivers/char/random.c #define ENTROPY_BITS(r) ((r)->entropy_count >> ENTROPY_SHIFT)
r                 547 drivers/char/random.c static ssize_t extract_entropy(struct entropy_store *r, void *buf,
r                 549 drivers/char/random.c static ssize_t _extract_entropy(struct entropy_store *r, void *buf,
r                 552 drivers/char/random.c static void crng_reseed(struct crng_state *crng, struct entropy_store *r);
r                 588 drivers/char/random.c static void _mix_pool_bytes(struct entropy_store *r, const void *in,
r                 593 drivers/char/random.c 	int wordmask = r->poolinfo->poolwords - 1;
r                 597 drivers/char/random.c 	tap1 = r->poolinfo->tap1;
r                 598 drivers/char/random.c 	tap2 = r->poolinfo->tap2;
r                 599 drivers/char/random.c 	tap3 = r->poolinfo->tap3;
r                 600 drivers/char/random.c 	tap4 = r->poolinfo->tap4;
r                 601 drivers/char/random.c 	tap5 = r->poolinfo->tap5;
r                 603 drivers/char/random.c 	input_rotate = r->input_rotate;
r                 604 drivers/char/random.c 	i = r->add_ptr;
r                 612 drivers/char/random.c 		w ^= r->pool[i];
r                 613 drivers/char/random.c 		w ^= r->pool[(i + tap1) & wordmask];
r                 614 drivers/char/random.c 		w ^= r->pool[(i + tap2) & wordmask];
r                 615 drivers/char/random.c 		w ^= r->pool[(i + tap3) & wordmask];
r                 616 drivers/char/random.c 		w ^= r->pool[(i + tap4) & wordmask];
r                 617 drivers/char/random.c 		w ^= r->pool[(i + tap5) & wordmask];
r                 620 drivers/char/random.c 		r->pool[i] = (w >> 3) ^ twist_table[w & 7];
r                 631 drivers/char/random.c 	r->input_rotate = input_rotate;
r                 632 drivers/char/random.c 	r->add_ptr = i;
r                 635 drivers/char/random.c static void __mix_pool_bytes(struct entropy_store *r, const void *in,
r                 638 drivers/char/random.c 	trace_mix_pool_bytes_nolock(r->name, nbytes, _RET_IP_);
r                 639 drivers/char/random.c 	_mix_pool_bytes(r, in, nbytes);
r                 642 drivers/char/random.c static void mix_pool_bytes(struct entropy_store *r, const void *in,
r                 647 drivers/char/random.c 	trace_mix_pool_bytes(r->name, nbytes, _RET_IP_);
r                 648 drivers/char/random.c 	spin_lock_irqsave(&r->lock, flags);
r                 649 drivers/char/random.c 	_mix_pool_bytes(r, in, nbytes);
r                 650 drivers/char/random.c 	spin_unlock_irqrestore(&r->lock, flags);
r                 712 drivers/char/random.c static void credit_entropy_bits(struct entropy_store *r, int nbits)
r                 715 drivers/char/random.c 	const int pool_size = r->poolinfo->poolfracbits;
r                 722 drivers/char/random.c 	entropy_count = orig = READ_ONCE(r->entropy_count);
r                 749 drivers/char/random.c 		const int s = r->poolinfo->poolbitshift + ENTROPY_SHIFT + 2;
r                 764 drivers/char/random.c 			r->name, entropy_count);
r                 769 drivers/char/random.c 	if ((r == &blocking_pool) && !r->initialized &&
r                 772 drivers/char/random.c 	if (cmpxchg(&r->entropy_count, orig, entropy_count) != orig)
r                 776 drivers/char/random.c 		r->initialized = 1;
r                 781 drivers/char/random.c 	trace_credit_entropy_bits(r->name, nbits,
r                 784 drivers/char/random.c 	if (r == &input_pool) {
r                 791 drivers/char/random.c 			crng_reseed(&primary_crng, r);
r                 792 drivers/char/random.c 			entropy_bits = r->entropy_count >> ENTROPY_SHIFT;
r                 813 drivers/char/random.c 		    (ENTROPY_BITS(r) > 6 * r->poolinfo->poolbytes) &&
r                 819 drivers/char/random.c static int credit_entropy_bits_safe(struct entropy_store *r, int nbits)
r                 821 drivers/char/random.c 	const int nbits_max = r->poolinfo->poolwords * 32;
r                 829 drivers/char/random.c 	credit_entropy_bits(r, nbits);
r                1000 drivers/char/random.c static void crng_reseed(struct crng_state *crng, struct entropy_store *r)
r                1009 drivers/char/random.c 	if (r) {
r                1010 drivers/char/random.c 		num = extract_entropy(r, &buf, 32, 16, 0);
r                1207 drivers/char/random.c 	struct entropy_store	*r;
r                1218 drivers/char/random.c 	r = &input_pool;
r                1219 drivers/char/random.c 	mix_pool_bytes(r, &sample, sizeof(sample));
r                1251 drivers/char/random.c 	credit_entropy_bits(r, min_t(int, fls(delta>>1), 11));
r                1310 drivers/char/random.c 	struct entropy_store	*r;
r                1348 drivers/char/random.c 	r = &input_pool;
r                1349 drivers/char/random.c 	if (!spin_trylock(&r->lock))
r                1353 drivers/char/random.c 	__mix_pool_bytes(r, &fast_pool->pool, sizeof(fast_pool->pool));
r                1362 drivers/char/random.c 		__mix_pool_bytes(r, &seed, sizeof(seed));
r                1365 drivers/char/random.c 	spin_unlock(&r->lock);
r                1370 drivers/char/random.c 	credit_entropy_bits(r, credit + 1);
r                1397 drivers/char/random.c static void _xfer_secondary_pool(struct entropy_store *r, size_t nbytes);
r                1398 drivers/char/random.c static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes)
r                1400 drivers/char/random.c 	if (!r->pull ||
r                1401 drivers/char/random.c 	    r->entropy_count >= (nbytes << (ENTROPY_SHIFT + 3)) ||
r                1402 drivers/char/random.c 	    r->entropy_count > r->poolinfo->poolfracbits)
r                1405 drivers/char/random.c 	_xfer_secondary_pool(r, nbytes);
r                1408 drivers/char/random.c static void _xfer_secondary_pool(struct entropy_store *r, size_t nbytes)
r                1419 drivers/char/random.c 	trace_xfer_secondary_pool(r->name, bytes * 8, nbytes * 8,
r                1420 drivers/char/random.c 				  ENTROPY_BITS(r), ENTROPY_BITS(r->pull));
r                1421 drivers/char/random.c 	bytes = extract_entropy(r->pull, tmp, bytes,
r                1423 drivers/char/random.c 	mix_pool_bytes(r, tmp, bytes);
r                1424 drivers/char/random.c 	credit_entropy_bits(r, bytes*8);
r                1435 drivers/char/random.c 	struct entropy_store *r = container_of(work, struct entropy_store,
r                1437 drivers/char/random.c 	BUG_ON(!r);
r                1438 drivers/char/random.c 	_xfer_secondary_pool(r, random_read_wakeup_bits/8);
r                1439 drivers/char/random.c 	trace_push_to_pool(r->name, r->entropy_count >> ENTROPY_SHIFT,
r                1440 drivers/char/random.c 			   r->pull->entropy_count >> ENTROPY_SHIFT);
r                1447 drivers/char/random.c static size_t account(struct entropy_store *r, size_t nbytes, int min,
r                1453 drivers/char/random.c 	BUG_ON(r->entropy_count > r->poolinfo->poolfracbits);
r                1457 drivers/char/random.c 	entropy_count = orig = READ_ONCE(r->entropy_count);
r                1470 drivers/char/random.c 			r->name, entropy_count);
r                1480 drivers/char/random.c 	if (cmpxchg(&r->entropy_count, orig, entropy_count) != orig)
r                1483 drivers/char/random.c 	trace_debit_entropy(r->name, 8 * ibytes);
r                1485 drivers/char/random.c 	    (r->entropy_count >> ENTROPY_SHIFT) < random_write_wakeup_bits) {
r                1499 drivers/char/random.c static void extract_buf(struct entropy_store *r, __u8 *out)
r                1522 drivers/char/random.c 	spin_lock_irqsave(&r->lock, flags);
r                1523 drivers/char/random.c 	for (i = 0; i < r->poolinfo->poolwords; i += 16)
r                1524 drivers/char/random.c 		sha_transform(hash.w, (__u8 *)(r->pool + i), workspace);
r                1535 drivers/char/random.c 	__mix_pool_bytes(r, hash.w, sizeof(hash.w));
r                1536 drivers/char/random.c 	spin_unlock_irqrestore(&r->lock, flags);
r                1553 drivers/char/random.c static ssize_t _extract_entropy(struct entropy_store *r, void *buf,
r                1561 drivers/char/random.c 		extract_buf(r, tmp);
r                1564 drivers/char/random.c 			spin_lock_irqsave(&r->lock, flags);
r                1565 drivers/char/random.c 			if (!memcmp(tmp, r->last_data, EXTRACT_SIZE))
r                1567 drivers/char/random.c 			memcpy(r->last_data, tmp, EXTRACT_SIZE);
r                1568 drivers/char/random.c 			spin_unlock_irqrestore(&r->lock, flags);
r                1592 drivers/char/random.c static ssize_t extract_entropy(struct entropy_store *r, void *buf,
r                1600 drivers/char/random.c 		spin_lock_irqsave(&r->lock, flags);
r                1601 drivers/char/random.c 		if (!r->last_data_init) {
r                1602 drivers/char/random.c 			r->last_data_init = 1;
r                1603 drivers/char/random.c 			spin_unlock_irqrestore(&r->lock, flags);
r                1604 drivers/char/random.c 			trace_extract_entropy(r->name, EXTRACT_SIZE,
r                1605 drivers/char/random.c 					      ENTROPY_BITS(r), _RET_IP_);
r                1606 drivers/char/random.c 			xfer_secondary_pool(r, EXTRACT_SIZE);
r                1607 drivers/char/random.c 			extract_buf(r, tmp);
r                1608 drivers/char/random.c 			spin_lock_irqsave(&r->lock, flags);
r                1609 drivers/char/random.c 			memcpy(r->last_data, tmp, EXTRACT_SIZE);
r                1611 drivers/char/random.c 		spin_unlock_irqrestore(&r->lock, flags);
r                1614 drivers/char/random.c 	trace_extract_entropy(r->name, nbytes, ENTROPY_BITS(r), _RET_IP_);
r                1615 drivers/char/random.c 	xfer_secondary_pool(r, nbytes);
r                1616 drivers/char/random.c 	nbytes = account(r, nbytes, min, reserved);
r                1618 drivers/char/random.c 	return _extract_entropy(r, buf, nbytes, fips_enabled);
r                1625 drivers/char/random.c static ssize_t extract_entropy_user(struct entropy_store *r, void __user *buf,
r                1632 drivers/char/random.c 	trace_extract_entropy_user(r->name, nbytes, ENTROPY_BITS(r), _RET_IP_);
r                1633 drivers/char/random.c 	if (!r->initialized && r->pull) {
r                1634 drivers/char/random.c 		xfer_secondary_pool(r, ENTROPY_BITS(r->pull)/8);
r                1635 drivers/char/random.c 		if (!r->initialized)
r                1638 drivers/char/random.c 	xfer_secondary_pool(r, nbytes);
r                1639 drivers/char/random.c 	nbytes = account(r, nbytes, 0, 0);
r                1651 drivers/char/random.c 		extract_buf(r, tmp);
r                1929 drivers/char/random.c static void __init init_std_data(struct entropy_store *r)
r                1935 drivers/char/random.c 	r->last_pulled = jiffies;
r                1936 drivers/char/random.c 	mix_pool_bytes(r, &now, sizeof(now));
r                1937 drivers/char/random.c 	for (i = r->poolinfo->poolbytes; i > 0; i -= sizeof(rv)) {
r                1941 drivers/char/random.c 		mix_pool_bytes(r, &rv, sizeof(rv));
r                1943 drivers/char/random.c 	mix_pool_bytes(r, utsname(), sizeof(*(utsname())));
r                2062 drivers/char/random.c write_pool(struct entropy_store *r, const char __user *buffer, size_t count)
r                2084 drivers/char/random.c 		mix_pool_bytes(r, buf, bytes);
r                 822 drivers/char/rtc.c 	struct resource *r;
r                 825 drivers/char/rtc.c 		r = request_region(RTC_PORT(0), size, "rtc");
r                 827 drivers/char/rtc.c 		r = request_mem_region(RTC_PORT(0), size, "rtc");
r                 829 drivers/char/rtc.c 	if (r)
r                 832 drivers/char/rtc.c 	return r;
r                 856 drivers/char/rtc.c 	void *r;
r                 898 drivers/char/rtc.c 	r = rtc_request_region(RTC_IO_EXTENT);
r                 907 drivers/char/rtc.c 	if (!r)
r                 908 drivers/char/rtc.c 		r = rtc_request_region(RTC_IO_EXTENT_USED);
r                 909 drivers/char/rtc.c 	if (!r) {
r                 227 drivers/clk/analogbits/wrpll-cln28hpc.c 	u8 fbdiv, divq, best_r, r;
r                 272 drivers/clk/analogbits/wrpll-cln28hpc.c 	for (r = c->init_r; r <= c->max_r; ++r) {
r                 273 drivers/clk/analogbits/wrpll-cln28hpc.c 		f_pre_div = ratio * r;
r                 277 drivers/clk/analogbits/wrpll-cln28hpc.c 		post_divr_freq = div_u64(parent_rate, r);
r                 293 drivers/clk/analogbits/wrpll-cln28hpc.c 			best_r = r;
r                 126 drivers/clk/at91/sam9x60.c 	struct clk_range r;
r                 136 drivers/clk/at91/sam9x60.c 	{ .n = "sdmmc0_gclk", .id = 12, .r = { .min = 0, .max = 105000000 }, },
r                 143 drivers/clk/at91/sam9x60.c 	{ .n = "lcd_gclk",    .id = 25, .r = { .min = 0, .max = 140000000 }, },
r                 144 drivers/clk/at91/sam9x60.c 	{ .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
r                 147 drivers/clk/at91/sam9x60.c 	{ .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 },
r                 150 drivers/clk/at91/sam9x60.c 	{ .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 },
r                 293 drivers/clk/at91/sam9x60.c 						 &sam9x60_gck[i].r);
r                  56 drivers/clk/at91/sama5d2.c 	struct clk_range r;
r                  58 drivers/clk/at91/sama5d2.c 	{ .n = "macb0_clk",   .id = 5,  .r = { .min = 0, .max = 83000000 }, },
r                  59 drivers/clk/at91/sama5d2.c 	{ .n = "tdes_clk",    .id = 11, .r = { .min = 0, .max = 83000000 }, },
r                  62 drivers/clk/at91/sama5d2.c 	{ .n = "pioA_clk",    .id = 18, .r = { .min = 0, .max = 83000000 }, },
r                  63 drivers/clk/at91/sama5d2.c 	{ .n = "flx0_clk",    .id = 19, .r = { .min = 0, .max = 83000000 }, },
r                  64 drivers/clk/at91/sama5d2.c 	{ .n = "flx1_clk",    .id = 20, .r = { .min = 0, .max = 83000000 }, },
r                  65 drivers/clk/at91/sama5d2.c 	{ .n = "flx2_clk",    .id = 21, .r = { .min = 0, .max = 83000000 }, },
r                  66 drivers/clk/at91/sama5d2.c 	{ .n = "flx3_clk",    .id = 22, .r = { .min = 0, .max = 83000000 }, },
r                  67 drivers/clk/at91/sama5d2.c 	{ .n = "flx4_clk",    .id = 23, .r = { .min = 0, .max = 83000000 }, },
r                  68 drivers/clk/at91/sama5d2.c 	{ .n = "uart0_clk",   .id = 24, .r = { .min = 0, .max = 83000000 }, },
r                  69 drivers/clk/at91/sama5d2.c 	{ .n = "uart1_clk",   .id = 25, .r = { .min = 0, .max = 83000000 }, },
r                  70 drivers/clk/at91/sama5d2.c 	{ .n = "uart2_clk",   .id = 26, .r = { .min = 0, .max = 83000000 }, },
r                  71 drivers/clk/at91/sama5d2.c 	{ .n = "uart3_clk",   .id = 27, .r = { .min = 0, .max = 83000000 }, },
r                  72 drivers/clk/at91/sama5d2.c 	{ .n = "uart4_clk",   .id = 28, .r = { .min = 0, .max = 83000000 }, },
r                  73 drivers/clk/at91/sama5d2.c 	{ .n = "twi0_clk",    .id = 29, .r = { .min = 0, .max = 83000000 }, },
r                  74 drivers/clk/at91/sama5d2.c 	{ .n = "twi1_clk",    .id = 30, .r = { .min = 0, .max = 83000000 }, },
r                  75 drivers/clk/at91/sama5d2.c 	{ .n = "spi0_clk",    .id = 33, .r = { .min = 0, .max = 83000000 }, },
r                  76 drivers/clk/at91/sama5d2.c 	{ .n = "spi1_clk",    .id = 34, .r = { .min = 0, .max = 83000000 }, },
r                  77 drivers/clk/at91/sama5d2.c 	{ .n = "tcb0_clk",    .id = 35, .r = { .min = 0, .max = 83000000 }, },
r                  78 drivers/clk/at91/sama5d2.c 	{ .n = "tcb1_clk",    .id = 36, .r = { .min = 0, .max = 83000000 }, },
r                  79 drivers/clk/at91/sama5d2.c 	{ .n = "pwm_clk",     .id = 38, .r = { .min = 0, .max = 83000000 }, },
r                  80 drivers/clk/at91/sama5d2.c 	{ .n = "adc_clk",     .id = 40, .r = { .min = 0, .max = 83000000 }, },
r                  81 drivers/clk/at91/sama5d2.c 	{ .n = "uhphs_clk",   .id = 41, .r = { .min = 0, .max = 83000000 }, },
r                  82 drivers/clk/at91/sama5d2.c 	{ .n = "udphs_clk",   .id = 42, .r = { .min = 0, .max = 83000000 }, },
r                  83 drivers/clk/at91/sama5d2.c 	{ .n = "ssc0_clk",    .id = 43, .r = { .min = 0, .max = 83000000 }, },
r                  84 drivers/clk/at91/sama5d2.c 	{ .n = "ssc1_clk",    .id = 44, .r = { .min = 0, .max = 83000000 }, },
r                  85 drivers/clk/at91/sama5d2.c 	{ .n = "trng_clk",    .id = 47, .r = { .min = 0, .max = 83000000 }, },
r                  86 drivers/clk/at91/sama5d2.c 	{ .n = "pdmic_clk",   .id = 48, .r = { .min = 0, .max = 83000000 }, },
r                  88 drivers/clk/at91/sama5d2.c 	{ .n = "i2s0_clk",    .id = 54, .r = { .min = 0, .max = 83000000 }, },
r                  89 drivers/clk/at91/sama5d2.c 	{ .n = "i2s1_clk",    .id = 55, .r = { .min = 0, .max = 83000000 }, },
r                  90 drivers/clk/at91/sama5d2.c 	{ .n = "can0_clk",    .id = 56, .r = { .min = 0, .max = 83000000 }, },
r                  91 drivers/clk/at91/sama5d2.c 	{ .n = "can1_clk",    .id = 57, .r = { .min = 0, .max = 83000000 }, },
r                  92 drivers/clk/at91/sama5d2.c 	{ .n = "classd_clk",  .id = 59, .r = { .min = 0, .max = 83000000 }, },
r                 117 drivers/clk/at91/sama5d2.c 	struct clk_range r;
r                 122 drivers/clk/at91/sama5d2.c 	{ .n = "tcb0_gclk",   .id = 35, .r = { .min = 0, .max = 83000000 }, },
r                 123 drivers/clk/at91/sama5d2.c 	{ .n = "tcb1_gclk",   .id = 36, .r = { .min = 0, .max = 83000000 }, },
r                 124 drivers/clk/at91/sama5d2.c 	{ .n = "pwm_gclk",    .id = 38, .r = { .min = 0, .max = 83000000 }, },
r                 129 drivers/clk/at91/sama5d2.c 	{ .n = "can0_gclk",   .id = 56, .r = { .min = 0, .max = 80000000 }, },
r                 130 drivers/clk/at91/sama5d2.c 	{ .n = "can1_gclk",   .id = 57, .r = { .min = 0, .max = 80000000 }, },
r                 131 drivers/clk/at91/sama5d2.c 	{ .n = "classd_gclk", .id = 59, .r = { .min = 0, .max = 100000000 },
r                 301 drivers/clk/at91/sama5d2.c 							 &sama5d2_periph32ck[i].r);
r                 321 drivers/clk/at91/sama5d2.c 						 &sama5d2_gck[i].r);
r                 187 drivers/clk/clk-cdce925.c 	u16 r = n / m;
r                 189 drivers/clk/clk-cdce925.c 	if (r >= 16)
r                 192 drivers/clk/clk-cdce925.c 	while (r > 1) {
r                 193 drivers/clk/clk-cdce925.c 		r >>= 1;
r                 222 drivers/clk/clk-cdce925.c 	u16 r;
r                 246 drivers/clk/clk-cdce925.c 		r = nn - (m*q);
r                 247 drivers/clk/clk-cdce925.c 		if (r > 511) {
r                 248 drivers/clk/clk-cdce925.c 			pr_debug("%s invalid r=%d\n", __func__, r);
r                 252 drivers/clk/clk-cdce925.c 			n, m, p, q, r);
r                 255 drivers/clk/clk-cdce925.c 		pll[1] = ((n & 0x0F) << 4) | ((r >> 5) & 0x0F);
r                 256 drivers/clk/clk-cdce925.c 		pll[2] = ((r & 0x1F) << 3) | ((q >> 3) & 0x07);
r                 314 drivers/clk/clk-si5341.c 	u8 r[10];
r                 316 drivers/clk/clk-si5341.c 	err = regmap_bulk_read(regmap, reg, r, 10);
r                 320 drivers/clk/clk-si5341.c 	*val1 = ((u64)((r[5] & 0x0f) << 8 | r[4]) << 32) |
r                 321 drivers/clk/clk-si5341.c 		 (get_unaligned_le32(r));
r                 322 drivers/clk/clk-si5341.c 	*val2 = get_unaligned_le32(&r[6]);
r                 330 drivers/clk/clk-si5341.c 	u8 r[10];
r                 339 drivers/clk/clk-si5341.c 	put_unaligned_le32(n_num, r);
r                 340 drivers/clk/clk-si5341.c 	r[4] = (n_num >> 32) & 0xff;
r                 341 drivers/clk/clk-si5341.c 	r[5] = (n_num >> 40) & 0x0f;
r                 343 drivers/clk/clk-si5341.c 	put_unaligned_le32(n_den, &r[6]);
r                 346 drivers/clk/clk-si5341.c 	return regmap_bulk_write(regmap, reg, r, sizeof(r));
r                 545 drivers/clk/clk-si5341.c 	u32 r;
r                 552 drivers/clk/clk-si5341.c 	r = do_div(n_num, rate);
r                 553 drivers/clk/clk-si5341.c 	is_integer = (r == 0);
r                 559 drivers/clk/clk-si5341.c 		g = gcd(r, rate);
r                 562 drivers/clk/clk-si5341.c 		n_num += r / g;
r                 634 drivers/clk/clk-si5341.c 	u8 r[3];
r                 637 drivers/clk/clk-si5341.c 			SI5341_OUT_R_REG(output), r, 3);
r                 642 drivers/clk/clk-si5341.c 	r_divider = r[2] << 16 | r[1] << 8 | r[0];
r                 666 drivers/clk/clk-si5341.c 	unsigned long r;
r                 668 drivers/clk/clk-si5341.c 	r = *parent_rate >> 1;
r                 671 drivers/clk/clk-si5341.c 	if (r && !(r % rate))
r                 677 drivers/clk/clk-si5341.c 			r = 2;
r                 680 drivers/clk/clk-si5341.c 			r = (400000000u / rate) & ~1;
r                 682 drivers/clk/clk-si5341.c 		*parent_rate = r * rate;
r                 685 drivers/clk/clk-si5341.c 		r /= rate;
r                 686 drivers/clk/clk-si5341.c 		rate = *parent_rate / (r << 1);
r                 699 drivers/clk/clk-si5341.c 	u8 r[3];
r                 717 drivers/clk/clk-si5341.c 	r[0] = r_div ? (r_div & 0xff) : 1;
r                 718 drivers/clk/clk-si5341.c 	r[1] = (r_div >> 8) & 0xff;
r                 719 drivers/clk/clk-si5341.c 	r[2] = (r_div >> 16) & 0xff;
r                 721 drivers/clk/clk-si5341.c 			SI5341_OUT_R_REG(output), r, 3);
r                 774 drivers/clk/clk-si5341.c 	u8 r[4];
r                 778 drivers/clk/clk-si5341.c 			r, ARRAY_SIZE(r));
r                 782 drivers/clk/clk-si5341.c 	return !!get_unaligned_le32(r);
r                 865 drivers/clk/clk-si5341.c 	u8 r[10];
r                 867 drivers/clk/clk-si5341.c 	err = regmap_bulk_read(data->regmap, SI5341_PLL_M_NUM, r, 10);
r                 872 drivers/clk/clk-si5341.c 				SI5341_SYNTH_N_CLK_TO_OUTX_EN, r, 3);
r                 877 drivers/clk/clk-si5341.c 				SI5341_SYNTH_N_CLK_DIS, r, 1);
r                 883 drivers/clk/clk-si5341.c 					SI5341_SYNTH_N_NUM(i), r, 10);
r                 890 drivers/clk/clk-si5341.c 					data->reg_output_offset[i], r, 4);
r                 895 drivers/clk/clk-si5341.c 					data->reg_rdiv_offset[i], r, 3);
r                 314 drivers/clk/clk-vt8500.c #define VT8500_BITS_TO_FREQ(r, m, d)					\
r                 315 drivers/clk/clk-vt8500.c 				((r / d) * m)
r                 324 drivers/clk/clk-vt8500.c #define WM8650_BITS_TO_FREQ(r, m, d1, d2)				\
r                 325 drivers/clk/clk-vt8500.c 				(r * m / (d1 * (1 << d2)))
r                 334 drivers/clk/clk-vt8500.c #define WM8750_BITS_TO_FREQ(r, m, d1, d2)				\
r                 335 drivers/clk/clk-vt8500.c 				(r * (m+1) / ((d1+1) * (1 << d2)))
r                 344 drivers/clk/clk-vt8500.c #define WM8850_BITS_TO_FREQ(r, m, d1, d2)				\
r                 345 drivers/clk/clk-vt8500.c 				(r * ((m + 1) * 2) / ((d1+1) * (1 << d2)))
r                 270 drivers/clk/clkdev.c 	struct clk *r = clk_get(dev, con_id);
r                 273 drivers/clk/clkdev.c 	if (IS_ERR(r))
r                 274 drivers/clk/clkdev.c 		return PTR_ERR(r);
r                 276 drivers/clk/clkdev.c 	l = clkdev_create(r, alias, alias_dev_name ? "%s" : NULL,
r                 278 drivers/clk/clkdev.c 	clk_put(r);
r                 135 drivers/clk/davinci/pll.c 	unsigned long best_rate, r;
r                 164 drivers/clk/davinci/pll.c 		r = parent_rate * mult;
r                 165 drivers/clk/davinci/pll.c 		if (r < req->min_rate)
r                 167 drivers/clk/davinci/pll.c 		if (r > rate || r > req->max_rate)
r                 169 drivers/clk/davinci/pll.c 		if (r > best_rate) {
r                 170 drivers/clk/davinci/pll.c 			best_rate = r;
r                 308 drivers/clk/imx/clk-imx5.c 	unsigned long r;
r                 382 drivers/clk/imx/clk-imx5.c 	r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
r                 383 drivers/clk/imx/clk-imx5.c 	clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);
r                 499 drivers/clk/imx/clk-imx5.c 	unsigned long r;
r                 633 drivers/clk/imx/clk-imx5.c 	r = clk_round_rate(clk[IMX5_CLK_USBOH3_PER_GATE], 54000000);
r                 634 drivers/clk/imx/clk-imx5.c 	clk_set_rate(clk[IMX5_CLK_USBOH3_PER_GATE], r);
r                 150 drivers/clk/mediatek/clk-mt2701-aud.c 	int r;
r                 157 drivers/clk/mediatek/clk-mt2701-aud.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 158 drivers/clk/mediatek/clk-mt2701-aud.c 	if (r) {
r                 161 drivers/clk/mediatek/clk-mt2701-aud.c 			pdev->name, r);
r                 166 drivers/clk/mediatek/clk-mt2701-aud.c 	r = devm_of_platform_populate(&pdev->dev);
r                 167 drivers/clk/mediatek/clk-mt2701-aud.c 	if (r)
r                 175 drivers/clk/mediatek/clk-mt2701-aud.c 	return r;
r                 105 drivers/clk/mediatek/clk-mt2701-bdp.c 	int r;
r                 113 drivers/clk/mediatek/clk-mt2701-bdp.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 114 drivers/clk/mediatek/clk-mt2701-bdp.c 	if (r)
r                 117 drivers/clk/mediatek/clk-mt2701-bdp.c 			pdev->name, r);
r                 119 drivers/clk/mediatek/clk-mt2701-bdp.c 	return r;
r                  47 drivers/clk/mediatek/clk-mt2701-eth.c 	int r;
r                  55 drivers/clk/mediatek/clk-mt2701-eth.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  56 drivers/clk/mediatek/clk-mt2701-eth.c 	if (r)
r                  59 drivers/clk/mediatek/clk-mt2701-eth.c 			pdev->name, r);
r                  63 drivers/clk/mediatek/clk-mt2701-eth.c 	return r;
r                  42 drivers/clk/mediatek/clk-mt2701-g3d.c 	int r;
r                  49 drivers/clk/mediatek/clk-mt2701-g3d.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  50 drivers/clk/mediatek/clk-mt2701-g3d.c 	if (r)
r                  53 drivers/clk/mediatek/clk-mt2701-g3d.c 			pdev->name, r);
r                  57 drivers/clk/mediatek/clk-mt2701-g3d.c 	return r;
r                  72 drivers/clk/mediatek/clk-mt2701-g3d.c 	int r;
r                  78 drivers/clk/mediatek/clk-mt2701-g3d.c 	r = clk_init(pdev);
r                  79 drivers/clk/mediatek/clk-mt2701-g3d.c 	if (r)
r                  82 drivers/clk/mediatek/clk-mt2701-g3d.c 			pdev->name, r);
r                  84 drivers/clk/mediatek/clk-mt2701-g3d.c 	return r;
r                  44 drivers/clk/mediatek/clk-mt2701-hif.c 	int r;
r                  52 drivers/clk/mediatek/clk-mt2701-hif.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  53 drivers/clk/mediatek/clk-mt2701-hif.c 	if (r) {
r                  56 drivers/clk/mediatek/clk-mt2701-hif.c 			pdev->name, r);
r                  57 drivers/clk/mediatek/clk-mt2701-hif.c 		return r;
r                  47 drivers/clk/mediatek/clk-mt2701-img.c 	int r;
r                  55 drivers/clk/mediatek/clk-mt2701-img.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  56 drivers/clk/mediatek/clk-mt2701-img.c 	if (r)
r                  59 drivers/clk/mediatek/clk-mt2701-img.c 			pdev->name, r);
r                  61 drivers/clk/mediatek/clk-mt2701-img.c 	return r;
r                  90 drivers/clk/mediatek/clk-mt2701-mm.c 	int r;
r                  98 drivers/clk/mediatek/clk-mt2701-mm.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  99 drivers/clk/mediatek/clk-mt2701-mm.c 	if (r)
r                 102 drivers/clk/mediatek/clk-mt2701-mm.c 			pdev->name, r);
r                 104 drivers/clk/mediatek/clk-mt2701-mm.c 	return r;
r                  58 drivers/clk/mediatek/clk-mt2701-vdec.c 	int r;
r                  66 drivers/clk/mediatek/clk-mt2701-vdec.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  67 drivers/clk/mediatek/clk-mt2701-vdec.c 	if (r)
r                  70 drivers/clk/mediatek/clk-mt2701-vdec.c 			pdev->name, r);
r                  72 drivers/clk/mediatek/clk-mt2701-vdec.c 	return r;
r                 741 drivers/clk/mediatek/clk-mt2701.c 	int r, i;
r                 756 drivers/clk/mediatek/clk-mt2701.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data);
r                 757 drivers/clk/mediatek/clk-mt2701.c 	if (r)
r                 759 drivers/clk/mediatek/clk-mt2701.c 			__func__, r);
r                 766 drivers/clk/mediatek/clk-mt2701.c 	int r, i;
r                 783 drivers/clk/mediatek/clk-mt2701.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data);
r                 784 drivers/clk/mediatek/clk-mt2701.c 	if (r)
r                 785 drivers/clk/mediatek/clk-mt2701.c 		return r;
r                 890 drivers/clk/mediatek/clk-mt2701.c 	int r;
r                 906 drivers/clk/mediatek/clk-mt2701.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 907 drivers/clk/mediatek/clk-mt2701.c 	if (r)
r                 908 drivers/clk/mediatek/clk-mt2701.c 		return r;
r                1007 drivers/clk/mediatek/clk-mt2701.c 	int r;
r                1013 drivers/clk/mediatek/clk-mt2701.c 	r = clk_init(pdev);
r                1014 drivers/clk/mediatek/clk-mt2701.c 	if (r)
r                1017 drivers/clk/mediatek/clk-mt2701.c 			pdev->name, r);
r                1019 drivers/clk/mediatek/clk-mt2701.c 	return r;
r                  64 drivers/clk/mediatek/clk-mt2712-bdp.c 	int r;
r                  72 drivers/clk/mediatek/clk-mt2712-bdp.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  74 drivers/clk/mediatek/clk-mt2712-bdp.c 	if (r != 0)
r                  76 drivers/clk/mediatek/clk-mt2712-bdp.c 			__func__, r);
r                  78 drivers/clk/mediatek/clk-mt2712-bdp.c 	return r;
r                  42 drivers/clk/mediatek/clk-mt2712-img.c 	int r;
r                  50 drivers/clk/mediatek/clk-mt2712-img.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  52 drivers/clk/mediatek/clk-mt2712-img.c 	if (r != 0)
r                  54 drivers/clk/mediatek/clk-mt2712-img.c 			__func__, r);
r                  56 drivers/clk/mediatek/clk-mt2712-img.c 	return r;
r                  38 drivers/clk/mediatek/clk-mt2712-jpgdec.c 	int r;
r                  46 drivers/clk/mediatek/clk-mt2712-jpgdec.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  48 drivers/clk/mediatek/clk-mt2712-jpgdec.c 	if (r != 0)
r                  50 drivers/clk/mediatek/clk-mt2712-jpgdec.c 			__func__, r);
r                  52 drivers/clk/mediatek/clk-mt2712-jpgdec.c 	return r;
r                  37 drivers/clk/mediatek/clk-mt2712-mfg.c 	int r;
r                  45 drivers/clk/mediatek/clk-mt2712-mfg.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  47 drivers/clk/mediatek/clk-mt2712-mfg.c 	if (r != 0)
r                  49 drivers/clk/mediatek/clk-mt2712-mfg.c 			__func__, r);
r                  51 drivers/clk/mediatek/clk-mt2712-mfg.c 	return r;
r                 132 drivers/clk/mediatek/clk-mt2712-mm.c 	int r;
r                 140 drivers/clk/mediatek/clk-mt2712-mm.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 142 drivers/clk/mediatek/clk-mt2712-mm.c 	if (r != 0)
r                 144 drivers/clk/mediatek/clk-mt2712-mm.c 			__func__, r);
r                 146 drivers/clk/mediatek/clk-mt2712-mm.c 	return r;
r                  56 drivers/clk/mediatek/clk-mt2712-vdec.c 	int r;
r                  64 drivers/clk/mediatek/clk-mt2712-vdec.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  66 drivers/clk/mediatek/clk-mt2712-vdec.c 	if (r != 0)
r                  68 drivers/clk/mediatek/clk-mt2712-vdec.c 			__func__, r);
r                  70 drivers/clk/mediatek/clk-mt2712-vdec.c 	return r;
r                  39 drivers/clk/mediatek/clk-mt2712-venc.c 	int r;
r                  47 drivers/clk/mediatek/clk-mt2712-venc.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  49 drivers/clk/mediatek/clk-mt2712-venc.c 	if (r != 0)
r                  51 drivers/clk/mediatek/clk-mt2712-venc.c 			__func__, r);
r                  53 drivers/clk/mediatek/clk-mt2712-venc.c 	return r;
r                1263 drivers/clk/mediatek/clk-mt2712.c 	int r;
r                1270 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1272 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1274 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1276 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1283 drivers/clk/mediatek/clk-mt2712.c 	int r, i;
r                1295 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, top_clk_data);
r                1296 drivers/clk/mediatek/clk-mt2712.c 	if (r)
r                1298 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1306 drivers/clk/mediatek/clk-mt2712.c 	int r, i;
r                1338 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, top_clk_data);
r                1340 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1342 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1344 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1350 drivers/clk/mediatek/clk-mt2712.c 	int r;
r                1358 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1360 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1362 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1366 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1372 drivers/clk/mediatek/clk-mt2712.c 	int r;
r                1380 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1382 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1384 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1388 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1394 drivers/clk/mediatek/clk-mt2712.c 	int r;
r                1410 drivers/clk/mediatek/clk-mt2712.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1412 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1414 drivers/clk/mediatek/clk-mt2712.c 			__func__, r);
r                1416 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1443 drivers/clk/mediatek/clk-mt2712.c 	int r;
r                1449 drivers/clk/mediatek/clk-mt2712.c 	r = clk_probe(pdev);
r                1450 drivers/clk/mediatek/clk-mt2712.c 	if (r != 0)
r                1453 drivers/clk/mediatek/clk-mt2712.c 			pdev->name, r);
r                1455 drivers/clk/mediatek/clk-mt2712.c 	return r;
r                1287 drivers/clk/mediatek/clk-mt6779.c 	int r;
r                1293 drivers/clk/mediatek/clk-mt6779.c 	r = clk_probe(pdev);
r                1294 drivers/clk/mediatek/clk-mt6779.c 	if (r)
r                1297 drivers/clk/mediatek/clk-mt6779.c 			pdev->name, r);
r                1299 drivers/clk/mediatek/clk-mt6779.c 	return r;
r                  43 drivers/clk/mediatek/clk-mt6797-img.c 	int r;
r                  51 drivers/clk/mediatek/clk-mt6797-img.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  52 drivers/clk/mediatek/clk-mt6797-img.c 	if (r)
r                  55 drivers/clk/mediatek/clk-mt6797-img.c 			pdev->name, r);
r                  57 drivers/clk/mediatek/clk-mt6797-img.c 	return r;
r                 103 drivers/clk/mediatek/clk-mt6797-mm.c 	int r;
r                 111 drivers/clk/mediatek/clk-mt6797-mm.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 112 drivers/clk/mediatek/clk-mt6797-mm.c 	if (r)
r                 115 drivers/clk/mediatek/clk-mt6797-mm.c 			pdev->name, r);
r                 117 drivers/clk/mediatek/clk-mt6797-mm.c 	return r;
r                  60 drivers/clk/mediatek/clk-mt6797-vdec.c 	int r;
r                  68 drivers/clk/mediatek/clk-mt6797-vdec.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  69 drivers/clk/mediatek/clk-mt6797-vdec.c 	if (r)
r                  72 drivers/clk/mediatek/clk-mt6797-vdec.c 			pdev->name, r);
r                  74 drivers/clk/mediatek/clk-mt6797-vdec.c 	return r;
r                  45 drivers/clk/mediatek/clk-mt6797-venc.c 	int r;
r                  53 drivers/clk/mediatek/clk-mt6797-venc.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  54 drivers/clk/mediatek/clk-mt6797-venc.c 	if (r)
r                  57 drivers/clk/mediatek/clk-mt6797-venc.c 			pdev->name, r);
r                  59 drivers/clk/mediatek/clk-mt6797-venc.c 	return r;
r                 563 drivers/clk/mediatek/clk-mt6797.c 	int r, i;
r                 575 drivers/clk/mediatek/clk-mt6797.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data);
r                 576 drivers/clk/mediatek/clk-mt6797.c 	if (r)
r                 578 drivers/clk/mediatek/clk-mt6797.c 		       __func__, r);
r                 586 drivers/clk/mediatek/clk-mt6797.c 	int r, i;
r                 603 drivers/clk/mediatek/clk-mt6797.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, infra_clk_data);
r                 604 drivers/clk/mediatek/clk-mt6797.c 	if (r)
r                 605 drivers/clk/mediatek/clk-mt6797.c 		return r;
r                 696 drivers/clk/mediatek/clk-mt6797.c 	int r;
r                 702 drivers/clk/mediatek/clk-mt6797.c 	r = clk_init(pdev);
r                 703 drivers/clk/mediatek/clk-mt6797.c 	if (r)
r                 706 drivers/clk/mediatek/clk-mt6797.c 			pdev->name, r);
r                 708 drivers/clk/mediatek/clk-mt6797.c 	return r;
r                 137 drivers/clk/mediatek/clk-mt7622-aud.c 	int r;
r                 144 drivers/clk/mediatek/clk-mt7622-aud.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 145 drivers/clk/mediatek/clk-mt7622-aud.c 	if (r) {
r                 148 drivers/clk/mediatek/clk-mt7622-aud.c 			pdev->name, r);
r                 153 drivers/clk/mediatek/clk-mt7622-aud.c 	r = devm_of_platform_populate(&pdev->dev);
r                 154 drivers/clk/mediatek/clk-mt7622-aud.c 	if (r)
r                 162 drivers/clk/mediatek/clk-mt7622-aud.c 	return r;
r                 177 drivers/clk/mediatek/clk-mt7622-aud.c 	int r;
r                 183 drivers/clk/mediatek/clk-mt7622-aud.c 	r = clk_init(pdev);
r                 184 drivers/clk/mediatek/clk-mt7622-aud.c 	if (r)
r                 187 drivers/clk/mediatek/clk-mt7622-aud.c 			pdev->name, r);
r                 189 drivers/clk/mediatek/clk-mt7622-aud.c 	return r;
r                  72 drivers/clk/mediatek/clk-mt7622-eth.c 	int r;
r                  79 drivers/clk/mediatek/clk-mt7622-eth.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  80 drivers/clk/mediatek/clk-mt7622-eth.c 	if (r)
r                  83 drivers/clk/mediatek/clk-mt7622-eth.c 			pdev->name, r);
r                  87 drivers/clk/mediatek/clk-mt7622-eth.c 	return r;
r                  94 drivers/clk/mediatek/clk-mt7622-eth.c 	int r;
r                 101 drivers/clk/mediatek/clk-mt7622-eth.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 102 drivers/clk/mediatek/clk-mt7622-eth.c 	if (r)
r                 105 drivers/clk/mediatek/clk-mt7622-eth.c 			pdev->name, r);
r                 107 drivers/clk/mediatek/clk-mt7622-eth.c 	return r;
r                 125 drivers/clk/mediatek/clk-mt7622-eth.c 	int r;
r                 131 drivers/clk/mediatek/clk-mt7622-eth.c 	r = clk_init(pdev);
r                 132 drivers/clk/mediatek/clk-mt7622-eth.c 	if (r)
r                 135 drivers/clk/mediatek/clk-mt7622-eth.c 			pdev->name, r);
r                 137 drivers/clk/mediatek/clk-mt7622-eth.c 	return r;
r                  83 drivers/clk/mediatek/clk-mt7622-hif.c 	int r;
r                  90 drivers/clk/mediatek/clk-mt7622-hif.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  91 drivers/clk/mediatek/clk-mt7622-hif.c 	if (r)
r                  94 drivers/clk/mediatek/clk-mt7622-hif.c 			pdev->name, r);
r                  98 drivers/clk/mediatek/clk-mt7622-hif.c 	return r;
r                 105 drivers/clk/mediatek/clk-mt7622-hif.c 	int r;
r                 112 drivers/clk/mediatek/clk-mt7622-hif.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 113 drivers/clk/mediatek/clk-mt7622-hif.c 	if (r)
r                 116 drivers/clk/mediatek/clk-mt7622-hif.c 			pdev->name, r);
r                 120 drivers/clk/mediatek/clk-mt7622-hif.c 	return r;
r                 138 drivers/clk/mediatek/clk-mt7622-hif.c 	int r;
r                 144 drivers/clk/mediatek/clk-mt7622-hif.c 	r = clk_init(pdev);
r                 145 drivers/clk/mediatek/clk-mt7622-hif.c 	if (r)
r                 148 drivers/clk/mediatek/clk-mt7622-hif.c 			pdev->name, r);
r                 150 drivers/clk/mediatek/clk-mt7622-hif.c 	return r;
r                 651 drivers/clk/mediatek/clk-mt7622.c 	int r;
r                 661 drivers/clk/mediatek/clk-mt7622.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get,
r                 663 drivers/clk/mediatek/clk-mt7622.c 	if (r)
r                 664 drivers/clk/mediatek/clk-mt7622.c 		return r;
r                 696 drivers/clk/mediatek/clk-mt7622.c 	int r;
r                 712 drivers/clk/mediatek/clk-mt7622.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 713 drivers/clk/mediatek/clk-mt7622.c 	if (r)
r                 714 drivers/clk/mediatek/clk-mt7622.c 		return r;
r                 744 drivers/clk/mediatek/clk-mt7622.c 	int r;
r                 750 drivers/clk/mediatek/clk-mt7622.c 	r = clk_init(pdev);
r                 751 drivers/clk/mediatek/clk-mt7622.c 	if (r)
r                 754 drivers/clk/mediatek/clk-mt7622.c 			pdev->name, r);
r                 756 drivers/clk/mediatek/clk-mt7622.c 	return r;
r                  83 drivers/clk/mediatek/clk-mt7629-eth.c 	int r;
r                  89 drivers/clk/mediatek/clk-mt7629-eth.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  90 drivers/clk/mediatek/clk-mt7629-eth.c 	if (r)
r                  93 drivers/clk/mediatek/clk-mt7629-eth.c 			pdev->name, r);
r                  97 drivers/clk/mediatek/clk-mt7629-eth.c 	return r;
r                 105 drivers/clk/mediatek/clk-mt7629-eth.c 	int r;
r                 112 drivers/clk/mediatek/clk-mt7629-eth.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 113 drivers/clk/mediatek/clk-mt7629-eth.c 	if (r)
r                 116 drivers/clk/mediatek/clk-mt7629-eth.c 			pdev->name, r);
r                 118 drivers/clk/mediatek/clk-mt7629-eth.c 	return r;
r                 136 drivers/clk/mediatek/clk-mt7629-eth.c 	int r;
r                 142 drivers/clk/mediatek/clk-mt7629-eth.c 	r = clk_init(pdev);
r                 143 drivers/clk/mediatek/clk-mt7629-eth.c 	if (r)
r                 146 drivers/clk/mediatek/clk-mt7629-eth.c 			pdev->name, r);
r                 148 drivers/clk/mediatek/clk-mt7629-eth.c 	return r;
r                  78 drivers/clk/mediatek/clk-mt7629-hif.c 	int r;
r                  85 drivers/clk/mediatek/clk-mt7629-hif.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  86 drivers/clk/mediatek/clk-mt7629-hif.c 	if (r)
r                  89 drivers/clk/mediatek/clk-mt7629-hif.c 			pdev->name, r);
r                  93 drivers/clk/mediatek/clk-mt7629-hif.c 	return r;
r                 100 drivers/clk/mediatek/clk-mt7629-hif.c 	int r;
r                 107 drivers/clk/mediatek/clk-mt7629-hif.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 108 drivers/clk/mediatek/clk-mt7629-hif.c 	if (r)
r                 111 drivers/clk/mediatek/clk-mt7629-hif.c 			pdev->name, r);
r                 115 drivers/clk/mediatek/clk-mt7629-hif.c 	return r;
r                 133 drivers/clk/mediatek/clk-mt7629-hif.c 	int r;
r                 139 drivers/clk/mediatek/clk-mt7629-hif.c 	r = clk_init(pdev);
r                 140 drivers/clk/mediatek/clk-mt7629-hif.c 	if (r)
r                 143 drivers/clk/mediatek/clk-mt7629-hif.c 			pdev->name, r);
r                 145 drivers/clk/mediatek/clk-mt7629-hif.c 	return r;
r                 605 drivers/clk/mediatek/clk-mt7629.c 	int r;
r                 615 drivers/clk/mediatek/clk-mt7629.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get,
r                 617 drivers/clk/mediatek/clk-mt7629.c 	if (r)
r                 618 drivers/clk/mediatek/clk-mt7629.c 		return r;
r                 627 drivers/clk/mediatek/clk-mt7629.c 	int r;
r                 643 drivers/clk/mediatek/clk-mt7629.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 644 drivers/clk/mediatek/clk-mt7629.c 	if (r)
r                 645 drivers/clk/mediatek/clk-mt7629.c 		return r;
r                 695 drivers/clk/mediatek/clk-mt7629.c 	int r;
r                 701 drivers/clk/mediatek/clk-mt7629.c 	r = clk_init(pdev);
r                 702 drivers/clk/mediatek/clk-mt7629.c 	if (r)
r                 705 drivers/clk/mediatek/clk-mt7629.c 			pdev->name, r);
r                 707 drivers/clk/mediatek/clk-mt7629.c 	return r;
r                 520 drivers/clk/mediatek/clk-mt8135.c 	int r;
r                 537 drivers/clk/mediatek/clk-mt8135.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 538 drivers/clk/mediatek/clk-mt8135.c 	if (r)
r                 540 drivers/clk/mediatek/clk-mt8135.c 			__func__, r);
r                 547 drivers/clk/mediatek/clk-mt8135.c 	int r;
r                 556 drivers/clk/mediatek/clk-mt8135.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 557 drivers/clk/mediatek/clk-mt8135.c 	if (r)
r                 559 drivers/clk/mediatek/clk-mt8135.c 			__func__, r);
r                 568 drivers/clk/mediatek/clk-mt8135.c 	int r;
r                 584 drivers/clk/mediatek/clk-mt8135.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 585 drivers/clk/mediatek/clk-mt8135.c 	if (r)
r                 587 drivers/clk/mediatek/clk-mt8135.c 			__func__, r);
r                 928 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                 943 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 944 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                 946 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                 955 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                 966 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 967 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                 969 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                 978 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                 994 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 995 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                 997 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1083 drivers/clk/mediatek/clk-mt8173.c 	int r, i;
r                1119 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1120 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1122 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1132 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                1139 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1141 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1143 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1150 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                1157 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1158 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1160 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1167 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                1174 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1175 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1177 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1184 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                1191 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1192 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1194 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                1201 drivers/clk/mediatek/clk-mt8173.c 	int r;
r                1208 drivers/clk/mediatek/clk-mt8173.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1209 drivers/clk/mediatek/clk-mt8173.c 	if (r)
r                1211 drivers/clk/mediatek/clk-mt8173.c 			__func__, r);
r                  73 drivers/clk/mediatek/clk-mt8183-audio.c 	int r;
r                  81 drivers/clk/mediatek/clk-mt8183-audio.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  82 drivers/clk/mediatek/clk-mt8183-audio.c 	if (r)
r                  83 drivers/clk/mediatek/clk-mt8183-audio.c 		return r;
r                  85 drivers/clk/mediatek/clk-mt8183-audio.c 	r = devm_of_platform_populate(&pdev->dev);
r                  86 drivers/clk/mediatek/clk-mt8183-audio.c 	if (r)
r                  89 drivers/clk/mediatek/clk-mt8183-audio.c 	return r;
r                1227 drivers/clk/mediatek/clk-mt8183.c 	int r;
r                1234 drivers/clk/mediatek/clk-mt8183.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                1235 drivers/clk/mediatek/clk-mt8183.c 	if (r) {
r                1238 drivers/clk/mediatek/clk-mt8183.c 			__func__, r);
r                1239 drivers/clk/mediatek/clk-mt8183.c 		return r;
r                1244 drivers/clk/mediatek/clk-mt8183.c 	return r;
r                1303 drivers/clk/mediatek/clk-mt8183.c 	int r;
r                1309 drivers/clk/mediatek/clk-mt8183.c 	r = clk_probe(pdev);
r                1310 drivers/clk/mediatek/clk-mt8183.c 	if (r)
r                1313 drivers/clk/mediatek/clk-mt8183.c 			pdev->name, r);
r                1315 drivers/clk/mediatek/clk-mt8183.c 	return r;
r                  53 drivers/clk/mediatek/clk-mt8516-aud.c 	int r;
r                  59 drivers/clk/mediatek/clk-mt8516-aud.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                  60 drivers/clk/mediatek/clk-mt8516-aud.c 	if (r)
r                  62 drivers/clk/mediatek/clk-mt8516-aud.c 			__func__, r);
r                 680 drivers/clk/mediatek/clk-mt8516.c 	int r;
r                 701 drivers/clk/mediatek/clk-mt8516.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 702 drivers/clk/mediatek/clk-mt8516.c 	if (r)
r                 704 drivers/clk/mediatek/clk-mt8516.c 			__func__, r);
r                 711 drivers/clk/mediatek/clk-mt8516.c 	int r;
r                 725 drivers/clk/mediatek/clk-mt8516.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 726 drivers/clk/mediatek/clk-mt8516.c 	if (r)
r                 728 drivers/clk/mediatek/clk-mt8516.c 			__func__, r);
r                 791 drivers/clk/mediatek/clk-mt8516.c 	int r;
r                 803 drivers/clk/mediatek/clk-mt8516.c 	r = of_clk_add_provider(node, of_clk_src_onecell_get, clk_data);
r                 804 drivers/clk/mediatek/clk-mt8516.c 	if (r)
r                 806 drivers/clk/mediatek/clk-mt8516.c 			__func__, r);
r                  91 drivers/clk/mediatek/clk-pll.c 	u32 r;
r                  94 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->tuner_en_addr) | BIT(pll->data->tuner_en_bit);
r                  95 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->tuner_en_addr);
r                  97 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->tuner_addr) | AUDPLL_TUNER_EN;
r                  98 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->tuner_addr);
r                 104 drivers/clk/mediatek/clk-pll.c 	u32 r;
r                 107 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->tuner_en_addr) & ~BIT(pll->data->tuner_en_bit);
r                 108 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->tuner_en_addr);
r                 110 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->tuner_addr) & ~AUDPLL_TUNER_EN;
r                 111 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->tuner_addr);
r                 240 drivers/clk/mediatek/clk-pll.c 	u32 r;
r                 242 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->pwr_addr) | CON0_PWR_ON;
r                 243 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->pwr_addr);
r                 246 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->pwr_addr) & ~CON0_ISO_EN;
r                 247 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->pwr_addr);
r                 250 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->base_addr + REG_CON0);
r                 251 drivers/clk/mediatek/clk-pll.c 	r |= pll->data->en_mask;
r                 252 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->base_addr + REG_CON0);
r                 259 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->base_addr + REG_CON0);
r                 260 drivers/clk/mediatek/clk-pll.c 		r |= pll->data->rst_bar_mask;
r                 261 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->base_addr + REG_CON0);
r                 270 drivers/clk/mediatek/clk-pll.c 	u32 r;
r                 273 drivers/clk/mediatek/clk-pll.c 		r = readl(pll->base_addr + REG_CON0);
r                 274 drivers/clk/mediatek/clk-pll.c 		r &= ~pll->data->rst_bar_mask;
r                 275 drivers/clk/mediatek/clk-pll.c 		writel(r, pll->base_addr + REG_CON0);
r                 280 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->base_addr + REG_CON0);
r                 281 drivers/clk/mediatek/clk-pll.c 	r &= ~CON0_BASE_EN;
r                 282 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->base_addr + REG_CON0);
r                 284 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->pwr_addr) | CON0_ISO_EN;
r                 285 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->pwr_addr);
r                 287 drivers/clk/mediatek/clk-pll.c 	r = readl(pll->pwr_addr) & ~CON0_PWR_ON;
r                 288 drivers/clk/mediatek/clk-pll.c 	writel(r, pll->pwr_addr);
r                 170 drivers/clk/qcom/clk-rcg.h #define DEFINE_RCG_DFS(r) \
r                 171 drivers/clk/qcom/clk-rcg.h 	{ .rcg = &r##_src, .init = &r##_init }
r                  64 drivers/clk/qcom/clk-rpm.c #define DEFINE_CLK_RPM_FIXED(_platform, _name, _active, r_id, r)	      \
r                  67 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
r                  76 drivers/clk/qcom/clk-rpm.c #define DEFINE_CLK_RPM_PXO_BRANCH(_platform, _name, _active, r_id, r)	      \
r                  82 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
r                  94 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
r                 104 drivers/clk/qcom/clk-rpm.c #define DEFINE_CLK_RPM_CXO_BRANCH(_platform, _name, _active, r_id, r)	      \
r                 109 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
r                 122 drivers/clk/qcom/clk-rpm.c 		.rate = (r),						      \
r                 164 drivers/clk/qcom/clk-rpm.c static int clk_rpm_handoff(struct clk_rpm *r)
r                 173 drivers/clk/qcom/clk-rpm.c 	if (r->rpm_clk_id == QCOM_RPM_PLL_4 ||
r                 174 drivers/clk/qcom/clk-rpm.c 		r->rpm_clk_id == QCOM_RPM_CXO_BUFFERS)
r                 177 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE,
r                 178 drivers/clk/qcom/clk-rpm.c 			     r->rpm_clk_id, &value, 1);
r                 181 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE,
r                 182 drivers/clk/qcom/clk-rpm.c 			     r->rpm_clk_id, &value, 1);
r                 189 drivers/clk/qcom/clk-rpm.c static int clk_rpm_set_rate_active(struct clk_rpm *r, unsigned long rate)
r                 193 drivers/clk/qcom/clk-rpm.c 	return qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE,
r                 194 drivers/clk/qcom/clk-rpm.c 			      r->rpm_clk_id, &value, 1);
r                 197 drivers/clk/qcom/clk-rpm.c static int clk_rpm_set_rate_sleep(struct clk_rpm *r, unsigned long rate)
r                 201 drivers/clk/qcom/clk-rpm.c 	return qcom_rpm_write(r->rpm, QCOM_RPM_SLEEP_STATE,
r                 202 drivers/clk/qcom/clk-rpm.c 			      r->rpm_clk_id, &value, 1);
r                 205 drivers/clk/qcom/clk-rpm.c static void to_active_sleep(struct clk_rpm *r, unsigned long rate,
r                 214 drivers/clk/qcom/clk-rpm.c 	if (r->active_only)
r                 222 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 223 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *peer = r->peer;
r                 232 drivers/clk/qcom/clk-rpm.c 	if (!r->rate)
r                 235 drivers/clk/qcom/clk-rpm.c 	to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
r                 244 drivers/clk/qcom/clk-rpm.c 	if (r->branch)
r                 247 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_active(r, active_rate);
r                 252 drivers/clk/qcom/clk-rpm.c 	if (r->branch)
r                 255 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_sleep(r, sleep_rate);
r                 258 drivers/clk/qcom/clk-rpm.c 		ret = clk_rpm_set_rate_active(r, peer_rate);
r                 262 drivers/clk/qcom/clk-rpm.c 		r->enabled = true;
r                 271 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 272 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *peer = r->peer;
r                 279 drivers/clk/qcom/clk-rpm.c 	if (!r->rate)
r                 287 drivers/clk/qcom/clk-rpm.c 	active_rate = r->branch ? !!peer_rate : peer_rate;
r                 288 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_active(r, active_rate);
r                 292 drivers/clk/qcom/clk-rpm.c 	sleep_rate = r->branch ? !!peer_sleep_rate : peer_sleep_rate;
r                 293 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_sleep(r, sleep_rate);
r                 297 drivers/clk/qcom/clk-rpm.c 	r->enabled = false;
r                 305 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 306 drivers/clk/qcom/clk-rpm.c 	struct rpm_cc *rcc = r->rpm_cc;
r                 307 drivers/clk/qcom/clk-rpm.c 	int ret, clk_id = r->rpm_clk_id;
r                 312 drivers/clk/qcom/clk-rpm.c 	value = rcc->xo_buffer_value | (QCOM_RPM_XO_MODE_ON << r->xo_offset);
r                 313 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1);
r                 315 drivers/clk/qcom/clk-rpm.c 		r->enabled = true;
r                 326 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 327 drivers/clk/qcom/clk-rpm.c 	struct rpm_cc *rcc = r->rpm_cc;
r                 328 drivers/clk/qcom/clk-rpm.c 	int ret, clk_id = r->rpm_clk_id;
r                 333 drivers/clk/qcom/clk-rpm.c 	value = rcc->xo_buffer_value & ~(QCOM_RPM_XO_MODE_ON << r->xo_offset);
r                 334 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE, clk_id, &value, 1);
r                 336 drivers/clk/qcom/clk-rpm.c 		r->enabled = false;
r                 345 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 349 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE,
r                 350 drivers/clk/qcom/clk-rpm.c 			     r->rpm_clk_id, &value, 1);
r                 352 drivers/clk/qcom/clk-rpm.c 		r->enabled = true;
r                 359 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 363 drivers/clk/qcom/clk-rpm.c 	ret = qcom_rpm_write(r->rpm, QCOM_RPM_ACTIVE_STATE,
r                 364 drivers/clk/qcom/clk-rpm.c 			     r->rpm_clk_id, &value, 1);
r                 366 drivers/clk/qcom/clk-rpm.c 		r->enabled = false;
r                 372 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 373 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *peer = r->peer;
r                 381 drivers/clk/qcom/clk-rpm.c 	if (!r->enabled)
r                 384 drivers/clk/qcom/clk-rpm.c 	to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
r                 392 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_active(r, active_rate);
r                 397 drivers/clk/qcom/clk-rpm.c 	ret = clk_rpm_set_rate_sleep(r, sleep_rate);
r                 401 drivers/clk/qcom/clk-rpm.c 	r->rate = rate;
r                 423 drivers/clk/qcom/clk-rpm.c 	struct clk_rpm *r = to_clk_rpm(hw);
r                 430 drivers/clk/qcom/clk-rpm.c 	return r->rate;
r                 233 drivers/clk/qcom/clk-rpmh.c 	struct clk_rpmh *r = to_clk_rpmh(hw);
r                 238 drivers/clk/qcom/clk-rpmh.c 	return prate / r->div;
r                  63 drivers/clk/qcom/clk-smd-rpm.c 				    stat_id, r, key)			      \
r                  72 drivers/clk/qcom/clk-smd-rpm.c 		.rate = (r),						      \
r                  88 drivers/clk/qcom/clk-smd-rpm.c 		.rate = (r),						      \
r                 101 drivers/clk/qcom/clk-smd-rpm.c #define DEFINE_CLK_SMD_RPM_BRANCH(_platform, _name, _active, type, r_id, r)   \
r                 103 drivers/clk/qcom/clk-smd-rpm.c 		r_id, 0, r, QCOM_RPM_SMD_KEY_ENABLE)
r                 154 drivers/clk/qcom/clk-smd-rpm.c static int clk_smd_rpm_handoff(struct clk_smd_rpm *r)
r                 158 drivers/clk/qcom/clk-smd-rpm.c 		.key = cpu_to_le32(r->rpm_key),
r                 160 drivers/clk/qcom/clk-smd-rpm.c 		.value = cpu_to_le32(r->branch ? 1 : INT_MAX),
r                 163 drivers/clk/qcom/clk-smd-rpm.c 	ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE,
r                 164 drivers/clk/qcom/clk-smd-rpm.c 				 r->rpm_res_type, r->rpm_clk_id, &req,
r                 168 drivers/clk/qcom/clk-smd-rpm.c 	ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE,
r                 169 drivers/clk/qcom/clk-smd-rpm.c 				 r->rpm_res_type, r->rpm_clk_id, &req,
r                 177 drivers/clk/qcom/clk-smd-rpm.c static int clk_smd_rpm_set_rate_active(struct clk_smd_rpm *r,
r                 181 drivers/clk/qcom/clk-smd-rpm.c 		.key = cpu_to_le32(r->rpm_key),
r                 186 drivers/clk/qcom/clk-smd-rpm.c 	return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE,
r                 187 drivers/clk/qcom/clk-smd-rpm.c 				  r->rpm_res_type, r->rpm_clk_id, &req,
r                 191 drivers/clk/qcom/clk-smd-rpm.c static int clk_smd_rpm_set_rate_sleep(struct clk_smd_rpm *r,
r                 195 drivers/clk/qcom/clk-smd-rpm.c 		.key = cpu_to_le32(r->rpm_key),
r                 200 drivers/clk/qcom/clk-smd-rpm.c 	return qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_SLEEP_STATE,
r                 201 drivers/clk/qcom/clk-smd-rpm.c 				  r->rpm_res_type, r->rpm_clk_id, &req,
r                 205 drivers/clk/qcom/clk-smd-rpm.c static void to_active_sleep(struct clk_smd_rpm *r, unsigned long rate,
r                 214 drivers/clk/qcom/clk-smd-rpm.c 	if (r->active_only)
r                 222 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *r = to_clk_smd_rpm(hw);
r                 223 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *peer = r->peer;
r                 232 drivers/clk/qcom/clk-smd-rpm.c 	if (!r->rate)
r                 235 drivers/clk/qcom/clk-smd-rpm.c 	to_active_sleep(r, r->rate, &this_rate, &this_sleep_rate);
r                 244 drivers/clk/qcom/clk-smd-rpm.c 	if (r->branch)
r                 247 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_active(r, active_rate);
r                 252 drivers/clk/qcom/clk-smd-rpm.c 	if (r->branch)
r                 255 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_sleep(r, sleep_rate);
r                 258 drivers/clk/qcom/clk-smd-rpm.c 		ret = clk_smd_rpm_set_rate_active(r, peer_rate);
r                 262 drivers/clk/qcom/clk-smd-rpm.c 		r->enabled = true;
r                 271 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *r = to_clk_smd_rpm(hw);
r                 272 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *peer = r->peer;
r                 279 drivers/clk/qcom/clk-smd-rpm.c 	if (!r->rate)
r                 287 drivers/clk/qcom/clk-smd-rpm.c 	active_rate = r->branch ? !!peer_rate : peer_rate;
r                 288 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_active(r, active_rate);
r                 292 drivers/clk/qcom/clk-smd-rpm.c 	sleep_rate = r->branch ? !!peer_sleep_rate : peer_sleep_rate;
r                 293 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_sleep(r, sleep_rate);
r                 297 drivers/clk/qcom/clk-smd-rpm.c 	r->enabled = false;
r                 306 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *r = to_clk_smd_rpm(hw);
r                 307 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *peer = r->peer;
r                 315 drivers/clk/qcom/clk-smd-rpm.c 	if (!r->enabled)
r                 318 drivers/clk/qcom/clk-smd-rpm.c 	to_active_sleep(r, rate, &this_rate, &this_sleep_rate);
r                 326 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_active(r, active_rate);
r                 331 drivers/clk/qcom/clk-smd-rpm.c 	ret = clk_smd_rpm_set_rate_sleep(r, sleep_rate);
r                 335 drivers/clk/qcom/clk-smd-rpm.c 	r->rate = rate;
r                 357 drivers/clk/qcom/clk-smd-rpm.c 	struct clk_smd_rpm *r = to_clk_smd_rpm(hw);
r                 364 drivers/clk/qcom/clk-smd-rpm.c 	return r->rate;
r                  70 drivers/clk/qcom/gdsc.h 				struct regmap *r)
r                  24 drivers/clk/qcom/reset.h #define to_qcom_reset_controller(r) \
r                  25 drivers/clk/qcom/reset.h 	container_of(r, struct qcom_reset_controller, rcdev);
r                 935 drivers/clk/samsung/clk-pll.c 	u32 r, p, m, s, pll_stat;
r                 939 drivers/clk/samsung/clk-pll.c 	r = (pll_stat >> PLL2550X_R_SHIFT) & PLL2550X_R_MASK;
r                 940 drivers/clk/samsung/clk-pll.c 	if (!r)
r                 234 drivers/clk/sifive/fu540-prci.c static void __prci_wrpll_unpack(struct wrpll_cfg *c, u32 r)
r                 238 drivers/clk/sifive/fu540-prci.c 	v = r & PRCI_COREPLLCFG0_DIVR_MASK;
r                 242 drivers/clk/sifive/fu540-prci.c 	v = r & PRCI_COREPLLCFG0_DIVF_MASK;
r                 246 drivers/clk/sifive/fu540-prci.c 	v = r & PRCI_COREPLLCFG0_DIVQ_MASK;
r                 250 drivers/clk/sifive/fu540-prci.c 	v = r & PRCI_COREPLLCFG0_RANGE_MASK;
r                 278 drivers/clk/sifive/fu540-prci.c 	u32 r = 0;
r                 280 drivers/clk/sifive/fu540-prci.c 	r |= c->divr << PRCI_COREPLLCFG0_DIVR_SHIFT;
r                 281 drivers/clk/sifive/fu540-prci.c 	r |= c->divf << PRCI_COREPLLCFG0_DIVF_SHIFT;
r                 282 drivers/clk/sifive/fu540-prci.c 	r |= c->divq << PRCI_COREPLLCFG0_DIVQ_SHIFT;
r                 283 drivers/clk/sifive/fu540-prci.c 	r |= c->range << PRCI_COREPLLCFG0_RANGE_SHIFT;
r                 286 drivers/clk/sifive/fu540-prci.c 	r |= PRCI_COREPLLCFG0_FSE_MASK;
r                 288 drivers/clk/sifive/fu540-prci.c 	return r;
r                 345 drivers/clk/sifive/fu540-prci.c 	u32 r;
r                 347 drivers/clk/sifive/fu540-prci.c 	r = __prci_readl(pd, PRCI_CORECLKSEL_OFFSET);
r                 348 drivers/clk/sifive/fu540-prci.c 	r |= PRCI_CORECLKSEL_CORECLKSEL_MASK;
r                 349 drivers/clk/sifive/fu540-prci.c 	__prci_writel(r, PRCI_CORECLKSEL_OFFSET, pd);
r                 351 drivers/clk/sifive/fu540-prci.c 	r = __prci_readl(pd, PRCI_CORECLKSEL_OFFSET); /* barrier */
r                 365 drivers/clk/sifive/fu540-prci.c 	u32 r;
r                 367 drivers/clk/sifive/fu540-prci.c 	r = __prci_readl(pd, PRCI_CORECLKSEL_OFFSET);
r                 368 drivers/clk/sifive/fu540-prci.c 	r &= ~PRCI_CORECLKSEL_CORECLKSEL_MASK;
r                 369 drivers/clk/sifive/fu540-prci.c 	__prci_writel(r, PRCI_CORECLKSEL_OFFSET, pd);
r                 371 drivers/clk/sifive/fu540-prci.c 	r = __prci_readl(pd, PRCI_CORECLKSEL_OFFSET); /* barrier */
r                 412 drivers/clk/sifive/fu540-prci.c 	int r;
r                 414 drivers/clk/sifive/fu540-prci.c 	r = wrpll_configure_for_rate(&pwd->c, rate, parent_rate);
r                 415 drivers/clk/sifive/fu540-prci.c 	if (r)
r                 416 drivers/clk/sifive/fu540-prci.c 		return r;
r                 523 drivers/clk/sifive/fu540-prci.c 	int parent_count, i, r;
r                 547 drivers/clk/sifive/fu540-prci.c 		r = devm_clk_hw_register(dev, &pic->hw);
r                 548 drivers/clk/sifive/fu540-prci.c 		if (r) {
r                 550 drivers/clk/sifive/fu540-prci.c 				 init.name, r);
r                 551 drivers/clk/sifive/fu540-prci.c 			return r;
r                 554 drivers/clk/sifive/fu540-prci.c 		r = clk_hw_register_clkdev(&pic->hw, pic->name, dev_name(dev));
r                 555 drivers/clk/sifive/fu540-prci.c 		if (r) {
r                 557 drivers/clk/sifive/fu540-prci.c 				 init.name, r);
r                 558 drivers/clk/sifive/fu540-prci.c 			return r;
r                 566 drivers/clk/sifive/fu540-prci.c 	r = devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get,
r                 568 drivers/clk/sifive/fu540-prci.c 	if (r) {
r                 569 drivers/clk/sifive/fu540-prci.c 		dev_err(dev, "could not add hw_provider: %d\n", r);
r                 570 drivers/clk/sifive/fu540-prci.c 		return r;
r                 587 drivers/clk/sifive/fu540-prci.c 	int r;
r                 598 drivers/clk/sifive/fu540-prci.c 	r = __prci_register_clocks(dev, pd);
r                 599 drivers/clk/sifive/fu540-prci.c 	if (r) {
r                 600 drivers/clk/sifive/fu540-prci.c 		dev_err(dev, "could not register clocks: %d\n", r);
r                 601 drivers/clk/sifive/fu540-prci.c 		return r;
r                  91 drivers/clk/sunxi/clk-mod0.c 	struct resource *r;
r                  97 drivers/clk/sunxi/clk-mod0.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  98 drivers/clk/sunxi/clk-mod0.c 	reg = devm_ioremap_resource(&pdev->dev, r);
r                  44 drivers/clk/sunxi/clk-sun6i-apb0-gates.c 	struct resource *r;
r                  58 drivers/clk/sunxi/clk-sun6i-apb0-gates.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  59 drivers/clk/sunxi/clk-sun6i-apb0-gates.c 	reg = devm_ioremap_resource(&pdev->dev, r);
r                  35 drivers/clk/sunxi/clk-sun6i-apb0.c 	struct resource *r;
r                  39 drivers/clk/sunxi/clk-sun6i-apb0.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  40 drivers/clk/sunxi/clk-sun6i-apb0.c 	reg = devm_ioremap_resource(&pdev->dev, r);
r                  74 drivers/clk/sunxi/clk-sun6i-ar100.c 	struct resource *r;
r                  78 drivers/clk/sunxi/clk-sun6i-ar100.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  79 drivers/clk/sunxi/clk-sun6i-ar100.c 	reg = devm_ioremap_resource(&pdev->dev, r);
r                  90 drivers/clk/sunxi/clk-sun8i-apb0.c 	struct resource *r;
r                  94 drivers/clk/sunxi/clk-sun8i-apb0.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  95 drivers/clk/sunxi/clk-sun8i-apb0.c 	reg = devm_ioremap_resource(&pdev->dev, r);
r                 102 drivers/clk/sunxi/clk-sun9i-mmc.c 	struct resource *r;
r                 111 drivers/clk/sunxi/clk-sun9i-mmc.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 113 drivers/clk/sunxi/clk-sun9i-mmc.c 	count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH);
r                 114 drivers/clk/sunxi/clk-sun9i-mmc.c 	data->membase = devm_ioremap_resource(&pdev->dev, r);
r                1268 drivers/clk/tegra/clk-tegra114.c 	u32 dr = 0, r = 0;
r                1271 drivers/clk/tegra/clk-tegra114.c 	r |= (CPU_FINETRIM_R_FCPU_1_MASK | CPU_FINETRIM_R_FCPU_2_MASK |
r                1274 drivers/clk/tegra/clk-tegra114.c 	writel_relaxed(r, clk_base + CPU_FINETRIM_R);
r                  43 drivers/clk/ti/apll.c 	int r = 0, i = 0;
r                  61 drivers/clk/ti/apll.c 		return r;
r                  83 drivers/clk/ti/apll.c 		r = -EBUSY;
r                  88 drivers/clk/ti/apll.c 	return r;
r                  98 drivers/clk/ti/clkt_dflt.c 	int r;
r                 109 drivers/clk/ti/clkt_dflt.c 	r = ti_clk_ll_ops->cm_split_idlest_reg(&idlest_reg, &prcm_mod,
r                 111 drivers/clk/ti/clkt_dflt.c 	if (r) {
r                 144 drivers/clk/ti/clkt_dpll.c 	int r = 0, carry = 0;
r                 165 drivers/clk/ti/clkt_dpll.c 		r = DPLL_MULT_UNDERFLOW;
r                 171 drivers/clk/ti/clkt_dpll.c 	return r;
r                 286 drivers/clk/ti/clkt_dpll.c 	int m, n, r, scaled_max_m;
r                 316 drivers/clk/ti/clkt_dpll.c 		r = _dpll_test_fint(clk, n);
r                 317 drivers/clk/ti/clkt_dpll.c 		if (r == DPLL_FINT_UNDERFLOW)
r                 319 drivers/clk/ti/clkt_dpll.c 		else if (r == DPLL_FINT_INVALID)
r                 334 drivers/clk/ti/clkt_dpll.c 		r = _dpll_test_mult(&m, n, &new_rate, target_rate,
r                 338 drivers/clk/ti/clkt_dpll.c 		if (r == DPLL_MULT_UNDERFLOW)
r                  31 drivers/clk/ti/clkt_iclk.c 	struct clk_omap_reg r;
r                  33 drivers/clk/ti/clkt_iclk.c 	memcpy(&r, &clk->enable_reg, sizeof(r));
r                  34 drivers/clk/ti/clkt_iclk.c 	r.offset ^= (CM_AUTOIDLE ^ CM_ICLKEN);
r                  36 drivers/clk/ti/clkt_iclk.c 	v = ti_clk_ll_ops->clk_readl(&r);
r                  38 drivers/clk/ti/clkt_iclk.c 	ti_clk_ll_ops->clk_writel(v, &r);
r                  45 drivers/clk/ti/clkt_iclk.c 	struct clk_omap_reg r;
r                  47 drivers/clk/ti/clkt_iclk.c 	memcpy(&r, &clk->enable_reg, sizeof(r));
r                  49 drivers/clk/ti/clkt_iclk.c 	r.offset ^= (CM_AUTOIDLE ^ CM_ICLKEN);
r                  51 drivers/clk/ti/clkt_iclk.c 	v = ti_clk_ll_ops->clk_readl(&r);
r                  53 drivers/clk/ti/clkt_iclk.c 	ti_clk_ll_ops->clk_writel(v, &r);
r                 121 drivers/clk/ti/divider.c #define MULT_ROUND_UP(r, m) ((r) * (m) + (m) - 1)
r                 143 drivers/clk/ti/dpll3xxx.c 	int r = 0;
r                 162 drivers/clk/ti/dpll3xxx.c 	r = _omap3_wait_dpll_status(clk, 1);
r                 168 drivers/clk/ti/dpll3xxx.c 	return r;
r                 186 drivers/clk/ti/dpll3xxx.c 	int r;
r                 199 drivers/clk/ti/dpll3xxx.c 	r = _omap3_wait_dpll_status(clk, 0);
r                 204 drivers/clk/ti/dpll3xxx.c 	return r;
r                 439 drivers/clk/ti/dpll3xxx.c 	int r;
r                 448 drivers/clk/ti/dpll3xxx.c 		r = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
r                 449 drivers/clk/ti/dpll3xxx.c 		if (r) {
r                 453 drivers/clk/ti/dpll3xxx.c 			     clk->clkdm_name, r);
r                 454 drivers/clk/ti/dpll3xxx.c 			return r;
r                 462 drivers/clk/ti/dpll3xxx.c 		r = _omap3_noncore_dpll_bypass(clk);
r                 465 drivers/clk/ti/dpll3xxx.c 		r = _omap3_noncore_dpll_lock(clk);
r                 468 drivers/clk/ti/dpll3xxx.c 	return r;
r                 153 drivers/clk/ti/dpll44xx.c 	long r;
r                 166 drivers/clk/ti/dpll44xx.c 	r = omap2_dpll_round_rate(hw, target_rate, NULL);
r                 167 drivers/clk/ti/dpll44xx.c 	if (r != ~0)
r                 175 drivers/clk/ti/dpll44xx.c 	r = omap2_dpll_round_rate(hw, target_rate / OMAP4430_REGM4XEN_MULT,
r                 177 drivers/clk/ti/dpll44xx.c 	if (r == ~0)
r                 178 drivers/clk/ti/dpll44xx.c 		return r;
r                 414 drivers/clk/ti/fapll.c 	unsigned long r;
r                 426 drivers/clk/ti/fapll.c 		r = DIV_ROUND_UP(frac_rate, synth_post_div_m);
r                 430 drivers/clk/ti/fapll.c 	r = *parent_rate * SYNTH_PHASE_K;
r                 431 drivers/clk/ti/fapll.c 	if (rate > r)
r                 434 drivers/clk/ti/fapll.c 	r = DIV_ROUND_UP_ULL(r, SYNTH_MAX_INT_DIV * SYNTH_MAX_DIV_M);
r                 435 drivers/clk/ti/fapll.c 	if (rate < r)
r                 438 drivers/clk/ti/fapll.c 	r = rate;
r                 440 drivers/clk/ti/fapll.c 	return r;
r                  69 drivers/clk/ux500/u8500_of_clk.c 		struct resource r;
r                  71 drivers/clk/ux500/u8500_of_clk.c 		if (of_address_to_resource(np, i, &r))
r                  75 drivers/clk/ux500/u8500_of_clk.c 		bases[i] = r.start;
r                  93 drivers/clk/versatile/clk-icst.c 		vco->r = 22;
r                 108 drivers/clk/versatile/clk-icst.c 		vco->r = 46;
r                 125 drivers/clk/versatile/clk-icst.c 		vco->r = divxy ? 22 : 14;
r                 140 drivers/clk/versatile/clk-icst.c 		vco->r = 22;
r                 147 drivers/clk/versatile/clk-icst.c 		vco->r = 22;
r                 153 drivers/clk/versatile/clk-icst.c 	vco->r = (val >> 9) & 0x7f;
r                 178 drivers/clk/versatile/clk-icst.c 		if (vco.r != 22)
r                 188 drivers/clk/versatile/clk-icst.c 		if (vco.r != 46)
r                 196 drivers/clk/versatile/clk-icst.c 		if (vco.r != 22)
r                 204 drivers/clk/versatile/clk-icst.c 		if (vco.r != 22)
r                 210 drivers/clk/versatile/clk-icst.c 		val = vco.v | (vco.r << 9) | (vco.s << 16);
r                  30 drivers/clk/versatile/icst.c 	u32 divisor = (vco.r + 2) * p->s2div[vco.s];
r                  49 drivers/clk/versatile/icst.c 	struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
r                  92 drivers/clk/versatile/icst.c 			vco.r = rd - 2;
r                  26 drivers/clk/versatile/icst.h 	unsigned char	r;
r                 135 drivers/connector/cn_proc.c 		ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid);
r                 138 drivers/connector/cn_proc.c 		ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid);
r                1524 drivers/counter/counter.c 	struct counter_device **r = res;
r                1526 drivers/counter/counter.c 	if (!r || !*r) {
r                1527 drivers/counter/counter.c 		WARN_ON(!r || !*r);
r                1531 drivers/counter/counter.c 	return *r == data;
r                  44 drivers/cpufreq/omap-cpufreq.c 	int r, ret;
r                  81 drivers/cpufreq/omap-cpufreq.c 		r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol);
r                  82 drivers/cpufreq/omap-cpufreq.c 		if (r < 0) {
r                  85 drivers/cpufreq/omap-cpufreq.c 			return r;
r                  93 drivers/cpufreq/omap-cpufreq.c 		r = regulator_set_voltage(mpu_reg, volt - tol, volt + tol);
r                  94 drivers/cpufreq/omap-cpufreq.c 		if (r < 0) {
r                  98 drivers/cpufreq/omap-cpufreq.c 			return r;
r                 176 drivers/cpufreq/s3c64xx-cpufreq.c 		unsigned long r;
r                 179 drivers/cpufreq/s3c64xx-cpufreq.c 		r = clk_round_rate(policy->clk, freq->frequency * 1000);
r                 180 drivers/cpufreq/s3c64xx-cpufreq.c 		r /= 1000;
r                 181 drivers/cpufreq/s3c64xx-cpufreq.c 		if (r != freq->frequency) {
r                 245 drivers/cpuidle/coupled.c 	int r = atomic_read(&coupled->ready_waiting_counts) >> WAITING_BITS;
r                 246 drivers/cpuidle/coupled.c 	return r == 0;
r                 257 drivers/cpuidle/coupled.c 	int r = atomic_read(&coupled->ready_waiting_counts) >> WAITING_BITS;
r                 258 drivers/cpuidle/coupled.c 	return r == coupled->online_count;
r                 504 drivers/crypto/caam/jr.c 	struct resource *r;
r                 520 drivers/crypto/caam/jr.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 521 drivers/crypto/caam/jr.c 	if (!r) {
r                 526 drivers/crypto/caam/jr.c 	ctrl = devm_ioremap(jrdev, r->start, resource_size(r));
r                 458 drivers/crypto/caam/pdb.h 	u8 *r;
r                 471 drivers/crypto/caam/pdb.h 	u8 *r;
r                  37 drivers/crypto/ccp/ccp-debugfs.c #define	RI_NVQM(r)	(((r) * RI_NUM_VQM) >> RI_NVQM_SHIFT)
r                  40 drivers/crypto/ccp/ccp-debugfs.c #define	RI_NLSB(r)	(((r) * RI_LSB_ENTRIES) >> RI_NLSB_SHIFT)
r                1780 drivers/crypto/hifn_795x.c 	u32 r = 0;
r                1788 drivers/crypto/hifn_795x.c 			r |= HIFN_DMACSR_C_CTRL_DIS;
r                1792 drivers/crypto/hifn_795x.c 			r |= HIFN_DMACSR_S_CTRL_DIS;
r                1796 drivers/crypto/hifn_795x.c 			r |= HIFN_DMACSR_D_CTRL_DIS;
r                1800 drivers/crypto/hifn_795x.c 			r |= HIFN_DMACSR_R_CTRL_DIS;
r                1802 drivers/crypto/hifn_795x.c 		if (r)
r                1803 drivers/crypto/hifn_795x.c 			hifn_write_1(dev, HIFN_1_DMA_CSR, r);
r                1820 drivers/crypto/hifn_795x.c 				 r, dev->active, dev->started,
r                 111 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_xDR_OFF(priv, r)		(EIP197_HIA_AIC_xDR(priv) + (r) * 0x1000)
r                 112 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_CDR(priv, r)			(EIP197_HIA_xDR_OFF(priv, r))
r                 113 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_RDR(priv, r)			(EIP197_HIA_xDR_OFF(priv, r) + 0x800)
r                 136 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_AIC_R_OFF(r)			((r) * 0x1000)
r                 137 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_AIC_R_ENABLE_CTRL(r)		(0xe008 - EIP197_HIA_AIC_R_OFF(r))
r                 138 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_AIC_R_ENABLED_STAT(r)	(0xe010 - EIP197_HIA_AIC_R_OFF(r))
r                 139 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_AIC_R_ACK(r)			(0xe010 - EIP197_HIA_AIC_R_OFF(r))
r                 140 drivers/crypto/inside-secure/safexcel.h #define EIP197_HIA_AIC_R_ENABLE_CLR(r)		(0xe014 - EIP197_HIA_AIC_R_OFF(r))
r                1020 drivers/crypto/omap-aes.c 	struct resource *r;
r                1024 drivers/crypto/omap-aes.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1025 drivers/crypto/omap-aes.c 	if (!r) {
r                1030 drivers/crypto/omap-aes.c 	memcpy(res, r, sizeof(*res));
r                1977 drivers/crypto/omap-sham.c 	struct resource *r;
r                1981 drivers/crypto/omap-sham.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1982 drivers/crypto/omap-sham.c 	if (!r) {
r                1987 drivers/crypto/omap-sham.c 	memcpy(res, r, sizeof(*res));
r                 142 drivers/crypto/qat/qat_common/qat_asym_algs.c 		dma_addr_t r;
r                 210 drivers/crypto/qat/qat_common/qat_asym_algs.c 				  req->out.dh.r);
r                 212 drivers/crypto/qat/qat_common/qat_asym_algs.c 		dma_unmap_single(dev, req->out.dh.r, req->ctx.dh->p_size,
r                 355 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->out.dh.r = dma_map_single(dev, sg_virt(req->dst),
r                 359 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (unlikely(dma_mapping_error(dev, qat_req->out.dh.r)))
r                 364 drivers/crypto/qat/qat_common/qat_asym_algs.c 							&qat_req->out.dh.r,
r                 379 drivers/crypto/qat/qat_common/qat_asym_algs.c 	qat_req->phy_out = dma_map_single(dev, &qat_req->out.dh.r,
r                 410 drivers/crypto/qat/qat_common/qat_asym_algs.c 				  qat_req->out.dh.r);
r                 412 drivers/crypto/qat/qat_common/qat_asym_algs.c 		if (!dma_mapping_error(dev, qat_req->out.dh.r))
r                 413 drivers/crypto/qat/qat_common/qat_asym_algs.c 			dma_unmap_single(dev, qat_req->out.dh.r, ctx->p_size,
r                 372 drivers/devfreq/devfreq-event.c 	struct devfreq_event_dev **r = res;
r                 374 drivers/devfreq/devfreq-event.c 	if (WARN_ON(!r || !*r))
r                 377 drivers/devfreq/devfreq-event.c 	return *r == data;
r                 773 drivers/devfreq/devfreq.c 	struct devfreq **r = res;
r                 775 drivers/devfreq/devfreq.c 	if (WARN_ON(!r || !*r))
r                 778 drivers/devfreq/devfreq.c 	return *r == data;
r                 111 drivers/dma/at_hdmac_regs.h #define		ATC_REG_TO_SRC_WIDTH(r)	(((r) >> 24) & 0x3)
r                1167 drivers/dma/dw/core.c 			unsigned int r = DW_DMA_MAX_NR_CHANNELS - i - 1;
r                1168 drivers/dma/dw/core.c 			void __iomem *addr = &__dw_regs(dw)->DWC_PARAMS[r];
r                 411 drivers/dma/qcom/bam_dma.c 	const struct reg_offset_data r = bdev->layout[reg];
r                 413 drivers/dma/qcom/bam_dma.c 	return bdev->regs + r.base_offset +
r                 414 drivers/dma/qcom/bam_dma.c 		r.pipe_mult * pipe +
r                 415 drivers/dma/qcom/bam_dma.c 		r.evnt_mult * pipe +
r                 416 drivers/dma/qcom/bam_dma.c 		r.ee_mult * bdev->ee;
r                 331 drivers/dma/ti/omap-dma.c 	const struct omap_dma_reg *r = od->reg_map + reg;
r                 333 drivers/dma/ti/omap-dma.c 	WARN_ON(r->stride);
r                 335 drivers/dma/ti/omap-dma.c 	omap_dma_write(val, r->type, od->base + r->offset);
r                 340 drivers/dma/ti/omap-dma.c 	const struct omap_dma_reg *r = od->reg_map + reg;
r                 342 drivers/dma/ti/omap-dma.c 	WARN_ON(r->stride);
r                 344 drivers/dma/ti/omap-dma.c 	return omap_dma_read(r->type, od->base + r->offset);
r                 349 drivers/dma/ti/omap-dma.c 	const struct omap_dma_reg *r = c->reg_map + reg;
r                 351 drivers/dma/ti/omap-dma.c 	omap_dma_write(val, r->type, c->channel_base + r->offset);
r                 356 drivers/dma/ti/omap-dma.c 	const struct omap_dma_reg *r = c->reg_map + reg;
r                 358 drivers/dma/ti/omap-dma.c 	return omap_dma_read(r->type, c->channel_base + r->offset);
r                 772 drivers/edac/altera_edac.c 	struct resource *r;
r                 784 drivers/edac/altera_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 785 drivers/edac/altera_edac.c 	if (!r) {
r                 792 drivers/edac/altera_edac.c 	if (!devm_request_mem_region(&pdev->dev, r->start, resource_size(r),
r                 816 drivers/edac/altera_edac.c 	drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 289 drivers/edac/armada_xp_edac.c 	struct resource *r;
r                 293 drivers/edac/armada_xp_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 294 drivers/edac/armada_xp_edac.c 	if (!r) {
r                 299 drivers/edac/armada_xp_edac.c 	base = devm_ioremap_resource(&pdev->dev, r);
r                 519 drivers/edac/armada_xp_edac.c 	struct resource *r;
r                 521 drivers/edac/armada_xp_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 522 drivers/edac/armada_xp_edac.c 	if (!r) {
r                 527 drivers/edac/armada_xp_edac.c 	base = devm_ioremap_resource(&pdev->dev, r);
r                 237 drivers/edac/aspeed_edac.c 	struct resource r;
r                 248 drivers/edac/aspeed_edac.c 	rc = of_address_to_resource(np, 0, &r);
r                 258 drivers/edac/aspeed_edac.c 		r.start, resource_size(&r), PAGE_SHIFT);
r                 260 drivers/edac/aspeed_edac.c 	csrow->first_page = r.start >> PAGE_SHIFT;
r                 261 drivers/edac/aspeed_edac.c 	nr_pages = resource_size(&r) >> PAGE_SHIFT;
r                 138 drivers/edac/cell_edac.c 		struct resource r;
r                 144 drivers/edac/cell_edac.c 		if (of_address_to_resource(np, 0, &r))
r                 148 drivers/edac/cell_edac.c 		csrow->first_page = r.start >> PAGE_SHIFT;
r                 149 drivers/edac/cell_edac.c 		nr_pages = resource_size(&r) >> PAGE_SHIFT;
r                 913 drivers/edac/cpc925_edac.c 	struct resource *r;
r                 923 drivers/edac/cpc925_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 924 drivers/edac/cpc925_edac.c 	if (!r) {
r                 931 drivers/edac/cpc925_edac.c 				     r->start,
r                 932 drivers/edac/cpc925_edac.c 				     resource_size(r),
r                 939 drivers/edac/cpc925_edac.c 	vbase = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                1006 drivers/edac/cpc925_edac.c 	devm_release_mem_region(&pdev->dev, r->start, resource_size(r));
r                 241 drivers/edac/edac_mc.c 	unsigned int align, r;
r                 266 drivers/edac/edac_mc.c 	r = (unsigned long)p % align;
r                 268 drivers/edac/edac_mc.c 	if (r == 0)
r                 271 drivers/edac/edac_mc.c 	*p += align - r;
r                 273 drivers/edac/edac_mc.c 	return (void *)(((unsigned long)ptr) + align - r);
r                 481 drivers/edac/fsl_ddr_edac.c 	struct resource r;
r                 515 drivers/edac/fsl_ddr_edac.c 	res = of_address_to_resource(op->dev.of_node, 0, &r);
r                 522 drivers/edac/fsl_ddr_edac.c 	if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r),
r                 530 drivers/edac/fsl_ddr_edac.c 	pdata->mc_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r));
r                  52 drivers/edac/highbank_l2_edac.c 	struct resource *r;
r                  67 drivers/edac/highbank_l2_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  68 drivers/edac/highbank_l2_edac.c 	if (!r) {
r                  74 drivers/edac/highbank_l2_edac.c 	if (!devm_request_mem_region(&pdev->dev, r->start,
r                  75 drivers/edac/highbank_l2_edac.c 				     resource_size(r), dev_name(&pdev->dev))) {
r                  81 drivers/edac/highbank_l2_edac.c 	drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 152 drivers/edac/highbank_mc_edac.c 	struct resource *r;
r                 180 drivers/edac/highbank_mc_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 181 drivers/edac/highbank_mc_edac.c 	if (!r) {
r                 187 drivers/edac/highbank_mc_edac.c 	if (!devm_request_mem_region(&pdev->dev, r->start,
r                 188 drivers/edac/highbank_mc_edac.c 				     resource_size(r), dev_name(&pdev->dev))) {
r                 194 drivers/edac/highbank_mc_edac.c 	base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                  96 drivers/edac/i7core_edac.c   #define DIMM2_COR_ERR(r)			((r) & 0x7fff)
r                  99 drivers/edac/i7core_edac.c   #define DIMM1_COR_ERR(r)			(((r) >> 16) & 0x7fff)
r                 100 drivers/edac/i7core_edac.c   #define DIMM0_COR_ERR(r)			((r) & 0x7fff)
r                 119 drivers/edac/i7core_edac.c #define DIMM_TOP_COR_ERR(r)			(((r) >> 16) & 0x7fff)
r                 120 drivers/edac/i7core_edac.c #define DIMM_BOT_COR_ERR(r)			((r) & 0x7fff)
r                 132 drivers/edac/i7core_edac.c   #define RDLCH(r, ch)		((((r) >> (3 + (ch * 6))) & 0x07) - 1)
r                 133 drivers/edac/i7core_edac.c   #define WRLCH(r, ch)		((((r) >> (ch * 6)) & 0x07) - 1)
r                 150 drivers/edac/mpc85xx_edac.c 	struct resource r;
r                 199 drivers/edac/mpc85xx_edac.c 	res = of_address_to_resource(of_node, 0, &r);
r                 206 drivers/edac/mpc85xx_edac.c 	r.start += 0xe00;
r                 208 drivers/edac/mpc85xx_edac.c 	if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r),
r                 215 drivers/edac/mpc85xx_edac.c 	pdata->pci_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r));
r                 493 drivers/edac/mpc85xx_edac.c 	struct resource r;
r                 514 drivers/edac/mpc85xx_edac.c 	res = of_address_to_resource(op->dev.of_node, 0, &r);
r                 521 drivers/edac/mpc85xx_edac.c 	r.start += 0xe00;
r                 523 drivers/edac/mpc85xx_edac.c 	if (!devm_request_mem_region(&op->dev, r.start, resource_size(&r),
r                 530 drivers/edac/mpc85xx_edac.c 	pdata->l2_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r));
r                  82 drivers/edac/mv64x60_edac.c 	struct resource *r;
r                  85 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 1);
r                  86 drivers/edac/mv64x60_edac.c 	if (!r) {
r                  92 drivers/edac/mv64x60_edac.c 	pci_serr = ioremap(r->start, resource_size(r));
r                 106 drivers/edac/mv64x60_edac.c 	struct resource *r;
r                 131 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 132 drivers/edac/mv64x60_edac.c 	if (!r) {
r                 140 drivers/edac/mv64x60_edac.c 				     r->start,
r                 141 drivers/edac/mv64x60_edac.c 				     resource_size(r),
r                 150 drivers/edac/mv64x60_edac.c 					r->start,
r                 151 drivers/edac/mv64x60_edac.c 					resource_size(r));
r                 276 drivers/edac/mv64x60_edac.c 	struct resource *r;
r                 296 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 297 drivers/edac/mv64x60_edac.c 	if (!r) {
r                 305 drivers/edac/mv64x60_edac.c 				     r->start,
r                 306 drivers/edac/mv64x60_edac.c 				     resource_size(r),
r                 315 drivers/edac/mv64x60_edac.c 					 r->start,
r                 316 drivers/edac/mv64x60_edac.c 					 resource_size(r));
r                 442 drivers/edac/mv64x60_edac.c 	struct resource *r;
r                 463 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 464 drivers/edac/mv64x60_edac.c 	if (!r) {
r                 472 drivers/edac/mv64x60_edac.c 				     r->start,
r                 473 drivers/edac/mv64x60_edac.c 				     resource_size(r),
r                 482 drivers/edac/mv64x60_edac.c 					   r->start,
r                 483 drivers/edac/mv64x60_edac.c 					   resource_size(r));
r                 490 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 1);
r                 491 drivers/edac/mv64x60_edac.c 	if (!r) {
r                 499 drivers/edac/mv64x60_edac.c 				     r->start,
r                 500 drivers/edac/mv64x60_edac.c 				     resource_size(r),
r                 509 drivers/edac/mv64x60_edac.c 					   r->start,
r                 510 drivers/edac/mv64x60_edac.c 					   resource_size(r));
r                 701 drivers/edac/mv64x60_edac.c 	struct resource *r;
r                 729 drivers/edac/mv64x60_edac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 730 drivers/edac/mv64x60_edac.c 	if (!r) {
r                 738 drivers/edac/mv64x60_edac.c 				     r->start,
r                 739 drivers/edac/mv64x60_edac.c 				     resource_size(r),
r                 748 drivers/edac/mv64x60_edac.c 				       r->start,
r                 749 drivers/edac/mv64x60_edac.c 				       resource_size(r));
r                 500 drivers/edac/skx_base.c static bool skx_mad_decode(struct decoded_addr *r)
r                 502 drivers/edac/skx_base.c 	struct skx_dimm *dimm = &r->dev->imc[r->imc].chan[r->channel].dimms[r->dimm];
r                 506 drivers/edac/skx_base.c 		r->row = skx_bits(r->rank_address, dimm->rowbits, skx_close_row);
r                 507 drivers/edac/skx_base.c 		r->column = skx_bits(r->rank_address, dimm->colbits, skx_close_column);
r                 508 drivers/edac/skx_base.c 		r->column |= 0x400; /* C10 is autoprecharge, always set */
r                 509 drivers/edac/skx_base.c 		r->bank_address = skx_bank_bits(r->rank_address, 8, 9, dimm->bank_xor_enable, 22, 28);
r                 510 drivers/edac/skx_base.c 		r->bank_group = skx_bank_bits(r->rank_address, 6, 7, dimm->bank_xor_enable, 20, 21);
r                 512 drivers/edac/skx_base.c 		r->row = skx_bits(r->rank_address, dimm->rowbits, skx_open_row);
r                 514 drivers/edac/skx_base.c 			r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_fine_column);
r                 516 drivers/edac/skx_base.c 			r->column = skx_bits(r->rank_address, dimm->colbits, skx_open_column);
r                 517 drivers/edac/skx_base.c 		r->bank_address = skx_bank_bits(r->rank_address, 18, 19, dimm->bank_xor_enable, 22, 23);
r                 518 drivers/edac/skx_base.c 		r->bank_group = skx_bank_bits(r->rank_address, bg0, 17, dimm->bank_xor_enable, 20, 21);
r                 520 drivers/edac/skx_base.c 	r->row &= (1u << dimm->rowbits) - 1;
r                 523 drivers/edac/skx_base.c 		 r->addr, r->row, r->column, r->bank_address,
r                 524 drivers/edac/skx_base.c 		 r->bank_group);
r                  42 drivers/edac/skx_common.h #define IS_DIMM_PRESENT(r)		GET_BITFIELD(r, 15, 15)
r                  43 drivers/edac/skx_common.h #define IS_NVDIMM_PRESENT(r, i)		GET_BITFIELD(r, i, i)
r                  18 drivers/eisa/eisa-bus.c #define SLOT_ADDRESS(r,n) (r->bus_base_addr + (0x1000 * n))
r                 443 drivers/eisa/eisa-bus.c 	int r;
r                 445 drivers/eisa/eisa-bus.c 	r = bus_register(&eisa_bus_type);
r                 446 drivers/eisa/eisa-bus.c 	if (r)
r                 447 drivers/eisa/eisa-bus.c 		return r;
r                  51 drivers/eisa/virtual_root.c 	int r;
r                  53 drivers/eisa/virtual_root.c 	if ((r = platform_device_register (&eisa_root_dev)))
r                  54 drivers/eisa/virtual_root.c 		return r;
r                  13 drivers/extcon/devres.c 	struct extcon_dev **r = res;
r                  15 drivers/extcon/devres.c 	if (WARN_ON(!r || !*r))
r                  18 drivers/extcon/devres.c 	return *r == data;
r                 138 drivers/firewire/core-cdev.c static void schedule_iso_resource(struct iso_resource *r, unsigned long delay)
r                 140 drivers/firewire/core-cdev.c 	client_get(r->client);
r                 141 drivers/firewire/core-cdev.c 	if (!queue_delayed_work(fw_workqueue, &r->work, delay))
r                 142 drivers/firewire/core-cdev.c 		client_put(r->client);
r                 169 drivers/firewire/core-cdev.c 	struct outbound_transaction_resource r;
r                 549 drivers/firewire/core-cdev.c 	idr_remove(&client->resource_idr, e->r.resource.handle);
r                 605 drivers/firewire/core-cdev.c 	e->r.resource.release = release_transaction;
r                 606 drivers/firewire/core-cdev.c 	ret = add_client_resource(client, &e->r.resource, GFP_KERNEL);
r                 610 drivers/firewire/core-cdev.c 	fw_send_request(client->device->card, &e->r.transaction,
r                 653 drivers/firewire/core-cdev.c 	struct inbound_transaction_resource *r = container_of(resource,
r                 656 drivers/firewire/core-cdev.c 	if (is_fcp_request(r->request))
r                 657 drivers/firewire/core-cdev.c 		kfree(r->data);
r                 659 drivers/firewire/core-cdev.c 		fw_send_response(r->card, r->request, RCODE_CONFLICT_ERROR);
r                 661 drivers/firewire/core-cdev.c 	fw_card_put(r->card);
r                 662 drivers/firewire/core-cdev.c 	kfree(r);
r                 671 drivers/firewire/core-cdev.c 	struct inbound_transaction_resource *r;
r                 680 drivers/firewire/core-cdev.c 	r = kmalloc(sizeof(*r), GFP_ATOMIC);
r                 682 drivers/firewire/core-cdev.c 	if (r == NULL || e == NULL)
r                 685 drivers/firewire/core-cdev.c 	r->card    = card;
r                 686 drivers/firewire/core-cdev.c 	r->request = request;
r                 687 drivers/firewire/core-cdev.c 	r->data    = payload;
r                 688 drivers/firewire/core-cdev.c 	r->length  = length;
r                 699 drivers/firewire/core-cdev.c 		r->data = fcp_frame;
r                 702 drivers/firewire/core-cdev.c 	r->resource.release = release_request;
r                 703 drivers/firewire/core-cdev.c 	ret = add_client_resource(handler->client, &r->resource, GFP_ATOMIC);
r                 717 drivers/firewire/core-cdev.c 		req->handle	= r->resource.handle;
r                 731 drivers/firewire/core-cdev.c 		req->handle	= r->resource.handle;
r                 737 drivers/firewire/core-cdev.c 		    &e->req, event_size0, r->data, length);
r                 741 drivers/firewire/core-cdev.c 	kfree(r);
r                 754 drivers/firewire/core-cdev.c 	struct address_handler_resource *r =
r                 757 drivers/firewire/core-cdev.c 	fw_core_remove_address_handler(&r->handler);
r                 758 drivers/firewire/core-cdev.c 	kfree(r);
r                 764 drivers/firewire/core-cdev.c 	struct address_handler_resource *r;
r                 768 drivers/firewire/core-cdev.c 	r = kmalloc(sizeof(*r), GFP_KERNEL);
r                 769 drivers/firewire/core-cdev.c 	if (r == NULL)
r                 778 drivers/firewire/core-cdev.c 	r->handler.length           = a->length;
r                 779 drivers/firewire/core-cdev.c 	r->handler.address_callback = handle_request;
r                 780 drivers/firewire/core-cdev.c 	r->handler.callback_data    = r;
r                 781 drivers/firewire/core-cdev.c 	r->closure   = a->closure;
r                 782 drivers/firewire/core-cdev.c 	r->client    = client;
r                 784 drivers/firewire/core-cdev.c 	ret = fw_core_add_address_handler(&r->handler, &region);
r                 786 drivers/firewire/core-cdev.c 		kfree(r);
r                 789 drivers/firewire/core-cdev.c 	a->offset = r->handler.offset;
r                 791 drivers/firewire/core-cdev.c 	r->resource.release = release_address_handler;
r                 792 drivers/firewire/core-cdev.c 	ret = add_client_resource(client, &r->resource, GFP_KERNEL);
r                 794 drivers/firewire/core-cdev.c 		release_address_handler(client, &r->resource);
r                 797 drivers/firewire/core-cdev.c 	a->handle = r->resource.handle;
r                 812 drivers/firewire/core-cdev.c 	struct inbound_transaction_resource *r;
r                 819 drivers/firewire/core-cdev.c 	r = container_of(resource, struct inbound_transaction_resource,
r                 821 drivers/firewire/core-cdev.c 	if (is_fcp_request(r->request))
r                 824 drivers/firewire/core-cdev.c 	if (a->length != fw_get_response_length(r->request)) {
r                 826 drivers/firewire/core-cdev.c 		kfree(r->request);
r                 829 drivers/firewire/core-cdev.c 	if (copy_from_user(r->data, u64_to_uptr(a->data), a->length)) {
r                 831 drivers/firewire/core-cdev.c 		kfree(r->request);
r                 834 drivers/firewire/core-cdev.c 	fw_send_response(r->card, r->request, a->rcode);
r                 836 drivers/firewire/core-cdev.c 	fw_card_put(r->card);
r                 837 drivers/firewire/core-cdev.c 	kfree(r);
r                 852 drivers/firewire/core-cdev.c 	struct descriptor_resource *r =
r                 855 drivers/firewire/core-cdev.c 	fw_core_remove_descriptor(&r->descriptor);
r                 856 drivers/firewire/core-cdev.c 	kfree(r);
r                 862 drivers/firewire/core-cdev.c 	struct descriptor_resource *r;
r                 872 drivers/firewire/core-cdev.c 	r = kmalloc(sizeof(*r) + a->length * 4, GFP_KERNEL);
r                 873 drivers/firewire/core-cdev.c 	if (r == NULL)
r                 876 drivers/firewire/core-cdev.c 	if (copy_from_user(r->data, u64_to_uptr(a->data), a->length * 4)) {
r                 881 drivers/firewire/core-cdev.c 	r->descriptor.length    = a->length;
r                 882 drivers/firewire/core-cdev.c 	r->descriptor.immediate = a->immediate;
r                 883 drivers/firewire/core-cdev.c 	r->descriptor.key       = a->key;
r                 884 drivers/firewire/core-cdev.c 	r->descriptor.data      = r->data;
r                 886 drivers/firewire/core-cdev.c 	ret = fw_core_add_descriptor(&r->descriptor);
r                 890 drivers/firewire/core-cdev.c 	r->resource.release = release_descriptor;
r                 891 drivers/firewire/core-cdev.c 	ret = add_client_resource(client, &r->resource, GFP_KERNEL);
r                 893 drivers/firewire/core-cdev.c 		fw_core_remove_descriptor(&r->descriptor);
r                 896 drivers/firewire/core-cdev.c 	a->handle = r->resource.handle;
r                 900 drivers/firewire/core-cdev.c 	kfree(r);
r                1237 drivers/firewire/core-cdev.c 	struct iso_resource *r =
r                1239 drivers/firewire/core-cdev.c 	struct client *client = r->client;
r                1245 drivers/firewire/core-cdev.c 	todo = r->todo;
r                1250 drivers/firewire/core-cdev.c 		schedule_iso_resource(r, DIV_ROUND_UP(HZ, 3));
r                1255 drivers/firewire/core-cdev.c 		       r->generation == generation;
r                1260 drivers/firewire/core-cdev.c 	r->generation = generation;
r                1266 drivers/firewire/core-cdev.c 	bandwidth = r->bandwidth;
r                1269 drivers/firewire/core-cdev.c 			r->channels, &channel, &bandwidth,
r                1289 drivers/firewire/core-cdev.c 	if (r->todo == ISO_RES_ALLOC)
r                1290 drivers/firewire/core-cdev.c 		r->todo = ISO_RES_REALLOC;
r                1295 drivers/firewire/core-cdev.c 	if (r->todo == ISO_RES_REALLOC && !success &&
r                1297 drivers/firewire/core-cdev.c 	    idr_remove(&client->resource_idr, r->resource.handle)) {
r                1304 drivers/firewire/core-cdev.c 		r->channels = 1ULL << channel;
r                1310 drivers/firewire/core-cdev.c 		e = r->e_alloc;
r                1311 drivers/firewire/core-cdev.c 		r->e_alloc = NULL;
r                1313 drivers/firewire/core-cdev.c 		e = r->e_dealloc;
r                1314 drivers/firewire/core-cdev.c 		r->e_dealloc = NULL;
r                1316 drivers/firewire/core-cdev.c 	e->iso_resource.handle    = r->resource.handle;
r                1324 drivers/firewire/core-cdev.c 		cancel_delayed_work(&r->work);
r                1325 drivers/firewire/core-cdev.c 		kfree(r->e_alloc);
r                1326 drivers/firewire/core-cdev.c 		kfree(r->e_dealloc);
r                1327 drivers/firewire/core-cdev.c 		kfree(r);
r                1336 drivers/firewire/core-cdev.c 	struct iso_resource *r =
r                1340 drivers/firewire/core-cdev.c 	r->todo = ISO_RES_DEALLOC;
r                1341 drivers/firewire/core-cdev.c 	schedule_iso_resource(r, 0);
r                1349 drivers/firewire/core-cdev.c 	struct iso_resource *r;
r                1356 drivers/firewire/core-cdev.c 	r  = kmalloc(sizeof(*r), GFP_KERNEL);
r                1359 drivers/firewire/core-cdev.c 	if (r == NULL || e1 == NULL || e2 == NULL) {
r                1364 drivers/firewire/core-cdev.c 	INIT_DELAYED_WORK(&r->work, iso_resource_work);
r                1365 drivers/firewire/core-cdev.c 	r->client	= client;
r                1366 drivers/firewire/core-cdev.c 	r->todo		= todo;
r                1367 drivers/firewire/core-cdev.c 	r->generation	= -1;
r                1368 drivers/firewire/core-cdev.c 	r->channels	= request->channels;
r                1369 drivers/firewire/core-cdev.c 	r->bandwidth	= request->bandwidth;
r                1370 drivers/firewire/core-cdev.c 	r->e_alloc	= e1;
r                1371 drivers/firewire/core-cdev.c 	r->e_dealloc	= e2;
r                1379 drivers/firewire/core-cdev.c 		r->resource.release = release_iso_resource;
r                1380 drivers/firewire/core-cdev.c 		ret = add_client_resource(client, &r->resource, GFP_KERNEL);
r                1384 drivers/firewire/core-cdev.c 		r->resource.release = NULL;
r                1385 drivers/firewire/core-cdev.c 		r->resource.handle = -1;
r                1386 drivers/firewire/core-cdev.c 		schedule_iso_resource(r, 0);
r                1388 drivers/firewire/core-cdev.c 	request->handle = r->resource.handle;
r                1392 drivers/firewire/core-cdev.c 	kfree(r);
r                 635 drivers/firewire/core-transaction.c int fw_get_response_length(struct fw_request *r)
r                 639 drivers/firewire/core-transaction.c 	tcode = HEADER_GET_TCODE(r->request_header[0]);
r                 650 drivers/firewire/core-transaction.c 		data_length = HEADER_GET_DATA_LENGTH(r->request_header[3]);
r                 654 drivers/firewire/core-transaction.c 		ext_tcode = HEADER_GET_EXTENDED_TCODE(r->request_header[3]);
r                 655 drivers/firewire/core-transaction.c 		data_length = HEADER_GET_DATA_LENGTH(r->request_header[3]);
r                  56 drivers/firewire/init_ohci1394_dma.c 	u32 r;
r                  65 drivers/firewire/init_ohci1394_dma.c 	r = reg_read(ohci, OHCI1394_PhyControl);
r                  67 drivers/firewire/init_ohci1394_dma.c 	return (r & 0x00ff0000) >> 16;
r                 713 drivers/firewire/net.c static void fwnet_receive_packet(struct fw_card *card, struct fw_request *r,
r                 722 drivers/firewire/net.c 		kfree(r);
r                 738 drivers/firewire/net.c 	fw_send_response(card, r, rcode);
r                  70 drivers/firewire/ohci.h #define   OHCI1394_PhyControl_ReadData(r)	(((r) & 0x00ff0000) >> 16)
r                 128 drivers/firmware/dmi-id.c 	ssize_t r;
r                 129 drivers/firmware/dmi-id.c 	r = get_modalias(page, PAGE_SIZE-1);
r                 130 drivers/firmware/dmi-id.c 	page[r] = '\n';
r                 131 drivers/firmware/dmi-id.c 	page[r+1] = 0;
r                 132 drivers/firmware/dmi-id.c 	return r+1;
r                  53 drivers/firmware/efi/fake_mem.c 			struct range *r = &fake_mems[i].range;
r                  55 drivers/firmware/efi/fake_mem.c 			new_nr_map += efi_memmap_split_count(md, r);
r                 291 drivers/firmware/efi/libstub/arm-stub.c static int cmp_mem_desc(const void *l, const void *r)
r                 293 drivers/firmware/efi/libstub/arm-stub.c 	const efi_memory_desc_t *left = l, *right = r;
r                 106 drivers/firmware/imx/imx-scu.c static void imx_scu_tx_done(struct mbox_client *cl, void *mssg, int r)
r                 504 drivers/firmware/ti_sci.c static inline bool ti_sci_is_response_ack(void *r)
r                 506 drivers/firmware/ti_sci.c 	struct ti_sci_msg_hdr *hdr = r;
r                 760 drivers/gpio/gpio-aspeed.c 	u32 r;
r                 767 drivers/gpio/gpio-aspeed.c 	r = do_div(n, 1000000);
r                 773 drivers/gpio/gpio-aspeed.c 	*cycles = n + (!!r);
r                 653 drivers/gpio/gpio-mmio.c 	struct resource *r;
r                 656 drivers/gpio/gpio-mmio.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
r                 657 drivers/gpio/gpio-mmio.c 	if (!r)
r                 660 drivers/gpio/gpio-mmio.c 	sz = resource_size(r);
r                 664 drivers/gpio/gpio-mmio.c 	return devm_ioremap_resource(&pdev->dev, r);
r                 710 drivers/gpio/gpio-mmio.c 	struct resource *r;
r                 731 drivers/gpio/gpio-mmio.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dat");
r                 732 drivers/gpio/gpio-mmio.c 	if (!r)
r                 735 drivers/gpio/gpio-mmio.c 	sz = resource_size(r);
r                 120 drivers/gpio/gpio-msic.c 	u8 r;
r                 128 drivers/gpio/gpio-msic.c 	ret = intel_msic_reg_read(reg, &r);
r                 132 drivers/gpio/gpio-msic.c 	return !!(r & MSIC_GPIO_DIN_MASK);
r                 120 drivers/gpio/gpio-rdc321x.c 	struct resource *r;
r                 135 drivers/gpio/gpio-rdc321x.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg1");
r                 136 drivers/gpio/gpio-rdc321x.c 	if (!r) {
r                 143 drivers/gpio/gpio-rdc321x.c 	rdc321x_gpio_dev->reg1_ctrl_base = r->start;
r                 144 drivers/gpio/gpio-rdc321x.c 	rdc321x_gpio_dev->reg1_data_base = r->start + 0x4;
r                 146 drivers/gpio/gpio-rdc321x.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg2");
r                 147 drivers/gpio/gpio-rdc321x.c 	if (!r) {
r                 152 drivers/gpio/gpio-rdc321x.c 	rdc321x_gpio_dev->reg2_ctrl_base = r->start;
r                 153 drivers/gpio/gpio-rdc321x.c 	rdc321x_gpio_dev->reg2_data_base = r->start + 0x4;
r                  27 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  29 drivers/gpio/gpio-reg.c 	return r->direction & BIT(offset) ? 1 : 0;
r                  35 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  37 drivers/gpio/gpio-reg.c 	if (r->direction & BIT(offset))
r                  46 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  48 drivers/gpio/gpio-reg.c 	return r->direction & BIT(offset) ? 0 : -ENOTSUPP;
r                  53 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  57 drivers/gpio/gpio-reg.c 	spin_lock_irqsave(&r->lock, flags);
r                  58 drivers/gpio/gpio-reg.c 	val = r->out;
r                  63 drivers/gpio/gpio-reg.c 	r->out = val;
r                  64 drivers/gpio/gpio-reg.c 	writel_relaxed(val, r->reg);
r                  65 drivers/gpio/gpio-reg.c 	spin_unlock_irqrestore(&r->lock, flags);
r                  70 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  73 drivers/gpio/gpio-reg.c 	if (r->direction & mask) {
r                  78 drivers/gpio/gpio-reg.c 		readl_relaxed(r->reg);
r                  79 drivers/gpio/gpio-reg.c 		val = readl_relaxed(r->reg);
r                  81 drivers/gpio/gpio-reg.c 		val = r->out;
r                  89 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                  92 drivers/gpio/gpio-reg.c 	spin_lock_irqsave(&r->lock, flags);
r                  93 drivers/gpio/gpio-reg.c 	r->out = (r->out & ~*mask) | (*bits & *mask);
r                  94 drivers/gpio/gpio-reg.c 	writel_relaxed(r->out, r->reg);
r                  95 drivers/gpio/gpio-reg.c 	spin_unlock_irqrestore(&r->lock, flags);
r                 100 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                 101 drivers/gpio/gpio-reg.c 	int irq = r->irqs[offset];
r                 103 drivers/gpio/gpio-reg.c 	if (irq >= 0 && r->irqdomain)
r                 104 drivers/gpio/gpio-reg.c 		irq = irq_find_mapping(r->irqdomain, irq);
r                 134 drivers/gpio/gpio-reg.c 	struct gpio_reg *r;
r                 138 drivers/gpio/gpio-reg.c 		r = devm_kzalloc(dev, sizeof(*r), GFP_KERNEL);
r                 140 drivers/gpio/gpio-reg.c 		r = kzalloc(sizeof(*r), GFP_KERNEL);
r                 142 drivers/gpio/gpio-reg.c 	if (!r)
r                 145 drivers/gpio/gpio-reg.c 	spin_lock_init(&r->lock);
r                 147 drivers/gpio/gpio-reg.c 	r->gc.label = label;
r                 148 drivers/gpio/gpio-reg.c 	r->gc.get_direction = gpio_reg_get_direction;
r                 149 drivers/gpio/gpio-reg.c 	r->gc.direction_input = gpio_reg_direction_input;
r                 150 drivers/gpio/gpio-reg.c 	r->gc.direction_output = gpio_reg_direction_output;
r                 151 drivers/gpio/gpio-reg.c 	r->gc.set = gpio_reg_set;
r                 152 drivers/gpio/gpio-reg.c 	r->gc.get = gpio_reg_get;
r                 153 drivers/gpio/gpio-reg.c 	r->gc.set_multiple = gpio_reg_set_multiple;
r                 155 drivers/gpio/gpio-reg.c 		r->gc.to_irq = gpio_reg_to_irq;
r                 156 drivers/gpio/gpio-reg.c 	r->gc.base = base;
r                 157 drivers/gpio/gpio-reg.c 	r->gc.ngpio = num;
r                 158 drivers/gpio/gpio-reg.c 	r->gc.names = names;
r                 159 drivers/gpio/gpio-reg.c 	r->direction = direction;
r                 160 drivers/gpio/gpio-reg.c 	r->out = def_out;
r                 161 drivers/gpio/gpio-reg.c 	r->reg = reg;
r                 162 drivers/gpio/gpio-reg.c 	r->irqs = irqs;
r                 165 drivers/gpio/gpio-reg.c 		ret = devm_gpiochip_add_data(dev, &r->gc, r);
r                 167 drivers/gpio/gpio-reg.c 		ret = gpiochip_add_data(&r->gc, r);
r                 169 drivers/gpio/gpio-reg.c 	return ret ? ERR_PTR(ret) : &r->gc;
r                 174 drivers/gpio/gpio-reg.c 	struct gpio_reg *r = to_gpio_reg(gc);
r                 177 drivers/gpio/gpio-reg.c 	spin_lock_irqsave(&r->lock, flags);
r                 178 drivers/gpio/gpio-reg.c 	writel_relaxed(r->out, r->reg);
r                 179 drivers/gpio/gpio-reg.c 	spin_unlock_irqrestore(&r->lock, flags);
r                  62 drivers/gpio/gpio-tb10x.c 	u32 r;
r                  67 drivers/gpio/gpio-tb10x.c 	r = tb10x_reg_read(gpio, offs);
r                  68 drivers/gpio/gpio-tb10x.c 	r = (r & ~mask) | (val & mask);
r                  70 drivers/gpio/gpio-tb10x.c 	tb10x_reg_write(gpio, offs, r);
r                  97 drivers/gpio/gpio-tb10x.c 	u32 r = tb10x_reg_read(tb10x_gpio, OFFSET_TO_REG_CHANGE);
r                  99 drivers/gpio/gpio-tb10x.c 	const unsigned long bits = r & m;
r                 366 drivers/gpio/gpio-thunderx.c 	int r;
r                 368 drivers/gpio/gpio-thunderx.c 	r = gpiochip_lock_as_irq(&txgpio->chip, txline->line);
r                 369 drivers/gpio/gpio-thunderx.c 	if (r)
r                 370 drivers/gpio/gpio-thunderx.c 		return r;
r                 372 drivers/gpio/gpio-thunderx.c 	r = irq_chip_request_resources_parent(data);
r                 373 drivers/gpio/gpio-thunderx.c 	if (r)
r                 376 drivers/gpio/gpio-thunderx.c 	return r;
r                1148 drivers/gpu/drm/amd/amdgpu/amdgpu.h #define amdgpu_asic_flush_hdp(adev, r) (adev)->asic_funcs->flush_hdp((adev), (r))
r                1149 drivers/gpu/drm/amd/amdgpu/amdgpu.h #define amdgpu_asic_invalidate_hdp(adev, r) (adev)->asic_funcs->invalidate_hdp((adev), (r))
r                 166 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c static struct device *get_mfd_cell_dev(const char *device_name, int r)
r                 172 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		 "%s.%d.auto", device_name, r);
r                 187 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	int r, i;
r                 202 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	r = amd_acp_hw_init(adev->acp.cgs_device,
r                 205 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	if (r == -ENODEV) {
r                 208 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	} else if (r) {
r                 209 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		return r;
r                 235 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		r = -ENOMEM;
r                 241 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		r = -ENOMEM;
r                 247 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		r = -ENOMEM;
r                 342 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	r = mfd_add_hotplug_devices(adev->acp.parent, adev->acp.acp_cell,
r                 344 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	if (r)
r                 349 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		r = pm_genpd_add_device(&adev->acp.acp_genpd->gpd, dev);
r                 350 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 		if (r) {
r                 371 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 			r = -ETIMEDOUT;
r                 389 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 			r = -ETIMEDOUT;
r                 405 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 	return r;
r                 232 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r = 0;
r                 235 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		r = kgd2kfd_resume(adev->kfd.dev);
r                 237 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	return r;
r                 242 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r = 0;
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		r = kgd2kfd_pre_reset(adev->kfd.dev);
r                 247 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	return r;
r                 252 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r = 0;
r                 255 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		r = kgd2kfd_post_reset(adev->kfd.dev);
r                 257 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	return r;
r                 275 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r;
r                 289 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_bo_create(adev, &bp, &bo);
r                 290 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 292 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 			"failed to allocate BO for amdkfd (%d)\n", r);
r                 293 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		return r;
r                 297 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_bo_reserve(bo, true);
r                 298 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 299 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		dev_err(adev->dev, "(%d) failed to reserve bo for amdkfd\n", r);
r                 303 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_bo_pin(bo, AMDGPU_GEM_DOMAIN_GTT);
r                 304 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 305 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		dev_err(adev->dev, "(%d) failed to pin bo for amdkfd\n", r);
r                 309 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_ttm_alloc_gart(&bo->tbo);
r                 310 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 315 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_bo_kmap(bo, &cpu_ptr_tmp);
r                 316 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 318 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 			"(%d) failed to map bo to kernel for amdkfd\n", r);
r                 337 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	return r;
r                 357 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r;
r                 367 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = amdgpu_bo_create(adev, &bp, &bo);
r                 368 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	if (r) {
r                 370 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 			"failed to allocate gws BO for amdkfd (%d)\n", r);
r                 371 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		return r;
r                 513 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	int r = -EINVAL;
r                 535 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	r = 0;
r                 543 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		r = amdgpu_bo_get_metadata(bo, metadata_buffer, buffer_size,
r                 555 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 	return r;
r                 806 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c 	signed long r;
r                 820 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c 	r = amdgpu_fence_wait_polling(ring, seq, adev->usec_timeout);
r                 821 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c 	if (r < 1) {
r                 822 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c 		DRM_ERROR("wait for kiq fence error: %ld.\n", r);
r                 645 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 	signed long r;
r                 661 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 	r = amdgpu_fence_wait_polling(ring, seq, adev->usec_timeout);
r                 662 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 	if (r < 1) {
r                 663 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 		DRM_ERROR("wait for kiq fence error: %ld.\n", r);
r                1662 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 	int r = 0;
r                1668 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 		r = kgd2kfd_quiesce_mm(mm);
r                1669 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 		if (r)
r                1675 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 	return r;
r                1902 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	uint32_t r;
r                1904 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	r = RREG32(reg);
r                1905 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	return r;
r                1936 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	uint32_t r;
r                1938 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	r = RREG32_IO(reg);
r                1939 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c 	return r;
r                 535 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	int r;
r                 538 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	r = amdgpu_atpx_verify_interface(&amdgpu_atpx_priv.atpx);
r                 539 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	if (r)
r                 540 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 		return r;
r                 543 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	r = amdgpu_atpx_validate(&amdgpu_atpx_priv.atpx);
r                 544 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	if (r)
r                 545 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 		return r;
r                 655 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	bool r;
r                 659 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	r = amdgpu_atpx_detect();
r                 660 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c 	if (!r)
r                  37 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	int i, r;
r                  42 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		r = amdgpu_copy_buffer(ring, saddr, daddr, size, NULL, &fence,
r                  44 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		if (r)
r                  46 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		r = dma_fence_wait(fence, false);
r                  47 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		if (r)
r                  52 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = jiffies_to_msecs(end_jiffies - start_jiffies);
r                  57 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	return r;
r                  80 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	int r, n;
r                  91 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_create(adev, &bp, &sobj);
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                  95 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_reserve(sobj, false);
r                  96 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (unlikely(r != 0))
r                  98 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_pin(sobj, sdomain);
r                  99 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 103 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_ttm_alloc_gart(&sobj->tbo);
r                 105 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 110 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_create(adev, &bp, &dobj);
r                 111 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 114 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_reserve(dobj, false);
r                 115 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (unlikely(r != 0))
r                 117 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_bo_pin(dobj, ddomain);
r                 118 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 122 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	r = amdgpu_ttm_alloc_gart(&dobj->tbo);
r                 124 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 140 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 	if (r) {
r                 145 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		r = amdgpu_bo_reserve(sobj, true);
r                 146 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		if (likely(r == 0)) {
r                 153 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		r = amdgpu_bo_reserve(dobj, true);
r                 154 drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c 		if (likely(r == 0)) {
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	int r;
r                 100 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 			r = -ENOENT;
r                 111 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 				r = -EPERM;
r                 154 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	return r;
r                 229 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	int r;
r                 236 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	r = -EFAULT;
r                 262 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	return r;
r                 274 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	int r;
r                 276 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	r = amdgpu_bo_create_list_entry_array(&args->in, &info);
r                 277 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	if (r)
r                 278 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		return r;
r                 282 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = amdgpu_bo_list_create(adev, filp, info, args->in.bo_number,
r                 284 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		if (r)
r                 288 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL);
r                 290 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		if (r < 0) {
r                 294 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		handle = r;
r                 303 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = amdgpu_bo_list_create(adev, filp, info, args->in.bo_number,
r                 305 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		if (r)
r                 313 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 			r = PTR_ERR(old);
r                 321 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 		r = -EINVAL;
r                 336 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c 	return r;
r                 718 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 	int r;
r                 721 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                 722 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		if (r < 0)
r                 856 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 	int r;
r                 859 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                 860 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		if (r < 0)
r                 977 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 	int r;
r                 982 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                 983 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		if (r < 0)
r                1329 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 	int r;
r                1332 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                1333 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 		if (r < 0)
r                  46 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                  62 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = -EINVAL;
r                  67 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = -EINVAL;
r                  77 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                  83 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                  86 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_bo_create_list_entry_array(data, &info);
r                  87 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                  88 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                  90 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_bo_list_create(p->adev, p->filp, info, data->bo_number,
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 102 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                 409 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 437 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 444 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (unlikely(r == -ENOMEM) && domain != bo->allowed_domains) {
r                 449 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                 458 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 496 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 501 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (unlikely(r))
r                 516 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 519 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_bo_validate(p, bo);
r                 520 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	} while (r == -ENOMEM && amdgpu_cs_try_evict(p, bo));
r                 521 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 522 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 525 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_bo_validate(p, bo->shadow);
r                 527 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                 535 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 549 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 550 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                 551 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                 560 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_validate(p, bo);
r                 561 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 562 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 580 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 589 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_bo_list_get(fpriv, cs->in.bo_list_handle,
r                 591 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 592 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 595 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_bo_list_create(p->adev, p->filp, NULL, 0,
r                 597 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 598 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 632 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_ttm_tt_get_user_pages(bo, e->user_pages);
r                 633 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r) {
r                 636 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 648 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = ttm_eu_reserve_buffers(&p->ticket, &p->validated, true,
r                 650 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (unlikely(r != 0)) {
r                 651 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r != -ERESTARTSYS)
r                 664 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_vm_validate_pt_bos(p->adev, &fpriv->vm,
r                 666 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                 671 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_list_validate(p, &duplicates);
r                 672 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 675 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_list_validate(p, &p->validated);
r                 676 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 708 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (!r && p->uf_entry.tv.bo) {
r                 711 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_ttm_alloc_gart(&uf->tbo);
r                 716 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 719 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                 725 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 731 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_sync_resv(p->adev, &p->job->sync, resv, p->filp,
r                 734 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 735 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 793 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                 816 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_find_mapping(p, va_start, &aobj, &m);
r                 817 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r) {
r                 819 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                 829 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_bo_kmap(aobj, (void **)&kptr);
r                 830 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r) {
r                 831 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                 841 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				r = amdgpu_ring_parse_cs(ring, p, j);
r                 842 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				if (r)
r                 843 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 					return r;
r                 846 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				r = amdgpu_ring_patch_cs_in_place(ring, p, j);
r                 848 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				if (r)
r                 849 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 					return r;
r                 860 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_vm_clear_freed(adev, vm, NULL);
r                 861 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 862 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 864 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_vm_bo_update(adev, fpriv->prt_va, false);
r                 865 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 866 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 868 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_sync_fence(adev, &p->job->sync,
r                 870 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 871 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 878 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_vm_bo_update(adev, bo_va, false);
r                 879 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 880 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 883 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_sync_fence(adev, &p->job->sync, f, false);
r                 884 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 885 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 900 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_vm_bo_update(adev, bo_va, false);
r                 901 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 902 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 905 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_sync_fence(adev, &p->job->sync, f, false);
r                 906 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 907 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 910 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_vm_handle_moved(adev, vm);
r                 911 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 912 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 914 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_vm_update_directories(adev, vm);
r                 915 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 916 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 918 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_sync_fence(adev, &p->job->sync, vm->last_update, false);
r                 919 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                 920 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                 945 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r, ce_preempt = 0, de_preempt = 0;
r                 976 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_ctx_get_entity(parser->ctx, chunk_ib->ip_type,
r                 979 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                 980 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                 992 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r =  amdgpu_ib_get(adev, vm, ring->funcs->parse_cs ?
r                 994 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r) {
r                 996 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1019 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int i, r;
r                1035 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_ctx_get_entity(ctx, deps[i].ip_type,
r                1038 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r) {
r                1040 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1060 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_sync_fence(p->adev, &p->job->sync, fence, true);
r                1062 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1063 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1073 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                1075 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = drm_syncobj_find_fence(p->filp, handle, point, flags, &fence);
r                1076 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1078 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			  handle, point, r);
r                1079 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                1082 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_sync_fence(p->adev, &p->job->sync, fence, true);
r                1085 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                1093 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int i, r;
r                1099 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_syncobj_lookup_and_add_to_sync(p, deps[i].handle,
r                1101 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1102 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1114 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int i, r;
r                1120 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_syncobj_lookup_and_add_to_sync(p,
r                1124 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1125 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1214 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int i, r;
r                1224 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_process_fence_dep(p, chunk);
r                1225 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                1226 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                1229 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_process_syncobj_in_dep(p, chunk);
r                1230 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                1231 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                1234 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_process_syncobj_out_dep(p, chunk);
r                1235 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                1236 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                1239 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_process_syncobj_timeline_in_dep(p, chunk);
r                1240 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                1241 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                1244 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = amdgpu_cs_process_syncobj_timeline_out_dep(p, chunk);
r                1245 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			if (r)
r                1246 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 				return r;
r                1281 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                1286 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = drm_sched_job_init(&job->base, entity, p->filp);
r                1287 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                1302 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r |= !amdgpu_ttm_tt_get_user_pages_done(bo->tbo.ttm);
r                1304 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1305 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = -EAGAIN;
r                1347 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                1356 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int i, r;
r                1364 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_parser_init(&parser, data);
r                1365 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1366 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		DRM_ERROR("Failed to initialize parser %d!\n", r);
r                1370 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_ib_fill(adev, &parser);
r                1371 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                1374 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_dependencies(adev, &parser);
r                1375 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1376 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		DRM_ERROR("Failed in the dependencies handling %d!\n", r);
r                1380 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_parser_bos(&parser, data);
r                1381 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1382 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r == -ENOMEM)
r                1384 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		else if (r != -ERESTARTSYS && r != -EAGAIN)
r                1385 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			DRM_ERROR("Failed to process the buffer list %d!\n", r);
r                1394 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_vm_handling(&parser);
r                1395 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r)
r                1398 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_cs_submit(&parser, cs);
r                1401 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	amdgpu_cs_parser_fini(&parser, r, reserved_buffers);
r                1403 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                1423 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	long r;
r                1429 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_ctx_get_entity(ctx, wait->in.ip_type, wait->in.ip_instance,
r                1431 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1433 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                1438 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = PTR_ERR(fence);
r                1440 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = dma_fence_wait_timeout(fence, true, timeout);
r                1441 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r > 0 && fence->error)
r                1442 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = fence->error;
r                1445 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = 1;
r                1448 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r < 0)
r                1449 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                1452 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	wait->out.status = (r == 0);
r                1471 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                1477 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = amdgpu_ctx_get_entity(ctx, user->ip_type, user->ip_instance,
r                1479 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r) {
r                1481 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return ERR_PTR(r);
r                1498 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int fd, r;
r                1509 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = drm_syncobj_create(&syncobj, 0, fence);
r                1511 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1512 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1513 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = drm_syncobj_get_handle(filp, syncobj, &info->out.handle);
r                1515 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                1518 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = drm_syncobj_create(&syncobj, 0, fence);
r                1520 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1521 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1522 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = drm_syncobj_get_fd(syncobj, (int*)&info->out.handle);
r                1524 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		return r;
r                1564 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	long r = 1;
r                1576 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = dma_fence_wait_timeout(fence, true, timeout);
r                1578 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r < 0)
r                1579 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                1581 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r == 0)
r                1589 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	wait->out.status = (r > 0);
r                1612 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	long r;
r                1625 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = PTR_ERR(fence);
r                1630 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			r = 1;
r                1636 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	r = dma_fence_wait_any_timeout(array, fence_count, true, timeout,
r                1638 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	if (r < 0)
r                1643 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	wait->out.status = (r > 0);
r                1647 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = array[first]->error;
r                1649 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = 0;
r                1656 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                1674 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                1685 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = -EFAULT;
r                1690 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_wait_all_fences(adev, filp, wait, fences);
r                1692 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = amdgpu_cs_wait_any_fence(adev, filp, wait, fences);
r                1697 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	return r;
r                1719 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 	int r;
r                1737 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		r = ttm_bo_validate(&(*bo)->tbo, &(*bo)->placement, &ctx);
r                1738 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 		if (r)
r                1739 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 			return r;
r                  40 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	int r;
r                  43 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	r = amdgpu_bo_create_kernel(adev, size, PAGE_SIZE,
r                  73 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	int r;
r                  83 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL, false);
r                  84 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	if (r) {
r                  85 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 		DRM_ERROR("failed to reserve CSA,PD BOs: err=%d\n", r);
r                  86 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 		return r;
r                  96 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	r = amdgpu_vm_bo_map(adev, *bo_va, csa_addr, 0, size,
r                 100 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 	if (r) {
r                 101 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 		DRM_ERROR("failed to do bo_map on static CSA, err=%d\n", r);
r                 104 drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c 		return r;
r                  78 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	int r;
r                  83 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = amdgpu_ctx_priority_permit(filp, priority);
r                  84 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (r)
r                  85 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		return r;
r                  99 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = -ENOMEM;
r                 188 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 			r = drm_sched_entity_init(&ctx->entities[i][j].entity,
r                 190 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		if (r)
r                 204 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	return r;
r                 259 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	int r;
r                 266 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = idr_alloc(&mgr->ctx_handles, ctx, 1, AMDGPU_VM_MAX_NUM_CTX, GFP_KERNEL);
r                 267 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (r < 0) {
r                 270 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		return r;
r                 273 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	*id = (uint32_t)r;
r                 274 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = amdgpu_ctx_init(adev, priority, filp, ctx);
r                 275 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (r) {
r                 281 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	return r;
r                 401 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	int r;
r                 409 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = 0;
r                 420 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = amdgpu_ctx_alloc(adev, fpriv, filp, priority, &id);
r                 424 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = amdgpu_ctx_free(fpriv, id);
r                 427 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = amdgpu_ctx_query(adev, fpriv, id, &args->out);
r                 430 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		r = amdgpu_ctx_query2(adev, fpriv, id, &args->out);
r                 436 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	return r;
r                 546 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	long r;
r                 556 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	r = dma_fence_wait(other, true);
r                 557 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (r < 0 && r != -ERESTARTSYS)
r                 558 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		DRM_ERROR("Error (%ld) waiting for fence!\n", r);
r                 561 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	return r;
r                 107 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			r = put_user(value, (uint32_t *)buf);
r                 169 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			r = get_user(value, (uint32_t *)buf);
r                 170 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			if (!r)
r                 173 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r) {
r                 174 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			result = r;
r                 235 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 244 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 246 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 274 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 282 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = get_user(value, (uint32_t *)buf);
r                 283 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 284 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 314 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 323 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 324 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 325 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 353 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 361 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = get_user(value, (uint32_t *)buf);
r                 362 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 363 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 393 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 402 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 403 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 404 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 432 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 440 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = get_user(value, (uint32_t *)buf);
r                 441 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 442 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 474 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 529 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 530 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r) {
r                 532 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 562 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int idx, x, outsize, r, valuesize;
r                 575 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	r = amdgpu_dpm_read_sensor(adev, idx, &values[0], &valuesize);
r                 576 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	if (r)
r                 577 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		return r;
r                 584 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	if (!r) {
r                 586 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			r = put_user(values[x++], (int32_t *)buf);
r                 593 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	return !r ? outsize : r;
r                 621 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r, x;
r                 654 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 655 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r)
r                 656 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			return r;
r                 693 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r;
r                 733 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		r = put_user(value, (uint32_t *)buf);
r                 734 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		if (r) {
r                 735 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 			result = r;
r                 860 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r = 0, i;
r                 875 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	r = amdgpu_ib_ring_tests(adev);
r                 876 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	if (r)
r                 877 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 		seq_printf(m, "ib ring tests failed (%d).\n", r);
r                1022 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	int r, resched, length;
r                1053 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	r = amdgpu_ring_preempt_ib(ring);
r                1054 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 	if (r) {
r                 683 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                 687 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_bo_create_kernel(adev, AMDGPU_MAX_WB * sizeof(uint32_t) * 8,
r                 691 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                 692 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			dev_warn(adev->dev, "(%d) create WB bo failed\n", r);
r                 693 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                 760 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                 793 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = pci_resize_resource(adev->pdev, 0, rbar_size);
r                 794 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r == -ENOSPC)
r                 796 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	else if (r && r != -ENOTSUPP)
r                 797 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("Problem resizing BAR0 (%d).", r);
r                 804 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_doorbell_init(adev);
r                 805 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r || (pci_resource_flags(adev->pdev, 0) & IORESOURCE_UNSET))
r                1114 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                1123 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->set_clockgating_state(
r                1125 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1127 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                1129 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                1148 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                1157 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->set_powergating_state(
r                1159 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1161 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                1163 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                1202 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                1208 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->wait_for_idle((void *)adev);
r                1209 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r)
r                1210 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                1531 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                1550 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = vi_set_ip_blocks(adev);
r                1551 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1552 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1561 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = si_set_ip_blocks(adev);
r                1562 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1563 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1577 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = cik_set_ip_blocks(adev);
r                1578 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1579 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1594 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = soc15_set_ip_blocks(adev);
r                1595 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1596 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1603 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = nv_set_ip_blocks(adev);
r                1604 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1605 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1612 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_parse_gpu_info_fw(adev);
r                1613 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1614 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                1619 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_virt_request_full_gpu(adev, true);
r                1620 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                1635 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = adev->ip_blocks[i].version->funcs->early_init((void *)adev);
r                1636 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r == -ENOENT) {
r                1638 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				} else if (r) {
r                1640 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 						  adev->ip_blocks[i].version->funcs->name, r);
r                1641 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					return r;
r                1655 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_atombios_init(adev);
r                1656 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1659 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                1672 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                1682 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->hw_init(adev);
r                1683 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1685 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                1686 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                1697 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                1704 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->hw_init(adev);
r                1705 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                1707 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                1708 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                1718 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r = 0;
r                1732 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = adev->ip_blocks[i].version->funcs->resume(adev);
r                1733 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r) {
r                1735 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 							  adev->ip_blocks[i].version->funcs->name, r);
r                1736 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					return r;
r                1739 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = adev->ip_blocks[i].version->funcs->hw_init(adev);
r                1740 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r) {
r                1742 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 							  adev->ip_blocks[i].version->funcs->name, r);
r                1743 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					return r;
r                1752 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_pm_load_smu_firmware(adev, &smu_version);
r                1754 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                1770 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                1772 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ras_init(adev);
r                1773 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1774 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                1779 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->sw_init((void *)adev);
r                1780 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                1782 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                1789 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_device_vram_scratch_init(adev);
r                1790 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1791 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				DRM_ERROR("amdgpu_vram_scratch_init failed %d\n", r);
r                1794 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->hw_init((void *)adev);
r                1795 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1796 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				DRM_ERROR("hw_init %d failed %d\n", i, r);
r                1799 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_device_wb_init(adev);
r                1800 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1801 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				DRM_ERROR("amdgpu_device_wb_init failed %d\n", r);
r                1808 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_allocate_static_csa(adev, &adev->virt.csa_obj,
r                1811 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r) {
r                1812 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					DRM_ERROR("allocate CSA failed %d\n", r);
r                1819 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ib_pool_init(adev);
r                1820 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                1821 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		dev_err(adev->dev, "IB initialization failed (%d).\n", r);
r                1822 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		amdgpu_vf_error_put(adev, AMDGIM_ERROR_VF_IB_INIT_FAIL, 0, r);
r                1826 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ucode_create_bo(adev); /* create ucode bo when sw_init complete*/
r                1827 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1830 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_hw_init_phase1(adev);
r                1831 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1834 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_fw_loading(adev);
r                1835 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1838 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_hw_init_phase2(adev);
r                1839 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                1848 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (!r)
r                1853 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                1901 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, j, r;
r                1916 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev,
r                1918 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1920 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                1921 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                1931 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, j, r;
r                1946 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->set_powergating_state((void *)adev,
r                1948 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                1950 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                1951 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2009 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i = 0, r;
r                2015 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->late_init((void *)adev);
r                2016 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                2018 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                2019 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2030 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_enable_mgpu_fan_boost();
r                2031 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2032 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("enable mgpu fan boost failed (%d).\n", r);
r                2053 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2070 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->hw_fini((void *)adev);
r                2072 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                2074 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                2085 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->hw_fini((void *)adev);
r                2087 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2089 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                2108 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->sw_fini((void *)adev);
r                2110 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2112 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                2144 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                2146 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ib_ring_tests(adev);
r                2147 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2148 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("ib ring test failed (%d).\n", r);
r                2177 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2188 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->suspend(adev);
r                2190 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                2192 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                2193 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2215 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2224 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->suspend(adev);
r                2226 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2228 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                2237 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = adev->powerplay.pp_funcs->set_mp1_state(
r                2240 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r) {
r                2242 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 						  adev->mp1_state, r);
r                2243 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					return r;
r                2267 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                2272 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_suspend_phase1(adev);
r                2273 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2274 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2275 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_suspend_phase2(adev);
r                2280 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                2285 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2306 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = block->version->funcs->hw_init(adev);
r                2307 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			DRM_INFO("RE-INIT-early: %s %s\n", block->version->funcs->name, r?"failed":"succeeded");
r                2308 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r)
r                2309 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2319 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2342 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = block->version->funcs->hw_init(adev);
r                2343 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			DRM_INFO("RE-INIT-late: %s %s\n", block->version->funcs->name, r?"failed":"succeeded");
r                2344 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r)
r                2345 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2367 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2376 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->resume(adev);
r                2377 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                2379 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					  adev->ip_blocks[i].version->funcs->name, r);
r                2380 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                2404 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r;
r                2414 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = adev->ip_blocks[i].version->funcs->resume(adev);
r                2415 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2417 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  adev->ip_blocks[i].version->funcs->name, r);
r                2418 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                2440 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                2442 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_resume_phase1(adev);
r                2443 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2444 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2446 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_fw_loading(adev);
r                2447 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2448 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2450 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_resume_phase2(adev);
r                2452 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                2577 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r, i;
r                2639 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_check_arguments(adev);
r                2640 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2641 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2698 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = pci_enable_atomic_ops_to_root(adev->pdev,
r                2701 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                2717 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_discovery_init(adev);
r                2718 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2720 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                2725 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_early_init(adev);
r                2726 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2727 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2758 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_asic_reset(adev);
r                2759 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2769 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = -EINVAL;
r                2773 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_atom_asic_init(adev->mode_info.atom_context);
r                2774 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2782 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_atomfirmware_get_clock_info(adev);
r                2783 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2790 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_atombios_get_clock_info(adev);
r                2791 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                2803 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_fence_driver_init(adev);
r                2804 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                2813 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_init(adev);
r                2814 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                2824 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = -EAGAIN;
r                2851 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_pm_sysfs_init(adev);
r                2852 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2853 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("registering pm debugfs failed (%d).\n", r);
r                2855 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ucode_sysfs_init(adev);
r                2856 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2857 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("Creating firmware sysfs failed (%d).\n", r);
r                2859 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_debugfs_gem_init(adev);
r                2860 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2861 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("registering gem debugfs failed (%d).\n", r);
r                2863 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_debugfs_regs_init(adev);
r                2864 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2865 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("registering register debugfs failed (%d).\n", r);
r                2867 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_debugfs_firmware_init(adev);
r                2868 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2869 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("registering firmware debugfs failed (%d).\n", r);
r                2871 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_debugfs_init(adev);
r                2872 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2873 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("Creating debugfs files failed (%d).\n", r);
r                2898 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_late_init(adev);
r                2899 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                2901 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		amdgpu_vf_error_put(adev, AMDGIM_ERROR_VF_AMDGPU_LATE_INIT_FAIL, 0, r);
r                2911 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = device_create_file(adev->dev, &dev_attr_pcie_replay_count);
r                2912 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                2914 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                2918 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_pmu_init(adev);
r                2919 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                2929 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                2942 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                2957 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_fini(adev);
r                3017 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                3051 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_bo_reserve(aobj, true);
r                3052 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r == 0) {
r                3064 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_bo_reserve(robj, true);
r                3065 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r == 0) {
r                3075 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_suspend_phase1(adev);
r                3084 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_suspend_phase2(adev);
r                3098 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_asic_reset(adev);
r                3099 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3122 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r = 0;
r                3130 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = pci_enable_device(dev->pdev);
r                3131 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3132 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                3137 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_atom_asic_init(adev->mode_info.atom_context);
r                3138 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3142 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_resume(adev);
r                3143 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                3144 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("amdgpu_device_ip_resume failed (%d).\n", r);
r                3145 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                3150 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_late_init(adev);
r                3151 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3152 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                3164 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_bo_reserve(aobj, true);
r                3165 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r == 0) {
r                3166 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					r = amdgpu_bo_pin(aobj, AMDGPU_GEM_DOMAIN_VRAM);
r                3167 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					if (r != 0)
r                3168 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 						DRM_ERROR("Failed to pin cursor BO (%d)\n", r);
r                3175 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_amdkfd_resume(adev);
r                3176 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3177 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                3274 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                3281 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->pre_soft_reset(adev);
r                3282 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r)
r                3283 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                3336 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                3343 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->soft_reset(adev);
r                3344 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r)
r                3345 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				return r;
r                3365 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                3372 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = adev->ip_blocks[i].version->funcs->post_soft_reset(adev);
r                3373 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3374 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			return r;
r                3396 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	long r = 1, tmo;
r                3413 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_bo_restore_shadow(shadow, &next);
r                3414 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3422 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = -ETIMEDOUT;
r                3425 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = tmo;
r                3438 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r < 0 || tmo <= 0) {
r                3439 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		DRM_ERROR("recover vram bo from shadow failed, r is %ld, tmo is %ld\n", r, tmo);
r                3460 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r;
r                3463 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_virt_request_full_gpu(adev, true);
r                3465 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_virt_reset_gpu(adev);
r                3466 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3467 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                3470 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_reinit_early_sriov(adev);
r                3471 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3477 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_fw_loading(adev);
r                3478 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3479 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		return r;
r                3482 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_ip_reinit_late_sriov(adev);
r                3483 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3487 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_ib_ring_tests(adev);
r                3493 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (!r && adev->virt.gim_feature & AMDGIM_FEATURE_GIM_FLR_VRAMLOST) {
r                3495 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_device_recover_vram(adev);
r                3498 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                3555 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                3580 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_device_ip_soft_reset(adev);
r                3582 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r || amdgpu_device_ip_check_soft_reset(adev)) {
r                3589 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_device_ip_suspend(adev);
r                3594 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                3603 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int r = 0;
r                3614 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					r = -EALREADY;
r                3616 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_asic_reset(tmp_adev);
r                3618 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                3620 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					 r, tmp_adev->ddev->unique);
r                3626 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (!r) {
r                3631 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					r = tmp_adev->asic_reset_res;
r                3632 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					if (r)
r                3651 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (!r) {
r                3653 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_device_ip_resume_phase1(tmp_adev);
r                3654 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r)
r                3663 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_gtt_mgr_recover(
r                3665 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r)
r                3668 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_device_fw_loading(tmp_adev);
r                3669 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r)
r                3670 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					return r;
r                3672 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_device_ip_resume_phase2(tmp_adev);
r                3673 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r)
r                3685 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_device_ip_late_init(tmp_adev);
r                3686 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				if (r)
r                3694 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 					r = amdgpu_xgmi_update_topology(hive, tmp_adev);
r                3700 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (!r) {
r                3702 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_ib_ring_tests(tmp_adev);
r                3703 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			if (r) {
r                3704 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				dev_err(tmp_adev->dev, "ib ring test failed (%d).\n", r);
r                3705 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = amdgpu_device_ip_suspend(tmp_adev);
r                3707 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				r = -EAGAIN;
r                3712 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (!r)
r                3713 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			r = amdgpu_device_recover_vram(tmp_adev);
r                3715 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			tmp_adev->asic_reset_res = r;
r                3720 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                3781 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	int i, r = 0;
r                3875 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	r = amdgpu_device_pre_asic_reset(adev, job, &need_full_reset);
r                3876 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r) {
r                3879 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			  r, adev->ddev->unique);
r                3880 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		adev->asic_reset_res = r;
r                3890 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_device_pre_asic_reset(tmp_adev,
r                3894 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                3896 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 				  r, tmp_adev->ddev->unique);
r                3897 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			tmp_adev->asic_reset_res = r;
r                3904 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r = amdgpu_device_reset_sriov(adev, job ? false : true);
r                3905 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r)
r                3906 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			adev->asic_reset_res = r;
r                3908 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		r  = amdgpu_do_asic_reset(hive, device_list_handle, &need_full_reset);
r                3909 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r && r == -EAGAIN)
r                3936 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		if (r) {
r                3939 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 			amdgpu_vf_error_put(tmp_adev, AMDGIM_ERROR_VF_GPU_RESET_FAIL, 0, r);
r                3950 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	if (r)
r                3951 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 		dev_info(adev->dev, "GPU reset end with ret = %d\n", r);
r                3952 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 	return r;
r                 180 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 	int r;
r                 186 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 	r = amdgpu_discovery_read_binary(adev, adev->discovery);
r                 187 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 	if (r) {
r                 196 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 		r = -EINVAL;
r                 208 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 		r = -EINVAL;
r                 219 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 		r = -EINVAL;
r                 226 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 		r = -EINVAL;
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 		r = -EINVAL;
r                 248 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 	return r;
r                 130 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	int r;
r                 133 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	r = amdgpu_bo_reserve(work->old_abo, true);
r                 134 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	if (likely(r == 0)) {
r                 135 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 		r = amdgpu_bo_unpin(work->old_abo);
r                 136 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 		if (unlikely(r != 0)) {
r                 162 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	int i, r;
r                 187 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	r = amdgpu_bo_reserve(new_abo, false);
r                 188 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	if (unlikely(r != 0)) {
r                 194 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 		r = amdgpu_bo_pin(new_abo,
r                 196 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 		if (unlikely(r != 0)) {
r                 202 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	r = amdgpu_ttm_alloc_gart(&new_abo->tbo);
r                 203 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	if (unlikely(r != 0)) {
r                 208 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	r = dma_resv_get_fences_rcu(new_abo->tbo.base.resv, &work->excl,
r                 211 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	if (unlikely(r != 0)) {
r                 229 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 		r = -EBUSY;
r                 266 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c 	return r;
r                  36 drivers/gpu/drm/amd/amdgpu/amdgpu_display.h #define amdgpu_display_add_connector(adev, ci, sd, ct, ib, coi, h, r) (adev)->mode_info.funcs->add_connector((adev), (ci), (sd), (ct), (ib), (coi), (h), (r))
r                 144 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	int r;
r                 149 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	r = dma_resv_get_fences_rcu(obj, NULL, &count, &fences);
r                 150 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	if (r)
r                 151 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 		return r;
r                 199 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	long r;
r                 201 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	r = drm_gem_map_attach(dma_buf, attach);
r                 202 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	if (r)
r                 203 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 		return r;
r                 205 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	r = amdgpu_bo_reserve(bo, false);
r                 206 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	if (unlikely(r != 0))
r                 219 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 		r = __dma_resv_make_exclusive(bo->tbo.base.resv);
r                 220 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 		if (r)
r                 225 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	r = amdgpu_bo_pin(bo, AMDGPU_GEM_DOMAIN_GTT);
r                 226 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	if (r)
r                 236 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	if (r)
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c 	return r;
r                1477 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	int r;
r                1484 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	r = amdgpu_sync_init();
r                1485 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	if (r)
r                1488 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	r = amdgpu_fence_slab_init();
r                1489 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	if (r)
r                1506 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 	return r;
r                 143 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int r;
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 			r = dma_fence_wait(old, false);
r                 169 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 			if (r)
r                 170 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 				return r;
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int r;
r                 270 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		r = dma_fence_signal(fence);
r                 271 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		if (!r)
r                 311 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int r;
r                 325 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	r = dma_fence_wait(fence, false);
r                 327 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	return r;
r                 434 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int r;
r                 486 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		r = drm_sched_init(&ring->sched, &amdgpu_sched_ops,
r                 489 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		if (r) {
r                 492 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 			return r;
r                 530 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int r;
r                 537 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		r = amdgpu_fence_wait_empty(ring);
r                 538 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		if (r) {
r                 564 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 	int i, r;
r                 572 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		r = amdgpu_fence_wait_empty(ring);
r                 573 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c 		if (r) {
r                 116 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	int r;
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		r = amdgpu_bo_create(adev, &bp, &adev->gart.bo);
r                 130 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		if (r) {
r                 131 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 			return r;
r                 149 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	int r;
r                 151 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_bo_reserve(adev->gart.bo, false);
r                 152 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (unlikely(r != 0))
r                 153 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		return r;
r                 154 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_bo_pin(adev->gart.bo, AMDGPU_GEM_DOMAIN_VRAM);
r                 155 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (r) {
r                 157 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		return r;
r                 159 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_bo_kmap(adev->gart.bo, &adev->gart.ptr);
r                 160 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (r)
r                 163 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	return r;
r                 176 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	int r;
r                 181 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_bo_reserve(adev->gart.bo, true);
r                 182 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (likely(r == 0)) {
r                 317 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	int r, i;
r                 334 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_gart_map(adev, offset, pages, dma_addr, flags,
r                 336 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (r)
r                 337 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		return r;
r                 356 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	int r;
r                 366 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	r = amdgpu_gart_dummy_page_init(adev);
r                 367 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 	if (r)
r                 368 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c 		return r;
r                  58 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                  71 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_bo_create(adev, &bp, &bo);
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r) {
r                  73 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r != -ERESTARTSYS) {
r                  84 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 				  size, initial_domain, alignment, r);
r                  86 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 130 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 140 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_bo_reserve(abo, false);
r                 141 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 142 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 178 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = ttm_eu_reserve_buffers(&ticket, &list, false, &duplicates, false);
r                 179 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r) {
r                 181 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			"we fail to reserve bo (%d)\n", r);
r                 191 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = amdgpu_vm_clear_freed(adev, vm, &fence);
r                 192 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			if (unlikely(r)) {
r                 194 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 					"tables on GEM object close (%d)\n", r);
r                 221 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 251 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_bo_reserve(vm->root.base.bo, false);
r                 252 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 253 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			return r;
r                 258 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_gem_object_create(adev, size, args->in.alignment,
r                 262 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (!r) {
r                 269 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 270 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 272 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
r                 275 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 276 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 292 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 313 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_gem_object_create(adev, args->size, 0, AMDGPU_GEM_DOMAIN_CPU,
r                 315 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 316 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 321 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_ttm_tt_set_userptr(bo->tbo.ttm, args->addr, args->flags);
r                 322 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 326 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_mn_register(bo, args->addr);
r                 327 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 332 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_ttm_tt_get_user_pages(bo, bo->tbo.ttm->pages);
r                 333 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 336 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_bo_reserve(bo, true);
r                 337 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 341 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 343 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 347 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
r                 348 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 360 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return r;
r                 430 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r = 0;
r                 449 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = ret;
r                 452 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return r;
r                 461 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r = -1;
r                 469 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_bo_reserve(robj, false);
r                 470 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (unlikely(r != 0))
r                 475 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_bo_get_metadata(robj, args->data.data,
r                 481 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = -EINVAL;
r                 484 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_bo_set_tiling_flags(robj, args->data.tiling_info);
r                 485 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (!r)
r                 486 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = amdgpu_bo_set_metadata(robj, args->data.data,
r                 495 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return r;
r                 514 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 519 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_vm_clear_freed(adev, vm, NULL);
r                 520 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 525 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_vm_bo_update(adev, bo_va, false);
r                 526 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		if (r)
r                 530 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_vm_update_directories(adev, vm);
r                 533 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r && r != -ERESTARTSYS)
r                 534 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		DRM_ERROR("Couldn't update BO_VA (%d)\n", r);
r                 557 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r = 0;
r                 616 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = ttm_eu_reserve_buffers(&ticket, &list, true, &duplicates, false);
r                 617 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 623 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = -ENOENT;
r                 635 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_vm_bo_map(adev, bo_va, args->va_address,
r                 640 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_vm_bo_unmap(adev, bo_va, args->va_address);
r                 644 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_vm_bo_clear_mappings(adev, &fpriv->vm,
r                 650 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = amdgpu_vm_bo_replace_map(adev, bo_va, args->va_address,
r                 657 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE) && !amdgpu_vm_debug)
r                 666 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return r;
r                 677 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 685 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_bo_reserve(robj, false);
r                 686 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (unlikely(r))
r                 700 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = -EFAULT;
r                 705 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = -EINVAL;
r                 710 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 			r = -EPERM;
r                 717 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 				r = -EINVAL;
r                 737 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		r = -EINVAL;
r                 742 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	return r;
r                 755 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 771 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = amdgpu_gem_object_create(adev, args->size, 0, domain, flags,
r                 773 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 776 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = drm_gem_handle_create(file_priv, gobj, &handle);
r                 779 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r) {
r                 780 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 852 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	int r;
r                 854 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	r = mutex_lock_interruptible(&dev->filelist_mutex);
r                 855 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 	if (r)
r                 856 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c 		return r;
r                 296 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	int r = 0;
r                 300 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_device_wb_get(adev, &adev->virt.reg_val_offs);
r                 301 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r)
r                 302 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		return r;
r                 309 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_gfx_kiq_acquire(adev, ring);
r                 310 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r)
r                 311 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		return r;
r                 315 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                 317 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r)
r                 318 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		dev_warn(adev->dev, "(%d) failed to init kiq ring\n", r);
r                 320 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	return r;
r                 340 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	int r;
r                 344 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_bo_create_kernel(adev, hpd_size, PAGE_SIZE,
r                 347 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r) {
r                 348 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		dev_warn(adev->dev, "failed to create KIQ bo (%d).\n", r);
r                 349 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		return r;
r                 354 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_bo_reserve(kiq->eop_obj, true);
r                 355 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (unlikely(r != 0))
r                 356 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		dev_warn(adev->dev, "(%d) reserve kiq eop bo failed\n", r);
r                 368 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	int r, i;
r                 378 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		r = amdgpu_bo_create_kernel(adev, mqd_size, PAGE_SIZE,
r                 381 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		if (r) {
r                 382 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 			dev_warn(adev->dev, "failed to create ring mqd ob (%d)", r);
r                 383 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 			return r;
r                 397 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 				r = amdgpu_bo_create_kernel(adev, mqd_size, PAGE_SIZE,
r                 400 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 				if (r) {
r                 401 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 					dev_warn(adev->dev, "failed to create ring mqd bo (%d)", r);
r                 402 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 					return r;
r                 417 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 			r = amdgpu_bo_create_kernel(adev, mqd_size, PAGE_SIZE,
r                 420 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 			if (r) {
r                 421 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 				dev_warn(adev->dev, "failed to create ring mqd bo (%d)", r);
r                 422 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 				return r;
r                 492 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	int r, i;
r                 515 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size *
r                 518 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r) {
r                 519 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                 520 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 		return r;
r                 527 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	r = amdgpu_ring_test_helper(kiq_ring);
r                 528 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	if (r)
r                 531 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 	return r;
r                 187 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_flush_gpu_tlb(r, vmid, addr) (r)->adev->gmc.gmc_funcs->emit_flush_gpu_tlb((r), (vmid), (addr))
r                 188 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid))
r                 178 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	int r;
r                 198 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	r = drm_mm_insert_node_in_range(&mgr->mm, &node->node, mem->num_pages,
r                 203 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	if (!r)
r                 206 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	return r;
r                 226 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	int r;
r                 239 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 		r = -ENOMEM;
r                 249 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 		r = amdgpu_gtt_mgr_alloc(man, tbo, place, mem);
r                 250 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 		if (unlikely(r)) {
r                 253 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 			r = 0;
r                 264 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	return r;
r                 316 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	int r = 0;
r                 321 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 		r = amdgpu_ttm_recover_gart(node->tbo);
r                 322 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 		if (r)
r                 327 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c 	return r;
r                  67 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	int r;
r                  70 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		r = amdgpu_sa_bo_new(&adev->ring_tmp_bo,
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		if (r) {
r                  73 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			dev_err(adev->dev, "failed to get a new IB (%d)\n", r);
r                  74 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			return r;
r                 137 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	int r = 0;
r                 166 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	r = amdgpu_ring_alloc(ring, alloc_size);
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	if (r) {
r                 168 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		dev_err(adev->dev, "scheduling IB failed (%d).\n", r);
r                 169 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		return r;
r                 189 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		r = amdgpu_vm_flush(ring, job, need_pipe_sync);
r                 190 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		if (r) {
r                 192 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			return r;
r                 251 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	r = amdgpu_fence_emit(ring, f, fence_flags);
r                 252 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	if (r) {
r                 253 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		dev_err(adev->dev, "failed to emit fence (%d)\n", r);
r                 257 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		return r;
r                 284 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	int r;
r                 289 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	r = amdgpu_sa_bo_manager_init(adev, &adev->ring_tmp_bo,
r                 293 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	if (r) {
r                 294 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		return r;
r                 333 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 	int r, ret = 0;
r                 378 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		r = amdgpu_ring_test_ib(ring, tmo);
r                 379 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 		if (!r) {
r                 387 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			  ring->name, r);
r                 392 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			return r;
r                 395 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c 			ret = r;
r                 113 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r;
r                 115 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	r = dma_resv_get_fences_rcu(resv, NULL, &count, &fences);
r                 116 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	if (r)
r                 206 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r;
r                 244 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		r = amdgpu_sync_fence(adev, sync, &array->base, false);
r                 247 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		return r;
r                 277 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r = 0;
r                 297 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 			r = amdgpu_sync_fence(adev, sync, tmp, false);
r                 298 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 			return r;
r                 306 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	r = amdgpu_sync_fence(ring->adev, &(*id)->active, fence, false);
r                 307 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	if (r)
r                 308 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		return r;
r                 342 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r;
r                 378 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		r = amdgpu_sync_fence(ring->adev, &(*id)->active, fence, false);
r                 379 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		if (r)
r                 380 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 			return r;
r                 415 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r = 0;
r                 418 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	r = amdgpu_vmid_grab_idle(vm, ring, sync, &idle);
r                 419 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	if (r || !idle)
r                 423 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		r = amdgpu_vmid_grab_reserved(vm, ring, sync, fence, job, &id);
r                 424 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		if (r || !id)
r                 427 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		r = amdgpu_vmid_grab_used(vm, ring, sync, fence, job, &id);
r                 428 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		if (r)
r                 438 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 			r = amdgpu_sync_fence(ring->adev, &id->active,
r                 440 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 			if (r)
r                 464 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	return r;
r                 473 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	int r = 0;
r                 483 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 		r = -EINVAL;
r                 495 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 	return r;
r                  45 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 	int r;
r                  78 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		r = amdgpu_device_wb_get(adev, &wptr_offs);
r                  79 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		if (r)
r                  80 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 			return r;
r                  82 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		r = amdgpu_device_wb_get(adev, &rptr_offs);
r                  83 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		if (r) {
r                  85 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 			return r;
r                  88 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		r = amdgpu_bo_create_kernel(adev, ih->ring_size, PAGE_SIZE,
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 		if (r) {
r                  95 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 			return r;
r                 110 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	int r;
r                 125 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 				r = src->funcs->set(adev, src, k,
r                 127 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 				if (r)
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 						  r);
r                 223 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	int r = 0;
r                 244 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		r = drm_vblank_init(adev->ddev, adev->mode_info.num_crtc);
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		if (r)
r                 246 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 			return r;
r                 257 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	r = drm_irq_install(adev->ddev, adev->ddev->pdev->irq);
r                 258 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	if (r) {
r                 262 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		return r;
r                 384 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	int r;
r                 408 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		r = src->funcs->process(adev, src, &entry);
r                 409 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		if (r < 0)
r                 410 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 			DRM_ERROR("error processing interrupt (%d)\n", r);
r                 411 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 		else if (r)
r                 437 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	int r;
r                 448 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	r = src->funcs->set(adev, src, type, state);
r                 450 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 	return r;
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	int r;
r                  94 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	r = amdgpu_job_alloc(adev, 1, job, NULL);
r                  95 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	if (r)
r                  96 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		return r;
r                  98 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	r = amdgpu_ib_get(adev, NULL, size, &(*job)->ibs[0]);
r                  99 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	if (r)
r                 102 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	return r;
r                 147 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	int r;
r                 152 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	r = drm_sched_job_init(&job->base, entity, owner);
r                 153 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	if (r)
r                 154 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		return r;
r                 171 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	int r;
r                 174 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, NULL, fence);
r                 176 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	if (r)
r                 177 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		return r;
r                 191 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	int r;
r                 196 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 			r = amdgpu_sync_fence(ring->adev, &job->sched_sync,
r                 198 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 			if (r)
r                 199 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 				DRM_ERROR("Error adding fence (%d)\n", r);
r                 204 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		r = amdgpu_vmid_grab(vm, ring, &job->sync,
r                 207 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		if (r)
r                 208 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 			DRM_ERROR("Error getting VM ID (%d)\n", r);
r                 221 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	int r = 0;
r                 236 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		r = amdgpu_ib_schedule(ring, job->num_ibs, job->ibs, job,
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 		if (r)
r                 239 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 			DRM_ERROR("Error scheduling IBs (%d)\n", r);
r                 247 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c 	fence = r ? ERR_PTR(r) : fence;
r                 145 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	int r, acpi_status;
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	r = amdgpu_device_init(adev, dev, dev->pdev, flags);
r                 168 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	if (r) {
r                 176 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	if (!r) {
r                 194 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	if (r) {
r                 201 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	return r;
r                 969 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	int r, pasid;
r                 976 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	r = pm_runtime_get_sync(dev->dev);
r                 977 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	if (r < 0)
r                 978 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		return r;
r                 982 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		r = -ENOMEM;
r                 991 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	r = amdgpu_vm_init(adev, &fpriv->vm, AMDGPU_VM_CONTEXT_GFX, pasid);
r                 992 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	if (r)
r                 997 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		r = -ENOMEM;
r                1004 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		r = amdgpu_map_static_csa(adev, &fpriv->vm, adev->virt.csa_obj,
r                1006 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		if (r)
r                1031 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 	return r;
r                 175 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 	long r;
r                 182 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 		r = dma_resv_wait_timeout_rcu(bo->tbo.base.resv,
r                 184 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 		if (r <= 0)
r                 185 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 			DRM_ERROR("(%ld) failed to wait for user bo\n", r);
r                 321 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 	int r;
r                 346 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 	r = hmm_mirror_register(&amn->mirror, mm);
r                 347 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 	if (r)
r                 363 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c 	return ERR_PTR(r);
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 256 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		r = amdgpu_bo_create(adev, &bp, bo_ptr);
r                 257 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		if (r) {
r                 259 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 				r);
r                 260 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 			return r;
r                 265 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_reserve(*bo_ptr, false);
r                 266 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r) {
r                 267 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		dev_err(adev->dev, "(%d) failed to reserve kernel bo\n", r);
r                 271 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_pin(*bo_ptr, domain);
r                 272 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r) {
r                 273 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		dev_err(adev->dev, "(%d) kernel bo pin failed\n", r);
r                 277 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_ttm_alloc_gart(&(*bo_ptr)->tbo);
r                 278 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r) {
r                 287 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		r = amdgpu_bo_kmap(*bo_ptr, cpu_addr);
r                 288 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		if (r) {
r                 289 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 			dev_err(adev->dev, "(%d) kernel bo map failed\n", r);
r                 305 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 331 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 333 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_create_reserved(adev, size, align, domain, bo_ptr,
r                 336 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r)
r                 337 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 366 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 371 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_create_reserved(adev, size, PAGE_SIZE, domain, bo_ptr,
r                 373 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r)
r                 374 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 386 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_mem_space(&(*bo_ptr)->tbo, &(*bo_ptr)->placement,
r                 388 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r)
r                 392 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		r = amdgpu_bo_kmap(*bo_ptr, cpu_addr);
r                 393 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		if (r)
r                 403 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 523 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 575 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, bp->type,
r                 578 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (unlikely(r != 0))
r                 579 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 593 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		r = amdgpu_fill_buffer(bo, 0, bo->tbo.base.resv, &fence);
r                 594 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		if (unlikely(r))
r                 618 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 626 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 639 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_do_create(adev, &bp, &bo->shadow);
r                 640 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (!r) {
r                 647 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 669 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 672 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_bo_do_create(adev, bp, bo_ptr);
r                 673 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r)
r                 674 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 681 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		r = amdgpu_bo_create_shadow(adev, bp->size, *bo_ptr);
r                 686 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		if (r)
r                 690 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 709 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                 718 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 719 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (unlikely(r == -ENOMEM) && domain != bo->allowed_domains) {
r                 724 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 769 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	long r;
r                 781 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = dma_resv_wait_timeout_rcu(bo->tbo.base.resv, false, false,
r                 783 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r < 0)
r                 784 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 786 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap);
r                 787 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (r)
r                 788 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                 887 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r, i;
r                 944 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 945 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (unlikely(r)) {
r                 962 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 996 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r, i;
r                1012 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                1013 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (unlikely(r))
r                1016 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                1294 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                1310 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_fill_buffer(abo, AMDGPU_POISON, bo->base.resv, &fence);
r                1311 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (!WARN_ON(r)) {
r                1336 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                1367 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = ttm_bo_validate(bo, &abo->placement, &ctx);
r                1368 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	if (unlikely(r != 0))
r                1369 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 		return r;
r                1413 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	int r;
r                1417 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	r = amdgpu_sync_wait(&sync, intr);
r                1420 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c 	return r;
r                 155 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 	int r;
r                 157 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 	r = __ttm_bo_reserve(&bo->tbo, !no_intr, false, NULL);
r                 158 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 	if (unlikely(r != 0)) {
r                 159 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 		if (r != -ERESTARTSYS)
r                 161 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h 		return r;
r                1328 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, value, size = sizeof(value);
r                1331 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_LOAD,
r                1334 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1335 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1354 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, value, size = sizeof(value);
r                1357 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MEM_LOAD,
r                1360 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1361 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1473 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, temp = 0, size = sizeof(temp);
r                1486 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_HOTSPOT_TEMP,
r                1488 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (r)
r                1489 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 			return r;
r                1493 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_EDGE_TEMP,
r                1495 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (r)
r                1496 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 			return r;
r                1500 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MEM_TEMP,
r                1502 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (r)
r                1503 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 			return r;
r                1760 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r;
r                1762 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MIN_FAN_RPM,
r                1764 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1765 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1777 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r;
r                1779 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_MAX_FAN_RPM,
r                1781 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1782 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1915 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, size = sizeof(vddgfx);
r                1923 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_VDDGFX,
r                1925 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1926 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1945 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, size = sizeof(vddnb);
r                1957 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_VDDNB,
r                1959 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1960 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                1979 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, size = sizeof(u32);
r                1988 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_POWER,
r                1990 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                1991 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                2079 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, size = sizeof(sclk);
r                2087 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_SCLK,
r                2089 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                2090 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                2109 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r, size = sizeof(mclk);
r                2117 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	r = amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GFX_MCLK,
r                2119 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	if (r)
r                2120 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		return r;
r                2757 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 	int r;
r                2760 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		r = adev->powerplay.pp_funcs->load_firmware(adev->powerplay.pp_handle);
r                2761 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (r) {
r                2763 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 			return r;
r                 241 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	int r, i;
r                 262 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		r = amdgpu_fence_driver_init_ring(ring, sched_hw_submission);
r                 263 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		if (r)
r                 264 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			return r;
r                 267 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_device_wb_get(adev, &ring->rptr_offs);
r                 268 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 269 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		dev_err(adev->dev, "(%d) ring rptr_offs wb alloc failed\n", r);
r                 270 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 273 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_device_wb_get(adev, &ring->wptr_offs);
r                 274 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 275 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		dev_err(adev->dev, "(%d) ring wptr_offs wb alloc failed\n", r);
r                 276 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 279 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_device_wb_get(adev, &ring->fence_offs);
r                 280 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 281 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		dev_err(adev->dev, "(%d) ring fence_offs wb alloc failed\n", r);
r                 282 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 285 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_device_wb_get(adev, &ring->trail_fence_offs);
r                 286 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 288 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			"(%d) ring trail_fence_offs wb alloc failed\n", r);
r                 289 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 295 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_device_wb_get(adev, &ring->cond_exe_offs);
r                 296 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 297 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		dev_err(adev->dev, "(%d) ring cond_exec_polling wb alloc failed\n", r);
r                 298 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 305 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_fence_driver_start_ring(ring, irq_src, irq_type);
r                 306 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r) {
r                 307 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		dev_err(adev->dev, "failed initializing fences (%d).\n", r);
r                 308 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		return r;
r                 318 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		r = amdgpu_bo_create_kernel(adev, ring->ring_size + ring->funcs->extra_dw, PAGE_SIZE,
r                 323 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		if (r) {
r                 324 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			dev_err(adev->dev, "(%d) ring create failed\n", r);
r                 325 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			return r;
r                 440 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	int r, i;
r                 453 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			r = put_user(early[i], (uint32_t *)buf);
r                 454 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			if (r)
r                 455 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 				return r;
r                 468 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		r = put_user(value, (uint32_t*)buf);
r                 469 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 		if (r)
r                 470 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			return r;
r                 529 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	int r;
r                 531 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	r = amdgpu_ring_test_ring(ring);
r                 532 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	if (r)
r                 534 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 			      ring->name, r);
r                 539 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	ring->sched.ready = !r;
r                 540 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	return r;
r                 231 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_parse_cs(r, p, ib) ((r)->funcs->parse_cs((p), (ib)))
r                 232 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_patch_cs_in_place(r, p, ib) ((r)->funcs->patch_cs_in_place((p), (ib)))
r                 233 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_test_ring(r) (r)->funcs->test_ring((r))
r                 234 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_test_ib(r, t) (r)->funcs->test_ib((r), (t))
r                 235 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_get_rptr(r) (r)->funcs->get_rptr((r))
r                 236 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_get_wptr(r) (r)->funcs->get_wptr((r))
r                 237 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_set_wptr(r) (r)->funcs->set_wptr((r))
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_ib(r, job, ib, flags) ((r)->funcs->emit_ib((r), (job), (ib), (flags)))
r                 239 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_pipeline_sync(r) (r)->funcs->emit_pipeline_sync((r))
r                 240 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_vm_flush(r, vmid, addr) (r)->funcs->emit_vm_flush((r), (vmid), (addr))
r                 241 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_fence(r, addr, seq, flags) (r)->funcs->emit_fence((r), (addr), (seq), (flags))
r                 242 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_gds_switch(r, v, db, ds, wb, ws, ab, as) (r)->funcs->emit_gds_switch((r), (v), (db), (ds), (wb), (ws), (ab), (as))
r                 243 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_hdp_flush(r) (r)->funcs->emit_hdp_flush((r))
r                 244 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_switch_buffer(r) (r)->funcs->emit_switch_buffer((r))
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_cntxcntl(r, d) (r)->funcs->emit_cntxcntl((r), (d))
r                 246 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_rreg(r, d) (r)->funcs->emit_rreg((r), (d))
r                 247 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_wreg(r, d, v) (r)->funcs->emit_wreg((r), (d), (v))
r                 248 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_reg_wait(r, d, v, m) (r)->funcs->emit_reg_wait((r), (d), (v), (m))
r                 249 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_reg_write_reg_wait(r, d0, d1, v, m) (r)->funcs->emit_reg_write_reg_wait((r), (d0), (d1), (v), (m))
r                 250 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_tmz(r, b) (r)->funcs->emit_tmz((r), (b))
r                 251 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_pad_ib(r, ib) ((r)->funcs->pad_ib((r), (ib)))
r                 252 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_init_cond_exec(r) (r)->funcs->init_cond_exec((r))
r                 253 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_patch_cond_exec(r,o) (r)->funcs->patch_cond_exec((r),(o))
r                 254 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_preempt_ib(r) (r)->funcs->preempt_ib(r)
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	int r;
r                  95 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE,
r                 100 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	if (r) {
r                 101 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		dev_warn(adev->dev, "(%d) create RLC sr bo failed\n", r);
r                 103 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		return r;
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	int r;
r                 133 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE,
r                 138 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	if (r) {
r                 139 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		dev_err(adev->dev, "(%d) failed to create rlc csb bo\n", r);
r                 141 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		return r;
r                 164 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	int r;
r                 166 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	r = amdgpu_bo_create_reserved(adev, adev->gfx.rlc.cp_table_size,
r                 171 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 	if (r) {
r                 172 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		dev_err(adev->dev, "(%d) failed to create cp table bo\n", r);
r                 174 drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c 		return r;
r                  54 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	int i, r;
r                  66 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	r = amdgpu_bo_create_kernel(adev, size, align, domain, &sa_manager->bo,
r                  68 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	if (r) {
r                  69 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 		dev_err(adev->dev, "(%d) failed to allocate bo for manager\n", r);
r                  70 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 		return r;
r                  74 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	return r;
r                 282 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	int i, r;
r                 328 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 			r = (t > 0) ? 0 : t;
r                 332 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 			r = wait_event_interruptible_locked(
r                 338 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	} while (!r);
r                 343 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c 	return r;
r                  63 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	int r;
r                  68 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	r = amdgpu_file_to_fpriv(f.file, &fpriv);
r                  69 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	if (r) {
r                  71 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		return r;
r                  89 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	int r;
r                  94 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	r = amdgpu_file_to_fpriv(f.file, &fpriv);
r                  95 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	if (r) {
r                  97 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		return r;
r                 120 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	int r;
r                 128 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		r = amdgpu_sched_process_priority_override(adev,
r                 133 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		r = amdgpu_sched_context_priority_override(adev,
r                 140 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 		r = -EINVAL;
r                 144 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c 	return r;
r                  70 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 	int r;
r                  75 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 	r = amdgpu_sdma_get_index_from_ring(ring, &index);
r                  77 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 	if (r || index > 31)
r                 200 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	int r = 0;
r                 207 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	r = amdgpu_sync_fence(adev, sync, f, false);
r                 210 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	if (!flist || r)
r                 211 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 		return r;
r                 242 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 		r = amdgpu_sync_fence(adev, sync, f, false);
r                 243 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 		if (r)
r                 246 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	return r;
r                 338 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	int i, r;
r                 343 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 			r = amdgpu_sync_fence(NULL, clone, f, e->explicit);
r                 344 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 			if (r)
r                 345 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 				return r;
r                 363 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 	int i, r;
r                 366 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 		r = dma_fence_wait(e->fence, intr);
r                 367 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 		if (r)
r                 368 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 			return r;
r                  40 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	int i, r;
r                  60 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = 1;
r                  71 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	r = amdgpu_bo_create(adev, &bp, &vram_obj);
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	if (r) {
r                  76 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	r = amdgpu_bo_reserve(vram_obj, false);
r                  77 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	if (unlikely(r != 0))
r                  79 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	r = amdgpu_bo_pin(vram_obj, AMDGPU_GEM_DOMAIN_VRAM);
r                  80 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	if (r) {
r                  92 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_create(adev, &bp, gtt_obj + i);
r                  93 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                  98 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_reserve(gtt_obj[i], false);
r                  99 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (unlikely(r != 0))
r                 101 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_pin(gtt_obj[i], AMDGPU_GEM_DOMAIN_GTT);
r                 102 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 106 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_ttm_alloc_gart(&gtt_obj[i]->tbo);
r                 107 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 113 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_kmap(gtt_obj[i], &gtt_map);
r                 114 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 126 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_copy_buffer(ring, gart_addr, vram_addr,
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 134 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = dma_fence_wait(fence, false);
r                 135 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 143 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_kmap(vram_obj, &vram_map);
r                 144 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 172 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_copy_buffer(ring, vram_addr, gart_addr,
r                 175 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 180 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = dma_fence_wait(fence, false);
r                 181 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 189 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		r = amdgpu_bo_kmap(gtt_obj[i], &gtt_map);
r                 190 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 		if (r) {
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c 	if (r) {
r                 315 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r = 0;
r                 356 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			r = amdgpu_map_buffer(src->bo, src->mem,
r                 360 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			if (r)
r                 369 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			r = amdgpu_map_buffer(dst->bo, dst->mem,
r                 373 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			if (r)
r                 378 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_copy_buffer(ring, from, to, cur_size,
r                 380 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                 416 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 433 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                 442 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_ttm_copy_mem_to_mem(adev, &src, &dst,
r                 445 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                 454 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_fill_buffer(ttm_to_amdgpu_bo(bo), AMDGPU_POISON,
r                 456 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r) {
r                 466 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = ttm_bo_move_accel_cleanup(bo, fence, true, new_mem);
r                 468 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = ttm_bo_pipeline_move(bo, fence, evict, new_mem);
r                 470 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 476 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 493 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                 507 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_mem_space(bo, &placement, &tmp_mem, ctx);
r                 508 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 510 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                 514 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement);
r                 515 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 520 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_tt_bind(bo->ttm, &tmp_mem, ctx);
r                 521 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 526 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_move_blit(bo, evict, ctx->no_wait_gpu, &tmp_mem, old_mem);
r                 527 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 532 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_move_ttm(bo, ctx, new_mem);
r                 535 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 552 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                 566 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_mem_space(bo, &placement, &tmp_mem, ctx);
r                 567 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 569 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                 573 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_move_ttm(bo, ctx, &tmp_mem);
r                 574 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 579 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_move_blit(bo, evict, ctx->no_wait_gpu, new_mem, old_mem);
r                 580 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r)) {
r                 585 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 624 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                 657 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = -ENODEV;
r                 663 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_move_vram_ram(bo, evict, ctx, new_mem);
r                 666 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_move_ram_vram(bo, evict, ctx, new_mem);
r                 668 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_move_blit(bo, evict, ctx->no_wait_gpu,
r                 672 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                 678 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                 681 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = ttm_bo_move_memcpy(bo, ctx, new_mem);
r                 682 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                 683 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                 798 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r = 0;
r                 811 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = -ENOMEM;
r                 817 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = -ENOMEM;
r                 842 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = -EFAULT;
r                 847 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = -EPERM;
r                 851 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = hmm_range_fault(range, 0);
r                 854 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (unlikely(r < 0))
r                 862 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			r = -ENOMEM;
r                 882 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 894 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	bool r = false;
r                 906 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = hmm_range_valid(gtt->range);
r                 914 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                 943 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                 950 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = sg_alloc_table_from_pages(ttm->sg, ttm->pages, ttm->num_pages, 0,
r                 953 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                 957 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = -ENOMEM;
r                 970 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1009 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1014 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_gart_bind(adev, gtt->offset, page_idx,
r                1016 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                1023 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_gart_bind(adev,
r                1029 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_gart_bind(adev, gtt->offset, ttm->num_pages,
r                1034 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1038 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1053 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r = 0;
r                1056 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_ttm_tt_pin_userptr(ttm);
r                1057 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r) {
r                1059 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                1082 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_gart_bind(adev, gtt->offset, ttm->num_pages,
r                1085 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1088 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1103 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1125 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = ttm_bo_mem_space(bo, &placement, &tmp, &ctx);
r                1126 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (unlikely(r))
r                1127 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                1134 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_ttm_gart_bind(adev, bo, flags);
r                1135 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (unlikely(r)) {
r                1137 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                1160 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1166 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_ttm_gart_bind(adev, tbo, flags);
r                1168 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1181 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1191 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_gart_unbind(adev, gtt->offset, ttm->num_pages);
r                1192 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1195 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1643 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1658 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1673 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1680 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_device_init(&adev->mman.bdev,
r                1684 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1685 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
r                1686 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1694 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_init_mm(&adev->mman.bdev, TTM_PL_VRAM,
r                1696 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1698 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1718 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_ttm_fw_reserve_vram_init(adev);
r                1719 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1720 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1727 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_bo_create_kernel(adev, adev->gmc.stolen_size, PAGE_SIZE,
r                1731 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1732 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1738 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_bo_create_kernel_at(adev,
r                1744 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1745 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1764 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_init_mm(&adev->mman.bdev, TTM_PL_TT, gtt_size >> PAGE_SHIFT);
r                1765 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1767 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1773 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_init_mm(&adev->mman.bdev, AMDGPU_PL_GDS,
r                1775 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1777 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1780 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_init_mm(&adev->mman.bdev, AMDGPU_PL_GWS,
r                1782 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1784 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1787 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = ttm_bo_init_mm(&adev->mman.bdev, AMDGPU_PL_OA,
r                1789 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1791 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1795 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_ttm_debugfs_init(adev);
r                1796 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r) {
r                1798 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1853 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1865 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = drm_sched_entity_init(&adev->mman.entity, &rq, 1, NULL);
r                1866 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r) {
r                1868 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 				  r);
r                1912 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1927 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_job_alloc_with_ib(adev, num_dw * 4 + num_bytes, &job);
r                1928 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1929 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1944 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_gart_map(adev, 0, num_pages, dma_address, flags,
r                1946 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1949 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_job_submit(job, &adev->mman.entity,
r                1951 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1956 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1960 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                1975 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                1990 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_job_alloc_with_ib(adev, num_dw * 4, &job);
r                1991 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                1992 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                1999 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_sync_resv(adev, &job->sync, resv,
r                2002 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r) {
r                2003 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			DRM_ERROR("sync failed (%d).\n", r);
r                2022 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_job_submit_direct(job, ring, fence);
r                2024 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_job_submit(job, &adev->mman.entity,
r                2026 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                2029 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                2033 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	DRM_ERROR("Error scheduling IBs (%d)\n", r);
r                2034 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                2051 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2059 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_ttm_alloc_gart(&bo->tbo);
r                2060 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                2061 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                2079 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_job_alloc_with_ib(adev, num_dw * 4, &job);
r                2080 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                2081 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		return r;
r                2084 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = amdgpu_sync_resv(adev, &job->sync, resv,
r                2086 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r) {
r                2087 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			DRM_ERROR("sync failed (%d).\n", r);
r                2117 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	r = amdgpu_job_submit(job, &adev->mman.entity,
r                2119 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	if (r)
r                2126 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	return r;
r                2166 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2187 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = put_user(value, (uint32_t *)buf);
r                2188 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                2189 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                2210 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2225 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = get_user(value, (uint32_t *)buf);
r                2226 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                2227 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			return r;
r                2261 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2278 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			r = copy_to_user(buf, ptr, cur_size);
r                2281 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 			r = clear_user(buf, cur_size);
r                2283 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                2316 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2346 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = copy_to_user(buf, ptr + off, bytes);
r                2348 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                2372 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 	int r;
r                2397 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		r = copy_from_user(ptr + off, buf, bytes);
r                2399 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c 		if (r)
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int i, j, r;
r                 188 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = request_firmware(&adev->uvd.fw, fw_name, adev->dev);
r                 189 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 192 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 195 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_ucode_validate(adev->uvd.fw);
r                 196 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 201 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 258 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_bo_create_kernel(adev, bo_size, PAGE_SIZE,
r                 261 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r) {
r                 262 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			dev_err(adev->dev, "(%d) failed to allocate UVD bo\n", r);
r                 263 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			return r;
r                 331 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r;
r                 335 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = drm_sched_entity_init(&adev->uvd.entity, &rq, 1, NULL);
r                 336 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 338 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 422 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int i, r;
r                 430 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			r = amdgpu_uvd_get_destroy_msg(ring, handle, false,
r                 432 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			if (r) {
r                 433 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 				DRM_ERROR("Error destroying UVD %d!\n", r);
r                 482 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r = 0;
r                 484 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_cs_find_mapping(ctx->parser, addr, &bo, &mapping);
r                 485 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 487 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 500 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = ttm_bo_validate(&bo->tbo, &bo->placement, &tctx);
r                 503 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	return r;
r                 716 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	long r;
r                 724 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_bo_kmap(bo, &ptr);
r                 725 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 726 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		DRM_ERROR("Failed mapping the UVD) message (%ld)!\n", r);
r                 727 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 764 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_uvd_cs_msg_decode(adev, msg, ctx->buf_sizes);
r                 766 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                 767 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			return r;
r                 812 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r;
r                 814 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_cs_find_mapping(ctx->parser, addr, &bo, &mapping);
r                 815 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r) {
r                 817 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                 871 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_uvd_cs_msg(ctx, bo, addr);
r                 872 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                 873 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			return r;
r                 894 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int i, r;
r                 913 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			r = cb(ctx);
r                 914 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			if (r)
r                 915 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 				return r;
r                 941 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r;
r                 950 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			r = amdgpu_uvd_cs_reg(ctx, cb);
r                 951 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			if (r)
r                 952 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 				return r;
r                 983 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r;
r                1001 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_uvd_cs_packets(&ctx, amdgpu_uvd_cs_pass1);
r                1002 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                1003 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			return r;
r                1007 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_uvd_cs_packets(&ctx, amdgpu_uvd_cs_pass2);
r                1008 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1009 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                1028 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	long r;
r                1041 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                1042 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                1046 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_job_alloc_with_ib(adev, 64, &job);
r                1047 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1076 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = dma_resv_wait_timeout_rcu(bo->tbo.base.resv,
r                1079 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r == 0)
r                1080 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 			r = -ETIMEDOUT;
r                1081 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r < 0)
r                1084 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_job_submit_direct(job, ring, &f);
r                1085 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                1088 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.base.resv,
r                1090 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                1093 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = amdgpu_job_submit(job, &adev->uvd.entity,
r                1095 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		if (r)
r                1115 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	return r;
r                1127 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r, i;
r                1129 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE,
r                1132 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1133 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                1159 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	int r, i;
r                1161 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE,
r                1164 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1165 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		return r;
r                1247 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	long r;
r                1249 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_uvd_get_create_msg(ring, 1, NULL);
r                1250 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1253 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = amdgpu_uvd_get_destroy_msg(ring, 1, true, &fence);
r                1254 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r)
r                1257 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                1258 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	if (r == 0)
r                1259 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = -ETIMEDOUT;
r                1260 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	else if (r > 0)
r                1261 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 		r = 0;
r                1266 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c 	return r;
r                  96 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r;
r                 154 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = request_firmware(&adev->vce.fw, fw_name, adev->dev);
r                 155 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 158 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 161 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_ucode_validate(adev->vce.fw);
r                 162 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 167 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 181 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_bo_create_kernel(adev, size, PAGE_SIZE,
r                 184 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 185 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		dev_err(adev->dev, "(%d) failed to allocate VCE bo\n", r);
r                 186 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int r;
r                 242 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = drm_sched_entity_init(&adev->vce.entity, &rq, 1, NULL);
r                 243 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r != 0) {
r                 245 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 288 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int r;
r                 293 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_bo_reserve(adev->vce.vcpu_bo, false);
r                 294 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 295 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		dev_err(adev->dev, "(%d) failed to reserve VCE bo\n", r);
r                 296 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 299 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_bo_kmap(adev->vce.vcpu_bo, &cpu_addr);
r                 300 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 302 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		dev_err(adev->dev, "(%d) VCE map failed\n", r);
r                 303 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 405 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r;
r                 412 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = amdgpu_vce_get_destroy_msg(ring, handle, false, NULL);
r                 413 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		if (r)
r                 414 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			DRM_ERROR("Error destroying VCE handle (%d)!\n", r);
r                 440 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r;
r                 442 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 443 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                 444 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 487 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 488 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                 498 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                 518 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r;
r                 520 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 521 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                 522 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 548 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = amdgpu_job_submit_direct(job, ring, &f);
r                 550 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = amdgpu_job_submit(job, &ring->adev->vce.entity,
r                 552 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                 562 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                 585 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int r;
r                 598 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_cs_find_mapping(p, addr, &bo, &mapping);
r                 599 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 602 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 630 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int r;
r                 639 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_cs_find_mapping(p, addr, &bo, &mapping);
r                 640 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r) {
r                 643 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                 720 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r = 0;
r                 731 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = -EINVAL;
r                 742 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 10,
r                 744 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 747 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 12,
r                 749 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 754 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 3,
r                 756 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 762 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 3, idx + 2,
r                 764 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 769 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 3, idx + 2,
r                 771 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 776 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 3,
r                 778 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 781 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_validate_bo(p, ib_idx, idx + 8,
r                 783 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 801 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 				r = session_idx;
r                 820 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 				r = -EINVAL;
r                 848 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 				r = -EINVAL;
r                 854 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 10, idx + 9,
r                 856 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 859 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 12, idx + 11,
r                 861 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 870 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 3, idx + 2,
r                 872 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 878 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 3, idx + 2,
r                 880 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 885 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 3, idx + 2,
r                 887 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 892 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 3,
r                 894 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 897 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = amdgpu_vce_cs_reloc(p, ib_idx, idx + 8,
r                 899 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			if (r)
r                 905 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = -EINVAL;
r                 911 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = -EINVAL;
r                 920 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = -ENOENT;
r                 924 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (!r) {
r                 936 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                 953 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int i, r = 0, idx = 0;
r                 961 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = -EINVAL;
r                 971 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 				r = session_idx;
r                 984 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 				r = -EINVAL;
r                1000 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 			r = -EINVAL;
r                1009 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = -ENOENT;
r                1013 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (!r) {
r                1026 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                1078 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	int r, timeout = adev->usec_timeout;
r                1084 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_ring_alloc(ring, 16);
r                1085 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                1086 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                1100 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = -ETIMEDOUT;
r                1102 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                1115 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	long r;
r                1121 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_bo_create_reserved(ring->adev, 512, PAGE_SIZE,
r                1124 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                1125 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		return r;
r                1127 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_vce_get_create_msg(ring, 1, bo, NULL);
r                1128 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                1131 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = amdgpu_vce_get_destroy_msg(ring, 1, true, &fence);
r                1132 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r)
r                1135 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                1136 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	if (r == 0)
r                1137 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = -ETIMEDOUT;
r                1138 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	else if (r > 0)
r                1139 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 		r = 0;
r                1145 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c 	return r;
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int i, r;
r                 116 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = request_firmware(&adev->vcn.fw, fw_name, adev->dev);
r                 117 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r) {
r                 120 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 123 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_ucode_validate(adev->vcn.fw);
r                 124 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r) {
r                 129 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 170 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = amdgpu_bo_create_kernel(adev, bo_size, PAGE_SIZE,
r                 173 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		if (r) {
r                 174 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 			dev_err(adev->dev, "(%d) failed to allocate vcn bo\n", r);
r                 175 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 			return r;
r                 180 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = amdgpu_bo_create_kernel(adev, 64 * 2 * 4, PAGE_SIZE,
r                 183 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		if (r) {
r                 184 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 			dev_err(adev->dev, "(%d) failed to allocate DPG bo\n", r);
r                 185 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 			return r;
r                 385 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int r;
r                 388 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_ring_alloc(ring, 3);
r                 389 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 390 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 402 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 404 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 416 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int i, r;
r                 418 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_alloc_with_ib(adev, 64, &job);
r                 419 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 436 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 437 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 456 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 465 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int r, i;
r                 467 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE,
r                 470 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 471 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 499 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int r, i;
r                 501 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_bo_create_reserved(adev, 1024, PAGE_SIZE,
r                 504 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 505 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 522 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	long r;
r                 524 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_vcn_dec_get_create_msg(ring, 1, NULL);
r                 525 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 528 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_vcn_dec_get_destroy_msg(ring, 1, &fence);
r                 529 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 532 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                 533 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r == 0)
r                 534 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 535 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	else if (r > 0)
r                 536 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = 0;
r                 540 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 548 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int r;
r                 550 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_ring_alloc(ring, 16);
r                 551 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 552 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 566 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 568 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 580 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int i, r;
r                 582 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 583 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 584 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 609 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 610 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 621 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 633 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int i, r;
r                 635 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 636 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 637 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 662 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 663 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 674 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 681 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	long r;
r                 683 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_bo_create_reserved(ring->adev, 128 * 1024, PAGE_SIZE,
r                 686 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 687 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 689 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_vcn_enc_get_create_msg(ring, 1, bo, NULL);
r                 690 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 693 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_vcn_enc_get_destroy_msg(ring, 1, bo, &fence);
r                 694 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 697 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                 698 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r == 0)
r                 699 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 700 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	else if (r > 0)
r                 701 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = 0;
r                 707 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 715 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int r;
r                 718 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_ring_alloc(ring, 3);
r                 719 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 720 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 734 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 736 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 747 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	int i, r;
r                 749 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 750 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 751 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		return r;
r                 763 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 764 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 775 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                 784 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	long r = 0;
r                 786 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = amdgpu_vcn_jpeg_set_reg(ring, 1, &fence);
r                 787 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r)
r                 790 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                 791 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	if (r == 0) {
r                 792 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 794 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	} else if (r < 0) {
r                 797 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = 0;
r                 808 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 		r = -ETIMEDOUT;
r                 812 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c 	return r;
r                  50 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	signed long r, cnt = 0;
r                  65 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                  75 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	if (r < 1 && (adev->in_gpu_reset || in_interrupt()))
r                  79 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
r                  81 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                  96 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	signed long r, cnt = 0;
r                 111 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                 121 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	if (r < 1 && (adev->in_gpu_reset || in_interrupt()))
r                 125 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
r                 128 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                 146 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	signed long r, cnt = 0;
r                 158 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                 161 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	if (r < 1 && in_interrupt())
r                 165 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	while (r < 1 && cnt++ < MAX_KIQ_REG_TRY) {
r                 168 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = amdgpu_fence_wait_polling(ring, seq, MAX_KIQ_REG_WAIT);
r                 190 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	int r;
r                 193 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = virt->ops->req_full_gpu(adev, init);
r                 194 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		if (r)
r                 195 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 			return r;
r                 213 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	int r;
r                 216 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = virt->ops->rel_full_gpu(adev, init);
r                 217 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		if (r)
r                 218 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 			return r;
r                 234 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	int r;
r                 237 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		r = virt->ops->reset_gpu(adev);
r                 238 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		if (r)
r                 239 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 			return r;
r                 271 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	int r;
r                 276 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	r = amdgpu_bo_create_kernel(adev, PAGE_SIZE, PAGE_SIZE,
r                 281 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 	if (r) {
r                 282 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		DRM_ERROR("failed to alloc mm table and error = %d.\n", r);
r                 283 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c 		return r;
r                 650 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r = 0;
r                 657 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = validate(param, bo);
r                 658 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                 672 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	return r;
r                 712 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                 745 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 746 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                 747 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                 750 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = ttm_bo_validate(&bo->shadow->tbo, &bo->shadow->placement,
r                 752 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                 753 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                 756 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = vm->update_funcs->map_table(bo);
r                 757 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                 758 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                 764 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = vm->update_funcs->prepare(&params, AMDGPU_FENCE_OWNER_KFD, NULL);
r                 765 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                 766 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                 779 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = vm->update_funcs->update(&params, bo, addr, 0, ats_entries,
r                 781 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                 782 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                 802 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = vm->update_funcs->update(&params, bo, addr, 0, entries,
r                 804 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                 805 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                 858 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                 876 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_bo_create(adev, &bp, &pt);
r                 877 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                 878 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                 886 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_vm_clear_bo(adev, vm, pt);
r                 887 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                 895 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	return r;
r                1040 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1078 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_fence_emit(ring, &fence, 0);
r                1079 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1080 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                1242 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1251 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = vm->update_funcs->prepare(&params, AMDGPU_FENCE_OWNER_VM, NULL);
r                1252 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                1253 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                1262 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_update_pde(&params, vm, entry);
r                1263 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1267 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = vm->update_funcs->commit(&params, &vm->last_update);
r                1268 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                1274 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	return r;
r                1388 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1400 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_alloc_pts(params->adev, params->vm, &cursor);
r                1401 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1402 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                1515 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1526 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = vm->update_funcs->prepare(&params, owner, exclusive);
r                1527 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                1528 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                1530 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_vm_update_ptes(&params, start, last + 1, addr, flags);
r                1531 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                1532 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                1568 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1651 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_bo_update_mapping(adev, exclusive, dma_addr, vm,
r                1654 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1655 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                1694 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1733 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_bo_split_mapping(adev, exclusive, pages_addr, vm,
r                1736 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1737 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                1889 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1891 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = dma_resv_get_fences_rcu(resv, &excl,
r                1893 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r) {
r                1936 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1947 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_bo_update_mapping(adev, NULL, NULL, vm,
r                1951 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r) {
r                1953 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                1987 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                1991 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_bo_update(adev, bo_va, false);
r                1992 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                1993 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                2010 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_bo_update(adev, bo_va, clear);
r                2011 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                2012 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                2188 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                2206 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_vm_bo_clear_mappings(adev, bo_va->base.vm, saddr, size);
r                2207 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r) {
r                2209 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                2678 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r, i;
r                2692 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = drm_sched_entity_init(&vm->entity, adev->vm_manager.vm_pte_rqs,
r                2694 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2695 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                2723 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_bo_create(adev, &bp, &root);
r                2724 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2727 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_bo_reserve(root, true);
r                2728 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2731 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = dma_resv_reserve_shared(root->tbo.base.resv, 1);
r                2732 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2737 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_vm_clear_bo(adev, vm, root);
r                2738 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2747 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = idr_alloc(&adev->vm_manager.pasid_idr, vm, pasid, pasid + 1,
r                2750 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r < 0)
r                2771 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	return r;
r                2828 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                2830 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_bo_reserve(vm->root.base.bo, true);
r                2831 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2832 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		return r;
r                2835 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_vm_check_clean_reserved(adev, vm);
r                2836 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r)
r                2843 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = idr_alloc(&adev->vm_manager.pasid_idr, vm, pasid, pasid + 1,
r                2847 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r == -ENOSPC)
r                2849 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = 0;
r                2857 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vm_clear_bo(adev, vm, vm->root.base.bo);
r                2858 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                2909 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	return r;
r                2946 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int i, r;
r                2982 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	r = amdgpu_bo_reserve(root, true);
r                2983 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	if (r) {
r                3070 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 	int r;
r                3075 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		r = amdgpu_vmid_alloc_reserved(adev, &fpriv->vm, AMDGPU_GFXHUB_0);
r                3076 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 		if (r)
r                3077 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 			return r;
r                  50 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 	int r;
r                  55 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 	r = amdgpu_bo_sync_wait(p->vm->root.base.bo, owner, true);
r                  56 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 	if (unlikely(r))
r                  57 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 		return r;
r                  61 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 		r = dma_fence_wait(exclusive, true);
r                  62 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 		if (unlikely(r))
r                  63 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c 			return r;
r                  38 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	int r;
r                  40 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	r = amdgpu_ttm_alloc_gart(&table->tbo);
r                  41 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	if (r)
r                  42 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 		return r;
r                  45 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 		r = amdgpu_ttm_alloc_gart(&table->shadow->tbo);
r                  47 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	return r;
r                  65 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	int r;
r                  67 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	r = amdgpu_job_alloc_with_ib(p->adev, ndw * 4, &p->job);
r                  68 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	if (r)
r                  69 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 		return r;
r                  71 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	r = amdgpu_sync_fence(p->adev, &p->job->sync, exclusive, false);
r                  72 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	if (r)
r                  73 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 		return r;
r                  75 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	r = amdgpu_sync_resv(p->adev, &p->job->sync, root->tbo.base.resv,
r                  77 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	if (r)
r                  78 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 		return r;
r                 100 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	int r;
r                 107 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	r = amdgpu_job_submit(p->job, &p->vm->entity,
r                 109 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	if (r)
r                 120 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	return r;
r                 202 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 	int r;
r                 209 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 			r = amdgpu_vm_sdma_commit(p, NULL);
r                 210 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 			if (r)
r                 211 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 				return r;
r                 220 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 			r = amdgpu_job_alloc_with_ib(p->adev, ndw * 4, &p->job);
r                 221 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 			if (r)
r                 222 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c 				return r;
r                 280 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 	int r;
r                 326 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 		r = drm_mm_insert_node_in_range(mm, &nodes[i], pages,
r                 330 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 		if (unlikely(r))
r                 345 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 		r = drm_mm_insert_node_in_range(mm, &nodes[i],
r                 349 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 		if (unlikely(r))
r                 371 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 	return r == -ENOSPC ? 0 : r;
r                 616 drivers/gpu/drm/amd/amdgpu/atom.c 	int r = 0;
r                 623 drivers/gpu/drm/amd/amdgpu/atom.c 		r = amdgpu_atom_execute_table_locked(ctx->ctx, idx, ctx->ps + ctx->ps_shift);
r                 624 drivers/gpu/drm/amd/amdgpu/atom.c 	if (r) {
r                1264 drivers/gpu/drm/amd/amdgpu/atom.c 	int r;
r                1278 drivers/gpu/drm/amd/amdgpu/atom.c 	r = amdgpu_atom_execute_table_locked(ctx, index, params);
r                1280 drivers/gpu/drm/amd/amdgpu/atom.c 	return r;
r                  68 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 	int r = 0;
r                  91 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 		r = -ETIMEDOUT;
r                  98 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 		r = -EIO;
r                 105 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 		r = -EIO;
r                 116 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 	r = recv_bytes;
r                 120 drivers/gpu/drm/amd/amdgpu/atombios_dp.c 	return r;
r                  48 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 	int r = 0;
r                  59 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 			r = -EINVAL;
r                  73 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 				r = -EINVAL;
r                  81 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 			r = -EINVAL;
r                  99 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 		r = -EIO;
r                 109 drivers/gpu/drm/amd/amdgpu/atombios_i2c.c 	return r;
r                  79 drivers/gpu/drm/amd/amdgpu/cik.c 	u32 r;
r                  84 drivers/gpu/drm/amd/amdgpu/cik.c 	r = RREG32(mmPCIE_DATA);
r                  86 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                 104 drivers/gpu/drm/amd/amdgpu/cik.c 	u32 r;
r                 108 drivers/gpu/drm/amd/amdgpu/cik.c 	r = RREG32(mmSMC_IND_DATA_0);
r                 110 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                 126 drivers/gpu/drm/amd/amdgpu/cik.c 	u32 r;
r                 130 drivers/gpu/drm/amd/amdgpu/cik.c 	r = RREG32(mmUVD_CTX_DATA);
r                 132 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                 148 drivers/gpu/drm/amd/amdgpu/cik.c 	u32 r;
r                 152 drivers/gpu/drm/amd/amdgpu/cik.c 	r = RREG32(mmDIDT_IND_DATA);
r                 154 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                 898 drivers/gpu/drm/amd/amdgpu/cik.c 	bool r;
r                 923 drivers/gpu/drm/amd/amdgpu/cik.c 	r = amdgpu_read_bios(adev);
r                 933 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                1239 drivers/gpu/drm/amd/amdgpu/cik.c 	int r = -EINVAL;
r                1259 drivers/gpu/drm/amd/amdgpu/cik.c 			r = 0;
r                1269 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                1283 drivers/gpu/drm/amd/amdgpu/cik.c 	int r;
r                1287 drivers/gpu/drm/amd/amdgpu/cik.c 	r = cik_gpu_pci_config_reset(adev);
r                1291 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                1308 drivers/gpu/drm/amd/amdgpu/cik.c 	int r, i;
r                1312 drivers/gpu/drm/amd/amdgpu/cik.c 	r = amdgpu_atombios_get_clock_dividers(adev,
r                1315 drivers/gpu/drm/amd/amdgpu/cik.c 	if (r)
r                1316 drivers/gpu/drm/amd/amdgpu/cik.c 		return r;
r                1337 drivers/gpu/drm/amd/amdgpu/cik.c 	int r = 0;
r                1339 drivers/gpu/drm/amd/amdgpu/cik.c 	r = cik_set_uvd_clock(adev, vclk, ixCG_VCLK_CNTL, ixCG_VCLK_STATUS);
r                1340 drivers/gpu/drm/amd/amdgpu/cik.c 	if (r)
r                1341 drivers/gpu/drm/amd/amdgpu/cik.c 		return r;
r                1343 drivers/gpu/drm/amd/amdgpu/cik.c 	r = cik_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS);
r                1344 drivers/gpu/drm/amd/amdgpu/cik.c 	return r;
r                1349 drivers/gpu/drm/amd/amdgpu/cik.c 	int r, i;
r                1353 drivers/gpu/drm/amd/amdgpu/cik.c 	r = amdgpu_atombios_get_clock_dividers(adev,
r                1356 drivers/gpu/drm/amd/amdgpu/cik.c 	if (r)
r                1357 drivers/gpu/drm/amd/amdgpu/cik.c 		return r;
r                 294 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	int r;
r                 297 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, false);
r                 298 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	if (r)
r                 299 drivers/gpu/drm/amd/amdgpu/cik_ih.c 		return r;
r                 301 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	r = amdgpu_irq_init(adev);
r                 303 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	return r;
r                 319 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	int r;
r                 322 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	r = cik_ih_irq_init(adev);
r                 323 drivers/gpu/drm/amd/amdgpu/cik_ih.c 	if (r)
r                 324 drivers/gpu/drm/amd/amdgpu/cik_ih.c 		return r;
r                 438 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	int i, j, r;
r                 508 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = amdgpu_ring_test_helper(ring);
r                 509 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		if (r)
r                 510 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			return r;
r                 582 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	int r;
r                 584 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = cik_sdma_load_microcode(adev);
r                 585 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 586 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 594 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = cik_sdma_gfx_resume(adev);
r                 595 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 596 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 597 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = cik_sdma_rlc_resume(adev);
r                 598 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 599 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 618 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	int r;
r                 622 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_device_wb_get(adev, &index);
r                 623 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 624 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 630 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_ring_alloc(ring, 5);
r                 631 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 649 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = -ETIMEDOUT;
r                 653 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	return r;
r                 672 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	long r;
r                 674 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_device_wb_get(adev, &index);
r                 675 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 676 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 682 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 683 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 693 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 694 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 697 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 698 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r == 0) {
r                 699 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = -ETIMEDOUT;
r                 701 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	} else if (r < 0) {
r                 706 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = 0;
r                 708 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = -EINVAL;
r                 715 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	return r;
r                 949 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	int r, i;
r                 951 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = cik_sdma_init_microcode(adev);
r                 952 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r) {
r                 954 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 958 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 224,
r                 960 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 961 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 964 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 241,
r                 966 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 967 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 970 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 247,
r                 972 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                 973 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                 979 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                 984 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		if (r)
r                 985 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			return r;
r                 988 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	return r;
r                1005 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	int r;
r                1008 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	r = cik_sdma_start(adev);
r                1009 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	if (r)
r                1010 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		return r;
r                1012 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	return r;
r                 273 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	int r;
r                 276 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, false);
r                 277 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	if (r)
r                 278 drivers/gpu/drm/amd/amdgpu/cz_ih.c 		return r;
r                 280 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	r = amdgpu_irq_init(adev);
r                 282 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	return r;
r                 298 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	int r;
r                 301 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	r = cz_ih_irq_init(adev);
r                 302 drivers/gpu/drm/amd/amdgpu/cz_ih.c 	if (r)
r                 303 drivers/gpu/drm/amd/amdgpu/cz_ih.c 		return r;
r                 178 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	u32 r;
r                 182 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = RREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset);
r                 185 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	return r;
r                1844 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	int r;
r                1864 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = amdgpu_bo_reserve(abo, false);
r                1865 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	if (unlikely(r != 0))
r                1866 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		return r;
r                1869 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM);
r                1870 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (unlikely(r != 0)) {
r                2063 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2064 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (unlikely(r != 0))
r                2065 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 			return r;
r                2097 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	u16 *r, *g, *b;
r                2135 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = crtc->gamma_store;
r                2136 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	g = r + crtc->gamma_size;
r                2140 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		       ((*r++ & 0xffc0) << 14) |
r                2544 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		int r;
r                2548 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2549 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (unlikely(r))
r                2752 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	int r, i;
r                2756 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq);
r                2757 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (r)
r                2758 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 			return r;
r                2762 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq);
r                2763 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (r)
r                2764 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 			return r;
r                2768 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_HOTPLUG_DETECT_A, &adev->hpd_irq);
r                2769 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	if (r)
r                2770 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		return r;
r                2784 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = amdgpu_display_modeset_create_props(adev);
r                2785 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	if (r)
r                2786 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		return r;
r                2793 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		r = dce_v10_0_crtc_init(adev, i);
r                2794 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		if (r)
r                2795 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 			return r;
r                2804 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = dce_v10_0_afmt_init(adev);
r                2805 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	if (r)
r                2806 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		return r;
r                2808 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	r = dce_v10_0_audio_init(adev);
r                2809 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 	if (r)
r                2810 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c 		return r;
r                 196 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	u32 r;
r                 200 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = RREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset);
r                 203 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	return r;
r                1886 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	int r;
r                1906 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = amdgpu_bo_reserve(abo, false);
r                1907 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	if (unlikely(r != 0))
r                1908 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		return r;
r                1911 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM);
r                1912 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (unlikely(r != 0)) {
r                2105 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2106 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (unlikely(r != 0))
r                2107 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 			return r;
r                2139 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	u16 *r, *g, *b;
r                2171 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = crtc->gamma_store;
r                2172 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	g = r + crtc->gamma_size;
r                2176 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		       ((*r++ & 0xffc0) << 14) |
r                2623 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		int r;
r                2627 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2628 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (unlikely(r))
r                2873 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	int r, i;
r                2877 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq);
r                2878 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (r)
r                2879 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 			return r;
r                2883 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq);
r                2884 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (r)
r                2885 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 			return r;
r                2889 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_HOTPLUG_DETECT_A, &adev->hpd_irq);
r                2890 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	if (r)
r                2891 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		return r;
r                2905 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = amdgpu_display_modeset_create_props(adev);
r                2906 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	if (r)
r                2907 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		return r;
r                2915 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		r = dce_v11_0_crtc_init(adev, i);
r                2916 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		if (r)
r                2917 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 			return r;
r                2926 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = dce_v11_0_afmt_init(adev);
r                2927 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	if (r)
r                2928 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		return r;
r                2930 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	r = dce_v11_0_audio_init(adev);
r                2931 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 	if (r)
r                2932 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c 		return r;
r                 129 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	u32 r;
r                 133 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = RREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset);
r                 136 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	return r;
r                1801 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	int r;
r                1821 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = amdgpu_bo_reserve(abo, false);
r                1822 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	if (unlikely(r != 0))
r                1823 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		return r;
r                1826 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM);
r                1827 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (unlikely(r != 0)) {
r                1998 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = amdgpu_bo_reserve(abo, true);
r                1999 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (unlikely(r != 0))
r                2000 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 			return r;
r                2032 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	u16 *r, *g, *b;
r                2062 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = crtc->gamma_store;
r                2063 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	g = r + crtc->gamma_size;
r                2067 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		       ((*r++ & 0xffc0) << 14) |
r                2432 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		int r;
r                2436 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2437 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (unlikely(r))
r                2624 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	int r, i;
r                2629 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq);
r                2630 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (r)
r                2631 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 			return r;
r                2635 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq);
r                2636 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (r)
r                2637 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 			return r;
r                2641 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 42, &adev->hpd_irq);
r                2642 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	if (r)
r                2643 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		return r;
r                2655 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = amdgpu_display_modeset_create_props(adev);
r                2656 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	if (r)
r                2657 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		return r;
r                2664 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		r = dce_v6_0_crtc_init(adev, i);
r                2665 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		if (r)
r                2666 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 			return r;
r                2676 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = dce_v6_0_afmt_init(adev);
r                2677 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	if (r)
r                2678 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		return r;
r                2680 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	r = dce_v6_0_audio_init(adev);
r                2681 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	if (r)
r                2682 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 		return r;
r                2686 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c 	return r;
r                 126 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	u32 r;
r                 130 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = RREG32(mmAZALIA_F0_CODEC_ENDPOINT_DATA + block_offset);
r                 133 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	return r;
r                1773 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	int r;
r                1793 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = amdgpu_bo_reserve(abo, false);
r                1794 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	if (unlikely(r != 0))
r                1795 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		return r;
r                1798 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = amdgpu_bo_pin(abo, AMDGPU_GEM_DOMAIN_VRAM);
r                1799 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (unlikely(r != 0)) {
r                1972 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = amdgpu_bo_reserve(abo, true);
r                1973 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (unlikely(r != 0))
r                1974 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 			return r;
r                2004 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	u16 *r, *g, *b;
r                2034 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = crtc->gamma_store;
r                2035 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	g = r + crtc->gamma_size;
r                2039 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		       ((*r++ & 0xffc0) << 14) |
r                2445 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		int r;
r                2449 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = amdgpu_bo_reserve(abo, true);
r                2450 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (unlikely(r))
r                2649 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	int r, i;
r                2653 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + 1, &adev->crtc_irq);
r                2654 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (r)
r                2655 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 			return r;
r                2659 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i, &adev->pageflip_irq);
r                2660 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (r)
r                2661 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 			return r;
r                2665 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 42, &adev->hpd_irq);
r                2666 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	if (r)
r                2667 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		return r;
r                2681 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = amdgpu_display_modeset_create_props(adev);
r                2682 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	if (r)
r                2683 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		return r;
r                2690 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		r = dce_v8_0_crtc_init(adev, i);
r                2691 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		if (r)
r                2692 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 			return r;
r                2701 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = dce_v8_0_afmt_init(adev);
r                2702 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	if (r)
r                2703 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		return r;
r                2705 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	r = dce_v8_0_audio_init(adev);
r                2706 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 	if (r)
r                2707 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c 		return r;
r                 361 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 	int r, i;
r                 364 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SMU_DISP_TIMER2_TRIGGER, &adev->crtc_irq);
r                 365 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 	if (r)
r                 366 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		return r;
r                 380 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 	r = amdgpu_display_modeset_create_props(adev);
r                 381 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 	if (r)
r                 382 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		return r;
r                 389 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		r = dce_virtual_crtc_init(adev, i);
r                 390 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		if (r)
r                 391 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 			return r;
r                 392 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		r = dce_virtual_connector_encoder_init(adev, i);
r                 393 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 		if (r)
r                 394 drivers/gpu/drm/amd/amdgpu/dce_virtual.c 			return r;
r                 439 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                 441 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                 442 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                 443 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: cp failed to get scratch reg (%d).\n", r);
r                 444 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                 449 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                 450 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                 452 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			  ring->idx, r);
r                 454 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                 481 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = -EINVAL;
r                 485 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                 495 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	long r;
r                 497 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                 498 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                 499 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: failed to get scratch reg (%ld).\n", r);
r                 500 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                 506 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 507 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                 508 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: failed to get ib (%ld).\n", r);
r                 517 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 518 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                 521 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 522 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r == 0) {
r                 524 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = -ETIMEDOUT;
r                 526 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	} else if (r < 0) {
r                 527 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: fence wait failed (%ld).\n", r);
r                 534 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = 0;
r                 538 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = -EINVAL;
r                 546 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                 980 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                 988 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_gfx_rlc_init_csb(adev);
r                 989 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                 990 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                 998 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1000 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, false);
r                1001 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (unlikely(r != 0))
r                1002 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1004 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_pin(adev->gfx.rlc.clear_state_obj,
r                1006 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (!r)
r                1012 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                1017 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1022 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, true);
r                1023 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (likely(r == 0)) {
r                1037 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1043 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_init_microcode(adev);
r                1044 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1047 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                1052 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1067 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_create_reserved(adev, mec_hpd_size, PAGE_SIZE,
r                1072 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                1073 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_warn(adev->dev, "(%d) create HDP EOP bo failed\n", r);
r                1075 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1090 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_create_reserved(adev, mec_hdr->header.ucode_size_bytes,
r                1095 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r) {
r                1096 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			dev_err(adev->dev, "(%d) failed to create mec fw bo\n", r);
r                1098 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1242 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1262 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                1264 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1265 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1272 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1295 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                1297 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1298 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1305 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int i, j, k, r, ring_id = 0;
r                1331 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP,
r                1334 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1335 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1338 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP,
r                1341 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1342 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1345 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_10_1__SRCID__CP_PRIV_REG_FAULT,
r                1347 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1348 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1351 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_10_1__SRCID__CP_PRIV_INSTR_FAULT,
r                1353 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1354 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1360 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_me_init(adev);
r                1361 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1362 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1364 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_rlc_init(adev);
r                1365 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                1367 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1370 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_mec_init(adev);
r                1371 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                1373 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1383 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				r = gfx_v10_0_gfx_ring_init(adev, ring_id,
r                1385 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				if (r)
r                1386 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 					return r;
r                1401 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				r = gfx_v10_0_compute_ring_init(adev, ring_id,
r                1403 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				if (r)
r                1404 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 					return r;
r                1411 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_kiq_init(adev, GFX10_MEC_HPD_SIZE);
r                1412 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                1414 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1418 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_kiq_init_ring(adev, &kiq->ring, &kiq->irq);
r                1419 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1420 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1422 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_mqd_sw_init(adev, sizeof(struct v10_compute_mqd));
r                1423 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1424 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1428 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_rlc_backdoor_autoload_buffer_init(adev);
r                1429 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1430 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1790 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1793 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, false);
r                1794 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1795 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1797 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_kmap(adev->gfx.rlc.clear_state_obj,
r                1799 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (!r) {
r                1806 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1807 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1823 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1825 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_init_csb(adev);
r                1826 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                1827 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                1926 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                1932 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_wait_for_rlc_autoload_complete(adev);
r                1933 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1934 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1936 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_init_pg(adev);
r                1937 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1938 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1954 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			r = gfx_v10_0_rlc_load_microcode(adev);
r                1955 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			if (r)
r                1956 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				return r;
r                1959 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			r = gfx_v10_0_rlc_backdoor_autoload_enable(adev);
r                1960 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			if (r)
r                1961 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				return r;
r                1964 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_init_pg(adev);
r                1965 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                1966 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                1971 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			r = gfx_v10_0_wait_for_rlc_autoload_complete(adev);
r                1972 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			if (r)
r                1973 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				return r;
r                2047 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                2052 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_create_reserved(adev, total_size, PAGE_SIZE,
r                2057 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2058 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to create fw autoload bo\n", r);
r                2059 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2395 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int i, r;
r                2414 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_rlc_backdoor_autoload_config_me_cache(adev);
r                2415 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                2416 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                2418 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_rlc_backdoor_autoload_config_ce_cache(adev);
r                2419 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                2420 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                2422 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_rlc_backdoor_autoload_config_pfp_cache(adev);
r                2423 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                2424 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                2426 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_rlc_backdoor_autoload_config_mec_cache(adev);
r                2427 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                2428 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                2462 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                2478 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_create_reserved(adev, pfp_hdr->header.ucode_size_bytes,
r                2483 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2484 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to create pfp fw bo\n", r);
r                2486 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2532 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                2548 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_create_reserved(adev, ce_hdr->header.ucode_size_bytes,
r                2553 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2554 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to create ce fw bo\n", r);
r                2556 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2601 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                2617 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_create_reserved(adev, me_hdr->header.ucode_size_bytes,
r                2622 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2623 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to create me fw bo\n", r);
r                2625 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2670 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                2677 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_cp_gfx_load_pfp_microcode(adev);
r                2678 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2679 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to load pfp fw\n", r);
r                2680 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2683 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_cp_gfx_load_ce_microcode(adev);
r                2684 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2685 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to load ce fw\n", r);
r                2686 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2689 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_cp_gfx_load_me_microcode(adev);
r                2690 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2691 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		dev_err(adev->dev, "(%d) failed to load me fw\n", r);
r                2692 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2703 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r, i;
r                2714 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_alloc(ring, gfx_v10_0_get_csb_size(adev) + 4);
r                2715 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2716 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                2717 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                2762 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_alloc(ring, 2);
r                2763 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                2764 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                2765 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3197 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r, i;
r                3202 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_alloc(kiq_ring, kiq->pmf->map_queues_size *
r                3204 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                3205 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                3206 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3212 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_ring_test_ring(kiq_ring);
r                3213 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r) {
r                3217 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                3223 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r, i;
r                3229 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                3230 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (unlikely(r != 0))
r                3233 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
r                3234 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (!r) {
r                3235 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			r = gfx_v10_0_gfx_init_queue(ring);
r                3240 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3244 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_kiq_enable_kgq(adev);
r                3245 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3248 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_cp_gfx_start(adev);
r                3249 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3257 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                3570 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                3574 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                3575 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (unlikely(r != 0))
r                3576 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3578 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
r                3579 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (unlikely(r != 0))
r                3580 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3593 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r = 0, i;
r                3600 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                3601 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (unlikely(r != 0))
r                3603 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
r                3604 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (!r) {
r                3605 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			r = gfx_v10_0_kcq_init_queue(ring);
r                3610 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3614 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_gfx_enable_kcq(adev);
r                3616 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                3621 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r, i;
r                3629 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_cp_gfx_load_microcode(adev);
r                3630 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3631 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3633 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_cp_compute_load_microcode(adev);
r                3634 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3635 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3638 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_kiq_resume(adev);
r                3639 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3640 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3642 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_kcq_resume(adev);
r                3643 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3644 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3647 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_cp_gfx_resume(adev);
r                3648 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3649 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3651 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_cp_async_gfx_ring_resume(adev);
r                3652 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3653 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3660 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_ring_test_ring(ring);
r                3661 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r) {
r                3663 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3672 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = amdgpu_ring_test_ring(ring);
r                3673 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3774 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                3777 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_csb_vram_pin(adev);
r                3778 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3779 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3790 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = smu_load_microcode(&adev->smu);
r                3791 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                3792 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3794 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = smu_check_fw_status(&adev->smu);
r                3795 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r) {
r                3797 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			return r;
r                3807 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_rlc_resume(adev);
r                3808 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3809 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3817 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = gfx_v10_0_cp_resume(adev);
r                3818 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                3819 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                3821 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                3849 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                3855 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = gfx_v10_0_kiq_disable_kgq(adev);
r                3856 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		if (r)
r                4039 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int r;
r                4041 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0);
r                4042 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                4043 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                4045 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_inst_irq, 0);
r                4046 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (r)
r                4047 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		return r;
r                4682 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	int i, r = 0;
r                4711 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		r = -EINVAL;
r                4717 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	return r;
r                1796 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r;
r                1798 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                1799 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                1800 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                1804 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                1805 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                1821 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = -ETIMEDOUT;
r                1825 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	return r;
r                1910 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	long r;
r                1912 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                1913 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                1914 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                1918 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                1919 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                1927 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                1928 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                1931 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                1932 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r == 0) {
r                1933 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = -ETIMEDOUT;
r                1935 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	} else if (r < 0) {
r                1940 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = 0;
r                1942 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = -EINVAL;
r                1949 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	return r;
r                2030 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r, i;
r                2032 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ring_alloc(ring, 7 + 4);
r                2033 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r) {
r                2034 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                2035 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2053 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ring_alloc(ring, gfx_v6_0_get_csb_size(adev) + 10);
r                2054 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r) {
r                2055 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                2056 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2095 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r;
r                2137 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_ring_test_helper(ring);
r                2138 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                2139 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2192 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int i, r;
r                2239 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = amdgpu_ring_test_helper(&adev->gfx.compute_ring[i]);
r                2240 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		if (r)
r                2241 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			return r;
r                2287 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r;
r                2291 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = gfx_v6_0_cp_load_microcode(adev);
r                2292 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                2293 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2295 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = gfx_v6_0_cp_gfx_resume(adev);
r                2296 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                2297 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2298 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = gfx_v6_0_cp_compute_resume(adev);
r                2299 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                2300 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                2382 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r;
r                2395 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = amdgpu_gfx_rlc_init_sr(adev, dws);
r                2396 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		if (r)
r                2397 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			return r;
r                2405 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = amdgpu_bo_create_reserved(adev, dws * 4, PAGE_SIZE,
r                2410 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		if (r) {
r                2411 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			dev_warn(adev->dev, "(%d) create RLC c bo failed\n", r);
r                2413 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			return r;
r                3085 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int i, r;
r                3087 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 181, &adev->gfx.eop_irq);
r                3088 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                3089 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3091 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 184, &adev->gfx.priv_reg_irq);
r                3092 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                3093 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3095 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 185, &adev->gfx.priv_inst_irq);
r                3096 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                3097 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3101 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = gfx_v6_0_init_microcode(adev);
r                3102 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r) {
r                3104 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3107 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = adev->gfx.rlc.funcs->init(adev);
r                3108 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r) {
r                3110 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3117 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                3119 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		if (r)
r                3120 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			return r;
r                3139 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                3141 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		if (r)
r                3142 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 			return r;
r                3145 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	return r;
r                3165 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	int r;
r                3170 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = adev->gfx.rlc.funcs->resume(adev);
r                3171 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                3172 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3174 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	r = gfx_v6_0_cp_resume(adev);
r                3175 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (r)
r                3176 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		return r;
r                3180 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	return r;
r                2093 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                2095 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                2096 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2097 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                2100 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                2101 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2116 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = -ETIMEDOUT;
r                2120 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	return r;
r                2359 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	long r;
r                2361 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                2362 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2363 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                2367 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                2368 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2376 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                2377 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2380 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                2381 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r == 0) {
r                2382 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = -ETIMEDOUT;
r                2384 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	} else if (r < 0) {
r                2389 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = 0;
r                2391 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = -EINVAL;
r                2398 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	return r;
r                2528 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r, i;
r                2537 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ring_alloc(ring, gfx_v7_0_get_csb_size(adev) + 8);
r                2538 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                2539 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                2540 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                2605 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                2651 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ring_test_helper(ring);
r                2652 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                2653 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                2802 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                2815 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_bo_create_reserved(adev, mec_hpd_size, PAGE_SIZE,
r                2820 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                2821 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		dev_warn(adev->dev, "(%d) create, pin or map of HDP EOP bo failed\n", r);
r                2823 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3075 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                3080 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_bo_create_reserved(adev, sizeof(struct cik_mqd), PAGE_SIZE,
r                3083 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                3084 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		dev_warn(adev->dev, "(%d) create MQD bo failed\n", r);
r                3085 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3114 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r, i, j;
r                3130 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = gfx_v7_0_compute_queue_init(adev, i);
r                3131 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		if (r) {
r                3133 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			return r;
r                3155 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                3157 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_gfx_load_microcode(adev);
r                3158 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                3159 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3160 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_compute_load_microcode(adev);
r                3161 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                3162 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3183 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                3187 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_load_microcode(adev);
r                3188 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                3189 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3191 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_gfx_resume(adev);
r                3192 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                3193 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3194 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_compute_resume(adev);
r                3195 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                3196 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                3305 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                3331 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = amdgpu_gfx_rlc_init_sr(adev, dws);
r                3332 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		if (r)
r                3333 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			return r;
r                3338 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = amdgpu_gfx_rlc_init_csb(adev);
r                3339 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		if (r)
r                3340 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			return r;
r                3344 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = amdgpu_gfx_rlc_init_cpt(adev);
r                3345 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		if (r)
r                3346 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			return r;
r                4245 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                4247 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0);
r                4248 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4249 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4251 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_inst_irq, 0);
r                4252 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4253 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4401 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                4420 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                4422 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4423 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4433 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int i, j, k, r, ring_id;
r                4451 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 181, &adev->gfx.eop_irq);
r                4452 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4453 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4456 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 184,
r                4458 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4459 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4462 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 185,
r                4464 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4465 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4469 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_init_microcode(adev);
r                4470 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                4472 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4475 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = adev->gfx.rlc.funcs->init(adev);
r                4476 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                4478 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4482 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_mec_init(adev);
r                4483 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r) {
r                4485 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4492 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                4494 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		if (r)
r                4495 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 			return r;
r                4506 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 				r = gfx_v7_0_compute_ring_init(adev,
r                4509 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 				if (r)
r                4510 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 					return r;
r                4521 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	return r;
r                4552 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	int r;
r                4558 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = adev->gfx.rlc.funcs->resume(adev);
r                4559 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4560 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4562 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	r = gfx_v7_0_cp_resume(adev);
r                4563 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (r)
r                4564 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		return r;
r                4566 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	return r;
r                 842 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                 844 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                 845 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                 846 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                 849 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                 850 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                 866 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = -ETIMEDOUT;
r                 870 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                 882 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	long r;
r                 884 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 885 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                 886 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                 891 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ib_get(adev, NULL, 16, &ib);
r                 892 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                 902 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 903 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                 906 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 907 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r == 0) {
r                 908 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = -ETIMEDOUT;
r                 910 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	} else if (r < 0) {
r                 916 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = 0;
r                 918 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = -EINVAL;
r                 925 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                1300 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                1308 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = amdgpu_gfx_rlc_init_csb(adev);
r                1309 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (r)
r                1310 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			return r;
r                1316 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = amdgpu_gfx_rlc_init_cpt(adev);
r                1317 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (r)
r                1318 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			return r;
r                1326 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                1328 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, false);
r                1329 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (unlikely(r != 0))
r                1330 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1332 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_pin(adev->gfx.rlc.clear_state_obj,
r                1334 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (!r)
r                1340 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                1345 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                1350 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, true);
r                1351 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (likely(r == 0)) {
r                1364 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                1375 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_create_reserved(adev, mec_hpd_size, PAGE_SIZE,
r                1380 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                1381 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		dev_warn(adev->dev, "(%d) create HDP EOP bo failed\n", r);
r                1382 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1552 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r, i;
r                1582 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ib_get(adev, NULL, total_size, &ib);
r                1583 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                1584 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu: failed to get ib (%d).\n", r);
r                1585 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1677 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                1678 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                1679 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu: ib submit failed (%d).\n", r);
r                1684 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = dma_fence_wait(f, false);
r                1685 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                1686 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
r                1707 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                1917 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                1940 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                1942 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                1943 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1953 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int i, j, k, r, ring_id;
r                1979 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_CP_END_OF_PIPE, &adev->gfx.eop_irq);
r                1980 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                1981 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1984 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_CP_PRIV_REG_FAULT,
r                1986 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                1987 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1990 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_CP_PRIV_INSTR_FAULT,
r                1992 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                1993 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                1996 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_CP_ECC_ERROR,
r                1998 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                1999 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2002 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SQ_INTERRUPT_MSG,
r                2004 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                2005 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu_irq_add() for SQ failed: %d\n", r);
r                2006 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2015 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_init_microcode(adev);
r                2016 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                2018 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2021 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = adev->gfx.rlc.funcs->init(adev);
r                2022 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                2024 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2027 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_mec_init(adev);
r                2028 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                2030 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2044 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = amdgpu_ring_init(adev, ring, 1024, &adev->gfx.eop_irq,
r                2046 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (r)
r                2047 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			return r;
r                2059 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 				r = gfx_v8_0_compute_ring_init(adev,
r                2062 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 				if (r)
r                2063 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 					return r;
r                2070 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_gfx_kiq_init(adev, GFX8_MEC_HPD_SIZE);
r                2071 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                2073 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2077 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_gfx_kiq_init_ring(adev, &kiq->ring, &kiq->irq);
r                2078 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                2079 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2082 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_gfx_mqd_sw_init(adev, sizeof(struct vi_mqd_allocation));
r                2083 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                2084 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                2088 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_gpu_early_init(adev);
r                2089 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                2090 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4199 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r, i;
r                4208 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_alloc(ring, gfx_v8_0_get_csb_size(adev) + 4);
r                4209 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                4210 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                4211 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4379 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r, i;
r                4396 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_alloc(kiq_ring, (8 * adev->gfx.num_compute_rings) + 8);
r                4397 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                4398 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                4399 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4438 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int i, r = 0;
r                4448 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			r = -ETIMEDOUT;
r                4454 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                4720 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                4724 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                4725 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (unlikely(r != 0))
r                4726 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4728 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr);
r                4729 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (unlikely(r != 0))
r                4730 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4743 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r = 0, i;
r                4750 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                4751 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (unlikely(r != 0))
r                4753 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		r = amdgpu_bo_kmap(ring->mqd_obj, &ring->mqd_ptr);
r                4754 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (!r) {
r                4755 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			r = gfx_v8_0_kcq_init_queue(ring);
r                4760 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		if (r)
r                4766 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_kiq_kcq_enable(adev);
r                4767 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4771 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                4776 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r, i;
r                4781 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_test_helper(ring);
r                4782 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4783 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4786 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_test_helper(ring);
r                4787 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4788 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4800 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                4805 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_kiq_resume(adev);
r                4806 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4807 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4809 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_cp_gfx_resume(adev);
r                4810 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4811 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4813 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_kcq_resume(adev);
r                4814 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4815 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4817 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_cp_test_all_rings(adev);
r                4818 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4819 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4834 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                4840 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_csb_vram_pin(adev);
r                4841 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4842 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4844 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = adev->gfx.rlc.funcs->resume(adev);
r                4845 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4846 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                4848 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_cp_resume(adev);
r                4850 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                4855 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r, i;
r                4858 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_alloc(kiq_ring, 6 * adev->gfx.num_compute_rings);
r                4859 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4860 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                4876 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_ring_test_helper(kiq_ring);
r                4877 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                4880 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	return r;
r                5326 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	int r;
r                5328 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0);
r                5329 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                5330 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                5332 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_inst_irq, 0);
r                5333 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                5334 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                5337 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = gfx_v8_0_do_edc_gpr_workarounds(adev);
r                5338 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r)
r                5339 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                5341 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.cp_ecc_error_irq, 0);
r                5342 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                5343 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		DRM_ERROR("amdgpu_irq_get() failed to get IRQ for EDC, r: %d.\n", r);
r                5344 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                5347 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.sq_irq, 0);
r                5348 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (r) {
r                5351 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 			r);
r                5352 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		return r;
r                 845 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                 847 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_gfx_scratch_get(adev, &scratch);
r                 848 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                 849 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                 852 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                 853 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                 869 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = -ETIMEDOUT;
r                 873 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                 885 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	long r;
r                 887 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 888 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                 889 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                 894 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ib_get(adev, NULL, 16, &ib);
r                 895 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                 905 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 906 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                 909 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 910 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r == 0) {
r                 911 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = -ETIMEDOUT;
r                 913 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	} else if (r < 0) {
r                 919 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = 0;
r                 921 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = -EINVAL;
r                 928 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                1369 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1403 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = gfx_v9_0_init_cp_gfx_microcode(adev, chip_name);
r                1404 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                1405 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                1408 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_init_rlc_microcode(adev, chip_name);
r                1409 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                1410 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1412 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_init_cp_compute_microcode(adev, chip_name);
r                1413 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                1414 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1416 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                1643 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1651 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_gfx_rlc_init_csb(adev);
r                1652 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                1653 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                1659 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_gfx_rlc_init_cpt(adev);
r                1660 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                1661 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                1680 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1682 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, false);
r                1683 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (unlikely(r != 0))
r                1684 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1686 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_pin(adev->gfx.rlc.clear_state_obj,
r                1688 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (!r)
r                1694 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                1699 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1704 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_reserve(adev->gfx.rlc.clear_state_obj, true);
r                1705 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (likely(r == 0)) {
r                1719 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1734 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_create_reserved(adev, mec_hpd_size, PAGE_SIZE,
r                1739 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                1740 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		dev_warn(adev->dev, "(%d) create HDP EOP bo failed\n", r);
r                1742 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1757 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_create_reserved(adev, mec_hdr->header.ucode_size_bytes,
r                1762 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                1763 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		dev_warn(adev->dev, "(%d) create mec firmware bo failed\n", r);
r                1765 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1977 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                1986 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_create_kernel(adev, ngg_buf->size,
r                1991 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                1992 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		dev_err(adev->dev, "(%d) failed to create NGG buffer\n", r);
r                1993 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                1997 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                2019 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                2031 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ngg_create_buf(adev, &adev->gfx.ngg.buf[NGG_PRIM],
r                2034 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2040 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ngg_create_buf(adev, &adev->gfx.ngg.buf[NGG_POS],
r                2043 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2049 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ngg_create_buf(adev, &adev->gfx.ngg.buf[NGG_CNTL],
r                2052 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2061 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ngg_create_buf(adev, &adev->gfx.ngg.buf[NGG_PARAM],
r                2064 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2074 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                2080 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                2125 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(ring, 17);
r                2126 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2128 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			  ring->name, r);
r                2129 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2159 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                2182 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_init(adev, ring, 1024,
r                2184 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2185 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2193 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int i, j, k, r, ring_id;
r                2216 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_9_0__SRCID__CP_EOP_INTERRUPT, &adev->gfx.eop_irq);
r                2217 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2218 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2221 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_9_0__SRCID__CP_PRIV_REG_FAULT,
r                2223 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2224 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2227 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_9_0__SRCID__CP_PRIV_INSTR_FAULT,
r                2229 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2230 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2233 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_9_0__SRCID__CP_ECC_ERROR,
r                2235 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2236 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2239 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_GRBM_CP, GFX_9_0__SRCID__CP_FUE_ERROR,
r                2241 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2242 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2248 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_init_microcode(adev);
r                2249 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2251 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2254 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = adev->gfx.rlc.funcs->init(adev);
r                2255 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2257 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2260 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_mec_init(adev);
r                2261 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2263 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2276 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                2278 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                2279 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                2290 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 				r = gfx_v9_0_compute_ring_init(adev,
r                2293 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 				if (r)
r                2294 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 					return r;
r                2301 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_gfx_kiq_init(adev, GFX9_MEC_HPD_SIZE);
r                2302 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                2304 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2308 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_gfx_kiq_init_ring(adev, &kiq->ring, &kiq->irq);
r                2309 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2310 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2313 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_gfx_mqd_sw_init(adev, sizeof(struct v9_mqd_allocation));
r                2314 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2315 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2319 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_gpu_early_init(adev);
r                2320 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2321 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                2323 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ngg_init(adev);
r                2324 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                2325 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3021 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                3037 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = gfx_v9_0_rlc_load_microcode(adev);
r                3038 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3039 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                3142 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r, i, tmp;
r                3150 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(ring, gfx_v9_0_get_csb_size(adev) + 4 + 3);
r                3151 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                3152 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("amdgpu: cp failed to lock ring (%d).\n", r);
r                3153 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3346 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r, i;
r                3363 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(kiq_ring, (7 * adev->gfx.num_compute_rings) + 8);
r                3364 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                3365 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                3366 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3403 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_test_helper(kiq_ring);
r                3404 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3407 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                3773 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                3777 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                3778 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (unlikely(r != 0))
r                3779 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3781 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
r                3782 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (unlikely(r != 0))
r                3783 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3796 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r = 0, i;
r                3803 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_bo_reserve(ring->mqd_obj, false);
r                3804 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (unlikely(r != 0))
r                3806 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_bo_kmap(ring->mqd_obj, (void **)&ring->mqd_ptr);
r                3807 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (!r) {
r                3808 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			r = gfx_v9_0_kcq_init_queue(ring);
r                3813 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3817 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_kiq_kcq_enable(adev);
r                3819 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                3824 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r, i;
r                3833 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			r = gfx_v9_0_cp_gfx_load_microcode(adev);
r                3834 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			if (r)
r                3835 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 				return r;
r                3838 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = gfx_v9_0_cp_compute_load_microcode(adev);
r                3839 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3840 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                3843 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_kiq_resume(adev);
r                3844 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3845 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3848 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = gfx_v9_0_cp_gfx_resume(adev);
r                3849 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3850 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                3853 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_kcq_resume(adev);
r                3854 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3855 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3859 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_ring_test_helper(ring);
r                3860 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3861 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                3883 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                3891 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_csb_vram_pin(adev);
r                3892 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3893 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3895 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = adev->gfx.rlc.funcs->resume(adev);
r                3896 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3897 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3899 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_cp_resume(adev);
r                3900 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3901 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                3904 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = gfx_v9_0_ngg_en(adev);
r                3905 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r)
r                3906 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			return r;
r                3909 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                3914 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r, i;
r                3917 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(kiq_ring, 6 * adev->gfx.num_compute_rings);
r                3918 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3919 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("Failed to lock KIQ (%d).\n", r);
r                3935 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_test_helper(kiq_ring);
r                3936 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                3939 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                4223 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int i, r;
r                4225 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ring_alloc(ring, 7);
r                4226 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                4228 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			ring->name, r);
r                4229 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4256 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = -ETIMEDOUT;
r                4260 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                4268 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r, i, j, k;
r                4292 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ib_get(adev, NULL, total_size, &ib);
r                4293 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                4294 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("amdgpu: failed to get ib (%d).\n", r);
r                4295 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4365 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                4366 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                4367 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("amdgpu: ib submit failed (%d).\n", r);
r                4372 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = dma_fence_wait(f, false);
r                4373 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                4374 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		DRM_ERROR("amdgpu: fence wait failed (%d).\n", r);
r                4395 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                4436 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                4443 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_do_edc_gds_workarounds(adev);
r                4444 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4445 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4448 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_do_edc_gpr_workarounds(adev);
r                4449 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4450 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4458 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                4459 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r) {
r                4460 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			if (r == -EAGAIN) {
r                4479 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                4480 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r) {
r                4481 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		if (r == -EAGAIN) {
r                4484 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			r = 0;
r                4492 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ras_interrupt_add_handler(adev, &ih_info);
r                4493 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4498 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_ras_sysfs_create(adev, &fs_info);
r                4499 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4502 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.cp_ecc_error_irq, 0);
r                4503 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4517 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	return r;
r                4523 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	int r;
r                4525 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_reg_irq, 0);
r                4526 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4527 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4529 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = amdgpu_irq_get(adev, &adev->gfx.priv_inst_irq, 0);
r                4530 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4531 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                4533 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	r = gfx_v9_0_ecc_late_init(handle);
r                4534 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (r)
r                4535 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		return r;
r                 313 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 341 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_job_alloc_with_ib(adev, 16 * 4, &job);
r                 342 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 349 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_job_submit(job, &adev->mman.entity,
r                 351 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 366 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	DRM_ERROR("Error flushing GPU TLB using the SDMA (%d)!\n", r);
r                 645 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 653 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_gart_init(adev);
r                 654 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 655 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 696 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 722 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC,
r                 725 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UTCL2,
r                 728 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 729 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 746 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
r                 747 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r) {
r                 749 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 752 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = gmc_v10_0_mc_init(adev);
r                 753 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 754 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 759 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_bo_init(adev);
r                 760 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 761 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 763 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = gmc_v10_0_gart_init(adev);
r                 764 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 765 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 825 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 834 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = amdgpu_gart_table_vram_pin(adev);
r                 835 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 836 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 838 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = gfxhub_v2_0_gart_enable(adev);
r                 839 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 840 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 842 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = mmhub_v2_0_gart_enable(adev);
r                 843 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 844 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 875 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 881 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = gmc_v10_0_gart_enable(adev);
r                 882 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 883 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 929 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 932 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = gmc_v10_0_hw_init(adev);
r                 933 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 934 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 961 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	int r;
r                 964 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	r = mmhub_v2_0_set_clockgating(adev, state);
r                 965 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 	if (r)
r                 966 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c 		return r;
r                 287 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r;
r                 334 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		r = amdgpu_device_resize_fb_bar(adev);
r                 335 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		if (r)
r                 336 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 			return r;
r                 489 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r, i;
r                 496 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = amdgpu_gart_table_vram_pin(adev);
r                 497 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 498 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 584 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r;
r                 590 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = amdgpu_gart_init(adev);
r                 591 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 592 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 841 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r;
r                 854 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 146, &adev->gmc.vm_fault);
r                 855 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 856 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 858 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 147, &adev->gmc.vm_fault);
r                 859 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 860 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 866 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
r                 867 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r) {
r                 869 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 873 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = gmc_v6_0_init_microcode(adev);
r                 874 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r) {
r                 876 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 879 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = gmc_v6_0_mc_init(adev);
r                 880 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 881 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 885 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = amdgpu_bo_init(adev);
r                 886 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 887 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 889 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = gmc_v6_0_gart_init(adev);
r                 890 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 891 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 932 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r;
r                 938 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		r = gmc_v6_0_mc_load_microcode(adev);
r                 939 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		if (r) {
r                 941 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 			return r;
r                 945 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = gmc_v6_0_gart_enable(adev);
r                 946 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 947 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 949 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	return r;
r                 973 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	int r;
r                 976 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	r = gmc_v6_0_hw_init(adev);
r                 977 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 	if (r)
r                 978 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c 		return r;
r                 324 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r;
r                 376 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		r = amdgpu_device_resize_fb_bar(adev);
r                 377 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		if (r)
r                 378 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 			return r;
r                 585 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r, i;
r                 592 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = amdgpu_gart_table_vram_pin(adev);
r                 593 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                 594 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                 690 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r;
r                 697 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = amdgpu_gart_init(adev);
r                 698 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                 699 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                 961 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r;
r                 974 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_PAGE_INV_FAULT, &adev->gmc.vm_fault);
r                 975 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                 976 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                 978 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_MEM_PROT_FAULT, &adev->gmc.vm_fault);
r                 979 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                 980 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                 994 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40));
r                 995 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r) {
r                 997 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1001 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = gmc_v7_0_init_microcode(adev);
r                1002 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r) {
r                1004 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1007 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = gmc_v7_0_mc_init(adev);
r                1008 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                1009 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1014 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = amdgpu_bo_init(adev);
r                1015 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                1016 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1018 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = gmc_v7_0_gart_init(adev);
r                1019 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                1020 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1068 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r;
r                1076 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		r = gmc_v7_0_mc_load_microcode(adev);
r                1077 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		if (r) {
r                1079 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 			return r;
r                1083 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = gmc_v7_0_gart_enable(adev);
r                1084 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                1085 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                1087 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	return r;
r                1111 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	int r;
r                1114 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	r = gmc_v7_0_hw_init(adev);
r                1115 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 	if (r)
r                1116 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c 		return r;
r                 526 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r;
r                 578 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		r = amdgpu_device_resize_fb_bar(adev);
r                 579 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		if (r)
r                 580 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 			return r;
r                 812 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r, i;
r                 819 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = amdgpu_gart_table_vram_pin(adev);
r                 820 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                 821 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                 934 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r;
r                 941 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = amdgpu_gart_init(adev);
r                 942 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                 943 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1081 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r;
r                1100 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_PAGE_INV_FAULT, &adev->gmc.vm_fault);
r                1101 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1102 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1104 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_GFX_MEM_PROT_FAULT, &adev->gmc.vm_fault);
r                1105 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1106 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1120 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(40));
r                1121 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r) {
r                1123 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1127 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = gmc_v8_0_init_microcode(adev);
r                1128 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r) {
r                1130 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1133 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = gmc_v8_0_mc_init(adev);
r                1134 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1135 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1140 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = amdgpu_bo_init(adev);
r                1141 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1142 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1144 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = gmc_v8_0_gart_init(adev);
r                1145 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1146 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1194 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r;
r                1202 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		r = gmc_v8_0_tonga_mc_load_microcode(adev);
r                1203 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		if (r) {
r                1205 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 			return r;
r                1210 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		r = gmc_v8_0_polaris_mc_load_microcode(adev);
r                1211 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		if (r) {
r                1213 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 			return r;
r                1217 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = gmc_v8_0_gart_enable(adev);
r                1218 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1219 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                1221 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	return r;
r                1245 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	int r;
r                1248 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	r = gmc_v8_0_hw_init(adev);
r                1249 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 	if (r)
r                1250 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c 		return r;
r                 846 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                 866 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                 867 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r) {
r                 868 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			if (r == -EAGAIN) {
r                 887 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                 888 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r) {
r                 889 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r == -EAGAIN) {
r                 892 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			r = 0;
r                 901 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = amdgpu_ras_interrupt_add_handler(adev, &ih_info);
r                 902 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r)
r                 908 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_ras_sysfs_create(adev, fs_info);
r                 909 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                 913 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = amdgpu_irq_get(adev, &adev->gmc.ecc_irq, 0);
r                 914 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r)
r                 930 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	return r;
r                 935 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                 958 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_ecc_ras_block_late_init(handle,
r                 960 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                 961 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                 963 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_ecc_ras_block_late_init(handle,
r                 965 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	return r;
r                 971 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	bool r;
r                 976 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_allocate_vm_inv_eng(adev);
r                 977 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                 978 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                 984 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			r = amdgpu_atomfirmware_mem_ecc_supported(adev);
r                 985 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			if (!r) {
r                 993 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			r = amdgpu_atomfirmware_sram_ecc_supported(adev);
r                 994 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			if (!r) {
r                1005 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_ecc_late_init(handle);
r                1006 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1007 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1047 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1076 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = amdgpu_device_resize_fb_bar(adev);
r                1077 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r)
r                1078 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			return r;
r                1120 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1127 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_gart_init(adev);
r                1128 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1129 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1184 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1238 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC, VMC_1_0__SRCID__VM_FAULT,
r                1240 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1241 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1244 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VMC1, VMC_1_0__SRCID__VM_FAULT,
r                1246 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r)
r                1247 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			return r;
r                1250 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_UTCL2, UTCL2_1_0__SRCID__FAULT,
r                1253 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1254 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1257 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DF, 0,
r                1259 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1260 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1268 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = dma_set_mask_and_coherent(adev->dev, DMA_BIT_MASK(44));
r                1269 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r) {
r                1271 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1276 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = gfxhub_v1_1_get_xgmi_info(adev);
r                1277 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		if (r)
r                1278 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 			return r;
r                1281 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_mc_init(adev);
r                1282 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1283 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1288 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_bo_init(adev);
r                1289 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1290 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1292 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_gart_init(adev);
r                1293 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1294 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1405 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r, i;
r                1417 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = amdgpu_gart_table_vram_pin(adev);
r                1418 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1419 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1430 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gfxhub_v1_0_gart_enable(adev);
r                1431 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1432 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1435 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = mmhub_v9_4_gart_enable(adev);
r                1437 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		r = mmhub_v1_0_gart_enable(adev);
r                1438 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1439 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1475 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1489 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_gart_enable(adev);
r                1491 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	return r;
r                1544 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1547 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_hw_fini(adev);
r                1548 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1549 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                1558 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	int r;
r                1562 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	r = gmc_v9_0_hw_init(adev);
r                1563 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 	if (r)
r                1564 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 		return r;
r                 273 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	int r;
r                 276 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, false);
r                 277 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	if (r)
r                 278 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 		return r;
r                 280 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	r = amdgpu_irq_init(adev);
r                 282 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	return r;
r                 298 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	int r;
r                 301 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	r = iceland_ih_irq_init(adev);
r                 302 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 	if (r)
r                 303 drivers/gpu/drm/amd/amdgpu/iceland_ih.c 		return r;
r                 114 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	int r;
r                 126 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	r = amdgpu_bo_create_reserved(adev, fw_size,
r                 131 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	if (r) {
r                 132 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		dev_err(adev->dev, "(%d) failed to create mes fw bo\n", r);
r                 133 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		return r;
r                 146 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	int r;
r                 158 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	r = amdgpu_bo_create_reserved(adev, fw_size,
r                 163 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	if (r) {
r                 164 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		dev_err(adev->dev, "(%d) failed to create mes data fw bo\n", r);
r                 165 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		return r;
r                 223 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	int r;
r                 229 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	r = mes_v10_1_allocate_ucode_buffer(adev);
r                 230 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	if (r)
r                 231 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		return r;
r                 233 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	r = mes_v10_1_allocate_ucode_data_buffer(adev);
r                 234 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	if (r) {
r                 236 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		return r;
r                 288 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	int r;
r                 291 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	r = mes_v10_1_init_microcode(adev);
r                 292 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	if (r)
r                 293 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		return r;
r                 309 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 	int r;
r                 313 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		r = mes_v10_1_load_microcode(adev);
r                 314 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 		if (r) {
r                 315 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 			DRM_ERROR("failed to MES fw, r=%d\n", r);
r                 316 drivers/gpu/drm/amd/amdgpu/mes_v10_1.c 			return r;
r                 101 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r, timeout = AI_MAILBOX_POLL_MSG_TIMEDOUT;
r                 104 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		r = xgpu_ai_mailbox_rcv_msg(adev, event);
r                 105 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		if (!r)
r                 112 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	pr_err("Doesn't get msg:%d from pf, error=%d\n", event, r);
r                 120 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r;
r                 154 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = xgpu_ai_poll_ack(adev);
r                 155 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	if (r)
r                 163 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         int r = 0;
r                 184 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         r = xgpu_ai_poll_msg(adev, IDH_SUCCESS);
r                 185 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         if (!r && adev->fw_vram_usage.va != NULL) {
r                 197 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c                 r = size;
r                 201 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         r = xgpu_ai_poll_msg(adev, IDH_FAIL);
r                 202 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         if(r)
r                 208 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         return r;
r                 213 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         int r = 0;
r                 222 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         r = xgpu_ai_poll_msg(adev, IDH_SUCCESS);
r                 223 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         if (!r)
r                 226 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         r = xgpu_ai_poll_msg(adev, IDH_FAIL);
r                 227 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         if (!r)
r                 234 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c         return r;
r                 240 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r;
r                 248 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		r = xgpu_ai_poll_msg(adev, IDH_READY_TO_ACCESS_GPU);
r                 249 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		if (r) {
r                 251 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 			return r;
r                 282 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r = 0;
r                 285 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = xgpu_ai_send_access_requests(adev, req);
r                 287 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	return r;
r                 413 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r;
r                 415 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_BIF, 135, &adev->virt.rcv_irq);
r                 416 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	if (r)
r                 417 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		return r;
r                 419 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_BIF, 138, &adev->virt.ack_irq);
r                 420 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	if (r) {
r                 422 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		return r;
r                 430 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	int r;
r                 432 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = amdgpu_irq_get(adev, &adev->virt.rcv_irq, 0);
r                 433 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	if (r)
r                 434 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		return r;
r                 435 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	r = amdgpu_irq_get(adev, &adev->virt.ack_irq, 0);
r                 436 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 	if (r) {
r                 438 drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c 		return r;
r                 389 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r = 0, timeout = VI_MAILBOX_TIMEDOUT;
r                 397 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 			r = -ETIME;
r                 406 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	return r;
r                 411 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r = 0, timeout = VI_MAILBOX_TIMEDOUT;
r                 413 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = xgpu_vi_mailbox_rcv_msg(adev, event);
r                 414 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	while (r) {
r                 417 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 			r = -ETIME;
r                 423 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		r = xgpu_vi_mailbox_rcv_msg(adev, event);
r                 426 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	return r;
r                 432 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r;
r                 437 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = xgpu_vi_poll_ack(adev);
r                 438 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	if (r)
r                 439 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		return r;
r                 447 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		r = xgpu_vi_poll_msg(adev, IDH_READY_TO_ACCESS_GPU);
r                 448 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		if (r) {
r                 450 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 			return r;
r                 480 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r = 0;
r                 483 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = xgpu_vi_send_access_requests(adev, req);
r                 485 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	return r;
r                 545 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r;
r                 550 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		r = xgpu_vi_mailbox_rcv_msg(adev, IDH_FLR_NOTIFICATION);
r                 553 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		if (!r)
r                 580 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r;
r                 582 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 135, &adev->virt.rcv_irq);
r                 583 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	if (r)
r                 584 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		return r;
r                 586 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 138, &adev->virt.ack_irq);
r                 587 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	if (r) {
r                 589 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		return r;
r                 597 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	int r;
r                 599 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = amdgpu_irq_get(adev, &adev->virt.rcv_irq, 0);
r                 600 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	if (r)
r                 601 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		return r;
r                 602 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	r = amdgpu_irq_get(adev, &adev->virt.ack_irq, 0);
r                 603 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 	if (r) {
r                 605 drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c 		return r;
r                 315 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	int r;
r                 324 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 256 * 1024, use_bus_addr);
r                 325 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	if (r)
r                 326 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 		return r;
r                 331 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	r = amdgpu_irq_init(adev);
r                 333 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	return r;
r                 348 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	int r;
r                 351 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	r = navi10_ih_irq_init(adev);
r                 352 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 	if (r)
r                 353 drivers/gpu/drm/amd/amdgpu/navi10_ih.c 		return r;
r                  65 drivers/gpu/drm/amd/amdgpu/nv.c 	u32 r;
r                  72 drivers/gpu/drm/amd/amdgpu/nv.c 	r = RREG32(data);
r                  74 drivers/gpu/drm/amd/amdgpu/nv.c 	return r;
r                  95 drivers/gpu/drm/amd/amdgpu/nv.c 	u32 r;
r                 102 drivers/gpu/drm/amd/amdgpu/nv.c 	r = RREG32(data);
r                 104 drivers/gpu/drm/amd/amdgpu/nv.c 	return r;
r                 386 drivers/gpu/drm/amd/amdgpu/nv.c 	int r;
r                 389 drivers/gpu/drm/amd/amdgpu/nv.c 		r = amdgpu_discovery_reg_base_init(adev);
r                 390 drivers/gpu/drm/amd/amdgpu/nv.c 		if (r) {
r                 419 drivers/gpu/drm/amd/amdgpu/nv.c 	int r;
r                 422 drivers/gpu/drm/amd/amdgpu/nv.c 	r = nv_reg_base_init(adev);
r                 423 drivers/gpu/drm/amd/amdgpu/nv.c 	if (r)
r                 424 drivers/gpu/drm/amd/amdgpu/nv.c 		return r;
r                 416 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	int i, j, r;
r                 486 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = amdgpu_ring_test_helper(ring);
r                 487 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		if (r)
r                 488 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			return r;
r                 522 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	int r;
r                 528 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = sdma_v2_4_gfx_resume(adev);
r                 529 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 530 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 531 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = sdma_v2_4_rlc_resume(adev);
r                 532 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 533 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 552 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	int r;
r                 556 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_device_wb_get(adev, &index);
r                 557 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 558 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 564 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_ring_alloc(ring, 5);
r                 565 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 584 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = -ETIMEDOUT;
r                 588 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	return r;
r                 607 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	long r;
r                 609 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_device_wb_get(adev, &index);
r                 610 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 611 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 617 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 618 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 632 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 633 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 636 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 637 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r == 0) {
r                 638 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = -ETIMEDOUT;
r                 640 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	} else if (r < 0) {
r                 645 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = 0;
r                 647 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = -EINVAL;
r                 654 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	return r;
r                 841 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	int r, i;
r                 845 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SDMA_TRAP,
r                 847 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 848 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 851 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 241,
r                 853 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 854 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 857 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SDMA_SRBM_WRITE,
r                 859 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 860 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 862 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = sdma_v2_4_init_microcode(adev);
r                 863 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r) {
r                 865 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 873 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                 878 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		if (r)
r                 879 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			return r;
r                 882 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	return r;
r                 899 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	int r;
r                 904 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	r = sdma_v2_4_start(adev);
r                 905 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	if (r)
r                 906 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		return r;
r                 908 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	return r;
r                 653 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	int i, j, r;
r                 758 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = amdgpu_ring_test_helper(ring);
r                 759 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		if (r)
r                 760 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			return r;
r                 793 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	int r;
r                 800 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = sdma_v3_0_gfx_resume(adev);
r                 801 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 802 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                 803 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = sdma_v3_0_rlc_resume(adev);
r                 804 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 805 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                 824 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	int r;
r                 828 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 829 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 830 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                 836 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_ring_alloc(ring, 5);
r                 837 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 856 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = -ETIMEDOUT;
r                 860 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	return r;
r                 879 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	long r;
r                 881 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 882 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 883 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                 889 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 890 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 904 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 905 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                 908 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 909 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r == 0) {
r                 910 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = -ETIMEDOUT;
r                 912 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	} else if (r < 0) {
r                 917 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = 0;
r                 919 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = -EINVAL;
r                 925 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	return r;
r                1119 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	int r, i;
r                1123 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SDMA_TRAP,
r                1125 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                1126 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                1129 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 241,
r                1131 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                1132 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                1135 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_SDMA_SRBM_WRITE,
r                1137 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                1138 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                1140 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = sdma_v3_0_init_microcode(adev);
r                1141 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r) {
r                1143 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                1157 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                1162 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		if (r)
r                1163 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			return r;
r                1166 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	return r;
r                1183 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	int r;
r                1188 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	r = sdma_v3_0_start(adev);
r                1189 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	if (r)
r                1190 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		return r;
r                1192 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	return r;
r                1288 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int i, r = 0;
r                1296 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			r = sdma_v4_0_load_microcode(adev);
r                1297 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			if (r)
r                1298 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 				return r;
r                1333 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = sdma_v4_0_rlc_resume(adev);
r                1334 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1335 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			return r;
r                1341 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_ring_test_helper(ring);
r                1342 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1343 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			return r;
r                1348 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			r = amdgpu_ring_test_helper(page);
r                1349 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			if (r)
r                1350 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 				return r;
r                1360 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                1377 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int r;
r                1381 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                1382 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1383 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		return r;
r                1389 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ring_alloc(ring, 5);
r                1390 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1409 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = -ETIMEDOUT;
r                1413 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                1430 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	long r;
r                1434 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                1435 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1436 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		return r;
r                1442 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                1443 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1457 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                1458 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1461 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                1462 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r == 0) {
r                1463 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = -ETIMEDOUT;
r                1465 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	} else if (r < 0) {
r                1470 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = 0;
r                1472 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = -EINVAL;
r                1479 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                1664 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int r;
r                1673 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = sdma_v4_0_init_microcode(adev);
r                1674 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r) {
r                1676 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		return r;
r                1714 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int r, i;
r                1727 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                1728 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r) {
r                1729 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			if (r == -EAGAIN) {
r                1748 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
r                1749 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r) {
r                1750 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r == -EAGAIN) {
r                1753 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			r = 0;
r                1761 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ras_interrupt_add_handler(adev, &ih_info);
r                1762 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1767 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = amdgpu_ras_sysfs_create(adev, &fs_info);
r                1768 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (r)
r                1772 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_irq_get(adev, &adev->sdma.ecc_irq,
r                1774 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1789 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                1795 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int r, i;
r                1800 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_irq_add_id(adev, sdma_v4_0_seq_to_irq_id(i),
r                1803 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1804 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			return r;
r                1809 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_irq_add_id(adev, sdma_v4_0_seq_to_irq_id(i),
r                1812 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1813 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			return r;
r                1828 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		r = amdgpu_ring_init(adev, ring, 1024, &adev->sdma.trap_irq,
r                1830 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (r)
r                1831 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			return r;
r                1845 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			r = amdgpu_ring_init(adev, ring, 1024,
r                1848 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			if (r)
r                1849 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 				return r;
r                1853 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                1890 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int r;
r                1901 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	r = sdma_v4_0_start(adev);
r                1903 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	return r;
r                 632 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int i, r;
r                 761 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = amdgpu_ring_test_ring(ring);
r                 762 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (r) {
r                 764 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			return r;
r                 841 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int r = 0;
r                 848 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = sdma_v5_0_gfx_resume(adev);
r                 849 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                 853 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = sdma_v5_0_load_microcode(adev);
r                 854 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (r)
r                 855 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			return r;
r                 868 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = sdma_v5_0_gfx_resume(adev);
r                 869 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r)
r                 870 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                 871 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = sdma_v5_0_rlc_resume(adev);
r                 873 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                 890 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int r;
r                 894 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 895 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r) {
r                 896 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		dev_err(adev->dev, "(%d) failed to allocate wb slot\n", r);
r                 897 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                 904 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_ring_alloc(ring, 5);
r                 905 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r) {
r                 906 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		DRM_ERROR("amdgpu: dma failed to lock ring %d (%d).\n", ring->idx, r);
r                 908 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                 937 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = -EINVAL;
r                 941 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                 958 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	long r;
r                 962 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_device_wb_get(adev, &index);
r                 963 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r) {
r                 964 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		dev_err(adev->dev, "(%ld) failed to allocate wb slot\n", r);
r                 965 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                 972 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 973 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r) {
r                 974 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		DRM_ERROR("amdgpu: failed to get ib (%ld).\n", r);
r                 989 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 990 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r)
r                 993 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 994 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r == 0) {
r                 996 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = -ETIMEDOUT;
r                 998 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	} else if (r < 0) {
r                 999 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		DRM_ERROR("amdgpu: fence wait failed (%ld).\n", r);
r                1005 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = 0;
r                1008 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = -EINVAL;
r                1016 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                1223 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int r, i;
r                1227 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_SDMA0,
r                1230 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r)
r                1231 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                1234 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_SDMA1,
r                1237 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r)
r                1238 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                1240 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = sdma_v5_0_init_microcode(adev);
r                1241 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	if (r) {
r                1243 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		return r;
r                1259 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                1264 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (r)
r                1265 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			return r;
r                1268 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                1284 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int r;
r                1289 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	r = sdma_v5_0_start(adev);
r                1291 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                1362 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	int i, r = 0;
r                1395 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		r = -EINVAL;
r                1404 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	return r;
r                 907 drivers/gpu/drm/amd/amdgpu/si.c 	u32 r;
r                 912 drivers/gpu/drm/amd/amdgpu/si.c 	r = RREG32(AMDGPU_PCIE_DATA);
r                 914 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                 932 drivers/gpu/drm/amd/amdgpu/si.c 	u32 r;
r                 937 drivers/gpu/drm/amd/amdgpu/si.c 	r = RREG32(PCIE_PORT_DATA);
r                 939 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                 957 drivers/gpu/drm/amd/amdgpu/si.c 	u32 r;
r                 961 drivers/gpu/drm/amd/amdgpu/si.c 	r = RREG32(SMC_IND_DATA_0);
r                 963 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                1118 drivers/gpu/drm/amd/amdgpu/si.c 	bool r;
r                1143 drivers/gpu/drm/amd/amdgpu/si.c 	r = amdgpu_read_bios(adev);
r                1153 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                1785 drivers/gpu/drm/amd/amdgpu/si.c 	u32 r;
r                1789 drivers/gpu/drm/amd/amdgpu/si.c 	r = RREG32(EVERGREEN_PIF_PHY0_DATA);
r                1791 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                1807 drivers/gpu/drm/amd/amdgpu/si.c 	u32 r;
r                1811 drivers/gpu/drm/amd/amdgpu/si.c 	r = RREG32(EVERGREEN_PIF_PHY1_DATA);
r                1813 drivers/gpu/drm/amd/amdgpu/si.c 	return r;
r                 135 drivers/gpu/drm/amd/amdgpu/si_dma.c 	int i, r;
r                 182 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = amdgpu_ring_test_helper(ring);
r                 183 drivers/gpu/drm/amd/amdgpu/si_dma.c 		if (r)
r                 184 drivers/gpu/drm/amd/amdgpu/si_dma.c 			return r;
r                 207 drivers/gpu/drm/amd/amdgpu/si_dma.c 	int r;
r                 211 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_device_wb_get(adev, &index);
r                 212 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 213 drivers/gpu/drm/amd/amdgpu/si_dma.c 		return r;
r                 219 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_ring_alloc(ring, 4);
r                 220 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 237 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = -ETIMEDOUT;
r                 241 drivers/gpu/drm/amd/amdgpu/si_dma.c 	return r;
r                 260 drivers/gpu/drm/amd/amdgpu/si_dma.c 	long r;
r                 262 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_device_wb_get(adev, &index);
r                 263 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 264 drivers/gpu/drm/amd/amdgpu/si_dma.c 		return r;
r                 270 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_ib_get(adev, NULL, 256, &ib);
r                 271 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 279 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f);
r                 280 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 283 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = dma_fence_wait_timeout(f, false, timeout);
r                 284 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r == 0) {
r                 285 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = -ETIMEDOUT;
r                 287 drivers/gpu/drm/amd/amdgpu/si_dma.c 	} else if (r < 0) {
r                 292 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = 0;
r                 294 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = -EINVAL;
r                 301 drivers/gpu/drm/amd/amdgpu/si_dma.c 	return r;
r                 483 drivers/gpu/drm/amd/amdgpu/si_dma.c 	int r, i;
r                 487 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 224,
r                 489 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 490 drivers/gpu/drm/amd/amdgpu/si_dma.c 		return r;
r                 493 drivers/gpu/drm/amd/amdgpu/si_dma.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 244,
r                 495 drivers/gpu/drm/amd/amdgpu/si_dma.c 	if (r)
r                 496 drivers/gpu/drm/amd/amdgpu/si_dma.c 		return r;
r                 503 drivers/gpu/drm/amd/amdgpu/si_dma.c 		r = amdgpu_ring_init(adev, ring, 1024,
r                 508 drivers/gpu/drm/amd/amdgpu/si_dma.c 		if (r)
r                 509 drivers/gpu/drm/amd/amdgpu/si_dma.c 			return r;
r                 512 drivers/gpu/drm/amd/amdgpu/si_dma.c 	return r;
r                1944 drivers/gpu/drm/amd/amdgpu/si_dpm.c 			dte_data->r[i] =
r                1949 drivers/gpu/drm/amd/amdgpu/si_dpm.c 		dte_data->tdep_r[1] = dte_data->r[4] * 2;
r                1952 drivers/gpu/drm/amd/amdgpu/si_dpm.c 			dte_data->tdep_r[i] = dte_data->r[4];
r                2612 drivers/gpu/drm/amd/amdgpu/si_dpm.c 		dte_tables->R[i]   = cpu_to_be32(dte_data->r[i]);
r                 890 drivers/gpu/drm/amd/amdgpu/si_dpm.h 	u32 r[SMC_SISLANDS_DTE_MAX_FILTER_STAGES];
r                 162 drivers/gpu/drm/amd/amdgpu/si_ih.c 	int r;
r                 165 drivers/gpu/drm/amd/amdgpu/si_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, false);
r                 166 drivers/gpu/drm/amd/amdgpu/si_ih.c 	if (r)
r                 167 drivers/gpu/drm/amd/amdgpu/si_ih.c 		return r;
r                 100 drivers/gpu/drm/amd/amdgpu/soc15.c 	u32 r;
r                 107 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32(data);
r                 109 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                 130 drivers/gpu/drm/amd/amdgpu/soc15.c 	u64 r;
r                 138 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32(data);
r                 143 drivers/gpu/drm/amd/amdgpu/soc15.c 	r |= ((u64)RREG32(data) << 32);
r                 145 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                 173 drivers/gpu/drm/amd/amdgpu/soc15.c 	u32 r;
r                 180 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32(data);
r                 182 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                 201 drivers/gpu/drm/amd/amdgpu/soc15.c 	u32 r;
r                 208 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32(data);
r                 210 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                 229 drivers/gpu/drm/amd/amdgpu/soc15.c 	u32 r;
r                 233 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32_SOC15(GC, 0, mmGC_CAC_IND_DATA);
r                 235 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                 251 drivers/gpu/drm/amd/amdgpu/soc15.c 	u32 r;
r                 255 drivers/gpu/drm/amd/amdgpu/soc15.c 	r = RREG32_SOC15(GC, 0, mmSE_CAC_IND_DATA);
r                 257 drivers/gpu/drm/amd/amdgpu/soc15.c 	return r;
r                  74 drivers/gpu/drm/amd/amdgpu/soc15d.h #define PACKETJ(reg, r, cond, type)	((reg & 0x3FFFF) |			\
r                  75 drivers/gpu/drm/amd/amdgpu/soc15d.h 			 ((r & 0x3F) << 18) |			\
r                 281 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	int r;
r                 284 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 64 * 1024, true);
r                 285 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	if (r)
r                 286 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 		return r;
r                 291 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	r = amdgpu_irq_init(adev);
r                 293 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	return r;
r                 309 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	int r;
r                 312 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	r = tonga_ih_irq_init(adev);
r                 313 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 	if (r)
r                 314 drivers/gpu/drm/amd/amdgpu/tonga_ih.c 		return r;
r                 108 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 111 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 124, &adev->uvd.inst->irq);
r                 112 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 113 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 115 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_uvd_sw_init(adev);
r                 116 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 117 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 121 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
r                 122 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 123 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 125 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_uvd_resume(adev);
r                 126 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 127 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 129 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_uvd_entity_init(adev);
r                 131 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	return r;
r                 136 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 139 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_uvd_suspend(adev);
r                 140 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 141 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 160 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 165 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_ring_test_helper(ring);
r                 166 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 169 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_ring_alloc(ring, 10);
r                 170 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r) {
r                 171 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		DRM_ERROR("amdgpu: ring failed to lock UVD ring (%d).\n", r);
r                 197 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (!r)
r                 200 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	return r;
r                 225 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 228 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = uvd_v4_2_hw_fini(adev);
r                 229 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 230 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 237 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 240 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_uvd_resume(adev);
r                 241 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 242 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 258 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int i, j, r;
r                 324 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		r = 0;
r                 334 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		r = -1;
r                 337 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r) {
r                 339 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 480 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	int r;
r                 483 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	r = amdgpu_ring_alloc(ring, 3);
r                 484 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	if (r)
r                 485 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		return r;
r                 498 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 		r = -ETIMEDOUT;
r                 500 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c 	return r;
r                 106 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 109 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq);
r                 110 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 111 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 113 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_uvd_sw_init(adev);
r                 114 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 115 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 119 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
r                 120 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 121 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 123 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_uvd_resume(adev);
r                 124 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 125 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 127 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_uvd_entity_init(adev);
r                 129 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	return r;
r                 134 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 137 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_uvd_suspend(adev);
r                 138 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 139 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 156 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 162 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_ring_test_helper(ring);
r                 163 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 166 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_ring_alloc(ring, 10);
r                 167 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r) {
r                 168 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		DRM_ERROR("amdgpu: ring failed to lock UVD ring (%d).\n", r);
r                 194 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (!r)
r                 197 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	return r;
r                 223 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 226 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = uvd_v5_0_hw_fini(adev);
r                 227 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 228 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 236 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 239 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_uvd_resume(adev);
r                 240 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 241 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 298 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int i, j, r;
r                 369 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		r = 0;
r                 379 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		r = -1;
r                 382 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r) {
r                 384 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 497 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	int r;
r                 500 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                 501 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	if (r)
r                 502 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		return r;
r                 514 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 		r = -ETIMEDOUT;
r                 516 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c 	return r;
r                 175 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int r;
r                 177 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_ring_alloc(ring, 16);
r                 178 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 179 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 193 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = -ETIMEDOUT;
r                 195 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 217 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, r;
r                 219 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 220 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 221 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 246 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 247 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 257 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 280 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, r;
r                 282 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 283 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 284 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 309 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 310 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 320 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 333 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	long r;
r                 335 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_bo_create_reserved(ring->adev, 128 * 1024, PAGE_SIZE,
r                 338 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 339 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 341 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = uvd_v6_0_enc_get_create_msg(ring, 1, bo, NULL);
r                 342 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 345 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = uvd_v6_0_enc_get_destroy_msg(ring, 1, bo, &fence);
r                 346 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 349 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                 350 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r == 0)
r                 351 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = -ETIMEDOUT;
r                 352 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	else if (r > 0)
r                 353 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = 0;
r                 359 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 386 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, r;
r                 390 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq);
r                 391 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 392 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 397 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + VISLANDS30_IV_SRCID_UVD_ENC_GEN_PURP, &adev->uvd.inst->irq);
r                 398 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			if (r)
r                 399 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 				return r;
r                 403 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_uvd_sw_init(adev);
r                 404 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 405 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 419 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
r                 420 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 421 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 423 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_uvd_resume(adev);
r                 424 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 425 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 431 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0);
r                 432 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			if (r)
r                 433 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 				return r;
r                 437 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_uvd_entity_init(adev);
r                 439 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 444 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, r;
r                 447 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_uvd_suspend(adev);
r                 448 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 449 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 471 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, r;
r                 477 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_ring_test_helper(ring);
r                 478 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 481 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_ring_alloc(ring, 10);
r                 482 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r) {
r                 483 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		DRM_ERROR("amdgpu: ring failed to lock UVD ring (%d).\n", r);
r                 511 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			r = amdgpu_ring_test_helper(ring);
r                 512 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 			if (r)
r                 518 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (!r) {
r                 525 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 550 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int r;
r                 553 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = uvd_v6_0_hw_fini(adev);
r                 554 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 555 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 562 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int r;
r                 565 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_uvd_resume(adev);
r                 566 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 567 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 705 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int i, j, r;
r                 786 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = 0;
r                 795 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = -1;
r                 798 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r) {
r                 800 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 960 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	int r;
r                 963 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                 964 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	if (r)
r                 965 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		return r;
r                 978 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 		r = -ETIMEDOUT;
r                 980 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c 	return r;
r                 180 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int r;
r                 185 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_ring_alloc(ring, 16);
r                 186 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 187 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 201 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = -ETIMEDOUT;
r                 203 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 225 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, r;
r                 227 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 228 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 229 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 254 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 255 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 265 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 287 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, r;
r                 289 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_job_alloc_with_ib(ring->adev, ib_size_dw * 4, &job);
r                 290 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 291 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 316 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_job_submit_direct(job, ring, &f);
r                 317 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 327 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 340 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	long r;
r                 342 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_bo_create_reserved(ring->adev, 128 * 1024, PAGE_SIZE,
r                 345 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 346 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 348 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = uvd_v7_0_enc_get_create_msg(ring, 1, bo, NULL);
r                 349 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 352 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = uvd_v7_0_enc_get_destroy_msg(ring, 1, bo, &fence);
r                 353 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 356 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = dma_fence_wait_timeout(fence, false, timeout);
r                 357 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r == 0)
r                 358 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = -ETIMEDOUT;
r                 359 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	else if (r > 0)
r                 360 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = 0;
r                 366 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 407 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, j, r;
r                 414 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], UVD_7_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->uvd.inst[j].irq);
r                 415 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		if (r)
r                 416 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			return r;
r                 420 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], i + UVD_7_0__SRCID__UVD_ENC_GEN_PURP, &adev->uvd.inst[j].irq);
r                 421 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r)
r                 422 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 				return r;
r                 426 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_uvd_sw_init(adev);
r                 427 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 428 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 453 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0);
r                 454 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r)
r                 455 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 				return r;
r                 472 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0);
r                 473 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r)
r                 474 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 				return r;
r                 478 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_uvd_resume(adev);
r                 479 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 480 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 482 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_uvd_entity_init(adev);
r                 483 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 484 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 486 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_virt_alloc_mm_table(adev);
r                 487 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 488 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 490 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 495 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, j, r;
r                 500 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_uvd_suspend(adev);
r                 501 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 502 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 525 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, j, r;
r                 528 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = uvd_v7_0_sriov_start(adev);
r                 530 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = uvd_v7_0_start(adev);
r                 531 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 540 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_ring_test_helper(ring);
r                 541 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r)
r                 544 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_ring_alloc(ring, 10);
r                 545 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r) {
r                 546 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 				DRM_ERROR("amdgpu: (%d)ring failed to lock UVD ring (%d).\n", j, r);
r                 579 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = amdgpu_ring_test_helper(ring);
r                 580 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			if (r)
r                 585 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (!r)
r                 588 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 621 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int r;
r                 624 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = uvd_v7_0_hw_fini(adev);
r                 625 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 626 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 633 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int r;
r                 636 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_uvd_resume(adev);
r                 637 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                 638 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                 936 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int i, j, k, r;
r                1032 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = 0;
r                1044 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			r = -1;
r                1047 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		if (r) {
r                1049 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 			return r;
r                1229 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	int r;
r                1232 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	r = amdgpu_ring_alloc(ring, 3);
r                1233 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	if (r)
r                1234 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		return r;
r                1248 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 		r = -ETIMEDOUT;
r                1250 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c 	return r;
r                 233 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r;
r                 262 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = vce_v2_0_firmware_loaded(adev);
r                 267 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r) {
r                 269 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 416 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r, i;
r                 420 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 167, &adev->vce.irq);
r                 421 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 422 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 424 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_vce_sw_init(adev, VCE_V2_0_FW_SIZE +
r                 426 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 427 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 429 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_vce_resume(adev);
r                 430 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 431 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 436 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		r = amdgpu_ring_init(adev, ring, 512,
r                 438 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		if (r)
r                 439 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 			return r;
r                 442 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_vce_entity_init(adev);
r                 444 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	return r;
r                 449 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r;
r                 452 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_vce_suspend(adev);
r                 453 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 454 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 461 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r, i;
r                 468 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
r                 469 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		if (r)
r                 470 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 			return r;
r                 485 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r;
r                 488 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = vce_v2_0_hw_fini(adev);
r                 489 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 490 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 497 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	int r;
r                 500 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	r = amdgpu_vce_resume(adev);
r                 501 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 	if (r)
r                 502 drivers/gpu/drm/amd/amdgpu/vce_v2_0.c 		return r;
r                 268 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int idx, r;
r                 313 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		r = vce_v3_0_firmware_loaded(adev);
r                 318 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		if (r) {
r                 321 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 			return r;
r                 422 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r, i;
r                 425 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_VCE_TRAP, &adev->vce.irq);
r                 426 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 427 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 429 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_vce_sw_init(adev, VCE_V3_0_FW_SIZE +
r                 431 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 432 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 438 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_vce_resume(adev);
r                 439 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 440 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 445 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vce.irq, 0);
r                 446 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		if (r)
r                 447 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 			return r;
r                 450 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_vce_entity_init(adev);
r                 452 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	return r;
r                 457 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r;
r                 460 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_vce_suspend(adev);
r                 461 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 462 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 469 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r, i;
r                 477 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
r                 478 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		if (r)
r                 479 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 			return r;
r                 489 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r;
r                 492 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = vce_v3_0_wait_for_idle(handle);
r                 493 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 494 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 502 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r;
r                 505 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = vce_v3_0_hw_fini(adev);
r                 506 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 507 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 514 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	int r;
r                 517 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	r = amdgpu_vce_resume(adev);
r                 518 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 	if (r)
r                 519 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c 		return r;
r                 338 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r;
r                 374 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = vce_v4_0_firmware_loaded(adev);
r                 379 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r) {
r                 381 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 430 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r, i;
r                 432 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCE0, 167, &adev->vce.irq);
r                 433 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 434 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 440 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = amdgpu_vce_sw_init(adev, size);
r                 441 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 442 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 459 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = amdgpu_vce_resume(adev);
r                 460 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		if (r)
r                 461 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 			return r;
r                 479 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vce.irq, 0);
r                 480 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		if (r)
r                 481 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 			return r;
r                 485 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = amdgpu_vce_entity_init(adev);
r                 486 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 487 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 489 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = amdgpu_virt_alloc_mm_table(adev);
r                 490 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 491 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 493 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	return r;
r                 498 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r;
r                 509 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = amdgpu_vce_suspend(adev);
r                 510 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 511 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 518 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r, i;
r                 522 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = vce_v4_0_sriov_start(adev);
r                 524 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = vce_v4_0_start(adev);
r                 525 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 526 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 529 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = amdgpu_ring_test_helper(&adev->vce.ring[i]);
r                 530 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		if (r)
r                 531 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 			return r;
r                 561 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r;
r                 573 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	r = vce_v4_0_hw_fini(adev);
r                 574 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	if (r)
r                 575 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		return r;
r                 583 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 	int r;
r                 594 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		r = amdgpu_vce_resume(adev);
r                 595 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 		if (r)
r                 596 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c 			return r;
r                  87 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int i, r;
r                  91 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN,
r                  93 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                  94 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                  98 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, i + VCN_1_0__SRCID__UVD_ENC_GENERAL_PURPOSE,
r                 100 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		if (r)
r                 101 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 			return r;
r                 105 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, 126, &adev->vcn.inst->irq);
r                 106 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 107 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 109 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_sw_init(adev);
r                 110 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 111 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 123 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_resume(adev);
r                 124 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 125 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 129 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 130 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 131 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 147 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 148 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		if (r)
r                 149 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 			return r;
r                 154 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 155 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 156 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 174 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int r;
r                 177 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_suspend(adev);
r                 178 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 179 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 181 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_sw_fini(adev);
r                 183 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                 197 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int i, r;
r                 199 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_ring_test_helper(ring);
r                 200 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 206 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = amdgpu_ring_test_helper(ring);
r                 207 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		if (r)
r                 212 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_ring_test_helper(ring);
r                 213 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 217 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (!r)
r                 221 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                 254 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int r;
r                 257 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = vcn_v1_0_hw_fini(adev);
r                 258 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 259 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 261 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_suspend(adev);
r                 263 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                 275 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int r;
r                 278 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = amdgpu_vcn_resume(adev);
r                 279 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r)
r                 280 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                 282 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	r = vcn_v1_0_hw_init(adev);
r                 284 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                 787 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int i, j, r;
r                 871 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = 0;
r                 883 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = -1;
r                 886 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	if (r) {
r                 888 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		return r;
r                1123 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int r;
r                1126 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = vcn_v1_0_start_dpg_mode(adev);
r                1128 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = vcn_v1_0_start_spg_mode(adev);
r                1129 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                1216 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	int r;
r                1219 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = vcn_v1_0_stop_dpg_mode(adev);
r                1221 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 		r = vcn_v1_0_stop_spg_mode(adev);
r                1223 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c 	return r;
r                 116 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int i, r;
r                 120 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN,
r                 123 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 124 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 128 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN,
r                 131 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		if (r)
r                 132 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 			return r;
r                 136 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN,
r                 138 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 139 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 141 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_sw_init(adev);
r                 142 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 143 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 155 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_resume(adev);
r                 156 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 157 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 165 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 166 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 167 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 192 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 193 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		if (r)
r                 194 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 			return r;
r                 201 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0);
r                 202 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 203 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 222 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r;
r                 225 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_suspend(adev);
r                 226 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 227 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 229 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_sw_fini(adev);
r                 231 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                 245 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int i, r;
r                 251 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_ring_test_ring(ring);
r                 252 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r) {
r                 260 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = amdgpu_ring_test_ring(ring);
r                 261 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		if (r) {
r                 269 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_ring_test_ring(ring);
r                 270 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r) {
r                 276 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (!r)
r                 280 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                 323 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r;
r                 326 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = vcn_v2_0_hw_fini(adev);
r                 327 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 328 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 330 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_suspend(adev);
r                 332 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                 344 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r;
r                 347 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_vcn_resume(adev);
r                 348 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                 349 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 351 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = vcn_v2_0_hw_init(adev);
r                 353 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                 670 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r = 0;
r                 678 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK, r);
r                 680 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r) {
r                 682 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 738 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r = 0;
r                 772 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		UVD_PGFSM_STATUS__UVDJ_PWR_STATUS_MASK, r);
r                 774 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r) {
r                 776 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                 779 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                1059 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int i, j, r;
r                1065 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = vcn_v2_0_start_dpg_mode(adev, adev->vcn.indirect_sram);
r                1066 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		if (r)
r                1067 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 			return r;
r                1154 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = 0;
r                1166 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = -1;
r                1169 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r) {
r                1171 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                1222 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = jpeg_v2_0_start(adev);
r                1224 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                1262 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r;
r                1264 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = jpeg_v2_0_stop(adev);
r                1265 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                1266 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                1269 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = vcn_v2_0_stop_dpg_mode(adev);
r                1270 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		if (r)
r                1271 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 			return r;
r                1276 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	SOC15_WAIT_ON_RREG(VCN, 0, mmUVD_STATUS, UVD_STATUS__IDLE, 0x7, r);
r                1277 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                1278 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                1284 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	SOC15_WAIT_ON_RREG(VCN, 0, mmUVD_LMI_STATUS, tmp, tmp, r);
r                1285 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                1286 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                1295 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	SOC15_WAIT_ON_RREG(VCN, 0, mmUVD_LMI_STATUS, tmp, tmp, r);
r                1296 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                1297 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                2100 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	int r;
r                2103 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	r = amdgpu_ring_alloc(ring, 4);
r                2104 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	if (r)
r                2105 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		return r;
r                2119 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 		r = -ETIMEDOUT;
r                2121 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c 	return r;
r                 113 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int i, j, r;
r                 120 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j],
r                 122 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 123 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 127 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j],
r                 129 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			if (r)
r                 130 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 				return r;
r                 134 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_vcns[j],
r                 136 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 137 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 140 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_sw_init(adev);
r                 141 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 142 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 161 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_resume(adev);
r                 162 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 163 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 193 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0);
r                 194 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 195 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 202 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0);
r                 203 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			if (r)
r                 204 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 				return r;
r                 211 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0);
r                 212 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 213 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 228 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int r;
r                 231 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_suspend(adev);
r                 232 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 233 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 235 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_sw_fini(adev);
r                 237 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	return r;
r                 251 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int i, j, r;
r                 261 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_ring_test_ring(ring);
r                 262 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r) {
r                 271 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			r = amdgpu_ring_test_ring(ring);
r                 272 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			if (r) {
r                 279 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		r = amdgpu_ring_test_ring(ring);
r                 280 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r) {
r                 286 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (!r)
r                 289 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	return r;
r                 336 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int r;
r                 339 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = vcn_v2_5_hw_fini(adev);
r                 340 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 341 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 343 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_suspend(adev);
r                 345 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	return r;
r                 357 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int r;
r                 360 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = amdgpu_vcn_resume(adev);
r                 361 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 362 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 364 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = vcn_v2_5_hw_init(adev);
r                 366 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	return r;
r                 715 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int i, j, k, r;
r                 813 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			r = 0;
r                 826 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			r = -1;
r                 829 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r) {
r                 831 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 881 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = jpeg_v2_5_start(adev);
r                 883 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	return r;
r                 889 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	int i, r;
r                 891 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	r = jpeg_v2_5_stop(adev);
r                 892 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 	if (r)
r                 893 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		return r;
r                 899 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		SOC15_WAIT_ON_RREG(VCN, i, mmUVD_STATUS, UVD_STATUS__IDLE, 0x7, r);
r                 900 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 901 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 907 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		SOC15_WAIT_ON_RREG(VCN, i, mmUVD_LMI_STATUS, tmp, tmp, r);
r                 908 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 909 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 918 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		SOC15_WAIT_ON_RREG(VCN, i, mmUVD_LMI_STATUS, tmp, tmp, r);
r                 919 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 		if (r)
r                 920 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c 			return r;
r                 579 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	int r;
r                 581 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_IH, 0,
r                 583 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	if (r)
r                 584 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 		return r;
r                 586 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih, 256 * 1024, true);
r                 587 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	if (r)
r                 588 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 		return r;
r                 593 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih1, PAGE_SIZE, true);
r                 594 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	if (r)
r                 595 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 		return r;
r                 600 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = amdgpu_ih_ring_init(adev, &adev->irq.ih2, PAGE_SIZE, true);
r                 601 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	if (r)
r                 602 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 		return r;
r                 607 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = amdgpu_irq_init(adev);
r                 609 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	return r;
r                 626 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	int r;
r                 629 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	r = vega10_ih_irq_init(adev);
r                 630 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 	if (r)
r                 631 drivers/gpu/drm/amd/amdgpu/vega10_ih.c 		return r;
r                  88 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                  93 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32_NO_KIQ(mmPCIE_DATA);
r                  95 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 113 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                 117 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32_NO_KIQ(mmSMC_IND_DATA_11);
r                 119 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 139 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                 143 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32(mmMP0PUB_IND_DATA);
r                 145 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 161 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                 165 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32(mmUVD_CTX_DATA);
r                 167 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 183 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                 187 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32(mmDIDT_IND_DATA);
r                 189 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 205 drivers/gpu/drm/amd/amdgpu/vi.c 	u32 r;
r                 209 drivers/gpu/drm/amd/amdgpu/vi.c 	r = RREG32(mmGC_CAC_IND_DATA);
r                 211 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 382 drivers/gpu/drm/amd/amdgpu/vi.c 	bool r;
r                 407 drivers/gpu/drm/amd/amdgpu/vi.c 	r = amdgpu_read_bios(adev);
r                 417 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 703 drivers/gpu/drm/amd/amdgpu/vi.c 	int r;
r                 707 drivers/gpu/drm/amd/amdgpu/vi.c 	r = vi_gpu_pci_config_reset(adev);
r                 711 drivers/gpu/drm/amd/amdgpu/vi.c 	return r;
r                 728 drivers/gpu/drm/amd/amdgpu/vi.c 	int r, i;
r                 732 drivers/gpu/drm/amd/amdgpu/vi.c 	r = amdgpu_atombios_get_clock_dividers(adev,
r                 735 drivers/gpu/drm/amd/amdgpu/vi.c 	if (r)
r                 736 drivers/gpu/drm/amd/amdgpu/vi.c 		return r;
r                 773 drivers/gpu/drm/amd/amdgpu/vi.c 	int r;
r                 776 drivers/gpu/drm/amd/amdgpu/vi.c 		r = vi_set_uvd_clock(adev, vclk, ixGNB_CLK2_DFS_CNTL, ixGNB_CLK2_STATUS);
r                 777 drivers/gpu/drm/amd/amdgpu/vi.c 		if (r)
r                 778 drivers/gpu/drm/amd/amdgpu/vi.c 			return r;
r                 780 drivers/gpu/drm/amd/amdgpu/vi.c 		r = vi_set_uvd_clock(adev, dclk, ixGNB_CLK1_DFS_CNTL, ixGNB_CLK1_STATUS);
r                 781 drivers/gpu/drm/amd/amdgpu/vi.c 		if (r)
r                 782 drivers/gpu/drm/amd/amdgpu/vi.c 			return r;
r                 784 drivers/gpu/drm/amd/amdgpu/vi.c 		r = vi_set_uvd_clock(adev, vclk, ixCG_VCLK_CNTL, ixCG_VCLK_STATUS);
r                 785 drivers/gpu/drm/amd/amdgpu/vi.c 		if (r)
r                 786 drivers/gpu/drm/amd/amdgpu/vi.c 			return r;
r                 788 drivers/gpu/drm/amd/amdgpu/vi.c 		r = vi_set_uvd_clock(adev, dclk, ixCG_DCLK_CNTL, ixCG_DCLK_STATUS);
r                 789 drivers/gpu/drm/amd/amdgpu/vi.c 		if (r)
r                 790 drivers/gpu/drm/amd/amdgpu/vi.c 			return r;
r                 798 drivers/gpu/drm/amd/amdgpu/vi.c 	int r, i;
r                 818 drivers/gpu/drm/amd/amdgpu/vi.c 	r = amdgpu_atombios_get_clock_dividers(adev,
r                 821 drivers/gpu/drm/amd/amdgpu/vi.c 	if (r)
r                 822 drivers/gpu/drm/amd/amdgpu/vi.c 		return r;
r                 452 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	int r;
r                 456 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	r = pqm_get_wave_state(&p->pqm, args->queue_id,
r                 463 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	return r;
r                1579 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	int r;
r                1595 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	r = amdgpu_amdkfd_get_dmabuf_info(dev->kgd, args->dmabuf_fd,
r                1599 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	if (r)
r                1605 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		r = -EINVAL;
r                1613 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		r = copy_to_user((void __user *)args->metadata_ptr,
r                1615 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		if (r != 0)
r                1616 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 			r = -EFAULT;
r                1622 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	return r;
r                1635 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	int r;
r                1649 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		r = PTR_ERR(pdd);
r                1653 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	r = amdgpu_amdkfd_gpuvm_import_dmabuf(dev->kgd, dmabuf,
r                1657 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	if (r)
r                1662 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		r = -EFAULT;
r                1676 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	return r;
r                 881 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	int r;
r                 891 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	r = kfd_process_evict_queues(p);
r                 894 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	return r;
r                 900 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	int r;
r                 910 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	r = kfd_process_restore_queues(p);
r                 913 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	return r;
r                1174 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	int r = 0;
r                1181 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	r = pm_debugfs_hang_hws(&dev->dqm->packets);
r                1182 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	if (!r)
r                1183 drivers/gpu/drm/amd/amdkfd/kfd_device.c 		r = dqm_debugfs_execute_queues(dev->dqm);
r                1185 drivers/gpu/drm/amd/amdkfd/kfd_device.c 	return r;
r                1543 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	int r;
r                1549 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 		r = -EINVAL;
r                1556 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 		r = -EINVAL;
r                1560 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	r = mqd_mgr->get_wave_state(mqd_mgr, q->mqd, ctl_stack,
r                1565 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	return r;
r                1887 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	int r = 0;
r                1889 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	r = dqm->dev->kfd2kgd->hqd_dump(dqm->dev->kgd,
r                1892 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	if (!r) {
r                1910 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 			r = dqm->dev->kfd2kgd->hqd_dump(
r                1912 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 			if (r)
r                1927 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 			r = dqm->dev->kfd2kgd->hqd_sdma_dump(
r                1929 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 			if (r)
r                1940 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	return r;
r                1945 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	int r = 0;
r                1949 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	r = execute_queues_cpsch(dqm, KFD_UNMAP_QUEUES_FILTER_ALL_QUEUES, 0);
r                1952 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 	return r;
r                 263 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c 	int r = ida_simple_get(&doorbell_ida, 1, max_doorbell_slices,
r                 265 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c 	if (r > 0)
r                 266 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c 		process->doorbell_index = r;
r                 268 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c 	return r;
r                  54 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c 	int r;
r                  56 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c 	r = kfifo_alloc(&kfd->ih_fifo,
r                  59 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c 	if (r) {
r                  61 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c 		return r;
r                 165 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c 	int r = 0;
r                 169 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c 	r = mm->dev->kfd2kgd->hqd_load(mm->dev->kgd, mqd, pipe_id, queue_id,
r                 172 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c 	return r;
r                 437 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 	int r = 0;
r                 445 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 		r = -ENOMEM;
r                 456 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c 	return r;
r                  56 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c 	int r;
r                  75 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c 	r = amdgpu_pasid_alloc(pasid_bits);
r                  77 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c 	return r > 0 ? r : 0;
r                 949 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	int r = 0;
r                 953 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		r = pdd->dev->dqm->ops.evict_process_queues(pdd->dev->dqm,
r                 955 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		if (r) {
r                 962 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	return r;
r                 978 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	return r;
r                 985 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	int r, ret = 0;
r                 988 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		r = pdd->dev->dqm->ops.restore_process_queues(pdd->dev->dqm,
r                 990 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		if (r) {
r                 993 drivers/gpu/drm/amd/amdkfd/kfd_process.c 				ret = r;
r                1169 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	int r = 0;
r                1178 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		r = pqm_debugfs_mqds(m, &p->pqm);
r                1181 drivers/gpu/drm/amd/amdkfd/kfd_process.c 		if (r)
r                1187 drivers/gpu/drm/amd/amdkfd/kfd_process.c 	return r;
r                 507 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 	int r = 0;
r                 552 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 		r = mqd_mgr->debugfs_show_mqd(m, q->mqd);
r                 553 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 		if (r != 0)
r                 557 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c 	return r;
r                1468 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	int r = 0;
r                1479 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		r = dqm_debugfs_hqds(m, dev->gpu->dqm);
r                1480 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		if (r)
r                1486 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	return r;
r                1493 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	int r = 0;
r                1504 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		r = pm_debugfs_runlist(m, &dev->gpu->dqm->packets);
r                1505 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 		if (r)
r                1511 drivers/gpu/drm/amd/amdkfd/kfd_topology.c 	return r;
r                 498 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		int r = amdgpu_bo_create_kernel(adev, max_size * 4, PAGE_SIZE,
r                 502 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r)
r                 794 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                 837 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = request_firmware_direct(&adev->dm.fw_dmcu, fw_name_dmcu, adev->dev);
r                 838 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r == -ENOENT) {
r                 844 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r) {
r                 847 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                 850 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_ucode_validate(adev->dm.fw_dmcu);
r                 851 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r) {
r                 856 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                1689 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                1712 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, client_id, i, &adev->crtc_irq);
r                1713 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1715 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1733 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, client_id, i, &adev->vupdate_irq);
r                1734 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1736 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1755 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, client_id, i, &adev->pageflip_irq);
r                1756 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1758 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1776 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_irq_add_id(adev, client_id,
r                1778 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r) {
r                1780 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                1795 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                1817 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DCE, i, &adev->crtc_irq);
r                1819 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1821 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1845 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DCE, i, &adev->vupdate_irq);
r                1847 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1849 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1869 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DCE, i, &adev->pageflip_irq);
r                1870 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r) {
r                1872 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			return r;
r                1890 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_DCE, DCN_1_0__SRCID__DC_HPD1_INT,
r                1892 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r) {
r                1894 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                2008 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                2042 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_display_modeset_create_props(adev);
r                2043 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r)
r                2044 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                2046 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_dm_audio_init(adev);
r                2047 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r)
r                2048 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                2673 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r = amdgpu_bo_reserve(rbo, false);
r                2675 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (unlikely(r)) {
r                2677 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r != -ERESTARTSYS)
r                2678 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			DRM_ERROR("Unable to reserve buffer: %d\n", r);
r                2679 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                2687 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	return r;
r                4499 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                4520 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = ttm_eu_reserve_buffers(&ticket, &list, false, NULL, true);
r                4521 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (r) {
r                4522 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		dev_err(adev->dev, "fail to reserve bo (%d)\n", r);
r                4523 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                4531 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_bo_pin(rbo, domain);
r                4532 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (unlikely(r != 0)) {
r                4533 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (r != -ERESTARTSYS)
r                4534 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 			DRM_ERROR("Failed to pin framebuffer with error %d\n", r);
r                4536 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                4539 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_ttm_alloc_gart(&rbo->tbo);
r                4540 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (unlikely(r != 0)) {
r                4544 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		return r;
r                4575 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	int r;
r                4581 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	r = amdgpu_bo_reserve(rbo, false);
r                4582 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	if (unlikely(r)) {
r                5686 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	long r;
r                5766 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = dma_resv_wait_timeout_rcu(abo->tbo.base.resv, true,
r                5769 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (unlikely(r <= 0))
r                5778 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		r = amdgpu_bo_reserve(abo, true);
r                5779 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		if (unlikely(r != 0))
r                 129 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	uint32_t r, g, b;
r                 134 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 			r = drm_color_lut_extract(lut[i].red, 16);
r                 138 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 			gamma->entries.red[i] = dc_fixpt_from_int(r);
r                 147 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		r = drm_color_lut_extract(lut[i].red, 16);
r                 151 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		gamma->entries.red[i] = dc_fixpt_from_fraction(r, MAX_DRM_LUT_VALUE);
r                 310 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	int r;
r                 350 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		r = __set_legacy_tf(stream->out_transfer_func, regamma_lut,
r                 352 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		if (r)
r                 353 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 			return r;
r                 359 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		r = __set_output_tf(stream->out_transfer_func, regamma_lut,
r                 361 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		if (r)
r                 362 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 			return r;
r                 421 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 	int r;
r                 462 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		r = __set_input_tf(dc_plane_state->in_transfer_func,
r                 464 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 		if (r)
r                 465 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c 			return r;
r                  87 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 129 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		r = put_user(*(rd_buf + result), buf);
r                 130 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		if (r)
r                 131 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			return r; /* r = -EFAULT */
r                 153 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 170 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(wr_buf_ptr, buf, wr_buf_size);
r                 173 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	if (r >= wr_buf_size) {
r                 179 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	bytes_from_user = wr_buf_size - r;
r                 188 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		r = kstrtol(sub_str, 16, &param[param_index]);
r                 190 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		if (r)
r                 191 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			DRM_DEBUG_DRIVER("string to int convert error code: %d\n", r);
r                 288 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 306 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		r = put_user((*(rd_buf + result)), buf);
r                 307 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		if (r)
r                 308 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			return r; /* r = -EFAULT */
r                 329 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 346 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(wr_buf_ptr, buf, wr_buf_size);
r                 349 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	if (r >= wr_buf_size) {
r                 355 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	bytes_from_user = wr_buf_size - r;
r                 364 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		r = kstrtol(sub_str, 16, &param[param_index]);
r                 366 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		if (r)
r                 367 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			DRM_DEBUG_DRIVER("string to int convert error code: %d\n", r);
r                 406 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	for (r = 0; r < link_lane_settings.link_settings.lane_count; r++) {
r                 407 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		link_lane_settings.lane_settings[r].VOLTAGE_SWING =
r                 409 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		link_lane_settings.lane_settings[r].PRE_EMPHASIS =
r                 411 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		link_lane_settings.lane_settings[r].POST_CURSOR2 =
r                 489 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 519 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(wr_buf_ptr, buf, wr_buf_size);
r                 522 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	if (r >= wr_buf_size) {
r                 528 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	bytes_from_user = wr_buf_size - r;
r                 569 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		r = kstrtol(sub_str, 16, &param[param_index]);
r                 571 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 		if (r)
r                 572 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			DRM_DEBUG_DRIVER("string to int convert error code: %d\n", r);
r                 777 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 791 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(data, buf, write_size);
r                 793 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	write_size -= r;
r                 803 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 809 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(&connector->debugfs_dpcd_address,
r                 812 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	return size - r;
r                 818 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 824 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(&connector->debugfs_dpcd_size,
r                 830 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	return size - r;
r                 836 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 849 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_from_user(data, buf, write_size);
r                 852 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 			connector->debugfs_dpcd_address, data, write_size - r);
r                 854 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	return write_size - r;
r                 860 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	int r;
r                 876 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	r = copy_to_user(buf, data, read_size);
r                 879 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c 	return read_size - r;
r                 352 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 		struct fixed31_32 r = dc_fixpt_sub(
r                 361 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 			dc_fixpt_abs(r),
r                 366 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 				fixed31_32_exp_from_taylor_series(r),
r                 370 drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c 				fixed31_32_exp_from_taylor_series(r),
r                 118 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h 	struct fixed31_32 r;
r                 152 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h 	struct fixed31_32 r;
r                 177 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h 	struct gamma_point r;
r                 193 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h 	struct fixed31_32 r;
r                 472 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			left = axis_x[i].r;
r                 475 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				right = axis_x[i + 1].r;
r                 477 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				right = axis_x[max_number - 1].r;
r                 582 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			point = &coeff[i].r;
r                 584 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			left_pos = axis_x[index_left].r;
r                 585 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			right_pos = axis_x[index_right].r;
r                 636 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		point = &coeff->r;
r                 658 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 						rgb[point->right_index].r,
r                 659 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 						rgb[point->left_index].r)),
r                 660 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				rgb[point->left_index].r);
r                 731 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->r = output;
r                 762 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		de_pq[i].r = output;
r                 791 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->r = translate_from_linear_space_ex(
r                 793 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->g = rgb->r;
r                 794 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->b = rgb->r;
r                 955 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				rgb->r = output;
r                 960 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				rgb->r = clip;
r                 965 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			rgb->r = clip;
r                 999 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		curve[i].r = dc_fixpt_zero;
r                1006 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		curve[i].r = translate_to_linear_space_ex(
r                1008 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		curve[i].g = curve[i].r;
r                1009 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		curve[i].b = curve[i].r;
r                1013 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		curve[i].r = dc_fixpt_one;
r                1040 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		compute_hlg_eotf(coord_x->x, &rgb->r, sdr_white_level, max_luminance_nits);
r                1041 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->g = rgb->r;
r                1042 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->b = rgb->r;
r                1064 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		compute_hlg_oetf(coord_x->x, &rgb->r, sdr_white_level, max_luminance_nits);
r                1065 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->g = rgb->r;
r                1066 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->b = rgb->r;
r                1099 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->r = dc_fixpt_div(
r                1110 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1119 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1128 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1173 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		pwl_rgb[i].r = dc_fixpt_div(
r                1185 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	pwl_rgb[i].r =  dc_fixpt_sub(dc_fixpt_mul_int(
r                1186 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				pwl_rgb[i-1].r, 2), pwl_rgb[i-2].r);
r                1192 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	pwl_rgb[i].r =  dc_fixpt_sub(dc_fixpt_mul_int(
r                1193 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				pwl_rgb[i-1].r, 2), pwl_rgb[i-2].r);
r                1228 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->r = dc_fixpt_from_fraction(
r                1239 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1248 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1257 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	rgb->r = dc_fixpt_mul(rgb_last->r,
r                1364 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		p->r = value;
r                1372 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	p->r = dc_fixpt_div(p_last->r, dividers.divider1);
r                1378 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	p->r = dc_fixpt_div(p_last->r, dividers.divider2);
r                1384 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 	p->r = dc_fixpt_div(p_last->r, dividers.divider3);
r                1399 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		coords->regamma_y_red = rgb_regamma->r;
r                1526 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				lut1 = rgb_user[index].r;
r                1527 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 				lut2 = rgb_user[index_next].r;
r                1583 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->r = translate_from_linear_space_ex(
r                1585 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->g = rgb->r;
r                1586 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 		rgb->b = rgb->r;
r                1621 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			tf_pts->red[i] = regamma->r;
r                1955 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			curve[i].r = coordinates_x[i].x;
r                1956 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			curve[i].g = curve[i].r;
r                1957 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			curve[i].b = curve[i].r;
r                2029 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_regamma[i].r;
r                2056 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_regamma[i].r;
r                2079 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_regamma[i].r;
r                2119 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_degamma[i].r;
r                2142 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_degamma[i].r;
r                2161 drivers/gpu/drm/amd/display/modules/color/color_gamma.c 			points->red[i]    = rgb_degamma[i].r;
r                 144 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	int r = -EINVAL;
r                 159 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 		r = hwmgr->hwmgr_func->notify_cac_buffer_info(hwmgr,
r                 166 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 	if (r) {
r                 234 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c 	int r;
r                 244 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c 	r = amdgpu_bo_create_kernel((struct amdgpu_device *)hwmgr->adev,
r                 252 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c 	if (r)
r                 260 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c 	r = amdgpu_bo_create_kernel((struct amdgpu_device *)hwmgr->adev,
r                 268 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c 	if (r)
r                 344 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	int r = 0;
r                 394 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 397 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 400 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 403 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 406 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 409 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 412 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 415 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 418 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 422 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 				"Failed to Get Firmware Entry.", r = -EINVAL; goto failed);
r                 431 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	r = smu7_check_fw_load_finish(hwmgr, fw_to_load);
r                 432 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	if (!r)
r                 440 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	return r;
r                 546 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	int r;
r                 554 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	r = amdgpu_bo_create_kernel((struct amdgpu_device *)hwmgr->adev,
r                 562 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	if (r)
r                 569 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	r = amdgpu_bo_create_kernel((struct amdgpu_device *)hwmgr->adev,
r                 577 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c 	if (r) {
r                  70 drivers/gpu/drm/armada/armada_drv.c 		struct resource *r = platform_get_resource(to_platform_device(dev),
r                  72 drivers/gpu/drm/armada/armada_drv.c 		if (!r)
r                  76 drivers/gpu/drm/armada/armada_drv.c 		if (resource_size(r) > SZ_64K)
r                  77 drivers/gpu/drm/armada/armada_drv.c 			mem = r;
r                 418 drivers/gpu/drm/armada/armada_overlay.c #define R2BGR(r,g,b,s)	(C2K(r,s) << 0 | C2K(g,s) << 8 | C2K(b,s) << 16)
r                 296 drivers/gpu/drm/ast/ast_drv.h u32 ast_mindwm(struct ast_private *ast, u32 r);
r                 297 drivers/gpu/drm/ast/ast_drv.h void ast_moutdwm(struct ast_private *ast, u32 r, u32 v);
r                  71 drivers/gpu/drm/ast/ast_mode.c 	u16 *r, *g, *b;
r                  77 drivers/gpu/drm/ast/ast_mode.c 	r = crtc->gamma_store;
r                  78 drivers/gpu/drm/ast/ast_mode.c 	g = r + crtc->gamma_size;
r                  82 drivers/gpu/drm/ast/ast_mode.c 		ast_load_palette_index(ast, i, *r++ >> 8, *g++ >> 8, *b++ >> 8);
r                 116 drivers/gpu/drm/ast/ast_post.c u32 ast_mindwm(struct ast_private *ast, u32 r)
r                 120 drivers/gpu/drm/ast/ast_post.c 	ast_write32(ast, 0xf004, r & 0xffff0000);
r                 125 drivers/gpu/drm/ast/ast_post.c 	} while (data != (r & 0xffff0000));
r                 126 drivers/gpu/drm/ast/ast_post.c 	return ast_read32(ast, 0x10000 + (r & 0x0000ffff));
r                 129 drivers/gpu/drm/ast/ast_post.c void ast_moutdwm(struct ast_private *ast, u32 r, u32 v)
r                 132 drivers/gpu/drm/ast/ast_post.c 	ast_write32(ast, 0xf004, r & 0xffff0000);
r                 136 drivers/gpu/drm/ast/ast_post.c 	} while (data != (r & 0xffff0000));
r                 137 drivers/gpu/drm/ast/ast_post.c 	ast_write32(ast, 0x10000 + (r & 0x0000ffff), v);
r                1480 drivers/gpu/drm/bridge/tc358767.c 	int r;
r                1482 drivers/gpu/drm/bridge/tc358767.c 	r = regmap_read(tc->regmap, INTSTS_G, &val);
r                1483 drivers/gpu/drm/bridge/tc358767.c 	if (r)
r                 194 drivers/gpu/drm/drm_crtc_internal.h 				const struct drm_mode_fb_cmd2 *r,
r                  48 drivers/gpu/drm/drm_dp_helper.c static u8 dp_link_status(const u8 link_status[DP_LINK_STATUS_SIZE], int r)
r                  50 drivers/gpu/drm/drm_dp_helper.c 	return link_status[r - DP_LANE0_1_STATUS];
r                 116 drivers/gpu/drm/drm_drv.c 	int r;
r                 127 drivers/gpu/drm/drm_drv.c 	r = idr_alloc(&drm_minors_idr,
r                 135 drivers/gpu/drm/drm_drv.c 	if (r < 0)
r                 138 drivers/gpu/drm/drm_drv.c 	minor->index = r;
r                 142 drivers/gpu/drm/drm_drv.c 		r = PTR_ERR(minor->kdev);
r                 155 drivers/gpu/drm/drm_drv.c 	return r;
r                 552 drivers/gpu/drm/drm_drv.c 	int r;
r                 554 drivers/gpu/drm/drm_drv.c 	r = simple_pin_fs(&drm_fs_type, &drm_fs_mnt, &drm_fs_cnt);
r                 555 drivers/gpu/drm/drm_drv.c 	if (r < 0) {
r                 556 drivers/gpu/drm/drm_drv.c 		DRM_ERROR("Cannot mount pseudo fs: %d\n", r);
r                 557 drivers/gpu/drm/drm_drv.c 		return ERR_PTR(r);
r                 646 drivers/gpu/drm/drm_edid.c 	short r;
r                2017 drivers/gpu/drm/drm_edid.c 	u8 *r = (u8 *)t;
r                2018 drivers/gpu/drm/drm_edid.c 	if (r[3] == EDID_DETAIL_MONITOR_RANGE)
r                2019 drivers/gpu/drm/drm_edid.c 		if (r[15] & 0x10)
r                2039 drivers/gpu/drm/drm_edid.c 	u8 *r = (u8 *)t;
r                2040 drivers/gpu/drm/drm_edid.c 	if (r[3] == EDID_DETAIL_MONITOR_RANGE && r[10] == 0x02)
r                2041 drivers/gpu/drm/drm_edid.c 		*(u8 **)data = r;
r                2048 drivers/gpu/drm/drm_edid.c 	u8 *r = NULL;
r                2049 drivers/gpu/drm/drm_edid.c 	drm_for_each_detailed_block((u8 *)edid, find_gtf2, &r);
r                2050 drivers/gpu/drm/drm_edid.c 	return r ? (r[12] * 2) : 0;
r                2056 drivers/gpu/drm/drm_edid.c 	u8 *r = NULL;
r                2057 drivers/gpu/drm/drm_edid.c 	drm_for_each_detailed_block((u8 *)edid, find_gtf2, &r);
r                2058 drivers/gpu/drm/drm_edid.c 	return r ? r[13] : 0;
r                2064 drivers/gpu/drm/drm_edid.c 	u8 *r = NULL;
r                2065 drivers/gpu/drm/drm_edid.c 	drm_for_each_detailed_block((u8 *)edid, find_gtf2, &r);
r                2066 drivers/gpu/drm/drm_edid.c 	return r ? (r[15] << 8) + r[14] : 0;
r                2072 drivers/gpu/drm/drm_edid.c 	u8 *r = NULL;
r                2073 drivers/gpu/drm/drm_edid.c 	drm_for_each_detailed_block((u8 *)edid, find_gtf2, &r);
r                2074 drivers/gpu/drm/drm_edid.c 	return r ? r[16] : 0;
r                2080 drivers/gpu/drm/drm_edid.c 	u8 *r = NULL;
r                2081 drivers/gpu/drm/drm_edid.c 	drm_for_each_detailed_block((u8 *)edid, find_gtf2, &r);
r                2082 drivers/gpu/drm/drm_edid.c 	return r ? r[17] : 0;
r                2524 drivers/gpu/drm/drm_edid.c 		newmode = drm_gtf_mode(dev, m->w, m->h, m->r, 0, 0);
r                2553 drivers/gpu/drm/drm_edid.c 		newmode = drm_cvt_mode(dev, m->w, m->h, m->r, rb, 0, 0);
r                2640 drivers/gpu/drm/drm_edid.c 							 est3_modes[m].r,
r                 958 drivers/gpu/drm/drm_fb_helper.c 	u16 *r, *g, *b;
r                 970 drivers/gpu/drm/drm_fb_helper.c 		r = crtc->gamma_store;
r                 971 drivers/gpu/drm/drm_fb_helper.c 		g = r + crtc->gamma_size;
r                 974 drivers/gpu/drm/drm_fb_helper.c 		memcpy(r + cmap->start, cmap->red, cmap->len * sizeof(*r));
r                 978 drivers/gpu/drm/drm_fb_helper.c 		ret = crtc->funcs->gamma_set(crtc, r, g, b,
r                1006 drivers/gpu/drm/drm_fb_helper.c 		u16 *r = crtc->gamma_store;
r                1007 drivers/gpu/drm/drm_fb_helper.c 		u16 *g = r + crtc->gamma_size;
r                1011 drivers/gpu/drm/drm_fb_helper.c 			lut[i].red = r[i];
r                1016 drivers/gpu/drm/drm_fb_helper.c 			lut[i].red = r[i];
r                1041 drivers/gpu/drm/drm_fb_helper.c 	u16 *r, *g, *b;
r                1087 drivers/gpu/drm/drm_fb_helper.c 		r = crtc->gamma_store;
r                1088 drivers/gpu/drm/drm_fb_helper.c 		g = r + crtc->gamma_size;
r                1091 drivers/gpu/drm/drm_fb_helper.c 		memcpy(r + cmap->start, cmap->red, cmap->len * sizeof(*r));
r                 311 drivers/gpu/drm/drm_format_helper.c 			u8 r = (*src & 0x00ff0000) >> 16;
r                 316 drivers/gpu/drm/drm_format_helper.c 			*dst++ = (3 * r + 6 * g + b) / 10;
r                 119 drivers/gpu/drm/drm_framebuffer.c 	struct drm_mode_fb_cmd2 r = {};
r                 125 drivers/gpu/drm/drm_framebuffer.c 	r.pixel_format = drm_driver_legacy_fb_format(dev, or->bpp, or->depth);
r                 126 drivers/gpu/drm/drm_framebuffer.c 	if (r.pixel_format == DRM_FORMAT_INVALID) {
r                 132 drivers/gpu/drm/drm_framebuffer.c 	r.fb_id = or->fb_id;
r                 133 drivers/gpu/drm/drm_framebuffer.c 	r.width = or->width;
r                 134 drivers/gpu/drm/drm_framebuffer.c 	r.height = or->height;
r                 135 drivers/gpu/drm/drm_framebuffer.c 	r.pitches[0] = or->pitch;
r                 136 drivers/gpu/drm/drm_framebuffer.c 	r.handles[0] = or->handle;
r                 138 drivers/gpu/drm/drm_framebuffer.c 	ret = drm_mode_addfb2(dev, &r, file_priv);
r                 142 drivers/gpu/drm/drm_framebuffer.c 	or->fb_id = r.fb_id;
r                 172 drivers/gpu/drm/drm_framebuffer.c 			     const struct drm_mode_fb_cmd2 *r)
r                 178 drivers/gpu/drm/drm_framebuffer.c 	info = __drm_format_info(r->pixel_format);
r                 183 drivers/gpu/drm/drm_framebuffer.c 			      drm_get_format_name(r->pixel_format,
r                 189 drivers/gpu/drm/drm_framebuffer.c 	info = drm_get_format_info(dev, r);
r                 191 drivers/gpu/drm/drm_framebuffer.c 	if (r->width == 0) {
r                 192 drivers/gpu/drm/drm_framebuffer.c 		DRM_DEBUG_KMS("bad framebuffer width %u\n", r->width);
r                 196 drivers/gpu/drm/drm_framebuffer.c 	if (r->height == 0) {
r                 197 drivers/gpu/drm/drm_framebuffer.c 		DRM_DEBUG_KMS("bad framebuffer height %u\n", r->height);
r                 202 drivers/gpu/drm/drm_framebuffer.c 		unsigned int width = fb_plane_width(r->width, info, i);
r                 203 drivers/gpu/drm/drm_framebuffer.c 		unsigned int height = fb_plane_height(r->height, info, i);
r                 207 drivers/gpu/drm/drm_framebuffer.c 		if (!block_size && (r->modifier[i] == DRM_FORMAT_MOD_LINEAR)) {
r                 212 drivers/gpu/drm/drm_framebuffer.c 		if (!r->handles[i]) {
r                 220 drivers/gpu/drm/drm_framebuffer.c 		if ((uint64_t) height * r->pitches[i] + r->offsets[i] > UINT_MAX)
r                 223 drivers/gpu/drm/drm_framebuffer.c 		if (block_size && r->pitches[i] < min_pitch) {
r                 224 drivers/gpu/drm/drm_framebuffer.c 			DRM_DEBUG_KMS("bad pitch %u for plane %d\n", r->pitches[i], i);
r                 228 drivers/gpu/drm/drm_framebuffer.c 		if (r->modifier[i] && !(r->flags & DRM_MODE_FB_MODIFIERS)) {
r                 230 drivers/gpu/drm/drm_framebuffer.c 				      r->modifier[i], i);
r                 234 drivers/gpu/drm/drm_framebuffer.c 		if (r->flags & DRM_MODE_FB_MODIFIERS &&
r                 235 drivers/gpu/drm/drm_framebuffer.c 		    r->modifier[i] != r->modifier[0]) {
r                 237 drivers/gpu/drm/drm_framebuffer.c 				      r->modifier[i], i);
r                 242 drivers/gpu/drm/drm_framebuffer.c 		switch (r->modifier[i]) {
r                 247 drivers/gpu/drm/drm_framebuffer.c 			if (r->pixel_format != DRM_FORMAT_NV12 ||
r                 249 drivers/gpu/drm/drm_framebuffer.c 					r->pitches[i] % 128) {
r                 261 drivers/gpu/drm/drm_framebuffer.c 		if (r->modifier[i]) {
r                 267 drivers/gpu/drm/drm_framebuffer.c 		if (!(r->flags & DRM_MODE_FB_MODIFIERS))
r                 270 drivers/gpu/drm/drm_framebuffer.c 		if (r->handles[i]) {
r                 275 drivers/gpu/drm/drm_framebuffer.c 		if (r->pitches[i]) {
r                 280 drivers/gpu/drm/drm_framebuffer.c 		if (r->offsets[i]) {
r                 291 drivers/gpu/drm/drm_framebuffer.c 				const struct drm_mode_fb_cmd2 *r,
r                 298 drivers/gpu/drm/drm_framebuffer.c 	if (r->flags & ~(DRM_MODE_FB_INTERLACED | DRM_MODE_FB_MODIFIERS)) {
r                 299 drivers/gpu/drm/drm_framebuffer.c 		DRM_DEBUG_KMS("bad framebuffer flags 0x%08x\n", r->flags);
r                 303 drivers/gpu/drm/drm_framebuffer.c 	if ((config->min_width > r->width) || (r->width > config->max_width)) {
r                 305 drivers/gpu/drm/drm_framebuffer.c 			  r->width, config->min_width, config->max_width);
r                 308 drivers/gpu/drm/drm_framebuffer.c 	if ((config->min_height > r->height) || (r->height > config->max_height)) {
r                 310 drivers/gpu/drm/drm_framebuffer.c 			  r->height, config->min_height, config->max_height);
r                 314 drivers/gpu/drm/drm_framebuffer.c 	if (r->flags & DRM_MODE_FB_MODIFIERS &&
r                 320 drivers/gpu/drm/drm_framebuffer.c 	ret = framebuffer_check(dev, r);
r                 324 drivers/gpu/drm/drm_framebuffer.c 	fb = dev->mode_config.funcs->fb_create(dev, file_priv, r);
r                 352 drivers/gpu/drm/drm_framebuffer.c 	struct drm_mode_fb_cmd2 *r = data;
r                 358 drivers/gpu/drm/drm_framebuffer.c 	fb = drm_internal_framebuffer_create(dev, r, file_priv);
r                 363 drivers/gpu/drm/drm_framebuffer.c 	r->fb_id = fb->base.id;
r                 508 drivers/gpu/drm/drm_framebuffer.c 	struct drm_mode_fb_cmd *r = data;
r                 515 drivers/gpu/drm/drm_framebuffer.c 	fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id);
r                 530 drivers/gpu/drm/drm_framebuffer.c 	r->height = fb->height;
r                 531 drivers/gpu/drm/drm_framebuffer.c 	r->width = fb->width;
r                 532 drivers/gpu/drm/drm_framebuffer.c 	r->depth = fb->format->depth;
r                 533 drivers/gpu/drm/drm_framebuffer.c 	r->bpp = fb->format->cpp[0] * 8;
r                 534 drivers/gpu/drm/drm_framebuffer.c 	r->pitch = fb->pitches[0];
r                 542 drivers/gpu/drm/drm_framebuffer.c 		r->handle = 0;
r                 547 drivers/gpu/drm/drm_framebuffer.c 	ret = fb->funcs->create_handle(fb, file_priv, &r->handle);
r                 579 drivers/gpu/drm/drm_framebuffer.c 	struct drm_mode_fb_dirty_cmd *r = data;
r                 588 drivers/gpu/drm/drm_framebuffer.c 	fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id);
r                 592 drivers/gpu/drm/drm_framebuffer.c 	num_clips = r->num_clips;
r                 593 drivers/gpu/drm/drm_framebuffer.c 	clips_ptr = (struct drm_clip_rect __user *)(unsigned long)r->clips_ptr;
r                 600 drivers/gpu/drm/drm_framebuffer.c 	flags = DRM_MODE_FB_DIRTY_FLAGS & r->flags;
r                 628 drivers/gpu/drm/drm_framebuffer.c 		ret = fb->funcs->dirty(fb, file_priv, flags, r->color,
r                1075 drivers/gpu/drm/drm_plane.c 		int r;
r                1077 drivers/gpu/drm/drm_plane.c 		r = drm_crtc_vblank_get(crtc);
r                1078 drivers/gpu/drm/drm_plane.c 		if (r)
r                1079 drivers/gpu/drm/drm_plane.c 			return r;
r                 223 drivers/gpu/drm/drm_rect.c void drm_rect_debug_print(const char *prefix, const struct drm_rect *r, bool fixed_point)
r                 226 drivers/gpu/drm/drm_rect.c 		DRM_DEBUG_KMS("%s" DRM_RECT_FP_FMT "\n", prefix, DRM_RECT_FP_ARG(r));
r                 228 drivers/gpu/drm/drm_rect.c 		DRM_DEBUG_KMS("%s" DRM_RECT_FMT "\n", prefix, DRM_RECT_ARG(r));
r                 248 drivers/gpu/drm/drm_rect.c void drm_rect_rotate(struct drm_rect *r,
r                 255 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 258 drivers/gpu/drm/drm_rect.c 			r->x1 = width - tmp.x2;
r                 259 drivers/gpu/drm/drm_rect.c 			r->x2 = width - tmp.x1;
r                 263 drivers/gpu/drm/drm_rect.c 			r->y1 = height - tmp.y2;
r                 264 drivers/gpu/drm/drm_rect.c 			r->y2 = height - tmp.y1;
r                 272 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 273 drivers/gpu/drm/drm_rect.c 		r->x1 = tmp.y1;
r                 274 drivers/gpu/drm/drm_rect.c 		r->x2 = tmp.y2;
r                 275 drivers/gpu/drm/drm_rect.c 		r->y1 = width - tmp.x2;
r                 276 drivers/gpu/drm/drm_rect.c 		r->y2 = width - tmp.x1;
r                 279 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 280 drivers/gpu/drm/drm_rect.c 		r->x1 = width - tmp.x2;
r                 281 drivers/gpu/drm/drm_rect.c 		r->x2 = width - tmp.x1;
r                 282 drivers/gpu/drm/drm_rect.c 		r->y1 = height - tmp.y2;
r                 283 drivers/gpu/drm/drm_rect.c 		r->y2 = height - tmp.y1;
r                 286 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 287 drivers/gpu/drm/drm_rect.c 		r->x1 = height - tmp.y2;
r                 288 drivers/gpu/drm/drm_rect.c 		r->x2 = height - tmp.y1;
r                 289 drivers/gpu/drm/drm_rect.c 		r->y1 = tmp.x1;
r                 290 drivers/gpu/drm/drm_rect.c 		r->y2 = tmp.x2;
r                 322 drivers/gpu/drm/drm_rect.c void drm_rect_rotate_inv(struct drm_rect *r,
r                 332 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 333 drivers/gpu/drm/drm_rect.c 		r->x1 = width - tmp.y2;
r                 334 drivers/gpu/drm/drm_rect.c 		r->x2 = width - tmp.y1;
r                 335 drivers/gpu/drm/drm_rect.c 		r->y1 = tmp.x1;
r                 336 drivers/gpu/drm/drm_rect.c 		r->y2 = tmp.x2;
r                 339 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 340 drivers/gpu/drm/drm_rect.c 		r->x1 = width - tmp.x2;
r                 341 drivers/gpu/drm/drm_rect.c 		r->x2 = width - tmp.x1;
r                 342 drivers/gpu/drm/drm_rect.c 		r->y1 = height - tmp.y2;
r                 343 drivers/gpu/drm/drm_rect.c 		r->y2 = height - tmp.y1;
r                 346 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 347 drivers/gpu/drm/drm_rect.c 		r->x1 = tmp.y1;
r                 348 drivers/gpu/drm/drm_rect.c 		r->x2 = tmp.y2;
r                 349 drivers/gpu/drm/drm_rect.c 		r->y1 = height - tmp.x2;
r                 350 drivers/gpu/drm/drm_rect.c 		r->y2 = height - tmp.x1;
r                 357 drivers/gpu/drm/drm_rect.c 		tmp = *r;
r                 360 drivers/gpu/drm/drm_rect.c 			r->x1 = width - tmp.x2;
r                 361 drivers/gpu/drm/drm_rect.c 			r->x2 = width - tmp.x1;
r                 365 drivers/gpu/drm/drm_rect.c 			r->y1 = height - tmp.y2;
r                 366 drivers/gpu/drm/drm_rect.c 			r->y2 = height - tmp.y1;
r                 392 drivers/gpu/drm/drm_sysfs.c 	int r;
r                 411 drivers/gpu/drm/drm_sysfs.c 	r = dev_set_name(kdev, minor_str, minor->index);
r                 412 drivers/gpu/drm/drm_sysfs.c 	if (r < 0)
r                 419 drivers/gpu/drm/drm_sysfs.c 	return ERR_PTR(r);
r                 285 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		const struct drm_etnaviv_gem_submit_reloc *r = relocs + i;
r                 289 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (unlikely(r->flags)) {
r                 294 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (r->submit_offset % 4) {
r                 296 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 				  r->submit_offset);
r                 301 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		off = r->submit_offset / 4;
r                 309 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		ret = submit_bo(submit, r->reloc_idx, &bo);
r                 313 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (r->reloc_offset > bo->obj->base.size - sizeof(*ptr)) {
r                 318 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		ptr[off] = bo->mapping->iova + r->reloc_offset;
r                 332 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		const struct drm_etnaviv_gem_submit_pmr *r = pmrs + i;
r                 336 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		ret = submit_bo(submit, r->read_idx, &bo);
r                 341 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (r->read_offset == 0) {
r                 346 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (r->read_offset >= bo->obj->base.size - sizeof(u32)) {
r                 351 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (r->flags & ~(ETNA_PM_PROCESS_PRE | ETNA_PM_PROCESS_POST)) {
r                 356 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		if (etnaviv_pm_req_validate(r, exec_state)) {
r                 361 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		submit->pmrs[i].flags = r->flags;
r                 362 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		submit->pmrs[i].domain = r->domain;
r                 363 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		submit->pmrs[i].signal = r->signal;
r                 364 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		submit->pmrs[i].sequence = r->sequence;
r                 365 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c 		submit->pmrs[i].offset = r->read_offset;
r                 520 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c int etnaviv_pm_req_validate(const struct drm_etnaviv_gem_submit_pmr *r,
r                 526 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c 	if (r->domain >= meta->nr_domains)
r                 529 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c 	dom = meta->domains + r->domain;
r                 531 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c 	if (r->signal >= dom->nr_signals)
r                  32 drivers/gpu/drm/etnaviv/etnaviv_perfmon.h int etnaviv_pm_req_validate(const struct drm_etnaviv_gem_submit_pmr *r,
r                 127 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	void __iomem *r = ctx->regs + reg;
r                 129 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	writel(readl(r) | bits, r);
r                 134 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	void __iomem *r = ctx->regs + reg;
r                 136 drivers/gpu/drm/exynos/exynos_drm_fimc.c 	writel(readl(r) & ~bits, r);
r                  79 drivers/gpu/drm/exynos/regs-scaler.h #define _SCALER_HCOEF_DELTA(r, c)	((r) * 0x10 + (c) * 0x4)
r                  80 drivers/gpu/drm/exynos/regs-scaler.h #define _SCALER_VCOEF_DELTA(r, c)	((r) * 0x8 + (c) * 0x4)
r                  82 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_YHCOEF(r, c)		(0x60 + _SCALER_HCOEF_DELTA((r), (c)))
r                  83 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_YVCOEF(r, c)		(0xf0 + _SCALER_VCOEF_DELTA((r), (c)))
r                  84 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CHCOEF(r, c)		(0x140 + _SCALER_HCOEF_DELTA((r), (c)))
r                  85 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CVCOEF(r, c)		(0x1d0 + _SCALER_VCOEF_DELTA((r), (c)))
r                 205 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_CFG_GET_BYTE_SWAP(r)		SCALER_GET(r, 6, 5)
r                 207 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_CFG_GET_COLOR_FORMAT(r)	SCALER_GET(r, 4, 0)
r                 231 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_SPAN_GET_C_SPAN(r)		SCALER_GET(r, 29, 16)
r                 233 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_SPAN_GET_Y_SPAN(r)		SCALER_GET(r, 13, 0)
r                 237 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_Y_POS_GET_YH_POS(r)		SCALER_GET(r, 31, 16)
r                 239 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_Y_POS_GET_YV_POS(r)		SCALER_GET(r, 15, 0)
r                 243 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_WH_GET_WIDTH(r)		SCALER_GET(r, 29, 16)
r                 245 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_WH_GET_HEIGHT(r)		SCALER_GET(r, 13, 0)
r                 249 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_C_POS_GET_CH_POS(r)		SCALER_GET(r, 31, 16)
r                 251 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_C_POS_GET_CV_POS(r)		SCALER_GET(r, 15, 0)
r                 255 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_CFG_GET_BYTE_SWAP(r)		SCALER_GET(r, 6, 5)
r                 257 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_CFG_GET_COLOR_FORMAT(r)	SCALER_GET(r, 4, 0)
r                 261 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_SPAN_GET_C_SPAN(r)		SCALER_GET(r, 29, 16)
r                 263 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_SPAN_GET_Y_SPAN(r)		SCALER_GET(r, 13, 0)
r                 267 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_WH_GET_WIDTH(r)		SCALER_GET(r, 29, 16)
r                 269 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_WH_GET_HEIGHT(r)		SCALER_GET(r, 13, 0)
r                 273 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_POS_GET_H_POS(r)		SCALER_GET(r, 29, 16)
r                 275 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_POS_GET_V_POS(r)		SCALER_GET(r, 13, 0)
r                 279 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_H_RATIO_GET(r)			SCALER_GET(r, 18, 0)
r                 283 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_V_RATIO_GET(r)			SCALER_GET(r, 18, 0)
r                 289 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_ROT_CFG_GET_ROTMODE(r)		SCALER_GET(r, 1, 0)
r                 297 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_COEF_GET(r, i)			\
r                 298 drivers/gpu/drm/exynos/regs-scaler.h 				(((r) >> SCALER_COEF_SHIFT(i)) & 0x1ff)
r                 303 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CSC_COEF_GET(r)			SCALER_GET(r, 11, 0)
r                 307 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DITH_CFG_GET_R_TYPE(r)		SCALER_GET(r, 8, 6)
r                 309 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DITH_CFG_GET_G_TYPE(r)		SCALER_GET(r, 5, 3)
r                 311 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DITH_CFG_GET_B_TYPE(r)		SCALER_GET(r, 2, 0)
r                 315 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_TIMEOUT_CTRL_GET_TIMER_VALUE(r)	SCALER_GET(r, 31, 16)
r                 317 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_TIMEOUT_CTRL_GET_TIMER_DIV(r)	SCALER_GET(r, 7, 4)
r                 322 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_TIMEOUT_CTRL_GET_TIMER_COUNT(r)	SCALER_GET(r, 31, 16)
r                 326 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_COLOR_GET_SEL(r)	SCALER_GET(r, 30, 29)
r                 329 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_COLOR_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
r                 331 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_COLOR_GET_COLOR0(r)	SCALER_GET(r, 23, 16)
r                 333 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_COLOR_GET_COLOR1(r)	SCALER_GET(r, 15, 8)
r                 335 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_COLOR_GET_COLOR2(r)	SCALER_GET(r, 7, 0)
r                 340 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_ALPHA_GET_SEL(r)	SCALER_GET(r, 30, 29)
r                 343 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_ALPHA_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
r                 345 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_BLEND_ALPHA_GET_ALPHA(r)	SCALER_GET(r, 7, 0)
r                 350 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_COLOR_GET_SEL(r)	SCALER_GET(r, 30, 29)
r                 353 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_COLOR_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
r                 355 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_COLOR_GET_COLOR0(r)	SCALER_GET(r, 23, 16)
r                 357 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_COLOR_GET_COLOR1(r)	SCALER_GET(r, 15, 8)
r                 359 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_COLOR_GET_COLOR2(r)	SCALER_GET(r, 7, 0)
r                 364 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_ALPHA_GET_SEL(r)	SCALER_GET(r, 30, 29)
r                 367 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_ALPHA_GET_OP_SEL(r)	SCALER_GET(r, 27, 24)
r                 369 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_BLEND_ALPHA_GET_ALPHA(r)	SCALER_GET(r, 7, 0)
r                 373 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_FILL_COLOR_GET_ALPHA(r)		SCALER_GET(r, 31, 24)
r                 375 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_FILL_COLOR_GET_FILL_COLOR0(r)	SCALER_GET(r, 23, 16)
r                 377 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_FILL_COLOR_GET_FILL_COLOR1(r)	SCALER_GET(r, 15, 8)
r                 379 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_FILL_COLOR_GET_FILL_COLOR2(r)	SCALER_GET(r, 7, 0)
r                 388 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_ADDR_Q_STATUS_GET_Y_WR_IDX(r)	SCALER_GET(r, 21, 16)
r                 391 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_ADDR_Q_STATUS_GET_CB_WR_IDX(r)	SCALER_GET(r, 13, 8)
r                 394 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_SRC_ADDR_Q_STATUS_GET_CR_WR_IDX(r)	SCALER_GET(r, 5, 0)
r                 399 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_ADDR_Q_STATUS_GET_Y_WR_IDX(r)	SCALER_GET(r, 21, 16)
r                 402 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_ADDR_Q_STATUS_GET_CB_WR_IDX(r)	SCALER_GET(r, 13, 8)
r                 405 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_DST_ADDR_Q_STATUS_GET_CR_WR_IDX(r)	SCALER_GET(r, 5, 0)
r                 408 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR00_10_GET_00(r)		SCALER_GET(r, 31, 16)
r                 409 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR00_10_GET_10(r)		SCALER_GET(r, 15, 0)
r                 412 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR20_30_GET_20(r)		SCALER_GET(r, 31, 16)
r                 413 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR20_30_GET_30(r)		SCALER_GET(r, 15, 0)
r                 416 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR01_11_GET_01(r)		SCALER_GET(r, 31, 16)
r                 417 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR01_11_GET_11(r)		SCALER_GET(r, 15, 0)
r                 420 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR21_31_GET_21(r)		SCALER_GET(r, 31, 16)
r                 421 drivers/gpu/drm/exynos/regs-scaler.h #define SCALER_CRC_COLOR21_31_GET_31(r)		SCALER_GET(r, 15, 0)
r                1243 drivers/gpu/drm/gma500/cdv_intel_dp.c 		     int r)
r                1245 drivers/gpu/drm/gma500/cdv_intel_dp.c 	return link_status[r - DP_LANE0_1_STATUS];
r                 442 drivers/gpu/drm/gma500/framebuffer.c 	struct gtt_range *r;
r                 454 drivers/gpu/drm/gma500/framebuffer.c 	r = container_of(obj, struct gtt_range, gem);
r                 455 drivers/gpu/drm/gma500/framebuffer.c 	return psb_framebuffer_create(dev, cmd, r);
r                  53 drivers/gpu/drm/gma500/gem.c 	struct gtt_range *r;
r                  61 drivers/gpu/drm/gma500/gem.c 	r = psb_gtt_alloc_range(dev, size, "gem", 0, PAGE_SIZE);
r                  62 drivers/gpu/drm/gma500/gem.c 	if (r == NULL) {
r                  67 drivers/gpu/drm/gma500/gem.c 	if (drm_gem_object_init(dev, &r->gem, size) != 0) {
r                  68 drivers/gpu/drm/gma500/gem.c 		psb_gtt_free_range(dev, r);
r                  74 drivers/gpu/drm/gma500/gem.c 	mapping_set_gfp_mask(r->gem.filp->f_mapping, GFP_KERNEL | __GFP_DMA32);
r                  76 drivers/gpu/drm/gma500/gem.c 	ret = drm_gem_handle_create(file, &r->gem, &handle);
r                  79 drivers/gpu/drm/gma500/gem.c 							&r->gem, size);
r                  80 drivers/gpu/drm/gma500/gem.c 		drm_gem_object_release(&r->gem);
r                  81 drivers/gpu/drm/gma500/gem.c 		psb_gtt_free_range(dev, r);
r                  85 drivers/gpu/drm/gma500/gem.c 	drm_gem_object_put_unlocked(&r->gem);
r                 130 drivers/gpu/drm/gma500/gem.c 	struct gtt_range *r;
r                 142 drivers/gpu/drm/gma500/gem.c 	r = container_of(obj, struct gtt_range, gem);	/* Get the gtt range */
r                 150 drivers/gpu/drm/gma500/gem.c 	if (r->mmapping == 0) {
r                 151 drivers/gpu/drm/gma500/gem.c 		err = psb_gtt_pin(r);
r                 157 drivers/gpu/drm/gma500/gem.c 		r->mmapping = 1;
r                 165 drivers/gpu/drm/gma500/gem.c 	if (r->stolen)
r                 166 drivers/gpu/drm/gma500/gem.c 		pfn = (dev_priv->stolen_base + r->offset) >> PAGE_SHIFT;
r                 168 drivers/gpu/drm/gma500/gem.c 		pfn = page_to_pfn(r->pages[page_offset]);
r                 143 drivers/gpu/drm/gma500/gma_display.c 	u16 *r, *g, *b;
r                 150 drivers/gpu/drm/gma500/gma_display.c 	r = crtc->gamma_store;
r                 151 drivers/gpu/drm/gma500/gma_display.c 	g = r + crtc->gamma_size;
r                 157 drivers/gpu/drm/gma500/gma_display.c 				  (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) |
r                 166 drivers/gpu/drm/gma500/gma_display.c 				(((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) |
r                  55 drivers/gpu/drm/gma500/gtt.c static u32 __iomem *psb_gtt_entry(struct drm_device *dev, struct gtt_range *r)
r                  60 drivers/gpu/drm/gma500/gtt.c 	offset = r->resource.start - dev_priv->gtt_mem->start;
r                  75 drivers/gpu/drm/gma500/gtt.c static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r,
r                  83 drivers/gpu/drm/gma500/gtt.c 	if (r->pages == NULL) {
r                  88 drivers/gpu/drm/gma500/gtt.c 	WARN_ON(r->stolen);	/* refcount these maybe ? */
r                  90 drivers/gpu/drm/gma500/gtt.c 	gtt_slot = psb_gtt_entry(dev, r);
r                  91 drivers/gpu/drm/gma500/gtt.c 	pages = r->pages;
r                  95 drivers/gpu/drm/gma500/gtt.c 		set_pages_array_wc(pages, r->npage);
r                  99 drivers/gpu/drm/gma500/gtt.c 	for (i = r->roll; i < r->npage; i++) {
r                 100 drivers/gpu/drm/gma500/gtt.c 		pte = psb_gtt_mask_pte(page_to_pfn(r->pages[i]),
r                 104 drivers/gpu/drm/gma500/gtt.c 	for (i = 0; i < r->roll; i++) {
r                 105 drivers/gpu/drm/gma500/gtt.c 		pte = psb_gtt_mask_pte(page_to_pfn(r->pages[i]),
r                 124 drivers/gpu/drm/gma500/gtt.c static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
r                 131 drivers/gpu/drm/gma500/gtt.c 	WARN_ON(r->stolen);
r                 133 drivers/gpu/drm/gma500/gtt.c 	gtt_slot = psb_gtt_entry(dev, r);
r                 137 drivers/gpu/drm/gma500/gtt.c 	for (i = 0; i < r->npage; i++)
r                 140 drivers/gpu/drm/gma500/gtt.c 	set_pages_array_wb(r->pages, r->npage);
r                 153 drivers/gpu/drm/gma500/gtt.c void psb_gtt_roll(struct drm_device *dev, struct gtt_range *r, int roll)
r                 159 drivers/gpu/drm/gma500/gtt.c 	if (roll >= r->npage) {
r                 164 drivers/gpu/drm/gma500/gtt.c 	r->roll = roll;
r                 168 drivers/gpu/drm/gma500/gtt.c 	if (!r->stolen && !r->in_gart)
r                 171 drivers/gpu/drm/gma500/gtt.c 	gtt_slot = psb_gtt_entry(dev, r);
r                 173 drivers/gpu/drm/gma500/gtt.c 	for (i = r->roll; i < r->npage; i++) {
r                 174 drivers/gpu/drm/gma500/gtt.c 		pte = psb_gtt_mask_pte(page_to_pfn(r->pages[i]),
r                 178 drivers/gpu/drm/gma500/gtt.c 	for (i = 0; i < r->roll; i++) {
r                 179 drivers/gpu/drm/gma500/gtt.c 		pte = psb_gtt_mask_pte(page_to_pfn(r->pages[i]),
r                 329 drivers/gpu/drm/gma500/gtt.c 	struct resource *r = dev_priv->gtt_mem;
r                 335 drivers/gpu/drm/gma500/gtt.c 		start = r->start;
r                 336 drivers/gpu/drm/gma500/gtt.c 		end = r->start + dev_priv->gtt.stolen_size - 1;
r                 339 drivers/gpu/drm/gma500/gtt.c 		start = r->start + dev_priv->gtt.stolen_size;
r                 340 drivers/gpu/drm/gma500/gtt.c 		end = r->end;
r                 355 drivers/gpu/drm/gma500/gtt.c 		gt->offset = gt->resource.start - r->start;
r                 557 drivers/gpu/drm/gma500/gtt.c 	struct resource *r = dev_priv->gtt_mem->child;
r                 565 drivers/gpu/drm/gma500/gtt.c 	while (r != NULL) {
r                 566 drivers/gpu/drm/gma500/gtt.c 		range = container_of(r, struct gtt_range, resource);
r                 572 drivers/gpu/drm/gma500/gtt.c 		r = r->sibling;
r                  63 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c #define LPC_READ_REG(chan, r) inl((chan)->reg + (r))
r                  64 drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c #define LPC_WRITE_REG(chan, r, val) outl((val), (chan)->reg + (r))
r                 226 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	int r;
r                 245 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	r = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
r                 246 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < 0) {
r                 248 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			__func__, reg, value, r);
r                 249 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 		return r;
r                 252 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < ARRAY_SIZE(msgs)) {
r                 254 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			__func__, reg, value, r);
r                 274 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	int r;
r                 295 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	r = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs));
r                 296 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < 0) {
r                 298 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			reg, r);
r                 299 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 		return r;
r                 302 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < ARRAY_SIZE(msgs)) {
r                 304 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			reg, r);
r                 803 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	int r;
r                 809 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	r = i2c_add_driver(&cmi_lcd_i2c_driver);
r                 810 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < 0)
r                 813 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			__func__, cmi_lcd_i2c_driver.driver.name, r);
r                 815 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	r = i2c_add_driver(&tc35876x_bridge_i2c_driver);
r                 816 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 	if (r < 0)
r                 819 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c 			__func__, tc35876x_bridge_i2c_driver.driver.name, r);
r                1232 drivers/gpu/drm/i915/display/intel_ddi.c 	int n, p, r;
r                1267 drivers/gpu/drm/i915/display/intel_ddi.c 	r = wrpll & WRPLL_DIVIDER_REF_MASK;
r                1272 drivers/gpu/drm/i915/display/intel_ddi.c 	return (refclk * n * 100) / (p * r);
r                2720 drivers/gpu/drm/i915/display/intel_display.c 			struct drm_rect r;
r                2742 drivers/gpu/drm/i915/display/intel_display.c 			r.x1 = x;
r                2743 drivers/gpu/drm/i915/display/intel_display.c 			r.y1 = y;
r                2744 drivers/gpu/drm/i915/display/intel_display.c 			r.x2 = x + width;
r                2745 drivers/gpu/drm/i915/display/intel_display.c 			r.y2 = y + height;
r                2746 drivers/gpu/drm/i915/display/intel_display.c 			drm_rect_rotate(&r,
r                2750 drivers/gpu/drm/i915/display/intel_display.c 			x = r.x1;
r                2751 drivers/gpu/drm/i915/display/intel_display.c 			y = r.y1;
r                2864 drivers/gpu/drm/i915/display/intel_display.c 			struct drm_rect r;
r                2867 drivers/gpu/drm/i915/display/intel_display.c 			r.x1 = x;
r                2868 drivers/gpu/drm/i915/display/intel_display.c 			r.y1 = y;
r                2869 drivers/gpu/drm/i915/display/intel_display.c 			r.x2 = x + width;
r                2870 drivers/gpu/drm/i915/display/intel_display.c 			r.y2 = y + height;
r                2871 drivers/gpu/drm/i915/display/intel_display.c 			drm_rect_rotate(&r,
r                2875 drivers/gpu/drm/i915/display/intel_display.c 			x = r.x1;
r                2876 drivers/gpu/drm/i915/display/intel_display.c 			y = r.y1;
r                12012 drivers/gpu/drm/i915/display/intel_display.c 		int r;
r                12017 drivers/gpu/drm/i915/display/intel_display.c 		r = snprintf(str, len, "%s%s",
r                12019 drivers/gpu/drm/i915/display/intel_display.c 		if (r >= len)
r                12021 drivers/gpu/drm/i915/display/intel_display.c 		str += r;
r                12022 drivers/gpu/drm/i915/display/intel_display.c 		len -= r;
r                1767 drivers/gpu/drm/i915/display/intel_dp.c 		int r = snprintf(str, len, "%s%d", i ? ", " : "", array[i]);
r                1768 drivers/gpu/drm/i915/display/intel_dp.c 		if (r >= len)
r                1770 drivers/gpu/drm/i915/display/intel_dp.c 		str += r;
r                1771 drivers/gpu/drm/i915/display/intel_dp.c 		len -= r;
r                4332 drivers/gpu/drm/i915/display/intel_dp.c 		ssize_t r;
r                4334 drivers/gpu/drm/i915/display/intel_dp.c 		r = drm_dp_dpcd_readb(&intel_dp->aux, DP_SINK_COUNT, &count);
r                4335 drivers/gpu/drm/i915/display/intel_dp.c 		if (r < 1)
r                 258 drivers/gpu/drm/i915/display/intel_psr.c 	ssize_t r;
r                 267 drivers/gpu/drm/i915/display/intel_psr.c 	r = drm_dp_dpcd_read(&intel_dp->aux, DP_PSR2_SU_X_GRANULARITY, &val, 2);
r                 268 drivers/gpu/drm/i915/display/intel_psr.c 	if (r != 2)
r                 275 drivers/gpu/drm/i915/display/intel_psr.c 	if (r != 2 || val == 0)
r                1465 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 		struct drm_i915_gem_relocation_entry *r = stack;
r                1479 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 		copied = __copy_from_user_inatomic(r, urelocs, count * sizeof(r[0]));
r                1488 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 			u64 offset = eb_relocate_entry(eb, vma, r);
r                1517 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 				if (unlikely(__put_user(offset, &urelocs[r-stack].presumed_offset))) {
r                1522 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c 		} while (r++, --count);
r                  70 drivers/gpu/drm/i915/gem/i915_gem_stolen.c 	struct resource *r;
r                 122 drivers/gpu/drm/i915/gem/i915_gem_stolen.c 	r = devm_request_mem_region(dev_priv->drm.dev, dsm->start,
r                 125 drivers/gpu/drm/i915/gem/i915_gem_stolen.c 	if (r == NULL) {
r                 135 drivers/gpu/drm/i915/gem/i915_gem_stolen.c 		r = devm_request_mem_region(dev_priv->drm.dev, dsm->start + 1,
r                 142 drivers/gpu/drm/i915/gem/i915_gem_stolen.c 		if (r == NULL && !IS_GEN(dev_priv, 3)) {
r                  96 drivers/gpu/drm/i915/gt/intel_renderstate.c 			u64 r = s + so->vma->node.start;
r                  97 drivers/gpu/drm/i915/gt/intel_renderstate.c 			s = lower_32_bits(r);
r                 104 drivers/gpu/drm/i915/gt/intel_renderstate.c 				s = upper_32_bits(r);
r                 976 drivers/gpu/drm/i915/gvt/handlers.c 			u32 r = vgpu_vreg(vgpu, offset + 8 + t * 4);
r                 978 drivers/gpu/drm/i915/gvt/handlers.c 			buf[t * 4] = (r >> 24) & 0xff;
r                 979 drivers/gpu/drm/i915/gvt/handlers.c 			buf[t * 4 + 1] = (r >> 16) & 0xff;
r                 980 drivers/gpu/drm/i915/gvt/handlers.c 			buf[t * 4 + 2] = (r >> 8) & 0xff;
r                 981 drivers/gpu/drm/i915/gvt/handlers.c 			buf[t * 4 + 3] = r & 0xff;
r                1810 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_F(reg, s, f, am, rm, d, r, w) do { \
r                1812 drivers/gpu/drm/i915/gvt/handlers.c 		f, s, am, rm, d, r, w); \
r                1820 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_DH(reg, d, r, w) \
r                1821 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(reg, 4, 0, 0, 0, d, r, w)
r                1823 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_DFH(reg, d, f, r, w) \
r                1824 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(reg, 4, f, 0, 0, d, r, w)
r                1826 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_GM(reg, d, r, w) \
r                1827 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(reg, 4, F_GMADR, 0xFFFFF000, 0, d, r, w)
r                1829 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_GM_RDR(reg, d, r, w) \
r                1830 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(reg, 4, F_GMADR | F_CMD_ACCESS, 0xFFFFF000, 0, d, r, w)
r                1832 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RO(reg, d, f, rm, r, w) \
r                1833 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(reg, 4, F_RO | f, 0, rm, d, r, w)
r                1835 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_F(prefix, s, f, am, rm, d, r, w) do { \
r                1836 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(prefix(RENDER_RING_BASE), s, f, am, rm, d, r, w); \
r                1837 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(prefix(BLT_RING_BASE), s, f, am, rm, d, r, w); \
r                1838 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(prefix(GEN6_BSD_RING_BASE), s, f, am, rm, d, r, w); \
r                1839 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_F(prefix(VEBOX_RING_BASE), s, f, am, rm, d, r, w); \
r                1841 drivers/gpu/drm/i915/gvt/handlers.c 		MMIO_F(prefix(GEN8_BSD2_RING_BASE), s, f, am, rm, d, r, w); \
r                1847 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_DFH(prefix, d, f, r, w) \
r                1848 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_RING_F(prefix, 4, f, 0, 0, d, r, w)
r                1850 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_GM(prefix, d, r, w) \
r                1851 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_RING_F(prefix, 4, F_GMADR, 0xFFFF0000, 0, d, r, w)
r                1853 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_GM_RDR(prefix, d, r, w) \
r                1854 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_RING_F(prefix, 4, F_GMADR | F_CMD_ACCESS, 0xFFFF0000, 0, d, r, w)
r                1856 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_RO(prefix, d, f, rm, r, w) \
r                1857 drivers/gpu/drm/i915/gvt/handlers.c 	MMIO_RING_F(prefix, 4, F_RO | f, 0, rm, d, r, w)
r                  40 drivers/gpu/drm/i915/i915_mm.c 	struct remap_pfn *r = data;
r                  43 drivers/gpu/drm/i915/i915_mm.c 	set_pte_at(r->mm, addr, pte, pte_mkspecial(pfn_pte(r->pfn, r->prot)));
r                  44 drivers/gpu/drm/i915/i915_mm.c 	r->pfn++;
r                  63 drivers/gpu/drm/i915/i915_mm.c 	struct remap_pfn r;
r                  70 drivers/gpu/drm/i915/i915_mm.c 	r.mm = vma->vm_mm;
r                  71 drivers/gpu/drm/i915/i915_mm.c 	r.pfn = pfn;
r                  72 drivers/gpu/drm/i915/i915_mm.c 	r.prot = __pgprot((pgprot_val(iomap->prot) & _PAGE_CACHE_MASK) |
r                  75 drivers/gpu/drm/i915/i915_mm.c 	err = apply_to_page_range(r.mm, addr, size, remap_pfn, &r);
r                  77 drivers/gpu/drm/i915/i915_mm.c 		zap_vma_ptes(vma, addr, (r.pfn - pfn) << PAGE_SHIFT);
r                 185 drivers/gpu/drm/i915/i915_reg.h #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
r                 582 drivers/gpu/drm/i915/intel_csr.c 	u32 r;
r                 589 drivers/gpu/drm/i915/intel_csr.c 	r = parse_csr_fw_css(csr, css_header, fw->size);
r                 590 drivers/gpu/drm/i915/intel_csr.c 	if (!r)
r                 593 drivers/gpu/drm/i915/intel_csr.c 	readcount += r;
r                 597 drivers/gpu/drm/i915/intel_csr.c 	r = parse_csr_fw_package(csr, package_header, si, fw->size - readcount);
r                 598 drivers/gpu/drm/i915/intel_csr.c 	if (!r)
r                 601 drivers/gpu/drm/i915/intel_csr.c 	readcount += r;
r                3372 drivers/gpu/drm/i915/intel_pm.c 		const struct intel_wm_level *r;
r                3376 drivers/gpu/drm/i915/intel_pm.c 		r = &merged->wm[level];
r                3384 drivers/gpu/drm/i915/intel_pm.c 			(r->pri_val << WM1_LP_SR_SHIFT) |
r                3385 drivers/gpu/drm/i915/intel_pm.c 			r->cur_val;
r                3387 drivers/gpu/drm/i915/intel_pm.c 		if (r->enable)
r                3392 drivers/gpu/drm/i915/intel_pm.c 				r->fbc_val << WM1_LP_FBC_SHIFT_BDW;
r                3395 drivers/gpu/drm/i915/intel_pm.c 				r->fbc_val << WM1_LP_FBC_SHIFT;
r                3401 drivers/gpu/drm/i915/intel_pm.c 		if (INTEL_GEN(dev_priv) <= 6 && r->spr_val) {
r                3403 drivers/gpu/drm/i915/intel_pm.c 			results->wm_lp_spr[wm_lp - 1] = WM1S_LP_EN | r->spr_val;
r                3405 drivers/gpu/drm/i915/intel_pm.c 			results->wm_lp_spr[wm_lp - 1] = r->spr_val;
r                3411 drivers/gpu/drm/i915/intel_pm.c 		const struct intel_wm_level *r =
r                3414 drivers/gpu/drm/i915/intel_pm.c 		if (WARN_ON(!r->enable))
r                3420 drivers/gpu/drm/i915/intel_pm.c 			(r->pri_val << WM0_PIPE_PLANE_SHIFT) |
r                3421 drivers/gpu/drm/i915/intel_pm.c 			(r->spr_val << WM0_PIPE_SPRITE_SHIFT) |
r                3422 drivers/gpu/drm/i915/intel_pm.c 			r->cur_val;
r                  81 drivers/gpu/drm/i915/intel_uncore.h 						  i915_reg_t r);
r                  83 drivers/gpu/drm/i915/intel_uncore.h 						   i915_reg_t r);
r                  86 drivers/gpu/drm/i915/intel_uncore.h 			 i915_reg_t r, bool trace);
r                  88 drivers/gpu/drm/i915/intel_uncore.h 			  i915_reg_t r, bool trace);
r                  90 drivers/gpu/drm/i915/intel_uncore.h 			  i915_reg_t r, bool trace);
r                  92 drivers/gpu/drm/i915/intel_uncore.h 			  i915_reg_t r, bool trace);
r                  95 drivers/gpu/drm/i915/intel_uncore.h 			    i915_reg_t r, u8 val, bool trace);
r                  97 drivers/gpu/drm/i915/intel_uncore.h 			    i915_reg_t r, u16 val, bool trace);
r                  99 drivers/gpu/drm/i915/intel_uncore.h 			    i915_reg_t r, u32 val, bool trace);
r                 426 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		struct reserved *r;
r                 428 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		r = kcalloc(1, sizeof(*r), GFP_KERNEL);
r                 429 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		if (!r) {
r                 434 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		if (i915_gem_gtt_insert(&i915->ggtt.vm, &r->node,
r                 438 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 			kfree(r);
r                 442 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		r->next = reserved;
r                 443 drivers/gpu/drm/i915/selftests/i915_gem_evict.c 		reserved = r;
r                 356 drivers/gpu/drm/i915/selftests/i915_vma.c static unsigned long rotated_index(const struct intel_rotation_info *r,
r                 361 drivers/gpu/drm/i915/selftests/i915_vma.c 	return (r->plane[n].stride * (r->plane[n].height - y - 1) +
r                 362 drivers/gpu/drm/i915/selftests/i915_vma.c 		r->plane[n].offset + x);
r                 367 drivers/gpu/drm/i915/selftests/i915_vma.c 	       const struct intel_rotation_info *r, unsigned int n,
r                 372 drivers/gpu/drm/i915/selftests/i915_vma.c 	for (x = 0; x < r->plane[n].width; x++) {
r                 373 drivers/gpu/drm/i915/selftests/i915_vma.c 		for (y = 0; y < r->plane[n].height; y++) {
r                 383 drivers/gpu/drm/i915/selftests/i915_vma.c 			src_idx = rotated_index(r, n, x, y);
r                 406 drivers/gpu/drm/i915/selftests/i915_vma.c static unsigned long remapped_index(const struct intel_remapped_info *r,
r                 411 drivers/gpu/drm/i915/selftests/i915_vma.c 	return (r->plane[n].stride * y +
r                 412 drivers/gpu/drm/i915/selftests/i915_vma.c 		r->plane[n].offset + x);
r                 417 drivers/gpu/drm/i915/selftests/i915_vma.c 		const struct intel_remapped_info *r, unsigned int n,
r                 424 drivers/gpu/drm/i915/selftests/i915_vma.c 	for (y = 0; y < r->plane[n].height; y++) {
r                 425 drivers/gpu/drm/i915/selftests/i915_vma.c 		for (x = 0; x < r->plane[n].width; x++) {
r                 439 drivers/gpu/drm/i915/selftests/i915_vma.c 			src_idx = remapped_index(r, n, x, y);
r                 140 drivers/gpu/drm/i915/selftests/intel_uncore.c 	const struct reg *r;
r                 170 drivers/gpu/drm/i915/selftests/intel_uncore.c 	for (r = registers; r->name; r++)
r                 171 drivers/gpu/drm/i915/selftests/intel_uncore.c 		if (r->platforms & INTEL_INFO(i915)->gen_mask)
r                 173 drivers/gpu/drm/i915/selftests/intel_uncore.c 	if (!r->name) {
r                 190 drivers/gpu/drm/i915/selftests/intel_uncore.c 		i915_reg_t mmio = _MMIO(engine->mmio_base + r->offset);
r                 191 drivers/gpu/drm/i915/selftests/intel_uncore.c 		u32 __iomem *reg = uncore->regs + engine->mmio_base + r->offset;
r                 235 drivers/gpu/drm/i915/selftests/intel_uncore.c 			       engine->name, r->name);
r                 243 drivers/gpu/drm/i915/selftests/intel_uncore.c 			       engine->name, r->name, readl(reg), fw_domains);
r                 229 drivers/gpu/drm/mga/mga_drv.h #define ISREG0(r)	(r >= DWGREG0 && r <= DWGREG0_END)
r                 230 drivers/gpu/drm/mga/mga_drv.h #define DMAREG0(r)	(u8)((r - DWGREG0) >> 2)
r                 231 drivers/gpu/drm/mga/mga_drv.h #define DMAREG1(r)	(u8)(((r - DWGREG1) >> 2) | 0x80)
r                 232 drivers/gpu/drm/mga/mga_drv.h #define DMAREG(r)	(ISREG0(r) ? DMAREG0(r) : DMAREG1(r))
r                 144 drivers/gpu/drm/mgag200/mgag200_main.c 	int r;
r                 152 drivers/gpu/drm/mgag200/mgag200_main.c 	r = mgag200_device_init(dev, flags);
r                 153 drivers/gpu/drm/mgag200/mgag200_main.c 	if (r) {
r                 154 drivers/gpu/drm/mgag200/mgag200_main.c 		dev_err(&dev->pdev->dev, "Fatal error during GPU init: %d\n", r);
r                 155 drivers/gpu/drm/mgag200/mgag200_main.c 		return r;
r                 157 drivers/gpu/drm/mgag200/mgag200_main.c 	r = mgag200_mm_init(mdev);
r                 158 drivers/gpu/drm/mgag200/mgag200_main.c 	if (r)
r                 169 drivers/gpu/drm/mgag200/mgag200_main.c 	r = mgag200_modeset_init(mdev);
r                 170 drivers/gpu/drm/mgag200/mgag200_main.c 	if (r) {
r                 171 drivers/gpu/drm/mgag200/mgag200_main.c 		dev_err(&dev->pdev->dev, "Fatal error during modeset init: %d\n", r);
r                 190 drivers/gpu/drm/mgag200/mgag200_main.c 	r = drm_fbdev_generic_setup(mdev->dev, 0);
r                 191 drivers/gpu/drm/mgag200/mgag200_main.c 	if (r)
r                 202 drivers/gpu/drm/mgag200/mgag200_main.c 	return r;
r                  46 drivers/gpu/drm/mgag200/mgag200_mode.c 		u8 r, b;
r                  50 drivers/gpu/drm/mgag200/mgag200_mode.c 					r = b = 0;
r                  52 drivers/gpu/drm/mgag200/mgag200_mode.c 					r = *r_ptr++ >> 8;
r                  58 drivers/gpu/drm/mgag200/mgag200_mode.c 				r = *r_ptr++ >> 8;
r                  62 drivers/gpu/drm/mgag200/mgag200_mode.c 			WREG8(DAC_INDEX + MGA1064_COL_PAL, r);
r                 282 drivers/gpu/drm/msm/adreno/adreno_device.c 		unsigned int r, patch;
r                 284 drivers/gpu/drm/msm/adreno/adreno_device.c 		if (sscanf(compat, "qcom,adreno-%u.%u", &r, &patch) == 2 ||
r                 285 drivers/gpu/drm/msm/adreno/adreno_device.c 		    sscanf(compat, "amd,imageon-%u.%u", &r, &patch) == 2) {
r                 286 drivers/gpu/drm/msm/adreno/adreno_device.c 			rev->core = r / 100;
r                 287 drivers/gpu/drm/msm/adreno/adreno_device.c 			r %= 100;
r                 288 drivers/gpu/drm/msm/adreno/adreno_device.c 			rev->major = r / 10;
r                 289 drivers/gpu/drm/msm/adreno/adreno_device.c 			r %= 10;
r                 290 drivers/gpu/drm/msm/adreno/adreno_device.c 			rev->minor = r;
r                  29 drivers/gpu/drm/msm/adreno/adreno_gpu.c 	struct resource r;
r                  53 drivers/gpu/drm/msm/adreno/adreno_gpu.c 	ret = of_address_to_resource(mem_np, 0, &r);
r                  58 drivers/gpu/drm/msm/adreno/adreno_gpu.c 	mem_phys = r.start;
r                  74 drivers/gpu/drm/msm/adreno/adreno_gpu.c 	if (mem_size > resource_size(&r)) {
r                 408 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		struct drm_rect *r = &cstate->lm_bounds[i];
r                 409 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		r->x1 = crtc_split_width * i;
r                 410 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		r->y1 = 0;
r                 411 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		r->x2 = r->x1 + crtc_split_width;
r                 412 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		r->y2 = adj_mode->vdisplay;
r                 414 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c 		trace_dpu_crtc_setup_lm_bounds(DRMID(crtc), i, r);
r                  33 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define INTERLEAVED_RGB_FMT(fmt, a, r, g, b, e0, e1, e2, e3, uc, alpha,   \
r                  40 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                  52 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define INTERLEAVED_RGB_FMT_TILED(fmt, a, r, g, b, e0, e1, e2, e3, uc,    \
r                  59 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                  72 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define INTERLEAVED_YUV_FMT(fmt, a, r, g, b, e0, e1, e2, e3,              \
r                  79 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                  91 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define PSEUDO_YUV_FMT(fmt, a, r, g, b, e0, e1, chroma, flg, fm, np)      \
r                  97 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                 109 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define PSEUDO_YUV_FMT_TILED(fmt, a, r, g, b, e0, e1, chroma,             \
r                 116 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                 128 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define PSEUDO_YUV_FMT_LOOSE(fmt, a, r, g, b, e0, e1, chroma, flg, fm, np)\
r                 134 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                 146 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define PSEUDO_YUV_FMT_LOOSE_TILED(fmt, a, r, g, b, e0, e1, chroma,       \
r                 153 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                 166 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c #define PLANAR_YUV_FMT(fmt, a, r, g, b, e0, e1, e2, alpha, chroma, bp,    \
r                 173 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.bits = { g, b, r, a },                                           \
r                  15 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c #define RESERVED_BY_OTHER(h, r)  \
r                  16 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c 		((h)->enc_id && (h)->enc_id != r)
r                  63 drivers/gpu/drm/msm/disp/mdp_format.c #define FMT(name, a, r, g, b, e0, e1, e2, e3, alpha, tight, c, cnt, fp, cs, yuv) { \
r                  66 drivers/gpu/drm/msm/disp/mdp_format.c 		.bpc_r = BPC ## r,                               \
r                 335 drivers/gpu/drm/msm/msm_drv.c 		struct resource r;
r                 336 drivers/gpu/drm/msm/msm_drv.c 		ret = of_address_to_resource(node, 0, &r);
r                 340 drivers/gpu/drm/msm/msm_drv.c 		size = r.end - r.start;
r                 341 drivers/gpu/drm/msm/msm_drv.c 		DRM_INFO("using VRAM carveout: %lx@%pa\n", size, &r.start);
r                 766 drivers/gpu/drm/nouveau/dispnv04/crtc.c 	struct rgb { uint8_t r, g, b; } __attribute__((packed)) *rgbs;
r                 767 drivers/gpu/drm/nouveau/dispnv04/crtc.c 	u16 *r, *g, *b;
r                 771 drivers/gpu/drm/nouveau/dispnv04/crtc.c 	r = crtc->gamma_store;
r                 772 drivers/gpu/drm/nouveau/dispnv04/crtc.c 	g = r + crtc->gamma_size;
r                 776 drivers/gpu/drm/nouveau/dispnv04/crtc.c 		rgbs[i].r = *r++ >> 8;
r                 795 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,
r                 246 drivers/gpu/drm/nouveau/dispnv04/dac.c #define RGB_TEST_DATA(r, g, b) (r << 0 | g << 10 | b << 20)
r                  56 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c #define RGB_TEST_DATA(r, g, b) (r << 0 | g << 10 | b << 20)
r                 844 drivers/gpu/drm/nouveau/dispnv50/disp.c 	bool r;
r                 859 drivers/gpu/drm/nouveau/dispnv50/disp.c 	r = drm_dp_mst_allocate_vcpi(&mstm->mgr, mstc->port, armh->dp.pbn,
r                 861 drivers/gpu/drm/nouveau/dispnv50/disp.c 	if (!r)
r                 153 drivers/gpu/drm/nouveau/dispnv50/head.c 		u32 r = (asyh->view.oH << 19) / asyh->view.oW;
r                 158 drivers/gpu/drm/nouveau/dispnv50/head.c 			else    asyh->view.oH  = ((asyh->view.oW * r) + (r / 2)) >> 19;
r                 162 drivers/gpu/drm/nouveau/dispnv50/head.c 			else    asyh->view.oH  = ((asyh->view.oW * r) + (r / 2)) >> 19;
r                 195 drivers/gpu/drm/nouveau/dispnv50/head.c 			u32 r = (asyh->view.iW << 19) / asyh->view.iH;
r                 196 drivers/gpu/drm/nouveau/dispnv50/head.c 			asyh->view.oW = ((asyh->view.oH * r) + (r / 2)) >> 19;
r                 199 drivers/gpu/drm/nouveau/dispnv50/head.c 			u32 r = (asyh->view.iH << 19) / asyh->view.iW;
r                 200 drivers/gpu/drm/nouveau/dispnv50/head.c 			asyh->view.oH = ((asyh->view.oW * r) + (r / 2)) >> 19;
r                 108 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 		u16 r = drm_color_lut_extract(in->  red + 0, 16);
r                 114 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 			ri = (drm_color_lut_extract(in->  red, 16) - r) / 4;
r                 120 drivers/gpu/drm/nouveau/dispnv50/headc57d.c 			writew(r + ri * i, mem + 0);
r                 143 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c 		u16 r = fixedU0_16_FP16(drm_color_lut_extract(in->  red, 16));
r                 146 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c 		writew(r, mem + 0);
r                   5 drivers/gpu/drm/nouveau/include/nvif/unpack.h #define nvif_unvers(r,d,s,m) ({                                                \
r                   6 drivers/gpu/drm/nouveau/include/nvif/unpack.h 	void **_data = (d); __u32 *_size = (s); int _ret = (r);                \
r                  14 drivers/gpu/drm/nouveau/include/nvif/unpack.h #define nvif_unpack(r,d,s,m,vl,vh,x) ({                                        \
r                  16 drivers/gpu/drm/nouveau/include/nvif/unpack.h 	int _ret = (r), _vl = (vl), _vh = (vh);                                \
r                 352 drivers/gpu/drm/nouveau/nouveau_acpi.c 	bool r;
r                 354 drivers/gpu/drm/nouveau/nouveau_acpi.c 	r = nouveau_dsm_detect();
r                 355 drivers/gpu/drm/nouveau/nouveau_acpi.c 	if (!r)
r                1590 drivers/gpu/drm/nouveau/nouveau_bo.c 	int r;
r                1619 drivers/gpu/drm/nouveau/nouveau_bo.c 	r = ttm_pool_populate(ttm, ctx);
r                1620 drivers/gpu/drm/nouveau/nouveau_bo.c 	if (r) {
r                1621 drivers/gpu/drm/nouveau/nouveau_bo.c 		return r;
r                 619 drivers/gpu/drm/nouveau/nouveau_gem.c 		struct drm_nouveau_gem_pushbuf_reloc *r = &reloc[i];
r                 624 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (unlikely(r->bo_index >= req->nr_buffers)) {
r                 630 drivers/gpu/drm/nouveau/nouveau_gem.c 		b = &bo[r->bo_index];
r                 634 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (unlikely(r->reloc_bo_index >= req->nr_buffers)) {
r                 639 drivers/gpu/drm/nouveau/nouveau_gem.c 		nvbo = (void *)(unsigned long)bo[r->reloc_bo_index].user_priv;
r                 641 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (unlikely(r->reloc_bo_offset + 4 >
r                 658 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (r->flags & NOUVEAU_GEM_RELOC_LOW)
r                 659 drivers/gpu/drm/nouveau/nouveau_gem.c 			data = b->presumed.offset + r->data;
r                 661 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (r->flags & NOUVEAU_GEM_RELOC_HIGH)
r                 662 drivers/gpu/drm/nouveau/nouveau_gem.c 			data = (b->presumed.offset + r->data) >> 32;
r                 664 drivers/gpu/drm/nouveau/nouveau_gem.c 			data = r->data;
r                 666 drivers/gpu/drm/nouveau/nouveau_gem.c 		if (r->flags & NOUVEAU_GEM_RELOC_OR) {
r                 668 drivers/gpu/drm/nouveau/nouveau_gem.c 				data |= r->tor;
r                 670 drivers/gpu/drm/nouveau/nouveau_gem.c 				data |= r->vor;
r                 679 drivers/gpu/drm/nouveau/nouveau_gem.c 		nouveau_bo_wr32(nvbo, r->reloc_bo_offset >> 2, data);
r                 753 drivers/gpu/drm/nouveau/nouveau_reg.h #define NV50_PDISPLAY_CRTC_P(i, r)        ((i) * 0x540 + NV50_PDISPLAY_CRTC_##r)
r                 754 drivers/gpu/drm/nouveau/nouveau_reg.h #define NV50_PDISPLAY_CRTC_C(i, r)    (4 + (i) * 0x540 + NV50_PDISPLAY_CRTC_##r)
r                 804 drivers/gpu/drm/nouveau/nouveau_reg.h #define NV50_PDISPLAY_VGACRTC(r)                                ((r) + 0x619400)
r                  95 drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c nvkm_gr_vstatus_print(struct nv50_gr *gr, int r,
r                 111 drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c 	nvkm_error(subdev, "PGRAPH_VSTATUS%d: %08x [%s]\n", r, stat, msg);
r                  38 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define ROP_BCAST(r)      (0x408800 + (r))
r                  39 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define ROP_UNIT(u, r)    (0x410000 + (u) * 0x400 + (r))
r                  40 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define GPC_BCAST(r)      (0x418000 + (r))
r                  41 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define GPC_UNIT(t, r)    (0x500000 + (t) * 0x8000 + (r))
r                  42 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define PPC_UNIT(t, m, r) (0x503000 + (t) * 0x8000 + (m) * 0x200 + (r))
r                  43 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h #define TPC_UNIT(t, m, r) (0x504000 + (t) * 0x8000 + (m) * 0x800 + (r))
r                 332 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c 	int i, r;
r                 350 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c 				for (r = ustatus_addr + 4; r <= ustatus_addr + 0x10; r += 4)
r                 351 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c 					nvkm_error(subdev, "\t%08x: %08x\n", r,
r                 352 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c 						   nvkm_rd32(device, r));
r                  85 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c 		int r;
r                 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c 		for (r = 0; r < rail->resistor_count; ++r) {
r                 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c 			rail->resistors[r].mohm = nvbios_rd08(bios, entry + res_start + r * 2);
r                 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c 			rail->resistors[r].enabled = !(nvbios_rd08(bios, entry + res_start + r * 2 + 1) & 0x40);
r                   8 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_have(s,r)       ((s)->r_##r.addr != 0x000000)
r                   9 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_rd32(s,r)       hwsq_rd32(&(s)->base, &(s)->r_##r)
r                  10 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_wr32(s,r,d)     hwsq_wr32(&(s)->base, &(s)->r_##r, (d))
r                  11 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_mask(s,r,m,d)   hwsq_mask(&(s)->base, &(s)->r_##r, (m), (d))
r                 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 	struct nvkm_mm_node **node, *r;
r                 133 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 			ret = nvkm_mm_tail(mm, heap, type, max, min, align, &r);
r                 135 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 			ret = nvkm_mm_head(mm, heap, type, max, min, align, &r);
r                 142 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 		*node = r;
r                 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 		node = &r->next;
r                 144 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c 		max -= r->length;
r                 166 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_have(s,r)        ((s)->r_##r.addr != 0x000000)
r                 167 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_rd32(s,r)        ramfuc_rd32(&(s)->base, &(s)->r_##r)
r                 168 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_wr32(s,r,d)      ramfuc_wr32(&(s)->base, &(s)->r_##r, (d))
r                 169 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_nuke(s,r)        ramfuc_nuke(&(s)->base, &(s)->r_##r)
r                 170 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_mask(s,r,m,d)    ramfuc_mask(&(s)->base, &(s)->r_##r, (m), (d))
r                 171 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_wait(s,r,m,d,n)  ramfuc_wait(&(s)->base, (r), (m), (d), (n))
r                 175 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h #define ram_train_result(s,r,l) ramfuc_train_result((s), (r), (l))
r                 248 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c #define ram_nuts(s,r,m,d,c)                                                    \
r                 249 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c 	gk104_ram_nuts((s), &(s)->fuc.r_##r, (m), (d), (c))
r                   8 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_have(s,r)       ((s)->r_##r.addr != 0x000000)
r                   9 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_rd32(s,r)       hwsq_rd32(&(s)->base, &(s)->r_##r)
r                  10 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_wr32(s,r,d)     hwsq_wr32(&(s)->base, &(s)->r_##r, (d))
r                  11 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_nuke(s,r)       hwsq_nuke(&(s)->base, &(s)->r_##r)
r                  12 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_mask(s,r,m,d)   hwsq_mask(&(s)->base, &(s)->r_##r, (m), (d))
r                 245 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		int r;
r                 259 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 		for (r = 0; r < pwr_rail->resistor_count; ++r) {
r                 261 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			struct pwr_rail_resistor_t *res = &pwr_rail->resistors[r];
r                 288 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			rail->idx = r;
r                 290 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 			nvkm_debug(subdev, "create rail for extdev %i: { idx: %i, mohm: %i }\n", pwr_rail->extdev_id, r, rail->mohm);
r                  68 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	struct nvkm_mm_node r;
r                 317 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	struct nvkm_mm_node *r = node->base.mn;
r                 320 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	if (unlikely(!r))
r                 332 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	r->offset &= ~BIT(imem->iommu_bit - imem->iommu_pgshift);
r                 337 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 			    (r->offset + i) << imem->iommu_pgshift, PAGE_SIZE);
r                 345 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	nvkm_mm_free(imem->mm, &r);
r                 412 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	node->r.type = 12;
r                 413 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	node->r.offset = node->handle >> 12;
r                 414 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	node->r.length = (npages << PAGE_SHIFT) >> 12;
r                 416 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	node->base.mn = &node->r;
r                 427 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	struct nvkm_mm_node *r;
r                 466 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 			   align >> imem->iommu_pgshift, &r);
r                 475 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 		u32 offset = (r->offset + i) << imem->iommu_pgshift;
r                 491 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	r->offset |= BIT(imem->iommu_bit - imem->iommu_pgshift);
r                 493 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	node->base.mn = r;
r                 498 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c 	nvkm_mm_free(imem->mm, &r);
r                 105 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c 	int r;
r                 126 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c 		r = devm_request_threaded_irq(&pdev->dev,
r                 132 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c 		if (r)
r                 133 drivers/gpu/drm/omapdrm/displays/connector-hdmi.c 			return r;
r                  36 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	int r;
r                  38 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	r = omapdss_device_connect(dst->dss, dst, dst->next);
r                  39 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	if (r)
r                  40 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 		return r;
r                 124 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	int r;
r                 156 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	r = devm_request_threaded_irq(&pdev->dev, gpiod_to_irq(ddata->hpd_gpio),
r                 160 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 	if (r)
r                 161 drivers/gpu/drm/omapdrm/displays/encoder-tpd12s015.c 		return r;
r                 145 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 148 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.dcs_read(src, ddata->channel, dcs_cmd, buf, 1);
r                 150 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r < 0)
r                 151 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 178 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 183 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, &cmd, 1);
r                 184 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 185 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 196 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 200 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_EXIT_SLEEP_MODE);
r                 201 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 202 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 213 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 215 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID1, id1);
r                 216 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 217 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 218 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID2, id2);
r                 219 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 220 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 221 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID3, id3);
r                 222 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 223 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 232 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 245 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, buf, sizeof(buf));
r                 246 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 247 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 255 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.dcs_write_nosync(src, ddata->channel, buf, sizeof(buf));
r                 256 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 257 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 261 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 279 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 286 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, false);
r                 287 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 307 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 313 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 321 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, true);
r                 322 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                 339 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_panel_reset(ddata);
r                 340 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (!r) {
r                 348 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 365 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r = 0;
r                 381 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 382 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (!r)
r                 383 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, level);
r                 390 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 413 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 420 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 421 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (!r)
r                 422 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = dsicm_dcs_read_1(ddata, DCS_READ_NUM_ERRORS,
r                 427 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = -ENODEV;
r                 432 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 433 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 444 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 451 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 452 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (!r)
r                 453 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = dsicm_get_id(ddata, &id1, &id2, &id3);
r                 457 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = -ENODEV;
r                 462 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 463 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 475 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 477 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = kstrtoul(buf, 0, &t);
r                 478 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 479 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 487 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = dsicm_enter_ulps(ddata);
r                 489 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = dsicm_wake_up(ddata);
r                 496 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 497 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 523 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 525 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = kstrtoul(buf, 0, &t);
r                 526 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 527 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 535 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 541 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 542 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 597 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 609 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = regulator_enable(ddata->vpnl);
r                 610 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r) {
r                 612 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 				"failed to enable VPNL: %d\n", r);
r                 613 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			return r;
r                 618 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = regulator_enable(ddata->vddi);
r                 619 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r) {
r                 621 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 				"failed to enable VDDI: %d\n", r);
r                 627 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = src->ops->dsi.configure_pins(src, &ddata->pin_config);
r                 628 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r) {
r                 635 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.set_config(src, &dsi_config);
r                 636 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                 647 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_sleep_out(ddata);
r                 648 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 651 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_get_id(ddata, &id1, &id2, &id3);
r                 652 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 655 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff);
r                 656 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 659 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, DCS_CTRL_DISPLAY,
r                 661 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 664 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_PIXEL_FORMAT,
r                 666 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 669 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_ON);
r                 670 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 673 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, ddata->te_enabled);
r                 674 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 677 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.enable_video_output(src, ddata->channel);
r                 678 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 705 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 711 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 715 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_OFF);
r                 716 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (!r)
r                 717 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_sleep_in(ddata);
r                 719 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                 749 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 751 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.request_vc(src, &ddata->channel);
r                 752 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                 754 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 757 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.set_vc_id(src, ddata->channel, TCH);
r                 758 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                 761 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                 781 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 787 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_power_on(ddata);
r                 791 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 800 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	dev_dbg(&ddata->pdev->dev, "enable failed (%d)\n", r);
r                 808 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 818 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_wake_up(ddata);
r                 819 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (!r)
r                 841 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 848 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = src->ops->dsi.update(src, ddata->channel, dsicm_framedone_cb,
r                 850 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r)
r                 878 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 885 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_wake_up(ddata);
r                 886 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 890 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = 0;
r                 895 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_set_update_window(ddata, 0, 0, ddata->vm.hactive,
r                 897 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                 905 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = src->ops->dsi.update(src, ddata->channel, dsicm_framedone_cb,
r                 907 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r)
r                 917 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 940 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 943 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_TEAR_ON, 0);
r                 945 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_TEAR_OFF);
r                 953 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 960 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 970 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 971 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r)
r                 974 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = _dsicm_enable_te(ddata, enable);
r                 975 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r)
r                 990 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 996 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                 999 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = ddata->te_enabled;
r                1002 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                1011 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                1022 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = -ENODEV;
r                1031 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_wake_up(ddata);
r                1032 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                1045 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = src->ops->dsi.set_max_rx_packet_size(src, ddata->channel, plen);
r                1046 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                1053 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = src->ops->dsi.dcs_read(src, ddata->channel, dcs_cmd,
r                1056 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r < 0) {
r                1061 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		buf_used += r;
r                1063 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r < plen) {
r                1071 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = -ERESTARTSYS;
r                1076 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = buf_used;
r                1084 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                1242 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	int r;
r                1257 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = dsicm_probe_of(pdev);
r                1258 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r)
r                1259 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		return r;
r                1282 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = devm_request_irq(dev, gpiod_to_irq(ddata->ext_te_gpio),
r                1287 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		if (r) {
r                1300 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 		r = -ENOMEM;
r                1315 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 			r = PTR_ERR(bldev);
r                1322 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	r = sysfs_create_group(&dev->kobj, &dsicm_attr_group);
r                1323 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	if (r) {
r                1336 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c 	return r;
r                 662 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r;
r                 666 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = pm_runtime_get_sync(&dispc->pdev->dev);
r                 667 drivers/gpu/drm/omapdrm/dss/dispc.c 	WARN_ON(r < 0);
r                 668 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r < 0 ? r : 0;
r                 673 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r;
r                 677 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = pm_runtime_put_sync(&dispc->pdev->dev);
r                 678 drivers/gpu/drm/omapdrm/dss/dispc.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                2603 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r, cconv = 0;
r                2652 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_ovl_calc_scaling(dispc, plane, pclk, lclk, caps, vm, in_width,
r                2656 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r)
r                2657 drivers/gpu/drm/omapdrm/dss/dispc.c 		return r;
r                2768 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r;
r                2780 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_ovl_setup_common(dispc, plane, caps, oi->paddr, oi->p_uv_addr,
r                2786 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r;
r                2794 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r;
r                2813 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_ovl_setup_common(dispc, plane, caps, wi->paddr, wi->p_uv_addr,
r                2818 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r)
r                2819 drivers/gpu/drm/omapdrm/dss/dispc.c 		return r;
r                3286 drivers/gpu/drm/omapdrm/dss/dispc.c 	unsigned long r;
r                3292 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = dss_get_dispc_clk_rate(dispc->dss);
r                3300 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = pll->cinfo.clkout[clkout_idx];
r                3303 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r;
r                3310 drivers/gpu/drm/omapdrm/dss/dispc.c 	unsigned long r;
r                3320 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = dss_get_dispc_clk_rate(dispc->dss);
r                3328 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = pll->cinfo.clkout[clkout_idx];
r                3333 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r / lcd;
r                3339 drivers/gpu/drm/omapdrm/dss/dispc.c 	unsigned long r;
r                3349 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = dispc_mgr_lclk_rate(dispc, channel);
r                3351 drivers/gpu/drm/omapdrm/dss/dispc.c 		return r / pcd;
r                3470 drivers/gpu/drm/omapdrm/dss/dispc.c #define DUMPREG(dispc, r) \
r                3471 drivers/gpu/drm/omapdrm/dss/dispc.c 	seq_printf(s, "%-50s %08x\n", #r, dispc_read_reg(dispc, r))
r                3504 drivers/gpu/drm/omapdrm/dss/dispc.c #define DUMPREG(dispc, i, r) seq_printf(s, "%s(%s)%*s %08x\n", #r, p_names[i], \
r                3505 drivers/gpu/drm/omapdrm/dss/dispc.c 	(int)(48 - strlen(#r) - strlen(p_names[i])), " ", \
r                3506 drivers/gpu/drm/omapdrm/dss/dispc.c 	dispc_read_reg(dispc, DISPC_REG(i, r)))
r                3867 drivers/gpu/drm/omapdrm/dss/dispc.c 		u16 r, g, b;
r                3874 drivers/gpu/drm/omapdrm/dss/dispc.c 			r = (lut[i].red * (w - j) + lut[i+1].red * j) / w;
r                3878 drivers/gpu/drm/omapdrm/dss/dispc.c 			r >>= 16 - gdesc->bits;
r                3882 drivers/gpu/drm/omapdrm/dss/dispc.c 			table[first + j] = (r << (gdesc->bits * 2)) |
r                4493 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r;
r                4504 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = devm_request_irq(&dispc->pdev->dev, dispc->irq, dispc_irq_handler,
r                4506 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r) {
r                4511 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r;
r                4759 drivers/gpu/drm/omapdrm/dss/dispc.c 	int r = 0;
r                4783 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_errata_i734_wa_init(dispc);
r                4784 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r)
r                4790 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = PTR_ERR(dispc->base);
r                4797 drivers/gpu/drm/omapdrm/dss/dispc.c 		r = -ENODEV;
r                4805 drivers/gpu/drm/omapdrm/dss/dispc.c 			r = PTR_ERR(dispc->syscon_pol);
r                4812 drivers/gpu/drm/omapdrm/dss/dispc.c 			r = -EINVAL;
r                4817 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_init_gamma_tables(dispc);
r                4818 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r)
r                4823 drivers/gpu/drm/omapdrm/dss/dispc.c 	r = dispc_runtime_get(dispc);
r                4824 drivers/gpu/drm/omapdrm/dss/dispc.c 	if (r)
r                4847 drivers/gpu/drm/omapdrm/dss/dispc.c 	return r;
r                 291 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 298 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dss_pll_set_config(dpi->pll, &ctx.pll_cinfo);
r                 299 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 300 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 317 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 324 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dss_set_fck_rate(dpi->dss, ctx.fck);
r                 325 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 326 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 341 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r = 0;
r                 344 drivers/gpu/drm/omapdrm/dss/dpi.c 		r = dpi_set_pll_clk(dpi, dpi->output.dispc_channel,
r                 347 drivers/gpu/drm/omapdrm/dss/dpi.c 		r = dpi_set_dispc_clk(dpi, dpi->pixelclock, &fck,
r                 349 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 350 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 373 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 378 drivers/gpu/drm/omapdrm/dss/dpi.c 		r = regulator_enable(dpi->vdds_dsi_reg);
r                 379 drivers/gpu/drm/omapdrm/dss/dpi.c 		if (r)
r                 383 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dispc_runtime_get(dpi->dss->dispc);
r                 384 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 387 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dss_dpi_select_source(dpi->dss, dpi->id, out->dispc_channel);
r                 388 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 392 drivers/gpu/drm/omapdrm/dss/dpi.c 		r = dss_pll_enable(dpi->pll);
r                 393 drivers/gpu/drm/omapdrm/dss/dpi.c 		if (r)
r                 397 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dpi_set_mode(dpi);
r                 398 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 405 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dss_mgr_enable(&dpi->output);
r                 406 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 505 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 509 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dss_pll_enable(pll);
r                 510 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 511 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 606 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 632 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = omapdss_device_init_output(out);
r                 633 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r < 0)
r                 634 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 685 drivers/gpu/drm/omapdrm/dss/dpi.c 	int r;
r                 695 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = of_property_read_u32(ep, "data-lines", &datalines);
r                 697 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r) {
r                 699 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 711 drivers/gpu/drm/omapdrm/dss/dpi.c 	r = dpi_init_regulator(dpi);
r                 712 drivers/gpu/drm/omapdrm/dss/dpi.c 	if (r)
r                 713 drivers/gpu/drm/omapdrm/dss/dpi.c 		return r;
r                 984 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                 988 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask, dsi->isr_tables.isr_table,
r                 991 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                 996 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1003 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1007 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask, dsi->isr_tables.isr_table,
r                1010 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                1015 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1022 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1026 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask,
r                1030 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                1035 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1042 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1046 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask,
r                1050 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                1055 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1062 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1066 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask, dsi->isr_tables.isr_table_cio,
r                1069 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                1074 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1081 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1085 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask, dsi->isr_tables.isr_table_cio,
r                1088 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r == 0)
r                1093 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1110 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1114 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = pm_runtime_get_sync(dsi->dev);
r                1115 drivers/gpu/drm/omapdrm/dss/dsi.c 	WARN_ON(r < 0);
r                1116 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r < 0 ? r : 0;
r                1121 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                1125 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = pm_runtime_put_sync(dsi->dev);
r                1126 drivers/gpu/drm/omapdrm/dss/dsi.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                1197 drivers/gpu/drm/omapdrm/dss/dsi.c 	unsigned long r;
r                1203 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = clk_get_rate(dsi->dss_clk);
r                1206 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_get_pll_hsdiv_dsi_rate(dsi);
r                1209 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1321 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r = 0;
r                1325 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_runtime_get(dsi);
r                1326 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                1327 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                1334 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = regulator_enable(dsi->vdds_dsi_reg);
r                1335 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                1343 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -ENODEV;
r                1352 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_pll_power(dsi, DSI_PLL_POWER_ON_ALL);
r                1354 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                1365 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                1542 drivers/gpu/drm/omapdrm/dss/dsi.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, dsi_read_reg(dsi, r))
r                1691 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                1694 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_COMPLEXIO_CFG1);
r                1711 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, lane_number + 1, offset + 2, offset);
r                1712 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, polarity, offset + 3, offset + 3);
r                1719 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 0, offset + 2, offset);
r                1720 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 0, offset + 3, offset + 3);
r                1723 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_COMPLEXIO_CFG1, r);
r                1745 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                1795 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG0);
r                1796 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ths_prepare, 31, 24);
r                1797 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ths_prepare_ths_zero, 23, 16);
r                1798 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ths_trail, 15, 8);
r                1799 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ths_exit, 7, 0);
r                1800 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_DSIPHY_CFG0, r);
r                1802 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG1);
r                1803 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, tlpx_half, 20, 16);
r                1804 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, tclk_trail, 15, 8);
r                1805 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, tclk_zero, 7, 0);
r                1808 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 0, 21, 21);	/* DCCEN = disable */
r                1809 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 1, 22, 22);	/* CLKINP_DIVBY2EN = enable */
r                1810 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 1, 23, 23);	/* CLKINP_SEL = enable */
r                1813 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_DSIPHY_CFG1, r);
r                1815 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG2);
r                1816 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, tclk_prepare, 7, 0);
r                1817 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_DSIPHY_CFG2, r);
r                2010 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2015 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_enable_pads(dsi, dsi_get_lane_mask(dsi));
r                2016 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2017 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                2028 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2032 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_set_lane_config(dsi);
r                2033 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2070 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_cio_power(dsi, DSI_COMPLEXIO_POWER_ON);
r                2071 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2076 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -ENODEV;
r                2084 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_cio_wait_tx_clk_esc_reset(dsi);
r                2085 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2126 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2143 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r = 0;
r                2163 drivers/gpu/drm/omapdrm/dss/dsi.c 		r |= v << (8 * i);
r                2168 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TX_FIFO_VC_SIZE, r);
r                2175 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r = 0;
r                2195 drivers/gpu/drm/omapdrm/dss/dsi.c 		r |= v << (8 * i);
r                2200 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_RX_FIFO_VC_SIZE, r);
r                2205 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                2207 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_TIMING1);
r                2208 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* FORCE_TX_STOP_MODE_IO */
r                2209 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TIMING1, r);
r                2243 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r = 0;
r                2248 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_register_isr_vc(dsi, channel, dsi_packet_sent_handler_vp,
r                2250 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2258 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EIO;
r                2271 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2292 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r = 0;
r                2294 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_register_isr_vc(dsi, channel, dsi_packet_sent_handler_l4,
r                2296 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2304 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EIO;
r                2317 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2359 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                2363 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VC_CTRL(channel));
r                2365 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (FLD_GET(r, 15, 15)) /* VC_BUSY */
r                2369 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 1, 1); /* SOURCE, 0 = L4 */
r                2370 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 2, 2); /* BTA_SHORT_EN  */
r                2371 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 3, 3); /* BTA_LONG_EN */
r                2372 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 4, 4); /* MODE, 0 = command */
r                2373 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 7, 7); /* CS_TX_EN */
r                2374 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 8, 8); /* ECC_TX_EN */
r                2375 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 9, 9); /* MODE_SPEED, high speed on/off */
r                2377 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 3, 11, 10);	/* OCP_WIDTH = 32 bit */
r                2379 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 4, 29, 27); /* DMA_RX_REQ_NB = no dma */
r                2380 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 4, 23, 21); /* DMA_TX_REQ_NB = no dma */
r                2382 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VC_CTRL(channel), r);
r                2549 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r = 0;
r                2552 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_register_isr_vc(dsi, channel, dsi_completion_handler,
r                2554 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2557 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_register_isr(dsi, dsi_completion_handler, &completion,
r                2559 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2562 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_bta(dsi, channel);
r                2563 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2569 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2576 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2586 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2624 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r = 0;
r                2678 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2684 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                2703 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = (data_id << 0) | (data << 8) | (ecc << 24);
r                2705 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VC_SHORT_PACKET_HEADER(channel), r);
r                2719 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2723 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_vc_send_short(dsi, channel,
r                2726 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_vc_send_short(dsi, channel,
r                2731 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_vc_send_short(dsi, channel,
r                2737 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_vc_send_long(dsi, channel,
r                2743 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2769 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2771 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_write_nosync_common(dsi, channel, data, len, type);
r                2772 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2775 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                2776 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2783 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2791 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2811 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2817 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_short(dsi, channel, MIPI_DSI_DCS_READ, dcs_cmd, 0);
r                2818 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                2821 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                2832 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2852 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_short(dsi, channel, data_type, data, 0);
r                2853 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                2856 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                2867 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2872 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2883 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2896 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EIO;
r                2913 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EIO;
r                2932 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EIO;
r                2959 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2967 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                2974 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                2976 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_dcs_send_read_request(dsi, channel, dcs_cmd);
r                2977 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2980 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                2981 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                2984 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_read_rx_fifo(dsi, channel, buf, buflen,
r                2986 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r < 0)
r                2989 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r != buflen) {
r                2990 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                2997 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                3004 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                3006 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_generic_send_read_request(dsi, channel, reqdata, reqlen);
r                3007 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                3008 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3010 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                3011 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                3012 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3014 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_vc_read_rx_fifo(dsi, channel, buf, buflen,
r                3016 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r < 0)
r                3017 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3019 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r != buflen) {
r                3020 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                3021 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3039 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r, i;
r                3080 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_register_isr_cio(dsi, dsi_completion_handler, &completion,
r                3082 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                3083 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3102 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EIO;
r                3126 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                3134 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3141 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_TIMING2);
r                3142 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* LP_RX_TO */
r                3143 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 14, 14);	/* LP_RX_TO_X16 */
r                3144 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 13, 13);	/* LP_RX_TO_X4 */
r                3145 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ticks, 12, 0);	/* LP_RX_COUNTER */
r                3146 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TIMING2, r);
r                3161 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3168 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_TIMING1);
r                3169 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 31, 31);	/* TA_TO */
r                3170 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 30, 30);	/* TA_TO_X16 */
r                3171 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x8 ? 1 : 0, 29, 29);	/* TA_TO_X8 */
r                3172 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ticks, 28, 16);	/* TA_TO_COUNTER */
r                3173 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TIMING1, r);
r                3188 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3195 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_TIMING1);
r                3196 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* FORCE_TX_STOP_MODE_IO */
r                3197 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 14, 14);	/* STOP_STATE_X16_IO */
r                3198 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 13, 13);	/* STOP_STATE_X4_IO */
r                3199 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ticks, 12, 0);	/* STOP_STATE_COUNTER_IO */
r                3200 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TIMING1, r);
r                3215 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3222 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_TIMING2);
r                3223 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 31, 31);	/* HS_TX_TO */
r                3224 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 30, 30);	/* HS_TX_TO_X16 */
r                3225 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 29, 29);	/* HS_TX_TO_X8 (4 really) */
r                3226 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ticks, 28, 16);	/* HS_TX_TO_COUNTER */
r                3227 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_TIMING2, r);
r                3264 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3271 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CTRL);
r                3272 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 9, 9);		/* VP_DE_POL */
r                3273 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 10, 10);		/* VP_HSYNC_POL */
r                3274 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 11, 11);		/* VP_VSYNC_POL */
r                3275 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);		/* VP_VSYNC_START */
r                3276 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, sync_end, 16, 16);	/* VP_VSYNC_END */
r                3277 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 17, 17);		/* VP_HSYNC_START */
r                3278 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, sync_end, 18, 18);	/* VP_HSYNC_END */
r                3279 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_CTRL, r);
r                3288 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3294 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CTRL);
r                3295 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, blanking_mode, 20, 20);		/* BLANKING_MODE */
r                3296 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hfp_blanking_mode, 21, 21);	/* HFP_BLANKING */
r                3297 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hbp_blanking_mode, 22, 22);	/* HBP_BLANKING */
r                3298 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hsa_blanking_mode, 23, 23);	/* HSA_BLANKING */
r                3299 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_CTRL, r);
r                3380 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3382 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CTRL);
r                3383 drivers/gpu/drm/omapdrm/dss/dsi.c 	blanking_mode = FLD_GET(r, 20, 20);
r                3384 drivers/gpu/drm/omapdrm/dss/dsi.c 	hfp_blanking_mode = FLD_GET(r, 21, 21);
r                3385 drivers/gpu/drm/omapdrm/dss/dsi.c 	hbp_blanking_mode = FLD_GET(r, 22, 22);
r                3386 drivers/gpu/drm/omapdrm/dss/dsi.c 	hsa_blanking_mode = FLD_GET(r, 23, 23);
r                3388 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VM_TIMING1);
r                3389 drivers/gpu/drm/omapdrm/dss/dsi.c 	hbp = FLD_GET(r, 11, 0);
r                3390 drivers/gpu/drm/omapdrm/dss/dsi.c 	hfp = FLD_GET(r, 23, 12);
r                3391 drivers/gpu/drm/omapdrm/dss/dsi.c 	hsa = FLD_GET(r, 31, 24);
r                3393 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CLK_TIMING);
r                3394 drivers/gpu/drm/omapdrm/dss/dsi.c 	ddr_clk_post = FLD_GET(r, 7, 0);
r                3395 drivers/gpu/drm/omapdrm/dss/dsi.c 	ddr_clk_pre = FLD_GET(r, 15, 8);
r                3397 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VM_TIMING7);
r                3398 drivers/gpu/drm/omapdrm/dss/dsi.c 	exit_hs_mode_lat = FLD_GET(r, 15, 0);
r                3399 drivers/gpu/drm/omapdrm/dss/dsi.c 	enter_hs_mode_lat = FLD_GET(r, 31, 16);
r                3401 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CLK_CTRL);
r                3402 drivers/gpu/drm/omapdrm/dss/dsi.c 	lp_clk_div = FLD_GET(r, 12, 0);
r                3403 drivers/gpu/drm/omapdrm/dss/dsi.c 	ddr_alwon = FLD_GET(r, 13, 13);
r                3405 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG0);
r                3406 drivers/gpu/drm/omapdrm/dss/dsi.c 	ths_exit = FLD_GET(r, 7, 0);
r                3408 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG1);
r                3409 drivers/gpu/drm/omapdrm/dss/dsi.c 	tclk_trail = FLD_GET(r, 15, 8);
r                3462 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VM_TIMING4);
r                3463 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hsa_interleave_hs, 23, 16);
r                3464 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hfp_interleave_hs, 15, 8);
r                3465 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hbp_interleave_hs, 7, 0);
r                3466 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VM_TIMING4, r);
r                3468 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VM_TIMING5);
r                3469 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hsa_interleave_lp, 23, 16);
r                3470 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hfp_interleave_lp, 15, 8);
r                3471 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, hbp_interleave_lp, 7, 0);
r                3472 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VM_TIMING5, r);
r                3474 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_VM_TIMING6);
r                3475 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, bl_interleave_hs, 31, 15);
r                3476 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, bl_interleave_lp, 16, 0);
r                3477 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VM_TIMING6, r);
r                3482 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3516 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CTRL);
r                3517 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 1, 1);	/* CS_RX_EN */
r                3518 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 2, 2);	/* ECC_RX_EN */
r                3519 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 3, 3);	/* TX_FIFO_ARBITRATION */
r                3520 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 4, 4);	/* VP_CLK_RATIO, always 1, see errata*/
r                3521 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, buswidth, 7, 6); /* VP_DATA_BUS_WIDTH */
r                3522 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 0, 8, 8);	/* VP_CLK_POL */
r                3523 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 14, 14);	/* TRIGGER_RESET_MODE */
r                3524 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, 1, 19, 19);	/* EOT_ENABLE */
r                3526 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 1, 24, 24);	/* DCS_CMD_ENABLE */
r                3528 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, 0, 25, 25);
r                3531 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_CTRL, r);
r                3559 drivers/gpu/drm/omapdrm/dss/dsi.c 	u32 r;
r                3561 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG0);
r                3562 drivers/gpu/drm/omapdrm/dss/dsi.c 	ths_prepare = FLD_GET(r, 31, 24);
r                3563 drivers/gpu/drm/omapdrm/dss/dsi.c 	ths_prepare_ths_zero = FLD_GET(r, 23, 16);
r                3565 drivers/gpu/drm/omapdrm/dss/dsi.c 	ths_trail = FLD_GET(r, 15, 8);
r                3566 drivers/gpu/drm/omapdrm/dss/dsi.c 	ths_exit = FLD_GET(r, 7, 0);
r                3568 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG1);
r                3569 drivers/gpu/drm/omapdrm/dss/dsi.c 	tlpx = FLD_GET(r, 20, 16) * 2;
r                3570 drivers/gpu/drm/omapdrm/dss/dsi.c 	tclk_trail = FLD_GET(r, 15, 8);
r                3571 drivers/gpu/drm/omapdrm/dss/dsi.c 	tclk_zero = FLD_GET(r, 7, 0);
r                3573 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG2);
r                3574 drivers/gpu/drm/omapdrm/dss/dsi.c 	tclk_prepare = FLD_GET(r, 7, 0);
r                3590 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_read_reg(dsi, DSI_CLK_TIMING);
r                3591 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ddr_clk_pre, 15, 8);
r                3592 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_MOD(r, ddr_clk_post, 7, 0);
r                3593 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_CLK_TIMING, r);
r                3605 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = FLD_VAL(enter_hs_mode_lat, 31, 16) |
r                3607 drivers/gpu/drm/omapdrm/dss/dsi.c 	dsi_write_reg(dsi, DSI_VM_TIMING7, r);
r                3641 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_read_reg(dsi, DSI_VM_TIMING1);
r                3642 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, hbp, 11, 0);	/* HBP */
r                3643 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, hfp, 23, 12);	/* HFP */
r                3644 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, hsync_end ? hsa : 0, 31, 24);	/* HSA */
r                3645 drivers/gpu/drm/omapdrm/dss/dsi.c 		dsi_write_reg(dsi, DSI_VM_TIMING1, r);
r                3647 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_read_reg(dsi, DSI_VM_TIMING2);
r                3648 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, vbp, 7, 0);	/* VBP */
r                3649 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, vfp, 15, 8);	/* VFP */
r                3650 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, vsa, 23, 16);	/* VSA */
r                3651 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, window_sync, 27, 24);	/* WINDOW_SYNC */
r                3652 drivers/gpu/drm/omapdrm/dss/dsi.c 		dsi_write_reg(dsi, DSI_VM_TIMING2, r);
r                3654 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dsi_read_reg(dsi, DSI_VM_TIMING3);
r                3655 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, vm->vactive, 14, 0);	/* VACT */
r                3656 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = FLD_MOD(r, tl, 31, 16);		/* TL */
r                3657 drivers/gpu/drm/omapdrm/dss/dsi.c 		dsi_write_reg(dsi, DSI_VM_TIMING3, r);
r                3733 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                3735 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_display_init_dispc(dsi);
r                3736 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                3737 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3754 drivers/gpu/drm/omapdrm/dss/dsi.c 			r = -EINVAL;
r                3773 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dss_mgr_enable(&dsi->output);
r                3774 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                3786 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                3818 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                3868 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = schedule_delayed_work(&dsi->framedone_timeout_work,
r                3870 drivers/gpu/drm/omapdrm/dss/dsi.c 	BUG_ON(r == 0);
r                3970 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                3978 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dispc_calc_clock_rates(dsi->dss->dispc, fck, &dispc_cinfo);
r                3979 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                3981 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                3992 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                3999 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = dss_mgr_register_framedone_handler(&dsi->output,
r                4001 drivers/gpu/drm/omapdrm/dss/dsi.c 		if (r) {
r                4013 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_configure_dispc_clocks(dsi);
r                4014 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4031 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                4048 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                4052 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dss_pll_set_config(&dsi->pll, &cinfo);
r                4053 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                4055 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                4063 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                4065 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dss_pll_enable(&dsi->pll);
r                4066 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4067 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                4069 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_configure_dsi_clocks(dsi);
r                4070 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4080 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = regulator_enable(dsi->vdds_dsi_reg);
r                4081 drivers/gpu/drm/omapdrm/dss/dsi.c 		if (r)
r                4087 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_cio_init(dsi);
r                4088 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4099 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_proto_config(dsi);
r                4100 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4122 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                4151 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                4159 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_runtime_get(dsi);
r                4160 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4165 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_display_init_dsi(dsi);
r                4166 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                4696 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                4710 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EINVAL;
r                4716 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_lp_clock_calc(ctx.dsi_cinfo.clkout[HSDIV_DSI],
r                4718 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                4759 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                5019 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                5034 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dss_pll_register(dss, pll);
r                5035 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                5036 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                5051 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                5057 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_runtime_get(dsi);
r                5058 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                5059 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                5109 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                5125 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = omapdss_device_init_output(out);
r                5126 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r < 0)
r                5127 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                5148 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r, i;
r                5159 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EINVAL;
r                5168 drivers/gpu/drm/omapdrm/dss/dsi.c 		r = -EINVAL;
r                5172 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = of_property_read_u32_array(ep, "lanes", lane_arr, num_pins);
r                5173 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                5182 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_configure_pins(&dsi->output, &pin_cfg);
r                5183 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                5194 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                5271 drivers/gpu/drm/omapdrm/dss/dsi.c 	int r;
r                5320 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = devm_request_irq(dev, dsi->irq, omap_dsi_irq_handler,
r                5322 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r < 0) {
r                5324 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                5376 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_get_clocks(dsi);
r                5377 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                5378 drivers/gpu/drm/omapdrm/dss/dsi.c 		return r;
r                5393 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = of_platform_populate(dev->of_node, NULL, NULL, dev);
r                5394 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                5395 drivers/gpu/drm/omapdrm/dss/dsi.c 		DSSERR("Failed to populate DSI child devices: %d\n", r);
r                5399 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_init_output(dsi);
r                5400 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                5403 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = dsi_probe_of(dsi);
r                5404 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r) {
r                5409 drivers/gpu/drm/omapdrm/dss/dsi.c 	r = component_add(&pdev->dev, &dsi_component_ops);
r                5410 drivers/gpu/drm/omapdrm/dss/dsi.c 	if (r)
r                5421 drivers/gpu/drm/omapdrm/dss/dsi.c 	return r;
r                 359 drivers/gpu/drm/omapdrm/dss/dss.c #define DUMPREG(dss, r) seq_printf(s, "%-35s %08x\n", #r, dss_read_reg(dss, r))
r                 477 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 485 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_ctrl_pll_set_control_mux(dss, clk_src, channel);
r                 486 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                 487 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                 559 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 567 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss->feat->ops->select_lcd_source(dss, channel, clk_src);
r                 568 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                 644 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 648 drivers/gpu/drm/omapdrm/dss/dss.c 	r = clk_set_rate(dss->dss_clk, rate);
r                 649 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                 650 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                 675 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 690 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_set_fck_rate(dss, fck);
r                 691 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                 692 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                 856 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 860 drivers/gpu/drm/omapdrm/dss/dss.c 	r = pm_runtime_get_sync(&dss->pdev->dev);
r                 861 drivers/gpu/drm/omapdrm/dss/dss.c 	WARN_ON(r < 0);
r                 862 drivers/gpu/drm/omapdrm/dss/dss.c 	return r < 0 ? r : 0;
r                 867 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                 871 drivers/gpu/drm/omapdrm/dss/dss.c 	r = pm_runtime_put_sync(&dss->pdev->dev);
r                 872 drivers/gpu/drm/omapdrm/dss/dss.c 	WARN_ON(r < 0 && r != -ENOSYS && r != -EBUSY);
r                1160 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1169 drivers/gpu/drm/omapdrm/dss/dss.c 			r = dpi_init_port(dss, pdev, port, dss->feat->model);
r                1170 drivers/gpu/drm/omapdrm/dss/dss.c 			if (r)
r                1171 drivers/gpu/drm/omapdrm/dss/dss.c 				return r;
r                1175 drivers/gpu/drm/omapdrm/dss/dss.c 			r = sdi_init_port(dss, pdev, port);
r                1176 drivers/gpu/drm/omapdrm/dss/dss.c 			if (r)
r                1177 drivers/gpu/drm/omapdrm/dss/dss.c 				return r;
r                1218 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1242 drivers/gpu/drm/omapdrm/dss/dss.c 		r = PTR_ERR(pll_regulator);
r                1244 drivers/gpu/drm/omapdrm/dss/dss.c 		switch (r) {
r                1254 drivers/gpu/drm/omapdrm/dss/dss.c 			return r;
r                1299 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1301 drivers/gpu/drm/omapdrm/dss/dss.c 	r = component_bind_all(dev, NULL);
r                1302 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1303 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                1363 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1365 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_runtime_get(dss);
r                1366 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1367 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                1401 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1410 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
r                1411 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r) {
r                1430 drivers/gpu/drm/omapdrm/dss/dss.c 		r = PTR_ERR(dss->base);
r                1434 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_get_clocks(dss);
r                1435 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1438 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_setup_default_clock(dss);
r                1439 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1443 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_video_pll_probe(dss);
r                1444 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1447 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_init_ports(dss);
r                1448 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1454 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_probe_hardware(dss);
r                1455 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1459 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_initialize_debugfs(dss);
r                1460 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1469 drivers/gpu/drm/omapdrm/dss/dss.c 	r = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
r                1470 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1477 drivers/gpu/drm/omapdrm/dss/dss.c 	r = component_master_add_with_match(&pdev->dev, &dss_component_ops, match);
r                1478 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1507 drivers/gpu/drm/omapdrm/dss/dss.c 	return r;
r                1566 drivers/gpu/drm/omapdrm/dss/dss.c 	int r;
r                1577 drivers/gpu/drm/omapdrm/dss/dss.c 	r = dss_set_min_bus_tput(dev, 1000000000);
r                1578 drivers/gpu/drm/omapdrm/dss/dss.c 	if (r)
r                1579 drivers/gpu/drm/omapdrm/dss/dss.c 		return r;
r                  39 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                  43 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = pm_runtime_get_sync(&hdmi->pdev->dev);
r                  44 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	WARN_ON(r < 0);
r                  45 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r < 0)
r                  46 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		return r;
r                  53 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                  57 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = pm_runtime_put_sync(&hdmi->pdev->dev);
r                  58 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 102 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 107 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = regulator_enable(hdmi->vdda_reg);
r                 108 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 111 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_runtime_get(hdmi);
r                 112 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 129 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 145 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 151 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_power_on_core(hdmi);
r                 152 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 153 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		return r;
r                 174 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = dss_pll_enable(&hdmi->pll.pll);
r                 175 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 180 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = dss_pll_set_config(&hdmi->pll.pll, &hdmi_cinfo);
r                 181 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 186 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco,
r                 188 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 193 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON);
r                 194 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 199 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = dss_mgr_enable(&hdmi->output);
r                 200 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 203 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_wp_video_start(&hdmi->wp);
r                 204 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 277 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 281 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_runtime_get(hdmi);
r                 282 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	BUG_ON(r);
r                 284 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_read_edid(&hdmi->core,  buf, len);
r                 289 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 308 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 314 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_power_on_full(hdmi);
r                 315 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 321 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = hdmi4_audio_config(&hdmi->core, &hdmi->wp,
r                 324 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		if (r) {
r                 325 drivers/gpu/drm/omapdrm/dss/hdmi4.c 			DSSERR("Error restoring audio configuration: %d", r);
r                 363 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r = 0;
r                 369 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_power_on_core(hdmi);
r                 370 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 380 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 413 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 418 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = hdmi4_core_enable(&hdmi->core);
r                 419 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		if (r)
r                 420 drivers/gpu/drm/omapdrm/dss/hdmi4.c 			return r;
r                 423 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = read_edid(hdmi, edid, len);
r                 424 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r >= 256)
r                 426 drivers/gpu/drm/omapdrm/dss/hdmi4.c 					cec_get_edid_phys_addr(edid, r, NULL));
r                 432 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 604 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 608 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_runtime_get(hdmi);
r                 609 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 610 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		return r;
r                 612 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp);
r                 613 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 616 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_cec_init(hdmi->pdev, &hdmi->core, &hdmi->wp);
r                 617 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 620 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_audio_register(hdmi);
r                 621 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 639 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 667 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 679 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = omapdss_device_init_output(out);
r                 680 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r < 0)
r                 681 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		return r;
r                 701 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 707 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_parse_lanes_of(pdev, ep, &hdmi->phy);
r                 709 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 716 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	int r;
r                 729 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_probe_of(hdmi);
r                 730 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 733 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_wp_init(pdev, &hdmi->wp, 4);
r                 734 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 737 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi_phy_init(pdev, &hdmi->phy, 4);
r                 738 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 741 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_core_init(pdev, &hdmi->core);
r                 742 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 748 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = -ENODEV;
r                 752 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = devm_request_threaded_irq(&pdev->dev, irq,
r                 755 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r) {
r                 762 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		r = PTR_ERR(hdmi->vdda_reg);
r                 763 drivers/gpu/drm/omapdrm/dss/hdmi4.c 		if (r != -EPROBE_DEFER)
r                 770 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = hdmi4_init_output(hdmi);
r                 771 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 774 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	r = component_add(&pdev->dev, &hdmi4_component_ops);
r                 775 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	if (r)
r                 786 drivers/gpu/drm/omapdrm/dss/hdmi4.c 	return r;
r                 161 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	int r, l;
r                 166 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_core_ddc_init(core);
r                 167 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	if (r)
r                 168 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		return r;
r                 170 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
r                 171 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	if (r)
r                 172 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		return r;
r                 177 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = hdmi_core_ddc_edid(core, edid + 0x80, 1);
r                 178 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		if (r)
r                 179 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 			return r;
r                 221 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	u32 r = 0;
r                 226 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(core_sys_base, HDMI_CORE_SYS_SYS_CTRL1);
r                 227 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_VEN_FOLLOWVSYNC, 5, 5);
r                 228 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_HEN_FOLLOWHSYNC, 4, 4);
r                 229 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_BSEL_24BITBUS, 2, 2);
r                 230 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_EDGE_RISINGEDGE, 1, 1);
r                 231 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(core_sys_base, HDMI_CORE_SYS_SYS_CTRL1, r);
r                 237 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(core_sys_base, HDMI_CORE_SYS_VID_MODE);
r                 241 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = FLD_MOD(r, cfg->op_dither_truc - 3, 7, 6);
r                 242 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = FLD_MOD(r, 1, 5, 5);
r                 244 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = FLD_MOD(r, cfg->op_dither_truc, 7, 6);
r                 245 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		r = FLD_MOD(r, 0, 5, 5);
r                 247 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(core_sys_base, HDMI_CORE_SYS_VID_MODE, r);
r                 250 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(core_av_base, HDMI_CORE_AV_HDMI_CTRL);
r                 251 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->deep_color_pkt, 6, 6);
r                 252 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->pkt_mode, 5, 3);
r                 253 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->hdmi_dvi, 0, 0);
r                 254 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(core_av_base, HDMI_CORE_AV_HDMI_CTRL, r);
r                 353 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c #define DUMPCORE(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 354 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(core->base, r))
r                 355 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c #define DUMPCOREAV(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 356 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), r))
r                 357 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c #define DUMPCOREAV2(i, r) seq_printf(s, "%s[%d]%*s %08x\n", #r, i, \
r                 358 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		(i < 10) ? 32 - (int)strlen(#r) : 31 - (int)strlen(#r), " ", \
r                 359 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), CORE_REG(i, r)))
r                 519 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	u32 r;
r                 548 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_ACR_CTRL);
r                 553 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, 0, 2, 2);
r                 555 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_acr_pkt, 1, 1);
r                 556 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->cts_mode, 0, 0);
r                 557 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_ACR_CTRL, r);
r                 586 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_I2S_IN_CTRL);
r                 587 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.sck_edge_mode, 6, 6);
r                 588 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.vbit, 4, 4);
r                 589 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.justification, 2, 2);
r                 590 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.direction, 1, 1);
r                 591 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.shift, 0, 0);
r                 592 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_I2S_IN_CTRL, r);
r                 599 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_AUD_MODE);
r                 600 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.active_sds, 7, 4);
r                 601 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_dsd_audio, 3, 3);
r                 602 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_parallel_aud_input, 2, 2);
r                 603 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_spdif, 1, 1);
r                 604 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_AUD_MODE, r);
r                  40 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                  44 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = pm_runtime_get_sync(&hdmi->pdev->dev);
r                  45 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	WARN_ON(r < 0);
r                  46 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r < 0)
r                  47 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		return r;
r                  54 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                  58 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = pm_runtime_put_sync(&hdmi->pdev->dev);
r                  59 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 111 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 113 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = regulator_enable(hdmi->vdda_reg);
r                 114 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 115 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		return r;
r                 117 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_runtime_get(hdmi);
r                 118 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 131 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 144 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 149 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_power_on_core(hdmi);
r                 150 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 151 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		return r;
r                 173 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = dss_pll_enable(&hdmi->pll.pll);
r                 174 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 179 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = dss_pll_set_config(&hdmi->pll.pll, &hdmi_cinfo);
r                 180 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 185 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco,
r                 187 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 192 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_wp_set_phy_pwr(&hdmi->wp, HDMI_PHYPWRCMD_LDOON);
r                 193 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 198 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = dss_mgr_enable(&hdmi->output);
r                 199 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 202 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_wp_video_start(&hdmi->wp);
r                 203 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 276 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 281 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_runtime_get(hdmi);
r                 282 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	BUG_ON(r);
r                 288 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_read_edid(&hdmi->core,  buf, len);
r                 295 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 316 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 322 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_power_on_full(hdmi);
r                 323 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 329 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		r = hdmi5_audio_config(&hdmi->core, &hdmi->wp,
r                 332 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		if (r) {
r                 333 drivers/gpu/drm/omapdrm/dss/hdmi5.c 			DSSERR("Error restoring audio configuration: %d", r);
r                 370 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r = 0;
r                 376 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_power_on_core(hdmi);
r                 377 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 387 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 418 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 423 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		r = hdmi_core_enable(hdmi);
r                 424 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		if (r)
r                 425 drivers/gpu/drm/omapdrm/dss/hdmi5.c 			return r;
r                 428 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = read_edid(hdmi, edid, len);
r                 433 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 603 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 607 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp);
r                 608 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 609 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		return r;
r                 611 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_audio_register(hdmi);
r                 612 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 613 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		DSSERR("Registering HDMI audio failed %d\n", r);
r                 624 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 651 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 663 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = omapdss_device_init_output(out);
r                 664 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r < 0)
r                 665 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		return r;
r                 685 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 691 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_parse_lanes_of(pdev, ep, &hdmi->phy);
r                 693 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 700 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	int r;
r                 713 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_probe_of(hdmi);
r                 714 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 717 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_wp_init(pdev, &hdmi->wp, 5);
r                 718 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 721 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi_phy_init(pdev, &hdmi->phy, 5);
r                 722 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 725 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_core_init(pdev, &hdmi->core);
r                 726 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 732 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		r = -ENODEV;
r                 736 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = devm_request_threaded_irq(&pdev->dev, irq,
r                 739 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r) {
r                 746 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		r = PTR_ERR(hdmi->vdda_reg);
r                 747 drivers/gpu/drm/omapdrm/dss/hdmi5.c 		if (r != -EPROBE_DEFER)
r                 754 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = hdmi5_init_output(hdmi);
r                 755 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 758 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	r = component_add(&pdev->dev, &hdmi5_component_ops);
r                 759 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	if (r)
r                 770 drivers/gpu/drm/omapdrm/dss/hdmi5.c 	return r;
r                 189 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	int r, n, i;
r                 197 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
r                 198 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	if (r)
r                 207 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		r = hdmi_core_ddc_edid(core, edid + i * EDID_LENGTH, i);
r                 208 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		if (r)
r                 215 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	return r ? r : len;
r                 221 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c #define DUMPCORE(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 222 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		hdmi_read_reg(core->base, r))
r                 321 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	unsigned char r = 0;
r                 328 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = hdmi_read_reg(base, HDMI_CORE_FC_INVIDCONF);
r                 329 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = FLD_MOD(r, vsync_pol, 6, 6);
r                 330 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = FLD_MOD(r, hsync_pol, 5, 5);
r                 331 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = FLD_MOD(r, cfg->data_enable_pol, 4, 4);
r                 332 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = FLD_MOD(r, cfg->vblank_osc, 1, 1);
r                 333 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = FLD_MOD(r, !!(vm->flags & DISPLAY_FLAGS_INTERLACED), 0, 0);
r                 334 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	hdmi_write_reg(base, HDMI_CORE_FC_INVIDCONF, r);
r                 423 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	unsigned int c, m, r;
r                 442 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 	r = (ptr[1] >> 0) & 0xf;
r                 459 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c 		(c << 6) | (m << 4) | (r << 0));
r                  16 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 	int r, len;
r                  27 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		r = of_property_read_u32_array(ep, "lanes", lanes,
r                  29 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		if (r) {
r                  31 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 			return r;
r                  34 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		r = hdmi_phy_parse_lanes(phy, lanes);
r                  35 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		if (r) {
r                  37 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 			return r;
r                  42 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		r = hdmi_phy_parse_lanes(phy, default_lanes);
r                  43 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 		if (WARN_ON(r)) {
r                  45 drivers/gpu/drm/omapdrm/dss/hdmi_common.c 			return r;
r                  21 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c #define DUMPPHY(r) seq_printf(s, "%-35s %08x\n", #r,\
r                  22 drivers/gpu/drm/omapdrm/dss/hdmi_phy.c 		hdmi_read_reg(phy->base, r))
r                  25 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c #define DUMPPLL(r) seq_printf(s, "%-35s %08x\n", #r,\
r                  26 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 		hdmi_read_reg(pll->base, r))
r                  43 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	int r;
r                  45 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	r = pm_runtime_get_sync(&pll->pdev->dev);
r                  46 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	WARN_ON(r < 0);
r                  50 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	r = hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
r                  51 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	if (r)
r                  52 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 		return r;
r                  61 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	int r;
r                  67 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	r = pm_runtime_put_sync(&pll->pdev->dev);
r                  68 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 134 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	int r;
r                 154 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	r = dss_pll_register(dss, pll);
r                 155 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	if (r)
r                 156 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 		return r;
r                 164 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	int r;
r                 175 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	r = hdmi_init_pll_data(dss, pdev, pll);
r                 176 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 	if (r) {
r                 178 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c 		return r;
r                  22 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r))
r                 146 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	u32 r;
r                 153 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_VIDEO_CFG);
r                 154 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, 1, 7, 7);	/* VSYNC_POL to dispc active high */
r                 155 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, 1, 6, 6);	/* HSYNC_POL to dispc active high */
r                 156 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, vsync_inv, 5, 5);	/* CORE_VSYNC_INV */
r                 157 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, hsync_inv, 4, 4);	/* CORE_HSYNC_INV */
r                 158 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, !!(vm->flags & DISPLAY_FLAGS_INTERLACED), 3, 3);
r                 159 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, 1, 1, 0); /* HDMI_TIMING_MASTER_24BIT */
r                 160 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_VIDEO_CFG, r);
r                 228 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	u32 r;
r                 232 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CFG);
r                 234 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 		r = FLD_MOD(r, aud_fmt->stereo_channels, 26, 24);
r                 235 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 		r = FLD_MOD(r, aud_fmt->active_chnnls_msk, 23, 16);
r                 237 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->en_sig_blk_strt_end, 5, 5);
r                 238 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->type, 4, 4);
r                 239 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->justification, 3, 3);
r                 240 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->sample_order, 2, 2);
r                 241 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->samples_per_word, 1, 1);
r                 242 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->sample_size, 0, 0);
r                 243 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CFG, r);
r                 249 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	u32 r;
r                 253 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CFG2);
r                 254 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->transfer_size, 15, 8);
r                 255 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->block_size, 7, 0);
r                 256 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CFG2, r);
r                 258 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CTRL);
r                 259 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->mode, 9, 9);
r                 260 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->fifo_threshold, 8, 0);
r                 261 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CTRL, r);
r                 125 drivers/gpu/drm/omapdrm/dss/pll.c 	int r;
r                 127 drivers/gpu/drm/omapdrm/dss/pll.c 	r = clk_prepare_enable(pll->clkin);
r                 128 drivers/gpu/drm/omapdrm/dss/pll.c 	if (r)
r                 129 drivers/gpu/drm/omapdrm/dss/pll.c 		return r;
r                 132 drivers/gpu/drm/omapdrm/dss/pll.c 		r = regulator_enable(pll->regulator);
r                 133 drivers/gpu/drm/omapdrm/dss/pll.c 		if (r)
r                 137 drivers/gpu/drm/omapdrm/dss/pll.c 	r = pll->ops->enable(pll);
r                 138 drivers/gpu/drm/omapdrm/dss/pll.c 	if (r)
r                 148 drivers/gpu/drm/omapdrm/dss/pll.c 	return r;
r                 165 drivers/gpu/drm/omapdrm/dss/pll.c 	int r;
r                 167 drivers/gpu/drm/omapdrm/dss/pll.c 	r = pll->ops->set_config(pll, cinfo);
r                 168 drivers/gpu/drm/omapdrm/dss/pll.c 	if (r)
r                 169 drivers/gpu/drm/omapdrm/dss/pll.c 		return r;
r                 395 drivers/gpu/drm/omapdrm/dss/pll.c 	int r = 0;
r                 476 drivers/gpu/drm/omapdrm/dss/pll.c 			r = -EIO;
r                 484 drivers/gpu/drm/omapdrm/dss/pll.c 			r = -EIO;
r                 490 drivers/gpu/drm/omapdrm/dss/pll.c 			r = -EIO;
r                 504 drivers/gpu/drm/omapdrm/dss/pll.c 	r = dss_wait_hsdiv_ack(pll,
r                 509 drivers/gpu/drm/omapdrm/dss/pll.c 	if (r) {
r                 515 drivers/gpu/drm/omapdrm/dss/pll.c 	return r;
r                 126 drivers/gpu/drm/omapdrm/dss/sdi.c 	int r;
r                 128 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = regulator_enable(sdi->vdds_sdi_reg);
r                 129 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 132 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = dispc_runtime_get(sdi->dss->dispc);
r                 133 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 136 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = sdi_calc_clock_div(sdi, sdi->pixelclock, &fck, &dispc_cinfo);
r                 137 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 142 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = dss_set_fck_rate(sdi->dss, fck);
r                 143 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 163 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = dss_sdi_enable(sdi->dss);
r                 164 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 168 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = dss_mgr_enable(&sdi->output);
r                 169 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 213 drivers/gpu/drm/omapdrm/dss/sdi.c 	int r;
r                 218 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = sdi_calc_clock_div(sdi, pixelclock, &fck, &dispc_cinfo);
r                 219 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 220 drivers/gpu/drm/omapdrm/dss/sdi.c 		return r;
r                 260 drivers/gpu/drm/omapdrm/dss/sdi.c 	int r;
r                 274 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = omapdss_device_init_output(out);
r                 275 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r < 0)
r                 276 drivers/gpu/drm/omapdrm/dss/sdi.c 		return r;
r                 295 drivers/gpu/drm/omapdrm/dss/sdi.c 	int r;
r                 303 drivers/gpu/drm/omapdrm/dss/sdi.c 		r = 0;
r                 307 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = of_property_read_u32(ep, "datapairs", &datapairs);
r                 309 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r) {
r                 322 drivers/gpu/drm/omapdrm/dss/sdi.c 		r = PTR_ERR(sdi->vdds_sdi_reg);
r                 323 drivers/gpu/drm/omapdrm/dss/sdi.c 		if (r != -EPROBE_DEFER)
r                 328 drivers/gpu/drm/omapdrm/dss/sdi.c 	r = sdi_init_output(sdi);
r                 329 drivers/gpu/drm/omapdrm/dss/sdi.c 	if (r)
r                 337 drivers/gpu/drm/omapdrm/dss/sdi.c 	return r;
r                 401 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 405 drivers/gpu/drm/omapdrm/dss/venc.c 	r = pm_runtime_get_sync(&venc->pdev->dev);
r                 406 drivers/gpu/drm/omapdrm/dss/venc.c 	WARN_ON(r < 0);
r                 407 drivers/gpu/drm/omapdrm/dss/venc.c 	return r < 0 ? r : 0;
r                 412 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 416 drivers/gpu/drm/omapdrm/dss/venc.c 	r = pm_runtime_put_sync(&venc->pdev->dev);
r                 417 drivers/gpu/drm/omapdrm/dss/venc.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 423 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 425 drivers/gpu/drm/omapdrm/dss/venc.c 	r = venc_runtime_get(venc);
r                 426 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 447 drivers/gpu/drm/omapdrm/dss/venc.c 	r = regulator_enable(venc->vdda_dac_reg);
r                 448 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 451 drivers/gpu/drm/omapdrm/dss/venc.c 	r = dss_mgr_enable(&venc->output);
r                 452 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 465 drivers/gpu/drm/omapdrm/dss/venc.c 	return r;
r                 603 drivers/gpu/drm/omapdrm/dss/venc.c #define DUMPREG(venc, r) \
r                 604 drivers/gpu/drm/omapdrm/dss/venc.c 	seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(venc, r))
r                 710 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 714 drivers/gpu/drm/omapdrm/dss/venc.c 	r = venc_runtime_get(venc);
r                 715 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 716 drivers/gpu/drm/omapdrm/dss/venc.c 		return r;
r                 748 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 760 drivers/gpu/drm/omapdrm/dss/venc.c 	r = omapdss_device_init_output(out);
r                 761 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r < 0)
r                 762 drivers/gpu/drm/omapdrm/dss/venc.c 		return r;
r                 780 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 788 drivers/gpu/drm/omapdrm/dss/venc.c 	r = of_property_read_u32(ep, "ti,channels", &channels);
r                 789 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r) {
r                 791 drivers/gpu/drm/omapdrm/dss/venc.c 			"failed to read property 'ti,channels': %d\n", r);
r                 805 drivers/gpu/drm/omapdrm/dss/venc.c 		r = -EINVAL;
r                 815 drivers/gpu/drm/omapdrm/dss/venc.c 	return r;
r                 828 drivers/gpu/drm/omapdrm/dss/venc.c 	int r;
r                 849 drivers/gpu/drm/omapdrm/dss/venc.c 		r = PTR_ERR(venc->base);
r                 855 drivers/gpu/drm/omapdrm/dss/venc.c 		r = PTR_ERR(venc->vdda_dac_reg);
r                 856 drivers/gpu/drm/omapdrm/dss/venc.c 		if (r != -EPROBE_DEFER)
r                 861 drivers/gpu/drm/omapdrm/dss/venc.c 	r = venc_get_clocks(venc);
r                 862 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 865 drivers/gpu/drm/omapdrm/dss/venc.c 	r = venc_probe_of(venc);
r                 866 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 871 drivers/gpu/drm/omapdrm/dss/venc.c 	r = venc_init_output(venc);
r                 872 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 875 drivers/gpu/drm/omapdrm/dss/venc.c 	r = component_add(&pdev->dev, &venc_component_ops);
r                 876 drivers/gpu/drm/omapdrm/dss/venc.c 	if (r)
r                 887 drivers/gpu/drm/omapdrm/dss/venc.c 	return r;
r                  57 drivers/gpu/drm/omapdrm/dss/video-pll.c 	int r;
r                  59 drivers/gpu/drm/omapdrm/dss/video-pll.c 	r = dss_runtime_get(pll->dss);
r                  60 drivers/gpu/drm/omapdrm/dss/video-pll.c 	if (r)
r                  61 drivers/gpu/drm/omapdrm/dss/video-pll.c 		return r;
r                  67 drivers/gpu/drm/omapdrm/dss/video-pll.c 	r = dss_pll_wait_reset_done(pll);
r                  68 drivers/gpu/drm/omapdrm/dss/video-pll.c 	if (r)
r                  80 drivers/gpu/drm/omapdrm/dss/video-pll.c 	return r;
r                 145 drivers/gpu/drm/omapdrm/dss/video-pll.c 	int r;
r                 187 drivers/gpu/drm/omapdrm/dss/video-pll.c 	r = dss_pll_register(dss, pll);
r                 188 drivers/gpu/drm/omapdrm/dss/video-pll.c 	if (r)
r                 189 drivers/gpu/drm/omapdrm/dss/video-pll.c 		return ERR_PTR(r);
r                 495 drivers/gpu/drm/omapdrm/omap_crtc.c 	int r;
r                 506 drivers/gpu/drm/omapdrm/omap_crtc.c 		r = priv->dispc_ops->mgr_check_timings(priv->dispc,
r                 509 drivers/gpu/drm/omapdrm/omap_crtc.c 		if (r)
r                 510 drivers/gpu/drm/omapdrm/omap_crtc.c 			return r;
r                 114 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	int r;
r                 119 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	r = dmm_dma_copy(dmm, src, dst);
r                 120 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	if (r) {
r                 137 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	int r;
r                 151 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	r = dmm_dma_copy(dmm, src, dst);
r                 152 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	if (r) {
r                 242 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 	u32 r = 0, err, i;
r                 246 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 		r = dmm_read(dmm, reg[PAT_STATUS][engine->id]);
r                 247 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 		err = r & DMM_PATSTATUS_ERR;
r                 251 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 				__func__, engine->id, r);
r                 255 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 		if ((r & wait_mask) == wait_mask)
r                 261 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c 				__func__, engine->id, r);
r                 154 drivers/gpu/drm/omapdrm/omap_drv.c 	int r;
r                 157 drivers/gpu/drm/omapdrm/omap_drv.c 		r = omapdss_device_connect(priv->dss, NULL, output);
r                 158 drivers/gpu/drm/omapdrm/omap_drv.c 		if (r == -EPROBE_DEFER) {
r                 160 drivers/gpu/drm/omapdrm/omap_drv.c 			return r;
r                 161 drivers/gpu/drm/omapdrm/omap_drv.c 		} else if (r) {
r                  87 drivers/gpu/drm/omapdrm/omap_encoder.c 		int r;
r                  89 drivers/gpu/drm/omapdrm/omap_encoder.c 		r = drm_hdmi_avi_infoframe_from_display_mode(&avi, connector,
r                  91 drivers/gpu/drm/omapdrm/omap_encoder.c 		if (r == 0)
r                 168 drivers/gpu/drm/panfrost/panfrost_gpu.c #define GPU_REV(name, r, p) GPU_REV_EXT(name, r, p, 0, )
r                  86 drivers/gpu/drm/qxl/qxl_debugfs.c 	int r;
r                  93 drivers/gpu/drm/qxl/qxl_debugfs.c 	r = qxl_ttm_debugfs_init(dev);
r                  94 drivers/gpu/drm/qxl/qxl_debugfs.c 	if (r) {
r                  96 drivers/gpu/drm/qxl/qxl_debugfs.c 		return r;
r                 940 drivers/gpu/drm/qxl/qxl_display.c 	int r;
r                 948 drivers/gpu/drm/qxl/qxl_display.c 		r = -ENOMEM;
r                 954 drivers/gpu/drm/qxl/qxl_display.c 		r = -ENOMEM;
r                 958 drivers/gpu/drm/qxl/qxl_display.c 	r = drm_crtc_init_with_planes(dev, &qxl_crtc->base, primary, cursor,
r                 960 drivers/gpu/drm/qxl/qxl_display.c 	if (r)
r                 975 drivers/gpu/drm/qxl/qxl_display.c 	return r;
r                  38 drivers/gpu/drm/qxl/qxl_dumb.c 	int r;
r                  61 drivers/gpu/drm/qxl/qxl_dumb.c 	r = qxl_gem_object_create_with_handle(qdev, file_priv,
r                  65 drivers/gpu/drm/qxl/qxl_dumb.c 	if (r)
r                  66 drivers/gpu/drm/qxl/qxl_dumb.c 		return r;
r                  52 drivers/gpu/drm/qxl/qxl_gem.c 	int r;
r                  58 drivers/gpu/drm/qxl/qxl_gem.c 	r = qxl_bo_create(qdev, size, kernel, false, initial_domain, surf, &qbo);
r                  59 drivers/gpu/drm/qxl/qxl_gem.c 	if (r) {
r                  60 drivers/gpu/drm/qxl/qxl_gem.c 		if (r != -ERESTARTSYS)
r                  63 drivers/gpu/drm/qxl/qxl_gem.c 				  size, initial_domain, alignment, r);
r                  64 drivers/gpu/drm/qxl/qxl_gem.c 		return r;
r                  84 drivers/gpu/drm/qxl/qxl_gem.c 	int r;
r                  89 drivers/gpu/drm/qxl/qxl_gem.c 	r = qxl_gem_object_create(qdev, size, 0,
r                  93 drivers/gpu/drm/qxl/qxl_gem.c 	if (r)
r                  95 drivers/gpu/drm/qxl/qxl_gem.c 	r = drm_gem_handle_create(file_priv, gobj, handle);
r                  96 drivers/gpu/drm/qxl/qxl_gem.c 	if (r)
r                  97 drivers/gpu/drm/qxl/qxl_gem.c 		return r;
r                 113 drivers/gpu/drm/qxl/qxl_kms.c 	int r, sb;
r                 115 drivers/gpu/drm/qxl/qxl_kms.c 	r = drm_dev_init(&qdev->ddev, drv, &pdev->dev);
r                 116 drivers/gpu/drm/qxl/qxl_kms.c 	if (r) {
r                 139 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 162 drivers/gpu/drm/qxl/qxl_kms.c 			r = -ENOMEM;
r                 181 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 186 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENODEV;
r                 190 drivers/gpu/drm/qxl/qxl_kms.c 	r = qxl_bo_init(qdev);
r                 191 drivers/gpu/drm/qxl/qxl_kms.c 	if (r) {
r                 192 drivers/gpu/drm/qxl/qxl_kms.c 		DRM_ERROR("bo init failed %d\n", r);
r                 201 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 213 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 227 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 239 drivers/gpu/drm/qxl/qxl_kms.c 		r = -ENOMEM;
r                 257 drivers/gpu/drm/qxl/qxl_kms.c 	r = qxl_irq_init(qdev);
r                 258 drivers/gpu/drm/qxl/qxl_kms.c 	if (r) {
r                 295 drivers/gpu/drm/qxl/qxl_kms.c 	return r;
r                  87 drivers/gpu/drm/qxl/qxl_object.c 	int r;
r                  98 drivers/gpu/drm/qxl/qxl_object.c 	r = drm_gem_object_init(&qdev->ddev, &bo->tbo.base, size);
r                  99 drivers/gpu/drm/qxl/qxl_object.c 	if (unlikely(r)) {
r                 101 drivers/gpu/drm/qxl/qxl_object.c 		return r;
r                 113 drivers/gpu/drm/qxl/qxl_object.c 	r = ttm_bo_init(&qdev->mman.bdev, &bo->tbo, size, type,
r                 116 drivers/gpu/drm/qxl/qxl_object.c 	if (unlikely(r != 0)) {
r                 117 drivers/gpu/drm/qxl/qxl_object.c 		if (r != -ERESTARTSYS)
r                 121 drivers/gpu/drm/qxl/qxl_object.c 		return r;
r                 130 drivers/gpu/drm/qxl/qxl_object.c 	int r;
r                 138 drivers/gpu/drm/qxl/qxl_object.c 	r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap);
r                 139 drivers/gpu/drm/qxl/qxl_object.c 	if (r)
r                 140 drivers/gpu/drm/qxl/qxl_object.c 		return r;
r                 231 drivers/gpu/drm/qxl/qxl_object.c 	int r;
r                 238 drivers/gpu/drm/qxl/qxl_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 239 drivers/gpu/drm/qxl/qxl_object.c 	if (likely(r == 0)) {
r                 242 drivers/gpu/drm/qxl/qxl_object.c 	if (unlikely(r != 0))
r                 244 drivers/gpu/drm/qxl/qxl_object.c 	return r;
r                 251 drivers/gpu/drm/qxl/qxl_object.c 	int r, i;
r                 262 drivers/gpu/drm/qxl/qxl_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 263 drivers/gpu/drm/qxl/qxl_object.c 	if (unlikely(r != 0))
r                 265 drivers/gpu/drm/qxl/qxl_object.c 	return r;
r                 275 drivers/gpu/drm/qxl/qxl_object.c 	int r;
r                 277 drivers/gpu/drm/qxl/qxl_object.c 	r = qxl_bo_reserve(bo, false);
r                 278 drivers/gpu/drm/qxl/qxl_object.c 	if (r)
r                 279 drivers/gpu/drm/qxl/qxl_object.c 		return r;
r                 281 drivers/gpu/drm/qxl/qxl_object.c 	r = __qxl_bo_pin(bo);
r                 283 drivers/gpu/drm/qxl/qxl_object.c 	return r;
r                 293 drivers/gpu/drm/qxl/qxl_object.c 	int r;
r                 295 drivers/gpu/drm/qxl/qxl_object.c 	r = qxl_bo_reserve(bo, false);
r                 296 drivers/gpu/drm/qxl/qxl_object.c 	if (r)
r                 297 drivers/gpu/drm/qxl/qxl_object.c 		return r;
r                 299 drivers/gpu/drm/qxl/qxl_object.c 	r = __qxl_bo_unpin(bo);
r                 301 drivers/gpu/drm/qxl/qxl_object.c 	return r;
r                  32 drivers/gpu/drm/qxl/qxl_object.h 	int r;
r                  34 drivers/gpu/drm/qxl/qxl_object.h 	r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
r                  35 drivers/gpu/drm/qxl/qxl_object.h 	if (unlikely(r != 0)) {
r                  36 drivers/gpu/drm/qxl/qxl_object.h 		if (r != -ERESTARTSYS) {
r                  41 drivers/gpu/drm/qxl/qxl_object.h 		return r;
r                  69 drivers/gpu/drm/qxl/qxl_object.h 	int r;
r                  71 drivers/gpu/drm/qxl/qxl_object.h 	r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
r                  72 drivers/gpu/drm/qxl/qxl_object.h 	if (unlikely(r != 0)) {
r                  73 drivers/gpu/drm/qxl/qxl_object.h 		if (r != -ERESTARTSYS) {
r                  79 drivers/gpu/drm/qxl/qxl_object.h 		return r;
r                  84 drivers/gpu/drm/qxl/qxl_object.h 	r = ttm_bo_wait(&bo->tbo, true, no_wait);
r                  86 drivers/gpu/drm/qxl/qxl_object.h 	return r;
r                  68 drivers/gpu/drm/qxl/qxl_ttm.c 	int r;
r                  80 drivers/gpu/drm/qxl/qxl_ttm.c 	r = ttm_bo_mmap(filp, vma, &qdev->mman.bdev);
r                  81 drivers/gpu/drm/qxl/qxl_ttm.c 	if (unlikely(r != 0))
r                  82 drivers/gpu/drm/qxl/qxl_ttm.c 		return r;
r                 321 drivers/gpu/drm/qxl/qxl_ttm.c 	int r;
r                 325 drivers/gpu/drm/qxl/qxl_ttm.c 	r = ttm_bo_device_init(&qdev->mman.bdev,
r                 329 drivers/gpu/drm/qxl/qxl_ttm.c 	if (r) {
r                 330 drivers/gpu/drm/qxl/qxl_ttm.c 		DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
r                 331 drivers/gpu/drm/qxl/qxl_ttm.c 		return r;
r                 335 drivers/gpu/drm/qxl/qxl_ttm.c 	r = ttm_bo_init_mm(&qdev->mman.bdev, TTM_PL_VRAM,
r                 337 drivers/gpu/drm/qxl/qxl_ttm.c 	if (r) {
r                 339 drivers/gpu/drm/qxl/qxl_ttm.c 		return r;
r                 341 drivers/gpu/drm/qxl/qxl_ttm.c 	r = ttm_bo_init_mm(&qdev->mman.bdev, TTM_PL_PRIV,
r                 343 drivers/gpu/drm/qxl/qxl_ttm.c 	if (r) {
r                 345 drivers/gpu/drm/qxl/qxl_ttm.c 		return r;
r                 282 drivers/gpu/drm/r128/r128_state.c 			   int x, int y, int w, int h, int r, int g, int b)
r                 291 drivers/gpu/drm/r128/r128_state.c 		color = (((r & 0xf8) << 8) |
r                 296 drivers/gpu/drm/r128/r128_state.c 		color = ((r << 16) | (g << 8) | b);
r                 300 drivers/gpu/drm/r128/r128_state.c 		color = (((0xff) << 24) | (r << 16) | (g << 8) | b);
r                 622 drivers/gpu/drm/radeon/atom.c 	int r = 0;
r                 629 drivers/gpu/drm/radeon/atom.c 		r = atom_execute_table_locked(ctx->ctx, idx, ctx->ps + ctx->ps_shift);
r                 630 drivers/gpu/drm/radeon/atom.c 	if (r) {
r                1221 drivers/gpu/drm/radeon/atom.c 	int r;
r                1235 drivers/gpu/drm/radeon/atom.c 	r = atom_execute_table_locked(ctx, index, params);
r                1237 drivers/gpu/drm/radeon/atom.c 	return r;
r                1242 drivers/gpu/drm/radeon/atom.c 	int r;
r                1244 drivers/gpu/drm/radeon/atom.c 	r = atom_execute_table_scratch_unlocked(ctx, index, params);
r                1246 drivers/gpu/drm/radeon/atom.c 	return r;
r                1159 drivers/gpu/drm/radeon/atombios_crtc.c 	int r;
r                1179 drivers/gpu/drm/radeon/atombios_crtc.c 	r = radeon_bo_reserve(rbo, false);
r                1180 drivers/gpu/drm/radeon/atombios_crtc.c 	if (unlikely(r != 0))
r                1181 drivers/gpu/drm/radeon/atombios_crtc.c 		return r;
r                1186 drivers/gpu/drm/radeon/atombios_crtc.c 		r = radeon_bo_pin(rbo, RADEON_GEM_DOMAIN_VRAM, &fb_location);
r                1187 drivers/gpu/drm/radeon/atombios_crtc.c 		if (unlikely(r != 0)) {
r                1453 drivers/gpu/drm/radeon/atombios_crtc.c 		r = radeon_bo_reserve(rbo, false);
r                1454 drivers/gpu/drm/radeon/atombios_crtc.c 		if (unlikely(r != 0))
r                1455 drivers/gpu/drm/radeon/atombios_crtc.c 			return r;
r                1480 drivers/gpu/drm/radeon/atombios_crtc.c 	int r;
r                1497 drivers/gpu/drm/radeon/atombios_crtc.c 	r = radeon_bo_reserve(rbo, false);
r                1498 drivers/gpu/drm/radeon/atombios_crtc.c 	if (unlikely(r != 0))
r                1499 drivers/gpu/drm/radeon/atombios_crtc.c 		return r;
r                1507 drivers/gpu/drm/radeon/atombios_crtc.c 		r = radeon_bo_pin(rbo, RADEON_GEM_DOMAIN_VRAM, &fb_location);
r                1508 drivers/gpu/drm/radeon/atombios_crtc.c 		if (unlikely(r != 0)) {
r                1662 drivers/gpu/drm/radeon/atombios_crtc.c 		r = radeon_bo_reserve(rbo, false);
r                1663 drivers/gpu/drm/radeon/atombios_crtc.c 		if (unlikely(r != 0))
r                1664 drivers/gpu/drm/radeon/atombios_crtc.c 			return r;
r                2167 drivers/gpu/drm/radeon/atombios_crtc.c 		int r;
r                2171 drivers/gpu/drm/radeon/atombios_crtc.c 		r = radeon_bo_reserve(rbo, false);
r                2172 drivers/gpu/drm/radeon/atombios_crtc.c 		if (unlikely(r))
r                  96 drivers/gpu/drm/radeon/atombios_dp.c 	int r = 0;
r                 122 drivers/gpu/drm/radeon/atombios_dp.c 		r = -ETIMEDOUT;
r                 129 drivers/gpu/drm/radeon/atombios_dp.c 		r = -EIO;
r                 136 drivers/gpu/drm/radeon/atombios_dp.c 		r = -EIO;
r                 147 drivers/gpu/drm/radeon/atombios_dp.c 	r = recv_bytes;
r                 152 drivers/gpu/drm/radeon/atombios_dp.c 	return r;
r                  46 drivers/gpu/drm/radeon/atombios_i2c.c 	int r = 0;
r                  58 drivers/gpu/drm/radeon/atombios_i2c.c 			r = -EINVAL;
r                  73 drivers/gpu/drm/radeon/atombios_i2c.c 			r = -EINVAL;
r                  91 drivers/gpu/drm/radeon/atombios_i2c.c 		r = -EIO;
r                 102 drivers/gpu/drm/radeon/atombios_i2c.c 	return r;
r                2536 drivers/gpu/drm/radeon/btc_dpm.c 	int r;
r                2538 drivers/gpu/drm/radeon/btc_dpm.c 	r = ni_mc_load_microcode(rdev);
r                2539 drivers/gpu/drm/radeon/btc_dpm.c 	if (r)
r                5154 drivers/gpu/drm/radeon/ci_dpm.c 	int r;
r                5156 drivers/gpu/drm/radeon/ci_dpm.c 	r = ci_mc_load_microcode(rdev);
r                5157 drivers/gpu/drm/radeon/ci_dpm.c 	if (r)
r                 191 drivers/gpu/drm/radeon/cik.c 	u32 r;
r                 195 drivers/gpu/drm/radeon/cik.c 	r = RREG32(CIK_DIDT_IND_DATA);
r                 197 drivers/gpu/drm/radeon/cik.c 	return r;
r                 253 drivers/gpu/drm/radeon/cik.c 	u32 r;
r                 258 drivers/gpu/drm/radeon/cik.c 	r = RREG32(PCIE_DATA);
r                 260 drivers/gpu/drm/radeon/cik.c 	return r;
r                3464 drivers/gpu/drm/radeon/cik.c 	int r;
r                3466 drivers/gpu/drm/radeon/cik.c 	r = radeon_scratch_get(rdev, &scratch);
r                3467 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3468 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: cp failed to get scratch reg (%d).\n", r);
r                3469 drivers/gpu/drm/radeon/cik.c 		return r;
r                3472 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_lock(rdev, ring, 3);
r                3473 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3474 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: cp failed to lock ring %d (%d).\n", ring->idx, r);
r                3476 drivers/gpu/drm/radeon/cik.c 		return r;
r                3494 drivers/gpu/drm/radeon/cik.c 		r = -EINVAL;
r                3497 drivers/gpu/drm/radeon/cik.c 	return r;
r                3670 drivers/gpu/drm/radeon/cik.c 	int r = 0;
r                3676 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_lock(rdev, ring, num_loops * 7 + 18);
r                3677 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3678 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                3680 drivers/gpu/drm/radeon/cik.c 		return ERR_PTR(r);
r                3705 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                3706 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3709 drivers/gpu/drm/radeon/cik.c 		return ERR_PTR(r);
r                3789 drivers/gpu/drm/radeon/cik.c 	int r;
r                3791 drivers/gpu/drm/radeon/cik.c 	r = radeon_scratch_get(rdev, &scratch);
r                3792 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3793 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: failed to get scratch reg (%d).\n", r);
r                3794 drivers/gpu/drm/radeon/cik.c 		return r;
r                3797 drivers/gpu/drm/radeon/cik.c 	r = radeon_ib_get(rdev, ring->idx, &ib, NULL, 256);
r                3798 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3799 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                3801 drivers/gpu/drm/radeon/cik.c 		return r;
r                3807 drivers/gpu/drm/radeon/cik.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                3808 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3811 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                3812 drivers/gpu/drm/radeon/cik.c 		return r;
r                3814 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_wait_timeout(ib.fence, false, usecs_to_jiffies(
r                3816 drivers/gpu/drm/radeon/cik.c 	if (r < 0) {
r                3817 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                3820 drivers/gpu/drm/radeon/cik.c 		return r;
r                3821 drivers/gpu/drm/radeon/cik.c 	} else if (r == 0) {
r                3827 drivers/gpu/drm/radeon/cik.c 	r = 0;
r                3839 drivers/gpu/drm/radeon/cik.c 		r = -EINVAL;
r                3843 drivers/gpu/drm/radeon/cik.c 	return r;
r                3988 drivers/gpu/drm/radeon/cik.c 	int r, i;
r                3997 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_lock(rdev, ring, cik_default_size + 17);
r                3998 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                3999 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                4000 drivers/gpu/drm/radeon/cik.c 		return r;
r                4066 drivers/gpu/drm/radeon/cik.c 	int r;
r                4115 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]);
r                4116 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                4118 drivers/gpu/drm/radeon/cik.c 		return r;
r                4348 drivers/gpu/drm/radeon/cik.c 	int i, idx, r;
r                4359 drivers/gpu/drm/radeon/cik.c 			r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false);
r                4360 drivers/gpu/drm/radeon/cik.c 			if (unlikely(r != 0))
r                4361 drivers/gpu/drm/radeon/cik.c 				dev_warn(rdev->dev, "(%d) reserve MQD bo failed\n", r);
r                4374 drivers/gpu/drm/radeon/cik.c 	int r;
r                4377 drivers/gpu/drm/radeon/cik.c 		r = radeon_bo_reserve(rdev->mec.hpd_eop_obj, false);
r                4378 drivers/gpu/drm/radeon/cik.c 		if (unlikely(r != 0))
r                4379 drivers/gpu/drm/radeon/cik.c 			dev_warn(rdev->dev, "(%d) reserve HPD EOP bo failed\n", r);
r                4392 drivers/gpu/drm/radeon/cik.c 	int r;
r                4407 drivers/gpu/drm/radeon/cik.c 		r = radeon_bo_create(rdev,
r                4412 drivers/gpu/drm/radeon/cik.c 		if (r) {
r                4413 drivers/gpu/drm/radeon/cik.c 			dev_warn(rdev->dev, "(%d) create HDP EOP bo failed\n", r);
r                4414 drivers/gpu/drm/radeon/cik.c 			return r;
r                4418 drivers/gpu/drm/radeon/cik.c 	r = radeon_bo_reserve(rdev->mec.hpd_eop_obj, false);
r                4419 drivers/gpu/drm/radeon/cik.c 	if (unlikely(r != 0)) {
r                4421 drivers/gpu/drm/radeon/cik.c 		return r;
r                4423 drivers/gpu/drm/radeon/cik.c 	r = radeon_bo_pin(rdev->mec.hpd_eop_obj, RADEON_GEM_DOMAIN_GTT,
r                4425 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                4426 drivers/gpu/drm/radeon/cik.c 		dev_warn(rdev->dev, "(%d) pin HDP EOP bo failed\n", r);
r                4428 drivers/gpu/drm/radeon/cik.c 		return r;
r                4430 drivers/gpu/drm/radeon/cik.c 	r = radeon_bo_kmap(rdev->mec.hpd_eop_obj, (void **)&hpd);
r                4431 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                4432 drivers/gpu/drm/radeon/cik.c 		dev_warn(rdev->dev, "(%d) map HDP EOP bo failed\n", r);
r                4434 drivers/gpu/drm/radeon/cik.c 		return r;
r                4524 drivers/gpu/drm/radeon/cik.c 	int r, i, j, idx;
r                4534 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_compute_start(rdev);
r                4535 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4536 drivers/gpu/drm/radeon/cik.c 		return r;
r                4578 drivers/gpu/drm/radeon/cik.c 			r = radeon_bo_create(rdev,
r                4583 drivers/gpu/drm/radeon/cik.c 			if (r) {
r                4584 drivers/gpu/drm/radeon/cik.c 				dev_warn(rdev->dev, "(%d) create MQD bo failed\n", r);
r                4585 drivers/gpu/drm/radeon/cik.c 				return r;
r                4589 drivers/gpu/drm/radeon/cik.c 		r = radeon_bo_reserve(rdev->ring[idx].mqd_obj, false);
r                4590 drivers/gpu/drm/radeon/cik.c 		if (unlikely(r != 0)) {
r                4592 drivers/gpu/drm/radeon/cik.c 			return r;
r                4594 drivers/gpu/drm/radeon/cik.c 		r = radeon_bo_pin(rdev->ring[idx].mqd_obj, RADEON_GEM_DOMAIN_GTT,
r                4596 drivers/gpu/drm/radeon/cik.c 		if (r) {
r                4597 drivers/gpu/drm/radeon/cik.c 			dev_warn(rdev->dev, "(%d) pin MQD bo failed\n", r);
r                4599 drivers/gpu/drm/radeon/cik.c 			return r;
r                4601 drivers/gpu/drm/radeon/cik.c 		r = radeon_bo_kmap(rdev->ring[idx].mqd_obj, (void **)&buf);
r                4602 drivers/gpu/drm/radeon/cik.c 		if (r) {
r                4603 drivers/gpu/drm/radeon/cik.c 			dev_warn(rdev->dev, "(%d) map MQD bo failed\n", r);
r                4605 drivers/gpu/drm/radeon/cik.c 			return r;
r                4751 drivers/gpu/drm/radeon/cik.c 		r = radeon_ring_test(rdev, idx, &rdev->ring[idx]);
r                4752 drivers/gpu/drm/radeon/cik.c 		if (r)
r                4767 drivers/gpu/drm/radeon/cik.c 	int r;
r                4769 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_gfx_load_microcode(rdev);
r                4770 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4771 drivers/gpu/drm/radeon/cik.c 		return r;
r                4772 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_compute_load_microcode(rdev);
r                4773 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4774 drivers/gpu/drm/radeon/cik.c 		return r;
r                4787 drivers/gpu/drm/radeon/cik.c 	int r;
r                4791 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_load_microcode(rdev);
r                4792 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4793 drivers/gpu/drm/radeon/cik.c 		return r;
r                4795 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_gfx_resume(rdev);
r                4796 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4797 drivers/gpu/drm/radeon/cik.c 		return r;
r                4798 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_compute_resume(rdev);
r                4799 drivers/gpu/drm/radeon/cik.c 	if (r)
r                4800 drivers/gpu/drm/radeon/cik.c 		return r;
r                5435 drivers/gpu/drm/radeon/cik.c 	int r, i;
r                5441 drivers/gpu/drm/radeon/cik.c 	r = radeon_gart_table_vram_pin(rdev);
r                5442 drivers/gpu/drm/radeon/cik.c 	if (r)
r                5443 drivers/gpu/drm/radeon/cik.c 		return r;
r                8130 drivers/gpu/drm/radeon/cik.c 	int r;
r                8135 drivers/gpu/drm/radeon/cik.c 	r = radeon_uvd_init(rdev);
r                8136 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8137 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                8153 drivers/gpu/drm/radeon/cik.c 	int r;
r                8158 drivers/gpu/drm/radeon/cik.c 	r = radeon_uvd_resume(rdev);
r                8159 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8160 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                8163 drivers/gpu/drm/radeon/cik.c 	r = uvd_v4_2_resume(rdev);
r                8164 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8165 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed UVD 4.2 resume (%d).\n", r);
r                8168 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                8169 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8170 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                8182 drivers/gpu/drm/radeon/cik.c 	int r;
r                8188 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                8189 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8190 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                8193 drivers/gpu/drm/radeon/cik.c 	r = uvd_v1_0_init(rdev);
r                8194 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8195 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                8202 drivers/gpu/drm/radeon/cik.c 	int r;
r                8207 drivers/gpu/drm/radeon/cik.c 	r = radeon_vce_init(rdev);
r                8208 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8209 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed VCE (%d) init.\n", r);
r                8227 drivers/gpu/drm/radeon/cik.c 	int r;
r                8232 drivers/gpu/drm/radeon/cik.c 	r = radeon_vce_resume(rdev);
r                8233 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8234 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                8237 drivers/gpu/drm/radeon/cik.c 	r = vce_v2_0_resume(rdev);
r                8238 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8239 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                8242 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE1_INDEX);
r                8243 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8244 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing VCE1 fences (%d).\n", r);
r                8247 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE2_INDEX);
r                8248 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8249 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing VCE2 fences (%d).\n", r);
r                8262 drivers/gpu/drm/radeon/cik.c 	int r;
r                8268 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP);
r                8269 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8270 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                8274 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP);
r                8275 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8276 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                8279 drivers/gpu/drm/radeon/cik.c 	r = vce_v1_0_init(rdev);
r                8280 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8281 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing VCE (%d).\n", r);
r                8299 drivers/gpu/drm/radeon/cik.c 	int r;
r                8307 drivers/gpu/drm/radeon/cik.c 	r = r600_vram_scratch_init(rdev);
r                8308 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8309 drivers/gpu/drm/radeon/cik.c 		return r;
r                8314 drivers/gpu/drm/radeon/cik.c 		r = ci_mc_load_microcode(rdev);
r                8315 drivers/gpu/drm/radeon/cik.c 		if (r) {
r                8317 drivers/gpu/drm/radeon/cik.c 			return r;
r                8321 drivers/gpu/drm/radeon/cik.c 	r = cik_pcie_gart_enable(rdev);
r                8322 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8323 drivers/gpu/drm/radeon/cik.c 		return r;
r                8341 drivers/gpu/drm/radeon/cik.c 	r = sumo_rlc_init(rdev);
r                8342 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8344 drivers/gpu/drm/radeon/cik.c 		return r;
r                8348 drivers/gpu/drm/radeon/cik.c 	r = radeon_wb_init(rdev);
r                8349 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8350 drivers/gpu/drm/radeon/cik.c 		return r;
r                8353 drivers/gpu/drm/radeon/cik.c 	r = cik_mec_init(rdev);
r                8354 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8356 drivers/gpu/drm/radeon/cik.c 		return r;
r                8359 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                8360 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8361 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                8362 drivers/gpu/drm/radeon/cik.c 		return r;
r                8365 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP1_INDEX);
r                8366 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8367 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                8368 drivers/gpu/drm/radeon/cik.c 		return r;
r                8371 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP2_INDEX);
r                8372 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8373 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                8374 drivers/gpu/drm/radeon/cik.c 		return r;
r                8377 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_DMA_INDEX);
r                8378 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8379 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                8380 drivers/gpu/drm/radeon/cik.c 		return r;
r                8383 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_DMA1_INDEX);
r                8384 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8385 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                8386 drivers/gpu/drm/radeon/cik.c 		return r;
r                8394 drivers/gpu/drm/radeon/cik.c 		r = radeon_irq_kms_init(rdev);
r                8395 drivers/gpu/drm/radeon/cik.c 		if (r)
r                8396 drivers/gpu/drm/radeon/cik.c 			return r;
r                8399 drivers/gpu/drm/radeon/cik.c 	r = cik_irq_init(rdev);
r                8400 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8401 drivers/gpu/drm/radeon/cik.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                8403 drivers/gpu/drm/radeon/cik.c 		return r;
r                8417 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                8419 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8420 drivers/gpu/drm/radeon/cik.c 		return r;
r                8425 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET,
r                8427 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8428 drivers/gpu/drm/radeon/cik.c 		return r;
r                8436 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET,
r                8438 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8439 drivers/gpu/drm/radeon/cik.c 		return r;
r                8447 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET,
r                8449 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8450 drivers/gpu/drm/radeon/cik.c 		return r;
r                8453 drivers/gpu/drm/radeon/cik.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET,
r                8455 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8456 drivers/gpu/drm/radeon/cik.c 		return r;
r                8458 drivers/gpu/drm/radeon/cik.c 	r = cik_cp_resume(rdev);
r                8459 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8460 drivers/gpu/drm/radeon/cik.c 		return r;
r                8462 drivers/gpu/drm/radeon/cik.c 	r = cik_sdma_resume(rdev);
r                8463 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8464 drivers/gpu/drm/radeon/cik.c 		return r;
r                8469 drivers/gpu/drm/radeon/cik.c 	r = radeon_ib_pool_init(rdev);
r                8470 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8471 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                8472 drivers/gpu/drm/radeon/cik.c 		return r;
r                8475 drivers/gpu/drm/radeon/cik.c 	r = radeon_vm_manager_init(rdev);
r                8476 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8477 drivers/gpu/drm/radeon/cik.c 		dev_err(rdev->dev, "vm manager initialization failed (%d).\n", r);
r                8478 drivers/gpu/drm/radeon/cik.c 		return r;
r                8481 drivers/gpu/drm/radeon/cik.c 	r = radeon_audio_init(rdev);
r                8482 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8483 drivers/gpu/drm/radeon/cik.c 		return r;
r                8499 drivers/gpu/drm/radeon/cik.c 	int r;
r                8511 drivers/gpu/drm/radeon/cik.c 	r = cik_startup(rdev);
r                8512 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                8515 drivers/gpu/drm/radeon/cik.c 		return r;
r                8518 drivers/gpu/drm/radeon/cik.c 	return r;
r                8571 drivers/gpu/drm/radeon/cik.c 	int r;
r                8583 drivers/gpu/drm/radeon/cik.c 	r = radeon_atombios_init(rdev);
r                8584 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8585 drivers/gpu/drm/radeon/cik.c 		return r;
r                8606 drivers/gpu/drm/radeon/cik.c 	r = radeon_fence_driver_init(rdev);
r                8607 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8608 drivers/gpu/drm/radeon/cik.c 		return r;
r                8611 drivers/gpu/drm/radeon/cik.c 	r = cik_mc_init(rdev);
r                8612 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8613 drivers/gpu/drm/radeon/cik.c 		return r;
r                8615 drivers/gpu/drm/radeon/cik.c 	r = radeon_bo_init(rdev);
r                8616 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8617 drivers/gpu/drm/radeon/cik.c 		return r;
r                8622 drivers/gpu/drm/radeon/cik.c 			r = cik_init_microcode(rdev);
r                8623 drivers/gpu/drm/radeon/cik.c 			if (r) {
r                8625 drivers/gpu/drm/radeon/cik.c 				return r;
r                8632 drivers/gpu/drm/radeon/cik.c 			r = cik_init_microcode(rdev);
r                8633 drivers/gpu/drm/radeon/cik.c 			if (r) {
r                8635 drivers/gpu/drm/radeon/cik.c 				return r;
r                8650 drivers/gpu/drm/radeon/cik.c 	r = radeon_doorbell_get(rdev, &ring->doorbell_index);
r                8651 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8652 drivers/gpu/drm/radeon/cik.c 		return r;
r                8657 drivers/gpu/drm/radeon/cik.c 	r = radeon_doorbell_get(rdev, &ring->doorbell_index);
r                8658 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8659 drivers/gpu/drm/radeon/cik.c 		return r;
r                8675 drivers/gpu/drm/radeon/cik.c 	r = r600_pcie_gart_init(rdev);
r                8676 drivers/gpu/drm/radeon/cik.c 	if (r)
r                8677 drivers/gpu/drm/radeon/cik.c 		return r;
r                8680 drivers/gpu/drm/radeon/cik.c 	r = cik_startup(rdev);
r                8681 drivers/gpu/drm/radeon/cik.c 	if (r) {
r                9431 drivers/gpu/drm/radeon/cik.c 	int r, i;
r                9435 drivers/gpu/drm/radeon/cik.c 	r = radeon_atom_get_clock_dividers(rdev, COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK,
r                9437 drivers/gpu/drm/radeon/cik.c 	if (r)
r                9438 drivers/gpu/drm/radeon/cik.c 		return r;
r                9458 drivers/gpu/drm/radeon/cik.c 	int r = 0;
r                9460 drivers/gpu/drm/radeon/cik.c 	r = cik_set_uvd_clock(rdev, vclk, CG_VCLK_CNTL, CG_VCLK_STATUS);
r                9461 drivers/gpu/drm/radeon/cik.c 	if (r)
r                9462 drivers/gpu/drm/radeon/cik.c 		return r;
r                9464 drivers/gpu/drm/radeon/cik.c 	r = cik_set_uvd_clock(rdev, dclk, CG_DCLK_CNTL, CG_DCLK_STATUS);
r                9465 drivers/gpu/drm/radeon/cik.c 	return r;
r                9470 drivers/gpu/drm/radeon/cik.c 	int r, i;
r                9474 drivers/gpu/drm/radeon/cik.c 	r = radeon_atom_get_clock_dividers(rdev, COMPUTE_GPUCLK_INPUT_FLAG_DEFAULT_GPUCLK,
r                9476 drivers/gpu/drm/radeon/cik.c 	if (r)
r                9477 drivers/gpu/drm/radeon/cik.c 		return r;
r                 371 drivers/gpu/drm/radeon/cik_sdma.c 	int i, r;
r                 426 drivers/gpu/drm/radeon/cik_sdma.c 		r = radeon_ring_test(rdev, ring->idx, ring);
r                 427 drivers/gpu/drm/radeon/cik_sdma.c 		if (r) {
r                 429 drivers/gpu/drm/radeon/cik_sdma.c 			return r;
r                 530 drivers/gpu/drm/radeon/cik_sdma.c 	int r;
r                 532 drivers/gpu/drm/radeon/cik_sdma.c 	r = cik_sdma_load_microcode(rdev);
r                 533 drivers/gpu/drm/radeon/cik_sdma.c 	if (r)
r                 534 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 540 drivers/gpu/drm/radeon/cik_sdma.c 	r = cik_sdma_gfx_resume(rdev);
r                 541 drivers/gpu/drm/radeon/cik_sdma.c 	if (r)
r                 542 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 543 drivers/gpu/drm/radeon/cik_sdma.c 	r = cik_sdma_rlc_resume(rdev);
r                 544 drivers/gpu/drm/radeon/cik_sdma.c 	if (r)
r                 545 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 590 drivers/gpu/drm/radeon/cik_sdma.c 	int r = 0;
r                 596 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_ring_lock(rdev, ring, num_loops * 7 + 14);
r                 597 drivers/gpu/drm/radeon/cik_sdma.c 	if (r) {
r                 598 drivers/gpu/drm/radeon/cik_sdma.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                 600 drivers/gpu/drm/radeon/cik_sdma.c 		return ERR_PTR(r);
r                 622 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                 623 drivers/gpu/drm/radeon/cik_sdma.c 	if (r) {
r                 626 drivers/gpu/drm/radeon/cik_sdma.c 		return ERR_PTR(r);
r                 649 drivers/gpu/drm/radeon/cik_sdma.c 	int r;
r                 664 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_ring_lock(rdev, ring, 5);
r                 665 drivers/gpu/drm/radeon/cik_sdma.c 	if (r) {
r                 666 drivers/gpu/drm/radeon/cik_sdma.c 		DRM_ERROR("radeon: dma failed to lock ring %d (%d).\n", ring->idx, r);
r                 667 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 688 drivers/gpu/drm/radeon/cik_sdma.c 		r = -EINVAL;
r                 690 drivers/gpu/drm/radeon/cik_sdma.c 	return r;
r                 707 drivers/gpu/drm/radeon/cik_sdma.c 	int r;
r                 721 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_ib_get(rdev, ring->idx, &ib, NULL, 256);
r                 722 drivers/gpu/drm/radeon/cik_sdma.c 	if (r) {
r                 723 drivers/gpu/drm/radeon/cik_sdma.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                 724 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 734 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 735 drivers/gpu/drm/radeon/cik_sdma.c 	if (r) {
r                 737 drivers/gpu/drm/radeon/cik_sdma.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                 738 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 740 drivers/gpu/drm/radeon/cik_sdma.c 	r = radeon_fence_wait_timeout(ib.fence, false, usecs_to_jiffies(
r                 742 drivers/gpu/drm/radeon/cik_sdma.c 	if (r < 0) {
r                 743 drivers/gpu/drm/radeon/cik_sdma.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                 744 drivers/gpu/drm/radeon/cik_sdma.c 		return r;
r                 745 drivers/gpu/drm/radeon/cik_sdma.c 	} else if (r == 0) {
r                 749 drivers/gpu/drm/radeon/cik_sdma.c 	r = 0;
r                 760 drivers/gpu/drm/radeon/cik_sdma.c 		r = -EINVAL;
r                 763 drivers/gpu/drm/radeon/cik_sdma.c 	return r;
r                  36 drivers/gpu/drm/radeon/dce6_afmt.c 	u32 r;
r                  40 drivers/gpu/drm/radeon/dce6_afmt.c 	r = RREG32(AZ_F0_CODEC_ENDPOINT_DATA + block_offset);
r                  43 drivers/gpu/drm/radeon/dce6_afmt.c 	return r;
r                  52 drivers/gpu/drm/radeon/evergreen.c 	u32 r;
r                  56 drivers/gpu/drm/radeon/evergreen.c 	r = RREG32(EVERGREEN_CG_IND_DATA);
r                  58 drivers/gpu/drm/radeon/evergreen.c 	return r;
r                  74 drivers/gpu/drm/radeon/evergreen.c 	u32 r;
r                  78 drivers/gpu/drm/radeon/evergreen.c 	r = RREG32(EVERGREEN_PIF_PHY0_DATA);
r                  80 drivers/gpu/drm/radeon/evergreen.c 	return r;
r                  96 drivers/gpu/drm/radeon/evergreen.c 	u32 r;
r                 100 drivers/gpu/drm/radeon/evergreen.c 	r = RREG32(EVERGREEN_PIF_PHY1_DATA);
r                 102 drivers/gpu/drm/radeon/evergreen.c 	return r;
r                1148 drivers/gpu/drm/radeon/evergreen.c 	int r, i;
r                1151 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_atom_get_clock_dividers(rdev, COMPUTE_ENGINE_PLL_PARAM,
r                1153 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1154 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                1171 drivers/gpu/drm/radeon/evergreen.c 	int r = 0;
r                1174 drivers/gpu/drm/radeon/evergreen.c 	r = sumo_set_uvd_clock(rdev, vclk, CG_VCLK_CNTL, CG_VCLK_STATUS);
r                1175 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1180 drivers/gpu/drm/radeon/evergreen.c 	r = sumo_set_uvd_clock(rdev, dclk, CG_DCLK_CNTL, CG_DCLK_STATUS);
r                1181 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1189 drivers/gpu/drm/radeon/evergreen.c 	return r;
r                1196 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                1212 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_uvd_calc_upll_dividers(rdev, vclk, dclk, 125000, 250000,
r                1215 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1216 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                1230 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                1231 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1232 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                1267 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                1268 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                1269 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                2400 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                2406 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_gart_table_vram_pin(rdev);
r                2407 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                2408 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                3000 drivers/gpu/drm/radeon/evergreen.c 	int r, i;
r                3003 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_lock(rdev, ring, 7);
r                3004 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                3005 drivers/gpu/drm/radeon/evergreen.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                3006 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                3020 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_lock(rdev, ring, evergreen_default_size + 19);
r                3021 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                3022 drivers/gpu/drm/radeon/evergreen.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                3023 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                3068 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                3122 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, ring);
r                3123 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                3125 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                4112 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                4116 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.save_restore_obj, false);
r                4117 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0))
r                4118 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) reserve RLC sr bo failed\n", r);
r                4128 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.clear_state_obj, false);
r                4129 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0))
r                4130 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) reserve RLC c bo failed\n", r);
r                4140 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.cp_table_obj, false);
r                4141 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0))
r                4142 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) reserve RLC cp table bo failed\n", r);
r                4161 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                4173 drivers/gpu/drm/radeon/evergreen.c 			r = radeon_bo_create(rdev, dws * 4, PAGE_SIZE, true,
r                4176 drivers/gpu/drm/radeon/evergreen.c 			if (r) {
r                4177 drivers/gpu/drm/radeon/evergreen.c 				dev_warn(rdev->dev, "(%d) create RLC sr bo failed\n", r);
r                4178 drivers/gpu/drm/radeon/evergreen.c 				return r;
r                4182 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.save_restore_obj, false);
r                4183 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0)) {
r                4185 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4187 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_pin(rdev->rlc.save_restore_obj, RADEON_GEM_DOMAIN_VRAM,
r                4189 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4191 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) pin RLC sr bo failed\n", r);
r                4193 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4196 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_kmap(rdev->rlc.save_restore_obj, (void **)&rdev->rlc.sr_ptr);
r                4197 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4198 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) map RLC sr bo failed\n", r);
r                4200 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4252 drivers/gpu/drm/radeon/evergreen.c 			r = radeon_bo_create(rdev, dws * 4, PAGE_SIZE, true,
r                4255 drivers/gpu/drm/radeon/evergreen.c 			if (r) {
r                4256 drivers/gpu/drm/radeon/evergreen.c 				dev_warn(rdev->dev, "(%d) create RLC c bo failed\n", r);
r                4258 drivers/gpu/drm/radeon/evergreen.c 				return r;
r                4261 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.clear_state_obj, false);
r                4262 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0)) {
r                4264 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4266 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_pin(rdev->rlc.clear_state_obj, RADEON_GEM_DOMAIN_VRAM,
r                4268 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4270 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) pin RLC c bo failed\n", r);
r                4272 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4275 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_kmap(rdev->rlc.clear_state_obj, (void **)&rdev->rlc.cs_ptr);
r                4276 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4277 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) map RLC c bo failed\n", r);
r                4279 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4328 drivers/gpu/drm/radeon/evergreen.c 			r = radeon_bo_create(rdev, rdev->rlc.cp_table_size,
r                4332 drivers/gpu/drm/radeon/evergreen.c 			if (r) {
r                4333 drivers/gpu/drm/radeon/evergreen.c 				dev_warn(rdev->dev, "(%d) create RLC cp table bo failed\n", r);
r                4335 drivers/gpu/drm/radeon/evergreen.c 				return r;
r                4339 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_reserve(rdev->rlc.cp_table_obj, false);
r                4340 drivers/gpu/drm/radeon/evergreen.c 		if (unlikely(r != 0)) {
r                4341 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) reserve RLC cp table bo failed\n", r);
r                4343 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4345 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_pin(rdev->rlc.cp_table_obj, RADEON_GEM_DOMAIN_VRAM,
r                4347 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4349 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) pin RLC cp_table bo failed\n", r);
r                4351 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4353 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_bo_kmap(rdev->rlc.cp_table_obj, (void **)&rdev->rlc.cp_table_ptr);
r                4354 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                4355 drivers/gpu/drm/radeon/evergreen.c 			dev_warn(rdev->dev, "(%d) map RLC cp table bo failed\n", r);
r                4357 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                4934 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                4939 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_uvd_init(rdev);
r                4940 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                4941 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                4957 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                4962 drivers/gpu/drm/radeon/evergreen.c 	r = uvd_v2_2_resume(rdev);
r                4963 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                4964 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                4967 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                4968 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                4969 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                4981 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                4987 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                4988 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                4989 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                4992 drivers/gpu/drm/radeon/evergreen.c 	r = uvd_v1_0_init(rdev);
r                4993 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                4994 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                5002 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                5010 drivers/gpu/drm/radeon/evergreen.c 	r = r600_vram_scratch_init(rdev);
r                5011 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5012 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5017 drivers/gpu/drm/radeon/evergreen.c 		r = ni_mc_load_microcode(rdev);
r                5018 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                5020 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                5027 drivers/gpu/drm/radeon/evergreen.c 		r = evergreen_pcie_gart_enable(rdev);
r                5028 drivers/gpu/drm/radeon/evergreen.c 		if (r)
r                5029 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                5039 drivers/gpu/drm/radeon/evergreen.c 		r = sumo_rlc_init(rdev);
r                5040 drivers/gpu/drm/radeon/evergreen.c 		if (r) {
r                5042 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                5047 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_wb_init(rdev);
r                5048 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5049 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5051 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                5052 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5053 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                5054 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5057 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_DMA_INDEX);
r                5058 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5059 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                5060 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5067 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_irq_kms_init(rdev);
r                5068 drivers/gpu/drm/radeon/evergreen.c 		if (r)
r                5069 drivers/gpu/drm/radeon/evergreen.c 			return r;
r                5072 drivers/gpu/drm/radeon/evergreen.c 	r = r600_irq_init(rdev);
r                5073 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5074 drivers/gpu/drm/radeon/evergreen.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                5076 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5081 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                5083 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5084 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5087 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET,
r                5089 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5090 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5092 drivers/gpu/drm/radeon/evergreen.c 	r = evergreen_cp_load_microcode(rdev);
r                5093 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5094 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5095 drivers/gpu/drm/radeon/evergreen.c 	r = evergreen_cp_resume(rdev);
r                5096 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5097 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5098 drivers/gpu/drm/radeon/evergreen.c 	r = r600_dma_resume(rdev);
r                5099 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5100 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5104 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_ib_pool_init(rdev);
r                5105 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5106 drivers/gpu/drm/radeon/evergreen.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                5107 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5110 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_audio_init(rdev);
r                5111 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5113 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5121 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                5142 drivers/gpu/drm/radeon/evergreen.c 	r = evergreen_startup(rdev);
r                5143 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                5146 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5149 drivers/gpu/drm/radeon/evergreen.c 	return r;
r                5178 drivers/gpu/drm/radeon/evergreen.c 	int r;
r                5190 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_atombios_init(rdev);
r                5191 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5192 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5216 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_fence_driver_init(rdev);
r                5217 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5218 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5221 drivers/gpu/drm/radeon/evergreen.c 		r = radeon_agp_init(rdev);
r                5222 drivers/gpu/drm/radeon/evergreen.c 		if (r)
r                5226 drivers/gpu/drm/radeon/evergreen.c 	r = evergreen_mc_init(rdev);
r                5227 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5228 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5230 drivers/gpu/drm/radeon/evergreen.c 	r = radeon_bo_init(rdev);
r                5231 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5232 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5236 drivers/gpu/drm/radeon/evergreen.c 			r = ni_init_microcode(rdev);
r                5237 drivers/gpu/drm/radeon/evergreen.c 			if (r) {
r                5239 drivers/gpu/drm/radeon/evergreen.c 				return r;
r                5244 drivers/gpu/drm/radeon/evergreen.c 			r = r600_init_microcode(rdev);
r                5245 drivers/gpu/drm/radeon/evergreen.c 			if (r) {
r                5247 drivers/gpu/drm/radeon/evergreen.c 				return r;
r                5266 drivers/gpu/drm/radeon/evergreen.c 	r = r600_pcie_gart_init(rdev);
r                5267 drivers/gpu/drm/radeon/evergreen.c 	if (r)
r                5268 drivers/gpu/drm/radeon/evergreen.c 		return r;
r                5271 drivers/gpu/drm/radeon/evergreen.c 	r = evergreen_startup(rdev);
r                5272 drivers/gpu/drm/radeon/evergreen.c 	if (r) {
r                 400 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                 423 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_value_conv_check(p, &surf, "cb");
r                 424 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 425 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 428 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_check(p, &surf, "cb");
r                 429 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 434 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 567 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                 591 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_value_conv_check(p, &surf, "stencil");
r                 592 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 593 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 596 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_check(p, &surf, NULL);
r                 597 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 603 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_surface_check(p, &surf, "stencil");
r                 604 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                 609 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 649 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_validate_htile(p, surf.nbx, surf.nby);
r                 650 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                 651 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                 664 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                 694 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_value_conv_check(p, &surf, "depth");
r                 695 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 699 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 702 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_check(p, &surf, "depth");
r                 703 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 707 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 744 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_validate_htile(p, surf.nbx, surf.nby);
r                 745 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                 746 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                 762 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                 819 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_value_conv_check(p, &surf, "texture");
r                 820 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 821 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 828 drivers/gpu/drm/radeon/evergreen_cs.c 	r = evergreen_surface_check(p, &surf, "texture");
r                 829 drivers/gpu/drm/radeon/evergreen_cs.c 	if (r) {
r                 833 drivers/gpu/drm/radeon/evergreen_cs.c 		return r;
r                 902 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_surface_check(p, &surf, "mipmap");
r                 903 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                 904 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                 936 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                 986 drivers/gpu/drm/radeon/evergreen_cs.c 				r = evergreen_cs_track_validate_cb(p, i);
r                 987 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                 988 drivers/gpu/drm/radeon/evergreen_cs.c 					return r;
r                 999 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_cs_track_validate_stencil(p);
r                1000 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r)
r                1001 drivers/gpu/drm/radeon/evergreen_cs.c 				return r;
r                1006 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_cs_track_validate_depth(p);
r                1007 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r)
r                1008 drivers/gpu/drm/radeon/evergreen_cs.c 				return r;
r                1052 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                1056 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_packet_parse_vline(p);
r                1057 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1060 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1075 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                1080 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_packet0_check(p, pkt, idx, reg);
r                1081 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1082 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1099 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                1143 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1144 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1172 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1173 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                1214 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1215 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1226 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1227 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1238 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1239 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1250 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1251 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1273 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1274 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1295 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1296 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1360 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1361 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                1378 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1379 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                1439 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1440 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1467 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1468 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1500 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1501 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1517 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1518 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1555 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1556 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1571 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1572 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1584 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1585 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1702 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1703 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1716 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1717 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1730 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1731 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1781 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                1813 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1814 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1859 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1860 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1872 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1873 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1875 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1894 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1895 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1907 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1908 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1910 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1922 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1923 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1935 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1936 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1938 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1947 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1948 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1950 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1958 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1959 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1961 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1969 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1970 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1972 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1980 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1981 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1983 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                1991 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                1992 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                1994 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2017 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2018 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2051 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                2052 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2054 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2063 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                2064 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2066 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2074 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2075 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2080 drivers/gpu/drm/radeon/evergreen_cs.c 		r = evergreen_cs_track_check(p);
r                2081 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2083 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2095 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2096 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2149 drivers/gpu/drm/radeon/evergreen_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2150 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                2187 drivers/gpu/drm/radeon/evergreen_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2188 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                2227 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2228 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2243 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2244 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2264 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2265 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2286 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2287 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2312 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_cs_handle_reg(p, reg, idx);
r                2313 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r)
r                2314 drivers/gpu/drm/radeon/evergreen_cs.c 				return r;
r                2329 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_cs_handle_reg(p, reg, idx);
r                2330 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r)
r                2331 drivers/gpu/drm/radeon/evergreen_cs.c 				return r;
r                2355 drivers/gpu/drm/radeon/evergreen_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2356 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                2392 drivers/gpu/drm/radeon/evergreen_cs.c 					r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2393 drivers/gpu/drm/radeon/evergreen_cs.c 					if (r) {
r                2401 drivers/gpu/drm/radeon/evergreen_cs.c 				r = evergreen_cs_track_validate_texture(p, texture, mipmap, idx+1+(i*8));
r                2402 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r)
r                2403 drivers/gpu/drm/radeon/evergreen_cs.c 					return r;
r                2411 drivers/gpu/drm/radeon/evergreen_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2412 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                2493 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2494 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2512 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2513 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2537 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2538 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2566 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2567 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2593 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2594 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2643 drivers/gpu/drm/radeon/evergreen_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                2644 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2677 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                2749 drivers/gpu/drm/radeon/evergreen_cs.c 		r = radeon_cs_packet_parse(p, &pkt, p->idx);
r                2750 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2753 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2758 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_cs_parse_packet0(p, &pkt);
r                2763 drivers/gpu/drm/radeon/evergreen_cs.c 			r = evergreen_packet3_check(p, &pkt);
r                2771 drivers/gpu/drm/radeon/evergreen_cs.c 		if (r) {
r                2774 drivers/gpu/drm/radeon/evergreen_cs.c 			return r;
r                2778 drivers/gpu/drm/radeon/evergreen_cs.c 	for (r = 0; r < p->ib.length_dw; r++) {
r                2779 drivers/gpu/drm/radeon/evergreen_cs.c 		pr_info("%05d  0x%08X\n", r, p->ib.ptr[r]);
r                2805 drivers/gpu/drm/radeon/evergreen_cs.c 	int r;
r                2821 drivers/gpu/drm/radeon/evergreen_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                2822 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2855 drivers/gpu/drm/radeon/evergreen_cs.c 			r = r600_dma_cs_next_reloc(p, &src_reloc);
r                2856 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2860 drivers/gpu/drm/radeon/evergreen_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                2861 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                2965 drivers/gpu/drm/radeon/evergreen_cs.c 				r = r600_dma_cs_next_reloc(p, &dst2_reloc);
r                2966 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                3005 drivers/gpu/drm/radeon/evergreen_cs.c 				r = r600_dma_cs_next_reloc(p, &dst2_reloc);
r                3006 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                3067 drivers/gpu/drm/radeon/evergreen_cs.c 				r = r600_dma_cs_next_reloc(p, &dst2_reloc);
r                3068 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                3154 drivers/gpu/drm/radeon/evergreen_cs.c 				r = r600_dma_cs_next_reloc(p, &dst2_reloc);
r                3155 drivers/gpu/drm/radeon/evergreen_cs.c 				if (r) {
r                3192 drivers/gpu/drm/radeon/evergreen_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                3193 drivers/gpu/drm/radeon/evergreen_cs.c 			if (r) {
r                3217 drivers/gpu/drm/radeon/evergreen_cs.c 	for (r = 0; r < p->ib->length_dw; r++) {
r                3218 drivers/gpu/drm/radeon/evergreen_cs.c 		pr_info("%05d  0x%08X\n", r, p->ib.ptr[r]);
r                 119 drivers/gpu/drm/radeon/evergreen_dma.c 	int r = 0;
r                 125 drivers/gpu/drm/radeon/evergreen_dma.c 	r = radeon_ring_lock(rdev, ring, num_loops * 5 + 11);
r                 126 drivers/gpu/drm/radeon/evergreen_dma.c 	if (r) {
r                 127 drivers/gpu/drm/radeon/evergreen_dma.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                 129 drivers/gpu/drm/radeon/evergreen_dma.c 		return ERR_PTR(r);
r                 149 drivers/gpu/drm/radeon/evergreen_dma.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                 150 drivers/gpu/drm/radeon/evergreen_dma.c 	if (r) {
r                 153 drivers/gpu/drm/radeon/evergreen_dma.c 		return ERR_PTR(r);
r                 198 drivers/gpu/drm/radeon/mkregtable.c 	int r;
r                 239 drivers/gpu/drm/radeon/mkregtable.c 			r = regexec(&mask_rex, buf, 4, match, 0);
r                 240 drivers/gpu/drm/radeon/mkregtable.c 			if (r == REG_NOMATCH) {
r                 241 drivers/gpu/drm/radeon/mkregtable.c 			} else if (r) {
r                 244 drivers/gpu/drm/radeon/mkregtable.c 					r, filename);
r                  48 drivers/gpu/drm/radeon/ni.c 	u32 r;
r                  52 drivers/gpu/drm/radeon/ni.c 	r = RREG32(TN_SMC_IND_DATA_0);
r                  54 drivers/gpu/drm/radeon/ni.c 	return r;
r                1276 drivers/gpu/drm/radeon/ni.c 	int i, r;
r                1282 drivers/gpu/drm/radeon/ni.c 	r = radeon_gart_table_vram_pin(rdev);
r                1283 drivers/gpu/drm/radeon/ni.c 	if (r)
r                1284 drivers/gpu/drm/radeon/ni.c 		return r;
r                1553 drivers/gpu/drm/radeon/ni.c 	int r, i;
r                1555 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_lock(rdev, ring, 7);
r                1556 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                1557 drivers/gpu/drm/radeon/ni.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                1558 drivers/gpu/drm/radeon/ni.c 		return r;
r                1571 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_lock(rdev, ring, cayman_default_size + 19);
r                1572 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                1573 drivers/gpu/drm/radeon/ni.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                1574 drivers/gpu/drm/radeon/ni.c 		return r;
r                1662 drivers/gpu/drm/radeon/ni.c 	int i, r;
r                1732 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]);
r                1733 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                1737 drivers/gpu/drm/radeon/ni.c 		return r;
r                2006 drivers/gpu/drm/radeon/ni.c 	int r;
r                2011 drivers/gpu/drm/radeon/ni.c 	r = radeon_uvd_init(rdev);
r                2012 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2013 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                2029 drivers/gpu/drm/radeon/ni.c 	int r;
r                2034 drivers/gpu/drm/radeon/ni.c 	r = uvd_v2_2_resume(rdev);
r                2035 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2036 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                2039 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                2040 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2041 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                2053 drivers/gpu/drm/radeon/ni.c 	int r;
r                2059 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                2060 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2061 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                2064 drivers/gpu/drm/radeon/ni.c 	r = uvd_v1_0_init(rdev);
r                2065 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2066 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                2073 drivers/gpu/drm/radeon/ni.c 	int r;
r                2079 drivers/gpu/drm/radeon/ni.c 	r = radeon_vce_init(rdev);
r                2080 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2081 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed VCE (%d) init.\n", r);
r                2099 drivers/gpu/drm/radeon/ni.c 	int r;
r                2104 drivers/gpu/drm/radeon/ni.c 	r = radeon_vce_resume(rdev);
r                2105 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2106 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                2109 drivers/gpu/drm/radeon/ni.c 	r = vce_v1_0_resume(rdev);
r                2110 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2111 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                2114 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE1_INDEX);
r                2115 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2116 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing VCE1 fences (%d).\n", r);
r                2119 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE2_INDEX);
r                2120 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2121 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing VCE2 fences (%d).\n", r);
r                2134 drivers/gpu/drm/radeon/ni.c 	int r;
r                2140 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0);
r                2141 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2142 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                2146 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, 0x0);
r                2147 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2148 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                2151 drivers/gpu/drm/radeon/ni.c 	r = vce_v1_0_init(rdev);
r                2152 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2153 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing VCE (%d).\n", r);
r                2161 drivers/gpu/drm/radeon/ni.c 	int r;
r                2169 drivers/gpu/drm/radeon/ni.c 	r = r600_vram_scratch_init(rdev);
r                2170 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2171 drivers/gpu/drm/radeon/ni.c 		return r;
r                2176 drivers/gpu/drm/radeon/ni.c 		r = ni_mc_load_microcode(rdev);
r                2177 drivers/gpu/drm/radeon/ni.c 		if (r) {
r                2179 drivers/gpu/drm/radeon/ni.c 			return r;
r                2183 drivers/gpu/drm/radeon/ni.c 	r = cayman_pcie_gart_enable(rdev);
r                2184 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2185 drivers/gpu/drm/radeon/ni.c 		return r;
r                2194 drivers/gpu/drm/radeon/ni.c 		r = sumo_rlc_init(rdev);
r                2195 drivers/gpu/drm/radeon/ni.c 		if (r) {
r                2197 drivers/gpu/drm/radeon/ni.c 			return r;
r                2202 drivers/gpu/drm/radeon/ni.c 	r = radeon_wb_init(rdev);
r                2203 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2204 drivers/gpu/drm/radeon/ni.c 		return r;
r                2206 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                2207 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2208 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                2209 drivers/gpu/drm/radeon/ni.c 		return r;
r                2215 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP1_INDEX);
r                2216 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2217 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                2218 drivers/gpu/drm/radeon/ni.c 		return r;
r                2221 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP2_INDEX);
r                2222 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2223 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                2224 drivers/gpu/drm/radeon/ni.c 		return r;
r                2227 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_DMA_INDEX);
r                2228 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2229 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                2230 drivers/gpu/drm/radeon/ni.c 		return r;
r                2233 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_DMA1_INDEX);
r                2234 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2235 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                2236 drivers/gpu/drm/radeon/ni.c 		return r;
r                2241 drivers/gpu/drm/radeon/ni.c 		r = radeon_irq_kms_init(rdev);
r                2242 drivers/gpu/drm/radeon/ni.c 		if (r)
r                2243 drivers/gpu/drm/radeon/ni.c 			return r;
r                2246 drivers/gpu/drm/radeon/ni.c 	r = r600_irq_init(rdev);
r                2247 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2248 drivers/gpu/drm/radeon/ni.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                2250 drivers/gpu/drm/radeon/ni.c 		return r;
r                2254 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                2256 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2257 drivers/gpu/drm/radeon/ni.c 		return r;
r                2260 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET,
r                2262 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2263 drivers/gpu/drm/radeon/ni.c 		return r;
r                2266 drivers/gpu/drm/radeon/ni.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET,
r                2268 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2269 drivers/gpu/drm/radeon/ni.c 		return r;
r                2271 drivers/gpu/drm/radeon/ni.c 	r = cayman_cp_load_microcode(rdev);
r                2272 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2273 drivers/gpu/drm/radeon/ni.c 		return r;
r                2274 drivers/gpu/drm/radeon/ni.c 	r = cayman_cp_resume(rdev);
r                2275 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2276 drivers/gpu/drm/radeon/ni.c 		return r;
r                2278 drivers/gpu/drm/radeon/ni.c 	r = cayman_dma_resume(rdev);
r                2279 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2280 drivers/gpu/drm/radeon/ni.c 		return r;
r                2285 drivers/gpu/drm/radeon/ni.c 	r = radeon_ib_pool_init(rdev);
r                2286 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2287 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                2288 drivers/gpu/drm/radeon/ni.c 		return r;
r                2291 drivers/gpu/drm/radeon/ni.c 	r = radeon_vm_manager_init(rdev);
r                2292 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2293 drivers/gpu/drm/radeon/ni.c 		dev_err(rdev->dev, "vm manager initialization failed (%d).\n", r);
r                2294 drivers/gpu/drm/radeon/ni.c 		return r;
r                2297 drivers/gpu/drm/radeon/ni.c 	r = radeon_audio_init(rdev);
r                2298 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2299 drivers/gpu/drm/radeon/ni.c 		return r;
r                2306 drivers/gpu/drm/radeon/ni.c 	int r;
r                2322 drivers/gpu/drm/radeon/ni.c 	r = cayman_startup(rdev);
r                2323 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2326 drivers/gpu/drm/radeon/ni.c 		return r;
r                2328 drivers/gpu/drm/radeon/ni.c 	return r;
r                2357 drivers/gpu/drm/radeon/ni.c 	int r;
r                2369 drivers/gpu/drm/radeon/ni.c 	r = radeon_atombios_init(rdev);
r                2370 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2371 drivers/gpu/drm/radeon/ni.c 		return r;
r                2391 drivers/gpu/drm/radeon/ni.c 	r = radeon_fence_driver_init(rdev);
r                2392 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2393 drivers/gpu/drm/radeon/ni.c 		return r;
r                2395 drivers/gpu/drm/radeon/ni.c 	r = evergreen_mc_init(rdev);
r                2396 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2397 drivers/gpu/drm/radeon/ni.c 		return r;
r                2399 drivers/gpu/drm/radeon/ni.c 	r = radeon_bo_init(rdev);
r                2400 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2401 drivers/gpu/drm/radeon/ni.c 		return r;
r                2405 drivers/gpu/drm/radeon/ni.c 			r = ni_init_microcode(rdev);
r                2406 drivers/gpu/drm/radeon/ni.c 			if (r) {
r                2408 drivers/gpu/drm/radeon/ni.c 				return r;
r                2413 drivers/gpu/drm/radeon/ni.c 			r = ni_init_microcode(rdev);
r                2414 drivers/gpu/drm/radeon/ni.c 			if (r) {
r                2416 drivers/gpu/drm/radeon/ni.c 				return r;
r                2441 drivers/gpu/drm/radeon/ni.c 	r = r600_pcie_gart_init(rdev);
r                2442 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2443 drivers/gpu/drm/radeon/ni.c 		return r;
r                2446 drivers/gpu/drm/radeon/ni.c 	r = cayman_startup(rdev);
r                2447 drivers/gpu/drm/radeon/ni.c 	if (r) {
r                2725 drivers/gpu/drm/radeon/ni.c 	int r, i;
r                2727 drivers/gpu/drm/radeon/ni.c 	r = radeon_atom_get_clock_dividers(rdev, COMPUTE_ENGINE_PLL_PARAM,
r                2729 drivers/gpu/drm/radeon/ni.c 	if (r)
r                2730 drivers/gpu/drm/radeon/ni.c 		return r;
r                 193 drivers/gpu/drm/radeon/ni_dma.c 	int i, r;
r                 250 drivers/gpu/drm/radeon/ni_dma.c 		r = radeon_ring_test(rdev, ring->idx, ring);
r                 251 drivers/gpu/drm/radeon/ni_dma.c 		if (r) {
r                 253 drivers/gpu/drm/radeon/ni_dma.c 			return r;
r                3547 drivers/gpu/drm/radeon/ni_dpm.c 	int r;
r                3549 drivers/gpu/drm/radeon/ni_dpm.c 	r = ni_mc_load_microcode(rdev);
r                3550 drivers/gpu/drm/radeon/ni_dpm.c 	if (r)
r                 643 drivers/gpu/drm/radeon/r100.c 	int r;
r                 650 drivers/gpu/drm/radeon/r100.c 	r = radeon_gart_init(rdev);
r                 651 drivers/gpu/drm/radeon/r100.c 	if (r)
r                 652 drivers/gpu/drm/radeon/r100.c 		return r;
r                 904 drivers/gpu/drm/radeon/r100.c 	int r = 0;
r                 915 drivers/gpu/drm/radeon/r100.c 	r = radeon_ring_lock(rdev, ring, ndw);
r                 916 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                 917 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: moving bo (%d) asking for %u dw.\n", r, ndw);
r                 958 drivers/gpu/drm/radeon/r100.c 	r = radeon_fence_emit(rdev, &fence, RADEON_RING_TYPE_GFX_INDEX);
r                 959 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                 961 drivers/gpu/drm/radeon/r100.c 		return ERR_PTR(r);
r                 984 drivers/gpu/drm/radeon/r100.c 	int r;
r                 986 drivers/gpu/drm/radeon/r100.c 	r = radeon_ring_lock(rdev, ring, 2);
r                 987 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                1121 drivers/gpu/drm/radeon/r100.c 	int r;
r                1127 drivers/gpu/drm/radeon/r100.c 		r = r100_cp_init_microcode(rdev);
r                1128 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1130 drivers/gpu/drm/radeon/r100.c 			return r;
r                1138 drivers/gpu/drm/radeon/r100.c 	r = radeon_ring_init(rdev, ring, ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                1140 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                1141 drivers/gpu/drm/radeon/r100.c 		return r;
r                1212 drivers/gpu/drm/radeon/r100.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, ring);
r                1213 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                1214 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: cp isn't working (%d).\n", r);
r                1215 drivers/gpu/drm/radeon/r100.c 		return r;
r                1222 drivers/gpu/drm/radeon/r100.c 		r = radeon_scratch_get(rdev, &ring->rptr_save_reg);
r                1223 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1224 drivers/gpu/drm/radeon/r100.c 			DRM_ERROR("failed to get scratch reg for rptr save (%d).\n", r);
r                1264 drivers/gpu/drm/radeon/r100.c 	int r;
r                1270 drivers/gpu/drm/radeon/r100.c 	r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1271 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                1275 drivers/gpu/drm/radeon/r100.c 		return r;
r                1308 drivers/gpu/drm/radeon/r100.c 	int r = 0;
r                1323 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1324 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1328 drivers/gpu/drm/radeon/r100.c 			return r;
r                1336 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1337 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1341 drivers/gpu/drm/radeon/r100.c 			return r;
r                1349 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1350 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1354 drivers/gpu/drm/radeon/r100.c 			return r;
r                1362 drivers/gpu/drm/radeon/r100.c 	return r;
r                1373 drivers/gpu/drm/radeon/r100.c 	int r;
r                1394 drivers/gpu/drm/radeon/r100.c 			r = check(p, pkt, idx, reg);
r                1395 drivers/gpu/drm/radeon/r100.c 			if (r) {
r                1396 drivers/gpu/drm/radeon/r100.c 				return r;
r                1430 drivers/gpu/drm/radeon/r100.c 	int r;
r                1437 drivers/gpu/drm/radeon/r100.c 	r = radeon_cs_packet_parse(p, &waitreloc, p->idx);
r                1438 drivers/gpu/drm/radeon/r100.c 	if (r)
r                1439 drivers/gpu/drm/radeon/r100.c 		return r;
r                1454 drivers/gpu/drm/radeon/r100.c 	r = radeon_cs_packet_parse(p, &p3reloc, p->idx + waitreloc.count + 2);
r                1455 drivers/gpu/drm/radeon/r100.c 	if (r)
r                1456 drivers/gpu/drm/radeon/r100.c 		return r;
r                1559 drivers/gpu/drm/radeon/r100.c 	int r;
r                1571 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_packet_parse_vline(p);
r                1572 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1576 drivers/gpu/drm/radeon/r100.c 			return r;
r                1583 drivers/gpu/drm/radeon/r100.c 		r = r100_reloc_pitch_offset(p, pkt, idx, reg);
r                1584 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1585 drivers/gpu/drm/radeon/r100.c 			return r;
r                1588 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1589 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1593 drivers/gpu/drm/radeon/r100.c 			return r;
r                1601 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1602 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1606 drivers/gpu/drm/radeon/r100.c 			return r;
r                1617 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1618 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1622 drivers/gpu/drm/radeon/r100.c 			return r;
r                1644 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1645 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1649 drivers/gpu/drm/radeon/r100.c 			return r;
r                1662 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1663 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1667 drivers/gpu/drm/radeon/r100.c 			return r;
r                1680 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1681 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1685 drivers/gpu/drm/radeon/r100.c 			return r;
r                1698 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1699 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1703 drivers/gpu/drm/radeon/r100.c 			return r;
r                1769 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1770 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1774 drivers/gpu/drm/radeon/r100.c 			return r;
r                1917 drivers/gpu/drm/radeon/r100.c 	int r;
r                1924 drivers/gpu/drm/radeon/r100.c 		r = r100_packet3_load_vbpntr(p, pkt, idx);
r                1925 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1926 drivers/gpu/drm/radeon/r100.c 			return r;
r                1929 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1930 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1933 drivers/gpu/drm/radeon/r100.c 			return r;
r                1936 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check_pkt3_indx_buffer(p, pkt, reloc->robj);
r                1937 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1938 drivers/gpu/drm/radeon/r100.c 			return r;
r                1943 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1944 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                1947 drivers/gpu/drm/radeon/r100.c 			return r;
r                1960 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                1961 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1962 drivers/gpu/drm/radeon/r100.c 			return r;
r                1972 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                1973 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1974 drivers/gpu/drm/radeon/r100.c 			return r;
r                1984 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                1985 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1986 drivers/gpu/drm/radeon/r100.c 			return r;
r                1991 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                1992 drivers/gpu/drm/radeon/r100.c 		if (r)
r                1993 drivers/gpu/drm/radeon/r100.c 			return r;
r                1998 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                1999 drivers/gpu/drm/radeon/r100.c 		if (r)
r                2000 drivers/gpu/drm/radeon/r100.c 			return r;
r                2005 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                2006 drivers/gpu/drm/radeon/r100.c 		if (r)
r                2007 drivers/gpu/drm/radeon/r100.c 			return r;
r                2012 drivers/gpu/drm/radeon/r100.c 		r = r100_cs_track_check(p->rdev, track);
r                2013 drivers/gpu/drm/radeon/r100.c 		if (r)
r                2014 drivers/gpu/drm/radeon/r100.c 			return r;
r                2035 drivers/gpu/drm/radeon/r100.c 	int r;
r                2043 drivers/gpu/drm/radeon/r100.c 		r = radeon_cs_packet_parse(p, &pkt, p->idx);
r                2044 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                2045 drivers/gpu/drm/radeon/r100.c 			return r;
r                2051 drivers/gpu/drm/radeon/r100.c 				r = r100_cs_parse_packet0(p, &pkt,
r                2056 drivers/gpu/drm/radeon/r100.c 				r = r100_cs_parse_packet0(p, &pkt,
r                2064 drivers/gpu/drm/radeon/r100.c 			r = r100_packet3_check(p, &pkt);
r                2071 drivers/gpu/drm/radeon/r100.c 		if (r)
r                2072 drivers/gpu/drm/radeon/r100.c 			return r;
r                3656 drivers/gpu/drm/radeon/r100.c 	int r;
r                3658 drivers/gpu/drm/radeon/r100.c 	r = radeon_scratch_get(rdev, &scratch);
r                3659 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3660 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: cp failed to get scratch reg (%d).\n", r);
r                3661 drivers/gpu/drm/radeon/r100.c 		return r;
r                3664 drivers/gpu/drm/radeon/r100.c 	r = radeon_ring_lock(rdev, ring, 2);
r                3665 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3666 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                3668 drivers/gpu/drm/radeon/r100.c 		return r;
r                3685 drivers/gpu/drm/radeon/r100.c 		r = -EINVAL;
r                3688 drivers/gpu/drm/radeon/r100.c 	return r;
r                3712 drivers/gpu/drm/radeon/r100.c 	int r;
r                3714 drivers/gpu/drm/radeon/r100.c 	r = radeon_scratch_get(rdev, &scratch);
r                3715 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3716 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: failed to get scratch reg (%d).\n", r);
r                3717 drivers/gpu/drm/radeon/r100.c 		return r;
r                3720 drivers/gpu/drm/radeon/r100.c 	r = radeon_ib_get(rdev, RADEON_RING_TYPE_GFX_INDEX, &ib, NULL, 256);
r                3721 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3722 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                3734 drivers/gpu/drm/radeon/r100.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                3735 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3736 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                3739 drivers/gpu/drm/radeon/r100.c 	r = radeon_fence_wait_timeout(ib.fence, false, usecs_to_jiffies(
r                3741 drivers/gpu/drm/radeon/r100.c 	if (r < 0) {
r                3742 drivers/gpu/drm/radeon/r100.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                3744 drivers/gpu/drm/radeon/r100.c 	} else if (r == 0) {
r                3746 drivers/gpu/drm/radeon/r100.c 		r = -ETIMEDOUT;
r                3749 drivers/gpu/drm/radeon/r100.c 	r = 0;
r                3762 drivers/gpu/drm/radeon/r100.c 		r = -EINVAL;
r                3768 drivers/gpu/drm/radeon/r100.c 	return r;
r                3839 drivers/gpu/drm/radeon/r100.c 	int r;
r                3841 drivers/gpu/drm/radeon/r100.c 	r = r100_debugfs_mc_info_init(rdev);
r                3842 drivers/gpu/drm/radeon/r100.c 	if (r)
r                3892 drivers/gpu/drm/radeon/r100.c 	int r;
r                3904 drivers/gpu/drm/radeon/r100.c 		r = r100_pci_gart_enable(rdev);
r                3905 drivers/gpu/drm/radeon/r100.c 		if (r)
r                3906 drivers/gpu/drm/radeon/r100.c 			return r;
r                3910 drivers/gpu/drm/radeon/r100.c 	r = radeon_wb_init(rdev);
r                3911 drivers/gpu/drm/radeon/r100.c 	if (r)
r                3912 drivers/gpu/drm/radeon/r100.c 		return r;
r                3914 drivers/gpu/drm/radeon/r100.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                3915 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3916 drivers/gpu/drm/radeon/r100.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                3917 drivers/gpu/drm/radeon/r100.c 		return r;
r                3922 drivers/gpu/drm/radeon/r100.c 		r = radeon_irq_kms_init(rdev);
r                3923 drivers/gpu/drm/radeon/r100.c 		if (r)
r                3924 drivers/gpu/drm/radeon/r100.c 			return r;
r                3930 drivers/gpu/drm/radeon/r100.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                3931 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3932 drivers/gpu/drm/radeon/r100.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                3933 drivers/gpu/drm/radeon/r100.c 		return r;
r                3936 drivers/gpu/drm/radeon/r100.c 	r = radeon_ib_pool_init(rdev);
r                3937 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3938 drivers/gpu/drm/radeon/r100.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                3939 drivers/gpu/drm/radeon/r100.c 		return r;
r                3947 drivers/gpu/drm/radeon/r100.c 	int r;
r                3968 drivers/gpu/drm/radeon/r100.c 	r = r100_startup(rdev);
r                3969 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                3972 drivers/gpu/drm/radeon/r100.c 	return r;
r                4031 drivers/gpu/drm/radeon/r100.c 	int r;
r                4053 drivers/gpu/drm/radeon/r100.c 		r = radeon_combios_init(rdev);
r                4054 drivers/gpu/drm/radeon/r100.c 		if (r)
r                4055 drivers/gpu/drm/radeon/r100.c 			return r;
r                4073 drivers/gpu/drm/radeon/r100.c 		r = radeon_agp_init(rdev);
r                4074 drivers/gpu/drm/radeon/r100.c 		if (r) {
r                4081 drivers/gpu/drm/radeon/r100.c 	r = radeon_fence_driver_init(rdev);
r                4082 drivers/gpu/drm/radeon/r100.c 	if (r)
r                4083 drivers/gpu/drm/radeon/r100.c 		return r;
r                4085 drivers/gpu/drm/radeon/r100.c 	r = radeon_bo_init(rdev);
r                4086 drivers/gpu/drm/radeon/r100.c 	if (r)
r                4087 drivers/gpu/drm/radeon/r100.c 		return r;
r                4089 drivers/gpu/drm/radeon/r100.c 		r = r100_pci_gart_init(rdev);
r                4090 drivers/gpu/drm/radeon/r100.c 		if (r)
r                4091 drivers/gpu/drm/radeon/r100.c 			return r;
r                4099 drivers/gpu/drm/radeon/r100.c 	r = r100_startup(rdev);
r                4100 drivers/gpu/drm/radeon/r100.c 	if (r) {
r                  94 drivers/gpu/drm/radeon/r200.c 	int r = 0;
r                  99 drivers/gpu/drm/radeon/r200.c 	r = radeon_ring_lock(rdev, ring, num_loops * 4 + 64);
r                 100 drivers/gpu/drm/radeon/r200.c 	if (r) {
r                 101 drivers/gpu/drm/radeon/r200.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                 102 drivers/gpu/drm/radeon/r200.c 		return ERR_PTR(r);
r                 122 drivers/gpu/drm/radeon/r200.c 	r = radeon_fence_emit(rdev, &fence, RADEON_RING_TYPE_GFX_INDEX);
r                 123 drivers/gpu/drm/radeon/r200.c 	if (r) {
r                 125 drivers/gpu/drm/radeon/r200.c 		return ERR_PTR(r);
r                 153 drivers/gpu/drm/radeon/r200.c 	int r;
r                 164 drivers/gpu/drm/radeon/r200.c 		r = r100_cs_packet_parse_vline(p);
r                 165 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 169 drivers/gpu/drm/radeon/r200.c 			return r;
r                 176 drivers/gpu/drm/radeon/r200.c 		r = r100_reloc_pitch_offset(p, pkt, idx, reg);
r                 177 drivers/gpu/drm/radeon/r200.c 		if (r)
r                 178 drivers/gpu/drm/radeon/r200.c 			return r;
r                 181 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 182 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 186 drivers/gpu/drm/radeon/r200.c 			return r;
r                 194 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 195 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 199 drivers/gpu/drm/radeon/r200.c 			return r;
r                 213 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 214 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 218 drivers/gpu/drm/radeon/r200.c 			return r;
r                 266 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 267 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 271 drivers/gpu/drm/radeon/r200.c 			return r;
r                 284 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 285 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 289 drivers/gpu/drm/radeon/r200.c 			return r;
r                 361 drivers/gpu/drm/radeon/r200.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 362 drivers/gpu/drm/radeon/r200.c 		if (r) {
r                 366 drivers/gpu/drm/radeon/r200.c 			return r;
r                  64 drivers/gpu/drm/radeon/r300.c 	uint32_t r;
r                  68 drivers/gpu/drm/radeon/r300.c 	r = RREG32(RADEON_PCIE_DATA);
r                  70 drivers/gpu/drm/radeon/r300.c 	return r;
r                 133 drivers/gpu/drm/radeon/r300.c 	int r;
r                 140 drivers/gpu/drm/radeon/r300.c 	r = radeon_gart_init(rdev);
r                 141 drivers/gpu/drm/radeon/r300.c 	if (r)
r                 142 drivers/gpu/drm/radeon/r300.c 		return r;
r                 143 drivers/gpu/drm/radeon/r300.c 	r = rv370_debugfs_pcie_gart_info_init(rdev);
r                 144 drivers/gpu/drm/radeon/r300.c 	if (r)
r                 157 drivers/gpu/drm/radeon/r300.c 	int r;
r                 163 drivers/gpu/drm/radeon/r300.c 	r = radeon_gart_table_vram_pin(rdev);
r                 164 drivers/gpu/drm/radeon/r300.c 	if (r)
r                 165 drivers/gpu/drm/radeon/r300.c 		return r;
r                 251 drivers/gpu/drm/radeon/r300.c 	int r;
r                 271 drivers/gpu/drm/radeon/r300.c 	r = radeon_ring_lock(rdev, ring, 64);
r                 272 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                 640 drivers/gpu/drm/radeon/r300.c 	int r;
r                 650 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_packet_parse_vline(p);
r                 651 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                 655 drivers/gpu/drm/radeon/r300.c 			return r;
r                 660 drivers/gpu/drm/radeon/r300.c 		r = r100_reloc_pitch_offset(p, pkt, idx, reg);
r                 661 drivers/gpu/drm/radeon/r300.c 		if (r)
r                 662 drivers/gpu/drm/radeon/r300.c 			return r;
r                 669 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 670 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                 674 drivers/gpu/drm/radeon/r300.c 			return r;
r                 682 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 683 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                 687 drivers/gpu/drm/radeon/r300.c 			return r;
r                 711 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 712 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                 716 drivers/gpu/drm/radeon/r300.c 			return r;
r                 784 drivers/gpu/drm/radeon/r300.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 785 drivers/gpu/drm/radeon/r300.c 			if (r) {
r                 789 drivers/gpu/drm/radeon/r300.c 				return r;
r                 869 drivers/gpu/drm/radeon/r300.c 			r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                 870 drivers/gpu/drm/radeon/r300.c 			if (r) {
r                 874 drivers/gpu/drm/radeon/r300.c 				return r;
r                1084 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1085 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1089 drivers/gpu/drm/radeon/r300.c 			return r;
r                1126 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1127 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1131 drivers/gpu/drm/radeon/r300.c 			return r;
r                1183 drivers/gpu/drm/radeon/r300.c 	int r;
r                1190 drivers/gpu/drm/radeon/r300.c 		r = r100_packet3_load_vbpntr(p, pkt, idx);
r                1191 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1192 drivers/gpu/drm/radeon/r300.c 			return r;
r                1195 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1196 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1199 drivers/gpu/drm/radeon/r300.c 			return r;
r                1202 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check_pkt3_indx_buffer(p, pkt, reloc->robj);
r                1203 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1204 drivers/gpu/drm/radeon/r300.c 			return r;
r                1218 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1219 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1220 drivers/gpu/drm/radeon/r300.c 			return r;
r                1233 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1234 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1235 drivers/gpu/drm/radeon/r300.c 			return r;
r                1240 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1241 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1242 drivers/gpu/drm/radeon/r300.c 			return r;
r                1247 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1248 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1249 drivers/gpu/drm/radeon/r300.c 			return r;
r                1254 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1255 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1256 drivers/gpu/drm/radeon/r300.c 			return r;
r                1261 drivers/gpu/drm/radeon/r300.c 		r = r100_cs_track_check(p->rdev, track);
r                1262 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1263 drivers/gpu/drm/radeon/r300.c 			return r;
r                1288 drivers/gpu/drm/radeon/r300.c 	int r;
r                1296 drivers/gpu/drm/radeon/r300.c 		r = radeon_cs_packet_parse(p, &pkt, p->idx);
r                1297 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1298 drivers/gpu/drm/radeon/r300.c 			return r;
r                1303 drivers/gpu/drm/radeon/r300.c 			r = r100_cs_parse_packet0(p, &pkt,
r                1311 drivers/gpu/drm/radeon/r300.c 			r = r300_packet3_check(p, &pkt);
r                1317 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1318 drivers/gpu/drm/radeon/r300.c 			return r;
r                1333 drivers/gpu/drm/radeon/r300.c 	int r;
r                1335 drivers/gpu/drm/radeon/r300.c 	r = r100_debugfs_mc_info_init(rdev);
r                1336 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                1380 drivers/gpu/drm/radeon/r300.c 	int r;
r                1393 drivers/gpu/drm/radeon/r300.c 		r = rv370_pcie_gart_enable(rdev);
r                1394 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1395 drivers/gpu/drm/radeon/r300.c 			return r;
r                1404 drivers/gpu/drm/radeon/r300.c 		r = r100_pci_gart_enable(rdev);
r                1405 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1406 drivers/gpu/drm/radeon/r300.c 			return r;
r                1410 drivers/gpu/drm/radeon/r300.c 	r = radeon_wb_init(rdev);
r                1411 drivers/gpu/drm/radeon/r300.c 	if (r)
r                1412 drivers/gpu/drm/radeon/r300.c 		return r;
r                1414 drivers/gpu/drm/radeon/r300.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                1415 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                1416 drivers/gpu/drm/radeon/r300.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                1417 drivers/gpu/drm/radeon/r300.c 		return r;
r                1422 drivers/gpu/drm/radeon/r300.c 		r = radeon_irq_kms_init(rdev);
r                1423 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1424 drivers/gpu/drm/radeon/r300.c 			return r;
r                1430 drivers/gpu/drm/radeon/r300.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                1431 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                1432 drivers/gpu/drm/radeon/r300.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                1433 drivers/gpu/drm/radeon/r300.c 		return r;
r                1436 drivers/gpu/drm/radeon/r300.c 	r = radeon_ib_pool_init(rdev);
r                1437 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                1438 drivers/gpu/drm/radeon/r300.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                1439 drivers/gpu/drm/radeon/r300.c 		return r;
r                1447 drivers/gpu/drm/radeon/r300.c 	int r;
r                1470 drivers/gpu/drm/radeon/r300.c 	r = r300_startup(rdev);
r                1471 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                1474 drivers/gpu/drm/radeon/r300.c 	return r;
r                1512 drivers/gpu/drm/radeon/r300.c 	int r;
r                1532 drivers/gpu/drm/radeon/r300.c 		r = radeon_combios_init(rdev);
r                1533 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1534 drivers/gpu/drm/radeon/r300.c 			return r;
r                1552 drivers/gpu/drm/radeon/r300.c 		r = radeon_agp_init(rdev);
r                1553 drivers/gpu/drm/radeon/r300.c 		if (r) {
r                1560 drivers/gpu/drm/radeon/r300.c 	r = radeon_fence_driver_init(rdev);
r                1561 drivers/gpu/drm/radeon/r300.c 	if (r)
r                1562 drivers/gpu/drm/radeon/r300.c 		return r;
r                1564 drivers/gpu/drm/radeon/r300.c 	r = radeon_bo_init(rdev);
r                1565 drivers/gpu/drm/radeon/r300.c 	if (r)
r                1566 drivers/gpu/drm/radeon/r300.c 		return r;
r                1568 drivers/gpu/drm/radeon/r300.c 		r = rv370_pcie_gart_init(rdev);
r                1569 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1570 drivers/gpu/drm/radeon/r300.c 			return r;
r                1573 drivers/gpu/drm/radeon/r300.c 		r = r100_pci_gart_init(rdev);
r                1574 drivers/gpu/drm/radeon/r300.c 		if (r)
r                1575 drivers/gpu/drm/radeon/r300.c 			return r;
r                1583 drivers/gpu/drm/radeon/r300.c 	r = r300_startup(rdev);
r                1584 drivers/gpu/drm/radeon/r300.c 	if (r) {
r                 168 drivers/gpu/drm/radeon/r420.c 	u32 r;
r                 172 drivers/gpu/drm/radeon/r420.c 	r = RREG32(R_0001FC_MC_IND_DATA);
r                 174 drivers/gpu/drm/radeon/r420.c 	return r;
r                 213 drivers/gpu/drm/radeon/r420.c 	int r;
r                 223 drivers/gpu/drm/radeon/r420.c 	r = radeon_ring_lock(rdev, ring, 8);
r                 224 drivers/gpu/drm/radeon/r420.c 	WARN_ON(r);
r                 233 drivers/gpu/drm/radeon/r420.c 	int r;
r                 239 drivers/gpu/drm/radeon/r420.c 	r = radeon_ring_lock(rdev, ring, 8);
r                 240 drivers/gpu/drm/radeon/r420.c 	WARN_ON(r);
r                 249 drivers/gpu/drm/radeon/r420.c 	int r;
r                 260 drivers/gpu/drm/radeon/r420.c 		r = rv370_pcie_gart_enable(rdev);
r                 261 drivers/gpu/drm/radeon/r420.c 		if (r)
r                 262 drivers/gpu/drm/radeon/r420.c 			return r;
r                 265 drivers/gpu/drm/radeon/r420.c 		r = r100_pci_gart_enable(rdev);
r                 266 drivers/gpu/drm/radeon/r420.c 		if (r)
r                 267 drivers/gpu/drm/radeon/r420.c 			return r;
r                 272 drivers/gpu/drm/radeon/r420.c 	r = radeon_wb_init(rdev);
r                 273 drivers/gpu/drm/radeon/r420.c 	if (r)
r                 274 drivers/gpu/drm/radeon/r420.c 		return r;
r                 276 drivers/gpu/drm/radeon/r420.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                 277 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 278 drivers/gpu/drm/radeon/r420.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                 279 drivers/gpu/drm/radeon/r420.c 		return r;
r                 284 drivers/gpu/drm/radeon/r420.c 		r = radeon_irq_kms_init(rdev);
r                 285 drivers/gpu/drm/radeon/r420.c 		if (r)
r                 286 drivers/gpu/drm/radeon/r420.c 			return r;
r                 292 drivers/gpu/drm/radeon/r420.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                 293 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 294 drivers/gpu/drm/radeon/r420.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                 295 drivers/gpu/drm/radeon/r420.c 		return r;
r                 299 drivers/gpu/drm/radeon/r420.c 	r = radeon_ib_pool_init(rdev);
r                 300 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 301 drivers/gpu/drm/radeon/r420.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                 302 drivers/gpu/drm/radeon/r420.c 		return r;
r                 310 drivers/gpu/drm/radeon/r420.c 	int r;
r                 337 drivers/gpu/drm/radeon/r420.c 	r = r420_startup(rdev);
r                 338 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 341 drivers/gpu/drm/radeon/r420.c 	return r;
r                 384 drivers/gpu/drm/radeon/r420.c 	int r;
r                 399 drivers/gpu/drm/radeon/r420.c 		r = radeon_atombios_init(rdev);
r                 400 drivers/gpu/drm/radeon/r420.c 		if (r) {
r                 401 drivers/gpu/drm/radeon/r420.c 			return r;
r                 404 drivers/gpu/drm/radeon/r420.c 		r = radeon_combios_init(rdev);
r                 405 drivers/gpu/drm/radeon/r420.c 		if (r) {
r                 406 drivers/gpu/drm/radeon/r420.c 			return r;
r                 424 drivers/gpu/drm/radeon/r420.c 		r = radeon_agp_init(rdev);
r                 425 drivers/gpu/drm/radeon/r420.c 		if (r) {
r                 433 drivers/gpu/drm/radeon/r420.c 	r = radeon_fence_driver_init(rdev);
r                 434 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 435 drivers/gpu/drm/radeon/r420.c 		return r;
r                 438 drivers/gpu/drm/radeon/r420.c 	r = radeon_bo_init(rdev);
r                 439 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 440 drivers/gpu/drm/radeon/r420.c 		return r;
r                 446 drivers/gpu/drm/radeon/r420.c 		r = rv370_pcie_gart_init(rdev);
r                 447 drivers/gpu/drm/radeon/r420.c 		if (r)
r                 448 drivers/gpu/drm/radeon/r420.c 			return r;
r                 451 drivers/gpu/drm/radeon/r420.c 		r = r100_pci_gart_init(rdev);
r                 452 drivers/gpu/drm/radeon/r420.c 		if (r)
r                 453 drivers/gpu/drm/radeon/r420.c 			return r;
r                 461 drivers/gpu/drm/radeon/r420.c 	r = r420_startup(rdev);
r                 462 drivers/gpu/drm/radeon/r420.c 	if (r) {
r                 169 drivers/gpu/drm/radeon/r520.c 	int r;
r                 179 drivers/gpu/drm/radeon/r520.c 		r = rv370_pcie_gart_enable(rdev);
r                 180 drivers/gpu/drm/radeon/r520.c 		if (r)
r                 181 drivers/gpu/drm/radeon/r520.c 			return r;
r                 185 drivers/gpu/drm/radeon/r520.c 	r = radeon_wb_init(rdev);
r                 186 drivers/gpu/drm/radeon/r520.c 	if (r)
r                 187 drivers/gpu/drm/radeon/r520.c 		return r;
r                 189 drivers/gpu/drm/radeon/r520.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                 190 drivers/gpu/drm/radeon/r520.c 	if (r) {
r                 191 drivers/gpu/drm/radeon/r520.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                 192 drivers/gpu/drm/radeon/r520.c 		return r;
r                 197 drivers/gpu/drm/radeon/r520.c 		r = radeon_irq_kms_init(rdev);
r                 198 drivers/gpu/drm/radeon/r520.c 		if (r)
r                 199 drivers/gpu/drm/radeon/r520.c 			return r;
r                 205 drivers/gpu/drm/radeon/r520.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                 206 drivers/gpu/drm/radeon/r520.c 	if (r) {
r                 207 drivers/gpu/drm/radeon/r520.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                 208 drivers/gpu/drm/radeon/r520.c 		return r;
r                 211 drivers/gpu/drm/radeon/r520.c 	r = radeon_ib_pool_init(rdev);
r                 212 drivers/gpu/drm/radeon/r520.c 	if (r) {
r                 213 drivers/gpu/drm/radeon/r520.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                 214 drivers/gpu/drm/radeon/r520.c 		return r;
r                 222 drivers/gpu/drm/radeon/r520.c 	int r;
r                 243 drivers/gpu/drm/radeon/r520.c 	r = r520_startup(rdev);
r                 244 drivers/gpu/drm/radeon/r520.c 	if (r) {
r                 247 drivers/gpu/drm/radeon/r520.c 	return r;
r                 252 drivers/gpu/drm/radeon/r520.c 	int r;
r                 267 drivers/gpu/drm/radeon/r520.c 		r = radeon_atombios_init(rdev);
r                 268 drivers/gpu/drm/radeon/r520.c 		if (r)
r                 269 drivers/gpu/drm/radeon/r520.c 			return r;
r                 293 drivers/gpu/drm/radeon/r520.c 		r = radeon_agp_init(rdev);
r                 294 drivers/gpu/drm/radeon/r520.c 		if (r) {
r                 302 drivers/gpu/drm/radeon/r520.c 	r = radeon_fence_driver_init(rdev);
r                 303 drivers/gpu/drm/radeon/r520.c 	if (r)
r                 304 drivers/gpu/drm/radeon/r520.c 		return r;
r                 306 drivers/gpu/drm/radeon/r520.c 	r = radeon_bo_init(rdev);
r                 307 drivers/gpu/drm/radeon/r520.c 	if (r)
r                 308 drivers/gpu/drm/radeon/r520.c 		return r;
r                 309 drivers/gpu/drm/radeon/r520.c 	r = rv370_pcie_gart_init(rdev);
r                 310 drivers/gpu/drm/radeon/r520.c 	if (r)
r                 311 drivers/gpu/drm/radeon/r520.c 		return r;
r                 318 drivers/gpu/drm/radeon/r520.c 	r = r520_startup(rdev);
r                 319 drivers/gpu/drm/radeon/r520.c 	if (r) {
r                 123 drivers/gpu/drm/radeon/r600.c 	u32 r;
r                 127 drivers/gpu/drm/radeon/r600.c 	r = RREG32(R600_RCU_DATA);
r                 129 drivers/gpu/drm/radeon/r600.c 	return r;
r                 145 drivers/gpu/drm/radeon/r600.c 	u32 r;
r                 149 drivers/gpu/drm/radeon/r600.c 	r = RREG32(R600_UVD_CTX_DATA);
r                 151 drivers/gpu/drm/radeon/r600.c 	return r;
r                 206 drivers/gpu/drm/radeon/r600.c 	int r;
r                 232 drivers/gpu/drm/radeon/r600.c 	r = radeon_uvd_calc_upll_dividers(rdev, vclk, dclk, 50000, 160000,
r                 235 drivers/gpu/drm/radeon/r600.c 	if (r)
r                 236 drivers/gpu/drm/radeon/r600.c 		return r;
r                 243 drivers/gpu/drm/radeon/r600.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                 244 drivers/gpu/drm/radeon/r600.c 	if (r)
r                 245 drivers/gpu/drm/radeon/r600.c 		return r;
r                 282 drivers/gpu/drm/radeon/r600.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                 283 drivers/gpu/drm/radeon/r600.c 	if (r)
r                 284 drivers/gpu/drm/radeon/r600.c 		return r;
r                1115 drivers/gpu/drm/radeon/r600.c 	int r;
r                1122 drivers/gpu/drm/radeon/r600.c 	r = radeon_gart_init(rdev);
r                1123 drivers/gpu/drm/radeon/r600.c 	if (r)
r                1124 drivers/gpu/drm/radeon/r600.c 		return r;
r                1132 drivers/gpu/drm/radeon/r600.c 	int r, i;
r                1138 drivers/gpu/drm/radeon/r600.c 	r = radeon_gart_table_vram_pin(rdev);
r                1139 drivers/gpu/drm/radeon/r600.c 	if (r)
r                1140 drivers/gpu/drm/radeon/r600.c 		return r;
r                1281 drivers/gpu/drm/radeon/r600.c 	uint32_t r;
r                1285 drivers/gpu/drm/radeon/r600.c 	r = RREG32(R_0028FC_MC_DATA);
r                1288 drivers/gpu/drm/radeon/r600.c 	return r;
r                1510 drivers/gpu/drm/radeon/r600.c 	int r;
r                1513 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_create(rdev, RADEON_GPU_PAGE_SIZE,
r                1516 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                1517 drivers/gpu/drm/radeon/r600.c 			return r;
r                1521 drivers/gpu/drm/radeon/r600.c 	r = radeon_bo_reserve(rdev->vram_scratch.robj, false);
r                1522 drivers/gpu/drm/radeon/r600.c 	if (unlikely(r != 0))
r                1523 drivers/gpu/drm/radeon/r600.c 		return r;
r                1524 drivers/gpu/drm/radeon/r600.c 	r = radeon_bo_pin(rdev->vram_scratch.robj,
r                1526 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                1528 drivers/gpu/drm/radeon/r600.c 		return r;
r                1530 drivers/gpu/drm/radeon/r600.c 	r = radeon_bo_kmap(rdev->vram_scratch.robj,
r                1532 drivers/gpu/drm/radeon/r600.c 	if (r)
r                1536 drivers/gpu/drm/radeon/r600.c 	return r;
r                1541 drivers/gpu/drm/radeon/r600.c 	int r;
r                1546 drivers/gpu/drm/radeon/r600.c 	r = radeon_bo_reserve(rdev->vram_scratch.robj, false);
r                1547 drivers/gpu/drm/radeon/r600.c 	if (likely(r == 0)) {
r                2399 drivers/gpu/drm/radeon/r600.c 	u32 r;
r                2404 drivers/gpu/drm/radeon/r600.c 	r = RREG32(PCIE_PORT_DATA);
r                2406 drivers/gpu/drm/radeon/r600.c 	return r;
r                2688 drivers/gpu/drm/radeon/r600.c 	int r;
r                2691 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_lock(rdev, ring, 7);
r                2692 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                2693 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                2694 drivers/gpu/drm/radeon/r600.c 		return r;
r                2720 drivers/gpu/drm/radeon/r600.c 	int r;
r                2767 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, ring);
r                2768 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                2770 drivers/gpu/drm/radeon/r600.c 		return r;
r                2782 drivers/gpu/drm/radeon/r600.c 	int r;
r                2791 drivers/gpu/drm/radeon/r600.c 		r = radeon_scratch_get(rdev, &ring->rptr_save_reg);
r                2792 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                2793 drivers/gpu/drm/radeon/r600.c 			DRM_ERROR("failed to get scratch reg for rptr save (%d).\n", r);
r                2827 drivers/gpu/drm/radeon/r600.c 	int r;
r                2829 drivers/gpu/drm/radeon/r600.c 	r = radeon_scratch_get(rdev, &scratch);
r                2830 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                2831 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: cp failed to get scratch reg (%d).\n", r);
r                2832 drivers/gpu/drm/radeon/r600.c 		return r;
r                2835 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_lock(rdev, ring, 3);
r                2836 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                2837 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: cp failed to lock ring %d (%d).\n", ring->idx, r);
r                2839 drivers/gpu/drm/radeon/r600.c 		return r;
r                2856 drivers/gpu/drm/radeon/r600.c 		r = -EINVAL;
r                2859 drivers/gpu/drm/radeon/r600.c 	return r;
r                2974 drivers/gpu/drm/radeon/r600.c 	int r = 0;
r                2980 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_lock(rdev, ring, num_loops * 6 + 24);
r                2981 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                2982 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                2984 drivers/gpu/drm/radeon/r600.c 		return ERR_PTR(r);
r                3014 drivers/gpu/drm/radeon/r600.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                3015 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3018 drivers/gpu/drm/radeon/r600.c 		return ERR_PTR(r);
r                3042 drivers/gpu/drm/radeon/r600.c 	int r;
r                3047 drivers/gpu/drm/radeon/r600.c 	r = radeon_uvd_init(rdev);
r                3048 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3049 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                3065 drivers/gpu/drm/radeon/r600.c 	int r;
r                3070 drivers/gpu/drm/radeon/r600.c 	r = uvd_v1_0_resume(rdev);
r                3071 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3072 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                3075 drivers/gpu/drm/radeon/r600.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                3076 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3077 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                3089 drivers/gpu/drm/radeon/r600.c 	int r;
r                3095 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                3096 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3097 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                3100 drivers/gpu/drm/radeon/r600.c 	r = uvd_v1_0_init(rdev);
r                3101 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3102 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                3110 drivers/gpu/drm/radeon/r600.c 	int r;
r                3116 drivers/gpu/drm/radeon/r600.c 	r = r600_vram_scratch_init(rdev);
r                3117 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3118 drivers/gpu/drm/radeon/r600.c 		return r;
r                3125 drivers/gpu/drm/radeon/r600.c 		r = r600_pcie_gart_enable(rdev);
r                3126 drivers/gpu/drm/radeon/r600.c 		if (r)
r                3127 drivers/gpu/drm/radeon/r600.c 			return r;
r                3132 drivers/gpu/drm/radeon/r600.c 	r = radeon_wb_init(rdev);
r                3133 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3134 drivers/gpu/drm/radeon/r600.c 		return r;
r                3136 drivers/gpu/drm/radeon/r600.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                3137 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3138 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                3139 drivers/gpu/drm/radeon/r600.c 		return r;
r                3146 drivers/gpu/drm/radeon/r600.c 		r = radeon_irq_kms_init(rdev);
r                3147 drivers/gpu/drm/radeon/r600.c 		if (r)
r                3148 drivers/gpu/drm/radeon/r600.c 			return r;
r                3151 drivers/gpu/drm/radeon/r600.c 	r = r600_irq_init(rdev);
r                3152 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3153 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                3155 drivers/gpu/drm/radeon/r600.c 		return r;
r                3160 drivers/gpu/drm/radeon/r600.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                3162 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3163 drivers/gpu/drm/radeon/r600.c 		return r;
r                3165 drivers/gpu/drm/radeon/r600.c 	r = r600_cp_load_microcode(rdev);
r                3166 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3167 drivers/gpu/drm/radeon/r600.c 		return r;
r                3168 drivers/gpu/drm/radeon/r600.c 	r = r600_cp_resume(rdev);
r                3169 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3170 drivers/gpu/drm/radeon/r600.c 		return r;
r                3174 drivers/gpu/drm/radeon/r600.c 	r = radeon_ib_pool_init(rdev);
r                3175 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3176 drivers/gpu/drm/radeon/r600.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                3177 drivers/gpu/drm/radeon/r600.c 		return r;
r                3180 drivers/gpu/drm/radeon/r600.c 	r = radeon_audio_init(rdev);
r                3181 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3183 drivers/gpu/drm/radeon/r600.c 		return r;
r                3205 drivers/gpu/drm/radeon/r600.c 	int r;
r                3218 drivers/gpu/drm/radeon/r600.c 	r = r600_startup(rdev);
r                3219 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3222 drivers/gpu/drm/radeon/r600.c 		return r;
r                3225 drivers/gpu/drm/radeon/r600.c 	return r;
r                3252 drivers/gpu/drm/radeon/r600.c 	int r;
r                3267 drivers/gpu/drm/radeon/r600.c 	r = radeon_atombios_init(rdev);
r                3268 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3269 drivers/gpu/drm/radeon/r600.c 		return r;
r                3286 drivers/gpu/drm/radeon/r600.c 	r = radeon_fence_driver_init(rdev);
r                3287 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3288 drivers/gpu/drm/radeon/r600.c 		return r;
r                3290 drivers/gpu/drm/radeon/r600.c 		r = radeon_agp_init(rdev);
r                3291 drivers/gpu/drm/radeon/r600.c 		if (r)
r                3294 drivers/gpu/drm/radeon/r600.c 	r = r600_mc_init(rdev);
r                3295 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3296 drivers/gpu/drm/radeon/r600.c 		return r;
r                3298 drivers/gpu/drm/radeon/r600.c 	r = radeon_bo_init(rdev);
r                3299 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3300 drivers/gpu/drm/radeon/r600.c 		return r;
r                3303 drivers/gpu/drm/radeon/r600.c 		r = r600_init_microcode(rdev);
r                3304 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                3306 drivers/gpu/drm/radeon/r600.c 			return r;
r                3321 drivers/gpu/drm/radeon/r600.c 	r = r600_pcie_gart_init(rdev);
r                3322 drivers/gpu/drm/radeon/r600.c 	if (r)
r                3323 drivers/gpu/drm/radeon/r600.c 		return r;
r                3326 drivers/gpu/drm/radeon/r600.c 	r = r600_startup(rdev);
r                3327 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3405 drivers/gpu/drm/radeon/r600.c 	int r;
r                3407 drivers/gpu/drm/radeon/r600.c 	r = radeon_scratch_get(rdev, &scratch);
r                3408 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3409 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: failed to get scratch reg (%d).\n", r);
r                3410 drivers/gpu/drm/radeon/r600.c 		return r;
r                3413 drivers/gpu/drm/radeon/r600.c 	r = radeon_ib_get(rdev, ring->idx, &ib, NULL, 256);
r                3414 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3415 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                3422 drivers/gpu/drm/radeon/r600.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                3423 drivers/gpu/drm/radeon/r600.c 	if (r) {
r                3424 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                3427 drivers/gpu/drm/radeon/r600.c 	r = radeon_fence_wait_timeout(ib.fence, false, usecs_to_jiffies(
r                3429 drivers/gpu/drm/radeon/r600.c 	if (r < 0) {
r                3430 drivers/gpu/drm/radeon/r600.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                3432 drivers/gpu/drm/radeon/r600.c 	} else if (r == 0) {
r                3434 drivers/gpu/drm/radeon/r600.c 		r = -ETIMEDOUT;
r                3437 drivers/gpu/drm/radeon/r600.c 	r = 0;
r                3449 drivers/gpu/drm/radeon/r600.c 		r = -EINVAL;
r                3455 drivers/gpu/drm/radeon/r600.c 	return r;
r                3483 drivers/gpu/drm/radeon/r600.c 	int r;
r                3487 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_create(rdev, rdev->ih.ring_size,
r                3491 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                3492 drivers/gpu/drm/radeon/r600.c 			DRM_ERROR("radeon: failed to create ih ring buffer (%d).\n", r);
r                3493 drivers/gpu/drm/radeon/r600.c 			return r;
r                3495 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_reserve(rdev->ih.ring_obj, false);
r                3496 drivers/gpu/drm/radeon/r600.c 		if (unlikely(r != 0))
r                3497 drivers/gpu/drm/radeon/r600.c 			return r;
r                3498 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_pin(rdev->ih.ring_obj,
r                3501 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                3503 drivers/gpu/drm/radeon/r600.c 			DRM_ERROR("radeon: failed to pin ih ring buffer (%d).\n", r);
r                3504 drivers/gpu/drm/radeon/r600.c 			return r;
r                3506 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_kmap(rdev->ih.ring_obj,
r                3509 drivers/gpu/drm/radeon/r600.c 		if (r) {
r                3510 drivers/gpu/drm/radeon/r600.c 			DRM_ERROR("radeon: failed to map ih ring buffer (%d).\n", r);
r                3511 drivers/gpu/drm/radeon/r600.c 			return r;
r                3519 drivers/gpu/drm/radeon/r600.c 	int r;
r                3521 drivers/gpu/drm/radeon/r600.c 		r = radeon_bo_reserve(rdev->ih.ring_obj, false);
r                3522 drivers/gpu/drm/radeon/r600.c 		if (likely(r == 0)) {
r                 710 drivers/gpu/drm/radeon/r600_cs.c 	int r, i;
r                 764 drivers/gpu/drm/radeon/r600_cs.c 				r = r600_cs_track_validate_cb(p, i);
r                 765 drivers/gpu/drm/radeon/r600_cs.c 				if (r)
r                 766 drivers/gpu/drm/radeon/r600_cs.c 					return r;
r                 777 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_cs_track_validate_db(p);
r                 778 drivers/gpu/drm/radeon/r600_cs.c 		if (r)
r                 779 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                 833 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                 840 drivers/gpu/drm/radeon/r600_cs.c 	r = radeon_cs_packet_parse(p, &wait_reg_mem, p->idx);
r                 841 drivers/gpu/drm/radeon/r600_cs.c 	if (r)
r                 842 drivers/gpu/drm/radeon/r600_cs.c 		return r;
r                 878 drivers/gpu/drm/radeon/r600_cs.c 	r = radeon_cs_packet_parse(p, &p3reloc, p->idx + wait_reg_mem.count + 2);
r                 879 drivers/gpu/drm/radeon/r600_cs.c 	if (r)
r                 880 drivers/gpu/drm/radeon/r600_cs.c 		return r;
r                 923 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                 927 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_cs_packet_parse_vline(p);
r                 928 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                 931 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                 946 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                 951 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_packet0_check(p, pkt, idx, reg);
r                 952 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                 953 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                 974 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                1017 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, 0);
r                1018 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1035 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1036 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1077 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1078 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1100 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1101 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1136 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1137 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1208 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1209 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1239 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1240 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1274 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1275 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1289 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1290 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1302 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1303 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1372 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1373 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1381 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1382 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1635 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                1667 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1668 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1708 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1709 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1721 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_cs_track_check(p);
r                1722 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1724 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                1733 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_cs_track_check(p);
r                1734 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1736 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                1745 drivers/gpu/drm/radeon/r600_cs.c 		r = r600_cs_track_check(p);
r                1746 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1748 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                1760 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1761 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1797 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1798 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1827 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1828 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1857 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1858 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1873 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1874 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                1894 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1895 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                1919 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_cs_check_reg(p, reg, idx+1+i);
r                1920 drivers/gpu/drm/radeon/r600_cs.c 			if (r)
r                1921 drivers/gpu/drm/radeon/r600_cs.c 				return r;
r                1935 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_cs_check_reg(p, reg, idx+1+i);
r                1936 drivers/gpu/drm/radeon/r600_cs.c 			if (r)
r                1937 drivers/gpu/drm/radeon/r600_cs.c 				return r;
r                1960 drivers/gpu/drm/radeon/r600_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1961 drivers/gpu/drm/radeon/r600_cs.c 				if (r) {
r                1974 drivers/gpu/drm/radeon/r600_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1975 drivers/gpu/drm/radeon/r600_cs.c 				if (r) {
r                1981 drivers/gpu/drm/radeon/r600_cs.c 				r = r600_check_texture_resource(p,  idx+(i*7)+1,
r                1986 drivers/gpu/drm/radeon/r600_cs.c 				if (r)
r                1987 drivers/gpu/drm/radeon/r600_cs.c 					return r;
r                1995 drivers/gpu/drm/radeon/r600_cs.c 				r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                1996 drivers/gpu/drm/radeon/r600_cs.c 				if (r) {
r                2096 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2097 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2140 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2141 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2159 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2160 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2184 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2185 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                2213 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2214 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2237 drivers/gpu/drm/radeon/r600_cs.c 			r = radeon_cs_packet_next_reloc(p, &reloc, r600_nomm);
r                2238 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2272 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                2292 drivers/gpu/drm/radeon/r600_cs.c 		r = radeon_cs_packet_parse(p, &pkt, p->idx);
r                2293 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                2296 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                2301 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_cs_parse_packet0(p, &pkt);
r                2306 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_packet3_check(p, &pkt);
r                2314 drivers/gpu/drm/radeon/r600_cs.c 		if (r) {
r                2317 drivers/gpu/drm/radeon/r600_cs.c 			return r;
r                2321 drivers/gpu/drm/radeon/r600_cs.c 	for (r = 0; r < p->ib.length_dw; r++) {
r                2322 drivers/gpu/drm/radeon/r600_cs.c 		pr_info("%05d  0x%08X\n", r, p->ib.ptr[r]);
r                2386 drivers/gpu/drm/radeon/r600_cs.c 	int r;
r                2402 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                2403 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2428 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_dma_cs_next_reloc(p, &src_reloc);
r                2429 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2433 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                2434 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2504 drivers/gpu/drm/radeon/r600_cs.c 			r = r600_dma_cs_next_reloc(p, &dst_reloc);
r                2505 drivers/gpu/drm/radeon/r600_cs.c 			if (r) {
r                2529 drivers/gpu/drm/radeon/r600_cs.c 	for (r = 0; r < p->ib->length_dw; r++) {
r                2530 drivers/gpu/drm/radeon/r600_cs.c 		pr_info("%05d  0x%08X\n", r, p->ib.ptr[r]);
r                 125 drivers/gpu/drm/radeon/r600_dma.c 	int r;
r                 174 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_ring_test(rdev, R600_RING_TYPE_DMA_INDEX, ring);
r                 175 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 177 drivers/gpu/drm/radeon/r600_dma.c 		return r;
r                 234 drivers/gpu/drm/radeon/r600_dma.c 	int r;
r                 249 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_ring_lock(rdev, ring, 4);
r                 250 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 251 drivers/gpu/drm/radeon/r600_dma.c 		DRM_ERROR("radeon: dma failed to lock ring %d (%d).\n", ring->idx, r);
r                 252 drivers/gpu/drm/radeon/r600_dma.c 		return r;
r                 272 drivers/gpu/drm/radeon/r600_dma.c 		r = -EINVAL;
r                 274 drivers/gpu/drm/radeon/r600_dma.c 	return r;
r                 342 drivers/gpu/drm/radeon/r600_dma.c 	int r;
r                 353 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_ib_get(rdev, ring->idx, &ib, NULL, 256);
r                 354 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 355 drivers/gpu/drm/radeon/r600_dma.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                 356 drivers/gpu/drm/radeon/r600_dma.c 		return r;
r                 365 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 366 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 368 drivers/gpu/drm/radeon/r600_dma.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                 369 drivers/gpu/drm/radeon/r600_dma.c 		return r;
r                 371 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_fence_wait_timeout(ib.fence, false, usecs_to_jiffies(
r                 373 drivers/gpu/drm/radeon/r600_dma.c 	if (r < 0) {
r                 374 drivers/gpu/drm/radeon/r600_dma.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                 375 drivers/gpu/drm/radeon/r600_dma.c 		return r;
r                 376 drivers/gpu/drm/radeon/r600_dma.c 	} else if (r == 0) {
r                 380 drivers/gpu/drm/radeon/r600_dma.c 	r = 0;
r                 391 drivers/gpu/drm/radeon/r600_dma.c 		r = -EINVAL;
r                 394 drivers/gpu/drm/radeon/r600_dma.c 	return r;
r                 455 drivers/gpu/drm/radeon/r600_dma.c 	int r = 0;
r                 461 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_ring_lock(rdev, ring, num_loops * 4 + 8);
r                 462 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 463 drivers/gpu/drm/radeon/r600_dma.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                 465 drivers/gpu/drm/radeon/r600_dma.c 		return ERR_PTR(r);
r                 485 drivers/gpu/drm/radeon/r600_dma.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                 486 drivers/gpu/drm/radeon/r600_dma.c 	if (r) {
r                 489 drivers/gpu/drm/radeon/r600_dma.c 		return ERR_PTR(r);
r                2703 drivers/gpu/drm/radeon/radeon.h #define radeon_cs_parse(rdev, r, p) (rdev)->asic->ring[(r)]->cs_parse((p))
r                2715 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_start(rdev, r, cp) (rdev)->asic->ring[(r)]->ring_start((rdev), (cp))
r                2716 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_test(rdev, r, cp) (rdev)->asic->ring[(r)]->ring_test((rdev), (cp))
r                2717 drivers/gpu/drm/radeon/radeon.h #define radeon_ib_test(rdev, r, cp) (rdev)->asic->ring[(r)]->ib_test((rdev), (cp))
r                2718 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_ib_execute(rdev, r, ib) (rdev)->asic->ring[(r)]->ib_execute((rdev), (ib))
r                2719 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_ib_parse(rdev, r, ib) (rdev)->asic->ring[(r)]->ib_parse((rdev), (ib))
r                2720 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_is_lockup(rdev, r, cp) (rdev)->asic->ring[(r)]->is_lockup((rdev), (cp))
r                2721 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_vm_flush(rdev, r, vm_id, pd_addr) (rdev)->asic->ring[(r)->idx]->vm_flush((rdev), (r), (vm_id), (pd_addr))
r                2722 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_get_rptr(rdev, r) (rdev)->asic->ring[(r)->idx]->get_rptr((rdev), (r))
r                2723 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_get_wptr(rdev, r) (rdev)->asic->ring[(r)->idx]->get_wptr((rdev), (r))
r                2724 drivers/gpu/drm/radeon/radeon.h #define radeon_ring_set_wptr(rdev, r) (rdev)->asic->ring[(r)->idx]->set_wptr((rdev), (r))
r                2732 drivers/gpu/drm/radeon/radeon.h #define radeon_fence_ring_emit(rdev, r, fence) (rdev)->asic->ring[(r)]->emit_fence((rdev), (fence))
r                2733 drivers/gpu/drm/radeon/radeon.h #define radeon_semaphore_ring_emit(rdev, r, cp, semaphore, emit_wait) (rdev)->asic->ring[(r)]->emit_semaphore((rdev), (cp), (semaphore), (emit_wait))
r                2750 drivers/gpu/drm/radeon/radeon.h #define radeon_set_surface_reg(rdev, r, f, p, o, s) ((rdev)->asic->surface.set_reg((rdev), (r), (f), (p), (o), (s)))
r                2751 drivers/gpu/drm/radeon/radeon.h #define radeon_clear_surface_reg(rdev, r) ((rdev)->asic->surface.clear_reg((rdev), (r)))
r                2769 drivers/gpu/drm/radeon/radeon.h #define radeon_get_allowed_info_register(rdev, r, v) (rdev)->asic->get_allowed_info_register((rdev), (r), (v))
r                 268 drivers/gpu/drm/radeon/radeon_agp.c 	int r;
r                 270 drivers/gpu/drm/radeon/radeon_agp.c 		r = radeon_agp_init(rdev);
r                 271 drivers/gpu/drm/radeon/radeon_agp.c 		if (r)
r                 505 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	int r;
r                 508 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	r = radeon_atpx_verify_interface(&radeon_atpx_priv.atpx);
r                 509 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	if (r)
r                 510 drivers/gpu/drm/radeon/radeon_atpx_handler.c 		return r;
r                 513 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	r = radeon_atpx_validate(&radeon_atpx_priv.atpx);
r                 514 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	if (r)
r                 515 drivers/gpu/drm/radeon/radeon_atpx_handler.c 		return r;
r                 596 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	bool r;
r                 600 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	r = radeon_atpx_detect();
r                 601 drivers/gpu/drm/radeon/radeon_atpx_handler.c 	if (!r)
r                  43 drivers/gpu/drm/radeon/radeon_benchmark.c 	int i, r;
r                  65 drivers/gpu/drm/radeon/radeon_benchmark.c 		r = radeon_fence_wait(fence, false);
r                  67 drivers/gpu/drm/radeon/radeon_benchmark.c 		if (r)
r                  68 drivers/gpu/drm/radeon/radeon_benchmark.c 			return r;
r                  93 drivers/gpu/drm/radeon/radeon_benchmark.c 	int r, n;
r                  97 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_create(rdev, size, PAGE_SIZE, true, sdomain, 0, NULL, NULL, &sobj);
r                  98 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (r) {
r                 101 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_reserve(sobj, false);
r                 102 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (unlikely(r != 0))
r                 104 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_pin(sobj, sdomain, &saddr);
r                 106 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (r) {
r                 109 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_create(rdev, size, PAGE_SIZE, true, ddomain, 0, NULL, NULL, &dobj);
r                 110 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (r) {
r                 113 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_reserve(dobj, false);
r                 114 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (unlikely(r != 0))
r                 116 drivers/gpu/drm/radeon/radeon_benchmark.c 	r = radeon_bo_pin(dobj, ddomain, &daddr);
r                 118 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (r) {
r                 146 drivers/gpu/drm/radeon/radeon_benchmark.c 		r = radeon_bo_reserve(sobj, false);
r                 147 drivers/gpu/drm/radeon/radeon_benchmark.c 		if (likely(r == 0)) {
r                 154 drivers/gpu/drm/radeon/radeon_benchmark.c 		r = radeon_bo_reserve(dobj, false);
r                 155 drivers/gpu/drm/radeon/radeon_benchmark.c 		if (likely(r == 0)) {
r                 162 drivers/gpu/drm/radeon/radeon_benchmark.c 	if (r) {
r                 258 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 281 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_read_bios(rdev);
r                 291 drivers/gpu/drm/radeon/radeon_bios.c 	return r;
r                 304 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 343 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_read_bios(rdev);
r                 360 drivers/gpu/drm/radeon/radeon_bios.c 	return r;
r                 377 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 422 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_read_bios(rdev);
r                 437 drivers/gpu/drm/radeon/radeon_bios.c 	return r;
r                 451 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 486 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_read_bios(rdev);
r                 498 drivers/gpu/drm/radeon/radeon_bios.c 	return r;
r                 510 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 564 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_read_bios(rdev);
r                 581 drivers/gpu/drm/radeon/radeon_bios.c 	return r;
r                 663 drivers/gpu/drm/radeon/radeon_bios.c 	bool r;
r                 666 drivers/gpu/drm/radeon/radeon_bios.c 	r = radeon_atrm_get_bios(rdev);
r                 667 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false)
r                 668 drivers/gpu/drm/radeon/radeon_bios.c 		r = radeon_acpi_vfct_bios(rdev);
r                 669 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false)
r                 670 drivers/gpu/drm/radeon/radeon_bios.c 		r = igp_read_bios_from_vram(rdev);
r                 671 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false)
r                 672 drivers/gpu/drm/radeon/radeon_bios.c 		r = radeon_read_bios(rdev);
r                 673 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false)
r                 674 drivers/gpu/drm/radeon/radeon_bios.c 		r = radeon_read_disabled_bios(rdev);
r                 675 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false)
r                 676 drivers/gpu/drm/radeon/radeon_bios.c 		r = radeon_read_platform_bios(rdev);
r                 677 drivers/gpu/drm/radeon/radeon_bios.c 	if (r == false || rdev->bios == NULL) {
r                 882 drivers/gpu/drm/radeon/radeon_connectors.c 	int r;
r                 885 drivers/gpu/drm/radeon/radeon_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                 886 drivers/gpu/drm/radeon/radeon_connectors.c 		if (r < 0)
r                1028 drivers/gpu/drm/radeon/radeon_connectors.c 	int r;
r                1031 drivers/gpu/drm/radeon/radeon_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                1032 drivers/gpu/drm/radeon/radeon_connectors.c 		if (r < 0)
r                1163 drivers/gpu/drm/radeon/radeon_connectors.c 	int r;
r                1169 drivers/gpu/drm/radeon/radeon_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                1170 drivers/gpu/drm/radeon/radeon_connectors.c 		if (r < 0)
r                1248 drivers/gpu/drm/radeon/radeon_connectors.c 	int r;
r                1253 drivers/gpu/drm/radeon/radeon_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                1254 drivers/gpu/drm/radeon/radeon_connectors.c 		if (r < 0)
r                1662 drivers/gpu/drm/radeon/radeon_connectors.c 	int r;
r                1668 drivers/gpu/drm/radeon/radeon_connectors.c 		r = pm_runtime_get_sync(connector->dev->dev);
r                1669 drivers/gpu/drm/radeon/radeon_connectors.c 		if (r < 0)
r                1729 drivers/gpu/drm/radeon/radeon_connectors.c 				r = radeon_dp_mst_probe(radeon_connector);
r                1730 drivers/gpu/drm/radeon/radeon_connectors.c 				if (r == 1)
r                1736 drivers/gpu/drm/radeon/radeon_connectors.c 					r = radeon_dp_mst_probe(radeon_connector);
r                1737 drivers/gpu/drm/radeon/radeon_connectors.c 					if (r == 1)
r                  87 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 105 drivers/gpu/drm/radeon/radeon_cs.c 		struct drm_radeon_cs_reloc *r;
r                 109 drivers/gpu/drm/radeon/radeon_cs.c 		r = (struct drm_radeon_cs_reloc *)&chunk->kdata[i*4];
r                 110 drivers/gpu/drm/radeon/radeon_cs.c 		gobj = drm_gem_object_lookup(p->filp, r->handle);
r                 113 drivers/gpu/drm/radeon/radeon_cs.c 				  r->handle);
r                 124 drivers/gpu/drm/radeon/radeon_cs.c 		priority = (r->flags & RADEON_RELOC_PRIO_MASK) * 2
r                 125 drivers/gpu/drm/radeon/radeon_cs.c 			   + !!r->write_domain;
r                 148 drivers/gpu/drm/radeon/radeon_cs.c 			uint32_t domain = r->write_domain ?
r                 149 drivers/gpu/drm/radeon/radeon_cs.c 				r->write_domain : r->read_domains;
r                 187 drivers/gpu/drm/radeon/radeon_cs.c 		p->relocs[i].tv.num_shared = !r->write_domain;
r                 201 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_bo_list_validate(p->rdev, &p->ticket, &p->validated, p->ring);
r                 206 drivers/gpu/drm/radeon/radeon_cs.c 	return r;
r                 255 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 261 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_sync_resv(p->rdev, &p->ib.sync, resv,
r                 263 drivers/gpu/drm/radeon/radeon_cs.c 		if (r)
r                 264 drivers/gpu/drm/radeon/radeon_cs.c 			return r;
r                 463 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 471 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_parse(rdev, parser->ring, parser);
r                 472 drivers/gpu/drm/radeon/radeon_cs.c 	if (r || parser->parser_error) {
r                 474 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 477 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_sync_rings(parser);
r                 478 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 479 drivers/gpu/drm/radeon/radeon_cs.c 		if (r != -ERESTARTSYS)
r                 480 drivers/gpu/drm/radeon/radeon_cs.c 			DRM_ERROR("Failed to sync rings: %i\n", r);
r                 481 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 490 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_ib_schedule(rdev, &parser->ib, NULL, true);
r                 491 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 494 drivers/gpu/drm/radeon/radeon_cs.c 	return r;
r                 502 drivers/gpu/drm/radeon/radeon_cs.c 	int i, r;
r                 504 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_vm_update_page_directory(rdev, vm);
r                 505 drivers/gpu/drm/radeon/radeon_cs.c 	if (r)
r                 506 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 508 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_vm_clear_freed(rdev, vm);
r                 509 drivers/gpu/drm/radeon/radeon_cs.c 	if (r)
r                 510 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 517 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_vm_bo_update(rdev, vm->ib_bo_va,
r                 519 drivers/gpu/drm/radeon/radeon_cs.c 	if (r)
r                 520 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 532 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_vm_bo_update(rdev, bo_va, &bo->tbo.mem);
r                 533 drivers/gpu/drm/radeon/radeon_cs.c 		if (r)
r                 534 drivers/gpu/drm/radeon/radeon_cs.c 			return r;
r                 547 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 555 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_ring_ib_parse(rdev, parser->ring, &parser->const_ib);
r                 556 drivers/gpu/drm/radeon/radeon_cs.c 		if (r) {
r                 557 drivers/gpu/drm/radeon/radeon_cs.c 			return r;
r                 561 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_ring_ib_parse(rdev, parser->ring, &parser->ib);
r                 562 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 563 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 570 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_bo_vm_update_pte(parser, vm);
r                 571 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 575 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_sync_rings(parser);
r                 576 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 577 drivers/gpu/drm/radeon/radeon_cs.c 		if (r != -ERESTARTSYS)
r                 578 drivers/gpu/drm/radeon/radeon_cs.c 			DRM_ERROR("Failed to sync rings: %i\n", r);
r                 584 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_ib_schedule(rdev, &parser->ib, &parser->const_ib, true);
r                 586 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_ib_schedule(rdev, &parser->ib, NULL, true);
r                 591 drivers/gpu/drm/radeon/radeon_cs.c 	return r;
r                 594 drivers/gpu/drm/radeon/radeon_cs.c static int radeon_cs_handle_lockup(struct radeon_device *rdev, int r)
r                 596 drivers/gpu/drm/radeon/radeon_cs.c 	if (r == -EDEADLK) {
r                 597 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_gpu_reset(rdev);
r                 598 drivers/gpu/drm/radeon/radeon_cs.c 		if (!r)
r                 599 drivers/gpu/drm/radeon/radeon_cs.c 			r = -EAGAIN;
r                 601 drivers/gpu/drm/radeon/radeon_cs.c 	return r;
r                 608 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 624 drivers/gpu/drm/radeon/radeon_cs.c 			r =  radeon_ib_get(rdev, parser->ring, &parser->const_ib,
r                 626 drivers/gpu/drm/radeon/radeon_cs.c 			if (r) {
r                 628 drivers/gpu/drm/radeon/radeon_cs.c 				return r;
r                 646 drivers/gpu/drm/radeon/radeon_cs.c 	r =  radeon_ib_get(rdev, parser->ring, &parser->ib,
r                 648 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 650 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 664 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 673 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_gpu_reset(rdev);
r                 674 drivers/gpu/drm/radeon/radeon_cs.c 		if (!r)
r                 675 drivers/gpu/drm/radeon/radeon_cs.c 			r = -EAGAIN;
r                 676 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 684 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_parser_init(&parser, data);
r                 685 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 687 drivers/gpu/drm/radeon/radeon_cs.c 		radeon_cs_parser_fini(&parser, r, false);
r                 689 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_cs_handle_lockup(rdev, r);
r                 690 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 693 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_ib_fill(rdev, &parser);
r                 694 drivers/gpu/drm/radeon/radeon_cs.c 	if (!r) {
r                 695 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_cs_parser_relocs(&parser);
r                 696 drivers/gpu/drm/radeon/radeon_cs.c 		if (r && r != -ERESTARTSYS)
r                 697 drivers/gpu/drm/radeon/radeon_cs.c 			DRM_ERROR("Failed to parse relocation %d!\n", r);
r                 700 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 701 drivers/gpu/drm/radeon/radeon_cs.c 		radeon_cs_parser_fini(&parser, r, false);
r                 703 drivers/gpu/drm/radeon/radeon_cs.c 		r = radeon_cs_handle_lockup(rdev, r);
r                 704 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 709 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_ib_chunk(rdev, &parser);
r                 710 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 713 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_ib_vm_chunk(rdev, &parser);
r                 714 drivers/gpu/drm/radeon/radeon_cs.c 	if (r) {
r                 718 drivers/gpu/drm/radeon/radeon_cs.c 	radeon_cs_parser_fini(&parser, r, true);
r                 720 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_handle_lockup(rdev, r);
r                 721 drivers/gpu/drm/radeon/radeon_cs.c 	return r;
r                 798 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 800 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_packet_parse(p, &p3reloc, p->idx);
r                 801 drivers/gpu/drm/radeon/radeon_cs.c 	if (r)
r                 848 drivers/gpu/drm/radeon/radeon_cs.c 	int r;
r                 856 drivers/gpu/drm/radeon/radeon_cs.c 	r = radeon_cs_packet_parse(p, &p3reloc, p->idx);
r                 857 drivers/gpu/drm/radeon/radeon_cs.c 	if (r)
r                 858 drivers/gpu/drm/radeon/radeon_cs.c 		return r;
r                 460 drivers/gpu/drm/radeon/radeon_device.c 	int r;
r                 463 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_bo_create(rdev, RADEON_GPU_PAGE_SIZE, PAGE_SIZE, true,
r                 466 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                 467 drivers/gpu/drm/radeon/radeon_device.c 			dev_warn(rdev->dev, "(%d) create WB bo failed\n", r);
r                 468 drivers/gpu/drm/radeon/radeon_device.c 			return r;
r                 470 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_bo_reserve(rdev->wb.wb_obj, false);
r                 471 drivers/gpu/drm/radeon/radeon_device.c 		if (unlikely(r != 0)) {
r                 473 drivers/gpu/drm/radeon/radeon_device.c 			return r;
r                 475 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_bo_pin(rdev->wb.wb_obj, RADEON_GEM_DOMAIN_GTT,
r                 477 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                 479 drivers/gpu/drm/radeon/radeon_device.c 			dev_warn(rdev->dev, "(%d) pin WB bo failed\n", r);
r                 481 drivers/gpu/drm/radeon/radeon_device.c 			return r;
r                 483 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_bo_kmap(rdev->wb.wb_obj, (void **)&rdev->wb.wb);
r                 485 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                 486 drivers/gpu/drm/radeon/radeon_device.c 			dev_warn(rdev->dev, "(%d) map WB bo failed\n", r);
r                 488 drivers/gpu/drm/radeon/radeon_device.c 			return r;
r                 839 drivers/gpu/drm/radeon/radeon_device.c 	uint32_t r;
r                 841 drivers/gpu/drm/radeon/radeon_device.c 	r = rdev->pll_rreg(rdev, reg);
r                 842 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                 873 drivers/gpu/drm/radeon/radeon_device.c 	uint32_t r;
r                 875 drivers/gpu/drm/radeon/radeon_device.c 	r = rdev->mc_rreg(rdev, reg);
r                 876 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                 923 drivers/gpu/drm/radeon/radeon_device.c 	uint32_t r;
r                 925 drivers/gpu/drm/radeon/radeon_device.c 	r = RREG32(reg*4);
r                 926 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                 957 drivers/gpu/drm/radeon/radeon_device.c 	uint32_t r;
r                 959 drivers/gpu/drm/radeon/radeon_device.c 	r = RREG32_IO(reg*4);
r                 960 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                1292 drivers/gpu/drm/radeon/radeon_device.c 	int r, i;
r                1328 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_gem_init(rdev);
r                1329 drivers/gpu/drm/radeon/radeon_device.c 	if (r)
r                1330 drivers/gpu/drm/radeon/radeon_device.c 		return r;
r                1339 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_asic_init(rdev);
r                1340 drivers/gpu/drm/radeon/radeon_device.c 	if (r)
r                1341 drivers/gpu/drm/radeon/radeon_device.c 		return r;
r                1383 drivers/gpu/drm/radeon/radeon_device.c 	r = dma_set_mask_and_coherent(&rdev->pdev->dev, DMA_BIT_MASK(dma_bits));
r                1384 drivers/gpu/drm/radeon/radeon_device.c 	if (r) {
r                1386 drivers/gpu/drm/radeon/radeon_device.c 		return r;
r                1446 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_init(rdev);
r                1447 drivers/gpu/drm/radeon/radeon_device.c 	if (r)
r                1450 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_gem_debugfs_init(rdev);
r                1451 drivers/gpu/drm/radeon/radeon_device.c 	if (r) {
r                1452 drivers/gpu/drm/radeon/radeon_device.c 		DRM_ERROR("registering gem debugfs failed (%d).\n", r);
r                1455 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_mst_debugfs_init(rdev);
r                1456 drivers/gpu/drm/radeon/radeon_device.c 	if (r) {
r                1457 drivers/gpu/drm/radeon/radeon_device.c 		DRM_ERROR("registering mst debugfs failed (%d).\n", r);
r                1467 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_init(rdev);
r                1468 drivers/gpu/drm/radeon/radeon_device.c 		if (r)
r                1472 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_ib_ring_tests(rdev);
r                1473 drivers/gpu/drm/radeon/radeon_device.c 	if (r)
r                1474 drivers/gpu/drm/radeon/radeon_device.c 		DRM_ERROR("ib ring test failed (%d).\n", r);
r                1517 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                1569 drivers/gpu/drm/radeon/radeon_device.c 	int i, r;
r                1597 drivers/gpu/drm/radeon/radeon_device.c 			r = radeon_bo_reserve(robj, false);
r                1598 drivers/gpu/drm/radeon/radeon_device.c 			if (r == 0) {
r                1610 drivers/gpu/drm/radeon/radeon_device.c 			r = radeon_bo_reserve(robj, false);
r                1611 drivers/gpu/drm/radeon/radeon_device.c 			if (r == 0) {
r                1622 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_fence_wait_empty(rdev, i);
r                1623 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                1673 drivers/gpu/drm/radeon/radeon_device.c 	int r;
r                1694 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_ib_ring_tests(rdev);
r                1695 drivers/gpu/drm/radeon/radeon_device.c 	if (r)
r                1696 drivers/gpu/drm/radeon/radeon_device.c 		DRM_ERROR("ib ring test failed (%d).\n", r);
r                1700 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_pm_late_init(rdev);
r                1701 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                1718 drivers/gpu/drm/radeon/radeon_device.c 			r = radeon_bo_reserve(robj, false);
r                1719 drivers/gpu/drm/radeon/radeon_device.c 			if (r == 0) {
r                1721 drivers/gpu/drm/radeon/radeon_device.c 				r = radeon_bo_pin_restricted(robj,
r                1726 drivers/gpu/drm/radeon/radeon_device.c 				if (r != 0)
r                1727 drivers/gpu/drm/radeon/radeon_device.c 					DRM_ERROR("Failed to pin cursor BO (%d)\n", r);
r                1787 drivers/gpu/drm/radeon/radeon_device.c 	int i, r;
r                1815 drivers/gpu/drm/radeon/radeon_device.c 	r = radeon_asic_reset(rdev);
r                1816 drivers/gpu/drm/radeon/radeon_device.c 	if (!r) {
r                1824 drivers/gpu/drm/radeon/radeon_device.c 		if (!r && ring_data[i]) {
r                1835 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_pm_late_init(rdev);
r                1836 drivers/gpu/drm/radeon/radeon_device.c 		if (r) {
r                1873 drivers/gpu/drm/radeon/radeon_device.c 	if (!r) {
r                1874 drivers/gpu/drm/radeon/radeon_device.c 		r = radeon_ib_ring_tests(rdev);
r                1875 drivers/gpu/drm/radeon/radeon_device.c 		if (r && saved)
r                1876 drivers/gpu/drm/radeon/radeon_device.c 			r = -EAGAIN;
r                1882 drivers/gpu/drm/radeon/radeon_device.c 	rdev->needs_reset = r == -EAGAIN;
r                1886 drivers/gpu/drm/radeon/radeon_device.c 	return r;
r                  53 drivers/gpu/drm/radeon/radeon_display.c 	u16 *r, *g, *b;
r                  72 drivers/gpu/drm/radeon/radeon_display.c 	r = crtc->gamma_store;
r                  73 drivers/gpu/drm/radeon/radeon_display.c 	g = r + crtc->gamma_size;
r                  77 drivers/gpu/drm/radeon/radeon_display.c 		       ((*r++ & 0xffc0) << 14) |
r                  91 drivers/gpu/drm/radeon/radeon_display.c 	u16 *r, *g, *b;
r                 109 drivers/gpu/drm/radeon/radeon_display.c 	r = crtc->gamma_store;
r                 110 drivers/gpu/drm/radeon/radeon_display.c 	g = r + crtc->gamma_size;
r                 114 drivers/gpu/drm/radeon/radeon_display.c 		       ((*r++ & 0xffc0) << 14) |
r                 125 drivers/gpu/drm/radeon/radeon_display.c 	u16 *r, *g, *b;
r                 157 drivers/gpu/drm/radeon/radeon_display.c 	r = crtc->gamma_store;
r                 158 drivers/gpu/drm/radeon/radeon_display.c 	g = r + crtc->gamma_size;
r                 162 drivers/gpu/drm/radeon/radeon_display.c 		       ((*r++ & 0xffc0) << 14) |
r                 197 drivers/gpu/drm/radeon/radeon_display.c 	u16 *r, *g, *b;
r                 209 drivers/gpu/drm/radeon/radeon_display.c 	r = crtc->gamma_store;
r                 210 drivers/gpu/drm/radeon/radeon_display.c 	g = r + crtc->gamma_size;
r                 214 drivers/gpu/drm/radeon/radeon_display.c 		       ((*r++ & 0xffc0) << 14) |
r                 267 drivers/gpu/drm/radeon/radeon_display.c 	int r;
r                 270 drivers/gpu/drm/radeon/radeon_display.c 	r = radeon_bo_reserve(work->old_rbo, false);
r                 271 drivers/gpu/drm/radeon/radeon_display.c 	if (likely(r == 0)) {
r                 272 drivers/gpu/drm/radeon/radeon_display.c 		r = radeon_bo_unpin(work->old_rbo);
r                 273 drivers/gpu/drm/radeon/radeon_display.c 		if (unlikely(r != 0)) {
r                 418 drivers/gpu/drm/radeon/radeon_display.c 	int r;
r                 427 drivers/gpu/drm/radeon/radeon_display.c 			r = radeon_fence_wait(fence, false);
r                 428 drivers/gpu/drm/radeon/radeon_display.c 			if (r == -EDEADLK) {
r                 431 drivers/gpu/drm/radeon/radeon_display.c 					r = radeon_gpu_reset(rdev);
r                 432 drivers/gpu/drm/radeon/radeon_display.c 				} while (r == -EAGAIN);
r                 436 drivers/gpu/drm/radeon/radeon_display.c 			r = dma_fence_wait(work->fence, false);
r                 438 drivers/gpu/drm/radeon/radeon_display.c 		if (r)
r                 439 drivers/gpu/drm/radeon/radeon_display.c 			DRM_ERROR("failed to wait on page flip fence (%d)!\n", r);
r                 496 drivers/gpu/drm/radeon/radeon_display.c 	int r;
r                 524 drivers/gpu/drm/radeon/radeon_display.c 	r = radeon_bo_reserve(new_rbo, false);
r                 525 drivers/gpu/drm/radeon/radeon_display.c 	if (unlikely(r != 0)) {
r                 530 drivers/gpu/drm/radeon/radeon_display.c 	r = radeon_bo_pin_restricted(new_rbo, RADEON_GEM_DOMAIN_VRAM,
r                 532 drivers/gpu/drm/radeon/radeon_display.c 	if (unlikely(r != 0)) {
r                 534 drivers/gpu/drm/radeon/radeon_display.c 		r = -EINVAL;
r                 587 drivers/gpu/drm/radeon/radeon_display.c 		r = -EBUSY;
r                 615 drivers/gpu/drm/radeon/radeon_display.c 	return r;
r                 498 drivers/gpu/drm/radeon/radeon_fence.c 	long r;
r                 514 drivers/gpu/drm/radeon/radeon_fence.c 		r = wait_event_interruptible_timeout(rdev->fence_queue, (
r                 518 drivers/gpu/drm/radeon/radeon_fence.c 		r = wait_event_timeout(rdev->fence_queue, (
r                 524 drivers/gpu/drm/radeon/radeon_fence.c 		r = -EDEADLK;
r                 534 drivers/gpu/drm/radeon/radeon_fence.c 	return r;
r                 553 drivers/gpu/drm/radeon/radeon_fence.c 	long r;
r                 566 drivers/gpu/drm/radeon/radeon_fence.c 	r = radeon_fence_wait_seq_timeout(fence->rdev, seq, intr, timeout);
r                 567 drivers/gpu/drm/radeon/radeon_fence.c 	if (r <= 0) {
r                 568 drivers/gpu/drm/radeon/radeon_fence.c 		return r;
r                 574 drivers/gpu/drm/radeon/radeon_fence.c 	return r;
r                 590 drivers/gpu/drm/radeon/radeon_fence.c 	long r = radeon_fence_wait_timeout(fence, intr, MAX_SCHEDULE_TIMEOUT);
r                 591 drivers/gpu/drm/radeon/radeon_fence.c 	if (r > 0) {
r                 594 drivers/gpu/drm/radeon/radeon_fence.c 		return r;
r                 617 drivers/gpu/drm/radeon/radeon_fence.c 	long r;
r                 634 drivers/gpu/drm/radeon/radeon_fence.c 	r = radeon_fence_wait_seq_timeout(rdev, seq, intr, MAX_SCHEDULE_TIMEOUT);
r                 635 drivers/gpu/drm/radeon/radeon_fence.c 	if (r < 0) {
r                 636 drivers/gpu/drm/radeon/radeon_fence.c 		return r;
r                 654 drivers/gpu/drm/radeon/radeon_fence.c 	long r;
r                 662 drivers/gpu/drm/radeon/radeon_fence.c 	r = radeon_fence_wait_seq_timeout(rdev, seq, false, MAX_SCHEDULE_TIMEOUT);
r                 663 drivers/gpu/drm/radeon/radeon_fence.c 	if (r < 0)
r                 664 drivers/gpu/drm/radeon/radeon_fence.c 		return r;
r                 681 drivers/gpu/drm/radeon/radeon_fence.c 	long r;
r                 687 drivers/gpu/drm/radeon/radeon_fence.c 	r = radeon_fence_wait_seq_timeout(rdev, seq, false, MAX_SCHEDULE_TIMEOUT);
r                 688 drivers/gpu/drm/radeon/radeon_fence.c 	if (r < 0) {
r                 689 drivers/gpu/drm/radeon/radeon_fence.c 		if (r == -EDEADLK)
r                 693 drivers/gpu/drm/radeon/radeon_fence.c 			ring, r);
r                 836 drivers/gpu/drm/radeon/radeon_fence.c 	int r;
r                 855 drivers/gpu/drm/radeon/radeon_fence.c 		r = radeon_scratch_get(rdev, &rdev->fence_drv[ring].scratch_reg);
r                 856 drivers/gpu/drm/radeon/radeon_fence.c 		if (r) {
r                 858 drivers/gpu/drm/radeon/radeon_fence.c 			return r;
r                 935 drivers/gpu/drm/radeon/radeon_fence.c 	int ring, r;
r                 941 drivers/gpu/drm/radeon/radeon_fence.c 		r = radeon_fence_wait_empty(rdev, ring);
r                 942 drivers/gpu/drm/radeon/radeon_fence.c 		if (r) {
r                 132 drivers/gpu/drm/radeon/radeon_gart.c 	int r;
r                 135 drivers/gpu/drm/radeon/radeon_gart.c 		r = radeon_bo_create(rdev, rdev->gart.table_size,
r                 138 drivers/gpu/drm/radeon/radeon_gart.c 		if (r) {
r                 139 drivers/gpu/drm/radeon/radeon_gart.c 			return r;
r                 158 drivers/gpu/drm/radeon/radeon_gart.c 	int r;
r                 160 drivers/gpu/drm/radeon/radeon_gart.c 	r = radeon_bo_reserve(rdev->gart.robj, false);
r                 161 drivers/gpu/drm/radeon/radeon_gart.c 	if (unlikely(r != 0))
r                 162 drivers/gpu/drm/radeon/radeon_gart.c 		return r;
r                 163 drivers/gpu/drm/radeon/radeon_gart.c 	r = radeon_bo_pin(rdev->gart.robj,
r                 165 drivers/gpu/drm/radeon/radeon_gart.c 	if (r) {
r                 167 drivers/gpu/drm/radeon/radeon_gart.c 		return r;
r                 169 drivers/gpu/drm/radeon/radeon_gart.c 	r = radeon_bo_kmap(rdev->gart.robj, &rdev->gart.ptr);
r                 170 drivers/gpu/drm/radeon/radeon_gart.c 	if (r)
r                 175 drivers/gpu/drm/radeon/radeon_gart.c 	if (!r) {
r                 187 drivers/gpu/drm/radeon/radeon_gart.c 	return r;
r                 200 drivers/gpu/drm/radeon/radeon_gart.c 	int r;
r                 205 drivers/gpu/drm/radeon/radeon_gart.c 	r = radeon_bo_reserve(rdev->gart.robj, false);
r                 206 drivers/gpu/drm/radeon/radeon_gart.c 	if (likely(r == 0)) {
r                 334 drivers/gpu/drm/radeon/radeon_gart.c 	int r, i;
r                 344 drivers/gpu/drm/radeon/radeon_gart.c 	r = radeon_dummy_page_init(rdev);
r                 345 drivers/gpu/drm/radeon/radeon_gart.c 	if (r)
r                 346 drivers/gpu/drm/radeon/radeon_gart.c 		return r;
r                  54 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                  73 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_create(rdev, size, alignment, kernel, initial_domain,
r                  75 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                  76 drivers/gpu/drm/radeon/radeon_gem.c 		if (r != -ERESTARTSYS) {
r                  82 drivers/gpu/drm/radeon/radeon_gem.c 				  size, initial_domain, alignment, r);
r                  84 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                 101 drivers/gpu/drm/radeon/radeon_gem.c 	long r;
r                 117 drivers/gpu/drm/radeon/radeon_gem.c 		r = dma_resv_wait_timeout_rcu(robj->tbo.base.resv, true, true, 30 * HZ);
r                 118 drivers/gpu/drm/radeon/radeon_gem.c 		if (!r)
r                 119 drivers/gpu/drm/radeon/radeon_gem.c 			r = -EBUSY;
r                 121 drivers/gpu/drm/radeon/radeon_gem.c 		if (r < 0 && r != -EINTR) {
r                 122 drivers/gpu/drm/radeon/radeon_gem.c 			pr_err("Failed to wait for object: %li\n", r);
r                 123 drivers/gpu/drm/radeon/radeon_gem.c 			return r;
r                 155 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 162 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_reserve(rbo, false);
r                 163 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 164 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                 186 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 193 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_reserve(rbo, true);
r                 194 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 196 drivers/gpu/drm/radeon/radeon_gem.c 			"we fail to reserve bo (%d)\n", r);
r                 208 drivers/gpu/drm/radeon/radeon_gem.c static int radeon_gem_handle_lockup(struct radeon_device *rdev, int r)
r                 210 drivers/gpu/drm/radeon/radeon_gem.c 	if (r == -EDEADLK) {
r                 211 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_gpu_reset(rdev);
r                 212 drivers/gpu/drm/radeon/radeon_gem.c 		if (!r)
r                 213 drivers/gpu/drm/radeon/radeon_gem.c 			r = -EAGAIN;
r                 215 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 262 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 267 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_object_create(rdev, args->size, args->alignment,
r                 270 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 272 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_gem_handle_lockup(rdev, r);
r                 273 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                 275 drivers/gpu/drm/radeon/radeon_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
r                 278 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 280 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_gem_handle_lockup(rdev, r);
r                 281 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                 297 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 326 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_object_create(rdev, args->size, 0,
r                 329 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 333 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_ttm_tt_set_userptr(bo->tbo.ttm, args->addr, args->flags);
r                 334 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 338 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_mn_register(bo, args->addr);
r                 339 drivers/gpu/drm/radeon/radeon_gem.c 		if (r)
r                 345 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_bo_reserve(bo, true);
r                 346 drivers/gpu/drm/radeon/radeon_gem.c 		if (r) {
r                 352 drivers/gpu/drm/radeon/radeon_gem.c 		r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 355 drivers/gpu/drm/radeon/radeon_gem.c 		if (r)
r                 359 drivers/gpu/drm/radeon/radeon_gem.c 	r = drm_gem_handle_create(filp, gobj, &handle);
r                 362 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 374 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_handle_lockup(rdev, r);
r                 376 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 388 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 402 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_set_domain(gobj, args->read_domains, args->write_domain);
r                 406 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_handle_lockup(robj->rdev, r);
r                 407 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 445 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 454 drivers/gpu/drm/radeon/radeon_gem.c 	r = dma_resv_test_signaled_rcu(robj->tbo.base.resv, true);
r                 455 drivers/gpu/drm/radeon/radeon_gem.c 	if (r == 0)
r                 456 drivers/gpu/drm/radeon/radeon_gem.c 		r = -EBUSY;
r                 458 drivers/gpu/drm/radeon/radeon_gem.c 		r = 0;
r                 463 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 473 drivers/gpu/drm/radeon/radeon_gem.c 	int r = 0;
r                 485 drivers/gpu/drm/radeon/radeon_gem.c 		r = -EBUSY;
r                 487 drivers/gpu/drm/radeon/radeon_gem.c 		r = ret;
r                 495 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_handle_lockup(rdev, r);
r                 496 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 505 drivers/gpu/drm/radeon/radeon_gem.c 	int r = 0;
r                 512 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_set_tiling_flags(robj, args->tiling_flags, args->pitch);
r                 514 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 523 drivers/gpu/drm/radeon/radeon_gem.c 	int r = 0;
r                 530 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_reserve(rbo, false);
r                 531 drivers/gpu/drm/radeon/radeon_gem.c 	if (unlikely(r != 0))
r                 537 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 557 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 569 drivers/gpu/drm/radeon/radeon_gem.c 	r = ttm_eu_reserve_buffers(&ticket, &list, true, NULL, true);
r                 570 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 582 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_vm_clear_freed(rdev, bo_va->vm);
r                 583 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 587 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_vm_bo_update(rdev, bo_va, &bo_va->bo->tbo.mem);
r                 598 drivers/gpu/drm/radeon/radeon_gem.c 	if (r && r != -ERESTARTSYS)
r                 599 drivers/gpu/drm/radeon/radeon_gem.c 		DRM_ERROR("Couldn't update BO_VA (%d)\n", r);
r                 612 drivers/gpu/drm/radeon/radeon_gem.c 	int r = 0;
r                 667 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_reserve(rbo, false);
r                 668 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 671 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                 689 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_vm_bo_set_addr(rdev, bo_va, args->offset, args->flags);
r                 692 drivers/gpu/drm/radeon/radeon_gem.c 		r = radeon_vm_bo_set_addr(rdev, bo_va, 0, 0);
r                 697 drivers/gpu/drm/radeon/radeon_gem.c 	if (!r)
r                 700 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 705 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 714 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 722 drivers/gpu/drm/radeon/radeon_gem.c 	r = -EPERM;
r                 726 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_bo_reserve(robj, false);
r                 727 drivers/gpu/drm/radeon/radeon_gem.c 	if (unlikely(r))
r                 740 drivers/gpu/drm/radeon/radeon_gem.c 		r = -EINVAL;
r                 746 drivers/gpu/drm/radeon/radeon_gem.c 	return r;
r                 756 drivers/gpu/drm/radeon/radeon_gem.c 	int r;
r                 763 drivers/gpu/drm/radeon/radeon_gem.c 	r = radeon_gem_object_create(rdev, args->size, 0,
r                 766 drivers/gpu/drm/radeon/radeon_gem.c 	if (r)
r                 769 drivers/gpu/drm/radeon/radeon_gem.c 	r = drm_gem_handle_create(file_priv, gobj, &handle);
r                 772 drivers/gpu/drm/radeon/radeon_gem.c 	if (r) {
r                 773 drivers/gpu/drm/radeon/radeon_gem.c 		return r;
r                  62 drivers/gpu/drm/radeon/radeon_ib.c 	int r;
r                  64 drivers/gpu/drm/radeon/radeon_ib.c 	r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo, &ib->sa_bo, size, 256);
r                  65 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                  66 drivers/gpu/drm/radeon/radeon_ib.c 		dev_err(rdev->dev, "failed to get a new IB (%d)\n", r);
r                  67 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 129 drivers/gpu/drm/radeon/radeon_ib.c 	int r = 0;
r                 138 drivers/gpu/drm/radeon/radeon_ib.c 	r = radeon_ring_lock(rdev, ring, 64 + RADEON_NUM_SYNCS * 8);
r                 139 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                 140 drivers/gpu/drm/radeon/radeon_ib.c 		dev_err(rdev->dev, "scheduling IB failed (%d).\n", r);
r                 141 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 152 drivers/gpu/drm/radeon/radeon_ib.c 	r = radeon_sync_rings(rdev, &ib->sync, ib->ring);
r                 153 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                 154 drivers/gpu/drm/radeon/radeon_ib.c 		dev_err(rdev->dev, "failed to sync rings (%d)\n", r);
r                 156 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 168 drivers/gpu/drm/radeon/radeon_ib.c 	r = radeon_fence_emit(rdev, &ib->fence, ib->ring);
r                 169 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                 170 drivers/gpu/drm/radeon/radeon_ib.c 		dev_err(rdev->dev, "failed to emit fence for new IB (%d)\n", r);
r                 172 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 196 drivers/gpu/drm/radeon/radeon_ib.c 	int r;
r                 203 drivers/gpu/drm/radeon/radeon_ib.c 		r = radeon_sa_bo_manager_init(rdev, &rdev->ring_tmp_bo,
r                 212 drivers/gpu/drm/radeon/radeon_ib.c 		r = radeon_sa_bo_manager_init(rdev, &rdev->ring_tmp_bo,
r                 217 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                 218 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 221 drivers/gpu/drm/radeon/radeon_ib.c 	r = radeon_sa_bo_manager_start(rdev, &rdev->ring_tmp_bo);
r                 222 drivers/gpu/drm/radeon/radeon_ib.c 	if (r) {
r                 223 drivers/gpu/drm/radeon/radeon_ib.c 		return r;
r                 263 drivers/gpu/drm/radeon/radeon_ib.c 	int r;
r                 271 drivers/gpu/drm/radeon/radeon_ib.c 		r = radeon_ib_test(rdev, i, ring);
r                 272 drivers/gpu/drm/radeon/radeon_ib.c 		if (r) {
r                 279 drivers/gpu/drm/radeon/radeon_ib.c 				DRM_ERROR("radeon: failed testing IB on GFX ring (%d).\n", r);
r                 281 drivers/gpu/drm/radeon/radeon_ib.c 				return r;
r                 285 drivers/gpu/drm/radeon/radeon_ib.c 				DRM_ERROR("radeon: failed testing IB on ring %d (%d).\n", i, r);
r                 290 drivers/gpu/drm/radeon/radeon_irq_kms.c 	int r = 0;
r                 297 drivers/gpu/drm/radeon/radeon_irq_kms.c 	r = drm_vblank_init(rdev->ddev, rdev->num_crtc);
r                 298 drivers/gpu/drm/radeon/radeon_irq_kms.c 	if (r) {
r                 299 drivers/gpu/drm/radeon/radeon_irq_kms.c 		return r;
r                 318 drivers/gpu/drm/radeon/radeon_irq_kms.c 	r = drm_irq_install(rdev->ddev, rdev->ddev->pdev->irq);
r                 319 drivers/gpu/drm/radeon/radeon_irq_kms.c 	if (r) {
r                 322 drivers/gpu/drm/radeon/radeon_irq_kms.c 		return r;
r                 107 drivers/gpu/drm/radeon/radeon_kms.c 	int r, acpi_status;
r                 136 drivers/gpu/drm/radeon/radeon_kms.c 	r = radeon_device_init(rdev, dev, dev->pdev, flags);
r                 137 drivers/gpu/drm/radeon/radeon_kms.c 	if (r) {
r                 146 drivers/gpu/drm/radeon/radeon_kms.c 	r = radeon_modeset_init(rdev);
r                 147 drivers/gpu/drm/radeon/radeon_kms.c 	if (r)
r                 153 drivers/gpu/drm/radeon/radeon_kms.c 	if (!r) {
r                 171 drivers/gpu/drm/radeon/radeon_kms.c 	if (r)
r                 175 drivers/gpu/drm/radeon/radeon_kms.c 	return r;
r                 636 drivers/gpu/drm/radeon/radeon_kms.c 	int r;
r                 640 drivers/gpu/drm/radeon/radeon_kms.c 	r = pm_runtime_get_sync(dev->dev);
r                 641 drivers/gpu/drm/radeon/radeon_kms.c 	if (r < 0)
r                 642 drivers/gpu/drm/radeon/radeon_kms.c 		return r;
r                 651 drivers/gpu/drm/radeon/radeon_kms.c 			r = -ENOMEM;
r                 657 drivers/gpu/drm/radeon/radeon_kms.c 			r = radeon_vm_init(rdev, vm);
r                 658 drivers/gpu/drm/radeon/radeon_kms.c 			if (r) {
r                 663 drivers/gpu/drm/radeon/radeon_kms.c 			r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false);
r                 664 drivers/gpu/drm/radeon/radeon_kms.c 			if (r) {
r                 674 drivers/gpu/drm/radeon/radeon_kms.c 			r = radeon_vm_bo_set_addr(rdev, vm->ib_bo_va,
r                 678 drivers/gpu/drm/radeon/radeon_kms.c 			if (r) {
r                 690 drivers/gpu/drm/radeon/radeon_kms.c 	return r;
r                 723 drivers/gpu/drm/radeon/radeon_kms.c 		int r;
r                 726 drivers/gpu/drm/radeon/radeon_kms.c 			r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false);
r                 727 drivers/gpu/drm/radeon/radeon_kms.c 			if (!r) {
r                 827 drivers/gpu/drm/radeon/radeon_kms.c 	int r;
r                 836 drivers/gpu/drm/radeon/radeon_kms.c 	r = radeon_irq_set(rdev);
r                 838 drivers/gpu/drm/radeon/radeon_kms.c 	return r;
r                 389 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 	int r;
r                 427 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 	r = radeon_bo_reserve(rbo, false);
r                 428 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 	if (unlikely(r != 0))
r                 429 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		return r;
r                 431 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 	r = radeon_bo_pin_restricted(rbo, RADEON_GEM_DOMAIN_VRAM, 1 << 27,
r                 433 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 	if (unlikely(r != 0)) {
r                 560 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		r = radeon_bo_reserve(rbo, false);
r                 561 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		if (unlikely(r != 0))
r                 562 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 			return r;
r                1092 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		int r;
r                1096 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		r = radeon_bo_reserve(rbo, false);
r                1097 drivers/gpu/drm/radeon/radeon_legacy_crtc.c 		if (unlikely(r))
r                  87 drivers/gpu/drm/radeon/radeon_mn.c 		long r;
r                 102 drivers/gpu/drm/radeon/radeon_mn.c 			r = radeon_bo_reserve(bo, true);
r                 103 drivers/gpu/drm/radeon/radeon_mn.c 			if (r) {
r                 104 drivers/gpu/drm/radeon/radeon_mn.c 				DRM_ERROR("(%ld) failed to reserve user bo\n", r);
r                 108 drivers/gpu/drm/radeon/radeon_mn.c 			r = dma_resv_wait_timeout_rcu(bo->tbo.base.resv,
r                 110 drivers/gpu/drm/radeon/radeon_mn.c 			if (r <= 0)
r                 111 drivers/gpu/drm/radeon/radeon_mn.c 				DRM_ERROR("(%ld) failed to wait for user bo\n", r);
r                 114 drivers/gpu/drm/radeon/radeon_mn.c 			r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 115 drivers/gpu/drm/radeon/radeon_mn.c 			if (r)
r                 116 drivers/gpu/drm/radeon/radeon_mn.c 				DRM_ERROR("(%ld) failed to validate user bo\n", r);
r                 193 drivers/gpu/drm/radeon/radeon_object.c 	int r;
r                 262 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_init(&rdev->mman.bdev, &bo->tbo, size, type,
r                 266 drivers/gpu/drm/radeon/radeon_object.c 	if (unlikely(r != 0)) {
r                 267 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 279 drivers/gpu/drm/radeon/radeon_object.c 	int r;
r                 287 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap);
r                 288 drivers/gpu/drm/radeon/radeon_object.c 	if (r) {
r                 289 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 332 drivers/gpu/drm/radeon/radeon_object.c 	int r, i;
r                 374 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 375 drivers/gpu/drm/radeon/radeon_object.c 	if (likely(r == 0)) {
r                 386 drivers/gpu/drm/radeon/radeon_object.c 	return r;
r                 397 drivers/gpu/drm/radeon/radeon_object.c 	int r, i;
r                 410 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 411 drivers/gpu/drm/radeon/radeon_object.c 	if (likely(r == 0)) {
r                 419 drivers/gpu/drm/radeon/radeon_object.c 	return r;
r                 540 drivers/gpu/drm/radeon/radeon_object.c 	int r;
r                 545 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_eu_reserve_buffers(ticket, head, true, &duplicates, true);
r                 546 drivers/gpu/drm/radeon/radeon_object.c 	if (unlikely(r != 0)) {
r                 547 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 579 drivers/gpu/drm/radeon/radeon_object.c 			r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 583 drivers/gpu/drm/radeon/radeon_object.c 			if (unlikely(r)) {
r                 584 drivers/gpu/drm/radeon/radeon_object.c 				if (r != -ERESTARTSYS &&
r                 590 drivers/gpu/drm/radeon/radeon_object.c 				return r;
r                 679 drivers/gpu/drm/radeon/radeon_object.c 	int r;
r                 726 drivers/gpu/drm/radeon/radeon_object.c 	r = radeon_bo_reserve(bo, false);
r                 727 drivers/gpu/drm/radeon/radeon_object.c 	if (unlikely(r != 0))
r                 728 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 803 drivers/gpu/drm/radeon/radeon_object.c 	int i, r;
r                 831 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_validate(bo, &rbo->placement, &ctx);
r                 832 drivers/gpu/drm/radeon/radeon_object.c 	if (unlikely(r == -ENOMEM)) {
r                 835 drivers/gpu/drm/radeon/radeon_object.c 	} else if (unlikely(r != 0)) {
r                 836 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 849 drivers/gpu/drm/radeon/radeon_object.c 	int r;
r                 851 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
r                 852 drivers/gpu/drm/radeon/radeon_object.c 	if (unlikely(r != 0))
r                 853 drivers/gpu/drm/radeon/radeon_object.c 		return r;
r                 857 drivers/gpu/drm/radeon/radeon_object.c 	r = ttm_bo_wait(&bo->tbo, true, no_wait);
r                 859 drivers/gpu/drm/radeon/radeon_object.c 	return r;
r                  66 drivers/gpu/drm/radeon/radeon_object.h 	int r;
r                  68 drivers/gpu/drm/radeon/radeon_object.h 	r = ttm_bo_reserve(&bo->tbo, !no_intr, false, NULL);
r                  69 drivers/gpu/drm/radeon/radeon_object.h 	if (unlikely(r != 0)) {
r                  70 drivers/gpu/drm/radeon/radeon_object.h 		if (r != -ERESTARTSYS)
r                  72 drivers/gpu/drm/radeon/radeon_object.h 		return r;
r                 255 drivers/gpu/drm/radeon/radeon_pm.c 	int i, r;
r                 271 drivers/gpu/drm/radeon/radeon_pm.c 		r = radeon_fence_wait_empty(rdev, i);
r                 272 drivers/gpu/drm/radeon/radeon_pm.c 		if (r) {
r                 110 drivers/gpu/drm/radeon/radeon_ring.c 	int r;
r                 124 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_fence_wait_next(rdev, ring->idx);
r                 125 drivers/gpu/drm/radeon/radeon_ring.c 		if (r)
r                 126 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                 146 drivers/gpu/drm/radeon/radeon_ring.c 	int r;
r                 149 drivers/gpu/drm/radeon/radeon_ring.c 	r = radeon_ring_alloc(rdev, ring, ndw);
r                 150 drivers/gpu/drm/radeon/radeon_ring.c 	if (r) {
r                 152 drivers/gpu/drm/radeon/radeon_ring.c 		return r;
r                 348 drivers/gpu/drm/radeon/radeon_ring.c 	int i, r;
r                 354 drivers/gpu/drm/radeon/radeon_ring.c 	r = radeon_ring_lock(rdev, ring, size);
r                 355 drivers/gpu/drm/radeon/radeon_ring.c 	if (r)
r                 356 drivers/gpu/drm/radeon/radeon_ring.c 		return r;
r                 382 drivers/gpu/drm/radeon/radeon_ring.c 	int r;
r                 389 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_bo_create(rdev, ring->ring_size, PAGE_SIZE, true,
r                 392 drivers/gpu/drm/radeon/radeon_ring.c 		if (r) {
r                 393 drivers/gpu/drm/radeon/radeon_ring.c 			dev_err(rdev->dev, "(%d) ring create failed\n", r);
r                 394 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                 396 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_bo_reserve(ring->ring_obj, false);
r                 397 drivers/gpu/drm/radeon/radeon_ring.c 		if (unlikely(r != 0))
r                 398 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                 399 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_bo_pin(ring->ring_obj, RADEON_GEM_DOMAIN_GTT,
r                 401 drivers/gpu/drm/radeon/radeon_ring.c 		if (r) {
r                 403 drivers/gpu/drm/radeon/radeon_ring.c 			dev_err(rdev->dev, "(%d) ring pin failed\n", r);
r                 404 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                 406 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_bo_kmap(ring->ring_obj,
r                 409 drivers/gpu/drm/radeon/radeon_ring.c 		if (r) {
r                 410 drivers/gpu/drm/radeon/radeon_ring.c 			dev_err(rdev->dev, "(%d) ring map failed\n", r);
r                 411 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                 438 drivers/gpu/drm/radeon/radeon_ring.c 	int r;
r                 449 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_bo_reserve(ring_obj, false);
r                 450 drivers/gpu/drm/radeon/radeon_ring.c 		if (likely(r == 0)) {
r                 550 drivers/gpu/drm/radeon/radeon_ring.c 		unsigned r;
r                 555 drivers/gpu/drm/radeon/radeon_ring.c 		r = radeon_debugfs_add_files(rdev, info, 1);
r                 556 drivers/gpu/drm/radeon/radeon_ring.c 		if (r)
r                 557 drivers/gpu/drm/radeon/radeon_ring.c 			return r;
r                  54 drivers/gpu/drm/radeon/radeon_sa.c 	int i, r;
r                  67 drivers/gpu/drm/radeon/radeon_sa.c 	r = radeon_bo_create(rdev, size, align, true,
r                  69 drivers/gpu/drm/radeon/radeon_sa.c 	if (r) {
r                  70 drivers/gpu/drm/radeon/radeon_sa.c 		dev_err(rdev->dev, "(%d) failed to allocate bo for manager\n", r);
r                  71 drivers/gpu/drm/radeon/radeon_sa.c 		return r;
r                  74 drivers/gpu/drm/radeon/radeon_sa.c 	return r;
r                  99 drivers/gpu/drm/radeon/radeon_sa.c 	int r;
r                 107 drivers/gpu/drm/radeon/radeon_sa.c 	r = radeon_bo_reserve(sa_manager->bo, false);
r                 108 drivers/gpu/drm/radeon/radeon_sa.c 	if (r) {
r                 109 drivers/gpu/drm/radeon/radeon_sa.c 		dev_err(rdev->dev, "(%d) failed to reserve manager bo\n", r);
r                 110 drivers/gpu/drm/radeon/radeon_sa.c 		return r;
r                 112 drivers/gpu/drm/radeon/radeon_sa.c 	r = radeon_bo_pin(sa_manager->bo, sa_manager->domain, &sa_manager->gpu_addr);
r                 113 drivers/gpu/drm/radeon/radeon_sa.c 	if (r) {
r                 115 drivers/gpu/drm/radeon/radeon_sa.c 		dev_err(rdev->dev, "(%d) failed to pin manager bo\n", r);
r                 116 drivers/gpu/drm/radeon/radeon_sa.c 		return r;
r                 118 drivers/gpu/drm/radeon/radeon_sa.c 	r = radeon_bo_kmap(sa_manager->bo, &sa_manager->cpu_ptr);
r                 120 drivers/gpu/drm/radeon/radeon_sa.c 	return r;
r                 126 drivers/gpu/drm/radeon/radeon_sa.c 	int r;
r                 133 drivers/gpu/drm/radeon/radeon_sa.c 	r = radeon_bo_reserve(sa_manager->bo, false);
r                 134 drivers/gpu/drm/radeon/radeon_sa.c 	if (!r) {
r                 139 drivers/gpu/drm/radeon/radeon_sa.c 	return r;
r                 319 drivers/gpu/drm/radeon/radeon_sa.c 	int i, r;
r                 356 drivers/gpu/drm/radeon/radeon_sa.c 		r = radeon_fence_wait_any(rdev, fences, false);
r                 361 drivers/gpu/drm/radeon/radeon_sa.c 		if (r == -ENOENT) {
r                 362 drivers/gpu/drm/radeon/radeon_sa.c 			r = wait_event_interruptible_locked(
r                 368 drivers/gpu/drm/radeon/radeon_sa.c 	} while (!r);
r                 373 drivers/gpu/drm/radeon/radeon_sa.c 	return r;
r                  37 drivers/gpu/drm/radeon/radeon_semaphore.c 	int r;
r                  43 drivers/gpu/drm/radeon/radeon_semaphore.c 	r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo,
r                  45 drivers/gpu/drm/radeon/radeon_semaphore.c 	if (r) {
r                  48 drivers/gpu/drm/radeon/radeon_semaphore.c 		return r;
r                  97 drivers/gpu/drm/radeon/radeon_sync.c 	int r = 0;
r                 105 drivers/gpu/drm/radeon/radeon_sync.c 		r = dma_fence_wait(f, true);
r                 108 drivers/gpu/drm/radeon/radeon_sync.c 	if (shared || !flist || r)
r                 109 drivers/gpu/drm/radeon/radeon_sync.c 		return r;
r                 118 drivers/gpu/drm/radeon/radeon_sync.c 			r = dma_fence_wait(f, true);
r                 120 drivers/gpu/drm/radeon/radeon_sync.c 		if (r)
r                 123 drivers/gpu/drm/radeon/radeon_sync.c 	return r;
r                 141 drivers/gpu/drm/radeon/radeon_sync.c 	int i, r;
r                 159 drivers/gpu/drm/radeon/radeon_sync.c 			r = radeon_fence_wait(fence, false);
r                 160 drivers/gpu/drm/radeon/radeon_sync.c 			if (r)
r                 161 drivers/gpu/drm/radeon/radeon_sync.c 				return r;
r                 164 drivers/gpu/drm/radeon/radeon_sync.c 		r = radeon_semaphore_create(rdev, &semaphore);
r                 165 drivers/gpu/drm/radeon/radeon_sync.c 		if (r)
r                 166 drivers/gpu/drm/radeon/radeon_sync.c 			return r;
r                 171 drivers/gpu/drm/radeon/radeon_sync.c 		r = radeon_ring_alloc(rdev, &rdev->ring[i], 16);
r                 172 drivers/gpu/drm/radeon/radeon_sync.c 		if (r)
r                 173 drivers/gpu/drm/radeon/radeon_sync.c 			return r;
r                 179 drivers/gpu/drm/radeon/radeon_sync.c 			r = radeon_fence_wait(fence, false);
r                 180 drivers/gpu/drm/radeon/radeon_sync.c 			if (r)
r                 181 drivers/gpu/drm/radeon/radeon_sync.c 				return r;
r                 189 drivers/gpu/drm/radeon/radeon_sync.c 			r = radeon_fence_wait(fence, false);
r                 190 drivers/gpu/drm/radeon/radeon_sync.c 			if (r)
r                 191 drivers/gpu/drm/radeon/radeon_sync.c 				return r;
r                  41 drivers/gpu/drm/radeon/radeon_test.c 	int i, r, ring;
r                  66 drivers/gpu/drm/radeon/radeon_test.c 		r = 1;
r                  70 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_bo_create(rdev, size, PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM,
r                  72 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                  76 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_bo_reserve(vram_obj, false);
r                  77 drivers/gpu/drm/radeon/radeon_test.c 	if (unlikely(r != 0))
r                  79 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_bo_pin(vram_obj, RADEON_GEM_DOMAIN_VRAM, &vram_addr);
r                  80 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                  90 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_create(rdev, size, PAGE_SIZE, true,
r                  93 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                  98 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_reserve(gtt_obj[i], false);
r                  99 drivers/gpu/drm/radeon/radeon_test.c 		if (unlikely(r != 0))
r                 101 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_pin(gtt_obj[i], RADEON_GEM_DOMAIN_GTT, &gtt_addr);
r                 102 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 107 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_kmap(gtt_obj[i], &gtt_map);
r                 108 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 130 drivers/gpu/drm/radeon/radeon_test.c 			r = PTR_ERR(fence);
r                 134 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_fence_wait(fence, false);
r                 135 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 142 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_kmap(vram_obj, &vram_map);
r                 143 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 181 drivers/gpu/drm/radeon/radeon_test.c 			r = PTR_ERR(fence);
r                 185 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_fence_wait(fence, false);
r                 186 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 193 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_bo_kmap(gtt_obj[i], &gtt_map);
r                 194 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 249 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 267 drivers/gpu/drm/radeon/radeon_test.c 	int r;
r                 270 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_uvd_get_create_msg(rdev, ring->idx, handle, NULL);
r                 271 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 273 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 276 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_uvd_get_destroy_msg(rdev, ring->idx, handle, fence);
r                 277 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 279 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 284 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_vce_get_create_msg(rdev, ring->idx, handle, NULL);
r                 285 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 287 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 290 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_vce_get_destroy_msg(rdev, ring->idx, handle, fence);
r                 291 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 293 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 297 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_ring_lock(rdev, ring, 64);
r                 298 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 300 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 302 drivers/gpu/drm/radeon/radeon_test.c 		r = radeon_fence_emit(rdev, fence, ring->idx);
r                 303 drivers/gpu/drm/radeon/radeon_test.c 		if (r) {
r                 306 drivers/gpu/drm/radeon/radeon_test.c 			return r;
r                 319 drivers/gpu/drm/radeon/radeon_test.c 	int r;
r                 321 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_semaphore_create(rdev, &semaphore);
r                 322 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 327 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringA, 64);
r                 328 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 335 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_test_create_and_emit_fence(rdev, ringA, &fence1);
r                 336 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 339 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringA, 64);
r                 340 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 347 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_test_create_and_emit_fence(rdev, ringA, &fence2);
r                 348 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 358 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringB, 64);
r                 359 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 366 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_fence_wait(fence1, false);
r                 367 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 379 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringB, 64);
r                 380 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 387 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_fence_wait(fence2, false);
r                 388 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 402 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 403 drivers/gpu/drm/radeon/radeon_test.c 		pr_warn("Error while testing ring sync (%d)\n", r);
r                 414 drivers/gpu/drm/radeon/radeon_test.c 	int i, r;
r                 416 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_semaphore_create(rdev, &semaphore);
r                 417 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 422 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringA, 64);
r                 423 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 430 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_test_create_and_emit_fence(rdev, ringA, &fenceA);
r                 431 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 434 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringB, 64);
r                 435 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 441 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_test_create_and_emit_fence(rdev, ringB, &fenceB);
r                 442 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 456 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringC, 64);
r                 457 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 482 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_ring_lock(rdev, ringC, 64);
r                 483 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 492 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_fence_wait(fenceA, false);
r                 493 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 497 drivers/gpu/drm/radeon/radeon_test.c 	r = radeon_fence_wait(fenceB, false);
r                 498 drivers/gpu/drm/radeon/radeon_test.c 	if (r) {
r                 512 drivers/gpu/drm/radeon/radeon_test.c 	if (r)
r                 513 drivers/gpu/drm/radeon/radeon_test.c 		pr_warn("Error while testing ring sync (%d)\n", r);
r                 210 drivers/gpu/drm/radeon/radeon_ttm.c 	int r, ridx;
r                 251 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_move_accel_cleanup(bo, &fence->base, evict, new_mem);
r                 253 drivers/gpu/drm/radeon/radeon_ttm.c 	return r;
r                 266 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 277 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_mem_space(bo, &placement, &tmp_mem, &ctx);
r                 278 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 279 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 282 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_tt_set_placement_caching(bo->ttm, tmp_mem.placement);
r                 283 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 287 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_tt_bind(bo->ttm, &tmp_mem, &ctx);
r                 288 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 291 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_move_blit(bo, true, no_wait_gpu, &tmp_mem, old_mem);
r                 292 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 295 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_move_ttm(bo, &ctx, new_mem);
r                 298 drivers/gpu/drm/radeon/radeon_ttm.c 	return r;
r                 311 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 322 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_mem_space(bo, &placement, &tmp_mem, &ctx);
r                 323 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 324 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 326 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_move_ttm(bo, &ctx, &tmp_mem);
r                 327 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 330 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_move_blit(bo, true, no_wait_gpu, new_mem, old_mem);
r                 331 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r)) {
r                 336 drivers/gpu/drm/radeon/radeon_ttm.c 	return r;
r                 346 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 348 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
r                 349 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r)
r                 350 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 378 drivers/gpu/drm/radeon/radeon_ttm.c 		r = radeon_move_vram_ram(bo, evict, ctx->interruptible,
r                 382 drivers/gpu/drm/radeon/radeon_ttm.c 		r = radeon_move_ram_vram(bo, evict, ctx->interruptible,
r                 385 drivers/gpu/drm/radeon/radeon_ttm.c 		r = radeon_move_blit(bo, evict, ctx->no_wait_gpu,
r                 389 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 391 drivers/gpu/drm/radeon/radeon_ttm.c 		r = ttm_bo_move_memcpy(bo, ctx, new_mem);
r                 392 drivers/gpu/drm/radeon/radeon_ttm.c 		if (r) {
r                 393 drivers/gpu/drm/radeon/radeon_ttm.c 			return r;
r                 490 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 514 drivers/gpu/drm/radeon/radeon_ttm.c 		r = get_user_pages(userptr, num_pages, write ? FOLL_WRITE : 0,
r                 516 drivers/gpu/drm/radeon/radeon_ttm.c 		if (r < 0)
r                 519 drivers/gpu/drm/radeon/radeon_ttm.c 		pinned += r;
r                 523 drivers/gpu/drm/radeon/radeon_ttm.c 	r = sg_alloc_table_from_pages(ttm->sg, ttm->pages, ttm->num_pages, 0,
r                 526 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r)
r                 529 drivers/gpu/drm/radeon/radeon_ttm.c 	r = -ENOMEM;
r                 544 drivers/gpu/drm/radeon/radeon_ttm.c 	return r;
r                 582 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 596 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_gart_bind(gtt->rdev, gtt->offset, ttm->num_pages,
r                 598 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 601 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 791 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 794 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_device_init(&rdev->mman.bdev,
r                 798 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 799 drivers/gpu/drm/radeon/radeon_ttm.c 		DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
r                 800 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 803 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_init_mm(&rdev->mman.bdev, TTM_PL_VRAM,
r                 805 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 807 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 812 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_bo_create(rdev, 256 * 1024, PAGE_SIZE, true,
r                 815 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 816 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 818 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_bo_reserve(rdev->stolen_vga_memory, false);
r                 819 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r)
r                 820 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 821 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_bo_pin(rdev->stolen_vga_memory, RADEON_GEM_DOMAIN_VRAM, NULL);
r                 823 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 825 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 829 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_init_mm(&rdev->mman.bdev, TTM_PL_TT,
r                 831 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 833 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 838 drivers/gpu/drm/radeon/radeon_ttm.c 	r = radeon_ttm_debugfs_init(rdev);
r                 839 drivers/gpu/drm/radeon/radeon_ttm.c 	if (r) {
r                 841 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 848 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 854 drivers/gpu/drm/radeon/radeon_ttm.c 		r = radeon_bo_reserve(rdev->stolen_vga_memory, false);
r                 855 drivers/gpu/drm/radeon/radeon_ttm.c 		if (r == 0) {
r                 905 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 912 drivers/gpu/drm/radeon/radeon_ttm.c 	r = ttm_bo_mmap(filp, vma, &rdev->mman.bdev);
r                 913 drivers/gpu/drm/radeon/radeon_ttm.c 	if (unlikely(r != 0)) {
r                 914 drivers/gpu/drm/radeon/radeon_ttm.c 		return r;
r                 966 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                 985 drivers/gpu/drm/radeon/radeon_ttm.c 		r = put_user(value, (uint32_t *)buf);
r                 986 drivers/gpu/drm/radeon/radeon_ttm.c 		if (r)
r                 987 drivers/gpu/drm/radeon/radeon_ttm.c 			return r;
r                1018 drivers/gpu/drm/radeon/radeon_ttm.c 	int r;
r                1035 drivers/gpu/drm/radeon/radeon_ttm.c 			r = copy_to_user(buf, ptr, cur_size);
r                1038 drivers/gpu/drm/radeon/radeon_ttm.c 			r = clear_user(buf, cur_size);
r                1040 drivers/gpu/drm/radeon/radeon_ttm.c 		if (r)
r                  70 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 141 drivers/gpu/drm/radeon/radeon_uvd.c 		r = request_firmware(&rdev->uvd_fw, fw_name, rdev->dev);
r                 142 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r) {
r                 149 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_ucode_validate(rdev->uvd_fw);
r                 150 drivers/gpu/drm/radeon/radeon_uvd.c 			if (r)
r                 151 drivers/gpu/drm/radeon/radeon_uvd.c 				return r;
r                 175 drivers/gpu/drm/radeon/radeon_uvd.c 	if (!fw_name || r) {
r                 176 drivers/gpu/drm/radeon/radeon_uvd.c 		r = request_firmware(&rdev->uvd_fw, legacy_fw_name, rdev->dev);
r                 177 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r) {
r                 180 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 187 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_create(rdev, bo_size, PAGE_SIZE, true,
r                 190 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r) {
r                 191 drivers/gpu/drm/radeon/radeon_uvd.c 		dev_err(rdev->dev, "(%d) failed to allocate UVD bo\n", r);
r                 192 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 195 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_reserve(rdev->uvd.vcpu_bo, false);
r                 196 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r) {
r                 198 drivers/gpu/drm/radeon/radeon_uvd.c 		dev_err(rdev->dev, "(%d) failed to reserve UVD bo\n", r);
r                 199 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 202 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_pin(rdev->uvd.vcpu_bo, RADEON_GEM_DOMAIN_VRAM,
r                 204 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r) {
r                 207 drivers/gpu/drm/radeon/radeon_uvd.c 		dev_err(rdev->dev, "(%d) UVD bo pin failed\n", r);
r                 208 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 211 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_kmap(rdev->uvd.vcpu_bo, &rdev->uvd.cpu_addr);
r                 212 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r) {
r                 213 drivers/gpu/drm/radeon/radeon_uvd.c 		dev_err(rdev->dev, "(%d) UVD map failed\n", r);
r                 214 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 230 drivers/gpu/drm/radeon/radeon_uvd.c 	int r;
r                 235 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_reserve(rdev->uvd.vcpu_bo, false);
r                 236 drivers/gpu/drm/radeon/radeon_uvd.c 	if (!r) {
r                 251 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 263 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_uvd_get_destroy_msg(rdev,
r                 265 drivers/gpu/drm/radeon/radeon_uvd.c 			if (r) {
r                 266 drivers/gpu/drm/radeon/radeon_uvd.c 				DRM_ERROR("Error destroying UVD (%d)!\n", r);
r                 330 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 338 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_uvd_get_destroy_msg(rdev,
r                 340 drivers/gpu/drm/radeon/radeon_uvd.c 			if (r) {
r                 341 drivers/gpu/drm/radeon/radeon_uvd.c 				DRM_ERROR("Error destroying UVD (%d)!\n", r);
r                 473 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 482 drivers/gpu/drm/radeon/radeon_uvd.c 		r = radeon_fence_wait((struct radeon_fence *)f, false);
r                 483 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r) {
r                 484 drivers/gpu/drm/radeon/radeon_uvd.c 			DRM_ERROR("Failed waiting for UVD message (%d)!\n", r);
r                 485 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 489 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_kmap(bo, &ptr);
r                 490 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r) {
r                 491 drivers/gpu/drm/radeon/radeon_uvd.c 		DRM_ERROR("Failed mapping the UVD message (%d)!\n", r);
r                 492 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 510 drivers/gpu/drm/radeon/radeon_uvd.c 		r = radeon_uvd_validate_codec(p, msg[4]);
r                 512 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r)
r                 513 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 534 drivers/gpu/drm/radeon/radeon_uvd.c 		r = radeon_uvd_validate_codec(p, msg[4]);
r                 535 drivers/gpu/drm/radeon/radeon_uvd.c 		if (!r)
r                 536 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_uvd_cs_msg_decode(msg, buf_sizes);
r                 538 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r)
r                 539 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 580 drivers/gpu/drm/radeon/radeon_uvd.c 	int r;
r                 637 drivers/gpu/drm/radeon/radeon_uvd.c 		r = radeon_uvd_cs_msg(p, reloc->robj, offset, buf_sizes);
r                 638 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r)
r                 639 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 654 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 666 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_uvd_cs_reloc(p, *data0, *data1,
r                 668 drivers/gpu/drm/radeon/radeon_uvd.c 			if (r)
r                 669 drivers/gpu/drm/radeon/radeon_uvd.c 				return r;
r                 687 drivers/gpu/drm/radeon/radeon_uvd.c 	int r, data0 = 0, data1 = 0;
r                 713 drivers/gpu/drm/radeon/radeon_uvd.c 		r = radeon_cs_packet_parse(p, &pkt, p->idx);
r                 714 drivers/gpu/drm/radeon/radeon_uvd.c 		if (r)
r                 715 drivers/gpu/drm/radeon/radeon_uvd.c 			return r;
r                 718 drivers/gpu/drm/radeon/radeon_uvd.c 			r = radeon_uvd_cs_reg(p, &pkt, &data0, &data1,
r                 720 drivers/gpu/drm/radeon/radeon_uvd.c 			if (r)
r                 721 drivers/gpu/drm/radeon/radeon_uvd.c 				return r;
r                 745 drivers/gpu/drm/radeon/radeon_uvd.c 	int i, r;
r                 747 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_ib_get(rdev, ring, &ib, NULL, 64);
r                 748 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r)
r                 749 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 763 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 769 drivers/gpu/drm/radeon/radeon_uvd.c 	return r;
r                 787 drivers/gpu/drm/radeon/radeon_uvd.c 	int r, i;
r                 789 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_reserve(rdev->uvd.vcpu_bo, true);
r                 790 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r)
r                 791 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 808 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_uvd_send_msg(rdev, ring, addr, fence);
r                 810 drivers/gpu/drm/radeon/radeon_uvd.c 	return r;
r                 823 drivers/gpu/drm/radeon/radeon_uvd.c 	int r, i;
r                 825 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_bo_reserve(rdev->uvd.vcpu_bo, true);
r                 826 drivers/gpu/drm/radeon/radeon_uvd.c 	if (r)
r                 827 drivers/gpu/drm/radeon/radeon_uvd.c 		return r;
r                 837 drivers/gpu/drm/radeon/radeon_uvd.c 	r = radeon_uvd_send_msg(rdev, ring, addr, fence);
r                 839 drivers/gpu/drm/radeon/radeon_uvd.c 	return r;
r                  63 drivers/gpu/drm/radeon/radeon_vce.c 	int i, r;
r                  88 drivers/gpu/drm/radeon/radeon_vce.c 	r = request_firmware(&rdev->vce_fw, fw_name, rdev->dev);
r                  89 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                  92 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 142 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_bo_create(rdev, size, PAGE_SIZE, true,
r                 145 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 146 drivers/gpu/drm/radeon/radeon_vce.c 		dev_err(rdev->dev, "(%d) failed to allocate VCE bo\n", r);
r                 147 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 150 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_bo_reserve(rdev->vce.vcpu_bo, false);
r                 151 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 153 drivers/gpu/drm/radeon/radeon_vce.c 		dev_err(rdev->dev, "(%d) failed to reserve VCE bo\n", r);
r                 154 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 157 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_bo_pin(rdev->vce.vcpu_bo, RADEON_GEM_DOMAIN_VRAM,
r                 160 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 162 drivers/gpu/drm/radeon/radeon_vce.c 		dev_err(rdev->dev, "(%d) VCE bo pin failed\n", r);
r                 163 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 224 drivers/gpu/drm/radeon/radeon_vce.c 	int r;
r                 229 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_bo_reserve(rdev->vce.vcpu_bo, false);
r                 230 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 231 drivers/gpu/drm/radeon/radeon_vce.c 		dev_err(rdev->dev, "(%d) failed to reserve VCE bo\n", r);
r                 232 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 235 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_bo_kmap(rdev->vce.vcpu_bo, &cpu_addr);
r                 236 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 238 drivers/gpu/drm/radeon/radeon_vce.c 		dev_err(rdev->dev, "(%d) VCE map failed\n", r);
r                 239 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 244 drivers/gpu/drm/radeon/radeon_vce.c 		r = vce_v1_0_load_fw(rdev, cpu_addr);
r                 252 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                 318 drivers/gpu/drm/radeon/radeon_vce.c 	int i, r;
r                 326 drivers/gpu/drm/radeon/radeon_vce.c 		r = radeon_vce_get_destroy_msg(rdev, TN_RING_TYPE_VCE1_INDEX,
r                 328 drivers/gpu/drm/radeon/radeon_vce.c 		if (r)
r                 329 drivers/gpu/drm/radeon/radeon_vce.c 			DRM_ERROR("Error destroying VCE handle (%d)!\n", r);
r                 352 drivers/gpu/drm/radeon/radeon_vce.c 	int i, r;
r                 354 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_ib_get(rdev, ring, &ib, NULL, ib_size_dw * 4);
r                 355 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 356 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                 357 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 390 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 391 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 392 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                 400 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                 419 drivers/gpu/drm/radeon/radeon_vce.c 	int i, r;
r                 421 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_ib_get(rdev, ring, &ib, NULL, ib_size_dw * 4);
r                 422 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 423 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to get ib (%d).\n", r);
r                 424 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 447 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 448 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 449 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to schedule ib (%d).\n", r);
r                 457 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                 563 drivers/gpu/drm/radeon/radeon_vce.c 	int i, r = 0;
r                 571 drivers/gpu/drm/radeon/radeon_vce.c 			r = -EINVAL;
r                 577 drivers/gpu/drm/radeon/radeon_vce.c 			r = -EINVAL;
r                 598 drivers/gpu/drm/radeon/radeon_vce.c 				r = -EINVAL;
r                 616 drivers/gpu/drm/radeon/radeon_vce.c 			r = radeon_vce_cs_reloc(p, p->idx + 10, p->idx + 9,
r                 618 drivers/gpu/drm/radeon/radeon_vce.c 			if (r)
r                 621 drivers/gpu/drm/radeon/radeon_vce.c 			r = radeon_vce_cs_reloc(p, p->idx + 12, p->idx + 11,
r                 623 drivers/gpu/drm/radeon/radeon_vce.c 			if (r)
r                 632 drivers/gpu/drm/radeon/radeon_vce.c 			r = radeon_vce_cs_reloc(p, p->idx + 3, p->idx + 2,
r                 634 drivers/gpu/drm/radeon/radeon_vce.c 			if (r)
r                 640 drivers/gpu/drm/radeon/radeon_vce.c 			r = radeon_vce_cs_reloc(p, p->idx + 3, p->idx + 2,
r                 642 drivers/gpu/drm/radeon/radeon_vce.c 			if (r)
r                 647 drivers/gpu/drm/radeon/radeon_vce.c 			r = radeon_vce_cs_reloc(p, p->idx + 3, p->idx + 2,
r                 649 drivers/gpu/drm/radeon/radeon_vce.c 			if (r)
r                 655 drivers/gpu/drm/radeon/radeon_vce.c 			r = -EINVAL;
r                 661 drivers/gpu/drm/radeon/radeon_vce.c 			r = -EINVAL;
r                 670 drivers/gpu/drm/radeon/radeon_vce.c 		r = -ENOENT;
r                 674 drivers/gpu/drm/radeon/radeon_vce.c 	if ((!r && destroyed) || (r && allocated)) {
r                 683 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                 760 drivers/gpu/drm/radeon/radeon_vce.c 	int r;
r                 762 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_ring_lock(rdev, ring, 16);
r                 763 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 765 drivers/gpu/drm/radeon/radeon_vce.c 			  ring->idx, r);
r                 766 drivers/gpu/drm/radeon/radeon_vce.c 		return r;
r                 783 drivers/gpu/drm/radeon/radeon_vce.c 		r = -ETIMEDOUT;
r                 786 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                 799 drivers/gpu/drm/radeon/radeon_vce.c 	int r;
r                 801 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_vce_get_create_msg(rdev, ring->idx, 1, NULL);
r                 802 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 803 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to get create msg (%d).\n", r);
r                 807 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_vce_get_destroy_msg(rdev, ring->idx, 1, &fence);
r                 808 drivers/gpu/drm/radeon/radeon_vce.c 	if (r) {
r                 809 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: failed to get destroy ib (%d).\n", r);
r                 813 drivers/gpu/drm/radeon/radeon_vce.c 	r = radeon_fence_wait_timeout(fence, false, usecs_to_jiffies(
r                 815 drivers/gpu/drm/radeon/radeon_vce.c 	if (r < 0) {
r                 816 drivers/gpu/drm/radeon/radeon_vce.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                 817 drivers/gpu/drm/radeon/radeon_vce.c 	} else if (r == 0) {
r                 819 drivers/gpu/drm/radeon/radeon_vce.c 		r = -ETIMEDOUT;
r                 822 drivers/gpu/drm/radeon/radeon_vce.c 		r = 0;
r                 826 drivers/gpu/drm/radeon/radeon_vce.c 	return r;
r                  87 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                  90 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_asic_vm_init(rdev);
r                  91 drivers/gpu/drm/radeon/radeon_vm.c 		if (r)
r                  92 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                 394 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                 396 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_bo_reserve(bo, false);
r                 397 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                 398 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                 400 drivers/gpu/drm/radeon/radeon_vm.c 	r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
r                 401 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                 407 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_ib_get(rdev, R600_RING_TYPE_DMA_INDEX, &ib, NULL, 256);
r                 408 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                 417 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 418 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                 429 drivers/gpu/drm/radeon/radeon_vm.c 	return r;
r                 455 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                 461 drivers/gpu/drm/radeon/radeon_vm.c 			r = -EINVAL;
r                 469 drivers/gpu/drm/radeon/radeon_vm.c 			r = -EINVAL;
r                 491 drivers/gpu/drm/radeon/radeon_vm.c 			r = -EINVAL;
r                 502 drivers/gpu/drm/radeon/radeon_vm.c 			r = -ENOMEM;
r                 550 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_bo_create(rdev, RADEON_VM_PTE_COUNT * 8,
r                 554 drivers/gpu/drm/radeon/radeon_vm.c 		if (r)
r                 555 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                 557 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_vm_clear_bo(rdev, pt);
r                 558 drivers/gpu/drm/radeon/radeon_vm.c 		if (r) {
r                 560 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                 582 drivers/gpu/drm/radeon/radeon_vm.c 	return r;
r                 650 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                 662 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_ib_get(rdev, R600_RING_TYPE_DMA_INDEX, &ib, NULL, ndw * 4);
r                 663 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                 664 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                 707 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                 708 drivers/gpu/drm/radeon/radeon_vm.c 		if (r) {
r                 710 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                 831 drivers/gpu/drm/radeon/radeon_vm.c 		int r;
r                 834 drivers/gpu/drm/radeon/radeon_vm.c 		r = dma_resv_reserve_shared(pt->tbo.base.resv, 1);
r                 835 drivers/gpu/drm/radeon/radeon_vm.c 		if (r)
r                 836 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                 921 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                1000 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_ib_get(rdev, R600_RING_TYPE_DMA_INDEX, &ib, NULL, ndw * 4);
r                1001 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                1002 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                1012 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_vm_update_ptes(rdev, vm, &ib, bo_va->it.start,
r                1015 drivers/gpu/drm/radeon/radeon_vm.c 	if (r) {
r                1017 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                1023 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_ib_schedule(rdev, &ib, NULL, false);
r                1024 drivers/gpu/drm/radeon/radeon_vm.c 	if (r) {
r                1026 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                1052 drivers/gpu/drm/radeon/radeon_vm.c 	int r = 0;
r                1060 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_vm_bo_update(rdev, bo_va, NULL);
r                1066 drivers/gpu/drm/radeon/radeon_vm.c 		if (r)
r                1071 drivers/gpu/drm/radeon/radeon_vm.c 	return r;
r                1090 drivers/gpu/drm/radeon/radeon_vm.c 	int r;
r                1098 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_vm_bo_update(rdev, bo_va, NULL);
r                1099 drivers/gpu/drm/radeon/radeon_vm.c 		if (r)
r                1100 drivers/gpu/drm/radeon/radeon_vm.c 			return r;
r                1180 drivers/gpu/drm/radeon/radeon_vm.c 	int i, r;
r                1206 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_bo_create(rdev, pd_size, align, true,
r                1209 drivers/gpu/drm/radeon/radeon_vm.c 	if (r)
r                1210 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                1212 drivers/gpu/drm/radeon/radeon_vm.c 	r = radeon_vm_clear_bo(rdev, vm->page_directory);
r                1213 drivers/gpu/drm/radeon/radeon_vm.c 	if (r) {
r                1216 drivers/gpu/drm/radeon/radeon_vm.c 		return r;
r                1234 drivers/gpu/drm/radeon/radeon_vm.c 	int i, r;
r                1242 drivers/gpu/drm/radeon/radeon_vm.c 		r = radeon_bo_reserve(bo_va->bo, false);
r                1243 drivers/gpu/drm/radeon/radeon_vm.c 		if (!r) {
r                  83 drivers/gpu/drm/radeon/rs400.c 	int r;
r                 103 drivers/gpu/drm/radeon/rs400.c 	r = radeon_gart_init(rdev);
r                 104 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 105 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 288 drivers/gpu/drm/radeon/rs400.c 	uint32_t r;
r                 292 drivers/gpu/drm/radeon/rs400.c 	r = RREG32(RS480_NB_MC_DATA);
r                 295 drivers/gpu/drm/radeon/rs400.c 	return r;
r                 412 drivers/gpu/drm/radeon/rs400.c 	int r;
r                 424 drivers/gpu/drm/radeon/rs400.c 	r = rs400_gart_enable(rdev);
r                 425 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 426 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 429 drivers/gpu/drm/radeon/rs400.c 	r = radeon_wb_init(rdev);
r                 430 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 431 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 433 drivers/gpu/drm/radeon/rs400.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                 434 drivers/gpu/drm/radeon/rs400.c 	if (r) {
r                 435 drivers/gpu/drm/radeon/rs400.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                 436 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 441 drivers/gpu/drm/radeon/rs400.c 		r = radeon_irq_kms_init(rdev);
r                 442 drivers/gpu/drm/radeon/rs400.c 		if (r)
r                 443 drivers/gpu/drm/radeon/rs400.c 			return r;
r                 449 drivers/gpu/drm/radeon/rs400.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                 450 drivers/gpu/drm/radeon/rs400.c 	if (r) {
r                 451 drivers/gpu/drm/radeon/rs400.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                 452 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 455 drivers/gpu/drm/radeon/rs400.c 	r = radeon_ib_pool_init(rdev);
r                 456 drivers/gpu/drm/radeon/rs400.c 	if (r) {
r                 457 drivers/gpu/drm/radeon/rs400.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                 458 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 466 drivers/gpu/drm/radeon/rs400.c 	int r;
r                 488 drivers/gpu/drm/radeon/rs400.c 	r = rs400_startup(rdev);
r                 489 drivers/gpu/drm/radeon/rs400.c 	if (r) {
r                 492 drivers/gpu/drm/radeon/rs400.c 	return r;
r                 523 drivers/gpu/drm/radeon/rs400.c 	int r;
r                 543 drivers/gpu/drm/radeon/rs400.c 		r = radeon_combios_init(rdev);
r                 544 drivers/gpu/drm/radeon/rs400.c 		if (r)
r                 545 drivers/gpu/drm/radeon/rs400.c 			return r;
r                 563 drivers/gpu/drm/radeon/rs400.c 	r = radeon_fence_driver_init(rdev);
r                 564 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 565 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 567 drivers/gpu/drm/radeon/rs400.c 	r = radeon_bo_init(rdev);
r                 568 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 569 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 570 drivers/gpu/drm/radeon/rs400.c 	r = rs400_gart_init(rdev);
r                 571 drivers/gpu/drm/radeon/rs400.c 	if (r)
r                 572 drivers/gpu/drm/radeon/rs400.c 		return r;
r                 579 drivers/gpu/drm/radeon/rs400.c 	r = rs400_startup(rdev);
r                 580 drivers/gpu/drm/radeon/rs400.c 	if (r) {
r                 541 drivers/gpu/drm/radeon/rs600.c 	int r;
r                 548 drivers/gpu/drm/radeon/rs600.c 	r = radeon_gart_init(rdev);
r                 549 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                 550 drivers/gpu/drm/radeon/rs600.c 		return r;
r                 559 drivers/gpu/drm/radeon/rs600.c 	int r, i;
r                 565 drivers/gpu/drm/radeon/rs600.c 	r = radeon_gart_table_vram_pin(rdev);
r                 566 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                 567 drivers/gpu/drm/radeon/rs600.c 		return r;
r                 927 drivers/gpu/drm/radeon/rs600.c 	u32 r;
r                 932 drivers/gpu/drm/radeon/rs600.c 	r = RREG32(R_000074_MC_IND_DATA);
r                 934 drivers/gpu/drm/radeon/rs600.c 	return r;
r                 987 drivers/gpu/drm/radeon/rs600.c 	int r;
r                 996 drivers/gpu/drm/radeon/rs600.c 	r = rs600_gart_enable(rdev);
r                 997 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                 998 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1001 drivers/gpu/drm/radeon/rs600.c 	r = radeon_wb_init(rdev);
r                1002 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                1003 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1005 drivers/gpu/drm/radeon/rs600.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                1006 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                1007 drivers/gpu/drm/radeon/rs600.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                1008 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1013 drivers/gpu/drm/radeon/rs600.c 		r = radeon_irq_kms_init(rdev);
r                1014 drivers/gpu/drm/radeon/rs600.c 		if (r)
r                1015 drivers/gpu/drm/radeon/rs600.c 			return r;
r                1021 drivers/gpu/drm/radeon/rs600.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                1022 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                1023 drivers/gpu/drm/radeon/rs600.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                1024 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1027 drivers/gpu/drm/radeon/rs600.c 	r = radeon_ib_pool_init(rdev);
r                1028 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                1029 drivers/gpu/drm/radeon/rs600.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                1030 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1033 drivers/gpu/drm/radeon/rs600.c 	r = radeon_audio_init(rdev);
r                1034 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                1036 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1044 drivers/gpu/drm/radeon/rs600.c 	int r;
r                1064 drivers/gpu/drm/radeon/rs600.c 	r = rs600_startup(rdev);
r                1065 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                1068 drivers/gpu/drm/radeon/rs600.c 	return r;
r                1101 drivers/gpu/drm/radeon/rs600.c 	int r;
r                1117 drivers/gpu/drm/radeon/rs600.c 		r = radeon_atombios_init(rdev);
r                1118 drivers/gpu/drm/radeon/rs600.c 		if (r)
r                1119 drivers/gpu/drm/radeon/rs600.c 			return r;
r                1141 drivers/gpu/drm/radeon/rs600.c 	r = radeon_fence_driver_init(rdev);
r                1142 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                1143 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1145 drivers/gpu/drm/radeon/rs600.c 	r = radeon_bo_init(rdev);
r                1146 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                1147 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1148 drivers/gpu/drm/radeon/rs600.c 	r = rs600_gart_init(rdev);
r                1149 drivers/gpu/drm/radeon/rs600.c 	if (r)
r                1150 drivers/gpu/drm/radeon/rs600.c 		return r;
r                1157 drivers/gpu/drm/radeon/rs600.c 	r = rs600_startup(rdev);
r                1158 drivers/gpu/drm/radeon/rs600.c 	if (r) {
r                 654 drivers/gpu/drm/radeon/rs690.c 	uint32_t r;
r                 658 drivers/gpu/drm/radeon/rs690.c 	r = RREG32(R_00007C_MC_DATA);
r                 661 drivers/gpu/drm/radeon/rs690.c 	return r;
r                 698 drivers/gpu/drm/radeon/rs690.c 	int r;
r                 707 drivers/gpu/drm/radeon/rs690.c 	r = rs400_gart_enable(rdev);
r                 708 drivers/gpu/drm/radeon/rs690.c 	if (r)
r                 709 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 712 drivers/gpu/drm/radeon/rs690.c 	r = radeon_wb_init(rdev);
r                 713 drivers/gpu/drm/radeon/rs690.c 	if (r)
r                 714 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 716 drivers/gpu/drm/radeon/rs690.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                 717 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                 718 drivers/gpu/drm/radeon/rs690.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                 719 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 724 drivers/gpu/drm/radeon/rs690.c 		r = radeon_irq_kms_init(rdev);
r                 725 drivers/gpu/drm/radeon/rs690.c 		if (r)
r                 726 drivers/gpu/drm/radeon/rs690.c 			return r;
r                 732 drivers/gpu/drm/radeon/rs690.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                 733 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                 734 drivers/gpu/drm/radeon/rs690.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                 735 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 738 drivers/gpu/drm/radeon/rs690.c 	r = radeon_ib_pool_init(rdev);
r                 739 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                 740 drivers/gpu/drm/radeon/rs690.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                 741 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 744 drivers/gpu/drm/radeon/rs690.c 	r = radeon_audio_init(rdev);
r                 745 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                 747 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 755 drivers/gpu/drm/radeon/rs690.c 	int r;
r                 775 drivers/gpu/drm/radeon/rs690.c 	r = rs690_startup(rdev);
r                 776 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                 779 drivers/gpu/drm/radeon/rs690.c 	return r;
r                 812 drivers/gpu/drm/radeon/rs690.c 	int r;
r                 829 drivers/gpu/drm/radeon/rs690.c 		r = radeon_atombios_init(rdev);
r                 830 drivers/gpu/drm/radeon/rs690.c 		if (r)
r                 831 drivers/gpu/drm/radeon/rs690.c 			return r;
r                 853 drivers/gpu/drm/radeon/rs690.c 	r = radeon_fence_driver_init(rdev);
r                 854 drivers/gpu/drm/radeon/rs690.c 	if (r)
r                 855 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 857 drivers/gpu/drm/radeon/rs690.c 	r = radeon_bo_init(rdev);
r                 858 drivers/gpu/drm/radeon/rs690.c 	if (r)
r                 859 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 860 drivers/gpu/drm/radeon/rs690.c 	r = rs400_gart_init(rdev);
r                 861 drivers/gpu/drm/radeon/rs690.c 	if (r)
r                 862 drivers/gpu/drm/radeon/rs690.c 		return r;
r                 869 drivers/gpu/drm/radeon/rs690.c 	r = rs690_startup(rdev);
r                 870 drivers/gpu/drm/radeon/rs690.c 	if (r) {
r                  69 drivers/gpu/drm/radeon/rv515.c 	int r;
r                  71 drivers/gpu/drm/radeon/rv515.c 	r = radeon_ring_lock(rdev, ring, 64);
r                  72 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                 215 drivers/gpu/drm/radeon/rv515.c 	uint32_t r;
r                 219 drivers/gpu/drm/radeon/rv515.c 	r = RREG32(MC_IND_DATA);
r                 223 drivers/gpu/drm/radeon/rv515.c 	return r;
r                 519 drivers/gpu/drm/radeon/rv515.c 	int r;
r                 529 drivers/gpu/drm/radeon/rv515.c 		r = rv370_pcie_gart_enable(rdev);
r                 530 drivers/gpu/drm/radeon/rv515.c 		if (r)
r                 531 drivers/gpu/drm/radeon/rv515.c 			return r;
r                 535 drivers/gpu/drm/radeon/rv515.c 	r = radeon_wb_init(rdev);
r                 536 drivers/gpu/drm/radeon/rv515.c 	if (r)
r                 537 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 539 drivers/gpu/drm/radeon/rv515.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                 540 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                 541 drivers/gpu/drm/radeon/rv515.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                 542 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 547 drivers/gpu/drm/radeon/rv515.c 		r = radeon_irq_kms_init(rdev);
r                 548 drivers/gpu/drm/radeon/rv515.c 		if (r)
r                 549 drivers/gpu/drm/radeon/rv515.c 			return r;
r                 555 drivers/gpu/drm/radeon/rv515.c 	r = r100_cp_init(rdev, 1024 * 1024);
r                 556 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                 557 drivers/gpu/drm/radeon/rv515.c 		dev_err(rdev->dev, "failed initializing CP (%d).\n", r);
r                 558 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 561 drivers/gpu/drm/radeon/rv515.c 	r = radeon_ib_pool_init(rdev);
r                 562 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                 563 drivers/gpu/drm/radeon/rv515.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                 564 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 572 drivers/gpu/drm/radeon/rv515.c 	int r;
r                 593 drivers/gpu/drm/radeon/rv515.c 	r =  rv515_startup(rdev);
r                 594 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                 597 drivers/gpu/drm/radeon/rv515.c 	return r;
r                 636 drivers/gpu/drm/radeon/rv515.c 	int r;
r                 651 drivers/gpu/drm/radeon/rv515.c 		r = radeon_atombios_init(rdev);
r                 652 drivers/gpu/drm/radeon/rv515.c 		if (r)
r                 653 drivers/gpu/drm/radeon/rv515.c 			return r;
r                 672 drivers/gpu/drm/radeon/rv515.c 		r = radeon_agp_init(rdev);
r                 673 drivers/gpu/drm/radeon/rv515.c 		if (r) {
r                 681 drivers/gpu/drm/radeon/rv515.c 	r = radeon_fence_driver_init(rdev);
r                 682 drivers/gpu/drm/radeon/rv515.c 	if (r)
r                 683 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 685 drivers/gpu/drm/radeon/rv515.c 	r = radeon_bo_init(rdev);
r                 686 drivers/gpu/drm/radeon/rv515.c 	if (r)
r                 687 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 688 drivers/gpu/drm/radeon/rv515.c 	r = rv370_pcie_gart_init(rdev);
r                 689 drivers/gpu/drm/radeon/rv515.c 	if (r)
r                 690 drivers/gpu/drm/radeon/rv515.c 		return r;
r                 697 drivers/gpu/drm/radeon/rv515.c 	r = rv515_startup(rdev);
r                 698 drivers/gpu/drm/radeon/rv515.c 	if (r) {
r                1002 drivers/gpu/drm/radeon/rv6xx_dpm.c 			      int d_l, int d_r, u8 *l, u8 *r)
r                1014 drivers/gpu/drm/radeon/rv6xx_dpm.c 		*r = d_r + l_r * a_n / a_d;
r                  54 drivers/gpu/drm/radeon/rv770.c 	int r;
r                  71 drivers/gpu/drm/radeon/rv770.c 	r = radeon_uvd_calc_upll_dividers(rdev, vclk, dclk, 50000, 160000,
r                  74 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                  75 drivers/gpu/drm/radeon/rv770.c 		return r;
r                  91 drivers/gpu/drm/radeon/rv770.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                  92 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                  93 drivers/gpu/drm/radeon/rv770.c 		return r;
r                 122 drivers/gpu/drm/radeon/rv770.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                 123 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                 124 drivers/gpu/drm/radeon/rv770.c 		return r;
r                 900 drivers/gpu/drm/radeon/rv770.c 	int r, i;
r                 906 drivers/gpu/drm/radeon/rv770.c 	r = radeon_gart_table_vram_pin(rdev);
r                 907 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                 908 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1692 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1697 drivers/gpu/drm/radeon/rv770.c 	r = radeon_uvd_init(rdev);
r                1698 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1699 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                1715 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1720 drivers/gpu/drm/radeon/rv770.c 	r = uvd_v2_2_resume(rdev);
r                1721 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1722 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                1725 drivers/gpu/drm/radeon/rv770.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                1726 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1727 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                1739 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1745 drivers/gpu/drm/radeon/rv770.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                1746 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1747 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                1750 drivers/gpu/drm/radeon/rv770.c 	r = uvd_v1_0_init(rdev);
r                1751 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1752 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                1760 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1766 drivers/gpu/drm/radeon/rv770.c 	r = r600_vram_scratch_init(rdev);
r                1767 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1768 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1775 drivers/gpu/drm/radeon/rv770.c 		r = rv770_pcie_gart_enable(rdev);
r                1776 drivers/gpu/drm/radeon/rv770.c 		if (r)
r                1777 drivers/gpu/drm/radeon/rv770.c 			return r;
r                1783 drivers/gpu/drm/radeon/rv770.c 	r = radeon_wb_init(rdev);
r                1784 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1785 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1787 drivers/gpu/drm/radeon/rv770.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                1788 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1789 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                1790 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1793 drivers/gpu/drm/radeon/rv770.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_DMA_INDEX);
r                1794 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1795 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                1796 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1803 drivers/gpu/drm/radeon/rv770.c 		r = radeon_irq_kms_init(rdev);
r                1804 drivers/gpu/drm/radeon/rv770.c 		if (r)
r                1805 drivers/gpu/drm/radeon/rv770.c 			return r;
r                1808 drivers/gpu/drm/radeon/rv770.c 	r = r600_irq_init(rdev);
r                1809 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1810 drivers/gpu/drm/radeon/rv770.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                1812 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1817 drivers/gpu/drm/radeon/rv770.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                1819 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1820 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1823 drivers/gpu/drm/radeon/rv770.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET,
r                1825 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1826 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1828 drivers/gpu/drm/radeon/rv770.c 	r = rv770_cp_load_microcode(rdev);
r                1829 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1830 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1831 drivers/gpu/drm/radeon/rv770.c 	r = r600_cp_resume(rdev);
r                1832 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1833 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1835 drivers/gpu/drm/radeon/rv770.c 	r = r600_dma_resume(rdev);
r                1836 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1837 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1841 drivers/gpu/drm/radeon/rv770.c 	r = radeon_ib_pool_init(rdev);
r                1842 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1843 drivers/gpu/drm/radeon/rv770.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                1844 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1847 drivers/gpu/drm/radeon/rv770.c 	r = radeon_audio_init(rdev);
r                1848 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1850 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1858 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1874 drivers/gpu/drm/radeon/rv770.c 	r = rv770_startup(rdev);
r                1875 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                1878 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1881 drivers/gpu/drm/radeon/rv770.c 	return r;
r                1910 drivers/gpu/drm/radeon/rv770.c 	int r;
r                1922 drivers/gpu/drm/radeon/rv770.c 	r = radeon_atombios_init(rdev);
r                1923 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1924 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1943 drivers/gpu/drm/radeon/rv770.c 	r = radeon_fence_driver_init(rdev);
r                1944 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1945 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1948 drivers/gpu/drm/radeon/rv770.c 		r = radeon_agp_init(rdev);
r                1949 drivers/gpu/drm/radeon/rv770.c 		if (r)
r                1952 drivers/gpu/drm/radeon/rv770.c 	r = rv770_mc_init(rdev);
r                1953 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1954 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1956 drivers/gpu/drm/radeon/rv770.c 	r = radeon_bo_init(rdev);
r                1957 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1958 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1961 drivers/gpu/drm/radeon/rv770.c 		r = r600_init_microcode(rdev);
r                1962 drivers/gpu/drm/radeon/rv770.c 		if (r) {
r                1964 drivers/gpu/drm/radeon/rv770.c 			return r;
r                1982 drivers/gpu/drm/radeon/rv770.c 	r = r600_pcie_gart_init(rdev);
r                1983 drivers/gpu/drm/radeon/rv770.c 	if (r)
r                1984 drivers/gpu/drm/radeon/rv770.c 		return r;
r                1987 drivers/gpu/drm/radeon/rv770.c 	r = rv770_startup(rdev);
r                1988 drivers/gpu/drm/radeon/rv770.c 	if (r) {
r                  53 drivers/gpu/drm/radeon/rv770_dma.c 	int r = 0;
r                  59 drivers/gpu/drm/radeon/rv770_dma.c 	r = radeon_ring_lock(rdev, ring, num_loops * 5 + 8);
r                  60 drivers/gpu/drm/radeon/rv770_dma.c 	if (r) {
r                  61 drivers/gpu/drm/radeon/rv770_dma.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                  63 drivers/gpu/drm/radeon/rv770_dma.c 		return ERR_PTR(r);
r                  83 drivers/gpu/drm/radeon/rv770_dma.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                  84 drivers/gpu/drm/radeon/rv770_dma.c 	if (r) {
r                  87 drivers/gpu/drm/radeon/rv770_dma.c 		return ERR_PTR(r);
r                 265 drivers/gpu/drm/radeon/rv770_dpm.c 	u8 r[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE];
r                 269 drivers/gpu/drm/radeon/rv770_dpm.c 	r[2] = 100;
r                 277 drivers/gpu/drm/radeon/rv770_dpm.c 	r[0] = (u8)(pi->rlp + (100 - (int)pi->rlp) * a_n / a_d);
r                 285 drivers/gpu/drm/radeon/rv770_dpm.c 	r[1] = (u8)(pi->rmp + (100 - (int)pi->rmp) * a_n / a_d);
r                 288 drivers/gpu/drm/radeon/rv770_dpm.c 		a_t = CG_R(r[i] * pi->bsp / 200) | CG_L(l[i] * pi->bsp / 200);
r                 292 drivers/gpu/drm/radeon/rv770_dpm.c 	a_t = CG_R(r[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1] * pi->pbsp / 200) |
r                3564 drivers/gpu/drm/radeon/si.c 	int r, i;
r                3566 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_lock(rdev, ring, 7 + 4);
r                3567 drivers/gpu/drm/radeon/si.c 	if (r) {
r                3568 drivers/gpu/drm/radeon/si.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                3569 drivers/gpu/drm/radeon/si.c 		return r;
r                3589 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_lock(rdev, ring, si_default_size + 10);
r                3590 drivers/gpu/drm/radeon/si.c 	if (r) {
r                3591 drivers/gpu/drm/radeon/si.c 		DRM_ERROR("radeon: cp failed to lock ring (%d).\n", r);
r                3592 drivers/gpu/drm/radeon/si.c 		return r;
r                3618 drivers/gpu/drm/radeon/si.c 		r = radeon_ring_lock(rdev, ring, 2);
r                3653 drivers/gpu/drm/radeon/si.c 	int r;
r                3750 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_test(rdev, RADEON_RING_TYPE_GFX_INDEX, &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]);
r                3751 drivers/gpu/drm/radeon/si.c 	if (r) {
r                3755 drivers/gpu/drm/radeon/si.c 		return r;
r                3757 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_test(rdev, CAYMAN_RING_TYPE_CP1_INDEX, &rdev->ring[CAYMAN_RING_TYPE_CP1_INDEX]);
r                3758 drivers/gpu/drm/radeon/si.c 	if (r) {
r                3761 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_test(rdev, CAYMAN_RING_TYPE_CP2_INDEX, &rdev->ring[CAYMAN_RING_TYPE_CP2_INDEX]);
r                3762 drivers/gpu/drm/radeon/si.c 	if (r) {
r                4287 drivers/gpu/drm/radeon/si.c 	int r, i;
r                4293 drivers/gpu/drm/radeon/si.c 	r = radeon_gart_table_vram_pin(rdev);
r                4294 drivers/gpu/drm/radeon/si.c 	if (r)
r                4295 drivers/gpu/drm/radeon/si.c 		return r;
r                4533 drivers/gpu/drm/radeon/si.c 	int r;
r                4637 drivers/gpu/drm/radeon/si.c 		r = si_vm_packet3_cp_dma_check(ib, idx);
r                4638 drivers/gpu/drm/radeon/si.c 		if (r)
r                4639 drivers/gpu/drm/radeon/si.c 			return r;
r                4651 drivers/gpu/drm/radeon/si.c 	int r;
r                4725 drivers/gpu/drm/radeon/si.c 		r = si_vm_packet3_cp_dma_check(ib, idx);
r                4726 drivers/gpu/drm/radeon/si.c 		if (r)
r                4727 drivers/gpu/drm/radeon/si.c 			return r;
r                6461 drivers/gpu/drm/radeon/si.c 	int r;
r                6466 drivers/gpu/drm/radeon/si.c 	r = radeon_uvd_init(rdev);
r                6467 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6468 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed UVD (%d) init.\n", r);
r                6484 drivers/gpu/drm/radeon/si.c 	int r;
r                6489 drivers/gpu/drm/radeon/si.c 	r = uvd_v2_2_resume(rdev);
r                6490 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6491 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed UVD resume (%d).\n", r);
r                6494 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_UVD_INDEX);
r                6495 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6496 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing UVD fences (%d).\n", r);
r                6508 drivers/gpu/drm/radeon/si.c 	int r;
r                6514 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, PACKET0(UVD_NO_OP, 0));
r                6515 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6516 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing UVD ring (%d).\n", r);
r                6519 drivers/gpu/drm/radeon/si.c 	r = uvd_v1_0_init(rdev);
r                6520 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6521 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing UVD (%d).\n", r);
r                6528 drivers/gpu/drm/radeon/si.c 	int r;
r                6533 drivers/gpu/drm/radeon/si.c 	r = radeon_vce_init(rdev);
r                6534 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6535 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed VCE (%d) init.\n", r);
r                6553 drivers/gpu/drm/radeon/si.c 	int r;
r                6558 drivers/gpu/drm/radeon/si.c 	r = radeon_vce_resume(rdev);
r                6559 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6560 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                6563 drivers/gpu/drm/radeon/si.c 	r = vce_v1_0_resume(rdev);
r                6564 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6565 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed VCE resume (%d).\n", r);
r                6568 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE1_INDEX);
r                6569 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6570 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing VCE1 fences (%d).\n", r);
r                6573 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, TN_RING_TYPE_VCE2_INDEX);
r                6574 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6575 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing VCE2 fences (%d).\n", r);
r                6588 drivers/gpu/drm/radeon/si.c 	int r;
r                6594 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP);
r                6595 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6596 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                6600 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, 0, VCE_CMD_NO_OP);
r                6601 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6602 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing VCE1 ring (%d).\n", r);
r                6605 drivers/gpu/drm/radeon/si.c 	r = vce_v1_0_init(rdev);
r                6606 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6607 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing VCE (%d).\n", r);
r                6615 drivers/gpu/drm/radeon/si.c 	int r;
r                6623 drivers/gpu/drm/radeon/si.c 	r = r600_vram_scratch_init(rdev);
r                6624 drivers/gpu/drm/radeon/si.c 	if (r)
r                6625 drivers/gpu/drm/radeon/si.c 		return r;
r                6630 drivers/gpu/drm/radeon/si.c 		r = si_mc_load_microcode(rdev);
r                6631 drivers/gpu/drm/radeon/si.c 		if (r) {
r                6633 drivers/gpu/drm/radeon/si.c 			return r;
r                6637 drivers/gpu/drm/radeon/si.c 	r = si_pcie_gart_enable(rdev);
r                6638 drivers/gpu/drm/radeon/si.c 	if (r)
r                6639 drivers/gpu/drm/radeon/si.c 		return r;
r                6649 drivers/gpu/drm/radeon/si.c 	r = sumo_rlc_init(rdev);
r                6650 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6652 drivers/gpu/drm/radeon/si.c 		return r;
r                6656 drivers/gpu/drm/radeon/si.c 	r = radeon_wb_init(rdev);
r                6657 drivers/gpu/drm/radeon/si.c 	if (r)
r                6658 drivers/gpu/drm/radeon/si.c 		return r;
r                6660 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, RADEON_RING_TYPE_GFX_INDEX);
r                6661 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6662 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                6663 drivers/gpu/drm/radeon/si.c 		return r;
r                6666 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP1_INDEX);
r                6667 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6668 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                6669 drivers/gpu/drm/radeon/si.c 		return r;
r                6672 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_CP2_INDEX);
r                6673 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6674 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing CP fences (%d).\n", r);
r                6675 drivers/gpu/drm/radeon/si.c 		return r;
r                6678 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, R600_RING_TYPE_DMA_INDEX);
r                6679 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6680 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                6681 drivers/gpu/drm/radeon/si.c 		return r;
r                6684 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_start_ring(rdev, CAYMAN_RING_TYPE_DMA1_INDEX);
r                6685 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6686 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "failed initializing DMA fences (%d).\n", r);
r                6687 drivers/gpu/drm/radeon/si.c 		return r;
r                6695 drivers/gpu/drm/radeon/si.c 		r = radeon_irq_kms_init(rdev);
r                6696 drivers/gpu/drm/radeon/si.c 		if (r)
r                6697 drivers/gpu/drm/radeon/si.c 			return r;
r                6700 drivers/gpu/drm/radeon/si.c 	r = si_irq_init(rdev);
r                6701 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6702 drivers/gpu/drm/radeon/si.c 		DRM_ERROR("radeon: IH init failed (%d).\n", r);
r                6704 drivers/gpu/drm/radeon/si.c 		return r;
r                6709 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP_RPTR_OFFSET,
r                6711 drivers/gpu/drm/radeon/si.c 	if (r)
r                6712 drivers/gpu/drm/radeon/si.c 		return r;
r                6715 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP1_RPTR_OFFSET,
r                6717 drivers/gpu/drm/radeon/si.c 	if (r)
r                6718 drivers/gpu/drm/radeon/si.c 		return r;
r                6721 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, RADEON_WB_CP2_RPTR_OFFSET,
r                6723 drivers/gpu/drm/radeon/si.c 	if (r)
r                6724 drivers/gpu/drm/radeon/si.c 		return r;
r                6727 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, R600_WB_DMA_RPTR_OFFSET,
r                6729 drivers/gpu/drm/radeon/si.c 	if (r)
r                6730 drivers/gpu/drm/radeon/si.c 		return r;
r                6733 drivers/gpu/drm/radeon/si.c 	r = radeon_ring_init(rdev, ring, ring->ring_size, CAYMAN_WB_DMA1_RPTR_OFFSET,
r                6735 drivers/gpu/drm/radeon/si.c 	if (r)
r                6736 drivers/gpu/drm/radeon/si.c 		return r;
r                6738 drivers/gpu/drm/radeon/si.c 	r = si_cp_load_microcode(rdev);
r                6739 drivers/gpu/drm/radeon/si.c 	if (r)
r                6740 drivers/gpu/drm/radeon/si.c 		return r;
r                6741 drivers/gpu/drm/radeon/si.c 	r = si_cp_resume(rdev);
r                6742 drivers/gpu/drm/radeon/si.c 	if (r)
r                6743 drivers/gpu/drm/radeon/si.c 		return r;
r                6745 drivers/gpu/drm/radeon/si.c 	r = cayman_dma_resume(rdev);
r                6746 drivers/gpu/drm/radeon/si.c 	if (r)
r                6747 drivers/gpu/drm/radeon/si.c 		return r;
r                6752 drivers/gpu/drm/radeon/si.c 	r = radeon_ib_pool_init(rdev);
r                6753 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6754 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "IB initialization failed (%d).\n", r);
r                6755 drivers/gpu/drm/radeon/si.c 		return r;
r                6758 drivers/gpu/drm/radeon/si.c 	r = radeon_vm_manager_init(rdev);
r                6759 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6760 drivers/gpu/drm/radeon/si.c 		dev_err(rdev->dev, "vm manager initialization failed (%d).\n", r);
r                6761 drivers/gpu/drm/radeon/si.c 		return r;
r                6764 drivers/gpu/drm/radeon/si.c 	r = radeon_audio_init(rdev);
r                6765 drivers/gpu/drm/radeon/si.c 	if (r)
r                6766 drivers/gpu/drm/radeon/si.c 		return r;
r                6773 drivers/gpu/drm/radeon/si.c 	int r;
r                6789 drivers/gpu/drm/radeon/si.c 	r = si_startup(rdev);
r                6790 drivers/gpu/drm/radeon/si.c 	if (r) {
r                6793 drivers/gpu/drm/radeon/si.c 		return r;
r                6796 drivers/gpu/drm/radeon/si.c 	return r;
r                6830 drivers/gpu/drm/radeon/si.c 	int r;
r                6842 drivers/gpu/drm/radeon/si.c 	r = radeon_atombios_init(rdev);
r                6843 drivers/gpu/drm/radeon/si.c 	if (r)
r                6844 drivers/gpu/drm/radeon/si.c 		return r;
r                6865 drivers/gpu/drm/radeon/si.c 	r = radeon_fence_driver_init(rdev);
r                6866 drivers/gpu/drm/radeon/si.c 	if (r)
r                6867 drivers/gpu/drm/radeon/si.c 		return r;
r                6870 drivers/gpu/drm/radeon/si.c 	r = si_mc_init(rdev);
r                6871 drivers/gpu/drm/radeon/si.c 	if (r)
r                6872 drivers/gpu/drm/radeon/si.c 		return r;
r                6874 drivers/gpu/drm/radeon/si.c 	r = radeon_bo_init(rdev);
r                6875 drivers/gpu/drm/radeon/si.c 	if (r)
r                6876 drivers/gpu/drm/radeon/si.c 		return r;
r                6880 drivers/gpu/drm/radeon/si.c 		r = si_init_microcode(rdev);
r                6881 drivers/gpu/drm/radeon/si.c 		if (r) {
r                6883 drivers/gpu/drm/radeon/si.c 			return r;
r                6916 drivers/gpu/drm/radeon/si.c 	r = r600_pcie_gart_init(rdev);
r                6917 drivers/gpu/drm/radeon/si.c 	if (r)
r                6918 drivers/gpu/drm/radeon/si.c 		return r;
r                6921 drivers/gpu/drm/radeon/si.c 	r = si_startup(rdev);
r                6922 drivers/gpu/drm/radeon/si.c 	if (r) {
r                7000 drivers/gpu/drm/radeon/si.c 	int r;
r                7015 drivers/gpu/drm/radeon/si.c 	r = radeon_uvd_calc_upll_dividers(rdev, vclk, dclk, 125000, 250000,
r                7018 drivers/gpu/drm/radeon/si.c 	if (r)
r                7019 drivers/gpu/drm/radeon/si.c 		return r;
r                7035 drivers/gpu/drm/radeon/si.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                7036 drivers/gpu/drm/radeon/si.c 	if (r)
r                7037 drivers/gpu/drm/radeon/si.c 		return r;
r                7072 drivers/gpu/drm/radeon/si.c 	r = radeon_uvd_send_upll_ctlreq(rdev, CG_UPLL_FUNC_CNTL);
r                7073 drivers/gpu/drm/radeon/si.c 	if (r)
r                7074 drivers/gpu/drm/radeon/si.c 		return r;
r                7487 drivers/gpu/drm/radeon/si.c 	int r;
r                7505 drivers/gpu/drm/radeon/si.c 	r = radeon_uvd_calc_upll_dividers(rdev, evclk, ecclk, 125000, 250000,
r                7508 drivers/gpu/drm/radeon/si.c 	if (r)
r                7509 drivers/gpu/drm/radeon/si.c 		return r;
r                7528 drivers/gpu/drm/radeon/si.c 	r = si_vce_send_vcepll_ctlreq(rdev);
r                7529 drivers/gpu/drm/radeon/si.c 	if (r)
r                7530 drivers/gpu/drm/radeon/si.c 		return r;
r                7560 drivers/gpu/drm/radeon/si.c 	r = si_vce_send_vcepll_ctlreq(rdev);
r                7561 drivers/gpu/drm/radeon/si.c 	if (r)
r                7562 drivers/gpu/drm/radeon/si.c 		return r;
r                 242 drivers/gpu/drm/radeon/si_dma.c 	int r = 0;
r                 248 drivers/gpu/drm/radeon/si_dma.c 	r = radeon_ring_lock(rdev, ring, num_loops * 5 + 11);
r                 249 drivers/gpu/drm/radeon/si_dma.c 	if (r) {
r                 250 drivers/gpu/drm/radeon/si_dma.c 		DRM_ERROR("radeon: moving bo (%d).\n", r);
r                 252 drivers/gpu/drm/radeon/si_dma.c 		return ERR_PTR(r);
r                 272 drivers/gpu/drm/radeon/si_dma.c 	r = radeon_fence_emit(rdev, &fence, ring->idx);
r                 273 drivers/gpu/drm/radeon/si_dma.c 	if (r) {
r                 276 drivers/gpu/drm/radeon/si_dma.c 		return ERR_PTR(r);
r                1853 drivers/gpu/drm/radeon/si_dpm.c 			dte_data->r[i] =
r                1858 drivers/gpu/drm/radeon/si_dpm.c 		dte_data->tdep_r[1] = dte_data->r[4] * 2;
r                1861 drivers/gpu/drm/radeon/si_dpm.c 			dte_data->tdep_r[i] = dte_data->r[4];
r                2516 drivers/gpu/drm/radeon/si_dpm.c 		dte_tables->R[i]   = cpu_to_be32(dte_data->r[i]);
r                5948 drivers/gpu/drm/radeon/si_dpm.c 	int r;
r                5950 drivers/gpu/drm/radeon/si_dpm.c 	r = si_mc_load_microcode(rdev);
r                5951 drivers/gpu/drm/radeon/si_dpm.c 	if (r)
r                  74 drivers/gpu/drm/radeon/si_dpm.h 	u32 r[SMC_SISLANDS_DTE_MAX_FILTER_STAGES];
r                 393 drivers/gpu/drm/radeon/sumo_dpm.c 	u32 r[SUMO_MAX_HARDWARE_POWERLEVELS];
r                 396 drivers/gpu/drm/radeon/sumo_dpm.c 	r[0] = SUMO_R_DFLT0;
r                 397 drivers/gpu/drm/radeon/sumo_dpm.c 	r[1] = SUMO_R_DFLT1;
r                 398 drivers/gpu/drm/radeon/sumo_dpm.c 	r[2] = SUMO_R_DFLT2;
r                 399 drivers/gpu/drm/radeon/sumo_dpm.c 	r[3] = SUMO_R_DFLT3;
r                 400 drivers/gpu/drm/radeon/sumo_dpm.c 	r[4] = SUMO_R_DFLT4;
r                 413 drivers/gpu/drm/radeon/sumo_dpm.c 		a_t = CG_R(m_a * r[i] / 100) | CG_L(m_a * l[i] / 100);
r                 423 drivers/gpu/drm/radeon/sumo_dpm.c 		a_t = CG_R(m_a * r[ps->num_levels - 1] / 100) |
r                 114 drivers/gpu/drm/radeon/uvd_v1_0.c 	int r;
r                 116 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_uvd_resume(rdev);
r                 117 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r)
r                 118 drivers/gpu/drm/radeon/uvd_v1_0.c 		return r;
r                 161 drivers/gpu/drm/radeon/uvd_v1_0.c 	int r;
r                 169 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = uvd_v1_0_start(rdev);
r                 170 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r)
r                 174 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_ring_test(rdev, R600_RING_TYPE_UVD_INDEX, ring);
r                 175 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 180 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_ring_lock(rdev, ring, 10);
r                 181 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 182 drivers/gpu/drm/radeon/uvd_v1_0.c 		DRM_ERROR("radeon: ring failed to lock UVD ring (%d).\n", r);
r                 211 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (!r) {
r                 238 drivers/gpu/drm/radeon/uvd_v1_0.c 	return r;
r                 267 drivers/gpu/drm/radeon/uvd_v1_0.c 	int i, j, r;
r                 337 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = 0;
r                 346 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = -1;
r                 349 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 351 drivers/gpu/drm/radeon/uvd_v1_0.c 		return r;
r                 425 drivers/gpu/drm/radeon/uvd_v1_0.c 	int r;
r                 428 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_ring_lock(rdev, ring, 3);
r                 429 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 431 drivers/gpu/drm/radeon/uvd_v1_0.c 			  ring->idx, r);
r                 432 drivers/gpu/drm/radeon/uvd_v1_0.c 		return r;
r                 450 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = -EINVAL;
r                 452 drivers/gpu/drm/radeon/uvd_v1_0.c 	return r;
r                 503 drivers/gpu/drm/radeon/uvd_v1_0.c 	int r;
r                 506 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = radeon_set_uvd_clocks(rdev, 10000, 10000);
r                 508 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = radeon_set_uvd_clocks(rdev, 53300, 40000);
r                 509 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 510 drivers/gpu/drm/radeon/uvd_v1_0.c 		DRM_ERROR("radeon: failed to raise UVD clocks (%d).\n", r);
r                 511 drivers/gpu/drm/radeon/uvd_v1_0.c 		return r;
r                 514 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_uvd_get_create_msg(rdev, ring->idx, 1, NULL);
r                 515 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 516 drivers/gpu/drm/radeon/uvd_v1_0.c 		DRM_ERROR("radeon: failed to get create msg (%d).\n", r);
r                 520 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_uvd_get_destroy_msg(rdev, ring->idx, 1, &fence);
r                 521 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r) {
r                 522 drivers/gpu/drm/radeon/uvd_v1_0.c 		DRM_ERROR("radeon: failed to get destroy ib (%d).\n", r);
r                 526 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = radeon_fence_wait_timeout(fence, false, usecs_to_jiffies(
r                 528 drivers/gpu/drm/radeon/uvd_v1_0.c 	if (r < 0) {
r                 529 drivers/gpu/drm/radeon/uvd_v1_0.c 		DRM_ERROR("radeon: fence wait failed (%d).\n", r);
r                 531 drivers/gpu/drm/radeon/uvd_v1_0.c 	} else if (r == 0) {
r                 533 drivers/gpu/drm/radeon/uvd_v1_0.c 		r = -ETIMEDOUT;
r                 536 drivers/gpu/drm/radeon/uvd_v1_0.c 	r = 0;
r                 541 drivers/gpu/drm/radeon/uvd_v1_0.c 	return r;
r                 102 drivers/gpu/drm/radeon/uvd_v2_2.c 	int r;
r                 108 drivers/gpu/drm/radeon/uvd_v2_2.c 	r = radeon_uvd_resume(rdev);
r                 109 drivers/gpu/drm/radeon/uvd_v2_2.c 	if (r)
r                 110 drivers/gpu/drm/radeon/uvd_v2_2.c 		return r;
r                 292 drivers/gpu/drm/radeon/vce_v1_0.c 	int i, j, r;
r                 333 drivers/gpu/drm/radeon/vce_v1_0.c 		r = 0;
r                 342 drivers/gpu/drm/radeon/vce_v1_0.c 		r = -1;
r                 348 drivers/gpu/drm/radeon/vce_v1_0.c 	if (r) {
r                 350 drivers/gpu/drm/radeon/vce_v1_0.c 		return r;
r                 359 drivers/gpu/drm/radeon/vce_v1_0.c 	int r;
r                 361 drivers/gpu/drm/radeon/vce_v1_0.c 	r = vce_v1_0_start(rdev);
r                 362 drivers/gpu/drm/radeon/vce_v1_0.c 	if (r)
r                 363 drivers/gpu/drm/radeon/vce_v1_0.c 		return r;
r                 367 drivers/gpu/drm/radeon/vce_v1_0.c 	r = radeon_ring_test(rdev, TN_RING_TYPE_VCE1_INDEX, ring);
r                 368 drivers/gpu/drm/radeon/vce_v1_0.c 	if (r) {
r                 370 drivers/gpu/drm/radeon/vce_v1_0.c 		return r;
r                 375 drivers/gpu/drm/radeon/vce_v1_0.c 	r = radeon_ring_test(rdev, TN_RING_TYPE_VCE2_INDEX, ring);
r                 376 drivers/gpu/drm/radeon/vce_v1_0.c 	if (r) {
r                 378 drivers/gpu/drm/radeon/vce_v1_0.c 		return r;
r                 329 drivers/gpu/drm/rcar-du/rcar_du_regs.h #define DOOR_RGB(r, g, b)	(((r) << 18) | ((g) << 10) | ((b) << 2))
r                 331 drivers/gpu/drm/rcar-du/rcar_du_regs.h #define CDER_RGB(r, g, b)	(((r) << 18) | ((g) << 10) | ((b) << 2))
r                 333 drivers/gpu/drm/rcar-du/rcar_du_regs.h #define BPOR_RGB(r, g, b)	(((r) << 18) | ((g) << 10) | ((b) << 2))
r                 445 drivers/gpu/drm/savage/savage_drv.h #define BCI_CLIP_LR(l, r)            ((((r) << 16) | (l)) & 0x0FFF0FFF)
r                 447 drivers/gpu/drm/savage/savage_drv.h #define BCI_CLIP_BR(b, r)            ((((b) << 16) | (r)) & 0x0FFF0FFF)
r                 238 drivers/gpu/drm/scheduler/sched_entity.c 	int r;
r                 256 drivers/gpu/drm/scheduler/sched_entity.c 		r = dma_fence_add_callback(entity->last_scheduled,
r                 259 drivers/gpu/drm/scheduler/sched_entity.c 		if (r == -ENOENT)
r                 261 drivers/gpu/drm/scheduler/sched_entity.c 		else if (r)
r                 262 drivers/gpu/drm/scheduler/sched_entity.c 			DRM_ERROR("fence add callback failed (%d)\n", r);
r                 434 drivers/gpu/drm/scheduler/sched_main.c 	int r;
r                 450 drivers/gpu/drm/scheduler/sched_main.c 			r = dma_fence_add_callback(fence, &s_job->cb,
r                 452 drivers/gpu/drm/scheduler/sched_main.c 			if (r == -ENOENT)
r                 454 drivers/gpu/drm/scheduler/sched_main.c 			else if (r)
r                 456 drivers/gpu/drm/scheduler/sched_main.c 					  r);
r                 702 drivers/gpu/drm/scheduler/sched_main.c 	int r;
r                 742 drivers/gpu/drm/scheduler/sched_main.c 			r = dma_fence_add_callback(fence, &sched_job->cb,
r                 744 drivers/gpu/drm/scheduler/sched_main.c 			if (r == -ENOENT)
r                 746 drivers/gpu/drm/scheduler/sched_main.c 			else if (r)
r                 748 drivers/gpu/drm/scheduler/sched_main.c 					  r);
r                  21 drivers/gpu/drm/selftests/test-drm_damage_helper.c static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2,
r                  24 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	r->x1 = x1;
r                  25 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	r->y1 = y1;
r                  26 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	r->x2 = x2;
r                  27 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	r->y2 = y2;
r                  31 drivers/gpu/drm/selftests/test-drm_damage_helper.c 			    struct drm_mode_rect *r, uint32_t size)
r                  34 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	damage_blob->data = r;
r                  43 drivers/gpu/drm/selftests/test-drm_damage_helper.c static bool check_damage_clip(struct drm_plane_state *state, struct drm_rect *r,
r                  65 drivers/gpu/drm/selftests/test-drm_damage_helper.c 	if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) {
r                  66 drivers/gpu/drm/selftests/test-drm_damage_helper.c 		pr_err("Damage = %d %d %d %d\n", r->x1, r->y1, r->x2, r->y2);
r                 330 drivers/gpu/drm/selftests/test-drm_framebuffer.c static int execute_drm_mode_fb_cmd2(struct drm_mode_fb_cmd2 *r)
r                 336 drivers/gpu/drm/selftests/test-drm_framebuffer.c 	fb = drm_internal_framebuffer_create(&mock_drm_device, r, NULL);
r                 151 drivers/gpu/drm/sti/sti_cursor.c 	u32 a, r, g, b;
r                 157 drivers/gpu/drm/sti/sti_cursor.c 			r = (*src >> 22) & 3;
r                 160 drivers/gpu/drm/sti/sti_cursor.c 			*dst = a << 6 | r << 4 | g << 2 | b;
r                 170 drivers/gpu/drm/sti/sti_cursor.c 	unsigned int a, r, g, b;
r                 174 drivers/gpu/drm/sti/sti_cursor.c 		for (r = 0; r < 4; r++)
r                 178 drivers/gpu/drm/sti/sti_cursor.c 						  (r * 5) << 8 |
r                 454 drivers/gpu/drm/sti/sti_tvout.c 	int r, g, b, tmp, mask;
r                 468 drivers/gpu/drm/sti/sti_tvout.c 	r = (val & mask) >> TVO_VIP_REORDER_R_SHIFT;
r                 474 drivers/gpu/drm/sti/sti_tvout.c 		   reorder[r], reorder[TVO_VIP_REORDER_CR_R_SEL],
r                  37 drivers/gpu/drm/sun4i/sun4i_backend.h #define SUN4I_BACKEND_BACKCOLOR(r, g, b)		(((r) << 16) | ((g) << 8) | (b))
r                 199 drivers/gpu/drm/tilcdc/tilcdc_crtc.c 	int r = rate / 100, rr = real_rate / 100;
r                 201 drivers/gpu/drm/tilcdc/tilcdc_crtc.c 	return (unsigned int)(abs(((rr - r) * 100) / r));
r                 441 drivers/gpu/drm/ttm/ttm_bo.c 	int r;
r                 448 drivers/gpu/drm/ttm/ttm_bo.c 	r = dma_resv_copy_fences(&bo->base._resv, bo->base.resv);
r                 449 drivers/gpu/drm/ttm/ttm_bo.c 	if (r)
r                 452 drivers/gpu/drm/ttm/ttm_bo.c 	return r;
r                 818 drivers/gpu/drm/ttm/ttm_bo.c 	int r;
r                 824 drivers/gpu/drm/ttm/ttm_bo.c 		r = dma_resv_lock_interruptible(busy_bo->base.resv,
r                 827 drivers/gpu/drm/ttm/ttm_bo.c 		r = dma_resv_lock(busy_bo->base.resv, ticket);
r                 834 drivers/gpu/drm/ttm/ttm_bo.c 	if (!r)
r                 837 drivers/gpu/drm/ttm/ttm_bo.c 	return r == -EDEADLK ? -EBUSY : r;
r                 445 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r = 0;
r                 449 drivers/gpu/drm/ttm/ttm_page_alloc.c 		r = ttm_set_pages_array_uc(pages, cpages);
r                 450 drivers/gpu/drm/ttm/ttm_page_alloc.c 		if (r)
r                 454 drivers/gpu/drm/ttm/ttm_page_alloc.c 		r = ttm_set_pages_array_wc(pages, cpages);
r                 455 drivers/gpu/drm/ttm/ttm_page_alloc.c 		if (r)
r                 461 drivers/gpu/drm/ttm/ttm_page_alloc.c 	return r;
r                 493 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r = 0;
r                 516 drivers/gpu/drm/ttm/ttm_page_alloc.c 				r = ttm_set_pages_caching(caching_array,
r                 518 drivers/gpu/drm/ttm/ttm_page_alloc.c 				if (r)
r                 523 drivers/gpu/drm/ttm/ttm_page_alloc.c 			r = -ENOMEM;
r                 541 drivers/gpu/drm/ttm/ttm_page_alloc.c 				r = ttm_set_pages_caching(caching_array,
r                 543 drivers/gpu/drm/ttm/ttm_page_alloc.c 				if (r) {
r                 555 drivers/gpu/drm/ttm/ttm_page_alloc.c 		r = ttm_set_pages_caching(caching_array, cstate, cpages);
r                 556 drivers/gpu/drm/ttm/ttm_page_alloc.c 		if (r)
r                 564 drivers/gpu/drm/ttm/ttm_page_alloc.c 	return r;
r                 576 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r;
r                 602 drivers/gpu/drm/ttm/ttm_page_alloc.c 		r = ttm_alloc_new_pages(&new_pages, pool->gfp_flags, ttm_flags,
r                 606 drivers/gpu/drm/ttm/ttm_page_alloc.c 		if (!r) {
r                 638 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r = 0;
r                 700 drivers/gpu/drm/ttm/ttm_page_alloc.c 		r = ttm_alloc_new_pages(pages, gfp_flags, ttm_flags, cstate,
r                 704 drivers/gpu/drm/ttm/ttm_page_alloc.c 	return r;
r                 836 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r;
r                 917 drivers/gpu/drm/ttm/ttm_page_alloc.c 	r = ttm_page_pool_get_pages(pool, &plist, flags, cstate,
r                 930 drivers/gpu/drm/ttm/ttm_page_alloc.c 	if (r) {
r                 936 drivers/gpu/drm/ttm/ttm_page_alloc.c 		return r;
r                1101 drivers/gpu/drm/ttm/ttm_page_alloc.c 	int r;
r                1103 drivers/gpu/drm/ttm/ttm_page_alloc.c 	r = ttm_pool_populate(&tt->ttm, ctx);
r                1104 drivers/gpu/drm/ttm/ttm_page_alloc.c 	if (r)
r                1105 drivers/gpu/drm/ttm/ttm_page_alloc.c 		return r;
r                 269 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	int r = 0;
r                 272 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		r = ttm_set_pages_array_uc(pages, cpages);
r                 273 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		if (r)
r                 278 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		r = ttm_set_pages_array_wc(pages, cpages);
r                 279 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		if (r)
r                 283 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	return r;
r                 706 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	int r = 0;
r                 734 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 				r = ttm_set_pages_caching(pool, caching_array,
r                 736 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 				if (r)
r                 741 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 			r = -ENOMEM;
r                 760 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 				r = ttm_set_pages_caching(pool, caching_array,
r                 762 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 				if (r) {
r                 774 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		r = ttm_set_pages_caching(pool, caching_array, cpages);
r                 775 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		if (r)
r                 781 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	return r;
r                 791 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	int r = pool->npages_free;
r                 802 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		r = ttm_dma_pool_alloc_new_pages(pool, &d_pages, count);
r                 805 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 		if (!r) {
r                 810 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 			r = count;
r                 816 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 				 pool->dev_name, pool->name, r);
r                 823 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 			r = cpages;
r                 826 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c 	return r;
r                  90 drivers/gpu/drm/udl/udl_drv.c 	int r;
r                  96 drivers/gpu/drm/udl/udl_drv.c 	r = drm_dev_init(&udl->drm, &driver, &interface->dev);
r                  97 drivers/gpu/drm/udl/udl_drv.c 	if (r) {
r                  99 drivers/gpu/drm/udl/udl_drv.c 		return ERR_PTR(r);
r                 105 drivers/gpu/drm/udl/udl_drv.c 	r = udl_init(udl);
r                 106 drivers/gpu/drm/udl/udl_drv.c 	if (r) {
r                 109 drivers/gpu/drm/udl/udl_drv.c 		return ERR_PTR(r);
r                 119 drivers/gpu/drm/udl/udl_drv.c 	int r;
r                 126 drivers/gpu/drm/udl/udl_drv.c 	r = drm_dev_register(&udl->drm, 0);
r                 127 drivers/gpu/drm/udl/udl_drv.c 	if (r)
r                 136 drivers/gpu/drm/udl/udl_drv.c 	return r;
r                  97 drivers/gpu/drm/vc4/vc4_kms.c 	u16 r;
r                 100 drivers/gpu/drm/vc4/vc4_kms.c 	r = in & BIT_ULL(63) ? BIT(9) : 0;
r                 104 drivers/gpu/drm/vc4/vc4_kms.c 		r |= GENMASK(8, 0);
r                 107 drivers/gpu/drm/vc4/vc4_kms.c 		r |= (in >> 23) & GENMASK(8, 0);
r                 110 drivers/gpu/drm/vc4/vc4_kms.c 	return r;
r                 165 drivers/gpu/drm/virtio/virtgpu_display.c 	width  = le32_to_cpu(output->info.r.width);
r                 166 drivers/gpu/drm/virtio/virtgpu_display.c 	height = le32_to_cpu(output->info.r.height);
r                 192 drivers/gpu/drm/virtio/virtgpu_display.c 	width  = le32_to_cpu(output->info.r.width);
r                 193 drivers/gpu/drm/virtio/virtgpu_display.c 	height = le32_to_cpu(output->info.r.height);
r                 262 drivers/gpu/drm/virtio/virtgpu_display.c 		output->info.r.width = cpu_to_le32(XRES_DEF);
r                 263 drivers/gpu/drm/virtio/virtgpu_display.c 		output->info.r.height = cpu_to_le32(YRES_DEF);
r                 405 drivers/gpu/drm/virtio/virtgpu_drv.h 	int r;
r                 407 drivers/gpu/drm/virtio/virtgpu_drv.h 	r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
r                 408 drivers/gpu/drm/virtio/virtgpu_drv.h 	if (unlikely(r != 0)) {
r                 409 drivers/gpu/drm/virtio/virtgpu_drv.h 		if (r != -ERESTARTSYS) {
r                 414 drivers/gpu/drm/virtio/virtgpu_drv.h 		return r;
r                 140 drivers/gpu/drm/virtio/virtgpu_gem.c 	int r;
r                 145 drivers/gpu/drm/virtio/virtgpu_gem.c 	r = virtio_gpu_object_reserve(qobj, false);
r                 146 drivers/gpu/drm/virtio/virtgpu_gem.c 	if (r)
r                 147 drivers/gpu/drm/virtio/virtgpu_gem.c 		return r;
r                 161 drivers/gpu/drm/virtio/virtgpu_gem.c 	int r;
r                 166 drivers/gpu/drm/virtio/virtgpu_gem.c 	r = virtio_gpu_object_reserve(qobj, false);
r                 167 drivers/gpu/drm/virtio/virtgpu_gem.c 	if (r)
r                 192 drivers/gpu/drm/virtio/virtgpu_object.c 	int r;
r                 196 drivers/gpu/drm/virtio/virtgpu_object.c 	r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap);
r                 197 drivers/gpu/drm/virtio/virtgpu_object.c 	if (r)
r                 198 drivers/gpu/drm/virtio/virtgpu_object.c 		return r;
r                 250 drivers/gpu/drm/virtio/virtgpu_object.c 	int r;
r                 252 drivers/gpu/drm/virtio/virtgpu_object.c 	r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
r                 253 drivers/gpu/drm/virtio/virtgpu_object.c 	if (unlikely(r != 0))
r                 254 drivers/gpu/drm/virtio/virtgpu_object.c 		return r;
r                 255 drivers/gpu/drm/virtio/virtgpu_object.c 	r = ttm_bo_wait(&bo->tbo, true, no_wait);
r                 257 drivers/gpu/drm/virtio/virtgpu_object.c 	return r;
r                  56 drivers/gpu/drm/virtio/virtgpu_ttm.c 	int r;
r                  65 drivers/gpu/drm/virtio/virtgpu_ttm.c 	r = ttm_bo_mmap(filp, vma, &vgdev->mman.bdev);
r                  67 drivers/gpu/drm/virtio/virtgpu_ttm.c 	return r;
r                 276 drivers/gpu/drm/virtio/virtgpu_ttm.c 	int r;
r                 279 drivers/gpu/drm/virtio/virtgpu_ttm.c 	r = ttm_bo_device_init(&vgdev->mman.bdev,
r                 283 drivers/gpu/drm/virtio/virtgpu_ttm.c 	if (r) {
r                 284 drivers/gpu/drm/virtio/virtgpu_ttm.c 		DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
r                 288 drivers/gpu/drm/virtio/virtgpu_ttm.c 	r = ttm_bo_init_mm(&vgdev->mman.bdev, TTM_PL_TT, 0);
r                 289 drivers/gpu/drm/virtio/virtgpu_ttm.c 	if (r) {
r                 298 drivers/gpu/drm/virtio/virtgpu_ttm.c 	return r;
r                 454 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.width = cpu_to_le32(width);
r                 455 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.height = cpu_to_le32(height);
r                 456 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.x = cpu_to_le32(x);
r                 457 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.y = cpu_to_le32(y);
r                 475 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.width = cpu_to_le32(width);
r                 476 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.height = cpu_to_le32(height);
r                 477 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.x = cpu_to_le32(x);
r                 478 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.y = cpu_to_le32(y);
r                 505 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.width = width;
r                 506 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.height = height;
r                 507 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.x = x;
r                 508 drivers/gpu/drm/virtio/virtgpu_vq.c 	cmd_p->r.y = y;
r                 548 drivers/gpu/drm/virtio/virtgpu_vq.c 				  le32_to_cpu(resp->pmodes[i].r.width),
r                 549 drivers/gpu/drm/virtio/virtgpu_vq.c 				  le32_to_cpu(resp->pmodes[i].r.height),
r                 550 drivers/gpu/drm/virtio/virtgpu_vq.c 				  le32_to_cpu(resp->pmodes[i].r.x),
r                 551 drivers/gpu/drm/virtio/virtgpu_vq.c 				  le32_to_cpu(resp->pmodes[i].r.y));
r                 139 drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h       float r;
r                 686 drivers/gpu/drm/vmwgfx/device_include/svga_reg.h          uint32 r : 8;
r                2096 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 			  u16 *r, u16 *g, u16 *b,
r                2105 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 			  r[i], g[i], b[i]);
r                2106 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c 		vmw_write(dev_priv, SVGA_PALETTE_BASE + i * 3 + 0, r[i] >> 8);
r                 393 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h 			   u16 *r, u16 *g, u16 *b,
r                 571 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h 					    struct drm_rect *r)
r                 576 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h 	drm_rect_translate(r, translate_crtc_x, translate_crtc_y);
r                  38 drivers/gpu/host1x/dev.c void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r)
r                  40 drivers/gpu/host1x/dev.c 	writel(v, host1x->hv_regs + r);
r                  43 drivers/gpu/host1x/dev.c u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r)
r                  45 drivers/gpu/host1x/dev.c 	return readl(host1x->hv_regs + r);
r                  48 drivers/gpu/host1x/dev.c void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r)
r                  52 drivers/gpu/host1x/dev.c 	writel(v, sync_regs + r);
r                  55 drivers/gpu/host1x/dev.c u32 host1x_sync_readl(struct host1x *host1x, u32 r)
r                  59 drivers/gpu/host1x/dev.c 	return readl(sync_regs + r);
r                  62 drivers/gpu/host1x/dev.c void host1x_ch_writel(struct host1x_channel *ch, u32 v, u32 r)
r                  64 drivers/gpu/host1x/dev.c 	writel(v, ch->regs + r);
r                  67 drivers/gpu/host1x/dev.c u32 host1x_ch_readl(struct host1x_channel *ch, u32 r)
r                  69 drivers/gpu/host1x/dev.c 	return readl(ch->regs + r);
r                 145 drivers/gpu/host1x/dev.h void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v);
r                 146 drivers/gpu/host1x/dev.h u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r);
r                 147 drivers/gpu/host1x/dev.h void host1x_sync_writel(struct host1x *host1x, u32 r, u32 v);
r                 148 drivers/gpu/host1x/dev.h u32 host1x_sync_readl(struct host1x *host1x, u32 r);
r                 149 drivers/gpu/host1x/dev.h void host1x_ch_writel(struct host1x_channel *ch, u32 r, u32 v);
r                 150 drivers/gpu/host1x/dev.h u32 host1x_ch_readl(struct host1x_channel *ch, u32 r);
r                  48 drivers/gpu/host1x/hw/hw_host1x01_channel.h static inline u32 host1x_channel_fifostat_cfempty_v(u32 r)
r                  50 drivers/gpu/host1x/hw/hw_host1x01_channel.h 	return (r >> 10) & 0x1;
r                  52 drivers/gpu/host1x/hw/hw_host1x01_channel.h #define HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V(r) \
r                  53 drivers/gpu/host1x/hw/hw_host1x01_channel.h 	host1x_channel_fifostat_cfempty_v(r)
r                  90 drivers/gpu/host1x/hw/hw_host1x01_channel.h static inline u32 host1x_channel_dmactrl_dmastop_v(u32 r)
r                  92 drivers/gpu/host1x/hw/hw_host1x01_channel.h 	return (r >> 0) & 0x1;
r                  94 drivers/gpu/host1x/hw/hw_host1x01_channel.h #define HOST1X_CHANNEL_DMACTRL_DMASTOP_V(r) \
r                  95 drivers/gpu/host1x/hw/hw_host1x01_channel.h 	host1x_channel_dmactrl_dmastop_v(r)
r                  74 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cf_setup_base_v(u32 r)
r                  76 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 0) & 0x1ff;
r                  78 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CF_SETUP_BASE_V(r) \
r                  79 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cf_setup_base_v(r)
r                  80 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cf_setup_limit_v(u32 r)
r                  82 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 16) & 0x1ff;
r                  84 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CF_SETUP_LIMIT_V(r) \
r                  85 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cf_setup_limit_v(r)
r                 128 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_mlock_owner_cpu_owns_v(u32 r)
r                 130 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 1) & 0x1;
r                 132 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CPU_OWNS_V(r) \
r                 133 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_mlock_owner_cpu_owns_v(r)
r                 134 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_mlock_owner_ch_owns_v(u32 r)
r                 136 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 0) & 0x1;
r                 138 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CH_OWNS_V(r) \
r                 139 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_mlock_owner_ch_owns_v(r)
r                 200 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(u32 r)
r                 202 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 0) & 0x1ff;
r                 204 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V(r) \
r                 205 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(r)
r                 206 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(u32 r)
r                 208 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 16) & 0x1ff;
r                 210 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V(r) \
r                 211 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(r)
r                 218 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cbstat_cboffset_v(u32 r)
r                 220 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 0) & 0xffff;
r                 222 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CBSTAT_CBOFFSET_V(r) \
r                 223 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cbstat_cboffset_v(r)
r                 224 drivers/gpu/host1x/hw/hw_host1x01_sync.h static inline u32 host1x_sync_cbstat_cbclass_v(u32 r)
r                 226 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	return (r >> 16) & 0x3ff;
r                 228 drivers/gpu/host1x/hw/hw_host1x01_sync.h #define HOST1X_SYNC_CBSTAT_CBCLASS_V(r) \
r                 229 drivers/gpu/host1x/hw/hw_host1x01_sync.h 	host1x_sync_cbstat_cbclass_v(r)
r                  48 drivers/gpu/host1x/hw/hw_host1x02_channel.h static inline u32 host1x_channel_fifostat_cfempty_v(u32 r)
r                  50 drivers/gpu/host1x/hw/hw_host1x02_channel.h 	return (r >> 11) & 0x1;
r                  52 drivers/gpu/host1x/hw/hw_host1x02_channel.h #define HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V(r) \
r                  53 drivers/gpu/host1x/hw/hw_host1x02_channel.h 	host1x_channel_fifostat_cfempty_v(r)
r                  90 drivers/gpu/host1x/hw/hw_host1x02_channel.h static inline u32 host1x_channel_dmactrl_dmastop_v(u32 r)
r                  92 drivers/gpu/host1x/hw/hw_host1x02_channel.h 	return (r >> 0) & 0x1;
r                  94 drivers/gpu/host1x/hw/hw_host1x02_channel.h #define HOST1X_CHANNEL_DMACTRL_DMASTOP_V(r) \
r                  95 drivers/gpu/host1x/hw/hw_host1x02_channel.h 	host1x_channel_dmactrl_dmastop_v(r)
r                  74 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cf_setup_base_v(u32 r)
r                  76 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 0) & 0x3ff;
r                  78 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CF_SETUP_BASE_V(r) \
r                  79 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cf_setup_base_v(r)
r                  80 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cf_setup_limit_v(u32 r)
r                  82 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 16) & 0x3ff;
r                  84 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CF_SETUP_LIMIT_V(r) \
r                  85 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cf_setup_limit_v(r)
r                 128 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_mlock_owner_cpu_owns_v(u32 r)
r                 130 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 1) & 0x1;
r                 132 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CPU_OWNS_V(r) \
r                 133 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_mlock_owner_cpu_owns_v(r)
r                 134 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_mlock_owner_ch_owns_v(u32 r)
r                 136 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 0) & 0x1;
r                 138 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CH_OWNS_V(r) \
r                 139 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_mlock_owner_ch_owns_v(r)
r                 200 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(u32 r)
r                 202 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 0) & 0x3ff;
r                 204 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V(r) \
r                 205 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(r)
r                 206 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(u32 r)
r                 208 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 16) & 0x3ff;
r                 210 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V(r) \
r                 211 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(r)
r                 218 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cbstat_cboffset_v(u32 r)
r                 220 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 0) & 0xffff;
r                 222 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CBSTAT_CBOFFSET_V(r) \
r                 223 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cbstat_cboffset_v(r)
r                 224 drivers/gpu/host1x/hw/hw_host1x02_sync.h static inline u32 host1x_sync_cbstat_cbclass_v(u32 r)
r                 226 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	return (r >> 16) & 0x3ff;
r                 228 drivers/gpu/host1x/hw/hw_host1x02_sync.h #define HOST1X_SYNC_CBSTAT_CBCLASS_V(r) \
r                 229 drivers/gpu/host1x/hw/hw_host1x02_sync.h 	host1x_sync_cbstat_cbclass_v(r)
r                  48 drivers/gpu/host1x/hw/hw_host1x04_channel.h static inline u32 host1x_channel_fifostat_cfempty_v(u32 r)
r                  50 drivers/gpu/host1x/hw/hw_host1x04_channel.h 	return (r >> 11) & 0x1;
r                  52 drivers/gpu/host1x/hw/hw_host1x04_channel.h #define HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V(r) \
r                  53 drivers/gpu/host1x/hw/hw_host1x04_channel.h 	host1x_channel_fifostat_cfempty_v(r)
r                  90 drivers/gpu/host1x/hw/hw_host1x04_channel.h static inline u32 host1x_channel_dmactrl_dmastop_v(u32 r)
r                  92 drivers/gpu/host1x/hw/hw_host1x04_channel.h 	return (r >> 0) & 0x1;
r                  94 drivers/gpu/host1x/hw/hw_host1x04_channel.h #define HOST1X_CHANNEL_DMACTRL_DMASTOP_V(r) \
r                  95 drivers/gpu/host1x/hw/hw_host1x04_channel.h 	host1x_channel_dmactrl_dmastop_v(r)
r                  74 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cf_setup_base_v(u32 r)
r                  76 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 0) & 0x3ff;
r                  78 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CF_SETUP_BASE_V(r) \
r                  79 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cf_setup_base_v(r)
r                  80 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cf_setup_limit_v(u32 r)
r                  82 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 16) & 0x3ff;
r                  84 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CF_SETUP_LIMIT_V(r) \
r                  85 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cf_setup_limit_v(r)
r                 128 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_mlock_owner_cpu_owns_v(u32 r)
r                 130 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 1) & 0x1;
r                 132 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CPU_OWNS_V(r) \
r                 133 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_mlock_owner_cpu_owns_v(r)
r                 134 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_mlock_owner_ch_owns_v(u32 r)
r                 136 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 0) & 0x1;
r                 138 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CH_OWNS_V(r) \
r                 139 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_mlock_owner_ch_owns_v(r)
r                 200 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(u32 r)
r                 202 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 0) & 0x3ff;
r                 204 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V(r) \
r                 205 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(r)
r                 206 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(u32 r)
r                 208 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 16) & 0x3ff;
r                 210 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V(r) \
r                 211 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(r)
r                 218 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cbstat_cboffset_v(u32 r)
r                 220 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 0) & 0xffff;
r                 222 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CBSTAT_CBOFFSET_V(r) \
r                 223 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cbstat_cboffset_v(r)
r                 224 drivers/gpu/host1x/hw/hw_host1x04_sync.h static inline u32 host1x_sync_cbstat_cbclass_v(u32 r)
r                 226 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	return (r >> 16) & 0x3ff;
r                 228 drivers/gpu/host1x/hw/hw_host1x04_sync.h #define HOST1X_SYNC_CBSTAT_CBCLASS_V(r) \
r                 229 drivers/gpu/host1x/hw/hw_host1x04_sync.h 	host1x_sync_cbstat_cbclass_v(r)
r                  48 drivers/gpu/host1x/hw/hw_host1x05_channel.h static inline u32 host1x_channel_fifostat_cfempty_v(u32 r)
r                  50 drivers/gpu/host1x/hw/hw_host1x05_channel.h 	return (r >> 11) & 0x1;
r                  52 drivers/gpu/host1x/hw/hw_host1x05_channel.h #define HOST1X_CHANNEL_FIFOSTAT_CFEMPTY_V(r) \
r                  53 drivers/gpu/host1x/hw/hw_host1x05_channel.h 	host1x_channel_fifostat_cfempty_v(r)
r                  90 drivers/gpu/host1x/hw/hw_host1x05_channel.h static inline u32 host1x_channel_dmactrl_dmastop_v(u32 r)
r                  92 drivers/gpu/host1x/hw/hw_host1x05_channel.h 	return (r >> 0) & 0x1;
r                  94 drivers/gpu/host1x/hw/hw_host1x05_channel.h #define HOST1X_CHANNEL_DMACTRL_DMASTOP_V(r) \
r                  95 drivers/gpu/host1x/hw/hw_host1x05_channel.h 	host1x_channel_dmactrl_dmastop_v(r)
r                  74 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cf_setup_base_v(u32 r)
r                  76 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 0) & 0x3ff;
r                  78 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CF_SETUP_BASE_V(r) \
r                  79 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cf_setup_base_v(r)
r                  80 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cf_setup_limit_v(u32 r)
r                  82 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 16) & 0x3ff;
r                  84 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CF_SETUP_LIMIT_V(r) \
r                  85 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cf_setup_limit_v(r)
r                 122 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_mlock_owner_chid_v(u32 r)
r                 124 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 8) & 0xf;
r                 128 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_mlock_owner_cpu_owns_v(u32 r)
r                 130 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 1) & 0x1;
r                 132 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CPU_OWNS_V(r) \
r                 133 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_mlock_owner_cpu_owns_v(r)
r                 134 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_mlock_owner_ch_owns_v(u32 r)
r                 136 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 0) & 0x1;
r                 138 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_MLOCK_OWNER_CH_OWNS_V(r) \
r                 139 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_mlock_owner_ch_owns_v(r)
r                 200 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(u32 r)
r                 202 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 0) & 0x3ff;
r                 204 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_RD_PTR_V(r) \
r                 205 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cfpeek_ptrs_cf_rd_ptr_v(r)
r                 206 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(u32 r)
r                 208 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 16) & 0x3ff;
r                 210 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CFPEEK_PTRS_CF_WR_PTR_V(r) \
r                 211 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cfpeek_ptrs_cf_wr_ptr_v(r)
r                 218 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cbstat_cboffset_v(u32 r)
r                 220 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 0) & 0xffff;
r                 222 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CBSTAT_CBOFFSET_V(r) \
r                 223 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cbstat_cboffset_v(r)
r                 224 drivers/gpu/host1x/hw/hw_host1x05_sync.h static inline u32 host1x_sync_cbstat_cbclass_v(u32 r)
r                 226 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	return (r >> 16) & 0x3ff;
r                 228 drivers/gpu/host1x/hw/hw_host1x05_sync.h #define HOST1X_SYNC_CBSTAT_CBCLASS_V(r) \
r                 229 drivers/gpu/host1x/hw/hw_host1x05_sync.h 	host1x_sync_cbstat_cbclass_v(r)
r                1753 drivers/hid/hid-input.c 	unsigned long r = 0;
r                1756 drivers/hid/hid-input.c 		r |= hidinput->input->evbit[i];
r                1759 drivers/hid/hid-input.c 		r |= hidinput->input->keybit[i];
r                1762 drivers/hid/hid-input.c 		r |= hidinput->input->relbit[i];
r                1765 drivers/hid/hid-input.c 		r |= hidinput->input->absbit[i];
r                1768 drivers/hid/hid-input.c 		r |= hidinput->input->mscbit[i];
r                1771 drivers/hid/hid-input.c 		r |= hidinput->input->ledbit[i];
r                1774 drivers/hid/hid-input.c 		r |= hidinput->input->sndbit[i];
r                1777 drivers/hid/hid-input.c 		r |= hidinput->input->ffbit[i];
r                1780 drivers/hid/hid-input.c 		r |= hidinput->input->swbit[i];
r                1782 drivers/hid/hid-input.c 	return !!r;
r                  43 drivers/hid/hid-led.c #define RISO_KAGAKU_IX(r, g, b) riso_kagaku_tbl[((r)?1:0)+((g)?2:0)+((b)?4:0)]
r                 177 drivers/hid/hid-led.c 	enum led_brightness r, g, b;
r                 179 drivers/hid/hid-led.c 	r = rgb->red.cdev.brightness;
r                 184 drivers/hid/hid-led.c 		return RISO_KAGAKU_IX(r, b, g);
r                 186 drivers/hid/hid-led.c 		return RISO_KAGAKU_IX(r, g, b);
r                 288 drivers/hid/hid-microsoft.c 	struct xb1s_ff_report *r = ms->output_report_dmabuf;
r                 291 drivers/hid/hid-microsoft.c 	memset(r, 0, sizeof(*r));
r                 293 drivers/hid/hid-microsoft.c 	r->report_id = XB1S_FF_REPORT;
r                 294 drivers/hid/hid-microsoft.c 	r->enable = ENABLE_WEAK | ENABLE_STRONG;
r                 300 drivers/hid/hid-microsoft.c 	r->duration_10ms = U8_MAX;
r                 301 drivers/hid/hid-microsoft.c 	r->loop_count = U8_MAX;
r                 302 drivers/hid/hid-microsoft.c 	r->magnitude[MAGNITUDE_STRONG] = ms->strong; /* left actuator */
r                 303 drivers/hid/hid-microsoft.c 	r->magnitude[MAGNITUDE_WEAK] = ms->weak;     /* right actuator */
r                 305 drivers/hid/hid-microsoft.c 	ret = hid_hw_output_report(hdev, (__u8 *)r, sizeof(*r));
r                 594 drivers/hid/hid-multitouch.c 	int r, n;
r                 608 drivers/hid/hid-multitouch.c 	for (r = 0; r < report->maxfield; r++) {
r                 609 drivers/hid/hid-multitouch.c 		field = report->field[r];
r                1154 drivers/hid/hid-multitouch.c 	int r, n;
r                1198 drivers/hid/hid-multitouch.c 	for (r = 0; r < report->maxfield; r++) {
r                1199 drivers/hid/hid-multitouch.c 		field = report->field[r];
r                 472 drivers/hid/hid-sony.c 	u8 r, g, b;
r                2202 drivers/hid/hid-sony.c 	report->r = sc->led_state[0];
r                 132 drivers/hid/hid-steam.c 	struct hid_report *r;
r                 136 drivers/hid/hid-steam.c 	r = steam->hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0];
r                 137 drivers/hid/hid-steam.c 	if (hid_report_len(r) < 64)
r                 140 drivers/hid/hid-steam.c 	buf = hid_alloc_report_buf(r, GFP_KERNEL);
r                 151 drivers/hid/hid-steam.c 			buf, hid_report_len(r) + 1,
r                 162 drivers/hid/hid-steam.c 	struct hid_report *r;
r                 167 drivers/hid/hid-steam.c 	r = steam->hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0];
r                 168 drivers/hid/hid-steam.c 	if (hid_report_len(r) < 64)
r                 171 drivers/hid/hid-steam.c 	buf = hid_alloc_report_buf(r, GFP_KERNEL);
r                1799 drivers/hid/hid-wiimote-modules.c 	int r;
r                1801 drivers/hid/hid-wiimote-modules.c 	r = 0;
r                1802 drivers/hid/hid-wiimote-modules.c 	r += sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks[0]);
r                1803 drivers/hid/hid-wiimote-modules.c 	r += sprintf(&out[r], "%+06hd ", wdata->state.calib_pro_sticks[1]);
r                1804 drivers/hid/hid-wiimote-modules.c 	r += sprintf(&out[r], "%+06hd:", wdata->state.calib_pro_sticks[2]);
r                1805 drivers/hid/hid-wiimote-modules.c 	r += sprintf(&out[r], "%+06hd\n", wdata->state.calib_pro_sticks[3]);
r                1807 drivers/hid/hid-wiimote-modules.c 	return r;
r                1815 drivers/hid/hid-wiimote-modules.c 	int r;
r                1823 drivers/hid/hid-wiimote-modules.c 		r = sscanf(buf, "%hd:%hd %hd:%hd", &x1, &y1, &x2, &y2);
r                1824 drivers/hid/hid-wiimote-modules.c 		if (r != 4)
r                1978 drivers/hid/hid-wiimote-modules.c 	__u8 o, r, y, g, b, bass, bm, bp;
r                2018 drivers/hid/hid-wiimote-modules.c 	r = !(ext[5] & 0x40);
r                2035 drivers/hid/hid-wiimote-modules.c 				     r, &wdata->state.pressure_drums[1],
r                 194 drivers/hid/usbhid/hid-core.c 	int r;
r                 204 drivers/hid/usbhid/hid-core.c 		r = usb_autopm_get_interface_async(usbhid->intf);
r                 205 drivers/hid/usbhid/hid-core.c 		if (r < 0)
r                 206 drivers/hid/usbhid/hid-core.c 			return r;
r                 214 drivers/hid/usbhid/hid-core.c 			return r;
r                 232 drivers/hid/usbhid/hid-core.c 	int r;
r                 243 drivers/hid/usbhid/hid-core.c 		r = usb_autopm_get_interface_async(usbhid->intf);
r                 244 drivers/hid/usbhid/hid-core.c 		if (r < 0)
r                 245 drivers/hid/usbhid/hid-core.c 			return r;
r                 253 drivers/hid/usbhid/hid-core.c 			return r;
r                 340 drivers/hid/usbhid/hid-core.c 	int r;
r                 356 drivers/hid/usbhid/hid-core.c 	r = usb_submit_urb(usbhid->urbout, GFP_ATOMIC);
r                 357 drivers/hid/usbhid/hid-core.c 	if (r < 0) {
r                 358 drivers/hid/usbhid/hid-core.c 		hid_err(hid, "usb_submit_urb(out) failed: %d\n", r);
r                 359 drivers/hid/usbhid/hid-core.c 		return r;
r                 370 drivers/hid/usbhid/hid-core.c 	int len, r;
r                 416 drivers/hid/usbhid/hid-core.c 	r = usb_submit_urb(usbhid->urbctrl, GFP_ATOMIC);
r                 417 drivers/hid/usbhid/hid-core.c 	if (r < 0) {
r                 418 drivers/hid/usbhid/hid-core.c 		hid_err(hid, "usb_submit_urb(ctrl) failed: %d\n", r);
r                 419 drivers/hid/usbhid/hid-core.c 		return r;
r                1250 drivers/hid/usbhid/hid-core.c 	int r = 0;
r                1254 drivers/hid/usbhid/hid-core.c 		r = usb_autopm_get_interface(usbhid->intf);
r                1262 drivers/hid/usbhid/hid-core.c 	return r;
r                 602 drivers/hid/usbhid/hiddev.c 	int i, r = -EINVAL;
r                 608 drivers/hid/usbhid/hiddev.c 		r = -ENODEV;
r                 617 drivers/hid/usbhid/hiddev.c 		r = put_user(HID_VERSION, (int __user *)arg) ?
r                 631 drivers/hid/usbhid/hiddev.c 			r = hid->collection[i].usage;
r                 650 drivers/hid/usbhid/hiddev.c 			r = copy_to_user(user_arg, &dinfo, sizeof(dinfo)) ?
r                 656 drivers/hid/usbhid/hiddev.c 		r = put_user(list->flags, (int __user *)arg) ?
r                 665 drivers/hid/usbhid/hiddev.c 				r = -EFAULT;
r                 676 drivers/hid/usbhid/hiddev.c 			r = 0;
r                 681 drivers/hid/usbhid/hiddev.c 		r = hiddev_ioctl_string(hiddev, cmd, user_arg);
r                 687 drivers/hid/usbhid/hiddev.c 		r = 0;
r                 692 drivers/hid/usbhid/hiddev.c 			r = -EFAULT;
r                 706 drivers/hid/usbhid/hiddev.c 		r = 0;
r                 711 drivers/hid/usbhid/hiddev.c 			r = -EFAULT;
r                 725 drivers/hid/usbhid/hiddev.c 		r = 0;
r                 730 drivers/hid/usbhid/hiddev.c 			r = -EFAULT;
r                 740 drivers/hid/usbhid/hiddev.c 		r = copy_to_user(user_arg, &rinfo, sizeof(rinfo)) ?
r                 746 drivers/hid/usbhid/hiddev.c 			r = -EFAULT;
r                 779 drivers/hid/usbhid/hiddev.c 		r = copy_to_user(user_arg, &finfo, sizeof(finfo)) ?
r                 794 drivers/hid/usbhid/hiddev.c 		r = hiddev_ioctl_usage(hiddev, cmd, user_arg);
r                 799 drivers/hid/usbhid/hiddev.c 			r = -EFAULT;
r                 812 drivers/hid/usbhid/hiddev.c 		r = copy_to_user(user_arg, &cinfo, sizeof(cinfo)) ?
r                 824 drivers/hid/usbhid/hiddev.c 			r = copy_to_user(user_arg, hid->name, len) ?
r                 833 drivers/hid/usbhid/hiddev.c 			r = copy_to_user(user_arg, hid->phys, len) ?
r                 841 drivers/hid/usbhid/hiddev.c 	return r;
r                 553 drivers/hid/wacom_sys.c 	struct hid_report *r;
r                 560 drivers/hid/wacom_sys.c 	r = re->report_id_hash[hid_data->inputmode];
r                 561 drivers/hid/wacom_sys.c 	if (r) {
r                 562 drivers/hid/wacom_sys.c 		r->field[0]->value[hid_data->inputmode_index] = 2;
r                 563 drivers/hid/wacom_sys.c 		hid_hw_request(hdev, r, HID_REQ_SET_REPORT);
r                 572 drivers/hid/wacom_sys.c 	struct hid_report *r;
r                 581 drivers/hid/wacom_sys.c 	r = re->report_id_hash[wacom_wac->mode_report];
r                 582 drivers/hid/wacom_sys.c 	if (!r)
r                 585 drivers/hid/wacom_sys.c 	rep_data = hid_alloc_report_buf(r, GFP_KERNEL);
r                 589 drivers/hid/wacom_sys.c 	length = hid_report_len(r);
r                 462 drivers/hid/wacom_wac.c 	struct hid_report *r;
r                 467 drivers/hid/wacom_wac.c 		r = re->report_id_hash[WACOM_REPORT_INTUOSHT2_ID];
r                 469 drivers/hid/wacom_wac.c 		r = re->report_id_hash[WACOM_REPORT_INTUOS_ID1];
r                 470 drivers/hid/wacom_wac.c 	if (r) {
r                 471 drivers/hid/wacom_wac.c 		hid_hw_request(wacom->hdev, r, HID_REQ_GET_REPORT);
r                2736 drivers/hid/wacom_wac.c 	int r;
r                2738 drivers/hid/wacom_wac.c 	for (r = field_index; r < report->maxfield; r++) {
r                2742 drivers/hid/wacom_wac.c 		field = report->field[r];
r                2791 drivers/hid/wacom_wac.c 	int r;
r                2797 drivers/hid/wacom_wac.c 	for (r = 0; r < report->maxfield; r++) {
r                2798 drivers/hid/wacom_wac.c 		field = report->field[r];
r                2819 drivers/hid/wacom_wac.c 	for (r = 0; r < report->maxfield; r++) {
r                2820 drivers/hid/wacom_wac.c 		field = report->field[r];
r                2824 drivers/hid/wacom_wac.c 				field->usage[0].collection_index, field, r) < 0)
r                 816 drivers/hsi/clients/cmt_speech.c 	int r = 0;
r                 820 drivers/hsi/clients/cmt_speech.c 		r = -EINVAL;
r                 824 drivers/hsi/clients/cmt_speech.c 		r = -ENOBUFS;
r                 827 drivers/hsi/clients/cmt_speech.c 	return r;
r                 835 drivers/hsi/clients/cmt_speech.c 	int r = 0;
r                 850 drivers/hsi/clients/cmt_speech.c 			r = -ERESTARTSYS;
r                 867 drivers/hsi/clients/cmt_speech.c 			r = -EIO;
r                 874 drivers/hsi/clients/cmt_speech.c 	dev_dbg(&hi->cl->device, "hsi_data_sync done with res %d\n", r);
r                 876 drivers/hsi/clients/cmt_speech.c 	return r;
r                 927 drivers/hsi/clients/cmt_speech.c 	int r = 0;
r                 940 drivers/hsi/clients/cmt_speech.c 	r = cs_hsi_data_sync(hi);
r                 941 drivers/hsi/clients/cmt_speech.c 	if (r < 0)
r                 942 drivers/hsi/clients/cmt_speech.c 		return r;
r                 947 drivers/hsi/clients/cmt_speech.c 	r = check_buf_params(hi, buf_cfg);
r                 948 drivers/hsi/clients/cmt_speech.c 	if (r < 0)
r                 978 drivers/hsi/clients/cmt_speech.c 	return r;
r                 982 drivers/hsi/clients/cmt_speech.c 	return r;
r                1204 drivers/hsi/clients/cmt_speech.c 	int r = 0;
r                1212 drivers/hsi/clients/cmt_speech.c 			r = -EFAULT;
r                1220 drivers/hsi/clients/cmt_speech.c 			r = -EFAULT;
r                1225 drivers/hsi/clients/cmt_speech.c 			r = -EINVAL;
r                1237 drivers/hsi/clients/cmt_speech.c 			r = -EFAULT;
r                1246 drivers/hsi/clients/cmt_speech.c 			r = -EFAULT;
r                1248 drivers/hsi/clients/cmt_speech.c 			r = cs_hsi_buf_config(csdata->hi, &buf_cfg);
r                1253 drivers/hsi/clients/cmt_speech.c 		r = -ENOTTY;
r                1257 drivers/hsi/clients/cmt_speech.c 	return r;
r                 284 drivers/hwmon/adt7475.c 	const int *r = adt7473_in_scaling[channel];
r                 288 drivers/hwmon/adt7475.c 	return DIV_ROUND_CLOSEST(reg * (r[0] + r[1]) * 2250, r[1] * 1024);
r                 293 drivers/hwmon/adt7475.c 	const int *r = adt7473_in_scaling[channel];
r                 299 drivers/hwmon/adt7475.c 		reg = DIV_ROUND_CLOSEST(volt * r[1] * 1024,
r                 300 drivers/hwmon/adt7475.c 					(r[0] + r[1]) * 2250);
r                 920 drivers/hwmon/adt7475.c 	int r;
r                 929 drivers/hwmon/adt7475.c 	r = hw_set_pwm(client, sattr->index, data->pwmctl[sattr->index], val);
r                 930 drivers/hwmon/adt7475.c 	if (r)
r                 931 drivers/hwmon/adt7475.c 		count = r;
r                 944 drivers/hwmon/adt7475.c 	int r;
r                 953 drivers/hwmon/adt7475.c 	r = hw_set_pwm(client, sattr->index, val, data->pwmchan[sattr->index]);
r                 954 drivers/hwmon/adt7475.c 	if (r)
r                 955 drivers/hwmon/adt7475.c 		count = r;
r                 799 drivers/hwmon/asc7621.c #define PREAD(name, n, pri, rm, rl, m, s, r) \
r                 800 drivers/hwmon/asc7621.c 	{.sda = SENSOR_ATTR(name, S_IRUGO, show_##r, NULL, n), \
r                 804 drivers/hwmon/asc7621.c #define PWRITE(name, n, pri, rm, rl, m, s, r) \
r                 805 drivers/hwmon/asc7621.c 	{.sda = SENSOR_ATTR(name, S_IRUGO | S_IWUSR, show_##r, store_##r, n), \
r                 813 drivers/hwmon/asc7621.c #define PWRITEM(name, n, pri, rm, rl, m, s, r) \
r                 814 drivers/hwmon/asc7621.c 	{.sda = SENSOR_ATTR(name, S_IRUGO | S_IWUSR, show_##r, store_##r, n), \
r                 210 drivers/hwmon/gl520sm.c 	u8 r = data->in_input[n];
r                 213 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", VDD_FROM_REG(r));
r                 215 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", IN_FROM_REG(r));
r                 223 drivers/hwmon/gl520sm.c 	u8 r = data->in_min[n];
r                 226 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", VDD_FROM_REG(r));
r                 228 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", IN_FROM_REG(r));
r                 236 drivers/hwmon/gl520sm.c 	u8 r = data->in_max[n];
r                 239 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", VDD_FROM_REG(r));
r                 241 drivers/hwmon/gl520sm.c 		return sprintf(buf, "%d\n", IN_FROM_REG(r));
r                 250 drivers/hwmon/gl520sm.c 	u8 r;
r                 261 drivers/hwmon/gl520sm.c 		r = VDD_TO_REG(v);
r                 263 drivers/hwmon/gl520sm.c 		r = IN_TO_REG(v);
r                 265 drivers/hwmon/gl520sm.c 	data->in_min[n] = r;
r                 270 drivers/hwmon/gl520sm.c 				   & ~0xff) | r);
r                 272 drivers/hwmon/gl520sm.c 		gl520_write_value(client, GL520_REG_IN_MIN[n], r);
r                 284 drivers/hwmon/gl520sm.c 	u8 r;
r                 293 drivers/hwmon/gl520sm.c 		r = VDD_TO_REG(v);
r                 295 drivers/hwmon/gl520sm.c 		r = IN_TO_REG(v);
r                 299 drivers/hwmon/gl520sm.c 	data->in_max[n] = r;
r                 304 drivers/hwmon/gl520sm.c 				   & ~0xff00) | (r << 8));
r                 306 drivers/hwmon/gl520sm.c 		gl520_write_value(client, GL520_REG_IN_MAX[n], r);
r                 381 drivers/hwmon/gl520sm.c 	u8 r;
r                 390 drivers/hwmon/gl520sm.c 	r = FAN_TO_REG(v, data->fan_div[n]);
r                 391 drivers/hwmon/gl520sm.c 	data->fan_min[n] = r;
r                 396 drivers/hwmon/gl520sm.c 				   & ~0xff00) | (r << 8));
r                 400 drivers/hwmon/gl520sm.c 				   & ~0xff) | r);
r                 421 drivers/hwmon/gl520sm.c 	u8 r;
r                 431 drivers/hwmon/gl520sm.c 		r = 0;
r                 434 drivers/hwmon/gl520sm.c 		r = 1;
r                 437 drivers/hwmon/gl520sm.c 		r = 2;
r                 440 drivers/hwmon/gl520sm.c 		r = 3;
r                 449 drivers/hwmon/gl520sm.c 	data->fan_div[n] = r;
r                 454 drivers/hwmon/gl520sm.c 				   & ~0xc0) | (r << 6));
r                 458 drivers/hwmon/gl520sm.c 				   & ~0x30) | (r << 4));
r                 470 drivers/hwmon/gl520sm.c 	u8 r;
r                 478 drivers/hwmon/gl520sm.c 	r = (v ? 1 : 0);
r                 481 drivers/hwmon/gl520sm.c 	data->fan_off = r;
r                 484 drivers/hwmon/gl520sm.c 			   & ~0x0c) | (r << 2));
r                 605 drivers/hwmon/gl520sm.c 	u8 r;
r                 613 drivers/hwmon/gl520sm.c 	r = (v ? 0 : 1);
r                 616 drivers/hwmon/gl520sm.c 	data->beep_enable = !r;
r                 619 drivers/hwmon/gl520sm.c 			   & ~0x04) | (r << 2));
r                 630 drivers/hwmon/gl520sm.c 	unsigned long r;
r                 633 drivers/hwmon/gl520sm.c 	err = kstrtoul(buf, 10, &r);
r                 638 drivers/hwmon/gl520sm.c 	r &= data->alarm_mask;
r                 639 drivers/hwmon/gl520sm.c 	data->beep_mask = r;
r                 640 drivers/hwmon/gl520sm.c 	gl520_write_value(client, GL520_REG_BEEP_MASK, r);
r                  23 drivers/hwmon/scmi-hwmon.c 	u64 r = 1;
r                  26 drivers/hwmon/scmi-hwmon.c 		r *= 10;
r                  28 drivers/hwmon/scmi-hwmon.c 	return r;
r                  43 drivers/hwtracing/intel_th/acpi.c 	int i, r;
r                  49 drivers/hwtracing/intel_th/acpi.c 	for (i = 0, r = 0; i < pdev->num_resources && r < TH_MMIO_END; i++)
r                  52 drivers/hwtracing/intel_th/acpi.c 			resource[r++] = pdev->resource[i];
r                  54 drivers/hwtracing/intel_th/acpi.c 	th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r);
r                 392 drivers/hwtracing/intel_th/core.c 	struct resource *r;
r                 394 drivers/hwtracing/intel_th/core.c 	r = kmemdup(res, sizeof(*res) * nres, GFP_KERNEL);
r                 395 drivers/hwtracing/intel_th/core.c 	if (!r)
r                 398 drivers/hwtracing/intel_th/core.c 	thdev->resource = r;
r                 605 drivers/hwtracing/intel_th/core.c 	int r, err;
r                 617 drivers/hwtracing/intel_th/core.c 	for (r = 0; r < subdev->nres; r++) {
r                 626 drivers/hwtracing/intel_th/core.c 		if (!res[r].end && res[r].flags == IORESOURCE_MEM) {
r                 627 drivers/hwtracing/intel_th/core.c 			bar = res[r].start;
r                 631 drivers/hwtracing/intel_th/core.c 			res[r].start = 0;
r                 632 drivers/hwtracing/intel_th/core.c 			res[r].end = resource_size(&devres[bar]) - 1;
r                 635 drivers/hwtracing/intel_th/core.c 		if (res[r].flags & IORESOURCE_MEM) {
r                 636 drivers/hwtracing/intel_th/core.c 			res[r].start	+= devres[bar].start;
r                 637 drivers/hwtracing/intel_th/core.c 			res[r].end	+= devres[bar].start;
r                 640 drivers/hwtracing/intel_th/core.c 				subdev->name, r, &res[r]);
r                 641 drivers/hwtracing/intel_th/core.c 		} else if (res[r].flags & IORESOURCE_IRQ) {
r                 647 drivers/hwtracing/intel_th/core.c 				res[r].start = th->irq;
r                 850 drivers/hwtracing/intel_th/core.c 	int err, r, nr_mmios = 0;
r                 873 drivers/hwtracing/intel_th/core.c 	for (r = 0; r < ndevres; r++)
r                 874 drivers/hwtracing/intel_th/core.c 		switch (devres[r].flags & IORESOURCE_TYPE_BITS) {
r                 876 drivers/hwtracing/intel_th/core.c 			th->resource[nr_mmios++] = devres[r];
r                 879 drivers/hwtracing/intel_th/core.c 			err = devm_request_irq(dev, devres[r].start,
r                 886 drivers/hwtracing/intel_th/core.c 				th->irq = devres[r].start;
r                 891 drivers/hwtracing/intel_th/core.c 				 devres[r].flags);
r                  79 drivers/hwtracing/intel_th/pci.c 	int err, r = TH_MMIO_SW + 1, i;
r                  92 drivers/hwtracing/intel_th/pci.c 		r++;
r                  97 drivers/hwtracing/intel_th/pci.c 		for (i = 0; i < err; i++, r++) {
r                  98 drivers/hwtracing/intel_th/pci.c 			resource[r].flags = IORESOURCE_IRQ;
r                  99 drivers/hwtracing/intel_th/pci.c 			resource[r].start = pci_irq_vector(pdev, i);
r                 102 drivers/hwtracing/intel_th/pci.c 	th = intel_th_alloc(&pdev->dev, drvdata, resource, r);
r                 114 drivers/i2c/busses/i2c-amd-mp2-pci.c 	int len = i2c_common->eventval.r.length;
r                 115 drivers/i2c/busses/i2c-amd-mp2-pci.c 	u32 slave_addr = i2c_common->eventval.r.slave_addr;
r                 139 drivers/i2c/busses/i2c-amd-mp2-pci.c 	enum status_type sts = i2c_common->eventval.r.status;
r                 140 drivers/i2c/busses/i2c-amd-mp2-pci.c 	enum response_type res = i2c_common->eventval.r.response;
r                 141 drivers/i2c/busses/i2c-amd-mp2-pci.c 	int len = i2c_common->eventval.r.length;
r                  90 drivers/i2c/busses/i2c-amd-mp2-plat.c 	if (event->r.status == i2c_readcomplete_event)
r                  92 drivers/i2c/busses/i2c-amd-mp2-plat.c 			__func__, event->r.length,
r                 133 drivers/i2c/busses/i2c-amd-mp2.h 	} r;
r                  44 drivers/i2c/busses/i2c-au1550.c static inline void WR(struct i2c_au1550_data *a, int r, unsigned long v)
r                  46 drivers/i2c/busses/i2c-au1550.c 	__raw_writel(v, a->psc_base + r);
r                  50 drivers/i2c/busses/i2c-au1550.c static inline unsigned long RD(struct i2c_au1550_data *a, int r)
r                  52 drivers/i2c/busses/i2c-au1550.c 	return __raw_readl(a->psc_base + r);
r                 305 drivers/i2c/busses/i2c-au1550.c 	struct resource *r;
r                 313 drivers/i2c/busses/i2c-au1550.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 314 drivers/i2c/busses/i2c-au1550.c 	priv->psc_base = devm_ioremap_resource(&pdev->dev, r);
r                 766 drivers/i2c/busses/i2c-davinci.c 	int r, irq;
r                 829 drivers/i2c/busses/i2c-davinci.c 	r = pm_runtime_get_sync(dev->dev);
r                 830 drivers/i2c/busses/i2c-davinci.c 	if (r < 0) {
r                 831 drivers/i2c/busses/i2c-davinci.c 		dev_err(dev->dev, "failed to runtime_get device: %d\n", r);
r                 833 drivers/i2c/busses/i2c-davinci.c 		return r;
r                 838 drivers/i2c/busses/i2c-davinci.c 	r = devm_request_irq(&pdev->dev, dev->irq, i2c_davinci_isr, 0,
r                 840 drivers/i2c/busses/i2c-davinci.c 	if (r) {
r                 845 drivers/i2c/busses/i2c-davinci.c 	r = i2c_davinci_cpufreq_register(dev);
r                 846 drivers/i2c/busses/i2c-davinci.c 	if (r) {
r                 869 drivers/i2c/busses/i2c-davinci.c 			r = PTR_ERR(rinfo->scl_gpiod);
r                 874 drivers/i2c/busses/i2c-davinci.c 			r = PTR_ERR(rinfo->sda_gpiod);
r                 880 drivers/i2c/busses/i2c-davinci.c 	r = i2c_add_numbered_adapter(adap);
r                 881 drivers/i2c/busses/i2c-davinci.c 	if (r)
r                 894 drivers/i2c/busses/i2c-davinci.c 	return r;
r                 218 drivers/i2c/busses/i2c-designware-pcidrv.c 	int r;
r                 230 drivers/i2c/busses/i2c-designware-pcidrv.c 	r = pcim_enable_device(pdev);
r                 231 drivers/i2c/busses/i2c-designware-pcidrv.c 	if (r) {
r                 233 drivers/i2c/busses/i2c-designware-pcidrv.c 			r);
r                 234 drivers/i2c/busses/i2c-designware-pcidrv.c 		return r;
r                 239 drivers/i2c/busses/i2c-designware-pcidrv.c 	r = pcim_iomap_regions(pdev, 1 << 0, pci_name(pdev));
r                 240 drivers/i2c/busses/i2c-designware-pcidrv.c 	if (r) {
r                 242 drivers/i2c/busses/i2c-designware-pcidrv.c 		return r;
r                 249 drivers/i2c/busses/i2c-designware-pcidrv.c 	r = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
r                 250 drivers/i2c/busses/i2c-designware-pcidrv.c 	if (r < 0)
r                 251 drivers/i2c/busses/i2c-designware-pcidrv.c 		return r;
r                 262 drivers/i2c/busses/i2c-designware-pcidrv.c 		r = controller->setup(pdev, controller);
r                 263 drivers/i2c/busses/i2c-designware-pcidrv.c 		if (r) {
r                 265 drivers/i2c/busses/i2c-designware-pcidrv.c 			return r;
r                 293 drivers/i2c/busses/i2c-designware-pcidrv.c 	r = i2c_dw_probe(dev);
r                 294 drivers/i2c/busses/i2c-designware-pcidrv.c 	if (r) {
r                 296 drivers/i2c/busses/i2c-designware-pcidrv.c 		return r;
r                  37 drivers/i2c/busses/i2c-digicolor.c #define II_COMMAND_COMPLETION_STATUS(r)	(((r) >> 5) & 3)
r                 294 drivers/i2c/busses/i2c-digicolor.c 	struct resource *r;
r                 315 drivers/i2c/busses/i2c-digicolor.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 316 drivers/i2c/busses/i2c-digicolor.c 	i2c->regs = devm_ioremap_resource(&pdev->dev, r);
r                 364 drivers/i2c/busses/i2c-emev2.c 	struct resource *r;
r                 371 drivers/i2c/busses/i2c-emev2.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 372 drivers/i2c/busses/i2c-emev2.c 	priv->base = devm_ioremap_resource(&pdev->dev, r);
r                 698 drivers/i2c/busses/i2c-jz4780.c 	struct resource *r;
r                 716 drivers/i2c/busses/i2c-jz4780.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 717 drivers/i2c/busses/i2c-jz4780.c 	i2c->iomem = devm_ioremap_resource(&pdev->dev, r);
r                 880 drivers/i2c/busses/i2c-mv64xxx.c 	struct resource	*r;
r                 891 drivers/i2c/busses/i2c-mv64xxx.c 	r = platform_get_resource(pd, IORESOURCE_MEM, 0);
r                 892 drivers/i2c/busses/i2c-mv64xxx.c 	drv_data->reg_base = devm_ioremap_resource(&pd->dev, r);
r                 797 drivers/i2c/busses/i2c-omap.c 	int r;
r                 799 drivers/i2c/busses/i2c-omap.c 	r = pm_runtime_get_sync(omap->dev);
r                 800 drivers/i2c/busses/i2c-omap.c 	if (r < 0)
r                 803 drivers/i2c/busses/i2c-omap.c 	r = omap_i2c_wait_for_bb_valid(omap);
r                 804 drivers/i2c/busses/i2c-omap.c 	if (r < 0)
r                 807 drivers/i2c/busses/i2c-omap.c 	r = omap_i2c_wait_for_bb(omap);
r                 808 drivers/i2c/busses/i2c-omap.c 	if (r < 0)
r                 815 drivers/i2c/busses/i2c-omap.c 		r = omap_i2c_xfer_msg(adap, &msgs[i], (i == (num - 1)),
r                 817 drivers/i2c/busses/i2c-omap.c 		if (r != 0)
r                 821 drivers/i2c/busses/i2c-omap.c 	if (r == 0)
r                 822 drivers/i2c/busses/i2c-omap.c 		r = num;
r                 832 drivers/i2c/busses/i2c-omap.c 	return r;
r                1364 drivers/i2c/busses/i2c-omap.c 	int r;
r                1411 drivers/i2c/busses/i2c-omap.c 	r = pm_runtime_get_sync(omap->dev);
r                1412 drivers/i2c/busses/i2c-omap.c 	if (r < 0)
r                1479 drivers/i2c/busses/i2c-omap.c 		r = devm_request_irq(&pdev->dev, omap->irq, omap_i2c_omap1_isr,
r                1482 drivers/i2c/busses/i2c-omap.c 		r = devm_request_threaded_irq(&pdev->dev, omap->irq,
r                1487 drivers/i2c/busses/i2c-omap.c 	if (r) {
r                1505 drivers/i2c/busses/i2c-omap.c 	r = i2c_add_numbered_adapter(adap);
r                1506 drivers/i2c/busses/i2c-omap.c 	if (r)
r                1524 drivers/i2c/busses/i2c-omap.c 	return r;
r                  46 drivers/i2c/busses/i2c-pxa-pci.c 		struct resource r;
r                  49 drivers/i2c/busses/i2c-pxa-pci.c 		ret = of_address_to_resource(child, 0, &r);
r                  52 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.start != res[0].start)
r                  54 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.end != res[0].end)
r                  56 drivers/i2c/busses/i2c-pxa-pci.c 		if (r.flags != res[0].flags)
r                  24 drivers/i2c/busses/i2c-sibyte.c #define SMB_CSR(a,r) ((long)(a->reg_base + r))
r                 190 drivers/i2c/busses/i2c-sun6i-p2wi.c 	struct resource *r;
r                 234 drivers/i2c/busses/i2c-sun6i-p2wi.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 235 drivers/i2c/busses/i2c-sun6i-p2wi.c 	p2wi->regs = devm_ioremap_resource(dev, r);
r                 539 drivers/i2c/busses/i2c-synquacer.c 	struct resource *r;
r                 577 drivers/i2c/busses/i2c-synquacer.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 578 drivers/i2c/busses/i2c-synquacer.c 	i2c->base = devm_ioremap_resource(&pdev->dev, r);
r                  67 drivers/i2c/busses/i2c-versatile.c 	struct resource *r;
r                  74 drivers/i2c/busses/i2c-versatile.c 	r = platform_get_resource(dev, IORESOURCE_MEM, 0);
r                  75 drivers/i2c/busses/i2c-versatile.c 	i2c->base = devm_ioremap_resource(&dev->dev, r);
r                 139 drivers/i2c/i2c-core-acpi.c 	struct resource r;
r                 141 drivers/i2c/i2c-core-acpi.c 	if (*irq <= 0 && acpi_dev_resource_interrupt(ares, 0, &r))
r                 142 drivers/i2c/i2c-core-acpi.c 		*irq = i2c_dev_irq_from_resources(&r, 1);
r                 706 drivers/i2c/i2c-core-base.c 		const struct resource *r = &resources[i];
r                 708 drivers/i2c/i2c-core-base.c 		if (resource_type(r) != IORESOURCE_IRQ)
r                 711 drivers/i2c/i2c-core-base.c 		if (r->flags & IORESOURCE_BITS) {
r                 712 drivers/i2c/i2c-core-base.c 			irqd = irq_get_irq_data(r->start);
r                 716 drivers/i2c/i2c-core-base.c 			irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS);
r                 719 drivers/i2c/i2c-core-base.c 		return r->start;
r                 304 drivers/ide/pdc202xx_new.c 	int f, r;
r                 364 drivers/ide/pdc202xx_new.c 		r = 0x0d;
r                 367 drivers/ide/pdc202xx_new.c 		r = 0x08;
r                 370 drivers/ide/pdc202xx_new.c 		r = 0x06;
r                 372 drivers/ide/pdc202xx_new.c 		r = 0x00;
r                 380 drivers/ide/pdc202xx_new.c 	f = (ratio * (r + 2)) / 1000 - 2;
r                 382 drivers/ide/pdc202xx_new.c 	DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio);
r                 392 drivers/ide/pdc202xx_new.c 	pll_ctl1 = (u8) r;
r                 240 drivers/ide/sc1200.c 		unsigned int r;
r                 246 drivers/ide/sc1200.c 		for (r = 0; r < 8; r++)
r                 247 drivers/ide/sc1200.c 			pci_read_config_dword(dev, 0x40 + r * 4, &ss->regs[r]);
r                 259 drivers/ide/sc1200.c 	unsigned int r;
r                 270 drivers/ide/sc1200.c 	for (r = 0; r < 8; r++)
r                 271 drivers/ide/sc1200.c 		pci_write_config_dword(dev, 0x40 + r * 4, ss->regs[r]);
r                  92 drivers/ide/siimage.c static unsigned long siimage_selreg(ide_hwif_t *hwif, int r)
r                  96 drivers/ide/siimage.c 	base += 0xA0 + r;
r                 114 drivers/ide/siimage.c static inline unsigned long siimage_seldev(ide_drive_t *drive, int r)
r                 120 drivers/ide/siimage.c 	base += 0xA0 + r;
r                 440 drivers/iio/adc/max9611.c 	unsigned int i, r;
r                 443 drivers/iio/adc/max9611.c 	r = max9611->shunt_resistor_uohm % 1000000;
r                 445 drivers/iio/adc/max9611.c 	return sprintf(buf, "%u.%06u\n", i, r);
r                1605 drivers/iio/adc/stm32-adc.c 	unsigned int smp, r = smpr->reg;
r                1616 drivers/iio/adc/stm32-adc.c 	adc->smpr_val[r] = (adc->smpr_val[r] & ~mask) | (smp << shift);
r                 476 drivers/iio/adc/twl4030-madc.c 	struct twl4030_madc_request *r;
r                 501 drivers/iio/adc/twl4030-madc.c 		r = &madc->requests[i];
r                 503 drivers/iio/adc/twl4030-madc.c 		if (!r->result_pending)
r                 505 drivers/iio/adc/twl4030-madc.c 		method = &twl4030_conversion_methods[r->method];
r                 508 drivers/iio/adc/twl4030-madc.c 						 r->channels, r->rbuf, r->raw);
r                 510 drivers/iio/adc/twl4030-madc.c 		r->result_pending = 0;
r                 511 drivers/iio/adc/twl4030-madc.c 		r->active = 0;
r                 523 drivers/iio/adc/twl4030-madc.c 		r = &madc->requests[i];
r                 524 drivers/iio/adc/twl4030-madc.c 		if (r->active == 0)
r                 526 drivers/iio/adc/twl4030-madc.c 		method = &twl4030_conversion_methods[r->method];
r                 529 drivers/iio/adc/twl4030-madc.c 						 r->channels, r->rbuf, r->raw);
r                 531 drivers/iio/adc/twl4030-madc.c 		r->result_pending = 0;
r                 532 drivers/iio/adc/twl4030-madc.c 		r->active = 0;
r                 147 drivers/iio/buffer/industrialio-hw-consumer.c 	struct iio_hw_consumer **r = res;
r                 149 drivers/iio/buffer/industrialio-hw-consumer.c 	if (!r || !*r) {
r                 150 drivers/iio/buffer/industrialio-hw-consumer.c 		WARN_ON(!r || !*r);
r                 153 drivers/iio/buffer/industrialio-hw-consumer.c 	return *r == data;
r                  23 drivers/iio/buffer/kfifo_buf.c #define iio_to_kfifo(r) container_of(r, struct iio_kfifo, buffer)
r                  42 drivers/iio/buffer/kfifo_buf.c static int iio_request_update_kfifo(struct iio_buffer *r)
r                  45 drivers/iio/buffer/kfifo_buf.c 	struct iio_kfifo *buf = iio_to_kfifo(r);
r                  62 drivers/iio/buffer/kfifo_buf.c static int iio_mark_update_needed_kfifo(struct iio_buffer *r)
r                  64 drivers/iio/buffer/kfifo_buf.c 	struct iio_kfifo *kf = iio_to_kfifo(r);
r                  69 drivers/iio/buffer/kfifo_buf.c static int iio_set_bytes_per_datum_kfifo(struct iio_buffer *r, size_t bpd)
r                  71 drivers/iio/buffer/kfifo_buf.c 	if (r->bytes_per_datum != bpd) {
r                  72 drivers/iio/buffer/kfifo_buf.c 		r->bytes_per_datum = bpd;
r                  73 drivers/iio/buffer/kfifo_buf.c 		iio_mark_update_needed_kfifo(r);
r                  78 drivers/iio/buffer/kfifo_buf.c static int iio_set_length_kfifo(struct iio_buffer *r, unsigned int length)
r                  83 drivers/iio/buffer/kfifo_buf.c 	if (r->length != length) {
r                  84 drivers/iio/buffer/kfifo_buf.c 		r->length = length;
r                  85 drivers/iio/buffer/kfifo_buf.c 		iio_mark_update_needed_kfifo(r);
r                  90 drivers/iio/buffer/kfifo_buf.c static int iio_store_to_kfifo(struct iio_buffer *r,
r                  94 drivers/iio/buffer/kfifo_buf.c 	struct iio_kfifo *kf = iio_to_kfifo(r);
r                 101 drivers/iio/buffer/kfifo_buf.c static int iio_read_first_n_kfifo(struct iio_buffer *r,
r                 105 drivers/iio/buffer/kfifo_buf.c 	struct iio_kfifo *kf = iio_to_kfifo(r);
r                 121 drivers/iio/buffer/kfifo_buf.c static size_t iio_kfifo_buf_data_available(struct iio_buffer *r)
r                 123 drivers/iio/buffer/kfifo_buf.c 	struct iio_kfifo *kf = iio_to_kfifo(r);
r                 172 drivers/iio/buffer/kfifo_buf.c void iio_kfifo_free(struct iio_buffer *r)
r                 174 drivers/iio/buffer/kfifo_buf.c 	iio_buffer_put(r);
r                 185 drivers/iio/buffer/kfifo_buf.c 	struct iio_buffer **r = res;
r                 187 drivers/iio/buffer/kfifo_buf.c 	if (WARN_ON(!r || !*r))
r                 190 drivers/iio/buffer/kfifo_buf.c 	return *r == data;
r                 202 drivers/iio/buffer/kfifo_buf.c 	struct iio_buffer **ptr, *r;
r                 208 drivers/iio/buffer/kfifo_buf.c 	r = iio_kfifo_allocate();
r                 209 drivers/iio/buffer/kfifo_buf.c 	if (r) {
r                 210 drivers/iio/buffer/kfifo_buf.c 		*ptr = r;
r                 216 drivers/iio/buffer/kfifo_buf.c 	return r;
r                 225 drivers/iio/buffer/kfifo_buf.c void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r)
r                 228 drivers/iio/buffer/kfifo_buf.c 			       devm_iio_kfifo_match, r));
r                 683 drivers/iio/common/st_sensors/st_sensors_core.c 	int i, len = 0, q, r;
r                 693 drivers/iio/common/st_sensors/st_sensors_core.c 		r = sdata->sensor_settings->fs.fs_avl[i].gain % 1000000;
r                 695 drivers/iio/common/st_sensors/st_sensors_core.c 		len += scnprintf(buf + len, PAGE_SIZE - len, "%u.%06u ", q, r);
r                1482 drivers/iio/industrialio-core.c 	struct iio_dev **r = res;
r                1483 drivers/iio/industrialio-core.c 	if (!r || !*r) {
r                1484 drivers/iio/industrialio-core.c 		WARN_ON(!r || !*r);
r                1487 drivers/iio/industrialio-core.c 	return *r == data;
r                 590 drivers/iio/industrialio-trigger.c 	struct iio_trigger **r = res;
r                 592 drivers/iio/industrialio-trigger.c 	if (!r || !*r) {
r                 593 drivers/iio/industrialio-trigger.c 		WARN_ON(!r || !*r);
r                 597 drivers/iio/industrialio-trigger.c 	return *r == data;
r                 365 drivers/iio/inkern.c 	struct iio_channel **r = res;
r                 367 drivers/iio/inkern.c 	if (!r || !*r) {
r                 368 drivers/iio/inkern.c 		WARN_ON(!r || !*r);
r                 372 drivers/iio/inkern.c 	return *r == data;
r                  49 drivers/iio/potentiometer/mcp4131.c #define MCP4131_CMDERR(r)	((r[0]) & 0x02)
r                  50 drivers/iio/potentiometer/mcp4131.c #define MCP4131_RAW(r)		((r[0]) == 0xff ? 0x100 : (r[1]))
r                 292 drivers/iio/pressure/ms5611_core.c 	unsigned int r;
r                 294 drivers/iio/pressure/ms5611_core.c 	for (r = 0; r < count; r++)
r                 295 drivers/iio/pressure/ms5611_core.c 		if ((unsigned short)rate == osr[r].rate)
r                 297 drivers/iio/pressure/ms5611_core.c 	if (r >= count)
r                 299 drivers/iio/pressure/ms5611_core.c 	return &osr[r];
r                 234 drivers/infiniband/hw/cxgb3/iwch.c 		unsigned short r;
r                 237 drivers/infiniband/hw/cxgb3/iwch.c 		get_random_bytes(&r, 2);
r                 238 drivers/infiniband/hw/cxgb3/iwch.c 		delay += r & 1023;
r                13003 drivers/infiniband/hw/hfi1/chip.c #define CLEAR_STATIC_RATE_CONTROL_SMASK(r) \
r                13004 drivers/infiniband/hw/hfi1/chip.c (r &= ~SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK)
r                13006 drivers/infiniband/hw/hfi1/chip.c #define SET_STATIC_RATE_CONTROL_SMASK(r) \
r                13007 drivers/infiniband/hw/hfi1/chip.c (r |= SEND_CTXT_CHECK_ENABLE_DISALLOW_PBC_STATIC_RATE_CONTROL_SMASK)
r                  72 drivers/infiniband/hw/hfi1/debugfs.c 	ssize_t r;
r                  74 drivers/infiniband/hw/hfi1/debugfs.c 	r = debugfs_file_get(d);
r                  75 drivers/infiniband/hw/hfi1/debugfs.c 	if (unlikely(r))
r                  76 drivers/infiniband/hw/hfi1/debugfs.c 		return r;
r                  77 drivers/infiniband/hw/hfi1/debugfs.c 	r = seq_read(file, buf, size, ppos);
r                  79 drivers/infiniband/hw/hfi1/debugfs.c 	return r;
r                  85 drivers/infiniband/hw/hfi1/debugfs.c 	loff_t r;
r                  87 drivers/infiniband/hw/hfi1/debugfs.c 	r = debugfs_file_get(d);
r                  88 drivers/infiniband/hw/hfi1/debugfs.c 	if (unlikely(r))
r                  89 drivers/infiniband/hw/hfi1/debugfs.c 		return r;
r                  90 drivers/infiniband/hw/hfi1/debugfs.c 	r = seq_lseek(file, offset, whence);
r                  92 drivers/infiniband/hw/hfi1/debugfs.c 	return r;
r                1079 drivers/infiniband/hw/hfi1/sdma.h 	char *r = s;
r                1083 drivers/infiniband/hw/hfi1/sdma.h 			r = s;
r                1084 drivers/infiniband/hw/hfi1/sdma.h 	return r;
r                 320 drivers/infiniband/hw/hns/hns_roce_alloc.c 	struct hns_roce_buf_region *r;
r                 324 drivers/infiniband/hw/hns/hns_roce_alloc.c 		r = &regions[i];
r                 325 drivers/infiniband/hw/hns/hns_roce_alloc.c 		bufs[i] = kcalloc(r->count, sizeof(dma_addr_t), GFP_KERNEL);
r                1269 drivers/infiniband/hw/hns/hns_roce_hem.c 	struct hns_roce_buf_region *r;
r                1275 drivers/infiniband/hw/hns/hns_roce_hem.c 		r = (struct hns_roce_buf_region *)&regions[i];
r                1276 drivers/infiniband/hw/hns/hns_roce_hem.c 		if (r->hopnum > 1) {
r                1277 drivers/infiniband/hw/hns/hns_roce_hem.c 			step = hem_list_calc_ba_range(r->hopnum, 1, unit);
r                1279 drivers/infiniband/hw/hns/hns_roce_hem.c 				total += (r->count + step - 1) / step;
r                1281 drivers/infiniband/hw/hns/hns_roce_hem.c 			total += r->count;
r                1289 drivers/infiniband/hw/hns/hns_roce_hem.c 				 const struct hns_roce_buf_region *r, int unit,
r                1296 drivers/infiniband/hw/hns/hns_roce_hem.c 	const int hopnum = r->hopnum;
r                1313 drivers/infiniband/hw/hns/hns_roce_hem.c 	if (offset < r->offset) {
r                1315 drivers/infiniband/hw/hns/hns_roce_hem.c 			offset, r->offset);
r                1319 drivers/infiniband/hw/hns/hns_roce_hem.c 	distance = offset - r->offset;
r                1320 drivers/infiniband/hw/hns/hns_roce_hem.c 	max_ofs = r->offset + r->count - 1;
r                1338 drivers/infiniband/hw/hns/hns_roce_hem.c 		start_aligned = (distance / step) * step + r->offset;
r                1380 drivers/infiniband/hw/hns/hns_roce_hem.c 	const struct hns_roce_buf_region *r;
r                1391 drivers/infiniband/hw/hns/hns_roce_hem.c 	r = &regions[0];
r                1392 drivers/infiniband/hw/hns/hns_roce_hem.c 	root_hem = hem_list_search_item(&hem_list->root_bt, r->offset);
r                1397 drivers/infiniband/hw/hns/hns_roce_hem.c 	total = r->offset;
r                1399 drivers/infiniband/hw/hns/hns_roce_hem.c 	r = &regions[region_cnt - 1];
r                1400 drivers/infiniband/hw/hns/hns_roce_hem.c 	root_hem = hem_list_alloc_item(hr_dev, total, r->offset + r->count - 1,
r                1414 drivers/infiniband/hw/hns/hns_roce_hem.c 		r = &regions[i];
r                1415 drivers/infiniband/hw/hns/hns_roce_hem.c 		if (!r->count)
r                1425 drivers/infiniband/hw/hns/hns_roce_hem.c 		if (hem_list_is_bottom_bt(r->hopnum, 0)) {
r                1426 drivers/infiniband/hw/hns/hns_roce_hem.c 			hem = hem_list_alloc_item(hr_dev, r->offset,
r                1427 drivers/infiniband/hw/hns/hns_roce_hem.c 						  r->offset + r->count - 1,
r                1428 drivers/infiniband/hw/hns/hns_roce_hem.c 						  r->count, false, 0);
r                1436 drivers/infiniband/hw/hns/hns_roce_hem.c 			total += r->count;
r                1438 drivers/infiniband/hw/hns/hns_roce_hem.c 			step = hem_list_calc_ba_range(r->hopnum, 1, unit);
r                1476 drivers/infiniband/hw/hns/hns_roce_hem.c 	const struct hns_roce_buf_region *r;
r                1490 drivers/infiniband/hw/hns/hns_roce_hem.c 		r = &regions[i];
r                1491 drivers/infiniband/hw/hns/hns_roce_hem.c 		if (!r->count)
r                1494 drivers/infiniband/hw/hns/hns_roce_hem.c 		end = r->offset + r->count;
r                1495 drivers/infiniband/hw/hns/hns_roce_hem.c 		for (ofs = r->offset; ofs < end; ofs += unit) {
r                1496 drivers/infiniband/hw/hns/hns_roce_hem.c 			ret = hem_list_alloc_mid_bt(hr_dev, r, unit, ofs,
r                1579 drivers/infiniband/hw/hns/hns_roce_mr.c 			      struct hns_roce_buf_region *r)
r                1588 drivers/infiniband/hw/hns/hns_roce_mr.c 	offset = r->offset;
r                1589 drivers/infiniband/hw/hns/hns_roce_mr.c 	end = offset + r->count;
r                1616 drivers/infiniband/hw/hns/hns_roce_mr.c 	struct hns_roce_buf_region *r;
r                1626 drivers/infiniband/hw/hns/hns_roce_mr.c 		r = &regions[i];
r                1627 drivers/infiniband/hw/hns/hns_roce_mr.c 		ret = hns_roce_write_mtr(hr_dev, mtr, bufs[i], r);
r                1631 drivers/infiniband/hw/hns/hns_roce_mr.c 				i, region_cnt, ret,  r->offset);
r                 696 drivers/infiniband/hw/hns/hns_roce_qp.c 	struct hns_roce_buf_region *r;
r                 765 drivers/infiniband/hw/hns/hns_roce_qp.c 			r = &hr_qp->regions[i];
r                 767 drivers/infiniband/hw/hns/hns_roce_qp.c 					buf_list[i], r->count, r->offset,
r                 769 drivers/infiniband/hw/hns/hns_roce_qp.c 			if (buf_count != r->count) {
r                 772 drivers/infiniband/hw/hns/hns_roce_qp.c 					r->count, buf_count);
r                 866 drivers/infiniband/hw/hns/hns_roce_qp.c 			r = &hr_qp->regions[i];
r                 868 drivers/infiniband/hw/hns/hns_roce_qp.c 					buf_list[i], r->count, r->offset,
r                 870 drivers/infiniband/hw/hns/hns_roce_qp.c 			if (buf_count != r->count) {
r                 873 drivers/infiniband/hw/hns/hns_roce_qp.c 					r->count, buf_count);
r                2386 drivers/infiniband/hw/qib/qib_file_ops.c 	int r, ret;
r                2388 drivers/infiniband/hw/qib/qib_file_ops.c 	r = qib_user_add(dd);
r                2390 drivers/infiniband/hw/qib/qib_file_ops.c 	if (r && !ret)
r                2391 drivers/infiniband/hw/qib/qib_file_ops.c 		ret = r;
r                 367 drivers/infiniband/hw/qib/qib_pcie.c 	int r;
r                 369 drivers/infiniband/hw/qib/qib_pcie.c 	r = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_0,
r                 371 drivers/infiniband/hw/qib/qib_pcie.c 	if (r)
r                 372 drivers/infiniband/hw/qib/qib_pcie.c 		qib_dev_err(dd, "rewrite of BAR0 failed: %d\n", r);
r                 373 drivers/infiniband/hw/qib/qib_pcie.c 	r = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_1,
r                 375 drivers/infiniband/hw/qib/qib_pcie.c 	if (r)
r                 376 drivers/infiniband/hw/qib/qib_pcie.c 		qib_dev_err(dd, "rewrite of BAR1 failed: %d\n", r);
r                 381 drivers/infiniband/hw/qib/qib_pcie.c 	r = pci_enable_device(dd->pcidev);
r                 382 drivers/infiniband/hw/qib/qib_pcie.c 	if (r)
r                 384 drivers/infiniband/hw/qib/qib_pcie.c 			"pci_enable_device failed after reset: %d\n", r);
r                  81 drivers/infiniband/hw/qib/qib_sysfs.c 	int ret = count, r;
r                  83 drivers/infiniband/hw/qib/qib_sysfs.c 	r = dd->f_set_ib_loopback(ppd, buf);
r                  84 drivers/infiniband/hw/qib/qib_sysfs.c 	if (r < 0)
r                  85 drivers/infiniband/hw/qib/qib_sysfs.c 		ret = r;
r                  86 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h static inline __s32 pvrdma_idx_ring_has_space(const struct pvrdma_ring *r,
r                  89 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h 	const __u32 tail = atomic_read(&r->prod_tail);
r                  90 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h 	const __u32 head = atomic_read(&r->cons_head);
r                 100 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h static inline __s32 pvrdma_idx_ring_has_data(const struct pvrdma_ring *r,
r                 103 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h 	const __u32 tail = atomic_read(&r->prod_tail);
r                 104 drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h 	const __u32 head = atomic_read(&r->cons_head);
r                 181 drivers/infiniband/sw/rdmavt/mr.c 	u32 r;
r                 205 drivers/infiniband/sw/rdmavt/mr.c 	r = rkt->next;
r                 206 drivers/infiniband/sw/rdmavt/mr.c 	n = r;
r                 208 drivers/infiniband/sw/rdmavt/mr.c 		if (!rcu_access_pointer(rkt->table[r]))
r                 210 drivers/infiniband/sw/rdmavt/mr.c 		r = (r + 1) & (rkt->max - 1);
r                 211 drivers/infiniband/sw/rdmavt/mr.c 		if (r == n)
r                 214 drivers/infiniband/sw/rdmavt/mr.c 	rkt->next = (r + 1) & (rkt->max - 1);
r                 223 drivers/infiniband/sw/rdmavt/mr.c 	mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) |
r                 232 drivers/infiniband/sw/rdmavt/mr.c 	rcu_assign_pointer(rkt->table[r], mr);
r                 252 drivers/infiniband/sw/rdmavt/mr.c 	u32 r;
r                 268 drivers/infiniband/sw/rdmavt/mr.c 		r = lkey >> (32 - dev->dparms.lkey_table_size);
r                 271 drivers/infiniband/sw/rdmavt/mr.c 		rcu_assign_pointer(rkt->table[r], NULL);
r                  45 drivers/input/joystick/cobra.c 	int r[2], t[2];
r                  51 drivers/input/joystick/cobra.c 		r[i] = buf[i] = 0;
r                  64 drivers/input/joystick/cobra.c 				if ((w & 0x30) < 0x30 && r[i] < COBRA_LENGTH && t[i] > 0) {
r                  65 drivers/input/joystick/cobra.c 					buf[i] |= (__u64)((w >> 5) & 1) << r[i]++;
r                  78 drivers/input/joystick/cobra.c 		if (r[i] != COBRA_LENGTH) continue;
r                  99 drivers/input/joystick/cobra.c 	int i, j, r;
r                 103 drivers/input/joystick/cobra.c 	if ((r = cobra_read_packet(gameport, data)) != cobra->exists) {
r                 109 drivers/input/joystick/cobra.c 		if (cobra->exists & r & (1 << i)) {
r                 227 drivers/input/joystick/tmdc.c 	unsigned char r, bad = 0;
r                 232 drivers/input/joystick/tmdc.c 	if ((r = tmdc_read_packet(tmdc->gameport, data)) != tmdc->exists)
r                 236 drivers/input/joystick/tmdc.c 			if (r & (1 << i) & tmdc->exists) {
r                  52 drivers/input/keyboard/locomokbd.c #define KB_ROWMASK(r)		(1 << (r))
r                  53 drivers/input/keyboard/locomokbd.c #define SCANCODE(c,r)		( ((c)<<4) + (r) + 1 )
r                  79 drivers/input/keyboard/locomokbd.c 	unsigned long r;
r                  82 drivers/input/keyboard/locomokbd.c 	r = locomo_readl(membase + LOCOMO_KIC);
r                  83 drivers/input/keyboard/locomokbd.c 	r &= 0xFEFF;
r                  84 drivers/input/keyboard/locomokbd.c 	locomo_writel(r, membase + LOCOMO_KIC);
r                 180 drivers/input/keyboard/locomokbd.c 	u16 r;
r                 182 drivers/input/keyboard/locomokbd.c 	r = locomo_readl(locomokbd->base + LOCOMO_KIC);
r                 183 drivers/input/keyboard/locomokbd.c 	if ((r & 0x0001) == 0)
r                 186 drivers/input/keyboard/locomokbd.c 	locomo_writel(r & ~0x0100, locomokbd->base + LOCOMO_KIC); /* Ack */
r                 208 drivers/input/keyboard/locomokbd.c 	u16 r;
r                 210 drivers/input/keyboard/locomokbd.c 	r = locomo_readl(locomokbd->base + LOCOMO_KIC) | 0x0010;
r                 211 drivers/input/keyboard/locomokbd.c 	locomo_writel(r, locomokbd->base + LOCOMO_KIC);
r                 218 drivers/input/keyboard/locomokbd.c 	u16 r;
r                 220 drivers/input/keyboard/locomokbd.c 	r = locomo_readl(locomokbd->base + LOCOMO_KIC) & ~0x0010;
r                 221 drivers/input/keyboard/locomokbd.c 	locomo_writel(r, locomokbd->base + LOCOMO_KIC);
r                 487 drivers/input/keyboard/pxa27x_keypad.c static void report_rotary_event(struct pxa27x_keypad *keypad, int r, int delta)
r                 494 drivers/input/keyboard/pxa27x_keypad.c 	if (keypad->rotary_rel_code[r] == -1) {
r                 495 drivers/input/keyboard/pxa27x_keypad.c 		int code = MAX_MATRIX_KEY_NUM + 2 * r + (delta > 0 ? 0 : 1);
r                 506 drivers/input/keyboard/pxa27x_keypad.c 		input_report_rel(dev, keypad->rotary_rel_code[r], delta);
r                  29 drivers/input/keyboard/pxa930_rotary.c static void clear_sbcr(struct pxa930_rotary *r)
r                  31 drivers/input/keyboard/pxa930_rotary.c 	uint32_t sbcr = __raw_readl(r->mmio_base + SBCR);
r                  33 drivers/input/keyboard/pxa930_rotary.c 	__raw_writel(sbcr | SBCR_ERSB, r->mmio_base + SBCR);
r                  34 drivers/input/keyboard/pxa930_rotary.c 	__raw_writel(sbcr & ~SBCR_ERSB, r->mmio_base + SBCR);
r                  39 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary *r = dev_id;
r                  40 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary_platform_data *pdata = r->pdata;
r                  43 drivers/input/keyboard/pxa930_rotary.c 	ercr = __raw_readl(r->mmio_base + ERCR) & 0xf;
r                  44 drivers/input/keyboard/pxa930_rotary.c 	clear_sbcr(r);
r                  46 drivers/input/keyboard/pxa930_rotary.c 	delta = ercr - r->last_ercr;
r                  50 drivers/input/keyboard/pxa930_rotary.c 	r->last_ercr = ercr;
r                  54 drivers/input/keyboard/pxa930_rotary.c 		input_report_key(r->input_dev, key, 1);
r                  55 drivers/input/keyboard/pxa930_rotary.c 		input_sync(r->input_dev);
r                  56 drivers/input/keyboard/pxa930_rotary.c 		input_report_key(r->input_dev, key, 0);
r                  58 drivers/input/keyboard/pxa930_rotary.c 		input_report_rel(r->input_dev, pdata->rel_code, delta);
r                  60 drivers/input/keyboard/pxa930_rotary.c 	input_sync(r->input_dev);
r                  67 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary *r = input_get_drvdata(dev);
r                  69 drivers/input/keyboard/pxa930_rotary.c 	clear_sbcr(r);
r                  76 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary *r = input_get_drvdata(dev);
r                  78 drivers/input/keyboard/pxa930_rotary.c 	clear_sbcr(r);
r                  85 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary *r;
r                 106 drivers/input/keyboard/pxa930_rotary.c 	r = kzalloc(sizeof(struct pxa930_rotary), GFP_KERNEL);
r                 107 drivers/input/keyboard/pxa930_rotary.c 	if (!r)
r                 110 drivers/input/keyboard/pxa930_rotary.c 	r->mmio_base = ioremap_nocache(res->start, resource_size(res));
r                 111 drivers/input/keyboard/pxa930_rotary.c 	if (r->mmio_base == NULL) {
r                 117 drivers/input/keyboard/pxa930_rotary.c 	r->pdata = pdata;
r                 118 drivers/input/keyboard/pxa930_rotary.c 	platform_set_drvdata(pdev, r);
r                 143 drivers/input/keyboard/pxa930_rotary.c 	r->input_dev = input_dev;
r                 144 drivers/input/keyboard/pxa930_rotary.c 	input_set_drvdata(input_dev, r);
r                 147 drivers/input/keyboard/pxa930_rotary.c 			"enhanced rotary", r);
r                 162 drivers/input/keyboard/pxa930_rotary.c 	free_irq(irq, r);
r                 166 drivers/input/keyboard/pxa930_rotary.c 	iounmap(r->mmio_base);
r                 168 drivers/input/keyboard/pxa930_rotary.c 	kfree(r);
r                 174 drivers/input/keyboard/pxa930_rotary.c 	struct pxa930_rotary *r = platform_get_drvdata(pdev);
r                 176 drivers/input/keyboard/pxa930_rotary.c 	free_irq(platform_get_irq(pdev, 0), r);
r                 177 drivers/input/keyboard/pxa930_rotary.c 	input_unregister_device(r->input_dev);
r                 178 drivers/input/keyboard/pxa930_rotary.c 	iounmap(r->mmio_base);
r                 179 drivers/input/keyboard/pxa930_rotary.c 	kfree(r);
r                 230 drivers/input/misc/ati_remote2.c 	int r;
r                 232 drivers/input/misc/ati_remote2.c 	r = usb_submit_urb(ar2->urb[0], GFP_KERNEL);
r                 233 drivers/input/misc/ati_remote2.c 	if (r) {
r                 235 drivers/input/misc/ati_remote2.c 			"%s(): usb_submit_urb() = %d\n", __func__, r);
r                 236 drivers/input/misc/ati_remote2.c 		return r;
r                 238 drivers/input/misc/ati_remote2.c 	r = usb_submit_urb(ar2->urb[1], GFP_KERNEL);
r                 239 drivers/input/misc/ati_remote2.c 	if (r) {
r                 242 drivers/input/misc/ati_remote2.c 			"%s(): usb_submit_urb() = %d\n", __func__, r);
r                 243 drivers/input/misc/ati_remote2.c 		return r;
r                 258 drivers/input/misc/ati_remote2.c 	int r;
r                 262 drivers/input/misc/ati_remote2.c 	r = usb_autopm_get_interface(ar2->intf[0]);
r                 263 drivers/input/misc/ati_remote2.c 	if (r) {
r                 265 drivers/input/misc/ati_remote2.c 			"%s(): usb_autopm_get_interface() = %d\n", __func__, r);
r                 272 drivers/input/misc/ati_remote2.c 		r = ati_remote2_submit_urbs(ar2);
r                 273 drivers/input/misc/ati_remote2.c 		if (r)
r                 289 drivers/input/misc/ati_remote2.c 	return r;
r                 426 drivers/input/misc/ati_remote2.c 	int r;
r                 446 drivers/input/misc/ati_remote2.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 447 drivers/input/misc/ati_remote2.c 	if (r)
r                 449 drivers/input/misc/ati_remote2.c 			"%s(): usb_submit_urb() = %d\n", __func__, r);
r                 455 drivers/input/misc/ati_remote2.c 	int r;
r                 475 drivers/input/misc/ati_remote2.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 476 drivers/input/misc/ati_remote2.c 	if (r)
r                 478 drivers/input/misc/ati_remote2.c 			"%s(): usb_submit_urb() = %d\n", __func__, r);
r                 667 drivers/input/misc/ati_remote2.c 	int r, i, channel;
r                 687 drivers/input/misc/ati_remote2.c 	r = usb_control_msg(ar2->udev, usb_sndctrlpipe(ar2->udev, 0),
r                 691 drivers/input/misc/ati_remote2.c 	if (r) {
r                 693 drivers/input/misc/ati_remote2.c 			__func__, r);
r                 694 drivers/input/misc/ati_remote2.c 		return r;
r                 719 drivers/input/misc/ati_remote2.c 	int r;
r                 721 drivers/input/misc/ati_remote2.c 	r = kstrtouint(buf, 0, &mask);
r                 722 drivers/input/misc/ati_remote2.c 	if (r)
r                 723 drivers/input/misc/ati_remote2.c 		return r;
r                 728 drivers/input/misc/ati_remote2.c 	r = usb_autopm_get_interface(ar2->intf[0]);
r                 729 drivers/input/misc/ati_remote2.c 	if (r) {
r                 731 drivers/input/misc/ati_remote2.c 			"%s(): usb_autopm_get_interface() = %d\n", __func__, r);
r                 732 drivers/input/misc/ati_remote2.c 		return r;
r                 738 drivers/input/misc/ati_remote2.c 		r = ati_remote2_setup(ar2, mask);
r                 739 drivers/input/misc/ati_remote2.c 		if (!r)
r                 747 drivers/input/misc/ati_remote2.c 	return r ? r : count;
r                 804 drivers/input/misc/ati_remote2.c 	int r;
r                 819 drivers/input/misc/ati_remote2.c 		r = -ENODEV;
r                 830 drivers/input/misc/ati_remote2.c 		r = -ENODEV;
r                 834 drivers/input/misc/ati_remote2.c 	r = usb_driver_claim_interface(&ati_remote2_driver, ar2->intf[1], ar2);
r                 835 drivers/input/misc/ati_remote2.c 	if (r)
r                 843 drivers/input/misc/ati_remote2.c 		r = -ENODEV;
r                 848 drivers/input/misc/ati_remote2.c 	r = ati_remote2_urb_init(ar2);
r                 849 drivers/input/misc/ati_remote2.c 	if (r)
r                 855 drivers/input/misc/ati_remote2.c 	r = ati_remote2_setup(ar2, ar2->channel_mask);
r                 856 drivers/input/misc/ati_remote2.c 	if (r)
r                 864 drivers/input/misc/ati_remote2.c 	r = sysfs_create_group(&udev->dev.kobj, &ati_remote2_attr_group);
r                 865 drivers/input/misc/ati_remote2.c 	if (r)
r                 868 drivers/input/misc/ati_remote2.c 	r = ati_remote2_input_init(ar2);
r                 869 drivers/input/misc/ati_remote2.c 	if (r)
r                 887 drivers/input/misc/ati_remote2.c 	return r;
r                 941 drivers/input/misc/ati_remote2.c 	int r = 0;
r                 953 drivers/input/misc/ati_remote2.c 		r = ati_remote2_submit_urbs(ar2);
r                 955 drivers/input/misc/ati_remote2.c 	if (!r)
r                 960 drivers/input/misc/ati_remote2.c 	return r;
r                 967 drivers/input/misc/ati_remote2.c 	int r = 0;
r                 978 drivers/input/misc/ati_remote2.c 	r = ati_remote2_setup(ar2, ar2->channel_mask);
r                 979 drivers/input/misc/ati_remote2.c 	if (r)
r                 983 drivers/input/misc/ati_remote2.c 		r = ati_remote2_submit_urbs(ar2);
r                 985 drivers/input/misc/ati_remote2.c 	if (!r)
r                 991 drivers/input/misc/ati_remote2.c 	return r;
r                1018 drivers/input/misc/ati_remote2.c 	int r = 0;
r                1028 drivers/input/misc/ati_remote2.c 		r = ati_remote2_submit_urbs(ar2);
r                1032 drivers/input/misc/ati_remote2.c 	return r;
r                 212 drivers/input/mouse/hgpk.c 			      int l, int r, int x, int y)
r                 218 drivers/input/mouse/hgpk.c 	if (l || r)
r                 472 drivers/input/mouse/psmouse-base.c 	u8 r;
r                 477 drivers/input/mouse/psmouse-base.c 	r = rates[i];
r                 478 drivers/input/mouse/psmouse-base.c 	ps2_command(&psmouse->ps2dev, &r, PSMOUSE_CMD_SETRATE);
r                 479 drivers/input/mouse/psmouse-base.c 	psmouse->rate = r;
r                  34 drivers/input/mouse/touchkit_ps2.c #define TOUCHKIT_SEND_PARMS(s, r, c)	((s) << 12 | (r) << 8 | (c))
r                 190 drivers/input/tablet/wacom_serial4.c 	int major_v, minor_v, r = 0;
r                 195 drivers/input/tablet/wacom_serial4.c 		r = sscanf(p + 1, "%u.%u", &major_v, &minor_v);
r                 196 drivers/input/tablet/wacom_serial4.c 	if (r != 2)
r                 265 drivers/input/tablet/wacom_serial4.c 	int r, skip;
r                 268 drivers/input/tablet/wacom_serial4.c 	r = sscanf(wacom->data, "~R%x,%u,%u,%u,%u", &skip, &skip, &skip,
r                 270 drivers/input/tablet/wacom_serial4.c 	if (r != 5)
r                 276 drivers/input/tablet/wacom_serial4.c 	int r;
r                 279 drivers/input/tablet/wacom_serial4.c 	r = sscanf(wacom->data, "~C%u,%u", &wacom->max_x, &wacom->max_y);
r                 280 drivers/input/tablet/wacom_serial4.c 	if (r != 2)
r                 362 drivers/input/touchscreen/tsc200x-core.c 	unsigned int r;
r                 378 drivers/input/touchscreen/tsc200x-core.c 	error = regmap_read(ts->regmap, TSC200X_REG_CFR0, &r);
r                 380 drivers/input/touchscreen/tsc200x-core.c 	    !((r ^ TSC200X_CFR0_INITVALUE) & TSC200X_CFR0_RW_MASK)) {
r                1530 drivers/input/touchscreen/usbtouchscreen.c 	int r;
r                1534 drivers/input/touchscreen/usbtouchscreen.c 	r = usb_autopm_get_interface(usbtouch->interface) ? -EIO : 0;
r                1535 drivers/input/touchscreen/usbtouchscreen.c 	if (r < 0)
r                1541 drivers/input/touchscreen/usbtouchscreen.c 			r = -EIO;
r                1552 drivers/input/touchscreen/usbtouchscreen.c 	return r;
r                1558 drivers/input/touchscreen/usbtouchscreen.c 	int r;
r                1566 drivers/input/touchscreen/usbtouchscreen.c 	r = usb_autopm_get_interface(usbtouch->interface);
r                1568 drivers/input/touchscreen/usbtouchscreen.c 	if (!r)
r                  77 drivers/interconnect/core.c 			struct icc_req *r;
r                  80 drivers/interconnect/core.c 			hlist_for_each_entry(r, &n->req_list, req_node) {
r                  81 drivers/interconnect/core.c 				if (!r->dev)
r                  85 drivers/interconnect/core.c 					   dev_name(r->dev), r->avg_bw,
r                  86 drivers/interconnect/core.c 					   r->peak_bw);
r                 203 drivers/interconnect/core.c 	struct icc_req *r;
r                 211 drivers/interconnect/core.c 	hlist_for_each_entry(r, &node->req_list, req_node)
r                 212 drivers/interconnect/core.c 		p->aggregate(node, r->tag, r->avg_bw, r->peak_bw,
r                 761 drivers/interconnect/qcom/sdm845.c 	const struct qcom_icc_bcm **r = (const struct qcom_icc_bcm **)_r;
r                 763 drivers/interconnect/qcom/sdm845.c 	if (l[0]->aux_data.vcd < r[0]->aux_data.vcd)
r                 765 drivers/interconnect/qcom/sdm845.c 	else if (l[0]->aux_data.vcd == r[0]->aux_data.vcd)
r                2826 drivers/iommu/amd_iommu.c 			struct resource *r = &pdev->resource[i];
r                2828 drivers/iommu/amd_iommu.c 			if (!(r->flags & IORESOURCE_MEM))
r                2832 drivers/iommu/amd_iommu.c 					   IOVA_PFN(r->start),
r                2833 drivers/iommu/amd_iommu.c 					   IOVA_PFN(r->end));
r                2835 drivers/iommu/amd_iommu.c 				pci_err(pdev, "Reserve pci-resource range %pR failed\n", r);
r                1924 drivers/iommu/amd_iommu_init.c 	int r;
r                1926 drivers/iommu/amd_iommu_init.c 	r = pci_enable_msi(iommu->dev);
r                1927 drivers/iommu/amd_iommu_init.c 	if (r)
r                1928 drivers/iommu/amd_iommu_init.c 		return r;
r                1930 drivers/iommu/amd_iommu_init.c 	r = request_threaded_irq(iommu->dev->irq,
r                1936 drivers/iommu/amd_iommu_init.c 	if (r) {
r                1938 drivers/iommu/amd_iommu_init.c 		return r;
r                1810 drivers/iommu/intel-iommu.c 		struct resource *r;
r                1813 drivers/iommu/intel-iommu.c 			r = &pdev->resource[i];
r                1814 drivers/iommu/intel-iommu.c 			if (!r->flags || !(r->flags & IORESOURCE_MEM))
r                1817 drivers/iommu/intel-iommu.c 					    IOVA_PFN(r->start),
r                1818 drivers/iommu/intel-iommu.c 					    IOVA_PFN(r->end));
r                1820 drivers/iommu/intel-iommu.c 				pci_err(pdev, "Reserve iova for %pR failed\n", r);
r                1836 drivers/iommu/intel-iommu.c 	int r = (gaw - 12) % 9;
r                1838 drivers/iommu/intel-iommu.c 	if (r == 0)
r                1841 drivers/iommu/intel-iommu.c 		agaw = gaw + 9 - r;
r                 720 drivers/iommu/msm_iommu.c 	struct resource *r;
r                 758 drivers/iommu/msm_iommu.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 759 drivers/iommu/msm_iommu.c 	iommu->base = devm_ioremap_resource(iommu->dev, r);
r                 765 drivers/iommu/msm_iommu.c 	ioaddr = r->start;
r                  20 drivers/iommu/msm_iommu_hw-8xxx.h #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v))
r                  21 drivers/iommu/msm_iommu_hw-8xxx.h #define GET_GLOBAL_REG_N(b, n, r)    GET_GLOBAL_REG(b, ((r) + (n << 2)))
r                  24 drivers/iommu/msm_iommu_hw-8xxx.h #define GET_GLOBAL_FIELD(b, r, F)    GET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT)
r                  25 drivers/iommu/msm_iommu_hw-8xxx.h #define GET_CONTEXT_FIELD(b, c, r, F)	\
r                  26 drivers/iommu/msm_iommu_hw-8xxx.h 	GET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT)
r                  28 drivers/iommu/msm_iommu_hw-8xxx.h #define SET_GLOBAL_FIELD(b, r, F, v) \
r                  29 drivers/iommu/msm_iommu_hw-8xxx.h 	SET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT, (v))
r                  30 drivers/iommu/msm_iommu_hw-8xxx.h #define SET_CONTEXT_FIELD(b, c, r, F, v)	\
r                  31 drivers/iommu/msm_iommu_hw-8xxx.h 	SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v))
r                 155 drivers/ipack/devices/ipoctal.c 		value = ioread8(&channel->regs->r.rhr);
r                 185 drivers/ipack/devices/ipoctal.c 		isr = ioread8(&channel->block_regs->r.isr);
r                 186 drivers/ipack/devices/ipoctal.c 		sr = ioread8(&channel->regs->r.sr);
r                 216 drivers/ipack/devices/ipoctal.c 	isr = ioread8(&channel->block_regs->r.isr);
r                 217 drivers/ipack/devices/ipoctal.c 	sr = ioread8(&channel->regs->r.sr);
r                  28 drivers/ipack/devices/scc2698.h 	} __packed r; /* Read access */
r                  64 drivers/ipack/devices/scc2698.h 	} __packed r; /* Read access */
r                 503 drivers/irqchip/irq-armada-370-xp.c static void armada_370_xp_handle_msi_irq(struct pt_regs *r, bool b) {}
r                  72 drivers/irqchip/irq-dw-apb-ictl.c 	struct resource r;
r                  86 drivers/irqchip/irq-dw-apb-ictl.c 	ret = of_address_to_resource(np, 0, &r);
r                  92 drivers/irqchip/irq-dw-apb-ictl.c 	if (!request_mem_region(r.start, resource_size(&r), np->full_name)) {
r                  97 drivers/irqchip/irq-dw-apb-ictl.c 	iobase = ioremap(r.start, resource_size(&r));
r                 156 drivers/irqchip/irq-dw-apb-ictl.c 	release_mem_region(r.start, resource_size(&r));
r                1703 drivers/irqchip/irq-gic-v3.c 	struct resource r;
r                1717 drivers/irqchip/irq-gic-v3.c 	ret = of_address_to_resource(node, gicv_idx, &r);
r                1719 drivers/irqchip/irq-gic-v3.c 		gic_v3_kvm_info.vcpu = r;
r                  72 drivers/irqchip/irq-mmp.c 	u32 r;
r                  76 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(mmp_icu_base + (hwirq << 2));
r                  77 drivers/irqchip/irq-mmp.c 		r &= ~data->conf_mask;
r                  78 drivers/irqchip/irq-mmp.c 		r |= data->conf_disable;
r                  79 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, mmp_icu_base + (hwirq << 2));
r                  86 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(data->reg_mask) | (1 << hwirq);
r                  87 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, data->reg_mask);
r                  96 drivers/irqchip/irq-mmp.c 	u32 r;
r                 100 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(mmp_icu_base + (hwirq << 2));
r                 101 drivers/irqchip/irq-mmp.c 		r &= ~data->conf_mask;
r                 102 drivers/irqchip/irq-mmp.c 		r |= data->conf_disable;
r                 103 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, mmp_icu_base + (hwirq << 2));
r                 110 drivers/irqchip/irq-mmp.c 			r = readl_relaxed(mmp_icu2_base + (hwirq << 2));
r                 111 drivers/irqchip/irq-mmp.c 			r &= ~data->conf2_mask;
r                 112 drivers/irqchip/irq-mmp.c 			writel_relaxed(r, mmp_icu2_base + (hwirq << 2));
r                 115 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(data->reg_mask) | (1 << hwirq);
r                 116 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, data->reg_mask);
r                 125 drivers/irqchip/irq-mmp.c 	u32 r;
r                 129 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(mmp_icu_base + (hwirq << 2));
r                 130 drivers/irqchip/irq-mmp.c 		r &= ~data->conf_mask;
r                 131 drivers/irqchip/irq-mmp.c 		r |= data->conf_enable;
r                 132 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, mmp_icu_base + (hwirq << 2));
r                 134 drivers/irqchip/irq-mmp.c 		r = readl_relaxed(data->reg_mask) & ~(1 << hwirq);
r                 135 drivers/irqchip/irq-mmp.c 		writel_relaxed(r, data->reg_mask);
r                  45 drivers/irqchip/irq-mvebu-gicp.c 		struct mvebu_gicp_spi_range *r = &gicp->spi_ranges[i];
r                  47 drivers/irqchip/irq-mvebu-gicp.c 		if (idx < r->count)
r                  48 drivers/irqchip/irq-mvebu-gicp.c 			return r->start + idx;
r                  50 drivers/irqchip/irq-mvebu-gicp.c 		idx -= r->count;
r                  57 drivers/irqchip/irq-orion.c 	struct resource r;
r                  60 drivers/irqchip/irq-orion.c 	while (of_address_to_resource(np, num_chips, &r) == 0)
r                  80 drivers/irqchip/irq-orion.c 		of_address_to_resource(np, n, &r);
r                  82 drivers/irqchip/irq-orion.c 		if (!request_mem_region(r.start, resource_size(&r), np->name))
r                  86 drivers/irqchip/irq-orion.c 		gc->reg_base = ioremap(r.start, resource_size(&r));
r                 142 drivers/irqchip/irq-orion.c 	struct resource r;
r                 164 drivers/irqchip/irq-orion.c 	ret = of_address_to_resource(np, 0, &r);
r                 170 drivers/irqchip/irq-orion.c 	if (!request_mem_region(r.start, resource_size(&r), np->name)) {
r                 183 drivers/irqchip/irq-orion.c 	gc->reg_base = ioremap(r.start, resource_size(&r));
r                 572 drivers/isdn/capi/capiutil.c 	size_t n, r;
r                 577 drivers/isdn/capi/capiutil.c 	r = cdb->size - cdb->pos;
r                 578 drivers/isdn/capi/capiutil.c 	n = vsnprintf(cdb->p, r, fmt, f);
r                 580 drivers/isdn/capi/capiutil.c 	if (n >= r) {
r                 599 drivers/isdn/capi/capiutil.c 		r = cdb->size - cdb->pos;
r                 600 drivers/isdn/capi/capiutil.c 		n = vsnprintf(cdb->p, r, fmt, f);
r                1316 drivers/isdn/mISDN/dsp_cmx.c 	int r, rr, t, tt, o_r, o_rr;
r                1373 drivers/isdn/mISDN/dsp_cmx.c 	r = dsp->rx_R; /* rx-pointers */
r                1374 drivers/isdn/mISDN/dsp_cmx.c 	rr = (r + len) & CMX_BUFF_MASK;
r                1396 drivers/isdn/mISDN/dsp_cmx.c 		while (r != rr && t != tt) {
r                1404 drivers/isdn/mISDN/dsp_cmx.c 			r = (r + 1) & CMX_BUFF_MASK;
r                1406 drivers/isdn/mISDN/dsp_cmx.c 		if (r == rr) {
r                1423 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr && t != tt) {
r                1426 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1428 drivers/isdn/mISDN/dsp_cmx.c 			if (r != rr) {
r                1432 drivers/isdn/mISDN/dsp_cmx.c 				memset(d, dsp_silence, (rr - r) & CMX_BUFF_MASK);
r                1440 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr && t != tt) {
r                1441 drivers/isdn/mISDN/dsp_cmx.c 				*d++ = dsp_audio_mix_law[(p[t] << 8) | q[r]];
r                1443 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1445 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr) {
r                1446 drivers/isdn/mISDN/dsp_cmx.c 				*d++ = q[r]; /* echo */
r                1447 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1468 drivers/isdn/mISDN/dsp_cmx.c 		o_r = (o_rr - rr + r) & CMX_BUFF_MASK;
r                1491 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr && t != tt) {
r                1493 drivers/isdn/mISDN/dsp_cmx.c 					dsp_audio_law_to_s32[q[r]] +
r                1502 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1505 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr) {
r                1506 drivers/isdn/mISDN/dsp_cmx.c 				*d++ = dsp_audio_mix_law[(q[r] << 8) | o_q[o_r]];
r                1507 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1521 drivers/isdn/mISDN/dsp_cmx.c 		while (r != rr && t != tt) {
r                1523 drivers/isdn/mISDN/dsp_cmx.c 				dsp_audio_law_to_s32[q[r]];
r                1530 drivers/isdn/mISDN/dsp_cmx.c 			r = (r + 1) & CMX_BUFF_MASK;
r                1533 drivers/isdn/mISDN/dsp_cmx.c 		while (r != rr) {
r                1534 drivers/isdn/mISDN/dsp_cmx.c 			sample = *c++ - dsp_audio_law_to_s32[q[r]];
r                1541 drivers/isdn/mISDN/dsp_cmx.c 			r = (r + 1) & CMX_BUFF_MASK;
r                1549 drivers/isdn/mISDN/dsp_cmx.c 		while (r != rr && t != tt) {
r                1558 drivers/isdn/mISDN/dsp_cmx.c 			r = (r + 1) & CMX_BUFF_MASK;
r                1560 drivers/isdn/mISDN/dsp_cmx.c 		while (r != rr) {
r                1568 drivers/isdn/mISDN/dsp_cmx.c 			r = (r + 1) & CMX_BUFF_MASK;
r                1637 drivers/isdn/mISDN/dsp_cmx.c 	int r, rr;
r                1716 drivers/isdn/mISDN/dsp_cmx.c 				r = dsp->rx_R;
r                1717 drivers/isdn/mISDN/dsp_cmx.c 				rr = (r + length) & CMX_BUFF_MASK;
r                1719 drivers/isdn/mISDN/dsp_cmx.c 				while (r != rr) {
r                1720 drivers/isdn/mISDN/dsp_cmx.c 					*c++ += dsp_audio_law_to_s32[q[r]];
r                1721 drivers/isdn/mISDN/dsp_cmx.c 					r = (r + 1) & CMX_BUFF_MASK;
r                1740 drivers/isdn/mISDN/dsp_cmx.c 		r = dsp->rx_R;
r                1743 drivers/isdn/mISDN/dsp_cmx.c 			rr = (r + length) & CMX_BUFF_MASK;
r                1745 drivers/isdn/mISDN/dsp_cmx.c 			while (r != rr) {
r                1746 drivers/isdn/mISDN/dsp_cmx.c 				p[r] = dsp_silence;
r                1747 drivers/isdn/mISDN/dsp_cmx.c 				r = (r + 1) & CMX_BUFF_MASK;
r                1750 drivers/isdn/mISDN/dsp_cmx.c 			dsp->rx_R = r; /* write incremented read pointer */
r                1788 drivers/isdn/mISDN/dsp_cmx.c 				r = dsp->rx_R;
r                1789 drivers/isdn/mISDN/dsp_cmx.c 				rr = (r + delay - (dsp_poll >> 1))
r                1792 drivers/isdn/mISDN/dsp_cmx.c 				while (r != rr) {
r                1793 drivers/isdn/mISDN/dsp_cmx.c 					p[r] = dsp_silence;
r                1794 drivers/isdn/mISDN/dsp_cmx.c 					r = (r + 1) & CMX_BUFF_MASK;
r                1797 drivers/isdn/mISDN/dsp_cmx.c 				dsp->rx_R = r;
r                1819 drivers/isdn/mISDN/dsp_cmx.c 				r = dsp->tx_R;
r                1820 drivers/isdn/mISDN/dsp_cmx.c 				rr = (r + delay - (dsp_poll >> 1))
r                1823 drivers/isdn/mISDN/dsp_cmx.c 				while (r != rr) {
r                1824 drivers/isdn/mISDN/dsp_cmx.c 					q[r] = dsp_silence;
r                1825 drivers/isdn/mISDN/dsp_cmx.c 					r = (r + 1) & CMX_BUFF_MASK;
r                1828 drivers/isdn/mISDN/dsp_cmx.c 				dsp->tx_R = r;
r                  57 drivers/isdn/mISDN/fsm.c 	FSMFNPTR r;
r                  67 drivers/isdn/mISDN/fsm.c 	r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state];
r                  68 drivers/isdn/mISDN/fsm.c 	if (r) {
r                  73 drivers/isdn/mISDN/fsm.c 		r(fi, event, arg);
r                 254 drivers/isdn/mISDN/l1oip_codec.c 	u16 r;
r                 257 drivers/isdn/mISDN/l1oip_codec.c 		r = table_dec[*data++];
r                 258 drivers/isdn/mISDN/l1oip_codec.c 		*result++ = r >> 8;
r                 259 drivers/isdn/mISDN/l1oip_codec.c 		*result++ = r;
r                  62 drivers/leds/leds-bd2802.c 	unsigned r:2;
r                 112 drivers/leds/leds-bd2802.c 		return !led->led[id].r;
r                 125 drivers/leds/leds-bd2802.c 	if (led->led[id].r || led->led[id].g || led->led[id].b)
r                 180 drivers/leds/leds-bd2802.c 				led->led[i].r = led_bit;
r                 739 drivers/leds/leds-bd2802.c 		if (led->led[i].r)
r                 740 drivers/leds/leds-bd2802.c 			bd2802_turn_on(led, i, RED, led->led[i].r);
r                 147 drivers/leds/leds-lp3952.c 				      u8 cmd_index, u8 r, u8 g, u8 b,
r                 154 drivers/leds/leds-lp3952.c 				.r = r,
r                 393 drivers/leds/leds-lp5562.c 				ptn->r, ptn->size_r);
r                 363 drivers/leds/leds-tca6507.c 	int r;
r                 371 drivers/leds/leds-tca6507.c 	for (r = 0; r < TCA6507_REG_CNT; r++)
r                 372 drivers/leds/leds-tca6507.c 		if (set & (1<<r))
r                 373 drivers/leds/leds-tca6507.c 			i2c_smbus_write_byte_data(cl, r, file[r]);
r                  79 drivers/lightnvm/pblk-write.c 	struct pblk_c_ctx *c, *r;
r                  93 drivers/lightnvm/pblk-write.c 		list_for_each_entry_safe(c, r, &pblk->compl_list, list) {
r                  22 drivers/macintosh/macio-adb.c 	unsigned char r;
r                  97 drivers/macintosh/macio-adb.c 	struct resource r;
r                 104 drivers/macintosh/macio-adb.c 	if (of_address_to_resource(adbs, 0, &r)) {
r                 108 drivers/macintosh/macio-adb.c 	adb = ioremap(r.start, sizeof(struct adb_regs));
r                 110 drivers/macintosh/macio-adb.c 	out_8(&adb->ctrl.r, 0);
r                 111 drivers/macintosh/macio-adb.c 	out_8(&adb->intr.r, 0);
r                 112 drivers/macintosh/macio-adb.c 	out_8(&adb->error.r, 0);
r                 113 drivers/macintosh/macio-adb.c 	out_8(&adb->active_hi.r, 0xff); /* for now, set all devices active */
r                 114 drivers/macintosh/macio-adb.c 	out_8(&adb->active_lo.r, 0xff);
r                 115 drivers/macintosh/macio-adb.c 	out_8(&adb->autopoll.r, APE);
r                 123 drivers/macintosh/macio-adb.c 	out_8(&adb->intr_enb.r, DFB | TAG);
r                 135 drivers/macintosh/macio-adb.c 	out_8(&adb->active_hi.r, devs >> 8);
r                 136 drivers/macintosh/macio-adb.c 	out_8(&adb->active_lo.r, devs);
r                 137 drivers/macintosh/macio-adb.c 	out_8(&adb->autopoll.r, devs? APE: 0);
r                 153 drivers/macintosh/macio-adb.c 	out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | ADB_RST);
r                 154 drivers/macintosh/macio-adb.c 	while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) {
r                 156 drivers/macintosh/macio-adb.c 			out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST);
r                 189 drivers/macintosh/macio-adb.c 		out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR);
r                 212 drivers/macintosh/macio-adb.c 	if (in_8(&adb->intr.r) & TAG) {
r                 217 drivers/macintosh/macio-adb.c 				out_8(&adb->data[i].r, req->data[i]);
r                 218 drivers/macintosh/macio-adb.c 			out_8(&adb->dcount.r, req->nbytes & HMB);
r                 221 drivers/macintosh/macio-adb.c 				out_8(&adb->ctrl.r, DTB + CRE);
r                 223 drivers/macintosh/macio-adb.c 				out_8(&adb->ctrl.r, DTB);
r                 227 drivers/macintosh/macio-adb.c 					out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR);
r                 230 drivers/macintosh/macio-adb.c 		out_8(&adb->intr.r, 0);
r                 233 drivers/macintosh/macio-adb.c 	if (in_8(&adb->intr.r) & DFB) {
r                 235 drivers/macintosh/macio-adb.c 		err = in_8(&adb->error.r);
r                 240 drivers/macintosh/macio-adb.c 				req->reply_len = in_8(&adb->dcount.r) & HMB;
r                 242 drivers/macintosh/macio-adb.c 					req->reply[i] = in_8(&adb->data[i].r);
r                 247 drivers/macintosh/macio-adb.c 				out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) | TAR);
r                 250 drivers/macintosh/macio-adb.c 			n = in_8(&adb->dcount.r) & HMB;
r                 252 drivers/macintosh/macio-adb.c 				ibuf[i] = in_8(&adb->data[i].r);
r                 254 drivers/macintosh/macio-adb.c 			autopoll = (in_8(&adb->dcount.r) & APD) != 0;
r                 256 drivers/macintosh/macio-adb.c 		out_8(&adb->error.r, 0);
r                 257 drivers/macintosh/macio-adb.c 		out_8(&adb->intr.r, 0);
r                 281 drivers/macintosh/macio-adb.c 	if (in_8(&adb->intr.r) != 0)
r                 316 drivers/macintosh/macio_asic.c 	struct resource r;
r                 319 drivers/macintosh/macio_asic.c 	for (index = 0; of_address_to_resource(np, index, &r) == 0; index++) {
r                 324 drivers/macintosh/macio_asic.c 		*res = r;
r                  32 drivers/macintosh/mediabay.c #define MB_FCR32(bay, r)	((bay)->base + ((r) >> 2))
r                  33 drivers/macintosh/mediabay.c #define MB_FCR8(bay, r)		(((volatile u8 __iomem *)((bay)->base)) + (r))
r                  35 drivers/macintosh/mediabay.c #define MB_IN32(bay,r)		(in_le32(MB_FCR32(bay,r)))
r                  36 drivers/macintosh/mediabay.c #define MB_OUT32(bay,r,v)	(out_le32(MB_FCR32(bay,r), (v)))
r                  37 drivers/macintosh/mediabay.c #define MB_BIS(bay,r,v)		(MB_OUT32((bay), (r), MB_IN32((bay), r) | (v)))
r                  38 drivers/macintosh/mediabay.c #define MB_BIC(bay,r,v)		(MB_OUT32((bay), (r), MB_IN32((bay), r) & ~(v)))
r                  39 drivers/macintosh/mediabay.c #define MB_IN8(bay,r)		(in_8(MB_FCR8(bay,r)))
r                  40 drivers/macintosh/mediabay.c #define MB_OUT8(bay,r,v)	(out_8(MB_FCR8(bay,r), (v)))
r                 312 drivers/mailbox/mailbox-test.c 				   void *message, int r)
r                 314 drivers/mailbox/mailbox-test.c 	if (r)
r                 316 drivers/mailbox/mailbox-test.c 			 "Client: Message could not be sent: %d\n", r);
r                  90 drivers/mailbox/mailbox.c static void tx_tick(struct mbox_chan *chan, int r)
r                 108 drivers/mailbox/mailbox.c 		chan->cl->tx_done(chan->cl, mssg, r);
r                 110 drivers/mailbox/mailbox.c 	if (r != -ETIME && chan->cl->tx_block)
r                 168 drivers/mailbox/mailbox.c void mbox_chan_txdone(struct mbox_chan *chan, int r)
r                 176 drivers/mailbox/mailbox.c 	tx_tick(chan, r);
r                 189 drivers/mailbox/mailbox.c void mbox_client_txdone(struct mbox_chan *chan, int r)
r                 196 drivers/mailbox/mailbox.c 	tx_tick(chan, r);
r                  92 drivers/md/bcache/alloc.c 	int r;
r                  97 drivers/md/bcache/alloc.c 		r = atomic_read(&c->rescale);
r                  99 drivers/md/bcache/alloc.c 		if (r >= 0)
r                 101 drivers/md/bcache/alloc.c 	} while (atomic_cmpxchg(&c->rescale, r, r + next) != r);
r                 177 drivers/md/bcache/alloc.c #define bucket_max_cmp(l, r)	(bucket_prio(l) < bucket_prio(r))
r                 178 drivers/md/bcache/alloc.c #define bucket_min_cmp(l, r)	(bucket_prio(l) > bucket_prio(r))
r                 397 drivers/md/bcache/alloc.c 	long r;
r                 405 drivers/md/bcache/alloc.c 	if (fifo_pop(&ca->free[RESERVE_NONE], r) ||
r                 406 drivers/md/bcache/alloc.c 	    fifo_pop(&ca->free[reserve], r))
r                 421 drivers/md/bcache/alloc.c 	} while (!fifo_pop(&ca->free[RESERVE_NONE], r) &&
r                 422 drivers/md/bcache/alloc.c 		 !fifo_pop(&ca->free[reserve], r));
r                 437 drivers/md/bcache/alloc.c 			BUG_ON(ca->prio_buckets[iter] == (uint64_t) r);
r                 441 drivers/md/bcache/alloc.c 				BUG_ON(i == r);
r                 443 drivers/md/bcache/alloc.c 			BUG_ON(i == r);
r                 446 drivers/md/bcache/alloc.c 	b = ca->buckets + r;
r                 467 drivers/md/bcache/alloc.c 	return r;
r                 805 drivers/md/bcache/bcache.h 	uint8_t r = a - b;
r                 807 drivers/md/bcache/bcache.h 	return r > 128U ? 0 : r;
r                 603 drivers/md/bcache/bset.c 	struct bkey *r = is_power_of_2(j + 1)
r                 607 drivers/md/bcache/bset.c 	BUG_ON(m < l || m > r);
r                 620 drivers/md/bcache/bset.c 	if (KEY_INODE(l) != KEY_INODE(r))
r                 621 drivers/md/bcache/bset.c 		f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64;
r                 623 drivers/md/bcache/bset.c 		f->exponent = fls64(r->low ^ l->low);
r                 842 drivers/md/bcache/bset.c bool bch_bkey_try_merge(struct btree_keys *b, struct bkey *l, struct bkey *r)
r                 852 drivers/md/bcache/bset.c 	if (!bch_bkey_equal_header(l, r) ||
r                 853 drivers/md/bcache/bset.c 	     bkey_cmp(l, &START_KEY(r)))
r                 856 drivers/md/bcache/bset.c 	return b->ops->key_merge(b, l, r);
r                 939 drivers/md/bcache/bset.c 	struct bkey *l, *r;
r                 965 drivers/md/bcache/bset.c 	struct bkey *l, *r;
r                1002 drivers/md/bcache/bset.c 			r = cacheline_to_bkey(t, inorder, f->m);
r                1004 drivers/md/bcache/bset.c 			r = bset_bkey_last(t->data);
r                1006 drivers/md/bcache/bset.c 		r = cacheline_to_bkey(t, inorder, f->m);
r                1015 drivers/md/bcache/bset.c 	return (struct bset_search_iter) {l, r};
r                1040 drivers/md/bcache/bset.c 		i.r = bset_bkey_last(t->data);
r                1070 drivers/md/bcache/bset.c 		BUG_ON(i.r != bset_bkey_last(t->data) &&
r                1071 drivers/md/bcache/bset.c 		       bkey_cmp(i.r, search) <= 0);
r                1074 drivers/md/bcache/bset.c 	while (likely(i.l != i.r) &&
r                1088 drivers/md/bcache/bset.c 				  struct btree_iter_set r)
r                1090 drivers/md/bcache/bset.c 	return bkey_cmp(l.k, r.k) > 0;
r                 191 drivers/md/bcache/bset.h 				    struct btree_iter_set r);
r                 203 drivers/md/bcache/bset.h 				     struct bkey *l, struct bkey *r);
r                 301 drivers/md/bcache/bset.h bool bch_bkey_try_merge(struct btree_keys *b, struct bkey *l, struct bkey *r);
r                 414 drivers/md/bcache/bset.h 					const struct bkey *r)
r                 416 drivers/md/bcache/bset.h 	return unlikely(KEY_INODE(l) != KEY_INODE(r))
r                 417 drivers/md/bcache/bset.h 		? (int64_t) KEY_INODE(l) - (int64_t) KEY_INODE(r)
r                 418 drivers/md/bcache/bset.h 		: (int64_t) KEY_OFFSET(l) - (int64_t) KEY_OFFSET(r);
r                 476 drivers/md/bcache/bset.h 					 const struct bkey *r)
r                 478 drivers/md/bcache/bset.h 	return (KEY_DIRTY(l) == KEY_DIRTY(r) &&
r                 479 drivers/md/bcache/bset.h 		KEY_PTRS(l) == KEY_PTRS(r) &&
r                 480 drivers/md/bcache/bset.h 		KEY_CSUM(l) == KEY_CSUM(r));
r                1370 drivers/md/bcache/btree.c 			     struct gc_stat *gc, struct gc_merge_info *r)
r                1386 drivers/md/bcache/btree.c 	while (nodes < GC_MERGE_NODES && !IS_ERR_OR_NULL(r[nodes].b))
r                1387 drivers/md/bcache/btree.c 		keys += r[nodes++].keys;
r                1397 drivers/md/bcache/btree.c 		new_nodes[i] = btree_node_alloc_replacement(r[i].b, NULL);
r                1449 drivers/md/bcache/btree.c 			last = &r->b->key;
r                1463 drivers/md/bcache/btree.c 		r[i].keys = n1->keys;
r                1492 drivers/md/bcache/btree.c 		if (__bch_keylist_realloc(&keylist, bkey_u64s(&r[i].b->key)))
r                1495 drivers/md/bcache/btree.c 		make_btree_freeing_key(r[i].b, keylist.top);
r                1503 drivers/md/bcache/btree.c 		btree_node_free(r[i].b);
r                1504 drivers/md/bcache/btree.c 		rw_unlock(true, r[i].b);
r                1506 drivers/md/bcache/btree.c 		r[i].b = new_nodes[i];
r                1509 drivers/md/bcache/btree.c 	memmove(r, r + 1, sizeof(r[0]) * (nodes - 1));
r                1510 drivers/md/bcache/btree.c 	r[nodes - 1].b = ERR_PTR(-EINTR);
r                1617 drivers/md/bcache/btree.c 	struct gc_merge_info r[GC_MERGE_NODES];
r                1618 drivers/md/bcache/btree.c 	struct gc_merge_info *i, *last = r + ARRAY_SIZE(r) - 1;
r                1622 drivers/md/bcache/btree.c 	for (i = r; i < r + ARRAY_SIZE(r); i++)
r                1628 drivers/md/bcache/btree.c 			r->b = bch_btree_node_get(b->c, op, k, b->level - 1,
r                1630 drivers/md/bcache/btree.c 			if (IS_ERR(r->b)) {
r                1631 drivers/md/bcache/btree.c 				ret = PTR_ERR(r->b);
r                1635 drivers/md/bcache/btree.c 			r->keys = btree_gc_count_keys(r->b);
r                1637 drivers/md/bcache/btree.c 			ret = btree_gc_coalesce(b, op, gc, r);
r                1672 drivers/md/bcache/btree.c 		memmove(r + 1, r, sizeof(r[0]) * (GC_MERGE_NODES - 1));
r                1673 drivers/md/bcache/btree.c 		r->b = NULL;
r                1688 drivers/md/bcache/btree.c 	for (i = r; i < r + ARRAY_SIZE(r); i++)
r                2455 drivers/md/bcache/btree.c static inline int keybuf_cmp(struct keybuf_key *l, struct keybuf_key *r)
r                2458 drivers/md/bcache/btree.c 	if (bkey_cmp(&l->key, &START_KEY(&r->key)) <= 0)
r                2460 drivers/md/bcache/btree.c 	if (bkey_cmp(&START_KEY(&l->key), &r->key) >= 0)
r                2466 drivers/md/bcache/btree.c 					    struct keybuf_key *r)
r                2468 drivers/md/bcache/btree.c 	return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1);
r                  18 drivers/md/bcache/closure.c 	int r = flags & CLOSURE_REMAINING_MASK;
r                  21 drivers/md/bcache/closure.c 	BUG_ON(!r && (flags & ~CLOSURE_DESTRUCTOR));
r                  23 drivers/md/bcache/closure.c 	if (!r) {
r                 176 drivers/md/bcache/closure.c 		int r = atomic_read(&cl->remaining);
r                 180 drivers/md/bcache/closure.c 			   r & CLOSURE_REMAINING_MASK);
r                 185 drivers/md/bcache/closure.c 			   r & CLOSURE_RUNNING	? "R" : "");
r                 187 drivers/md/bcache/closure.c 		if (r & CLOSURE_WAITING)
r                  40 drivers/md/bcache/extents.c 			     struct btree_iter_set r)
r                  42 drivers/md/bcache/extents.c 	int64_t c = bkey_cmp(l.k, r.k);
r                  44 drivers/md/bcache/extents.c 	return c ? c > 0 : l.k < r.k;
r                  55 drivers/md/bcache/extents.c 			size_t r = bucket_remainder(c, PTR_OFFSET(k, i));
r                  57 drivers/md/bcache/extents.c 			if (KEY_SIZE(k) + r > c->sb.bucket_size ||
r                  76 drivers/md/bcache/extents.c 			size_t r = bucket_remainder(c, PTR_OFFSET(k, i));
r                  78 drivers/md/bcache/extents.c 			if (KEY_SIZE(k) + r > c->sb.bucket_size)
r                 259 drivers/md/bcache/extents.c 				struct btree_iter_set r)
r                 261 drivers/md/bcache/extents.c 	int64_t c = bkey_cmp(&START_KEY(l.k), &START_KEY(r.k));
r                 263 drivers/md/bcache/extents.c 	return c ? c > 0 : l.k < r.k;
r                 575 drivers/md/bcache/extents.c static uint64_t merge_chksums(struct bkey *l, struct bkey *r)
r                 577 drivers/md/bcache/extents.c 	return (l->ptr[KEY_PTRS(l)] + r->ptr[KEY_PTRS(r)]) &
r                 583 drivers/md/bcache/extents.c 			     struct bkey *r)
r                 592 drivers/md/bcache/extents.c 		if (l->ptr[i] + MAKE_PTR(0, KEY_SIZE(l), 0) != r->ptr[i] ||
r                 593 drivers/md/bcache/extents.c 		    PTR_BUCKET_NR(b->c, l, i) != PTR_BUCKET_NR(b->c, r, i))
r                 599 drivers/md/bcache/extents.c 	if (KEY_SIZE(l) + KEY_SIZE(r) > USHRT_MAX) {
r                 603 drivers/md/bcache/extents.c 		bch_cut_front(l, r);
r                 608 drivers/md/bcache/extents.c 		if (KEY_CSUM(r))
r                 609 drivers/md/bcache/extents.c 			l->ptr[KEY_PTRS(l)] = merge_chksums(l, r);
r                 614 drivers/md/bcache/extents.c 	SET_KEY_OFFSET(l, KEY_OFFSET(l) + KEY_SIZE(r));
r                 615 drivers/md/bcache/extents.c 	SET_KEY_SIZE(l, KEY_SIZE(l) + KEY_SIZE(r));
r                 189 drivers/md/bcache/journal.c 		unsigned int i, l, r, m;
r                 235 drivers/md/bcache/journal.c 		r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
r                 236 drivers/md/bcache/journal.c 		pr_debug("starting binary search, l %u r %u", l, r);
r                 238 drivers/md/bcache/journal.c 		while (l + 1 < r) {
r                 242 drivers/md/bcache/journal.c 			m = (l + r) >> 1;
r                 249 drivers/md/bcache/journal.c 				r = m;
r                 161 drivers/md/bcache/journal.h #define journal_pin_cmp(c, l, r)				\
r                 162 drivers/md/bcache/journal.h 	(fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r)))
r                 185 drivers/md/bcache/movinggc.c static bool bucket_cmp(struct bucket *l, struct bucket *r)
r                 187 drivers/md/bcache/movinggc.c 	return GC_SECTORS_USED(l) < GC_SECTORS_USED(r);
r                 808 drivers/md/bcache/sysfs.c 		int r;
r                 813 drivers/md/bcache/sysfs.c 		r = bch_flash_dev_create(c, v);
r                 814 drivers/md/bcache/sysfs.c 		if (r)
r                 815 drivers/md/bcache/sysfs.c 			return r;
r                 987 drivers/md/bcache/sysfs.c static int __bch_cache_cmp(const void *l, const void *r)
r                 990 drivers/md/bcache/sysfs.c 	return *((uint16_t *)r) - *((uint16_t *)l);
r                 219 drivers/md/bcache/util.h #define fifo_swap(l, r)							\
r                 221 drivers/md/bcache/util.h 	swap((l)->front, (r)->front);					\
r                 222 drivers/md/bcache/util.h 	swap((l)->back, (r)->back);					\
r                 223 drivers/md/bcache/util.h 	swap((l)->size, (r)->size);					\
r                 224 drivers/md/bcache/util.h 	swap((l)->mask, (r)->mask);					\
r                 225 drivers/md/bcache/util.h 	swap((l)->data, (r)->data);					\
r                 115 drivers/md/dm-bio-prison-v1.c 	int r;
r                 122 drivers/md/dm-bio-prison-v1.c 		r = cmp_keys(key, &cell->key);
r                 125 drivers/md/dm-bio-prison-v1.c 		if (r < 0)
r                 127 drivers/md/dm-bio-prison-v1.c 		else if (r > 0)
r                 152 drivers/md/dm-bio-prison-v1.c 	int r;
r                 156 drivers/md/dm-bio-prison-v1.c 	r = __bio_detain(prison, key, inmate, cell_prealloc, cell_result);
r                 159 drivers/md/dm-bio-prison-v1.c 	return r;
r                 277 drivers/md/dm-bio-prison-v1.c 	int r;
r                 281 drivers/md/dm-bio-prison-v1.c 	r = __promote_or_release(prison, cell);
r                 284 drivers/md/dm-bio-prison-v1.c 	return r;
r                 381 drivers/md/dm-bio-prison-v1.c 	int r = 1;
r                 388 drivers/md/dm-bio-prison-v1.c 		r = 0;
r                 397 drivers/md/dm-bio-prison-v1.c 	return r;
r                 432 drivers/md/dm-bio-prison-v1.c 	int r, i;
r                 435 drivers/md/dm-bio-prison-v1.c 		r = _inits[i]();
r                 436 drivers/md/dm-bio-prison-v1.c 		if (r)
r                 446 drivers/md/dm-bio-prison-v1.c 	return r;
r                 119 drivers/md/dm-bio-prison-v2.c 	int r;
r                 126 drivers/md/dm-bio-prison-v2.c 		r = cmp_keys(key, &cell->key);
r                 129 drivers/md/dm-bio-prison-v2.c 		if (r < 0)
r                 132 drivers/md/dm-bio-prison-v2.c 		else if (r > 0)
r                 179 drivers/md/dm-bio-prison-v2.c 	int r;
r                 183 drivers/md/dm-bio-prison-v2.c 	r = __get(prison, key, lock_level, inmate, cell_prealloc, cell_result);
r                 186 drivers/md/dm-bio-prison-v2.c 	return r;
r                 215 drivers/md/dm-bio-prison-v2.c 	bool r;
r                 219 drivers/md/dm-bio-prison-v2.c 	r = __put(prison, cell);
r                 222 drivers/md/dm-bio-prison-v2.c 	return r;
r                 263 drivers/md/dm-bio-prison-v2.c 	int r;
r                 267 drivers/md/dm-bio-prison-v2.c 	r = __lock(prison, key, lock_level, cell_prealloc, cell_result);
r                 270 drivers/md/dm-bio-prison-v2.c 	return r;
r                 311 drivers/md/dm-bio-prison-v2.c 	int r;
r                 315 drivers/md/dm-bio-prison-v2.c 	r = __promote(prison, cell, new_lock_level);
r                 318 drivers/md/dm-bio-prison-v2.c 	return r;
r                 344 drivers/md/dm-bio-prison-v2.c 	bool r;
r                 348 drivers/md/dm-bio-prison-v2.c 	r = __unlock(prison, cell, bios);
r                 351 drivers/md/dm-bio-prison-v2.c 	return r;
r                 557 drivers/md/dm-bufio.c 	int r;
r                 579 drivers/md/dm-bufio.c 	r = dm_io(&io_req, 1, &region, NULL);
r                 580 drivers/md/dm-bufio.c 	if (unlikely(r))
r                 581 drivers/md/dm-bufio.c 		b->end_io(b, errno_to_blk_status(r));
r                1610 drivers/md/dm-bufio.c 	int r;
r                1617 drivers/md/dm-bufio.c 		r = -EINVAL;
r                1623 drivers/md/dm-bufio.c 		r = -ENOMEM;
r                1654 drivers/md/dm-bufio.c 		r = PTR_ERR(c->dm_io);
r                1665 drivers/md/dm-bufio.c 			r = -ENOMEM;
r                1676 drivers/md/dm-bufio.c 		r = -ENOMEM;
r                1684 drivers/md/dm-bufio.c 			r = -ENOMEM;
r                1694 drivers/md/dm-bufio.c 	r = register_shrinker(&c->shrinker);
r                1695 drivers/md/dm-bufio.c 	if (r)
r                1720 drivers/md/dm-bufio.c 	return ERR_PTR(r);
r                 262 drivers/md/dm-cache-metadata.c 	int r;
r                 271 drivers/md/dm-cache-metadata.c 	r = dm_bm_read_lock(bm, CACHE_SUPERBLOCK_LOCATION, NULL, &b);
r                 272 drivers/md/dm-cache-metadata.c 	if (r)
r                 273 drivers/md/dm-cache-metadata.c 		return r;
r                 308 drivers/md/dm-cache-metadata.c 	int r;
r                 311 drivers/md/dm-cache-metadata.c 	r = dm_sm_root_size(cmd->metadata_sm, &metadata_len);
r                 312 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 313 drivers/md/dm-cache-metadata.c 		return r;
r                 334 drivers/md/dm-cache-metadata.c 	int r;
r                 343 drivers/md/dm-cache-metadata.c 	r = dm_tm_pre_commit(cmd->tm);
r                 344 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 345 drivers/md/dm-cache-metadata.c 		return r;
r                 351 drivers/md/dm-cache-metadata.c 	r = __save_sm_root(cmd);
r                 352 drivers/md/dm-cache-metadata.c 	if (r)
r                 353 drivers/md/dm-cache-metadata.c 		return r;
r                 355 drivers/md/dm-cache-metadata.c 	r = superblock_lock_zero(cmd, &sblock);
r                 356 drivers/md/dm-cache-metadata.c 	if (r)
r                 357 drivers/md/dm-cache-metadata.c 		return r;
r                 392 drivers/md/dm-cache-metadata.c 	int r;
r                 394 drivers/md/dm-cache-metadata.c 	r = dm_tm_create_with_sm(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
r                 396 drivers/md/dm-cache-metadata.c 	if (r < 0) {
r                 398 drivers/md/dm-cache-metadata.c 		return r;
r                 403 drivers/md/dm-cache-metadata.c 	r = dm_array_empty(&cmd->info, &cmd->root);
r                 404 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 409 drivers/md/dm-cache-metadata.c 		r = dm_bitset_empty(&cmd->dirty_info, &cmd->dirty_root);
r                 410 drivers/md/dm-cache-metadata.c 		if (r < 0)
r                 415 drivers/md/dm-cache-metadata.c 	r = dm_bitset_empty(&cmd->discard_info, &cmd->discard_root);
r                 416 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 422 drivers/md/dm-cache-metadata.c 	r = __write_initial_superblock(cmd);
r                 423 drivers/md/dm-cache-metadata.c 	if (r)
r                 433 drivers/md/dm-cache-metadata.c 	return r;
r                 467 drivers/md/dm-cache-metadata.c 	int r;
r                 472 drivers/md/dm-cache-metadata.c 	r = superblock_read_lock(cmd, &sblock);
r                 473 drivers/md/dm-cache-metadata.c 	if (r < 0) {
r                 475 drivers/md/dm-cache-metadata.c 		return r;
r                 485 drivers/md/dm-cache-metadata.c 		r = -EINVAL;
r                 489 drivers/md/dm-cache-metadata.c 	r = __check_incompat_features(disk_super, cmd);
r                 490 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 493 drivers/md/dm-cache-metadata.c 	r = dm_tm_open_with_sm(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
r                 497 drivers/md/dm-cache-metadata.c 	if (r < 0) {
r                 513 drivers/md/dm-cache-metadata.c 	return r;
r                 519 drivers/md/dm-cache-metadata.c 	int r;
r                 522 drivers/md/dm-cache-metadata.c 	r = __superblock_all_zeroes(cmd->bm, &unformatted);
r                 523 drivers/md/dm-cache-metadata.c 	if (r)
r                 524 drivers/md/dm-cache-metadata.c 		return r;
r                 535 drivers/md/dm-cache-metadata.c 	int r;
r                 543 drivers/md/dm-cache-metadata.c 	r = __open_or_format_metadata(cmd, may_format_device);
r                 544 drivers/md/dm-cache-metadata.c 	if (r)
r                 547 drivers/md/dm-cache-metadata.c 	return r;
r                 613 drivers/md/dm-cache-metadata.c 	int r;
r                 617 drivers/md/dm-cache-metadata.c 	r = superblock_lock(cmd, &sblock);
r                 618 drivers/md/dm-cache-metadata.c 	if (r)
r                 619 drivers/md/dm-cache-metadata.c 		return r;
r                 631 drivers/md/dm-cache-metadata.c 	int r;
r                 639 drivers/md/dm-cache-metadata.c 	r = superblock_read_lock(cmd, &sblock);
r                 640 drivers/md/dm-cache-metadata.c 	if (r)
r                 641 drivers/md/dm-cache-metadata.c 		return r;
r                 653 drivers/md/dm-cache-metadata.c 	int r;
r                 663 drivers/md/dm-cache-metadata.c 		r = dm_bitset_flush(&cmd->dirty_info, cmd->dirty_root,
r                 665 drivers/md/dm-cache-metadata.c 		if (r)
r                 666 drivers/md/dm-cache-metadata.c 			return r;
r                 669 drivers/md/dm-cache-metadata.c 	r = dm_bitset_flush(&cmd->discard_info, cmd->discard_root,
r                 671 drivers/md/dm-cache-metadata.c 	if (r)
r                 672 drivers/md/dm-cache-metadata.c 		return r;
r                 674 drivers/md/dm-cache-metadata.c 	r = dm_tm_pre_commit(cmd->tm);
r                 675 drivers/md/dm-cache-metadata.c 	if (r < 0)
r                 676 drivers/md/dm-cache-metadata.c 		return r;
r                 678 drivers/md/dm-cache-metadata.c 	r = __save_sm_root(cmd);
r                 679 drivers/md/dm-cache-metadata.c 	if (r)
r                 680 drivers/md/dm-cache-metadata.c 		return r;
r                 682 drivers/md/dm-cache-metadata.c 	r = superblock_lock(cmd, &sblock);
r                 683 drivers/md/dm-cache-metadata.c 	if (r)
r                 684 drivers/md/dm-cache-metadata.c 		return r;
r                 748 drivers/md/dm-cache-metadata.c 	int r;
r                 767 drivers/md/dm-cache-metadata.c 	r = __create_persistent_data_objects(cmd, may_format_device);
r                 768 drivers/md/dm-cache-metadata.c 	if (r) {
r                 770 drivers/md/dm-cache-metadata.c 		return ERR_PTR(r);
r                 773 drivers/md/dm-cache-metadata.c 	r = __begin_transaction_flags(cmd, clear_clean_shutdown);
r                 774 drivers/md/dm-cache-metadata.c 	if (r < 0) {
r                 776 drivers/md/dm-cache-metadata.c 		return ERR_PTR(r);
r                 884 drivers/md/dm-cache-metadata.c 	int r;
r                 889 drivers/md/dm-cache-metadata.c 	r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(b), &value);
r                 890 drivers/md/dm-cache-metadata.c 	if (r)
r                 891 drivers/md/dm-cache-metadata.c 		return r;
r                 903 drivers/md/dm-cache-metadata.c 	int r;
r                 907 drivers/md/dm-cache-metadata.c 		r = block_clean_combined_dirty(cmd, begin, result);
r                 908 drivers/md/dm-cache-metadata.c 		if (r) {
r                 910 drivers/md/dm-cache-metadata.c 			return r;
r                 929 drivers/md/dm-cache-metadata.c 	int r;
r                 937 drivers/md/dm-cache-metadata.c 	r = dm_bitset_cursor_begin(&cmd->dirty_info, cmd->dirty_root,
r                 939 drivers/md/dm-cache-metadata.c 	if (r) {
r                 941 drivers/md/dm-cache-metadata.c 		return r;
r                 944 drivers/md/dm-cache-metadata.c 	r = dm_bitset_cursor_skip(&cmd->dirty_cursor, from_cblock(begin));
r                 945 drivers/md/dm-cache-metadata.c 	if (r) {
r                 948 drivers/md/dm-cache-metadata.c 		return r;
r                 969 drivers/md/dm-cache-metadata.c 		r = dm_bitset_cursor_next(&cmd->dirty_cursor);
r                 970 drivers/md/dm-cache-metadata.c 		if (r) {
r                 973 drivers/md/dm-cache-metadata.c 			return r;
r                1044 drivers/md/dm-cache-metadata.c 	int r;
r                1052 drivers/md/dm-cache-metadata.c 		r = blocks_are_unmapped_or_clean(cmd, new_cache_size, cmd->cache_blocks, &clean);
r                1053 drivers/md/dm-cache-metadata.c 		if (r) {
r                1060 drivers/md/dm-cache-metadata.c 			r = -EINVAL;
r                1066 drivers/md/dm-cache-metadata.c 	r = dm_array_resize(&cmd->info, cmd->root, from_cblock(cmd->cache_blocks),
r                1069 drivers/md/dm-cache-metadata.c 	if (r)
r                1073 drivers/md/dm-cache-metadata.c 		r = dm_bitset_resize(&cmd->dirty_info, cmd->dirty_root,
r                1076 drivers/md/dm-cache-metadata.c 		if (r)
r                1086 drivers/md/dm-cache-metadata.c 	return r;
r                1093 drivers/md/dm-cache-metadata.c 	int r;
r                1096 drivers/md/dm-cache-metadata.c 	r = dm_bitset_resize(&cmd->discard_info,
r                1101 drivers/md/dm-cache-metadata.c 	if (!r) {
r                1109 drivers/md/dm-cache-metadata.c 	return r;
r                1127 drivers/md/dm-cache-metadata.c 	int r;
r                1129 drivers/md/dm-cache-metadata.c 	r = (discard ? __set_discard : __clear_discard)(cmd, dblock);
r                1130 drivers/md/dm-cache-metadata.c 	if (r)
r                1131 drivers/md/dm-cache-metadata.c 		return r;
r                1140 drivers/md/dm-cache-metadata.c 	int r;
r                1143 drivers/md/dm-cache-metadata.c 	r = __discard(cmd, dblock, discard);
r                1146 drivers/md/dm-cache-metadata.c 	return r;
r                1152 drivers/md/dm-cache-metadata.c 	int r = 0;
r                1161 drivers/md/dm-cache-metadata.c 		r = dm_bitset_flush(&cmd->discard_info, cmd->discard_root, &cmd->discard_root);
r                1162 drivers/md/dm-cache-metadata.c 		if (r)
r                1163 drivers/md/dm-cache-metadata.c 			return r;
r                1165 drivers/md/dm-cache-metadata.c 		r = dm_bitset_cursor_begin(&cmd->discard_info, cmd->discard_root,
r                1167 drivers/md/dm-cache-metadata.c 		if (r)
r                1168 drivers/md/dm-cache-metadata.c 			return r;
r                1171 drivers/md/dm-cache-metadata.c 			r = fn(context, cmd->discard_block_size, to_dblock(b),
r                1173 drivers/md/dm-cache-metadata.c 			if (r)
r                1179 drivers/md/dm-cache-metadata.c 			r = dm_bitset_cursor_next(&c);
r                1180 drivers/md/dm-cache-metadata.c 			if (r)
r                1188 drivers/md/dm-cache-metadata.c 			r = fn(context, cmd->discard_block_size, to_dblock(b), false);
r                1189 drivers/md/dm-cache-metadata.c 			if (r)
r                1190 drivers/md/dm-cache-metadata.c 				return r;
r                1194 drivers/md/dm-cache-metadata.c 	return r;
r                1200 drivers/md/dm-cache-metadata.c 	int r;
r                1203 drivers/md/dm-cache-metadata.c 	r = __load_discards(cmd, fn, context);
r                1206 drivers/md/dm-cache-metadata.c 	return r;
r                1220 drivers/md/dm-cache-metadata.c 	int r;
r                1224 drivers/md/dm-cache-metadata.c 	r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock),
r                1226 drivers/md/dm-cache-metadata.c 	if (r)
r                1227 drivers/md/dm-cache-metadata.c 		return r;
r                1235 drivers/md/dm-cache-metadata.c 	int r;
r                1238 drivers/md/dm-cache-metadata.c 	r = __remove(cmd, cblock);
r                1241 drivers/md/dm-cache-metadata.c 	return r;
r                1247 drivers/md/dm-cache-metadata.c 	int r;
r                1251 drivers/md/dm-cache-metadata.c 	r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock),
r                1253 drivers/md/dm-cache-metadata.c 	if (r)
r                1254 drivers/md/dm-cache-metadata.c 		return r;
r                1263 drivers/md/dm-cache-metadata.c 	int r;
r                1266 drivers/md/dm-cache-metadata.c 	r = __insert(cmd, cblock, oblock);
r                1269 drivers/md/dm-cache-metadata.c 	return r;
r                1327 drivers/md/dm-cache-metadata.c 	int r = 0;
r                1351 drivers/md/dm-cache-metadata.c 		r = fn(context, oblock, to_cblock(cb), dirty,
r                1353 drivers/md/dm-cache-metadata.c 		if (r) {
r                1359 drivers/md/dm-cache-metadata.c 	return r;
r                1369 drivers/md/dm-cache-metadata.c 	int r = 0;
r                1393 drivers/md/dm-cache-metadata.c 		r = fn(context, oblock, to_cblock(cb), dirty,
r                1395 drivers/md/dm-cache-metadata.c 		if (r) {
r                1401 drivers/md/dm-cache-metadata.c 	return r;
r                1408 drivers/md/dm-cache-metadata.c 	int r;
r                1417 drivers/md/dm-cache-metadata.c 	r = dm_array_cursor_begin(&cmd->info, cmd->root, &cmd->mapping_cursor);
r                1418 drivers/md/dm-cache-metadata.c 	if (r)
r                1419 drivers/md/dm-cache-metadata.c 		return r;
r                1422 drivers/md/dm-cache-metadata.c 		r = dm_array_cursor_begin(&cmd->hint_info, cmd->hint_root, &cmd->hint_cursor);
r                1423 drivers/md/dm-cache-metadata.c 		if (r) {
r                1425 drivers/md/dm-cache-metadata.c 			return r;
r                1430 drivers/md/dm-cache-metadata.c 		r = dm_bitset_cursor_begin(&cmd->dirty_info, cmd->dirty_root,
r                1433 drivers/md/dm-cache-metadata.c 		if (r) {
r                1436 drivers/md/dm-cache-metadata.c 			return r;
r                1442 drivers/md/dm-cache-metadata.c 			r = __load_mapping_v2(cmd, cb, hints_valid,
r                1448 drivers/md/dm-cache-metadata.c 			r = __load_mapping_v1(cmd, cb, hints_valid,
r                1451 drivers/md/dm-cache-metadata.c 		if (r)
r                1460 drivers/md/dm-cache-metadata.c 		r = dm_array_cursor_next(&cmd->mapping_cursor);
r                1461 drivers/md/dm-cache-metadata.c 		if (r) {
r                1467 drivers/md/dm-cache-metadata.c 			r = dm_array_cursor_next(&cmd->hint_cursor);
r                1468 drivers/md/dm-cache-metadata.c 			if (r) {
r                1475 drivers/md/dm-cache-metadata.c 			r = dm_bitset_cursor_next(&cmd->dirty_cursor);
r                1476 drivers/md/dm-cache-metadata.c 			if (r) {
r                1490 drivers/md/dm-cache-metadata.c 	return r;
r                1497 drivers/md/dm-cache-metadata.c 	int r;
r                1500 drivers/md/dm-cache-metadata.c 	r = __load_mappings(cmd, policy, fn, context);
r                1503 drivers/md/dm-cache-metadata.c 	return r;
r                1508 drivers/md/dm-cache-metadata.c 	int r = 0;
r                1516 drivers/md/dm-cache-metadata.c 	return r;
r                1533 drivers/md/dm-cache-metadata.c 	int r;
r                1536 drivers/md/dm-cache-metadata.c 	r = cmd->changed;
r                1539 drivers/md/dm-cache-metadata.c 	return r;
r                1544 drivers/md/dm-cache-metadata.c 	int r;
r                1549 drivers/md/dm-cache-metadata.c 	r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(cblock), &value);
r                1550 drivers/md/dm-cache-metadata.c 	if (r)
r                1551 drivers/md/dm-cache-metadata.c 		return r;
r                1562 drivers/md/dm-cache-metadata.c 	r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock),
r                1564 drivers/md/dm-cache-metadata.c 	if (r)
r                1565 drivers/md/dm-cache-metadata.c 		return r;
r                1574 drivers/md/dm-cache-metadata.c 	int r;
r                1577 drivers/md/dm-cache-metadata.c 		r = __dirty(cmd, to_cblock(i), test_bit(i, bits));
r                1578 drivers/md/dm-cache-metadata.c 		if (r)
r                1579 drivers/md/dm-cache-metadata.c 			return r;
r                1594 drivers/md/dm-cache-metadata.c 	int r = 0;
r                1602 drivers/md/dm-cache-metadata.c 	r = dm_bitset_del(&cmd->dirty_info, cmd->dirty_root);
r                1603 drivers/md/dm-cache-metadata.c 	if (r)
r                1604 drivers/md/dm-cache-metadata.c 		return r;
r                1614 drivers/md/dm-cache-metadata.c 	int r;
r                1618 drivers/md/dm-cache-metadata.c 		r = __set_dirty_bits_v2(cmd, nr_bits, bits);
r                1620 drivers/md/dm-cache-metadata.c 		r = __set_dirty_bits_v1(cmd, nr_bits, bits);
r                1623 drivers/md/dm-cache-metadata.c 	return r;
r                1644 drivers/md/dm-cache-metadata.c 	int r = -EINVAL;
r                1652 drivers/md/dm-cache-metadata.c 	r = __commit_transaction(cmd, mutator);
r                1653 drivers/md/dm-cache-metadata.c 	if (r)
r                1656 drivers/md/dm-cache-metadata.c 	r = __begin_transaction(cmd);
r                1659 drivers/md/dm-cache-metadata.c 	return r;
r                1665 drivers/md/dm-cache-metadata.c 	int r = -EINVAL;
r                1669 drivers/md/dm-cache-metadata.c 		r = dm_sm_get_nr_free(cmd->metadata_sm, result);
r                1672 drivers/md/dm-cache-metadata.c 	return r;
r                1678 drivers/md/dm-cache-metadata.c 	int r = -EINVAL;
r                1682 drivers/md/dm-cache-metadata.c 		r = dm_sm_get_nr_blocks(cmd->metadata_sm, result);
r                1685 drivers/md/dm-cache-metadata.c 	return r;
r                1707 drivers/md/dm-cache-metadata.c 	int r;
r                1725 drivers/md/dm-cache-metadata.c 		r = dm_array_del(&cmd->hint_info, cmd->hint_root);
r                1726 drivers/md/dm-cache-metadata.c 		if (r)
r                1727 drivers/md/dm-cache-metadata.c 			return r;
r                1737 drivers/md/dm-cache-metadata.c 	int r;
r                1740 drivers/md/dm-cache-metadata.c 	r = write_hints(cmd, policy);
r                1743 drivers/md/dm-cache-metadata.c 	return r;
r                1748 drivers/md/dm-cache-metadata.c 	int r;
r                1751 drivers/md/dm-cache-metadata.c 	r = blocks_are_unmapped_or_clean(cmd, 0, cmd->cache_blocks, result);
r                1754 drivers/md/dm-cache-metadata.c 	return r;
r                1773 drivers/md/dm-cache-metadata.c 	int r;
r                1780 drivers/md/dm-cache-metadata.c 	r = superblock_lock(cmd, &sblock);
r                1781 drivers/md/dm-cache-metadata.c 	if (r) {
r                1793 drivers/md/dm-cache-metadata.c 	return r;
r                1807 drivers/md/dm-cache-metadata.c 	int r;
r                1811 drivers/md/dm-cache-metadata.c 	r = __create_persistent_data_objects(cmd, false);
r                1812 drivers/md/dm-cache-metadata.c 	if (r)
r                1816 drivers/md/dm-cache-metadata.c 	return r;
r                1176 drivers/md/dm-cache-policy-smq.c 	int r;
r                1189 drivers/md/dm-cache-policy-smq.c 		r = btracker_queue(mq->bg_work, &work, NULL);
r                1190 drivers/md/dm-cache-policy-smq.c 		if (r) {
r                1199 drivers/md/dm-cache-policy-smq.c 	int r;
r                1219 drivers/md/dm-cache-policy-smq.c 	r = btracker_queue(mq->bg_work, &work, NULL);
r                1220 drivers/md/dm-cache-policy-smq.c 	if (r) {
r                1229 drivers/md/dm-cache-policy-smq.c 	int r;
r                1259 drivers/md/dm-cache-policy-smq.c 	r = btracker_queue(mq->bg_work, &work, workp);
r                1260 drivers/md/dm-cache-policy-smq.c 	if (r)
r                1294 drivers/md/dm-cache-policy-smq.c 	sector_t r = from_oblock(b);
r                1295 drivers/md/dm-cache-policy-smq.c 	(void) sector_div(r, mq->cache_blocks_per_hotspot_block);
r                1296 drivers/md/dm-cache-policy-smq.c 	return to_oblock(r);
r                1404 drivers/md/dm-cache-policy-smq.c 	int r;
r                1409 drivers/md/dm-cache-policy-smq.c 	r = __lookup(mq, oblock, cblock,
r                1414 drivers/md/dm-cache-policy-smq.c 	return r;
r                1422 drivers/md/dm-cache-policy-smq.c 	int r;
r                1428 drivers/md/dm-cache-policy-smq.c 	r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued);
r                1431 drivers/md/dm-cache-policy-smq.c 	return r;
r                1437 drivers/md/dm-cache-policy-smq.c 	int r;
r                1442 drivers/md/dm-cache-policy-smq.c 	r = btracker_issue(mq->bg_work, result);
r                1443 drivers/md/dm-cache-policy-smq.c 	if (r == -ENODATA) {
r                1446 drivers/md/dm-cache-policy-smq.c 			r = btracker_issue(mq->bg_work, result);
r                1451 drivers/md/dm-cache-policy-smq.c 	return r;
r                1605 drivers/md/dm-cache-policy-smq.c 	dm_cblock_t r;
r                1610 drivers/md/dm-cache-policy-smq.c 	r = to_cblock(mq->cache_alloc.nr_allocated);
r                1613 drivers/md/dm-cache-policy-smq.c 	return r;
r                1887 drivers/md/dm-cache-policy-smq.c 	int r;
r                1889 drivers/md/dm-cache-policy-smq.c 	r = dm_cache_policy_register(&smq_policy_type);
r                1890 drivers/md/dm-cache-policy-smq.c 	if (r) {
r                1891 drivers/md/dm-cache-policy-smq.c 		DMERR("register failed %d", r);
r                1895 drivers/md/dm-cache-policy-smq.c 	r = dm_cache_policy_register(&mq_policy_type);
r                1896 drivers/md/dm-cache-policy-smq.c 	if (r) {
r                1897 drivers/md/dm-cache-policy-smq.c 		DMERR("register failed (as mq) %d", r);
r                1901 drivers/md/dm-cache-policy-smq.c 	r = dm_cache_policy_register(&cleaner_policy_type);
r                1902 drivers/md/dm-cache-policy-smq.c 	if (r) {
r                1903 drivers/md/dm-cache-policy-smq.c 		DMERR("register failed (as cleaner) %d", r);
r                1907 drivers/md/dm-cache-policy-smq.c 	r = dm_cache_policy_register(&default_policy_type);
r                1908 drivers/md/dm-cache-policy-smq.c 	if (r) {
r                1909 drivers/md/dm-cache-policy-smq.c 		DMERR("register failed (as default) %d", r);
r                  81 drivers/md/dm-cache-policy.c 	int r;
r                  92 drivers/md/dm-cache-policy.c 		r = -EINVAL;
r                  95 drivers/md/dm-cache-policy.c 		r = 0;
r                  99 drivers/md/dm-cache-policy.c 	return r;
r                  76 drivers/md/dm-cache-target.c 	bool r;
r                  80 drivers/md/dm-cache-target.c 	r = __iot_idle_for(iot, jifs);
r                  83 drivers/md/dm-cache-target.c 	return r;
r                 174 drivers/md/dm-cache-target.c 	blk_status_t r;
r                 196 drivers/md/dm-cache-target.c 	r = b->commit_op(b->commit_context);
r                 200 drivers/md/dm-cache-target.c 		k->input = r;
r                 206 drivers/md/dm-cache-target.c 		if (r) {
r                 207 drivers/md/dm-cache-target.c 			bio->bi_status = r;
r                 658 drivers/md/dm-cache-target.c 	bool r;
r                 667 drivers/md/dm-cache-target.c 	r = dm_cell_get_v2(cache->prison, &key, lock_level(bio), bio, cell_prealloc, &cell);
r                 668 drivers/md/dm-cache-target.c 	if (!r) {
r                 673 drivers/md/dm-cache-target.c 		return r;
r                 682 drivers/md/dm-cache-target.c 	return r;
r                 780 drivers/md/dm-cache-target.c 	int r;
r                 784 drivers/md/dm-cache-target.c 	r = test_bit(from_dblock(b), cache->discard_bitset);
r                 787 drivers/md/dm-cache-target.c 	return r;
r                 792 drivers/md/dm-cache-target.c 	int r;
r                 796 drivers/md/dm-cache-target.c 	r = test_bit(from_dblock(oblock_to_dblock(cache, b)),
r                 800 drivers/md/dm-cache-target.c 	return r;
r                1026 drivers/md/dm-cache-target.c static void metadata_operation_failed(struct cache *cache, const char *op, int r)
r                1029 drivers/md/dm-cache-target.c 		    cache_device_name(cache), op, r);
r                1133 drivers/md/dm-cache-target.c 	bool r;
r                1136 drivers/md/dm-cache-target.c 	r = down_read_trylock(&cache->background_work_lock);
r                1139 drivers/md/dm-cache-target.c 	return r;
r                1329 drivers/md/dm-cache-target.c 	int r;
r                1336 drivers/md/dm-cache-target.c 		r = dm_cache_insert_mapping(cache->cmd, op->cblock, op->oblock);
r                1337 drivers/md/dm-cache-target.c 		if (r) {
r                1340 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_insert_mapping", r);
r                1349 drivers/md/dm-cache-target.c 		r = dm_cache_remove_mapping(cache->cmd, op->cblock);
r                1350 drivers/md/dm-cache-target.c 		if (r) {
r                1353 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_remove_mapping", r);
r                1404 drivers/md/dm-cache-target.c 	int r;
r                1417 drivers/md/dm-cache-target.c 		r = dm_cell_lock_promote_v2(mg->cache->prison, mg->cell,
r                1419 drivers/md/dm-cache-target.c 		if (r < 0)
r                1422 drivers/md/dm-cache-target.c 		else if (r)
r                1484 drivers/md/dm-cache-target.c 	int r;
r                1497 drivers/md/dm-cache-target.c 	r = dm_cell_lock_v2(cache->prison, &key,
r                1500 drivers/md/dm-cache-target.c 	if (r < 0) {
r                1503 drivers/md/dm-cache-target.c 		return r;
r                1509 drivers/md/dm-cache-target.c 	if (r == 0)
r                1567 drivers/md/dm-cache-target.c 	int r = policy_invalidate_mapping(cache->policy, cblock);
r                1568 drivers/md/dm-cache-target.c 	if (!r) {
r                1569 drivers/md/dm-cache-target.c 		r = dm_cache_remove_mapping(cache->cmd, cblock);
r                1570 drivers/md/dm-cache-target.c 		if (r) {
r                1573 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_remove_mapping", r);
r                1576 drivers/md/dm-cache-target.c 	} else if (r == -ENODATA) {
r                1580 drivers/md/dm-cache-target.c 		r = 0;
r                1585 drivers/md/dm-cache-target.c 	return r;
r                1590 drivers/md/dm-cache-target.c 	int r;
r                1594 drivers/md/dm-cache-target.c 	r = invalidate_cblock(cache, mg->invalidate_cblock);
r                1595 drivers/md/dm-cache-target.c 	if (r) {
r                1609 drivers/md/dm-cache-target.c 	int r;
r                1617 drivers/md/dm-cache-target.c 	r = dm_cell_lock_v2(cache->prison, &key,
r                1619 drivers/md/dm-cache-target.c 	if (r < 0) {
r                1622 drivers/md/dm-cache-target.c 		return r;
r                1628 drivers/md/dm-cache-target.c 	if (r)
r                1698 drivers/md/dm-cache-target.c 	int r, data_dir;
r                1721 drivers/md/dm-cache-target.c 		r = policy_lookup_with_work(cache->policy, block, &cblock, data_dir, true, &op);
r                1722 drivers/md/dm-cache-target.c 		if (unlikely(r && r != -ENOENT)) {
r                1724 drivers/md/dm-cache-target.c 				    cache_device_name(cache), r);
r                1729 drivers/md/dm-cache-target.c 		if (r == -ENOENT && op) {
r                1736 drivers/md/dm-cache-target.c 		r = policy_lookup(cache->policy, block, &cblock, data_dir, false, &background_queued);
r                1737 drivers/md/dm-cache-target.c 		if (unlikely(r && r != -ENOENT)) {
r                1739 drivers/md/dm-cache-target.c 				    cache_device_name(cache), r);
r                1748 drivers/md/dm-cache-target.c 	if (r == -ENOENT) {
r                1825 drivers/md/dm-cache-target.c 	int r;
r                1831 drivers/md/dm-cache-target.c 	r = dm_cache_commit(cache->cmd, clean_shutdown);
r                1832 drivers/md/dm-cache-target.c 	if (r)
r                1833 drivers/md/dm-cache-target.c 		metadata_operation_failed(cache, "dm_cache_commit", r);
r                1835 drivers/md/dm-cache-target.c 	return r;
r                1954 drivers/md/dm-cache-target.c 	int r;
r                1962 drivers/md/dm-cache-target.c 		r = policy_get_background_work(cache->policy, b == IDLE, &op);
r                1963 drivers/md/dm-cache-target.c 		if (r == -ENODATA)
r                1966 drivers/md/dm-cache-target.c 		if (r) {
r                1972 drivers/md/dm-cache-target.c 		r = mg_start(cache, op, NULL);
r                1973 drivers/md/dm-cache-target.c 		if (r)
r                2121 drivers/md/dm-cache-target.c 	int r;
r                2128 drivers/md/dm-cache-target.c 	r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE,
r                2130 drivers/md/dm-cache-target.c 	if (r) {
r                2132 drivers/md/dm-cache-target.c 		return r;
r                2146 drivers/md/dm-cache-target.c 	int r;
r                2151 drivers/md/dm-cache-target.c 	r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE,
r                2153 drivers/md/dm-cache-target.c 	if (r) {
r                2155 drivers/md/dm-cache-target.c 		return r;
r                2165 drivers/md/dm-cache-target.c 	int r;
r                2170 drivers/md/dm-cache-target.c 	r = dm_get_device(ca->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE,
r                2172 drivers/md/dm-cache-target.c 	if (r) {
r                2174 drivers/md/dm-cache-target.c 		return r;
r                2227 drivers/md/dm-cache-target.c 	int r, mode_ctr = 0;
r                2234 drivers/md/dm-cache-target.c 	r = dm_read_arg_group(_args, as, &argc, error);
r                2235 drivers/md/dm-cache-target.c 	if (r)
r                2283 drivers/md/dm-cache-target.c 	int r;
r                2290 drivers/md/dm-cache-target.c 	r = dm_read_arg_group(_args, as, &ca->policy_argc, error);
r                2291 drivers/md/dm-cache-target.c 	if (r)
r                2303 drivers/md/dm-cache-target.c 	int r;
r                2309 drivers/md/dm-cache-target.c 	r = parse_metadata_dev(ca, &as, error);
r                2310 drivers/md/dm-cache-target.c 	if (r)
r                2311 drivers/md/dm-cache-target.c 		return r;
r                2313 drivers/md/dm-cache-target.c 	r = parse_cache_dev(ca, &as, error);
r                2314 drivers/md/dm-cache-target.c 	if (r)
r                2315 drivers/md/dm-cache-target.c 		return r;
r                2317 drivers/md/dm-cache-target.c 	r = parse_origin_dev(ca, &as, error);
r                2318 drivers/md/dm-cache-target.c 	if (r)
r                2319 drivers/md/dm-cache-target.c 		return r;
r                2321 drivers/md/dm-cache-target.c 	r = parse_block_size(ca, &as, error);
r                2322 drivers/md/dm-cache-target.c 	if (r)
r                2323 drivers/md/dm-cache-target.c 		return r;
r                2325 drivers/md/dm-cache-target.c 	r = parse_features(ca, &as, error);
r                2326 drivers/md/dm-cache-target.c 	if (r)
r                2327 drivers/md/dm-cache-target.c 		return r;
r                2329 drivers/md/dm-cache-target.c 	r = parse_policy(ca, &as, error);
r                2330 drivers/md/dm-cache-target.c 	if (r)
r                2331 drivers/md/dm-cache-target.c 		return r;
r                2359 drivers/md/dm-cache-target.c 	int r = process_config_option(cache, key, value);
r                2361 drivers/md/dm-cache-target.c 	if (r == NOT_CORE_OPTION)
r                2362 drivers/md/dm-cache-target.c 		r = policy_set_config_value(cache->policy, key, value);
r                2364 drivers/md/dm-cache-target.c 	if (r)
r                2367 drivers/md/dm-cache-target.c 	return r;
r                2372 drivers/md/dm-cache-target.c 	int r = 0;
r                2380 drivers/md/dm-cache-target.c 		r = set_config_value(cache, argv[0], argv[1]);
r                2381 drivers/md/dm-cache-target.c 		if (r)
r                2388 drivers/md/dm-cache-target.c 	return r;
r                2465 drivers/md/dm-cache-target.c 	int r = 0;
r                2490 drivers/md/dm-cache-target.c 		r = bioset_init(&cache->bs, BIO_POOL_SIZE, 0, 0);
r                2491 drivers/md/dm-cache-target.c 		if (r)
r                2510 drivers/md/dm-cache-target.c 		r = -EINVAL;
r                2525 drivers/md/dm-cache-target.c 	r = create_cache_policy(cache, ca, error);
r                2526 drivers/md/dm-cache-target.c 	if (r)
r                2532 drivers/md/dm-cache-target.c 	r = set_config_values(cache, ca->policy_argc, ca->policy_argv);
r                2533 drivers/md/dm-cache-target.c 	if (r) {
r                2544 drivers/md/dm-cache-target.c 		r = PTR_ERR(cmd);
r                2551 drivers/md/dm-cache-target.c 		r = -EINVAL;
r                2558 drivers/md/dm-cache-target.c 		r = dm_cache_metadata_all_clean(cache->cmd, &all_clean);
r                2559 drivers/md/dm-cache-target.c 		if (r) {
r                2566 drivers/md/dm-cache-target.c 			r = -EINVAL;
r                2579 drivers/md/dm-cache-target.c 	r = -ENOMEM;
r                2603 drivers/md/dm-cache-target.c 		r = PTR_ERR(cache->copier);
r                2622 drivers/md/dm-cache-target.c 	r = mempool_init_slab_pool(&cache->migration_pool, MIGRATION_POOL_SIZE,
r                2624 drivers/md/dm-cache-target.c 	if (r) {
r                2659 drivers/md/dm-cache-target.c 	return r;
r                2688 drivers/md/dm-cache-target.c 	int r = -EINVAL;
r                2699 drivers/md/dm-cache-target.c 	r = parse_cache_args(ca, argc, argv, &ti->error);
r                2700 drivers/md/dm-cache-target.c 	if (r)
r                2703 drivers/md/dm-cache-target.c 	r = cache_create(ca, &cache);
r                2704 drivers/md/dm-cache-target.c 	if (r)
r                2707 drivers/md/dm-cache-target.c 	r = copy_ctr_args(cache, argc - 3, (const char **)argv + 3);
r                2708 drivers/md/dm-cache-target.c 	if (r) {
r                2716 drivers/md/dm-cache-target.c 	return r;
r                2725 drivers/md/dm-cache-target.c 	int r;
r                2746 drivers/md/dm-cache-target.c 	r = map_bio(cache, bio, block, &commit_needed);
r                2750 drivers/md/dm-cache-target.c 	return r;
r                2775 drivers/md/dm-cache-target.c 	int r;
r                2780 drivers/md/dm-cache-target.c 	r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset);
r                2781 drivers/md/dm-cache-target.c 	if (r)
r                2782 drivers/md/dm-cache-target.c 		metadata_operation_failed(cache, "dm_cache_set_dirty_bits", r);
r                2784 drivers/md/dm-cache-target.c 	return r;
r                2789 drivers/md/dm-cache-target.c 	unsigned i, r;
r                2794 drivers/md/dm-cache-target.c 	r = dm_cache_discard_bitset_resize(cache->cmd, cache->discard_block_size,
r                2796 drivers/md/dm-cache-target.c 	if (r) {
r                2798 drivers/md/dm-cache-target.c 		metadata_operation_failed(cache, "dm_cache_discard_bitset_resize", r);
r                2799 drivers/md/dm-cache-target.c 		return r;
r                2803 drivers/md/dm-cache-target.c 		r = dm_cache_set_discard(cache->cmd, to_dblock(i),
r                2805 drivers/md/dm-cache-target.c 		if (r) {
r                2806 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_set_discard", r);
r                2807 drivers/md/dm-cache-target.c 			return r;
r                2816 drivers/md/dm-cache-target.c 	int r;
r                2821 drivers/md/dm-cache-target.c 	r = dm_cache_write_hints(cache->cmd, cache->policy);
r                2822 drivers/md/dm-cache-target.c 	if (r) {
r                2823 drivers/md/dm-cache-target.c 		metadata_operation_failed(cache, "dm_cache_write_hints", r);
r                2824 drivers/md/dm-cache-target.c 		return r;
r                2887 drivers/md/dm-cache-target.c 	int r;
r                2896 drivers/md/dm-cache-target.c 	r = policy_load_mapping(cache->policy, oblock, cblock, dirty, hint, hint_valid);
r                2897 drivers/md/dm-cache-target.c 	if (r)
r                2898 drivers/md/dm-cache-target.c 		return r;
r                3022 drivers/md/dm-cache-target.c 	int r;
r                3024 drivers/md/dm-cache-target.c 	r = dm_cache_resize(cache->cmd, new_size);
r                3025 drivers/md/dm-cache-target.c 	if (r) {
r                3027 drivers/md/dm-cache-target.c 		metadata_operation_failed(cache, "dm_cache_resize", r);
r                3028 drivers/md/dm-cache-target.c 		return r;
r                3038 drivers/md/dm-cache-target.c 	int r = 0;
r                3046 drivers/md/dm-cache-target.c 		r = resize_cache_dev(cache, csize);
r                3047 drivers/md/dm-cache-target.c 		if (r)
r                3048 drivers/md/dm-cache-target.c 			return r;
r                3056 drivers/md/dm-cache-target.c 		r = resize_cache_dev(cache, csize);
r                3057 drivers/md/dm-cache-target.c 		if (r)
r                3058 drivers/md/dm-cache-target.c 			return r;
r                3062 drivers/md/dm-cache-target.c 		r = dm_cache_load_mappings(cache->cmd, cache->policy,
r                3064 drivers/md/dm-cache-target.c 		if (r) {
r                3066 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_load_mappings", r);
r                3067 drivers/md/dm-cache-target.c 			return r;
r                3084 drivers/md/dm-cache-target.c 		r = dm_cache_load_discards(cache->cmd, load_discard, &li);
r                3085 drivers/md/dm-cache-target.c 		if (r) {
r                3087 drivers/md/dm-cache-target.c 			metadata_operation_failed(cache, "dm_cache_load_discards", r);
r                3088 drivers/md/dm-cache-target.c 			return r;
r                3095 drivers/md/dm-cache-target.c 	return r;
r                3154 drivers/md/dm-cache-target.c 	int r = 0;
r                3175 drivers/md/dm-cache-target.c 		r = dm_cache_get_free_metadata_block_count(cache->cmd, &nr_free_blocks_metadata);
r                3176 drivers/md/dm-cache-target.c 		if (r) {
r                3178 drivers/md/dm-cache-target.c 			      cache_device_name(cache), r);
r                3182 drivers/md/dm-cache-target.c 		r = dm_cache_get_metadata_dev_size(cache->cmd, &nr_blocks_metadata);
r                3183 drivers/md/dm-cache-target.c 		if (r) {
r                3185 drivers/md/dm-cache-target.c 			      cache_device_name(cache), r);
r                3212 drivers/md/dm-cache-target.c 			r = policy_emit_config_values(cache->policy, result, maxlen, &sz);
r                3213 drivers/md/dm-cache-target.c 			if (r)
r                3215 drivers/md/dm-cache-target.c 				      cache_device_name(cache), r);
r                3223 drivers/md/dm-cache-target.c 		r = dm_cache_metadata_needs_check(cache->cmd, &needs_check);
r                3225 drivers/md/dm-cache-target.c 		if (r || needs_check)
r                3272 drivers/md/dm-cache-target.c 	int r;
r                3277 drivers/md/dm-cache-target.c 	r = sscanf(str, "%llu-%llu%c", &b, &e, &dummy);
r                3278 drivers/md/dm-cache-target.c 	if (r < 0)
r                3279 drivers/md/dm-cache-target.c 		return r;
r                3281 drivers/md/dm-cache-target.c 	if (r == 2) {
r                3290 drivers/md/dm-cache-target.c 	r = sscanf(str, "%llu%c", &b, &dummy);
r                3291 drivers/md/dm-cache-target.c 	if (r < 0)
r                3292 drivers/md/dm-cache-target.c 		return r;
r                3294 drivers/md/dm-cache-target.c 	if (r == 1) {
r                3338 drivers/md/dm-cache-target.c 	int r = 0;
r                3347 drivers/md/dm-cache-target.c 		r = invalidate_cblock(cache, range->begin);
r                3348 drivers/md/dm-cache-target.c 		if (r)
r                3349 drivers/md/dm-cache-target.c 			return r;
r                3355 drivers/md/dm-cache-target.c 	return r;
r                3361 drivers/md/dm-cache-target.c 	int r = 0;
r                3372 drivers/md/dm-cache-target.c 		r = parse_cblock_range(cache, cblock_ranges[i], &range);
r                3373 drivers/md/dm-cache-target.c 		if (r)
r                3376 drivers/md/dm-cache-target.c 		r = validate_cblock_range(cache, &range);
r                3377 drivers/md/dm-cache-target.c 		if (r)
r                3383 drivers/md/dm-cache-target.c 		r = request_invalidation(cache, &range);
r                3384 drivers/md/dm-cache-target.c 		if (r)
r                3388 drivers/md/dm-cache-target.c 	return r;
r                3425 drivers/md/dm-cache-target.c 	int r = 0;
r                3428 drivers/md/dm-cache-target.c 	r = fn(ti, cache->cache_dev, 0, get_dev_size(cache->cache_dev), data);
r                3429 drivers/md/dm-cache-target.c 	if (!r)
r                3430 drivers/md/dm-cache-target.c 		r = fn(ti, cache->origin_dev, 0, ti->len, data);
r                3432 drivers/md/dm-cache-target.c 	return r;
r                3533 drivers/md/dm-cache-target.c 	int r;
r                3539 drivers/md/dm-cache-target.c 	r = dm_register_target(&cache_target);
r                3540 drivers/md/dm-cache-target.c 	if (r) {
r                3541 drivers/md/dm-cache-target.c 		DMERR("cache target registration failed: %d", r);
r                3543 drivers/md/dm-cache-target.c 		return r;
r                 235 drivers/md/dm-clone-metadata.c 	int r;
r                 244 drivers/md/dm-clone-metadata.c 	r = dm_bm_read_lock(bm, SUPERBLOCK_LOCATION, NULL, &sblock);
r                 245 drivers/md/dm-clone-metadata.c 	if (r) {
r                 247 drivers/md/dm-clone-metadata.c 		return r;
r                 293 drivers/md/dm-clone-metadata.c 	int r;
r                 296 drivers/md/dm-clone-metadata.c 	r = dm_sm_root_size(cmd->sm, &root_size);
r                 297 drivers/md/dm-clone-metadata.c 	if (r)
r                 298 drivers/md/dm-clone-metadata.c 		return r;
r                 326 drivers/md/dm-clone-metadata.c 	int r;
r                 330 drivers/md/dm-clone-metadata.c 	r = superblock_read_lock(cmd, &sblock);
r                 332 drivers/md/dm-clone-metadata.c 	if (r) {
r                 334 drivers/md/dm-clone-metadata.c 		return r;
r                 343 drivers/md/dm-clone-metadata.c 		r = -EINVAL;
r                 347 drivers/md/dm-clone-metadata.c 	r = dm_tm_open_with_sm(cmd->bm, SUPERBLOCK_LOCATION,
r                 352 drivers/md/dm-clone-metadata.c 	if (r) {
r                 363 drivers/md/dm-clone-metadata.c 	return r;
r                 368 drivers/md/dm-clone-metadata.c 	int r;
r                 372 drivers/md/dm-clone-metadata.c 	r = dm_tm_create_with_sm(cmd->bm, SUPERBLOCK_LOCATION, &cmd->tm, &cmd->sm);
r                 373 drivers/md/dm-clone-metadata.c 	if (r) {
r                 375 drivers/md/dm-clone-metadata.c 		return r;
r                 380 drivers/md/dm-clone-metadata.c 	r = dm_bitset_empty(&cmd->bitset_info, &cmd->bitset_root);
r                 381 drivers/md/dm-clone-metadata.c 	if (r) {
r                 386 drivers/md/dm-clone-metadata.c 	r = dm_bitset_resize(&cmd->bitset_info, cmd->bitset_root, 0,
r                 388 drivers/md/dm-clone-metadata.c 	if (r) {
r                 394 drivers/md/dm-clone-metadata.c 	r = dm_tm_pre_commit(cmd->tm);
r                 395 drivers/md/dm-clone-metadata.c 	if (r) {
r                 400 drivers/md/dm-clone-metadata.c 	r = __copy_sm_root(cmd);
r                 401 drivers/md/dm-clone-metadata.c 	if (r) {
r                 406 drivers/md/dm-clone-metadata.c 	r = superblock_write_lock_zero(cmd, &sblock);
r                 407 drivers/md/dm-clone-metadata.c 	if (r) {
r                 414 drivers/md/dm-clone-metadata.c 	r = dm_tm_commit(cmd->tm, sblock);
r                 415 drivers/md/dm-clone-metadata.c 	if (r) {
r                 426 drivers/md/dm-clone-metadata.c 	return r;
r                 431 drivers/md/dm-clone-metadata.c 	int r;
r                 434 drivers/md/dm-clone-metadata.c 	r = __superblock_all_zeroes(cmd->bm, &formatted);
r                 435 drivers/md/dm-clone-metadata.c 	if (r)
r                 436 drivers/md/dm-clone-metadata.c 		return r;
r                 447 drivers/md/dm-clone-metadata.c 	int r;
r                 458 drivers/md/dm-clone-metadata.c 	r = __open_or_format_metadata(cmd, may_format_device);
r                 459 drivers/md/dm-clone-metadata.c 	if (r)
r                 462 drivers/md/dm-clone-metadata.c 	return r;
r                 530 drivers/md/dm-clone-metadata.c 	int r;
r                 535 drivers/md/dm-clone-metadata.c 	r = dm_bitset_flush(&cmd->bitset_info, cmd->bitset_root, &cmd->bitset_root);
r                 536 drivers/md/dm-clone-metadata.c 	if (r)
r                 537 drivers/md/dm-clone-metadata.c 		return r;
r                 539 drivers/md/dm-clone-metadata.c 	r = dm_bitset_cursor_begin(&cmd->bitset_info, cmd->bitset_root, cmd->nr_regions, &c);
r                 540 drivers/md/dm-clone-metadata.c 	if (r)
r                 541 drivers/md/dm-clone-metadata.c 		return r;
r                 552 drivers/md/dm-clone-metadata.c 		r = dm_bitset_cursor_next(&c);
r                 554 drivers/md/dm-clone-metadata.c 		if (r)
r                 560 drivers/md/dm-clone-metadata.c 	return r;
r                 567 drivers/md/dm-clone-metadata.c 	int r;
r                 591 drivers/md/dm-clone-metadata.c 		r = -ENOMEM;
r                 595 drivers/md/dm-clone-metadata.c 	r = __create_persistent_data_structures(cmd, true);
r                 596 drivers/md/dm-clone-metadata.c 	if (r)
r                 599 drivers/md/dm-clone-metadata.c 	r = __load_bitset_in_core(cmd);
r                 600 drivers/md/dm-clone-metadata.c 	if (r) {
r                 605 drivers/md/dm-clone-metadata.c 	r = dirty_map_init(cmd);
r                 606 drivers/md/dm-clone-metadata.c 	if (r)
r                 623 drivers/md/dm-clone-metadata.c 	return ERR_PTR(r);
r                 674 drivers/md/dm-clone-metadata.c 	int r;
r                 680 drivers/md/dm-clone-metadata.c 			r = dm_bitset_set_bit(&cmd->bitset_info, cmd->bitset_root,
r                 682 drivers/md/dm-clone-metadata.c 			if (r) {
r                 684 drivers/md/dm-clone-metadata.c 				return r;
r                 696 drivers/md/dm-clone-metadata.c 	int r;
r                 701 drivers/md/dm-clone-metadata.c 	r = dm_bitset_flush(&cmd->bitset_info, cmd->bitset_root, &cmd->bitset_root);
r                 702 drivers/md/dm-clone-metadata.c 	if (r) {
r                 704 drivers/md/dm-clone-metadata.c 		return r;
r                 708 drivers/md/dm-clone-metadata.c 	r = dm_tm_pre_commit(cmd->tm);
r                 709 drivers/md/dm-clone-metadata.c 	if (r) {
r                 711 drivers/md/dm-clone-metadata.c 		return r;
r                 715 drivers/md/dm-clone-metadata.c 	r = __copy_sm_root(cmd);
r                 716 drivers/md/dm-clone-metadata.c 	if (r) {
r                 718 drivers/md/dm-clone-metadata.c 		return r;
r                 722 drivers/md/dm-clone-metadata.c 	r = superblock_write_lock_zero(cmd, &sblock);
r                 723 drivers/md/dm-clone-metadata.c 	if (r) {
r                 725 drivers/md/dm-clone-metadata.c 		return r;
r                 733 drivers/md/dm-clone-metadata.c 	r = dm_tm_commit(cmd->tm, sblock);
r                 734 drivers/md/dm-clone-metadata.c 	if (r) {
r                 736 drivers/md/dm-clone-metadata.c 		return r;
r                 750 drivers/md/dm-clone-metadata.c 	int r;
r                 760 drivers/md/dm-clone-metadata.c 		r = __update_metadata_word(cmd, dmap->dirty_regions, word);
r                 762 drivers/md/dm-clone-metadata.c 		if (r)
r                 763 drivers/md/dm-clone-metadata.c 			return r;
r                 769 drivers/md/dm-clone-metadata.c 	r = __metadata_commit(cmd);
r                 771 drivers/md/dm-clone-metadata.c 	if (r)
r                 772 drivers/md/dm-clone-metadata.c 		return r;
r                 784 drivers/md/dm-clone-metadata.c 	int r = 0;
r                 790 drivers/md/dm-clone-metadata.c 		r = -EPERM;
r                 805 drivers/md/dm-clone-metadata.c 		r = -EINVAL;
r                 819 drivers/md/dm-clone-metadata.c 	return r;
r                 824 drivers/md/dm-clone-metadata.c 	int r = -EPERM;
r                 832 drivers/md/dm-clone-metadata.c 		r = -EINVAL;
r                 836 drivers/md/dm-clone-metadata.c 	r = __flush_dmap(cmd, cmd->committing_dmap);
r                 837 drivers/md/dm-clone-metadata.c 	if (!r) {
r                 844 drivers/md/dm-clone-metadata.c 	return r;
r                 849 drivers/md/dm-clone-metadata.c 	int r = 0;
r                 864 drivers/md/dm-clone-metadata.c 		r = -EPERM;
r                 878 drivers/md/dm-clone-metadata.c 	return r;
r                 884 drivers/md/dm-clone-metadata.c 	int r = 0;
r                 898 drivers/md/dm-clone-metadata.c 		r = -EPERM;
r                 915 drivers/md/dm-clone-metadata.c 	return r;
r                 930 drivers/md/dm-clone-metadata.c 	int r = -EINVAL;
r                 937 drivers/md/dm-clone-metadata.c 	r = __load_bitset_in_core(cmd);
r                 941 drivers/md/dm-clone-metadata.c 	return r;
r                 946 drivers/md/dm-clone-metadata.c 	bool r;
r                 950 drivers/md/dm-clone-metadata.c 	r = cmd->dmap[0].changed || cmd->dmap[1].changed;
r                 953 drivers/md/dm-clone-metadata.c 	return r;
r                 958 drivers/md/dm-clone-metadata.c 	int r = -EPERM;
r                 967 drivers/md/dm-clone-metadata.c 	r = __create_persistent_data_structures(cmd, false);
r                 968 drivers/md/dm-clone-metadata.c 	if (r) {
r                 975 drivers/md/dm-clone-metadata.c 	return r;
r                1009 drivers/md/dm-clone-metadata.c 	int r = -EINVAL;
r                1014 drivers/md/dm-clone-metadata.c 		r = dm_sm_get_nr_free(cmd->sm, result);
r                1018 drivers/md/dm-clone-metadata.c 	return r;
r                1024 drivers/md/dm-clone-metadata.c 	int r = -EINVAL;
r                1029 drivers/md/dm-clone-metadata.c 		r = dm_sm_get_nr_blocks(cmd->sm, result);
r                1033 drivers/md/dm-clone-metadata.c 	return r;
r                 232 drivers/md/dm-clone-target.c static void __metadata_operation_failed(struct clone *clone, const char *op, int r)
r                 235 drivers/md/dm-clone-target.c 	      clone_device_name(clone), op, r);
r                 702 drivers/md/dm-clone-target.c 	int r = 0;
r                 708 drivers/md/dm-clone-target.c 		r = -EPERM;
r                 711 drivers/md/dm-clone-target.c 	if (likely(!r) && hd->status == BLK_STS_OK)
r                 712 drivers/md/dm-clone-target.c 		r = dm_clone_set_region_hydrated(clone->cmd, hd->region_nr);
r                 721 drivers/md/dm-clone-target.c 	return r;
r                 736 drivers/md/dm-clone-target.c 	int r;
r                 740 drivers/md/dm-clone-target.c 	r = hydration_update_metadata(hd);
r                 742 drivers/md/dm-clone-target.c 	if (hd->status == BLK_STS_OK && likely(!r)) {
r                 748 drivers/md/dm-clone-target.c 		status = r ? BLK_STS_IOERR : hd->status;
r                1134 drivers/md/dm-clone-target.c 	int r = 0;
r                1145 drivers/md/dm-clone-target.c 		r = -EPERM;
r                1149 drivers/md/dm-clone-target.c 	r = dm_clone_metadata_pre_commit(clone->cmd);
r                1150 drivers/md/dm-clone-target.c 	if (unlikely(r)) {
r                1151 drivers/md/dm-clone-target.c 		__metadata_operation_failed(clone, "dm_clone_metadata_pre_commit", r);
r                1159 drivers/md/dm-clone-target.c 	r = submit_bio_wait(&clone->flush_bio);
r                1160 drivers/md/dm-clone-target.c 	if (unlikely(r)) {
r                1161 drivers/md/dm-clone-target.c 		__metadata_operation_failed(clone, "flush destination device", r);
r                1168 drivers/md/dm-clone-target.c 	r = dm_clone_metadata_commit(clone->cmd);
r                1169 drivers/md/dm-clone-target.c 	if (unlikely(r)) {
r                1170 drivers/md/dm-clone-target.c 		__metadata_operation_failed(clone, "dm_clone_metadata_commit", r);
r                1179 drivers/md/dm-clone-target.c 	return r;
r                1184 drivers/md/dm-clone-target.c 	int r = -EPERM;
r                1209 drivers/md/dm-clone-target.c 		r = dm_clone_cond_set_range(clone->cmd, rs, nr_regions);
r                1210 drivers/md/dm-clone-target.c 		if (unlikely(r))
r                1216 drivers/md/dm-clone-target.c 		complete_discard_bio(clone, bio, r == 0);
r                1437 drivers/md/dm-clone-target.c 	int r;
r                1456 drivers/md/dm-clone-target.c 		r = dm_clone_get_free_metadata_block_count(clone->cmd, &nr_free_metadata_blocks);
r                1458 drivers/md/dm-clone-target.c 		if (r) {
r                1460 drivers/md/dm-clone-target.c 			      clone_device_name(clone), r);
r                1464 drivers/md/dm-clone-target.c 		r = dm_clone_get_metadata_dev_size(clone->cmd, &nr_metadata_blocks);
r                1466 drivers/md/dm-clone-target.c 		if (r) {
r                1468 drivers/md/dm-clone-target.c 			      clone_device_name(clone), r);
r                1557 drivers/md/dm-clone-target.c 	int r;
r                1572 drivers/md/dm-clone-target.c 	r = dm_read_arg_group(&args, as, &argc, &ti->error);
r                1573 drivers/md/dm-clone-target.c 	if (r)
r                1574 drivers/md/dm-clone-target.c 		return r;
r                1595 drivers/md/dm-clone-target.c 	int r;
r                1615 drivers/md/dm-clone-target.c 	r = dm_read_arg_group(&args, as, &argc, &ti->error);
r                1616 drivers/md/dm-clone-target.c 	if (r)
r                1617 drivers/md/dm-clone-target.c 		return r;
r                1651 drivers/md/dm-clone-target.c 	int r;
r                1659 drivers/md/dm-clone-target.c 	r = dm_read_arg(&arg, as, &region_size, error);
r                1660 drivers/md/dm-clone-target.c 	if (r)
r                1661 drivers/md/dm-clone-target.c 		return r;
r                1697 drivers/md/dm-clone-target.c 	int r;
r                1701 drivers/md/dm-clone-target.c 	r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE,
r                1703 drivers/md/dm-clone-target.c 	if (r) {
r                1705 drivers/md/dm-clone-target.c 		return r;
r                1718 drivers/md/dm-clone-target.c 	int r;
r                1721 drivers/md/dm-clone-target.c 	r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ | FMODE_WRITE,
r                1723 drivers/md/dm-clone-target.c 	if (r) {
r                1725 drivers/md/dm-clone-target.c 		return r;
r                1740 drivers/md/dm-clone-target.c 	int r;
r                1743 drivers/md/dm-clone-target.c 	r = dm_get_device(clone->ti, dm_shift_arg(as), FMODE_READ,
r                1745 drivers/md/dm-clone-target.c 	if (r) {
r                1747 drivers/md/dm-clone-target.c 		return r;
r                1791 drivers/md/dm-clone-target.c 	int r;
r                1817 drivers/md/dm-clone-target.c 	r = parse_metadata_dev(clone, &as, &ti->error);
r                1818 drivers/md/dm-clone-target.c 	if (r)
r                1821 drivers/md/dm-clone-target.c 	r = parse_dest_dev(clone, &as, &ti->error);
r                1822 drivers/md/dm-clone-target.c 	if (r)
r                1825 drivers/md/dm-clone-target.c 	r = parse_source_dev(clone, &as, &ti->error);
r                1826 drivers/md/dm-clone-target.c 	if (r)
r                1829 drivers/md/dm-clone-target.c 	r = parse_region_size(clone, &as, &ti->error);
r                1830 drivers/md/dm-clone-target.c 	if (r)
r                1839 drivers/md/dm-clone-target.c 		r = -EOVERFLOW;
r                1845 drivers/md/dm-clone-target.c 	r = validate_nr_regions(clone->nr_regions, &ti->error);
r                1846 drivers/md/dm-clone-target.c 	if (r)
r                1849 drivers/md/dm-clone-target.c 	r = dm_set_target_max_io_len(ti, clone->region_size);
r                1850 drivers/md/dm-clone-target.c 	if (r) {
r                1855 drivers/md/dm-clone-target.c 	r = parse_feature_args(&as, clone);
r                1856 drivers/md/dm-clone-target.c 	if (r)
r                1859 drivers/md/dm-clone-target.c 	r = parse_core_args(&as, clone);
r                1860 drivers/md/dm-clone-target.c 	if (r)
r                1868 drivers/md/dm-clone-target.c 		r = PTR_ERR(clone->cmd);
r                1876 drivers/md/dm-clone-target.c 		r = -EPERM;
r                1883 drivers/md/dm-clone-target.c 	r = hash_table_init(clone);
r                1884 drivers/md/dm-clone-target.c 	if (r) {
r                1903 drivers/md/dm-clone-target.c 		r = -ENOMEM;
r                1912 drivers/md/dm-clone-target.c 		r = PTR_ERR(clone->kcopyd_client);
r                1916 drivers/md/dm-clone-target.c 	r = mempool_init_slab_pool(&clone->hydration_pool, MIN_HYDRATIONS,
r                1918 drivers/md/dm-clone-target.c 	if (r) {
r                1924 drivers/md/dm-clone-target.c 	r = copy_ctr_args(clone, argc - 3, (const char **)argv + 3, &ti->error);
r                1925 drivers/md/dm-clone-target.c 	if (r)
r                1963 drivers/md/dm-clone-target.c 	return r;
r                2225 drivers/md/dm-clone-target.c 	int r;
r                2231 drivers/md/dm-clone-target.c 	r = dm_register_target(&clone_target);
r                2232 drivers/md/dm-clone-target.c 	if (r < 0) {
r                2234 drivers/md/dm-clone-target.c 		return r;
r                  57 drivers/md/dm-crypt.c 	} r;
r                 461 drivers/md/dm-crypt.c 	int i, r;
r                 465 drivers/md/dm-crypt.c 	r = crypto_shash_init(desc);
r                 466 drivers/md/dm-crypt.c 	if (r)
r                 467 drivers/md/dm-crypt.c 		return r;
r                 470 drivers/md/dm-crypt.c 		r = crypto_shash_update(desc, lmk->seed, LMK_SEED_SIZE);
r                 471 drivers/md/dm-crypt.c 		if (r)
r                 472 drivers/md/dm-crypt.c 			return r;
r                 476 drivers/md/dm-crypt.c 	r = crypto_shash_update(desc, data + 16, 16 * 31);
r                 477 drivers/md/dm-crypt.c 	if (r)
r                 478 drivers/md/dm-crypt.c 		return r;
r                 485 drivers/md/dm-crypt.c 	r = crypto_shash_update(desc, (u8 *)buf, sizeof(buf));
r                 486 drivers/md/dm-crypt.c 	if (r)
r                 487 drivers/md/dm-crypt.c 		return r;
r                 490 drivers/md/dm-crypt.c 	r = crypto_shash_export(desc, &md5state);
r                 491 drivers/md/dm-crypt.c 	if (r)
r                 492 drivers/md/dm-crypt.c 		return r;
r                 506 drivers/md/dm-crypt.c 	int r = 0;
r                 511 drivers/md/dm-crypt.c 		r = crypt_iv_lmk_one(cc, iv, dmreq, src + sg->offset);
r                 516 drivers/md/dm-crypt.c 	return r;
r                 524 drivers/md/dm-crypt.c 	int r;
r                 531 drivers/md/dm-crypt.c 	r = crypt_iv_lmk_one(cc, iv, dmreq, dst + sg->offset);
r                 534 drivers/md/dm-crypt.c 	if (!r)
r                 538 drivers/md/dm-crypt.c 	return r;
r                 617 drivers/md/dm-crypt.c 	int i, r;
r                 626 drivers/md/dm-crypt.c 		r = crypto_shash_init(desc);
r                 627 drivers/md/dm-crypt.c 		if (r)
r                 629 drivers/md/dm-crypt.c 		r = crypto_shash_update(desc, &buf[i * 4], 4);
r                 630 drivers/md/dm-crypt.c 		if (r)
r                 632 drivers/md/dm-crypt.c 		r = crypto_shash_final(desc, &buf[i * 4]);
r                 633 drivers/md/dm-crypt.c 		if (r)
r                 644 drivers/md/dm-crypt.c 	return r;
r                 654 drivers/md/dm-crypt.c 	int r = 0;
r                 660 drivers/md/dm-crypt.c 		r = crypt_iv_tcw_whitening(cc, dmreq, src + sg->offset);
r                 670 drivers/md/dm-crypt.c 	return r;
r                 678 drivers/md/dm-crypt.c 	int r;
r                 686 drivers/md/dm-crypt.c 	r = crypt_iv_tcw_whitening(cc, dmreq, dst + sg->offset);
r                 689 drivers/md/dm-crypt.c 	return r;
r                 976 drivers/md/dm-crypt.c 	int r = 0;
r                1022 drivers/md/dm-crypt.c 			r = cc->iv_gen_ops->generator(cc, org_iv, dmreq);
r                1023 drivers/md/dm-crypt.c 			if (r < 0)
r                1024 drivers/md/dm-crypt.c 				return r;
r                1037 drivers/md/dm-crypt.c 		r = crypto_aead_encrypt(req);
r                1044 drivers/md/dm-crypt.c 		r = crypto_aead_decrypt(req);
r                1047 drivers/md/dm-crypt.c 	if (r == -EBADMSG) {
r                1053 drivers/md/dm-crypt.c 	if (!r && cc->iv_gen_ops && cc->iv_gen_ops->post)
r                1054 drivers/md/dm-crypt.c 		r = cc->iv_gen_ops->post(cc, org_iv, dmreq);
r                1059 drivers/md/dm-crypt.c 	return r;
r                1073 drivers/md/dm-crypt.c 	int r = 0;
r                1109 drivers/md/dm-crypt.c 			r = cc->iv_gen_ops->generator(cc, org_iv, dmreq);
r                1110 drivers/md/dm-crypt.c 			if (r < 0)
r                1111 drivers/md/dm-crypt.c 				return r;
r                1123 drivers/md/dm-crypt.c 		r = crypto_skcipher_encrypt(req);
r                1125 drivers/md/dm-crypt.c 		r = crypto_skcipher_decrypt(req);
r                1127 drivers/md/dm-crypt.c 	if (!r && cc->iv_gen_ops && cc->iv_gen_ops->post)
r                1128 drivers/md/dm-crypt.c 		r = cc->iv_gen_ops->post(cc, org_iv, dmreq);
r                1133 drivers/md/dm-crypt.c 	return r;
r                1144 drivers/md/dm-crypt.c 	if (!ctx->r.req)
r                1145 drivers/md/dm-crypt.c 		ctx->r.req = mempool_alloc(&cc->req_pool, GFP_NOIO);
r                1147 drivers/md/dm-crypt.c 	skcipher_request_set_tfm(ctx->r.req, cc->cipher_tfm.tfms[key_index]);
r                1153 drivers/md/dm-crypt.c 	skcipher_request_set_callback(ctx->r.req,
r                1155 drivers/md/dm-crypt.c 	    kcryptd_async_done, dmreq_of_req(cc, ctx->r.req));
r                1161 drivers/md/dm-crypt.c 	if (!ctx->r.req_aead)
r                1162 drivers/md/dm-crypt.c 		ctx->r.req_aead = mempool_alloc(&cc->req_pool, GFP_NOIO);
r                1164 drivers/md/dm-crypt.c 	aead_request_set_tfm(ctx->r.req_aead, cc->cipher_tfm.tfms_aead[0]);
r                1170 drivers/md/dm-crypt.c 	aead_request_set_callback(ctx->r.req_aead,
r                1172 drivers/md/dm-crypt.c 	    kcryptd_async_done, dmreq_of_req(cc, ctx->r.req_aead));
r                1218 drivers/md/dm-crypt.c 	int r;
r                1228 drivers/md/dm-crypt.c 			r = crypt_convert_block_aead(cc, ctx, ctx->r.req_aead, tag_offset);
r                1230 drivers/md/dm-crypt.c 			r = crypt_convert_block_skcipher(cc, ctx, ctx->r.req, tag_offset);
r                1232 drivers/md/dm-crypt.c 		switch (r) {
r                1246 drivers/md/dm-crypt.c 			ctx->r.req = NULL;
r                1364 drivers/md/dm-crypt.c 	io->ctx.r.req = NULL;
r                1388 drivers/md/dm-crypt.c 	if (io->ctx.r.req)
r                1389 drivers/md/dm-crypt.c 		crypt_free_req(cc, io->ctx.r.req, base_bio);
r                1612 drivers/md/dm-crypt.c 	blk_status_t r;
r                1632 drivers/md/dm-crypt.c 	r = crypt_convert(cc, &io->ctx);
r                1633 drivers/md/dm-crypt.c 	if (r)
r                1634 drivers/md/dm-crypt.c 		io->error = r;
r                1655 drivers/md/dm-crypt.c 	blk_status_t r;
r                1662 drivers/md/dm-crypt.c 	r = crypt_convert(cc, &io->ctx);
r                1663 drivers/md/dm-crypt.c 	if (r)
r                1664 drivers/md/dm-crypt.c 		io->error = r;
r                1862 drivers/md/dm-crypt.c 	int err = 0, i, r;
r                1878 drivers/md/dm-crypt.c 			r = crypto_aead_setkey(cc->cipher_tfm.tfms_aead[i],
r                1881 drivers/md/dm-crypt.c 			r = crypto_aead_setkey(cc->cipher_tfm.tfms_aead[i],
r                1885 drivers/md/dm-crypt.c 			r = crypto_skcipher_setkey(cc->cipher_tfm.tfms[i],
r                1888 drivers/md/dm-crypt.c 		if (r)
r                1889 drivers/md/dm-crypt.c 			err = r;
r                2020 drivers/md/dm-crypt.c 	int r = -EINVAL;
r                2029 drivers/md/dm-crypt.c 		r = crypt_set_keyring_key(cc, key + 1);
r                2044 drivers/md/dm-crypt.c 	r = crypt_setkey(cc);
r                2045 drivers/md/dm-crypt.c 	if (!r)
r                2052 drivers/md/dm-crypt.c 	return r;
r                2057 drivers/md/dm-crypt.c 	int r;
r                2064 drivers/md/dm-crypt.c 		r = cc->iv_gen_ops->wipe(cc);
r                2065 drivers/md/dm-crypt.c 		if (r)
r                2066 drivers/md/dm-crypt.c 			return r;
r                2071 drivers/md/dm-crypt.c 	r = crypt_setkey(cc);
r                2074 drivers/md/dm-crypt.c 	return r;
r                2801 drivers/md/dm-crypt.c 		io->ctx.r.req_aead = (struct aead_request *)(io + 1);
r                2803 drivers/md/dm-crypt.c 		io->ctx.r.req = (struct skcipher_request *)(io + 1);
r                2984 drivers/md/dm-crypt.c 	int r;
r                2986 drivers/md/dm-crypt.c 	r = dm_register_target(&crypt_target);
r                2987 drivers/md/dm-crypt.c 	if (r < 0)
r                2988 drivers/md/dm-crypt.c 		DMERR("register failed %d", r);
r                2990 drivers/md/dm-crypt.c 	return r;
r                 368 drivers/md/dm-delay.c 	int r;
r                 370 drivers/md/dm-delay.c 	r = dm_register_target(&delay_target);
r                 371 drivers/md/dm-delay.c 	if (r < 0) {
r                 372 drivers/md/dm-delay.c 		DMERR("register failed %d", r);
r                 379 drivers/md/dm-delay.c 	return r;
r                  55 drivers/md/dm-era-target.c 	int r;
r                  57 drivers/md/dm-era-target.c 	r = dm_bitset_empty(info, root);
r                  58 drivers/md/dm-era-target.c 	if (r)
r                  59 drivers/md/dm-era-target.c 		return r;
r                  90 drivers/md/dm-era-target.c 	int r;
r                  94 drivers/md/dm-era-target.c 	r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root);
r                  95 drivers/md/dm-era-target.c 	if (r) {
r                  97 drivers/md/dm-era-target.c 		return r;
r                 118 drivers/md/dm-era-target.c 	int r = dm_bitset_test_bit(info, m->root, block, &m->root, result);
r                 119 drivers/md/dm-era-target.c 	if (r) {
r                 121 drivers/md/dm-era-target.c 		return r;
r                 126 drivers/md/dm-era-target.c 	return r;
r                 135 drivers/md/dm-era-target.c 	int r;
r                 138 drivers/md/dm-era-target.c 		r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root);
r                 139 drivers/md/dm-era-target.c 		if (r) {
r                 141 drivers/md/dm-era-target.c 			return r;
r                 324 drivers/md/dm-era-target.c 	int r;
r                 333 drivers/md/dm-era-target.c 	r = dm_bm_read_lock(bm, SUPERBLOCK_LOCATION, NULL, &b);
r                 334 drivers/md/dm-era-target.c 	if (r)
r                 335 drivers/md/dm-era-target.c 		return r;
r                 432 drivers/md/dm-era-target.c 	int r;
r                 434 drivers/md/dm-era-target.c 	r = dm_tm_create_with_sm(md->bm, SUPERBLOCK_LOCATION,
r                 436 drivers/md/dm-era-target.c 	if (r < 0) {
r                 438 drivers/md/dm-era-target.c 		return r;
r                 443 drivers/md/dm-era-target.c 	r = dm_btree_empty(&md->writeset_tree_info, &md->writeset_tree_root);
r                 444 drivers/md/dm-era-target.c 	if (r) {
r                 449 drivers/md/dm-era-target.c 	r = dm_array_empty(&md->era_array_info, &md->era_array_root);
r                 450 drivers/md/dm-era-target.c 	if (r) {
r                 461 drivers/md/dm-era-target.c 	return r;
r                 466 drivers/md/dm-era-target.c 	int r;
r                 469 drivers/md/dm-era-target.c 	r = dm_sm_root_size(md->sm, &metadata_len);
r                 470 drivers/md/dm-era-target.c 	if (r < 0)
r                 471 drivers/md/dm-era-target.c 		return r;
r                 513 drivers/md/dm-era-target.c 	int r;
r                 517 drivers/md/dm-era-target.c 	r = save_sm_root(md);
r                 518 drivers/md/dm-era-target.c 	if (r) {
r                 520 drivers/md/dm-era-target.c 		return r;
r                 523 drivers/md/dm-era-target.c 	r = superblock_lock_zero(md, &sblock);
r                 524 drivers/md/dm-era-target.c 	if (r)
r                 525 drivers/md/dm-era-target.c 		return r;
r                 538 drivers/md/dm-era-target.c 	int r;
r                 540 drivers/md/dm-era-target.c 	r = create_fresh_metadata(md);
r                 541 drivers/md/dm-era-target.c 	if (r)
r                 542 drivers/md/dm-era-target.c 		return r;
r                 544 drivers/md/dm-era-target.c 	r = write_superblock(md);
r                 545 drivers/md/dm-era-target.c 	if (r) {
r                 548 drivers/md/dm-era-target.c 		return r;
r                 556 drivers/md/dm-era-target.c 	int r;
r                 560 drivers/md/dm-era-target.c 	r = superblock_read_lock(md, &sblock);
r                 561 drivers/md/dm-era-target.c 	if (r) {
r                 563 drivers/md/dm-era-target.c 		return r;
r                 567 drivers/md/dm-era-target.c 	r = dm_tm_open_with_sm(md->bm, SUPERBLOCK_LOCATION,
r                 571 drivers/md/dm-era-target.c 	if (r) {
r                 593 drivers/md/dm-era-target.c 	return r;
r                 599 drivers/md/dm-era-target.c 	int r;
r                 602 drivers/md/dm-era-target.c 	r = superblock_all_zeroes(md->bm, &unformatted);
r                 603 drivers/md/dm-era-target.c 	if (r)
r                 604 drivers/md/dm-era-target.c 		return r;
r                 615 drivers/md/dm-era-target.c 	int r;
r                 624 drivers/md/dm-era-target.c 	r = open_or_format_metadata(md, may_format);
r                 625 drivers/md/dm-era-target.c 	if (r)
r                 628 drivers/md/dm-era-target.c 	return r;
r                 670 drivers/md/dm-era-target.c 	int r;
r                 673 drivers/md/dm-era-target.c 	r = dm_btree_remove(&md->writeset_tree_info, md->writeset_tree_root,
r                 675 drivers/md/dm-era-target.c 	if (r) {
r                 677 drivers/md/dm-era-target.c 		return r;
r                 689 drivers/md/dm-era-target.c 	int r;
r                 694 drivers/md/dm-era-target.c 		r = writeset_marked_on_disk(&d->info, &d->writeset, b, &marked);
r                 695 drivers/md/dm-era-target.c 		if (r) {
r                 697 drivers/md/dm-era-target.c 			return r;
r                 704 drivers/md/dm-era-target.c 		r = dm_array_set_value(&md->era_array_info, md->era_array_root,
r                 706 drivers/md/dm-era-target.c 		if (r) {
r                 708 drivers/md/dm-era-target.c 			return r;
r                 723 drivers/md/dm-era-target.c 	int r;
r                 727 drivers/md/dm-era-target.c 	r = dm_btree_find_lowest_key(&md->writeset_tree_info,
r                 729 drivers/md/dm-era-target.c 	if (r < 0)
r                 730 drivers/md/dm-era-target.c 		return r;
r                 734 drivers/md/dm-era-target.c 	r = dm_btree_lookup(&md->writeset_tree_info,
r                 736 drivers/md/dm-era-target.c 	if (r) {
r                 737 drivers/md/dm-era-target.c 		if (r == -ENODATA) {
r                 743 drivers/md/dm-era-target.c 		return r;
r                 781 drivers/md/dm-era-target.c 	int r;
r                 794 drivers/md/dm-era-target.c 	r = create_persistent_data_objects(md, may_format);
r                 795 drivers/md/dm-era-target.c 	if (r) {
r                 797 drivers/md/dm-era-target.c 		return ERR_PTR(r);
r                 820 drivers/md/dm-era-target.c 	int r;
r                 833 drivers/md/dm-era-target.c 	r = writeset_alloc(&md->writesets[0], *new_size);
r                 834 drivers/md/dm-era-target.c 	if (r) {
r                 836 drivers/md/dm-era-target.c 		return r;
r                 839 drivers/md/dm-era-target.c 	r = writeset_alloc(&md->writesets[1], *new_size);
r                 840 drivers/md/dm-era-target.c 	if (r) {
r                 842 drivers/md/dm-era-target.c 		return r;
r                 847 drivers/md/dm-era-target.c 	r = dm_array_resize(&md->era_array_info, md->era_array_root,
r                 850 drivers/md/dm-era-target.c 	if (r) {
r                 852 drivers/md/dm-era-target.c 		return r;
r                 861 drivers/md/dm-era-target.c 	int r;
r                 865 drivers/md/dm-era-target.c 	r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root,
r                 867 drivers/md/dm-era-target.c 	if (r) {
r                 869 drivers/md/dm-era-target.c 		return r;
r                 877 drivers/md/dm-era-target.c 	r = dm_btree_insert(&md->writeset_tree_info, md->writeset_tree_root,
r                 879 drivers/md/dm-era-target.c 	if (r) {
r                 882 drivers/md/dm-era-target.c 		return r;
r                 898 drivers/md/dm-era-target.c 	int r;
r                 901 drivers/md/dm-era-target.c 	r = writeset_init(&md->bitset_info, new_writeset);
r                 902 drivers/md/dm-era-target.c 	if (r) {
r                 904 drivers/md/dm-era-target.c 		return r;
r                 915 drivers/md/dm-era-target.c 	int r;
r                 918 drivers/md/dm-era-target.c 		r = metadata_era_archive(md);
r                 919 drivers/md/dm-era-target.c 		if (r) {
r                 922 drivers/md/dm-era-target.c 			return r;
r                 926 drivers/md/dm-era-target.c 	r = metadata_new_era(md);
r                 927 drivers/md/dm-era-target.c 	if (r) {
r                 930 drivers/md/dm-era-target.c 		return r;
r                 938 drivers/md/dm-era-target.c 	bool r;
r                 943 drivers/md/dm-era-target.c 	r = writeset_marked(ws, block);
r                 946 drivers/md/dm-era-target.c 	return r;
r                 951 drivers/md/dm-era-target.c 	int r;
r                 955 drivers/md/dm-era-target.c 		r = dm_bitset_flush(&md->bitset_info, md->current_writeset->md.root,
r                 957 drivers/md/dm-era-target.c 		if (r) {
r                 959 drivers/md/dm-era-target.c 			return r;
r                 963 drivers/md/dm-era-target.c 	r = dm_tm_pre_commit(md->tm);
r                 964 drivers/md/dm-era-target.c 	if (r) {
r                 966 drivers/md/dm-era-target.c 		return r;
r                 969 drivers/md/dm-era-target.c 	r = save_sm_root(md);
r                 970 drivers/md/dm-era-target.c 	if (r) {
r                 972 drivers/md/dm-era-target.c 		return r;
r                 975 drivers/md/dm-era-target.c 	r = superblock_lock(md, &sblock);
r                 976 drivers/md/dm-era-target.c 	if (r) {
r                 978 drivers/md/dm-era-target.c 		return r;
r                1000 drivers/md/dm-era-target.c 	int r, inc;
r                1008 drivers/md/dm-era-target.c 	r = metadata_era_rollover(md);
r                1009 drivers/md/dm-era-target.c 	if (r) {
r                1011 drivers/md/dm-era-target.c 		return r;
r                1014 drivers/md/dm-era-target.c 	r = metadata_commit(md);
r                1015 drivers/md/dm-era-target.c 	if (r) {
r                1017 drivers/md/dm-era-target.c 		return r;
r                1020 drivers/md/dm-era-target.c 	r = dm_sm_inc_block(md->sm, SUPERBLOCK_LOCATION);
r                1021 drivers/md/dm-era-target.c 	if (r) {
r                1023 drivers/md/dm-era-target.c 		return r;
r                1026 drivers/md/dm-era-target.c 	r = dm_tm_shadow_block(md->tm, SUPERBLOCK_LOCATION,
r                1028 drivers/md/dm-era-target.c 	if (r) {
r                1031 drivers/md/dm-era-target.c 		return r;
r                1035 drivers/md/dm-era-target.c 	r = dm_sm_inc_block(md->sm, md->writeset_tree_root);
r                1036 drivers/md/dm-era-target.c 	if (r) {
r                1039 drivers/md/dm-era-target.c 		return r;
r                1042 drivers/md/dm-era-target.c 	r = dm_sm_inc_block(md->sm, md->era_array_root);
r                1043 drivers/md/dm-era-target.c 	if (r) {
r                1047 drivers/md/dm-era-target.c 		return r;
r                1059 drivers/md/dm-era-target.c 	int r;
r                1069 drivers/md/dm-era-target.c 	r = dm_tm_read_lock(md->tm, md->metadata_snap, &sb_validator, &clone);
r                1070 drivers/md/dm-era-target.c 	if (r) {
r                1072 drivers/md/dm-era-target.c 		return r;
r                1082 drivers/md/dm-era-target.c 	r = dm_btree_del(&md->writeset_tree_info,
r                1084 drivers/md/dm-era-target.c 	if (r) {
r                1087 drivers/md/dm-era-target.c 		return r;
r                1090 drivers/md/dm-era-target.c 	r = dm_array_del(&md->era_array_info, le64_to_cpu(disk->era_array_root));
r                1091 drivers/md/dm-era-target.c 	if (r) {
r                1094 drivers/md/dm-era-target.c 		return r;
r                1112 drivers/md/dm-era-target.c 	int r;
r                1116 drivers/md/dm-era-target.c 	r = dm_sm_get_nr_free(md->sm, &nr_free);
r                1117 drivers/md/dm-era-target.c 	if (r) {
r                1118 drivers/md/dm-era-target.c 		DMERR("dm_sm_get_nr_free returned %d", r);
r                1119 drivers/md/dm-era-target.c 		return r;
r                1122 drivers/md/dm-era-target.c 	r = dm_sm_get_nr_blocks(md->sm, &nr_total);
r                1123 drivers/md/dm-era-target.c 	if (r) {
r                1124 drivers/md/dm-era-target.c 		DMERR("dm_pool_get_metadata_dev_size returned %d", r);
r                1125 drivers/md/dm-era-target.c 		return r;
r                1210 drivers/md/dm-era-target.c 	int r;
r                1215 drivers/md/dm-era-target.c 	r = era->digest.step(era->md, &era->digest);
r                1216 drivers/md/dm-era-target.c 	if (r < 0) {
r                1226 drivers/md/dm-era-target.c 	int r;
r                1241 drivers/md/dm-era-target.c 		r = writeset_test_and_set(&era->md->bitset_info,
r                1244 drivers/md/dm-era-target.c 		if (r < 0) {
r                1251 drivers/md/dm-era-target.c 		} else if (r == 0)
r                1258 drivers/md/dm-era-target.c 		r = metadata_commit(era->md);
r                1259 drivers/md/dm-era-target.c 		if (r)
r                1273 drivers/md/dm-era-target.c 	int r;
r                1289 drivers/md/dm-era-target.c 		r = metadata_commit(era->md);
r                1290 drivers/md/dm-era-target.c 		if (r)
r                1292 drivers/md/dm-era-target.c 				rpc->result = r;
r                1425 drivers/md/dm-era-target.c 	int r;
r                1443 drivers/md/dm-era-target.c 	r = dm_get_device(ti, argv[0], FMODE_READ | FMODE_WRITE, &era->metadata_dev);
r                1444 drivers/md/dm-era-target.c 	if (r) {
r                1450 drivers/md/dm-era-target.c 	r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &era->origin_dev);
r                1451 drivers/md/dm-era-target.c 	if (r) {
r                1457 drivers/md/dm-era-target.c 	r = sscanf(argv[2], "%u%c", &era->sectors_per_block, &dummy);
r                1458 drivers/md/dm-era-target.c 	if (r != 1) {
r                1464 drivers/md/dm-era-target.c 	r = dm_set_target_max_io_len(ti, era->sectors_per_block);
r                1465 drivers/md/dm-era-target.c 	if (r) {
r                1491 drivers/md/dm-era-target.c 	r = metadata_resize(era->md, &era->nr_blocks);
r                1492 drivers/md/dm-era-target.c 	if (r) {
r                1555 drivers/md/dm-era-target.c 	int r;
r                1558 drivers/md/dm-era-target.c 	r = in_worker0(era, metadata_era_archive);
r                1559 drivers/md/dm-era-target.c 	if (r) {
r                1569 drivers/md/dm-era-target.c 	int r;
r                1574 drivers/md/dm-era-target.c 		r = in_worker1(era, metadata_resize, &new_size);
r                1575 drivers/md/dm-era-target.c 		if (r)
r                1576 drivers/md/dm-era-target.c 			return r;
r                1583 drivers/md/dm-era-target.c 	r = in_worker0(era, metadata_new_era);
r                1584 drivers/md/dm-era-target.c 	if (r) {
r                1586 drivers/md/dm-era-target.c 		return r;
r                1601 drivers/md/dm-era-target.c 	int r;
r                1609 drivers/md/dm-era-target.c 		r = in_worker1(era, metadata_get_stats, &stats);
r                1610 drivers/md/dm-era-target.c 		if (r)
r                1709 drivers/md/dm-era-target.c 	int r;
r                1711 drivers/md/dm-era-target.c 	r = dm_register_target(&era_target);
r                1712 drivers/md/dm-era-target.c 	if (r) {
r                1713 drivers/md/dm-era-target.c 		DMERR("era target registration failed: %d", r);
r                1714 drivers/md/dm-era-target.c 		return r;
r                 112 drivers/md/dm-exception-store.c 	int r = 0;
r                 118 drivers/md/dm-exception-store.c 		r = -EEXIST;
r                 121 drivers/md/dm-exception-store.c 	return r;
r                 196 drivers/md/dm-exception-store.c 	int r = 0;
r                 219 drivers/md/dm-exception-store.c 		r = -EINVAL;
r                 225 drivers/md/dm-exception-store.c 		r = -EINVAL;
r                 232 drivers/md/dm-exception-store.c 	r = set_chunk_size(tmp_store, argv[1], &ti->error);
r                 233 drivers/md/dm-exception-store.c 	if (r)
r                 236 drivers/md/dm-exception-store.c 	r = type->ctr(tmp_store, (strlen(argv[0]) > 1 ? &argv[0][1] : NULL));
r                 237 drivers/md/dm-exception-store.c 	if (r) {
r                 250 drivers/md/dm-exception-store.c 	return r;
r                 264 drivers/md/dm-exception-store.c 	int r;
r                 266 drivers/md/dm-exception-store.c 	r = dm_transient_snapshot_init();
r                 267 drivers/md/dm-exception-store.c 	if (r) {
r                 272 drivers/md/dm-exception-store.c 	r = dm_persistent_snapshot_init();
r                 273 drivers/md/dm-exception-store.c 	if (r) {
r                 283 drivers/md/dm-exception-store.c 	return r;
r                  50 drivers/md/dm-flakey.c 	int r;
r                  65 drivers/md/dm-flakey.c 	r = dm_read_arg_group(_args, as, &argc, &ti->error);
r                  66 drivers/md/dm-flakey.c 	if (r)
r                  67 drivers/md/dm-flakey.c 		return r;
r                 118 drivers/md/dm-flakey.c 			r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error);
r                 119 drivers/md/dm-flakey.c 			if (r)
r                 120 drivers/md/dm-flakey.c 				return r;
r                 140 drivers/md/dm-flakey.c 			r = dm_read_arg(_args + 2, as, &fc->corrupt_bio_value, &ti->error);
r                 141 drivers/md/dm-flakey.c 			if (r)
r                 142 drivers/md/dm-flakey.c 				return r;
r                 148 drivers/md/dm-flakey.c 			r = dm_read_arg(_args + 3, as, &fc->corrupt_bio_flags, &ti->error);
r                 149 drivers/md/dm-flakey.c 			if (r)
r                 150 drivers/md/dm-flakey.c 				return r;
r                 191 drivers/md/dm-flakey.c 	int r;
r                 215 drivers/md/dm-flakey.c 	r = -EINVAL;
r                 222 drivers/md/dm-flakey.c 	r = dm_read_arg(_args, &as, &fc->up_interval, &ti->error);
r                 223 drivers/md/dm-flakey.c 	if (r)
r                 226 drivers/md/dm-flakey.c 	r = dm_read_arg(_args, &as, &fc->down_interval, &ti->error);
r                 227 drivers/md/dm-flakey.c 	if (r)
r                 232 drivers/md/dm-flakey.c 		r = -EINVAL;
r                 238 drivers/md/dm-flakey.c 		r = -EINVAL;
r                 242 drivers/md/dm-flakey.c 	r = parse_features(&as, fc, ti);
r                 243 drivers/md/dm-flakey.c 	if (r)
r                 246 drivers/md/dm-flakey.c 	r = dm_get_device(ti, devname, dm_table_get_mode(ti->table), &fc->dev);
r                 247 drivers/md/dm-flakey.c 	if (r) {
r                 260 drivers/md/dm-flakey.c 	return r;
r                 507 drivers/md/dm-flakey.c 	int r = dm_register_target(&flakey_target);
r                 509 drivers/md/dm-flakey.c 	if (r < 0)
r                 510 drivers/md/dm-flakey.c 		DMERR("register failed %d", r);
r                 512 drivers/md/dm-flakey.c 	return r;
r                 269 drivers/md/dm-init.c 	int r;
r                 282 drivers/md/dm-init.c 	r = dm_parse_devices(&devices, str);
r                 283 drivers/md/dm-init.c 	if (r)
r                 297 drivers/md/dm-init.c 	return r;
r                 703 drivers/md/dm-integrity.c 	int r;
r                 708 drivers/md/dm-integrity.c 	r = crypto_shash_init(desc);
r                 709 drivers/md/dm-integrity.c 	if (unlikely(r)) {
r                 710 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "crypto_shash_init", r);
r                 716 drivers/md/dm-integrity.c 		r = crypto_shash_update(desc, (__u8 *)&je->u.sector, sizeof je->u.sector);
r                 717 drivers/md/dm-integrity.c 		if (unlikely(r)) {
r                 718 drivers/md/dm-integrity.c 			dm_integrity_io_error(ic, "crypto_shash_update", r);
r                 726 drivers/md/dm-integrity.c 		r = crypto_shash_final(desc, result);
r                 727 drivers/md/dm-integrity.c 		if (unlikely(r)) {
r                 728 drivers/md/dm-integrity.c 			dm_integrity_io_error(ic, "crypto_shash_final", r);
r                 739 drivers/md/dm-integrity.c 		r = crypto_shash_final(desc, digest);
r                 740 drivers/md/dm-integrity.c 		if (unlikely(r)) {
r                 741 drivers/md/dm-integrity.c 			dm_integrity_io_error(ic, "crypto_shash_final", r);
r                 854 drivers/md/dm-integrity.c 	int r;
r                 858 drivers/md/dm-integrity.c 		r = crypto_skcipher_encrypt(req);
r                 860 drivers/md/dm-integrity.c 		r = crypto_skcipher_decrypt(req);
r                 861 drivers/md/dm-integrity.c 	if (likely(!r))
r                 863 drivers/md/dm-integrity.c 	if (likely(r == -EINPROGRESS))
r                 865 drivers/md/dm-integrity.c 	if (likely(r == -EBUSY)) {
r                 870 drivers/md/dm-integrity.c 	dm_integrity_io_error(comp->ic, "encrypt", r);
r                 941 drivers/md/dm-integrity.c 	int r;
r                 971 drivers/md/dm-integrity.c 	r = dm_io(&io_req, 1, &io_loc, NULL);
r                 972 drivers/md/dm-integrity.c 	if (unlikely(r)) {
r                 973 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, op == REQ_OP_READ ? "reading journal" : "writing journal", r);
r                 975 drivers/md/dm-integrity.c 			WARN_ONCE(1, "asynchronous dm_io failed: %d", r);
r                1058 drivers/md/dm-integrity.c 	int r;
r                1085 drivers/md/dm-integrity.c 	r = dm_io(&io_req, 1, &io_loc, NULL);
r                1086 drivers/md/dm-integrity.c 	if (unlikely(r)) {
r                1087 drivers/md/dm-integrity.c 		WARN_ONCE(1, "asynchronous dm_io failed: %d", r);
r                1301 drivers/md/dm-integrity.c 		int r;
r                1303 drivers/md/dm-integrity.c 		r = dm_integrity_failed(ic);
r                1304 drivers/md/dm-integrity.c 		if (unlikely(r))
r                1305 drivers/md/dm-integrity.c 			return r;
r                1348 drivers/md/dm-integrity.c 	int r;
r                1349 drivers/md/dm-integrity.c 	r = dm_bufio_write_dirty_buffers(ic->bufio);
r                1350 drivers/md/dm-integrity.c 	if (unlikely(r))
r                1351 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "writing tags", r);
r                1394 drivers/md/dm-integrity.c 	int r = dm_integrity_failed(ic);
r                1395 drivers/md/dm-integrity.c 	if (unlikely(r) && !bio->bi_status)
r                1396 drivers/md/dm-integrity.c 		bio->bi_status = errno_to_blk_status(r);
r                1463 drivers/md/dm-integrity.c 	int r;
r                1468 drivers/md/dm-integrity.c 	r = crypto_shash_init(req);
r                1469 drivers/md/dm-integrity.c 	if (unlikely(r < 0)) {
r                1470 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "crypto_shash_init", r);
r                1474 drivers/md/dm-integrity.c 	r = crypto_shash_update(req, (const __u8 *)&sector_le, sizeof sector_le);
r                1475 drivers/md/dm-integrity.c 	if (unlikely(r < 0)) {
r                1476 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "crypto_shash_update", r);
r                1480 drivers/md/dm-integrity.c 	r = crypto_shash_update(req, data, ic->sectors_per_block << SECTOR_SHIFT);
r                1481 drivers/md/dm-integrity.c 	if (unlikely(r < 0)) {
r                1482 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "crypto_shash_update", r);
r                1486 drivers/md/dm-integrity.c 	r = crypto_shash_final(req, result);
r                1487 drivers/md/dm-integrity.c 	if (unlikely(r < 0)) {
r                1488 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "crypto_shash_final", r);
r                1508 drivers/md/dm-integrity.c 	int r;
r                1530 drivers/md/dm-integrity.c 				r = -EINVAL;
r                1552 drivers/md/dm-integrity.c 			r = dm_integrity_rw_tag(ic, checksums, &dio->metadata_block, &dio->metadata_offset,
r                1554 drivers/md/dm-integrity.c 			if (unlikely(r)) {
r                1555 drivers/md/dm-integrity.c 				if (r > 0) {
r                1557 drivers/md/dm-integrity.c 						    (unsigned long long)(sector - ((r + ic->tag_size - 1) / ic->tag_size)));
r                1558 drivers/md/dm-integrity.c 					r = -EILSEQ;
r                1595 drivers/md/dm-integrity.c 				r = dm_integrity_rw_tag(ic, tag, &dio->metadata_block, &dio->metadata_offset,
r                1597 drivers/md/dm-integrity.c 				if (unlikely(r))
r                1609 drivers/md/dm-integrity.c 	dio->bi_status = errno_to_blk_status(r);
r                2249 drivers/md/dm-integrity.c 				int r;
r                2266 drivers/md/dm-integrity.c 				r = dm_integrity_rw_tag(ic, journal_entry_tag(ic, je2), &metadata_block, &metadata_offset,
r                2268 drivers/md/dm-integrity.c 				if (unlikely(r)) {
r                2269 drivers/md/dm-integrity.c 					dm_integrity_io_error(ic, "reading tags", r);
r                2330 drivers/md/dm-integrity.c 	int r;
r                2336 drivers/md/dm-integrity.c 	r = sync_rw_sb(ic, REQ_OP_WRITE, 0);
r                2337 drivers/md/dm-integrity.c 	if (unlikely(r))
r                2338 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "writing superblock", r);
r                2353 drivers/md/dm-integrity.c 	int r;
r                2425 drivers/md/dm-integrity.c 	r = dm_io(&io_req, 1, &io_loc, NULL);
r                2426 drivers/md/dm-integrity.c 	if (unlikely(r)) {
r                2427 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "reading data", r);
r                2439 drivers/md/dm-integrity.c 	r = dm_integrity_rw_tag(ic, ic->recalc_tags, &metadata_block, &metadata_offset, t - ic->recalc_tags, TAG_WRITE);
r                2440 drivers/md/dm-integrity.c 	if (unlikely(r)) {
r                2441 drivers/md/dm-integrity.c 		dm_integrity_io_error(ic, "writing tags", r);
r                2784 drivers/md/dm-integrity.c 	int r;
r                2812 drivers/md/dm-integrity.c 		r = sync_rw_sb(ic, REQ_OP_WRITE, REQ_FUA);
r                2813 drivers/md/dm-integrity.c 		if (unlikely(r))
r                2814 drivers/md/dm-integrity.c 			dm_integrity_io_error(ic, "writing superblock", r);
r                2826 drivers/md/dm-integrity.c 	int r;
r                2864 drivers/md/dm-integrity.c 		r = sync_rw_sb(ic, REQ_OP_WRITE, REQ_FUA);
r                2865 drivers/md/dm-integrity.c 		if (unlikely(r))
r                2866 drivers/md/dm-integrity.c 			dm_integrity_io_error(ic, "writing superblock", r);
r                2872 drivers/md/dm-integrity.c 			r = sync_rw_sb(ic, REQ_OP_WRITE, REQ_FUA);
r                2873 drivers/md/dm-integrity.c 			if (unlikely(r))
r                2874 drivers/md/dm-integrity.c 				dm_integrity_io_error(ic, "writing superblock", r);
r                3281 drivers/md/dm-integrity.c 	int r;
r                3287 drivers/md/dm-integrity.c 			r = PTR_ERR(*hash);
r                3289 drivers/md/dm-integrity.c 			return r;
r                3293 drivers/md/dm-integrity.c 			r = crypto_shash_setkey(*hash, a->key, a->key_size);
r                3294 drivers/md/dm-integrity.c 			if (r) {
r                3296 drivers/md/dm-integrity.c 				return r;
r                3309 drivers/md/dm-integrity.c 	int r = 0;
r                3325 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3333 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3344 drivers/md/dm-integrity.c 			r = PTR_ERR(ic->journal_crypt);
r                3352 drivers/md/dm-integrity.c 			r = crypto_skcipher_setkey(ic->journal_crypt, ic->journal_crypt_alg.key,
r                3354 drivers/md/dm-integrity.c 			if (r) {
r                3365 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                3375 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3382 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3389 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3398 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3416 drivers/md/dm-integrity.c 			r = dm_integrity_failed(ic);
r                3417 drivers/md/dm-integrity.c 			if (r) {
r                3431 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3438 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3445 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3452 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3458 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3466 drivers/md/dm-integrity.c 				r = -ENOMEM;
r                3485 drivers/md/dm-integrity.c 				r = dm_integrity_failed(ic);
r                3486 drivers/md/dm-integrity.c 				if (r) {
r                3494 drivers/md/dm-integrity.c 					r = -ENOMEM;
r                3502 drivers/md/dm-integrity.c 					r = -ENOMEM;
r                3528 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3534 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3541 drivers/md/dm-integrity.c 	return r;
r                3572 drivers/md/dm-integrity.c 	int r;
r                3612 drivers/md/dm-integrity.c 	r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &ic->dev);
r                3613 drivers/md/dm-integrity.c 	if (r) {
r                3620 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3628 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3638 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3651 drivers/md/dm-integrity.c 	r = dm_read_arg_group(_args, &as, &extra_args, &ti->error);
r                3652 drivers/md/dm-integrity.c 	if (r)
r                3661 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3680 drivers/md/dm-integrity.c 			r = dm_get_device(ti, strchr(opt_string, ':') + 1,
r                3682 drivers/md/dm-integrity.c 			if (r) {
r                3690 drivers/md/dm-integrity.c 				r = -EINVAL;
r                3699 drivers/md/dm-integrity.c 				r = -EINVAL;
r                3704 drivers/md/dm-integrity.c 			r = get_alg_and_key(opt_string, &ic->internal_hash_alg, &ti->error,
r                3706 drivers/md/dm-integrity.c 			if (r)
r                3709 drivers/md/dm-integrity.c 			r = get_alg_and_key(opt_string, &ic->journal_crypt_alg, &ti->error,
r                3711 drivers/md/dm-integrity.c 			if (r)
r                3714 drivers/md/dm-integrity.c 			r = get_alg_and_key(opt_string, &ic->journal_mac_alg,  &ti->error,
r                3716 drivers/md/dm-integrity.c 			if (r)
r                3721 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3742 drivers/md/dm-integrity.c 	r = get_mac(&ic->internal_hash, &ic->internal_hash_alg, &ti->error,
r                3744 drivers/md/dm-integrity.c 	if (r)
r                3747 drivers/md/dm-integrity.c 	r = get_mac(&ic->journal_mac, &ic->journal_mac_alg, &ti->error,
r                3749 drivers/md/dm-integrity.c 	if (r)
r                3755 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3762 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3771 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3782 drivers/md/dm-integrity.c 		r = PTR_ERR(ic->io);
r                3788 drivers/md/dm-integrity.c 	r = mempool_init_slab_pool(&ic->journal_io_mempool, JOURNAL_IO_MEMPOOL, journal_io_cache);
r                3789 drivers/md/dm-integrity.c 	if (r) {
r                3798 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3809 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3817 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3824 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3833 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                3841 drivers/md/dm-integrity.c 		r = -ENOMEM;
r                3846 drivers/md/dm-integrity.c 	r = sync_rw_sb(ic, REQ_OP_READ, 0);
r                3847 drivers/md/dm-integrity.c 	if (r) {
r                3855 drivers/md/dm-integrity.c 				r = -EINVAL;
r                3861 drivers/md/dm-integrity.c 		r = initialize_superblock(ic, journal_sectors, interleave_sectors);
r                3862 drivers/md/dm-integrity.c 		if (r) {
r                3871 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3876 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3881 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3886 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3894 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3900 drivers/md/dm-integrity.c 			r = -EINVAL;
r                3908 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3913 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3919 drivers/md/dm-integrity.c 	r = calculate_device_limits(ic);
r                3920 drivers/md/dm-integrity.c 	if (r) {
r                3955 drivers/md/dm-integrity.c 		r = -EINVAL;
r                3993 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4000 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4007 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4015 drivers/md/dm-integrity.c 		r = PTR_ERR(ic->bufio);
r                4023 drivers/md/dm-integrity.c 		r = create_journal(ic, &ti->error);
r                4024 drivers/md/dm-integrity.c 		if (r)
r                4035 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4040 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4045 drivers/md/dm-integrity.c 			r = -ENOMEM;
r                4068 drivers/md/dm-integrity.c 		int r;
r                4071 drivers/md/dm-integrity.c 		r = dm_integrity_failed(ic);
r                4072 drivers/md/dm-integrity.c 		if (unlikely(r)) {
r                4076 drivers/md/dm-integrity.c 		r = sync_rw_sb(ic, REQ_OP_WRITE, REQ_FUA);
r                4077 drivers/md/dm-integrity.c 		if (r) {
r                4085 drivers/md/dm-integrity.c 		r = dm_set_target_max_io_len(ti, 1U << ic->sb->log2_interleave_sectors);
r                4086 drivers/md/dm-integrity.c 		if (r)
r                4095 drivers/md/dm-integrity.c 			r = dm_set_target_max_io_len(ti, max_io_len);
r                4096 drivers/md/dm-integrity.c 			if (r)
r                4111 drivers/md/dm-integrity.c 	return r;
r                4202 drivers/md/dm-integrity.c 	int r;
r                4211 drivers/md/dm-integrity.c 	r = dm_register_target(&integrity_target);
r                4213 drivers/md/dm-integrity.c 	if (r < 0)
r                4214 drivers/md/dm-integrity.c 		DMERR("register failed %d", r);
r                4216 drivers/md/dm-integrity.c 	return r;
r                 540 drivers/md/dm-io.c 	int r;
r                 543 drivers/md/dm-io.c 	r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT);
r                 544 drivers/md/dm-io.c 	if (r)
r                 545 drivers/md/dm-io.c 		return r;
r                 773 drivers/md/dm-ioctl.c 	int r, m = DM_ANY_MINOR;
r                 776 drivers/md/dm-ioctl.c 	r = check_name(param->name);
r                 777 drivers/md/dm-ioctl.c 	if (r)
r                 778 drivers/md/dm-ioctl.c 		return r;
r                 783 drivers/md/dm-ioctl.c 	r = dm_create(m, &md);
r                 784 drivers/md/dm-ioctl.c 	if (r)
r                 785 drivers/md/dm-ioctl.c 		return r;
r                 787 drivers/md/dm-ioctl.c 	r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md);
r                 788 drivers/md/dm-ioctl.c 	if (r) {
r                 791 drivers/md/dm-ioctl.c 		return r;
r                 867 drivers/md/dm-ioctl.c 	int r;
r                 884 drivers/md/dm-ioctl.c 	r = dm_lock_for_deletion(md, !!(param->flags & DM_DEFERRED_REMOVE), false);
r                 885 drivers/md/dm-ioctl.c 	if (r) {
r                 886 drivers/md/dm-ioctl.c 		if (r == -EBUSY && param->flags & DM_DEFERRED_REMOVE) {
r                 894 drivers/md/dm-ioctl.c 		return r;
r                 930 drivers/md/dm-ioctl.c 	int r;
r                 943 drivers/md/dm-ioctl.c 		r = check_name(new_data);
r                 944 drivers/md/dm-ioctl.c 		if (r)
r                 945 drivers/md/dm-ioctl.c 			return r;
r                 960 drivers/md/dm-ioctl.c 	int r = -EINVAL, x;
r                 996 drivers/md/dm-ioctl.c 	r = dm_set_geometry(md, &geometry);
r                1002 drivers/md/dm-ioctl.c 	return r;
r                1007 drivers/md/dm-ioctl.c 	int r = 0;
r                1021 drivers/md/dm-ioctl.c 		r = dm_suspend(md, suspend_flags);
r                1022 drivers/md/dm-ioctl.c 		if (r)
r                1031 drivers/md/dm-ioctl.c 	return r;
r                1036 drivers/md/dm-ioctl.c 	int r = 0;
r                1084 drivers/md/dm-ioctl.c 		r = dm_resume(md);
r                1085 drivers/md/dm-ioctl.c 		if (!r && !dm_kobject_uevent(md, KOBJ_CHANGE, param->event_nr))
r                1096 drivers/md/dm-ioctl.c 	if (!r)
r                1100 drivers/md/dm-ioctl.c 	return r;
r                1212 drivers/md/dm-ioctl.c 	int r = 0;
r                1225 drivers/md/dm-ioctl.c 		r = -ERESTARTSYS;
r                1244 drivers/md/dm-ioctl.c 	return r;
r                1285 drivers/md/dm-ioctl.c 	int r;
r                1299 drivers/md/dm-ioctl.c 		r = next_target(spec, next, end, &spec, &target_params);
r                1300 drivers/md/dm-ioctl.c 		if (r) {
r                1302 drivers/md/dm-ioctl.c 			return r;
r                1305 drivers/md/dm-ioctl.c 		r = dm_table_add_target(table, spec->target_type,
r                1309 drivers/md/dm-ioctl.c 		if (r) {
r                1311 drivers/md/dm-ioctl.c 			return r;
r                1331 drivers/md/dm-ioctl.c 	int r;
r                1341 drivers/md/dm-ioctl.c 	r = dm_table_create(&t, get_mode(param), param->target_count, md);
r                1342 drivers/md/dm-ioctl.c 	if (r)
r                1347 drivers/md/dm-ioctl.c 	r = populate_table(t, param, param_size);
r                1348 drivers/md/dm-ioctl.c 	if (r)
r                1357 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1366 drivers/md/dm-ioctl.c 		r = dm_setup_md_queue(md, t);
r                1367 drivers/md/dm-ioctl.c 		if (r) {
r                1374 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1386 drivers/md/dm-ioctl.c 		r = -ENXIO;
r                1414 drivers/md/dm-ioctl.c 	return r;
r                1548 drivers/md/dm-ioctl.c 	int r;
r                1561 drivers/md/dm-ioctl.c 	r = dm_stats_message(md, argc, argv, result, maxlen);
r                1562 drivers/md/dm-ioctl.c 	if (r < 2)
r                1563 drivers/md/dm-ioctl.c 		return r;
r                1574 drivers/md/dm-ioctl.c 	int r, argc;
r                1591 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1595 drivers/md/dm-ioctl.c 	r = dm_split_args(&argc, &argv, tmsg->message);
r                1596 drivers/md/dm-ioctl.c 	if (r) {
r                1606 drivers/md/dm-ioctl.c 	r = message_for_md(md, argc, argv, result, maxlen);
r                1607 drivers/md/dm-ioctl.c 	if (r <= 1)
r                1615 drivers/md/dm-ioctl.c 		r = -ENXIO;
r                1622 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1624 drivers/md/dm-ioctl.c 		r = ti->type->message(ti, argc, argv, result, maxlen);
r                1627 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1635 drivers/md/dm-ioctl.c 	if (r >= 0)
r                1638 drivers/md/dm-ioctl.c 	if (r == 1) {
r                1644 drivers/md/dm-ioctl.c 		r = 0;
r                1648 drivers/md/dm-ioctl.c 	return r;
r                1709 drivers/md/dm-ioctl.c 	int r = 0;
r                1721 drivers/md/dm-ioctl.c 		r = -EINVAL;
r                1733 drivers/md/dm-ioctl.c 	return r;
r                1843 drivers/md/dm-ioctl.c 	int r = 0;
r                1865 drivers/md/dm-ioctl.c 	r = check_version(cmd, user);
r                1866 drivers/md/dm-ioctl.c 	if (r)
r                1867 drivers/md/dm-ioctl.c 		return r;
r                1884 drivers/md/dm-ioctl.c 	r = copy_params(user, &param_kernel, ioctl_flags, &param, &param_flags);
r                1886 drivers/md/dm-ioctl.c 	if (r)
r                1887 drivers/md/dm-ioctl.c 		return r;
r                1890 drivers/md/dm-ioctl.c 	r = validate_params(cmd, param);
r                1891 drivers/md/dm-ioctl.c 	if (r)
r                1895 drivers/md/dm-ioctl.c 	r = fn(file, param, input_param_size);
r                1901 drivers/md/dm-ioctl.c 	if (!r && ioctl_flags & IOCTL_FLAGS_ISSUE_GLOBAL_EVENT)
r                1907 drivers/md/dm-ioctl.c 	if (!r && copy_to_user(user, param, param->data_size))
r                1908 drivers/md/dm-ioctl.c 		r = -EFAULT;
r                1912 drivers/md/dm-ioctl.c 	return r;
r                1931 drivers/md/dm-ioctl.c 	int r;
r                1934 drivers/md/dm-ioctl.c 	r = nonseekable_open(inode, filp);
r                1935 drivers/md/dm-ioctl.c 	if (unlikely(r))
r                1936 drivers/md/dm-ioctl.c 		return r;
r                1991 drivers/md/dm-ioctl.c 	int r;
r                1993 drivers/md/dm-ioctl.c 	r = dm_hash_init();
r                1994 drivers/md/dm-ioctl.c 	if (r)
r                1995 drivers/md/dm-ioctl.c 		return r;
r                1997 drivers/md/dm-ioctl.c 	r = misc_register(&_dm_misc);
r                1998 drivers/md/dm-ioctl.c 	if (r) {
r                2001 drivers/md/dm-ioctl.c 		return r;
r                2024 drivers/md/dm-ioctl.c 	int r = 0;
r                2033 drivers/md/dm-ioctl.c 		r = -ENXIO;
r                2045 drivers/md/dm-ioctl.c 	return r;
r                2070 drivers/md/dm-ioctl.c 	int r, m = DM_ANY_MINOR;
r                2078 drivers/md/dm-ioctl.c 	r = check_name(dmi->name);
r                2079 drivers/md/dm-ioctl.c 	if (r)
r                2080 drivers/md/dm-ioctl.c 		return r;
r                2086 drivers/md/dm-ioctl.c 	r = dm_create(m, &md);
r                2087 drivers/md/dm-ioctl.c 	if (r)
r                2088 drivers/md/dm-ioctl.c 		return r;
r                2091 drivers/md/dm-ioctl.c 	r = dm_hash_insert(dmi->name, *dmi->uuid ? dmi->uuid : NULL, md);
r                2092 drivers/md/dm-ioctl.c 	if (r)
r                2096 drivers/md/dm-ioctl.c 	r = dm_table_create(&t, get_mode(dmi), dmi->target_count, md);
r                2097 drivers/md/dm-ioctl.c 	if (r)
r                2102 drivers/md/dm-ioctl.c 		r = dm_table_add_target(t, spec_array[i]->target_type,
r                2106 drivers/md/dm-ioctl.c 		if (r) {
r                2113 drivers/md/dm-ioctl.c 	r = dm_table_complete(t);
r                2114 drivers/md/dm-ioctl.c 	if (r)
r                2119 drivers/md/dm-ioctl.c 	r = dm_setup_md_queue(md, t);
r                2120 drivers/md/dm-ioctl.c 	if (r) {
r                2129 drivers/md/dm-ioctl.c 		r = PTR_ERR(old_map);
r                2135 drivers/md/dm-ioctl.c 	r = dm_resume(md);
r                2136 drivers/md/dm-ioctl.c 	if (r)
r                2152 drivers/md/dm-ioctl.c 	return r;
r                 552 drivers/md/dm-kcopyd.c 	int r;
r                 577 drivers/md/dm-kcopyd.c 		r = dm_io(&io_req, 1, &job->source, NULL);
r                 579 drivers/md/dm-kcopyd.c 		r = dm_io(&io_req, job->num_dests, job->dests, NULL);
r                 581 drivers/md/dm-kcopyd.c 	return r;
r                 586 drivers/md/dm-kcopyd.c 	int r;
r                 589 drivers/md/dm-kcopyd.c 	r = kcopyd_get_pages(job->kc, nr_pages, &job->pages);
r                 590 drivers/md/dm-kcopyd.c 	if (!r) {
r                 596 drivers/md/dm-kcopyd.c 	if (r == -ENOMEM)
r                 600 drivers/md/dm-kcopyd.c 	return r;
r                 611 drivers/md/dm-kcopyd.c 	int r, count = 0;
r                 615 drivers/md/dm-kcopyd.c 		r = fn(job);
r                 617 drivers/md/dm-kcopyd.c 		if (r < 0) {
r                 628 drivers/md/dm-kcopyd.c 		if (r > 0) {
r                 911 drivers/md/dm-kcopyd.c 	int r;
r                 926 drivers/md/dm-kcopyd.c 	r = mempool_init_slab_pool(&kc->job_pool, MIN_JOBS, _job_cache);
r                 927 drivers/md/dm-kcopyd.c 	if (r)
r                 933 drivers/md/dm-kcopyd.c 		r = -ENOMEM;
r                 942 drivers/md/dm-kcopyd.c 	r = client_reserve_pages(kc, reserve_pages);
r                 943 drivers/md/dm-kcopyd.c 	if (r)
r                 948 drivers/md/dm-kcopyd.c 		r = PTR_ERR(kc->io_client);
r                 966 drivers/md/dm-kcopyd.c 	return ERR_PTR(r);
r                 239 drivers/md/dm-linear.c 	int r = dm_register_target(&linear_target);
r                 241 drivers/md/dm-linear.c 	if (r < 0)
r                 242 drivers/md/dm-linear.c 		DMERR("register failed %d", r);
r                 244 drivers/md/dm-linear.c 	return r;
r                  88 drivers/md/dm-log-userspace-base.c 	int r;
r                  96 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(uuid, lc->luid, request_type, data,
r                  99 drivers/md/dm-log-userspace-base.c 	if (r != -ESRCH)
r                 100 drivers/md/dm-log-userspace-base.c 		return r;
r                 107 drivers/md/dm-log-userspace-base.c 		r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR,
r                 111 drivers/md/dm-log-userspace-base.c 		if (!r)
r                 115 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL,
r                 117 drivers/md/dm-log-userspace-base.c 	if (!r)
r                 120 drivers/md/dm-log-userspace-base.c 	DMERR("Error trying to resume userspace log: %d", r);
r                 158 drivers/md/dm-log-userspace-base.c 	int r;
r                 163 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL);
r                 165 drivers/md/dm-log-userspace-base.c 	if (r)
r                 193 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 248 drivers/md/dm-log-userspace-base.c 		r = -ENOMEM;
r                 252 drivers/md/dm-log-userspace-base.c 	r = mempool_init_slab_pool(&lc->flush_entry_pool, FLUSH_ENTRY_POOL_SIZE,
r                 254 drivers/md/dm-log-userspace-base.c 	if (r) {
r                 262 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_CTR,
r                 266 drivers/md/dm-log-userspace-base.c 	if (r < 0) {
r                 267 drivers/md/dm-log-userspace-base.c 		if (r == -ESRCH)
r                 276 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_GET_REGION_SIZE,
r                 279 drivers/md/dm-log-userspace-base.c 	if (r) {
r                 290 drivers/md/dm-log-userspace-base.c 			r = -EINVAL;
r                 293 drivers/md/dm-log-userspace-base.c 		r = dm_get_device(ti, devices_rdata,
r                 295 drivers/md/dm-log-userspace-base.c 		if (r)
r                 304 drivers/md/dm-log-userspace-base.c 			r = -ENOMEM;
r                 314 drivers/md/dm-log-userspace-base.c 	if (r) {
r                 323 drivers/md/dm-log-userspace-base.c 	return r;
r                 354 drivers/md/dm-log-userspace-base.c 	int r;
r                 357 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_PRESUSPEND,
r                 360 drivers/md/dm-log-userspace-base.c 	return r;
r                 365 drivers/md/dm-log-userspace-base.c 	int r;
r                 374 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_POSTSUSPEND,
r                 377 drivers/md/dm-log-userspace-base.c 	return r;
r                 382 drivers/md/dm-log-userspace-base.c 	int r;
r                 386 drivers/md/dm-log-userspace-base.c 	r = dm_consult_userspace(lc->uuid, lc->luid, DM_ULOG_RESUME,
r                 389 drivers/md/dm-log-userspace-base.c 	return r;
r                 409 drivers/md/dm-log-userspace-base.c 	int r;
r                 416 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_IS_CLEAN,
r                 420 drivers/md/dm-log-userspace-base.c 	return (r) ? 0 : (int)is_clean;
r                 437 drivers/md/dm-log-userspace-base.c 	int r;
r                 460 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_IN_SYNC,
r                 463 drivers/md/dm-log-userspace-base.c 	return (r) ? 0 : (int)in_sync;
r                 468 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 472 drivers/md/dm-log-userspace-base.c 		r = userspace_do_request(lc, lc->uuid, fe->type,
r                 476 drivers/md/dm-log-userspace-base.c 		if (r)
r                 480 drivers/md/dm-log-userspace-base.c 	return r;
r                 486 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 511 drivers/md/dm-log-userspace-base.c 			r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH,
r                 518 drivers/md/dm-log-userspace-base.c 			if (r)
r                 521 drivers/md/dm-log-userspace-base.c 			r = userspace_do_request(lc, lc->uuid, type,
r                 525 drivers/md/dm-log-userspace-base.c 			if (r) {
r                 530 drivers/md/dm-log-userspace-base.c 				r = flush_one_by_one(lc, flush_list);
r                 542 drivers/md/dm-log-userspace-base.c 	return r;
r                 564 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 585 drivers/md/dm-log-userspace-base.c 	r = flush_by_group(lc, &clear_list, 0);
r                 586 drivers/md/dm-log-userspace-base.c 	if (r)
r                 590 drivers/md/dm-log-userspace-base.c 		r = flush_by_group(lc, &mark_list, 0);
r                 591 drivers/md/dm-log-userspace-base.c 		if (r)
r                 593 drivers/md/dm-log-userspace-base.c 		r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH,
r                 601 drivers/md/dm-log-userspace-base.c 	r = flush_by_group(lc, &mark_list, 1);
r                 602 drivers/md/dm-log-userspace-base.c 	if (r)
r                 636 drivers/md/dm-log-userspace-base.c 	if (r)
r                 639 drivers/md/dm-log-userspace-base.c 	return r;
r                 714 drivers/md/dm-log-userspace-base.c 	int r;
r                 719 drivers/md/dm-log-userspace-base.c 		region_t r;
r                 726 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_GET_RESYNC_WORK,
r                 729 drivers/md/dm-log-userspace-base.c 	*region = pkg.r;
r                 730 drivers/md/dm-log-userspace-base.c 	return (r) ? r : (int)pkg.i;
r                 744 drivers/md/dm-log-userspace-base.c 		region_t r;
r                 748 drivers/md/dm-log-userspace-base.c 	pkg.r = region;
r                 771 drivers/md/dm-log-userspace-base.c 	int r;
r                 777 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_GET_SYNC_COUNT,
r                 780 drivers/md/dm-log-userspace-base.c 	if (r)
r                 797 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 804 drivers/md/dm-log-userspace-base.c 		r = userspace_do_request(lc, lc->uuid, DM_ULOG_STATUS_INFO,
r                 807 drivers/md/dm-log-userspace-base.c 		if (r) {
r                 824 drivers/md/dm-log-userspace-base.c 	return (r) ? 0 : (int)sz;
r                 835 drivers/md/dm-log-userspace-base.c 	int r;
r                 858 drivers/md/dm-log-userspace-base.c 	r = userspace_do_request(lc, lc->uuid, DM_ULOG_IS_REMOTE_RECOVERING,
r                 861 drivers/md/dm-log-userspace-base.c 	if (r)
r                 892 drivers/md/dm-log-userspace-base.c 	int r = 0;
r                 900 drivers/md/dm-log-userspace-base.c 	r = dm_ulog_tfr_init();
r                 901 drivers/md/dm-log-userspace-base.c 	if (r) {
r                 904 drivers/md/dm-log-userspace-base.c 		return r;
r                 907 drivers/md/dm-log-userspace-base.c 	r = dm_dirty_log_type_register(&_userspace_type);
r                 908 drivers/md/dm-log-userspace-base.c 	if (r) {
r                 912 drivers/md/dm-log-userspace-base.c 		return r;
r                  58 drivers/md/dm-log-userspace-transfer.c 	int r;
r                  69 drivers/md/dm-log-userspace-transfer.c 	r = cn_netlink_send(msg, 0, 0, gfp_any());
r                  71 drivers/md/dm-log-userspace-transfer.c 	return r;
r                 174 drivers/md/dm-log-userspace-transfer.c 	int r = 0;
r                 226 drivers/md/dm-log-userspace-transfer.c 	r = dm_ulog_sendto_server(tfr);
r                 230 drivers/md/dm-log-userspace-transfer.c 	if (r) {
r                 232 drivers/md/dm-log-userspace-transfer.c 		      request_type, r);
r                 252 drivers/md/dm-log-userspace-transfer.c 	r = pkg.error;
r                 253 drivers/md/dm-log-userspace-transfer.c 	if (r == -EAGAIN)
r                 257 drivers/md/dm-log-userspace-transfer.c 	return r;
r                 262 drivers/md/dm-log-userspace-transfer.c 	int r;
r                 274 drivers/md/dm-log-userspace-transfer.c 	r = cn_add_callback(&ulog_cn_id, "dmlogusr", cn_ulog_callback);
r                 275 drivers/md/dm-log-userspace-transfer.c 	if (r) {
r                 277 drivers/md/dm-log-userspace-transfer.c 		return r;
r                 871 drivers/md/dm-log-writes.c 	int r = -EINVAL;
r                 876 drivers/md/dm-log-writes.c 		return r;
r                 880 drivers/md/dm-log-writes.c 		r = log_mark(lc, argv[1]);
r                 884 drivers/md/dm-log-writes.c 	return r;
r                1023 drivers/md/dm-log-writes.c 	int r = dm_register_target(&log_writes_target);
r                1025 drivers/md/dm-log-writes.c 	if (r < 0)
r                1026 drivers/md/dm-log-writes.c 		DMERR("register failed %d", r);
r                1028 drivers/md/dm-log-writes.c 	return r;
r                 117 drivers/md/dm-log.c 	int r = 0;
r                 123 drivers/md/dm-log.c 		r = -EEXIST;
r                 126 drivers/md/dm-log.c 	return r;
r                 318 drivers/md/dm-log.c 	int r;
r                 320 drivers/md/dm-log.c 	r = rw_header(log, REQ_OP_READ);
r                 321 drivers/md/dm-log.c 	if (r)
r                 322 drivers/md/dm-log.c 		return r;
r                 373 drivers/md/dm-log.c 	int r;
r                 463 drivers/md/dm-log.c 			r = PTR_ERR(lc->io_req.client);
r                 466 drivers/md/dm-log.c 			return r;
r                 545 drivers/md/dm-log.c 	int r;
r                 553 drivers/md/dm-log.c 	r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &dev);
r                 554 drivers/md/dm-log.c 	if (r)
r                 555 drivers/md/dm-log.c 		return r;
r                 557 drivers/md/dm-log.c 	r = create_log_context(log, ti, argc - 1, argv + 1, dev);
r                 558 drivers/md/dm-log.c 	if (r) {
r                 560 drivers/md/dm-log.c 		return r;
r                 587 drivers/md/dm-log.c 	int r;
r                 593 drivers/md/dm-log.c 	r = read_header(lc);
r                 594 drivers/md/dm-log.c 	if (r) {
r                 634 drivers/md/dm-log.c 	r = rw_header(lc, REQ_OP_WRITE);
r                 635 drivers/md/dm-log.c 	if (!r) {
r                 636 drivers/md/dm-log.c 		r = flush_header(lc);
r                 637 drivers/md/dm-log.c 		if (r)
r                 640 drivers/md/dm-log.c 	if (r) {
r                 646 drivers/md/dm-log.c 	return r;
r                 682 drivers/md/dm-log.c 	int r, i;
r                 702 drivers/md/dm-log.c 	r = rw_header(lc, REQ_OP_WRITE);
r                 703 drivers/md/dm-log.c 	if (r)
r                 707 drivers/md/dm-log.c 			r = flush_header(lc);
r                 708 drivers/md/dm-log.c 			if (r) {
r                 717 drivers/md/dm-log.c 	return r;
r                 864 drivers/md/dm-log.c 	int r;
r                 866 drivers/md/dm-log.c 	r = dm_dirty_log_type_register(&_core_type);
r                 867 drivers/md/dm-log.c 	if (r)
r                 870 drivers/md/dm-log.c 	r = dm_dirty_log_type_register(&_disk_type);
r                 871 drivers/md/dm-log.c 	if (r) {
r                 876 drivers/md/dm-log.c 	return r;
r                 651 drivers/md/dm-mpath.c 	int r;
r                 677 drivers/md/dm-mpath.c 		r = __multipath_map_bio(m, bio, mpio);
r                 678 drivers/md/dm-mpath.c 		switch (r) {
r                 693 drivers/md/dm-mpath.c 			WARN_ONCE(true, "__multipath_map_bio() returned %d\n", r);
r                 747 drivers/md/dm-mpath.c 	int r;
r                 761 drivers/md/dm-mpath.c 	r = dm_read_arg_group(_args, as, &ps_argc, &ti->error);
r                 762 drivers/md/dm-mpath.c 	if (r) {
r                 767 drivers/md/dm-mpath.c 	r = pst->create(&pg->ps, ps_argc, as->argv);
r                 768 drivers/md/dm-mpath.c 	if (r) {
r                 771 drivers/md/dm-mpath.c 		return r;
r                 784 drivers/md/dm-mpath.c 	int r;
r                 811 drivers/md/dm-mpath.c 		r = scsi_dh_attach(q, m->hw_handler_name);
r                 812 drivers/md/dm-mpath.c 		if (r == -EBUSY) {
r                 819 drivers/md/dm-mpath.c 		if (r < 0) {
r                 821 drivers/md/dm-mpath.c 			return r;
r                 825 drivers/md/dm-mpath.c 			r = scsi_dh_set_params(q, m->hw_handler_params);
r                 826 drivers/md/dm-mpath.c 			if (r < 0) {
r                 828 drivers/md/dm-mpath.c 				return r;
r                 839 drivers/md/dm-mpath.c 	int r;
r                 855 drivers/md/dm-mpath.c 	r = dm_get_device(ti, dm_shift_arg(as), dm_table_get_mode(ti->table),
r                 857 drivers/md/dm-mpath.c 	if (r) {
r                 866 drivers/md/dm-mpath.c 		r = setup_scsi_dh(p->path.dev->bdev, m, &attached_handler_name, &ti->error);
r                 868 drivers/md/dm-mpath.c 		if (r) {
r                 874 drivers/md/dm-mpath.c 	r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error);
r                 875 drivers/md/dm-mpath.c 	if (r) {
r                 883 drivers/md/dm-mpath.c 	return ERR_PTR(r);
r                 894 drivers/md/dm-mpath.c 	int r;
r                 912 drivers/md/dm-mpath.c 	r = parse_path_selector(as, pg, ti);
r                 913 drivers/md/dm-mpath.c 	if (r)
r                 919 drivers/md/dm-mpath.c 	r = dm_read_arg(_args, as, &pg->nr_pgpaths, &ti->error);
r                 920 drivers/md/dm-mpath.c 	if (r)
r                 923 drivers/md/dm-mpath.c 	r = dm_read_arg(_args + 1, as, &nr_selector_args, &ti->error);
r                 924 drivers/md/dm-mpath.c 	if (r)
r                 934 drivers/md/dm-mpath.c 			r = -EINVAL;
r                 943 drivers/md/dm-mpath.c 			r = PTR_ERR(pgpath);
r                 956 drivers/md/dm-mpath.c 	return ERR_PTR(r);
r                1012 drivers/md/dm-mpath.c 	int r;
r                1023 drivers/md/dm-mpath.c 	r = dm_read_arg_group(_args, as, &argc, &ti->error);
r                1024 drivers/md/dm-mpath.c 	if (r)
r                1035 drivers/md/dm-mpath.c 			r = queue_if_no_path(m, true, false);
r                1046 drivers/md/dm-mpath.c 			r = dm_read_arg(_args + 1, as, &m->pg_init_retries, &ti->error);
r                1053 drivers/md/dm-mpath.c 			r = dm_read_arg(_args + 2, as, &m->pg_init_delay_msecs, &ti->error);
r                1069 drivers/md/dm-mpath.c 				r = -EINVAL;
r                1076 drivers/md/dm-mpath.c 		r = -EINVAL;
r                1077 drivers/md/dm-mpath.c 	} while (argc && !r);
r                1079 drivers/md/dm-mpath.c 	return r;
r                1090 drivers/md/dm-mpath.c 	int r;
r                1105 drivers/md/dm-mpath.c 	r = parse_features(&as, m);
r                1106 drivers/md/dm-mpath.c 	if (r)
r                1109 drivers/md/dm-mpath.c 	r = alloc_multipath_stage2(ti, m);
r                1110 drivers/md/dm-mpath.c 	if (r)
r                1113 drivers/md/dm-mpath.c 	r = parse_hw_handler(&as, m);
r                1114 drivers/md/dm-mpath.c 	if (r)
r                1117 drivers/md/dm-mpath.c 	r = dm_read_arg(_args, &as, &m->nr_priority_groups, &ti->error);
r                1118 drivers/md/dm-mpath.c 	if (r)
r                1121 drivers/md/dm-mpath.c 	r = dm_read_arg(_args + 1, &as, &next_pg_num, &ti->error);
r                1122 drivers/md/dm-mpath.c 	if (r)
r                1128 drivers/md/dm-mpath.c 		r = -EINVAL;
r                1139 drivers/md/dm-mpath.c 			r = PTR_ERR(pg);
r                1155 drivers/md/dm-mpath.c 		r = -EINVAL;
r                1172 drivers/md/dm-mpath.c 	return r;
r                1257 drivers/md/dm-mpath.c 	int r = 0, run_queue = 0;
r                1269 drivers/md/dm-mpath.c 	r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path);
r                1270 drivers/md/dm-mpath.c 	if (r)
r                1296 drivers/md/dm-mpath.c 	return r;
r                1305 drivers/md/dm-mpath.c 	int r = -EINVAL;
r                1312 drivers/md/dm-mpath.c 				r = action(pgpath);
r                1316 drivers/md/dm-mpath.c 	return r;
r                1526 drivers/md/dm-mpath.c 	int r = DM_ENDIO_DONE;
r                1543 drivers/md/dm-mpath.c 			r = DM_ENDIO_DELAY_REQUEUE;
r                1545 drivers/md/dm-mpath.c 			r = DM_ENDIO_REQUEUE;
r                1555 drivers/md/dm-mpath.c 			r = DM_ENDIO_DONE;
r                1566 drivers/md/dm-mpath.c 	return r;
r                1576 drivers/md/dm-mpath.c 	int r = DM_ENDIO_DONE;
r                1587 drivers/md/dm-mpath.c 			r = DM_ENDIO_REQUEUE;
r                1601 drivers/md/dm-mpath.c 	r = DM_ENDIO_INCOMPLETE;
r                1610 drivers/md/dm-mpath.c 	return r;
r                1790 drivers/md/dm-mpath.c 	int r = -EINVAL;
r                1798 drivers/md/dm-mpath.c 		r = -EBUSY;
r                1804 drivers/md/dm-mpath.c 			r = queue_if_no_path(m, true, false);
r                1807 drivers/md/dm-mpath.c 			r = queue_if_no_path(m, false, false);
r                1818 drivers/md/dm-mpath.c 		r = bypass_pg_num(m, argv[1], true);
r                1821 drivers/md/dm-mpath.c 		r = bypass_pg_num(m, argv[1], false);
r                1824 drivers/md/dm-mpath.c 		r = switch_pg_num(m, argv[1]);
r                1835 drivers/md/dm-mpath.c 	r = dm_get_device(ti, argv[1], dm_table_get_mode(ti->table), &dev);
r                1836 drivers/md/dm-mpath.c 	if (r) {
r                1842 drivers/md/dm-mpath.c 	r = action_dev(m, dev, action);
r                1848 drivers/md/dm-mpath.c 	return r;
r                1856 drivers/md/dm-mpath.c 	int r;
r                1865 drivers/md/dm-mpath.c 			r = 0;
r                1868 drivers/md/dm-mpath.c 			r = -ENOTCONN;
r                1873 drivers/md/dm-mpath.c 			r = -ENOTCONN;
r                1875 drivers/md/dm-mpath.c 			r = -EIO;
r                1878 drivers/md/dm-mpath.c 	if (r == -ENOTCONN) {
r                1892 drivers/md/dm-mpath.c 	if (!r && ti->len != i_size_read((*bdev)->bd_inode) >> SECTOR_SHIFT)
r                1894 drivers/md/dm-mpath.c 	return r;
r                2019 drivers/md/dm-mpath.c 	int r;
r                2024 drivers/md/dm-mpath.c 		r = -ENOMEM;
r                2038 drivers/md/dm-mpath.c 		r = -ENOMEM;
r                2042 drivers/md/dm-mpath.c 	r = dm_register_target(&multipath_target);
r                2043 drivers/md/dm-mpath.c 	if (r < 0) {
r                2044 drivers/md/dm-mpath.c 		DMERR("request-based register failed %d", r);
r                2045 drivers/md/dm-mpath.c 		r = -EINVAL;
r                2056 drivers/md/dm-mpath.c 	return r;
r                  99 drivers/md/dm-path-selector.c 	int r = 0;
r                 109 drivers/md/dm-path-selector.c 		r = -EEXIST;
r                 115 drivers/md/dm-path-selector.c 	return r;
r                 257 drivers/md/dm-queue-length.c 	int r = dm_register_path_selector(&ql_ps);
r                 259 drivers/md/dm-queue-length.c 	if (r < 0)
r                 260 drivers/md/dm-queue-length.c 		DMERR("register failed %d", r);
r                 264 drivers/md/dm-queue-length.c 	return r;
r                 269 drivers/md/dm-queue-length.c 	int r = dm_unregister_path_selector(&ql_ps);
r                 271 drivers/md/dm-queue-length.c 	if (r < 0)
r                 272 drivers/md/dm-queue-length.c 		DMERR("unregister failed %d", r);
r                 597 drivers/md/dm-raid.c 	unsigned int n = 1, f = 1, r = 0;
r                 613 drivers/md/dm-raid.c 		r = RAID10_OFFSET;
r                 615 drivers/md/dm-raid.c 			r |= RAID10_USE_FAR_SETS;
r                 619 drivers/md/dm-raid.c 		r = !RAID10_OFFSET;
r                 621 drivers/md/dm-raid.c 			r |= RAID10_USE_FAR_SETS;
r                 626 drivers/md/dm-raid.c 	return r | (f << RAID10_FAR_COPIES_SHIFT) | n;
r                 821 drivers/md/dm-raid.c 	int r = 0;
r                 848 drivers/md/dm-raid.c 			r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table),
r                 850 drivers/md/dm-raid.c 			if (r) {
r                 852 drivers/md/dm-raid.c 				return r;
r                 881 drivers/md/dm-raid.c 		r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table),
r                 883 drivers/md/dm-raid.c 		if (r) {
r                 885 drivers/md/dm-raid.c 			return r;
r                1240 drivers/md/dm-raid.c 			int r;
r                1251 drivers/md/dm-raid.c 			r = dm_get_device(rs->ti, arg, dm_table_get_mode(rs->ti->table),
r                1253 drivers/md/dm-raid.c 			if (r) {
r                1255 drivers/md/dm-raid.c 				return r;
r                1273 drivers/md/dm-raid.c 			int r;
r                1283 drivers/md/dm-raid.c 			r = dm_raid_journal_mode_to_md(arg);
r                1284 drivers/md/dm-raid.c 			if (r < 0) {
r                1286 drivers/md/dm-raid.c 				return r;
r                1288 drivers/md/dm-raid.c 			rs->journal_dev.mode = r;
r                1531 drivers/md/dm-raid.c 	int r;
r                1556 drivers/md/dm-raid.c 		r = raid5_set_cache_size(mddev, nr_stripes);
r                1557 drivers/md/dm-raid.c 		if (r) {
r                1559 drivers/md/dm-raid.c 			return r;
r                2182 drivers/md/dm-raid.c 	int r;
r                2187 drivers/md/dm-raid.c 	r = read_disk_sb(rdev, rdev->sb_size, false);
r                2188 drivers/md/dm-raid.c 	if (r)
r                2189 drivers/md/dm-raid.c 		return r;
r                2232 drivers/md/dm-raid.c 	struct md_rdev *r;
r                2342 drivers/md/dm-raid.c 	rdev_for_each(r, mddev) {
r                2346 drivers/md/dm-raid.c 		if (test_bit(FirstUse, &r->flags))
r                2349 drivers/md/dm-raid.c 		if (!test_bit(In_sync, &r->flags)) {
r                2351 drivers/md/dm-raid.c 				r->raid_disk);
r                2354 drivers/md/dm-raid.c 			if (test_bit(FirstUse, &r->flags))
r                2400 drivers/md/dm-raid.c 	rdev_for_each(r, mddev) {
r                2402 drivers/md/dm-raid.c 		    !r->sb_page)
r                2404 drivers/md/dm-raid.c 		sb2 = page_address(r->sb_page);
r                2411 drivers/md/dm-raid.c 		if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) {
r                2416 drivers/md/dm-raid.c 			if (role != r->raid_disk) {
r                2425 drivers/md/dm-raid.c 					sb2->array_position = cpu_to_le32(r->raid_disk);
r                2434 drivers/md/dm-raid.c 				DMINFO("raid device #%d now at position #%d", role, r->raid_disk);
r                2442 drivers/md/dm-raid.c 				set_bit(Faulty, &r->flags);
r                2522 drivers/md/dm-raid.c 	int r;
r                2554 drivers/md/dm-raid.c 		r = super_load(rdev, freshest);
r                2556 drivers/md/dm-raid.c 		switch (r) {
r                2854 drivers/md/dm-raid.c 	int r = 0;
r                2914 drivers/md/dm-raid.c 		r = rs_set_dev_and_array_sectors(rs, true);
r                2952 drivers/md/dm-raid.c 	return r;
r                3007 drivers/md/dm-raid.c 	int r;
r                3054 drivers/md/dm-raid.c 	r = parse_raid_params(rs, &as, num_raid_params);
r                3055 drivers/md/dm-raid.c 	if (r)
r                3058 drivers/md/dm-raid.c 	r = parse_dev_params(rs, &as);
r                3059 drivers/md/dm-raid.c 	if (r)
r                3070 drivers/md/dm-raid.c 	r = rs_set_dev_and_array_sectors(rs, false);
r                3071 drivers/md/dm-raid.c 	if (r)
r                3083 drivers/md/dm-raid.c 	r = analyse_superblocks(ti, rs);
r                3084 drivers/md/dm-raid.c 	if (r)
r                3090 drivers/md/dm-raid.c 		r = -EINVAL;
r                3117 drivers/md/dm-raid.c 			r = -EINVAL;
r                3135 drivers/md/dm-raid.c 			r = -EPERM;
r                3142 drivers/md/dm-raid.c 			r = -EPERM;
r                3149 drivers/md/dm-raid.c 			r = -EPERM;
r                3161 drivers/md/dm-raid.c 		r = rs_check_takeover(rs);
r                3162 drivers/md/dm-raid.c 		if (r)
r                3165 drivers/md/dm-raid.c 		r = rs_setup_takeover(rs);
r                3166 drivers/md/dm-raid.c 		if (r)
r                3182 drivers/md/dm-raid.c 			r = -EPERM;
r                3195 drivers/md/dm-raid.c 			r = rs_prepare_reshape(rs);
r                3196 drivers/md/dm-raid.c 			if (r)
r                3215 drivers/md/dm-raid.c 	r = rs_adjust_data_offsets(rs);
r                3216 drivers/md/dm-raid.c 	if (r)
r                3228 drivers/md/dm-raid.c 	r = md_run(&rs->md);
r                3230 drivers/md/dm-raid.c 	if (r) {
r                3236 drivers/md/dm-raid.c 	r = md_start(&rs->md);
r                3238 drivers/md/dm-raid.c 	if (r) {
r                3249 drivers/md/dm-raid.c 		r = r5c_journal_mode_set(&rs->md, rs->journal_dev.mode);
r                3250 drivers/md/dm-raid.c 		if (r) {
r                3262 drivers/md/dm-raid.c 		r = rs_set_raid456_stripe_cache(rs);
r                3263 drivers/md/dm-raid.c 		if (r)
r                3269 drivers/md/dm-raid.c 		r = rs_check_reshape(rs);
r                3270 drivers/md/dm-raid.c 		if (r)
r                3277 drivers/md/dm-raid.c 			r = rs->md.pers->check_reshape(&rs->md);
r                3278 drivers/md/dm-raid.c 			if (r) {
r                3299 drivers/md/dm-raid.c 	return r;
r                3411 drivers/md/dm-raid.c 	sector_t r;
r                3419 drivers/md/dm-raid.c 		r = resync_max_sectors;
r                3426 drivers/md/dm-raid.c 			r = mddev->recovery_cp;
r                3428 drivers/md/dm-raid.c 			r = mddev->curr_resync_completed;
r                3430 drivers/md/dm-raid.c 		if (state == st_idle && r >= resync_max_sectors) {
r                3493 drivers/md/dm-raid.c 	return min(r, resync_max_sectors);
r                3725 drivers/md/dm-raid.c 	int r = 0;
r                3727 drivers/md/dm-raid.c 	for (i = 0; !r && i < rs->md.raid_disks; i++)
r                3729 drivers/md/dm-raid.c 			r = fn(ti,
r                3735 drivers/md/dm-raid.c 	return r;
r                3779 drivers/md/dm-raid.c 	struct md_rdev *r;
r                3788 drivers/md/dm-raid.c 		r = &rs->dev[i].rdev;
r                3790 drivers/md/dm-raid.c 		if (test_bit(Journal, &r->flags))
r                3793 drivers/md/dm-raid.c 		if (test_bit(Faulty, &r->flags) &&
r                3794 drivers/md/dm-raid.c 		    r->meta_bdev && !read_disk_sb(r, r->sb_size, true)) {
r                3808 drivers/md/dm-raid.c 			flags = r->flags;
r                3809 drivers/md/dm-raid.c 			clear_bit(In_sync, &r->flags); /* Mandatory for hot remove. */
r                3810 drivers/md/dm-raid.c 			if (r->raid_disk >= 0) {
r                3811 drivers/md/dm-raid.c 				if (mddev->pers->hot_remove_disk(mddev, r)) {
r                3813 drivers/md/dm-raid.c 					r->flags = flags;
r                3817 drivers/md/dm-raid.c 				r->raid_disk = r->saved_raid_disk = i;
r                3819 drivers/md/dm-raid.c 			clear_bit(Faulty, &r->flags);
r                3820 drivers/md/dm-raid.c 			clear_bit(WriteErrorSeen, &r->flags);
r                3822 drivers/md/dm-raid.c 			if (mddev->pers->hot_add_disk(mddev, r)) {
r                3824 drivers/md/dm-raid.c 				r->raid_disk = r->saved_raid_disk = -1;
r                3825 drivers/md/dm-raid.c 				r->flags = flags;
r                3827 drivers/md/dm-raid.c 				clear_bit(In_sync, &r->flags);
r                3828 drivers/md/dm-raid.c 				r->recovery_offset = 0;
r                3839 drivers/md/dm-raid.c 		rdev_for_each(r, &rs->md) {
r                3840 drivers/md/dm-raid.c 			if (test_bit(Journal, &r->flags))
r                3843 drivers/md/dm-raid.c 			sb = page_address(r->sb_page);
r                3856 drivers/md/dm-raid.c 	int r = 0;
r                3861 drivers/md/dm-raid.c 		r = md_bitmap_load(&rs->md);
r                3862 drivers/md/dm-raid.c 		if (r)
r                3866 drivers/md/dm-raid.c 	return r;
r                3890 drivers/md/dm-raid.c 	int r;
r                3897 drivers/md/dm-raid.c 	r = rs_setup_reshape(rs);
r                3898 drivers/md/dm-raid.c 	if (r)
r                3899 drivers/md/dm-raid.c 		return r;
r                3906 drivers/md/dm-raid.c 	r = pers->check_reshape(mddev);
r                3907 drivers/md/dm-raid.c 	if (r) {
r                3909 drivers/md/dm-raid.c 		return r;
r                3917 drivers/md/dm-raid.c 		r = pers->start_reshape(mddev);
r                3918 drivers/md/dm-raid.c 		if (r) {
r                3920 drivers/md/dm-raid.c 			return r;
r                3936 drivers/md/dm-raid.c 	int r;
r                3954 drivers/md/dm-raid.c 	r = __load_dirty_region_bitmap(rs);
r                3955 drivers/md/dm-raid.c 	if (r)
r                3956 drivers/md/dm-raid.c 		return r;
r                3961 drivers/md/dm-raid.c 		r = md_bitmap_resize(mddev->bitmap, mddev->dev_sectors,
r                3963 drivers/md/dm-raid.c 		if (r)
r                3980 drivers/md/dm-raid.c 		r = rs_start_reshape(rs);
r                3982 drivers/md/dm-raid.c 		if (r)
r                3984 drivers/md/dm-raid.c 		r = 0;
r                3987 drivers/md/dm-raid.c 	return r;
r                1065 drivers/md/dm-raid1.c 	int r;
r                1101 drivers/md/dm-raid1.c 		r = get_mirror(ms, ti, m, argv);
r                1102 drivers/md/dm-raid1.c 		if (r) {
r                1104 drivers/md/dm-raid1.c 			return r;
r                1112 drivers/md/dm-raid1.c 	r = dm_set_target_max_io_len(ti, dm_rh_get_region_size(ms->rh));
r                1113 drivers/md/dm-raid1.c 	if (r)
r                1123 drivers/md/dm-raid1.c 		r = -ENOMEM;
r                1131 drivers/md/dm-raid1.c 	r = parse_features(ms, argc, argv, &args_used);
r                1132 drivers/md/dm-raid1.c 	if (r)
r                1149 drivers/md/dm-raid1.c 		r = -EINVAL;
r                1155 drivers/md/dm-raid1.c 		r = PTR_ERR(ms->kcopyd_client);
r                1166 drivers/md/dm-raid1.c 	return r;
r                1186 drivers/md/dm-raid1.c 	int r, rw = bio_data_dir(bio);
r                1202 drivers/md/dm-raid1.c 	r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0);
r                1203 drivers/md/dm-raid1.c 	if (r < 0 && r != -EWOULDBLOCK)
r                1209 drivers/md/dm-raid1.c 	if (!r || (r == -EWOULDBLOCK)) {
r                1472 drivers/md/dm-raid1.c 	int r;
r                1474 drivers/md/dm-raid1.c 	r = dm_register_target(&mirror_target);
r                1475 drivers/md/dm-raid1.c 	if (r < 0) {
r                1483 drivers/md/dm-raid1.c 	return r;
r                 340 drivers/md/dm-region-hash.c 	int r;
r                 354 drivers/md/dm-region-hash.c 	r = rh->log->type->in_sync(rh->log, region, may_block);
r                 360 drivers/md/dm-region-hash.c 	return r == 1 ? DM_RH_CLEAN : DM_RH_NOSYNC;
r                 589 drivers/md/dm-region-hash.c 	int r;
r                 596 drivers/md/dm-region-hash.c 	r = rh->log->type->get_resync_work(rh->log, &region);
r                 597 drivers/md/dm-region-hash.c 	if (r <= 0)
r                 598 drivers/md/dm-region-hash.c 		return r;
r                 213 drivers/md/dm-round-robin.c 	int r = dm_register_path_selector(&rr_ps);
r                 215 drivers/md/dm-round-robin.c 	if (r < 0)
r                 216 drivers/md/dm-round-robin.c 		DMERR("register failed %d", r);
r                 220 drivers/md/dm-round-robin.c 	return r;
r                 225 drivers/md/dm-round-robin.c 	int r = dm_unregister_path_selector(&rr_ps);
r                 227 drivers/md/dm-round-robin.c 	if (r < 0)
r                 228 drivers/md/dm-round-robin.c 		DMERR("unregister failed %d", r);
r                 213 drivers/md/dm-rq.c 	int r = DM_ENDIO_DONE;
r                 221 drivers/md/dm-rq.c 			r = rq_end_io(tio->ti, clone, error, &tio->info);
r                 236 drivers/md/dm-rq.c 	switch (r) {
r                 253 drivers/md/dm-rq.c 		DMWARN("unimplemented target endio return value: %d", r);
r                 315 drivers/md/dm-rq.c 	blk_status_t r;
r                 321 drivers/md/dm-rq.c 	r = blk_insert_cloned_request(clone->q, clone);
r                 322 drivers/md/dm-rq.c 	if (r != BLK_STS_OK && r != BLK_STS_RESOURCE && r != BLK_STS_DEV_RESOURCE)
r                 324 drivers/md/dm-rq.c 		dm_complete_request(rq, r);
r                 325 drivers/md/dm-rq.c 	return r;
r                 345 drivers/md/dm-rq.c 	int r;
r                 347 drivers/md/dm-rq.c 	r = blk_rq_prep_clone(clone, rq, &tio->md->bs, gfp_mask,
r                 349 drivers/md/dm-rq.c 	if (r)
r                 350 drivers/md/dm-rq.c 		return r;
r                 386 drivers/md/dm-rq.c 	int r;
r                 393 drivers/md/dm-rq.c 	r = ti->type->clone_and_map_rq(ti, rq, &tio->info, &clone);
r                 394 drivers/md/dm-rq.c 	switch (r) {
r                 429 drivers/md/dm-rq.c 		DMWARN("unimplemented target map return value: %d", r);
r                 433 drivers/md/dm-rq.c 	return r;
r                 339 drivers/md/dm-service-time.c 	int r = dm_register_path_selector(&st_ps);
r                 341 drivers/md/dm-service-time.c 	if (r < 0)
r                 342 drivers/md/dm-service-time.c 		DMERR("register failed %d", r);
r                 346 drivers/md/dm-service-time.c 	return r;
r                 351 drivers/md/dm-service-time.c 	int r = dm_unregister_path_selector(&st_ps);
r                 353 drivers/md/dm-service-time.c 	if (r < 0)
r                 354 drivers/md/dm-service-time.c 		DMERR("unregister failed %d", r);
r                 169 drivers/md/dm-snap-persistent.c 	int r = -ENOMEM;
r                 199 drivers/md/dm-snap-persistent.c 	return r;
r                 287 drivers/md/dm-snap-persistent.c 	int r;
r                 292 drivers/md/dm-snap-persistent.c 	r = chunk_io(ps, ps->area, chunk, op, op_flags, 0);
r                 293 drivers/md/dm-snap-persistent.c 	if (r)
r                 294 drivers/md/dm-snap-persistent.c 		return r;
r                 312 drivers/md/dm-snap-persistent.c 	int r;
r                 335 drivers/md/dm-snap-persistent.c 	r = alloc_area(ps);
r                 336 drivers/md/dm-snap-persistent.c 	if (r)
r                 337 drivers/md/dm-snap-persistent.c 		return r;
r                 339 drivers/md/dm-snap-persistent.c 	r = chunk_io(ps, ps->header_area, 0, REQ_OP_READ, 0, 1);
r                 340 drivers/md/dm-snap-persistent.c 	if (r)
r                 352 drivers/md/dm-snap-persistent.c 		r = -ENXIO;
r                 372 drivers/md/dm-snap-persistent.c 	r = dm_exception_store_set_chunk_size(ps->store, chunk_size,
r                 374 drivers/md/dm-snap-persistent.c 	if (r) {
r                 377 drivers/md/dm-snap-persistent.c 		return r;
r                 380 drivers/md/dm-snap-persistent.c 	r = alloc_area(ps);
r                 381 drivers/md/dm-snap-persistent.c 	return r;
r                 385 drivers/md/dm-snap-persistent.c 	return r;
r                 454 drivers/md/dm-snap-persistent.c 	int r;
r                 485 drivers/md/dm-snap-persistent.c 		r = callback(callback_context, e.old_chunk, e.new_chunk);
r                 486 drivers/md/dm-snap-persistent.c 		if (r)
r                 487 drivers/md/dm-snap-persistent.c 			return r;
r                 498 drivers/md/dm-snap-persistent.c 	int r, full = 1;
r                 540 drivers/md/dm-snap-persistent.c 			r = PTR_ERR(area);
r                 544 drivers/md/dm-snap-persistent.c 		r = insert_exceptions(ps, area, callback, callback_context,
r                 554 drivers/md/dm-snap-persistent.c 		if (unlikely(r))
r                 562 drivers/md/dm-snap-persistent.c 	r = 0;
r                 567 drivers/md/dm-snap-persistent.c 	return r;
r                 616 drivers/md/dm-snap-persistent.c 	int r, uninitialized_var(new_snapshot);
r                 622 drivers/md/dm-snap-persistent.c 	r = read_header(ps, &new_snapshot);
r                 623 drivers/md/dm-snap-persistent.c 	if (r)
r                 624 drivers/md/dm-snap-persistent.c 		return r;
r                 640 drivers/md/dm-snap-persistent.c 		r = write_header(ps);
r                 641 drivers/md/dm-snap-persistent.c 		if (r) {
r                 643 drivers/md/dm-snap-persistent.c 			return r;
r                 648 drivers/md/dm-snap-persistent.c 		r = zero_disk_area(ps, 0);
r                 649 drivers/md/dm-snap-persistent.c 		if (r)
r                 651 drivers/md/dm-snap-persistent.c 		return r;
r                 671 drivers/md/dm-snap-persistent.c 	r = read_exceptions(ps, callback, callback_context);
r                 673 drivers/md/dm-snap-persistent.c 	return r;
r                 772 drivers/md/dm-snap-persistent.c 	int r;
r                 785 drivers/md/dm-snap-persistent.c 		r = area_io(ps, REQ_OP_READ, 0);
r                 786 drivers/md/dm-snap-persistent.c 		if (r < 0)
r                 787 drivers/md/dm-snap-persistent.c 			return r;
r                 814 drivers/md/dm-snap-persistent.c 	int r, i;
r                 822 drivers/md/dm-snap-persistent.c 	r = area_io(ps, REQ_OP_WRITE, REQ_PREFLUSH | REQ_FUA);
r                 823 drivers/md/dm-snap-persistent.c 	if (r < 0)
r                 824 drivers/md/dm-snap-persistent.c 		return r;
r                 856 drivers/md/dm-snap-persistent.c 	int r;
r                 879 drivers/md/dm-snap-persistent.c 		r = -ENOMEM;
r                 889 drivers/md/dm-snap-persistent.c 			r = -EINVAL;
r                 903 drivers/md/dm-snap-persistent.c 	return r;
r                 955 drivers/md/dm-snap-persistent.c 	int r;
r                 957 drivers/md/dm-snap-persistent.c 	r = dm_exception_store_type_register(&_persistent_type);
r                 958 drivers/md/dm-snap-persistent.c 	if (r) {
r                 960 drivers/md/dm-snap-persistent.c 		return r;
r                 963 drivers/md/dm-snap-persistent.c 	r = dm_exception_store_type_register(&_persistent_compat_type);
r                 964 drivers/md/dm-snap-persistent.c 	if (r) {
r                 968 drivers/md/dm-snap-persistent.c 		return r;
r                 971 drivers/md/dm-snap-persistent.c 	return r;
r                 129 drivers/md/dm-snap-transient.c 	int r;
r                 131 drivers/md/dm-snap-transient.c 	r = dm_exception_store_type_register(&_transient_type);
r                 132 drivers/md/dm-snap-transient.c 	if (r) {
r                 134 drivers/md/dm-snap-transient.c 		return r;
r                 137 drivers/md/dm-snap-transient.c 	r = dm_exception_store_type_register(&_transient_compat_type);
r                 138 drivers/md/dm-snap-transient.c 	if (r) {
r                 142 drivers/md/dm-snap-transient.c 		return r;
r                 145 drivers/md/dm-snap-transient.c 	return r;
r                 552 drivers/md/dm-snap.c 	int r = 0;
r                 560 drivers/md/dm-snap.c 	r = __validate_exception_handover(snap);
r                 561 drivers/md/dm-snap.c 	if (r < 0) {
r                 585 drivers/md/dm-snap.c 	return r;
r                 986 drivers/md/dm-snap.c 	int r;
r                 996 drivers/md/dm-snap.c 		r = __remove_single_exception_chunk(s, old_chunk);
r                 997 drivers/md/dm-snap.c 		if (r)
r                1008 drivers/md/dm-snap.c 	return r;
r                1179 drivers/md/dm-snap.c 	int r;
r                1193 drivers/md/dm-snap.c 	r = dm_read_arg_group(_args, as, &argc, &ti->error);
r                1194 drivers/md/dm-snap.c 	if (r)
r                1197 drivers/md/dm-snap.c 	while (argc && !r) {
r                1209 drivers/md/dm-snap.c 			r = -EINVAL;
r                1220 drivers/md/dm-snap.c 		r = -EINVAL;
r                1223 drivers/md/dm-snap.c 	return r;
r                1235 drivers/md/dm-snap.c 	int r = -EINVAL;
r                1243 drivers/md/dm-snap.c 		r = -EINVAL;
r                1255 drivers/md/dm-snap.c 		r = -ENOMEM;
r                1262 drivers/md/dm-snap.c 	r = parse_snapshot_features(&as, s, ti);
r                1263 drivers/md/dm-snap.c 	if (r)
r                1270 drivers/md/dm-snap.c 	r = dm_get_device(ti, origin_path, origin_mode, &s->origin);
r                1271 drivers/md/dm-snap.c 	if (r) {
r                1284 drivers/md/dm-snap.c 		r = -EINVAL;
r                1288 drivers/md/dm-snap.c 	r = dm_get_device(ti, cow_path, dm_table_get_mode(ti->table), &s->cow);
r                1289 drivers/md/dm-snap.c 	if (r) {
r                1294 drivers/md/dm-snap.c 	r = dm_exception_store_create(ti, argc, argv, s, &args_used, &s->store);
r                1295 drivers/md/dm-snap.c 	if (r) {
r                1297 drivers/md/dm-snap.c 		r = -EINVAL;
r                1325 drivers/md/dm-snap.c 		r = -ENOMEM;
r                1333 drivers/md/dm-snap.c 		r = PTR_ERR(s->kcopyd_client);
r                1338 drivers/md/dm-snap.c 	r = mempool_init_slab_pool(&s->pending_pool, MIN_IOS, pending_cache);
r                1339 drivers/md/dm-snap.c 	if (r) {
r                1357 drivers/md/dm-snap.c 	r = register_snapshot(s);
r                1358 drivers/md/dm-snap.c 	if (r == -ENOMEM) {
r                1361 drivers/md/dm-snap.c 	} else if (r < 0) {
r                1372 drivers/md/dm-snap.c 	if (r > 0) {
r                1377 drivers/md/dm-snap.c 	r = s->store->type->read_metadata(s->store, dm_add_exception,
r                1379 drivers/md/dm-snap.c 	if (r < 0) {
r                1382 drivers/md/dm-snap.c 	} else if (r > 0) {
r                1392 drivers/md/dm-snap.c 	r = dm_set_target_max_io_len(ti, s->store->chunk_size);
r                1393 drivers/md/dm-snap.c 	if (r)
r                1417 drivers/md/dm-snap.c 	return r;
r                1584 drivers/md/dm-snap.c 	int r;
r                1589 drivers/md/dm-snap.c 		r = do_origin(s->origin, bio, false);
r                1590 drivers/md/dm-snap.c 		if (r == DM_MAPIO_REMAPPED)
r                1945 drivers/md/dm-snap.c 	int r = DM_MAPIO_REMAPPED;
r                1975 drivers/md/dm-snap.c 		r = DM_MAPIO_KILL;
r                2003 drivers/md/dm-snap.c 			r = DM_MAPIO_SUBMITTED; /* discard is not issued */
r                2015 drivers/md/dm-snap.c 		r = DM_MAPIO_SUBMITTED;
r                2054 drivers/md/dm-snap.c 				r = DM_MAPIO_KILL;
r                2061 drivers/md/dm-snap.c 		r = DM_MAPIO_SUBMITTED;
r                2094 drivers/md/dm-snap.c 	return r;
r                2113 drivers/md/dm-snap.c 	int r = DM_MAPIO_REMAPPED;
r                2150 drivers/md/dm-snap.c 			r = DM_MAPIO_SUBMITTED;
r                2172 drivers/md/dm-snap.c 	return r;
r                2195 drivers/md/dm-snap.c 	int r = 0;
r                2206 drivers/md/dm-snap.c 			r = -EINVAL;
r                2210 drivers/md/dm-snap.c 			r = -EINVAL;
r                2216 drivers/md/dm-snap.c 	return r;
r                2374 drivers/md/dm-snap.c 	int r;
r                2376 drivers/md/dm-snap.c 	r = fn(ti, snap->origin, 0, ti->len, data);
r                2378 drivers/md/dm-snap.c 	if (!r)
r                2379 drivers/md/dm-snap.c 		r = fn(ti, snap->cow, 0, get_dev_size(snap->cow->bdev), data);
r                2381 drivers/md/dm-snap.c 	return r;
r                2422 drivers/md/dm-snap.c 	int r = DM_MAPIO_REMAPPED;
r                2496 drivers/md/dm-snap.c 		r = DM_MAPIO_SUBMITTED;
r                2535 drivers/md/dm-snap.c 	return r;
r                2544 drivers/md/dm-snap.c 	int r = DM_MAPIO_REMAPPED;
r                2557 drivers/md/dm-snap.c 		r = __origin_write(&o->snapshots, bio->bi_iter.bi_sector, bio);
r                2561 drivers/md/dm-snap.c 	return r;
r                2610 drivers/md/dm-snap.c 	int r;
r                2621 drivers/md/dm-snap.c 		r = -ENOMEM;
r                2625 drivers/md/dm-snap.c 	r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &o->dev);
r                2626 drivers/md/dm-snap.c 	if (r) {
r                2640 drivers/md/dm-snap.c 	return r;
r                2768 drivers/md/dm-snap.c 	int r;
r                2770 drivers/md/dm-snap.c 	r = dm_exception_store_init();
r                2771 drivers/md/dm-snap.c 	if (r) {
r                2773 drivers/md/dm-snap.c 		return r;
r                2776 drivers/md/dm-snap.c 	r = init_origin_hash();
r                2777 drivers/md/dm-snap.c 	if (r) {
r                2785 drivers/md/dm-snap.c 		r = -ENOMEM;
r                2792 drivers/md/dm-snap.c 		r = -ENOMEM;
r                2796 drivers/md/dm-snap.c 	r = dm_register_target(&snapshot_target);
r                2797 drivers/md/dm-snap.c 	if (r < 0) {
r                2798 drivers/md/dm-snap.c 		DMERR("snapshot target register failed %d", r);
r                2802 drivers/md/dm-snap.c 	r = dm_register_target(&origin_target);
r                2803 drivers/md/dm-snap.c 	if (r < 0) {
r                2804 drivers/md/dm-snap.c 		DMERR("Origin target register failed %d", r);
r                2808 drivers/md/dm-snap.c 	r = dm_register_target(&merge_target);
r                2809 drivers/md/dm-snap.c 	if (r < 0) {
r                2810 drivers/md/dm-snap.c 		DMERR("Merge target register failed %d", r);
r                2829 drivers/md/dm-snap.c 	return r;
r                 253 drivers/md/dm-stats.c 	int r;
r                 298 drivers/md/dm-stats.c 		r = -ENOMEM;
r                 304 drivers/md/dm-stats.c 		r = -ENOMEM;
r                 309 drivers/md/dm-stats.c 		r = -ENOMEM;
r                 322 drivers/md/dm-stats.c 			r = -ENOMEM;
r                 334 drivers/md/dm-stats.c 			r = -ENOMEM;
r                 342 drivers/md/dm-stats.c 				r = -ENOMEM;
r                 366 drivers/md/dm-stats.c 			r = -EINVAL;
r                 372 drivers/md/dm-stats.c 			r = -ENFILE;
r                 390 drivers/md/dm-stats.c 	return r;
r                 948 drivers/md/dm-stats.c 	int r;
r                1014 drivers/md/dm-stats.c 				if ((r = parse_histogram(a + 10, &n_histogram_entries, &histogram_boundaries)))
r                1045 drivers/md/dm-stats.c 		r = 1;
r                1053 drivers/md/dm-stats.c 		r = id;
r                1059 drivers/md/dm-stats.c 	r = 1;
r                1063 drivers/md/dm-stats.c 	r = -EINVAL;
r                1066 drivers/md/dm-stats.c 	return r;
r                1103 drivers/md/dm-stats.c 	int r;
r                1115 drivers/md/dm-stats.c 	r = dm_stats_list(dm_get_stats(md), program, result, maxlen);
r                1119 drivers/md/dm-stats.c 	return r;
r                1167 drivers/md/dm-stats.c 	int r;
r                1171 drivers/md/dm-stats.c 		r = message_stats_create(md, argc, argv, result, maxlen);
r                1173 drivers/md/dm-stats.c 		r = message_stats_delete(md, argc, argv);
r                1175 drivers/md/dm-stats.c 		r = message_stats_clear(md, argc, argv);
r                1177 drivers/md/dm-stats.c 		r = message_stats_list(md, argc, argv, result, maxlen);
r                1179 drivers/md/dm-stats.c 		r = message_stats_print(md, argc, argv, false, result, maxlen);
r                1181 drivers/md/dm-stats.c 		r = message_stats_print(md, argc, argv, true, result, maxlen);
r                1183 drivers/md/dm-stats.c 		r = message_stats_set_aux(md, argc, argv);
r                1187 drivers/md/dm-stats.c 	if (r == -EINVAL)
r                1190 drivers/md/dm-stats.c 	return r;
r                 104 drivers/md/dm-stripe.c 	int r;
r                 164 drivers/md/dm-stripe.c 	r = dm_set_target_max_io_len(ti, chunk_size);
r                 165 drivers/md/dm-stripe.c 	if (r) {
r                 167 drivers/md/dm-stripe.c 		return r;
r                 188 drivers/md/dm-stripe.c 		r = get_stripe(ti, sc, i, argv);
r                 189 drivers/md/dm-stripe.c 		if (r < 0) {
r                 194 drivers/md/dm-stripe.c 			return r;
r                 506 drivers/md/dm-stripe.c 	int r;
r                 508 drivers/md/dm-stripe.c 	r = dm_register_target(&stripe_target);
r                 509 drivers/md/dm-stripe.c 	if (r < 0)
r                 512 drivers/md/dm-stripe.c 	return r;
r                 208 drivers/md/dm-switch.c 	int r;
r                 210 drivers/md/dm-switch.c 	r = dm_get_device(ti, dm_shift_arg(as), dm_table_get_mode(ti->table),
r                 212 drivers/md/dm-switch.c 	if (r) {
r                 214 drivers/md/dm-switch.c 		return r;
r                 263 drivers/md/dm-switch.c 	int r;
r                 268 drivers/md/dm-switch.c 	r = dm_read_arg(_args, &as, &nr_paths, &ti->error);
r                 269 drivers/md/dm-switch.c 	if (r)
r                 272 drivers/md/dm-switch.c 	r = dm_read_arg(_args + 1, &as, &region_size, &ti->error);
r                 273 drivers/md/dm-switch.c 	if (r)
r                 274 drivers/md/dm-switch.c 		return r;
r                 276 drivers/md/dm-switch.c 	r = dm_read_arg_group(_args + 2, &as, &nr_optional_args, &ti->error);
r                 277 drivers/md/dm-switch.c 	if (r)
r                 278 drivers/md/dm-switch.c 		return r;
r                 292 drivers/md/dm-switch.c 	r = dm_set_target_max_io_len(ti, region_size);
r                 293 drivers/md/dm-switch.c 	if (r)
r                 297 drivers/md/dm-switch.c 		r = parse_path(&as, ti);
r                 298 drivers/md/dm-switch.c 		if (r)
r                 302 drivers/md/dm-switch.c 	r = alloc_region_table(ti, nr_paths);
r                 303 drivers/md/dm-switch.c 	if (r)
r                 316 drivers/md/dm-switch.c 	return r;
r                 363 drivers/md/dm-switch.c 	unsigned long r = 0;
r                 366 drivers/md/dm-switch.c 		r = (r << 4) | d;
r                 370 drivers/md/dm-switch.c 	return r;
r                 475 drivers/md/dm-switch.c 	int r = -EINVAL;
r                 480 drivers/md/dm-switch.c 		r = process_set_region_mappings(sctx, argc, argv);
r                 486 drivers/md/dm-switch.c 	return r;
r                 538 drivers/md/dm-switch.c 	int r;
r                 541 drivers/md/dm-switch.c 		r = fn(ti, sctx->path_list[path_nr].dmdev,
r                 543 drivers/md/dm-switch.c 		if (r)
r                 544 drivers/md/dm-switch.c 			return r;
r                 565 drivers/md/dm-switch.c 	int r;
r                 567 drivers/md/dm-switch.c 	r = dm_register_target(&switch_target);
r                 568 drivers/md/dm-switch.c 	if (r < 0)
r                 569 drivers/md/dm-switch.c 		DMERR("dm_register_target() failed %d", r);
r                 571 drivers/md/dm-switch.c 	return r;
r                 386 drivers/md/dm-table.c 	int r;
r                 391 drivers/md/dm-table.c 	r = dm_get_table_device(md, dd->dm_dev->bdev->bd_dev,
r                 393 drivers/md/dm-table.c 	if (r)
r                 394 drivers/md/dm-table.c 		return r;
r                 429 drivers/md/dm-table.c 	int r;
r                 446 drivers/md/dm-table.c 		if ((r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev))) {
r                 448 drivers/md/dm-table.c 			return r;
r                 456 drivers/md/dm-table.c 		r = upgrade_mode(dd, mode, t->md);
r                 457 drivers/md/dm-table.c 		if (r)
r                 458 drivers/md/dm-table.c 			return r;
r                 711 drivers/md/dm-table.c 	int r = -EINVAL, argc;
r                 779 drivers/md/dm-table.c 	r = dm_split_args(&argc, &argv, params);
r                 780 drivers/md/dm-table.c 	if (r) {
r                 785 drivers/md/dm-table.c 	r = tgt->type->ctr(tgt, argc, argv);
r                 787 drivers/md/dm-table.c 	if (r)
r                 801 drivers/md/dm-table.c 	return r;
r                 842 drivers/md/dm-table.c 	char *r;
r                 846 drivers/md/dm-table.c 		r = *as->argv;
r                 848 drivers/md/dm-table.c 		return r;
r                1174 drivers/md/dm-table.c 	int r = 0;
r                1186 drivers/md/dm-table.c 		r = setup_indexes(t);
r                1188 drivers/md/dm-table.c 	return r;
r                1291 drivers/md/dm-table.c 	int r;
r                1293 drivers/md/dm-table.c 	r = dm_table_determine_type(t);
r                1294 drivers/md/dm-table.c 	if (r) {
r                1296 drivers/md/dm-table.c 		return r;
r                1299 drivers/md/dm-table.c 	r = dm_table_build_index(t);
r                1300 drivers/md/dm-table.c 	if (r) {
r                1302 drivers/md/dm-table.c 		return r;
r                1305 drivers/md/dm-table.c 	r = dm_table_register_integrity(t);
r                1306 drivers/md/dm-table.c 	if (r) {
r                1308 drivers/md/dm-table.c 		return r;
r                1311 drivers/md/dm-table.c 	r = dm_table_alloc_md_mempools(t, t->md);
r                1312 drivers/md/dm-table.c 	if (r)
r                1315 drivers/md/dm-table.c 	return r;
r                2053 drivers/md/dm-table.c 	int i, r = 0;
r                2063 drivers/md/dm-table.c 		r = ti->type->preresume(ti);
r                2064 drivers/md/dm-table.c 		if (r) {
r                2066 drivers/md/dm-table.c 			      dm_device_name(t->md), ti->type->name, r);
r                2067 drivers/md/dm-table.c 			return r;
r                2092 drivers/md/dm-table.c 	int r = 0;
r                2099 drivers/md/dm-table.c 			r |= bdi_congested(q->backing_dev_info, bdi_bits);
r                2108 drivers/md/dm-table.c 			r |= cb->congested_fn(cb, bdi_bits);
r                2110 drivers/md/dm-table.c 	return r;
r                 427 drivers/md/dm-thin-metadata.c 	int r;
r                 436 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b);
r                 437 drivers/md/dm-thin-metadata.c 	if (r)
r                 438 drivers/md/dm-thin-metadata.c 		return r;
r                 494 drivers/md/dm-thin-metadata.c 	int r;
r                 497 drivers/md/dm-thin-metadata.c 	r = dm_sm_root_size(pmd->metadata_sm, &len);
r                 498 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 499 drivers/md/dm-thin-metadata.c 		return r;
r                 501 drivers/md/dm-thin-metadata.c 	r = dm_sm_copy_root(pmd->metadata_sm, &pmd->metadata_space_map_root, len);
r                 502 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 503 drivers/md/dm-thin-metadata.c 		return r;
r                 505 drivers/md/dm-thin-metadata.c 	r = dm_sm_root_size(pmd->data_sm, &len);
r                 506 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 507 drivers/md/dm-thin-metadata.c 		return r;
r                 526 drivers/md/dm-thin-metadata.c 	int r;
r                 534 drivers/md/dm-thin-metadata.c 	r = dm_sm_commit(pmd->data_sm);
r                 535 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 536 drivers/md/dm-thin-metadata.c 		return r;
r                 538 drivers/md/dm-thin-metadata.c 	r = dm_tm_pre_commit(pmd->tm);
r                 539 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 540 drivers/md/dm-thin-metadata.c 		return r;
r                 542 drivers/md/dm-thin-metadata.c 	r = save_sm_roots(pmd);
r                 543 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 544 drivers/md/dm-thin-metadata.c 		return r;
r                 546 drivers/md/dm-thin-metadata.c 	r = superblock_lock_zero(pmd, &sblock);
r                 547 drivers/md/dm-thin-metadata.c 	if (r)
r                 548 drivers/md/dm-thin-metadata.c 		return r;
r                 572 drivers/md/dm-thin-metadata.c 	int r;
r                 574 drivers/md/dm-thin-metadata.c 	r = dm_tm_create_with_sm(pmd->bm, THIN_SUPERBLOCK_LOCATION,
r                 576 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                 578 drivers/md/dm-thin-metadata.c 		return r;
r                 584 drivers/md/dm-thin-metadata.c 		r = PTR_ERR(pmd->data_sm);
r                 591 drivers/md/dm-thin-metadata.c 		r = -ENOMEM;
r                 597 drivers/md/dm-thin-metadata.c 	r = dm_btree_empty(&pmd->info, &pmd->root);
r                 598 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 601 drivers/md/dm-thin-metadata.c 	r = dm_btree_empty(&pmd->details_info, &pmd->details_root);
r                 602 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                 607 drivers/md/dm-thin-metadata.c 	r = __write_initial_superblock(pmd);
r                 608 drivers/md/dm-thin-metadata.c 	if (r)
r                 621 drivers/md/dm-thin-metadata.c 	return r;
r                 654 drivers/md/dm-thin-metadata.c 	int r;
r                 658 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
r                 660 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                 662 drivers/md/dm-thin-metadata.c 		return r;
r                 672 drivers/md/dm-thin-metadata.c 		r = -EINVAL;
r                 676 drivers/md/dm-thin-metadata.c 	r = __check_incompat_features(disk_super, pmd);
r                 677 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 680 drivers/md/dm-thin-metadata.c 	r = dm_tm_open_with_sm(pmd->bm, THIN_SUPERBLOCK_LOCATION,
r                 684 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                 693 drivers/md/dm-thin-metadata.c 		r = PTR_ERR(pmd->data_sm);
r                 700 drivers/md/dm-thin-metadata.c 		r = -ENOMEM;
r                 717 drivers/md/dm-thin-metadata.c 	return r;
r                 722 drivers/md/dm-thin-metadata.c 	int r, unformatted;
r                 724 drivers/md/dm-thin-metadata.c 	r = __superblock_all_zeroes(pmd->bm, &unformatted);
r                 725 drivers/md/dm-thin-metadata.c 	if (r)
r                 726 drivers/md/dm-thin-metadata.c 		return r;
r                 736 drivers/md/dm-thin-metadata.c 	int r;
r                 745 drivers/md/dm-thin-metadata.c 	r = __open_or_format_metadata(pmd, format_device);
r                 746 drivers/md/dm-thin-metadata.c 	if (r)
r                 749 drivers/md/dm-thin-metadata.c 	return r;
r                 763 drivers/md/dm-thin-metadata.c 	int r;
r                 771 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
r                 773 drivers/md/dm-thin-metadata.c 	if (r)
r                 774 drivers/md/dm-thin-metadata.c 		return r;
r                 790 drivers/md/dm-thin-metadata.c 	int r;
r                 807 drivers/md/dm-thin-metadata.c 		r = dm_btree_insert(&pmd->details_info, pmd->details_root,
r                 809 drivers/md/dm-thin-metadata.c 		if (r)
r                 810 drivers/md/dm-thin-metadata.c 			return r;
r                 825 drivers/md/dm-thin-metadata.c 	int r;
r                 839 drivers/md/dm-thin-metadata.c 		r = pmd->pre_commit_fn(pmd->pre_commit_context);
r                 840 drivers/md/dm-thin-metadata.c 		if (r < 0) {
r                 842 drivers/md/dm-thin-metadata.c 			return r;
r                 846 drivers/md/dm-thin-metadata.c 	r = __write_changed_details(pmd);
r                 847 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 848 drivers/md/dm-thin-metadata.c 		return r;
r                 850 drivers/md/dm-thin-metadata.c 	r = dm_sm_commit(pmd->data_sm);
r                 851 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 852 drivers/md/dm-thin-metadata.c 		return r;
r                 854 drivers/md/dm-thin-metadata.c 	r = dm_tm_pre_commit(pmd->tm);
r                 855 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 856 drivers/md/dm-thin-metadata.c 		return r;
r                 858 drivers/md/dm-thin-metadata.c 	r = save_sm_roots(pmd);
r                 859 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                 860 drivers/md/dm-thin-metadata.c 		return r;
r                 862 drivers/md/dm-thin-metadata.c 	r = superblock_lock(pmd, &sblock);
r                 863 drivers/md/dm-thin-metadata.c 	if (r)
r                 864 drivers/md/dm-thin-metadata.c 		return r;
r                 880 drivers/md/dm-thin-metadata.c 	int r;
r                 884 drivers/md/dm-thin-metadata.c 	r = dm_sm_get_nr_blocks(pmd->metadata_sm, &total);
r                 885 drivers/md/dm-thin-metadata.c 	if (r) {
r                 896 drivers/md/dm-thin-metadata.c 	int r;
r                 915 drivers/md/dm-thin-metadata.c 	r = __create_persistent_data_objects(pmd, format_device);
r                 916 drivers/md/dm-thin-metadata.c 	if (r) {
r                 918 drivers/md/dm-thin-metadata.c 		return ERR_PTR(r);
r                 921 drivers/md/dm-thin-metadata.c 	r = __begin_transaction(pmd);
r                 922 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                 925 drivers/md/dm-thin-metadata.c 		return ERR_PTR(r);
r                 935 drivers/md/dm-thin-metadata.c 	int r;
r                 958 drivers/md/dm-thin-metadata.c 		r = __commit_transaction(pmd);
r                 959 drivers/md/dm-thin-metadata.c 		if (r < 0)
r                 961 drivers/md/dm-thin-metadata.c 			       __func__, r);
r                 980 drivers/md/dm-thin-metadata.c 	int r, changed = 0;
r                1004 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->details_info, pmd->details_root,
r                1006 drivers/md/dm-thin-metadata.c 	if (r) {
r                1007 drivers/md/dm-thin-metadata.c 		if (r != -ENODATA || !create)
r                1008 drivers/md/dm-thin-metadata.c 			return r;
r                1047 drivers/md/dm-thin-metadata.c 	int r;
r                1054 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->details_info, pmd->details_root,
r                1056 drivers/md/dm-thin-metadata.c 	if (!r)
r                1062 drivers/md/dm-thin-metadata.c 	r = dm_btree_empty(&pmd->bl_info, &dev_root);
r                1063 drivers/md/dm-thin-metadata.c 	if (r)
r                1064 drivers/md/dm-thin-metadata.c 		return r;
r                1071 drivers/md/dm-thin-metadata.c 	r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root);
r                1072 drivers/md/dm-thin-metadata.c 	if (r) {
r                1074 drivers/md/dm-thin-metadata.c 		return r;
r                1077 drivers/md/dm-thin-metadata.c 	r = __open_device(pmd, dev, 1, &td);
r                1078 drivers/md/dm-thin-metadata.c 	if (r) {
r                1081 drivers/md/dm-thin-metadata.c 		return r;
r                1085 drivers/md/dm-thin-metadata.c 	return r;
r                1090 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1094 drivers/md/dm-thin-metadata.c 		r = __create_thin(pmd, dev);
r                1097 drivers/md/dm-thin-metadata.c 	return r;
r                1104 drivers/md/dm-thin-metadata.c 	int r;
r                1107 drivers/md/dm-thin-metadata.c 	r = __open_device(pmd, origin, 0, &td);
r                1108 drivers/md/dm-thin-metadata.c 	if (r)
r                1109 drivers/md/dm-thin-metadata.c 		return r;
r                1124 drivers/md/dm-thin-metadata.c 	int r;
r                1132 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->details_info, pmd->details_root,
r                1134 drivers/md/dm-thin-metadata.c 	if (!r)
r                1138 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->tl_info, pmd->root, &key, &value);
r                1139 drivers/md/dm-thin-metadata.c 	if (r)
r                1140 drivers/md/dm-thin-metadata.c 		return r;
r                1150 drivers/md/dm-thin-metadata.c 	r = dm_btree_insert(&pmd->tl_info, pmd->root, &key, &value, &pmd->root);
r                1151 drivers/md/dm-thin-metadata.c 	if (r) {
r                1153 drivers/md/dm-thin-metadata.c 		return r;
r                1158 drivers/md/dm-thin-metadata.c 	r = __open_device(pmd, dev, 1, &td);
r                1159 drivers/md/dm-thin-metadata.c 	if (r)
r                1162 drivers/md/dm-thin-metadata.c 	r = __set_snapshot_details(pmd, td, origin, pmd->time);
r                1165 drivers/md/dm-thin-metadata.c 	if (r)
r                1174 drivers/md/dm-thin-metadata.c 	return r;
r                1181 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1185 drivers/md/dm-thin-metadata.c 		r = __create_snap(pmd, dev, origin);
r                1188 drivers/md/dm-thin-metadata.c 	return r;
r                1193 drivers/md/dm-thin-metadata.c 	int r;
r                1198 drivers/md/dm-thin-metadata.c 	r = __open_device(pmd, dev, 0, &td);
r                1199 drivers/md/dm-thin-metadata.c 	if (r)
r                1200 drivers/md/dm-thin-metadata.c 		return r;
r                1209 drivers/md/dm-thin-metadata.c 	r = dm_btree_remove(&pmd->details_info, pmd->details_root,
r                1211 drivers/md/dm-thin-metadata.c 	if (r)
r                1212 drivers/md/dm-thin-metadata.c 		return r;
r                1214 drivers/md/dm-thin-metadata.c 	r = dm_btree_remove(&pmd->tl_info, pmd->root, &key, &pmd->root);
r                1215 drivers/md/dm-thin-metadata.c 	if (r)
r                1216 drivers/md/dm-thin-metadata.c 		return r;
r                1224 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1228 drivers/md/dm-thin-metadata.c 		r = __delete_device(pmd, dev);
r                1231 drivers/md/dm-thin-metadata.c 	return r;
r                1238 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1251 drivers/md/dm-thin-metadata.c 	r = 0;
r                1256 drivers/md/dm-thin-metadata.c 	return r;
r                1262 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1267 drivers/md/dm-thin-metadata.c 		r = 0;
r                1271 drivers/md/dm-thin-metadata.c 	return r;
r                1276 drivers/md/dm-thin-metadata.c 	int r, inc;
r                1285 drivers/md/dm-thin-metadata.c 	r = __commit_transaction(pmd);
r                1286 drivers/md/dm-thin-metadata.c 	if (r < 0) {
r                1288 drivers/md/dm-thin-metadata.c 		       __func__, r);
r                1289 drivers/md/dm-thin-metadata.c 		return r;
r                1296 drivers/md/dm-thin-metadata.c 	r = dm_tm_shadow_block(pmd->tm, THIN_SUPERBLOCK_LOCATION,
r                1298 drivers/md/dm-thin-metadata.c 	if (r)
r                1299 drivers/md/dm-thin-metadata.c 		return r;
r                1332 drivers/md/dm-thin-metadata.c 	r = superblock_lock(pmd, &sblock);
r                1333 drivers/md/dm-thin-metadata.c 	if (r) {
r                1335 drivers/md/dm-thin-metadata.c 		return r;
r                1346 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1350 drivers/md/dm-thin-metadata.c 		r = __reserve_metadata_snap(pmd);
r                1353 drivers/md/dm-thin-metadata.c 	return r;
r                1358 drivers/md/dm-thin-metadata.c 	int r;
r                1363 drivers/md/dm-thin-metadata.c 	r = superblock_lock(pmd, &sblock);
r                1364 drivers/md/dm-thin-metadata.c 	if (r)
r                1365 drivers/md/dm-thin-metadata.c 		return r;
r                1378 drivers/md/dm-thin-metadata.c 	r = dm_tm_read_lock(pmd->tm, held_root, &sb_validator, &copy);
r                1379 drivers/md/dm-thin-metadata.c 	if (r)
r                1380 drivers/md/dm-thin-metadata.c 		return r;
r                1394 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1398 drivers/md/dm-thin-metadata.c 		r = __release_metadata_snap(pmd);
r                1401 drivers/md/dm-thin-metadata.c 	return r;
r                1407 drivers/md/dm-thin-metadata.c 	int r;
r                1411 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
r                1413 drivers/md/dm-thin-metadata.c 	if (r)
r                1414 drivers/md/dm-thin-metadata.c 		return r;
r                1427 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1431 drivers/md/dm-thin-metadata.c 		r = __get_metadata_snap(pmd, result);
r                1434 drivers/md/dm-thin-metadata.c 	return r;
r                1440 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1444 drivers/md/dm-thin-metadata.c 		r = __open_device(pmd, dev, 0, td);
r                1447 drivers/md/dm-thin-metadata.c 	return r;
r                1491 drivers/md/dm-thin-metadata.c 	int r;
r                1502 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(info, pmd->root, keys, &value);
r                1503 drivers/md/dm-thin-metadata.c 	if (!r)
r                1506 drivers/md/dm-thin-metadata.c 	return r;
r                1512 drivers/md/dm-thin-metadata.c 	int r;
r                1521 drivers/md/dm-thin-metadata.c 	r = __find_block(td, block, can_issue_io, result);
r                1524 drivers/md/dm-thin-metadata.c 	return r;
r                1531 drivers/md/dm-thin-metadata.c 	int r;
r                1536 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup_next(&pmd->info, pmd->root, keys, vblock, &value);
r                1537 drivers/md/dm-thin-metadata.c 	if (!r)
r                1540 drivers/md/dm-thin-metadata.c 	return r;
r                1548 drivers/md/dm-thin-metadata.c 	int r;
r                1555 drivers/md/dm-thin-metadata.c 	r = __find_next_mapped_block(td, begin, &begin, &lookup);
r                1556 drivers/md/dm-thin-metadata.c 	if (r)
r                1557 drivers/md/dm-thin-metadata.c 		return r;
r                1569 drivers/md/dm-thin-metadata.c 		r = __find_block(td, begin, true, &lookup);
r                1570 drivers/md/dm-thin-metadata.c 		if (r) {
r                1571 drivers/md/dm-thin-metadata.c 			if (r == -ENODATA)
r                1574 drivers/md/dm-thin-metadata.c 				return r;
r                1594 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1599 drivers/md/dm-thin-metadata.c 		r = __find_mapped_range(td, begin, end, thin_begin, thin_end,
r                1604 drivers/md/dm-thin-metadata.c 	return r;
r                1610 drivers/md/dm-thin-metadata.c 	int r, inserted;
r                1618 drivers/md/dm-thin-metadata.c 	r = dm_btree_insert_notify(&pmd->info, pmd->root, keys, &value,
r                1620 drivers/md/dm-thin-metadata.c 	if (r)
r                1621 drivers/md/dm-thin-metadata.c 		return r;
r                1633 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1637 drivers/md/dm-thin-metadata.c 		r = __insert(td, block, data_block);
r                1640 drivers/md/dm-thin-metadata.c 	return r;
r                1645 drivers/md/dm-thin-metadata.c 	int r;
r                1649 drivers/md/dm-thin-metadata.c 	r = dm_btree_remove(&pmd->info, pmd->root, keys, &pmd->root);
r                1650 drivers/md/dm-thin-metadata.c 	if (r)
r                1651 drivers/md/dm-thin-metadata.c 		return r;
r                1661 drivers/md/dm-thin-metadata.c 	int r;
r                1671 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->tl_info, pmd->root, keys, &value);
r                1672 drivers/md/dm-thin-metadata.c 	if (r)
r                1673 drivers/md/dm-thin-metadata.c 		return r;
r                1681 drivers/md/dm-thin-metadata.c 	r = dm_btree_remove(&pmd->tl_info, pmd->root, keys, &pmd->root);
r                1682 drivers/md/dm-thin-metadata.c 	if (r)
r                1683 drivers/md/dm-thin-metadata.c 		return r;
r                1690 drivers/md/dm-thin-metadata.c 		r = dm_btree_lookup_next(&pmd->bl_info, mapping_root, &begin, &begin, &value);
r                1691 drivers/md/dm-thin-metadata.c 		if (r == -ENODATA)
r                1694 drivers/md/dm-thin-metadata.c 		if (r)
r                1695 drivers/md/dm-thin-metadata.c 			return r;
r                1700 drivers/md/dm-thin-metadata.c 		r = dm_btree_remove_leaves(&pmd->bl_info, mapping_root, &begin, end, &mapping_root, &count);
r                1701 drivers/md/dm-thin-metadata.c 		if (r)
r                1702 drivers/md/dm-thin-metadata.c 			return r;
r                1720 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1724 drivers/md/dm-thin-metadata.c 		r = __remove(td, block);
r                1727 drivers/md/dm-thin-metadata.c 	return r;
r                1733 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1737 drivers/md/dm-thin-metadata.c 		r = __remove_range(td, begin, end);
r                1740 drivers/md/dm-thin-metadata.c 	return r;
r                1745 drivers/md/dm-thin-metadata.c 	int r;
r                1749 drivers/md/dm-thin-metadata.c 	r = dm_sm_get_count(pmd->data_sm, b, &ref_count);
r                1750 drivers/md/dm-thin-metadata.c 	if (!r)
r                1754 drivers/md/dm-thin-metadata.c 	return r;
r                1759 drivers/md/dm-thin-metadata.c 	int r = 0;
r                1763 drivers/md/dm-thin-metadata.c 		r = dm_sm_inc_block(pmd->data_sm, b);
r                1764 drivers/md/dm-thin-metadata.c 		if (r)
r                1769 drivers/md/dm-thin-metadata.c 	return r;
r                1774 drivers/md/dm-thin-metadata.c 	int r = 0;
r                1778 drivers/md/dm-thin-metadata.c 		r = dm_sm_dec_block(pmd->data_sm, b);
r                1779 drivers/md/dm-thin-metadata.c 		if (r)
r                1784 drivers/md/dm-thin-metadata.c 	return r;
r                1789 drivers/md/dm-thin-metadata.c 	int r;
r                1792 drivers/md/dm-thin-metadata.c 	r = td->changed;
r                1795 drivers/md/dm-thin-metadata.c 	return r;
r                1800 drivers/md/dm-thin-metadata.c 	bool r = false;
r                1806 drivers/md/dm-thin-metadata.c 			r = td->changed;
r                1812 drivers/md/dm-thin-metadata.c 	return r;
r                1817 drivers/md/dm-thin-metadata.c 	bool r;
r                1820 drivers/md/dm-thin-metadata.c 	r = td->aborted_with_changes;
r                1823 drivers/md/dm-thin-metadata.c 	return r;
r                1828 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1832 drivers/md/dm-thin-metadata.c 		r = dm_sm_new_block(pmd->data_sm, result);
r                1835 drivers/md/dm-thin-metadata.c 	return r;
r                1840 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1850 drivers/md/dm-thin-metadata.c 	r = __commit_transaction(pmd);
r                1851 drivers/md/dm-thin-metadata.c 	if (r < 0)
r                1857 drivers/md/dm-thin-metadata.c 	r = __begin_transaction(pmd);
r                1860 drivers/md/dm-thin-metadata.c 	return r;
r                1873 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1881 drivers/md/dm-thin-metadata.c 	r = __create_persistent_data_objects(pmd, false);
r                1882 drivers/md/dm-thin-metadata.c 	if (r)
r                1888 drivers/md/dm-thin-metadata.c 	return r;
r                1893 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1897 drivers/md/dm-thin-metadata.c 		r = dm_sm_get_nr_free(pmd->data_sm, result);
r                1900 drivers/md/dm-thin-metadata.c 	return r;
r                1906 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1910 drivers/md/dm-thin-metadata.c 		r = dm_sm_get_nr_free(pmd->metadata_sm, result);
r                1912 drivers/md/dm-thin-metadata.c 	if (!r) {
r                1920 drivers/md/dm-thin-metadata.c 	return r;
r                1926 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1930 drivers/md/dm-thin-metadata.c 		r = dm_sm_get_nr_blocks(pmd->metadata_sm, result);
r                1933 drivers/md/dm-thin-metadata.c 	return r;
r                1938 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1942 drivers/md/dm-thin-metadata.c 		r = dm_sm_get_nr_blocks(pmd->data_sm, result);
r                1945 drivers/md/dm-thin-metadata.c 	return r;
r                1950 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1956 drivers/md/dm-thin-metadata.c 		r = 0;
r                1960 drivers/md/dm-thin-metadata.c 	return r;
r                1965 drivers/md/dm-thin-metadata.c 	int r;
r                1970 drivers/md/dm-thin-metadata.c 	r = dm_btree_lookup(&pmd->tl_info, pmd->root, &td->id, &value_le);
r                1971 drivers/md/dm-thin-metadata.c 	if (r)
r                1972 drivers/md/dm-thin-metadata.c 		return r;
r                1982 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                1987 drivers/md/dm-thin-metadata.c 		r = __highest_block(td, result);
r                1990 drivers/md/dm-thin-metadata.c 	return r;
r                1995 drivers/md/dm-thin-metadata.c 	int r;
r                1998 drivers/md/dm-thin-metadata.c 	r = dm_sm_get_nr_blocks(sm, &old_count);
r                1999 drivers/md/dm-thin-metadata.c 	if (r)
r                2000 drivers/md/dm-thin-metadata.c 		return r;
r                2015 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                2019 drivers/md/dm-thin-metadata.c 		r = __resize_space_map(pmd->data_sm, new_count);
r                2022 drivers/md/dm-thin-metadata.c 	return r;
r                2027 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                2031 drivers/md/dm-thin-metadata.c 		r = __resize_space_map(pmd->metadata_sm, new_count);
r                2032 drivers/md/dm-thin-metadata.c 		if (!r)
r                2037 drivers/md/dm-thin-metadata.c 	return r;
r                2059 drivers/md/dm-thin-metadata.c 	int r;
r                2062 drivers/md/dm-thin-metadata.c 	r = dm_sm_register_threshold_callback(pmd->metadata_sm, threshold, fn, context);
r                2065 drivers/md/dm-thin-metadata.c 	return r;
r                2080 drivers/md/dm-thin-metadata.c 	int r = -EINVAL;
r                2090 drivers/md/dm-thin-metadata.c 	r = superblock_lock(pmd, &sblock);
r                2091 drivers/md/dm-thin-metadata.c 	if (r) {
r                2102 drivers/md/dm-thin-metadata.c 	return r;
r                 287 drivers/md/dm-thin.c static void metadata_operation_failed(struct pool *pool, const char *op, int r);
r                 407 drivers/md/dm-thin.c static void end_discard(struct discard_op *op, int r)
r                 425 drivers/md/dm-thin.c 	if (r && !op->parent_bio->bi_status)
r                 426 drivers/md/dm-thin.c 		op->parent_bio->bi_status = errno_to_blk_status(r);
r                 446 drivers/md/dm-thin.c 	int r;
r                 455 drivers/md/dm-thin.c 	r = dm_bio_detain(pool->prison, key, bio, cell_prealloc, cell_result);
r                 456 drivers/md/dm-thin.c 	if (r)
r                 463 drivers/md/dm-thin.c 	return r;
r                1000 drivers/md/dm-thin.c 	int r;
r                1012 drivers/md/dm-thin.c 	r = dm_thin_insert_block(tc->td, m->virt_begin, m->data_block);
r                1013 drivers/md/dm-thin.c 	if (r) {
r                1014 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_thin_insert_block", r);
r                1063 drivers/md/dm-thin.c 	int r;
r                1066 drivers/md/dm-thin.c 	r = dm_thin_remove_range(tc->td, m->cell->key.block_begin, m->cell->key.block_end);
r                1067 drivers/md/dm-thin.c 	if (r) {
r                1068 drivers/md/dm-thin.c 		metadata_operation_failed(tc->pool, "dm_thin_remove_range", r);
r                1086 drivers/md/dm-thin.c 	int r = 0;
r                1097 drivers/md/dm-thin.c 			r = dm_pool_block_is_shared(pool->pmd, b, &shared);
r                1098 drivers/md/dm-thin.c 			if (r)
r                1110 drivers/md/dm-thin.c 			r = dm_pool_block_is_shared(pool->pmd, e, &shared);
r                1111 drivers/md/dm-thin.c 			if (r)
r                1118 drivers/md/dm-thin.c 		r = issue_discard(&op, b, e);
r                1119 drivers/md/dm-thin.c 		if (r)
r                1125 drivers/md/dm-thin.c 	end_discard(&op, r);
r                1151 drivers/md/dm-thin.c 	int r;
r                1162 drivers/md/dm-thin.c 	r = dm_thin_remove_range(tc->td, m->virt_begin, m->virt_end);
r                1163 drivers/md/dm-thin.c 	if (r) {
r                1164 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_thin_remove_range", r);
r                1175 drivers/md/dm-thin.c 	r = dm_pool_inc_data_range(pool->pmd, m->data_block, data_end);
r                1176 drivers/md/dm-thin.c 	if (r) {
r                1177 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_pool_inc_data_range", r);
r                1200 drivers/md/dm-thin.c 			r = issue_discard(&op, m->data_block, data_end);
r                1201 drivers/md/dm-thin.c 			end_discard(&op, r);
r                1208 drivers/md/dm-thin.c 	int r;
r                1216 drivers/md/dm-thin.c 	r = dm_pool_dec_data_range(pool->pmd, m->data_block,
r                1218 drivers/md/dm-thin.c 	if (r) {
r                1219 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_pool_dec_data_range", r);
r                1457 drivers/md/dm-thin.c 	int r;
r                1461 drivers/md/dm-thin.c 	r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free);
r                1462 drivers/md/dm-thin.c 	if (r)
r                1475 drivers/md/dm-thin.c 	int r;
r                1481 drivers/md/dm-thin.c 	r = dm_pool_get_free_block_count(pool->pmd, &nr_free);
r                1482 drivers/md/dm-thin.c 	if (r)
r                1497 drivers/md/dm-thin.c 	int r;
r                1502 drivers/md/dm-thin.c 	r = dm_pool_commit_metadata(pool->pmd);
r                1503 drivers/md/dm-thin.c 	if (r)
r                1504 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_pool_commit_metadata", r);
r                1510 drivers/md/dm-thin.c 	return r;
r                1529 drivers/md/dm-thin.c 	int r;
r                1536 drivers/md/dm-thin.c 	r = dm_pool_get_free_block_count(pool->pmd, &free_blocks);
r                1537 drivers/md/dm-thin.c 	if (r) {
r                1538 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_pool_get_free_block_count", r);
r                1539 drivers/md/dm-thin.c 		return r;
r                1549 drivers/md/dm-thin.c 		r = commit(pool);
r                1550 drivers/md/dm-thin.c 		if (r)
r                1551 drivers/md/dm-thin.c 			return r;
r                1553 drivers/md/dm-thin.c 		r = dm_pool_get_free_block_count(pool->pmd, &free_blocks);
r                1554 drivers/md/dm-thin.c 		if (r) {
r                1555 drivers/md/dm-thin.c 			metadata_operation_failed(pool, "dm_pool_get_free_block_count", r);
r                1556 drivers/md/dm-thin.c 			return r;
r                1565 drivers/md/dm-thin.c 	r = dm_pool_alloc_data_block(pool->pmd, result);
r                1566 drivers/md/dm-thin.c 	if (r) {
r                1567 drivers/md/dm-thin.c 		if (r == -ENOSPC)
r                1570 drivers/md/dm-thin.c 			metadata_operation_failed(pool, "dm_pool_alloc_data_block", r);
r                1571 drivers/md/dm-thin.c 		return r;
r                1574 drivers/md/dm-thin.c 	r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks);
r                1575 drivers/md/dm-thin.c 	if (r) {
r                1576 drivers/md/dm-thin.c 		metadata_operation_failed(pool, "dm_pool_get_free_metadata_block_count", r);
r                1577 drivers/md/dm-thin.c 		return r;
r                1582 drivers/md/dm-thin.c 		r = commit(pool);
r                1583 drivers/md/dm-thin.c 		if (r)
r                1584 drivers/md/dm-thin.c 			return r;
r                1684 drivers/md/dm-thin.c 	int r;
r                1692 drivers/md/dm-thin.c 		r = ensure_next_mapping(pool);
r                1693 drivers/md/dm-thin.c 		if (r)
r                1697 drivers/md/dm-thin.c 		r = dm_thin_find_mapped_range(tc->td, begin, end, &virt_begin, &virt_end,
r                1699 drivers/md/dm-thin.c 		if (r)
r                1797 drivers/md/dm-thin.c 	int r;
r                1801 drivers/md/dm-thin.c 	r = alloc_data_block(tc, &data_block);
r                1802 drivers/md/dm-thin.c 	switch (r) {
r                1814 drivers/md/dm-thin.c 			    __func__, r);
r                1898 drivers/md/dm-thin.c 	int r;
r                1923 drivers/md/dm-thin.c 	r = alloc_data_block(tc, &data_block);
r                1924 drivers/md/dm-thin.c 	switch (r) {
r                1938 drivers/md/dm-thin.c 			    __func__, r);
r                1946 drivers/md/dm-thin.c 	int r;
r                1957 drivers/md/dm-thin.c 	r = dm_thin_find_block(tc->td, block, 1, &lookup_result);
r                1958 drivers/md/dm-thin.c 	switch (r) {
r                1992 drivers/md/dm-thin.c 			    __func__, r);
r                2020 drivers/md/dm-thin.c 	int r;
r                2025 drivers/md/dm-thin.c 	r = dm_thin_find_block(tc->td, block, 1, &lookup_result);
r                2026 drivers/md/dm-thin.c 	switch (r) {
r                2060 drivers/md/dm-thin.c 			    __func__, r);
r                2650 drivers/md/dm-thin.c static void metadata_operation_failed(struct pool *pool, const char *op, int r)
r                2653 drivers/md/dm-thin.c 		    dm_device_name(pool->pool_md), op, r);
r                2719 drivers/md/dm-thin.c 	int r;
r                2753 drivers/md/dm-thin.c 	r = dm_thin_find_block(td, block, 0, &result);
r                2758 drivers/md/dm-thin.c 	switch (r) {
r                2953 drivers/md/dm-thin.c 	int r;
r                2989 drivers/md/dm-thin.c 		r = PTR_ERR(pool->copier);
r                2991 drivers/md/dm-thin.c 		err_p = ERR_PTR(r);
r                3036 drivers/md/dm-thin.c 	r = mempool_init_slab_pool(&pool->mapping_pool, MAPPING_POOL_SIZE,
r                3038 drivers/md/dm-thin.c 	if (r) {
r                3040 drivers/md/dm-thin.c 		err_p = ERR_PTR(r);
r                3156 drivers/md/dm-thin.c 	int r;
r                3170 drivers/md/dm-thin.c 	r = dm_read_arg_group(_args, as, &argc, &ti->error);
r                3171 drivers/md/dm-thin.c 	if (r)
r                3174 drivers/md/dm-thin.c 	while (argc && !r) {
r                3195 drivers/md/dm-thin.c 			r = -EINVAL;
r                3200 drivers/md/dm-thin.c 	return r;
r                3302 drivers/md/dm-thin.c 	int r, pool_created = 0;
r                3320 drivers/md/dm-thin.c 		r = -EINVAL;
r                3330 drivers/md/dm-thin.c 		r = -EINVAL;
r                3340 drivers/md/dm-thin.c 	r = parse_pool_features(&as, &pf, ti);
r                3341 drivers/md/dm-thin.c 	if (r)
r                3345 drivers/md/dm-thin.c 	r = dm_get_device(ti, argv[0], metadata_mode, &metadata_dev);
r                3346 drivers/md/dm-thin.c 	if (r) {
r                3352 drivers/md/dm-thin.c 	r = dm_get_device(ti, argv[1], FMODE_READ | FMODE_WRITE, &data_dev);
r                3353 drivers/md/dm-thin.c 	if (r) {
r                3363 drivers/md/dm-thin.c 		r = -EINVAL;
r                3369 drivers/md/dm-thin.c 		r = -EINVAL;
r                3375 drivers/md/dm-thin.c 		r = -ENOMEM;
r                3382 drivers/md/dm-thin.c 		r = PTR_ERR(pool);
r                3394 drivers/md/dm-thin.c 		r = -EINVAL;
r                3424 drivers/md/dm-thin.c 	r = dm_pool_register_metadata_threshold(pt->pool->pmd,
r                3428 drivers/md/dm-thin.c 	if (r)
r                3449 drivers/md/dm-thin.c 	return r;
r                3454 drivers/md/dm-thin.c 	int r;
r                3464 drivers/md/dm-thin.c 	r = DM_MAPIO_REMAPPED;
r                3467 drivers/md/dm-thin.c 	return r;
r                3472 drivers/md/dm-thin.c 	int r;
r                3482 drivers/md/dm-thin.c 	r = dm_pool_get_data_dev_size(pool->pmd, &sb_data_size);
r                3483 drivers/md/dm-thin.c 	if (r) {
r                3486 drivers/md/dm-thin.c 		return r;
r                3506 drivers/md/dm-thin.c 		r = dm_pool_resize_data_dev(pool->pmd, data_size);
r                3507 drivers/md/dm-thin.c 		if (r) {
r                3508 drivers/md/dm-thin.c 			metadata_operation_failed(pool, "dm_pool_resize_data_dev", r);
r                3509 drivers/md/dm-thin.c 			return r;
r                3520 drivers/md/dm-thin.c 	int r;
r                3529 drivers/md/dm-thin.c 	r = dm_pool_get_metadata_dev_size(pool->pmd, &sb_metadata_dev_size);
r                3530 drivers/md/dm-thin.c 	if (r) {
r                3533 drivers/md/dm-thin.c 		return r;
r                3557 drivers/md/dm-thin.c 		r = dm_pool_resize_metadata_dev(pool->pmd, metadata_dev_size);
r                3558 drivers/md/dm-thin.c 		if (r) {
r                3559 drivers/md/dm-thin.c 			metadata_operation_failed(pool, "dm_pool_resize_metadata_dev", r);
r                3560 drivers/md/dm-thin.c 			return r;
r                3582 drivers/md/dm-thin.c 	int r;
r                3590 drivers/md/dm-thin.c 	r = bind_control_target(pool, ti);
r                3591 drivers/md/dm-thin.c 	if (r)
r                3592 drivers/md/dm-thin.c 		return r;
r                3597 drivers/md/dm-thin.c 	r = maybe_resize_data_dev(ti, &need_commit1);
r                3598 drivers/md/dm-thin.c 	if (r)
r                3599 drivers/md/dm-thin.c 		return r;
r                3601 drivers/md/dm-thin.c 	r = maybe_resize_metadata_dev(ti, &need_commit2);
r                3602 drivers/md/dm-thin.c 	if (r)
r                3603 drivers/md/dm-thin.c 		return r;
r                3719 drivers/md/dm-thin.c 	int r;
r                3721 drivers/md/dm-thin.c 	r = check_arg_count(argc, 2);
r                3722 drivers/md/dm-thin.c 	if (r)
r                3723 drivers/md/dm-thin.c 		return r;
r                3725 drivers/md/dm-thin.c 	r = read_dev_id(argv[1], &dev_id, 1);
r                3726 drivers/md/dm-thin.c 	if (r)
r                3727 drivers/md/dm-thin.c 		return r;
r                3729 drivers/md/dm-thin.c 	r = dm_pool_create_thin(pool->pmd, dev_id);
r                3730 drivers/md/dm-thin.c 	if (r) {
r                3733 drivers/md/dm-thin.c 		return r;
r                3743 drivers/md/dm-thin.c 	int r;
r                3745 drivers/md/dm-thin.c 	r = check_arg_count(argc, 3);
r                3746 drivers/md/dm-thin.c 	if (r)
r                3747 drivers/md/dm-thin.c 		return r;
r                3749 drivers/md/dm-thin.c 	r = read_dev_id(argv[1], &dev_id, 1);
r                3750 drivers/md/dm-thin.c 	if (r)
r                3751 drivers/md/dm-thin.c 		return r;
r                3753 drivers/md/dm-thin.c 	r = read_dev_id(argv[2], &origin_dev_id, 1);
r                3754 drivers/md/dm-thin.c 	if (r)
r                3755 drivers/md/dm-thin.c 		return r;
r                3757 drivers/md/dm-thin.c 	r = dm_pool_create_snap(pool->pmd, dev_id, origin_dev_id);
r                3758 drivers/md/dm-thin.c 	if (r) {
r                3761 drivers/md/dm-thin.c 		return r;
r                3770 drivers/md/dm-thin.c 	int r;
r                3772 drivers/md/dm-thin.c 	r = check_arg_count(argc, 2);
r                3773 drivers/md/dm-thin.c 	if (r)
r                3774 drivers/md/dm-thin.c 		return r;
r                3776 drivers/md/dm-thin.c 	r = read_dev_id(argv[1], &dev_id, 1);
r                3777 drivers/md/dm-thin.c 	if (r)
r                3778 drivers/md/dm-thin.c 		return r;
r                3780 drivers/md/dm-thin.c 	r = dm_pool_delete_thin_device(pool->pmd, dev_id);
r                3781 drivers/md/dm-thin.c 	if (r)
r                3784 drivers/md/dm-thin.c 	return r;
r                3790 drivers/md/dm-thin.c 	int r;
r                3792 drivers/md/dm-thin.c 	r = check_arg_count(argc, 3);
r                3793 drivers/md/dm-thin.c 	if (r)
r                3794 drivers/md/dm-thin.c 		return r;
r                3806 drivers/md/dm-thin.c 	r = dm_pool_set_metadata_transaction_id(pool->pmd, old_id, new_id);
r                3807 drivers/md/dm-thin.c 	if (r) {
r                3810 drivers/md/dm-thin.c 		return r;
r                3818 drivers/md/dm-thin.c 	int r;
r                3820 drivers/md/dm-thin.c 	r = check_arg_count(argc, 1);
r                3821 drivers/md/dm-thin.c 	if (r)
r                3822 drivers/md/dm-thin.c 		return r;
r                3826 drivers/md/dm-thin.c 	r = dm_pool_reserve_metadata_snap(pool->pmd);
r                3827 drivers/md/dm-thin.c 	if (r)
r                3830 drivers/md/dm-thin.c 	return r;
r                3835 drivers/md/dm-thin.c 	int r;
r                3837 drivers/md/dm-thin.c 	r = check_arg_count(argc, 1);
r                3838 drivers/md/dm-thin.c 	if (r)
r                3839 drivers/md/dm-thin.c 		return r;
r                3841 drivers/md/dm-thin.c 	r = dm_pool_release_metadata_snap(pool->pmd);
r                3842 drivers/md/dm-thin.c 	if (r)
r                3845 drivers/md/dm-thin.c 	return r;
r                3860 drivers/md/dm-thin.c 	int r = -EINVAL;
r                3871 drivers/md/dm-thin.c 		r = process_create_thin_mesg(argc, argv, pool);
r                3874 drivers/md/dm-thin.c 		r = process_create_snap_mesg(argc, argv, pool);
r                3877 drivers/md/dm-thin.c 		r = process_delete_mesg(argc, argv, pool);
r                3880 drivers/md/dm-thin.c 		r = process_set_transaction_id_mesg(argc, argv, pool);
r                3883 drivers/md/dm-thin.c 		r = process_reserve_metadata_snap_mesg(argc, argv, pool);
r                3886 drivers/md/dm-thin.c 		r = process_release_metadata_snap_mesg(argc, argv, pool);
r                3891 drivers/md/dm-thin.c 	if (!r)
r                3894 drivers/md/dm-thin.c 	return r;
r                3930 drivers/md/dm-thin.c 	int r;
r                3955 drivers/md/dm-thin.c 		r = dm_pool_get_metadata_transaction_id(pool->pmd, &transaction_id);
r                3956 drivers/md/dm-thin.c 		if (r) {
r                3958 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                3962 drivers/md/dm-thin.c 		r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free_blocks_metadata);
r                3963 drivers/md/dm-thin.c 		if (r) {
r                3965 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                3969 drivers/md/dm-thin.c 		r = dm_pool_get_metadata_dev_size(pool->pmd, &nr_blocks_metadata);
r                3970 drivers/md/dm-thin.c 		if (r) {
r                3972 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                3976 drivers/md/dm-thin.c 		r = dm_pool_get_free_block_count(pool->pmd, &nr_free_blocks_data);
r                3977 drivers/md/dm-thin.c 		if (r) {
r                3979 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                3983 drivers/md/dm-thin.c 		r = dm_pool_get_data_dev_size(pool->pmd, &nr_blocks_data);
r                3984 drivers/md/dm-thin.c 		if (r) {
r                3986 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                3990 drivers/md/dm-thin.c 		r = dm_pool_get_metadata_snap(pool->pmd, &held_root);
r                3991 drivers/md/dm-thin.c 		if (r) {
r                3993 drivers/md/dm-thin.c 			      dm_device_name(pool->pool_md), r);
r                4194 drivers/md/dm-thin.c 	int r;
r                4204 drivers/md/dm-thin.c 		r = -EINVAL;
r                4211 drivers/md/dm-thin.c 		r = -ENOMEM;
r                4224 drivers/md/dm-thin.c 			r = -EINVAL;
r                4228 drivers/md/dm-thin.c 		r = dm_get_device(ti, argv[2], FMODE_READ, &origin_dev);
r                4229 drivers/md/dm-thin.c 		if (r) {
r                4236 drivers/md/dm-thin.c 	r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &pool_dev);
r                4237 drivers/md/dm-thin.c 	if (r) {
r                4245 drivers/md/dm-thin.c 		r = -EINVAL;
r                4252 drivers/md/dm-thin.c 		r = -EINVAL;
r                4259 drivers/md/dm-thin.c 		r = -EINVAL;
r                4266 drivers/md/dm-thin.c 		r = -EINVAL;
r                4270 drivers/md/dm-thin.c 	r = dm_pool_open_thin_device(tc->pool->pmd, tc->dev_id, &tc->td);
r                4271 drivers/md/dm-thin.c 	if (r) {
r                4276 drivers/md/dm-thin.c 	r = dm_set_target_max_io_len(ti, tc->pool->sectors_per_block);
r                4277 drivers/md/dm-thin.c 	if (r)
r                4297 drivers/md/dm-thin.c 		r = -EINVAL;
r                4332 drivers/md/dm-thin.c 	return r;
r                4416 drivers/md/dm-thin.c 	int r;
r                4432 drivers/md/dm-thin.c 			r = dm_thin_get_mapped_count(tc->td, &mapped);
r                4433 drivers/md/dm-thin.c 			if (r) {
r                4434 drivers/md/dm-thin.c 				DMERR("dm_thin_get_mapped_count returned %d", r);
r                4438 drivers/md/dm-thin.c 			r = dm_thin_get_highest_mapped_block(tc->td, &highest);
r                4439 drivers/md/dm-thin.c 			if (r < 0) {
r                4440 drivers/md/dm-thin.c 				DMERR("dm_thin_get_highest_mapped_block returned %d", r);
r                4445 drivers/md/dm-thin.c 			if (r)
r                4522 drivers/md/dm-thin.c 	int r = -ENOMEM;
r                4528 drivers/md/dm-thin.c 		return r;
r                4530 drivers/md/dm-thin.c 	r = dm_register_target(&thin_target);
r                4531 drivers/md/dm-thin.c 	if (r)
r                4534 drivers/md/dm-thin.c 	r = dm_register_target(&pool_target);
r                4535 drivers/md/dm-thin.c 	if (r)
r                4545 drivers/md/dm-thin.c 	return r;
r                 123 drivers/md/dm-uevent.c 	int r;
r                 152 drivers/md/dm-uevent.c 		r = kobject_uevent_env(kobj, event->action, event->ku_env.envp);
r                 153 drivers/md/dm-uevent.c 		if (r)
r                 128 drivers/md/dm-verity-fec.c 	int r, corrected = 0, res;
r                 145 drivers/md/dm-verity-fec.c 			r = res;
r                 167 drivers/md/dm-verity-fec.c 	r = corrected;
r                 171 drivers/md/dm-verity-fec.c 	if (r < 0 && neras)
r                 173 drivers/md/dm-verity-fec.c 			    v->data_dev->name, (unsigned long long)rsb, r);
r                 174 drivers/md/dm-verity-fec.c 	else if (r > 0)
r                 176 drivers/md/dm-verity-fec.c 			     v->data_dev->name, (unsigned long long)rsb, r);
r                 178 drivers/md/dm-verity-fec.c 	return r;
r                 365 drivers/md/dm-verity-fec.c 	int r, neras = 0;
r                 368 drivers/md/dm-verity-fec.c 	r = fec_alloc_bufs(v, fio);
r                 369 drivers/md/dm-verity-fec.c 	if (unlikely(r < 0))
r                 370 drivers/md/dm-verity-fec.c 		return r;
r                 375 drivers/md/dm-verity-fec.c 		r = fec_read_bufs(v, io, rsb, offset, pos,
r                 377 drivers/md/dm-verity-fec.c 		if (unlikely(r < 0))
r                 378 drivers/md/dm-verity-fec.c 			return r;
r                 380 drivers/md/dm-verity-fec.c 		r = fec_decode_bufs(v, fio, rsb, r, pos, neras);
r                 381 drivers/md/dm-verity-fec.c 		if (r < 0)
r                 382 drivers/md/dm-verity-fec.c 			return r;
r                 388 drivers/md/dm-verity-fec.c 	r = verity_hash(v, verity_io_hash_req(v, io), fio->output,
r                 391 drivers/md/dm-verity-fec.c 	if (unlikely(r < 0))
r                 392 drivers/md/dm-verity-fec.c 		return r;
r                 423 drivers/md/dm-verity-fec.c 	int r;
r                 464 drivers/md/dm-verity-fec.c 	r = fec_decode_rsb(v, io, fio, rsb, offset, false);
r                 465 drivers/md/dm-verity-fec.c 	if (r < 0) {
r                 466 drivers/md/dm-verity-fec.c 		r = fec_decode_rsb(v, io, fio, rsb, offset, true);
r                 467 drivers/md/dm-verity-fec.c 		if (r < 0)
r                 475 drivers/md/dm-verity-fec.c 		r = verity_for_bv_block(v, io, iter, fec_bv_copy);
r                 480 drivers/md/dm-verity-fec.c 	return r;
r                 595 drivers/md/dm-verity-fec.c 	int r;
r                 611 drivers/md/dm-verity-fec.c 		r = dm_get_device(ti, arg_value, FMODE_READ, &v->fec->dev);
r                 612 drivers/md/dm-verity-fec.c 		if (r) {
r                 614 drivers/md/dm-verity-fec.c 			return r;
r                 108 drivers/md/dm-verity-target.c 			int r;
r                 114 drivers/md/dm-verity-target.c 			r = crypto_wait_req(crypto_ahash_update(req), wait);
r                 115 drivers/md/dm-verity-target.c 			if (unlikely(r))
r                 116 drivers/md/dm-verity-target.c 				return r;
r                 130 drivers/md/dm-verity-target.c 	int r;
r                 138 drivers/md/dm-verity-target.c 	r = crypto_wait_req(crypto_ahash_init(req), wait);
r                 140 drivers/md/dm-verity-target.c 	if (unlikely(r < 0)) {
r                 141 drivers/md/dm-verity-target.c 		DMERR("crypto_ahash_init failed: %d", r);
r                 142 drivers/md/dm-verity-target.c 		return r;
r                 146 drivers/md/dm-verity-target.c 		r = verity_hash_update(v, req, v->salt, v->salt_size, wait);
r                 148 drivers/md/dm-verity-target.c 	return r;
r                 154 drivers/md/dm-verity-target.c 	int r;
r                 157 drivers/md/dm-verity-target.c 		r = verity_hash_update(v, req, v->salt, v->salt_size, wait);
r                 159 drivers/md/dm-verity-target.c 		if (r < 0) {
r                 160 drivers/md/dm-verity-target.c 			DMERR("verity_hash_final failed updating salt: %d", r);
r                 166 drivers/md/dm-verity-target.c 	r = crypto_wait_req(crypto_ahash_final(req), wait);
r                 168 drivers/md/dm-verity-target.c 	return r;
r                 174 drivers/md/dm-verity-target.c 	int r;
r                 177 drivers/md/dm-verity-target.c 	r = verity_hash_init(v, req, &wait);
r                 178 drivers/md/dm-verity-target.c 	if (unlikely(r < 0))
r                 181 drivers/md/dm-verity-target.c 	r = verity_hash_update(v, req, data, len, &wait);
r                 182 drivers/md/dm-verity-target.c 	if (unlikely(r < 0))
r                 185 drivers/md/dm-verity-target.c 	r = verity_hash_final(v, req, digest, &wait);
r                 188 drivers/md/dm-verity-target.c 	return r;
r                 278 drivers/md/dm-verity-target.c 	int r;
r                 292 drivers/md/dm-verity-target.c 			r = 1;
r                 296 drivers/md/dm-verity-target.c 		r = verity_hash(v, verity_io_hash_req(v, io),
r                 299 drivers/md/dm-verity-target.c 		if (unlikely(r < 0))
r                 312 drivers/md/dm-verity-target.c 			r = -EIO;
r                 319 drivers/md/dm-verity-target.c 	r = 0;
r                 323 drivers/md/dm-verity-target.c 	return r;
r                 333 drivers/md/dm-verity-target.c 	int r = 0, i;
r                 343 drivers/md/dm-verity-target.c 		r = verity_verify_level(v, io, block, 0, true, digest);
r                 344 drivers/md/dm-verity-target.c 		if (likely(r <= 0))
r                 351 drivers/md/dm-verity-target.c 		r = verity_verify_level(v, io, block, i, false, digest);
r                 352 drivers/md/dm-verity-target.c 		if (unlikely(r))
r                 356 drivers/md/dm-verity-target.c 	if (!r && v->zero_digest)
r                 361 drivers/md/dm-verity-target.c 	return r;
r                 376 drivers/md/dm-verity-target.c 		int r;
r                 393 drivers/md/dm-verity-target.c 		r = crypto_wait_req(crypto_ahash_update(req), wait);
r                 395 drivers/md/dm-verity-target.c 		if (unlikely(r < 0)) {
r                 396 drivers/md/dm-verity-target.c 			DMERR("verity_for_io_block crypto op failed: %d", r);
r                 397 drivers/md/dm-verity-target.c 			return r;
r                 421 drivers/md/dm-verity-target.c 		int r;
r                 432 drivers/md/dm-verity-target.c 		r = process(v, io, page + bv.bv_offset, len);
r                 435 drivers/md/dm-verity-target.c 		if (r < 0)
r                 436 drivers/md/dm-verity-target.c 			return r;
r                 476 drivers/md/dm-verity-target.c 		int r;
r                 486 drivers/md/dm-verity-target.c 		r = verity_hash_for_block(v, io, cur_block,
r                 489 drivers/md/dm-verity-target.c 		if (unlikely(r < 0))
r                 490 drivers/md/dm-verity-target.c 			return r;
r                 497 drivers/md/dm-verity-target.c 			r = verity_for_bv_block(v, io, &io->iter,
r                 499 drivers/md/dm-verity-target.c 			if (unlikely(r < 0))
r                 500 drivers/md/dm-verity-target.c 				return r;
r                 505 drivers/md/dm-verity-target.c 		r = verity_hash_init(v, req, &wait);
r                 506 drivers/md/dm-verity-target.c 		if (unlikely(r < 0))
r                 507 drivers/md/dm-verity-target.c 			return r;
r                 510 drivers/md/dm-verity-target.c 		r = verity_for_io_block(v, io, &io->iter, &wait);
r                 511 drivers/md/dm-verity-target.c 		if (unlikely(r < 0))
r                 512 drivers/md/dm-verity-target.c 			return r;
r                 514 drivers/md/dm-verity-target.c 		r = verity_hash_final(v, req, verity_io_real_digest(v, io),
r                 516 drivers/md/dm-verity-target.c 		if (unlikely(r < 0))
r                 517 drivers/md/dm-verity-target.c 			return r;
r                 836 drivers/md/dm-verity-target.c 	int r = -ENOMEM;
r                 843 drivers/md/dm-verity-target.c 		return r;
r                 848 drivers/md/dm-verity-target.c 		return r; /* verity_dtr will free zero_digest */
r                 855 drivers/md/dm-verity-target.c 	r = verity_hash(v, req, zero_data, 1 << v->data_dev_block_bits,
r                 862 drivers/md/dm-verity-target.c 	return r;
r                 868 drivers/md/dm-verity-target.c 	int r;
r                 877 drivers/md/dm-verity-target.c 	r = dm_read_arg_group(_args, as, &argc, &ti->error);
r                 878 drivers/md/dm-verity-target.c 	if (r)
r                 897 drivers/md/dm-verity-target.c 			r = verity_alloc_zero_digest(v);
r                 898 drivers/md/dm-verity-target.c 			if (r) {
r                 900 drivers/md/dm-verity-target.c 				return r;
r                 905 drivers/md/dm-verity-target.c 			r = verity_alloc_most_once(v);
r                 906 drivers/md/dm-verity-target.c 			if (r)
r                 907 drivers/md/dm-verity-target.c 				return r;
r                 911 drivers/md/dm-verity-target.c 			r = verity_fec_parse_opt_args(as, v, &argc, arg_name);
r                 912 drivers/md/dm-verity-target.c 			if (r)
r                 913 drivers/md/dm-verity-target.c 				return r;
r                 916 drivers/md/dm-verity-target.c 			r = verity_verify_sig_parse_opt_args(as, v,
r                 919 drivers/md/dm-verity-target.c 			if (r)
r                 920 drivers/md/dm-verity-target.c 				return r;
r                 927 drivers/md/dm-verity-target.c 	} while (argc && !r);
r                 929 drivers/md/dm-verity-target.c 	return r;
r                 953 drivers/md/dm-verity-target.c 	int r;
r                 967 drivers/md/dm-verity-target.c 	r = verity_fec_ctr_alloc(v);
r                 968 drivers/md/dm-verity-target.c 	if (r)
r                 973 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                 979 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                 986 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                 991 drivers/md/dm-verity-target.c 	r = dm_get_device(ti, argv[1], FMODE_READ, &v->data_dev);
r                 992 drivers/md/dm-verity-target.c 	if (r) {
r                 997 drivers/md/dm-verity-target.c 	r = dm_get_device(ti, argv[2], FMODE_READ, &v->hash_dev);
r                 998 drivers/md/dm-verity-target.c 	if (r) {
r                1008 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1018 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1027 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1034 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1042 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1050 drivers/md/dm-verity-target.c 		r = -ENOMEM;
r                1057 drivers/md/dm-verity-target.c 		r = PTR_ERR(v->tfm);
r                1073 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1082 drivers/md/dm-verity-target.c 		r = -ENOMEM;
r                1088 drivers/md/dm-verity-target.c 		r = -EINVAL;
r                1098 drivers/md/dm-verity-target.c 			r = -ENOMEM;
r                1104 drivers/md/dm-verity-target.c 			r = -EINVAL;
r                1117 drivers/md/dm-verity-target.c 		r = verity_parse_opt_args(&as, v, &verify_args);
r                1118 drivers/md/dm-verity-target.c 		if (r < 0)
r                1123 drivers/md/dm-verity-target.c 	r = verity_verify_root_hash(root_hash_digest_to_validate,
r                1127 drivers/md/dm-verity-target.c 	if (r < 0) {
r                1143 drivers/md/dm-verity-target.c 		r = -E2BIG;
r                1155 drivers/md/dm-verity-target.c 			r = -E2BIG;
r                1167 drivers/md/dm-verity-target.c 		r = PTR_ERR(v->bufio);
r                1174 drivers/md/dm-verity-target.c 		r = -E2BIG;
r                1182 drivers/md/dm-verity-target.c 		r = -ENOMEM;
r                1189 drivers/md/dm-verity-target.c 	r = verity_fec_ctr(v);
r                1190 drivers/md/dm-verity-target.c 	if (r)
r                1205 drivers/md/dm-verity-target.c 	return r;
r                1223 drivers/md/dm-verity-target.c 	int r;
r                1225 drivers/md/dm-verity-target.c 	r = dm_register_target(&verity_target);
r                1226 drivers/md/dm-verity-target.c 	if (r < 0)
r                1227 drivers/md/dm-verity-target.c 		DMERR("register failed %d", r);
r                1229 drivers/md/dm-verity-target.c 	return r;
r                 221 drivers/md/dm-writecache.c 	int r;
r                 231 drivers/md/dm-writecache.c 		r = -EOPNOTSUPP;
r                 237 drivers/md/dm-writecache.c 		r = -EINVAL;
r                 241 drivers/md/dm-writecache.c 		r = -EOVERFLOW;
r                 250 drivers/md/dm-writecache.c 		r = da;
r                 255 drivers/md/dm-writecache.c 		r = -EOPNOTSUPP;
r                 263 drivers/md/dm-writecache.c 			r = -ENOMEM;
r                 272 drivers/md/dm-writecache.c 				r = daa ? daa : -EINVAL;
r                 276 drivers/md/dm-writecache.c 				r = -EOPNOTSUPP;
r                 286 drivers/md/dm-writecache.c 			r = -ENOMEM;
r                 304 drivers/md/dm-writecache.c 	return r;
r                 515 drivers/md/dm-writecache.c 	int r;
r                 529 drivers/md/dm-writecache.c 	r = dm_io(&req, 1, &region, NULL);
r                 530 drivers/md/dm-writecache.c 	if (unlikely(r))
r                 531 drivers/md/dm-writecache.c 		writecache_error(wc, r, "error flushing metadata: %d", r);
r                 905 drivers/md/dm-writecache.c 	int r;
r                 912 drivers/md/dm-writecache.c 		r = writecache_read_metadata(wc, wc->metadata_sectors);
r                 913 drivers/md/dm-writecache.c 		if (r) {
r                 915 drivers/md/dm-writecache.c 			writecache_error(wc, r, "unable to read metadata: %d", r);
r                 932 drivers/md/dm-writecache.c 	r = memcpy_mcsafe(&sb_seq_count, &sb(wc)->seq_count, sizeof(uint64_t));
r                 933 drivers/md/dm-writecache.c 	if (r) {
r                 934 drivers/md/dm-writecache.c 		writecache_error(wc, r, "hardware memory error when reading superblock: %d", r);
r                 948 drivers/md/dm-writecache.c 		r = memcpy_mcsafe(&wme, memory_entry(wc, e), sizeof(struct wc_memory_entry));
r                 949 drivers/md/dm-writecache.c 		if (r) {
r                 950 drivers/md/dm-writecache.c 			writecache_error(wc, r, "hardware memory error when reading metadata entry %lu: %d",
r                 951 drivers/md/dm-writecache.c 					 (unsigned long)b, r);
r                1053 drivers/md/dm-writecache.c 	int r = -EINVAL;
r                1057 drivers/md/dm-writecache.c 		r = process_flush_mesg(argc, argv, wc);
r                1059 drivers/md/dm-writecache.c 		r = process_flush_on_suspend_mesg(argc, argv, wc);
r                1063 drivers/md/dm-writecache.c 	return r;
r                1082 drivers/md/dm-writecache.c 			int r;
r                1083 drivers/md/dm-writecache.c 			r = memcpy_mcsafe(buf, data, size);
r                1085 drivers/md/dm-writecache.c 			if (unlikely(r)) {
r                1086 drivers/md/dm-writecache.c 				writecache_error(wc, r, "hardware memory error when reading data: %d", r);
r                1786 drivers/md/dm-writecache.c 	int r;
r                1788 drivers/md/dm-writecache.c 	r = calculate_memory_size(wc->memory_map_size, wc->block_size, &wc->n_blocks, NULL);
r                1789 drivers/md/dm-writecache.c 	if (r)
r                1790 drivers/md/dm-writecache.c 		return r;
r                1792 drivers/md/dm-writecache.c 	r = writecache_alloc_entries(wc);
r                1793 drivers/md/dm-writecache.c 	if (r)
r                1794 drivers/md/dm-writecache.c 		return r;
r                1872 drivers/md/dm-writecache.c 	int i, r;
r                1889 drivers/md/dm-writecache.c 		r = -ENOMEM;
r                1907 drivers/md/dm-writecache.c 		r = PTR_ERR(wc->dm_io);
r                1915 drivers/md/dm-writecache.c 		r = -ENOMEM;
r                1926 drivers/md/dm-writecache.c 		r = PTR_ERR(wc->endio_thread);
r                1952 drivers/md/dm-writecache.c 		r = -EOPNOTSUPP;
r                1961 drivers/md/dm-writecache.c 		r = bioset_init(&wc->bio_set, BIO_POOL_SIZE,
r                1964 drivers/md/dm-writecache.c 		if (r) {
r                1969 drivers/md/dm-writecache.c 		r = mempool_init_kmalloc_pool(&wc->copy_pool, 1, sizeof(struct copy_struct));
r                1970 drivers/md/dm-writecache.c 		if (r) {
r                1982 drivers/md/dm-writecache.c 	r = dm_get_device(ti, string, dm_table_get_mode(ti->table), &wc->dev);
r                1983 drivers/md/dm-writecache.c 	if (r) {
r                1995 drivers/md/dm-writecache.c 	r = dm_get_device(ti, string, dm_table_get_mode(ti->table), &wc->ssd_dev);
r                1996 drivers/md/dm-writecache.c 	if (r) {
r                2011 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2017 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2030 drivers/md/dm-writecache.c 	r = dm_read_arg_group(_args, &as, &opt_params, &ti->error);
r                2031 drivers/md/dm-writecache.c 	if (r)
r                2090 drivers/md/dm-writecache.c 			r = -EINVAL;
r                2097 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2103 drivers/md/dm-writecache.c 		r = persistent_memory_claim(wc);
r                2104 drivers/md/dm-writecache.c 		if (r) {
r                2117 drivers/md/dm-writecache.c 			r = PTR_ERR(wc->flush_thread);
r                2124 drivers/md/dm-writecache.c 		r = calculate_memory_size(wc->memory_map_size, wc->block_size,
r                2126 drivers/md/dm-writecache.c 		if (r) {
r                2135 drivers/md/dm-writecache.c 			r = -EFBIG;
r                2142 drivers/md/dm-writecache.c 			r = -ENOMEM;
r                2149 drivers/md/dm-writecache.c 			r = PTR_ERR(wc->dm_kcopyd);
r                2160 drivers/md/dm-writecache.c 			r = -ENOMEM;
r                2165 drivers/md/dm-writecache.c 		r = writecache_read_metadata(wc, wc->block_size >> SECTOR_SHIFT);
r                2166 drivers/md/dm-writecache.c 		if (r) {
r                2172 drivers/md/dm-writecache.c 	r = memcpy_mcsafe(&s, sb(wc), sizeof(struct wc_memory_superblock));
r                2173 drivers/md/dm-writecache.c 	if (r) {
r                2178 drivers/md/dm-writecache.c 		r = init_memory(wc);
r                2179 drivers/md/dm-writecache.c 		if (r) {
r                2183 drivers/md/dm-writecache.c 		r = memcpy_mcsafe(&s, sb(wc), sizeof(struct wc_memory_superblock));
r                2184 drivers/md/dm-writecache.c 		if (r) {
r                2192 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2198 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2204 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2214 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2227 drivers/md/dm-writecache.c 		r = -EINVAL;
r                2243 drivers/md/dm-writecache.c 	r = writecache_alloc_entries(wc);
r                2244 drivers/md/dm-writecache.c 	if (r) {
r                2259 drivers/md/dm-writecache.c 	r = -EINVAL;
r                2263 drivers/md/dm-writecache.c 	return r;
r                2344 drivers/md/dm-writecache.c 	int r;
r                2346 drivers/md/dm-writecache.c 	r = dm_register_target(&writecache_target);
r                2347 drivers/md/dm-writecache.c 	if (r < 0) {
r                2348 drivers/md/dm-writecache.c 		DMERR("register failed %d", r);
r                2349 drivers/md/dm-writecache.c 		return r;
r                  69 drivers/md/dm-zero.c 	int r = dm_register_target(&zero_target);
r                  71 drivers/md/dm-zero.c 	if (r < 0)
r                  72 drivers/md/dm-zero.c 		DMERR("register failed %d", r);
r                  74 drivers/md/dm-zero.c 	return r;
r                 222 drivers/md/dm.c 	int r;
r                 224 drivers/md/dm.c 	r = dm_uevent_init();
r                 225 drivers/md/dm.c 	if (r)
r                 226 drivers/md/dm.c 		return r;
r                 230 drivers/md/dm.c 		r = -ENOMEM;
r                 235 drivers/md/dm.c 	r = register_blkdev(_major, _name);
r                 236 drivers/md/dm.c 	if (r < 0)
r                 240 drivers/md/dm.c 		_major = r;
r                 249 drivers/md/dm.c 	return r;
r                 291 drivers/md/dm.c 	int r, i;
r                 294 drivers/md/dm.c 		r = _inits[i]();
r                 295 drivers/md/dm.c 		if (r)
r                 305 drivers/md/dm.c 	return r;
r                 382 drivers/md/dm.c 	int r = 0;
r                 387 drivers/md/dm.c 		r = -EBUSY;
r                 391 drivers/md/dm.c 		r = -EEXIST;
r                 397 drivers/md/dm.c 	return r;
r                 402 drivers/md/dm.c 	int r = 0;
r                 407 drivers/md/dm.c 		r = -EBUSY;
r                 413 drivers/md/dm.c 	return r;
r                 498 drivers/md/dm.c 	int r;
r                 501 drivers/md/dm.c 	r = -ENOTTY;
r                 504 drivers/md/dm.c 		return r;
r                 508 drivers/md/dm.c 		return r;
r                 512 drivers/md/dm.c 		return r;
r                 517 drivers/md/dm.c 	r = tgt->type->prepare_ioctl(tgt, bdev);
r                 518 drivers/md/dm.c 	if (r == -ENOTCONN && !fatal_signal_pending(current)) {
r                 524 drivers/md/dm.c 	return r;
r                 537 drivers/md/dm.c 	int r, srcu_idx;
r                 539 drivers/md/dm.c 	r = dm_prepare_ioctl(md, &srcu_idx, &bdev);
r                 540 drivers/md/dm.c 	if (r < 0)
r                 543 drivers/md/dm.c 	if (r > 0) {
r                 552 drivers/md/dm.c 			r = -ENOIOCTLCMD;
r                 557 drivers/md/dm.c 	r =  __blkdev_driver_ioctl(bdev, mode, cmd, arg);
r                 560 drivers/md/dm.c 	return r;
r                 747 drivers/md/dm.c 	int r;
r                 755 drivers/md/dm.c 	r = bd_link_disk_holder(bdev, dm_disk(md));
r                 756 drivers/md/dm.c 	if (r) {
r                 758 drivers/md/dm.c 		return r;
r                 796 drivers/md/dm.c 	int r;
r                 811 drivers/md/dm.c 		if ((r = open_table_device(td, dev, md))) {
r                 814 drivers/md/dm.c 			return r;
r                 994 drivers/md/dm.c 		int r = endio(tio->ti, bio, &error);
r                 995 drivers/md/dm.c 		switch (r) {
r                1005 drivers/md/dm.c 			DMWARN("unimplemented target endio return value: %d", r);
r                1265 drivers/md/dm.c 	int r;
r                1283 drivers/md/dm.c 	r = ti->type->map(ti, clone);
r                1284 drivers/md/dm.c 	switch (r) {
r                1305 drivers/md/dm.c 		DMWARN("unimplemented target map return value: %d", r);
r                1329 drivers/md/dm.c 		int r;
r                1339 drivers/md/dm.c 		r = bio_integrity_clone(clone, bio, GFP_NOIO);
r                1340 drivers/md/dm.c 		if (r < 0)
r                1341 drivers/md/dm.c 			return r;
r                1450 drivers/md/dm.c 	int r;
r                1454 drivers/md/dm.c 	r = clone_bio(tio, bio, sector, *len);
r                1455 drivers/md/dm.c 	if (r < 0) {
r                1457 drivers/md/dm.c 		return r;
r                1532 drivers/md/dm.c 	bool r = false;
r                1539 drivers/md/dm.c 		r = true;
r                1543 drivers/md/dm.c 	return r;
r                1572 drivers/md/dm.c 	int r;
r                1578 drivers/md/dm.c 	if (__process_abnormal_io(ci, ti, &r))
r                1579 drivers/md/dm.c 		return r;
r                1583 drivers/md/dm.c 	r = __clone_and_map_data_bio(ci, ti, ci->sector, &len);
r                1584 drivers/md/dm.c 	if (r < 0)
r                1585 drivers/md/dm.c 		return r;
r                1803 drivers/md/dm.c 	int r = bdi_bits;
r                1814 drivers/md/dm.c 			r = bdi->wb.congested->state & bdi_bits;
r                1818 drivers/md/dm.c 				r = dm_table_any_congested(map, bdi_bits);
r                1823 drivers/md/dm.c 	return r;
r                1841 drivers/md/dm.c 	int r;
r                1849 drivers/md/dm.c 	r = idr_alloc(&_minor_idr, MINOR_ALLOCED, minor, minor + 1, GFP_NOWAIT);
r                1853 drivers/md/dm.c 	if (r < 0)
r                1854 drivers/md/dm.c 		return r == -ENOSPC ? -EBUSY : r;
r                1860 drivers/md/dm.c 	int r;
r                1865 drivers/md/dm.c 	r = idr_alloc(&_minor_idr, MINOR_ALLOCED, 0, 1 << MINORBITS, GFP_NOWAIT);
r                1869 drivers/md/dm.c 	if (r < 0)
r                1870 drivers/md/dm.c 		return r;
r                1871 drivers/md/dm.c 	*minor = r;
r                1923 drivers/md/dm.c 	int r, numa_node_id = dm_get_numa_node();
r                1938 drivers/md/dm.c 		r = next_free_minor(&minor);
r                1940 drivers/md/dm.c 		r = specific_minor(minor);
r                1941 drivers/md/dm.c 	if (r < 0)
r                1944 drivers/md/dm.c 	r = init_srcu_struct(&md->io_barrier);
r                1945 drivers/md/dm.c 	if (r < 0)
r                2208 drivers/md/dm.c 	int r;
r                2215 drivers/md/dm.c 	r = dm_sysfs_init(md);
r                2216 drivers/md/dm.c 	if (r) {
r                2218 drivers/md/dm.c 		return r;
r                2277 drivers/md/dm.c 	int r;
r                2283 drivers/md/dm.c 		r = dm_mq_init_request_queue(md, t);
r                2284 drivers/md/dm.c 		if (r) {
r                2286 drivers/md/dm.c 			return r;
r                2300 drivers/md/dm.c 	r = dm_calculate_queue_limits(t, &limits);
r                2301 drivers/md/dm.c 	if (r) {
r                2303 drivers/md/dm.c 		return r;
r                2435 drivers/md/dm.c 	int r = 0;
r                2445 drivers/md/dm.c 			r = -EINTR;
r                2453 drivers/md/dm.c 	return r;
r                2500 drivers/md/dm.c 	int r;
r                2522 drivers/md/dm.c 		r = dm_calculate_queue_limits(table, &limits);
r                2523 drivers/md/dm.c 		if (r) {
r                2524 drivers/md/dm.c 			map = ERR_PTR(r);
r                2543 drivers/md/dm.c 	int r;
r                2549 drivers/md/dm.c 		r = PTR_ERR(md->frozen_sb);
r                2551 drivers/md/dm.c 		return r;
r                2584 drivers/md/dm.c 	int r;
r                2610 drivers/md/dm.c 		r = lock_fs(md);
r                2611 drivers/md/dm.c 		if (r) {
r                2613 drivers/md/dm.c 			return r;
r                2647 drivers/md/dm.c 	r = dm_wait_for_completion(md, task_state);
r                2648 drivers/md/dm.c 	if (!r)
r                2657 drivers/md/dm.c 	if (r < 0) {
r                2668 drivers/md/dm.c 	return r;
r                2690 drivers/md/dm.c 	int r = 0;
r                2696 drivers/md/dm.c 		r = -EINVAL;
r                2703 drivers/md/dm.c 		r = wait_on_bit(&md->flags, DMF_SUSPENDED_INTERNALLY, TASK_INTERRUPTIBLE);
r                2704 drivers/md/dm.c 		if (r)
r                2705 drivers/md/dm.c 			return r;
r                2711 drivers/md/dm.c 	r = __dm_suspend(md, map, suspend_flags, TASK_INTERRUPTIBLE, DMF_SUSPENDED);
r                2712 drivers/md/dm.c 	if (r)
r                2719 drivers/md/dm.c 	return r;
r                2725 drivers/md/dm.c 		int r = dm_table_resume_targets(map);
r                2726 drivers/md/dm.c 		if (r)
r                2727 drivers/md/dm.c 			return r;
r                2747 drivers/md/dm.c 	int r;
r                2751 drivers/md/dm.c 	r = -EINVAL;
r                2760 drivers/md/dm.c 		r = wait_on_bit(&md->flags, DMF_SUSPENDED_INTERNALLY, TASK_INTERRUPTIBLE);
r                2761 drivers/md/dm.c 		if (r)
r                2762 drivers/md/dm.c 			return r;
r                2770 drivers/md/dm.c 	r = __dm_resume(md, map);
r                2771 drivers/md/dm.c 	if (r)
r                2778 drivers/md/dm.c 	return r;
r                3124 drivers/md/dm.c 	int r, srcu_idx;
r                3126 drivers/md/dm.c 	r = dm_prepare_ioctl(md, &srcu_idx, &bdev);
r                3127 drivers/md/dm.c 	if (r < 0)
r                3132 drivers/md/dm.c 		r = ops->pr_reserve(bdev, key, type, flags);
r                3134 drivers/md/dm.c 		r = -EOPNOTSUPP;
r                3137 drivers/md/dm.c 	return r;
r                3144 drivers/md/dm.c 	int r, srcu_idx;
r                3146 drivers/md/dm.c 	r = dm_prepare_ioctl(md, &srcu_idx, &bdev);
r                3147 drivers/md/dm.c 	if (r < 0)
r                3152 drivers/md/dm.c 		r = ops->pr_release(bdev, key, type);
r                3154 drivers/md/dm.c 		r = -EOPNOTSUPP;
r                3157 drivers/md/dm.c 	return r;
r                3165 drivers/md/dm.c 	int r, srcu_idx;
r                3167 drivers/md/dm.c 	r = dm_prepare_ioctl(md, &srcu_idx, &bdev);
r                3168 drivers/md/dm.c 	if (r < 0)
r                3173 drivers/md/dm.c 		r = ops->pr_preempt(bdev, old_key, new_key, type, abort);
r                3175 drivers/md/dm.c 		r = -EOPNOTSUPP;
r                3178 drivers/md/dm.c 	return r;
r                3185 drivers/md/dm.c 	int r, srcu_idx;
r                3187 drivers/md/dm.c 	r = dm_prepare_ioctl(md, &srcu_idx, &bdev);
r                3188 drivers/md/dm.c 	if (r < 0)
r                3193 drivers/md/dm.c 		r = ops->pr_clear(bdev, key);
r                3195 drivers/md/dm.c 		r = -EOPNOTSUPP;
r                3198 drivers/md/dm.c 	return r;
r                5409 drivers/md/md.c static void no_op(struct percpu_ref *r) {}
r                 156 drivers/md/persistent-data/dm-array.c 	int r;
r                 158 drivers/md/persistent-data/dm-array.c 	r = dm_tm_new_block(info->btree_info.tm, &array_validator, block);
r                 159 drivers/md/persistent-data/dm-array.c 	if (r)
r                 160 drivers/md/persistent-data/dm-array.c 		return r;
r                 223 drivers/md/persistent-data/dm-array.c 	int r;
r                 225 drivers/md/persistent-data/dm-array.c 	r = dm_tm_read_lock(info->btree_info.tm, b, &array_validator, block);
r                 226 drivers/md/persistent-data/dm-array.c 	if (r)
r                 227 drivers/md/persistent-data/dm-array.c 		return r;
r                 257 drivers/md/persistent-data/dm-array.c 	int r;
r                 261 drivers/md/persistent-data/dm-array.c 	r = dm_btree_lookup(&info->btree_info, root, &key, &block_le);
r                 262 drivers/md/persistent-data/dm-array.c 	if (r)
r                 263 drivers/md/persistent-data/dm-array.c 		return r;
r                 286 drivers/md/persistent-data/dm-array.c 	int r = dm_tm_shadow_block(info->btree_info.tm, b,
r                 288 drivers/md/persistent-data/dm-array.c 	if (r)
r                 289 drivers/md/persistent-data/dm-array.c 		return r;
r                 306 drivers/md/persistent-data/dm-array.c 	int r = 0;
r                 316 drivers/md/persistent-data/dm-array.c 		r = insert_ablock(info, index, block, root);
r                 319 drivers/md/persistent-data/dm-array.c 	return r;
r                 331 drivers/md/persistent-data/dm-array.c 	int r;
r                 336 drivers/md/persistent-data/dm-array.c 	r = dm_btree_lookup(&info->btree_info, *root, &key, &block_le);
r                 337 drivers/md/persistent-data/dm-array.c 	if (r)
r                 338 drivers/md/persistent-data/dm-array.c 		return r;
r                 341 drivers/md/persistent-data/dm-array.c 	r = __shadow_ablock(info, b, block, ab);
r                 342 drivers/md/persistent-data/dm-array.c 	if (r)
r                 343 drivers/md/persistent-data/dm-array.c 		return r;
r                 356 drivers/md/persistent-data/dm-array.c 	int r;
r                 360 drivers/md/persistent-data/dm-array.c 	r = alloc_ablock(info, size_of_block, max_entries, &block, &ab);
r                 361 drivers/md/persistent-data/dm-array.c 	if (r)
r                 362 drivers/md/persistent-data/dm-array.c 		return r;
r                 365 drivers/md/persistent-data/dm-array.c 	r = insert_ablock(info, block_index, block, root);
r                 368 drivers/md/persistent-data/dm-array.c 	return r;
r                 376 drivers/md/persistent-data/dm-array.c 	int r = 0;
r                 378 drivers/md/persistent-data/dm-array.c 	for (; !r && begin_block != end_block; begin_block++)
r                 379 drivers/md/persistent-data/dm-array.c 		r = insert_new_ablock(info, size_of_block, max_entries, begin_block, max_entries, value, root);
r                 381 drivers/md/persistent-data/dm-array.c 	return r;
r                 440 drivers/md/persistent-data/dm-array.c 	int r;
r                 444 drivers/md/persistent-data/dm-array.c 		r = dm_btree_remove(&resize->info->btree_info, resize->root,
r                 446 drivers/md/persistent-data/dm-array.c 		if (r)
r                 447 drivers/md/persistent-data/dm-array.c 			return r;
r                 467 drivers/md/persistent-data/dm-array.c 	int r;
r                 481 drivers/md/persistent-data/dm-array.c 		r = drop_blocks(resize, begin, end);
r                 482 drivers/md/persistent-data/dm-array.c 		if (r)
r                 483 drivers/md/persistent-data/dm-array.c 			return r;
r                 490 drivers/md/persistent-data/dm-array.c 		r = shadow_ablock(resize->info, &resize->root,
r                 492 drivers/md/persistent-data/dm-array.c 		if (r)
r                 493 drivers/md/persistent-data/dm-array.c 			return r;
r                 507 drivers/md/persistent-data/dm-array.c 	int r;
r                 511 drivers/md/persistent-data/dm-array.c 	r = shadow_ablock(resize->info, &resize->root,
r                 513 drivers/md/persistent-data/dm-array.c 	if (r)
r                 514 drivers/md/persistent-data/dm-array.c 		return r;
r                 519 drivers/md/persistent-data/dm-array.c 	return r;
r                 533 drivers/md/persistent-data/dm-array.c 	int r;
r                 539 drivers/md/persistent-data/dm-array.c 		r = grow_extend_tail_block(resize, resize->max_entries);
r                 540 drivers/md/persistent-data/dm-array.c 		if (r)
r                 541 drivers/md/persistent-data/dm-array.c 			return r;
r                 544 drivers/md/persistent-data/dm-array.c 	r = insert_full_ablocks(resize->info, resize->size_of_block,
r                 549 drivers/md/persistent-data/dm-array.c 	if (r)
r                 550 drivers/md/persistent-data/dm-array.c 		return r;
r                 553 drivers/md/persistent-data/dm-array.c 		r = grow_add_tail_block(resize);
r                 555 drivers/md/persistent-data/dm-array.c 	return r;
r                 587 drivers/md/persistent-data/dm-array.c 	int r;
r                 598 drivers/md/persistent-data/dm-array.c 	r = dm_tm_ref(info->btree_info.tm, b, &ref_count);
r                 599 drivers/md/persistent-data/dm-array.c 	if (r) {
r                 610 drivers/md/persistent-data/dm-array.c 		r = get_ablock(info, b, &block, &ab);
r                 611 drivers/md/persistent-data/dm-array.c 		if (r) {
r                 659 drivers/md/persistent-data/dm-array.c 	int r;
r                 679 drivers/md/persistent-data/dm-array.c 	r = ((new_size > old_size) ? grow : shrink)(&resize);
r                 680 drivers/md/persistent-data/dm-array.c 	if (r)
r                 681 drivers/md/persistent-data/dm-array.c 		return r;
r                 692 drivers/md/persistent-data/dm-array.c 	int r = array_resize(info, root, old_size, new_size, value, new_root);
r                 694 drivers/md/persistent-data/dm-array.c 	return r;
r                 701 drivers/md/persistent-data/dm-array.c 	int r;
r                 709 drivers/md/persistent-data/dm-array.c 		r = fn(base + i, element_at(info, ab, i), context);
r                 710 drivers/md/persistent-data/dm-array.c 		if (r)
r                 711 drivers/md/persistent-data/dm-array.c 			return r;
r                 724 drivers/md/persistent-data/dm-array.c 	int r;
r                 729 drivers/md/persistent-data/dm-array.c 	r = dm_array_empty(info, root);
r                 730 drivers/md/persistent-data/dm-array.c 	if (r)
r                 731 drivers/md/persistent-data/dm-array.c 		return r;
r                 738 drivers/md/persistent-data/dm-array.c 		r = alloc_ablock(info, size_of_block, max_entries, &block, &ab);
r                 739 drivers/md/persistent-data/dm-array.c 		if (r)
r                 742 drivers/md/persistent-data/dm-array.c 		r = populate_ablock_with_values(info, ab, fn, context,
r                 745 drivers/md/persistent-data/dm-array.c 		if (r) {
r                 750 drivers/md/persistent-data/dm-array.c 		r = insert_ablock(info, block_index, block, root);
r                 752 drivers/md/persistent-data/dm-array.c 		if (r)
r                 758 drivers/md/persistent-data/dm-array.c 	return r;
r                 771 drivers/md/persistent-data/dm-array.c 	int r;
r                 780 drivers/md/persistent-data/dm-array.c 	r = lookup_ablock(info, root, index / max_entries, &block, &ab);
r                 781 drivers/md/persistent-data/dm-array.c 	if (r)
r                 782 drivers/md/persistent-data/dm-array.c 		return r;
r                 786 drivers/md/persistent-data/dm-array.c 		r = -ENODATA;
r                 792 drivers/md/persistent-data/dm-array.c 	return r;
r                 799 drivers/md/persistent-data/dm-array.c 	int r;
r                 811 drivers/md/persistent-data/dm-array.c 	r = shadow_ablock(info, &root, index / max_entries, &block, &ab);
r                 812 drivers/md/persistent-data/dm-array.c 	if (r)
r                 813 drivers/md/persistent-data/dm-array.c 		return r;
r                 818 drivers/md/persistent-data/dm-array.c 		r = -ENODATA;
r                 834 drivers/md/persistent-data/dm-array.c 	return r;
r                 841 drivers/md/persistent-data/dm-array.c 	int r;
r                 843 drivers/md/persistent-data/dm-array.c 	r = array_set_value(info, root, index, value, new_root);
r                 845 drivers/md/persistent-data/dm-array.c 	return r;
r                 859 drivers/md/persistent-data/dm-array.c 	int r;
r                 867 drivers/md/persistent-data/dm-array.c 	r = get_ablock(wi->info, le64_to_cpu(block_le), &block, &ab);
r                 868 drivers/md/persistent-data/dm-array.c 	if (r)
r                 869 drivers/md/persistent-data/dm-array.c 		return r;
r                 874 drivers/md/persistent-data/dm-array.c 		r = wi->fn(wi->context, keys[0] * max_entries + i,
r                 877 drivers/md/persistent-data/dm-array.c 		if (r)
r                 882 drivers/md/persistent-data/dm-array.c 	return r;
r                 903 drivers/md/persistent-data/dm-array.c 	int r;
r                 914 drivers/md/persistent-data/dm-array.c 	r = dm_btree_cursor_get_value(&c->cursor, &key, &value_le);
r                 915 drivers/md/persistent-data/dm-array.c 	if (r) {
r                 920 drivers/md/persistent-data/dm-array.c 		r = get_ablock(c->info, le64_to_cpu(value_le), &c->block, &c->ab);
r                 921 drivers/md/persistent-data/dm-array.c 		if (r) {
r                 927 drivers/md/persistent-data/dm-array.c 	return r;
r                 933 drivers/md/persistent-data/dm-array.c 	int r;
r                 937 drivers/md/persistent-data/dm-array.c 	r = dm_btree_cursor_begin(&info->btree_info, root, true, &c->cursor);
r                 938 drivers/md/persistent-data/dm-array.c 	if (r) {
r                 940 drivers/md/persistent-data/dm-array.c 		return r;
r                 958 drivers/md/persistent-data/dm-array.c 	int r;
r                 966 drivers/md/persistent-data/dm-array.c 		r = dm_btree_cursor_next(&c->cursor);
r                 967 drivers/md/persistent-data/dm-array.c 		if (r)
r                 968 drivers/md/persistent-data/dm-array.c 			return r;
r                 970 drivers/md/persistent-data/dm-array.c 		r = load_ablock(c);
r                 971 drivers/md/persistent-data/dm-array.c 		if (r)
r                 972 drivers/md/persistent-data/dm-array.c 			return r;
r                 981 drivers/md/persistent-data/dm-array.c 	int r;
r                 992 drivers/md/persistent-data/dm-array.c 		r = dm_array_cursor_next(c);
r                 994 drivers/md/persistent-data/dm-array.c 	} while (!r);
r                 996 drivers/md/persistent-data/dm-array.c 	return r;
r                  50 drivers/md/persistent-data/dm-bitset.c 	int r;
r                  57 drivers/md/persistent-data/dm-bitset.c 		r = p->fn(index * 64 + bit, &bv, p->context);
r                  58 drivers/md/persistent-data/dm-bitset.c 		if (r)
r                  59 drivers/md/persistent-data/dm-bitset.c 			return r;
r                 107 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 116 drivers/md/persistent-data/dm-bitset.c 	r = dm_array_set_value(&info->array_info, root, info->current_index,
r                 118 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 119 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 131 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 134 drivers/md/persistent-data/dm-bitset.c 	r = dm_array_get_value(&info->array_info, root, array_index, &value);
r                 135 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 136 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 149 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 156 drivers/md/persistent-data/dm-bitset.c 		r = dm_bitset_flush(info, root, new_root);
r                 157 drivers/md/persistent-data/dm-bitset.c 		if (r)
r                 158 drivers/md/persistent-data/dm-bitset.c 			return r;
r                 167 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 170 drivers/md/persistent-data/dm-bitset.c 	r = get_array_entry(info, root, index, new_root);
r                 171 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 172 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 184 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 187 drivers/md/persistent-data/dm-bitset.c 	r = get_array_entry(info, root, index, new_root);
r                 188 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 189 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 201 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 204 drivers/md/persistent-data/dm-bitset.c 	r = get_array_entry(info, root, index, new_root);
r                 205 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 206 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 215 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 218 drivers/md/persistent-data/dm-bitset.c 	r = dm_array_cursor_next(&c->cursor);
r                 219 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 220 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 233 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 242 drivers/md/persistent-data/dm-bitset.c 	r = dm_array_cursor_begin(&info->array_info, root, &c->cursor);
r                 243 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 244 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 251 drivers/md/persistent-data/dm-bitset.c 	return r;
r                 263 drivers/md/persistent-data/dm-bitset.c 	int r = 0;
r                 270 drivers/md/persistent-data/dm-bitset.c 		r = cursor_next_array_entry(c);
r                 272 drivers/md/persistent-data/dm-bitset.c 	return r;
r                 278 drivers/md/persistent-data/dm-bitset.c 	int r;
r                 297 drivers/md/persistent-data/dm-bitset.c 	r = dm_array_cursor_skip(&c->cursor, nr_array_skip);
r                 298 drivers/md/persistent-data/dm-bitset.c 	if (r)
r                 299 drivers/md/persistent-data/dm-bitset.c 		return r;
r                 193 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 197 drivers/md/persistent-data/dm-block-manager.c 	r = __check_holder(lock);
r                 198 drivers/md/persistent-data/dm-block-manager.c 	if (r) {
r                 200 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 224 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 227 drivers/md/persistent-data/dm-block-manager.c 	r = __check_holder(lock);
r                 228 drivers/md/persistent-data/dm-block-manager.c 	if (r)
r                 234 drivers/md/persistent-data/dm-block-manager.c 		r = 0;
r                 236 drivers/md/persistent-data/dm-block-manager.c 		r = -EWOULDBLOCK;
r                 240 drivers/md/persistent-data/dm-block-manager.c 	return r;
r                 256 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 260 drivers/md/persistent-data/dm-block-manager.c 	r = __check_holder(lock);
r                 261 drivers/md/persistent-data/dm-block-manager.c 	if (r) {
r                 263 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 300 drivers/md/persistent-data/dm-block-manager.c static void report_recursive_bug(dm_block_t b, int r)
r                 302 drivers/md/persistent-data/dm-block-manager.c 	if (r == -EINVAL)
r                 382 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 387 drivers/md/persistent-data/dm-block-manager.c 		r = -ENOMEM;
r                 396 drivers/md/persistent-data/dm-block-manager.c 		r = PTR_ERR(bm->bufio);
r                 406 drivers/md/persistent-data/dm-block-manager.c 	return ERR_PTR(r);
r                 434 drivers/md/persistent-data/dm-block-manager.c 		int r;
r                 437 drivers/md/persistent-data/dm-block-manager.c 		r = v->check(v, (struct dm_block *) buf, dm_bufio_get_block_size(bm->bufio));
r                 438 drivers/md/persistent-data/dm-block-manager.c 		if (unlikely(r)) {
r                 441 drivers/md/persistent-data/dm-block-manager.c 			return r;
r                 461 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 468 drivers/md/persistent-data/dm-block-manager.c 	r = bl_down_read(&aux->lock);
r                 469 drivers/md/persistent-data/dm-block-manager.c 	if (unlikely(r)) {
r                 471 drivers/md/persistent-data/dm-block-manager.c 		report_recursive_bug(b, r);
r                 472 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 477 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
r                 478 drivers/md/persistent-data/dm-block-manager.c 	if (unlikely(r)) {
r                 481 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 494 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 504 drivers/md/persistent-data/dm-block-manager.c 	r = bl_down_write(&aux->lock);
r                 505 drivers/md/persistent-data/dm-block-manager.c 	if (r) {
r                 507 drivers/md/persistent-data/dm-block-manager.c 		report_recursive_bug(b, r);
r                 508 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 513 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
r                 514 drivers/md/persistent-data/dm-block-manager.c 	if (unlikely(r)) {
r                 517 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 530 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 539 drivers/md/persistent-data/dm-block-manager.c 	r = bl_down_read_nonblock(&aux->lock);
r                 540 drivers/md/persistent-data/dm-block-manager.c 	if (r < 0) {
r                 542 drivers/md/persistent-data/dm-block-manager.c 		report_recursive_bug(b, r);
r                 543 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 547 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
r                 548 drivers/md/persistent-data/dm-block-manager.c 	if (unlikely(r)) {
r                 551 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 561 drivers/md/persistent-data/dm-block-manager.c 	int r;
r                 575 drivers/md/persistent-data/dm-block-manager.c 	r = bl_down_write(&aux->lock);
r                 576 drivers/md/persistent-data/dm-block-manager.c 	if (r) {
r                 578 drivers/md/persistent-data/dm-block-manager.c 		return r;
r                 146 drivers/md/persistent-data/dm-btree-remove.c 	int r, inc;
r                 152 drivers/md/persistent-data/dm-btree-remove.c 	r = dm_tm_shadow_block(info->tm, root, &btree_node_validator,
r                 154 drivers/md/persistent-data/dm-btree-remove.c 	if (r)
r                 155 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 200 drivers/md/persistent-data/dm-btree-remove.c 			 struct child *l, struct child *r)
r                 203 drivers/md/persistent-data/dm-btree-remove.c 	struct btree_node *right = r->n;
r                 220 drivers/md/persistent-data/dm-btree-remove.c 		delete_at(parent, r->index);
r                 226 drivers/md/persistent-data/dm-btree-remove.c 		dm_tm_dec(info->tm, dm_block_location(r->block));
r                 233 drivers/md/persistent-data/dm-btree-remove.c 		*key_ptr(parent, r->index) = right->keys[0];
r                 240 drivers/md/persistent-data/dm-btree-remove.c 	int r;
r                 246 drivers/md/persistent-data/dm-btree-remove.c 	r = init_child(info, vt, parent, left_index, &left);
r                 247 drivers/md/persistent-data/dm-btree-remove.c 	if (r)
r                 248 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 250 drivers/md/persistent-data/dm-btree-remove.c 	r = init_child(info, vt, parent, left_index + 1, &right);
r                 251 drivers/md/persistent-data/dm-btree-remove.c 	if (r) {
r                 253 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 270 drivers/md/persistent-data/dm-btree-remove.c 			       struct child *l, struct child *c, struct child *r,
r                 288 drivers/md/persistent-data/dm-btree-remove.c 	*key_ptr(parent, r->index) = right->keys[0];
r                 291 drivers/md/persistent-data/dm-btree-remove.c 	r->index--;
r                 294 drivers/md/persistent-data/dm-btree-remove.c 	__rebalance2(info, parent, l, r);
r                 301 drivers/md/persistent-data/dm-btree-remove.c 			  struct child *l, struct child *c, struct child *r,
r                 344 drivers/md/persistent-data/dm-btree-remove.c 	*key_ptr(parent, r->index) = right->keys[0];
r                 348 drivers/md/persistent-data/dm-btree-remove.c 			 struct child *l, struct child *c, struct child *r)
r                 352 drivers/md/persistent-data/dm-btree-remove.c 	struct btree_node *right = r->n;
r                 364 drivers/md/persistent-data/dm-btree-remove.c 		delete_center_node(info, parent, l, c, r, left, center, right,
r                 367 drivers/md/persistent-data/dm-btree-remove.c 		redistribute3(info, parent, l, c, r, left, center, right,
r                 374 drivers/md/persistent-data/dm-btree-remove.c 	int r;
r                 381 drivers/md/persistent-data/dm-btree-remove.c 	r = init_child(info, vt, parent, left_index, &left);
r                 382 drivers/md/persistent-data/dm-btree-remove.c 	if (r)
r                 383 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 385 drivers/md/persistent-data/dm-btree-remove.c 	r = init_child(info, vt, parent, left_index + 1, &center);
r                 386 drivers/md/persistent-data/dm-btree-remove.c 	if (r) {
r                 388 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 391 drivers/md/persistent-data/dm-btree-remove.c 	r = init_child(info, vt, parent, left_index + 2, &right);
r                 392 drivers/md/persistent-data/dm-btree-remove.c 	if (r) {
r                 395 drivers/md/persistent-data/dm-btree-remove.c 		return r;
r                 411 drivers/md/persistent-data/dm-btree-remove.c 	int i, r, has_left_sibling, has_right_sibling;
r                 420 drivers/md/persistent-data/dm-btree-remove.c 		r = dm_tm_read_lock(info->tm, b, &btree_node_validator, &child);
r                 421 drivers/md/persistent-data/dm-btree-remove.c 		if (r)
r                 422 drivers/md/persistent-data/dm-btree-remove.c 			return r;
r                 440 drivers/md/persistent-data/dm-btree-remove.c 		r = rebalance2(s, info, vt, i);
r                 443 drivers/md/persistent-data/dm-btree-remove.c 		r = rebalance2(s, info, vt, i - 1);
r                 446 drivers/md/persistent-data/dm-btree-remove.c 		r = rebalance3(s, info, vt, i - 1);
r                 448 drivers/md/persistent-data/dm-btree-remove.c 	return r;
r                 473 drivers/md/persistent-data/dm-btree-remove.c 	int i = *index, r;
r                 477 drivers/md/persistent-data/dm-btree-remove.c 		r = shadow_step(s, root, vt);
r                 478 drivers/md/persistent-data/dm-btree-remove.c 		if (r < 0)
r                 497 drivers/md/persistent-data/dm-btree-remove.c 		r = rebalance_children(s, info, vt, key);
r                 498 drivers/md/persistent-data/dm-btree-remove.c 		if (r)
r                 515 drivers/md/persistent-data/dm-btree-remove.c 	return r;
r                 522 drivers/md/persistent-data/dm-btree-remove.c 	int index = 0, r = 0;
r                 530 drivers/md/persistent-data/dm-btree-remove.c 		r = remove_raw(&spine, info,
r                 534 drivers/md/persistent-data/dm-btree-remove.c 		if (r < 0)
r                 555 drivers/md/persistent-data/dm-btree-remove.c 	return r;
r                 565 drivers/md/persistent-data/dm-btree-remove.c 	int i = *index, r;
r                 569 drivers/md/persistent-data/dm-btree-remove.c 		r = shadow_step(s, root, vt);
r                 570 drivers/md/persistent-data/dm-btree-remove.c 		if (r < 0)
r                 591 drivers/md/persistent-data/dm-btree-remove.c 		r = rebalance_children(s, info, vt, key);
r                 592 drivers/md/persistent-data/dm-btree-remove.c 		if (r)
r                 611 drivers/md/persistent-data/dm-btree-remove.c 	return r;
r                 619 drivers/md/persistent-data/dm-btree-remove.c 	int index = 0, r = 0;
r                 628 drivers/md/persistent-data/dm-btree-remove.c 		r = remove_raw(&spine, info, &le64_vt,
r                 630 drivers/md/persistent-data/dm-btree-remove.c 		if (r < 0)
r                 637 drivers/md/persistent-data/dm-btree-remove.c 	r = remove_nearest(&spine, info, &info->value_type,
r                 639 drivers/md/persistent-data/dm-btree-remove.c 	if (r < 0)
r                 648 drivers/md/persistent-data/dm-btree-remove.c 		r = -ENODATA;
r                 662 drivers/md/persistent-data/dm-btree-remove.c 		r = -ENODATA;
r                 668 drivers/md/persistent-data/dm-btree-remove.c 	return r;
r                 675 drivers/md/persistent-data/dm-btree-remove.c 	int r;
r                 679 drivers/md/persistent-data/dm-btree-remove.c 		r = remove_one(info, root, first_key, end_key, &root, nr_removed);
r                 680 drivers/md/persistent-data/dm-btree-remove.c 		if (!r)
r                 682 drivers/md/persistent-data/dm-btree-remove.c 	} while (!r);
r                 685 drivers/md/persistent-data/dm-btree-remove.c 	return r == -ENODATA ? 0 : r;
r                 105 drivers/md/persistent-data/dm-btree-spine.c 	int r, inc;
r                 107 drivers/md/persistent-data/dm-btree-spine.c 	r = dm_tm_shadow_block(info->tm, orig, &btree_node_validator,
r                 109 drivers/md/persistent-data/dm-btree-spine.c 	if (!r && inc)
r                 112 drivers/md/persistent-data/dm-btree-spine.c 	return r;
r                 137 drivers/md/persistent-data/dm-btree-spine.c 	int r = 0, i;
r                 143 drivers/md/persistent-data/dm-btree-spine.c 	return r;
r                 148 drivers/md/persistent-data/dm-btree-spine.c 	int r;
r                 156 drivers/md/persistent-data/dm-btree-spine.c 	r = bn_read_lock(s->info, new_child, s->nodes + s->count);
r                 157 drivers/md/persistent-data/dm-btree-spine.c 	if (!r)
r                 160 drivers/md/persistent-data/dm-btree-spine.c 	return r;
r                 190 drivers/md/persistent-data/dm-btree-spine.c 	int r = 0, i;
r                 196 drivers/md/persistent-data/dm-btree-spine.c 	return r;
r                 202 drivers/md/persistent-data/dm-btree-spine.c 	int r;
r                 210 drivers/md/persistent-data/dm-btree-spine.c 	r = bn_shadow(s->info, b, vt, s->nodes + s->count);
r                 211 drivers/md/persistent-data/dm-btree-spine.c 	if (!r) {
r                 218 drivers/md/persistent-data/dm-btree-spine.c 	return r;
r                 128 drivers/md/persistent-data/dm-btree.c 	int r;
r                 134 drivers/md/persistent-data/dm-btree.c 	r = new_block(info, &b);
r                 135 drivers/md/persistent-data/dm-btree.c 	if (r < 0)
r                 136 drivers/md/persistent-data/dm-btree.c 		return r;
r                 210 drivers/md/persistent-data/dm-btree.c 	int r;
r                 218 drivers/md/persistent-data/dm-btree.c 	r = dm_tm_ref(s->tm, b, &ref_count);
r                 219 drivers/md/persistent-data/dm-btree.c 	if (r)
r                 220 drivers/md/persistent-data/dm-btree.c 		return r;
r                 233 drivers/md/persistent-data/dm-btree.c 		r = dm_tm_read_lock(s->tm, b, &btree_node_validator, &f->b);
r                 234 drivers/md/persistent-data/dm-btree.c 		if (r) {
r                 236 drivers/md/persistent-data/dm-btree.c 			return r;
r                 272 drivers/md/persistent-data/dm-btree.c 	int r;
r                 287 drivers/md/persistent-data/dm-btree.c 	r = push_frame(s, root, 0);
r                 288 drivers/md/persistent-data/dm-btree.c 	if (r)
r                 296 drivers/md/persistent-data/dm-btree.c 		r = top_frame(s, &f);
r                 297 drivers/md/persistent-data/dm-btree.c 		if (r)
r                 309 drivers/md/persistent-data/dm-btree.c 			r = push_frame(s, b, f->level);
r                 310 drivers/md/persistent-data/dm-btree.c 			if (r)
r                 316 drivers/md/persistent-data/dm-btree.c 			r = push_frame(s, b, f->level + 1);
r                 317 drivers/md/persistent-data/dm-btree.c 			if (r)
r                 332 drivers/md/persistent-data/dm-btree.c 	if (r) {
r                 338 drivers/md/persistent-data/dm-btree.c 	return r;
r                 348 drivers/md/persistent-data/dm-btree.c 	int i, r;
r                 352 drivers/md/persistent-data/dm-btree.c 		r = ro_step(s, block);
r                 353 drivers/md/persistent-data/dm-btree.c 		if (r < 0)
r                 354 drivers/md/persistent-data/dm-btree.c 			return r;
r                 378 drivers/md/persistent-data/dm-btree.c 	int r = -ENODATA;
r                 397 drivers/md/persistent-data/dm-btree.c 		r = btree_lookup_raw(&spine, root, keys[level],
r                 401 drivers/md/persistent-data/dm-btree.c 		if (!r) {
r                 408 drivers/md/persistent-data/dm-btree.c 			return r;
r                 415 drivers/md/persistent-data/dm-btree.c 	return r;
r                 422 drivers/md/persistent-data/dm-btree.c 	int r, i;
r                 427 drivers/md/persistent-data/dm-btree.c 	r = bn_read_lock(info, root, &node);
r                 428 drivers/md/persistent-data/dm-btree.c 	if (r)
r                 429 drivers/md/persistent-data/dm-btree.c 		return r;
r                 445 drivers/md/persistent-data/dm-btree.c 			r = -ENODATA;
r                 449 drivers/md/persistent-data/dm-btree.c 		r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le);
r                 450 drivers/md/persistent-data/dm-btree.c 		if (r == -ENODATA && i < (nr_entries - 1)) {
r                 452 drivers/md/persistent-data/dm-btree.c 			r = dm_btree_lookup_next_single(info, value64(n, i), key, rkey, value_le);
r                 458 drivers/md/persistent-data/dm-btree.c 			r = -ENODATA;
r                 467 drivers/md/persistent-data/dm-btree.c 	return r;
r                 474 drivers/md/persistent-data/dm-btree.c 	int r = -ENODATA;
r                 480 drivers/md/persistent-data/dm-btree.c 		r = btree_lookup_raw(&spine, root, keys[level],
r                 483 drivers/md/persistent-data/dm-btree.c 		if (r)
r                 487 drivers/md/persistent-data/dm-btree.c 			r = -ENODATA;
r                 494 drivers/md/persistent-data/dm-btree.c 	r = dm_btree_lookup_next_single(info, root, keys[level], rkey, value_le);
r                 497 drivers/md/persistent-data/dm-btree.c 	return r;
r                 535 drivers/md/persistent-data/dm-btree.c 	int r;
r                 544 drivers/md/persistent-data/dm-btree.c 	r = new_block(s->info, &right);
r                 545 drivers/md/persistent-data/dm-btree.c 	if (r < 0)
r                 546 drivers/md/persistent-data/dm-btree.c 		return r;
r                 581 drivers/md/persistent-data/dm-btree.c 	r = insert_at(sizeof(__le64), pn, parent_index + 1,
r                 583 drivers/md/persistent-data/dm-btree.c 	if (r) {
r                 585 drivers/md/persistent-data/dm-btree.c 		return r;
r                 622 drivers/md/persistent-data/dm-btree.c 	int r;
r                 636 drivers/md/persistent-data/dm-btree.c 	r = new_block(s->info, &left);
r                 637 drivers/md/persistent-data/dm-btree.c 	if (r < 0)
r                 638 drivers/md/persistent-data/dm-btree.c 		return r;
r                 651 drivers/md/persistent-data/dm-btree.c 	r = new_block(s->info, &right);
r                 652 drivers/md/persistent-data/dm-btree.c 	if (r < 0) {
r                 654 drivers/md/persistent-data/dm-btree.c 		return r;
r                 696 drivers/md/persistent-data/dm-btree.c 	int r, i = *index, top = 1;
r                 700 drivers/md/persistent-data/dm-btree.c 		r = shadow_step(s, root, vt);
r                 701 drivers/md/persistent-data/dm-btree.c 		if (r < 0)
r                 702 drivers/md/persistent-data/dm-btree.c 			return r;
r                 723 drivers/md/persistent-data/dm-btree.c 				r = btree_split_beneath(s, key);
r                 725 drivers/md/persistent-data/dm-btree.c 				r = btree_split_sibling(s, i, key);
r                 727 drivers/md/persistent-data/dm-btree.c 			if (r < 0)
r                 728 drivers/md/persistent-data/dm-btree.c 				return r;
r                 767 drivers/md/persistent-data/dm-btree.c 	int r;
r                 778 drivers/md/persistent-data/dm-btree.c 		r = btree_insert_raw(&spine, block, &le64_type, keys[level], &index);
r                 779 drivers/md/persistent-data/dm-btree.c 		if (r < 0)
r                 788 drivers/md/persistent-data/dm-btree.c 			r = dm_btree_empty(info, &new_tree);
r                 789 drivers/md/persistent-data/dm-btree.c 			if (r < 0)
r                 795 drivers/md/persistent-data/dm-btree.c 			r = insert_at(sizeof(uint64_t), n, index,
r                 797 drivers/md/persistent-data/dm-btree.c 			if (r)
r                 805 drivers/md/persistent-data/dm-btree.c 	r = btree_insert_raw(&spine, block, &info->value_type,
r                 807 drivers/md/persistent-data/dm-btree.c 	if (r < 0)
r                 816 drivers/md/persistent-data/dm-btree.c 		r = insert_at(info->value_type.size, n, index,
r                 818 drivers/md/persistent-data/dm-btree.c 		if (r)
r                 846 drivers/md/persistent-data/dm-btree.c 	return r;
r                 871 drivers/md/persistent-data/dm-btree.c 	int i, r;
r                 875 drivers/md/persistent-data/dm-btree.c 		r = ro_step(s, block);
r                 876 drivers/md/persistent-data/dm-btree.c 		if (r < 0)
r                 877 drivers/md/persistent-data/dm-btree.c 			return r;
r                 908 drivers/md/persistent-data/dm-btree.c 	int r = 0, count = 0, level;
r                 913 drivers/md/persistent-data/dm-btree.c 		r = find_key(&spine, root, find_highest, result_keys + level,
r                 915 drivers/md/persistent-data/dm-btree.c 		if (r == -ENODATA) {
r                 916 drivers/md/persistent-data/dm-btree.c 			r = 0;
r                 919 drivers/md/persistent-data/dm-btree.c 		} else if (r)
r                 926 drivers/md/persistent-data/dm-btree.c 	return r ? r : count;
r                 953 drivers/md/persistent-data/dm-btree.c 	int r;
r                 959 drivers/md/persistent-data/dm-btree.c 	r = bn_read_lock(info, block, &node);
r                 960 drivers/md/persistent-data/dm-btree.c 	if (r)
r                 961 drivers/md/persistent-data/dm-btree.c 		return r;
r                 968 drivers/md/persistent-data/dm-btree.c 			r = walk_node(info, value64(n, i), fn, context);
r                 969 drivers/md/persistent-data/dm-btree.c 			if (r)
r                 973 drivers/md/persistent-data/dm-btree.c 			r = fn(context, &keys, value_ptr(n, i));
r                 974 drivers/md/persistent-data/dm-btree.c 			if (r)
r                 981 drivers/md/persistent-data/dm-btree.c 	return r;
r                1022 drivers/md/persistent-data/dm-btree.c 	int r;
r                1030 drivers/md/persistent-data/dm-btree.c 	r = bn_read_lock(c->info, b, &n->b);
r                1031 drivers/md/persistent-data/dm-btree.c 	if (r)
r                1032 drivers/md/persistent-data/dm-btree.c 		return r;
r                1073 drivers/md/persistent-data/dm-btree.c 	int r = 0;
r                1086 drivers/md/persistent-data/dm-btree.c 		r = push_node(c, le64_to_cpu(value_le));
r                1087 drivers/md/persistent-data/dm-btree.c 		if (r) {
r                1093 drivers/md/persistent-data/dm-btree.c 	if (!r && (le32_to_cpu(bn->header.nr_entries) == 0))
r                1096 drivers/md/persistent-data/dm-btree.c 	return r;
r                1102 drivers/md/persistent-data/dm-btree.c 	int r;
r                1109 drivers/md/persistent-data/dm-btree.c 	r = push_node(c, root);
r                1110 drivers/md/persistent-data/dm-btree.c 	if (r)
r                1111 drivers/md/persistent-data/dm-btree.c 		return r;
r                1126 drivers/md/persistent-data/dm-btree.c 	int r = inc_or_backtrack(c);
r                1127 drivers/md/persistent-data/dm-btree.c 	if (!r) {
r                1128 drivers/md/persistent-data/dm-btree.c 		r = find_leaf(c);
r                1129 drivers/md/persistent-data/dm-btree.c 		if (r)
r                1133 drivers/md/persistent-data/dm-btree.c 	return r;
r                1139 drivers/md/persistent-data/dm-btree.c 	int r = 0;
r                1141 drivers/md/persistent-data/dm-btree.c 	while (count-- && !r)
r                1142 drivers/md/persistent-data/dm-btree.c 		r = dm_btree_cursor_next(c);
r                1144 drivers/md/persistent-data/dm-btree.c 	return r;
r                 236 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 258 drivers/md/persistent-data/dm-space-map-common.c 		r = dm_tm_new_block(ll->tm, &dm_sm_bitmap_validator, &b);
r                 259 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0)
r                 260 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 269 drivers/md/persistent-data/dm-space-map-common.c 		r = ll->save_ie(ll, i, &idx);
r                 270 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0)
r                 271 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 279 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 285 drivers/md/persistent-data/dm-space-map-common.c 	r = ll->load_ie(ll, index, &ie_disk);
r                 286 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 287 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 289 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr),
r                 291 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 292 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 305 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 307 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_btree_lookup(&ll->ref_count_info, ll->ref_count_root, &b, &le_rc);
r                 308 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 309 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 313 drivers/md/persistent-data/dm-space-map-common.c 	return r;
r                 318 drivers/md/persistent-data/dm-space-map-common.c 	int r = sm_ll_lookup_bitmap(ll, b, result);
r                 320 drivers/md/persistent-data/dm-space-map-common.c 	if (r)
r                 321 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 324 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 332 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 348 drivers/md/persistent-data/dm-space-map-common.c 		r = ll->load_ie(ll, i, &ie_disk);
r                 349 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0)
r                 350 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 355 drivers/md/persistent-data/dm-space-map-common.c 		r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr),
r                 357 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0)
r                 358 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 362 drivers/md/persistent-data/dm-space-map-common.c 		r = sm_find_free(dm_bitmap_data(blk),
r                 365 drivers/md/persistent-data/dm-space-map-common.c 		if (r == -ENOSPC) {
r                 386 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 390 drivers/md/persistent-data/dm-space-map-common.c 		r = sm_ll_find_free_block(new_ll, begin, new_ll->nr_blocks, b);
r                 391 drivers/md/persistent-data/dm-space-map-common.c 		if (r)
r                 398 drivers/md/persistent-data/dm-space-map-common.c 			r = sm_ll_lookup(old_ll, *b, &count);
r                 399 drivers/md/persistent-data/dm-space-map-common.c 			if (r)
r                 407 drivers/md/persistent-data/dm-space-map-common.c 	return r;
r                 414 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 423 drivers/md/persistent-data/dm-space-map-common.c 	r = ll->load_ie(ll, index, &ie_disk);
r                 424 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 425 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 427 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_tm_shadow_block(ll->tm, le64_to_cpu(ie_disk.blocknr),
r                 429 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0) {
r                 431 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 439 drivers/md/persistent-data/dm-space-map-common.c 		r = sm_ll_lookup_big_ref_count(ll, b, &old);
r                 440 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0) {
r                 442 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 446 drivers/md/persistent-data/dm-space-map-common.c 	r = mutator(context, old, &ref_count);
r                 447 drivers/md/persistent-data/dm-space-map-common.c 	if (r) {
r                 449 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 458 drivers/md/persistent-data/dm-space-map-common.c 			r = dm_btree_remove(&ll->ref_count_info,
r                 461 drivers/md/persistent-data/dm-space-map-common.c 			if (r)
r                 462 drivers/md/persistent-data/dm-space-map-common.c 				return r;
r                 472 drivers/md/persistent-data/dm-space-map-common.c 		r = dm_btree_insert(&ll->ref_count_info, ll->ref_count_root,
r                 474 drivers/md/persistent-data/dm-space-map-common.c 		if (r < 0) {
r                 476 drivers/md/persistent-data/dm-space-map-common.c 			return r;
r                 539 drivers/md/persistent-data/dm-space-map-common.c 	int r = 0;
r                 542 drivers/md/persistent-data/dm-space-map-common.c 		r = ll->commit(ll);
r                 543 drivers/md/persistent-data/dm-space-map-common.c 		if (!r)
r                 547 drivers/md/persistent-data/dm-space-map-common.c 	return r;
r                 569 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 572 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_tm_new_block(ll->tm, &index_validator, &b);
r                 573 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 574 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 585 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 588 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_tm_read_lock(ll->tm, ll->bitmap_root,
r                 590 drivers/md/persistent-data/dm-space-map-common.c 	if (r)
r                 591 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 606 drivers/md/persistent-data/dm-space-map-common.c 	int r, inc;
r                 609 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_tm_shadow_block(ll->tm, ll->bitmap_root, &index_validator, &b, &inc);
r                 610 drivers/md/persistent-data/dm-space-map-common.c 	if (r)
r                 611 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 623 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 625 drivers/md/persistent-data/dm-space-map-common.c 	r = sm_ll_init(ll, tm);
r                 626 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 627 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 639 drivers/md/persistent-data/dm-space-map-common.c 	r = ll->init_index(ll);
r                 640 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 641 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 643 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_btree_empty(&ll->ref_count_info, &ll->ref_count_root);
r                 644 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 645 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 653 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 667 drivers/md/persistent-data/dm-space-map-common.c 	r = sm_ll_init(ll, tm);
r                 668 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 669 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 725 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 727 drivers/md/persistent-data/dm-space-map-common.c 	r = sm_ll_init(ll, tm);
r                 728 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 729 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 741 drivers/md/persistent-data/dm-space-map-common.c 	r = ll->init_index(ll);
r                 742 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 743 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 745 drivers/md/persistent-data/dm-space-map-common.c 	r = dm_btree_empty(&ll->ref_count_info, &ll->ref_count_root);
r                 746 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 747 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                 755 drivers/md/persistent-data/dm-space-map-common.c 	int r;
r                 763 drivers/md/persistent-data/dm-space-map-common.c 	r = sm_ll_init(ll, tm);
r                 764 drivers/md/persistent-data/dm-space-map-common.c 	if (r < 0)
r                 765 drivers/md/persistent-data/dm-space-map-common.c 		return r;
r                  74 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                  77 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_disk_get_count(sm, b, &count);
r                  78 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                  79 drivers/md/persistent-data/dm-space-map-disk.c 		return r;
r                  89 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                  94 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_insert(&smd->ll, b, count, &ev);
r                  95 drivers/md/persistent-data/dm-space-map-disk.c 	if (!r) {
r                 113 drivers/md/persistent-data/dm-space-map-disk.c 			r = sm_ll_lookup(&smd->old_ll, b, &old_count);
r                 114 drivers/md/persistent-data/dm-space-map-disk.c 			if (r)
r                 115 drivers/md/persistent-data/dm-space-map-disk.c 				return r;
r                 123 drivers/md/persistent-data/dm-space-map-disk.c 	return r;
r                 128 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 132 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_inc(&smd->ll, b, &ev);
r                 133 drivers/md/persistent-data/dm-space-map-disk.c 	if (!r && (ev == SM_ALLOC))
r                 140 drivers/md/persistent-data/dm-space-map-disk.c 	return r;
r                 145 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 150 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_dec(&smd->ll, b, &ev);
r                 151 drivers/md/persistent-data/dm-space-map-disk.c 	if (!r && (ev == SM_FREE)) {
r                 156 drivers/md/persistent-data/dm-space-map-disk.c 		r = sm_ll_lookup(&smd->old_ll, b, &old_count);
r                 157 drivers/md/persistent-data/dm-space-map-disk.c 		if (!r && !old_count)
r                 161 drivers/md/persistent-data/dm-space-map-disk.c 	return r;
r                 166 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 173 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_find_common_free_block(&smd->old_ll, &smd->ll, smd->begin, smd->ll.nr_blocks, b);
r                 174 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 175 drivers/md/persistent-data/dm-space-map-disk.c 		return r;
r                 178 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_inc(&smd->ll, *b, &ev);
r                 179 drivers/md/persistent-data/dm-space-map-disk.c 	if (!r) {
r                 184 drivers/md/persistent-data/dm-space-map-disk.c 	return r;
r                 189 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 193 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_disk_get_nr_free(sm, &nr_free);
r                 194 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 195 drivers/md/persistent-data/dm-space-map-disk.c 		return r;
r                 197 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_commit(&smd->ll);
r                 198 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 199 drivers/md/persistent-data/dm-space-map-disk.c 		return r;
r                 205 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_disk_get_nr_free(sm, &nr_free);
r                 206 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 207 drivers/md/persistent-data/dm-space-map-disk.c 		return r;
r                 259 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 270 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_new_disk(&smd->ll, tm);
r                 271 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 274 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_extend(&smd->ll, nr_blocks);
r                 275 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 278 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_disk_commit(&smd->sm);
r                 279 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 286 drivers/md/persistent-data/dm-space-map-disk.c 	return ERR_PTR(r);
r                 293 drivers/md/persistent-data/dm-space-map-disk.c 	int r;
r                 304 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_ll_open_disk(&smd->ll, tm, root_le, len);
r                 305 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 308 drivers/md/persistent-data/dm-space-map-disk.c 	r = sm_disk_commit(&smd->sm);
r                 309 drivers/md/persistent-data/dm-space-map-disk.c 	if (r)
r                 316 drivers/md/persistent-data/dm-space-map-disk.c 	return ERR_PTR(r);
r                 114 drivers/md/persistent-data/dm-space-map-metadata.c 	unsigned r = old + 1;
r                 115 drivers/md/persistent-data/dm-space-map-metadata.c 	return r >= ARRAY_SIZE(brb->bops) ? 0 : r;
r                 183 drivers/md/persistent-data/dm-space-map-metadata.c 	int r = brb_push(&smm->uncommitted, type, b);
r                 185 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r) {
r                 195 drivers/md/persistent-data/dm-space-map-metadata.c 	int r = 0;
r                 200 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_inc(&smm->ll, op->block, &ev);
r                 204 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_dec(&smm->ll, op->block, &ev);
r                 208 drivers/md/persistent-data/dm-space-map-metadata.c 	return r;
r                 218 drivers/md/persistent-data/dm-space-map-metadata.c 	int r = 0;
r                 223 drivers/md/persistent-data/dm-space-map-metadata.c 		r = brb_peek(&smm->uncommitted, &bop);
r                 224 drivers/md/persistent-data/dm-space-map-metadata.c 		if (r) {
r                 229 drivers/md/persistent-data/dm-space-map-metadata.c 		r = commit_bop(smm, &bop);
r                 230 drivers/md/persistent-data/dm-space-map-metadata.c 		if (r)
r                 236 drivers/md/persistent-data/dm-space-map-metadata.c 	return r;
r                 241 drivers/md/persistent-data/dm-space-map-metadata.c 	int r = 0;
r                 252 drivers/md/persistent-data/dm-space-map-metadata.c 		r = apply_bops(smm);
r                 256 drivers/md/persistent-data/dm-space-map-metadata.c 	return r;
r                 303 drivers/md/persistent-data/dm-space-map-metadata.c 	int r;
r                 331 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_lookup(&smm->ll, b, result);
r                 332 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 333 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 343 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, adjustment = 0;
r                 377 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_lookup_bitmap(&smm->ll, b, &rc);
r                 378 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 379 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 395 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, r2;
r                 405 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_insert(&smm->ll, b, count, &ev);
r                 408 drivers/md/persistent-data/dm-space-map-metadata.c 	return combine_errors(r, r2);
r                 413 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, r2 = 0;
r                 418 drivers/md/persistent-data/dm-space-map-metadata.c 		r = add_bop(smm, BOP_INC, b);
r                 421 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_inc(&smm->ll, b, &ev);
r                 425 drivers/md/persistent-data/dm-space-map-metadata.c 	return combine_errors(r, r2);
r                 430 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, r2 = 0;
r                 435 drivers/md/persistent-data/dm-space-map-metadata.c 		r = add_bop(smm, BOP_DEC, b);
r                 438 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_dec(&smm->ll, b, &ev);
r                 442 drivers/md/persistent-data/dm-space-map-metadata.c 	return combine_errors(r, r2);
r                 447 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, r2 = 0;
r                 454 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_find_common_free_block(&smm->old_ll, &smm->ll, smm->begin, smm->ll.nr_blocks, b);
r                 455 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 456 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 461 drivers/md/persistent-data/dm-space-map-metadata.c 		r = add_bop(smm, BOP_INC, *b);
r                 464 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_inc(&smm->ll, *b, &ev);
r                 468 drivers/md/persistent-data/dm-space-map-metadata.c 	if (!r)
r                 471 drivers/md/persistent-data/dm-space-map-metadata.c 	return combine_errors(r, r2);
r                 479 drivers/md/persistent-data/dm-space-map-metadata.c 	int r = sm_metadata_new_block_(sm, b);
r                 480 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r) {
r                 482 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 485 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_metadata_get_nr_free(sm, &count);
r                 486 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r) {
r                 488 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 493 drivers/md/persistent-data/dm-space-map-metadata.c 	return r;
r                 498 drivers/md/persistent-data/dm-space-map-metadata.c 	int r;
r                 501 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_commit(&smm->ll);
r                 502 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 503 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 699 drivers/md/persistent-data/dm-space-map-metadata.c 	int r, i;
r                 712 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_extend(&smm->ll, extra_blocks);
r                 713 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 721 drivers/md/persistent-data/dm-space-map-metadata.c 		for (i = old_len; !r && i < smm->begin; i++)
r                 722 drivers/md/persistent-data/dm-space-map-metadata.c 			r = add_bop(smm, BOP_INC, i);
r                 724 drivers/md/persistent-data/dm-space-map-metadata.c 		if (r)
r                 729 drivers/md/persistent-data/dm-space-map-metadata.c 		r = apply_bops(smm);
r                 730 drivers/md/persistent-data/dm-space-map-metadata.c 		if (r) {
r                 735 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_commit(&smm->ll);
r                 736 drivers/md/persistent-data/dm-space-map-metadata.c 		if (r)
r                 746 drivers/md/persistent-data/dm-space-map-metadata.c 	return r;
r                 769 drivers/md/persistent-data/dm-space-map-metadata.c 	int r;
r                 781 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_new_metadata(&smm->ll, tm);
r                 782 drivers/md/persistent-data/dm-space-map-metadata.c 	if (!r) {
r                 785 drivers/md/persistent-data/dm-space-map-metadata.c 		r = sm_ll_extend(&smm->ll, nr_blocks);
r                 788 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 789 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 795 drivers/md/persistent-data/dm-space-map-metadata.c 	for (i = superblock; !r && i < smm->begin; i++)
r                 796 drivers/md/persistent-data/dm-space-map-metadata.c 		r = add_bop(smm, BOP_INC, i);
r                 798 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 799 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 801 drivers/md/persistent-data/dm-space-map-metadata.c 	r = apply_bops(smm);
r                 802 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r) {
r                 804 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 814 drivers/md/persistent-data/dm-space-map-metadata.c 	int r;
r                 817 drivers/md/persistent-data/dm-space-map-metadata.c 	r = sm_ll_open_metadata(&smm->ll, tm, root_le, len);
r                 818 drivers/md/persistent-data/dm-space-map-metadata.c 	if (r)
r                 819 drivers/md/persistent-data/dm-space-map-metadata.c 		return r;
r                 105 drivers/md/persistent-data/dm-transaction-manager.c 	int r = 0;
r                 112 drivers/md/persistent-data/dm-transaction-manager.c 			r = 1;
r                 117 drivers/md/persistent-data/dm-transaction-manager.c 	return r;
r                 209 drivers/md/persistent-data/dm-transaction-manager.c 	int r;
r                 214 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_sm_commit(tm->sm);
r                 215 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 216 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 238 drivers/md/persistent-data/dm-transaction-manager.c 	int r;
r                 244 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_sm_new_block(tm->sm, &new_block);
r                 245 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 246 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 248 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_write_lock_zero(tm->bm, new_block, v, result);
r                 249 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0) {
r                 251 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 267 drivers/md/persistent-data/dm-transaction-manager.c 	int r;
r                 271 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_sm_new_block(tm->sm, &new);
r                 272 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 273 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 275 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_sm_dec_block(tm->sm, orig);
r                 276 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 277 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 279 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_read_lock(tm->bm, orig, v, &orig_block);
r                 280 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 281 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 290 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_write_lock_zero(tm->bm, new, v, result);
r                 291 drivers/md/persistent-data/dm-transaction-manager.c 	if (r) {
r                 293 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 300 drivers/md/persistent-data/dm-transaction-manager.c 	return r;
r                 307 drivers/md/persistent-data/dm-transaction-manager.c 	int r;
r                 312 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children);
r                 313 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 314 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 319 drivers/md/persistent-data/dm-transaction-manager.c 	r = __shadow_block(tm, orig, v, result);
r                 320 drivers/md/persistent-data/dm-transaction-manager.c 	if (r < 0)
r                 321 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 324 drivers/md/persistent-data/dm-transaction-manager.c 	return r;
r                 333 drivers/md/persistent-data/dm-transaction-manager.c 		int r = dm_bm_read_try_lock(tm->real->bm, b, v, blk);
r                 335 drivers/md/persistent-data/dm-transaction-manager.c 		if (r == -EWOULDBLOCK)
r                 338 drivers/md/persistent-data/dm-transaction-manager.c 		return r;
r                 402 drivers/md/persistent-data/dm-transaction-manager.c 	int r;
r                 415 drivers/md/persistent-data/dm-transaction-manager.c 		r = dm_sm_metadata_create(*sm, *tm, dm_bm_nr_blocks(bm),
r                 417 drivers/md/persistent-data/dm-transaction-manager.c 		if (r) {
r                 423 drivers/md/persistent-data/dm-transaction-manager.c 		r = dm_sm_metadata_open(*sm, *tm, sm_root, sm_len);
r                 424 drivers/md/persistent-data/dm-transaction-manager.c 		if (r) {
r                 435 drivers/md/persistent-data/dm-transaction-manager.c 	return r;
r                  15 drivers/media/common/b2c2/flexcop-i2c.c 	flexcop_ibi_value r;
r                  24 drivers/media/common/b2c2/flexcop-i2c.c 		r = fc->read_ibi_reg(fc, tw_sm_c_100);
r                  26 drivers/media/common/b2c2/flexcop-i2c.c 		if (!r.tw_sm_c_100.no_base_addr_ack_error) {
r                  27 drivers/media/common/b2c2/flexcop-i2c.c 			if (r.tw_sm_c_100.st_done) {
r                  28 drivers/media/common/b2c2/flexcop-i2c.c 				*r100 = r;
r                 364 drivers/media/common/saa7146/saa7146_hlp.c 		int l = 0, r = 0, t = 0, b = 0;
r                 388 drivers/media/common/saa7146/saa7146_hlp.c 		r = x[i]+w[i];
r                 394 drivers/media/common/saa7146/saa7146_hlp.c 		pixel_list[(2*i)+1] = min_t(int, r, width);
r                1153 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c static void mult_matrix(double *r, double *g, double *b, const double m[3][3])
r                1157 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	ir = m[0][0] * (*r) + m[0][1] * (*g) + m[0][2] * (*b);
r                1158 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	ig = m[1][0] * (*r) + m[1][1] * (*g) + m[1][2] * (*b);
r                1159 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	ib = m[2][0] * (*r) + m[2][1] * (*g) + m[2][2] * (*b);
r                1160 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	*r = ir;
r                1232 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		double *r, double *g, double *b)
r                1236 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	*r = transfer_srgb_to_rgb(*r);
r                1243 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_240m);
r                1246 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_170m);
r                1249 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_ebu);
r                1252 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_ntsc1953);
r                1255 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_oprgb);
r                1258 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_bt2020);
r                1261 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		mult_matrix(r, g, b, rec709_to_dcip3);
r                1271 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = ((*r) < 0) ? 0 : (((*r) > 1) ? 1 : (*r));
r                1278 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_rec709(*r);
r                1283 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_srgb(*r);
r                1288 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_oprgb(*r);
r                1293 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_dcip3(*r);
r                1298 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_smpte2084(*r);
r                1303 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 		*r = transfer_rgb_to_smpte240m(*r);
r                1387 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 				double r, g, b;
r                1392 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 				r = tpg_colors[i].r / 255.0;
r                1396 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 				csc(c, x, &r, &g, &b);
r                1401 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 					(int)(r * 4080), (int)(g * 4080), (int)(b * 4080));
r                 549 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void color_to_hsv(struct tpg_data *tpg, int r, int g, int b,
r                 557 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	r >>= 4;
r                 562 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	max_rgb = max3(r, g, b);
r                 571 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	min_rgb = min3(r, g, b);
r                 585 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	if (max_rgb == r) {
r                 589 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		aux =  b - r;
r                 592 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		aux =  r - g;
r                 614 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void rgb2ycbcr(const int m[3][3], int r, int g, int b,
r                 617 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	*y  = ((m[0][0] * r + m[0][1] * g + m[0][2] * b) >> 16) + (y_offset << 4);
r                 618 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	*cb = ((m[1][0] * r + m[1][1] * g + m[1][2] * b) >> 16) + (128 << 4);
r                 619 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	*cr = ((m[2][0] * r + m[2][1] * g + m[2][2] * b) >> 16) + (128 << 4);
r                 622 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c static void color_to_ycbcr(struct tpg_data *tpg, int r, int g, int b,
r                 625 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c #define COEFF(v, r) ((int)(0.5 + (v) * (r) * 256.0))
r                 682 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(full ? bt601_full : bt601, r, g, b, y_offset, y, cb, cr);
r                 687 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(bt601, r, g, b, 16, y, cb, cr);
r                 692 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(rec709, r, g, b, 16, y, cb, cr);
r                 695 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(full ? bt2020_full : bt2020, r, g, b, y_offset, y, cb, cr);
r                 698 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		lin_y = (COEFF(0.2627, 255) * rec709_to_linear(r) +
r                 707 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		if (r <= yc)
r                 708 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			*cr = (((r - yc) * (full ? bt2020c_full[2] : bt2020c[2])) >> 16) + (128 << 4);
r                 710 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			*cr = (((r - yc) * (full ? bt2020c_full[3] : bt2020c[3])) >> 16) + (128 << 4);
r                 713 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(full ? smpte240m_full : smpte240m, r, g, b, y_offset, y, cb, cr);
r                 717 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		rgb2ycbcr(full ? rec709_full : rec709, r, g, b, y_offset, y, cb, cr);
r                 723 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			int y_offset, int *r, int *g, int *b)
r                 728 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	*r = m[0][0] * y + m[0][1] * cb + m[0][2] * cr;
r                 731 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	*r = clamp(*r >> 12, 0, 0xff0);
r                 737 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			   int *r, int *g, int *b)
r                 740 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c #define COEFF(v, r) ((int)(0.5 + (v) * ((255.0 * 255.0 * 16.0) / (r))))
r                 797 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(full ? bt601_full : bt601, y, cb, cr, y_offset, r, g, b);
r                 802 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(bt601, y, cb, cr, 16, r, g, b);
r                 807 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(rec709, y, cb, cr, 16, r, g, b);
r                 810 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(full ? bt2020_full : bt2020, y, cb, cr, y_offset, r, g, b);
r                 823 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			*r = y_fac * y + (full ? bt2020c_full[2] : bt2020c[2]) * cr;
r                 825 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			*r = y_fac * y + (full ? bt2020c_full[3] : bt2020c[3]) * cr;
r                 826 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		*r = *r >> 12;
r                 827 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		lin_r = rec709_to_linear(*r);
r                 837 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(full ? smpte240m_full : smpte240m, y, cb, cr, y_offset, r, g, b);
r                 841 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		ycbcr2rgb(full ? rec709_full : rec709, y, cb, cr, y_offset, r, g, b);
r                 850 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 	int r = tpg_colors[col].r;
r                 859 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = tpg_colors[col].r;
r                 865 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = tpg_colors[col].r;
r                 869 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = g = b = prandom_u32_max(256);
r                 871 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = g = b = tpg->qual_offset + prandom_u32_max(196);
r                 873 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = g = b = k - TPG_COLOR_RAMP;
r                 877 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = tpg_csc_colors[tpg->colorspace][tpg->real_xfer_func][col].r;
r                 881 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r <<= 4;
r                 890 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = g = b = (13879 * r + 46688 * g + 4713 * b) >> 16;
r                 908 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = (r * 219) / 255 + (16 << 4);
r                 919 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = clamp(r, 16 << 4, 235 << 4);
r                 922 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = (r - (16 << 4)) * 255 / 219;
r                 935 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		color_to_ycbcr(tpg, r, g, b, &y, &cb, &cr);
r                 950 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			ycbcr_to_color(tpg, y, cb, cr, &r, &g, &b);
r                 953 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r = (16 << 4) + ((r - (16 << 4)) * tpg->contrast) / 128;
r                 954 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		r += (tpg->brightness << 4) - (128 << 4);
r                 962 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		color_to_hsv(tpg, r, g, b, &h, &s, &v);
r                 972 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			color_to_ycbcr(tpg, r, g, b, &y, &cb, &cr);
r                1017 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		tpg->colors[k][0] = r >> 4;
r                1023 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r = (r * 219) / 255 + (16 << 4);
r                1029 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 9;
r                1035 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 7;
r                1048 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 8;
r                1064 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 7;
r                1069 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 6;
r                1074 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 			r >>= 4;
r                1080 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c 		tpg->colors[k][0] = r;
r                1320 drivers/media/dvb-core/dvb_frontend.c 	int r;
r                1323 drivers/media/dvb-core/dvb_frontend.c 		r = fe->ops.get_frontend(fe, c);
r                1324 drivers/media/dvb-core/dvb_frontend.c 		if (unlikely(r < 0))
r                1325 drivers/media/dvb-core/dvb_frontend.c 			return r;
r                1811 drivers/media/dvb-core/dvb_frontend.c 	int r = 0;
r                1839 drivers/media/dvb-core/dvb_frontend.c 		r = dtv_set_frontend(fe);
r                1866 drivers/media/dvb-core/dvb_frontend.c 		r = dvbv5_set_delivery_system(fe, data);
r                1870 drivers/media/dvb-core/dvb_frontend.c 		r = dvb_frontend_handle_ioctl(file, FE_SET_VOLTAGE,
r                1875 drivers/media/dvb-core/dvb_frontend.c 		r = dvb_frontend_handle_ioctl(file, FE_SET_TONE,
r                1975 drivers/media/dvb-core/dvb_frontend.c 			r = fe->ops.set_lna(fe);
r                1976 drivers/media/dvb-core/dvb_frontend.c 		if (r < 0)
r                1984 drivers/media/dvb-core/dvb_frontend.c 	return r;
r                 129 drivers/media/dvb-frontends/cx24113.c 	u8 r;
r                 131 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x10) & 0x82;
r                 132 drivers/media/dvb-frontends/cx24113.c 	r |= state->icp_mode;
r                 133 drivers/media/dvb-frontends/cx24113.c 	r |= state->icp_man << 4;
r                 134 drivers/media/dvb-frontends/cx24113.c 	r |= state->icp_dig << 2;
r                 135 drivers/media/dvb-frontends/cx24113.c 	r |= state->prescaler_mode << 5;
r                 136 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x10, r);
r                 138 drivers/media/dvb-frontends/cx24113.c 	r = (state->icp_auto_low  << 0) | (state->icp_auto_mlow << 2)
r                 140 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x11, r);
r                 143 drivers/media/dvb-frontends/cx24113.c 		r = cx24113_readreg(state, 0x20) & 0xec;
r                 144 drivers/media/dvb-frontends/cx24113.c 		r |= state->lna_gain;
r                 145 drivers/media/dvb-frontends/cx24113.c 		r |= state->rfvga_bias_ctrl << 4;
r                 146 drivers/media/dvb-frontends/cx24113.c 		cx24113_writereg(state, 0x20, r);
r                 149 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x12) & 0x03;
r                 150 drivers/media/dvb-frontends/cx24113.c 	r |= state->acp_on << 2;
r                 151 drivers/media/dvb-frontends/cx24113.c 	r |= state->bs_delay << 4;
r                 152 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x12, r);
r                 154 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x18) & 0x40;
r                 155 drivers/media/dvb-frontends/cx24113.c 	r |= state->vco_shift;
r                 157 drivers/media/dvb-frontends/cx24113.c 		r |= (1 << 7);
r                 159 drivers/media/dvb-frontends/cx24113.c 		r |= (state->vco_band << 1);
r                 160 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x18, r);
r                 162 drivers/media/dvb-frontends/cx24113.c 	r  = cx24113_readreg(state, 0x14) & 0x20;
r                 163 drivers/media/dvb-frontends/cx24113.c 	r |= (state->vco_mode << 6) | ((state->bs_freqcnt >> 8) & 0x1f);
r                 164 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x14, r);
r                 168 drivers/media/dvb-frontends/cx24113.c 	r = (cx24113_readreg(state, 0x17) & 0x0f) |
r                 170 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x17, r);
r                 242 drivers/media/dvb-frontends/cx24113.c 	u8 r;
r                 245 drivers/media/dvb-frontends/cx24113.c 		r = 0x03 << 6;
r                 247 drivers/media/dvb-frontends/cx24113.c 		r = 0x02 << 6;
r                 249 drivers/media/dvb-frontends/cx24113.c 		r = 0x01 << 6;
r                 258 drivers/media/dvb-frontends/cx24113.c 	dprintk("bandwidth: %d %d\n", r >> 6, bandwidth_khz);
r                 260 drivers/media/dvb-frontends/cx24113.c 	r |= bandwidth_khz & 0x3f;
r                 262 drivers/media/dvb-frontends/cx24113.c 	return cx24113_writereg(state, 0x1e, r);
r                 267 drivers/media/dvb-frontends/cx24113.c 	u8 r = (cx24113_readreg(state, 0x10) & 0x7f) | ((on & 0x1) << 7);
r                 268 drivers/media/dvb-frontends/cx24113.c 	return cx24113_writereg(state, 0x10, r);
r                 274 drivers/media/dvb-frontends/cx24113.c 	u8 r = (cx24113_readreg(state, 0x10) & 0x02) >> 1;
r                 275 drivers/media/dvb-frontends/cx24113.c 	if (r)
r                 277 drivers/media/dvb-frontends/cx24113.c 	dprintk("PLL locked: %d\n", r);
r                 293 drivers/media/dvb-frontends/cx24113.c 	u8 R, r;
r                 352 drivers/media/dvb-frontends/cx24113.c 			r = cx24113_readreg(state, 0x10);
r                 353 drivers/media/dvb-frontends/cx24113.c 			cx24113_writereg(state, 0x10, r | (1 << 6));
r                 363 drivers/media/dvb-frontends/cx24113.c static void cx24113_set_nfr(struct cx24113_state *state, u16 n, s32 f, u8 r)
r                 376 drivers/media/dvb-frontends/cx24113.c 	cx24113_set_Fref(state, r - 1);
r                 381 drivers/media/dvb-frontends/cx24113.c 	u8 r = 1; /* or 2 */
r                 385 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x14);
r                 386 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x14, r & 0x3f);
r                 388 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x10);
r                 389 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x10, r & 0xbf);
r                 398 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x18) & 0xbf;
r                 400 drivers/media/dvb-frontends/cx24113.c 		r |= 1 << 6;
r                 401 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x18, r);
r                 406 drivers/media/dvb-frontends/cx24113.c 	r = cx24113_readreg(state, 0x1c) & 0xef;
r                 407 drivers/media/dvb-frontends/cx24113.c 	cx24113_writereg(state, 0x1c, r | (1 << 4));
r                 678 drivers/media/dvb-frontends/cx24123.c 	u8 r = cx24123_readreg(state, 0x23) & 0x1e;
r                 680 drivers/media/dvb-frontends/cx24123.c 		r |= (1 << 6) | (start << 5);
r                 682 drivers/media/dvb-frontends/cx24123.c 		r |= (1 << 7) | (start);
r                 683 drivers/media/dvb-frontends/cx24123.c 	return cx24123_writereg(state, 0x23, r);
r                 637 drivers/media/dvb-frontends/dib0070.c 	u16 l, r, *n;
r                 662 drivers/media/dvb-frontends/dib0070.c 		r = pgm_read_word(n++);
r                 664 drivers/media/dvb-frontends/dib0070.c 			dib0070_write_reg(state, (u8)r, pgm_read_word(n++));
r                 665 drivers/media/dvb-frontends/dib0070.c 			r++;
r                 671 drivers/media/dvb-frontends/dib0070.c 		r = state->cfg->force_crystal_mode;
r                 673 drivers/media/dvb-frontends/dib0070.c 		r = 1;
r                 675 drivers/media/dvb-frontends/dib0070.c 		r = 2;
r                 678 drivers/media/dvb-frontends/dib0070.c 	r |= state->cfg->osc_buffer_state << 3;
r                 680 drivers/media/dvb-frontends/dib0070.c 	dib0070_write_reg(state, 0x10, r);
r                 684 drivers/media/dvb-frontends/dib0070.c 		r = dib0070_read_reg(state, 0x02) & 0xffdf;
r                 685 drivers/media/dvb-frontends/dib0070.c 		dib0070_write_reg(state, 0x02, r | (1 << 5));
r                 320 drivers/media/dvb-frontends/dib0090.c static void dib0090_write_regs(struct dib0090_state *state, u8 r, const u16 * b, u8 c)
r                 323 drivers/media/dvb-frontends/dib0090.c 		dib0090_write_reg(state, r++, *b++);
r                1481 drivers/media/dvb-frontends/dib0090.c 	u16 l, r;
r                1485 drivers/media/dvb-frontends/dib0090.c 		r = pgm_read_word(n++);
r                1487 drivers/media/dvb-frontends/dib0090.c 			dib0090_write_reg(state, r, pgm_read_word(n++));
r                1488 drivers/media/dvb-frontends/dib0090.c 			r++;
r                 134 drivers/media/dvb-frontends/dib7000m.c 	u16 l = 0, r, *n;
r                 138 drivers/media/dvb-frontends/dib7000m.c 		r = *n++;
r                 140 drivers/media/dvb-frontends/dib7000m.c 		if (state->reg_offs && (r >= 112 && r <= 331)) // compensate for 7000MC
r                 141 drivers/media/dvb-frontends/dib7000m.c 			r++;
r                 144 drivers/media/dvb-frontends/dib7000m.c 			dib7000m_write_word(state, r, *n++);
r                 145 drivers/media/dvb-frontends/dib7000m.c 			r++;
r                 158 drivers/media/dvb-frontends/dib7000p.c 	u16 l = 0, r, *n;
r                 162 drivers/media/dvb-frontends/dib7000p.c 		r = *n++;
r                 165 drivers/media/dvb-frontends/dib7000p.c 			dib7000p_write_word(state, r, *n++);
r                 166 drivers/media/dvb-frontends/dib7000p.c 			r++;
r                1103 drivers/media/dvb-frontends/dib8000.c 		u16 l = 0, r;
r                1108 drivers/media/dvb-frontends/dib8000.c 			r = *n++;
r                1110 drivers/media/dvb-frontends/dib8000.c 				dib8000_write_word(state, r, *n++);
r                1111 drivers/media/dvb-frontends/dib8000.c 				r++;
r                 766 drivers/media/dvb-frontends/dib9000.c 	u8 r[4];
r                 773 drivers/media/dvb-frontends/dib9000.c 	if (dib9000_mbx_get_message(state, IN_MSG_VERSION, (u16 *) r, &size) < 0)
r                 776 drivers/media/dvb-frontends/dib9000.c 	fw_version = (r[0] << 8) | r[1];
r                 777 drivers/media/dvb-frontends/dib9000.c 	dprintk("RISC: ver: %d.%02d (IC: %d)\n", fw_version >> 10, fw_version & 0x3ff, (r[2] << 8) | r[3]);
r                1154 drivers/media/dvb-frontends/drx39xyj/drxj.c 	u32 r = 0;
r                1192 drivers/media/dvb-frontends/drx39xyj/drxj.c 	r = (y >> 1);
r                1195 drivers/media/dvb-frontends/drx39xyj/drxj.c 		r++;
r                1197 drivers/media/dvb-frontends/drx39xyj/drxj.c 	return r;
r                  86 drivers/media/dvb-frontends/itd1000.c static inline int itd1000_write_reg(struct itd1000_state *state, u8 r, u8 v)
r                  89 drivers/media/dvb-frontends/itd1000.c 	int ret = itd1000_write_regs(state, r, &tmp, 1);
r                  90 drivers/media/dvb-frontends/itd1000.c 	state->shadow[r] = tmp;
r                  53 drivers/media/dvb-frontends/mt352.h 	int r = 0;
r                  55 drivers/media/dvb-frontends/mt352.h 		r = fe->ops.write(fe, buf, len);
r                  56 drivers/media/dvb-frontends/mt352.h 	return r;
r                 663 drivers/media/dvb-frontends/mxl5xx.c 	int r = 0;
r                 667 drivers/media/dvb-frontends/mxl5xx.c 		r = set_parameters(fe);
r                 668 drivers/media/dvb-frontends/mxl5xx.c 		if (r)
r                 669 drivers/media/dvb-frontends/mxl5xx.c 			return r;
r                  30 drivers/media/dvb-frontends/si21xx.h 	int r = 0;
r                  33 drivers/media/dvb-frontends/si21xx.h 		r = fe->ops.write(fe, buf, 2);
r                  34 drivers/media/dvb-frontends/si21xx.h 	return r;
r                 289 drivers/media/dvb-frontends/sp887x.c 	unsigned int q, r;
r                 291 drivers/media/dvb-frontends/sp887x.c 	r = (n % d) << 8;
r                 292 drivers/media/dvb-frontends/sp887x.c 	q = (r / d);
r                 298 drivers/media/dvb-frontends/sp887x.c 		r = (r % d) << 8;
r                 299 drivers/media/dvb-frontends/sp887x.c 		q = (q << 8) | (r / d);
r                 300 drivers/media/dvb-frontends/sp887x.c 		r = (r % d) << 8;
r                 301 drivers/media/dvb-frontends/sp887x.c 		*quotient_f = (q << 8) | (r / d);
r                  47 drivers/media/dvb-frontends/stv0288.h 	int r = 0;
r                  50 drivers/media/dvb-frontends/stv0288.h 		r = fe->ops.write(fe, buf, 2);
r                  51 drivers/media/dvb-frontends/stv0288.h 	return r;
r                  99 drivers/media/dvb-frontends/stv0299.h 	int r = 0;
r                 102 drivers/media/dvb-frontends/stv0299.h 		r = fe->ops.write(fe, buf, 2);
r                 103 drivers/media/dvb-frontends/stv0299.h 	return r;
r                1621 drivers/media/dvb-frontends/stv0910.c 	int r;
r                1624 drivers/media/dvb-frontends/stv0910.c 		r = set_parameters(fe);
r                1625 drivers/media/dvb-frontends/stv0910.c 		if (r)
r                1626 drivers/media/dvb-frontends/stv0910.c 			return r;
r                1630 drivers/media/dvb-frontends/stv0910.c 	r = read_status(fe, status);
r                1631 drivers/media/dvb-frontends/stv0910.c 	if (r)
r                1632 drivers/media/dvb-frontends/stv0910.c 		return r;
r                 100 drivers/media/dvb-frontends/tda10023.c 	u8 r,m,v;
r                 102 drivers/media/dvb-frontends/tda10023.c 		r=*tab++;
r                 105 drivers/media/dvb-frontends/tda10023.c 		if (r==0xff) {
r                 112 drivers/media/dvb-frontends/tda10023.c 			tda10023_writebit(state,r,m,v);
r                 129 drivers/media/dvb-frontends/tda1004x.h 	int r = 0;
r                 132 drivers/media/dvb-frontends/tda1004x.h 		r = fe->ops.write(fe, buf, 2);
r                 133 drivers/media/dvb-frontends/tda1004x.h 	return r;
r                 262 drivers/media/firewire/firedtv-avc.c static bool is_register_rc(struct avc_response_frame *r)
r                 264 drivers/media/firewire/firedtv-avc.c 	return r->opcode     == AVC_OPCODE_VENDOR &&
r                 265 drivers/media/firewire/firedtv-avc.c 	       r->operand[0] == SFE_VENDOR_DE_COMPANYID_0 &&
r                 266 drivers/media/firewire/firedtv-avc.c 	       r->operand[1] == SFE_VENDOR_DE_COMPANYID_1 &&
r                 267 drivers/media/firewire/firedtv-avc.c 	       r->operand[2] == SFE_VENDOR_DE_COMPANYID_2 &&
r                 268 drivers/media/firewire/firedtv-avc.c 	       r->operand[3] == SFE_VENDOR_OPCODE_REGISTER_REMOTE_CONTROL;
r                 273 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = data;
r                 278 drivers/media/firewire/firedtv-avc.c 	if (length >= 8 && is_register_rc(r)) {
r                 279 drivers/media/firewire/firedtv-avc.c 		switch (r->response) {
r                 281 drivers/media/firewire/firedtv-avc.c 			fdtv_handle_rc(fdtv, r->operand[4] << 8 | r->operand[5]);
r                 290 drivers/media/firewire/firedtv-avc.c 				 "remote control result = %d\n", r->response);
r                 613 drivers/media/firewire/firedtv-avc.c 		*status = r->operand[2];
r                 712 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                 735 drivers/media/firewire/firedtv-avc.c 	if ((r->response != AVC_RESPONSE_STABLE &&
r                 736 drivers/media/firewire/firedtv-avc.c 	     r->response != AVC_RESPONSE_ACCEPTED) ||
r                 737 drivers/media/firewire/firedtv-avc.c 	    (r->operand[3] << 8) + r->operand[4] != 8) {
r                 752 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                 775 drivers/media/firewire/firedtv-avc.c 	if (r->response != AVC_RESPONSE_STABLE &&
r                 776 drivers/media/firewire/firedtv-avc.c 	    r->response != AVC_RESPONSE_ACCEPTED) {
r                 782 drivers/media/firewire/firedtv-avc.c 	length = r->operand[9];
r                 783 drivers/media/firewire/firedtv-avc.c 	if (r->operand[1] != 0x10 || length != SIZEOF_ANTENNA_INPUT_INFO) {
r                 789 drivers/media/firewire/firedtv-avc.c 	stat->active_system		= r->operand[10];
r                 790 drivers/media/firewire/firedtv-avc.c 	stat->searching			= r->operand[11] >> 7 & 1;
r                 791 drivers/media/firewire/firedtv-avc.c 	stat->moving			= r->operand[11] >> 6 & 1;
r                 792 drivers/media/firewire/firedtv-avc.c 	stat->no_rf			= r->operand[11] >> 5 & 1;
r                 793 drivers/media/firewire/firedtv-avc.c 	stat->input			= r->operand[12] >> 7 & 1;
r                 794 drivers/media/firewire/firedtv-avc.c 	stat->selected_antenna		= r->operand[12] & 0x7f;
r                 795 drivers/media/firewire/firedtv-avc.c 	stat->ber			= r->operand[13] << 24 |
r                 796 drivers/media/firewire/firedtv-avc.c 					  r->operand[14] << 16 |
r                 797 drivers/media/firewire/firedtv-avc.c 					  r->operand[15] << 8 |
r                 798 drivers/media/firewire/firedtv-avc.c 					  r->operand[16];
r                 799 drivers/media/firewire/firedtv-avc.c 	stat->signal_strength		= r->operand[17];
r                 800 drivers/media/firewire/firedtv-avc.c 	stat->raster_frequency		= r->operand[18] >> 6 & 2;
r                 801 drivers/media/firewire/firedtv-avc.c 	stat->rf_frequency		= (r->operand[18] & 0x3f) << 16 |
r                 802 drivers/media/firewire/firedtv-avc.c 					  r->operand[19] << 8 |
r                 803 drivers/media/firewire/firedtv-avc.c 					  r->operand[20];
r                 804 drivers/media/firewire/firedtv-avc.c 	stat->man_dep_info_length	= r->operand[21];
r                 805 drivers/media/firewire/firedtv-avc.c 	stat->front_end_error		= r->operand[22] >> 4 & 1;
r                 806 drivers/media/firewire/firedtv-avc.c 	stat->antenna_error		= r->operand[22] >> 3 & 1;
r                 807 drivers/media/firewire/firedtv-avc.c 	stat->front_end_power_status	= r->operand[22] >> 1 & 1;
r                 808 drivers/media/firewire/firedtv-avc.c 	stat->power_supply		= r->operand[22] & 1;
r                 809 drivers/media/firewire/firedtv-avc.c 	stat->carrier_noise_ratio	= r->operand[23] << 8 |
r                 810 drivers/media/firewire/firedtv-avc.c 					  r->operand[24];
r                 811 drivers/media/firewire/firedtv-avc.c 	stat->power_supply_voltage	= r->operand[27];
r                 812 drivers/media/firewire/firedtv-avc.c 	stat->antenna_voltage		= r->operand[28];
r                 813 drivers/media/firewire/firedtv-avc.c 	stat->firewire_bus_voltage	= r->operand[29];
r                 814 drivers/media/firewire/firedtv-avc.c 	stat->ca_mmi			= r->operand[30] & 1;
r                 815 drivers/media/firewire/firedtv-avc.c 	stat->ca_pmt_reply		= r->operand[31] >> 7 & 1;
r                 816 drivers/media/firewire/firedtv-avc.c 	stat->ca_date_time_request	= r->operand[31] >> 6 & 1;
r                 817 drivers/media/firewire/firedtv-avc.c 	stat->ca_application_info	= r->operand[31] >> 5 & 1;
r                 818 drivers/media/firewire/firedtv-avc.c 	stat->ca_module_present_status	= r->operand[31] >> 4 & 1;
r                 819 drivers/media/firewire/firedtv-avc.c 	stat->ca_dvb_flag		= r->operand[31] >> 3 & 1;
r                 820 drivers/media/firewire/firedtv-avc.c 	stat->ca_error_flag		= r->operand[31] >> 2 & 1;
r                 821 drivers/media/firewire/firedtv-avc.c 	stat->ca_initialization_status	= r->operand[31] >> 1 & 1;
r                 833 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                 865 drivers/media/firewire/firedtv-avc.c 	if (r->response != AVC_RESPONSE_ACCEPTED) {
r                 942 drivers/media/firewire/firedtv-avc.c static int get_ca_object_pos(struct avc_response_frame *r)
r                 947 drivers/media/firewire/firedtv-avc.c 	if (r->operand[7] & 0x80)
r                 948 drivers/media/firewire/firedtv-avc.c 		length = (r->operand[7] & 0x7f) + 1;
r                 952 drivers/media/firewire/firedtv-avc.c static int get_ca_object_length(struct avc_response_frame *r)
r                 958 drivers/media/firewire/firedtv-avc.c 	if (r->operand[7] & 0x80)
r                 959 drivers/media/firewire/firedtv-avc.c 		for (i = 0; i < (r->operand[7] & 0x7f); i++) {
r                 961 drivers/media/firewire/firedtv-avc.c 			size += r->operand[8 + i];
r                 964 drivers/media/firewire/firedtv-avc.c 	return r->operand[7];
r                 971 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                 995 drivers/media/firewire/firedtv-avc.c 	pos = get_ca_object_pos(r);
r                 999 drivers/media/firewire/firedtv-avc.c 	app_info[3] = 6 + r->operand[pos + 4];
r                1001 drivers/media/firewire/firedtv-avc.c 	memcpy(&app_info[5], &r->operand[pos], 5 + r->operand[pos + 4]);
r                1013 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                1037 drivers/media/firewire/firedtv-avc.c 	pos = get_ca_object_pos(r);
r                1043 drivers/media/firewire/firedtv-avc.c 		app_info[4] = r->operand[pos + 0];
r                1044 drivers/media/firewire/firedtv-avc.c 		app_info[5] = r->operand[pos + 1];
r                1094 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                1216 drivers/media/firewire/firedtv-avc.c 	if (r->response != AVC_RESPONSE_ACCEPTED) {
r                1218 drivers/media/firewire/firedtv-avc.c 			"CA PMT failed with response 0x%x\n", r->response);
r                1230 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                1254 drivers/media/firewire/firedtv-avc.c 	*interval = r->operand[get_ca_object_pos(r)];
r                1293 drivers/media/firewire/firedtv-avc.c 	struct avc_response_frame *r = (void *)fdtv->avc_data;
r                1317 drivers/media/firewire/firedtv-avc.c 	*len = get_ca_object_length(r);
r                1318 drivers/media/firewire/firedtv-avc.c 	memcpy(mmi_object, &r->operand[get_ca_object_pos(r)], *len);
r                  61 drivers/media/i2c/ad5820.c 	int r;
r                  72 drivers/media/i2c/ad5820.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                  73 drivers/media/i2c/ad5820.c 	if (r < 0) {
r                  74 drivers/media/i2c/ad5820.c 		dev_err(&client->dev, "write failed, error %d\n", r);
r                  75 drivers/media/i2c/ad5820.c 		return r;
r                 395 drivers/media/i2c/adv748x/adv748x.h #define io_read(s, r) adv748x_read(s, ADV748X_PAGE_IO, r)
r                 396 drivers/media/i2c/adv748x/adv748x.h #define io_write(s, r, v) adv748x_write(s, ADV748X_PAGE_IO, r, v)
r                 397 drivers/media/i2c/adv748x/adv748x.h #define io_clrset(s, r, m, v) io_write(s, r, (io_read(s, r) & ~(m)) | (v))
r                 399 drivers/media/i2c/adv748x/adv748x.h #define hdmi_read(s, r) adv748x_read(s, ADV748X_PAGE_HDMI, r)
r                 400 drivers/media/i2c/adv748x/adv748x.h #define hdmi_read16(s, r, m) (((hdmi_read(s, r) << 8) | hdmi_read(s, (r)+1)) & (m))
r                 401 drivers/media/i2c/adv748x/adv748x.h #define hdmi_write(s, r, v) adv748x_write(s, ADV748X_PAGE_HDMI, r, v)
r                 403 drivers/media/i2c/adv748x/adv748x.h #define repeater_read(s, r) adv748x_read(s, ADV748X_PAGE_REPEATER, r)
r                 404 drivers/media/i2c/adv748x/adv748x.h #define repeater_write(s, r, v) adv748x_write(s, ADV748X_PAGE_REPEATER, r, v)
r                 406 drivers/media/i2c/adv748x/adv748x.h #define sdp_read(s, r) adv748x_read(s, ADV748X_PAGE_SDP, r)
r                 407 drivers/media/i2c/adv748x/adv748x.h #define sdp_write(s, r, v) adv748x_write(s, ADV748X_PAGE_SDP, r, v)
r                 408 drivers/media/i2c/adv748x/adv748x.h #define sdp_clrset(s, r, m, v) sdp_write(s, r, (sdp_read(s, r) & ~(m)) | (v))
r                 410 drivers/media/i2c/adv748x/adv748x.h #define cp_read(s, r) adv748x_read(s, ADV748X_PAGE_CP, r)
r                 411 drivers/media/i2c/adv748x/adv748x.h #define cp_write(s, r, v) adv748x_write(s, ADV748X_PAGE_CP, r, v)
r                 412 drivers/media/i2c/adv748x/adv748x.h #define cp_clrset(s, r, m, v) cp_write(s, r, (cp_read(s, r) & ~(m)) | (v))
r                 414 drivers/media/i2c/adv748x/adv748x.h #define tx_read(t, r) adv748x_read(t->state, t->page, r)
r                 415 drivers/media/i2c/adv748x/adv748x.h #define tx_write(t, r, v) adv748x_write(t->state, t->page, r, v)
r                1926 drivers/media/i2c/adv7604.c 	sel->r.left	= 0;
r                1927 drivers/media/i2c/adv7604.c 	sel->r.top	= 0;
r                1928 drivers/media/i2c/adv7604.c 	sel->r.width	= state->timings.bt.width;
r                1929 drivers/media/i2c/adv7604.c 	sel->r.height	= state->timings.bt.height;
r                 136 drivers/media/i2c/ak881x.c 		sel->r.left = 0;
r                 137 drivers/media/i2c/ak881x.c 		sel->r.top = 0;
r                 138 drivers/media/i2c/ak881x.c 		sel->r.width = 720;
r                 139 drivers/media/i2c/ak881x.c 		sel->r.height = ak881x->lines;
r                 144 drivers/media/i2c/et8ek8/et8ek8_driver.c 	int r;
r                 161 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                 162 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r < 0)
r                 167 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                 168 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r < 0)
r                 181 drivers/media/i2c/et8ek8/et8ek8_driver.c 	dev_err(&client->dev, "read from offset 0x%x error %d\n", reg, r);
r                 183 drivers/media/i2c/et8ek8/et8ek8_driver.c 	return r;
r                 267 drivers/media/i2c/et8ek8/et8ek8_driver.c 	int r, cnt = 0;
r                 304 drivers/media/i2c/et8ek8/et8ek8_driver.c 		r = et8ek8_i2c_buffered_write_regs(client, regs, cnt);
r                 307 drivers/media/i2c/et8ek8/et8ek8_driver.c 		if (r < 0) {
r                 309 drivers/media/i2c/et8ek8/et8ek8_driver.c 			return r;
r                 338 drivers/media/i2c/et8ek8/et8ek8_driver.c 	int r;
r                 349 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                 350 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r < 0) {
r                 352 drivers/media/i2c/et8ek8/et8ek8_driver.c 			"wrote 0x%x to offset 0x%x error %d\n", val, reg, r);
r                 353 drivers/media/i2c/et8ek8/et8ek8_driver.c 		return r;
r                 558 drivers/media/i2c/et8ek8/et8ek8_driver.c 	int r;
r                 563 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT,
r                 565 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r)
r                 566 drivers/media/i2c/et8ek8/et8ek8_driver.c 		return r;
r                 567 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT,
r                 569 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r)
r                 570 drivers/media/i2c/et8ek8/et8ek8_driver.c 		return r;
r                 572 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT,
r                 574 drivers/media/i2c/et8ek8/et8ek8_driver.c 	if (r)
r                 575 drivers/media/i2c/et8ek8/et8ek8_driver.c 		return r;
r                 576 drivers/media/i2c/et8ek8/et8ek8_driver.c 	r = et8ek8_i2c_write_reg(client, ET8EK8_REG_8BIT,
r                 579 drivers/media/i2c/et8ek8/et8ek8_driver.c 	return r;
r                 628 drivers/media/i2c/imx214.c 	sel->r = *__imx214_get_pad_crop(imx214, cfg, sel->pad,
r                1003 drivers/media/i2c/imx274.c 		sel->r.left = 0;
r                1004 drivers/media/i2c/imx274.c 		sel->r.top = 0;
r                1005 drivers/media/i2c/imx274.c 		sel->r.width = IMX274_MAX_WIDTH;
r                1006 drivers/media/i2c/imx274.c 		sel->r.height = IMX274_MAX_HEIGHT;
r                1022 drivers/media/i2c/imx274.c 		sel->r = *src_crop;
r                1025 drivers/media/i2c/imx274.c 		sel->r.top = 0;
r                1026 drivers/media/i2c/imx274.c 		sel->r.left = 0;
r                1027 drivers/media/i2c/imx274.c 		sel->r.width = src_crop->width;
r                1028 drivers/media/i2c/imx274.c 		sel->r.height = src_crop->height;
r                1031 drivers/media/i2c/imx274.c 		sel->r.top = 0;
r                1032 drivers/media/i2c/imx274.c 		sel->r.left = 0;
r                1033 drivers/media/i2c/imx274.c 		sel->r.width = src_fmt->width;
r                1034 drivers/media/i2c/imx274.c 		sel->r.height = src_fmt->height;
r                1062 drivers/media/i2c/imx274.c 			       IMX274_ROUND(sel->r.width, h_step, sel->flags),
r                1070 drivers/media/i2c/imx274.c 			      IMX274_ROUND(sel->r.left, h_step, 0),
r                1074 drivers/media/i2c/imx274.c 				IMX274_ROUND(sel->r.height, 2, sel->flags),
r                1077 drivers/media/i2c/imx274.c 	new_crop.top = min_t(u32, IMX274_ROUND(sel->r.top, 2, 0),
r                1080 drivers/media/i2c/imx274.c 	sel->r = new_crop;
r                1123 drivers/media/i2c/imx274.c 					       &sel->r.width, &sel->r.height,
r                1132 drivers/media/i2c/imx274.c 			sel->r.top = 0;
r                1133 drivers/media/i2c/imx274.c 			sel->r.left = 0;
r                 261 drivers/media/i2c/mt9m001.c 	struct v4l2_rect rect = sel->r;
r                 308 drivers/media/i2c/mt9m001.c 		sel->r.left = MT9M001_COLUMN_SKIP;
r                 309 drivers/media/i2c/mt9m001.c 		sel->r.top = MT9M001_ROW_SKIP;
r                 310 drivers/media/i2c/mt9m001.c 		sel->r.width = MT9M001_MAX_WIDTH;
r                 311 drivers/media/i2c/mt9m001.c 		sel->r.height = MT9M001_MAX_HEIGHT;
r                 314 drivers/media/i2c/mt9m001.c 		sel->r = mt9m001->rect;
r                 359 drivers/media/i2c/mt9m001.c 		.r.left = mt9m001->rect.left,
r                 360 drivers/media/i2c/mt9m001.c 		.r.top = mt9m001->rect.top,
r                 361 drivers/media/i2c/mt9m001.c 		.r.width = mf->width,
r                 362 drivers/media/i2c/mt9m001.c 		.r.height = mf->height,
r                 422 drivers/media/i2c/mt9m032.c 	sel->r = *__mt9m032_get_pad_crop(sensor, cfg, sel->which);
r                 451 drivers/media/i2c/mt9m032.c 	rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN,
r                 453 drivers/media/i2c/mt9m032.c 	rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN,
r                 455 drivers/media/i2c/mt9m032.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
r                 457 drivers/media/i2c/mt9m032.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
r                 477 drivers/media/i2c/mt9m032.c 	sel->r = rect;
r                 457 drivers/media/i2c/mt9m111.c 	struct v4l2_rect rect = sel->r;
r                 507 drivers/media/i2c/mt9m111.c 		sel->r.left = MT9M111_MIN_DARK_COLS;
r                 508 drivers/media/i2c/mt9m111.c 		sel->r.top = MT9M111_MIN_DARK_ROWS;
r                 509 drivers/media/i2c/mt9m111.c 		sel->r.width = MT9M111_MAX_WIDTH;
r                 510 drivers/media/i2c/mt9m111.c 		sel->r.height = MT9M111_MAX_HEIGHT;
r                 513 drivers/media/i2c/mt9m111.c 		sel->r = mt9m111->rect;
r                 590 drivers/media/i2c/mt9p031.c 	sel->r = *__mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which);
r                 609 drivers/media/i2c/mt9p031.c 	rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN,
r                 611 drivers/media/i2c/mt9p031.c 	rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN,
r                 613 drivers/media/i2c/mt9p031.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
r                 616 drivers/media/i2c/mt9p031.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
r                 638 drivers/media/i2c/mt9p031.c 	sel->r = rect;
r                 421 drivers/media/i2c/mt9t001.c 	sel->r = *__mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which);
r                 440 drivers/media/i2c/mt9t001.c 	rect.left = clamp(ALIGN(sel->r.left, 2),
r                 443 drivers/media/i2c/mt9t001.c 	rect.top = clamp(ALIGN(sel->r.top, 2),
r                 446 drivers/media/i2c/mt9t001.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
r                 449 drivers/media/i2c/mt9t001.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
r                 471 drivers/media/i2c/mt9t001.c 	sel->r = rect;
r                 886 drivers/media/i2c/mt9t112.c 		sel->r.left = 0;
r                 887 drivers/media/i2c/mt9t112.c 		sel->r.top = 0;
r                 888 drivers/media/i2c/mt9t112.c 		sel->r.width = MAX_WIDTH;
r                 889 drivers/media/i2c/mt9t112.c 		sel->r.height = MAX_HEIGHT;
r                 892 drivers/media/i2c/mt9t112.c 		sel->r = priv->frame;
r                 905 drivers/media/i2c/mt9t112.c 	const struct v4l2_rect *rect = &sel->r;
r                 547 drivers/media/i2c/mt9v032.c 	sel->r = *__mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which);
r                 566 drivers/media/i2c/mt9v032.c 	rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1,
r                 569 drivers/media/i2c/mt9v032.c 	rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1,
r                 572 drivers/media/i2c/mt9v032.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
r                 575 drivers/media/i2c/mt9v032.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
r                 602 drivers/media/i2c/mt9v032.c 	sel->r = rect;
r                 576 drivers/media/i2c/ov2640.c #define OV2640_SIZE(n, w, h, r) \
r                 577 drivers/media/i2c/ov2640.c 	{.name = n, .width = w , .height = h, .regs = r }
r                1049 drivers/media/i2c/ov2640.c 		sel->r.left = 0;
r                1050 drivers/media/i2c/ov2640.c 		sel->r.top = 0;
r                1051 drivers/media/i2c/ov2640.c 		sel->r.width = UXGA_WIDTH;
r                1052 drivers/media/i2c/ov2640.c 		sel->r.height = UXGA_HEIGHT;
r                 218 drivers/media/i2c/ov2680.c #define ov2680_write_reg(s, r, v) \
r                 219 drivers/media/i2c/ov2680.c 	__ov2680_write_reg(s, r, OV2680_REG_VALUE_8BIT, v)
r                 221 drivers/media/i2c/ov2680.c #define ov2680_write_reg16(s, r, v) \
r                 222 drivers/media/i2c/ov2680.c 	__ov2680_write_reg(s, r, OV2680_REG_VALUE_16BIT, v)
r                 224 drivers/media/i2c/ov2680.c #define ov2680_write_reg24(s, r, v) \
r                 225 drivers/media/i2c/ov2680.c 	__ov2680_write_reg(s, r, OV2680_REG_VALUE_24BIT, v)
r                 260 drivers/media/i2c/ov2680.c #define ov2680_read_reg(s, r, v) \
r                 261 drivers/media/i2c/ov2680.c 	__ov2680_read_reg(s, r, OV2680_REG_VALUE_8BIT, v)
r                 263 drivers/media/i2c/ov2680.c #define ov2680_read_reg16(s, r, v) \
r                 264 drivers/media/i2c/ov2680.c 	__ov2680_read_reg(s, r, OV2680_REG_VALUE_16BIT, v)
r                 266 drivers/media/i2c/ov2680.c #define ov2680_read_reg24(s, r, v) \
r                 267 drivers/media/i2c/ov2680.c 	__ov2680_read_reg(s, r, OV2680_REG_VALUE_24BIT, v)
r                 981 drivers/media/i2c/ov5645.c 	sel->r = *__ov5645_get_pad_crop(ov5645, cfg, sel->pad,
r                 460 drivers/media/i2c/ov6650.c 		sel->r.left = DEF_HSTRT << 1;
r                 461 drivers/media/i2c/ov6650.c 		sel->r.top = DEF_VSTRT << 1;
r                 462 drivers/media/i2c/ov6650.c 		sel->r.width = W_CIF;
r                 463 drivers/media/i2c/ov6650.c 		sel->r.height = H_CIF;
r                 466 drivers/media/i2c/ov6650.c 		sel->r = priv->rect;
r                 485 drivers/media/i2c/ov6650.c 	v4l_bound_align_image(&sel->r.width, 2, W_CIF, 1,
r                 486 drivers/media/i2c/ov6650.c 			      &sel->r.height, 2, H_CIF, 1, 0);
r                 487 drivers/media/i2c/ov6650.c 	v4l_bound_align_image(&sel->r.left, DEF_HSTRT << 1,
r                 488 drivers/media/i2c/ov6650.c 			      (DEF_HSTRT << 1) + W_CIF - (__s32)sel->r.width, 1,
r                 489 drivers/media/i2c/ov6650.c 			      &sel->r.top, DEF_VSTRT << 1,
r                 490 drivers/media/i2c/ov6650.c 			      (DEF_VSTRT << 1) + H_CIF - (__s32)sel->r.height,
r                 493 drivers/media/i2c/ov6650.c 	ret = ov6650_reg_write(client, REG_HSTRT, sel->r.left >> 1);
r                 495 drivers/media/i2c/ov6650.c 		priv->rect.width += priv->rect.left - sel->r.left;
r                 496 drivers/media/i2c/ov6650.c 		priv->rect.left = sel->r.left;
r                 498 drivers/media/i2c/ov6650.c 				       (sel->r.left + sel->r.width) >> 1);
r                 501 drivers/media/i2c/ov6650.c 		priv->rect.width = sel->r.width;
r                 502 drivers/media/i2c/ov6650.c 		ret = ov6650_reg_write(client, REG_VSTRT, sel->r.top >> 1);
r                 505 drivers/media/i2c/ov6650.c 		priv->rect.height += priv->rect.top - sel->r.top;
r                 506 drivers/media/i2c/ov6650.c 		priv->rect.top = sel->r.top;
r                 508 drivers/media/i2c/ov6650.c 				       (sel->r.top + sel->r.height) >> 1);
r                 511 drivers/media/i2c/ov6650.c 		priv->rect.height = sel->r.height;
r                 575 drivers/media/i2c/ov6650.c 		.r.left = priv->rect.left + (priv->rect.width >> 1) -
r                 577 drivers/media/i2c/ov6650.c 		.r.top = priv->rect.top + (priv->rect.height >> 1) -
r                 579 drivers/media/i2c/ov6650.c 		.r.width = mf->width << half_scale,
r                 580 drivers/media/i2c/ov6650.c 		.r.height = mf->height << half_scale,
r                1127 drivers/media/i2c/ov7251.c 	sel->r = *__ov7251_get_pad_crop(ov7251, cfg, sel->pad,
r                1147 drivers/media/i2c/ov772x.c 	sel->r.left = 0;
r                1148 drivers/media/i2c/ov772x.c 	sel->r.top = 0;
r                1152 drivers/media/i2c/ov772x.c 		sel->r.width = priv->win->rect.width;
r                1153 drivers/media/i2c/ov772x.c 		sel->r.height = priv->win->rect.height;
r                 574 drivers/media/i2c/ov9640.c 	sel->r.left = 0;
r                 575 drivers/media/i2c/ov9640.c 	sel->r.top = 0;
r                 579 drivers/media/i2c/ov9640.c 		sel->r.width = W_SXGA;
r                 580 drivers/media/i2c/ov9640.c 		sel->r.height = H_SXGA;
r                 549 drivers/media/i2c/rj54n1cb0c.c 	const struct v4l2_rect *rect = &sel->r;
r                 592 drivers/media/i2c/rj54n1cb0c.c 		sel->r.left = RJ54N1_COLUMN_SKIP;
r                 593 drivers/media/i2c/rj54n1cb0c.c 		sel->r.top = RJ54N1_ROW_SKIP;
r                 594 drivers/media/i2c/rj54n1cb0c.c 		sel->r.width = RJ54N1_MAX_WIDTH;
r                 595 drivers/media/i2c/rj54n1cb0c.c 		sel->r.height = RJ54N1_MAX_HEIGHT;
r                 598 drivers/media/i2c/rj54n1cb0c.c 		sel->r = rj54n1->rect;
r                1424 drivers/media/i2c/s5c73m3/s5c73m3-core.c 		int r = regulator_enable(state->supplies[i].consumer);
r                1425 drivers/media/i2c/s5c73m3/s5c73m3-core.c 		if (r < 0)
r                1427 drivers/media/i2c/s5c73m3/s5c73m3-core.c 				 state->supplies[i].supply, r);
r                  37 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	int r;
r                  55 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	r = spi_sync(spi_dev, &msg);
r                  56 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	if (r < 0)
r                  57 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		dev_err(&spi_dev->dev, "%s spi_sync failed %d\n", __func__, r);
r                  59 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	return r;
r                  70 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	int r = 0;
r                  75 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		r = spi_xmit(spi_dev, (void *)addr + j, tx_size, SPI_DIR_TX);
r                  76 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		if (r < 0)
r                  77 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 			return r;
r                  82 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		r = spi_xmit(spi_dev, (void *)addr + j, extra, SPI_DIR_TX);
r                  83 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		if (r < 0)
r                  84 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 			return r;
r                  97 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	int r = 0;
r                 100 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		r = spi_xmit(spi_dev, addr + j, tx_size, SPI_DIR_RX);
r                 101 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		if (r < 0)
r                 102 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 			return r;
r                 114 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	int r;
r                 119 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	r = spi_setup(spi);
r                 120 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	if (r < 0) {
r                 122 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		return r;
r                 376 drivers/media/i2c/s5k4ecgx.c 				     const struct v4l2_rect *r)
r                 380 drivers/media/i2c/s5k4ecgx.c 	ret = s5k4ecgx_write(c, REG_G_PREV_IN_WIDTH, r->width);
r                 382 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREV_IN_HEIGHT, r->height);
r                 384 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREV_IN_XOFFS, r->left);
r                 386 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREV_IN_YOFFS, r->top);
r                 388 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAP_IN_WIDTH, r->width);
r                 390 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAP_IN_HEIGHT, r->height);
r                 392 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAP_IN_XOFFS, r->left);
r                 394 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAP_IN_YOFFS, r->top);
r                 401 drivers/media/i2c/s5k4ecgx.c 				    const struct v4l2_rect *r)
r                 405 drivers/media/i2c/s5k4ecgx.c 	ret = s5k4ecgx_write(c, REG_G_PREVZOOM_IN_WIDTH, r->width);
r                 407 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREVZOOM_IN_HEIGHT, r->height);
r                 409 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREVZOOM_IN_XOFFS, r->left);
r                 411 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_PREVZOOM_IN_YOFFS, r->top);
r                 413 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAPZOOM_IN_WIDTH, r->width);
r                 415 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAPZOOM_IN_HEIGHT, r->height);
r                 417 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAPZOOM_IN_XOFFS, r->left);
r                 419 drivers/media/i2c/s5k4ecgx.c 		ret = s5k4ecgx_write(c, REG_G_CAPZOOM_IN_YOFFS, r->top);
r                 422 drivers/media/i2c/s5k5baf.c 	__be16 w, r;
r                 428 drivers/media/i2c/s5k5baf.c 		  .len = 2, .buf = (u8 *)&r },
r                 437 drivers/media/i2c/s5k5baf.c 	res = be16_to_cpu(r);
r                 848 drivers/media/i2c/s5k5baf.c static void s5k5baf_rescale(struct v4l2_rect *r, const struct v4l2_rect *v,
r                 852 drivers/media/i2c/s5k5baf.c 	r->left = v->left * n->width / d->width;
r                 853 drivers/media/i2c/s5k5baf.c 	r->top = v->top * n->height / d->height;
r                 854 drivers/media/i2c/s5k5baf.c 	r->width = v->width * n->width / d->width;
r                 855 drivers/media/i2c/s5k5baf.c 	r->height = v->height * n->height / d->height;
r                 860 drivers/media/i2c/s5k5baf.c 	struct v4l2_rect *p, r;
r                 868 drivers/media/i2c/s5k5baf.c 	s5k5baf_rescale(&r, &state->crop_source, &state->crop_sink,
r                 870 drivers/media/i2c/s5k5baf.c 	s5k5baf_write_seq(state, REG_G_PREVZOOM_IN_WIDTH, r.width, r.height,
r                 871 drivers/media/i2c/s5k5baf.c 			  r.left, r.top);
r                 917 drivers/media/i2c/s5k5baf.c 	struct v4l2_rect *r = &state->crop_source;
r                 920 drivers/media/i2c/s5k5baf.c 			  r->width, r->height, reg_fmt,
r                1383 drivers/media/i2c/s5k5baf.c 		sel->r = s5k5baf_cis_rect;
r                1391 drivers/media/i2c/s5k5baf.c 			sel->r = *v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
r                1393 drivers/media/i2c/s5k5baf.c 			sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
r                1400 drivers/media/i2c/s5k5baf.c 		sel->r = state->crop_sink;
r                1403 drivers/media/i2c/s5k5baf.c 		sel->r = state->compose;
r                1406 drivers/media/i2c/s5k5baf.c 		sel->r = state->crop_source;
r                1412 drivers/media/i2c/s5k5baf.c 		sel->r.left = 0;
r                1413 drivers/media/i2c/s5k5baf.c 		sel->r.top = 0;
r                1433 drivers/media/i2c/s5k5baf.c static void s5k5baf_bound_rect(struct v4l2_rect *r, u32 width, u32 height)
r                1435 drivers/media/i2c/s5k5baf.c 	s5k5baf_bound_range(&r->left, &r->width, width);
r                1436 drivers/media/i2c/s5k5baf.c 	s5k5baf_bound_range(&r->top, &r->height, height);
r                1443 drivers/media/i2c/s5k5baf.c 	struct v4l2_rect *r, *br;
r                1448 drivers/media/i2c/s5k5baf.c 		r = rects[i];
r                1450 drivers/media/i2c/s5k5baf.c 		s5k5baf_bound_rect(r, br->width, br->height);
r                1476 drivers/media/i2c/s5k5baf.c 		sel->r.left = 0;
r                1477 drivers/media/i2c/s5k5baf.c 		sel->r.top = 0;
r                1487 drivers/media/i2c/s5k5baf.c 		s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);
r                1501 drivers/media/i2c/s5k5baf.c 			if (sel->r.width < state->crop_source.width)
r                1502 drivers/media/i2c/s5k5baf.c 				sel->r.width = state->crop_source.width;
r                1503 drivers/media/i2c/s5k5baf.c 			if (sel->r.height < state->crop_source.height)
r                1504 drivers/media/i2c/s5k5baf.c 				sel->r.height = state->crop_source.height;
r                1506 drivers/media/i2c/s5k5baf.c 			sel->r.width = state->crop_source.width;
r                1507 drivers/media/i2c/s5k5baf.c 			sel->r.height = state->crop_source.height;
r                1510 drivers/media/i2c/s5k5baf.c 	s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);
r                 649 drivers/media/i2c/s5k6aa.c 	struct v4l2_rect *r = &s5k6aa->ccd_rect;
r                 652 drivers/media/i2c/s5k6aa.c 	ret = s5k6aa_write(c, REG_G_PREVZOOM_IN_WIDTH, r->width);
r                 654 drivers/media/i2c/s5k6aa.c 		ret = s5k6aa_write(c, REG_G_PREVZOOM_IN_HEIGHT, r->height);
r                 656 drivers/media/i2c/s5k6aa.c 		ret = s5k6aa_write(c, REG_G_PREVZOOM_IN_XOFFS, r->left);
r                 658 drivers/media/i2c/s5k6aa.c 		ret = s5k6aa_write(c, REG_G_PREVZOOM_IN_YOFFS, r->top);
r                1179 drivers/media/i2c/s5k6aa.c 	sel->r = *rect;
r                1209 drivers/media/i2c/s5k6aa.c 	v4l_bound_align_image(&sel->r.width, mf->width,
r                1211 drivers/media/i2c/s5k6aa.c 			      &sel->r.height, mf->height,
r                1214 drivers/media/i2c/s5k6aa.c 	max_x = (S5K6AA_WIN_WIDTH_MAX - sel->r.width) & ~1;
r                1215 drivers/media/i2c/s5k6aa.c 	max_y = (S5K6AA_WIN_HEIGHT_MAX - sel->r.height) & ~1;
r                1217 drivers/media/i2c/s5k6aa.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x);
r                1218 drivers/media/i2c/s5k6aa.c 	sel->r.top  = clamp_t(unsigned int, sel->r.top, 0, max_y);
r                1220 drivers/media/i2c/s5k6aa.c 	*crop_r = sel->r;
r                1633 drivers/media/i2c/smiapp/smiapp-core.c 		struct v4l2_rect *r;
r                1636 drivers/media/i2c/smiapp/smiapp-core.c 			r = &ssd->crop[ssd->source_pad];
r                1638 drivers/media/i2c/smiapp/smiapp-core.c 			r = &ssd->sink_fmt;
r                1641 drivers/media/i2c/smiapp/smiapp-core.c 		fmt->format.width = r->width;
r                1642 drivers/media/i2c/smiapp/smiapp-core.c 		fmt->format.height = r->height;
r                1901 drivers/media/i2c/smiapp/smiapp-core.c 		crops[SMIAPP_PAD_SINK]->width, sel->r.width,
r                1902 drivers/media/i2c/smiapp/smiapp-core.c 		crops[SMIAPP_PAD_SINK]->height, sel->r.height, sel->flags);
r                1909 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
r                1912 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height, sel->flags);
r                1925 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = (crops[SMIAPP_PAD_SINK]->width / binh) & ~1;
r                1926 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = (crops[SMIAPP_PAD_SINK]->height / binv) & ~1;
r                1954 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = min_t(unsigned int, sel->r.width,
r                1956 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = min_t(unsigned int, sel->r.height,
r                1960 drivers/media/i2c/smiapp/smiapp-core.c 		* sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN] / sel->r.width;
r                1962 drivers/media/i2c/smiapp/smiapp-core.c 		* sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN] / sel->r.height;
r                2000 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
r                2002 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height,
r                2021 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
r                2025 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height,
r                2035 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width =
r                2040 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.height =
r                2046 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.height = crops[SMIAPP_PAD_SINK]->height;
r                2064 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = 0;
r                2065 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = 0;
r                2072 drivers/media/i2c/smiapp/smiapp-core.c 	*comp = sel->r;
r                2156 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.left = 0;
r                2157 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.top = 0;
r                2160 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = min(sel->r.width, src_size->width);
r                2161 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = min(sel->r.height, src_size->height);
r                2163 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = min_t(int, sel->r.left, src_size->width - sel->r.width);
r                2164 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = min_t(int, sel->r.top, src_size->height - sel->r.height);
r                2166 drivers/media/i2c/smiapp/smiapp-core.c 	*crops[sel->pad] = sel->r;
r                2176 drivers/media/i2c/smiapp/smiapp-core.c 				    struct v4l2_rect *r)
r                2178 drivers/media/i2c/smiapp/smiapp-core.c 	r->top = 0;
r                2179 drivers/media/i2c/smiapp/smiapp-core.c 	r->left = 0;
r                2180 drivers/media/i2c/smiapp/smiapp-core.c 	r->width = ssd->sensor->limits[SMIAPP_LIMIT_X_ADDR_MAX] + 1;
r                2181 drivers/media/i2c/smiapp/smiapp-core.c 	r->height = ssd->sensor->limits[SMIAPP_LIMIT_Y_ADDR_MAX] + 1;
r                2216 drivers/media/i2c/smiapp/smiapp-core.c 			smiapp_get_native_size(ssd, &sel->r);
r                2218 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r = sink_fmt;
r                2220 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r = *comp;
r                2224 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r = *crops[sel->pad];
r                2227 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r = *comp;
r                2260 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = max(0, sel->r.left & ~1);
r                2261 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = max(0, sel->r.top & ~1);
r                2262 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = SMIAPP_ALIGN_DIM(sel->r.width, sel->flags);
r                2263 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height =	SMIAPP_ALIGN_DIM(sel->r.height, sel->flags);
r                2265 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = max_t(unsigned int,
r                2267 drivers/media/i2c/smiapp/smiapp-core.c 			     sel->r.width);
r                2268 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = max_t(unsigned int,
r                2270 drivers/media/i2c/smiapp/smiapp-core.c 			      sel->r.height);
r                  10 drivers/media/i2c/smiapp/smiapp-reg-defs.h #define SMIAPP_REG_MK_U8(r) ((SMIAPP_REG_8BIT << 16) | (r))
r                  11 drivers/media/i2c/smiapp/smiapp-reg-defs.h #define SMIAPP_REG_MK_U16(r) ((SMIAPP_REG_16BIT << 16) | (r))
r                  12 drivers/media/i2c/smiapp/smiapp-reg-defs.h #define SMIAPP_REG_MK_U32(r) ((SMIAPP_REG_32BIT << 16) | (r))
r                  14 drivers/media/i2c/smiapp/smiapp-reg-defs.h #define SMIAPP_REG_MK_F32(r) (SMIAPP_REG_FLAG_FLOAT | (SMIAPP_REG_32BIT << 16) | (r))
r                  74 drivers/media/i2c/smiapp/smiapp-regs.c 	int r;
r                  84 drivers/media/i2c/smiapp/smiapp-regs.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                  85 drivers/media/i2c/smiapp/smiapp-regs.c 	if (r != 1) {
r                  86 drivers/media/i2c/smiapp/smiapp-regs.c 		if (r >= 0)
r                  87 drivers/media/i2c/smiapp/smiapp-regs.c 			r = -EBUSY;
r                  93 drivers/media/i2c/smiapp/smiapp-regs.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                  94 drivers/media/i2c/smiapp/smiapp-regs.c 	if (r != 1) {
r                  95 drivers/media/i2c/smiapp/smiapp-regs.c 		if (r >= 0)
r                  96 drivers/media/i2c/smiapp/smiapp-regs.c 			r = -EBUSY;
r                 120 drivers/media/i2c/smiapp/smiapp-regs.c 	dev_err(&client->dev, "read from offset 0x%x error %d\n", offset, r);
r                 122 drivers/media/i2c/smiapp/smiapp-regs.c 	return r;
r                 220 drivers/media/i2c/smiapp/smiapp-regs.c 	int r;
r                 262 drivers/media/i2c/smiapp/smiapp-regs.c 		r = i2c_transfer(client->adapter, &msg, 1);
r                 263 drivers/media/i2c/smiapp/smiapp-regs.c 		if (r == 1) {
r                 275 drivers/media/i2c/smiapp/smiapp-regs.c 		"wrote 0x%x to offset 0x%x error %d\n", val, offset, r);
r                 277 drivers/media/i2c/smiapp/smiapp-regs.c 	return r;
r                 109 drivers/media/i2c/st-mipid02.c 	} r;
r                 404 drivers/media/i2c/st-mipid02.c 	bridge->r.clk_lane_reg1 |= (2000000000 / link_freq) << 2;
r                 420 drivers/media/i2c/st-mipid02.c 	bridge->r.clk_lane_reg1 |= (polarities[0] << 1) | CLK_ENABLE;
r                 438 drivers/media/i2c/st-mipid02.c 		bridge->r.data_lane0_reg1 = 1 << 1;
r                 439 drivers/media/i2c/st-mipid02.c 	bridge->r.data_lane0_reg1 |= DATA_ENABLE;
r                 453 drivers/media/i2c/st-mipid02.c 		bridge->r.data_lane1_reg1 = 1 << 1;
r                 454 drivers/media/i2c/st-mipid02.c 	bridge->r.data_lane1_reg1 |= DATA_ENABLE;
r                 481 drivers/media/i2c/st-mipid02.c 	bridge->r.mode_reg1 |= are_lanes_swap ? MODE_DATA_SWAP : 0;
r                 482 drivers/media/i2c/st-mipid02.c 	bridge->r.mode_reg1 |= (nb - 1) << 1;
r                 491 drivers/media/i2c/st-mipid02.c 	bridge->r.data_selection_ctrl = SELECTION_MANUAL_WIDTH;
r                 492 drivers/media/i2c/st-mipid02.c 	bridge->r.pix_width_ctrl = ep->bus.parallel.bus_width;
r                 493 drivers/media/i2c/st-mipid02.c 	bridge->r.pix_width_ctrl_emb = ep->bus.parallel.bus_width;
r                 495 drivers/media/i2c/st-mipid02.c 		bridge->r.mode_reg2 |= MODE_HSYNC_ACTIVE_HIGH;
r                 497 drivers/media/i2c/st-mipid02.c 		bridge->r.mode_reg2 |= MODE_VSYNC_ACTIVE_HIGH;
r                 506 drivers/media/i2c/st-mipid02.c 	bridge->r.data_id_rreg = 0;
r                 509 drivers/media/i2c/st-mipid02.c 		bridge->r.data_selection_ctrl |= SELECTION_MANUAL_DATA;
r                 514 drivers/media/i2c/st-mipid02.c 		bridge->r.data_id_rreg = data_type;
r                 550 drivers/media/i2c/st-mipid02.c 	memset(&bridge->r, 0, sizeof(bridge->r));
r                 564 drivers/media/i2c/st-mipid02.c 		bridge->r.clk_lane_reg1);
r                 571 drivers/media/i2c/st-mipid02.c 		bridge->r.data_lane0_reg1);
r                 579 drivers/media/i2c/st-mipid02.c 		bridge->r.data_lane1_reg1);
r                 587 drivers/media/i2c/st-mipid02.c 		MODE_NO_BYPASS | bridge->r.mode_reg1);
r                 591 drivers/media/i2c/st-mipid02.c 		bridge->r.mode_reg2);
r                 595 drivers/media/i2c/st-mipid02.c 		bridge->r.data_id_rreg);
r                 599 drivers/media/i2c/st-mipid02.c 		bridge->r.data_selection_ctrl);
r                 603 drivers/media/i2c/st-mipid02.c 		bridge->r.pix_width_ctrl);
r                 607 drivers/media/i2c/st-mipid02.c 		bridge->r.pix_width_ctrl_emb);
r                1018 drivers/media/i2c/tvp5150.c 	struct v4l2_rect rect = sel->r;
r                1085 drivers/media/i2c/tvp5150.c 		sel->r.left = 0;
r                1086 drivers/media/i2c/tvp5150.c 		sel->r.top = 0;
r                1087 drivers/media/i2c/tvp5150.c 		sel->r.width = TVP5150_H_MAX;
r                1095 drivers/media/i2c/tvp5150.c 			sel->r.height = TVP5150_V_MAX_525_60;
r                1097 drivers/media/i2c/tvp5150.c 			sel->r.height = TVP5150_V_MAX_OTHERS;
r                1100 drivers/media/i2c/tvp5150.c 		sel->r = decoder->rect;
r                 735 drivers/media/i2c/tw9910.c 	sel->r.left	= 0;
r                 736 drivers/media/i2c/tw9910.c 	sel->r.top	= 0;
r                 738 drivers/media/i2c/tw9910.c 		sel->r.width	= 640;
r                 739 drivers/media/i2c/tw9910.c 		sel->r.height	= 480;
r                 741 drivers/media/i2c/tw9910.c 		sel->r.width	= 768;
r                 742 drivers/media/i2c/tw9910.c 		sel->r.height	= 576;
r                 117 drivers/media/pci/b2c2/flexcop-dma.c 	flexcop_ibi_register r = (dma_idx & FC_DMA_1) ? dma1_00c : dma2_01c;
r                 118 drivers/media/pci/b2c2/flexcop-dma.c 	flexcop_ibi_value v = fc->read_ibi_reg(fc, r);
r                 122 drivers/media/pci/b2c2/flexcop-dma.c 	fc->write_ibi_reg(fc, r, v);
r                 164 drivers/media/pci/b2c2/flexcop-dma.c 	flexcop_ibi_register r = (dma_idx & FC_DMA_1) ? dma1_004 : dma2_014;
r                 165 drivers/media/pci/b2c2/flexcop-dma.c 	flexcop_ibi_value v = fc->read_ibi_reg(fc, r);
r                 171 drivers/media/pci/b2c2/flexcop-dma.c 	fc->write_ibi_reg(fc, r, v);
r                  77 drivers/media/pci/b2c2/flexcop-pci.c 		flexcop_ibi_register r)
r                  81 drivers/media/pci/b2c2/flexcop-pci.c 	v.raw = readl(fc_pci->io_mem + r);
r                  83 drivers/media/pci/b2c2/flexcop-pci.c 	if (lastrreg != r || lastrval != v.raw) {
r                  84 drivers/media/pci/b2c2/flexcop-pci.c 		lastrreg = r; lastrval = v.raw;
r                  85 drivers/media/pci/b2c2/flexcop-pci.c 		deb_reg("new rd: %3x: %08x\n", r, v.raw);
r                  92 drivers/media/pci/b2c2/flexcop-pci.c 		flexcop_ibi_register r, flexcop_ibi_value v)
r                  96 drivers/media/pci/b2c2/flexcop-pci.c 	if (lastwreg != r || lastwval != v.raw) {
r                  97 drivers/media/pci/b2c2/flexcop-pci.c 		lastwreg = r; lastwval = v.raw;
r                  98 drivers/media/pci/b2c2/flexcop-pci.c 		deb_reg("new wr: %3x: %08x\n", r, v.raw);
r                 101 drivers/media/pci/b2c2/flexcop-pci.c 	writel(v.raw, fc_pci->io_mem + r);
r                2772 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = btv->crop[!!fh->do_crop].rect;
r                2775 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = bttv_tvnorms[btv->tvnorm].cropcap.defrect;
r                2778 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = bttv_tvnorms[btv->tvnorm].cropcap.bounds;
r                2827 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.left = clamp_t(s32, sel->r.left, b_left, b_right - 48);
r                2830 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.width = clamp_t(s32, sel->r.width,
r                2833 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.top = clamp_t(s32, sel->r.top, b_top, b_bottom - 32);
r                2837 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.height = clamp_t(s32, sel->r.height,
r                2843 drivers/media/pci/bt8xx/bttv-driver.c 	sel->r = c.rect;
r                  27 drivers/media/pci/cobalt/cobalt-flash.c 	map_word r;
r                  29 drivers/media/pci/cobalt/cobalt-flash.c 	r.x[0] = cobalt_bus_read32(map->virt, ADRS(offset));
r                  31 drivers/media/pci/cobalt/cobalt-flash.c 		r.x[0] >>= 16;
r                  33 drivers/media/pci/cobalt/cobalt-flash.c 		r.x[0] &= 0x0000ffff;
r                  35 drivers/media/pci/cobalt/cobalt-flash.c 	return r;
r                1109 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.top = 0;
r                1110 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.left = 0;
r                1111 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.width = timings.bt.width;
r                1112 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.height = timings.bt.height;
r                 157 drivers/media/pci/cx18/cx18-i2c.c 	u32 r = cx18_read_reg(cx, addr);
r                 160 drivers/media/pci/cx18/cx18-i2c.c 		cx18_write_reg(cx, r | SETSCL_BIT, addr);
r                 162 drivers/media/pci/cx18/cx18-i2c.c 		cx18_write_reg(cx, r & ~SETSCL_BIT, addr);
r                 170 drivers/media/pci/cx18/cx18-i2c.c 	u32 r = cx18_read_reg(cx, addr);
r                 173 drivers/media/pci/cx18/cx18-i2c.c 		cx18_write_reg(cx, r | SETSDL_BIT, addr);
r                 175 drivers/media/pci/cx18/cx18-i2c.c 		cx18_write_reg(cx, r & ~SETSDL_BIT, addr);
r                  72 drivers/media/pci/cx18/cx18-io.c 	u32 r;
r                  73 drivers/media/pci/cx18/cx18-io.c 	r = cx18_read_reg(cx, SW2_INT_ENABLE_CPU);
r                  74 drivers/media/pci/cx18/cx18-io.c 	cx18_write_reg(cx, r & ~val, SW2_INT_ENABLE_CPU);
r                  72 drivers/media/pci/cx18/cx18-io.h 	u32 r;
r                  76 drivers/media/pci/cx18/cx18-io.h 		r = cx18_readl(cx, addr);
r                  77 drivers/media/pci/cx18/cx18-io.h 		if (r == 0xffffffff && eval != 0xffffffff)
r                  79 drivers/media/pci/cx18/cx18-io.h 		if (eval == (r & mask))
r                 455 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.top = sel->r.left = 0;
r                 456 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.width = 720;
r                 457 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.height = cx->is_50hz ? 576 : 480;
r                 681 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.top = 0;
r                 682 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.left = 0;
r                 683 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.width = 720;
r                 684 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.height = norm_maxh(dev->tvnorm);
r                 416 drivers/media/pci/ddbridge/ddbridge-sx8.c 	int r;
r                 419 drivers/media/pci/ddbridge/ddbridge-sx8.c 		r = set_parameters(fe);
r                 420 drivers/media/pci/ddbridge/ddbridge-sx8.c 		if (r)
r                 421 drivers/media/pci/ddbridge/ddbridge-sx8.c 			return r;
r                 423 drivers/media/pci/ddbridge/ddbridge-sx8.c 	r = read_status(fe, status);
r                 424 drivers/media/pci/ddbridge/ddbridge-sx8.c 	if (r)
r                 425 drivers/media/pci/ddbridge/ddbridge-sx8.c 		return r;
r                 275 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	s32 r;
r                 285 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = accinv * b * (uiinv >> LIMIT_SHIFT);
r                 286 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = r / (s32)freq;
r                 288 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r += accinv * a;
r                 290 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                 301 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r;
r                 313 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = v4l2_querymenu(q->sensor->ctrl_handler, &qm);
r                 314 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                 316 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                 363 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int i, r;
r                 371 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_csi2_calc_timing(cio2, q, &timing);
r                 372 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                 373 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                 991 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r;
r                 996 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = pm_runtime_get_sync(&cio2->pci_dev->dev);
r                 997 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r < 0) {
r                 998 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_info(&cio2->pci_dev->dev, "failed to set power %d\n", r);
r                1000 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                1003 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = media_pipeline_start(&q->vdev.entity, &q->pipe);
r                1004 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1007 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_hw_init(cio2, q);
r                1008 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1012 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = v4l2_subdev_call(q->sensor, video, s_stream, 1);
r                1013 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1025 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	dev_dbg(&cio2->pci_dev->dev, "failed to start streaming (%d)\n", r);
r                1029 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                1557 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r;
r                1581 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_fbpt_init(cio2, q);
r                1582 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1591 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = media_entity_pads_init(&subdev->entity, CIO2_PADS, q->subdev_pads);
r                1592 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1594 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed initialize subdev media entity (%d)\n", r);
r                1600 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = media_entity_pads_init(&vdev->entity, 1, &q->vdev_pad);
r                1601 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1603 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed initialize videodev media entity (%d)\n", r);
r                1615 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = v4l2_device_register_subdev(&cio2->v4l2_dev, subdev);
r                1616 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1618 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed initialize subdev (%d)\n", r);
r                1632 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = vb2_queue_init(vbq);
r                1633 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1635 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed to initialize videobuf2 queue (%d)\n", r);
r                1650 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
r                1651 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1653 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed to register video device (%d)\n", r);
r                1658 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = media_create_pad_link(
r                1661 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1681 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                1697 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int i, r;
r                1700 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		r = cio2_queue_init(cio2, &cio2->queue[i]);
r                1701 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		if (r)
r                1711 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                1727 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r = pci_enable_msi(dev);
r                1729 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1730 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_err(&dev->dev, "failed to enable MSI (%d)\n", r);
r                1731 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                1747 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r;
r                1754 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = pcim_enable_device(pci_dev);
r                1755 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1756 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_err(&pci_dev->dev, "failed to enable device (%d)\n", r);
r                1757 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                1763 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = pcim_iomap_regions(pci_dev, 1 << CIO2_PCI_BAR, pci_name(pci_dev));
r                1764 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1765 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_err(&pci_dev->dev, "failed to remap I/O memory (%d)\n", r);
r                1781 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = pci_set_dma_mask(pci_dev, CIO2_DMA_MASK);
r                1782 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1783 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_err(&pci_dev->dev, "failed to set DMA mask (%d)\n", r);
r                1787 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_pci_config_setup(pci_dev);
r                1788 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1791 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_fbpt_init_dummy(cio2);
r                1792 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1793 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                1805 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = media_device_register(&cio2->media_dev);
r                1806 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r < 0)
r                1810 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = v4l2_device_register(&pci_dev->dev, &cio2->v4l2_dev);
r                1811 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1813 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed to register V4L2 device (%d)\n", r);
r                1817 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_queues_init(cio2);
r                1818 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1824 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_parse_firmware(cio2);
r                1825 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                1828 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = devm_request_irq(&pci_dev->dev, pci_dev->irq, cio2_irq,
r                1830 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r) {
r                1831 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		dev_err(&pci_dev->dev, "failed to request IRQ (%d)\n", r);
r                1853 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                2015 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	int r = 0;
r                2022 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = pm_runtime_force_resume(&cio2->pci_dev->dev);
r                2023 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r < 0) {
r                2025 drivers/media/pci/intel/ipu3/ipu3-cio2.c 			"failed to set power %d\n", r);
r                2026 drivers/media/pci/intel/ipu3/ipu3-cio2.c 		return r;
r                2029 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	r = cio2_hw_init(cio2, q);
r                2030 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	if (r)
r                2033 drivers/media/pci/intel/ipu3/ipu3-cio2.c 	return r;
r                 837 drivers/media/pci/ivtv/ivtv-ioctl.c 	struct v4l2_rect r = { 0, 0, 720, 0 };
r                 852 drivers/media/pci/ivtv/ivtv-ioctl.c 	r.height = itv->is_out_50hz ? 576 : 480;
r                 854 drivers/media/pci/ivtv/ivtv-ioctl.c 		r.width = yi->osd_full_w;
r                 855 drivers/media/pci/ivtv/ivtv-ioctl.c 		r.height = yi->osd_full_h;
r                 857 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.width = clamp(sel->r.width, 16U, r.width);
r                 858 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.height = clamp(sel->r.height, 16U, r.height);
r                 859 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width);
r                 860 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height);
r                 863 drivers/media/pci/ivtv/ivtv-ioctl.c 		yi->main_rect = sel->r;
r                 867 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.width, sel->r.height, sel->r.left, sel->r.top)) {
r                 868 drivers/media/pci/ivtv/ivtv-ioctl.c 		itv->main_rect = sel->r;
r                 880 drivers/media/pci/ivtv/ivtv-ioctl.c 	struct v4l2_rect r = { 0, 0, 720, 0 };
r                 887 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.top = sel->r.left = 0;
r                 888 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.width = 720;
r                 889 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.height = itv->is_50hz ? 576 : 480;
r                 903 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r = yi->main_rect;
r                 905 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r = itv->main_rect;
r                 909 drivers/media/pci/ivtv/ivtv-ioctl.c 		r.height = itv->is_out_50hz ? 576 : 480;
r                 911 drivers/media/pci/ivtv/ivtv-ioctl.c 			r.width = yi->osd_full_w;
r                 912 drivers/media/pci/ivtv/ivtv-ioctl.c 			r.height = yi->osd_full_h;
r                 914 drivers/media/pci/ivtv/ivtv-ioctl.c 		sel->r = r;
r                1630 drivers/media/pci/saa7134/saa7134-video.c 		sel->r = dev->crop_current;
r                1633 drivers/media/pci/saa7134/saa7134-video.c 		sel->r = dev->crop_defrect;
r                1636 drivers/media/pci/saa7134/saa7134-video.c 		sel->r  = dev->crop_bounds;
r                1662 drivers/media/pci/saa7134/saa7134-video.c 	*c = sel->r;
r                1676 drivers/media/pci/saa7134/saa7134-video.c 	sel->r = *c;
r                 250 drivers/media/pci/saa7164/saa7164-cmd.c 	int r;
r                 281 drivers/media/pci/saa7164/saa7164-cmd.c 			r = time_before(jiffies, stamp + (HZ * waitsecs));
r                 282 drivers/media/pci/saa7164/saa7164-cmd.c 			if (r)
r                 288 drivers/media/pci/saa7164/saa7164-cmd.c 				__func__, seqno, r,
r                 945 drivers/media/pci/ttpci/av7110_hw.c static int OSDSetColor(struct av7110 *av7110, u8 color, u8 r, u8 g, u8 b, u8 blend)
r                 952 drivers/media/pci/ttpci/av7110_hw.c 	yuv = blend ? RGB2YUV(r,g,b) : 0;
r                1088 drivers/media/pci/ttpci/av7110_hw.c 			u8 r, g = 0, b = 0, blend = 0;
r                1091 drivers/media/pci/ttpci/av7110_hw.c 				if (get_user(r, colors + i * 4) ||
r                1098 drivers/media/pci/ttpci/av7110_hw.c 				ret = OSDSetColor(av7110, dc->color + i, r, g, b, blend);
r                 634 drivers/media/platform/am437x/am437x-vpfe.c 	      ((bcomp->r & VPFE_BLK_COMP_MASK) <<
r                2098 drivers/media/platform/am437x/am437x-vpfe.c 		s->r.left = 0;
r                2099 drivers/media/platform/am437x/am437x-vpfe.c 		s->r.top = 0;
r                2100 drivers/media/platform/am437x/am437x-vpfe.c 		s->r.width = vpfe_standards[vpfe->std_index].width;
r                2101 drivers/media/platform/am437x/am437x-vpfe.c 		s->r.height = vpfe_standards[vpfe->std_index].height;
r                2105 drivers/media/platform/am437x/am437x-vpfe.c 		s->r = vpfe->crop;
r                2134 drivers/media/platform/am437x/am437x-vpfe.c 	struct v4l2_rect r = s->r;
r                2146 drivers/media/platform/am437x/am437x-vpfe.c 	v4l_bound_align_image(&r.width, 0, cr.width, 0,
r                2147 drivers/media/platform/am437x/am437x-vpfe.c 			      &r.height, 0, cr.height, 0, 0);
r                2149 drivers/media/platform/am437x/am437x-vpfe.c 	r.left = clamp_t(unsigned int, r.left, 0, cr.width - r.width);
r                2150 drivers/media/platform/am437x/am437x-vpfe.c 	r.top  = clamp_t(unsigned int, r.top, 0, cr.height - r.height);
r                2152 drivers/media/platform/am437x/am437x-vpfe.c 	if (s->flags & V4L2_SEL_FLAG_LE && !enclosed_rectangle(&r, &s->r))
r                2155 drivers/media/platform/am437x/am437x-vpfe.c 	if (s->flags & V4L2_SEL_FLAG_GE && !enclosed_rectangle(&s->r, &r))
r                2158 drivers/media/platform/am437x/am437x-vpfe.c 	s->r = vpfe->crop = r;
r                2160 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe_ccdc_set_image_window(&vpfe->ccdc, &r, vpfe->bpp);
r                2161 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe->fmt.fmt.pix.width = r.width;
r                2162 drivers/media/platform/am437x/am437x-vpfe.c 	vpfe->fmt.fmt.pix.height = r.height;
r                2168 drivers/media/platform/am437x/am437x-vpfe.c 		 r.left, r.top, r.width, r.height, cr.width, cr.height);
r                 626 drivers/media/platform/coda/coda-bit.c 	struct v4l2_rect *r;
r                 644 drivers/media/platform/coda/coda-bit.c 		r = &q_data_src->rect;
r                 646 drivers/media/platform/coda/coda-bit.c 		if (r->width % 16 || r->height % 16) {
r                 647 drivers/media/platform/coda/coda-bit.c 			u32 crop_right = round_up(r->width, 16) -  r->width;
r                 648 drivers/media/platform/coda/coda-bit.c 			u32 crop_bottom = round_up(r->height, 16) - r->height;
r                 686 drivers/media/platform/coda/coda-common.c 		      struct v4l2_rect *r)
r                 710 drivers/media/platform/coda/coda-common.c 	if (r) {
r                 711 drivers/media/platform/coda/coda-common.c 		q_data->rect = *r;
r                 761 drivers/media/platform/coda/coda-common.c 	struct v4l2_rect r;
r                 769 drivers/media/platform/coda/coda-common.c 	r.left = 0;
r                 770 drivers/media/platform/coda/coda-common.c 	r.top = 0;
r                 771 drivers/media/platform/coda/coda-common.c 	r.width = q_data_src->width;
r                 772 drivers/media/platform/coda/coda-common.c 	r.height = q_data_src->height;
r                 774 drivers/media/platform/coda/coda-common.c 	ret = coda_s_fmt(ctx, f, &r);
r                 918 drivers/media/platform/coda/coda-common.c 	struct v4l2_rect r, *rsel;
r                 924 drivers/media/platform/coda/coda-common.c 	r.left = 0;
r                 925 drivers/media/platform/coda/coda-common.c 	r.top = 0;
r                 926 drivers/media/platform/coda/coda-common.c 	r.width = q_data->width;
r                 927 drivers/media/platform/coda/coda-common.c 	r.height = q_data->height;
r                 933 drivers/media/platform/coda/coda-common.c 		rsel = &r;
r                 941 drivers/media/platform/coda/coda-common.c 		rsel = &r;
r                 952 drivers/media/platform/coda/coda-common.c 	s->r = *rsel;
r                 971 drivers/media/platform/coda/coda-common.c 			s->r.left = 0;
r                 972 drivers/media/platform/coda/coda-common.c 			s->r.top = 0;
r                 973 drivers/media/platform/coda/coda-common.c 			s->r.width = clamp(s->r.width, 2U, q_data->width);
r                 974 drivers/media/platform/coda/coda-common.c 			s->r.height = clamp(s->r.height, 2U, q_data->height);
r                 977 drivers/media/platform/coda/coda-common.c 				s->r.width = round_up(s->r.width, 2);
r                 978 drivers/media/platform/coda/coda-common.c 				s->r.height = round_up(s->r.height, 2);
r                 980 drivers/media/platform/coda/coda-common.c 				s->r.width = round_down(s->r.width, 2);
r                 981 drivers/media/platform/coda/coda-common.c 				s->r.height = round_down(s->r.height, 2);
r                 984 drivers/media/platform/coda/coda-common.c 			q_data->rect = s->r;
r                 987 drivers/media/platform/coda/coda-common.c 				 s->r.width, s->r.height);
r                 352 drivers/media/platform/davinci/dm355_ccdc.c 		((bcomp->r & CCDC_BLK_COMP_MASK) <<
r                 363 drivers/media/platform/davinci/dm644x_ccdc.c 	      ((bcomp->r & CCDC_BLK_COMP_MASK) <<
r                 649 drivers/media/platform/davinci/vpbe_display.c 	struct v4l2_rect rect = sel->r;
r                 705 drivers/media/platform/davinci/vpbe_display.c 	sel->r = rect;
r                 716 drivers/media/platform/davinci/vpbe_display.c 	struct v4l2_rect *rect = &sel->r;
r                1545 drivers/media/platform/davinci/vpfe_capture.c 		sel->r = vpfe_dev->crop;
r                1549 drivers/media/platform/davinci/vpfe_capture.c 		sel->r.width = vpfe_standards[vpfe_dev->std_index].width;
r                1550 drivers/media/platform/davinci/vpfe_capture.c 		sel->r.height = vpfe_standards[vpfe_dev->std_index].height;
r                1562 drivers/media/platform/davinci/vpfe_capture.c 	struct v4l2_rect rect = sel->r;
r                1610 drivers/media/platform/davinci/vpfe_capture.c 	sel->r = rect;
r                 526 drivers/media/platform/exynos-gsc/gsc-core.c 	if (s->r.top < 0 || s->r.left < 0) {
r                 530 drivers/media/platform/exynos-gsc/gsc-core.c 	pr_debug("user put w: %d, h: %d", s->r.width, s->r.height);
r                 541 drivers/media/platform/exynos-gsc/gsc-core.c 	tmp_w = s->r.width;
r                 542 drivers/media/platform/exynos-gsc/gsc-core.c 	tmp_h = s->r.height;
r                 566 drivers/media/platform/exynos-gsc/gsc-core.c 			tmp_w = s->r.height;
r                 567 drivers/media/platform/exynos-gsc/gsc-core.c 			tmp_h = s->r.width;
r                 584 drivers/media/platform/exynos-gsc/gsc-core.c 					&s->r.width, &s->r.height);
r                 587 drivers/media/platform/exynos-gsc/gsc-core.c 					&s->r.width, &s->r.height);
r                 592 drivers/media/platform/exynos-gsc/gsc-core.c 	if (s->r.left + tmp_w > max_w)
r                 593 drivers/media/platform/exynos-gsc/gsc-core.c 		s->r.left = max_w - tmp_w;
r                 594 drivers/media/platform/exynos-gsc/gsc-core.c 	if (s->r.top + tmp_h > max_h)
r                 595 drivers/media/platform/exynos-gsc/gsc-core.c 		s->r.top = max_h - tmp_h;
r                 598 drivers/media/platform/exynos-gsc/gsc-core.c 	    s->r.left & 1)
r                 599 drivers/media/platform/exynos-gsc/gsc-core.c 		s->r.left -= 1;
r                 602 drivers/media/platform/exynos-gsc/gsc-core.c 		 s->r.left, s->r.top, s->r.width, s->r.height, max_w, max_h);
r                 468 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.left = 0;
r                 469 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.top = 0;
r                 470 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.width = frame->f_width;
r                 471 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.height = frame->f_height;
r                 476 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.left = frame->crop.left;
r                 477 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.top = frame->crop.top;
r                 478 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.width = frame->crop.width;
r                 479 drivers/media/platform/exynos-gsc/gsc-m2m.c 		s->r.height = frame->crop.height;
r                 504 drivers/media/platform/exynos-gsc/gsc-m2m.c 	    !is_rectangle_enclosed(&sel.r, &s->r))
r                 508 drivers/media/platform/exynos-gsc/gsc-m2m.c 	    !is_rectangle_enclosed(&s->r, &sel.r))
r                 511 drivers/media/platform/exynos-gsc/gsc-m2m.c 	s->r = sel.r;
r                 533 drivers/media/platform/exynos-gsc/gsc-m2m.c 			ret = gsc_check_scaler_ratio(variant, sel.r.width,
r                 534 drivers/media/platform/exynos-gsc/gsc-m2m.c 				sel.r.height, ctx->d_frame.crop.width,
r                 540 drivers/media/platform/exynos-gsc/gsc-m2m.c 				ctx->s_frame.crop.height, sel.r.width,
r                 541 drivers/media/platform/exynos-gsc/gsc-m2m.c 				sel.r.height, ctx->gsc_ctrls.rotate->val,
r                 551 drivers/media/platform/exynos-gsc/gsc-m2m.c 	frame->crop = sel.r;
r                 650 drivers/media/platform/exynos4-is/fimc-capture.c 				       struct v4l2_rect *r,
r                 664 drivers/media/platform/exynos4-is/fimc-capture.c 		r->width  = sink->f_width;
r                 665 drivers/media/platform/exynos4-is/fimc-capture.c 		r->height = sink->f_height;
r                 666 drivers/media/platform/exynos4-is/fimc-capture.c 		r->left   = r->top = 0;
r                 707 drivers/media/platform/exynos4-is/fimc-capture.c 	v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1,
r                 708 drivers/media/platform/exynos4-is/fimc-capture.c 			      &r->height, min_h, max_h, align_h,
r                 711 drivers/media/platform/exynos4-is/fimc-capture.c 	r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width);
r                 712 drivers/media/platform/exynos4-is/fimc-capture.c 	r->top  = clamp_t(u32, r->top, 0, sink->f_height - r->height);
r                 713 drivers/media/platform/exynos4-is/fimc-capture.c 	r->left = round_down(r->left, var->hor_offs_align);
r                 716 drivers/media/platform/exynos4-is/fimc-capture.c 	    target, r->left, r->top, r->width, r->height,
r                1282 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.left = 0;
r                1283 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.top = 0;
r                1284 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.width = f->o_width;
r                1285 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.height = f->o_height;
r                1292 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.left = f->offs_h;
r                1293 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.top = f->offs_v;
r                1294 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.width = f->width;
r                1295 drivers/media/platform/exynos4-is/fimc-capture.c 		s->r.height = f->height;
r                1320 drivers/media/platform/exynos4-is/fimc-capture.c 	struct v4l2_rect rect = s->r;
r                1337 drivers/media/platform/exynos4-is/fimc-capture.c 	    !enclosed_rectangle(&rect, &s->r))
r                1341 drivers/media/platform/exynos4-is/fimc-capture.c 	    !enclosed_rectangle(&s->r, &rect))
r                1344 drivers/media/platform/exynos4-is/fimc-capture.c 	s->r = rect;
r                1346 drivers/media/platform/exynos4-is/fimc-capture.c 	set_frame_crop(f, s->r.left, s->r.top, s->r.width,
r                1347 drivers/media/platform/exynos4-is/fimc-capture.c 		       s->r.height);
r                1603 drivers/media/platform/exynos4-is/fimc-capture.c 	struct v4l2_rect *r = &sel->r;
r                1616 drivers/media/platform/exynos4-is/fimc-capture.c 		r->width = f->o_width;
r                1617 drivers/media/platform/exynos4-is/fimc-capture.c 		r->height = f->o_height;
r                1618 drivers/media/platform/exynos4-is/fimc-capture.c 		r->left = 0;
r                1619 drivers/media/platform/exynos4-is/fimc-capture.c 		r->top = 0;
r                1636 drivers/media/platform/exynos4-is/fimc-capture.c 		sel->r = *try_sel;
r                1638 drivers/media/platform/exynos4-is/fimc-capture.c 		r->left = f->offs_h;
r                1639 drivers/media/platform/exynos4-is/fimc-capture.c 		r->top = f->offs_v;
r                1640 drivers/media/platform/exynos4-is/fimc-capture.c 		r->width = f->width;
r                1641 drivers/media/platform/exynos4-is/fimc-capture.c 		r->height = f->height;
r                1645 drivers/media/platform/exynos4-is/fimc-capture.c 	    sel->pad, r->left, r->top, r->width, r->height,
r                1659 drivers/media/platform/exynos4-is/fimc-capture.c 	struct v4l2_rect *r = &sel->r;
r                1667 drivers/media/platform/exynos4-is/fimc-capture.c 	fimc_capture_try_selection(ctx, r, V4L2_SEL_TGT_CROP);
r                1683 drivers/media/platform/exynos4-is/fimc-capture.c 		*try_sel = sel->r;
r                1686 drivers/media/platform/exynos4-is/fimc-capture.c 		set_frame_crop(f, r->left, r->top, r->width, r->height);
r                1693 drivers/media/platform/exynos4-is/fimc-capture.c 	dbg("target %#x: (%d,%d)/%dx%d", sel->target, r->left, r->top,
r                1694 drivers/media/platform/exynos4-is/fimc-capture.c 	    r->width, r->height);
r                 602 drivers/media/platform/exynos4-is/fimc-lite.c static void fimc_lite_try_crop(struct fimc_lite *fimc, struct v4l2_rect *r)
r                 606 drivers/media/platform/exynos4-is/fimc-lite.c 	v4l_bound_align_image(&r->width, 0, frame->f_width, 0,
r                 607 drivers/media/platform/exynos4-is/fimc-lite.c 			      &r->height, 0, frame->f_height, 0, 0);
r                 610 drivers/media/platform/exynos4-is/fimc-lite.c 	r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width);
r                 611 drivers/media/platform/exynos4-is/fimc-lite.c 	r->left = round_down(r->left, fimc->dd->win_hor_offs_align);
r                 612 drivers/media/platform/exynos4-is/fimc-lite.c 	r->top  = clamp_t(u32, r->top, 0, frame->f_height - r->height);
r                 615 drivers/media/platform/exynos4-is/fimc-lite.c 		 r->left, r->top, r->width, r->height,
r                 619 drivers/media/platform/exynos4-is/fimc-lite.c static void fimc_lite_try_compose(struct fimc_lite *fimc, struct v4l2_rect *r)
r                 626 drivers/media/platform/exynos4-is/fimc-lite.c 	r->width = crop_rect->width;
r                 627 drivers/media/platform/exynos4-is/fimc-lite.c 	r->height = crop_rect->height;
r                 630 drivers/media/platform/exynos4-is/fimc-lite.c 	r->left = clamp_t(u32, r->left, 0, frame->f_width - r->width);
r                 631 drivers/media/platform/exynos4-is/fimc-lite.c 	r->left = round_down(r->left, fimc->dd->out_hor_offs_align);
r                 632 drivers/media/platform/exynos4-is/fimc-lite.c 	r->top  = clamp_t(u32, r->top, 0, fimc->out_frame.f_height - r->height);
r                 635 drivers/media/platform/exynos4-is/fimc-lite.c 		 r->left, r->top, r->width, r->height,
r                 896 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.left = 0;
r                 897 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.top = 0;
r                 898 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.width = f->f_width;
r                 899 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.height = f->f_height;
r                 903 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = f->rect;
r                 915 drivers/media/platform/exynos4-is/fimc-lite.c 	struct v4l2_rect rect = sel->r;
r                 925 drivers/media/platform/exynos4-is/fimc-lite.c 	    !enclosed_rectangle(&rect, &sel->r))
r                 929 drivers/media/platform/exynos4-is/fimc-lite.c 	    !enclosed_rectangle(&sel->r, &rect))
r                 932 drivers/media/platform/exynos4-is/fimc-lite.c 	sel->r = rect;
r                1142 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
r                1148 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = f->rect;
r                1150 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.left = 0;
r                1151 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.top = 0;
r                1152 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.width = f->f_width;
r                1153 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.height = f->f_height;
r                1176 drivers/media/platform/exynos4-is/fimc-lite.c 	fimc_lite_try_crop(fimc, &sel->r);
r                1179 drivers/media/platform/exynos4-is/fimc-lite.c 		*v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
r                1183 drivers/media/platform/exynos4-is/fimc-lite.c 		f->rect = sel->r;
r                1185 drivers/media/platform/exynos4-is/fimc-lite.c 		fimc->out_frame.rect = sel->r;
r                 410 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.left = frame->offs_h;
r                 411 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.top = frame->offs_v;
r                 412 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.width = frame->width;
r                 413 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.height = frame->height;
r                 419 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.left = 0;
r                 420 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.top = 0;
r                 421 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.width = frame->o_width;
r                 422 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.height = frame->o_height;
r                 438 drivers/media/platform/exynos4-is/fimc-m2m.c 	if (s->r.top < 0 || s->r.left < 0) {
r                 467 drivers/media/platform/exynos4-is/fimc-m2m.c 	v4l_bound_align_image(&s->r.width, min_size, f->o_width,
r                 469 drivers/media/platform/exynos4-is/fimc-m2m.c 			      &s->r.height, min_size, f->o_height,
r                 473 drivers/media/platform/exynos4-is/fimc-m2m.c 	if (s->r.left + s->r.width > f->o_width)
r                 474 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.left = f->o_width - s->r.width;
r                 475 drivers/media/platform/exynos4-is/fimc-m2m.c 	if (s->r.top + s->r.height > f->o_height)
r                 476 drivers/media/platform/exynos4-is/fimc-m2m.c 		s->r.top = f->o_height - s->r.height;
r                 478 drivers/media/platform/exynos4-is/fimc-m2m.c 	s->r.left = round_down(s->r.left, min_size);
r                 479 drivers/media/platform/exynos4-is/fimc-m2m.c 	s->r.top  = round_down(s->r.top, fimc->variant->hor_offs_align);
r                 482 drivers/media/platform/exynos4-is/fimc-m2m.c 	    s->r.left, s->r.top, s->r.width, s->r.height,
r                 505 drivers/media/platform/exynos4-is/fimc-m2m.c 		ret = fimc_check_scaler_ratio(ctx, s->r.width,
r                 506 drivers/media/platform/exynos4-is/fimc-m2m.c 				s->r.height, ctx->d_frame.width,
r                 510 drivers/media/platform/exynos4-is/fimc-m2m.c 				ctx->s_frame.height, s->r.width,
r                 511 drivers/media/platform/exynos4-is/fimc-m2m.c 				s->r.height, ctx->rotation);
r                 518 drivers/media/platform/exynos4-is/fimc-m2m.c 	f->offs_h = s->r.left;
r                 519 drivers/media/platform/exynos4-is/fimc-m2m.c 	f->offs_v = s->r.top;
r                 520 drivers/media/platform/exynos4-is/fimc-m2m.c 	f->width  = s->r.width;
r                 521 drivers/media/platform/exynos4-is/fimc-m2m.c 	f->height = s->r.height;
r                1386 drivers/media/platform/fsl-viu.c 	struct resource r;
r                1392 drivers/media/platform/fsl-viu.c 	ret = of_address_to_resource(op->dev.of_node, 0, &r);
r                1405 drivers/media/platform/fsl-viu.c 	if (!devm_request_mem_region(&op->dev, r.start,
r                1413 drivers/media/platform/fsl-viu.c 	viu_regs = devm_ioremap(&op->dev, r.start, sizeof(struct viu_reg));
r                 465 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.width = ctx->out_q.w;
r                 466 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.height = ctx->out_q.h;
r                 467 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.left = 0;
r                 468 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.top = 0;
r                 472 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.width = ctx->cap_q.w;
r                 473 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.height = ctx->cap_q.h;
r                 474 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.left = 0;
r                 475 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.top = 0;
r                 493 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.left = 0;
r                 494 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.top = 0;
r                 495 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.width = ctx->out_q.w;
r                 496 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 		s->r.height = ctx->out_q.h;
r                 279 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			    struct v4l2_rect *r)
r                 287 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (r->top < 0 || r->left < 0) {
r                 294 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		    r->width, r->height);
r                 299 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	new_w = r->width;
r                 300 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	new_h = r->height;
r                 316 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			new_w = r->height;
r                 317 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			new_h = r->width;
r                 334 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 					  &r->width, &r->height);
r                 337 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 					  &r->width, &r->height);
r                 341 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (r->left + new_w > max_w)
r                 342 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		r->left = max_w - new_w;
r                 343 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (r->top + new_h > max_h)
r                 344 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		r->top = max_h - new_h;
r                 346 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (r->left & 1)
r                 347 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		r->left -= 1;
r                 350 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		    r->left, r->top, r->width,
r                 351 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		    r->height, max_w, max_h);
r                 828 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.left = 0;
r                 829 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.top = 0;
r                 830 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.width = frame->width;
r                 831 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.height = frame->height;
r                 836 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.left = frame->crop.left;
r                 837 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.top = frame->crop.top;
r                 838 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.width = frame->crop.width;
r                 839 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		s->r.height = frame->crop.height;
r                 891 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	new_r = s->r;
r                 922 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	s->r = new_r;
r                 770 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.left = 0;
r                 771 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.top = 0;
r                 772 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.width = ctx->picinfo.pic_w;
r                 773 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.height = ctx->picinfo.pic_h;
r                 776 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.left = 0;
r                 777 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.top = 0;
r                 778 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.width = ctx->picinfo.buf_w;
r                 779 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.height = ctx->picinfo.buf_h;
r                 782 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		if (vdec_if_get_param(ctx, GET_PARAM_CROP_INFO, &(s->r))) {
r                 784 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			s->r.left = 0;
r                 785 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			s->r.top = 0;
r                 786 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			s->r.width = q_data->visible_width;
r                 787 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 			s->r.height = q_data->visible_height;
r                 796 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.left = 0;
r                 797 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.top = 0;
r                 798 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.width = q_data->visible_width;
r                 799 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.height = q_data->visible_height;
r                 816 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.left = 0;
r                 817 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.top = 0;
r                 818 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.width = ctx->picinfo.pic_w;
r                 819 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c 		s->r.height = ctx->picinfo.pic_h;
r                 636 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.top = 0;
r                 637 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.left = 0;
r                 638 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.width = q_data->coded_width;
r                 639 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.height = q_data->coded_height;
r                 642 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.top = 0;
r                 643 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.left = 0;
r                 644 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.width = q_data->visible_width;
r                 645 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.height = q_data->visible_height;
r                 670 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.top = 0;
r                 671 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.left = 0;
r                 672 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.width = min(s->r.width, q_data->coded_width);
r                 673 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		s->r.height = min(s->r.height, q_data->coded_height);
r                 674 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		q_data->visible_width = s->r.width;
r                 675 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c 		q_data->visible_height = s->r.height;
r                 799 drivers/media/platform/omap/omap_vout.c 		sel->r = vout->crop;
r                 802 drivers/media/platform/omap/omap_vout.c 		omap_vout_default_crop(&vout->pix, &vout->fbuf, &sel->r);
r                 806 drivers/media/platform/omap/omap_vout.c 		sel->r.width = pix->width & ~1;
r                 807 drivers/media/platform/omap/omap_vout.c 		sel->r.height = pix->height & ~1;
r                 854 drivers/media/platform/omap/omap_vout.c 				 &vout->fbuf, &sel->r);
r                1316 drivers/media/platform/omap3isp/isp.c 	int r;
r                1319 drivers/media/platform/omap3isp/isp.c 	r = clk_prepare_enable(isp->clock[ISP_CLK_CAM_ICK]);
r                1320 drivers/media/platform/omap3isp/isp.c 	if (r) {
r                1324 drivers/media/platform/omap3isp/isp.c 	r = clk_set_rate(isp->clock[ISP_CLK_CAM_MCLK], CM_CAM_MCLK_HZ);
r                1325 drivers/media/platform/omap3isp/isp.c 	if (r) {
r                1329 drivers/media/platform/omap3isp/isp.c 	r = clk_prepare_enable(isp->clock[ISP_CLK_CAM_MCLK]);
r                1330 drivers/media/platform/omap3isp/isp.c 	if (r) {
r                1339 drivers/media/platform/omap3isp/isp.c 	r = clk_prepare_enable(isp->clock[ISP_CLK_CSI2_FCK]);
r                1340 drivers/media/platform/omap3isp/isp.c 	if (r) {
r                1351 drivers/media/platform/omap3isp/isp.c 	return r;
r                2231 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.left = 0;
r                2232 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.top = 0;
r                2233 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.width = INT_MAX;
r                2234 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.height = INT_MAX;
r                2237 drivers/media/platform/omap3isp/ispccdc.c 		ccdc_try_crop(ccdc, format, &sel->r);
r                2241 drivers/media/platform/omap3isp/ispccdc.c 		sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which);
r                2281 drivers/media/platform/omap3isp/ispccdc.c 		sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which);
r                2286 drivers/media/platform/omap3isp/ispccdc.c 	ccdc_try_crop(ccdc, format, &sel->r);
r                2287 drivers/media/platform/omap3isp/ispccdc.c 	*__ccdc_get_crop(ccdc, cfg, sel->which) = sel->r;
r                1940 drivers/media/platform/omap3isp/isppreview.c 		sel->r.left = 0;
r                1941 drivers/media/platform/omap3isp/isppreview.c 		sel->r.top = 0;
r                1942 drivers/media/platform/omap3isp/isppreview.c 		sel->r.width = INT_MAX;
r                1943 drivers/media/platform/omap3isp/isppreview.c 		sel->r.height = INT_MAX;
r                1947 drivers/media/platform/omap3isp/isppreview.c 		preview_try_crop(prev, format, &sel->r);
r                1951 drivers/media/platform/omap3isp/isppreview.c 		sel->r = *__preview_get_crop(prev, cfg, sel->which);
r                1991 drivers/media/platform/omap3isp/isppreview.c 		sel->r = *__preview_get_crop(prev, cfg, sel->which);
r                1996 drivers/media/platform/omap3isp/isppreview.c 	preview_try_crop(prev, format, &sel->r);
r                1997 drivers/media/platform/omap3isp/isppreview.c 	*__preview_get_crop(prev, cfg, sel->which) = sel->r;
r                1241 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left = 0;
r                1242 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.top = 0;
r                1243 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.width = INT_MAX;
r                1244 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.height = INT_MAX;
r                1246 drivers/media/platform/omap3isp/ispresizer.c 		resizer_try_crop(format_sink, format_source, &sel->r);
r                1247 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
r                1251 drivers/media/platform/omap3isp/ispresizer.c 		sel->r = *__resizer_get_crop(res, cfg, sel->which);
r                1252 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
r                1298 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height,
r                1309 drivers/media/platform/omap3isp/ispresizer.c 	resizer_try_crop(format_sink, &format_source, &sel->r);
r                1310 drivers/media/platform/omap3isp/ispresizer.c 	*__resizer_get_crop(res, cfg, sel->which) = sel->r;
r                1311 drivers/media/platform/omap3isp/ispresizer.c 	resizer_calc_ratios(res, &sel->r, &format_source, &ratio);
r                1316 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height,
r                1335 drivers/media/platform/omap3isp/ispresizer.c 	res->crop.active = sel->r;
r                 806 drivers/media/platform/omap3isp/ispvideo.c 		sel->r = sdsel.r;
r                 816 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.left = 0;
r                 817 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.top = 0;
r                 818 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.width = format.format.width;
r                 819 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.height = format.format.height;
r                 833 drivers/media/platform/omap3isp/ispvideo.c 		.r = sel->r,
r                 859 drivers/media/platform/omap3isp/ispvideo.c 		sel->r = sdsel.r;
r                1088 drivers/media/platform/qcom/camss/camss-csid.c 	struct resource *r;
r                1109 drivers/media/platform/qcom/camss/camss-csid.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
r                1110 drivers/media/platform/qcom/camss/camss-csid.c 	csid->base = devm_ioremap_resource(dev, r);
r                1118 drivers/media/platform/qcom/camss/camss-csid.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
r                1120 drivers/media/platform/qcom/camss/camss-csid.c 	if (!r) {
r                1125 drivers/media/platform/qcom/camss/camss-csid.c 	csid->irq = r->start;
r                 543 drivers/media/platform/qcom/camss/camss-csiphy.c 	struct resource *r;
r                 565 drivers/media/platform/qcom/camss/camss-csiphy.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
r                 566 drivers/media/platform/qcom/camss/camss-csiphy.c 	csiphy->base = devm_ioremap_resource(dev, r);
r                 572 drivers/media/platform/qcom/camss/camss-csiphy.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[1]);
r                 573 drivers/media/platform/qcom/camss/camss-csiphy.c 	csiphy->base_clk_mux = devm_ioremap_resource(dev, r);
r                 581 drivers/media/platform/qcom/camss/camss-csiphy.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
r                 583 drivers/media/platform/qcom/camss/camss-csiphy.c 	if (!r) {
r                 588 drivers/media/platform/qcom/camss/camss-csiphy.c 	csiphy->irq = r->start;
r                1068 drivers/media/platform/qcom/camss/camss-ispif.c 	struct resource *r;
r                1104 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
r                1105 drivers/media/platform/qcom/camss/camss-ispif.c 	ispif->base = devm_ioremap_resource(dev, r);
r                1111 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[1]);
r                1112 drivers/media/platform/qcom/camss/camss-ispif.c 	ispif->base_clk_mux = devm_ioremap_resource(dev, r);
r                1120 drivers/media/platform/qcom/camss/camss-ispif.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res->interrupt);
r                1122 drivers/media/platform/qcom/camss/camss-ispif.c 	if (!r) {
r                1127 drivers/media/platform/qcom/camss/camss-ispif.c 	ispif->irq = r->start;
r                 136 drivers/media/platform/qcom/camss/camss-vfe-4-1.c #define VFE_0_RDI_CFG_x_RDI_Mr_FRAME_BASED_EN(r)	BIT(16 + (r))
r                1804 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.r.width = fmt->format.width;
r                1805 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.r.height = fmt->format.height;
r                1843 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.left = 0;
r                1844 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.top = 0;
r                1845 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.width = fmt.format.width;
r                1846 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.height = fmt.format.height;
r                1853 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r = *rect;
r                1865 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.left = rect->left;
r                1866 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.top = rect->top;
r                1867 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.width = rect->width;
r                1868 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.height = rect->height;
r                1875 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r = *rect;
r                1911 drivers/media/platform/qcom/camss/camss-vfe.c 		vfe_try_compose(line, cfg, &sel->r, sel->which);
r                1912 drivers/media/platform/qcom/camss/camss-vfe.c 		*rect = sel->r;
r                1918 drivers/media/platform/qcom/camss/camss-vfe.c 		crop.r = *rect;
r                1928 drivers/media/platform/qcom/camss/camss-vfe.c 		vfe_try_crop(line, cfg, &sel->r, sel->which);
r                1929 drivers/media/platform/qcom/camss/camss-vfe.c 		*rect = sel->r;
r                1985 drivers/media/platform/qcom/camss/camss-vfe.c 	struct resource *r;
r                2005 drivers/media/platform/qcom/camss/camss-vfe.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res->reg[0]);
r                2006 drivers/media/platform/qcom/camss/camss-vfe.c 	vfe->base = devm_ioremap_resource(dev, r);
r                2014 drivers/media/platform/qcom/camss/camss-vfe.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
r                2016 drivers/media/platform/qcom/camss/camss-vfe.c 	if (!r) {
r                2021 drivers/media/platform/qcom/camss/camss-vfe.c 	vfe->irq = r->start;
r                 227 drivers/media/platform/qcom/venus/core.c 	struct resource *r;
r                 237 drivers/media/platform/qcom/venus/core.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 238 drivers/media/platform/qcom/venus/core.c 	core->base = devm_ioremap_resource(dev, r);
r                  70 drivers/media/platform/qcom/venus/firmware.c 	struct resource r;
r                  85 drivers/media/platform/qcom/venus/firmware.c 	ret = of_address_to_resource(node, 0, &r);
r                  99 drivers/media/platform/qcom/venus/firmware.c 	*mem_phys = r.start;
r                 100 drivers/media/platform/qcom/venus/firmware.c 	*mem_size = resource_size(&r);
r                 107 drivers/media/platform/qcom/venus/firmware.c 	mem_va = memremap(r.start, *mem_size, MEMREMAP_WC);
r                 110 drivers/media/platform/qcom/venus/firmware.c 			&r.start, *mem_size);
r                 343 drivers/media/platform/qcom/venus/vdec.c 		s->r.width = inst->out_width;
r                 344 drivers/media/platform/qcom/venus/vdec.c 		s->r.height = inst->out_height;
r                 350 drivers/media/platform/qcom/venus/vdec.c 		s->r.width = inst->width;
r                 351 drivers/media/platform/qcom/venus/vdec.c 		s->r.height = inst->height;
r                 357 drivers/media/platform/qcom/venus/vdec.c 		s->r.width = inst->out_width;
r                 358 drivers/media/platform/qcom/venus/vdec.c 		s->r.height = inst->out_height;
r                 364 drivers/media/platform/qcom/venus/vdec.c 	s->r.top = 0;
r                 365 drivers/media/platform/qcom/venus/vdec.c 	s->r.left = 0;
r                 455 drivers/media/platform/qcom/venus/venc.c 		s->r.width = inst->width;
r                 456 drivers/media/platform/qcom/venus/venc.c 		s->r.height = inst->height;
r                 459 drivers/media/platform/qcom/venus/venc.c 		s->r.width = inst->out_width;
r                 460 drivers/media/platform/qcom/venus/venc.c 		s->r.height = inst->out_height;
r                 466 drivers/media/platform/qcom/venus/venc.c 	s->r.top = 0;
r                 467 drivers/media/platform/qcom/venus/venc.c 	s->r.left = 0;
r                 482 drivers/media/platform/qcom/venus/venc.c 		if (s->r.width != inst->out_width ||
r                 483 drivers/media/platform/qcom/venus/venc.c 		    s->r.height != inst->out_height ||
r                 484 drivers/media/platform/qcom/venus/venc.c 		    s->r.top != 0 || s->r.left != 0)
r                 325 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.left = s->r.top = 0;
r                 326 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.width = vin->source.width;
r                 327 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.height = vin->source.height;
r                 330 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r = vin->crop;
r                 334 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.left = s->r.top = 0;
r                 335 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.width = vin->format.width;
r                 336 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r.height = vin->format.height;
r                 339 drivers/media/platform/rcar-vin/rcar-v4l2.c 		s->r = vin->compose;
r                 353 drivers/media/platform/rcar-vin/rcar-v4l2.c 	struct v4l2_rect r = s->r;
r                 363 drivers/media/platform/rcar-vin/rcar-v4l2.c 	v4l2_rect_set_min_size(&r, &min_rect);
r                 371 drivers/media/platform/rcar-vin/rcar-v4l2.c 		v4l2_rect_map_inside(&r, &max_rect);
r                 373 drivers/media/platform/rcar-vin/rcar-v4l2.c 		v4l_bound_align_image(&r.width, 6, vin->source.width, 0,
r                 374 drivers/media/platform/rcar-vin/rcar-v4l2.c 				      &r.height, 2, vin->source.height, 0, 0);
r                 376 drivers/media/platform/rcar-vin/rcar-v4l2.c 		r.top  = clamp_t(s32, r.top, 0, vin->source.height - r.height);
r                 377 drivers/media/platform/rcar-vin/rcar-v4l2.c 		r.left = clamp_t(s32, r.left, 0, vin->source.width - r.width);
r                 379 drivers/media/platform/rcar-vin/rcar-v4l2.c 		vin->crop = s->r = r;
r                 382 drivers/media/platform/rcar-vin/rcar-v4l2.c 			r.width, r.height, r.left, r.top,
r                 390 drivers/media/platform/rcar-vin/rcar-v4l2.c 		v4l2_rect_map_inside(&r, &max_rect);
r                 397 drivers/media/platform/rcar-vin/rcar-v4l2.c 		while ((r.top * vin->format.bytesperline) & HW_BUFFER_MASK)
r                 398 drivers/media/platform/rcar-vin/rcar-v4l2.c 			r.top--;
r                 401 drivers/media/platform/rcar-vin/rcar-v4l2.c 		while ((r.left * fmt->bpp) & HW_BUFFER_MASK)
r                 402 drivers/media/platform/rcar-vin/rcar-v4l2.c 			r.left--;
r                 404 drivers/media/platform/rcar-vin/rcar-v4l2.c 		vin->compose = s->r = r;
r                 407 drivers/media/platform/rcar-vin/rcar-v4l2.c 			r.width, r.height, r.left, r.top,
r                 598 drivers/media/platform/rockchip/rga/rga.c 		s->r = f->crop;
r                 600 drivers/media/platform/rockchip/rga/rga.c 		s->r.left = 0;
r                 601 drivers/media/platform/rockchip/rga/rga.c 		s->r.top = 0;
r                 602 drivers/media/platform/rockchip/rga/rga.c 		s->r.width = f->width;
r                 603 drivers/media/platform/rockchip/rga/rga.c 		s->r.height = f->height;
r                 646 drivers/media/platform/rockchip/rga/rga.c 	if (s->r.top < 0 || s->r.left < 0) {
r                 652 drivers/media/platform/rockchip/rga/rga.c 	if (s->r.left + s->r.width > f->width ||
r                 653 drivers/media/platform/rockchip/rga/rga.c 	    s->r.top + s->r.height > f->height ||
r                 654 drivers/media/platform/rockchip/rga/rga.c 	    s->r.width < MIN_WIDTH || s->r.height < MIN_HEIGHT) {
r                 659 drivers/media/platform/rockchip/rga/rga.c 	f->crop = s->r;
r                 988 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left = 0;
r                 989 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.top = 0;
r                 990 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.width = vp->out_frame.f_width;
r                 991 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.height = vp->out_frame.f_height;
r                 995 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = vp->out_frame.rect;
r                1003 drivers/media/platform/s3c-camif/camif-capture.c 				struct v4l2_rect *r)
r                1007 drivers/media/platform/s3c-camif/camif-capture.c 		*r = vp->out_frame.rect;
r                1019 drivers/media/platform/s3c-camif/camif-capture.c 	struct v4l2_rect rect = sel->r;
r                1028 drivers/media/platform/s3c-camif/camif-capture.c 	sel->r = rect;
r                1036 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height);
r                1361 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
r                1368 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = *crop;
r                1370 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.width = mf->width;
r                1371 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.height = mf->height;
r                1372 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left = 0;
r                1373 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.top = 0;
r                1385 drivers/media/platform/s3c-camif/camif-capture.c static void __camif_try_crop(struct camif_dev *camif, struct v4l2_rect *r)
r                1389 drivers/media/platform/s3c-camif/camif-capture.c 	unsigned int left = 2 * r->left;
r                1390 drivers/media/platform/s3c-camif/camif-capture.c 	unsigned int top = 2 * r->top;
r                1399 drivers/media/platform/s3c-camif/camif-capture.c 	v4l_bound_align_image(&r->width, 0, mf->width,
r                1401 drivers/media/platform/s3c-camif/camif-capture.c 			      &r->height, 0, mf->height, 1, 0);
r                1403 drivers/media/platform/s3c-camif/camif-capture.c 	v4l_bound_align_image(&left, 0, mf->width - r->width,
r                1405 drivers/media/platform/s3c-camif/camif-capture.c 			      &top, 0, mf->height - r->height, 2, 0);
r                1407 drivers/media/platform/s3c-camif/camif-capture.c 	r->left = left / 2;
r                1408 drivers/media/platform/s3c-camif/camif-capture.c 	r->top = top / 2;
r                1409 drivers/media/platform/s3c-camif/camif-capture.c 	r->width = mf->width - left;
r                1410 drivers/media/platform/s3c-camif/camif-capture.c 	r->height = mf->height - top;
r                1422 drivers/media/platform/s3c-camif/camif-capture.c 			if ((or->width > r->width) == (or->height > r->height))
r                1424 drivers/media/platform/s3c-camif/camif-capture.c 			*r = camif->camif_crop;
r                1431 drivers/media/platform/s3c-camif/camif-capture.c 		 r->left, r->top, r->width, r->height, mf->width, mf->height);
r                1446 drivers/media/platform/s3c-camif/camif-capture.c 	__camif_try_crop(camif, &sel->r);
r                1449 drivers/media/platform/s3c-camif/camif-capture.c 		*v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
r                1455 drivers/media/platform/s3c-camif/camif-capture.c 		*crop = sel->r;
r                  73 drivers/media/platform/s5p-g2d/g2d-hw.c void g2d_set_rop4(struct g2d_dev *d, u32 r)
r                  75 drivers/media/platform/s5p-g2d/g2d-hw.c 	w(r, ROP4_REG);
r                  78 drivers/media/platform/s5p-g2d/g2d-hw.c void g2d_set_flip(struct g2d_dev *d, u32 r)
r                  80 drivers/media/platform/s5p-g2d/g2d-hw.c 	w(r, SRC_MSK_DIRECT_REG);
r                 427 drivers/media/platform/s5p-g2d/g2d.c 		s->r.left = f->o_height;
r                 428 drivers/media/platform/s5p-g2d/g2d.c 		s->r.top = f->o_width;
r                 429 drivers/media/platform/s5p-g2d/g2d.c 		s->r.width = f->c_width;
r                 430 drivers/media/platform/s5p-g2d/g2d.c 		s->r.height = f->c_height;
r                 436 drivers/media/platform/s5p-g2d/g2d.c 		s->r.left = 0;
r                 437 drivers/media/platform/s5p-g2d/g2d.c 		s->r.top = 0;
r                 438 drivers/media/platform/s5p-g2d/g2d.c 		s->r.width = f->width;
r                 439 drivers/media/platform/s5p-g2d/g2d.c 		s->r.height = f->height;
r                 466 drivers/media/platform/s5p-g2d/g2d.c 	if (s->r.top < 0 || s->r.left < 0) {
r                 489 drivers/media/platform/s5p-g2d/g2d.c 	f->c_width	= s->r.width;
r                 490 drivers/media/platform/s5p-g2d/g2d.c 	f->c_height	= s->r.height;
r                 491 drivers/media/platform/s5p-g2d/g2d.c 	f->o_width	= s->r.left;
r                 492 drivers/media/platform/s5p-g2d/g2d.c 	f->o_height	= s->r.top;
r                  80 drivers/media/platform/s5p-g2d/g2d.h void g2d_set_rop4(struct g2d_dev *d, u32 r);
r                  81 drivers/media/platform/s5p-g2d/g2d.h void g2d_set_flip(struct g2d_dev *d, u32 r);
r                1582 drivers/media/platform/s5p-jpeg/jpeg-core.c 				   struct v4l2_rect *r);
r                1707 drivers/media/platform/s5p-jpeg/jpeg-core.c 				   struct v4l2_rect *r)
r                1711 drivers/media/platform/s5p-jpeg/jpeg-core.c 	w_ratio = ctx->out_q.w / r->width;
r                1712 drivers/media/platform/s5p-jpeg/jpeg-core.c 	h_ratio = ctx->out_q.h / r->height;
r                1726 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->width = round_down(ctx->out_q.w / ctx->scale_factor, 2);
r                1727 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->height = round_down(ctx->out_q.h / ctx->scale_factor, 2);
r                1729 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.width = r->width;
r                1730 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.height = r->height;
r                1753 drivers/media/platform/s5p-jpeg/jpeg-core.c 				   struct v4l2_rect *r)
r                1779 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->width = round_down(r->width, w_step);
r                1780 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->height = round_down(r->height, h_step);
r                1781 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->left = round_down(r->left, 2);
r                1782 drivers/media/platform/s5p-jpeg/jpeg-core.c 	r->top = round_down(r->top, 2);
r                1784 drivers/media/platform/s5p-jpeg/jpeg-core.c 	if (!enclosed_rectangle(r, &base_rect))
r                1787 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.left = r->left;
r                1788 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.top = r->top;
r                1789 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.width = r->width;
r                1790 drivers/media/platform/s5p-jpeg/jpeg-core.c 	ctx->crop_rect.height = r->height;
r                1816 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.width = ctx->out_q.w;
r                1817 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.height = ctx->out_q.h;
r                1818 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.left = 0;
r                1819 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.top = 0;
r                1824 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.width = ctx->crop_rect.width;
r                1825 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.height =  ctx->crop_rect.height;
r                1826 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.left = ctx->crop_rect.left;
r                1827 drivers/media/platform/s5p-jpeg/jpeg-core.c 		s->r.top = ctx->crop_rect.top;
r                1842 drivers/media/platform/s5p-jpeg/jpeg-core.c 	struct v4l2_rect *rect = &s->r;
r                 777 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 			  left, top, s->r.width, s->r.height, right, bottom,
r                 785 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 			  s->r.width, s->r.height, ctx->buf_width,
r                 793 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		s->r.left = left;
r                 794 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		s->r.top = top;
r                 795 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		s->r.width = width;
r                 796 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c 		s->r.height = height;
r                  36 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c #define writel(v, r)							\
r                  38 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c 		pr_err("MFCWRITE(%p): %08x\n", r, (unsigned int)v);	\
r                  39 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c 	__raw_writel(v, r);						\
r                2234 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c #define R(m, r) mfc_regs.m = S5P_MFC_REG_ADDR(dev, r)
r                 904 drivers/media/platform/sh_vou.c 		sel->r = vou_dev->rect;
r                 908 drivers/media/platform/sh_vou.c 		sel->r.left = 0;
r                 909 drivers/media/platform/sh_vou.c 		sel->r.top = 0;
r                 910 drivers/media/platform/sh_vou.c 		sel->r.width = VOU_MAX_IMAGE_WIDTH;
r                 912 drivers/media/platform/sh_vou.c 			sel->r.height = 480;
r                 914 drivers/media/platform/sh_vou.c 			sel->r.height = 576;
r                 926 drivers/media/platform/sh_vou.c 	struct v4l2_rect *rect = &sel->r;
r                 972 drivers/media/platform/sh_vou.c 	sd_sel.r.width = geo.output.width;
r                 973 drivers/media/platform/sh_vou.c 	sd_sel.r.height = geo.output.height;
r                 860 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r = frame->crop;
r                 865 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.left = 0;
r                 866 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.top = 0;
r                 867 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.width = frame->width;
r                 868 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.height = frame->height;
r                 881 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r = frame->crop;
r                 886 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.left = 0;
r                 887 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.top = 0;
r                 888 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.width = frame->width;
r                 889 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 			s->r.height = frame->height;
r                 948 drivers/media/platform/sti/bdisp/bdisp-v4l2.c 	in = &s->r;
r                 746 drivers/media/platform/sti/delta/delta-v4l2.c 		s->r = crop;
r                 751 drivers/media/platform/sti/delta/delta-v4l2.c 		s->r.left = 0;
r                 752 drivers/media/platform/sti/delta/delta-v4l2.c 		s->r.top = 0;
r                 753 drivers/media/platform/sti/delta/delta-v4l2.c 		s->r.width = frameinfo->aligned_width;
r                 754 drivers/media/platform/sti/delta/delta-v4l2.c 		s->r.height = frameinfo->aligned_height;
r                1176 drivers/media/platform/stm32/stm32-dcmi.c 				  struct v4l2_rect *r)
r                1193 drivers/media/platform/stm32/stm32-dcmi.c 		*r = bounds.r;
r                1216 drivers/media/platform/stm32/stm32-dcmi.c 		r->top = 0;
r                1217 drivers/media/platform/stm32/stm32-dcmi.c 		r->left = 0;
r                1218 drivers/media/platform/stm32/stm32-dcmi.c 		r->width = max_width;
r                1219 drivers/media/platform/stm32/stm32-dcmi.c 		r->height = max_height;
r                1231 drivers/media/platform/stm32/stm32-dcmi.c 	r->top = 0;
r                1232 drivers/media/platform/stm32/stm32-dcmi.c 	r->left = 0;
r                1233 drivers/media/platform/stm32/stm32-dcmi.c 	r->width = pix.width;
r                1234 drivers/media/platform/stm32/stm32-dcmi.c 	r->height = pix.height;
r                1250 drivers/media/platform/stm32/stm32-dcmi.c 		s->r = dcmi->sd_bounds;
r                1254 drivers/media/platform/stm32/stm32-dcmi.c 			s->r = dcmi->crop;
r                1256 drivers/media/platform/stm32/stm32-dcmi.c 			s->r.top = 0;
r                1257 drivers/media/platform/stm32/stm32-dcmi.c 			s->r.left = 0;
r                1258 drivers/media/platform/stm32/stm32-dcmi.c 			s->r.width = dcmi->fmt.fmt.pix.width;
r                1259 drivers/media/platform/stm32/stm32-dcmi.c 			s->r.height = dcmi->fmt.fmt.pix.height;
r                1273 drivers/media/platform/stm32/stm32-dcmi.c 	struct v4l2_rect r = s->r;
r                1296 drivers/media/platform/stm32/stm32-dcmi.c 	v4l2_rect_map_inside(&r, &max_rect);
r                1297 drivers/media/platform/stm32/stm32-dcmi.c 	r.top  = clamp_t(s32, r.top, 0, pix.height - r.height);
r                1298 drivers/media/platform/stm32/stm32-dcmi.c 	r.left = clamp_t(s32, r.left, 0, pix.width - r.width);
r                1300 drivers/media/platform/stm32/stm32-dcmi.c 	if (!(r.top == dcmi->sd_bounds.top &&
r                1301 drivers/media/platform/stm32/stm32-dcmi.c 	      r.left == dcmi->sd_bounds.left &&
r                1302 drivers/media/platform/stm32/stm32-dcmi.c 	      r.width == dcmi->sd_bounds.width &&
r                1303 drivers/media/platform/stm32/stm32-dcmi.c 	      r.height == dcmi->sd_bounds.height)) {
r                1306 drivers/media/platform/stm32/stm32-dcmi.c 		dcmi->crop = r;
r                1308 drivers/media/platform/stm32/stm32-dcmi.c 			r.width, r.height, r.left, r.top,
r                1316 drivers/media/platform/stm32/stm32-dcmi.c 	s->r = r;
r                  94 drivers/media/platform/ti-vpe/csc.c #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
r                  95 drivers/media/platform/ti-vpe/csc.c 	ioread32(csc->base + CSC_##r))
r                  25 drivers/media/platform/ti-vpe/sc.c #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
r                  26 drivers/media/platform/ti-vpe/sc.c 	ioread32(sc->base + CFG_##r))
r                 306 drivers/media/platform/ti-vpe/vpdma.c #define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, read_reg(vpdma, VPDMA_##r))
r                 478 drivers/media/platform/ti-vpe/vpdma.c 	int r;
r                 480 drivers/media/platform/ti-vpe/vpdma.c 	r = vpdma_alloc_desc_buf(&list->buf, size);
r                 481 drivers/media/platform/ti-vpe/vpdma.c 	if (r)
r                 482 drivers/media/platform/ti-vpe/vpdma.c 		return r;
r                1064 drivers/media/platform/ti-vpe/vpdma.c 	int i, r;
r                1080 drivers/media/platform/ti-vpe/vpdma.c 	r = vpdma_alloc_desc_buf(&fw_dma_buf, f->size);
r                1081 drivers/media/platform/ti-vpe/vpdma.c 	if (r) {
r                1118 drivers/media/platform/ti-vpe/vpdma.c 	int r;
r                1121 drivers/media/platform/ti-vpe/vpdma.c 	r = request_firmware_nowait(THIS_MODULE, 1,
r                1124 drivers/media/platform/ti-vpe/vpdma.c 	if (r) {
r                1126 drivers/media/platform/ti-vpe/vpdma.c 		return r;
r                1138 drivers/media/platform/ti-vpe/vpdma.c 	int r;
r                1158 drivers/media/platform/ti-vpe/vpdma.c 	r = vpdma_load_firmware(vpdma);
r                1159 drivers/media/platform/ti-vpe/vpdma.c 	if (r) {
r                1161 drivers/media/platform/ti-vpe/vpdma.c 		return r;
r                 949 drivers/media/platform/ti-vpe/vpe.c #define DUMPREG(r) vpe_dbg(dev, "%-35s %08x\n", #r, read_reg(dev, VPE_##r))
r                1838 drivers/media/platform/ti-vpe/vpe.c 	if (s->r.top < 0 || s->r.left < 0) {
r                1840 drivers/media/platform/ti-vpe/vpe.c 		s->r.top = s->r.left = 0;
r                1843 drivers/media/platform/ti-vpe/vpe.c 	v4l_bound_align_image(&s->r.width, MIN_W, q_data->width, 1,
r                1844 drivers/media/platform/ti-vpe/vpe.c 		&s->r.height, MIN_H, height, H_ALIGN, S_ALIGN);
r                1847 drivers/media/platform/ti-vpe/vpe.c 	if (s->r.left + s->r.width > q_data->width)
r                1848 drivers/media/platform/ti-vpe/vpe.c 		s->r.left = q_data->width - s->r.width;
r                1849 drivers/media/platform/ti-vpe/vpe.c 	if (s->r.top + s->r.height > q_data->height)
r                1850 drivers/media/platform/ti-vpe/vpe.c 		s->r.top = q_data->height - s->r.height;
r                1900 drivers/media/platform/ti-vpe/vpe.c 		s->r = q_data->c_rect;
r                1906 drivers/media/platform/ti-vpe/vpe.c 		s->r.left = 0;
r                1907 drivers/media/platform/ti-vpe/vpe.c 		s->r.top = 0;
r                1908 drivers/media/platform/ti-vpe/vpe.c 		s->r.width = q_data->width;
r                1909 drivers/media/platform/ti-vpe/vpe.c 		s->r.height = q_data->height;
r                1932 drivers/media/platform/ti-vpe/vpe.c 	if ((q_data->c_rect.left == sel.r.left) &&
r                1933 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.top == sel.r.top) &&
r                1934 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.width == sel.r.width) &&
r                1935 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.height == sel.r.height)) {
r                1941 drivers/media/platform/ti-vpe/vpe.c 	q_data->c_rect = sel.r;
r                2432 drivers/media/platform/ti-vpe/vpe.c 	int r;
r                2436 drivers/media/platform/ti-vpe/vpe.c 	r = pm_runtime_get_sync(&pdev->dev);
r                2437 drivers/media/platform/ti-vpe/vpe.c 	WARN_ON(r < 0);
r                2438 drivers/media/platform/ti-vpe/vpe.c 	return r < 0 ? r : 0;
r                2444 drivers/media/platform/ti-vpe/vpe.c 	int r;
r                2448 drivers/media/platform/ti-vpe/vpe.c 	r = pm_runtime_put_sync(&pdev->dev);
r                2449 drivers/media/platform/ti-vpe/vpe.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                1162 drivers/media/platform/vicodec/vicodec-core.c 			s->r.left = 0;
r                1163 drivers/media/platform/vicodec/vicodec-core.c 			s->r.top = 0;
r                1164 drivers/media/platform/vicodec/vicodec-core.c 			s->r.width = q_data->visible_width;
r                1165 drivers/media/platform/vicodec/vicodec-core.c 			s->r.height = q_data->visible_height;
r                1169 drivers/media/platform/vicodec/vicodec-core.c 			s->r.left = 0;
r                1170 drivers/media/platform/vicodec/vicodec-core.c 			s->r.top = 0;
r                1171 drivers/media/platform/vicodec/vicodec-core.c 			s->r.width = q_data->coded_width;
r                1172 drivers/media/platform/vicodec/vicodec-core.c 			s->r.height = q_data->coded_height;
r                1178 drivers/media/platform/vicodec/vicodec-core.c 			s->r.left = 0;
r                1179 drivers/media/platform/vicodec/vicodec-core.c 			s->r.top = 0;
r                1180 drivers/media/platform/vicodec/vicodec-core.c 			s->r.width = q_data->visible_width;
r                1181 drivers/media/platform/vicodec/vicodec-core.c 			s->r.height = q_data->visible_height;
r                1185 drivers/media/platform/vicodec/vicodec-core.c 			s->r.left = 0;
r                1186 drivers/media/platform/vicodec/vicodec-core.c 			s->r.top = 0;
r                1187 drivers/media/platform/vicodec/vicodec-core.c 			s->r.width = q_data->coded_width;
r                1188 drivers/media/platform/vicodec/vicodec-core.c 			s->r.height = q_data->coded_height;
r                1211 drivers/media/platform/vicodec/vicodec-core.c 	s->r.left = 0;
r                1212 drivers/media/platform/vicodec/vicodec-core.c 	s->r.top = 0;
r                1213 drivers/media/platform/vicodec/vicodec-core.c 	q_data->visible_width = clamp(s->r.width, MIN_WIDTH,
r                1215 drivers/media/platform/vicodec/vicodec-core.c 	s->r.width = q_data->visible_width;
r                1216 drivers/media/platform/vicodec/vicodec-core.c 	q_data->visible_height = clamp(s->r.height, MIN_HEIGHT,
r                1218 drivers/media/platform/vicodec/vicodec-core.c 	s->r.height = q_data->visible_height;
r                 293 drivers/media/platform/vim2m.c 	u8 _r[2], _g[2], _b[2], *r, *g, *b;
r                 298 drivers/media/platform/vim2m.c 	r = _r;
r                 307 drivers/media/platform/vim2m.c 			*r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07;
r                 316 drivers/media/platform/vim2m.c 			*r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07;
r                 324 drivers/media/platform/vim2m.c 			*r++ = src[i][0];
r                 333 drivers/media/platform/vim2m.c 			*r++ = src[i][2];
r                 340 drivers/media/platform/vim2m.c 	r = _r;
r                 350 drivers/media/platform/vim2m.c 			pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) |
r                 363 drivers/media/platform/vim2m.c 			pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) |
r                 373 drivers/media/platform/vim2m.c 			*(*dst)++ = *r++;
r                 382 drivers/media/platform/vim2m.c 			*(*dst)++ = *r++;
r                 390 drivers/media/platform/vim2m.c 		y = ((8453  * (*r) + 16594 * (*g) +  3223 * (*b)
r                 392 drivers/media/platform/vim2m.c 		u = ((-4878 * (*r) - 9578  * (*g) + 14456 * (*b)
r                 394 drivers/media/platform/vim2m.c 		v = ((14456 * (*r++) - 12105 * (*g++) - 2351 * (*b++)
r                 396 drivers/media/platform/vim2m.c 		y1 = ((8453 * (*r) + 16594 * (*g) +  3223 * (*b)
r                 412 drivers/media/platform/vim2m.c 			*(*dst)++ = *++r;
r                 420 drivers/media/platform/vim2m.c 			*(*dst)++ = *r;
r                 427 drivers/media/platform/vim2m.c 			*(*dst)++ = *++r;
r                 435 drivers/media/platform/vim2m.c 			*(*dst)++ = *r;
r                  73 drivers/media/platform/vivid/vivid-kthread-cap.c 		struct v4l2_rect *r = &dev->clips_out[i].c;
r                  75 drivers/media/platform/vivid/vivid-kthread-cap.c 		if (fb_y >= r->top && fb_y < r->top + r->height &&
r                  76 drivers/media/platform/vivid/vivid-kthread-cap.c 		    fb_x >= r->left && fb_x < r->left + r->width)
r                 578 drivers/media/platform/vivid/vivid-kthread-cap.c 		struct v4l2_rect *r = &dev->clips_cap[i].c;
r                 580 drivers/media/platform/vivid/vivid-kthread-cap.c 		if (fb_y >= r->top && fb_y < r->top + r->height &&
r                 581 drivers/media/platform/vivid/vivid-kthread-cap.c 		    fb_x >= r->left && fb_x < r->left + r->width)
r                 595 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor };
r                 597 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_min_size(&r, &vivid_min_rect);
r                 598 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_max_size(&r, &vivid_max_rect);
r                 602 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_max_size(&r, &max_r);
r                 604 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_max_size(&r, &dev->src_rect);
r                 606 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_min_size(&r, &dev->src_rect);
r                 608 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->width = r.width;
r                 609 drivers/media/platform/vivid/vivid-vid-cap.c 		mp->height = r.height / factor;
r                 681 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
r                 685 drivers/media/platform/vivid/vivid-vid-cap.c 				v4l2_rect_map_inside(compose, &r);
r                 687 drivers/media/platform/vivid/vivid-vid-cap.c 				*compose = r;
r                 691 drivers/media/platform/vivid/vivid-vid-cap.c 					r.width / MAX_ZOOM,
r                 692 drivers/media/platform/vivid/vivid-vid-cap.c 					factor * r.height / MAX_ZOOM
r                 696 drivers/media/platform/vivid/vivid-vid-cap.c 					r.width * MAX_ZOOM,
r                 697 drivers/media/platform/vivid/vivid-vid-cap.c 					factor * r.height * MAX_ZOOM
r                 720 drivers/media/platform/vivid/vivid-vid-cap.c 			r.height *= factor;
r                 721 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(crop, &r);
r                 723 drivers/media/platform/vivid/vivid-vid-cap.c 			r = *crop;
r                 724 drivers/media/platform/vivid/vivid-vid-cap.c 			r.height /= factor;
r                 725 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(compose, &r);
r                 727 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_map_inside(compose, &r);
r                 729 drivers/media/platform/vivid/vivid-vid-cap.c 			r.height *= factor;
r                 730 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_max_size(crop, &r);
r                 735 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_map_inside(compose, &r);
r                 750 drivers/media/platform/vivid/vivid-vid-cap.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
r                 752 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_size_to(compose, &r);
r                 753 drivers/media/platform/vivid/vivid-vid-cap.c 		r.height *= factor;
r                 754 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_size_to(crop, &r);
r                 847 drivers/media/platform/vivid/vivid-vid-cap.c 	sel->r.left = sel->r.top = 0;
r                 852 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->crop_cap;
r                 858 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->src_rect;
r                 863 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = vivid_max_rect;
r                 868 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->compose_cap;
r                 873 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->fmt_cap_rect;
r                 900 drivers/media/platform/vivid/vivid-vid-cap.c 		ret = vivid_vid_adjust_sel(s->flags, &s->r);
r                 903 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_min_size(&s->r, &vivid_min_rect);
r                 904 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_max_size(&s->r, &dev->src_rect);
r                 905 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_map_inside(&s->r, &dev->crop_bounds_cap);
r                 906 drivers/media/platform/vivid/vivid-vid-cap.c 		s->r.top /= factor;
r                 907 drivers/media/platform/vivid/vivid-vid-cap.c 		s->r.height /= factor;
r                 912 drivers/media/platform/vivid/vivid-vid-cap.c 				s->r.width * MAX_ZOOM,
r                 913 drivers/media/platform/vivid/vivid-vid-cap.c 				s->r.height * MAX_ZOOM
r                 917 drivers/media/platform/vivid/vivid-vid-cap.c 				s->r.width / MAX_ZOOM,
r                 918 drivers/media/platform/vivid/vivid-vid-cap.c 				s->r.height / MAX_ZOOM
r                 936 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_min_size(&fmt, &s->r);
r                 942 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(compose, &s->r);
r                 945 drivers/media/platform/vivid/vivid-vid-cap.c 			if (!v4l2_rect_same_size(&s->r, &dev->fmt_cap_rect) &&
r                 948 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(&dev->fmt_cap_rect, &s->r);
r                 949 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(compose, &s->r);
r                 953 drivers/media/platform/vivid/vivid-vid-cap.c 		s->r.top *= factor;
r                 954 drivers/media/platform/vivid/vivid-vid-cap.c 		s->r.height *= factor;
r                 955 drivers/media/platform/vivid/vivid-vid-cap.c 		*crop = s->r;
r                 960 drivers/media/platform/vivid/vivid-vid-cap.c 		ret = vivid_vid_adjust_sel(s->flags, &s->r);
r                 963 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_min_size(&s->r, &vivid_min_rect);
r                 964 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_set_max_size(&s->r, &dev->fmt_cap_rect);
r                 972 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_max_size(&s->r, &max_rect);
r                 976 drivers/media/platform/vivid/vivid-vid-cap.c 					s->r.width / MAX_ZOOM,
r                 977 drivers/media/platform/vivid/vivid-vid-cap.c 					(s->r.height * factor) / MAX_ZOOM
r                 981 drivers/media/platform/vivid/vivid-vid-cap.c 					s->r.width * MAX_ZOOM,
r                 982 drivers/media/platform/vivid/vivid-vid-cap.c 					(s->r.height * factor) * MAX_ZOOM
r                 990 drivers/media/platform/vivid/vivid-vid-cap.c 			s->r.top *= factor;
r                 991 drivers/media/platform/vivid/vivid-vid-cap.c 			s->r.height *= factor;
r                 992 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_max_size(&s->r, &dev->src_rect);
r                 993 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(crop, &s->r);
r                 995 drivers/media/platform/vivid/vivid-vid-cap.c 			s->r.top /= factor;
r                 996 drivers/media/platform/vivid/vivid-vid-cap.c 			s->r.height /= factor;
r                 998 drivers/media/platform/vivid/vivid-vid-cap.c 			v4l2_rect_set_size_to(&s->r, &dev->src_rect);
r                 999 drivers/media/platform/vivid/vivid-vid-cap.c 			s->r.height /= factor;
r                1001 drivers/media/platform/vivid/vivid-vid-cap.c 		v4l2_rect_map_inside(&s->r, &dev->fmt_cap_rect);
r                1002 drivers/media/platform/vivid/vivid-vid-cap.c 		if (dev->bitmap_cap && (compose->width != s->r.width ||
r                1003 drivers/media/platform/vivid/vivid-vid-cap.c 					compose->height != s->r.height)) {
r                1007 drivers/media/platform/vivid/vivid-vid-cap.c 		*compose = s->r;
r                1122 drivers/media/platform/vivid/vivid-vid-cap.c 			struct v4l2_rect *r = &dev->try_clips_cap[i].c;
r                1124 drivers/media/platform/vivid/vivid-vid-cap.c 			r->top = clamp_t(s32, r->top, 0, dev->fb_cap.fmt.height - 1);
r                1125 drivers/media/platform/vivid/vivid-vid-cap.c 			r->height = clamp_t(s32, r->height, 1, dev->fb_cap.fmt.height - r->top);
r                1126 drivers/media/platform/vivid/vivid-vid-cap.c 			r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1);
r                1127 drivers/media/platform/vivid/vivid-vid-cap.c 			r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left);
r                 862 drivers/media/platform/vivid/vivid-vid-common.c int vivid_vid_adjust_sel(unsigned flags, struct v4l2_rect *r)
r                 864 drivers/media/platform/vivid/vivid-vid-common.c 	unsigned w = r->width;
r                 865 drivers/media/platform/vivid/vivid-vid-common.c 	unsigned h = r->height;
r                 890 drivers/media/platform/vivid/vivid-vid-common.c 	if (r->top < 0)
r                 891 drivers/media/platform/vivid/vivid-vid-common.c 		r->top = 0;
r                 892 drivers/media/platform/vivid/vivid-vid-common.c 	if (r->left < 0)
r                 893 drivers/media/platform/vivid/vivid-vid-common.c 		r->left = 0;
r                 895 drivers/media/platform/vivid/vivid-vid-common.c 	r->left &= 0xfffe;
r                 896 drivers/media/platform/vivid/vivid-vid-common.c 	r->top &= 0xfffe;
r                 897 drivers/media/platform/vivid/vivid-vid-common.c 	if (r->left + w > MAX_WIDTH)
r                 898 drivers/media/platform/vivid/vivid-vid-common.c 		r->left = MAX_WIDTH - w;
r                 899 drivers/media/platform/vivid/vivid-vid-common.c 	if (r->top + h > MAX_HEIGHT)
r                 900 drivers/media/platform/vivid/vivid-vid-common.c 		r->top = MAX_HEIGHT - h;
r                 903 drivers/media/platform/vivid/vivid-vid-common.c 	    (r->width != w || r->height != h))
r                 905 drivers/media/platform/vivid/vivid-vid-common.c 	r->width = w;
r                 906 drivers/media/platform/vivid/vivid-vid-common.c 	r->height = h;
r                  28 drivers/media/platform/vivid/vivid-vid-common.h int vivid_vid_adjust_sel(unsigned flags, struct v4l2_rect *r);
r                 384 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor };
r                 386 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_min_size(&r, &vivid_min_rect);
r                 387 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_max_size(&r, &vivid_max_rect);
r                 391 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_max_size(&r, &max_r);
r                 393 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_max_size(&r, &dev->sink_rect);
r                 395 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_min_size(&r, &dev->sink_rect);
r                 397 drivers/media/platform/vivid/vivid-vid-out.c 		mp->width = r.width;
r                 398 drivers/media/platform/vivid/vivid-vid-out.c 		mp->height = r.height / factor;
r                 485 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
r                 489 drivers/media/platform/vivid/vivid-vid-out.c 				v4l2_rect_map_inside(crop, &r);
r                 491 drivers/media/platform/vivid/vivid-vid-out.c 				*crop = r;
r                 495 drivers/media/platform/vivid/vivid-vid-out.c 					r.width / MAX_ZOOM,
r                 496 drivers/media/platform/vivid/vivid-vid-out.c 					factor * r.height / MAX_ZOOM
r                 500 drivers/media/platform/vivid/vivid-vid-out.c 					r.width * MAX_ZOOM,
r                 501 drivers/media/platform/vivid/vivid-vid-out.c 					factor * r.height * MAX_ZOOM
r                 524 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(crop, &r);
r                 525 drivers/media/platform/vivid/vivid-vid-out.c 			r.height *= factor;
r                 526 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(compose, &r);
r                 529 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_map_inside(crop, &r);
r                 530 drivers/media/platform/vivid/vivid-vid-out.c 			r.height /= factor;
r                 531 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(compose, &r);
r                 533 drivers/media/platform/vivid/vivid-vid-out.c 			r.height *= factor;
r                 534 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_max_size(compose, &r);
r                 539 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_map_inside(crop, &r);
r                 544 drivers/media/platform/vivid/vivid-vid-out.c 		struct v4l2_rect r = { 0, 0, mp->width, mp->height };
r                 546 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_size_to(crop, &r);
r                 547 drivers/media/platform/vivid/vivid-vid-out.c 		r.height /= factor;
r                 548 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_size_to(compose, &r);
r                 645 drivers/media/platform/vivid/vivid-vid-out.c 	sel->r.left = sel->r.top = 0;
r                 650 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->crop_out;
r                 655 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->fmt_out_rect;
r                 660 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = vivid_max_rect;
r                 665 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->compose_out;
r                 671 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->sink_rect;
r                 696 drivers/media/platform/vivid/vivid-vid-out.c 		ret = vivid_vid_adjust_sel(s->flags, &s->r);
r                 699 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_min_size(&s->r, &vivid_min_rect);
r                 700 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_max_size(&s->r, &dev->fmt_out_rect);
r                 708 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_max_size(&s->r, &max_rect);
r                 712 drivers/media/platform/vivid/vivid-vid-out.c 					s->r.width / MAX_ZOOM,
r                 713 drivers/media/platform/vivid/vivid-vid-out.c 					(s->r.height * factor) / MAX_ZOOM
r                 717 drivers/media/platform/vivid/vivid-vid-out.c 					s->r.width * MAX_ZOOM,
r                 718 drivers/media/platform/vivid/vivid-vid-out.c 					(s->r.height * factor) * MAX_ZOOM
r                 726 drivers/media/platform/vivid/vivid-vid-out.c 			s->r.top *= factor;
r                 727 drivers/media/platform/vivid/vivid-vid-out.c 			s->r.height *= factor;
r                 728 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_max_size(&s->r, &dev->sink_rect);
r                 729 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(compose, &s->r);
r                 731 drivers/media/platform/vivid/vivid-vid-out.c 			s->r.top /= factor;
r                 732 drivers/media/platform/vivid/vivid-vid-out.c 			s->r.height /= factor;
r                 734 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(&s->r, &dev->sink_rect);
r                 735 drivers/media/platform/vivid/vivid-vid-out.c 			s->r.height /= factor;
r                 737 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_map_inside(&s->r, &dev->fmt_out_rect);
r                 738 drivers/media/platform/vivid/vivid-vid-out.c 		*crop = s->r;
r                 743 drivers/media/platform/vivid/vivid-vid-out.c 		ret = vivid_vid_adjust_sel(s->flags, &s->r);
r                 746 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_min_size(&s->r, &vivid_min_rect);
r                 747 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_set_max_size(&s->r, &dev->sink_rect);
r                 748 drivers/media/platform/vivid/vivid-vid-out.c 		v4l2_rect_map_inside(&s->r, &dev->compose_bounds_out);
r                 749 drivers/media/platform/vivid/vivid-vid-out.c 		s->r.top /= factor;
r                 750 drivers/media/platform/vivid/vivid-vid-out.c 		s->r.height /= factor;
r                 755 drivers/media/platform/vivid/vivid-vid-out.c 				s->r.width * MAX_ZOOM,
r                 756 drivers/media/platform/vivid/vivid-vid-out.c 				s->r.height * MAX_ZOOM
r                 760 drivers/media/platform/vivid/vivid-vid-out.c 				s->r.width / MAX_ZOOM,
r                 761 drivers/media/platform/vivid/vivid-vid-out.c 				s->r.height / MAX_ZOOM
r                 778 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_min_size(&fmt, &s->r);
r                 783 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(crop, &s->r);
r                 786 drivers/media/platform/vivid/vivid-vid-out.c 			if (!v4l2_rect_same_size(&s->r, &dev->fmt_out_rect) &&
r                 789 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(&dev->fmt_out_rect, &s->r);
r                 790 drivers/media/platform/vivid/vivid-vid-out.c 			v4l2_rect_set_size_to(crop, &s->r);
r                 794 drivers/media/platform/vivid/vivid-vid-out.c 		s->r.top *= factor;
r                 795 drivers/media/platform/vivid/vivid-vid-out.c 		s->r.height *= factor;
r                 796 drivers/media/platform/vivid/vivid-vid-out.c 		if (dev->bitmap_out && (compose->width != s->r.width ||
r                 797 drivers/media/platform/vivid/vivid-vid-out.c 					compose->height != s->r.height)) {
r                 801 drivers/media/platform/vivid/vivid-vid-out.c 		*compose = s->r;
r                 898 drivers/media/platform/vivid/vivid-vid-out.c 			struct v4l2_rect *r = &dev->try_clips_out[i].c;
r                 900 drivers/media/platform/vivid/vivid-vid-out.c 			r->top = clamp_t(s32, r->top, 0, dev->display_height - 1);
r                 901 drivers/media/platform/vivid/vivid-vid-out.c 			r->height = clamp_t(s32, r->height, 1, dev->display_height - r->top);
r                 902 drivers/media/platform/vivid/vivid-vid-out.c 			r->left = clamp_t(u32, r->left, 0, dev->display_width - 1);
r                 903 drivers/media/platform/vivid/vivid-vid-out.c 			r->width = clamp_t(u32, r->width, 1, dev->display_width - r->left);
r                 195 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.left = 0;
r                 196 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.top = 0;
r                 197 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.width = BRX_MAX_SIZE;
r                 198 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.height = BRX_MAX_SIZE;
r                 208 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r = *brx_get_compose(brx, config, sel->pad);
r                 247 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
r                 248 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
r                 255 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.width = format->width;
r                 256 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.height = format->height;
r                 259 drivers/media/platform/vsp1/vsp1_brx.c 	*compose = sel->r;
r                 154 drivers/media/platform/vsp1/vsp1_drm.c 	sel.r = *crop;
r                 163 drivers/media/platform/vsp1/vsp1_drm.c 		__func__, sel.r.left, sel.r.top, sel.r.width, sel.r.height,
r                 209 drivers/media/platform/vsp1/vsp1_drm.c 	sel.r = vsp1->drm->inputs[rpf->entity.index].compose;
r                 217 drivers/media/platform/vsp1/vsp1_drm.c 		__func__, sel.r.left, sel.r.top, sel.r.width, sel.r.height,
r                 226 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.left = 0;
r                 227 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.top = 0;
r                 228 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.width = crop->width;
r                 229 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.height = crop->height;
r                 236 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.left = 0;
r                 237 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.top = 0;
r                 238 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.width = format->width;
r                 239 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.height = format->height;
r                 244 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r = *vsp1_entity_get_pad_selection(&histo->entity, config,
r                 269 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
r                 270 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
r                 271 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE,
r                 272 drivers/media/platform/vsp1/vsp1_histo.c 			       format->width - sel->r.left);
r                 273 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE,
r                 274 drivers/media/platform/vsp1/vsp1_histo.c 				format->height - sel->r.top);
r                 279 drivers/media/platform/vsp1/vsp1_histo.c 	*selection = sel->r;
r                 284 drivers/media/platform/vsp1/vsp1_histo.c 	*selection = sel->r;
r                 303 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.left = 0;
r                 304 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.top = 0;
r                 323 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width);
r                 324 drivers/media/platform/vsp1/vsp1_histo.c 	ratio = 1 << (crop->width * 2 / sel->r.width / 3);
r                 325 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = crop->width / ratio;
r                 328 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = clamp(sel->r.height, crop->height / 4, crop->height);
r                 329 drivers/media/platform/vsp1/vsp1_histo.c 	ratio = 1 << (crop->height * 2 / sel->r.height / 3);
r                 330 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = crop->height / ratio;
r                 335 drivers/media/platform/vsp1/vsp1_histo.c 	*compose = sel->r;
r                 156 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r = *vsp1_rwpf_get_crop(rwpf, config);
r                 162 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.left = 0;
r                 163 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.top = 0;
r                 164 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.width = format->width;
r                 165 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.height = format->height;
r                 215 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.left = ALIGN(sel->r.left, 2);
r                 216 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.top = ALIGN(sel->r.top, 2);
r                 217 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.width = round_down(sel->r.width, 2);
r                 218 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.height = round_down(sel->r.height, 2);
r                 221 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2);
r                 222 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2);
r                 223 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.width = min_t(unsigned int, sel->r.width,
r                 224 drivers/media/platform/vsp1/vsp1_rwpf.c 			     format->width - sel->r.left);
r                 225 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.height = min_t(unsigned int, sel->r.height,
r                 226 drivers/media/platform/vsp1/vsp1_rwpf.c 			      format->height - sel->r.top);
r                 229 drivers/media/platform/vsp1/vsp1_rwpf.c 	*crop = sel->r;
r                 108 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.left = 0;
r                 109 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.top = 0;
r                 110 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.width = format->width;
r                 111 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.height = format->height;
r                 115 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config,
r                 154 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
r                 155 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
r                 156 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE,
r                 157 drivers/media/platform/vsp1/vsp1_uif.c 			       format->width - sel->r.left);
r                 158 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE,
r                 159 drivers/media/platform/vsp1/vsp1_uif.c 				format->height - sel->r.top);
r                 164 drivers/media/platform/vsp1/vsp1_uif.c 	*selection = sel->r;
r                 163 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 171 drivers/media/radio/radio-tea5764.c 	wr.intreg  = r->intreg & 0xff;
r                 172 drivers/media/radio/radio-tea5764.c 	wr.frqset  = __cpu_to_be16(r->frqset);
r                 173 drivers/media/radio/radio-tea5764.c 	wr.tnctrl  = __cpu_to_be16(r->tnctrl);
r                 174 drivers/media/radio/radio-tea5764.c 	wr.testreg = __cpu_to_be16(r->testreg);
r                 175 drivers/media/radio/radio-tea5764.c 	wr.rdsctrl = __cpu_to_be16(r->rdsctrl);
r                 176 drivers/media/radio/radio-tea5764.c 	wr.rdsbbl  = __cpu_to_be16(r->rdsbbl);
r                 184 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 186 drivers/media/radio/radio-tea5764.c 	if (!(r->tnctrl & TEA5764_TNCTRL_PUPD0)) {
r                 187 drivers/media/radio/radio-tea5764.c 		r->tnctrl &= ~(TEA5764_TNCTRL_AFM | TEA5764_TNCTRL_MU |
r                 190 drivers/media/radio/radio-tea5764.c 			r->testreg |= TEA5764_TESTREG_TRIGFR;
r                 192 drivers/media/radio/radio-tea5764.c 			r->testreg &= ~TEA5764_TESTREG_TRIGFR;
r                 194 drivers/media/radio/radio-tea5764.c 		r->tnctrl |= TEA5764_TNCTRL_PUPD0;
r                 201 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 203 drivers/media/radio/radio-tea5764.c 	if (r->tnctrl & TEA5764_TNCTRL_PUPD0) {
r                 204 drivers/media/radio/radio-tea5764.c 		r->tnctrl &= ~TEA5764_TNCTRL_PUPD0;
r                 211 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 214 drivers/media/radio/radio-tea5764.c 	if (r->tnctrl & TEA5764_TNCTRL_HLSI)
r                 215 drivers/media/radio/radio-tea5764.c 		r->frqset = (freq + 225000) / 8192;
r                 217 drivers/media/radio/radio-tea5764.c 		r->frqset = (freq - 225000) / 8192;
r                 222 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 224 drivers/media/radio/radio-tea5764.c 	if (r->tnctrl & TEA5764_TNCTRL_HLSI)
r                 225 drivers/media/radio/radio-tea5764.c 		return (r->frqchk * 8192) - 225000;
r                 227 drivers/media/radio/radio-tea5764.c 		return (r->frqchk * 8192) + 225000;
r                 240 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 241 drivers/media/radio/radio-tea5764.c 	int tnctrl = r->tnctrl;
r                 244 drivers/media/radio/radio-tea5764.c 		r->tnctrl |= TEA5764_TNCTRL_MST;
r                 246 drivers/media/radio/radio-tea5764.c 		r->tnctrl &= ~TEA5764_TNCTRL_MST;
r                 247 drivers/media/radio/radio-tea5764.c 	if (tnctrl != r->tnctrl)
r                 253 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 255 drivers/media/radio/radio-tea5764.c 	if (r->tnctrl & TEA5764_TNCTRL_MST)
r                 263 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 264 drivers/media/radio/radio-tea5764.c 	int tnctrl = r->tnctrl;
r                 267 drivers/media/radio/radio-tea5764.c 		r->tnctrl |= TEA5764_TNCTRL_MU;
r                 269 drivers/media/radio/radio-tea5764.c 		r->tnctrl &= ~TEA5764_TNCTRL_MU;
r                 270 drivers/media/radio/radio-tea5764.c 	if (tnctrl != r->tnctrl)
r                 292 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 303 drivers/media/radio/radio-tea5764.c 	if (r->tunchk & TEA5764_TUNCHK_STEREO)
r                 308 drivers/media/radio/radio-tea5764.c 	v->signal = TEA5764_TUNCHK_LEVEL(r->tunchk) * 0xffff / 0xf;
r                 309 drivers/media/radio/radio-tea5764.c 	v->afc = TEA5764_TUNCHK_IFCNT(r->tunchk);
r                 354 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r = &radio->regs;
r                 360 drivers/media/radio/radio-tea5764.c 	if (r->tnctrl & TEA5764_TNCTRL_PUPD0)
r                 420 drivers/media/radio/radio-tea5764.c 	struct tea5764_regs *r;
r                 451 drivers/media/radio/radio-tea5764.c 	r = &radio->regs;
r                 452 drivers/media/radio/radio-tea5764.c 	PDEBUG("chipid = %04X, manid = %04X", r->chipid, r->manid);
r                 453 drivers/media/radio/radio-tea5764.c 	if (r->chipid != TEA5764_CHIPID ||
r                 454 drivers/media/radio/radio-tea5764.c 		(r->manid & 0x0fff) != TEA5764_MANID) {
r                 100 drivers/media/radio/radio-wl1273.c 	int i, r = 0;
r                 112 drivers/media/radio/radio-wl1273.c 		r = i2c_transfer(client->adapter, &msg, 1);
r                 113 drivers/media/radio/radio-wl1273.c 		if (r < 0 && i < len + 1)
r                 121 drivers/media/radio/radio-wl1273.c 	if (i == len || r == 1)
r                 122 drivers/media/radio/radio-wl1273.c 		r = 0;
r                 124 drivers/media/radio/radio-wl1273.c 	return r;
r                 152 drivers/media/radio/radio-wl1273.c 	int r;
r                 157 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
r                 158 drivers/media/radio/radio-wl1273.c 	if (r)
r                 159 drivers/media/radio/radio-wl1273.c 		return r;
r                 168 drivers/media/radio/radio-wl1273.c 		r = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg));
r                 169 drivers/media/radio/radio-wl1273.c 		if (r != ARRAY_SIZE(msg)) {
r                 172 drivers/media/radio/radio-wl1273.c 				__func__, r);
r                 223 drivers/media/radio/radio-wl1273.c 	int r;
r                 225 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_FLAG_GET, &flags);
r                 226 drivers/media/radio/radio-wl1273.c 	if (r)
r                 249 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RSSI_LVL_GET, &level);
r                 250 drivers/media/radio/radio-wl1273.c 		if (r)
r                 290 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_TUNER_MODE_SET,
r                 292 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 295 drivers/media/radio/radio-wl1273.c 					__func__, r);
r                 299 drivers/media/radio/radio-wl1273.c 			r = core->read(core, WL1273_FREQ_SET, &freq);
r                 300 drivers/media/radio/radio-wl1273.c 			if (r)
r                 318 drivers/media/radio/radio-wl1273.c 			r = core->read(core, WL1273_CHANL_SET, &freq);
r                 319 drivers/media/radio/radio-wl1273.c 			if (r)
r                 337 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                 363 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_CHANL_SET, freq / 10);
r                 364 drivers/media/radio/radio-wl1273.c 	if (r)
r                 365 drivers/media/radio/radio-wl1273.c 		return r;
r                 377 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_ENB_SET, 1);
r                 378 drivers/media/radio/radio-wl1273.c 	if (r)
r                 379 drivers/media/radio/radio-wl1273.c 		return r;
r                 397 drivers/media/radio/radio-wl1273.c 	int r, f;
r                 404 drivers/media/radio/radio-wl1273.c 		r = -ERANGE;
r                 412 drivers/media/radio/radio-wl1273.c 		r = -ERANGE;
r                 425 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_FREQ_SET, f);
r                 426 drivers/media/radio/radio-wl1273.c 	if (r) {
r                 431 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_PRESET);
r                 432 drivers/media/radio/radio-wl1273.c 	if (r) {
r                 450 drivers/media/radio/radio-wl1273.c 	return r;
r                 458 drivers/media/radio/radio-wl1273.c 	int r;
r                 461 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_FREQ_SET, &f);
r                 462 drivers/media/radio/radio-wl1273.c 		if (r)
r                 463 drivers/media/radio/radio-wl1273.c 			return r;
r                 471 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_CHANL_SET, &f);
r                 472 drivers/media/radio/radio-wl1273.c 		if (r)
r                 473 drivers/media/radio/radio-wl1273.c 			return r;
r                 497 drivers/media/radio/radio-wl1273.c 	int r;
r                 515 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_write_fw(core, ptr + 1, packet_num);
r                 516 drivers/media/radio/radio-wl1273.c 	if (r) {
r                 517 drivers/media/radio/radio-wl1273.c 		dev_err(dev, "FW upload error: %d\n", r);
r                 524 drivers/media/radio/radio-wl1273.c 	dev_dbg(dev, "%s - download OK, r: %d\n", __func__, r);
r                 527 drivers/media/radio/radio-wl1273.c 	return r;
r                 535 drivers/media/radio/radio-wl1273.c 		int r = core->write(core, WL1273_POWER_SET,
r                 537 drivers/media/radio/radio-wl1273.c 		if (r)
r                 539 drivers/media/radio/radio-wl1273.c 				__func__, r);
r                 541 drivers/media/radio/radio-wl1273.c 		int r = core->write(core, WL1273_PUPD_SET,
r                 543 drivers/media/radio/radio-wl1273.c 		if (r)
r                 545 drivers/media/radio/radio-wl1273.c 				"%s: PUPD_SET fails: %d\n", __func__, r);
r                 561 drivers/media/radio/radio-wl1273.c 	int r = -EINVAL;
r                 577 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_POWER_SET, val);
r                 578 drivers/media/radio/radio-wl1273.c 		if (r) {
r                 581 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_POWER_SET, val);
r                 582 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 594 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_PUPD_SET, WL1273_PUPD_SET_ON);
r                 595 drivers/media/radio/radio-wl1273.c 		if (r) {
r                 597 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_PUPD_SET,
r                 599 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 606 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_RDS_DATA_ENB, 1);
r                 607 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 613 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_RDS_DATA_ENB, 0);
r                 614 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 625 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_upload_firmware_patch(radio);
r                 626 drivers/media/radio/radio-wl1273.c 		if (r)
r                 639 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_POWER_SET, val);
r                 640 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 645 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_PUPD_SET,
r                 647 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 659 drivers/media/radio/radio-wl1273.c 	dev_dbg(dev, "%s: return: %d\n", __func__, r);
r                 660 drivers/media/radio/radio-wl1273.c 	return r;
r                 666 drivers/media/radio/radio-wl1273.c 	int r;
r                 670 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_POWER_SET,
r                 673 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_PUPD_SET,
r                 676 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                 678 drivers/media/radio/radio-wl1273.c 	if (r) {
r                 679 drivers/media/radio/radio-wl1273.c 		dev_err(radio->dev, "%s: POWER_SET fails: %d\n", __func__, r);
r                 684 drivers/media/radio/radio-wl1273.c 	return r;
r                 692 drivers/media/radio/radio-wl1273.c 	int r;
r                 699 drivers/media/radio/radio-wl1273.c 		r = -EPERM;
r                 706 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_start(radio, mode);
r                 707 drivers/media/radio/radio-wl1273.c 		if (r) {
r                 714 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
r                 715 drivers/media/radio/radio-wl1273.c 		if (r) {
r                 722 drivers/media/radio/radio-wl1273.c 			r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency);
r                 723 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 724 drivers/media/radio/radio-wl1273.c 				dev_err(dev, "set freq fails: %d.\n", r);
r                 728 drivers/media/radio/radio-wl1273.c 			r = core->set_volume(core, core->volume);
r                 729 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 730 drivers/media/radio/radio-wl1273.c 				dev_err(dev, "set volume fails: %d.\n", r);
r                 737 drivers/media/radio/radio-wl1273.c 			r = wl1273_fm_set_tx_freq(radio, radio->tx_frequency);
r                 738 drivers/media/radio/radio-wl1273.c 			if (r) {
r                 739 drivers/media/radio/radio-wl1273.c 				dev_err(dev, "set freq fails: %d.\n", r);
r                 746 drivers/media/radio/radio-wl1273.c 		r = core->set_audio(core, core->audio_mode);
r                 747 drivers/media/radio/radio-wl1273.c 		if (r)
r                 752 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_stop(radio);
r                 753 drivers/media/radio/radio-wl1273.c 		if (r)
r                 754 drivers/media/radio/radio-wl1273.c 			dev_err(dev, "%s: Off fails: %d\n", __func__, r);
r                 761 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_suspend(radio);
r                 762 drivers/media/radio/radio-wl1273.c 		if (r)
r                 763 drivers/media/radio/radio-wl1273.c 			dev_err(dev, "%s: Suspend fails: %d\n", __func__, r);
r                 771 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                 775 drivers/media/radio/radio-wl1273.c 	if (r)
r                 778 drivers/media/radio/radio-wl1273.c 	return r;
r                 787 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                 795 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rx_freq(radio, f + radio->spacing);
r                 797 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rx_freq(radio, radio->rangelow);
r                 799 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rx_freq(radio, f - radio->spacing);
r                 801 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rx_freq(radio, radio->rangehigh);
r                 803 drivers/media/radio/radio-wl1273.c 	if (r)
r                 812 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
r                 813 drivers/media/radio/radio-wl1273.c 	if (r)
r                 818 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_SEARCH_LVL_SET, level);
r                 819 drivers/media/radio/radio-wl1273.c 	if (r)
r                 822 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_SEARCH_DIR_SET, dir);
r                 823 drivers/media/radio/radio-wl1273.c 	if (r)
r                 826 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK);
r                 827 drivers/media/radio/radio-wl1273.c 	if (r)
r                 833 drivers/media/radio/radio-wl1273.c 		r = -ETIMEDOUT;
r                 850 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_rx_freq(radio, f);
r                 851 drivers/media/radio/radio-wl1273.c 	if (r)
r                 857 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK);
r                 858 drivers/media/radio/radio-wl1273.c 	if (r)
r                 863 drivers/media/radio/radio-wl1273.c 		r = -ETIMEDOUT;
r                 865 drivers/media/radio/radio-wl1273.c 	dev_dbg(radio->dev, "%s: Err: %d\n", __func__, r);
r                 866 drivers/media/radio/radio-wl1273.c 	return r;
r                 878 drivers/media/radio/radio-wl1273.c 	int r;
r                 884 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_READ_FMANT_TUNE_VALUE, &val);
r                 885 drivers/media/radio/radio-wl1273.c 	if (r) {
r                 886 drivers/media/radio/radio-wl1273.c 		dev_err(dev, "%s: read error: %d\n", __func__, r);
r                 906 drivers/media/radio/radio-wl1273.c 	int r;
r                 926 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                 930 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_PREMPH_SET, em);
r                 931 drivers/media/radio/radio-wl1273.c 	if (r)
r                 938 drivers/media/radio/radio-wl1273.c 	return r;
r                 944 drivers/media/radio/radio-wl1273.c 	int r;
r                 950 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_SET,
r                 952 drivers/media/radio/radio-wl1273.c 	if (r)
r                 955 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency);
r                 956 drivers/media/radio/radio-wl1273.c 	if (r)
r                 957 drivers/media/radio/radio-wl1273.c 		dev_err(radio->dev, "set freq fails: %d.\n", r);
r                 959 drivers/media/radio/radio-wl1273.c 	return r;
r                 965 drivers/media/radio/radio-wl1273.c 	int r;
r                 972 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags);
r                 973 drivers/media/radio/radio-wl1273.c 	if (r)
r                 981 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_SET, WL1273_POWER_SET_FM);
r                 982 drivers/media/radio/radio-wl1273.c 	if (r)
r                 985 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_rx_freq(radio, radio->rx_frequency);
r                 986 drivers/media/radio/radio-wl1273.c 	if (r)
r                 987 drivers/media/radio/radio-wl1273.c 		dev_err(radio->dev, "set freq fails: %d.\n", r);
r                 991 drivers/media/radio/radio-wl1273.c 	return r;
r                 996 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1004 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_CNTRL_SET, 1);
r                1005 drivers/media/radio/radio-wl1273.c 		return r;
r                1009 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_DATA_ENB, 0);
r                1011 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_RDS_DATA_ENB, 1);
r                1013 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_rds_off(radio);
r                1015 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_rds_on(radio);
r                1019 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                1022 drivers/media/radio/radio-wl1273.c 	if (!r)
r                1025 drivers/media/radio/radio-wl1273.c 	return r;
r                1034 drivers/media/radio/radio-wl1273.c 	int r;
r                1053 drivers/media/radio/radio-wl1273.c 		r = -EBUSY;
r                1067 drivers/media/radio/radio-wl1273.c 		r = -EFAULT;
r                1077 drivers/media/radio/radio-wl1273.c 	r = val;
r                1081 drivers/media/radio/radio-wl1273.c 	return r;
r                1112 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1125 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_INT_MASK_SET,
r                1127 drivers/media/radio/radio-wl1273.c 		if (r) {
r                1137 drivers/media/radio/radio-wl1273.c 	return r;
r                1144 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1156 drivers/media/radio/radio-wl1273.c 				r = core->write(core,
r                1159 drivers/media/radio/radio-wl1273.c 				if (r) {
r                1171 drivers/media/radio/radio-wl1273.c 	return r;
r                1177 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1201 drivers/media/radio/radio-wl1273.c 		r = -EBUSY;
r                1206 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
r                1207 drivers/media/radio/radio-wl1273.c 	if (r) {
r                1212 drivers/media/radio/radio-wl1273.c 		r = -ENODATA;
r                1219 drivers/media/radio/radio-wl1273.c 			r = -EWOULDBLOCK;
r                1227 drivers/media/radio/radio-wl1273.c 			r = -EINTR;
r                1253 drivers/media/radio/radio-wl1273.c 		r += RDS_BLOCK_SIZE;
r                1260 drivers/media/radio/radio-wl1273.c 	return r;
r                1322 drivers/media/radio/radio-wl1273.c 	int r;
r                1331 drivers/media/radio/radio-wl1273.c 	r = core->write(core, WL1273_POWER_LEV_SET, 122 - power);
r                1332 drivers/media/radio/radio-wl1273.c 	if (r)
r                1339 drivers/media/radio/radio-wl1273.c 	return r;
r                1350 drivers/media/radio/radio-wl1273.c 	int r;
r                1353 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
r                1357 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
r                1361 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
r                1365 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_SCAN_SPACING_SET,
r                1370 drivers/media/radio/radio-wl1273.c 	return r;
r                1414 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1424 drivers/media/radio/radio-wl1273.c 			r = core->write(core,
r                1429 drivers/media/radio/radio-wl1273.c 			r = core->write(core,
r                1432 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_MUTE, 1);
r                1434 drivers/media/radio/radio-wl1273.c 			r = core->write(core, WL1273_MUTE, 0);
r                1441 drivers/media/radio/radio-wl1273.c 			r = wl1273_fm_set_mode(radio, WL1273_MODE_OFF);
r                1443 drivers/media/radio/radio-wl1273.c 			r =  core->set_volume(core, core->volume);
r                1447 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_preemphasis(radio, ctrl->val);
r                1451 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_tx_power(radio, ctrl->val);
r                1461 drivers/media/radio/radio-wl1273.c 	return r;
r                1502 drivers/media/radio/radio-wl1273.c 	int r;
r                1530 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_STEREO_GET, &val);
r                1531 drivers/media/radio/radio-wl1273.c 	if (r)
r                1539 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RSSI_LVL_GET, &val);
r                1540 drivers/media/radio/radio-wl1273.c 	if (r)
r                1548 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_RDS_SYNC_GET, &val);
r                1549 drivers/media/radio/radio-wl1273.c 	if (r)
r                1557 drivers/media/radio/radio-wl1273.c 	return r;
r                1565 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1581 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_mode(radio, WL1273_MODE_RX);
r                1582 drivers/media/radio/radio-wl1273.c 	if (r)
r                1586 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rds(radio, WL1273_RDS_ON);
r                1588 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rds(radio, WL1273_RDS_OFF);
r                1590 drivers/media/radio/radio-wl1273.c 	if (r)
r                1591 drivers/media/radio/radio-wl1273.c 		dev_warn(radio->dev, "%s: RDS fails: %d\n", __func__, r);
r                1594 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO);
r                1595 drivers/media/radio/radio-wl1273.c 		if (r < 0) {
r                1597 drivers/media/radio/radio-wl1273.c 				 __func__, r);
r                1602 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO);
r                1603 drivers/media/radio/radio-wl1273.c 		if (r < 0) {
r                1605 drivers/media/radio/radio-wl1273.c 				 __func__, r);
r                1612 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                1619 drivers/media/radio/radio-wl1273.c 	return r;
r                1646 drivers/media/radio/radio-wl1273.c 	int r;
r                1662 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rx_freq(radio,
r                1664 drivers/media/radio/radio-wl1273.c 		if (r)
r                1666 drivers/media/radio/radio-wl1273.c 				 ": set frequency failed with %d\n", r);
r                1668 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_tx_freq(radio,
r                1670 drivers/media/radio/radio-wl1273.c 		if (r)
r                1672 drivers/media/radio/radio-wl1273.c 				 ": set frequency failed with %d\n", r);
r                1678 drivers/media/radio/radio-wl1273.c 	return r;
r                1688 drivers/media/radio/radio-wl1273.c 	int r;
r                1701 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_mode(radio, WL1273_MODE_RX);
r                1702 drivers/media/radio/radio-wl1273.c 	if (r)
r                1705 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_tx_set_spacing(radio, seek->spacing);
r                1706 drivers/media/radio/radio-wl1273.c 	if (r)
r                1707 drivers/media/radio/radio-wl1273.c 		dev_warn(radio->dev, "HW seek failed: %d\n", r);
r                1709 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_seek(radio, seek->wrap_around, seek->seek_upward,
r                1711 drivers/media/radio/radio-wl1273.c 	if (r)
r                1712 drivers/media/radio/radio-wl1273.c 		dev_warn(radio->dev, "HW seek failed: %d\n", r);
r                1716 drivers/media/radio/radio-wl1273.c 	return r;
r                1724 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                1734 drivers/media/radio/radio-wl1273.c 	r = wl1273_fm_set_mode(radio, WL1273_MODE_TX);
r                1735 drivers/media/radio/radio-wl1273.c 	if (r)
r                1739 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rds(radio, WL1273_RDS_ON);
r                1741 drivers/media/radio/radio-wl1273.c 		r = wl1273_fm_set_rds(radio, WL1273_RDS_OFF);
r                1744 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO);
r                1746 drivers/media/radio/radio-wl1273.c 		r = core->write(core, WL1273_MONO_SET,
r                1748 drivers/media/radio/radio-wl1273.c 	if (r < 0)
r                1750 drivers/media/radio/radio-wl1273.c 			 "MONO_SET fails: %d\n", r);
r                1754 drivers/media/radio/radio-wl1273.c 	return r;
r                1763 drivers/media/radio/radio-wl1273.c 	int r;
r                1782 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_MONO_SET, &val);
r                1783 drivers/media/radio/radio-wl1273.c 	if (r)
r                1805 drivers/media/radio/radio-wl1273.c 	int r;
r                1819 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_ASIC_ID_GET, &val);
r                1820 drivers/media/radio/radio-wl1273.c 	if (r)
r                1825 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_ASIC_VER_GET, &val);
r                1826 drivers/media/radio/radio-wl1273.c 	if (r)
r                1831 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_FIRM_VER_GET, &val);
r                1832 drivers/media/radio/radio-wl1273.c 	if (r)
r                1837 drivers/media/radio/radio-wl1273.c 	r = core->read(core, WL1273_BAND_SET, &val);
r                1838 drivers/media/radio/radio-wl1273.c 	if (r)
r                1844 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_PUPD_SET, &val);
r                1845 drivers/media/radio/radio-wl1273.c 		if (r)
r                1850 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_CHANL_SET, &val);
r                1851 drivers/media/radio/radio-wl1273.c 		if (r)
r                1858 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_FREQ_SET, &val);
r                1859 drivers/media/radio/radio-wl1273.c 		if (r)
r                1864 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_MOST_MODE_SET, &val);
r                1865 drivers/media/radio/radio-wl1273.c 		if (r)
r                1875 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_MOST_BLEND_SET, &val);
r                1876 drivers/media/radio/radio-wl1273.c 		if (r)
r                1886 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_STEREO_GET, &val);
r                1887 drivers/media/radio/radio-wl1273.c 		if (r)
r                1896 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RSSI_LVL_GET, &val);
r                1897 drivers/media/radio/radio-wl1273.c 		if (r)
r                1902 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_POWER_SET, &val);
r                1903 drivers/media/radio/radio-wl1273.c 		if (r)
r                1908 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_INT_MASK_SET, &val);
r                1909 drivers/media/radio/radio-wl1273.c 		if (r)
r                1914 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_RDS_SYNC_GET, &val);
r                1915 drivers/media/radio/radio-wl1273.c 		if (r)
r                1926 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_I2S_MODE_CONFIG_SET, &val);
r                1927 drivers/media/radio/radio-wl1273.c 		if (r)
r                1933 drivers/media/radio/radio-wl1273.c 		r = core->read(core, WL1273_VOLUME_SET, &val);
r                1934 drivers/media/radio/radio-wl1273.c 		if (r)
r                2002 drivers/media/radio/radio-wl1273.c 	int r = 0;
r                2008 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                2014 drivers/media/radio/radio-wl1273.c 		r = -ENOMEM;
r                2023 drivers/media/radio/radio-wl1273.c 		r = -ENOMEM;
r                2046 drivers/media/radio/radio-wl1273.c 		r = radio->core->pdata->request_resources(radio->core->client);
r                2047 drivers/media/radio/radio-wl1273.c 		if (r) {
r                2055 drivers/media/radio/radio-wl1273.c 		r = request_threaded_irq(radio->core->client->irq, NULL,
r                2059 drivers/media/radio/radio-wl1273.c 		if (r < 0) {
r                2061 drivers/media/radio/radio-wl1273.c 				": Unable to register IRQ handler: %d\n", r);
r                2066 drivers/media/radio/radio-wl1273.c 		r = -EINVAL;
r                2075 drivers/media/radio/radio-wl1273.c 		r = -ENOMEM;
r                2083 drivers/media/radio/radio-wl1273.c 	r = v4l2_device_register(&pdev->dev, &radio->v4l2dev);
r                2084 drivers/media/radio/radio-wl1273.c 	if (r) {
r                2119 drivers/media/radio/radio-wl1273.c 		r = radio->ctrl_handler.error;
r                2120 drivers/media/radio/radio-wl1273.c 		dev_err(&pdev->dev, "Ctrl handler error: %d\n", r);
r                2128 drivers/media/radio/radio-wl1273.c 	r = video_register_device(&radio->videodev, VFL_TYPE_RADIO, radio_nr);
r                2129 drivers/media/radio/radio-wl1273.c 	if (r) {
r                2145 drivers/media/radio/radio-wl1273.c 	return r;
r                 335 drivers/media/tuners/r820t.c 	int r = reg - REG_SHADOW_START;
r                 337 drivers/media/tuners/r820t.c 	if (r < 0) {
r                 338 drivers/media/tuners/r820t.c 		len += r;
r                 339 drivers/media/tuners/r820t.c 		r = 0;
r                 343 drivers/media/tuners/r820t.c 	if (len > NUM_REGS - r)
r                 344 drivers/media/tuners/r820t.c 		len = NUM_REGS - r;
r                 347 drivers/media/tuners/r820t.c 		  __func__, r + REG_SHADOW_START, len, len, val);
r                 349 drivers/media/tuners/r820t.c 	memcpy(&priv->regs[r], val, len);
r                 370 drivers/media/usb/as102/as102_usb_drv.c 	as102_dev->bus_adap.rsp = &as102_dev->bus_adap.token.usb.r;
r                  46 drivers/media/usb/as102/as102_usb_drv.h 	struct as10x_cmd_t r;
r                 464 drivers/media/usb/as102/as10x_cmd.h 	struct as10x_cmd_t r;
r                 474 drivers/media/usb/as102/as10x_cmd.h int as10x_rsp_parse(struct as10x_cmd_t *r, uint16_t proc_id);
r                1631 drivers/media/usb/au0828/au0828-video.c 		s->r.left = 0;
r                1632 drivers/media/usb/au0828/au0828-video.c 		s->r.top = 0;
r                1633 drivers/media/usb/au0828/au0828-video.c 		s->r.width = dev->width;
r                1634 drivers/media/usb/au0828/au0828-video.c 		s->r.height = dev->height;
r                 460 drivers/media/usb/cpia2/cpia2_v4l.c 		s->r.left = 0;
r                 461 drivers/media/usb/cpia2/cpia2_v4l.c 		s->r.top = 0;
r                 462 drivers/media/usb/cpia2/cpia2_v4l.c 		s->r.width = cam->width;
r                 463 drivers/media/usb/cpia2/cpia2_v4l.c 		s->r.height = cam->height;
r                1523 drivers/media/usb/cx231xx/cx231xx-417.c 		s->r.left = 0;
r                1524 drivers/media/usb/cx231xx/cx231xx-417.c 		s->r.top = 0;
r                1525 drivers/media/usb/cx231xx/cx231xx-417.c 		s->r.width = dev->ts1.width;
r                1526 drivers/media/usb/cx231xx/cx231xx-417.c 		s->r.height = dev->ts1.height;
r                1500 drivers/media/usb/cx231xx/cx231xx-video.c 		s->r.left = 0;
r                1501 drivers/media/usb/cx231xx/cx231xx-video.c 		s->r.top = 0;
r                1502 drivers/media/usb/cx231xx/cx231xx-video.c 		s->r.width = dev->width;
r                1503 drivers/media/usb/cx231xx/cx231xx-video.c 		s->r.height = dev->height;
r                  54 drivers/media/usb/dvb-usb-v2/dvb_usb.h #define dvb_usb_dbg_usb_control_msg(udev, r, t, v, i, b, l) { \
r                  61 drivers/media/usb/dvb-usb-v2/dvb_usb.h 			"%s %*ph\n",  __func__, t, r, v & 0xff, v >> 8, \
r                 573 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c 	u8 r = 0;
r                 578 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c 		  .flags = I2C_M_RD, .buf = &r, .len = 1 },
r                 591 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c 	w[1] = r;
r                 647 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c 	u8 r = 0;
r                 650 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c 		{ .flags = I2C_M_RD, .buf = &r, .len = 1 },
r                  75 drivers/media/usb/dvb-usb/ttusb2.c 	u8 *s, *r = NULL;
r                  85 drivers/media/usb/dvb-usb/ttusb2.c 	r = kzalloc(64, GFP_KERNEL);
r                  86 drivers/media/usb/dvb-usb/ttusb2.c 	if (!r) {
r                  97 drivers/media/usb/dvb-usb/ttusb2.c 	ret = dvb_usb_generic_rw(d, s, wlen+4, r, 64, 0);
r                 100 drivers/media/usb/dvb-usb/ttusb2.c 		r[0] != 0x55 ||
r                 101 drivers/media/usb/dvb-usb/ttusb2.c 		r[1] != s[1] ||
r                 102 drivers/media/usb/dvb-usb/ttusb2.c 		r[2] != cmd ||
r                 103 drivers/media/usb/dvb-usb/ttusb2.c 		(rlen > 0 && r[3] != rlen)) {
r                 104 drivers/media/usb/dvb-usb/ttusb2.c 		warn("there might have been an error during control message transfer. (rlen = %d, was %d)",rlen,r[3]);
r                 106 drivers/media/usb/dvb-usb/ttusb2.c 		kfree(r);
r                 111 drivers/media/usb/dvb-usb/ttusb2.c 		memcpy(rbuf, &r[4], rlen);
r                 114 drivers/media/usb/dvb-usb/ttusb2.c 	kfree(r);
r                 497 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 525 drivers/media/usb/em28xx/em28xx-dvb.c 				regs[i].r, regs[i].len);
r                 554 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 582 drivers/media/usb/em28xx/em28xx-dvb.c 				regs[i].r, regs[i].len);
r                 615 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 636 drivers/media/usb/em28xx/em28xx-dvb.c 				regs[i].r, regs[i].len);
r                 664 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 695 drivers/media/usb/em28xx/em28xx-dvb.c 				regs[i].r, regs[i].len);
r                 708 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 725 drivers/media/usb/em28xx/em28xx-dvb.c 				regs[i].r, regs[i].len);
r                 804 drivers/media/usb/em28xx/em28xx-dvb.c 		unsigned char r[4];
r                 848 drivers/media/usb/em28xx/em28xx-dvb.c 				regs1[i].r, regs1[i].len);
r                 852 drivers/media/usb/em28xx/em28xx-dvb.c 		i2c_master_send(dev->dvb->i2c_client_demod, regs2[i].r,
r                  75 drivers/media/usb/em28xx/em28xx-input.c 	int  (*get_key)(struct em28xx_IR *ir, struct em28xx_ir_poll_result *r);
r                 679 drivers/media/usb/go7007/go7007-usb.c 	int i, r;
r                 686 drivers/media/usb/go7007/go7007-usb.c 		r = usb_control_msg(usb->usbdev,
r                 691 drivers/media/usb/go7007/go7007-usb.c 		if (r < 0)
r                 698 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0)
r                 704 drivers/media/usb/go7007/go7007-usb.c 	r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 0), 0x12,
r                 707 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0)
r                 709 drivers/media/usb/go7007/go7007-usb.c 	r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 0),
r                 712 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0)
r                 717 drivers/media/usb/go7007/go7007-usb.c 	dev_err(go->dev, "error in WriteInterrupt: %d\n", r);
r                 718 drivers/media/usb/go7007/go7007-usb.c 	return r;
r                 725 drivers/media/usb/go7007/go7007-usb.c 	int r;
r                 735 drivers/media/usb/go7007/go7007-usb.c 	r = usb_control_msg(usb->usbdev, usb_sndctrlpipe(usb->usbdev, 2), 0x00,
r                 738 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0) {
r                 739 drivers/media/usb/go7007/go7007-usb.c 		dev_err(go->dev, "error in WriteInterrupt: %d\n", r);
r                 740 drivers/media/usb/go7007/go7007-usb.c 		return r;
r                 775 drivers/media/usb/go7007/go7007-usb.c 	int r;
r                 777 drivers/media/usb/go7007/go7007-usb.c 	r = usb_submit_urb(usb->intr_urb, GFP_KERNEL);
r                 778 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0) {
r                 779 drivers/media/usb/go7007/go7007-usb.c 		dev_err(go->dev, "unable to submit interrupt urb: %d\n", r);
r                 780 drivers/media/usb/go7007/go7007-usb.c 		return r;
r                 788 drivers/media/usb/go7007/go7007-usb.c 	int r, status = urb->status;
r                 803 drivers/media/usb/go7007/go7007-usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 804 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0)
r                 805 drivers/media/usb/go7007/go7007-usb.c 		dev_err(go->dev, "error in video pipe: %d\n", r);
r                 811 drivers/media/usb/go7007/go7007-usb.c 	int r, status = urb->status;
r                 826 drivers/media/usb/go7007/go7007-usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 827 drivers/media/usb/go7007/go7007-usb.c 	if (r < 0)
r                 828 drivers/media/usb/go7007/go7007-usb.c 		dev_err(go->dev, "error in audio pipe: %d\n", r);
r                 834 drivers/media/usb/go7007/go7007-usb.c 	int i, r;
r                 837 drivers/media/usb/go7007/go7007-usb.c 		r = usb_submit_urb(usb->video_urbs[i], GFP_KERNEL);
r                 838 drivers/media/usb/go7007/go7007-usb.c 		if (r < 0) {
r                 839 drivers/media/usb/go7007/go7007-usb.c 			dev_err(go->dev, "error submitting video urb %d: %d\n", i, r);
r                 847 drivers/media/usb/go7007/go7007-usb.c 		r = usb_submit_urb(usb->audio_urbs[i], GFP_KERNEL);
r                 848 drivers/media/usb/go7007/go7007-usb.c 		if (r < 0) {
r                 849 drivers/media/usb/go7007/go7007-usb.c 			dev_err(go->dev, "error submitting audio urb %d: %d\n", i, r);
r                 133 drivers/media/usb/go7007/snd-go7007.c 	int r;
r                 139 drivers/media/usb/go7007/snd-go7007.c 		r = 0;
r                 141 drivers/media/usb/go7007/snd-go7007.c 		r = -EBUSY;
r                 143 drivers/media/usb/go7007/snd-go7007.c 	return r;
r                 629 drivers/media/usb/gspca/etoms.c 	__u8 r, g, b;
r                 640 drivers/media/usb/gspca/etoms.c 	r = gspca_dev->usb_buf[1];
r                 642 drivers/media/usb/gspca/etoms.c 	r = ((r << 8) - (r << 4) - (r << 3)) >> 10;
r                 645 drivers/media/usb/gspca/etoms.c 	luma = LIMIT(r + g + b);
r                 543 drivers/media/usb/gspca/gl860/gl860.c 	s32 r = 0;
r                 548 drivers/media/usb/gspca/gl860/gl860.c 			r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
r                 553 drivers/media/usb/gspca/gl860/gl860.c 			r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
r                 558 drivers/media/usb/gspca/gl860/gl860.c 			r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
r                 564 drivers/media/usb/gspca/gl860/gl860.c 			r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
r                 569 drivers/media/usb/gspca/gl860/gl860.c 	if (r < 0)
r                 571 drivers/media/usb/gspca/gl860/gl860.c 		       r, pref, req, val, index, len);
r                 572 drivers/media/usb/gspca/gl860/gl860.c 	else if (len > 1 && r < len)
r                 573 drivers/media/usb/gspca/gl860/gl860.c 		gspca_err(gspca_dev, "short ctrl transfer %d/%d\n", r, len);
r                 577 drivers/media/usb/gspca/gl860/gl860.c 	return r;
r                1639 drivers/media/usb/gspca/nw80x.c 	int r, i;
r                1641 drivers/media/usb/gspca/nw80x.c 	r = 0;
r                1643 drivers/media/usb/gspca/nw80x.c 		r <<= 1;
r                1645 drivers/media/usb/gspca/nw80x.c 			r++;
r                1648 drivers/media/usb/gspca/nw80x.c 	return r;
r                 819 drivers/media/usb/gspca/ov534.c 	const struct rate_s *r;
r                 844 drivers/media/usb/gspca/ov534.c 		r = rate_0;
r                 847 drivers/media/usb/gspca/ov534.c 		r = rate_1;
r                 851 drivers/media/usb/gspca/ov534.c 		if (sd->frame_rate >= r->fps)
r                 853 drivers/media/usb/gspca/ov534.c 		r++;
r                 856 drivers/media/usb/gspca/ov534.c 	sccb_reg_write(gspca_dev, 0x11, r->r11);
r                 857 drivers/media/usb/gspca/ov534.c 	sccb_reg_write(gspca_dev, 0x0d, r->r0d);
r                 858 drivers/media/usb/gspca/ov534.c 	ov534_reg_write(gspca_dev, 0xe5, r->re5);
r                 860 drivers/media/usb/gspca/ov534.c 	gspca_dbg(gspca_dev, D_PROBE, "frame_rate: %d\n", r->fps);
r                 609 drivers/media/usb/gspca/sn9c2028.c 	int r;
r                 709 drivers/media/usb/gspca/sn9c2028.c 	r = run_start_commands(gspca_dev, genius_vcam_live_start_commands,
r                 711 drivers/media/usb/gspca/sn9c2028.c 	if (r < 0)
r                 712 drivers/media/usb/gspca/sn9c2028.c 		return r;
r                 717 drivers/media/usb/gspca/sn9c2028.c 	return r;
r                2188 drivers/media/usb/gspca/sn9c20x.c 	int new_qual, r;
r                2199 drivers/media/usb/gspca/sn9c20x.c 		r = (sd->pktsz * 100) /
r                2202 drivers/media/usb/gspca/sn9c20x.c 		if (r >= 85)
r                2204 drivers/media/usb/gspca/sn9c20x.c 		else if (r < 75)
r                2756 drivers/media/usb/gspca/sonixj.c 		int r;
r                2758 drivers/media/usb/gspca/sonixj.c 		r = (sd->pktsz * 100) /
r                2761 drivers/media/usb/gspca/sonixj.c 		if (r >= 85)
r                2763 drivers/media/usb/gspca/sonixj.c 		else if (r < 75)
r                 721 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.left = val;
r                 726 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.top = val;
r                 731 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.width = val;
r                 736 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.height = val;
r                 740 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r = cap.defrect;
r                 744 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r = cap.bounds;
r                 764 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.left);
r                 769 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.top);
r                 774 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.width);
r                 779 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.height);
r                 476 drivers/media/usb/pwc/pwc-ctrl.c 	int r;
r                 488 drivers/media/usb/pwc/pwc-ctrl.c 	r = send_control_msg(pdev, SET_STATUS_CTL,
r                 490 drivers/media/usb/pwc/pwc-ctrl.c 	if (r < 0)
r                 492 drivers/media/usb/pwc/pwc-ctrl.c 			  power ? "on" : "off", r);
r                 497 drivers/media/usb/pwc/pwc-ctrl.c 	int r;
r                 515 drivers/media/usb/pwc/pwc-ctrl.c 	r = send_control_msg(pdev,
r                 517 drivers/media/usb/pwc/pwc-ctrl.c 	if (r < 0)
r                 518 drivers/media/usb/pwc/pwc-ctrl.c 		PWC_ERROR("Failed to set LED on/off time (%d)\n", r);
r                 520 drivers/media/usb/pwc/pwc-ctrl.c 	return r;
r                  94 drivers/media/usb/pwc/pwc-dec23.c 	const unsigned int *r;
r                 100 drivers/media/usb/pwc/pwc-dec23.c 		r  = romtable[compression_mode];
r                 102 drivers/media/usb/pwc/pwc-dec23.c 		for (j = 0; j < 8; j++, r++, p0 += 128) {
r                 108 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0] >> 15) & 7;
r                 110 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0] >> 12) & 7;
r                 112 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0] >> 9) & 7;
r                 114 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0] >> 6) & 7;
r                 116 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0] >> 3) & 7;
r                 118 drivers/media/usb/pwc/pwc-dec23.c 					bit = (r[0]) & 7;
r                 700 drivers/media/usb/pwc/pwc-if.c 	int r;
r                 711 drivers/media/usb/pwc/pwc-if.c 	r = pwc_isoc_init(pdev);
r                 712 drivers/media/usb/pwc/pwc-if.c 	if (r) {
r                 721 drivers/media/usb/pwc/pwc-if.c 	return r;
r                 154 drivers/media/usb/pwc/pwc-v4l.c 	int r, def;
r                 157 drivers/media/usb/pwc/pwc-v4l.c 	r = v4l2_ctrl_handler_init(hdl, 20);
r                 158 drivers/media/usb/pwc/pwc-v4l.c 	if (r)
r                 159 drivers/media/usb/pwc/pwc-v4l.c 		return r;
r                 162 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, BRIGHTNESS_FORMATTER, &def);
r                 163 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 127)
r                 168 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, CONTRAST_FORMATTER, &def);
r                 169 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 63)
r                 179 drivers/media/usb/pwc/pwc-v4l.c 		r = pwc_get_s8_ctrl(pdev, GET_CHROM_CTL, pdev->saturation_fmt,
r                 181 drivers/media/usb/pwc/pwc-v4l.c 		if (r || def < -100 || def > 100)
r                 187 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, GAMMA_FORMATTER, &def);
r                 188 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 31)
r                 194 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL, WB_MODE_FORMATTER, &def);
r                 195 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > awb_auto)
r                 205 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL,
r                 207 drivers/media/usb/pwc/pwc-v4l.c 	if (r)
r                 212 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL,
r                 214 drivers/media/usb/pwc/pwc-v4l.c 	if (r)
r                 222 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AGC_MODE_FORMATTER, &def);
r                 223 drivers/media/usb/pwc/pwc-v4l.c 	if (r || (def != 0 && def != 0xff))
r                 231 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_AGC_FORMATTER, &def);
r                 232 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 63)
r                 239 drivers/media/usb/pwc/pwc-v4l.c 		r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, SHUTTER_MODE_FORMATTER,
r                 241 drivers/media/usb/pwc/pwc-v4l.c 		if (r || (def != 0 && def != 0xff))
r                 255 drivers/media/usb/pwc/pwc-v4l.c 		r = pwc_get_u16_ctrl(pdev, GET_STATUS_CTL,
r                 257 drivers/media/usb/pwc/pwc-v4l.c 		if (r || def > 655)
r                 267 drivers/media/usb/pwc/pwc-v4l.c 		r = pwc_get_u16_ctrl(pdev, GET_STATUS_CTL,
r                 269 drivers/media/usb/pwc/pwc-v4l.c 		if (r || def > 255)
r                 282 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL, COLOUR_MODE_FORMATTER,
r                 284 drivers/media/usb/pwc/pwc-v4l.c 	if (r || (def != 0 && def != 0xff))
r                 291 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, AUTO_CONTOUR_FORMATTER, &def);
r                 292 drivers/media/usb/pwc/pwc-v4l.c 	if (r || (def != 0 && def != 0xff))
r                 300 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL, PRESET_CONTOUR_FORMATTER, &def);
r                 301 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 63)
r                 310 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL,
r                 312 drivers/media/usb/pwc/pwc-v4l.c 	if (r || (def != 0 && def != 0xff))
r                 320 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL,
r                 322 drivers/media/usb/pwc/pwc-v4l.c 	if (r || (def != 0 && def != 0xff))
r                 330 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_LUM_CTL,
r                 332 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 3)
r                 351 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL,
r                 353 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def < 1 || def > 32)
r                 359 drivers/media/usb/pwc/pwc-v4l.c 	r = pwc_get_u8_ctrl(pdev, GET_CHROM_CTL,
r                 361 drivers/media/usb/pwc/pwc-v4l.c 	if (r || def > 63)
r                1874 drivers/media/usb/s2255/s2255drv.c 	int r;
r                1882 drivers/media/usb/s2255/s2255drv.c 		r = usb_control_msg(dev->udev, usb_rcvctrlpipe(dev->udev, 0),
r                1889 drivers/media/usb/s2255/s2255drv.c 		if (r >= 0)
r                1893 drivers/media/usb/s2255/s2255drv.c 		r = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0),
r                1899 drivers/media/usb/s2255/s2255drv.c 	return r;
r                 384 drivers/media/usb/usbvision/usbvision-video.c 	int r;
r                 399 drivers/media/usb/usbvision/usbvision-video.c 	r = usbvision->remove_pending;
r                 402 drivers/media/usb/usbvision/usbvision-video.c 	if (r) {
r                1110 drivers/media/usb/usbvision/usbvision-video.c 	int r;
r                1124 drivers/media/usb/usbvision/usbvision-video.c 	r = usbvision->remove_pending;
r                1127 drivers/media/usb/usbvision/usbvision-video.c 	if (r) {
r                 279 drivers/media/usb/uvc/uvc_driver.c 	u32 x, y, r;
r                 302 drivers/media/usb/uvc/uvc_driver.c 		r = x - an[n] * y;
r                 304 drivers/media/usb/uvc/uvc_driver.c 		y = r;
r                 312 drivers/media/usb/uvc/uvc_driver.c 		r = y;
r                 314 drivers/media/usb/uvc/uvc_driver.c 		x = r;
r                1131 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.left = 0;
r                1132 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.top = 0;
r                1134 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.width = stream->cur_frame->wWidth;
r                1135 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.height = stream->cur_frame->wHeight;
r                 201 drivers/media/v4l2-core/v4l2-clk.c 		long r = clk_round_rate(clk->clk, rate);
r                 202 drivers/media/v4l2-core/v4l2-clk.c 		if (r < 0)
r                 203 drivers/media/v4l2-core/v4l2-clk.c 			return r;
r                 204 drivers/media/v4l2-core/v4l2-clk.c 		return clk_set_rate(clk->clk, r);
r                4194 drivers/media/v4l2-core/v4l2-ctrls.c 				struct v4l2_ctrl_ref *r =
r                4197 drivers/media/v4l2-core/v4l2-ctrls.c 				if (r->req && r == r->req) {
r                4210 drivers/media/v4l2-core/v4l2-ctrls.c 				struct v4l2_ctrl_ref *r =
r                4213 drivers/media/v4l2-core/v4l2-ctrls.c 				req_to_new(r);
r                4215 drivers/media/v4l2-core/v4l2-ctrls.c 				r->req_done = true;
r                 636 drivers/media/v4l2-core/v4l2-ioctl.c 		p->r.width, p->r.height, p->r.left, p->r.top);
r                2317 drivers/media/v4l2-core/v4l2-ioctl.c 		p->c = s.r;
r                2328 drivers/media/v4l2-core/v4l2-ioctl.c 		.r = p->c,
r                2396 drivers/media/v4l2-core/v4l2-ioctl.c 	p->bounds = s.r;
r                2407 drivers/media/v4l2-core/v4l2-ioctl.c 	p->defrect = s.r;
r                2737 drivers/media/v4l2-core/v4l2-ioctl.c 	IOCTL_INFO(VIDIOC_G_SELECTION, v4l_g_selection, v4l_print_selection, INFO_FL_CLEAR(v4l2_selection, r)),
r                2738 drivers/media/v4l2-core/v4l2-ioctl.c 	IOCTL_INFO(VIDIOC_S_SELECTION, v4l_s_selection, v4l_print_selection, INFO_FL_PRIO | INFO_FL_CLEAR(v4l2_selection, r)),
r                 474 drivers/media/v4l2-core/v4l2-subdev.c 		crop->rect = sel.r;
r                 488 drivers/media/v4l2-core/v4l2-subdev.c 		sel.r = crop->rect;
r                 493 drivers/media/v4l2-core/v4l2-subdev.c 		crop->rect = sel.r;
r                 175 drivers/memory/fsl-corenet-cf.c 	struct resource *r;
r                 188 drivers/memory/fsl-corenet-cf.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 189 drivers/memory/fsl-corenet-cf.c 	if (!r) {
r                 194 drivers/memory/fsl-corenet-cf.c 	ccf->regs = devm_ioremap_resource(&pdev->dev, r);
r                 110 drivers/memory/mvebu-devbus.c 				    struct devbus_read_params *r,
r                 115 drivers/memory/mvebu-devbus.c 	err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width);
r                 127 drivers/memory/mvebu-devbus.c 	if (r->bus_width == 8)
r                 128 drivers/memory/mvebu-devbus.c 		r->bus_width = 0;
r                 129 drivers/memory/mvebu-devbus.c 	else if (r->bus_width == 16)
r                 130 drivers/memory/mvebu-devbus.c 		r->bus_width = 1;
r                 132 drivers/memory/mvebu-devbus.c 		dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width);
r                 137 drivers/memory/mvebu-devbus.c 				 &r->badr_skew);
r                 142 drivers/memory/mvebu-devbus.c 				 &r->turn_off);
r                 147 drivers/memory/mvebu-devbus.c 				 &r->acc_first);
r                 152 drivers/memory/mvebu-devbus.c 				 &r->acc_next);
r                 158 drivers/memory/mvebu-devbus.c 					  &r->rd_setup);
r                 163 drivers/memory/mvebu-devbus.c 					  &r->rd_hold);
r                 197 drivers/memory/mvebu-devbus.c 					  struct devbus_read_params *r,
r                 209 drivers/memory/mvebu-devbus.c 	value =	(r->turn_off   & ORION_TURN_OFF_MASK)  << ORION_TURN_OFF_SHIFT  |
r                 210 drivers/memory/mvebu-devbus.c 		(r->acc_first  & ORION_ACC_FIRST_MASK) << ORION_ACC_FIRST_SHIFT |
r                 211 drivers/memory/mvebu-devbus.c 		(r->acc_next   & ORION_ACC_NEXT_MASK)  << ORION_ACC_NEXT_SHIFT  |
r                 215 drivers/memory/mvebu-devbus.c 		r->bus_width                           << ORION_DEV_WIDTH_SHIFT |
r                 216 drivers/memory/mvebu-devbus.c 		((r->turn_off  & ORION_TURN_OFF_EXT_MASK)  ? ORION_TURN_OFF_EXT_BIT  : 0) |
r                 217 drivers/memory/mvebu-devbus.c 		((r->acc_first & ORION_ACC_FIRST_EXT_MASK) ? ORION_ACC_FIRST_EXT_BIT : 0) |
r                 218 drivers/memory/mvebu-devbus.c 		((r->acc_next  & ORION_ACC_NEXT_EXT_MASK)  ? ORION_ACC_NEXT_EXT_BIT  : 0) |
r                 222 drivers/memory/mvebu-devbus.c 		(r->badr_skew << ORION_BADR_SKEW_SHIFT) |
r                 230 drivers/memory/mvebu-devbus.c 					   struct devbus_read_params *r,
r                 236 drivers/memory/mvebu-devbus.c 	value = r->bus_width << ARMADA_DEV_WIDTH_SHIFT |
r                 237 drivers/memory/mvebu-devbus.c 		r->badr_skew << ARMADA_BADR_SKEW_SHIFT |
r                 238 drivers/memory/mvebu-devbus.c 		r->rd_hold   << ARMADA_RD_HOLD_SHIFT   |
r                 239 drivers/memory/mvebu-devbus.c 		r->acc_next  << ARMADA_ACC_NEXT_SHIFT  |
r                 240 drivers/memory/mvebu-devbus.c 		r->rd_setup  << ARMADA_RD_SETUP_SHIFT  |
r                 241 drivers/memory/mvebu-devbus.c 		r->acc_first << ARMADA_ACC_FIRST_SHIFT |
r                 242 drivers/memory/mvebu-devbus.c 		r->turn_off;
r                 267 drivers/memory/mvebu-devbus.c 	struct devbus_read_params r;
r                 303 drivers/memory/mvebu-devbus.c 		err = devbus_get_timing_params(devbus, node, &r, &w);
r                 309 drivers/memory/mvebu-devbus.c 			devbus_orion_set_timing_params(devbus, node, &r, &w);
r                 311 drivers/memory/mvebu-devbus.c 			devbus_armada_set_timing_params(devbus, node, &r, &w);
r                 911 drivers/memory/omap-gpmc.c 	int r;
r                 917 drivers/memory/omap-gpmc.c 	r = request_resource(&gpmc_mem_root, res);
r                 920 drivers/memory/omap-gpmc.c 	return r;
r                 927 drivers/memory/omap-gpmc.c 	int r;
r                 930 drivers/memory/omap-gpmc.c 	r = release_resource(res);
r                 935 drivers/memory/omap-gpmc.c 	return r;
r                 985 drivers/memory/omap-gpmc.c 	int r = -1;
r                 997 drivers/memory/omap-gpmc.c 		r = -EBUSY;
r                1001 drivers/memory/omap-gpmc.c 		r = adjust_resource(res, res->start & ~(size - 1), size);
r                1002 drivers/memory/omap-gpmc.c 	if (r < 0)
r                1003 drivers/memory/omap-gpmc.c 		r = allocate_resource(&gpmc_mem_root, res, size, 0, ~0,
r                1005 drivers/memory/omap-gpmc.c 	if (r < 0)
r                1011 drivers/memory/omap-gpmc.c 	r = gpmc_cs_set_memconf(cs, res->start, resource_size(res));
r                1012 drivers/memory/omap-gpmc.c 	if (r < 0) {
r                1023 drivers/memory/omap-gpmc.c 	return r;
r                1186 drivers/message/fusion/mptbase.c 	int	r = 0;
r                1228 drivers/message/fusion/mptbase.c 	if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
r                1242 drivers/message/fusion/mptbase.c 		if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
r                1243 drivers/message/fusion/mptbase.c 			r = -3;
r                1248 drivers/message/fusion/mptbase.c 	if (r >= 0 && WaitForDoorbellInt(ioc, 10, sleepFlag) >= 0)
r                1249 drivers/message/fusion/mptbase.c 		r = 0;
r                1251 drivers/message/fusion/mptbase.c 		r = -4;
r                1256 drivers/message/fusion/mptbase.c 	return r;
r                1281 drivers/message/fusion/mptbase.c 	int	 r = 0;
r                1296 drivers/message/fusion/mptbase.c 	if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0) {
r                1650 drivers/message/fusion/mptbase.c 	int		 r = -ENODEV;
r                1658 drivers/message/fusion/mptbase.c 		return r;
r                1730 drivers/message/fusion/mptbase.c 		r = -EINVAL;
r                1750 drivers/message/fusion/mptbase.c 	return r;
r                1776 drivers/message/fusion/mptbase.c 	int		 r = -ENODEV;
r                1875 drivers/message/fusion/mptbase.c 		r = -ENOMEM;
r                2004 drivers/message/fusion/mptbase.c 		r = -ENOMEM;
r                2008 drivers/message/fusion/mptbase.c 	if ((r = mpt_do_ioc_recovery(ioc, MPT_HOSTEVENT_IOC_BRINGUP,
r                2011 drivers/message/fusion/mptbase.c 		    ioc->name, r);
r                2022 drivers/message/fusion/mptbase.c 		if (r != -5)
r                2029 drivers/message/fusion/mptbase.c 		return r;
r                2075 drivers/message/fusion/mptbase.c 	return r;
r                2927 drivers/message/fusion/mptbase.c 	int	 r;
r                2984 drivers/message/fusion/mptbase.c 				if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) == 0)
r                3007 drivers/message/fusion/mptbase.c 			if ((r = SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, sleepFlag)) != 0) {
r                3016 drivers/message/fusion/mptbase.c 			if ((r = SendIocReset(ioc, MPI_FUNCTION_IO_UNIT_RESET, sleepFlag)) != 0) {
r                3084 drivers/message/fusion/mptbase.c 	int			 r;
r                3119 drivers/message/fusion/mptbase.c 	r = mpt_handshake_req_reply_wait(ioc, req_sz, (u32*)&get_facts,
r                3121 drivers/message/fusion/mptbase.c 	if (r != 0)
r                3122 drivers/message/fusion/mptbase.c 		return r;
r                3202 drivers/message/fusion/mptbase.c 		r = sz = facts->BlockSize;
r                3213 drivers/message/fusion/mptbase.c 		    ioc->name, vv, shiftFactor, r));
r                3231 drivers/message/fusion/mptbase.c 			if ( (r = GetPortFacts(ioc, 0, sleepFlag)) != 0 )
r                3232 drivers/message/fusion/mptbase.c 				return r;
r                3343 drivers/message/fusion/mptbase.c 	int			 r;
r                3401 drivers/message/fusion/mptbase.c 	r = mpt_handshake_req_reply_wait(ioc, sizeof(IOCInit_t), (u32*)&ioc_init,
r                3403 drivers/message/fusion/mptbase.c 	if (r != 0) {
r                3404 drivers/message/fusion/mptbase.c 		printk(MYIOC_s_ERR_FMT "Sending IOCInit failed(%d)!\n",ioc->name, r);
r                3405 drivers/message/fusion/mptbase.c 		return r;
r                3415 drivers/message/fusion/mptbase.c 	if ((r = SendPortEnable(ioc, 0, sleepFlag)) != 0) {
r                3416 drivers/message/fusion/mptbase.c 		printk(MYIOC_s_ERR_FMT "Sending PortEnable failed(%d)!\n",ioc->name, r);
r                3417 drivers/message/fusion/mptbase.c 		return r;
r                3447 drivers/message/fusion/mptbase.c 	return r;
r                4271 drivers/message/fusion/mptbase.c 	int r;
r                4278 drivers/message/fusion/mptbase.c 	if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0)
r                4279 drivers/message/fusion/mptbase.c 		return r;
r                7701 drivers/message/fusion/mptbase.c 	int r = 0;
r                7774 drivers/message/fusion/mptbase.c 			r += (*(MptEvHandlers[cb_idx]))(ioc, pEventReply);
r                7793 drivers/message/fusion/mptbase.c 	return r;
r                1180 drivers/message/fusion/mptfc.c 	int			r;
r                1182 drivers/message/fusion/mptfc.c 	if ((r = mpt_attach(pdev,id)) != 0)
r                1183 drivers/message/fusion/mptfc.c 		return r;
r                5136 drivers/message/fusion/mptsas.c 	int			r;
r                5138 drivers/message/fusion/mptsas.c 	r = mpt_attach(pdev,id);
r                5139 drivers/message/fusion/mptsas.c 	if (r)
r                5140 drivers/message/fusion/mptsas.c 		return r;
r                  88 drivers/message/fusion/mptscsih.c int		mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                  90 drivers/message/fusion/mptscsih.c int		mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                 107 drivers/message/fusion/mptscsih.c int		mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                 126 drivers/message/fusion/mptscsih.h extern int mptscsih_io_done(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                 127 drivers/message/fusion/mptscsih.h extern int mptscsih_taskmgmt_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                 128 drivers/message/fusion/mptscsih.h extern int mptscsih_scandv_complete(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *r);
r                1363 drivers/message/fusion/mptspi.c 	int			r;
r                1365 drivers/message/fusion/mptspi.c 	if ((r = mpt_attach(pdev,id)) != 0)
r                1366 drivers/message/fusion/mptspi.c 		return r;
r                 120 drivers/mfd/cs5535-mfd.c 		struct resource *r = &cs5535_mfd_resources[bar];
r                 122 drivers/mfd/cs5535-mfd.c 		r->flags = IORESOURCE_IO;
r                 123 drivers/mfd/cs5535-mfd.c 		r->start = pci_resource_start(pdev, bar);
r                 124 drivers/mfd/cs5535-mfd.c 		r->end = pci_resource_end(pdev, bar);
r                 728 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                 762 drivers/mfd/db8500-prcmu.c 				r = -EBUSY;
r                 767 drivers/mfd/db8500-prcmu.c 				r = -EINVAL;
r                 778 drivers/mfd/db8500-prcmu.c 	return r;
r                 893 drivers/mfd/db8500-prcmu.c 	int r;
r                 898 drivers/mfd/db8500-prcmu.c 	r = 0;
r                 914 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                 918 drivers/mfd/db8500-prcmu.c 	return r;
r                 996 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1022 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1025 drivers/mfd/db8500-prcmu.c 	if ((!r && (opp == APE_50_PARTLY_25_OPP)) ||
r                1026 drivers/mfd/db8500-prcmu.c 		(r && (mb1_transfer.ape_opp == APE_50_PARTLY_25_OPP)))
r                1028 drivers/mfd/db8500-prcmu.c 	if (!r)
r                1033 drivers/mfd/db8500-prcmu.c 	return r;
r                1054 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1066 drivers/mfd/db8500-prcmu.c 			r = -EIO;
r                1084 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1089 drivers/mfd/db8500-prcmu.c 	return r;
r                1099 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1114 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1118 drivers/mfd/db8500-prcmu.c 	return r;
r                1123 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1144 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1148 drivers/mfd/db8500-prcmu.c 	return r;
r                1161 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1207 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1212 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1216 drivers/mfd/db8500-prcmu.c 	return r;
r                1274 drivers/mfd/db8500-prcmu.c 	int r;
r                1277 drivers/mfd/db8500-prcmu.c 	r = 0;
r                1301 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                1306 drivers/mfd/db8500-prcmu.c 	return r;
r                1379 drivers/mfd/db8500-prcmu.c 	int r = 0;
r                1410 drivers/mfd/db8500-prcmu.c 			r = -EAGAIN;
r                1415 drivers/mfd/db8500-prcmu.c 	return r;
r                1536 drivers/mfd/db8500-prcmu.c 		u64 r = (rate * 10);
r                1538 drivers/mfd/db8500-prcmu.c 		(void)do_div(r, 25);
r                1539 drivers/mfd/db8500-prcmu.c 		return (unsigned long)r;
r                1550 drivers/mfd/db8500-prcmu.c 	u32 r;
r                1553 drivers/mfd/db8500-prcmu.c 	r = readl(PRCM_ARM_CHGCLKREQ);
r                1555 drivers/mfd/db8500-prcmu.c 	if (r & PRCM_ARM_CHGCLKREQ_PRCM_ARM_CHGCLKREQ) {
r                1561 drivers/mfd/db8500-prcmu.c 		if (!(r & PRCM_ARM_CHGCLKREQ_PRCM_ARM_DIVSEL))
r                1565 drivers/mfd/db8500-prcmu.c 		r = readl(PRCM_ARMCLKFIX_MGT);
r                1566 drivers/mfd/db8500-prcmu.c 		r &= PRCM_CLK_MGT_CLKPLLDIV_MASK;
r                1567 drivers/mfd/db8500-prcmu.c 		rate /= r;
r                1686 drivers/mfd/db8500-prcmu.c 		u64 r = (src_rate * 10);
r                1688 drivers/mfd/db8500-prcmu.c 		(void)do_div(r, 25);
r                1689 drivers/mfd/db8500-prcmu.c 		if (r <= rate)
r                1690 drivers/mfd/db8500-prcmu.c 			return (unsigned long)r;
r                1748 drivers/mfd/db8500-prcmu.c 	u32 r;
r                1753 drivers/mfd/db8500-prcmu.c 	for (r = 7; (rem > 0) && (r > 0); r--) {
r                1756 drivers/mfd/db8500-prcmu.c 		d = (r * rate);
r                1763 drivers/mfd/db8500-prcmu.c 		if (((2 * d) < (r * MIN_PLL_VCO_RATE)) ||
r                1764 drivers/mfd/db8500-prcmu.c 			((r * MAX_PLL_VCO_RATE) < (2 * d)))
r                1766 drivers/mfd/db8500-prcmu.c 		(void)do_div(d, r);
r                1851 drivers/mfd/db8500-prcmu.c 			u64 r = (src_rate * 10);
r                1853 drivers/mfd/db8500-prcmu.c 			(void)do_div(r, 25);
r                1854 drivers/mfd/db8500-prcmu.c 			if (r <= rate) {
r                1908 drivers/mfd/db8500-prcmu.c 	u32 r;
r                1913 drivers/mfd/db8500-prcmu.c 	for (r = 7; (rem > 0) && (r > 0); r--) {
r                1917 drivers/mfd/db8500-prcmu.c 		d = (r * rate);
r                1924 drivers/mfd/db8500-prcmu.c 		if (((2 * hwrate) < (r * MIN_PLL_VCO_RATE)) ||
r                1925 drivers/mfd/db8500-prcmu.c 			((r * MAX_PLL_VCO_RATE) < (2 * hwrate)))
r                1927 drivers/mfd/db8500-prcmu.c 		(void)do_div(hwrate, r);
r                1931 drivers/mfd/db8500-prcmu.c 					(r << PRCM_PLL_FREQ_R_SHIFT));
r                1937 drivers/mfd/db8500-prcmu.c 				(r << PRCM_PLL_FREQ_R_SHIFT));
r                2174 drivers/mfd/db8500-prcmu.c 	int r;
r                2196 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                2198 drivers/mfd/db8500-prcmu.c 		r = ((mb5_transfer.ack.status == I2C_RD_OK) ? 0 : -EIO);
r                2201 drivers/mfd/db8500-prcmu.c 	if (!r)
r                2206 drivers/mfd/db8500-prcmu.c 	return r;
r                2224 drivers/mfd/db8500-prcmu.c 	int r;
r                2246 drivers/mfd/db8500-prcmu.c 		r = -EIO;
r                2248 drivers/mfd/db8500-prcmu.c 		r = ((mb5_transfer.ack.status == I2C_WR_OK) ? 0 : -EIO);
r                2253 drivers/mfd/db8500-prcmu.c 	return r;
r                2415 drivers/mfd/db8500-prcmu.c 	bool r;
r                2440 drivers/mfd/db8500-prcmu.c 		r = true;
r                2444 drivers/mfd/db8500-prcmu.c 		r = false;
r                2448 drivers/mfd/db8500-prcmu.c 	return r;
r                2546 drivers/mfd/db8500-prcmu.c 	irqreturn_t r;
r                2552 drivers/mfd/db8500-prcmu.c 	r = IRQ_HANDLED;
r                2557 drivers/mfd/db8500-prcmu.c 				r = IRQ_WAKE_THREAD;
r                2560 drivers/mfd/db8500-prcmu.c 	return r;
r                 213 drivers/mfd/dm355evm_msp.c 		struct resource r = {
r                 218 drivers/mfd/dm355evm_msp.c 		status = platform_device_add_resources(pdev, &r, 1);
r                 129 drivers/mfd/htc-pasic3.c 	struct resource *r;
r                 133 drivers/mfd/htc-pasic3.c 	r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 134 drivers/mfd/htc-pasic3.c 	if (r) {
r                 135 drivers/mfd/htc-pasic3.c 		ds1wm_resources[1].flags = IORESOURCE_IRQ | (r->flags &
r                 137 drivers/mfd/htc-pasic3.c 		irq = r->start;
r                 140 drivers/mfd/htc-pasic3.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 141 drivers/mfd/htc-pasic3.c 	if (!r)
r                 144 drivers/mfd/htc-pasic3.c 	if (!request_mem_region(r->start, resource_size(r), "pasic3"))
r                 153 drivers/mfd/htc-pasic3.c 	asic->mapping = ioremap(r->start, resource_size(r));
r                 160 drivers/mfd/htc-pasic3.c 	asic->bus_shift = (resource_size(r) - 5) >> 3;
r                 167 drivers/mfd/htc-pasic3.c 				      &ds1wm_cell, 1, r, irq, NULL);
r                 175 drivers/mfd/htc-pasic3.c 		ret = mfd_add_devices(&pdev->dev, pdev->id, &led_cell, 1, r,
r                 187 drivers/mfd/htc-pasic3.c 	struct resource *r;
r                 192 drivers/mfd/htc-pasic3.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 193 drivers/mfd/htc-pasic3.c 	release_mem_region(r->start, resource_size(r));
r                  65 drivers/mfd/mc13xxx-spi.c 	unsigned char r[4];
r                  71 drivers/mfd/mc13xxx-spi.c 		.rx_buf = r,
r                  85 drivers/mfd/mc13xxx-spi.c 	memcpy(p, &r[1], 3);
r                 146 drivers/mfd/mfd-core.c 	int r;
r                 203 drivers/mfd/mfd-core.c 	for (r = 0; r < cell->num_resources; r++) {
r                 204 drivers/mfd/mfd-core.c 		res[r].name = cell->resources[r].name;
r                 205 drivers/mfd/mfd-core.c 		res[r].flags = cell->resources[r].flags;
r                 208 drivers/mfd/mfd-core.c 		if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) {
r                 209 drivers/mfd/mfd-core.c 			res[r].parent = mem_base;
r                 210 drivers/mfd/mfd-core.c 			res[r].start = mem_base->start +
r                 211 drivers/mfd/mfd-core.c 				cell->resources[r].start;
r                 212 drivers/mfd/mfd-core.c 			res[r].end = mem_base->start +
r                 213 drivers/mfd/mfd-core.c 				cell->resources[r].end;
r                 214 drivers/mfd/mfd-core.c 		} else if (cell->resources[r].flags & IORESOURCE_IRQ) {
r                 217 drivers/mfd/mfd-core.c 				WARN_ON(cell->resources[r].start !=
r                 218 drivers/mfd/mfd-core.c 					cell->resources[r].end);
r                 219 drivers/mfd/mfd-core.c 				res[r].start = res[r].end = irq_create_mapping(
r                 220 drivers/mfd/mfd-core.c 					domain, cell->resources[r].start);
r                 222 drivers/mfd/mfd-core.c 				res[r].start = irq_base +
r                 223 drivers/mfd/mfd-core.c 					cell->resources[r].start;
r                 224 drivers/mfd/mfd-core.c 				res[r].end   = irq_base +
r                 225 drivers/mfd/mfd-core.c 					cell->resources[r].end;
r                 228 drivers/mfd/mfd-core.c 			res[r].parent = cell->resources[r].parent;
r                 229 drivers/mfd/mfd-core.c 			res[r].start = cell->resources[r].start;
r                 230 drivers/mfd/mfd-core.c 			res[r].end   = cell->resources[r].end;
r                 235 drivers/mfd/mfd-core.c 				ret = acpi_check_resource_conflict(&res[r]);
r                 282 drivers/mfd/omap-usb-host.c 	int i, r;
r                 295 drivers/mfd/omap-usb-host.c 				r = clk_prepare_enable(omap->hsic60m_clk[i]);
r                 296 drivers/mfd/omap-usb-host.c 				if (r) {
r                 299 drivers/mfd/omap-usb-host.c 					 i, r);
r                 304 drivers/mfd/omap-usb-host.c 				r = clk_prepare_enable(omap->hsic480m_clk[i]);
r                 305 drivers/mfd/omap-usb-host.c 				if (r) {
r                 308 drivers/mfd/omap-usb-host.c 					 i, r);
r                 315 drivers/mfd/omap-usb-host.c 				r = clk_prepare_enable(omap->utmi_clk[i]);
r                 316 drivers/mfd/omap-usb-host.c 				if (r) {
r                 319 drivers/mfd/omap-usb-host.c 					 i, r);
r                 405 drivers/mfd/omap-usb-tll.c 			int r;
r                 410 drivers/mfd/omap-usb-tll.c 			r = clk_enable(tll->ch_clk[i]);
r                 411 drivers/mfd/omap-usb-tll.c 			if (r) {
r                 413 drivers/mfd/omap-usb-tll.c 				 "Error enabling ch %d clock: %d\n", i, r);
r                1237 drivers/mfd/sm501.c 				  struct sm501_reg_init *r)
r                1242 drivers/mfd/sm501.c 	tmp &= ~r->mask;
r                1243 drivers/mfd/sm501.c 	tmp |= r->set;
r                  28 drivers/mfd/sta2x11-mfd.c static inline int __reg_within_range(unsigned int r,
r                  32 drivers/mfd/sta2x11-mfd.c 	return ((r >= start) && (r <= end));
r                  96 drivers/mfd/sta2x11-mfd.c 	u32 r;
r                 111 drivers/mfd/sta2x11-mfd.c 	r = readl(regs + reg);
r                 112 drivers/mfd/sta2x11-mfd.c 	r &= ~mask;
r                 113 drivers/mfd/sta2x11-mfd.c 	r |= val;
r                 115 drivers/mfd/sta2x11-mfd.c 		writel(r, regs + reg);
r                 117 drivers/mfd/sta2x11-mfd.c 	return r;
r                 625 drivers/mfd/twl-core.c 		struct resource r[2] = {
r                 630 drivers/mfd/twl-core.c 		status = platform_device_add_resources(pdev, r, irq1 ? 2 : 1);
r                  25 drivers/mfd/wl1273-core.c 	int r;
r                  27 drivers/mfd/wl1273-core.c 	r = i2c_smbus_read_i2c_block_data(client, reg, sizeof(b), b);
r                  28 drivers/mfd/wl1273-core.c 	if (r != 2) {
r                  42 drivers/mfd/wl1273-core.c 	int r;
r                  44 drivers/mfd/wl1273-core.c 	r = i2c_smbus_write_i2c_block_data(client, cmd, sizeof(buf), buf);
r                  45 drivers/mfd/wl1273-core.c 	if (r) {
r                  47 drivers/mfd/wl1273-core.c 		return r;
r                  57 drivers/mfd/wl1273-core.c 	int r;
r                  64 drivers/mfd/wl1273-core.c 	r = i2c_transfer(client->adapter, &msg, 1);
r                  65 drivers/mfd/wl1273-core.c 	if (r != 1) {
r                  82 drivers/mfd/wl1273-core.c 	int r = 0;
r                  89 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_PCM_MODE_SET,
r                  91 drivers/mfd/wl1273-core.c 		if (r)
r                  94 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_I2S_MODE_CONFIG_SET,
r                  96 drivers/mfd/wl1273-core.c 		if (r)
r                  99 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_ENABLE,
r                 101 drivers/mfd/wl1273-core.c 		if (r)
r                 106 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_ENABLE,
r                 108 drivers/mfd/wl1273-core.c 		if (r)
r                 113 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_I2S_MODE_CONFIG_SET,
r                 115 drivers/mfd/wl1273-core.c 		if (r)
r                 118 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_IO_SET,
r                 120 drivers/mfd/wl1273-core.c 		if (r)
r                 125 drivers/mfd/wl1273-core.c 		r = wl1273_fm_write_cmd(core, WL1273_AUDIO_IO_SET,
r                 127 drivers/mfd/wl1273-core.c 		if (r)
r                 133 drivers/mfd/wl1273-core.c 	return r;
r                 143 drivers/mfd/wl1273-core.c 	int r;
r                 151 drivers/mfd/wl1273-core.c 	r = wl1273_fm_write_cmd(core, WL1273_VOLUME_SET, volume);
r                 152 drivers/mfd/wl1273-core.c 	if (r)
r                 153 drivers/mfd/wl1273-core.c 		return r;
r                 166 drivers/mfd/wl1273-core.c 	int r = 0;
r                 217 drivers/mfd/wl1273-core.c 	r = devm_mfd_add_devices(&client->dev, -1, core->cells,
r                 219 drivers/mfd/wl1273-core.c 	if (r)
r                 229 drivers/mfd/wl1273-core.c 	return r;
r                 242 drivers/mfd/wl1273-core.c 	int r;
r                 244 drivers/mfd/wl1273-core.c 	r = i2c_add_driver(&wl1273_core_driver);
r                 245 drivers/mfd/wl1273-core.c 	if (r) {
r                 248 drivers/mfd/wl1273-core.c 		return r;
r                 251 drivers/mfd/wl1273-core.c 	return r;
r                 112 drivers/misc/atmel_tclib.c 	struct resource	*r;
r                 136 drivers/misc/atmel_tclib.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 137 drivers/misc/atmel_tclib.c 	tc->regs = devm_ioremap_resource(&pdev->dev, r);
r                 149 drivers/misc/cxl/api.c 	int r;
r                 151 drivers/misc/cxl/api.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 152 drivers/misc/cxl/api.c 		range = ctx->irqs.range[r];
r                 154 drivers/misc/cxl/api.c 			return ctx->irqs.offset[r] + num;
r                 383 drivers/misc/cxl/guest.c 	int r, i;
r                 386 drivers/misc/cxl/guest.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 387 drivers/misc/cxl/guest.c 		hwirq = ctx->irqs.offset[r];
r                 388 drivers/misc/cxl/guest.c 		for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) {
r                 399 drivers/misc/cxl/guest.c 	int r, i;
r                 402 drivers/misc/cxl/guest.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 403 drivers/misc/cxl/guest.c 		hwirq = ctx->irqs.offset[r];
r                 404 drivers/misc/cxl/guest.c 		for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) {
r                 521 drivers/misc/cxl/guest.c 	int rc, r, i;
r                 570 drivers/misc/cxl/guest.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 571 drivers/misc/cxl/guest.c 		for (i = 0; i < ctx->irqs.range[r]; i++) {
r                 572 drivers/misc/cxl/guest.c 			if (r == 0 && i == 0) {
r                 575 drivers/misc/cxl/guest.c 				idx = ctx->irqs.offset[r] + i - adapter->guest->irq_base_offset;
r                 176 drivers/misc/cxl/irq.c 	int r;
r                 190 drivers/misc/cxl/irq.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 191 drivers/misc/cxl/irq.c 		irq_off = hwirq - ctx->irqs.offset[r];
r                 192 drivers/misc/cxl/irq.c 		range = ctx->irqs.range[r];
r                 199 drivers/misc/cxl/irq.c 	if (unlikely(r >= CXL_IRQ_RANGES)) {
r                 293 drivers/misc/cxl/irq.c 	int rc, r, i, j = 1;
r                 330 drivers/misc/cxl/irq.c 	for (r = afu_irq_range_start(); r < CXL_IRQ_RANGES; r++) {
r                 331 drivers/misc/cxl/irq.c 		for (i = 0; i < ctx->irqs.range[r]; i++) {
r                 360 drivers/misc/cxl/irq.c 	int r, i;
r                 365 drivers/misc/cxl/irq.c 	for (r = afu_irq_range_start(); r < CXL_IRQ_RANGES; r++) {
r                 366 drivers/misc/cxl/irq.c 		hwirq = ctx->irqs.offset[r];
r                 367 drivers/misc/cxl/irq.c 		for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) {
r                 368 drivers/misc/cxl/irq.c 			if (r == 0 && i == 0)
r                 405 drivers/misc/cxl/irq.c 	int r, i;
r                 407 drivers/misc/cxl/irq.c 	for (r = afu_irq_range_start(); r < CXL_IRQ_RANGES; r++) {
r                 408 drivers/misc/cxl/irq.c 		hwirq = ctx->irqs.offset[r];
r                 409 drivers/misc/cxl/irq.c 		for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) {
r                 636 drivers/misc/cxl/native.c 	int r;
r                 643 drivers/misc/cxl/native.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 644 drivers/misc/cxl/native.c 		ctx->elem->ivte_offsets[r] = cpu_to_be16(ctx->irqs.offset[r]);
r                 645 drivers/misc/cxl/native.c 		ctx->elem->ivte_ranges[r] = cpu_to_be16(ctx->irqs.range[r]);
r                 880 drivers/misc/cxl/native.c 	int r;
r                 882 drivers/misc/cxl/native.c 	for (r = 0; r < CXL_IRQ_RANGES; r++) {
r                 883 drivers/misc/cxl/native.c 		ctx->elem->ivte_offsets[r] = cpu_to_be16(ctx->irqs.offset[r]);
r                 884 drivers/misc/cxl/native.c 		ctx->elem->ivte_ranges[r] = cpu_to_be16(ctx->irqs.range[r]);
r                 768 drivers/misc/genwqe/card_utils.c static int set_reg_idx(struct genwqe_dev *cd, struct genwqe_reg *r,
r                 775 drivers/misc/genwqe/card_utils.c 	r[*i].addr = addr;
r                 776 drivers/misc/genwqe/card_utils.c 	r[*i].idx = idx;
r                 777 drivers/misc/genwqe/card_utils.c 	r[*i].val = val;
r                 782 drivers/misc/genwqe/card_utils.c static int set_reg(struct genwqe_dev *cd, struct genwqe_reg *r,
r                 785 drivers/misc/genwqe/card_utils.c 	return set_reg_idx(cd, r, i, m, addr, 0, val);
r                  66 drivers/misc/ibmasm/event.c static inline int event_available(struct event_buffer *b, struct event_reader *r)
r                  68 drivers/misc/ibmasm/event.c 	return (r->next_serial_number < b->next_serial_number);
r                 109 drivers/misc/ocxl/link.c static void ack_irq(struct spa *spa, enum xsl_response r)
r                 114 drivers/misc/ocxl/link.c 	if (r == RESTART)
r                 116 drivers/misc/ocxl/link.c 	else if (r == ADDRESS_ERROR)
r                 119 drivers/misc/ocxl/link.c 		WARN(1, "Invalid irq response %d\n", r);
r                 132 drivers/misc/ocxl/link.c 	enum xsl_response r;
r                 152 drivers/misc/ocxl/link.c 		r = ADDRESS_ERROR;
r                 174 drivers/misc/ocxl/link.c 	r = RESTART;
r                 177 drivers/misc/ocxl/link.c 	ack_irq(spa, r);
r                  90 drivers/misc/phantom.c 	struct phm_reg r;
r                  98 drivers/misc/phantom.c 		if (copy_from_user(&r, argp, sizeof(r)))
r                 101 drivers/misc/phantom.c 		if (r.reg > 7)
r                 105 drivers/misc/phantom.c 		if (r.reg == PHN_CONTROL && (r.value & PHN_CTL_IRQ) &&
r                 111 drivers/misc/phantom.c 		pr_debug("phantom: writing %x to %u\n", r.value, r.reg);
r                 114 drivers/misc/phantom.c 		if (r.reg == PHN_CONTROL && (dev->status & PHB_NOT_OH)) {
r                 115 drivers/misc/phantom.c 			r.value &= ~PHN_CTL_AMP;
r                 116 drivers/misc/phantom.c 			r.value |= dev->ctl_reg & PHN_CTL_AMP;
r                 117 drivers/misc/phantom.c 			dev->ctl_reg = r.value;
r                 120 drivers/misc/phantom.c 		iowrite32(r.value, dev->iaddr + r.reg);
r                 123 drivers/misc/phantom.c 		if (r.reg == PHN_CONTROL && !(r.value & PHN_CTL_IRQ))
r                 147 drivers/misc/phantom.c 		if (copy_from_user(&r, argp, sizeof(r)))
r                 150 drivers/misc/phantom.c 		if (r.reg > 7)
r                 153 drivers/misc/phantom.c 		r.value = ioread32(dev->iaddr + r.reg);
r                 155 drivers/misc/phantom.c 		if (copy_to_user(argp, &r, sizeof(r)))
r                 299 drivers/misc/phantom.c 		struct phm_regs *r = &dev->oregs;
r                 300 drivers/misc/phantom.c 		u32 m = min(r->count, 8U);
r                 303 drivers/misc/phantom.c 			if (r->mask & BIT(i))
r                 304 drivers/misc/phantom.c 				iowrite32(r->values[i], dev->oaddr + i);
r                  70 drivers/misc/pvpanic.c 	struct resource r;
r                  72 drivers/misc/pvpanic.c 	if (acpi_dev_resource_io(res, &r)) {
r                  74 drivers/misc/pvpanic.c 		base = ioport_map(r.start, resource_size(&r));
r                  79 drivers/misc/pvpanic.c 	} else if (acpi_dev_resource_memory(res, &r)) {
r                  80 drivers/misc/pvpanic.c 		base = ioremap(r.start, resource_size(&r));
r                 155 drivers/misc/tsl2550.c 	u8 r = 128;
r                 160 drivers/misc/tsl2550.c 			r = c1 * 128 / c0;
r                 163 drivers/misc/tsl2550.c 			lux = ((c0 - c1) * ratio_lut[r]) / 256;
r                1584 drivers/misc/vmw_balloon.c 	int r;
r                1594 drivers/misc/vmw_balloon.c 	r = register_shrinker(&b->shrinker);
r                1596 drivers/misc/vmw_balloon.c 	if (r == 0)
r                1599 drivers/misc/vmw_balloon.c 	return r;
r                1625 drivers/misc/vmw_balloon.c 	int r = 0;
r                1637 drivers/misc/vmw_balloon.c 		r = -ENOMEM;
r                1643 drivers/misc/vmw_balloon.c 	return r;
r                1664 drivers/misc/vmw_balloon.c 		int r = vmballoon_enable_stats(b);
r                1666 drivers/misc/vmw_balloon.c 		if (r)
r                1667 drivers/misc/vmw_balloon.c 			return r;
r                  41 drivers/misc/vmw_vmci/vmci_resource.c 	struct vmci_resource *r, *resource = NULL;
r                  45 drivers/misc/vmw_vmci/vmci_resource.c 	hlist_for_each_entry_rcu(r,
r                  47 drivers/misc/vmw_vmci/vmci_resource.c 		u32 cid = r->handle.context;
r                  48 drivers/misc/vmw_vmci/vmci_resource.c 		u32 rid = r->handle.resource;
r                  50 drivers/misc/vmw_vmci/vmci_resource.c 		if (r->type == type &&
r                  54 drivers/misc/vmw_vmci/vmci_resource.c 			resource = r;
r                 141 drivers/misc/vmw_vmci/vmci_resource.c 	struct vmci_resource *r;
r                 146 drivers/misc/vmw_vmci/vmci_resource.c 	hlist_for_each_entry(r, &vmci_resource_table.entries[idx], node) {
r                 147 drivers/misc/vmw_vmci/vmci_resource.c 		if (vmci_handle_is_equal(r->handle, resource->handle)) {
r                 148 drivers/misc/vmw_vmci/vmci_resource.c 			hlist_del_init_rcu(&r->node);
r                 164 drivers/misc/vmw_vmci/vmci_resource.c 	struct vmci_resource *r, *resource = NULL;
r                 168 drivers/misc/vmw_vmci/vmci_resource.c 	r = vmci_resource_lookup(resource_handle, resource_type);
r                 169 drivers/misc/vmw_vmci/vmci_resource.c 	if (r &&
r                 170 drivers/misc/vmw_vmci/vmci_resource.c 	    (resource_type == r->type ||
r                 172 drivers/misc/vmw_vmci/vmci_resource.c 		resource = vmci_resource_get(r);
r                1891 drivers/mmc/core/mmc_test.c 	uint64_t r;
r                1894 drivers/mmc/core/mmc_test.c 	r = (rnd_next >> 16) & 0x7fff;
r                1895 drivers/mmc/core/mmc_test.c 	return (r * rnd_cnt) >> 15;
r                 535 drivers/mmc/host/au1xmmc.c 	u32 r[4];
r                 546 drivers/mmc/host/au1xmmc.c 			r[0] = __raw_readl(host->iobase + SD_RESP3);
r                 547 drivers/mmc/host/au1xmmc.c 			r[1] = __raw_readl(host->iobase + SD_RESP2);
r                 548 drivers/mmc/host/au1xmmc.c 			r[2] = __raw_readl(host->iobase + SD_RESP1);
r                 549 drivers/mmc/host/au1xmmc.c 			r[3] = __raw_readl(host->iobase + SD_RESP0);
r                 556 drivers/mmc/host/au1xmmc.c 				cmd->resp[i] = (r[i] & 0x00FFFFFF) << 8;
r                 558 drivers/mmc/host/au1xmmc.c 					cmd->resp[i] |= (r[i + 1] & 0xFF000000) >> 24;
r                 952 drivers/mmc/host/au1xmmc.c 	struct resource *r;
r                 968 drivers/mmc/host/au1xmmc.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 969 drivers/mmc/host/au1xmmc.c 	if (!r) {
r                 974 drivers/mmc/host/au1xmmc.c 	host->ioarea = request_mem_region(r->start, resource_size(r),
r                 981 drivers/mmc/host/au1xmmc.c 	host->iobase = ioremap(r->start, 0x3c);
r                 987 drivers/mmc/host/au1xmmc.c 	r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 988 drivers/mmc/host/au1xmmc.c 	if (!r) {
r                 992 drivers/mmc/host/au1xmmc.c 	host->irq = r->start;
r                 126 drivers/mmc/host/cavium.c 	struct cvm_mmc_cr_mods r;
r                 160 drivers/mmc/host/cavium.c 	r.ctype_xor = desired_ctype ^ hardware_ctype;
r                 161 drivers/mmc/host/cavium.c 	r.rtype_xor = desired_rtype ^ hardware_rtype;
r                 162 drivers/mmc/host/cavium.c 	return r;
r                1195 drivers/mmc/host/davinci_mmc.c 	struct resource *r, *mem = NULL;
r                1200 drivers/mmc/host/davinci_mmc.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1201 drivers/mmc/host/davinci_mmc.c 	if (!r)
r                1207 drivers/mmc/host/davinci_mmc.c 	mem_size = resource_size(r);
r                1208 drivers/mmc/host/davinci_mmc.c 	mem = devm_request_mem_region(&pdev->dev, r->start, mem_size,
r                 406 drivers/mmc/host/dw_mmc.h #define SDMMC_SET_FIFOTH(m, r, t)	(((m) & 0x7) << 28 | \
r                 407 drivers/mmc/host/dw_mmc.h 					 ((r) & 0xFFF) << 16 | \
r                1325 drivers/mmc/host/mmci.c static int mmci_qcom_get_rx_fifocnt(struct mmci_host *host, u32 status, int r)
r                 699 drivers/mmc/host/mvsdio.c 	struct resource *r;
r                 706 drivers/mmc/host/mvsdio.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 708 drivers/mmc/host/mvsdio.c 	if (!r || irq < 0)
r                 761 drivers/mmc/host/mvsdio.c 	host->base = devm_ioremap_resource(&pdev->dev, r);
r                1230 drivers/mmc/host/omap.c 	int r;
r                1276 drivers/mmc/host/omap.c 	r = mmc_add_host(mmc);
r                1277 drivers/mmc/host/omap.c 	if (r < 0)
r                1281 drivers/mmc/host/omap.c 		r = device_create_file(&mmc->class_dev,
r                1283 drivers/mmc/host/omap.c 		if (r < 0)
r                1288 drivers/mmc/host/omap.c 		r = device_create_file(&mmc->class_dev,
r                1290 drivers/mmc/host/omap.c 		if (r < 0)
r                1303 drivers/mmc/host/omap.c 	return r;
r                 612 drivers/mmc/host/pxamci.c 	struct resource *r;
r                 615 drivers/mmc/host/pxamci.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 688 drivers/mmc/host/pxamci.c 	host->res = r;
r                 691 drivers/mmc/host/pxamci.c 	host->base = devm_ioremap_resource(dev, r);
r                 533 drivers/mmc/host/vub300.c 	u8 r = vub300->fn[func].offload_point + vub300->fn[func].offload_count;
r                 534 drivers/mmc/host/vub300.c 	memcpy(&vub300->fn[func].reg[MAXREGMASK & r], register_access,
r                1717 drivers/mmc/host/vub300.c 	u8 *r = vub300->resp.response.command_response;
r                1719 drivers/mmc/host/vub300.c 		cmd->resp[words] = (r[1 + (words << 2)] << 24)
r                1720 drivers/mmc/host/vub300.c 			| (r[2 + (words << 2)] << 16)
r                1721 drivers/mmc/host/vub300.c 			| (r[3 + (words << 2)] << 8);
r                1723 drivers/mmc/host/vub300.c 		cmd->resp[words] = (r[1 + (words << 2)] << 24)
r                1724 drivers/mmc/host/vub300.c 			| (r[2 + (words << 2)] << 16);
r                1726 drivers/mmc/host/vub300.c 		cmd->resp[words] = (r[1 + (words << 2)] << 24);
r                1729 drivers/mmc/host/vub300.c 		cmd->resp[words] = (r[1 + (words << 2)] << 24)
r                1730 drivers/mmc/host/vub300.c 			| (r[2 + (words << 2)] << 16)
r                1731 drivers/mmc/host/vub300.c 			| (r[3 + (words << 2)] << 8)
r                1732 drivers/mmc/host/vub300.c 			| (r[4 + (words << 2)] << 0);
r                1824 drivers/mmc/host/vub300.c 			struct offload_registers_access *r =
r                1826 drivers/mmc/host/vub300.c 			if (cmd0 == r->command_byte[0] &&
r                1827 drivers/mmc/host/vub300.c 			    cmd1 == r->command_byte[1] &&
r                1828 drivers/mmc/host/vub300.c 			    cmd2 == r->command_byte[2] &&
r                1829 drivers/mmc/host/vub300.c 			    cmd3 == r->command_byte[3]) {
r                1832 drivers/mmc/host/vub300.c 				cmd->resp[0] = (r->Respond_Byte[0] << 24)
r                1833 drivers/mmc/host/vub300.c 					| (r->Respond_Byte[1] << 16)
r                1834 drivers/mmc/host/vub300.c 					| (r->Respond_Byte[2] << 8)
r                1835 drivers/mmc/host/vub300.c 					| (r->Respond_Byte[3] << 0);
r                 463 drivers/mtd/nand/onenand/omap2.c 	int freq, latency, r;
r                 476 drivers/mtd/nand/onenand/omap2.c 	r = of_property_read_u32(np, "reg", &val);
r                 477 drivers/mtd/nand/onenand/omap2.c 	if (r) {
r                 479 drivers/mtd/nand/onenand/omap2.c 		return r;
r                 497 drivers/mtd/nand/onenand/omap2.c 		r = PTR_ERR(c->int_gpiod);
r                 499 drivers/mtd/nand/onenand/omap2.c 		if (r != -EPROBE_DEFER)
r                 500 drivers/mtd/nand/onenand/omap2.c 			dev_err(dev, "error getting gpio: %d\n", r);
r                 501 drivers/mtd/nand/onenand/omap2.c 		return r;
r                 505 drivers/mtd/nand/onenand/omap2.c 		r = devm_request_irq(dev, gpiod_to_irq(c->int_gpiod),
r                 508 drivers/mtd/nand/onenand/omap2.c 		if (r)
r                 509 drivers/mtd/nand/onenand/omap2.c 			return r;
r                 532 drivers/mtd/nand/onenand/omap2.c 	if ((r = onenand_scan(&c->mtd, 1)) < 0)
r                 555 drivers/mtd/nand/onenand/omap2.c 		r = gpmc_omap_onenand_set_timings(dev, c->gpmc_cs,
r                 557 drivers/mtd/nand/onenand/omap2.c 		if (r)
r                 560 drivers/mtd/nand/onenand/omap2.c 		r = omap2_onenand_set_cfg(c, info.sync_read, info.sync_write,
r                 562 drivers/mtd/nand/onenand/omap2.c 		if (r)
r                 569 drivers/mtd/nand/onenand/omap2.c 	r = mtd_device_register(&c->mtd, NULL, 0);
r                 570 drivers/mtd/nand/onenand/omap2.c 	if (r)
r                 583 drivers/mtd/nand/onenand/omap2.c 	return r;
r                 839 drivers/mtd/nand/onenand/samsung.c 	struct resource *r;
r                 863 drivers/mtd/nand/onenand/samsung.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 864 drivers/mtd/nand/onenand/samsung.c 	onenand->base = devm_ioremap_resource(&pdev->dev, r);
r                 868 drivers/mtd/nand/onenand/samsung.c 	onenand->phys_base = r->start;
r                 877 drivers/mtd/nand/onenand/samsung.c 		r = platform_get_resource(pdev, IORESOURCE_MEM, 1);
r                 878 drivers/mtd/nand/onenand/samsung.c 		onenand->ahb_addr = devm_ioremap_resource(&pdev->dev, r);
r                 898 drivers/mtd/nand/onenand/samsung.c 		r = platform_get_resource(pdev, IORESOURCE_MEM, 1);
r                 899 drivers/mtd/nand/onenand/samsung.c 		onenand->dma_addr = devm_ioremap_resource(&pdev->dev, r);
r                 905 drivers/mtd/nand/onenand/samsung.c 		r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 906 drivers/mtd/nand/onenand/samsung.c 		if (r) {
r                 909 drivers/mtd/nand/onenand/samsung.c 			err = devm_request_irq(&pdev->dev, r->start,
r                 382 drivers/mtd/nand/raw/au1550nd.c 	struct resource *r;
r                 395 drivers/mtd/nand/raw/au1550nd.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 396 drivers/mtd/nand/raw/au1550nd.c 	if (!r) {
r                 401 drivers/mtd/nand/raw/au1550nd.c 	if (request_mem_region(r->start, resource_size(r), "au1550-nand")) {
r                 407 drivers/mtd/nand/raw/au1550nd.c 	ctx->base = ioremap_nocache(r->start, 0x1000);
r                 419 drivers/mtd/nand/raw/au1550nd.c 	cs = find_nand_cs(r->start);
r                 459 drivers/mtd/nand/raw/au1550nd.c 	release_mem_region(r->start, resource_size(r));
r                 468 drivers/mtd/nand/raw/au1550nd.c 	struct resource *r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 472 drivers/mtd/nand/raw/au1550nd.c 	release_mem_region(r->start, 0x1000);
r                 132 drivers/mtd/nand/raw/gpio.c 	struct resource *r;
r                 139 drivers/mtd/nand/raw/gpio.c 	r = devm_kzalloc(&pdev->dev, sizeof(*r), GFP_KERNEL);
r                 140 drivers/mtd/nand/raw/gpio.c 	if (!r)
r                 143 drivers/mtd/nand/raw/gpio.c 	r->start = addr;
r                 144 drivers/mtd/nand/raw/gpio.c 	r->end = r->start + 0x3;
r                 145 drivers/mtd/nand/raw/gpio.c 	r->flags = IORESOURCE_MEM;
r                 147 drivers/mtd/nand/raw/gpio.c 	return r;
r                 182 drivers/mtd/nand/raw/gpio.c 	struct resource *r = gpio_nand_get_io_sync_of(pdev);
r                 184 drivers/mtd/nand/raw/gpio.c 	if (r)
r                 185 drivers/mtd/nand/raw/gpio.c 		return r;
r                 148 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                 155 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	ret = gpmi_reset_block(r->gpmi_regs, false);
r                 163 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	ret = gpmi_reset_block(r->bch_regs, GPMI_IS_MXS(this));
r                 168 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(BM_GPMI_CTRL1_GPMI_MODE, r->gpmi_regs + HW_GPMI_CTRL1_CLR);
r                 172 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 				r->gpmi_regs + HW_GPMI_CTRL1_SET);
r                 175 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(BM_GPMI_CTRL1_DEV_RESET, r->gpmi_regs + HW_GPMI_CTRL1_SET);
r                 178 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(BM_GPMI_CTRL1_BCH_MODE, r->gpmi_regs + HW_GPMI_CTRL1_SET);
r                 184 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(BM_GPMI_CTRL1_DECOUPLE_CS, r->gpmi_regs + HW_GPMI_CTRL1_SET);
r                 195 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                 202 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		reg = readl(r->gpmi_regs + i * 0x10);
r                 209 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		reg = readl(r->bch_regs + i * 0x10);
r                 535 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                 551 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	ret = gpmi_reset_block(r->bch_regs, GPMI_IS_MXS(this));
r                 556 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(0, r->bch_regs + HW_BCH_LAYOUTSELECT);
r                 712 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                 713 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	void __iomem *gpmi_regs = r->gpmi_regs;
r                 716 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	clk_set_rate(r->clock[0], hw->clk_rate);
r                 767 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                 768 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	writel(BM_BCH_CTRL_COMPLETE_IRQ, r->bch_regs + HW_BCH_CTRL_CLR);
r                1099 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resource *r;
r                1102 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name);
r                1103 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	p = devm_ioremap_resource(&pdev->dev, r);
r                1121 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resource *r;
r                1124 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res_name);
r                1125 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (!r) {
r                1130 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	err = devm_request_irq(this->dev, r->start, irq_h, 0, res_name, this);
r                1169 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	struct resources *r = &this->resources;
r                1180 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		r->clock[i] = clk;
r                1190 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		clk_set_rate(r->clock[0], 22000000);
r                2733 drivers/mtd/nand/raw/marvell_nand.c 	struct resource *r;
r                2753 drivers/mtd/nand/raw/marvell_nand.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                2754 drivers/mtd/nand/raw/marvell_nand.c 	if (!r)
r                2759 drivers/mtd/nand/raw/marvell_nand.c 	config.src_addr = r->start + NDDB;
r                2760 drivers/mtd/nand/raw/marvell_nand.c 	config.dst_addr = r->start + NDDB;
r                2844 drivers/mtd/nand/raw/marvell_nand.c 	struct resource *r;
r                2859 drivers/mtd/nand/raw/marvell_nand.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                2860 drivers/mtd/nand/raw/marvell_nand.c 	nfc->regs = devm_ioremap_resource(dev, r);
r                1288 drivers/mtd/nand/raw/qcom_nandc.c 	int r;
r                1292 drivers/mtd/nand/raw/qcom_nandc.c 			r = prepare_bam_async_desc(nandc, nandc->rx_chan, 0);
r                1293 drivers/mtd/nand/raw/qcom_nandc.c 			if (r)
r                1294 drivers/mtd/nand/raw/qcom_nandc.c 				return r;
r                1298 drivers/mtd/nand/raw/qcom_nandc.c 			r = prepare_bam_async_desc(nandc, nandc->tx_chan,
r                1300 drivers/mtd/nand/raw/qcom_nandc.c 			if (r)
r                1301 drivers/mtd/nand/raw/qcom_nandc.c 				return r;
r                1305 drivers/mtd/nand/raw/qcom_nandc.c 			r = prepare_bam_async_desc(nandc, nandc->cmd_chan,
r                1307 drivers/mtd/nand/raw/qcom_nandc.c 			if (r)
r                1308 drivers/mtd/nand/raw/qcom_nandc.c 				return r;
r                 106 drivers/mtd/nand/raw/sharpsl.c 	struct resource *r;
r                 121 drivers/mtd/nand/raw/sharpsl.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 122 drivers/mtd/nand/raw/sharpsl.c 	if (!r) {
r                 129 drivers/mtd/nand/raw/sharpsl.c 	sharpsl->io = ioremap(r->start, resource_size(r));
r                2055 drivers/mtd/nand/raw/sunxi_nand.c 	struct resource *r;
r                2068 drivers/mtd/nand/raw/sunxi_nand.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                2069 drivers/mtd/nand/raw/sunxi_nand.c 	nfc->regs = devm_ioremap_resource(dev, r);
r                2132 drivers/mtd/nand/raw/sunxi_nand.c 		dmac_cfg.src_addr = r->start + nfc->caps->reg_io_data;
r                 750 drivers/mtd/spi-nor/aspeed-smc.c 				  struct device_node *np, struct resource *r)
r                 815 drivers/mtd/spi-nor/aspeed-smc.c 		ret = aspeed_smc_chip_setup_init(chip, r);
r                3228 drivers/mtd/spi-nor/spi-nor.c static int spi_nor_map_cmp_erase_type(const void *l, const void *r)
r                3230 drivers/mtd/spi-nor/spi-nor.c 	const struct spi_nor_erase_type *left = l, *right = r;
r                 126 drivers/mtd/ubi/debug.c void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx)
r                 128 drivers/mtd/ubi/debug.c 	int name_len = be16_to_cpu(r->name_len);
r                 131 drivers/mtd/ubi/debug.c 	pr_err("\treserved_pebs   %d\n", be32_to_cpu(r->reserved_pebs));
r                 132 drivers/mtd/ubi/debug.c 	pr_err("\talignment       %d\n", be32_to_cpu(r->alignment));
r                 133 drivers/mtd/ubi/debug.c 	pr_err("\tdata_pad        %d\n", be32_to_cpu(r->data_pad));
r                 134 drivers/mtd/ubi/debug.c 	pr_err("\tvol_type        %d\n", (int)r->vol_type);
r                 135 drivers/mtd/ubi/debug.c 	pr_err("\tupd_marker      %d\n", (int)r->upd_marker);
r                 138 drivers/mtd/ubi/debug.c 	if (r->name[0] == '\0') {
r                 144 drivers/mtd/ubi/debug.c 	    strnlen(&r->name[0], name_len + 1) == name_len) {
r                 145 drivers/mtd/ubi/debug.c 		pr_err("\tname            %s\n", &r->name[0]);
r                 148 drivers/mtd/ubi/debug.c 			r->name[0], r->name[1], r->name[2], r->name[3],
r                 149 drivers/mtd/ubi/debug.c 			r->name[4]);
r                 151 drivers/mtd/ubi/debug.c 	pr_err("\tcrc             %#08x\n", be32_to_cpu(r->crc));
r                  25 drivers/mtd/ubi/debug.h #define ubi_dbg_print_hex_dump(l, ps, pt, r, g, b, len, a)                   \
r                  26 drivers/mtd/ubi/debug.h 		print_hex_dump(l, ps, pt, r, g, b, len, a)
r                  44 drivers/mtd/ubi/debug.h void ubi_dump_vtbl_record(const struct ubi_vtbl_record *r, int idx);
r                 231 drivers/net/appletalk/ipddp.c         struct ipddp_route **r = &ipddp_route_list;
r                 235 drivers/net/appletalk/ipddp.c         while((tmp = *r) != NULL)
r                 241 drivers/net/appletalk/ipddp.c                         *r = tmp->next;
r                 246 drivers/net/appletalk/ipddp.c                 r = &tmp->next;
r                 128 drivers/net/arcnet/com20020-pci.c 	struct resource *r;
r                 146 drivers/net/arcnet/com20020-pci.c 		r = devm_request_region(&pdev->dev, ioaddr, mm->size,
r                 148 drivers/net/arcnet/com20020-pci.c 		if (!r) {
r                 175 drivers/net/arcnet/com20020-pci.c 		r = devm_request_region(&pdev->dev, ioaddr, cm->size,
r                 177 drivers/net/arcnet/com20020-pci.c 		if (!r) {
r                 410 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_C_RPGACC(r)		(0x1900 + (0x04 * (r)))
r                 461 drivers/net/can/rcar/rcar_canfd.c #define RCANFD_F_RPGACC(r)		(0x6400 + (0x04 * (r)))
r                 245 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 		u32 r, rec_cnt;
r                 275 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 		for (r = 0; r < rec_cnt; r++) {
r                 175 drivers/net/dsa/mt7530.c 	u16 page, r, lo, hi;
r                 179 drivers/net/dsa/mt7530.c 	r  = (reg >> 2) & 0xf;
r                 188 drivers/net/dsa/mt7530.c 	ret = bus->write(bus, 0x1f, r,  lo);
r                 204 drivers/net/dsa/mt7530.c 	u16 page, r, lo, hi;
r                 208 drivers/net/dsa/mt7530.c 	r = (reg >> 2) & 0xf;
r                 218 drivers/net/dsa/mt7530.c 	lo = bus->read(bus, 0x1f, r);
r                1565 drivers/net/ethernet/3com/typhoon.c 	struct rx_free *r;
r                1567 drivers/net/ethernet/3com/typhoon.c 	if((ring->lastWrite + sizeof(*r)) % (RXFREE_ENTRIES * sizeof(*r)) ==
r                1576 drivers/net/ethernet/3com/typhoon.c 	r = (struct rx_free *) (ring->ringBase + ring->lastWrite);
r                1578 drivers/net/ethernet/3com/typhoon.c 	r->virtAddr = idx;
r                1579 drivers/net/ethernet/3com/typhoon.c 	r->physAddr = cpu_to_le32(rxb->dma_addr);
r                1592 drivers/net/ethernet/3com/typhoon.c 	struct rx_free *r;
r                1598 drivers/net/ethernet/3com/typhoon.c 	if((ring->lastWrite + sizeof(*r)) % (RXFREE_ENTRIES * sizeof(*r)) ==
r                1619 drivers/net/ethernet/3com/typhoon.c 	r = (struct rx_free *) (ring->ringBase + ring->lastWrite);
r                1621 drivers/net/ethernet/3com/typhoon.c 	r->virtAddr = idx;
r                1622 drivers/net/ethernet/3com/typhoon.c 	r->physAddr = cpu_to_le32(dma_addr);
r                  90 drivers/net/ethernet/8390/wd.c 	struct resource *r;
r                  97 drivers/net/ethernet/8390/wd.c 		r = request_region(base_addr, WD_IO_EXTENT, "wd-probe");
r                  98 drivers/net/ethernet/8390/wd.c 		if ( r == NULL)
r                 104 drivers/net/ethernet/8390/wd.c 			r->name = dev->name;
r                 112 drivers/net/ethernet/8390/wd.c 		r = request_region(ioaddr, WD_IO_EXTENT, "wd-probe");
r                 113 drivers/net/ethernet/8390/wd.c 		if (r == NULL)
r                 116 drivers/net/ethernet/8390/wd.c 			r->name = dev->name;
r                 146 drivers/net/ethernet/amd/ariadne.c 		volatile struct RDRE *r = &lancedata->rx_ring[i];
r                 147 drivers/net/ethernet/amd/ariadne.c 		r->RMD0 = swloww(ARIADNE_RAM +
r                 149 drivers/net/ethernet/amd/ariadne.c 		r->RMD1 = swhighw(ARIADNE_RAM +
r                 152 drivers/net/ethernet/amd/ariadne.c 		r->RMD2 = swapw((u_short)-PKT_BUF_SIZE);
r                 153 drivers/net/ethernet/amd/ariadne.c 		r->RMD3 = 0x0000;
r                 402 drivers/net/ethernet/amd/lance.c 		struct resource *r = request_region(ioaddr, LANCE_TOTAL_SIZE,
r                 405 drivers/net/ethernet/amd/lance.c 		if (r) {
r                 425 drivers/net/ethernet/amd/lance.c 					r->name = chip_table[ver].name;
r                 765 drivers/net/ethernet/amd/pcnet32.c 	int r = -EOPNOTSUPP;
r                 770 drivers/net/ethernet/amd/pcnet32.c 		r = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd);
r                 800 drivers/net/ethernet/amd/pcnet32.c 		r = 0;
r                 803 drivers/net/ethernet/amd/pcnet32.c 	return r;
r                 825 drivers/net/ethernet/amd/pcnet32.c 	int r;
r                 829 drivers/net/ethernet/amd/pcnet32.c 		r = mii_link_ok(&lp->mii_if);
r                 834 drivers/net/ethernet/amd/pcnet32.c 			r = (lp->a->read_bcr(ioaddr, 4) != 0xc0);
r                 836 drivers/net/ethernet/amd/pcnet32.c 			r = 1;
r                 839 drivers/net/ethernet/amd/pcnet32.c 		r = (lp->a->read_bcr(ioaddr, 4) != 0xc0);
r                 841 drivers/net/ethernet/amd/pcnet32.c 		r = 1;
r                 845 drivers/net/ethernet/amd/pcnet32.c 	return r;
r                 864 drivers/net/ethernet/amd/pcnet32.c 	int r = -EOPNOTSUPP;
r                 868 drivers/net/ethernet/amd/pcnet32.c 		r = mii_nway_restart(&lp->mii_if);
r                 871 drivers/net/ethernet/amd/pcnet32.c 	return r;
r                 339 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	unsigned int r = 0U;
r                 341 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 	for (r = 0U, ring = self->ring[0];
r                 342 drivers/net/ethernet/aquantia/atlantic/aq_vec.c 		self->tx_rings > r; ++r, ring = self->ring[r]) {
r                 366 drivers/net/ethernet/atheros/ag71xx.c 	void __iomem *r;
r                 368 drivers/net/ethernet/atheros/ag71xx.c 	r = ag->mac_base + reg;
r                 369 drivers/net/ethernet/atheros/ag71xx.c 	iowrite32(ioread32(r) | mask, r);
r                 371 drivers/net/ethernet/atheros/ag71xx.c 	(void)ioread32(r);
r                 376 drivers/net/ethernet/atheros/ag71xx.c 	void __iomem *r;
r                 378 drivers/net/ethernet/atheros/ag71xx.c 	r = ag->mac_base + reg;
r                 379 drivers/net/ethernet/atheros/ag71xx.c 	iowrite32(ioread32(r) & ~mask, r);
r                 381 drivers/net/ethernet/atheros/ag71xx.c 	(void)ioread32(r);
r                  98 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 		} r;
r                 128 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 186 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			.arg  = { .r = { .min = ATL1E_MIN_TX_DESC_CNT,
r                 205 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			.arg  = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE,
r                 225 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			.arg  = { .r = { .min = INT_MOD_MIN_CNT,
r                 244 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			.arg  = { .r = { .min = MEDIA_TYPE_AUTO_SENSOR,
r                 118 drivers/net/ethernet/atheros/atlx/atl1.c 		} r;
r                 149 drivers/net/ethernet/atheros/atlx/atl1.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 205 drivers/net/ethernet/atheros/atlx/atl1.c 			.arg = {.r = {.min = MIN_INT_MOD_CNT,
r                2891 drivers/net/ethernet/atheros/atlx/atl2.c 		} r;
r                2921 drivers/net/ethernet/atheros/atlx/atl2.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                2974 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.min = ATL2_MIN_TX_MEMSIZE;
r                2975 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.max = ATL2_MAX_TX_MEMSIZE;
r                2996 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.min = ATL2_MIN_RXD_COUNT;
r                2997 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.max = ATL2_MAX_RXD_COUNT;
r                3021 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.min = INT_MOD_MIN_CNT;
r                3022 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.max = INT_MOD_MAX_CNT;
r                3038 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.min = FLASH_VENDOR_MIN;
r                3039 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.max = FLASH_VENDOR_MAX;
r                3055 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.min = MEDIA_TYPE_AUTO_SENSOR;
r                3056 drivers/net/ethernet/atheros/atlx/atl2.c 	opt.arg.r.max = MEDIA_TYPE_10M_HALF;
r                 115 drivers/net/ethernet/aurora/nb8800.h #define IS_TX_ERROR(r)			((r) & 0x07)
r                 152 drivers/net/ethernet/aurora/nb8800.h #define IS_RX_ERROR(r)			((r) & RX_ERROR_MASK)
r                1816 drivers/net/ethernet/broadcom/b44.c 	int r;
r                1821 drivers/net/ethernet/broadcom/b44.c 	r = -EINVAL;
r                1825 drivers/net/ethernet/broadcom/b44.c 		r = 0;
r                1829 drivers/net/ethernet/broadcom/b44.c 	return r;
r                 981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                 986 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	hdr->echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
r                 994 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                 995 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	u32 cl_bit_vec = (1 << r->cl_id);
r                 998 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	cfg_entry->pf_id = r->func_id;
r                1620 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                1632 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	r->clear_pending(r);
r                1784 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                1795 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		WARN_ON(r->check_pending(r));
r                1798 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		r->set_pending(r);
r                1843 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		rc = bnx2x_sp_post(bp, o->ramrod_cmd, r->cid,
r                1844 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				   U64_HI(r->rdata_mapping),
r                1845 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				   U64_LO(r->rdata_mapping),
r                1873 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	r->clear_pending(r);
r                2833 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                2835 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		(struct eth_multicast_rules_ramrod_data *)(r->rdata);
r                2836 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	u8 func_id = r->func_id;
r                3333 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &p->mcast_obj->raw;
r                3335 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		(struct eth_multicast_rules_ramrod_data *)(r->rdata);
r                3337 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	data->header.echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
r                3531 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                3574 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	r->clear_pending(r);
r                3661 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                3663 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		(struct mac_configuration_cmd *)(r->rdata);
r                3673 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		data->config_table[idx].pf_id = r->func_id;
r                3675 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			cpu_to_le32(1 << r->cl_id);
r                3694 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &p->mcast_obj->raw;
r                3696 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		(struct mac_configuration_cmd *)(r->rdata);
r                3699 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		     BNX2X_MAX_EMUL_MULTI*(1 + r->func_id) :
r                3700 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		     BNX2X_MAX_MULTICAST*(1 + r->func_id));
r                3704 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	data->hdr.echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
r                3981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                4004 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (r->check_pending(r) ||
r                4016 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	if (!r->check_pending(r)) {
r                4019 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		r->set_pending(r);
r                4034 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	r->clear_pending(r);
r                4485 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                4487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		(struct eth_rss_update_ramrod_data *)(r->rdata);
r                4497 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	data->echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
r                4498 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 				 (r->state << BNX2X_SWCID_SHIFT));
r                4582 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_ETH_RSS_UPDATE, r->cid,
r                4583 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			   U64_HI(r->rdata_mapping),
r                4584 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 			   U64_LO(r->rdata_mapping),
r                4604 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	struct bnx2x_raw_obj *r = &o->raw;
r                4613 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 	r->set_pending(r);
r                4617 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		r->clear_pending(r);
r                4622 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c 		rc = r->wait_comp(bp, r);
r                 343 drivers/net/ethernet/broadcom/genet/bcmgenet.c 				      enum dma_reg r)
r                 346 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			      DMA_RINGS_SIZE + bcmgenet_dma_regs[r]);
r                 350 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					u32 val, enum dma_reg r)
r                 353 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			DMA_RINGS_SIZE + bcmgenet_dma_regs[r]);
r                 357 drivers/net/ethernet/broadcom/genet/bcmgenet.c 				      enum dma_reg r)
r                 360 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			      DMA_RINGS_SIZE + bcmgenet_dma_regs[r]);
r                 364 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					u32 val, enum dma_reg r)
r                 367 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			DMA_RINGS_SIZE + bcmgenet_dma_regs[r]);
r                 435 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					   enum dma_ring_reg r)
r                 439 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			      genet_dma_ring_regs[r]);
r                 444 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					     enum dma_ring_reg r)
r                 448 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			genet_dma_ring_regs[r]);
r                 453 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					   enum dma_ring_reg r)
r                 457 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			      genet_dma_ring_regs[r]);
r                 462 drivers/net/ethernet/broadcom/genet/bcmgenet.c 					     enum dma_ring_reg r)
r                 466 drivers/net/ethernet/broadcom/genet/bcmgenet.c 			genet_dma_ring_regs[r]);
r                12377 drivers/net/ethernet/broadcom/tg3.c 	int r;
r                12390 drivers/net/ethernet/broadcom/tg3.c 		r = phy_start_aneg(mdiobus_get_phy(tp->mdio_bus, tp->phy_addr));
r                12395 drivers/net/ethernet/broadcom/tg3.c 		r = -EINVAL;
r                12402 drivers/net/ethernet/broadcom/tg3.c 			r = 0;
r                12407 drivers/net/ethernet/broadcom/tg3.c 	return r;
r                1453 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	} r;
r                1477 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	} r;
r                1491 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	} r;
r                1503 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd.r.act = 1;
r                1504 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd.r.write_cnt = wr_cnt;
r                1505 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd.r.read_cnt = rd_cnt;
r                1506 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd.r.addr_cnt = ad_cnt;
r                1507 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd.r.cmd = op;
r                1516 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	addr.r.addr = address & 0x00ffffff;
r                1517 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	addr.r.dummy = 0;
r                1528 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (cmd.r.act)
r                1544 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (!dev_status.r.fifo_cnt)
r                1548 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	for (i = 0; i < dev_status.r.fifo_cnt; i++)
r                1554 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		if (!dev_status.r.fifo_cnt)
r                1558 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (dev_status.r.fifo_cnt)
r                1589 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (!dev_status.r.fifo_cnt)
r                4011 drivers/net/ethernet/cavium/liquidio/lio_main.c 	notice = recv_pkt->rh.r.ossp;
r                 310 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c 	ifidx = rh->r.ossp;
r                 590 drivers/net/ethernet/cavium/liquidio/liquidio_common.h 	} r;
r                 630 drivers/net/ethernet/cavium/liquidio/liquidio_common.h 	} r;
r                 914 drivers/net/ethernet/cavium/liquidio/liquidio_common.h 	subcode1 = OPCODE_SUBCODE((rh)->r.opcode, (rh)->r.subcode);
r                 542 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 	disp_fn = octeon_get_dispatch(oct, (u16)rh->r.opcode,
r                 543 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 				      (u16)rh->r.subcode);
r                 559 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 			(unsigned int)rh->r.opcode,
r                 560 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 			(unsigned int)rh->r.subcode);
r                 769 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 				(u16)rdisp->rinfo->recv_pkt->rh.r.opcode,
r                 770 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 				(u16)rdisp->rinfo->recv_pkt->rh.r.subcode));
r                 819 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 				(u16)rdisp->rinfo->recv_pkt->rh.r.opcode,
r                 820 drivers/net/ethernet/cavium/liquidio/octeon_droq.c 				(u16)rdisp->rinfo->recv_pkt->rh.r.subcode));
r                 279 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		u32 r = SKB_ADJ - ((unsigned long)skb->data & SKB_ADJ_MASK);
r                 281 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		skb_reserve(skb, r);
r                 317 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		u32 r = SKB_ADJ - ((unsigned long)skb->data & SKB_ADJ_MASK);
r                 319 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		skb_reserve(skb, r);
r                 377 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		u32 r = SKB_ADJ - ((unsigned long)skb->data & SKB_ADJ_MASK);
r                 379 drivers/net/ethernet/cavium/liquidio/octeon_network.h 		skb_reserve(skb, r);
r                 633 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	int r = eth_mac_addr(netdev, addr);
r                 635 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 	if (r)
r                 636 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c 		return r;
r                1398 drivers/net/ethernet/chelsio/cxgb/sge.c 	unsigned int r = q->processed - q->cleaned;
r                1400 drivers/net/ethernet/chelsio/cxgb/sge.c 	return q->in_use - r < (q->size >> 1);
r                2818 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	unsigned short r;
r                2826 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	get_random_bytes(&r, 2);
r                2827 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c 	delay += r & 1023;
r                1045 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 	int r;
r                1048 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 	r = dev->send(dev, skb);
r                1050 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 	return r;
r                 347 drivers/net/ethernet/chelsio/cxgb3/sge.c 	unsigned int r = q->processed - q->cleaned;
r                 349 drivers/net/ethernet/chelsio/cxgb3/sge.c 	return q->in_use - r < (q->size >> 1);
r                2284 drivers/net/ethernet/chelsio/cxgb3/sge.c static inline int is_new_response(const struct rsp_desc *r,
r                2287 drivers/net/ethernet/chelsio/cxgb3/sge.c 	return (r->intr_gen & F_RSPD_GEN2) == q->gen;
r                2324 drivers/net/ethernet/chelsio/cxgb3/sge.c 	struct rsp_desc *r = &q->desc[q->cidx];
r                2332 drivers/net/ethernet/chelsio/cxgb3/sge.c 	while (likely(budget_left && is_new_response(r, q))) {
r                2340 drivers/net/ethernet/chelsio/cxgb3/sge.c 		eth = r->rss_hdr.opcode == CPL_RX_PKT;
r                2341 drivers/net/ethernet/chelsio/cxgb3/sge.c 		rss_hi = *(const __be32 *)r;
r                2342 drivers/net/ethernet/chelsio/cxgb3/sge.c 		rss_lo = r->rss_hdr.rss_hash_val;
r                2343 drivers/net/ethernet/chelsio/cxgb3/sge.c 		flags = ntohl(r->flags);
r                2350 drivers/net/ethernet/chelsio/cxgb3/sge.c 			__skb_put_data(skb, r, AN_PKT_SIZE);
r                2355 drivers/net/ethernet/chelsio/cxgb3/sge.c 			skb = get_imm_packet(r);
r                2366 drivers/net/ethernet/chelsio/cxgb3/sge.c 		} else if ((len = ntohl(r->len_cq)) != 0) {
r                2399 drivers/net/ethernet/chelsio/cxgb3/sge.c 			} else if (unlikely(r->rss_hdr.opcode == CPL_TRACE_PKT))
r                2412 drivers/net/ethernet/chelsio/cxgb3/sge.c 		r++;
r                2416 drivers/net/ethernet/chelsio/cxgb3/sge.c 			r = q->desc;
r                2418 drivers/net/ethernet/chelsio/cxgb3/sge.c 		prefetch(r);
r                2461 drivers/net/ethernet/chelsio/cxgb3/sge.c static inline int is_pure_response(const struct rsp_desc *r)
r                2463 drivers/net/ethernet/chelsio/cxgb3/sge.c 	__be32 n = r->flags & htonl(F_RSPD_ASYNC_NOTIF | F_RSPD_IMM_DATA_VALID);
r                2465 drivers/net/ethernet/chelsio/cxgb3/sge.c 	return (n | r->len_cq) == 0;
r                2528 drivers/net/ethernet/chelsio/cxgb3/sge.c 				  struct rsp_desc *r)
r                2534 drivers/net/ethernet/chelsio/cxgb3/sge.c 		u32 flags = ntohl(r->flags);
r                2536 drivers/net/ethernet/chelsio/cxgb3/sge.c 		r++;
r                2540 drivers/net/ethernet/chelsio/cxgb3/sge.c 			r = q->desc;
r                2542 drivers/net/ethernet/chelsio/cxgb3/sge.c 		prefetch(r);
r                2554 drivers/net/ethernet/chelsio/cxgb3/sge.c 		if (!is_new_response(r, q))
r                2557 drivers/net/ethernet/chelsio/cxgb3/sge.c 	} while (is_pure_response(r));
r                2566 drivers/net/ethernet/chelsio/cxgb3/sge.c 	return is_new_response(r, q);
r                2587 drivers/net/ethernet/chelsio/cxgb3/sge.c 	struct rsp_desc *r = &q->desc[q->cidx];
r                2589 drivers/net/ethernet/chelsio/cxgb3/sge.c 	if (!is_new_response(r, q))
r                2592 drivers/net/ethernet/chelsio/cxgb3/sge.c 	if (is_pure_response(r) && process_pure_responses(adap, qs, r) == 0) {
r                2666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	int i, n, r = (uintptr_t)v - 1;
r                2685 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r)
r                2703 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < eth_entries) {
r                2704 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		int base_qset = r * 4;
r                2708 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, s->ethqsets - 4 * r);
r                2762 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= eth_entries;
r                2763 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_txq_entries[CXGB4_TX_OFLD]) {
r                2767 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		tx = &utxq_info->uldtxq[r * 4];
r                2768 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, utxq_info->ntxq - 4 * r);
r                2780 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_txq_entries[CXGB4_TX_OFLD];
r                2781 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_rxq_entries[CXGB4_ULD_RDMA]) {
r                2785 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		rx = &urxq_info->uldrxq[r * 4];
r                2786 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, urxq_info->nrxq - 4 * r);
r                2808 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_rxq_entries[CXGB4_ULD_RDMA];
r                2809 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_ciq_entries[CXGB4_ULD_RDMA]) {
r                2814 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		ciq_idx = urxq_info->nrxq + (r * 4);
r                2816 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, urxq_info->nciq - 4 * r);
r                2832 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_ciq_entries[CXGB4_ULD_RDMA];
r                2833 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_rxq_entries[CXGB4_ULD_ISCSI]) {
r                2837 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		rx = &urxq_info->uldrxq[r * 4];
r                2838 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, urxq_info->nrxq - 4 * r);
r                2858 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_rxq_entries[CXGB4_ULD_ISCSI];
r                2859 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_rxq_entries[CXGB4_ULD_ISCSIT]) {
r                2863 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		rx = &urxq_info->uldrxq[r * 4];
r                2864 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, urxq_info->nrxq - 4 * r);
r                2884 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_rxq_entries[CXGB4_ULD_ISCSIT];
r                2885 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_rxq_entries[CXGB4_ULD_TLS]) {
r                2889 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		rx = &urxq_info->uldrxq[r * 4];
r                2890 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, urxq_info->nrxq - 4 * r);
r                2910 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_rxq_entries[CXGB4_ULD_TLS];
r                2911 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < uld_txq_entries[CXGB4_TX_CRYPTO]) {
r                2917 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		tx = &utxq_info->uldtxq[r * 4];
r                2918 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		rx = &urxq_info->uldrxq[r * 4];
r                2919 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, utxq_info->ntxq - 4 * r);
r                2944 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= uld_txq_entries[CXGB4_TX_CRYPTO];
r                2945 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < ctrl_entries) {
r                2946 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		const struct sge_ctrl_txq *tx = &s->ctrlq[r * 4];
r                2948 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		n = min(4, adap->params.nports - 4 * r);
r                2962 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	r -= ctrl_entries;
r                2963 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 	if (r < 1) {
r                5183 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		struct sge_eth_rxq *r = &s->ethrxq[i];
r                5185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		init_rspq(adap, &r->rspq, 5, 10, 1024, 64);
r                5186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		r->fl.size = 72;
r                 318 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		struct sge_ofld_rxq *r = &rxq_info->uldrxq[i];
r                 320 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		init_rspq(adap, &r->rspq, 5, 1, uld_info->rxq_size, 64);
r                 321 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		r->rspq.uld = uld_type;
r                 322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		r->fl.size = 72;
r                 332 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		struct sge_ofld_rxq *r = &rxq_info->uldrxq[i];
r                 334 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		init_rspq(adap, &r->rspq, 5, 1, ciq_size, 64);
r                 335 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c 		r->rspq.uld = uld_type;
r                3099 drivers/net/ethernet/chelsio/cxgb4/sge.c static inline bool is_new_response(const struct rsp_ctrl *r,
r                3102 drivers/net/ethernet/chelsio/cxgb4/sge.c 	return (r->type_gen >> RSPD_GEN_S) == q->gen;
r                 751 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	ldst_cmd.u.pcie.r = reg;
r                9950 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		int r = t4_cim_write1(adap, UP_UP_DBG_LA_CFG_A,
r                9953 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 			ret = r;
r                2292 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h 	__be32 r;
r                 954 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			u8 r;
r                2746 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			__be32 r;
r                2777 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			__u8   r[3];
r                2828 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 			__be32 r;
r                2057 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int qs, r = (uintptr_t)v - 1;
r                2059 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r)
r                2073 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r < eth_entries) {
r                2074 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[r * QPL];
r                2075 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		const struct sge_eth_txq *txq = &adapter->sge.ethtxq[r * QPL];
r                2076 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		int n = min(QPL, adapter->sge.ethqsets - QPL * r);
r                2109 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	r -= eth_entries;
r                2110 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r == 0) {
r                2121 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	} else if (r == 1) {
r                2210 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	int qs, r = (uintptr_t)v - 1;
r                2212 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r)
r                2230 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r < eth_entries) {
r                2231 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		const struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[r * QPL];
r                2232 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		const struct sge_eth_txq *txq = &adapter->sge.ethtxq[r * QPL];
r                2233 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 		int n = min(QPL, adapter->sge.ethqsets - QPL * r);
r                2259 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	r -= eth_entries;
r                2260 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	if (r == 0) {
r                2268 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 	} else if (r == 1) {
r                  49 drivers/net/ethernet/cisco/enic/vnic_dev.c 	struct vnic_resource __iomem *r;
r                  81 drivers/net/ethernet/cisco/enic/vnic_dev.c 		r = (struct vnic_resource __iomem *)(mrh + 1);
r                  83 drivers/net/ethernet/cisco/enic/vnic_dev.c 		r = (struct vnic_resource __iomem *)(rh + 1);
r                  86 drivers/net/ethernet/cisco/enic/vnic_dev.c 	while ((type = ioread8(&r->type)) != RES_TYPE_EOL) {
r                  88 drivers/net/ethernet/cisco/enic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
r                  89 drivers/net/ethernet/cisco/enic/vnic_dev.c 		u32 bar_offset = ioread32(&r->bar_offset);
r                  90 drivers/net/ethernet/cisco/enic/vnic_dev.c 		u32 count = ioread32(&r->count);
r                  93 drivers/net/ethernet/cisco/enic/vnic_dev.c 		r++;
r                 829 drivers/net/ethernet/cisco/enic/vnic_dev.c 	int r;
r                 839 drivers/net/ethernet/cisco/enic/vnic_dev.c 	r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait);
r                 840 drivers/net/ethernet/cisco/enic/vnic_dev.c 	vdev->notify_sz = (r == 0) ? (u32)a1 : 0;
r                 841 drivers/net/ethernet/cisco/enic/vnic_dev.c 	return r;
r                 919 drivers/net/ethernet/cisco/enic/vnic_dev.c 	int r = 0;
r                 922 drivers/net/ethernet/cisco/enic/vnic_dev.c 		r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait);
r                 933 drivers/net/ethernet/cisco/enic/vnic_dev.c 	return r;
r                 560 drivers/net/ethernet/cortina/gemini.c 	unsigned int r;
r                 593 drivers/net/ethernet/cortina/gemini.c 		r = readw(rwptr_reg);
r                 595 drivers/net/ethernet/cortina/gemini.c 		writew(r, rwptr_reg);
r                 597 drivers/net/ethernet/cortina/gemini.c 		txq->cptr = r;
r                 608 drivers/net/ethernet/cortina/gemini.c 			   unsigned int r)
r                 625 drivers/net/ethernet/cortina/gemini.c 	if (c == r)
r                 628 drivers/net/ethernet/cortina/gemini.c 	while (c != r) {
r                 685 drivers/net/ethernet/cortina/gemini.c 	unsigned int r, i;
r                 690 drivers/net/ethernet/cortina/gemini.c 		r = readw(rwptr_reg);
r                 692 drivers/net/ethernet/cortina/gemini.c 		writew(r, rwptr_reg);
r                 695 drivers/net/ethernet/cortina/gemini.c 		gmac_clean_txq(netdev, port->txq + i, r);
r                 768 drivers/net/ethernet/cortina/gemini.c 	unsigned int r, w;
r                 776 drivers/net/ethernet/cortina/gemini.c 	r = rw.bits.rptr;
r                 778 drivers/net/ethernet/cortina/gemini.c 	writew(r, ptr_reg + 2);
r                 785 drivers/net/ethernet/cortina/gemini.c 	while (r != w) {
r                 786 drivers/net/ethernet/cortina/gemini.c 		mapping = rxd[r].word2.buf_adr;
r                 787 drivers/net/ethernet/cortina/gemini.c 		r++;
r                 788 drivers/net/ethernet/cortina/gemini.c 		r &= ((1 << port->rxq_order) - 1);
r                1233 drivers/net/ethernet/cortina/gemini.c 	unsigned short r, w, d;
r                1249 drivers/net/ethernet/cortina/gemini.c 	r = rw.bits.rptr;
r                1256 drivers/net/ethernet/cortina/gemini.c 		gmac_clean_txq(netdev, txq, r);
r                1289 drivers/net/ethernet/cortina/gemini.c 	gmac_clean_txq(netdev, txq, r);
r                1410 drivers/net/ethernet/cortina/gemini.c 	unsigned short r, w;
r                1419 drivers/net/ethernet/cortina/gemini.c 	r = rw.bits.rptr;
r                1422 drivers/net/ethernet/cortina/gemini.c 	while (budget && w != r) {
r                1423 drivers/net/ethernet/cortina/gemini.c 		rx = port->rxq_ring + r;
r                1429 drivers/net/ethernet/cortina/gemini.c 		r++;
r                1430 drivers/net/ethernet/cortina/gemini.c 		r &= m;
r                1438 drivers/net/ethernet/cortina/gemini.c 				   "rxq[%u]: HW BUG: zero DMA desc\n", r);
r                1504 drivers/net/ethernet/cortina/gemini.c 	writew(r, ptr_reg);
r                  59 drivers/net/ethernet/cortina/gemini.h #define __RWPTR_DISTANCE(r, w, mask)	(((unsigned int)(w) - (r)) & (mask))
r                  63 drivers/net/ethernet/cortina/gemini.h #define RWPTR_DISTANCE(r, w, order)	__RWPTR_DISTANCE((r), (w), \
r                 457 drivers/net/ethernet/freescale/enetc/enetc.c 		rxbd->r.lstatus = 0;
r                 490 drivers/net/ethernet/freescale/enetc/enetc.c 	if (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_TSTMP) {
r                 493 drivers/net/ethernet/freescale/enetc/enetc.c 		tstamp_lo = le32_to_cpu(rxbd->r.tstamp);
r                 512 drivers/net/ethernet/freescale/enetc/enetc.c 		u16 inet_csum = le16_to_cpu(rxbd->r.inet_csum);
r                 521 drivers/net/ethernet/freescale/enetc/enetc.c 	if (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_VLAN)
r                 523 drivers/net/ethernet/freescale/enetc/enetc.c 				       le16_to_cpu(rxbd->r.vlan_opt));
r                 647 drivers/net/ethernet/freescale/enetc/enetc.c 		bd_status = le32_to_cpu(rxbd->r.lstatus);
r                 653 drivers/net/ethernet/freescale/enetc/enetc.c 		size = le16_to_cpu(rxbd->r.buf_len);
r                 673 drivers/net/ethernet/freescale/enetc/enetc.c 				bd_status = le32_to_cpu(rxbd->r.lstatus);
r                 690 drivers/net/ethernet/freescale/enetc/enetc.c 			bd_status = le32_to_cpu(rxbd->r.lstatus);
r                 695 drivers/net/ethernet/freescale/enetc/enetc.c 				size = le16_to_cpu(rxbd->r.buf_len);
r                 750 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_dma_alloc_bdr(struct enetc_bdr *r, size_t bd_size)
r                 752 drivers/net/ethernet/freescale/enetc/enetc.c 	r->bd_base = dma_alloc_coherent(r->dev, r->bd_count * bd_size,
r                 753 drivers/net/ethernet/freescale/enetc/enetc.c 					&r->bd_dma_base, GFP_KERNEL);
r                 754 drivers/net/ethernet/freescale/enetc/enetc.c 	if (!r->bd_base)
r                 758 drivers/net/ethernet/freescale/enetc/enetc.c 	if (!IS_ALIGNED(r->bd_dma_base, 128)) {
r                 759 drivers/net/ethernet/freescale/enetc/enetc.c 		dma_free_coherent(r->dev, r->bd_count * bd_size, r->bd_base,
r                 760 drivers/net/ethernet/freescale/enetc/enetc.c 				  r->bd_dma_base);
r                  29 drivers/net/ethernet/freescale/enetc/enetc_cbdr.c static int enetc_cbd_unused(struct enetc_cbdr *r)
r                  31 drivers/net/ethernet/freescale/enetc/enetc_cbdr.c 	return (r->next_to_clean - r->next_to_use - 1 + r->bd_count) %
r                  32 drivers/net/ethernet/freescale/enetc/enetc_cbdr.c 		r->bd_count;
r                 106 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define ENETC_BDR(t, i, r)	(0x8000 + (t) * 0x100 + ENETC_BDR_OFF(i) + (r))
r                 429 drivers/net/ethernet/freescale/enetc/enetc_hw.h 	} r;
r                2191 drivers/net/ethernet/freescale/fec_main.c 	struct resource *r;
r                2194 drivers/net/ethernet/freescale/fec_main.c 	r = platform_get_resource(fep->pdev, IORESOURCE_MEM, 0);
r                2195 drivers/net/ethernet/freescale/fec_main.c 	if (r)
r                2196 drivers/net/ethernet/freescale/fec_main.c 		s = resource_size(r);
r                 732 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	int r;
r                 742 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	r = request_irq(fep->interrupt, fs_enet_interrupt, IRQF_SHARED,
r                 744 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	if (r != 0) {
r                 808 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	int r, len;
r                 813 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	r = (*fep->ops->get_regs)(dev, p, &len);
r                 816 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	if (r == 0)
r                 234 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	int r;
r                 240 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	r = whack_reset(fep->fec.fecp);
r                 241 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	if (r != 0)
r                 214 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 218 drivers/net/ethernet/ibm/emac/core.c 	r = in_be32(&p->mr0);
r                 219 drivers/net/ethernet/ibm/emac/core.c 	if (!(r & EMAC_MR0_TXE))
r                 220 drivers/net/ethernet/ibm/emac/core.c 		out_be32(&p->mr0, r | EMAC_MR0_TXE);
r                 226 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 230 drivers/net/ethernet/ibm/emac/core.c 	r = in_be32(&p->mr0);
r                 231 drivers/net/ethernet/ibm/emac/core.c 	if (r & EMAC_MR0_TXE) {
r                 233 drivers/net/ethernet/ibm/emac/core.c 		out_be32(&p->mr0, r & ~EMAC_MR0_TXE);
r                 246 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 253 drivers/net/ethernet/ibm/emac/core.c 	r = in_be32(&p->mr0);
r                 254 drivers/net/ethernet/ibm/emac/core.c 	if (!(r & EMAC_MR0_RXE)) {
r                 255 drivers/net/ethernet/ibm/emac/core.c 		if (unlikely(!(r & EMAC_MR0_RXI))) {
r                 258 drivers/net/ethernet/ibm/emac/core.c 			while (!(r = in_be32(&p->mr0) & EMAC_MR0_RXI) && n) {
r                 266 drivers/net/ethernet/ibm/emac/core.c 		out_be32(&p->mr0, r | EMAC_MR0_RXE);
r                 275 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 279 drivers/net/ethernet/ibm/emac/core.c 	r = in_be32(&p->mr0);
r                 280 drivers/net/ethernet/ibm/emac/core.c 	if (r & EMAC_MR0_RXE) {
r                 282 drivers/net/ethernet/ibm/emac/core.c 		out_be32(&p->mr0, r & ~EMAC_MR0_RXE);
r                 327 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 331 drivers/net/ethernet/ibm/emac/core.c 	r = in_be32(&p->mr0);
r                 332 drivers/net/ethernet/ibm/emac/core.c 	if (r & EMAC_MR0_RXE)
r                 333 drivers/net/ethernet/ibm/emac/core.c 		out_be32(&p->mr0, r & ~EMAC_MR0_RXE);
r                 448 drivers/net/ethernet/ibm/emac/core.c 	u32 r;
r                 450 drivers/net/ethernet/ibm/emac/core.c 	r = EMAC_RMR_SP | EMAC_RMR_SFCS | EMAC_RMR_IAE | EMAC_RMR_BAE;
r                 453 drivers/net/ethernet/ibm/emac/core.c 	    r |= EMAC4_RMR_BASE;
r                 455 drivers/net/ethernet/ibm/emac/core.c 	    r |= EMAC_RMR_BASE;
r                 458 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_RMR_PME;
r                 461 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_RMR_PMME;
r                 463 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_RMR_MAE;
r                 466 drivers/net/ethernet/ibm/emac/core.c 		r &= ~EMAC4_RMR_MJS_MASK;
r                 467 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC4_RMR_MJS(ndev->mtu);
r                 470 drivers/net/ethernet/ibm/emac/core.c 	return r;
r                 578 drivers/net/ethernet/ibm/emac/core.c 	u32 r, mr1 = 0;
r                 675 drivers/net/ethernet/ibm/emac/core.c 	r = emac_iff2rmr(ndev);
r                 676 drivers/net/ethernet/ibm/emac/core.c 	if (r & EMAC_RMR_MAE)
r                 678 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->rmr, r);
r                 682 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC4_TMR1((dev->mal_burst_size / dev->fifo_entry_size) + 1,
r                 685 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC_TMR1((dev->mal_burst_size / dev->fifo_entry_size) + 1,
r                 687 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->tmr1, r);
r                 709 drivers/net/ethernet/ibm/emac/core.c 	r = emac_calc_rwmr(dev, rx_size / 8 / dev->fifo_entry_size,
r                 711 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->rwmr, r);
r                 717 drivers/net/ethernet/ibm/emac/core.c 	r = EMAC_ISR_OVR | EMAC_ISR_BP | EMAC_ISR_SE |
r                 721 drivers/net/ethernet/ibm/emac/core.c 	    r |= EMAC4_ISR_TXPE | EMAC4_ISR_RXPE /* | EMAC4_ISR_TXUE |
r                 723 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->iser,  r);
r                 802 drivers/net/ethernet/ibm/emac/core.c 	u32 r = 0;
r                 827 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC4_STACR_BASE(dev->opb_bus_freq);
r                 829 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC_STACR_BASE(dev->opb_bus_freq);
r                 831 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_STACR_OC;
r                 833 drivers/net/ethernet/ibm/emac/core.c 		r |= EMACX_STACR_STAC_READ;
r                 835 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_STACR_STAC_READ;
r                 836 drivers/net/ethernet/ibm/emac/core.c 	r |= (reg & EMAC_STACR_PRA_MASK)
r                 838 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->stacr, r);
r                 842 drivers/net/ethernet/ibm/emac/core.c 	while (!emac_phy_done(dev, (r = in_be32(&p->stacr)))) {
r                 850 drivers/net/ethernet/ibm/emac/core.c 	if (unlikely(r & EMAC_STACR_PHYE)) {
r                 856 drivers/net/ethernet/ibm/emac/core.c 	r = ((r >> EMAC_STACR_PHYD_SHIFT) & EMAC_STACR_PHYD_MASK);
r                 858 drivers/net/ethernet/ibm/emac/core.c 	DBG2(dev, "mdio_read -> %04x" NL, r);
r                 867 drivers/net/ethernet/ibm/emac/core.c 	return err == 0 ? r : err;
r                 874 drivers/net/ethernet/ibm/emac/core.c 	u32 r = 0;
r                 899 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC4_STACR_BASE(dev->opb_bus_freq);
r                 901 drivers/net/ethernet/ibm/emac/core.c 		r = EMAC_STACR_BASE(dev->opb_bus_freq);
r                 903 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_STACR_OC;
r                 905 drivers/net/ethernet/ibm/emac/core.c 		r |= EMACX_STACR_STAC_WRITE;
r                 907 drivers/net/ethernet/ibm/emac/core.c 		r |= EMAC_STACR_STAC_WRITE;
r                 908 drivers/net/ethernet/ibm/emac/core.c 	r |= (reg & EMAC_STACR_PRA_MASK) |
r                 911 drivers/net/ethernet/ibm/emac/core.c 	out_be32(&p->stacr, r);
r                1304 drivers/net/ethernet/ibm/emac/core.c 	u32 r = in_be32(&dev->emacp->mr1);
r                1306 drivers/net/ethernet/ibm/emac/core.c 	int duplex = r & EMAC_MR1_FDE ? DUPLEX_FULL : DUPLEX_HALF;
r                1309 drivers/net/ethernet/ibm/emac/core.c 	if (r & EMAC_MR1_MF_1000)
r                1311 drivers/net/ethernet/ibm/emac/core.c 	else if (r & EMAC_MR1_MF_100)
r                1316 drivers/net/ethernet/ibm/emac/core.c 	switch (r & (EMAC_MR1_EIFC | EMAC_MR1_APP)) {
r                2786 drivers/net/ethernet/ibm/emac/core.c 			int r;
r                2790 drivers/net/ethernet/ibm/emac/core.c 			r = emac_mdio_read(dev->ndev, i, MII_BMCR);
r                2791 drivers/net/ethernet/ibm/emac/core.c 			if (r == 0xffff || r < 0)
r                 274 drivers/net/ethernet/ibm/emac/mal.c 	u32 r = get_mal_dcrn(mal, MAL_TXEOBISR);
r                 276 drivers/net/ethernet/ibm/emac/mal.c 	MAL_DBG2(mal, "txeob %08x" NL, r);
r                 279 drivers/net/ethernet/ibm/emac/mal.c 	set_mal_dcrn(mal, MAL_TXEOBISR, r);
r                 294 drivers/net/ethernet/ibm/emac/mal.c 	u32 r = get_mal_dcrn(mal, MAL_RXEOBISR);
r                 296 drivers/net/ethernet/ibm/emac/mal.c 	MAL_DBG2(mal, "rxeob %08x" NL, r);
r                 299 drivers/net/ethernet/ibm/emac/mal.c 	set_mal_dcrn(mal, MAL_RXEOBISR, r);
r                 106 drivers/net/ethernet/ibm/emac/zmii.c 			u32 r = dev->fer_save;
r                 108 drivers/net/ethernet/ibm/emac/zmii.c 			ZMII_DBG(dev, "autodetecting mode, FER = 0x%08x" NL, r);
r                 110 drivers/net/ethernet/ibm/emac/zmii.c 			if (r & (ZMII_FER_MII(0) | ZMII_FER_MII(1)))
r                 112 drivers/net/ethernet/ibm/emac/zmii.c 			else if (r & (ZMII_FER_RMII(0) | ZMII_FER_RMII(1)))
r                 175 drivers/net/ethernet/intel/e1000/e1000_param.c 		} r;
r                 204 drivers/net/ethernet/intel/e1000/e1000_param.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 266 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = {
r                 294 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = {
r                 361 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = { .min = MIN_TXDELAY,
r                 379 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = { .min = MIN_TXABSDELAY,
r                 397 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = { .min = MIN_RXDELAY,
r                 415 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = { .min = MIN_RXABSDELAY,
r                 433 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .r = { .min = MIN_ITR,
r                 151 drivers/net/ethernet/intel/e1000e/param.c 		} r;
r                 186 drivers/net/ethernet/intel/e1000e/param.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 246 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = MIN_TXDELAY,
r                 266 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = MIN_TXABSDELAY,
r                 286 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = MIN_RXDELAY,
r                 309 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = MIN_RXABSDELAY,
r                 332 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = MIN_ITR,
r                 409 drivers/net/ethernet/intel/e1000e/param.c 			.arg  = { .r = { .min = 0,
r                 419 drivers/net/ethernet/intel/e1000e/param.c 			opt.arg.r.max = E1000E_INT_MODE_MSIX;
r                 423 drivers/net/ethernet/intel/e1000e/param.c 			opt.arg.r.max = E1000E_INT_MODE_MSI;
r                 840 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	struct fm10k_macvlan_request *r, *tmp;
r                 846 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 	list_for_each_entry_safe(r, tmp, &interface->macvlan_requests, list) {
r                 847 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 		switch (r->type) {
r                 851 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 			if (r->mac.glort != glort)
r                 856 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				list_del(&r->list);
r                 857 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c 				kfree(r);
r                 134 drivers/net/ethernet/intel/i40e/i40e_adminq.c 	hw->aq.arq.r.arq_bi = (struct i40e_dma_mem *)hw->aq.arq.dma_head.va;
r                 138 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		bi = &hw->aq.arq.r.arq_bi[i];
r                 175 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		i40e_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]);
r                 196 drivers/net/ethernet/intel/i40e/i40e_adminq.c 	hw->aq.asq.r.asq_bi = (struct i40e_dma_mem *)hw->aq.asq.dma_head.va;
r                 200 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		bi = &hw->aq.asq.r.asq_bi[i];
r                 215 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		i40e_free_dma_mem(hw, &hw->aq.asq.r.asq_bi[i]);
r                 231 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		i40e_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]);
r                 250 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		if (hw->aq.asq.r.asq_bi[i].pa)
r                 251 drivers/net/ethernet/intel/i40e/i40e_adminq.c 			i40e_free_dma_mem(hw, &hw->aq.asq.r.asq_bi[i]);
r                 825 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		dma_buff = &(hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use]);
r                 997 drivers/net/ethernet/intel/i40e/i40e_adminq.c 		memcpy(e->msg_buf, hw->aq.arq.r.arq_bi[desc_idx].va,
r                1008 drivers/net/ethernet/intel/i40e/i40e_adminq.c 	bi = &hw->aq.arq.r.arq_bi[ntc];
r                  24 drivers/net/ethernet/intel/i40e/i40e_adminq.h 	} r;
r                 196 drivers/net/ethernet/intel/i40e/i40e_txrx.h #define I40E_RX_INCREMENT(r, i) \
r                 199 drivers/net/ethernet/intel/i40e/i40e_txrx.h 		if ((i) == (r)->count)		\
r                 201 drivers/net/ethernet/intel/i40e/i40e_txrx.h 		r->next_to_clean = i;		\
r                 204 drivers/net/ethernet/intel/i40e/i40e_txrx.h #define I40E_RX_NEXT_DESC(r, i, n)		\
r                 207 drivers/net/ethernet/intel/i40e/i40e_txrx.h 		if ((i) == (r)->count)		\
r                 209 drivers/net/ethernet/intel/i40e/i40e_txrx.h 		(n) = I40E_RX_DESC((r), (i));	\
r                 212 drivers/net/ethernet/intel/i40e/i40e_txrx.h #define I40E_RX_NEXT_DESC_PREFETCH(r, i, n)		\
r                 214 drivers/net/ethernet/intel/i40e/i40e_txrx.h 		I40E_RX_NEXT_DESC((r), (i), (n));	\
r                 120 drivers/net/ethernet/intel/iavf/iavf_adminq.c 	hw->aq.arq.r.arq_bi = (struct iavf_dma_mem *)hw->aq.arq.dma_head.va;
r                 124 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		bi = &hw->aq.arq.r.arq_bi[i];
r                 161 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		iavf_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]);
r                 183 drivers/net/ethernet/intel/iavf/iavf_adminq.c 	hw->aq.asq.r.asq_bi = (struct iavf_dma_mem *)hw->aq.asq.dma_head.va;
r                 187 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		bi = &hw->aq.asq.r.asq_bi[i];
r                 202 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		iavf_free_dma_mem(hw, &hw->aq.asq.r.asq_bi[i]);
r                 218 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		iavf_free_dma_mem(hw, &hw->aq.arq.r.arq_bi[i]);
r                 237 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		if (hw->aq.asq.r.asq_bi[i].pa)
r                 238 drivers/net/ethernet/intel/iavf/iavf_adminq.c 			iavf_free_dma_mem(hw, &hw->aq.asq.r.asq_bi[i]);
r                 727 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		dma_buff = &hw->aq.asq.r.asq_bi[hw->aq.asq.next_to_use];
r                 898 drivers/net/ethernet/intel/iavf/iavf_adminq.c 		memcpy(e->msg_buf, hw->aq.arq.r.arq_bi[desc_idx].va,
r                 909 drivers/net/ethernet/intel/iavf/iavf_adminq.c 	bi = &hw->aq.arq.r.arq_bi[ntc];
r                  24 drivers/net/ethernet/intel/iavf/iavf_adminq.h 	} r;
r                 175 drivers/net/ethernet/intel/iavf/iavf_txrx.h #define IAVF_RX_INCREMENT(r, i) \
r                 178 drivers/net/ethernet/intel/iavf/iavf_txrx.h 		if ((i) == (r)->count)		\
r                 180 drivers/net/ethernet/intel/iavf/iavf_txrx.h 		r->next_to_clean = i;		\
r                 183 drivers/net/ethernet/intel/iavf/iavf_txrx.h #define IAVF_RX_NEXT_DESC(r, i, n)		\
r                 186 drivers/net/ethernet/intel/iavf/iavf_txrx.h 		if ((i) == (r)->count)		\
r                 188 drivers/net/ethernet/intel/iavf/iavf_txrx.h 		(n) = IAVF_RX_DESC((r), (i));	\
r                 191 drivers/net/ethernet/intel/iavf/iavf_txrx.h #define IAVF_RX_NEXT_DESC_PREFETCH(r, i, n)		\
r                 193 drivers/net/ethernet/intel/iavf/iavf_txrx.h 		IAVF_RX_NEXT_DESC((r), (i), (n));	\
r                 154 drivers/net/ethernet/intel/ice/ice_controlq.c 	cq->rq.r.rq_bi = (struct ice_dma_mem *)cq->rq.dma_head;
r                 161 drivers/net/ethernet/intel/ice/ice_controlq.c 		bi = &cq->rq.r.rq_bi[i];
r                 196 drivers/net/ethernet/intel/ice/ice_controlq.c 		dmam_free_coherent(ice_hw_to_dev(hw), cq->rq.r.rq_bi[i].size,
r                 197 drivers/net/ethernet/intel/ice/ice_controlq.c 				   cq->rq.r.rq_bi[i].va, cq->rq.r.rq_bi[i].pa);
r                 198 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->rq.r.rq_bi[i].va = NULL;
r                 199 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->rq.r.rq_bi[i].pa = 0;
r                 200 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->rq.r.rq_bi[i].size = 0;
r                 222 drivers/net/ethernet/intel/ice/ice_controlq.c 	cq->sq.r.sq_bi = (struct ice_dma_mem *)cq->sq.dma_head;
r                 228 drivers/net/ethernet/intel/ice/ice_controlq.c 		bi = &cq->sq.r.sq_bi[i];
r                 242 drivers/net/ethernet/intel/ice/ice_controlq.c 		dmam_free_coherent(ice_hw_to_dev(hw), cq->sq.r.sq_bi[i].size,
r                 243 drivers/net/ethernet/intel/ice/ice_controlq.c 				   cq->sq.r.sq_bi[i].va, cq->sq.r.sq_bi[i].pa);
r                 244 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->sq.r.sq_bi[i].va = NULL;
r                 245 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->sq.r.sq_bi[i].pa = 0;
r                 246 drivers/net/ethernet/intel/ice/ice_controlq.c 		cq->sq.r.sq_bi[i].size = 0;
r                 430 drivers/net/ethernet/intel/ice/ice_controlq.c 		if ((qi)->ring.r.ring##_bi[i].pa) {			\
r                 432 drivers/net/ethernet/intel/ice/ice_controlq.c 					   (qi)->ring.r.ring##_bi[i].size,\
r                 433 drivers/net/ethernet/intel/ice/ice_controlq.c 					   (qi)->ring.r.ring##_bi[i].va,\
r                 434 drivers/net/ethernet/intel/ice/ice_controlq.c 					   (qi)->ring.r.ring##_bi[i].pa);\
r                 435 drivers/net/ethernet/intel/ice/ice_controlq.c 			(qi)->ring.r.ring##_bi[i].va = NULL;		\
r                 436 drivers/net/ethernet/intel/ice/ice_controlq.c 			(qi)->ring.r.ring##_bi[i].pa = 0;		\
r                 437 drivers/net/ethernet/intel/ice/ice_controlq.c 			(qi)->ring.r.ring##_bi[i].size = 0;		\
r                 922 drivers/net/ethernet/intel/ice/ice_controlq.c 		dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use];
r                1085 drivers/net/ethernet/intel/ice/ice_controlq.c 		memcpy(e->msg_buf, cq->rq.r.rq_bi[desc_idx].va, e->msg_len);
r                1095 drivers/net/ethernet/intel/ice/ice_controlq.c 	bi = &cq->rq.r.rq_bi[ntc];
r                  46 drivers/net/ethernet/intel/ice/ice_controlq.h 	} r;
r                 166 drivers/net/ethernet/intel/ixgb/ixgb_param.c 		} r;
r                 197 drivers/net/ethernet/intel/ixgb/ixgb_param.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 250 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_TXD,
r                 269 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_RXD,
r                 331 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_FCRTH,
r                 350 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_FCRTL,
r                 369 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg = { .r = { .min = MIN_FCPAUSE,
r                 399 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_RDTR,
r                 416 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .r = { .min = MIN_TIDV,
r                 319 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 		struct rx_sa *r = &ipsec->rx_tbl[i];
r                 322 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 		if (r->used) {
r                 323 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 			if (r->mode & IXGBE_RXTXMOD_VF)
r                 324 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 				ixgbe_ipsec_del_sa(r->xs);
r                 326 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 				ixgbe_ipsec_set_rx_sa(hw, i, r->xs->id.spi,
r                 327 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 						      r->key, r->salt,
r                 328 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c 						      r->mode, r->iptbl_ind);
r                  81 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h #define IXGBE_CAT(r, m)	IXGBE_##r##_##m
r                  83 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h #define IXGBE_BY_MAC(_hw, r)	((_hw)->mvals[IXGBE_CAT(r, IDX)])
r                 112 drivers/net/ethernet/intel/ixgbevf/ipsec.c 		struct rx_sa *r = &ipsec->rx_tbl[i];
r                 116 drivers/net/ethernet/intel/ixgbevf/ipsec.c 		if (r->used) {
r                 117 drivers/net/ethernet/intel/ixgbevf/ipsec.c 			ret = ixgbevf_ipsec_set_pf_sa(adapter, r->xs);
r                 169 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_WRITE_REG(h, r, v) ixgbe_write_reg(h, r, v)
r                 172 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_READ_REG(h, r) ixgbevf_read_reg(h, r)
r                 180 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_WRITE_REG_ARRAY(h, r, o, v) ixgbe_write_reg_array(h, r, o, v)
r                 188 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_READ_REG_ARRAY(h, r, o) ixgbe_read_reg_array(h, r, o)
r                 387 drivers/net/ethernet/jme.h #define JME_NAPI_WEIGHT_SET(w, r)
r                1028 drivers/net/ethernet/korina.c 	struct resource *r;
r                1044 drivers/net/ethernet/korina.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "korina_regs");
r                1045 drivers/net/ethernet/korina.c 	dev->base_addr = r->start;
r                1046 drivers/net/ethernet/korina.c 	lp->eth_regs = ioremap_nocache(r->start, resource_size(r));
r                1053 drivers/net/ethernet/korina.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "korina_dma_rx");
r                1054 drivers/net/ethernet/korina.c 	lp->rx_dma_regs = ioremap_nocache(r->start, resource_size(r));
r                1061 drivers/net/ethernet/korina.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "korina_dma_tx");
r                1062 drivers/net/ethernet/korina.c 	lp->tx_dma_regs = ioremap_nocache(r->start, resource_size(r));
r                 279 drivers/net/ethernet/marvell/mvmdio.c 	struct resource *r;
r                 286 drivers/net/ethernet/marvell/mvmdio.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 287 drivers/net/ethernet/marvell/mvmdio.c 	if (!r) {
r                 314 drivers/net/ethernet/marvell/mvmdio.c 	dev->regs = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 352 drivers/net/ethernet/marvell/mvmdio.c 	    resource_size(r) < MVMDIO_ERR_INT_MASK + 4) {
r                1280 drivers/net/ethernet/marvell/skge.c 	u16 id1, r, ext, ctl;
r                1300 drivers/net/ethernet/marvell/skge.c 	r = xm_read16(hw, port, XM_MMU_CMD);
r                1301 drivers/net/ethernet/marvell/skge.c 	r |=  XM_MMU_NO_PRE;
r                1302 drivers/net/ethernet/marvell/skge.c 	xm_write16(hw, port, XM_MMU_CMD, r);
r                1330 drivers/net/ethernet/marvell/skge.c 	r = xm_phy_read(hw, port, PHY_BCOM_AUX_CTRL);
r                1331 drivers/net/ethernet/marvell/skge.c 	r |= PHY_B_AC_DIS_PM;
r                1332 drivers/net/ethernet/marvell/skge.c 	xm_phy_write(hw, port, PHY_BCOM_AUX_CTRL, r);
r                1531 drivers/net/ethernet/marvell/skge.c 	u32 r;
r                1555 drivers/net/ethernet/marvell/skge.c 		r = skge_read32(hw, B2_GP_IO);
r                1557 drivers/net/ethernet/marvell/skge.c 			r |= GP_DIR_0|GP_IO_0;
r                1559 drivers/net/ethernet/marvell/skge.c 			r |= GP_DIR_2|GP_IO_2;
r                1561 drivers/net/ethernet/marvell/skge.c 		skge_write32(hw, B2_GP_IO, r);
r                1595 drivers/net/ethernet/marvell/skge.c 	r = XM_RX_LENERR_OK | XM_RX_STRIP_FCS;
r                1597 drivers/net/ethernet/marvell/skge.c 		r |= XM_RX_BIG_PK_OK;
r                1605 drivers/net/ethernet/marvell/skge.c 		r |= XM_RX_DIS_CEXT;
r                1607 drivers/net/ethernet/marvell/skge.c 	xm_write16(hw, port, XM_RX_CMD, r);
r                3711 drivers/net/ethernet/marvell/skge.c 		const struct skge_rx_desc *r = e->desc;
r                3713 drivers/net/ethernet/marvell/skge.c 		if (r->control & BMU_OWN)
r                3717 drivers/net/ethernet/marvell/skge.c 			   r->control, r->dma_hi, r->dma_lo, r->status,
r                3718 drivers/net/ethernet/marvell/skge.c 			   r->timestamp, r->csum1, r->csum1_start);
r                2530 drivers/net/ethernet/marvell/skge.h static inline void xm_write32(const struct skge_hw *hw, int port, int r, u32 v)
r                2532 drivers/net/ethernet/marvell/skge.h 	skge_write16(hw, SK_XMAC_REG(port,r), v & 0xffff);
r                2533 drivers/net/ethernet/marvell/skge.h 	skge_write16(hw, SK_XMAC_REG(port,r+2), v >> 16);
r                2536 drivers/net/ethernet/marvell/skge.h static inline void xm_write16(const struct skge_hw *hw, int port, int r, u16 v)
r                2538 drivers/net/ethernet/marvell/skge.h 	skge_write16(hw, SK_XMAC_REG(port,r), v);
r                2572 drivers/net/ethernet/marvell/skge.h static inline void gma_write16(const struct skge_hw *hw, int port, int r, u16 v)
r                2574 drivers/net/ethernet/marvell/skge.h 	skge_write16(hw, SK_GMAC_REG(port,r), v);
r                2401 drivers/net/ethernet/marvell/sky2.h static inline void gma_write16(const struct sky2_hw *hw, unsigned port, int r, u16 v)
r                2403 drivers/net/ethernet/marvell/sky2.h 	sky2_write16(hw, SK_GMAC_REG(port,r), v);
r                  16 drivers/net/ethernet/mediatek/mtk_sgmii.c int mtk_sgmii_init(struct mtk_sgmii *ss, struct device_node *r, u32 ana_rgc3)
r                  24 drivers/net/ethernet/mediatek/mtk_sgmii.c 		np = of_parse_phandle(r, "mediatek,sgmiisys", i);
r                 128 drivers/net/ethernet/mellanox/mlx4/fw_qos.c 		u16 r;
r                 132 drivers/net/ethernet/mellanox/mlx4/fw_qos.c 				r = ratelimit[i];
r                 136 drivers/net/ethernet/mellanox/mlx4/fw_qos.c 				r = ratelimit[i] / 10;
r                 140 drivers/net/ethernet/mellanox/mlx4/fw_qos.c 			tc->max_bw_value = htons(r);
r                 895 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                 899 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = find_res(dev, res_id, type);
r                 900 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r) {
r                 905 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r->state == RES_ANY_BUSY) {
r                 909 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			  r->func_name);
r                 914 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r->owner != slave) {
r                 919 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r->from_state = r->state;
r                 920 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r->state = RES_ANY_BUSY;
r                 921 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r->func_name = func_name;
r                 924 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		*((struct res_common **)res) = r;
r                 939 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                 947 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = find_res(dev, id, type);
r                 948 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r) {
r                 949 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		*slave = r->owner;
r                 960 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                 963 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = find_res(dev, res_id, type);
r                 964 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r) {
r                 965 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->state = r->from_state;
r                 966 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->func_name = "";
r                 977 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                 985 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = find_res(dev, counter_index, RES_COUNTER);
r                 986 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r || r->owner != slave) {
r                 989 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		counter = container_of(r, struct res_counter, com);
r                1472 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                1476 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r = res_tracker_lookup(&tracker->res_tree[type], i);
r                1477 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (!r) {
r                1481 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (r->owner != slave) {
r                1485 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		err = remove_ok(r, type, extra);
r                1491 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r = res_tracker_lookup(&tracker->res_tree[type], i);
r                1492 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		rb_erase(&r->node, &tracker->res_tree[type]);
r                1493 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		list_del(&r->list);
r                1494 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(r);
r                1510 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_qp *r;
r                1514 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[RES_QP], qpn);
r                1515 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r)
r                1517 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (r->com.owner != slave)
r                1523 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				 __func__, r->com.res_id);
r                1528 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state == RES_QP_MAPPED && !alloc)
r                1531 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			mlx4_dbg(dev, "failed RES_QP, 0x%llx\n", r->com.res_id);
r                1536 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if ((r->com.state == RES_QP_RESERVED && alloc) ||
r                1537 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			    r->com.state == RES_QP_HW)
r                1541 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 					  r->com.res_id);
r                1548 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_QP_MAPPED)
r                1556 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.from_state = r->com.state;
r                1557 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.to_state = state;
r                1558 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.state = RES_QP_BUSY;
r                1560 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				*qp = r;
r                1574 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_mpt *r;
r                1578 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[RES_MPT], index);
r                1579 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r)
r                1581 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (r->com.owner != slave)
r                1590 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_MPT_MAPPED)
r                1595 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_MPT_RESERVED &&
r                1596 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			    r->com.state != RES_MPT_HW)
r                1601 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_MPT_MAPPED)
r                1609 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.from_state = r->com.state;
r                1610 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.to_state = state;
r                1611 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.state = RES_MPT_BUSY;
r                1613 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				*mpt = r;
r                1627 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_eq *r;
r                1631 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[RES_EQ], index);
r                1632 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r)
r                1634 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	else if (r->com.owner != slave)
r                1643 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_EQ_HW)
r                1648 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (r->com.state != RES_EQ_RESERVED)
r                1657 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.from_state = r->com.state;
r                1658 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.to_state = state;
r                1659 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			r->com.state = RES_EQ_BUSY;
r                1666 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		*eq = r;
r                1676 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_cq *r;
r                1680 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[RES_CQ], cqn);
r                1681 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r) {
r                1683 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (r->com.owner != slave) {
r                1686 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (r->com.state != RES_CQ_HW)
r                1688 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		else if (atomic_read(&r->ref_count))
r                1692 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (state != RES_CQ_HW || r->com.state != RES_CQ_ALLOCATED) {
r                1699 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.from_state = r->com.state;
r                1700 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.to_state = state;
r                1701 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.state = RES_CQ_BUSY;
r                1703 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			*cq = r;
r                1716 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_srq *r;
r                1720 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[RES_SRQ], index);
r                1721 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!r) {
r                1723 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (r->com.owner != slave) {
r                1726 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (r->com.state != RES_SRQ_HW)
r                1728 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		else if (atomic_read(&r->ref_count))
r                1730 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	} else if (state != RES_SRQ_HW || r->com.state != RES_SRQ_ALLOCATED) {
r                1735 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.from_state = r->com.state;
r                1736 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.to_state = state;
r                1737 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->com.state = RES_SRQ_BUSY;
r                1739 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			*srq = r;
r                1752 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                1755 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[type], id);
r                1756 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r && (r->owner == slave))
r                1757 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->state = r->from_state;
r                1766 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                1769 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	r = res_tracker_lookup(&tracker->res_tree[type], id);
r                1770 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (r && (r->owner == slave))
r                1771 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		r->state = r->to_state;
r                4610 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct res_common *r;
r                4616 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	list_for_each_entry_safe(r, tmp, rlist, list) {
r                4617 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		if (r->owner == slave) {
r                4618 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			if (!r->removing) {
r                4619 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				if (r->state == RES_ANY_BUSY) {
r                4624 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 							  r->res_id);
r                4627 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 					r->from_state = r->state;
r                4628 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 					r->state = RES_ANY_BUSY;
r                4629 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 					r->removing = 1;
r                1318 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	struct mlx5_fpga_ipsec_rule *r, *tmp;
r                1320 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 	rbtree_postorder_for_each_entry_safe(r, tmp, root, node) {
r                1321 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		rb_erase(&r->node, root);
r                1322 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		mlx5_fpga_ipsec_delete_sa_ctx(r->ctx);
r                1323 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c 		kfree(r);
r                 727 drivers/net/ethernet/mellanox/mlx5/core/port.c 		MLX5_SET(ets_tcn_config_reg, ets_tcn_conf, r, 1);
r                 221 drivers/net/ethernet/mellanox/mlxsw/core.c MLXSW_ITEM32(emad, op_tlv, r, 0x04, 15, 1);
r                 436 drivers/net/ethernet/micrel/ks8851_mll.c 	u32 r =  ks->extra_byte & 0x1 ;
r                 437 drivers/net/ethernet/micrel/ks8851_mll.c 	u32 w = ks->extra_byte - r;
r                 450 drivers/net/ethernet/micrel/ks8851_mll.c 	if (unlikely(r))
r                2652 drivers/net/ethernet/natsemi/natsemi.c 	int r = -EINVAL;
r                2658 drivers/net/ethernet/natsemi/natsemi.c 		r = 0;
r                2660 drivers/net/ethernet/natsemi/natsemi.c 	return r;
r                2312 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int r;
r                2317 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->max_r_vecs; r++) {
r                2320 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		entry = &nn->irq_entries[NFP_NET_NON_Q_VECTORS + r];
r                2322 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		r_vec = &nn->r_vecs[r];
r                2339 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		cpumask_set_cpu(r, &r_vec->affinity_mask);
r                2446 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2453 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < dp->num_tx_rings; r++) {
r                2456 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		if (r >= dp->num_stack_tx_rings)
r                2459 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_init(&dp->tx_rings[r], &nn->r_vecs[r - bias],
r                2460 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 				     r, bias);
r                2462 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		if (nfp_net_tx_ring_alloc(dp, &dp->tx_rings[r]))
r                2465 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		if (nfp_net_tx_ring_bufs_alloc(dp, &dp->tx_rings[r]))
r                2472 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	while (r--) {
r                2473 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_bufs_free(dp, &dp->tx_rings[r]);
r                2475 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_free(&dp->tx_rings[r]);
r                2483 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2485 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < dp->num_tx_rings; r++) {
r                2486 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_bufs_free(dp, &dp->tx_rings[r]);
r                2487 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_free(&dp->tx_rings[r]);
r                2561 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2568 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < dp->num_rx_rings; r++) {
r                2569 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_init(&dp->rx_rings[r], &nn->r_vecs[r], r);
r                2571 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		if (nfp_net_rx_ring_alloc(dp, &dp->rx_rings[r]))
r                2574 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		if (nfp_net_rx_ring_bufs_alloc(dp, &dp->rx_rings[r]))
r                2581 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	while (r--) {
r                2582 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]);
r                2584 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_free(&dp->rx_rings[r]);
r                2592 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2594 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < dp->num_rx_rings; r++) {
r                2595 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]);
r                2596 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_free(&dp->rx_rings[r]);
r                2752 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2772 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_rx_rings; r++)
r                2773 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_reset(&nn->dp.rx_rings[r]);
r                2774 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_tx_rings; r++)
r                2775 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_reset(&nn->dp, &nn->dp.tx_rings[r]);
r                2776 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++)
r                2777 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_vec_clear_ring_data(nn, r);
r                2808 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2825 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_tx_rings; r++)
r                2826 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_tx_ring_hw_cfg_write(nn, &nn->dp.tx_rings[r], r);
r                2827 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_rx_rings; r++)
r                2828 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_hw_cfg_write(nn, &nn->dp.rx_rings[r], r);
r                2861 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_rx_rings; r++)
r                2862 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_rx_ring_fill_freelist(&nn->dp, &nn->dp.rx_rings[r]);
r                2882 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2888 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++) {
r                2889 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		disable_irq(nn->r_vecs[r].irq_vector);
r                2890 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		napi_disable(&nn->r_vecs[r].napi);
r                2902 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2907 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++)
r                2908 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_cleanup_vector(nn, &nn->r_vecs[r]);
r                2941 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int r;
r                2945 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++) {
r                2946 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		disable_irq(nn->r_vecs[r].irq_vector);
r                2947 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		tasklet_disable(&nn->r_vecs[r].tasklet);
r                2963 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                2965 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++) {
r                2966 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		napi_enable(&nn->r_vecs[r].napi);
r                2967 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		enable_irq(nn->r_vecs[r].irq_vector);
r                2978 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int err, r;
r                2992 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++) {
r                2993 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		err = nfp_net_prepare_vector(nn, &nn->r_vecs[r], r);
r                3006 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->max_r_vecs; r++)
r                3007 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_vector_assign_rings(&nn->dp, &nn->r_vecs[r], r);
r                3014 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	r = nn->dp.num_r_vecs;
r                3016 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	while (r--)
r                3017 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_cleanup_vector(nn, &nn->r_vecs[r]);
r                3081 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int err, r;
r                3094 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->dp.num_r_vecs; r++)
r                3095 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		enable_irq(nn->r_vecs[r].irq_vector);
r                3162 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	unsigned int r;
r                3167 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r <	nn->max_r_vecs; r++)
r                3168 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_vector_assign_rings(&nn->dp, &nn->r_vecs[r], r);
r                3226 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int r, err;
r                3247 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = nn->dp.num_r_vecs; r < dp->num_r_vecs; r++) {
r                3248 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		err = nfp_net_prepare_vector(nn, &nn->r_vecs[r], r);
r                3250 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 			dp->num_r_vecs = r;
r                3279 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = dp->num_r_vecs - 1; r >= nn->dp.num_r_vecs; r--)
r                3280 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_cleanup_vector(nn, &nn->r_vecs[r]);
r                3294 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = dp->num_r_vecs - 1; r >= nn->dp.num_r_vecs; r--)
r                3295 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		nfp_net_cleanup_vector(nn, &nn->r_vecs[r]);
r                3371 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	int r;
r                3374 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 	for (r = 0; r < nn->max_r_vecs; r++) {
r                3375 drivers/net/ethernet/netronome/nfp/nfp_net_common.c 		struct nfp_net_r_vector *r_vec = &nn->r_vecs[r];
r                 143 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 		} r;
r                 236 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 		if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
r                 445 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .r = { .min = PCH_GBE_MIN_TXD,
r                 461 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .r = { .min = PCH_GBE_MIN_RXD,
r                 187 drivers/net/ethernet/pasemi/pasemi_mac.h #define PAS_MAC_RMON(r)			(0x100+(r)*4)
r                  84 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond5(const u32 *r, const u32 *imm)
r                  86 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return ((r[0] & imm[0]) != imm[1]) && ((r[1] & imm[2]) != imm[3]);
r                  89 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond7(const u32 *r, const u32 *imm)
r                  91 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return ((r[0] >> imm[0]) & imm[1]) != imm[2];
r                  94 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond6(const u32 *r, const u32 *imm)
r                  96 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return (r[0] & imm[0]) != imm[1];
r                  99 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond9(const u32 *r, const u32 *imm)
r                 101 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return ((r[0] & imm[0]) >> imm[1]) !=
r                 102 drivers/net/ethernet/qlogic/qed/qed_debug.c 	    (((r[0] & imm[2]) >> imm[3]) | ((r[1] & imm[4]) << imm[5]));
r                 105 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond10(const u32 *r, const u32 *imm)
r                 107 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return ((r[0] & imm[0]) >> imm[1]) != (r[0] & imm[2]);
r                 110 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond4(const u32 *r, const u32 *imm)
r                 112 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return (r[0] & ~imm[0]) != imm[1];
r                 115 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond0(const u32 *r, const u32 *imm)
r                 117 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return (r[0] & ~r[1]) != imm[0];
r                 120 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond1(const u32 *r, const u32 *imm)
r                 122 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] != imm[0];
r                 125 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond11(const u32 *r, const u32 *imm)
r                 127 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] != r[1] && r[2] == imm[0];
r                 130 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond12(const u32 *r, const u32 *imm)
r                 132 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] != r[1] && r[2] > imm[0];
r                 135 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond3(const u32 *r, const u32 *imm)
r                 137 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] != r[1];
r                 140 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond13(const u32 *r, const u32 *imm)
r                 142 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] & imm[0];
r                 145 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond8(const u32 *r, const u32 *imm)
r                 147 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] < (r[1] - imm[0]);
r                 150 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32 cond2(const u32 *r, const u32 *imm)
r                 152 drivers/net/ethernet/qlogic/qed/qed_debug.c 	return r[0] > imm[0];
r                 156 drivers/net/ethernet/qlogic/qed/qed_debug.c static u32(*cond_arr[]) (const u32 *r, const u32 *imm) = {
r                  18 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c 	int r;
r                  39 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c 	r = rmnet_vnd_do_flow_control(vnd, enable);
r                  40 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_command.c 	if (r) {
r                1856 drivers/net/ethernet/realtek/r8169_main.c #define rxtx_x1822(r, t) {		\
r                1857 drivers/net/ethernet/realtek/r8169_main.c 	{{(r),		(t)}},		\
r                1858 drivers/net/ethernet/realtek/r8169_main.c 	{{(r)*8,	(t)*8}},	\
r                1859 drivers/net/ethernet/realtek/r8169_main.c 	{{(r)*8*2,	(t)*8*2}},	\
r                1860 drivers/net/ethernet/realtek/r8169_main.c 	{{(r)*8*2*2,	(t)*8*2*2}},	\
r                 100 drivers/net/ethernet/seeq/ether3.c static inline void ether3_outb(int v, void __iomem *r)
r                 102 drivers/net/ethernet/seeq/ether3.c 	writeb(v, r);
r                 106 drivers/net/ethernet/seeq/ether3.c static inline void ether3_outw(int v, void __iomem *r)
r                 108 drivers/net/ethernet/seeq/ether3.c 	writew(v, r);
r                 111 drivers/net/ethernet/seeq/ether3.c #define ether3_inb(r)		({ unsigned int __v = readb((r)); udelay(1); __v; })
r                 112 drivers/net/ethernet/seeq/ether3.c #define ether3_inw(r)		({ unsigned int __v = readw((r)); udelay(1); __v; })
r                 248 drivers/net/ethernet/seeq/sgiseeq.c 	struct sgiseeq_rx_desc *r = gpriv->rx_desc;
r                 259 drivers/net/ethernet/seeq/sgiseeq.c 		       i, (&r[i]), r[i].rdma.pbuf, r[i].rdma.cntinfo,
r                 260 drivers/net/ethernet/seeq/sgiseeq.c 		       r[i].rdma.pnext);
r                 263 drivers/net/ethernet/seeq/sgiseeq.c 		       i, (&r[i]), r[i].rdma.pbuf, r[i].rdma.cntinfo,
r                 264 drivers/net/ethernet/seeq/sgiseeq.c 		       r[i].rdma.pnext);
r                3597 drivers/net/ethernet/sfc/efx.c 			unsigned char r;
r                3599 drivers/net/ethernet/sfc/efx.c 			get_random_bytes(&r, 1);
r                3600 drivers/net/ethernet/sfc/efx.c 			msleep((unsigned int)r + 50);
r                 181 drivers/net/ethernet/smsc/smc911x.h #define SMC_inl(lp, r)		 ((readw((lp)->base + (r)) & 0xFFFF) + (readw((lp)->base + (r) + 2) << 16))
r                 182 drivers/net/ethernet/smsc/smc911x.h #define SMC_outl(v, lp, r) 			 \
r                 184 drivers/net/ethernet/smsc/smc911x.h 		 writew(v & 0xFFFF, (lp)->base + (r));	 \
r                 185 drivers/net/ethernet/smsc/smc911x.h 		 writew(v >> 16, (lp)->base + (r) + 2); \
r                 187 drivers/net/ethernet/smsc/smc911x.h #define SMC_insl(lp, r, p, l)	 ioread16_rep((short*)((lp)->base + (r)), p, l*2)
r                 188 drivers/net/ethernet/smsc/smc911x.h #define SMC_outsl(lp, r, p, l)	 iowrite16_rep((short*)((lp)->base + (r)), p, l*2)
r                 191 drivers/net/ethernet/smsc/smc911x.h #define SMC_inl(lp, r)		 readl((lp)->base + (r))
r                 192 drivers/net/ethernet/smsc/smc911x.h #define SMC_outl(v, lp, r)	 writel(v, (lp)->base + (r))
r                 193 drivers/net/ethernet/smsc/smc911x.h #define SMC_insl(lp, r, p, l)	 ioread32_rep((int*)((lp)->base + (r)), p, l)
r                 194 drivers/net/ethernet/smsc/smc911x.h #define SMC_outsl(lp, r, p, l)	 iowrite32_rep((int*)((lp)->base + (r)), p, l)
r                 214 drivers/net/ethernet/smsc/smc911x.h #define SMC_insl(lp, r, p, l) \
r                 215 drivers/net/ethernet/smsc/smc911x.h 	smc_pxa_dma_insl(lp, lp->physaddr, r, lp->rxdma, p, l)
r                 246 drivers/net/ethernet/smsc/smc911x.h #define SMC_outsl(lp, r, p, l) \
r                 247 drivers/net/ethernet/smsc/smc911x.h 	 smc_pxa_dma_outsl(lp, lp->physaddr, r, lp->txdma, p, l)
r                  32 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw_b(x, a, r)						\
r                  35 drivers/net/ethernet/smsc/smc91x.h 		unsigned int __reg = (r);				\
r                  40 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw_b(a, r)							\
r                  43 drivers/net/ethernet/smsc/smc91x.h 		unsigned int __reg = r;					\
r                  67 drivers/net/ethernet/smsc/smc91x.h #define SMC_inb(a, r)		readb((a) + (r))
r                  68 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw(a, r)							\
r                  70 drivers/net/ethernet/smsc/smc91x.h 		unsigned int __smc_r = r;				\
r                  76 drivers/net/ethernet/smsc/smc91x.h #define SMC_inl(a, r)		readl((a) + (r))
r                  77 drivers/net/ethernet/smsc/smc91x.h #define SMC_outb(v, a, r)	writeb(v, (a) + (r))
r                  78 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw(lp, v, a, r)						\
r                  80 drivers/net/ethernet/smsc/smc91x.h 		unsigned int __v = v, __smc_r = r;			\
r                  89 drivers/net/ethernet/smsc/smc91x.h #define SMC_outl(v, a, r)	writel(v, (a) + (r))
r                  90 drivers/net/ethernet/smsc/smc91x.h #define SMC_insb(a, r, p, l)	readsb((a) + (r), p, l)
r                  91 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsb(a, r, p, l)	writesb((a) + (r), p, l)
r                  92 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
r                  93 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)
r                  94 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)	readsl((a) + (r), p, l)
r                  95 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)	writesl((a) + (r), p, l)
r                 111 drivers/net/ethernet/smsc/smc91x.h #define __SMC_outw(lp, v, a, r)						\
r                 112 drivers/net/ethernet/smsc/smc91x.h 	_SMC_outw_align4((v), (a), (r),					\
r                 113 drivers/net/ethernet/smsc/smc91x.h 			 IS_BUILTIN(CONFIG_ARCH_PXA) && ((r) & 2) &&	\
r                 123 drivers/net/ethernet/smsc/smc91x.h #define SMC_inb(a, r)		inb((a) + (r) - 0xa0000000)
r                 124 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw(a, r)		inw((a) + (r) - 0xa0000000)
r                 125 drivers/net/ethernet/smsc/smc91x.h #define SMC_inl(a, r)		inl((a) + (r) - 0xa0000000)
r                 126 drivers/net/ethernet/smsc/smc91x.h #define SMC_outb(v, a, r)	outb(v, (a) + (r) - 0xa0000000)
r                 127 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw(lp, v, a, r)	outw(v, (a) + (r) - 0xa0000000)
r                 128 drivers/net/ethernet/smsc/smc91x.h #define SMC_outl(v, a, r)	outl(v, (a) + (r) - 0xa0000000)
r                 129 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)	insl((a) + (r) - 0xa0000000, p, l)
r                 130 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)	outsl((a) + (r) - 0xa0000000, p, l)
r                 131 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)	insw((a) + (r) - 0xa0000000, p, l)
r                 132 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)	outsw((a) + (r) - 0xa0000000, p, l)
r                 143 drivers/net/ethernet/smsc/smc91x.h #define SMC_inb(a, r)           readb((a) + (r))
r                 144 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw(a, r)           readw((a) + (r))
r                 145 drivers/net/ethernet/smsc/smc91x.h #define SMC_inl(a, r)           readl((a) + (r))
r                 146 drivers/net/ethernet/smsc/smc91x.h #define SMC_outb(v, a, r)       writeb(v, (a) + (r))
r                 147 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw(lp, v, a, r)   writew(v, (a) + (r))
r                 148 drivers/net/ethernet/smsc/smc91x.h #define SMC_outl(v, a, r)       writel(v, (a) + (r))
r                 149 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)    readsw((a) + (r), p, l)
r                 150 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)   writesw((a) + (r), p, l)
r                 151 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)    readsl((a) + (r), p, l)
r                 152 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)   writesl((a) + (r), p, l)
r                 178 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw(a, r)		_swapw(readw((a) + (r)))
r                 179 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw(lp, v, a, r)	writew(_swapw(v), (a) + (r))
r                 180 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)	mcf_insw(a + r, p, l)
r                 181 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)	mcf_outsw(a + r, p, l)
r                 191 drivers/net/ethernet/smsc/smc91x.h #define SMC_inb(a, r)		ioread8((a) + (r))
r                 192 drivers/net/ethernet/smsc/smc91x.h #define SMC_outb(v, a, r)	iowrite8(v, (a) + (r))
r                 193 drivers/net/ethernet/smsc/smc91x.h #define SMC_insb(a, r, p, l)	ioread8_rep((a) + (r), p, l)
r                 194 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsb(a, r, p, l)	iowrite8_rep((a) + (r), p, l)
r                 209 drivers/net/ethernet/smsc/smc91x.h #define SMC_inb(a, r)		ioread8((a) + (r))
r                 210 drivers/net/ethernet/smsc/smc91x.h #define SMC_inw(a, r)		ioread16((a) + (r))
r                 211 drivers/net/ethernet/smsc/smc91x.h #define SMC_inl(a, r)		ioread32((a) + (r))
r                 212 drivers/net/ethernet/smsc/smc91x.h #define SMC_outb(v, a, r)	iowrite8(v, (a) + (r))
r                 213 drivers/net/ethernet/smsc/smc91x.h #define SMC_outw(lp, v, a, r)	iowrite16(v, (a) + (r))
r                 214 drivers/net/ethernet/smsc/smc91x.h #define SMC_outl(v, a, r)	iowrite32(v, (a) + (r))
r                 215 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)	ioread16_rep((a) + (r), p, l)
r                 216 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)	iowrite16_rep((a) + (r), p, l)
r                 217 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)	ioread32_rep((a) + (r), p, l)
r                 218 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)	iowrite32_rep((a) + (r), p, l)
r                 296 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l) \
r                 297 drivers/net/ethernet/smsc/smc91x.h 	smc_pxa_dma_insl(a, lp, r, dev->dma, p, l)
r                 365 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l) \
r                 366 drivers/net/ethernet/smsc/smc91x.h 	smc_pxa_dma_insw(a, lp, r, dev->dma, p, l)
r                 419 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)		BUG()
r                 420 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)		BUG()
r                 424 drivers/net/ethernet/smsc/smc91x.h #define SMC_insl(a, r, p, l)		BUG()
r                 425 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsl(a, r, p, l)		BUG()
r                 432 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)		BUG()
r                 433 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)		BUG()
r                 438 drivers/net/ethernet/smsc/smc91x.h #define SMC_insw(a, r, p, l)		BUG()
r                 439 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsw(a, r, p, l)		BUG()
r                 447 drivers/net/ethernet/smsc/smc91x.h #define SMC_insb(a, r, p, l)		BUG()
r                 448 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsb(a, r, p, l)		BUG()
r                 452 drivers/net/ethernet/smsc/smc91x.h #define SMC_insb(a, r, p, l)		BUG()
r                 453 drivers/net/ethernet/smsc/smc91x.h #define SMC_outsb(a, r, p, l)		BUG()
r                 562 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	u32 t, r;
r                 565 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	r = readl(ioaddr + EMAC_RX_CTL0);
r                 568 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 		r |= EMAC_RX_RECEIVER_EN;
r                 571 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 		r &= ~EMAC_RX_RECEIVER_EN;
r                 574 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	writel(r, ioaddr + EMAC_RX_CTL0);
r                2867 drivers/net/ethernet/sun/cassini.h #define TX_DESC_NEXT(r, x)  (((x) + 1) & (TX_DESC_RINGN_SIZE(r) - 1))
r                2868 drivers/net/ethernet/sun/cassini.h #define RX_DESC_ENTRY(r, x) ((x) & (RX_DESC_RINGN_SIZE(r) - 1))
r                2869 drivers/net/ethernet/sun/cassini.h #define RX_COMP_ENTRY(r, x) ((x) & (RX_COMP_RINGN_SIZE(r) - 1))
r                2871 drivers/net/ethernet/sun/cassini.h #define TX_BUFF_COUNT(r, x, y)    ((x) <= (y) ? ((y) - (x)) : \
r                2872 drivers/net/ethernet/sun/cassini.h         (TX_DESC_RINGN_SIZE(r) - (x) + (y)))
r                4077 drivers/net/ethernet/sun/niu.c 				int r = niu_rx_error(np, rp);
r                4078 drivers/net/ethernet/sun/niu.c 				if (r) {
r                4079 drivers/net/ethernet/sun/niu.c 					err = r;
r                4095 drivers/net/ethernet/sun/niu.c 				int r = niu_tx_error(np, rp);
r                4096 drivers/net/ethernet/sun/niu.c 				if (r)
r                4097 drivers/net/ethernet/sun/niu.c 					err = r;
r                4102 drivers/net/ethernet/sun/niu.c 		int r = niu_mif_interrupt(np);
r                4103 drivers/net/ethernet/sun/niu.c 		if (r)
r                4104 drivers/net/ethernet/sun/niu.c 			err = r;
r                4108 drivers/net/ethernet/sun/niu.c 			int r = niu_mac_interrupt(np);
r                4109 drivers/net/ethernet/sun/niu.c 			if (r)
r                4110 drivers/net/ethernet/sun/niu.c 				err = r;
r                4113 drivers/net/ethernet/sun/niu.c 			int r = niu_device_error(np);
r                4114 drivers/net/ethernet/sun/niu.c 			if (r)
r                4115 drivers/net/ethernet/sun/niu.c 				err = r;
r                  29 drivers/net/ethernet/ti/cpts.c #define cpts_read32(c, r)	readl_relaxed(&c->reg->r)
r                  30 drivers/net/ethernet/ti/cpts.c #define cpts_write32(c, v, r)	writel_relaxed(v, &c->reg->r)
r                  47 drivers/net/ethernet/ti/cpts.c 	u32 r = cpts_read32(cpts, intstat_raw);
r                  49 drivers/net/ethernet/ti/cpts.c 	if (r & TS_PEND_RAW) {
r                1505 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 	unsigned int data_len, i, found, r;
r                1614 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		for (r = 0; r < 12; r++)
r                1615 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			if (scan_info->rate[r])
r                1621 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 		for (r = 0; r < 16; r++)
r                1622 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c 			if (scan_info->ext_rate[r])
r                 102 drivers/net/fddi/skfp/cfm.c 	smc->r.rm_join = 0 ;
r                 103 drivers/net/fddi/skfp/cfm.c 	smc->r.rm_loop = 0 ;
r                 289 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_loop = FALSE ;
r                 290 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_join = FALSE ;
r                 325 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = FALSE ;
r                 326 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = TRUE ;
r                 330 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = FALSE ;
r                 331 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = TRUE ;
r                 390 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = FALSE ;
r                 391 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = TRUE ;
r                 395 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = FALSE ;
r                 396 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = TRUE ;
r                 441 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_loop = FALSE ;
r                 442 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_join = TRUE ;
r                 474 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_loop = FALSE ;
r                 475 drivers/net/fddi/skfp/cfm.c 		smc->r.rm_join = TRUE ;
r                 506 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = FALSE ;
r                 507 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = TRUE ;
r                 511 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_loop = FALSE ;
r                 512 drivers/net/fddi/skfp/cfm.c 			smc->r.rm_join = TRUE ;
r                 756 drivers/net/fddi/skfp/fplustm.c 		smc->r.dup_addr_test = DA_FAILED ;
r                  84 drivers/net/fddi/skfp/h/fplustm.h 	struct	s_smt_fp_rxd r ;		/* pointer to the RxD */
r                 114 drivers/net/fddi/skfp/h/hwmtm.h 	struct	hwm_r	r ;
r                 441 drivers/net/fddi/skfp/h/smc.h 	struct s_rmt	r ;		/* rmt */
r                 119 drivers/net/fddi/skfp/h/supern_2.h 	} r ;
r                 333 drivers/net/fddi/skfp/hwmtm.c 		d2->r.rxd_rbctrl = cpu_to_le32(BMU_CHECK) ;
r                 334 drivers/net/fddi/skfp/hwmtm.c 		d2->r.rxd_next = &d1->r ;
r                 336 drivers/net/fddi/skfp/hwmtm.c 		d2->r.rxd_nrdadr = cpu_to_le32(phys) ;
r                 339 drivers/net/fddi/skfp/hwmtm.c 	d1->r.rxd_rbctrl = cpu_to_le32(BMU_CHECK) ;
r                 340 drivers/net/fddi/skfp/hwmtm.c 	d1->r.rxd_next = &start->r ;
r                 342 drivers/net/fddi/skfp/hwmtm.c 	d1->r.rxd_nrdadr = cpu_to_le32(phys) ;
r                 345 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(&d1->r,DDI_DMA_SYNC_FORDEV) ;
r                 640 drivers/net/fddi/skfp/hwmtm.c 	struct s_smt_fp_rxd volatile *r ;
r                 644 drivers/net/fddi/skfp/hwmtm.c 	r = queue->rx_curr_get ;
r                 647 drivers/net/fddi/skfp/hwmtm.c 		r = r->rxd_next ;
r                 649 drivers/net/fddi/skfp/hwmtm.c 	phys = le32_to_cpu(r->rxd_nrdadr) ;
r                 651 drivers/net/fddi/skfp/hwmtm.c 	r = queue->rx_curr_get ;
r                 653 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                 654 drivers/net/fddi/skfp/hwmtm.c 		rbctrl = le32_to_cpu(r->rxd_rbctrl) ;
r                 664 drivers/net/fddi/skfp/hwmtm.c 				r->rxd_rbctrl &= ~cpu_to_le32(BMU_OWN) ;
r                 667 drivers/net/fddi/skfp/hwmtm.c 		phys = le32_to_cpu(r->rxd_nrdadr) ;
r                 668 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORDEV) ;
r                 669 drivers/net/fddi/skfp/hwmtm.c 		r = r->rxd_next ;
r                1044 drivers/net/fddi/skfp/hwmtm.c 	struct s_smt_fp_rxd volatile *r ;	/* rxd pointer */
r                1059 drivers/net/fddi/skfp/hwmtm.c 		r = queue->rx_curr_get ;
r                1082 drivers/net/fddi/skfp/hwmtm.c 			DB_RX(5, "Check RxD %p for OWN and EOF", r);
r                1083 drivers/net/fddi/skfp/hwmtm.c 			DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1084 drivers/net/fddi/skfp/hwmtm.c 			rbctrl = le32_to_cpu(CR_READ(r->rxd_rbctrl));
r                1087 drivers/net/fddi/skfp/hwmtm.c 				NDD_TRACE("RHxE",r,rfsw,rbctrl) ;
r                1107 drivers/net/fddi/skfp/hwmtm.c 			rfsw = le32_to_cpu(r->rxd_rfsw) ;
r                1130 drivers/net/fddi/skfp/hwmtm.c 			r = r->rxd_next ;
r                1139 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1140 drivers/net/fddi/skfp/hwmtm.c 		while (rx_used && !(r->rxd_rbctrl & cpu_to_le32(BMU_ST_BUF))) {
r                1141 drivers/net/fddi/skfp/hwmtm.c 			DB_RX(5, "Check STF bit in %p", r);
r                1142 drivers/net/fddi/skfp/hwmtm.c 			r = r->rxd_next ;
r                1143 drivers/net/fddi/skfp/hwmtm.c 			DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1153 drivers/net/fddi/skfp/hwmtm.c 		queue->rx_curr_get = r ;
r                1162 drivers/net/fddi/skfp/hwmtm.c 		for (r=rxd, i=frag_count ; i ; r=r->rxd_next, i--){
r                1163 drivers/net/fddi/skfp/hwmtm.c 			DB_RX(5, "dma_complete for RxD %p", r);
r                1164 drivers/net/fddi/skfp/hwmtm.c 			dma_complete(smc,(union s_fp_descr volatile *)r,DMA_WR);
r                1275 drivers/net/fddi/skfp/hwmtm.c 			for (r=rxd, i=used_frags ; i ; r=r->rxd_next, i--){
r                1276 drivers/net/fddi/skfp/hwmtm.c 				n = le32_to_cpu(r->rxd_rbctrl) & RD_LENGTH ;
r                1278 drivers/net/fddi/skfp/hwmtm.c 				memcpy(data,r->rxd_virt,n) ;
r                1381 drivers/net/fddi/skfp/hwmtm.c 	smc->os.hwm.r.len = mb->sm_len ;
r                1382 drivers/net/fddi/skfp/hwmtm.c 	smc->os.hwm.r.mb_pos = smtod(mb,char *) ;
r                1383 drivers/net/fddi/skfp/hwmtm.c 	fc = *smc->os.hwm.r.mb_pos ;
r                1385 drivers/net/fddi/skfp/hwmtm.c 		smc->os.hwm.r.mb_pos,(int)mb->sm_len) ;
r                1414 drivers/net/fddi/skfp/hwmtm.c 	struct s_smt_fp_rxd volatile *r ;
r                1419 drivers/net/fddi/skfp/hwmtm.c 	r = smc->hw.fp.rx_q[QUEUE_R1].rx_curr_put ;
r                1420 drivers/net/fddi/skfp/hwmtm.c 	r->rxd_virt = virt ;
r                1421 drivers/net/fddi/skfp/hwmtm.c 	r->rxd_rbadr = cpu_to_le32(phys) ;
r                1426 drivers/net/fddi/skfp/hwmtm.c 	r->rxd_rbctrl = rbctrl ;
r                1428 drivers/net/fddi/skfp/hwmtm.c 	DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORDEV) ;
r                1432 drivers/net/fddi/skfp/hwmtm.c 	smc->hw.fp.rx_q[QUEUE_R1].rx_curr_put = r->rxd_next ;
r                1433 drivers/net/fddi/skfp/hwmtm.c 	NDD_TRACE("RHfE",r,le32_to_cpu(r->rxd_rbadr),0) ;
r                1461 drivers/net/fddi/skfp/hwmtm.c 	struct s_smt_fp_rxd volatile *r ;
r                1479 drivers/net/fddi/skfp/hwmtm.c 	r = queue->rx_curr_get ;
r                1481 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1482 drivers/net/fddi/skfp/hwmtm.c 		DB_RX(5, "switch OWN bit of RxD 0x%p", r);
r                1483 drivers/net/fddi/skfp/hwmtm.c 		r->rxd_rbctrl &= ~cpu_to_le32(BMU_OWN) ;
r                1485 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORDEV) ;
r                1486 drivers/net/fddi/skfp/hwmtm.c 		r = r->rxd_next ;
r                1487 drivers/net/fddi/skfp/hwmtm.c 		DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1488 drivers/net/fddi/skfp/hwmtm.c 		while (r != queue->rx_curr_put &&
r                1489 drivers/net/fddi/skfp/hwmtm.c 			!(r->rxd_rbctrl & cpu_to_le32(BMU_ST_BUF))) {
r                1490 drivers/net/fddi/skfp/hwmtm.c 			DB_RX(5, "Check STF bit in %p", r);
r                1491 drivers/net/fddi/skfp/hwmtm.c 			r->rxd_rbctrl &= ~cpu_to_le32(BMU_OWN) ;
r                1492 drivers/net/fddi/skfp/hwmtm.c 			DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORDEV) ;
r                1493 drivers/net/fddi/skfp/hwmtm.c 			r = r->rxd_next ;
r                1494 drivers/net/fddi/skfp/hwmtm.c 			DRV_BUF_FLUSH(r,DDI_DMA_SYNC_FORCPU) ;
r                1498 drivers/net/fddi/skfp/hwmtm.c 		next_rxd = r ;
r                1500 drivers/net/fddi/skfp/hwmtm.c 		for (r=queue->rx_curr_get,i=frag_count; i ; r=r->rxd_next,i--){
r                1501 drivers/net/fddi/skfp/hwmtm.c 			DB_RX(5, "dma_complete for RxD %p", r);
r                1502 drivers/net/fddi/skfp/hwmtm.c 			dma_complete(smc,(union s_fp_descr volatile *)r,DMA_WR);
r                 122 drivers/net/fddi/skfp/rmt.c 	smc->r.dup_addr_test = DA_NONE ;
r                 123 drivers/net/fddi/skfp/rmt.c 	smc->r.da_flag = 0 ;
r                 125 drivers/net/fddi/skfp/rmt.c 	smc->r.sm_ma_avail = FALSE ;
r                 126 drivers/net/fddi/skfp/rmt.c 	smc->r.loop_avail = 0 ;
r                 127 drivers/net/fddi/skfp/rmt.c 	smc->r.bn_flag = 0 ;
r                 128 drivers/net/fddi/skfp/rmt.c 	smc->r.jm_flag = 0 ;
r                 129 drivers/net/fddi/skfp/rmt.c 	smc->r.no_flag = TRUE ;
r                 165 drivers/net/fddi/skfp/rmt.c 	if (!smc->r.rm_join && !smc->r.rm_loop &&
r                 185 drivers/net/fddi/skfp/rmt.c 		smc->r.loop_avail = FALSE ;
r                 186 drivers/net/fddi/skfp/rmt.c 		smc->r.sm_ma_avail = FALSE ;
r                 187 drivers/net/fddi/skfp/rmt.c 		smc->r.no_flag = TRUE ;
r                 193 drivers/net/fddi/skfp/rmt.c 		if (smc->r.rm_join || smc->r.rm_loop) {
r                 212 drivers/net/fddi/skfp/rmt.c 		smc->r.sm_ma_avail = FALSE ;
r                 225 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 226 drivers/net/fddi/skfp/rmt.c 			smc->r.no_flag = TRUE ;
r                 235 drivers/net/fddi/skfp/rmt.c 		smc->r.no_flag = FALSE ;
r                 236 drivers/net/fddi/skfp/rmt.c 		if (smc->r.rm_loop)
r                 237 drivers/net/fddi/skfp/rmt.c 			smc->r.loop_avail = TRUE ;
r                 238 drivers/net/fddi/skfp/rmt.c 		if (smc->r.rm_join) {
r                 239 drivers/net/fddi/skfp/rmt.c 			smc->r.sm_ma_avail = TRUE ;
r                 256 drivers/net/fddi/skfp/rmt.c 			smc->r.loop_avail = FALSE ;
r                 269 drivers/net/fddi/skfp/rmt.c 		else if (smc->r.dup_addr_test == DA_FAILED) {
r                 271 drivers/net/fddi/skfp/rmt.c 			smc->r.loop_avail = FALSE ;
r                 272 drivers/net/fddi/skfp/rmt.c 			smc->r.da_flag = TRUE ;
r                 292 drivers/net/fddi/skfp/rmt.c 			smc->r.timer0_exp = TRUE ;
r                 312 drivers/net/fddi/skfp/rmt.c 			&& smc->r.bn_flag) {
r                 313 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 316 drivers/net/fddi/skfp/rmt.c 		else if (cmd == RM_TRT_EXP && !smc->r.bn_flag) {
r                 325 drivers/net/fddi/skfp/rmt.c 				smc->r.bn_flag = TRUE ;
r                 342 drivers/net/fddi/skfp/rmt.c 				tx, smc->r.bn_flag);
r                 345 drivers/net/fddi/skfp/rmt.c 		else if (cmd == RM_MY_CLAIM && smc->r.timer0_exp) {
r                 351 drivers/net/fddi/skfp/rmt.c 		else if (cmd == RM_MY_BEACON && smc->r.timer0_exp) {
r                 364 drivers/net/fddi/skfp/rmt.c 			smc->r.rm_join && smc->r.bn_flag) {
r                 384 drivers/net/fddi/skfp/rmt.c 		if (!smc->r.da_flag) {
r                 390 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag) {
r                 391 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 394 drivers/net/fddi/skfp/rmt.c 		else if (cmd == RM_TRT_EXP && !smc->r.bn_flag) {
r                 403 drivers/net/fddi/skfp/rmt.c 				smc->r.bn_flag = TRUE ;
r                 420 drivers/net/fddi/skfp/rmt.c 				tx, smc->r.bn_flag);
r                 423 drivers/net/fddi/skfp/rmt.c 		else if (cmd == RM_TIMEOUT_ANNOUNCE && !smc->r.bn_flag) {
r                 428 drivers/net/fddi/skfp/rmt.c 			smc->r.no_flag = FALSE ;
r                 434 drivers/net/fddi/skfp/rmt.c 			smc->r.rm_join && smc->r.bn_flag) {
r                 448 drivers/net/fddi/skfp/rmt.c 		if (smc->r.dup_addr_test == DA_PASSED) {
r                 449 drivers/net/fddi/skfp/rmt.c 			smc->r.da_flag = FALSE ;
r                 455 drivers/net/fddi/skfp/rmt.c 			smc->r.jm_flag = FALSE ;
r                 456 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 486 drivers/net/fddi/skfp/rmt.c 			!smc->r.da_flag) {
r                 487 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 493 drivers/net/fddi/skfp/rmt.c 			smc->r.da_flag) {
r                 494 drivers/net/fddi/skfp/rmt.c 			smc->r.bn_flag = FALSE ;
r                 527 drivers/net/fddi/skfp/rmt.c 	if (smc->r.jm_flag) {
r                 555 drivers/net/fddi/skfp/rmt.c 	smc->r.da_flag = TRUE ;
r                 556 drivers/net/fddi/skfp/rmt.c 	smc->r.bn_flag = FALSE ;
r                 557 drivers/net/fddi/skfp/rmt.c 	smc->r.jm_flag = FALSE ;
r                 593 drivers/net/fddi/skfp/rmt.c 	smc->r.timer0_exp = FALSE ;		/* clear timer event flag */
r                 594 drivers/net/fddi/skfp/rmt.c 	smt_timer_start(smc,&smc->r.rmt_timer0,value,EV_TOKEN(EVENT_RMT,event));
r                 603 drivers/net/fddi/skfp/rmt.c 	smc->r.timer1_exp = FALSE ;	/* clear timer event flag */
r                 604 drivers/net/fddi/skfp/rmt.c 	smt_timer_start(smc,&smc->r.rmt_timer1,value,EV_TOKEN(EVENT_RMT,event));
r                 613 drivers/net/fddi/skfp/rmt.c 	smc->r.timer2_exp = FALSE ;		/* clear timer event flag */
r                 614 drivers/net/fddi/skfp/rmt.c 	smt_timer_start(smc,&smc->r.rmt_timer2,value,EV_TOKEN(EVENT_RMT,event));
r                 623 drivers/net/fddi/skfp/rmt.c 	if (smc->r.rmt_timer0.tm_active)
r                 624 drivers/net/fddi/skfp/rmt.c 		smt_timer_stop(smc,&smc->r.rmt_timer0) ;
r                 633 drivers/net/fddi/skfp/rmt.c 	if (smc->r.rmt_timer1.tm_active)
r                 634 drivers/net/fddi/skfp/rmt.c 		smt_timer_stop(smc,&smc->r.rmt_timer1) ;
r                 643 drivers/net/fddi/skfp/rmt.c 	if (smc->r.rmt_timer2.tm_active)
r                 644 drivers/net/fddi/skfp/rmt.c 		smt_timer_stop(smc,&smc->r.rmt_timer2) ;
r                1459 drivers/net/fddi/skfp/skfddi.c 		volatile struct s_smt_fp_rxd *r = &descr->r;
r                1462 drivers/net/fddi/skfp/skfddi.c 		if (r->rxd_os.skb && r->rxd_os.dma_addr) {
r                1465 drivers/net/fddi/skfp/skfddi.c 			pci_unmap_single(&bp->pdev, r->rxd_os.dma_addr,
r                1467 drivers/net/fddi/skfp/skfddi.c 			r->rxd_os.dma_addr = 0;
r                 631 drivers/net/fddi/skfp/smt.c 				smc->r.dup_addr_test = DA_FAILED ;
r                 663 drivers/net/fddi/skfp/smt.c 				if (smc->r.dup_addr_test != DA_PASSED) {
r                 664 drivers/net/fddi/skfp/smt.c 					smc->r.dup_addr_test = DA_PASSED ;
r                 834 drivers/net/fddi/skfp/smt.c 	if (!smc->r.sm_ma_avail && !local) {
r                1108 drivers/net/fddi/skfp/smt.c 	if (!smc->r.sm_ma_avail) {
r                 381 drivers/net/fddi/skfp/srf.c 	if (!smc->r.sm_ma_avail)
r                 245 drivers/net/hamradio/scc.c 	unsigned char r;
r                 251 drivers/net/hamradio/scc.c 	r=Inb(port);
r                 255 drivers/net/hamradio/scc.c 	r=Inb(port);
r                 258 drivers/net/hamradio/scc.c 	return r;
r                 462 drivers/net/mii.c 	int r = -EINVAL;
r                 470 drivers/net/mii.c 		r = 0;
r                 473 drivers/net/mii.c 	return r;
r                 130 drivers/net/phy/aquantia_main.c #define SGMII_STAT(n, r, s) { n, MDIO_C22EXT_STAT_SGMII_ ## r, s }
r                 223 drivers/net/phy/mdio-bcm-unimac.c 	struct resource *r;
r                 232 drivers/net/phy/mdio-bcm-unimac.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 233 drivers/net/phy/mdio-bcm-unimac.c 	if (!r)
r                 239 drivers/net/phy/mdio-bcm-unimac.c 	priv->base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                  71 drivers/net/phy/mdio-cavium.c 		int r = cavium_mdiobus_c45_addr(p, phy_id, regnum);
r                  73 drivers/net/phy/mdio-cavium.c 		if (r < 0)
r                  74 drivers/net/phy/mdio-cavium.c 			return r;
r                 112 drivers/net/phy/mdio-cavium.c 		int r = cavium_mdiobus_c45_addr(p, phy_id, regnum);
r                 114 drivers/net/phy/mdio-cavium.c 		if (r < 0)
r                 115 drivers/net/phy/mdio-cavium.c 			return r;
r                  43 drivers/net/phy/mdio-mux-gpio.c 	int r;
r                  57 drivers/net/phy/mdio-mux-gpio.c 	r = mdio_mux_init(&pdev->dev, pdev->dev.of_node,
r                  60 drivers/net/phy/mdio-mux-gpio.c 	if (r != 0) {
r                  62 drivers/net/phy/mdio-mux-gpio.c 		return r;
r                  42 drivers/net/phy/mdio-mux.c 	int r;
r                  45 drivers/net/phy/mdio-mux.c 	r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
r                  46 drivers/net/phy/mdio-mux.c 	if (r)
r                  51 drivers/net/phy/mdio-mux.c 	r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum);
r                  55 drivers/net/phy/mdio-mux.c 	return r;
r                  67 drivers/net/phy/mdio-mux.c 	int r;
r                  70 drivers/net/phy/mdio-mux.c 	r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data);
r                  71 drivers/net/phy/mdio-mux.c 	if (r)
r                  76 drivers/net/phy/mdio-mux.c 	r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val);
r                  80 drivers/net/phy/mdio-mux.c 	return r;
r                  94 drivers/net/phy/mdio-mux.c 	int r, ret_val;
r                 136 drivers/net/phy/mdio-mux.c 		r = of_property_read_u32(child_bus_node, "reg", &v);
r                 137 drivers/net/phy/mdio-mux.c 		if (r) {
r                 166 drivers/net/phy/mdio-mux.c 		r = of_mdiobus_register(cb->mii_bus, child_bus_node);
r                 167 drivers/net/phy/mdio-mux.c 		if (r) {
r                  58 drivers/net/phy/mdio-thunder.c 		struct resource r;
r                  70 drivers/net/phy/mdio-thunder.c 		err = of_address_to_resource(node, 0, &r);
r                  88 drivers/net/phy/mdio-thunder.c 			r.start - pci_resource_start(pdev, 0);
r                  94 drivers/net/phy/mdio-thunder.c 		snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", r.start);
r                 103 drivers/net/phy/mdio-thunder.c 		dev_info(&pdev->dev, "Added bus at %llx\n", r.start);
r                 182 drivers/net/phy/mdio_bus.c 	struct mii_bus **r = res;
r                 184 drivers/net/phy/mdio_bus.c 	if (WARN_ON(!r || !*r))
r                 187 drivers/net/phy/mdio_bus.c 	return *r == data;
r                 762 drivers/net/phy/phy-core.c 	int r;
r                 765 drivers/net/phy/phy-core.c 		r = __phy_write_page(phydev, oldpage);
r                 770 drivers/net/phy/phy-core.c 		if (ret >= 0 && r < 0)
r                 771 drivers/net/phy/phy-core.c 			ret = r;
r                 822 drivers/net/phy/phy_device.c 	int r;
r                 827 drivers/net/phy/phy_device.c 	r = get_phy_id(bus, addr, &phy_id, is_c45, &c45_ids);
r                 828 drivers/net/phy/phy_device.c 	if (r)
r                 829 drivers/net/phy/phy_device.c 		return ERR_PTR(r);
r                  43 drivers/net/phy/spi_ks8995.c #define KS8995_REG_PC(p, r)	((0x10 * p) + r)	 /* Port Control */
r                  44 drivers/net/phy/spi_ks8995.c #define KS8995_REG_PS(p, r)	((0x10 * p) + r + 0xe)  /* Port Status */
r                 366 drivers/net/plip/plip.c 	int r;
r                 370 drivers/net/plip/plip.c 	if ((r = (*f)(nl->dev, nl, snd, rcv)) != OK &&
r                 371 drivers/net/plip/plip.c 	    (r = plip_bh_timeout_error(nl->dev, nl, snd, rcv, r)) != OK) {
r                 189 drivers/net/ppp/ppp_deflate.c 	int r, proto, off, olen, oavail;
r                 226 drivers/net/ppp/ppp_deflate.c 		r = zlib_deflate(&state->strm, Z_PACKET_FLUSH);
r                 227 drivers/net/ppp/ppp_deflate.c 		if (r != Z_OK) {
r                 230 drivers/net/ppp/ppp_deflate.c 				       "z_compress: deflate returned %d\n", r);
r                 415 drivers/net/ppp/ppp_deflate.c 	int olen, seq, r;
r                 460 drivers/net/ppp/ppp_deflate.c 		r = zlib_inflate(&state->strm, Z_PACKET_FLUSH);
r                 461 drivers/net/ppp/ppp_deflate.c 		if (r != Z_OK) {
r                 464 drivers/net/ppp/ppp_deflate.c 				       state->unit, r, (state->strm.msg? state->strm.msg: ""));
r                 520 drivers/net/ppp/ppp_deflate.c 	int proto, r;
r                 542 drivers/net/ppp/ppp_deflate.c 	r = zlib_inflateIncomp(&state->strm);
r                 543 drivers/net/ppp/ppp_deflate.c 	if (r != Z_OK) {
r                 547 drivers/net/ppp/ppp_deflate.c 			       state->unit, r, (state->strm.msg? state->strm.msg: ""));
r                 376 drivers/net/usb/catc.c 	int r, status = urb->status;
r                 397 drivers/net/usb/catc.c 		r = catc_tx_run(catc);
r                 398 drivers/net/usb/catc.c 		if (unlikely(r < 0))
r                 414 drivers/net/usb/catc.c 	int r = 0;
r                 429 drivers/net/usb/catc.c 		r = catc_tx_run(catc);
r                 430 drivers/net/usb/catc.c 		if (r < 0)
r                 440 drivers/net/usb/catc.c 	if (r >= 0) {
r                  80 drivers/net/usb/cdc_subset.c 	int r;
r                  82 drivers/net/usb/cdc_subset.c 	r = usb_lock_device_for_reset(udev, intf);
r                  83 drivers/net/usb/cdc_subset.c 	if (r < 0)
r                1554 drivers/net/wan/cosa.c 			short r;
r                1555 drivers/net/wan/cosa.c 			r = cosa_getdata8(cosa);
r                1560 drivers/net/wan/cosa.c 			return r;
r                 654 drivers/net/wan/lmc/lmc_media.c       av->r = 2;
r                 656 drivers/net/wan/lmc/lmc_media.c       write_av9110 (sc, av->n, av->m, av->v, av->x, av->r);
r                 668 drivers/net/wan/lmc/lmc_media.c   write_av9110 (sc, av->n, av->m, av->v, av->x, av->r);
r                 835 drivers/net/wan/lmc/lmc_media.c static void write_av9110(lmc_softc_t *sc, u32 n, u32 m, u32 v, u32 x, u32 r)
r                 841 drivers/net/wan/lmc/lmc_media.c 	  LMC_PRINTF_ARGS, sc->ictl.clock_rate, n, m, v, x, r);
r                 870 drivers/net/wan/lmc/lmc_media.c     write_av9110_bit (sc, r >> i);
r                 155 drivers/net/wan/lmc/lmc_var.h 	u32	r;
r                  77 drivers/net/wan/z85230.c 	u8 r=inb(Z8530_PORT_OF(p));
r                  80 drivers/net/wan/z85230.c 	return r;
r                 140 drivers/net/wan/z85230.c 	u8 r;
r                 141 drivers/net/wan/z85230.c 	r=z8530_read_port(c->dataio);
r                 142 drivers/net/wan/z85230.c 	return r;
r                 524 drivers/net/wimax/i2400m/rx.c 	int r;
r                 525 drivers/net/wimax/i2400m/rx.c 	r =  ((int) sn - (int) roq->ws) % 2048;
r                 526 drivers/net/wimax/i2400m/rx.c 	if (r < 0)
r                 527 drivers/net/wimax/i2400m/rx.c 		r += 2048;
r                 528 drivers/net/wimax/i2400m/rx.c 	return r;
r                  11 drivers/net/wireless/admtek/adm8211.h #define ADM8211_CSR_READ(r) ioread32(&priv->map->r)
r                  12 drivers/net/wireless/admtek/adm8211.h #define ADM8211_CSR_WRITE(r, val) iowrite32((val), &priv->map->r)
r                 960 drivers/net/wireless/ath/ath10k/qmi.c 	struct resource r;
r                 965 drivers/net/wireless/ath/ath10k/qmi.c 		ret = of_address_to_resource(node, 0, &r);
r                 972 drivers/net/wireless/ath/ath10k/qmi.c 		qmi->msa_pa = r.start;
r                 973 drivers/net/wireless/ath/ath10k/qmi.c 		qmi->msa_mem_size = resource_size(&r);
r                 977 drivers/net/wireless/ath/ath10k/qmi.c 			dev_err(dev, "failed to map memory region: %pa\n", &r.start);
r                2159 drivers/net/wireless/ath/ath10k/wmi.h #define WMI_VHT_MAX_MCS_4_SS_MASK(r, ss)      ((3 & (r)) << (((ss) - 1) << 1))
r                1689 drivers/net/wireless/ath/ath5k/base.c 		struct ieee80211_tx_rate *r =
r                1692 drivers/net/wireless/ath/ath5k/base.c 		r->count = tries[i];
r                  85 drivers/net/wireless/ath/ath5k/debug.c #define REG_STRUCT_INIT(r) { #r, r }
r                 158 drivers/net/wireless/ath/ath5k/debug.c 	struct reg *r = p;
r                 159 drivers/net/wireless/ath/ath5k/debug.c 	seq_printf(seq, "%-25s0x%08x\n", r->name,
r                 160 drivers/net/wireless/ath/ath5k/debug.c 		ath5k_hw_reg_read(ah, r->addr));
r                  64 drivers/net/wireless/ath/ath9k/ar5008_phy.c 	int r;
r                  68 drivers/net/wireless/ath/ath9k/ar5008_phy.c 	for (r = 0; r < array->ia_rows; r++) {
r                  69 drivers/net/wireless/ath/ath9k/ar5008_phy.c 		REG_WRITE(ah, INI_RA(array, r, 0), data[r]);
r                  34 drivers/net/wireless/ath/ath9k/channel.c 	int r;
r                  70 drivers/net/wireless/ath/ath9k/channel.c 	r = ath_reset(sc, hchan);
r                  71 drivers/net/wireless/ath/ath9k/channel.c 	if (r)
r                  72 drivers/net/wireless/ath/ath9k/channel.c 		return r;
r                 416 drivers/net/wireless/ath/ath9k/gpio.c 	int r;
r                 439 drivers/net/wireless/ath/ath9k/gpio.c 		r = ath_mci_setup(sc);
r                 440 drivers/net/wireless/ath/ath9k/gpio.c 		if (r)
r                 441 drivers/net/wireless/ath/ath9k/gpio.c 			return r;
r                1254 drivers/net/wireless/ath/ath9k/hif_usb.c 	int r;
r                1260 drivers/net/wireless/ath/ath9k/hif_usb.c 	for (r = 1; r >= 0; r--) {
r                1261 drivers/net/wireless/ath/ath9k/hif_usb.c 		endpoint = &iface_desc->endpoint[r].desc;
r                1268 drivers/net/wireless/ath/ath9k/hif_usb.c 	if (r == -1) {
r                1289 drivers/net/wireless/ath/ath9k/hif_usb.c 	r = usb_bulk_msg(udev, usb_sndbulkpipe(udev, bulk_out_ep),
r                1292 drivers/net/wireless/ath/ath9k/hif_usb.c 	if (r)
r                1293 drivers/net/wireless/ath/ath9k/hif_usb.c 		return r;
r                 240 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	int r;
r                 242 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	r = ath9k_wmi_cmd(priv->wmi, WMI_REG_READ_CMDID,
r                 246 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	if (unlikely(r)) {
r                 248 drivers/net/wireless/ath/ath9k/htc_drv_init.c 			reg_offset, r);
r                 287 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	int r;
r                 289 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	r = ath9k_wmi_cmd(priv->wmi, WMI_REG_WRITE_CMDID,
r                 294 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	if (unlikely(r)) {
r                 311 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	int r;
r                 313 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	r = ath9k_wmi_cmd(priv->wmi, WMI_REG_WRITE_CMDID,
r                 317 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	if (unlikely(r)) {
r                 319 drivers/net/wireless/ath/ath9k/htc_drv_init.c 			reg_offset, r);
r                 390 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	int r;
r                 406 drivers/net/wireless/ath/ath9k/htc_drv_init.c 		r = ath9k_wmi_cmd(priv->wmi, WMI_REG_RMW_CMDID,
r                 411 drivers/net/wireless/ath/ath9k/htc_drv_init.c 		if (unlikely(r)) {
r                 428 drivers/net/wireless/ath/ath9k/htc_drv_init.c 	int r;
r                 438 drivers/net/wireless/ath/ath9k/htc_drv_init.c 		r = ath9k_wmi_cmd(priv->wmi, WMI_REG_RMW_CMDID,
r                 443 drivers/net/wireless/ath/ath9k/htc_drv_init.c 		if (unlikely(r)) {
r                 114 drivers/net/wireless/ath/ath9k/hw.c 	int r;
r                 117 drivers/net/wireless/ath/ath9k/hw.c 	for (r = 0; r < array->ia_rows; r++) {
r                 118 drivers/net/wireless/ath/ath9k/hw.c 		REG_WRITE(ah, INI_RA(array, r, 0),
r                 119 drivers/net/wireless/ath/ath9k/hw.c 			  INI_RA(array, r, column));
r                 571 drivers/net/wireless/ath/ath9k/hw.c 	int r = 0;
r                 628 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_attach_ops(ah);
r                 629 drivers/net/wireless/ath/ath9k/hw.c 	if (r)
r                 630 drivers/net/wireless/ath/ath9k/hw.c 		return r;
r                 647 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_post_init(ah);
r                 648 drivers/net/wireless/ath/ath9k/hw.c 	if (r)
r                 649 drivers/net/wireless/ath/ath9k/hw.c 		return r;
r                 652 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_fill_cap_info(ah);
r                 653 drivers/net/wireless/ath/ath9k/hw.c 	if (r)
r                 654 drivers/net/wireless/ath/ath9k/hw.c 		return r;
r                1551 drivers/net/wireless/ath/ath9k/hw.c 	int r;
r                1587 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_rf_set_freq(ah, chan);
r                1588 drivers/net/wireless/ath/ath9k/hw.c 	if (r) {
r                1879 drivers/net/wireless/ath/ath9k/hw.c 	int r;
r                1907 drivers/net/wireless/ath/ath9k/hw.c 		r = ath9k_hw_do_fastcc(ah, chan);
r                1908 drivers/net/wireless/ath/ath9k/hw.c 		if (!r)
r                1909 drivers/net/wireless/ath/ath9k/hw.c 			return r;
r                1965 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_process_ini(ah, chan);
r                1966 drivers/net/wireless/ath/ath9k/hw.c 	if (r)
r                1967 drivers/net/wireless/ath/ath9k/hw.c 		return r;
r                1992 drivers/net/wireless/ath/ath9k/hw.c 	r = ath9k_hw_rf_set_freq(ah, chan);
r                1993 drivers/net/wireless/ath/ath9k/hw.c 	if (r)
r                1994 drivers/net/wireless/ath/ath9k/hw.c 		return r;
r                 288 drivers/net/wireless/ath/ath9k/main.c 	int r;
r                 320 drivers/net/wireless/ath/ath9k/main.c 	r = ath9k_hw_reset(ah, hchan, caldata, fastcc);
r                 321 drivers/net/wireless/ath/ath9k/main.c 	if (r) {
r                 323 drivers/net/wireless/ath/ath9k/main.c 			"Unable to reset channel, reset status %d\n", r);
r                 336 drivers/net/wireless/ath/ath9k/main.c 		r = -EIO;
r                 344 drivers/net/wireless/ath/ath9k/main.c 	return r;
r                 603 drivers/net/wireless/ath/ath9k/main.c 	int r;
r                 609 drivers/net/wireless/ath/ath9k/main.c 	r = ath_reset_internal(sc, hchan);
r                 612 drivers/net/wireless/ath/ath9k/main.c 	return r;
r                 652 drivers/net/wireless/ath/ath9k/main.c 	int r;
r                 678 drivers/net/wireless/ath/ath9k/main.c 	r = ath9k_hw_reset(ah, init_channel, ah->caldata, false);
r                 679 drivers/net/wireless/ath/ath9k/main.c 	if (r) {
r                 682 drivers/net/wireless/ath/ath9k/main.c 			r, curchan->center_freq);
r                 113 drivers/net/wireless/ath/ath9k/tx99.c 	int r;
r                 144 drivers/net/wireless/ath/ath9k/tx99.c 	r = ath9k_tx99_send(sc, sc->tx99_skb, &txctl);
r                 145 drivers/net/wireless/ath/ath9k/tx99.c 	if (r) {
r                 147 drivers/net/wireless/ath/ath9k/tx99.c 		return r;
r                 178 drivers/net/wireless/ath/ath9k/tx99.c 	int r;
r                 209 drivers/net/wireless/ath/ath9k/tx99.c 	r = ath9k_tx99_init(sc);
r                 210 drivers/net/wireless/ath/ath9k/tx99.c 	if (r) {
r                 212 drivers/net/wireless/ath/ath9k/tx99.c 		return r;
r                 247 drivers/net/wireless/ath/ath9k/tx99.c 	int r;
r                 250 drivers/net/wireless/ath/ath9k/tx99.c 	r = kstrtou8_from_user(user_buf, count, 0, &tx_power);
r                 251 drivers/net/wireless/ath/ath9k/tx99.c 	if (r)
r                 252 drivers/net/wireless/ath/ath9k/tx99.c 		return r;
r                 536 drivers/net/wireless/ath/carl9170/carl9170.h void carl9170_restart(struct ar9170 *ar, const enum carl9170_restart_reasons r);
r                  87 drivers/net/wireless/ath/carl9170/cmd.h #define carl9170_regwrite(r, v) do {					\
r                  88 drivers/net/wireless/ath/carl9170/cmd.h 	__ar->cmd_buf[2 * __nreg + 1] = cpu_to_le32(r);			\
r                 153 drivers/net/wireless/ath/carl9170/cmd.h #define carl9170_async_regwrite(r, v) do {				\
r                 156 drivers/net/wireless/ath/carl9170/cmd.h 	__cmd->wreg.regs[__nreg].addr = cpu_to_le32(r);			\
r                 507 drivers/net/wireless/ath/carl9170/main.c void carl9170_restart(struct ar9170 *ar, const enum carl9170_restart_reasons r)
r                 517 drivers/net/wireless/ath/carl9170/main.c 		dev_dbg(&ar->udev->dev, "ignoring restart (%d)\n", r);
r                 523 drivers/net/wireless/ath/carl9170/main.c 	dev_err(&ar->udev->dev, "restart device (%d)\n", r);
r                 525 drivers/net/wireless/ath/carl9170/main.c 	if (!WARN_ON(r == CARL9170_RR_NO_REASON) ||
r                 526 drivers/net/wireless/ath/carl9170/main.c 	    !WARN_ON(r >= __CARL9170_RR_LAST))
r                 527 drivers/net/wireless/ath/carl9170/main.c 		ar->last_reason = r;
r                 663 drivers/net/wireless/ath/carl9170/tx.c 	unsigned int r, t, q;
r                 682 drivers/net/wireless/ath/carl9170/tx.c 	r = (info & CARL9170_TX_STATUS_RIX) >> CARL9170_TX_STATUS_RIX_S;
r                 685 drivers/net/wireless/ath/carl9170/tx.c 	carl9170_tx_fill_rateinfo(ar, r, t, txinfo);
r                 764 drivers/net/wireless/ath/regd.c 	int r;
r                 766 drivers/net/wireless/ath/regd.c 	r = __ath_regd_init(reg);
r                 767 drivers/net/wireless/ath/regd.c 	if (r)
r                 768 drivers/net/wireless/ath/regd.c 		return r;
r                 285 drivers/net/wireless/ath/wil6210/debugfs.c 	struct wil6210_mbox_ring r;
r                 296 drivers/net/wireless/ath/wil6210/debugfs.c 	wil_memcpy_fromio_32(&r, off, sizeof(r));
r                 297 drivers/net/wireless/ath/wil6210/debugfs.c 	wil_mbox_ring_le2cpus(&r);
r                 302 drivers/net/wireless/ath/wil6210/debugfs.c 	rsize = r.size / sizeof(struct wil6210_mbox_ring_desc);
r                 305 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "  base = 0x%08x\n", r.base);
r                 306 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "  size = 0x%04x bytes -> %d entries\n", r.size, rsize);
r                 307 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "  tail = 0x%08x\n", r.tail);
r                 308 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "  head = 0x%08x\n", r.head);
r                 309 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "  entry size = %d\n", r.entry_size);
r                 311 drivers/net/wireless/ath/wil6210/debugfs.c 	if (r.size % sizeof(struct wil6210_mbox_ring_desc)) {
r                 317 drivers/net/wireless/ath/wil6210/debugfs.c 	if (!wmi_addr(wil, r.base) ||
r                 318 drivers/net/wireless/ath/wil6210/debugfs.c 	    !wmi_addr(wil, r.tail) ||
r                 319 drivers/net/wireless/ath/wil6210/debugfs.c 	    !wmi_addr(wil, r.head)) {
r                 328 drivers/net/wireless/ath/wil6210/debugfs.c 		void __iomem *x = wil->csr + HOSTADDR(r.base) + delta;
r                 334 drivers/net/wireless/ath/wil6210/debugfs.c 			   (r.tail - r.base == delta) ? "t" : " ",
r                 335 drivers/net/wireless/ath/wil6210/debugfs.c 			   (r.head - r.base == delta) ? "h" : " ",
r                1575 drivers/net/wireless/ath/wil6210/debugfs.c static void wil_print_rxtid(struct seq_file *s, struct wil_tid_ampdu_rx *r)
r                1578 drivers/net/wireless/ath/wil6210/debugfs.c 	u16 index = ((r->head_seq_num - r->ssn) & 0xfff) % r->buf_size;
r                1579 drivers/net/wireless/ath/wil6210/debugfs.c 	unsigned long long drop_dup = r->drop_dup, drop_old = r->drop_old;
r                1580 drivers/net/wireless/ath/wil6210/debugfs.c 	unsigned long long drop_dup_mcast = r->drop_dup_mcast;
r                1582 drivers/net/wireless/ath/wil6210/debugfs.c 	seq_printf(s, "([%2d]) 0x%03x [", r->buf_size, r->head_seq_num);
r                1583 drivers/net/wireless/ath/wil6210/debugfs.c 	for (i = 0; i < r->buf_size; i++) {
r                1585 drivers/net/wireless/ath/wil6210/debugfs.c 			seq_printf(s, "%c", r->reorder_buf[i] ? 'O' : '|');
r                1587 drivers/net/wireless/ath/wil6210/debugfs.c 			seq_printf(s, "%c", r->reorder_buf[i] ? '*' : '_');
r                1591 drivers/net/wireless/ath/wil6210/debugfs.c 		   r->total, drop_dup + drop_old + drop_dup_mcast, drop_dup,
r                1592 drivers/net/wireless/ath/wil6210/debugfs.c 		   drop_old, drop_dup_mcast, r->ssn_last_drop);
r                1667 drivers/net/wireless/ath/wil6210/debugfs.c 				struct wil_tid_ampdu_rx *r = p->tid_rx[tid];
r                1671 drivers/net/wireless/ath/wil6210/debugfs.c 				if (r) {
r                1673 drivers/net/wireless/ath/wil6210/debugfs.c 					wil_print_rxtid(s, r);
r                 289 drivers/net/wireless/ath/wil6210/main.c 		struct wil_tid_ampdu_rx *r;
r                 293 drivers/net/wireless/ath/wil6210/main.c 		r = sta->tid_rx[i];
r                 295 drivers/net/wireless/ath/wil6210/main.c 		wil_tid_ampdu_rx_free(wil, r);
r                1291 drivers/net/wireless/ath/wil6210/main.c void wil_mbox_ring_le2cpus(struct wil6210_mbox_ring *r)
r                1293 drivers/net/wireless/ath/wil6210/main.c 	le32_to_cpus(&r->base);
r                1294 drivers/net/wireless/ath/wil6210/main.c 	le16_to_cpus(&r->entry_size);
r                1295 drivers/net/wireless/ath/wil6210/main.c 	le16_to_cpus(&r->size);
r                1296 drivers/net/wireless/ath/wil6210/main.c 	le32_to_cpus(&r->tail);
r                1297 drivers/net/wireless/ath/wil6210/main.c 	le32_to_cpus(&r->head);
r                  39 drivers/net/wireless/ath/wil6210/rx_reorder.c static inline int reorder_index(struct wil_tid_ampdu_rx *r, u16 seq)
r                  41 drivers/net/wireless/ath/wil6210/rx_reorder.c 	return seq_sub(seq, r->ssn) % r->buf_size;
r                  45 drivers/net/wireless/ath/wil6210/rx_reorder.c 				      struct wil_tid_ampdu_rx *r,
r                  48 drivers/net/wireless/ath/wil6210/rx_reorder.c 	struct sk_buff *skb = r->reorder_buf[index];
r                  54 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->stored_mpdu_num--;
r                  55 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->reorder_buf[index] = NULL;
r                  59 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->head_seq_num = seq_inc(r->head_seq_num);
r                  63 drivers/net/wireless/ath/wil6210/rx_reorder.c 				       struct wil_tid_ampdu_rx *r,
r                  74 drivers/net/wireless/ath/wil6210/rx_reorder.c 	while (seq_less(r->head_seq_num, hseq) && r->stored_mpdu_num) {
r                  75 drivers/net/wireless/ath/wil6210/rx_reorder.c 		index = reorder_index(r, r->head_seq_num);
r                  76 drivers/net/wireless/ath/wil6210/rx_reorder.c 		wil_release_reorder_frame(ndev, r, index);
r                  78 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->head_seq_num = hseq;
r                  82 drivers/net/wireless/ath/wil6210/rx_reorder.c 				struct wil_tid_ampdu_rx *r)
r                  84 drivers/net/wireless/ath/wil6210/rx_reorder.c 	int index = reorder_index(r, r->head_seq_num);
r                  86 drivers/net/wireless/ath/wil6210/rx_reorder.c 	while (r->reorder_buf[index]) {
r                  87 drivers/net/wireless/ath/wil6210/rx_reorder.c 		wil_release_reorder_frame(ndev, r, index);
r                  88 drivers/net/wireless/ath/wil6210/rx_reorder.c 		index = reorder_index(r, r->head_seq_num);
r                 101 drivers/net/wireless/ath/wil6210/rx_reorder.c 	struct wil_tid_ampdu_rx *r;
r                 122 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r = sta->tid_rx[tid];
r                 123 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!r) {
r                 129 drivers/net/wireless/ath/wil6210/rx_reorder.c 		if (retry && seq == r->mcast_last_seq) {
r                 130 drivers/net/wireless/ath/wil6210/rx_reorder.c 			r->drop_dup_mcast++;
r                 136 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->mcast_last_seq = seq;
r                 141 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->total++;
r                 142 drivers/net/wireless/ath/wil6210/rx_reorder.c 	hseq = r->head_seq_num;
r                 152 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (r->first_time) {
r                 153 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->first_time = false;
r                 154 drivers/net/wireless/ath/wil6210/rx_reorder.c 		if (seq != r->head_seq_num) {
r                 155 drivers/net/wireless/ath/wil6210/rx_reorder.c 			if (seq_less(seq, r->head_seq_num)) {
r                 158 drivers/net/wireless/ath/wil6210/rx_reorder.c 					seq, r->head_seq_num);
r                 159 drivers/net/wireless/ath/wil6210/rx_reorder.c 				r->first_time = true;
r                 165 drivers/net/wireless/ath/wil6210/rx_reorder.c 				seq, r->head_seq_num);
r                 166 drivers/net/wireless/ath/wil6210/rx_reorder.c 			r->head_seq_num = seq;
r                 167 drivers/net/wireless/ath/wil6210/rx_reorder.c 			r->ssn = seq;
r                 172 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (seq_less(seq, r->head_seq_num)) {
r                 173 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->ssn_last_drop = seq;
r                 174 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->drop_old++;
r                 176 drivers/net/wireless/ath/wil6210/rx_reorder.c 			     seq, r->head_seq_num);
r                 185 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!seq_less(seq, r->head_seq_num + r->buf_size)) {
r                 186 drivers/net/wireless/ath/wil6210/rx_reorder.c 		hseq = seq_inc(seq_sub(seq, r->buf_size));
r                 188 drivers/net/wireless/ath/wil6210/rx_reorder.c 		wil_release_reorder_frames(ndev, r, hseq);
r                 193 drivers/net/wireless/ath/wil6210/rx_reorder.c 	index = reorder_index(r, seq);
r                 196 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (r->reorder_buf[index]) {
r                 197 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->drop_dup++;
r                 209 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (seq == r->head_seq_num && r->stored_mpdu_num == 0) {
r                 210 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r->head_seq_num = seq_inc(r->head_seq_num);
r                 216 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->reorder_buf[index] = skb;
r                 217 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->stored_mpdu_num++;
r                 218 drivers/net/wireless/ath/wil6210/rx_reorder.c 	wil_reorder_release(ndev, r);
r                 230 drivers/net/wireless/ath/wil6210/rx_reorder.c 	struct wil_tid_ampdu_rx *r;
r                 234 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r = sta->tid_rx[tid];
r                 235 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!r) {
r                 239 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (seq_less(seq, r->head_seq_num)) {
r                 241 drivers/net/wireless/ath/wil6210/rx_reorder.c 			seq, r->head_seq_num);
r                 245 drivers/net/wireless/ath/wil6210/rx_reorder.c 		     cid, vif->mid, tid, seq, r->head_seq_num);
r                 246 drivers/net/wireless/ath/wil6210/rx_reorder.c 	wil_release_reorder_frames(ndev, r, seq);
r                 255 drivers/net/wireless/ath/wil6210/rx_reorder.c 	struct wil_tid_ampdu_rx *r = kzalloc(sizeof(*r), GFP_KERNEL);
r                 257 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!r)
r                 260 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->reorder_buf =
r                 262 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!r->reorder_buf) {
r                 263 drivers/net/wireless/ath/wil6210/rx_reorder.c 		kfree(r);
r                 267 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->ssn = ssn;
r                 268 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->head_seq_num = ssn;
r                 269 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->buf_size = size;
r                 270 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->stored_mpdu_num = 0;
r                 271 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->first_time = true;
r                 272 drivers/net/wireless/ath/wil6210/rx_reorder.c 	r->mcast_last_seq = U16_MAX;
r                 273 drivers/net/wireless/ath/wil6210/rx_reorder.c 	return r;
r                 277 drivers/net/wireless/ath/wil6210/rx_reorder.c 			   struct wil_tid_ampdu_rx *r)
r                 281 drivers/net/wireless/ath/wil6210/rx_reorder.c 	if (!r)
r                 289 drivers/net/wireless/ath/wil6210/rx_reorder.c 	for (i = 0; i < r->buf_size; i++)
r                 290 drivers/net/wireless/ath/wil6210/rx_reorder.c 		kfree_skb(r->reorder_buf[i]);
r                 292 drivers/net/wireless/ath/wil6210/rx_reorder.c 	kfree(r->reorder_buf);
r                 293 drivers/net/wireless/ath/wil6210/rx_reorder.c 	kfree(r);
r                 331 drivers/net/wireless/ath/wil6210/rx_reorder.c 	struct wil_tid_ampdu_rx *r;
r                 374 drivers/net/wireless/ath/wil6210/rx_reorder.c 		r = wil_tid_ampdu_rx_alloc(wil, agg_wsize, ssn);
r                 377 drivers/net/wireless/ath/wil6210/rx_reorder.c 		sta->tid_rx[tid] = r;
r                 697 drivers/net/wireless/ath/wil6210/txrx.h 			   struct wil_tid_ampdu_rx *r);
r                1238 drivers/net/wireless/ath/wil6210/wil6210.h void wil_mbox_ring_le2cpus(struct wil6210_mbox_ring *r);
r                 660 drivers/net/wireless/ath/wil6210/wmi.c 	struct wil6210_mbox_ring *r = &wil->mbox_ctl.tx;
r                 664 drivers/net/wireless/ath/wil6210/wmi.c 	void __iomem *head = wmi_addr(wil, r->head);
r                 668 drivers/net/wireless/ath/wil6210/wmi.c 	if (len > r->entry_size - sizeof(cmd)) {
r                 670 drivers/net/wireless/ath/wil6210/wmi.c 			(int)(sizeof(cmd) + len), r->entry_size);
r                 692 drivers/net/wireless/ath/wil6210/wmi.c 		wil_err(wil, "WMI head is garbage: 0x%08x\n", r->head);
r                 711 drivers/net/wireless/ath/wil6210/wmi.c 	next_head = r->base + ((r->head - r->base + sizeof(d_head)) % r->size);
r                 712 drivers/net/wireless/ath/wil6210/wmi.c 	wil_dbg_wmi(wil, "Head 0x%08x -> 0x%08x\n", r->head, next_head);
r                 720 drivers/net/wireless/ath/wil6210/wmi.c 		r->tail = wil_r(wil, RGF_MBOX +
r                 722 drivers/net/wireless/ath/wil6210/wmi.c 		if (next_head != r->tail)
r                 726 drivers/net/wireless/ath/wil6210/wmi.c 	if (next_head == r->tail) {
r                 749 drivers/net/wireless/ath/wil6210/wmi.c 	wil_w(wil, r->head + offsetof(struct wil6210_mbox_ring_desc, sync), 1);
r                 752 drivers/net/wireless/ath/wil6210/wmi.c 	      r->head = next_head);
r                1332 drivers/net/wireless/ath/wil6210/wmi.c 	struct wil_tid_ampdu_rx *r;
r                1378 drivers/net/wireless/ath/wil6210/wmi.c 	r = sta->tid_rx[tid];
r                1380 drivers/net/wireless/ath/wil6210/wmi.c 	wil_tid_ampdu_rx_free(wil, r);
r                1895 drivers/net/wireless/ath/wil6210/wmi.c 	struct wil6210_mbox_ring *r = &wil->mbox_ctl.rx;
r                1918 drivers/net/wireless/ath/wil6210/wmi.c 		r->head = wil_r(wil, RGF_MBOX +
r                1920 drivers/net/wireless/ath/wil6210/wmi.c 		if (r->tail == r->head)
r                1924 drivers/net/wireless/ath/wil6210/wmi.c 			    r->head, r->tail);
r                1926 drivers/net/wireless/ath/wil6210/wmi.c 		wil_memcpy_fromio_32(&d_tail, wil->csr + HOSTADDR(r->tail),
r                1957 drivers/net/wireless/ath/wil6210/wmi.c 		wil_w(wil, r->tail +
r                2000 drivers/net/wireless/ath/wil6210/wmi.c 		r->tail = r->base + ((r->tail - r->base +
r                2001 drivers/net/wireless/ath/wil6210/wmi.c 			  sizeof(struct wil6210_mbox_ring_desc)) % r->size);
r                2003 drivers/net/wireless/ath/wil6210/wmi.c 		      offsetof(struct wil6210_mbox_ctl, rx.tail), r->tail);
r                3410 drivers/net/wireless/ath/wil6210/wmi.c 	struct wil6210_mbox_ring *r = &wil->mbox_ctl.rx;
r                3428 drivers/net/wireless/ath/wil6210/wmi.c 	r->head = wil_r(wil, RGF_MBOX +
r                3430 drivers/net/wireless/ath/wil6210/wmi.c 	if (r->tail != r->head)
r                1407 drivers/net/wireless/atmel/atmel.c 	char *s, *r, *c;
r                1440 drivers/net/wireless/atmel/atmel.c 		r = "<unknown>";
r                1443 drivers/net/wireless/atmel/atmel.c 				r = channel_table[i].name;
r                1446 drivers/net/wireless/atmel/atmel.c 		seq_printf(m, "Regulatory domain:\t%s\n", r);
r                  39 drivers/net/wireless/broadcom/b43/phy_ht.c 	u16 r;
r                  57 drivers/net/wireless/broadcom/b43/phy_ht.c 		r = routing[core];
r                  58 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x4a, e->radio_rxtx4a);
r                  59 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x58, e->radio_rxtx58);
r                  60 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x5a, e->radio_rxtx5a);
r                  61 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x6a, e->radio_rxtx6a);
r                  62 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x6d, e->radio_rxtx6d);
r                  63 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x6e, e->radio_rxtx6e);
r                  64 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x92, e->radio_rxtx92);
r                  65 drivers/net/wireless/broadcom/b43/phy_ht.c 		b43_radio_write(dev, r | 0x98, e->radio_rxtx98);
r                2076 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 r; /* routing */
r                2140 drivers/net/wireless/broadcom/b43/phy_n.c 		r = core ? B2056_RX1 : B2056_RX0;
r                2154 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_maskset(dev, r | B2056_RX_RSSI_MISC,
r                2188 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_maskset(dev, r | B2056_RX_RSSI_MISC,
r                3852 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 r; /* routing */
r                3858 drivers/net/wireless/broadcom/b43/phy_n.c 			r = core ? 0x190 : 0x170;
r                3860 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + 0x5, 0x5);
r                3861 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + 0x9, 0xE);
r                3863 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0xA, 0);
r                3865 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0xB, 1);
r                3867 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0xB, 0x31);
r                3869 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + 0x5, 0x9);
r                3870 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + 0x9, 0xC);
r                3871 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + 0xB, 0x0);
r                3873 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0xA, 1);
r                3875 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0xA, 0x31);
r                3877 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + 0x6, 0);
r                3878 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + 0x7, 0);
r                3879 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + 0x8, 3);
r                3880 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + 0xC, 0);
r                3891 drivers/net/wireless/broadcom/b43/phy_n.c 			r = core ? B2056_TX1 : B2056_TX0;
r                3893 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_IQCAL_VCM_HG, 0);
r                3894 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_IQCAL_IDAC, 0);
r                3895 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_TSSI_VCM, 3);
r                3896 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_TX_AMP_DET, 0);
r                3897 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_TSSI_MISC1, 8);
r                3898 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_TSSI_MISC2, 0);
r                3899 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r | B2056_TX_TSSI_MISC3, 0);
r                3901 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TX_SSI_MASTER,
r                3904 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r | B2056_TX_TSSIA,
r                3907 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r | B2056_TX_TSSIG,
r                3910 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r | B2056_TX_TSSIG,
r                3912 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TX_SSI_MUX,
r                3915 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TX_SSI_MASTER,
r                3917 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TSSIA, 0x31);
r                3918 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TSSIG, 0x0);
r                3919 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r | B2056_TX_TX_SSI_MUX,
r                4058 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 r; /* routing */
r                4142 drivers/net/wireless/broadcom/b43/phy_n.c 				r = c ? 0x190 : 0x170;
r                4144 drivers/net/wireless/broadcom/b43/phy_n.c 					b43_radio_write(dev, r + 0x9, (b43_current_band(dev->wl) == NL80211_BAND_2GHZ) ? 0xE : 0xC);
r                4778 drivers/net/wireless/broadcom/b43/phy_n.c 	u16 r, tmp;
r                4781 drivers/net/wireless/broadcom/b43/phy_n.c 		r = core ? 0x20 : 0;
r                4784 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 0] = b43_radio_read(dev, r + R2057_TX0_TX_SSI_MASTER);
r                4785 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 1] = b43_radio_read(dev, r + R2057_TX0_IQCAL_VCM_HG);
r                4786 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 2] = b43_radio_read(dev, r + R2057_TX0_IQCAL_IDAC);
r                4787 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 3] = b43_radio_read(dev, r + R2057_TX0_TSSI_VCM);
r                4789 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 5] = b43_radio_read(dev, r + R2057_TX0_TX_SSI_MUX);
r                4791 drivers/net/wireless/broadcom/b43/phy_n.c 			save[off + 6] = b43_radio_read(dev, r + R2057_TX0_TSSIA);
r                4792 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 7] = b43_radio_read(dev, r + R2057_TX0_TSSIG);
r                4793 drivers/net/wireless/broadcom/b43/phy_n.c 		save[off + 8] = b43_radio_read(dev, r + R2057_TX0_TSSI_MISC1);
r                4796 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TX_SSI_MASTER, 0xA);
r                4797 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_IQCAL_VCM_HG, 0x43);
r                4798 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_IQCAL_IDAC, 0x55);
r                4799 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TSSI_VCM, 0);
r                4800 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TSSIG, 0);
r                4802 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + R2057_TX0_TX_SSI_MUX, 0x4);
r                4804 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + R2057_TX0_TSSIA, tmp);
r                4806 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TSSI_MISC1, 0x00);
r                4808 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TX_SSI_MASTER, 0x6);
r                4809 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_IQCAL_VCM_HG, 0x43);
r                4810 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_IQCAL_IDAC, 0x55);
r                4811 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TSSI_VCM, 0);
r                4814 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + R2057_TX0_TSSIA, 0);
r                4816 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + R2057_TX0_TX_SSI_MUX, 0x6);
r                4818 drivers/net/wireless/broadcom/b43/phy_n.c 				b43_radio_write(dev, r + R2057_TX0_TSSIG, tmp);
r                4820 drivers/net/wireless/broadcom/b43/phy_n.c 			b43_radio_write(dev, r + R2057_TX0_TSSI_MISC1, 0);
r                 269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c static int brcmf_pno_get_bucket_channels(struct cfg80211_sched_scan_request *r,
r                 276 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 	for (i = 0; i < r->n_channels; i++) {
r                 281 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		chan = r->channels[i]->hw_value;
r                 362 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 	struct cfg80211_sched_scan_request *r;
r                 368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		r = pi->reqs[i];
r                 370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 		for (j = 0; j < r->n_match_sets; j++) {
r                 371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 			ms = &r->match_sets[j];
r                 373 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c 				active = brcmf_is_ssid_active(&ms->ssid, r);
r                 290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h #define brcmf_sdiod_func0_rb(sdiodev, addr, r) \
r                 291 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h 	sdio_f0_readb((sdiodev)->func1, (addr), (r))
r                 297 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h #define brcmf_sdiod_readb(sdiodev, addr, r) \
r                 298 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h 	sdio_readb((sdiodev)->func1, (addr), (r))
r                5404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	u8 r;
r                5408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		r = wlc->bsscfg->current_bss->rateset.rates[0];
r                5410 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		r = wlc->default_bss->rateset.rates[0];
r                 307 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 	u8 r;
r                 316 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		r = (int)rs->rates[i] & BRCMS_RATE_MASK;
r                 317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		if ((r > BRCM_MAXRATE) || (rate_info[r] == 0))
r                 319 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		rateset[r] = rs->rates[i];	/* preserve basic bit! */
r                 325 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		r = hw_rs->rates[i] & BRCMS_RATE_MASK;
r                 326 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		if (rateset[r])
r                 327 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 			rs->rates[count++] = rateset[r];
r                 412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 	uint r;
r                 417 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		r = src->rates[i];
r                 418 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		if (basic_only && !(r & BRCMS_RATE_FLAG))
r                 421 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		    is_ofdm_rate((r & BRCMS_RATE_MASK)))
r                 424 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		    is_cck_rate((r & BRCMS_RATE_MASK)))
r                 426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/rate.c 		dst->rates[count++] = r & xmask;
r                 923 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	u32 r;
r                 934 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		read_register(priv->net_dev, IPW_REG_RESET_REG, &r);
r                 935 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (r & IPW_AUX_HOST_RESET_REG_PRINCETON_RESET)
r                 952 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		read_register(priv->net_dev, IPW_REG_GP_CNTRL, &r);
r                 953 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (r & IPW_AUX_HOST_GP_CNTRL_BIT_CLOCK_READY)
r                 961 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	read_register(priv->net_dev, IPW_REG_GP_CNTRL, &r);
r                 963 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		       r | IPW_AUX_HOST_GP_CNTRL_BIT_HOST_ALLOWS_STANDBY);
r                2667 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	u32 r, w, i, s;
r                2673 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	read_register(priv->net_dev, IPW_MEM_HOST_SHARED_RX_READ_INDEX, &r);
r                2676 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (r >= rxq->entries) {
r                2683 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	while (i != r) {
r                2814 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	u32 r, w, frag_num = 0;
r                2851 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      &r);
r                2880 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (!((r <= w && (e < r || e >= w)) || (e < r && e >= w))) {
r                4388 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				u32 r, u32 w)
r                4397 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	write_register(priv->net_dev, r, q->oldest);
r                2651 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	u16 r = 0;
r                2665 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		r = (r << 1) | ((data & EEPROM_BIT_DO) ? 1 : 0);
r                2672 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return r;
r                8255 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	u32 r, w, i;
r                8259 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	r = ipw_read32(priv, IPW_RX_READ_INDEX);
r                8266 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	while (i != r) {
r                1185 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	u32 r, i;
r                1194 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	r = le16_to_cpu(rxq->rb_stts->closed_rb_num) & 0x0FFF;
r                1198 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	total_empty = r - rxq->write_actual;
r                1205 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	if (i == r)
r                1206 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		D_RX("r = %d, i = %d\n", r, i);
r                1208 drivers/net/wireless/intel/iwlegacy/3945-mac.c 	while (i != r) {
r                1234 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			D_RX("r = %d, i = %d, %s, 0x%02x\n", r, i,
r                1240 drivers/net/wireless/intel/iwlegacy/3945-mac.c 			D_RX("r %d i %d No handler needed for %s, 0x%02x\n", r,
r                  44 drivers/net/wireless/intel/iwlegacy/3945.c #define IL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np)    \
r                  45 drivers/net/wireless/intel/iwlegacy/3945.c 	[RATE_##r##M_IDX] = { RATE_##r##M_PLCP,   \
r                  46 drivers/net/wireless/intel/iwlegacy/3945.c 				    RATE_##r##M_IEEE,   \
r                  53 drivers/net/wireless/intel/iwlegacy/3945.c 				    RATE_##r##M_IDX_TBL, \
r                2882 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	struct ieee80211_tx_rate *r = &info->status.rates[0];
r                2887 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r->flags |= IEEE80211_TX_RC_MCS;
r                2889 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r->flags |= IEEE80211_TX_RC_GREEN_FIELD;
r                2891 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
r                2893 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r->flags |= IEEE80211_TX_RC_DUP_DATA;
r                2895 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r->flags |= IEEE80211_TX_RC_SHORT_GI;
r                2896 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	r->idx = il4965_hwrate_to_mac80211_idx(rate_n_flags, info->band);
r                3025 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	int i, r;
r                3038 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r = RATE_6M_IDX;
r                3040 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		r = RATE_1M_IDX;
r                3042 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (r >= IL_FIRST_CCK_RATE && r <= IL_LAST_CCK_RATE)
r                3048 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	rate_n_flags = cpu_to_le32(il_rates[r].plcp | rate_flags);
r                4215 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	u32 r, i;
r                4224 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	r = le16_to_cpu(rxq->rb_stts->closed_rb_num) & 0x0FFF;
r                4228 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	if (i == r)
r                4229 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		D_RX("r = %d, i = %d\n", r, i);
r                4232 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	total_empty = r - rxq->write_actual;
r                4239 drivers/net/wireless/intel/iwlegacy/4965-mac.c 	while (i != r) {
r                4265 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			D_RX("r = %d, i = %d, %s, 0x%02x\n", r, i,
r                4271 drivers/net/wireless/intel/iwlegacy/4965-mac.c 			D_RX("r %d i %d No handler needed for %s, 0x%02x\n", r,
r                  61 drivers/net/wireless/intel/iwlegacy/4965-rs.c #define IL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np)    \
r                  62 drivers/net/wireless/intel/iwlegacy/4965-rs.c 	[RATE_##r##M_IDX] = { RATE_##r##M_PLCP,      \
r                  65 drivers/net/wireless/intel/iwlegacy/4965-rs.c 				    RATE_##r##M_IEEE,      \
r                  44 drivers/net/wireless/intel/iwlegacy/common.c il_set_bit(struct il_priv *p, u32 r, u32 m)
r                  49 drivers/net/wireless/intel/iwlegacy/common.c 	_il_set_bit(p, r, m);
r                  55 drivers/net/wireless/intel/iwlegacy/common.c il_clear_bit(struct il_priv *p, u32 r, u32 m)
r                  60 drivers/net/wireless/intel/iwlegacy/common.c 	_il_clear_bit(p, r, m);
r                 732 drivers/net/wireless/intel/iwlegacy/common.c 		u32 r;
r                 746 drivers/net/wireless/intel/iwlegacy/common.c 		r = _il_rd(il, CSR_EEPROM_REG);
r                 747 drivers/net/wireless/intel/iwlegacy/common.c 		e[addr / 2] = cpu_to_le16(r >> 16);
r                  87 drivers/net/wireless/intel/iwlegacy/common.h #define rxb_addr(r) page_address(r->page)
r                1959 drivers/net/wireless/intel/iwlegacy/common.h void il_set_bit(struct il_priv *p, u32 r, u32 m);
r                1960 drivers/net/wireless/intel/iwlegacy/common.h void il_clear_bit(struct il_priv *p, u32 r, u32 m);
r                  61 drivers/net/wireless/intel/iwlwifi/dvm/rs.c #define IWL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np)    \
r                  62 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 	[IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP,      \
r                  66 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				    IWL_RATE_##r##M_IEEE,      \
r                 557 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 	int i, r;
r                 568 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 		r = IWL_RATE_6M_INDEX;
r                 570 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 		r = IWL_RATE_6M_INDEX;
r                 572 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 		r = IWL_RATE_1M_INDEX;
r                 574 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 	if (r >= IWL_FIRST_CCK_RATE && r <= IWL_LAST_CCK_RATE)
r                 579 drivers/net/wireless/intel/iwlwifi/dvm/sta.c 	rate_n_flags = iwl_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags);
r                 812 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 	struct ieee80211_tx_rate *r = &info->status.rates[0];
r                 817 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 		r->flags |= IEEE80211_TX_RC_MCS;
r                 819 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 		r->flags |= IEEE80211_TX_RC_GREEN_FIELD;
r                 821 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 		r->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
r                 823 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 		r->flags |= IEEE80211_TX_RC_DUP_DATA;
r                 825 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 		r->flags |= IEEE80211_TX_RC_SHORT_GI;
r                 826 drivers/net/wireless/intel/iwlwifi/dvm/tx.c 	r->idx = iwlagn_hwrate_to_mac80211_idx(rate_n_flags, info->band);
r                 284 drivers/net/wireless/intel/iwlwifi/fw/api/rs.h #define IWL_RATE_BIT_MSK(r) BIT(IWL_RATE_##r##M_INDEX)
r                 221 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	u32 r;
r                 234 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	r = iwl_read32(trans, CSR_EEPROM_REG);
r                 252 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 	*eeprom_data = cpu_to_le16(r >> 16);
r                 417 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 			u32 r;
r                 431 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 			r = iwl_read32(trans, CSR_EEPROM_REG);
r                 432 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c 			e[addr / 2] = cpu_to_le16(r >> 16);
r                 280 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void *rxb_addr(struct iwl_rx_cmd_buffer *r)
r                 282 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	return (void *)((unsigned long)page_address(r->_page) + r->_offset);
r                 285 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline int rxb_offset(struct iwl_rx_cmd_buffer *r)
r                 287 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	return r->_offset;
r                 290 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline struct page *rxb_steal_page(struct iwl_rx_cmd_buffer *r)
r                 292 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	r->_page_stolen = true;
r                 293 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	get_page(r->_page);
r                 294 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	return r->_page;
r                 297 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_free_rxb(struct iwl_rx_cmd_buffer *r)
r                 299 drivers/net/wireless/intel/iwlwifi/iwl-trans.h 	__free_pages(r->_page, r->_rx_page_order);
r                 310 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	const struct ieee80211_regdomain *r =
r                 313 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	if (!r)
r                 326 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c 	regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, r->alpha2, used_src,
r                1491 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h 			       struct ieee80211_tx_rate *r);
r                  58 drivers/net/wireless/intel/iwlwifi/mvm/rs.c #define IWL_DECLARE_RATE_INFO(r, s, rp, rn)			      \
r                  59 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 	[IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP,	      \
r                3884 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		u32 r = le32_to_cpu(lq_sta->lq.rs_table[i]);
r                3887 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 				  " rate[%d] 0x%X ", i, r);
r                3888 drivers/net/wireless/intel/iwlwifi/mvm/rs.c 		desc += rs_pretty_print_rate(buff + desc, bufsz - desc, r);
r                1345 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 			       struct ieee80211_tx_rate *r)
r                1348 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_GREEN_FIELD;
r                1353 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH;
r                1356 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_80_MHZ_WIDTH;
r                1359 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_160_MHZ_WIDTH;
r                1363 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_SHORT_GI;
r                1365 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_MCS;
r                1366 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK;
r                1369 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 			r, rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK,
r                1372 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->flags |= IEEE80211_TX_RC_VHT_MCS;
r                1374 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 		r->idx = iwl_mvm_legacy_rate_to_mac80211_idx(rate_n_flags,
r                1385 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 	struct ieee80211_tx_rate *r = &info->status.rates[0];
r                1389 drivers/net/wireless/intel/iwlwifi/mvm/tx.c 	iwl_mvm_hwrate_to_tx_rate(rate_n_flags, info->band, r);
r                 191 drivers/net/wireless/intel/iwlwifi/mvm/utils.c #define IWL_DECLARE_RATE_INFO(r) \
r                 192 drivers/net/wireless/intel/iwlwifi/mvm/utils.c 	[IWL_RATE_##r##M_INDEX] = IWL_RATE_##r##M_PLCP
r                1002 drivers/net/wireless/intel/iwlwifi/pcie/internal.h 	int r = iwl_pcie_get_cmd_index(q, q->read_ptr);
r                1005 drivers/net/wireless/intel/iwlwifi/pcie/internal.h 	return w >= r ?
r                1006 drivers/net/wireless/intel/iwlwifi/pcie/internal.h 		(index >= r && index < w) :
r                1007 drivers/net/wireless/intel/iwlwifi/pcie/internal.h 		!(index < r && index >= w);
r                1434 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 	u32 r, i, count = 0;
r                1446 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 	r = le16_to_cpu(iwl_get_closed_rb_stts(trans, rxq)) & 0x0FFF;
r                1450 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 	r &= (rxq->queue_size - 1);
r                1453 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 	if (i == r)
r                1454 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		IWL_DEBUG_RX(trans, "Q %d: HW = SW = %d\n", rxq->id, r);
r                1456 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 	while (i != r) {
r                1473 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		IWL_DEBUG_RX(trans, "Q %d: HW = %d, SW = %d\n", rxq->id, r, i);
r                1520 drivers/net/wireless/intel/iwlwifi/pcie/rx.c 		*rxq->cr_tail = cpu_to_le16(r);
r                2620 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 			u32 r =	__le16_to_cpu(iwl_get_closed_rb_stts(trans,
r                2624 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 					 r & 0x0FFF);
r                2970 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 	u32 i, r, j, rb_len = 0;
r                2974 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 	r = le16_to_cpu(iwl_get_closed_rb_stts(trans, rxq)) & 0x0FFF;
r                2977 drivers/net/wireless/intel/iwlwifi/pcie/trans.c 	     i != r && j < allocated_rb_nums;
r                1290 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	u16 r;
r                1295 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	r = iwl_pcie_get_cmd_index(txq, txq->read_ptr);
r                1307 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	for (idx = iwl_queue_inc_wrap(trans, idx); r != idx;
r                1308 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 	     r = iwl_queue_inc_wrap(trans, r)) {
r                1313 drivers/net/wireless/intel/iwlwifi/pcie/tx.c 				idx, txq->write_ptr, r);
r                  86 drivers/net/wireless/intersil/p54/p54pci.h #define P54P_READ(r) (__force __le32)__raw_readl(&priv->map->r)
r                  87 drivers/net/wireless/intersil/p54/p54pci.h #define P54P_WRITE(r, val) __raw_writel((__force u32)(__le32)(val), &priv->map->r)
r                 168 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 176 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	mgt_get_request(priv, DOT11_OID_NOISEFLOOR, 0, NULL, &r);
r                 177 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	priv->local_iwstatistics.qual.noise = r.u;
r                 182 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	mgt_get_request(priv, DOT11_OID_BSSID, 0, NULL, &r);
r                 183 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	data = r.ptr;
r                 190 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	j = mgt_get_request(priv, DOT11_OID_BSSFIND, 0, (void *) &bss, &r);
r                 191 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	bss2 = r.ptr;
r                 205 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	mgt_get_request(priv, DOT11_OID_PRIVRXFAILED, 0, NULL, &r);
r                 206 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	priv->local_iwstatistics.discard.code = r.u;
r                 209 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	mgt_get_request(priv, DOT11_OID_MPDUTXFAILED, 0, NULL, &r);
r                 210 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	priv->local_iwstatistics.discard.retries = r.u;
r                 263 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 270 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, OID_INL_PHYCAPABILITIES, 0, NULL, &r);
r                 272 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	switch (r.u) {
r                 313 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 316 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_CHANNEL, 0, NULL, &r);
r                 317 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	fwrq->i = r.u;
r                 318 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_FREQUENCY, 0, NULL, &r);
r                 319 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	fwrq->m = r.u;
r                 405 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 408 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_EDTHRESHOLD, 0, NULL, &r);
r                 410 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	vwrq->value = r.u;
r                 426 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 489 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	    mgt_get_request(priv, DOT11_OID_SUPPORTEDFREQUENCIES, 0, NULL, &r);
r                 490 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	freq = r.ptr;
r                 503 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_SUPPORTEDRATES, 0, NULL, &r);
r                 504 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	data = r.ptr;
r                 515 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	kfree(r.ptr);
r                 549 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 552 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_BSSID, 0, NULL, &r);
r                 553 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	memcpy(awrq->sa_data, r.ptr, ETH_ALEN);
r                 555 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	kfree(r.ptr);
r                 689 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 698 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_NOISEFLOOR, 0, NULL, &r);
r                 699 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	noise = r.u;
r                 709 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_BSSLIST, 0, NULL, &r);
r                 710 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	bsslist = r.ptr;
r                 767 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 770 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_SSID, 0, NULL, &r);
r                 771 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	essid = r.ptr;
r                 836 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 844 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_SUPPORTEDRATES, 0, NULL, &r);
r                 846 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		kfree(r.ptr);
r                 851 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	data = r.ptr;
r                 866 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		kfree(r.ptr);
r                 893 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	kfree(r.ptr);
r                 907 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 910 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	if ((rvalue = mgt_get_request(priv, GEN_OID_LINKSTATE, 0, NULL, &r)))
r                 912 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	vwrq->value = r.u * 500000;
r                 915 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_RATES, 0, NULL, &r);
r                 917 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		kfree(r.ptr);
r                 920 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	data = r.ptr;
r                 922 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	kfree(r.ptr);
r                 941 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 945 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_RTSTHRESH, 0, NULL, &r);
r                 946 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	vwrq->value = r.u;
r                 965 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                 968 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_FRAGTHRESH, 0, NULL, &r);
r                 969 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	vwrq->value = r.u;
r                1028 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1035 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		    mgt_get_request(priv, DOT11_OID_MAXTXLIFETIME, 0, NULL, &r);
r                1036 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		vwrq->value = r.u * 1024;
r                1041 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		    mgt_get_request(priv, DOT11_OID_LONGRETRIES, 0, NULL, &r);
r                1042 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		vwrq->value = r.u;
r                1047 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		    mgt_get_request(priv, DOT11_OID_SHORTRETRIES, 0, NULL, &r);
r                1048 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		vwrq->value = r.u;
r                1062 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1075 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		rvalue = mgt_get_request(priv, DOT11_OID_DEFKEYID, 0, NULL, &r);
r                1076 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		current_index = r.u;
r                1165 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1168 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, DOT11_OID_AUTHENABLE, 0, NULL, &r);
r                1169 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	authen = r.u;
r                1170 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_PRIVACYINVOKED, 0, NULL, &r);
r                1171 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	invoke = r.u;
r                1172 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_EXUNENCRYPTED, 0, NULL, &r);
r                1173 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	exunencrypt = r.u;
r                1187 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_DEFKEYID, 0, NULL, &r);
r                1188 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	devindex = r.u;
r                1193 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue |= mgt_get_request(priv, DOT11_OID_DEFKEYX, index, NULL, &r);
r                1194 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	key = r.ptr;
r                1209 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1212 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(priv, OID_INL_OUTPUTPOWER, 0, NULL, &r);
r                1214 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	vwrq->value = (s32) r.u / 4;
r                1330 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1339 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_AUTHENABLE, 0, NULL, &r);
r                1340 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	authen = r.u;
r                1341 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_PRIVACYINVOKED, 0, NULL, &r);
r                1342 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	privinvoked = r.u;
r                1343 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_EXUNENCRYPTED, 0, NULL, &r);
r                1344 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	exunencrypt = r.u;
r                1345 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_DOT1XENABLE, 0, NULL, &r);
r                1346 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	dot1x = r.u;
r                1347 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_MLMEAUTOLEVEL, 0, NULL, &r);
r                1348 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	mlmelevel = r.u;
r                1455 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1491 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_EXUNENCRYPTED, 0, NULL, &r);
r                1493 drivers/net/wireless/intersil/prism54/isl_ioctl.c 			param->value = r.u > 0 ? 1 : 0;
r                1497 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_AUTHENABLE, 0, NULL, &r);
r                1499 drivers/net/wireless/intersil/prism54/isl_ioctl.c 			switch (r.u) {
r                1520 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_DOT1XENABLE, 0, NULL, &r);
r                1522 drivers/net/wireless/intersil/prism54/isl_ioctl.c 			param->value = r.u > 0 ? 1 : 0;
r                1526 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_PRIVACYINVOKED, 0, NULL, &r);
r                1528 drivers/net/wireless/intersil/prism54/isl_ioctl.c 			param->value = r.u > 0 ? 1 : 0;
r                1546 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1559 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_DEFKEYID, 0, NULL, &r);
r                1562 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		idx = r.u;
r                1655 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1663 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_AUTHENABLE, 0, NULL, &r);
r                1664 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	authen = r.u;
r                1665 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_PRIVACYINVOKED, 0, NULL, &r);
r                1666 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	invoke = r.u;
r                1667 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	ret = mgt_get_request(priv, DOT11_OID_EXUNENCRYPTED, 0, NULL, &r);
r                1668 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	exunencrypt = r.u;
r                1681 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_DEFKEYID, 0, NULL, &r);
r                1684 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		idx = r.u;
r                1713 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		ret = mgt_get_request(priv, DOT11_OID_DEFKEYX, idx, NULL, &r);
r                1716 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		key = r.ptr;
r                1754 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	union oid_res_t r;
r                1758 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	rvalue = mgt_get_request(netdev_priv(ndev), n, 0, NULL, &r);
r                1759 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	dwrq->length = mgt_response_to_str(n, &r, extra);
r                1761 drivers/net/wireless/intersil/prism54/isl_ioctl.c 		kfree(r.ptr);
r                 592 drivers/net/wireless/intersil/prism54/oid_mgt.c 			int r = islpci_mgt_transaction(priv->ndev, PIMFOR_OP_SET,
r                 596 drivers/net/wireless/intersil/prism54/oid_mgt.c 				r |= (response->header->operation == PIMFOR_OP_ERROR);
r                 599 drivers/net/wireless/intersil/prism54/oid_mgt.c 			if (r)
r                 602 drivers/net/wireless/intersil/prism54/oid_mgt.c 					priv->ndev->name, oid, r);
r                 603 drivers/net/wireless/intersil/prism54/oid_mgt.c 			ret |= r;
r                 779 drivers/net/wireless/intersil/prism54/oid_mgt.c mgt_response_to_str(enum oid_num_t n, union oid_res_t *r, char *str)
r                 783 drivers/net/wireless/intersil/prism54/oid_mgt.c 		return snprintf(str, PRIV_STR_SIZE, "%u\n", r->u);
r                 785 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_buffer *buff = r->ptr;
r                 792 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_bss *bss = r->ptr;
r                 802 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_bsslist *list = r->ptr;
r                 819 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_frequencies *freq = r->ptr;
r                 830 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_mlme *mlme = r->ptr;
r                 837 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_mlmeex *mlme = r->ptr;
r                 845 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_attachment *attach = r->ptr;
r                 853 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_ssid *ssid = r->ptr;
r                 861 drivers/net/wireless/intersil/prism54/oid_mgt.c 			struct obj_key *key = r->ptr;
r                 875 drivers/net/wireless/intersil/prism54/oid_mgt.c 			unsigned char *buff = r->ptr;
r                 856 drivers/net/wireless/marvell/libertas/debugfs.c 	int r, i;
r                 885 drivers/net/wireless/marvell/libertas/debugfs.c 			r = simple_strtoul(p2, NULL, 0);
r                 887 drivers/net/wireless/marvell/libertas/debugfs.c 				*((u8 *) d[i].addr) = (u8) r;
r                 889 drivers/net/wireless/marvell/libertas/debugfs.c 				*((u16 *) d[i].addr) = (u16) r;
r                 891 drivers/net/wireless/marvell/libertas/debugfs.c 				*((u32 *) d[i].addr) = (u32) r;
r                 893 drivers/net/wireless/marvell/libertas/debugfs.c 				*((u64 *) d[i].addr) = (u64) r;
r                 203 drivers/net/wireless/marvell/libertas/dev.h 	int r;
r                 205 drivers/net/wireless/marvell/libertas/dev.h 	r = netif_running(priv->dev);
r                 207 drivers/net/wireless/marvell/libertas/dev.h 		r |= netif_running(priv->mesh_dev);
r                 209 drivers/net/wireless/marvell/libertas/dev.h 	return r;
r                1081 drivers/net/wireless/marvell/libertas/if_sdio.c 	int r;
r                1086 drivers/net/wireless/marvell/libertas/if_sdio.c 	r = if_sdio_power_on(card);
r                1087 drivers/net/wireless/marvell/libertas/if_sdio.c 	if (r)
r                1088 drivers/net/wireless/marvell/libertas/if_sdio.c 		return r;
r                 201 drivers/net/wireless/marvell/libertas/if_usb.c 	int r = -ENOMEM;
r                 261 drivers/net/wireless/marvell/libertas/if_usb.c 		r = PTR_ERR(priv);
r                 282 drivers/net/wireless/marvell/libertas/if_usb.c 	r = lbs_get_firmware_async(priv, &udev->dev, cardp->model,
r                 284 drivers/net/wireless/marvell/libertas/if_usb.c 	if (r)
r                 297 drivers/net/wireless/marvell/libertas/if_usb.c 	return r;
r                 773 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	} r;
r                 782 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.mac = &resp->params.mac_reg;
r                 783 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->offset = (u32) le16_to_cpu(r.mac->offset);
r                 784 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->value = le32_to_cpu(r.mac->value);
r                 787 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.bbp = &resp->params.bbp_reg;
r                 788 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->offset = (u32) le16_to_cpu(r.bbp->offset);
r                 789 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->value = (u32) r.bbp->value;
r                 793 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.rf = &resp->params.rf_reg;
r                 794 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->offset = (u32) le16_to_cpu(r.rf->offset);
r                 795 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->value = (u32) r.bbp->value;
r                 798 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.pmic = &resp->params.pmic_reg;
r                 799 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->offset = (u32) le16_to_cpu(r.pmic->offset);
r                 800 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->value = (u32) r.pmic->value;
r                 803 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.rf = &resp->params.rf_reg;
r                 804 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->offset = (u32) le16_to_cpu(r.rf->offset);
r                 805 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		reg_rw->value = (u32) r.rf->value;
r                 808 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		r.eeprom = &resp->params.eeprom;
r                 810 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 				le16_to_cpu(r.eeprom->byte_count));
r                 811 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		if (eeprom->byte_count < le16_to_cpu(r.eeprom->byte_count)) {
r                 816 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		eeprom->offset = le16_to_cpu(r.eeprom->offset);
r                 817 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 		eeprom->byte_count = le16_to_cpu(r.eeprom->byte_count);
r                 819 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 			memcpy(&eeprom->value, &r.eeprom->value,
r                 566 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		const struct ieee80211_rate *r;
r                 571 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 		r = &mt76_hw(dev)->wiphy->bands[band]->bitrates[rate->idx];
r                 573 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 			val = r->hw_value_short;
r                 575 drivers/net/wireless/mediatek/mt76/mt7603/mac.c 			val = r->hw_value;
r                 278 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		const struct ieee80211_rate *r;
r                 283 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 		r = &mt76_hw(dev)->wiphy->bands[band]->bitrates[rate->idx];
r                 285 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 			val = r->hw_value_short;
r                 287 drivers/net/wireless/mediatek/mt76/mt7615/mac.c 			val = r->hw_value;
r                 181 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		const struct ieee80211_rate *r;
r                 185 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 		r = &dev->mt76.hw->wiphy->bands[band]->bitrates[rate->idx];
r                 187 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 			val = r->hw_value_short;
r                 189 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c 			val = r->hw_value;
r                  62 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c int mt76x02_get_max_rate_power(struct mt76_rate_power *r)
r                  67 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 	for (i = 0; i < sizeof(r->all); i++)
r                  68 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 		ret = max(ret, r->all[i]);
r                  74 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c void mt76x02_limit_rate_power(struct mt76_rate_power *r, int limit)
r                  78 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 	for (i = 0; i < sizeof(r->all); i++)
r                  79 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 		if (r->all[i] > limit)
r                  80 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 			r->all[i] = limit;
r                  84 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c void mt76x02_add_rate_power_offset(struct mt76_rate_power *r, int offset)
r                  88 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 	for (i = 0; i < sizeof(r->all); i++)
r                  89 drivers/net/wireless/mediatek/mt76/mt76x02_phy.c 		r->all[i] += offset;
r                  37 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h void mt76x02_add_rate_power_offset(struct mt76_rate_power *r, int offset);
r                  39 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h void mt76x02_limit_rate_power(struct mt76_rate_power *r, int limit);
r                  40 drivers/net/wireless/mediatek/mt76/mt76x02_phy.h int mt76x02_get_max_rate_power(struct mt76_rate_power *r);
r                  80 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			const struct ieee80211_rate *r;
r                  84 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			r = &wiphy->bands[band]->bitrates[rate->idx];
r                  85 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 			if (r->flags & IEEE80211_RATE_SHORT_PREAMBLE)
r                  86 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 				max_txpwr = rp->cck[r->hw_value & 0x3];
r                  88 drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c 				max_txpwr = rp->ofdm[r->hw_value & 0x7];
r                 119 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c mt76x2_get_min_rate_power(struct mt76_rate_power *r)
r                 124 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c 	for (i = 0; i < sizeof(r->all); i++) {
r                 125 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c 		if (!r->all[i])
r                 129 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c 			ret = min(ret, r->all[i]);
r                 131 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c 			ret = r->all[i];
r                 121 drivers/net/wireless/mediatek/mt7601u/mac.c 		const struct ieee80211_rate *r;
r                 125 drivers/net/wireless/mediatek/mt7601u/mac.c 		r = &dev->hw->wiphy->bands[band]->bitrates[rate->idx];
r                 127 drivers/net/wireless/mediatek/mt7601u/mac.c 			val = r->hw_value_short;
r                 129 drivers/net/wireless/mediatek/mt7601u/mac.c 			val = r->hw_value;
r                1190 drivers/net/wireless/realtek/rtlwifi/base.c 	struct ieee80211_tx_rate *r = &info->status.rates[0];
r                1194 drivers/net/wireless/realtek/rtlwifi/base.c 	if (r->flags & IEEE80211_TX_RC_MCS) {
r                1197 drivers/net/wireless/realtek/rtlwifi/base.c 			   r->idx;
r                1198 drivers/net/wireless/realtek/rtlwifi/base.c 	} else if (r->flags & IEEE80211_TX_RC_VHT_MCS) {
r                1200 drivers/net/wireless/realtek/rtlwifi/base.c 		if (ieee80211_rate_get_vht_nss(r) == 2)
r                1205 drivers/net/wireless/realtek/rtlwifi/base.c 		hw_value = hw_value - 9 + ieee80211_rate_get_vht_mcs(r);
r                  88 drivers/net/wireless/realtek/rtw88/pci.c 	int offset = tx_ring->r.desc_size * idx;
r                  90 drivers/net/wireless/realtek/rtw88/pci.c 	return tx_ring->r.head + offset;
r                 116 drivers/net/wireless/realtek/rtw88/pci.c 	u8 *head = tx_ring->r.head;
r                 117 drivers/net/wireless/realtek/rtw88/pci.c 	u32 len = tx_ring->r.len;
r                 118 drivers/net/wireless/realtek/rtw88/pci.c 	int ring_sz = len * tx_ring->r.desc_size;
r                 123 drivers/net/wireless/realtek/rtw88/pci.c 	pci_free_consistent(pdev, ring_sz, head, tx_ring->r.dma);
r                 124 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.head = NULL;
r                 136 drivers/net/wireless/realtek/rtw88/pci.c 	for (i = 0; i < rx_ring->r.len; i++) {
r                 152 drivers/net/wireless/realtek/rtw88/pci.c 	u8 *head = rx_ring->r.head;
r                 153 drivers/net/wireless/realtek/rtw88/pci.c 	int ring_sz = rx_ring->r.desc_size * rx_ring->r.len;
r                 157 drivers/net/wireless/realtek/rtw88/pci.c 	pci_free_consistent(pdev, ring_sz, head, rx_ring->r.dma);
r                 194 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.head = head;
r                 195 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.dma = dma;
r                 196 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.len = len;
r                 197 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.desc_size = desc_size;
r                 198 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.wp = 0;
r                 199 drivers/net/wireless/realtek/rtw88/pci.c 	tx_ring->r.rp = 0;
r                 221 drivers/net/wireless/realtek/rtw88/pci.c 	buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +
r                 240 drivers/net/wireless/realtek/rtw88/pci.c 	buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +
r                 265 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.head = head;
r                 285 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.dma = dma;
r                 286 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.len = len;
r                 287 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.desc_size = desc_size;
r                 288 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.wp = 0;
r                 289 drivers/net/wireless/realtek/rtw88/pci.c 	rx_ring->r.rp = 0;
r                 398 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_BCN].r.dma;
r                 401 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.len;
r                 402 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.dma;
r                 403 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.rp = 0;
r                 404 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_H2C].r.wp = 0;
r                 408 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.len;
r                 409 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.dma;
r                 410 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.rp = 0;
r                 411 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_BK].r.wp = 0;
r                 415 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.len;
r                 416 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.dma;
r                 417 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.rp = 0;
r                 418 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_BE].r.wp = 0;
r                 422 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.len;
r                 423 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.dma;
r                 424 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.rp = 0;
r                 425 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_VO].r.wp = 0;
r                 429 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.len;
r                 430 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.dma;
r                 431 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.rp = 0;
r                 432 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_VI].r.wp = 0;
r                 436 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.len;
r                 437 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.dma;
r                 438 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.rp = 0;
r                 439 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_MGMT].r.wp = 0;
r                 443 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.len;
r                 444 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.dma;
r                 445 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.rp = 0;
r                 446 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->tx_rings[RTW_TX_QUEUE_HI0].r.wp = 0;
r                 450 drivers/net/wireless/realtek/rtw88/pci.c 	len = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.len;
r                 451 drivers/net/wireless/realtek/rtw88/pci.c 	dma = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.dma;
r                 452 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.rp = 0;
r                 453 drivers/net/wireless/realtek/rtw88/pci.c 	rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.wp = 0;
r                 592 drivers/net/wireless/realtek/rtw88/pci.c 	buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head +
r                 626 drivers/net/wireless/realtek/rtw88/pci.c 	else if (!avail_desc(ring->r.wp, ring->r.rp, ring->r.len))
r                 658 drivers/net/wireless/realtek/rtw88/pci.c 		if (++ring->r.wp >= ring->r.len)
r                 659 drivers/net/wireless/realtek/rtw88/pci.c 			ring->r.wp = 0;
r                 661 drivers/net/wireless/realtek/rtw88/pci.c 		rtw_write16(rtwdev, bd_idx, ring->r.wp & 0xfff);
r                 731 drivers/net/wireless/realtek/rtw88/pci.c 	if (avail_desc(ring->r.wp, ring->r.rp, ring->r.len) < 2) {
r                 758 drivers/net/wireless/realtek/rtw88/pci.c 	if (cur_rp >= ring->r.rp)
r                 759 drivers/net/wireless/realtek/rtw88/pci.c 		count = cur_rp - ring->r.rp;
r                 761 drivers/net/wireless/realtek/rtw88/pci.c 		count = ring->r.len - (ring->r.rp - cur_rp);
r                 767 drivers/net/wireless/realtek/rtw88/pci.c 				count, hw_queue, bd_idx, ring->r.rp, cur_rp);
r                 781 drivers/net/wireless/realtek/rtw88/pci.c 		    avail_desc(ring->r.wp, ring->r.rp, ring->r.len) > 4) {
r                 807 drivers/net/wireless/realtek/rtw88/pci.c 	ring->r.rp = cur_rp;
r                 832 drivers/net/wireless/realtek/rtw88/pci.c 	if (cur_wp >= ring->r.wp)
r                 833 drivers/net/wireless/realtek/rtw88/pci.c 		count = cur_wp - ring->r.wp;
r                 835 drivers/net/wireless/realtek/rtw88/pci.c 		count = ring->r.len - (ring->r.wp - cur_wp);
r                 837 drivers/net/wireless/realtek/rtw88/pci.c 	cur_rp = ring->r.rp;
r                 879 drivers/net/wireless/realtek/rtw88/pci.c 		if (++cur_rp >= ring->r.len)
r                 883 drivers/net/wireless/realtek/rtw88/pci.c 	ring->r.rp = cur_rp;
r                 884 drivers/net/wireless/realtek/rtw88/pci.c 	ring->r.wp = cur_wp;
r                 885 drivers/net/wireless/realtek/rtw88/pci.c 	rtw_write16(rtwdev, RTK_PCI_RXBD_IDX_MPDUQ, ring->r.rp);
r                 164 drivers/net/wireless/realtek/rtw88/pci.h 	struct rtw_pci_ring r;
r                 176 drivers/net/wireless/realtek/rtw88/pci.h 	struct rtw_pci_ring r;
r                 233 drivers/net/wireless/realtek/rtw88/pci.h 	buf_desc = ring->r.head + ring->r.wp * size;
r                 400 drivers/net/wireless/ti/wlcore/acx.c 		struct conf_bcn_filt_rule *r = &(wl->conf.conn.bcn_filt_ie[i]);
r                 401 drivers/net/wireless/ti/wlcore/acx.c 		ie_table->table[idx++] = r->ie;
r                 402 drivers/net/wireless/ti/wlcore/acx.c 		ie_table->table[idx++] = r->rule;
r                 404 drivers/net/wireless/ti/wlcore/acx.c 		if (r->ie == WLAN_EID_VENDOR_SPECIFIC) {
r                 411 drivers/net/wireless/ti/wlcore/acx.c 			memcpy(&(ie_table->table[idx]), r->oui,
r                 414 drivers/net/wireless/ti/wlcore/acx.c 			ie_table->table[idx++] = r->type;
r                 415 drivers/net/wireless/ti/wlcore/acx.c 			memcpy(&(ie_table->table[idx]), r->version,
r                  95 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 116 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16v_locked(chip, v16, a16, count16);
r                 117 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 119 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			  "error: %s. Error number %d\n", __func__, r);
r                 120 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 135 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int i, j, r;
r                 160 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_usb_iowrite16v_async(&chip->usb, ioreqs16, count16);
r                 162 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 164 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			  "error %d in zd_usb_write16v\n", r);
r                 167 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 173 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 176 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = _zd_iowrite32v_async_locked(chip, ioreqs, count);
r                 177 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 179 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 187 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 205 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_usb_iowrite16v_async(&chip->usb, &ioreqs[i], j);
r                 206 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r) {
r                 210 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 				  r);
r                 211 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                 225 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 242 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = _zd_iowrite32v_async_locked(chip, &ioreqs[i], j);
r                 243 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r) {
r                 247 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 				r);
r                 248 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                 257 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 260 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16_locked(chip, value, addr);
r                 262 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 267 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 270 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, value, addr);
r                 272 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 277 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 280 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite16_locked(chip, value, addr);
r                 282 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 287 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 290 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, value, addr);
r                 292 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 298 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 301 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32v_locked(chip, values, addresses, count);
r                 303 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 309 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 312 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32a_locked(chip, ioreqs, count);
r                 314 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 319 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 323 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &value, E2P_POD);
r                 324 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 360 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 367 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 383 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32a_locked(chip, reqs, ARRAY_SIZE(reqs));
r                 385 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 413 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 417 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &value, E2P_SUBID);
r                 419 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 420 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 431 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 437 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_ioread32_locked(chip, &v,
r                 439 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                 440 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                 471 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 480 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = read_values(chip, chip->ofdm_cal_values[i],
r                 482 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                 483 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                 490 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 492 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_pwr_cal_values(chip);
r                 493 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 494 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 495 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_pwr_int_values(chip);
r                 496 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 497 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 498 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_ofdm_cal_values(chip);
r                 499 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 500 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 507 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 511 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &tmp, CR_REG1);
r                 512 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 513 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		dev_err(zd_chip_dev(chip), "error ioread32(CR_REG1): %d\n", r);
r                 514 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 519 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, tmp, CR_REG1);
r                 520 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 521 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		dev_err(zd_chip_dev(chip), "error iowrite32(CR_REG1): %d\n", r);
r                 522 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 527 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 531 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &tmp, CR_REG1);
r                 532 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 534 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			"error ioread32(CR_REG1): %d\n", r);
r                 535 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 540 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, tmp, CR_REG1);
r                 541 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 542 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		dev_err(zd_chip_dev(chip), "error iowrite32(CR_REG1): %d\n", r);
r                 543 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 549 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 555 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16_locked(chip, &value, E2P_PHY_REG);
r                 556 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 557 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 662 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r, t;
r                 666 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_chip_lock_phy_regs(chip);
r                 667 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 670 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 671 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 674 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = patch_cr157(chip);
r                 677 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (t && !r)
r                 678 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = t;
r                 680 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 744 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r, t;
r                 748 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_chip_lock_phy_regs(chip);
r                 749 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 752 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 754 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (t && !r)
r                 755 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = t;
r                 757 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 799 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 824 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 825 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 826 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 840 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 845 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32v_locked(chip, values, (const zd_addr_t *)aw_pt_bi_addr,
r                 847 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 849 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 884 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 910 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, b_interval, CR_BCN_INTERVAL);
r                 911 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 912 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 913 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = get_aw_pt_bi(chip, &s);
r                 914 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 915 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 922 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 925 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = set_beacon_interval(chip, interval, dtim_period, type);
r                 927 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                 932 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 936 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = hw_reset_phy(chip);
r                 937 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 938 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 940 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = hw_init_hmac(chip);
r                 941 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 942 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 956 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 959 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &value, addr);
r                 960 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                 962 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			"error reading %s. Error number %d\n", addr_string, r);
r                 963 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 973 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 975 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = dump_cr(chip, CR_AFTER_PNP, "CR_AFTER_PNP");
r                 976 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 977 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 978 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = dump_cr(chip, CR_GPI_EN, "CR_GPI_EN");
r                 979 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 980 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                 993 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                 996 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16v_locked(chip, values, (const zd_addr_t*)addr,
r                 998 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r) {
r                1000 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			 r);
r                1014 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1017 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16_locked(chip, &version,
r                1019 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1020 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                1067 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1070 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, HWINT_ENABLED, CR_INTERRUPT);
r                1072 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1082 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1085 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = disable_hwint(chip);
r                1087 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1092 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1095 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16_locked(chip, (u16*)&chip->fw_regs_base,
r                1097 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1098 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                1115 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1123 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = test_init(chip);
r                1124 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1127 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, 1, CR_AFTER_PNP);
r                1128 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1131 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_fw_regs_offset(chip);
r                1132 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1137 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, 0, CR_GPI_EN);
r                1138 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1140 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, CWIN_SIZE, CR_CWMIN_CWMAX);
r                1141 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1147 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = set_mandatory_rates(chip, 1);
r                1148 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1152 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = disable_hwint(chip);
r                1153 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1155 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_pod(chip, &rf_type);
r                1156 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1158 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = hw_init(chip);
r                1159 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1161 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_rf_init_hw(&chip->rf, rf_type);
r                1162 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1165 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = print_fw_version(chip);
r                1166 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1171 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = test_init(chip);
r                1172 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1176 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = read_cal_int_tables(chip);
r                1177 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1183 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1215 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1220 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = update_pwr_int(chip, channel);
r                1221 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1222 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                1230 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = update_ofdm_cal(chip, channel);
r                1231 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1232 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                1233 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = update_pwr_cal(chip, channel);
r                1234 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1235 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                1236 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                1237 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1238 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                1247 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1254 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32_locked(chip, &value, E2P_PHY_REG);
r                1255 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1256 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		return r;
r                1263 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r, t;
r                1266 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_chip_lock_phy_regs(chip);
r                1267 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1269 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_rf_set_channel(&chip->rf, channel);
r                1270 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1272 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = update_channel_integration_and_calibration(chip, channel);
r                1273 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1275 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = patch_cck_gain(chip);
r                1276 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1278 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = patch_6m_band_edge(chip, channel);
r                1279 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1281 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, 0, CR_CONFIG_PHILIPS);
r                1284 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (t && !r)
r                1285 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = t;
r                1288 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1308 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1317 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread16v_locked(chip, v, (const zd_addr_t *)a, ARRAY_SIZE(a));
r                1318 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                1343 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = -EINVAL;
r                1348 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                1349 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1352 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = 0;
r                1355 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1360 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1366 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_iowrite32_locked(chip, cr_rates, CR_BASIC_RATE_TBL);
r                1368 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1413 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1416 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_switch_radio_on(&chip->rf);
r                1418 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1423 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1426 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_switch_radio_off(&chip->rf);
r                1428 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1433 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1436 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_usb_enable_int(&chip->usb);
r                1438 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1453 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1457 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_usb_enable_rx(&chip->usb);
r                1460 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	return r;
r                1475 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1479 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_rfwrite_locked(chip, values[i], bits);
r                1480 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1481 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                1505 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1509 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		r = zd_rfwrite_cr_locked(chip, values[i]);
r                1510 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 		if (r)
r                1511 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 			return r;
r                1530 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	int r;
r                1537 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	r = zd_ioread32v_locked(chip, values, (const zd_addr_t *)aw_pt_bi_addr,
r                1540 drivers/net/wireless/zydas/zd1211rw/zd_chip.c 	if (r)
r                 168 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 172 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_read_mac_addr_fw(&mac->chip, addr);
r                 173 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 174 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 183 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 189 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_enable_int(chip);
r                 190 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 192 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_init_hw(chip);
r                 193 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 198 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_read_regdomain(chip, &default_regdomain);
r                 199 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 207 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_set_encryption_type(chip, ENC_SNIFFER);
r                 208 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 211 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_reg2alpha2(mac->regdomain, alpha2);
r                 212 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 215 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = regulatory_hint(hw->wiphy, alpha2);
r                 219 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	return r;
r                 244 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 249 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_write_mac_addr(&mac->chip, mac->vif->addr);
r                 250 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 251 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 274 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 277 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = zd_usb_init_hw(usb);
r                 278 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (r)
r                 282 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_enable_int(chip);
r                 283 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 286 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_set_basic_rates(chip, CR_RATES_80211B | CR_RATES_80211G);
r                 287 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 289 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = set_rx_filter(mac);
r                 290 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 292 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = set_mc_hash(mac);
r                 293 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 302 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_switch_radio_on(chip);
r                 303 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0) {
r                 308 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_enable_rxtx(chip);
r                 309 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 311 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_enable_hwint(chip);
r                 312 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 326 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	return r;
r                 362 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r, beacon_interval, beacon_period;
r                 375 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = set_mac_and_bssid(mac);
r                 376 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0) {
r                 377 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		dev_dbg_f(zd_mac_dev(mac), "set_mac_and_bssid failed, %d\n", r);
r                 378 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 381 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_set_channel(&mac->chip, channel);
r                 382 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0) {
r                 384 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 			  r);
r                 385 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 390 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_set_multicast_hash(&mac->chip, &multicast_hash);
r                 391 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0) {
r                 393 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 			  "zd_chip_set_multicast_hash failed, %d\n", r);
r                 394 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 705 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r, ret, num_cmds, req_pos = 0;
r                 716 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = 0;
r                 725 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = -ENOMEM;
r                 729 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_iowrite32_locked(&mac->chip, 0, CR_BCN_FIFO_SEMAPHORE);
r                 730 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 732 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_ioread32_locked(&mac->chip, &tmp, CR_BCN_FIFO_SEMAPHORE);
r                 733 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 736 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = -EBUSY;
r                 743 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = zd_ioread32_locked(&mac->chip, &tmp, CR_BCN_FIFO_SEMAPHORE);
r                 744 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (r < 0)
r                 753 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 				r = -ETIMEDOUT;
r                 783 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_iowrite32a_locked(&mac->chip, ioreqs, num_cmds);
r                 805 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0 || ret < 0) {
r                 806 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (r >= 0)
r                 807 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 			r = ret;
r                 825 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_iowrite32_locked(&mac->chip, 0x00000400 | (full_len << 19),
r                 833 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	return r;
r                 847 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	return r;
r                 853 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 903 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_calc_tx_length_us(&cs->service, ZD_RATE(cs->modulation),
r                 905 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r < 0)
r                 906 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		return r;
r                 907 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	cs->current_length = cpu_to_le16(r);
r                 930 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                 932 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = fill_ctrlset(mac, skb);
r                 933 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                 938 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_usb_tx(&mac->chip.usb, skb);
r                 939 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                1232 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                1257 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		r = set_rx_filter(mac);
r                1258 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		if (r)
r                1259 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 			dev_err(zd_mac_dev(mac), "set_rx_filter error %d\n", r);
r                1502 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	int r;
r                1511 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	r = zd_chip_control_leds(chip,
r                1513 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 	if (r)
r                1514 drivers/net/wireless/zydas/zd1211rw/zd_mac.c 		dev_dbg_f(zd_mac_dev(mac), "zd_chip_control_leds error %d\n", r);
r                  60 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	int r = 0;
r                  67 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = zd_rf_init_rf2959(rf);
r                  71 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = zd_rf_init_al2230(rf);
r                  74 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = zd_rf_init_al7230b(rf);
r                  78 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = zd_rf_init_uw2453(rf);
r                  87 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	if (r)
r                  88 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		return r;
r                  92 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_lock_phy_regs(chip);
r                  93 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	if (r)
r                  94 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		return r;
r                  96 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_unlock_phy_regs(chip);
r                  98 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = t;
r                  99 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	return r;
r                 109 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	int r;
r                 118 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = rf->set_channel(rf, channel);
r                 119 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	if (r >= 0)
r                 121 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	return r;
r                 126 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	int r, t;
r                 130 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_lock_phy_regs(chip);
r                 131 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	if (r)
r                 132 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		return r;
r                 134 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_unlock_phy_regs(chip);
r                 136 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = t;
r                 137 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	return r;
r                 142 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	int r, t;
r                 147 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_lock_phy_regs(chip);
r                 148 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	if (r)
r                 149 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		return r;
r                 151 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	r = zd_chip_unlock_phy_regs(chip);
r                 153 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 		r = t;
r                 154 drivers/net/wireless/zydas/zd1211rw/zd_rf.c 	return r;
r                  68 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	int r;
r                  78 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                  79 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                  80 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                  84 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_iowrite16_locked(chip, 0xe1, ZD_CR9);
r                  85 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		if (r)
r                  86 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 			return r;
r                  94 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	int r;
r                 167 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs_init, ARRAY_SIZE(ioreqs_init));
r                 168 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 169 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 172 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_iowrite16a_locked(chip, ioreqs_init_al2230s,
r                 174 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		if (r)
r                 175 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 			return r;
r                 178 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_locked(chip, rv1, ARRAY_SIZE(rv1), RF_RV_BITS);
r                 179 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 180 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 184 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_rfwrite_locked(chip, 0x000824, RF_RV_BITS);
r                 186 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_rfwrite_locked(chip, 0x0005a4, RF_RV_BITS);
r                 187 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 188 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 190 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_locked(chip, rv2, ARRAY_SIZE(rv2), RF_RV_BITS);
r                 191 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 192 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 194 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs_pll, ARRAY_SIZE(ioreqs_pll));
r                 195 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 196 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 198 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_locked(chip, rv3, ARRAY_SIZE(rv3), RF_RV_BITS);
r                 199 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 200 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 207 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	int r;
r                 303 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, zd1211b_ioreqs_shared_1,
r                 305 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 306 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 307 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs1, ARRAY_SIZE(ioreqs1));
r                 308 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 309 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 312 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_iowrite16a_locked(chip, ioreqs_init_al2230s,
r                 314 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		if (r)
r                 315 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 			return r;
r                 318 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_cr_locked(chip, zd1211b_al2230_table[0], 3);
r                 319 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 320 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 321 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_cr_locked(chip, rv1, ARRAY_SIZE(rv1));
r                 322 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 323 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 326 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_rfwrite_locked(chip, 0x241000, RF_RV_BITS);
r                 328 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		r = zd_rfwrite_locked(chip, 0x25a000, RF_RV_BITS);
r                 329 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 330 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 332 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_cr_locked(chip, rv2, ARRAY_SIZE(rv2));
r                 333 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 334 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 335 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs2, ARRAY_SIZE(ioreqs2));
r                 336 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 337 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 338 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_cr_locked(chip, rv3, ARRAY_SIZE(rv3));
r                 339 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 340 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 341 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, ioreqs3, ARRAY_SIZE(ioreqs3));
r                 342 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 343 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 349 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	int r;
r                 357 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_locked(chip, rv, 3, RF_RV_BITS);
r                 358 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 359 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 365 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	int r;
r                 369 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_iowrite16a_locked(chip, zd1211b_ioreqs_shared_1,
r                 371 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 372 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                 374 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	r = zd_rfwritev_cr_locked(chip, rv, 3);
r                 375 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 	if (r)
r                 376 drivers/net/wireless/zydas/zd1211rw/zd_rf_al2230.c 		return r;
r                  64 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	int r;
r                  73 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                  74 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                  75 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                  79 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		r = zd_iowrite16_locked(chip, 0xe5, ZD_CR9);
r                  80 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		if (r)
r                  81 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 			return r;
r                  89 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	int r;
r                 158 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1));
r                 159 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 160 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 162 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, chan_rv[0], ARRAY_SIZE(chan_rv[0]));
r                 163 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 164 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 166 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv));
r                 167 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 168 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 170 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv_init1, ARRAY_SIZE(rv_init1));
r                 171 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 172 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 174 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_2, ARRAY_SIZE(ioreqs_2));
r                 175 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 176 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 178 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv_init2, ARRAY_SIZE(rv_init2));
r                 179 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 180 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 182 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x06, ZD_CR203);
r                 183 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 184 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 185 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x80, ZD_CR240);
r                 186 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 187 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 194 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	int r;
r                 273 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1));
r                 274 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 275 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 278 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		r = zd_iowrite16a_locked(chip, ioreqs_new_phy,
r                 281 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		r = zd_iowrite16a_locked(chip, ioreqs_old_phy,
r                 283 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 284 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 286 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_2, ARRAY_SIZE(ioreqs_2));
r                 287 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 288 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 290 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, chan_rv[0], ARRAY_SIZE(chan_rv[0]));
r                 291 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 292 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 294 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv));
r                 295 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 296 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 298 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv_init1, ARRAY_SIZE(rv_init1));
r                 299 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 300 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 302 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_3, ARRAY_SIZE(ioreqs_3));
r                 303 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 304 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 306 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv_init2, ARRAY_SIZE(rv_init2));
r                 307 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 308 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 315 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	int r;
r                 325 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x57, ZD_CR240);
r                 326 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 327 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 330 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x2f, ZD_CR251);
r                 331 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 332 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 334 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv));
r                 335 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 336 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 338 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0x3c9000);
r                 339 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 340 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 341 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0xf15d58);
r                 342 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 343 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 345 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_sw, ARRAY_SIZE(ioreqs_sw));
r                 346 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 347 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 349 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv, 2);
r                 350 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 351 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 353 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0x3c9000);
r                 354 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 355 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 362 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	int r;
r                 366 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x57, ZD_CR240);
r                 367 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 368 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 369 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0xe4, ZD_CR9);
r                 370 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 371 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 374 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x2f, ZD_CR251);
r                 375 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 376 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 377 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv));
r                 378 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 379 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 381 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0x3c9000);
r                 382 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 383 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 384 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0xf15d58);
r                 385 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 386 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 388 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16a_locked(chip, ioreqs_sw, ARRAY_SIZE(ioreqs_sw));
r                 389 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 390 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 392 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwritev_cr_locked(chip, rv, 2);
r                 393 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 394 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 396 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_rfwrite_cr_locked(chip, 0x3c9000);
r                 397 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 398 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 400 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	r = zd_iowrite16_locked(chip, 0x7f, ZD_CR251);
r                 401 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 	if (r)
r                 402 drivers/net/wireless/zydas/zd1211rw/zd_rf_al7230b.c 		return r;
r                 138 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 	int r;
r                 211 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 212 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 	if (r)
r                 213 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 		return r;
r                 220 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 	int i, r;
r                 225 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 		r = zd_rfwrite_locked(chip, rv[i], RF_RV_BITS);
r                 226 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 		if (r)
r                 227 drivers/net/wireless/zydas/zd1211rw/zd_rf_rf2959.c 			return r;
r                 245 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	int r;
r                 254 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_rfwrite_locked(chip, val, RF_RV_BITS);
r                 255 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 256 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 298 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	int i, r;
r                 365 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 366 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 367 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 369 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS);
r                 370 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 371 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 373 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = uw2453_init_mode(chip);
r                 374 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 375 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 380 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = uw2453_synth_set_channel(chip, 1, false);
r                 381 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 382 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 385 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = uw2453_write_vco_cfg(chip, uw2453_std_vco_cfg[i][0]);
r                 386 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 387 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 390 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = zd_iowrite16_locked(chip, 0x0f, UW2453_INTR_REG);
r                 391 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 392 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 395 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = zd_ioread16_locked(chip, &intr_status, UW2453_INTR_REG);
r                 396 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 397 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 412 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = uw2453_synth_set_channel(chip, 1, true);
r                 413 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 414 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 416 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		r = uw2453_write_vco_cfg(chip, UW2453_AUTOCAL_VCO_CFG);
r                 417 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		if (r)
r                 418 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 			return r;
r                 430 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	int r;
r                 441 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = uw2453_synth_set_channel(chip, channel, autocal);
r                 442 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 443 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 450 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = uw2453_write_vco_cfg(chip, vco_cfg);
r                 451 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 452 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 454 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = uw2453_init_mode(chip);
r                 455 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 456 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 458 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs));
r                 459 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 460 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 462 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = uw2453_set_tx_gain_level(chip, channel);
r                 463 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 464 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 471 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	int r;
r                 478 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_rfwrite_locked(chip, UW2453_REGWRITE(0, 0x25f94), RF_RV_BITS);
r                 479 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 480 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 490 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	int r;
r                 498 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	r = zd_rfwrite_locked(chip, UW2453_REGWRITE(0, 0x25f90), RF_RV_BITS);
r                 499 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 	if (r)
r                 500 drivers/net/wireless/zydas/zd1211rw/zd_rf_uw2453.c 		return r;
r                 111 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 115 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = request_firmware(fw, name, device);
r                 116 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 119 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		       name, r);
r                 120 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 139 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 145 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOMEM;
r                 157 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
r                 161 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		if (r < 0) {
r                 164 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			       " failed. Error number %d\n", r);
r                 167 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		transfer_size = r & ~1;
r                 178 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
r                 182 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		if (r != sizeof(ret)) {
r                 185 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 				" Return value %d\n", r);
r                 186 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			if (r >= 0)
r                 187 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 				r = -ENODEV;
r                 196 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			r = -ENODEV;
r                 203 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = 0;
r                 206 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 231 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r = 0;
r                 234 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = request_fw_file(&ur_fw,
r                 237 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 240 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = upload_code(udev, ur_fw->data, ur_fw->size, FW_START, REBOOT);
r                 241 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 245 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = upload_code(udev, ub_fw->data + offset, ub_fw->size - offset,
r                 255 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 260 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 270 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = request_fw_file(&ub_fw,
r                 273 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 286 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = handle_version_mismatch(usb, ub_fw);
r                 287 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		if (r)
r                 296 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = request_fw_file(&uph_fw,
r                 299 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 302 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = upload_code(udev, uph_fw->data, uph_fw->size, FW_START, REBOOT);
r                 303 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                 306 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			r);
r                 313 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 327 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 335 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
r                 338 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r < 0) {
r                 340 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"read over firmware interface failed: %d\n", r);
r                 342 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	} else if (r != len) {
r                 345 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			r, len);
r                 346 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -EIO;
r                 349 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = 0;
r                 353 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 427 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 481 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 482 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                 484 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			  urb, r);
r                 517 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 526 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOMEM;
r                 534 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = 0;
r                 540 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = -ENOMEM;
r                 557 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_KERNEL);
r                 558 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                 560 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			 "Couldn't submit urb. Error number %d\n", r);
r                 575 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 653 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 711 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 712 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                 713 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		dev_dbg_f(urb_dev(urb), "urb %p resubmit error %d\n", urb, r);
r                 751 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int i, r;
r                 757 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = -ENOMEM;
r                 771 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = 0;
r                 779 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = usb_submit_urb(urbs[i], GFP_KERNEL);
r                 780 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		if (r)
r                 798 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 803 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 807 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = __zd_usb_enable_rx(usb);
r                 812 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                 961 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                 999 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                1000 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1002 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		dev_dbg_f(urb_dev(urb), "error resubmit urb %p %d\n", urb, r);
r                1021 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1028 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOENT;
r                1034 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOMEM;
r                1045 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                1046 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1047 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		dev_dbg_f(zd_usb_dev(usb), "error submit urb %p %d\n", urb, r);
r                1057 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1270 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1276 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	for (r = 1; r >= 0; r--) {
r                1277 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		endpoint = &iface_desc->endpoint[r].desc;
r                1284 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r == -1) {
r                1305 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_bulk_msg(udev, usb_sndbulkpipe(udev, bulk_out_ep),
r                1308 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r)
r                1309 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1320 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1325 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = upload_firmware(usb);
r                1326 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1328 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		       "couldn't load firmware. Error number %d\n", r);
r                1329 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1332 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_reset_configuration(zd_usb_to_usbdev(usb));
r                1333 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1335 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"couldn't reset configuration. Error number %d\n", r);
r                1336 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1339 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_mac_init_hw(mac->hw);
r                1340 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1342 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		         "couldn't initialize mac. Error number %d\n", r);
r                1343 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1352 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1369 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENODEV;
r                1373 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_reset_device(udev);
r                1374 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1376 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"couldn't reset usb device. Error number %d\n", r);
r                1382 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOMEM;
r                1389 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_mac_preinit_hw(hw);
r                1390 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1392 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		         "couldn't initialize mac. Error number %d\n", r);
r                1396 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = ieee80211_register_hw(hw);
r                1397 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1399 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			 "couldn't register device. Error number %d\n", r);
r                1412 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1453 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1457 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_op_start(zd_usb_to_hw(usb));
r                1458 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r < 0) {
r                1460 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			 "with error code %d. Retrying...\n", r);
r                1468 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = zd_restore_settings(mac);
r                1469 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		if (r < 0) {
r                1471 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 				"failed to restore settings, %d\n", r);
r                1543 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1553 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_register(&driver);
r                1554 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1557 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		       driver.name, r);
r                1558 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1666 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1674 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = -EIO;
r                1691 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = 0;
r                1694 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1700 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r, i, req_len, actual_req_len, try_count = 0;
r                1744 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_ep_regs_out_msg(udev, req, req_len, &actual_req_len, 50 /*ms*/);
r                1745 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1747 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"error in zd_ep_regs_out_msg(). Error number %d\n", r);
r                1754 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -EIO;
r                1763 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ETIMEDOUT;
r                1767 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = get_results(usb, values, req, count, &retry);
r                1774 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1791 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r = 0;
r                1803 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb_submit_urb(urb, GFP_KERNEL);
r                1804 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1807 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"error in usb_submit_urb(). Error number %d\n", r);
r                1814 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1832 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1838 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_submit_waiting_urb(usb, true);
r                1839 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1842 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"Error number %d\n", r);
r                1855 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			r = -ETIMEDOUT;
r                1860 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = usb->cmd_error;
r                1863 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1869 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1906 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -ENOMEM;
r                1931 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_submit_waiting_urb(usb, false);
r                1932 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1935 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"Error number %d\n", r);
r                1946 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                1952 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                1955 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_usb_iowrite16v_async(usb, ioreqs, count);
r                1956 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                1958 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                1965 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	int r;
r                2000 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_usb_ioread16(usb, &bit_value_template, ZD_CR203);
r                2001 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                2003 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"error %d: Couldn't read ZD_CR203\n", r);
r                2004 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		return r;
r                2031 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	r = zd_ep_regs_out_msg(udev, req, req_len, &actual_req_len, 50 /*ms*/);
r                2032 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	if (r) {
r                2034 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 			"error in zd_ep_regs_out_msg(). Error number %d\n", r);
r                2041 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 		r = -EIO;
r                2047 drivers/net/wireless/zydas/zd1211rw/zd_usb.c 	return r;
r                  86 drivers/nfc/fdp/fdp.c 	int r;
r                  92 drivers/nfc/fdp/fdp.c 	r = nci_core_conn_create(info->ndev, FDP_PATCH_CONN_DEST, 1,
r                  94 drivers/nfc/fdp/fdp.c 	if (r)
r                  95 drivers/nfc/fdp/fdp.c 		return r;
r                 239 drivers/nfc/fdp/fdp.c 	int r;
r                 245 drivers/nfc/fdp/fdp.c 	r = info->phy_ops->enable(info->phy);
r                 247 drivers/nfc/fdp/fdp.c 	return r;
r                 287 drivers/nfc/fdp/fdp.c 	int r;
r                 289 drivers/nfc/fdp/fdp.c 	r = request_firmware(&info->ram_patch, FDP_RAM_PATCH_NAME, dev);
r                 290 drivers/nfc/fdp/fdp.c 	if (r < 0) {
r                 306 drivers/nfc/fdp/fdp.c 	r = request_firmware(&info->otp_patch, FDP_OTP_PATCH_NAME, dev);
r                 307 drivers/nfc/fdp/fdp.c 	if (r < 0) {
r                 324 drivers/nfc/fdp/fdp.c 	return r;
r                 347 drivers/nfc/fdp/fdp.c 	int r = 0;
r                 357 drivers/nfc/fdp/fdp.c 	r = fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_OTP);
r                 358 drivers/nfc/fdp/fdp.c 	if (r)
r                 364 drivers/nfc/fdp/fdp.c 		r = conn_id;
r                 369 drivers/nfc/fdp/fdp.c 	r = fdp_nci_send_patch(ndev, conn_id, NCI_PATCH_TYPE_OTP);
r                 370 drivers/nfc/fdp/fdp.c 	if (r)
r                 381 drivers/nfc/fdp/fdp.c 	r = nci_core_conn_close(info->ndev, conn_id);
r                 382 drivers/nfc/fdp/fdp.c 	if (r)
r                 387 drivers/nfc/fdp/fdp.c 		nfc_err(dev, "OTP patch error 0x%x\n", r);
r                 388 drivers/nfc/fdp/fdp.c 		r = -EINVAL;
r                 396 drivers/nfc/fdp/fdp.c 	r = info->setup_patch_status;
r                 397 drivers/nfc/fdp/fdp.c 	if (r) {
r                 398 drivers/nfc/fdp/fdp.c 		nfc_err(dev, "OTP patch error 0x%x\n", r);
r                 399 drivers/nfc/fdp/fdp.c 		r = -EINVAL;
r                 410 drivers/nfc/fdp/fdp.c 	return r;
r                 418 drivers/nfc/fdp/fdp.c 	int r = 0;
r                 428 drivers/nfc/fdp/fdp.c 	r = fdp_nci_patch_cmd(ndev, NCI_PATCH_TYPE_RAM);
r                 429 drivers/nfc/fdp/fdp.c 	if (r)
r                 435 drivers/nfc/fdp/fdp.c 		r = conn_id;
r                 440 drivers/nfc/fdp/fdp.c 	r = fdp_nci_send_patch(ndev, conn_id, NCI_PATCH_TYPE_RAM);
r                 441 drivers/nfc/fdp/fdp.c 	if (r)
r                 452 drivers/nfc/fdp/fdp.c 	r = nci_core_conn_close(info->ndev, conn_id);
r                 453 drivers/nfc/fdp/fdp.c 	if (r)
r                 458 drivers/nfc/fdp/fdp.c 		nfc_err(dev, "RAM patch error 0x%x\n", r);
r                 459 drivers/nfc/fdp/fdp.c 		r = -EINVAL;
r                 467 drivers/nfc/fdp/fdp.c 	r = info->setup_patch_status;
r                 468 drivers/nfc/fdp/fdp.c 	if (r) {
r                 469 drivers/nfc/fdp/fdp.c 		nfc_err(dev, "RAM patch error 0x%x\n", r);
r                 470 drivers/nfc/fdp/fdp.c 		r = -EINVAL;
r                 481 drivers/nfc/fdp/fdp.c 	return r;
r                 489 drivers/nfc/fdp/fdp.c 	int r;
r                 494 drivers/nfc/fdp/fdp.c 	r = nci_core_init(ndev);
r                 495 drivers/nfc/fdp/fdp.c 	if (r)
r                 499 drivers/nfc/fdp/fdp.c 	r = fdp_nci_get_versions(ndev);
r                 500 drivers/nfc/fdp/fdp.c 	if (r)
r                 504 drivers/nfc/fdp/fdp.c 	r = fdp_nci_request_firmware(ndev);
r                 505 drivers/nfc/fdp/fdp.c 	if (r)
r                 510 drivers/nfc/fdp/fdp.c 		r = fdp_nci_patch_otp(ndev);
r                 511 drivers/nfc/fdp/fdp.c 		if (r)
r                 518 drivers/nfc/fdp/fdp.c 		r = fdp_nci_patch_ram(ndev);
r                 519 drivers/nfc/fdp/fdp.c 		if (r)
r                 529 drivers/nfc/fdp/fdp.c 		r = nci_core_init(ndev);
r                 530 drivers/nfc/fdp/fdp.c 		if (r)
r                 533 drivers/nfc/fdp/fdp.c 		r = fdp_nci_get_versions(ndev);
r                 534 drivers/nfc/fdp/fdp.c 		if (r)
r                 540 drivers/nfc/fdp/fdp.c 			r = -EINVAL;
r                 553 drivers/nfc/fdp/fdp.c 	nfc_err(dev, "Setup error %d\n", r);
r                 554 drivers/nfc/fdp/fdp.c 	return r;
r                 561 drivers/nfc/fdp/fdp.c 	int r;
r                 567 drivers/nfc/fdp/fdp.c 		r = fdp_nci_set_production_data(ndev, info->fw_vsc_cfg[3],
r                 569 drivers/nfc/fdp/fdp.c 		if (r) {
r                 571 drivers/nfc/fdp/fdp.c 				r);
r                 572 drivers/nfc/fdp/fdp.c 			return r;
r                 577 drivers/nfc/fdp/fdp.c 	r = fdp_nci_set_clock(ndev, info->clock_type, info->clock_freq);
r                 578 drivers/nfc/fdp/fdp.c 	if (r) {
r                 579 drivers/nfc/fdp/fdp.c 		nfc_err(dev, "Clock set error %d\n", r);
r                 580 drivers/nfc/fdp/fdp.c 		return r;
r                 586 drivers/nfc/fdp/fdp.c 	r = nci_core_reset(ndev);
r                 587 drivers/nfc/fdp/fdp.c 	if (r)
r                 588 drivers/nfc/fdp/fdp.c 		return r;
r                 741 drivers/nfc/fdp/fdp.c 	int r;
r                 770 drivers/nfc/fdp/fdp.c 	r = nci_register_device(ndev);
r                 771 drivers/nfc/fdp/fdp.c 	if (r)
r                 783 drivers/nfc/fdp/fdp.c 	return r;
r                  93 drivers/nfc/fdp/i2c.c 	int r;
r                 101 drivers/nfc/fdp/i2c.c 	r = i2c_master_send(client, skb->data, skb->len);
r                 102 drivers/nfc/fdp/i2c.c 	if (r == -EREMOTEIO) {  /* Retry, chip was in standby */
r                 104 drivers/nfc/fdp/i2c.c 		r = i2c_master_send(client, skb->data, skb->len);
r                 107 drivers/nfc/fdp/i2c.c 	if (r < 0 || r != skb->len)
r                 109 drivers/nfc/fdp/i2c.c 			__func__, r, skb->len);
r                 111 drivers/nfc/fdp/i2c.c 	if (r >= 0) {
r                 112 drivers/nfc/fdp/i2c.c 		if (r != skb->len) {
r                 113 drivers/nfc/fdp/i2c.c 			phy->hard_fault = r;
r                 114 drivers/nfc/fdp/i2c.c 			r = -EREMOTEIO;
r                 116 drivers/nfc/fdp/i2c.c 			r = 0;
r                 122 drivers/nfc/fdp/i2c.c 	return r;
r                 133 drivers/nfc/fdp/i2c.c 	int r, len;
r                 145 drivers/nfc/fdp/i2c.c 		r = i2c_master_recv(client, tmp, len);
r                 146 drivers/nfc/fdp/i2c.c 		if (r != len) {
r                 148 drivers/nfc/fdp/i2c.c 				__func__, r);
r                 153 drivers/nfc/fdp/i2c.c 		for (lrc = i = 0; i < r; i++)
r                 176 drivers/nfc/fdp/i2c.c 				r = -ENOMEM;
r                 192 drivers/nfc/fdp/i2c.c 		r = -EREMOTEIO;
r                 194 drivers/nfc/fdp/i2c.c 	return r;
r                 202 drivers/nfc/fdp/i2c.c 	int r;
r                 212 drivers/nfc/fdp/i2c.c 	r = fdp_nci_i2c_read(phy, &skb);
r                 214 drivers/nfc/fdp/i2c.c 	if (r == -EREMOTEIO)
r                 216 drivers/nfc/fdp/i2c.c 	else if (r == -ENOMEM || r == -EBADMSG)
r                 229 drivers/nfc/fdp/i2c.c 	int r;
r                 232 drivers/nfc/fdp/i2c.c 	r = device_property_read_u8(dev, FDP_DP_CLOCK_TYPE_NAME, clock_type);
r                 233 drivers/nfc/fdp/i2c.c 	if (r) {
r                 238 drivers/nfc/fdp/i2c.c 	r = device_property_read_u32(dev, FDP_DP_CLOCK_FREQ_NAME, clock_freq);
r                 239 drivers/nfc/fdp/i2c.c 	if (r) {
r                 245 drivers/nfc/fdp/i2c.c 		r = device_property_read_u8(dev, FDP_DP_FW_VSC_CFG_NAME,
r                 248 drivers/nfc/fdp/i2c.c 		if (r || len <= 0)
r                 258 drivers/nfc/fdp/i2c.c 		r = device_property_read_u8_array(dev, FDP_DP_FW_VSC_CFG_NAME,
r                 261 drivers/nfc/fdp/i2c.c 		if (r) {
r                 289 drivers/nfc/fdp/i2c.c 	int r = 0;
r                 312 drivers/nfc/fdp/i2c.c 	r = devm_request_threaded_irq(dev, client->irq,
r                 317 drivers/nfc/fdp/i2c.c 	if (r < 0) {
r                 319 drivers/nfc/fdp/i2c.c 		return r;
r                 322 drivers/nfc/fdp/i2c.c 	r = devm_acpi_dev_add_driver_gpios(dev, acpi_fdp_gpios);
r                 323 drivers/nfc/fdp/i2c.c 	if (r)
r                 338 drivers/nfc/fdp/i2c.c 	r = fdp_nci_probe(phy, &i2c_phy_ops, &phy->ndev,
r                 341 drivers/nfc/fdp/i2c.c 	if (r < 0) {
r                 343 drivers/nfc/fdp/i2c.c 		return r;
r                  99 drivers/nfc/mei_phy.c 	int bytes_recv, r;
r                 109 drivers/nfc/mei_phy.c 	r = mei_cldev_send(phy->cldev, (u8 *)&cmd, sizeof(struct mei_nfc_cmd));
r                 110 drivers/nfc/mei_phy.c 	if (r < 0) {
r                 112 drivers/nfc/mei_phy.c 		return r;
r                 126 drivers/nfc/mei_phy.c 		r = -EIO;
r                 138 drivers/nfc/mei_phy.c 	return r;
r                 147 drivers/nfc/mei_phy.c 	int bytes_recv, r;
r                 177 drivers/nfc/mei_phy.c 	r = mei_cldev_send(phy->cldev, (u8 *)cmd, connect_length);
r                 178 drivers/nfc/mei_phy.c 	if (r < 0) {
r                 179 drivers/nfc/mei_phy.c 		pr_err("Could not send connect cmd %d\n", r);
r                 186 drivers/nfc/mei_phy.c 		r = bytes_recv;
r                 187 drivers/nfc/mei_phy.c 		pr_err("Could not read connect response %d\n", r);
r                 200 drivers/nfc/mei_phy.c 	r = 0;
r                 206 drivers/nfc/mei_phy.c 	return r;
r                 254 drivers/nfc/mei_phy.c 	int r;
r                 258 drivers/nfc/mei_phy.c 	r = mei_nfc_send(phy, skb->data, skb->len);
r                 259 drivers/nfc/mei_phy.c 	if (r > 0)
r                 260 drivers/nfc/mei_phy.c 		r = 0;
r                 262 drivers/nfc/mei_phy.c 	return r;
r                 320 drivers/nfc/mei_phy.c 	int r;
r                 328 drivers/nfc/mei_phy.c 	r = mei_cldev_enable(phy->cldev);
r                 329 drivers/nfc/mei_phy.c 	if (r < 0) {
r                 330 drivers/nfc/mei_phy.c 		pr_err("Could not enable device %d\n", r);
r                 331 drivers/nfc/mei_phy.c 		return r;
r                 334 drivers/nfc/mei_phy.c 	r = mei_nfc_if_version(phy);
r                 335 drivers/nfc/mei_phy.c 	if (r < 0) {
r                 336 drivers/nfc/mei_phy.c 		pr_err("Could not enable device %d\n", r);
r                 340 drivers/nfc/mei_phy.c 	r = mei_nfc_connect(phy);
r                 341 drivers/nfc/mei_phy.c 	if (r < 0) {
r                 342 drivers/nfc/mei_phy.c 		pr_err("Could not connect to device %d\n", r);
r                 346 drivers/nfc/mei_phy.c 	r = mei_cldev_register_rx_cb(phy->cldev, nfc_mei_rx_cb);
r                 347 drivers/nfc/mei_phy.c 	if (r) {
r                 348 drivers/nfc/mei_phy.c 		pr_err("Event cb registration failed %d\n", r);
r                 359 drivers/nfc/mei_phy.c 	return r;
r                 105 drivers/nfc/microread/i2c.c 	int r;
r                 118 drivers/nfc/microread/i2c.c 	r = i2c_master_send(client, skb->data, skb->len);
r                 120 drivers/nfc/microread/i2c.c 	if (r == -EREMOTEIO) {	/* Retry, chip was in standby */
r                 122 drivers/nfc/microread/i2c.c 		r = i2c_master_send(client, skb->data, skb->len);
r                 125 drivers/nfc/microread/i2c.c 	if (r >= 0) {
r                 126 drivers/nfc/microread/i2c.c 		if (r != skb->len)
r                 127 drivers/nfc/microread/i2c.c 			r = -EREMOTEIO;
r                 129 drivers/nfc/microread/i2c.c 			r = 0;
r                 134 drivers/nfc/microread/i2c.c 	return r;
r                 141 drivers/nfc/microread/i2c.c 	int r;
r                 146 drivers/nfc/microread/i2c.c 	r = i2c_master_recv(client, &len, 1);
r                 147 drivers/nfc/microread/i2c.c 	if (r != 1) {
r                 155 drivers/nfc/microread/i2c.c 		r = -EBADMSG;
r                 161 drivers/nfc/microread/i2c.c 		r = -ENOMEM;
r                 167 drivers/nfc/microread/i2c.c 	r = i2c_master_recv(client, skb_put(*skb, len), len);
r                 168 drivers/nfc/microread/i2c.c 	if (r != len) {
r                 175 drivers/nfc/microread/i2c.c 	r = check_crc(*skb);
r                 176 drivers/nfc/microread/i2c.c 	if (r != 0) {
r                 178 drivers/nfc/microread/i2c.c 		r = -EBADMSG;
r                 191 drivers/nfc/microread/i2c.c 		r = -EREMOTEIO;
r                 195 drivers/nfc/microread/i2c.c 	return r;
r                 202 drivers/nfc/microread/i2c.c 	int r;
r                 212 drivers/nfc/microread/i2c.c 	r = microread_i2c_read(phy, &skb);
r                 213 drivers/nfc/microread/i2c.c 	if (r == -EREMOTEIO) {
r                 214 drivers/nfc/microread/i2c.c 		phy->hard_fault = r;
r                 219 drivers/nfc/microread/i2c.c 	} else if ((r == -ENOMEM) || (r == -EBADMSG)) {
r                 238 drivers/nfc/microread/i2c.c 	int r;
r                 250 drivers/nfc/microread/i2c.c 	r = request_threaded_irq(client->irq, NULL, microread_i2c_irq_thread_fn,
r                 253 drivers/nfc/microread/i2c.c 	if (r) {
r                 255 drivers/nfc/microread/i2c.c 		return r;
r                 258 drivers/nfc/microread/i2c.c 	r = microread_probe(phy, &i2c_phy_ops, LLC_SHDLC_NAME,
r                 262 drivers/nfc/microread/i2c.c 	if (r < 0)
r                 272 drivers/nfc/microread/i2c.c 	return r;
r                  25 drivers/nfc/microread/mei.c 	int r;
r                  35 drivers/nfc/microread/mei.c 	r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
r                  38 drivers/nfc/microread/mei.c 	if (r < 0) {
r                  41 drivers/nfc/microread/mei.c 		return r;
r                 181 drivers/nfc/microread/microread.c 	int r;
r                 185 drivers/nfc/microread/microread.c 	r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_A,
r                 187 drivers/nfc/microread/microread.c 	if (r)
r                 188 drivers/nfc/microread/microread.c 		return r;
r                 190 drivers/nfc/microread/microread.c 	r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_A_3,
r                 192 drivers/nfc/microread/microread.c 	if (r)
r                 193 drivers/nfc/microread/microread.c 		return r;
r                 198 drivers/nfc/microread/microread.c 	r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_ISO_B,
r                 200 drivers/nfc/microread/microread.c 	if (r)
r                 201 drivers/nfc/microread/microread.c 		return r;
r                 203 drivers/nfc/microread/microread.c 	r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_NFC_T1,
r                 205 drivers/nfc/microread/microread.c 	if (r)
r                 206 drivers/nfc/microread/microread.c 		return r;
r                 212 drivers/nfc/microread/microread.c 	r = nfc_hci_send_cmd(hdev, MICROREAD_GATE_ID_MREAD_NFC_T3,
r                 215 drivers/nfc/microread/microread.c 	return r;
r                 228 drivers/nfc/microread/microread.c 	int r;
r                 263 drivers/nfc/microread/microread.c 	r = nfc_hci_send_event(hdev, MICROREAD_GATE_ID_MREAD_ISO_A,
r                 265 drivers/nfc/microread/microread.c 	if (r)
r                 266 drivers/nfc/microread/microread.c 		return r;
r                 269 drivers/nfc/microread/microread.c 	r = nfc_hci_set_param(hdev, MICROREAD_GATE_ID_P2P_TARGET,
r                 271 drivers/nfc/microread/microread.c 	if (r)
r                 272 drivers/nfc/microread/microread.c 		return r;
r                 275 drivers/nfc/microread/microread.c 		r = nfc_hci_set_param(hdev, MICROREAD_GATE_ID_P2P_INITIATOR,
r                 278 drivers/nfc/microread/microread.c 		if (r)
r                 279 drivers/nfc/microread/microread.c 			return r;
r                 283 drivers/nfc/microread/microread.c 		r = nfc_hci_set_param(hdev, MICROREAD_GATE_ID_P2P_TARGET,
r                 286 drivers/nfc/microread/microread.c 		if (r)
r                 287 drivers/nfc/microread/microread.c 			return r;
r                 290 drivers/nfc/microread/microread.c 		r = nfc_hci_set_param(hdev, MICROREAD_GATE_ID_P2P_TARGET,
r                 292 drivers/nfc/microread/microread.c 		if (r)
r                 293 drivers/nfc/microread/microread.c 			return r;
r                 306 drivers/nfc/microread/microread.c 	int r;
r                 308 drivers/nfc/microread/microread.c 	r = nfc_hci_get_param(hdev, target->hci_reader_gate,
r                 310 drivers/nfc/microread/microread.c 	if (r < 0)
r                 311 drivers/nfc/microread/microread.c 		return r;
r                 314 drivers/nfc/microread/microread.c 		r = -EPROTO;
r                 318 drivers/nfc/microread/microread.c 	r = nfc_set_remote_general_bytes(hdev->ndev, rgb_skb->data,
r                 320 drivers/nfc/microread/microread.c 	if (r == 0)
r                 321 drivers/nfc/microread/microread.c 		r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode,
r                 326 drivers/nfc/microread/microread.c 	return r;
r                 459 drivers/nfc/microread/microread.c 	int r;
r                 461 drivers/nfc/microread/microread.c 	r = nfc_hci_send_event(hdev, MICROREAD_GATE_ID_P2P_TARGET,
r                 467 drivers/nfc/microread/microread.c 	return r;
r                 474 drivers/nfc/microread/microread.c 	int r = 0;
r                 480 drivers/nfc/microread/microread.c 		r = -ENOMEM;
r                 495 drivers/nfc/microread/microread.c 			r = -EINVAL;
r                 509 drivers/nfc/microread/microread.c 			r = -EINVAL;
r                 537 drivers/nfc/microread/microread.c 	r = nfc_targets_found(hdev->ndev, targets, 1);
r                 545 drivers/nfc/microread/microread.c 	if (r)
r                 546 drivers/nfc/microread/microread.c 		pr_err("Failed to handle discovered target err=%d\n", r);
r                 552 drivers/nfc/microread/microread.c 	int r;
r                 576 drivers/nfc/microread/microread.c 		r = nfc_tm_data_received(hdev->ndev, skb);
r                 585 drivers/nfc/microread/microread.c 		r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK,
r                 605 drivers/nfc/microread/microread.c 		r = nfc_tm_data_received(hdev->ndev, skb);
r                 612 drivers/nfc/microread/microread.c 		r = nfc_hci_set_param(hdev, MICROREAD_GATE_ID_P2P_TARGET,
r                 614 drivers/nfc/microread/microread.c 		if (r)
r                 617 drivers/nfc/microread/microread.c 		r = nfc_hci_send_event(hdev, gate,
r                 626 drivers/nfc/microread/microread.c 	return r;
r                 653 drivers/nfc/microread/microread.c 	int r;
r                 657 drivers/nfc/microread/microread.c 		r = -ENOMEM;
r                 687 drivers/nfc/microread/microread.c 		r = -ENOMEM;
r                 693 drivers/nfc/microread/microread.c 	r = nfc_hci_register_device(info->hdev);
r                 694 drivers/nfc/microread/microread.c 	if (r)
r                 708 drivers/nfc/microread/microread.c 	return r;
r                  33 drivers/nfc/nxp-nci/core.c 	int r = 0;
r                  38 drivers/nfc/nxp-nci/core.c 		r = -EBUSY;
r                  43 drivers/nfc/nxp-nci/core.c 		r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_NCI);
r                  49 drivers/nfc/nxp-nci/core.c 	return r;
r                  55 drivers/nfc/nxp-nci/core.c 	int r = 0;
r                  60 drivers/nfc/nxp-nci/core.c 		r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD);
r                  65 drivers/nfc/nxp-nci/core.c 	return r;
r                  71 drivers/nfc/nxp-nci/core.c 	int r;
r                  74 drivers/nfc/nxp-nci/core.c 		r = -ENOTSUPP;
r                  79 drivers/nfc/nxp-nci/core.c 		r = -EINVAL;
r                  83 drivers/nfc/nxp-nci/core.c 	r = info->phy_ops->write(info->phy_id, skb);
r                  84 drivers/nfc/nxp-nci/core.c 	if (r < 0)
r                  88 drivers/nfc/nxp-nci/core.c 	return r;
r                 104 drivers/nfc/nxp-nci/core.c 	int r;
r                 108 drivers/nfc/nxp-nci/core.c 		r = -ENOMEM;
r                 121 drivers/nfc/nxp-nci/core.c 		r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD);
r                 122 drivers/nfc/nxp-nci/core.c 		if (r < 0)
r                 131 drivers/nfc/nxp-nci/core.c 		r = -ENOMEM;
r                 137 drivers/nfc/nxp-nci/core.c 	r = nci_register_device(info->ndev);
r                 138 drivers/nfc/nxp-nci/core.c 	if (r < 0)
r                 148 drivers/nfc/nxp-nci/core.c 	return r;
r                  55 drivers/nfc/nxp-nci/firmware.c 	int r;
r                  58 drivers/nfc/nxp-nci/firmware.c 		r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD);
r                  59 drivers/nfc/nxp-nci/firmware.c 		if (r < 0 && result == 0)
r                  60 drivers/nfc/nxp-nci/firmware.c 			result = -r;
r                  95 drivers/nfc/nxp-nci/firmware.c 	int r;
r                  99 drivers/nfc/nxp-nci/firmware.c 		r = -ENOMEM;
r                 121 drivers/nfc/nxp-nci/firmware.c 	r = info->phy_ops->write(info->phy_id, skb);
r                 122 drivers/nfc/nxp-nci/firmware.c 	if (r >= 0)
r                 123 drivers/nfc/nxp-nci/firmware.c 		r = chunk_len;
r                 128 drivers/nfc/nxp-nci/firmware.c 	return r;
r                 135 drivers/nfc/nxp-nci/firmware.c 	int r;
r                 149 drivers/nfc/nxp-nci/firmware.c 	r = nxp_nci_fw_send_chunk(info);
r                 150 drivers/nfc/nxp-nci/firmware.c 	if (r < 0)
r                 151 drivers/nfc/nxp-nci/firmware.c 		return r;
r                 153 drivers/nfc/nxp-nci/firmware.c 	fw_info->written += r;
r                 173 drivers/nfc/nxp-nci/firmware.c 	int r;
r                 180 drivers/nfc/nxp-nci/firmware.c 	r = fw_info->cmd_result;
r                 181 drivers/nfc/nxp-nci/firmware.c 	if (r < 0)
r                 191 drivers/nfc/nxp-nci/firmware.c 		r = nxp_nci_fw_send(info);
r                 194 drivers/nfc/nxp-nci/firmware.c 	if (r < 0 || fw_info->size == 0)
r                 195 drivers/nfc/nxp-nci/firmware.c 		nxp_nci_fw_work_complete(info, r);
r                 203 drivers/nfc/nxp-nci/firmware.c 	int r;
r                 208 drivers/nfc/nxp-nci/firmware.c 		r = -ENOTSUPP;
r                 213 drivers/nfc/nxp-nci/firmware.c 		r = -EINVAL;
r                 219 drivers/nfc/nxp-nci/firmware.c 	r = request_firmware(&fw_info->fw, firmware_name,
r                 221 drivers/nfc/nxp-nci/firmware.c 	if (r < 0)
r                 224 drivers/nfc/nxp-nci/firmware.c 	r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_FW);
r                 225 drivers/nfc/nxp-nci/firmware.c 	if (r < 0) {
r                 242 drivers/nfc/nxp-nci/firmware.c 	return r;
r                  62 drivers/nfc/nxp-nci/i2c.c 	int r;
r                  69 drivers/nfc/nxp-nci/i2c.c 	r = i2c_master_send(client, skb->data, skb->len);
r                  70 drivers/nfc/nxp-nci/i2c.c 	if (r < 0) {
r                  73 drivers/nfc/nxp-nci/i2c.c 		r = i2c_master_send(client, skb->data, skb->len);
r                  76 drivers/nfc/nxp-nci/i2c.c 	if (r < 0) {
r                  77 drivers/nfc/nxp-nci/i2c.c 		nfc_err(&client->dev, "Error %d on I2C send\n", r);
r                  78 drivers/nfc/nxp-nci/i2c.c 	} else if (r != skb->len) {
r                  81 drivers/nfc/nxp-nci/i2c.c 			r, skb->len);
r                  82 drivers/nfc/nxp-nci/i2c.c 		r = -EREMOTEIO;
r                  85 drivers/nfc/nxp-nci/i2c.c 		r = 0;
r                  88 drivers/nfc/nxp-nci/i2c.c 	return r;
r                 102 drivers/nfc/nxp-nci/i2c.c 	int r;
r                 104 drivers/nfc/nxp-nci/i2c.c 	r = i2c_master_recv(client, (u8 *) &header, NXP_NCI_FW_HDR_LEN);
r                 105 drivers/nfc/nxp-nci/i2c.c 	if (r < 0) {
r                 107 drivers/nfc/nxp-nci/i2c.c 	} else if (r != NXP_NCI_FW_HDR_LEN) {
r                 108 drivers/nfc/nxp-nci/i2c.c 		nfc_err(&client->dev, "Incorrect header length: %u\n", r);
r                 109 drivers/nfc/nxp-nci/i2c.c 		r = -EBADMSG;
r                 118 drivers/nfc/nxp-nci/i2c.c 		r = -ENOMEM;
r                 124 drivers/nfc/nxp-nci/i2c.c 	r = i2c_master_recv(client, skb_put(*skb, frame_len), frame_len);
r                 125 drivers/nfc/nxp-nci/i2c.c 	if (r != frame_len) {
r                 128 drivers/nfc/nxp-nci/i2c.c 			r, frame_len);
r                 129 drivers/nfc/nxp-nci/i2c.c 		r = -EBADMSG;
r                 138 drivers/nfc/nxp-nci/i2c.c 	return r;
r                 146 drivers/nfc/nxp-nci/i2c.c 	int r;
r                 148 drivers/nfc/nxp-nci/i2c.c 	r = i2c_master_recv(client, (u8 *) &header, NCI_CTRL_HDR_SIZE);
r                 149 drivers/nfc/nxp-nci/i2c.c 	if (r < 0) {
r                 151 drivers/nfc/nxp-nci/i2c.c 	} else if (r != NCI_CTRL_HDR_SIZE) {
r                 152 drivers/nfc/nxp-nci/i2c.c 		nfc_err(&client->dev, "Incorrect header length: %u\n", r);
r                 153 drivers/nfc/nxp-nci/i2c.c 		r = -EBADMSG;
r                 159 drivers/nfc/nxp-nci/i2c.c 		r = -ENOMEM;
r                 165 drivers/nfc/nxp-nci/i2c.c 	r = i2c_master_recv(client, skb_put(*skb, header.plen), header.plen);
r                 166 drivers/nfc/nxp-nci/i2c.c 	if (r != header.plen) {
r                 169 drivers/nfc/nxp-nci/i2c.c 			r, header.plen);
r                 170 drivers/nfc/nxp-nci/i2c.c 		r = -EBADMSG;
r                 179 drivers/nfc/nxp-nci/i2c.c 	return r;
r                 189 drivers/nfc/nxp-nci/i2c.c 	int r = 0;
r                 211 drivers/nfc/nxp-nci/i2c.c 		r = nxp_nci_i2c_nci_read(phy, &skb);
r                 214 drivers/nfc/nxp-nci/i2c.c 		r = nxp_nci_i2c_fw_read(phy, &skb);
r                 217 drivers/nfc/nxp-nci/i2c.c 		r = -EREMOTEIO;
r                 221 drivers/nfc/nxp-nci/i2c.c 	if (r == -EREMOTEIO) {
r                 222 drivers/nfc/nxp-nci/i2c.c 		phy->hard_fault = r;
r                 226 drivers/nfc/nxp-nci/i2c.c 	if (r < 0) {
r                 227 drivers/nfc/nxp-nci/i2c.c 		nfc_err(&client->dev, "Read failed with error %d\n", r);
r                 264 drivers/nfc/nxp-nci/i2c.c 	int r;
r                 279 drivers/nfc/nxp-nci/i2c.c 	r = devm_acpi_dev_add_driver_gpios(dev, acpi_nxp_nci_gpios);
r                 280 drivers/nfc/nxp-nci/i2c.c 	if (r)
r                 295 drivers/nfc/nxp-nci/i2c.c 	r = nxp_nci_probe(phy, &client->dev, &i2c_phy_ops,
r                 297 drivers/nfc/nxp-nci/i2c.c 	if (r < 0)
r                 298 drivers/nfc/nxp-nci/i2c.c 		return r;
r                 300 drivers/nfc/nxp-nci/i2c.c 	r = request_threaded_irq(client->irq, NULL,
r                 304 drivers/nfc/nxp-nci/i2c.c 	if (r < 0)
r                 307 drivers/nfc/nxp-nci/i2c.c 	return r;
r                 104 drivers/nfc/pn533/i2c.c 	int r;
r                 110 drivers/nfc/pn533/i2c.c 	r = i2c_master_recv(client, skb_put(*skb, len), len);
r                 111 drivers/nfc/pn533/i2c.c 	if (r != len) {
r                 112 drivers/nfc/pn533/i2c.c 		nfc_err(&client->dev, "cannot read. r=%d len=%d\n", r, len);
r                 136 drivers/nfc/pn533/i2c.c 	int r;
r                 149 drivers/nfc/pn533/i2c.c 	r = pn533_i2c_read(phy, &skb);
r                 150 drivers/nfc/pn533/i2c.c 	if (r == -EREMOTEIO) {
r                 151 drivers/nfc/pn533/i2c.c 		phy->hard_fault = r;
r                 156 drivers/nfc/pn533/i2c.c 	} else if ((r == -ENOMEM) || (r == -EBADMSG) || (r == -EBUSY)) {
r                 178 drivers/nfc/pn533/i2c.c 	int r = 0;
r                 204 drivers/nfc/pn533/i2c.c 		r = PTR_ERR(priv);
r                 205 drivers/nfc/pn533/i2c.c 		return r;
r                 210 drivers/nfc/pn533/i2c.c 	r = request_threaded_irq(client->irq, NULL, pn533_i2c_irq_thread_fn,
r                 214 drivers/nfc/pn533/i2c.c 	if (r < 0) {
r                 219 drivers/nfc/pn533/i2c.c 	r = pn533_finalize_setup(priv);
r                 220 drivers/nfc/pn533/i2c.c 	if (r)
r                 231 drivers/nfc/pn533/i2c.c 	return r;
r                 297 drivers/nfc/pn544/i2c.c 	int r;
r                 310 drivers/nfc/pn544/i2c.c 	r = i2c_master_send(client, skb->data, skb->len);
r                 312 drivers/nfc/pn544/i2c.c 	if (r == -EREMOTEIO) {	/* Retry, chip was in standby */
r                 314 drivers/nfc/pn544/i2c.c 		r = i2c_master_send(client, skb->data, skb->len);
r                 317 drivers/nfc/pn544/i2c.c 	if (r >= 0) {
r                 318 drivers/nfc/pn544/i2c.c 		if (r != skb->len)
r                 319 drivers/nfc/pn544/i2c.c 			r = -EREMOTEIO;
r                 321 drivers/nfc/pn544/i2c.c 			r = 0;
r                 326 drivers/nfc/pn544/i2c.c 	return r;
r                 360 drivers/nfc/pn544/i2c.c 	int r;
r                 365 drivers/nfc/pn544/i2c.c 	r = i2c_master_recv(client, &len, 1);
r                 366 drivers/nfc/pn544/i2c.c 	if (r != 1) {
r                 374 drivers/nfc/pn544/i2c.c 		r = -EBADMSG;
r                 380 drivers/nfc/pn544/i2c.c 		r = -ENOMEM;
r                 386 drivers/nfc/pn544/i2c.c 	r = i2c_master_recv(client, skb_put(*skb, len), len);
r                 387 drivers/nfc/pn544/i2c.c 	if (r != len) {
r                 394 drivers/nfc/pn544/i2c.c 	r = check_crc((*skb)->data, (*skb)->len);
r                 395 drivers/nfc/pn544/i2c.c 	if (r != 0) {
r                 397 drivers/nfc/pn544/i2c.c 		r = -EBADMSG;
r                 410 drivers/nfc/pn544/i2c.c 		r = -EREMOTEIO;
r                 414 drivers/nfc/pn544/i2c.c 	return r;
r                 419 drivers/nfc/pn544/i2c.c 	int r;
r                 423 drivers/nfc/pn544/i2c.c 	r = i2c_master_recv(client, (char *) &response, sizeof(response));
r                 424 drivers/nfc/pn544/i2c.c 	if (r != sizeof(response)) {
r                 487 drivers/nfc/pn544/i2c.c 	int r;
r                 504 drivers/nfc/pn544/i2c.c 		r = pn544_hci_i2c_read(phy, &skb);
r                 505 drivers/nfc/pn544/i2c.c 		if (r == -EREMOTEIO) {
r                 506 drivers/nfc/pn544/i2c.c 			phy->hard_fault = r;
r                 511 drivers/nfc/pn544/i2c.c 		} else if ((r == -ENOMEM) || (r == -EBADMSG)) {
r                 567 drivers/nfc/pn544/i2c.c 	int r;
r                 591 drivers/nfc/pn544/i2c.c 	r = i2c_master_send(client, frame, framelen);
r                 593 drivers/nfc/pn544/i2c.c 	if (r == framelen)
r                 595 drivers/nfc/pn544/i2c.c 	else if (r < 0)
r                 596 drivers/nfc/pn544/i2c.c 		return r;
r                 605 drivers/nfc/pn544/i2c.c 	int r;
r                 630 drivers/nfc/pn544/i2c.c 	r = i2c_master_send(client, (const char *) &frame, sizeof(frame));
r                 632 drivers/nfc/pn544/i2c.c 	if (r == sizeof(frame))
r                 634 drivers/nfc/pn544/i2c.c 	else if (r < 0)
r                 635 drivers/nfc/pn544/i2c.c 		return r;
r                 642 drivers/nfc/pn544/i2c.c 	int r;
r                 644 drivers/nfc/pn544/i2c.c 	r = pn544_hci_i2c_fw_write_cmd(phy->i2c_dev,
r                 648 drivers/nfc/pn544/i2c.c 	if (r < 0)
r                 649 drivers/nfc/pn544/i2c.c 		return r;
r                 651 drivers/nfc/pn544/i2c.c 	phy->fw_written += r;
r                 663 drivers/nfc/pn544/i2c.c 	int r;
r                 678 drivers/nfc/pn544/i2c.c 	r = i2c_master_send(phy->i2c_dev, buf, chunklen);
r                 680 drivers/nfc/pn544/i2c.c 	if (r == chunklen)
r                 682 drivers/nfc/pn544/i2c.c 	else if (r < 0)
r                 683 drivers/nfc/pn544/i2c.c 		return r;
r                 692 drivers/nfc/pn544/i2c.c 	int r;
r                 706 drivers/nfc/pn544/i2c.c 		r = i2c_master_send(phy->i2c_dev,
r                 709 drivers/nfc/pn544/i2c.c 		if (r == phy->fw_blob_size)
r                 711 drivers/nfc/pn544/i2c.c 		else if (r < 0)
r                 712 drivers/nfc/pn544/i2c.c 			return r;
r                 717 drivers/nfc/pn544/i2c.c 	r = pn544_hci_i2c_fw_secure_write_frame_cmd(phy,
r                 720 drivers/nfc/pn544/i2c.c 	if (r < 0)
r                 721 drivers/nfc/pn544/i2c.c 		return r;
r                 724 drivers/nfc/pn544/i2c.c 	phy->fw_written += r;
r                 741 drivers/nfc/pn544/i2c.c 	int r;
r                 749 drivers/nfc/pn544/i2c.c 		r = request_firmware(&phy->fw, phy->firmware_name,
r                 751 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 764 drivers/nfc/pn544/i2c.c 			r = pn544_hci_i2c_fw_write_chunk(phy);
r                 771 drivers/nfc/pn544/i2c.c 			r = pn544_hci_i2c_fw_secure_write_frame(phy);
r                 774 drivers/nfc/pn544/i2c.c 			r = -ENOTSUPP;
r                 779 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 780 drivers/nfc/pn544/i2c.c 			pn544_hci_i2c_fw_work_complete(phy, r);
r                 784 drivers/nfc/pn544/i2c.c 		r = phy->fw_cmd_result;
r                 785 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 789 drivers/nfc/pn544/i2c.c 			r = pn544_hci_i2c_fw_check_cmd(phy->i2c_dev,
r                 793 drivers/nfc/pn544/i2c.c 			if (r < 0)
r                 799 drivers/nfc/pn544/i2c.c 		r = pn544_hci_i2c_fw_write_chunk(phy);
r                 802 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 803 drivers/nfc/pn544/i2c.c 			pn544_hci_i2c_fw_work_complete(phy, r);
r                 807 drivers/nfc/pn544/i2c.c 		r = phy->fw_cmd_result;
r                 808 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 820 drivers/nfc/pn544/i2c.c 			r = pn544_hci_i2c_fw_write_chunk(phy);
r                 824 drivers/nfc/pn544/i2c.c 		if (r < 0 || phy->fw_blob_size == 0)
r                 825 drivers/nfc/pn544/i2c.c 			pn544_hci_i2c_fw_work_complete(phy, r);
r                 829 drivers/nfc/pn544/i2c.c 		r = phy->fw_cmd_result;
r                 830 drivers/nfc/pn544/i2c.c 		if (r < 0)
r                 833 drivers/nfc/pn544/i2c.c 		if (r == PN544_FW_CMD_RESULT_CHUNK_OK) {
r                 834 drivers/nfc/pn544/i2c.c 			r = pn544_hci_i2c_fw_secure_write_frame(phy);
r                 848 drivers/nfc/pn544/i2c.c 				r = pn544_hci_i2c_fw_secure_write_frame(phy);
r                 853 drivers/nfc/pn544/i2c.c 		if (r < 0 || phy->fw_size == 0)
r                 854 drivers/nfc/pn544/i2c.c 			pn544_hci_i2c_fw_work_complete(phy, r);
r                 876 drivers/nfc/pn544/i2c.c 	int r = 0;
r                 897 drivers/nfc/pn544/i2c.c 	r = devm_acpi_dev_add_driver_gpios(dev, acpi_pn544_gpios);
r                 898 drivers/nfc/pn544/i2c.c 	if (r)
r                 917 drivers/nfc/pn544/i2c.c 	r = devm_request_threaded_irq(&client->dev, client->irq, NULL,
r                 921 drivers/nfc/pn544/i2c.c 	if (r < 0) {
r                 923 drivers/nfc/pn544/i2c.c 		return r;
r                 926 drivers/nfc/pn544/i2c.c 	r = pn544_hci_probe(phy, &i2c_phy_ops, LLC_SHDLC_NAME,
r                 930 drivers/nfc/pn544/i2c.c 	if (r < 0)
r                 931 drivers/nfc/pn544/i2c.c 		return r;
r                  23 drivers/nfc/pn544/mei.c 	int r;
r                  33 drivers/nfc/pn544/mei.c 	r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME,
r                  36 drivers/nfc/pn544/mei.c 	if (r < 0) {
r                  39 drivers/nfc/pn544/mei.c 		return r;
r                 130 drivers/nfc/pn544/pn544.c 	int r = 0;
r                 135 drivers/nfc/pn544/pn544.c 		r = -EBUSY;
r                 139 drivers/nfc/pn544/pn544.c 	r = info->phy_ops->enable(info->phy_id);
r                 141 drivers/nfc/pn544/pn544.c 	if (r == 0)
r                 146 drivers/nfc/pn544/pn544.c 	return r;
r                 244 drivers/nfc/pn544/pn544.c 	int r;
r                 252 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_cmd(hdev, PN544_SYS_MGMT_GATE, PN544_WRITE,
r                 254 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 255 drivers/nfc/pn544/pn544.c 			return r;
r                 273 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE,
r                 275 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 276 drivers/nfc/pn544/pn544.c 		return r;
r                 279 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_SYS_MGMT_GATE,
r                 281 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 282 drivers/nfc/pn544/pn544.c 		return r;
r                 285 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, NFC_HCI_RF_READER_A_GATE,
r                 287 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 288 drivers/nfc/pn544/pn544.c 		return r;
r                 290 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 292 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 293 drivers/nfc/pn544/pn544.c 		return r;
r                 296 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_POLLING_LOOP_MGMT_GATE,
r                 298 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 299 drivers/nfc/pn544/pn544.c 		return r;
r                 302 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_POLLING_LOOP_MGMT_GATE,
r                 304 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 305 drivers/nfc/pn544/pn544.c 		return r;
r                 307 drivers/nfc/pn544/pn544.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ID_MGMT_GATE,
r                 309 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 310 drivers/nfc/pn544/pn544.c 		return r;
r                 337 drivers/nfc/pn544/pn544.c 	int r;
r                 347 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 349 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 350 drivers/nfc/pn544/pn544.c 		return r;
r                 354 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_POLLING_LOOP_MGMT_GATE,
r                 356 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 357 drivers/nfc/pn544/pn544.c 		return r;
r                 360 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_POLLING_LOOP_MGMT_GATE,
r                 362 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 363 drivers/nfc/pn544/pn544.c 		return r;
r                 375 drivers/nfc/pn544/pn544.c 	r = nfc_hci_set_param(hdev, PN544_POLLING_LOOP_MGMT_GATE,
r                 377 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 378 drivers/nfc/pn544/pn544.c 		return r;
r                 391 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_event(hdev,
r                 394 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 395 drivers/nfc/pn544/pn544.c 			return r;
r                 397 drivers/nfc/pn544/pn544.c 		r = nfc_hci_set_param(hdev,
r                 400 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 401 drivers/nfc/pn544/pn544.c 			return r;
r                 403 drivers/nfc/pn544/pn544.c 		r = nfc_hci_set_param(hdev,
r                 406 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 407 drivers/nfc/pn544/pn544.c 			return r;
r                 409 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_event(hdev,
r                 412 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 419 drivers/nfc/pn544/pn544.c 		r = nfc_hci_set_param(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
r                 421 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 422 drivers/nfc/pn544/pn544.c 			return r;
r                 424 drivers/nfc/pn544/pn544.c 		r = nfc_hci_set_param(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
r                 426 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 427 drivers/nfc/pn544/pn544.c 			return r;
r                 429 drivers/nfc/pn544/pn544.c 		r = nfc_hci_set_param(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
r                 431 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 432 drivers/nfc/pn544/pn544.c 			return r;
r                 435 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 437 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 441 drivers/nfc/pn544/pn544.c 	return r;
r                 449 drivers/nfc/pn544/pn544.c 	int r;
r                 451 drivers/nfc/pn544/pn544.c 	r = nfc_hci_get_param(hdev, target->hci_reader_gate,
r                 453 drivers/nfc/pn544/pn544.c 	if (r < 0)
r                 454 drivers/nfc/pn544/pn544.c 		return r;
r                 457 drivers/nfc/pn544/pn544.c 		r = -EPROTO;
r                 463 drivers/nfc/pn544/pn544.c 	r = nfc_set_remote_general_bytes(hdev->ndev, rgb_skb->data,
r                 466 drivers/nfc/pn544/pn544.c 	if (r == 0)
r                 467 drivers/nfc/pn544/pn544.c 		r = nfc_dep_link_is_up(hdev->ndev, target->idx, comm_mode,
r                 471 drivers/nfc/pn544/pn544.c 	return r;
r                 507 drivers/nfc/pn544/pn544.c 	int r = 0;
r                 510 drivers/nfc/pn544/pn544.c 		return r;
r                 513 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_cmd(hdev,
r                 516 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 517 drivers/nfc/pn544/pn544.c 			return r;
r                 525 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_cmd(hdev, NFC_HCI_RF_READER_A_GATE,
r                 529 drivers/nfc/pn544/pn544.c 		r = nfc_hci_get_param(hdev, PN544_RF_READER_F_GATE,
r                 531 drivers/nfc/pn544/pn544.c 		if (r < 0)
r                 532 drivers/nfc/pn544/pn544.c 			return r;
r                 542 drivers/nfc/pn544/pn544.c 			r = nfc_hci_send_cmd(hdev,
r                 546 drivers/nfc/pn544/pn544.c 			if (r < 0)
r                 547 drivers/nfc/pn544/pn544.c 				return r;
r                 553 drivers/nfc/pn544/pn544.c 			r = nfc_hci_send_cmd(hdev, PN544_RF_READER_F_GATE,
r                 564 drivers/nfc/pn544/pn544.c 			r = nfc_hci_send_cmd(hdev, NFC_HCI_RF_READER_A_GATE,
r                 569 drivers/nfc/pn544/pn544.c 	return r;
r                 669 drivers/nfc/pn544/pn544.c 	int r;
r                 674 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_event(hdev, PN544_RF_READER_NFCIP1_TARGET_GATE,
r                 679 drivers/nfc/pn544/pn544.c 	return r;
r                 721 drivers/nfc/pn544/pn544.c 	int r;
r                 727 drivers/nfc/pn544/pn544.c 			r = nfc_hci_target_discovered(hdev, gate);
r                 729 drivers/nfc/pn544/pn544.c 			r = nfc_hci_get_param(hdev, gate, PN544_DEP_ATR_REQ,
r                 731 drivers/nfc/pn544/pn544.c 			if (r < 0)
r                 734 drivers/nfc/pn544/pn544.c 			r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK,
r                 740 drivers/nfc/pn544/pn544.c 			r = -EINVAL;
r                 744 drivers/nfc/pn544/pn544.c 		r = nfc_hci_send_event(hdev, gate, NFC_HCI_EVT_END_OPERATION,
r                 749 drivers/nfc/pn544/pn544.c 			r = -EPROTO;
r                 755 drivers/nfc/pn544/pn544.c 			r = -EPROTO;
r                 768 drivers/nfc/pn544/pn544.c 	return r;
r                 787 drivers/nfc/pn544/pn544.c 	int r;
r                 789 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_cmd(hdev, PN544_SYS_MGMT_GATE, PN544_TEST_SWP,
r                 792 drivers/nfc/pn544/pn544.c 	if (r == 0) {
r                 799 drivers/nfc/pn544/pn544.c 	r = nfc_hci_send_event(hdev, PN544_NFC_WI_MGMT_GATE,
r                 802 drivers/nfc/pn544/pn544.c 	if (r == 0)
r                 827 drivers/nfc/pn544/pn544.c 	int r;
r                 834 drivers/nfc/pn544/pn544.c 			r = nfc_hci_send_cmd(hdev, PN544_SYS_MGMT_GATE,
r                 836 drivers/nfc/pn544/pn544.c 			if (r < 0)
r                 837 drivers/nfc/pn544/pn544.c 				return r;
r                 911 drivers/nfc/pn544/pn544.c 	int r;
r                 915 drivers/nfc/pn544/pn544.c 		r = -ENOMEM;
r                 948 drivers/nfc/pn544/pn544.c 		r = -ENOMEM;
r                 954 drivers/nfc/pn544/pn544.c 	r = nfc_hci_register_device(info->hdev);
r                 955 drivers/nfc/pn544/pn544.c 	if (r)
r                 969 drivers/nfc/pn544/pn544.c 	return r;
r                  35 drivers/nfc/st-nci/core.c 	int r;
r                  40 drivers/nfc/st-nci/core.c 	r = ndlc_open(info->ndlc);
r                  41 drivers/nfc/st-nci/core.c 	if (r)
r                  44 drivers/nfc/st-nci/core.c 	return r;
r                 118 drivers/nfc/st-nci/core.c 	int r;
r                 144 drivers/nfc/st-nci/core.c 	r = st_nci_vendor_cmds_init(ndlc->ndev);
r                 145 drivers/nfc/st-nci/core.c 	if (r) {
r                 150 drivers/nfc/st-nci/core.c 	r = nci_register_device(ndlc->ndev);
r                 151 drivers/nfc/st-nci/core.c 	if (r) {
r                 160 drivers/nfc/st-nci/core.c 	return r;
r                  75 drivers/nfc/st-nci/i2c.c 	int r;
r                  82 drivers/nfc/st-nci/i2c.c 	r = i2c_master_send(client, skb->data, skb->len);
r                  83 drivers/nfc/st-nci/i2c.c 	if (r < 0) {  /* Retry, chip was in standby */
r                  85 drivers/nfc/st-nci/i2c.c 		r = i2c_master_send(client, skb->data, skb->len);
r                  88 drivers/nfc/st-nci/i2c.c 	if (r >= 0) {
r                  89 drivers/nfc/st-nci/i2c.c 		if (r != skb->len)
r                  90 drivers/nfc/st-nci/i2c.c 			r = -EREMOTEIO;
r                  92 drivers/nfc/st-nci/i2c.c 			r = 0;
r                  95 drivers/nfc/st-nci/i2c.c 	return r;
r                 109 drivers/nfc/st-nci/i2c.c 	int r;
r                 114 drivers/nfc/st-nci/i2c.c 	r = i2c_master_recv(client, buf, ST_NCI_I2C_MIN_SIZE);
r                 115 drivers/nfc/st-nci/i2c.c 	if (r < 0) {  /* Retry, chip was in standby */
r                 117 drivers/nfc/st-nci/i2c.c 		r = i2c_master_recv(client, buf, ST_NCI_I2C_MIN_SIZE);
r                 120 drivers/nfc/st-nci/i2c.c 	if (r != ST_NCI_I2C_MIN_SIZE)
r                 140 drivers/nfc/st-nci/i2c.c 	r = i2c_master_recv(client, buf, len);
r                 141 drivers/nfc/st-nci/i2c.c 	if (r != len) {
r                 162 drivers/nfc/st-nci/i2c.c 	int r;
r                 180 drivers/nfc/st-nci/i2c.c 	r = st_nci_i2c_read(phy, &skb);
r                 181 drivers/nfc/st-nci/i2c.c 	if (r == -EREMOTEIO || r == -ENOMEM || r == -EBADMSG)
r                 207 drivers/nfc/st-nci/i2c.c 	int r;
r                 225 drivers/nfc/st-nci/i2c.c 	r = devm_acpi_dev_add_driver_gpios(dev, acpi_st_nci_gpios);
r                 226 drivers/nfc/st-nci/i2c.c 	if (r)
r                 241 drivers/nfc/st-nci/i2c.c 	r = ndlc_probe(phy, &i2c_phy_ops, &client->dev,
r                 244 drivers/nfc/st-nci/i2c.c 	if (r < 0) {
r                 246 drivers/nfc/st-nci/i2c.c 		return r;
r                 250 drivers/nfc/st-nci/i2c.c 	r = devm_request_threaded_irq(&client->dev, client->irq, NULL,
r                 254 drivers/nfc/st-nci/i2c.c 	if (r < 0)
r                 257 drivers/nfc/st-nci/i2c.c 	return r;
r                  91 drivers/nfc/st-nci/ndlc.c 	int r;
r                 101 drivers/nfc/st-nci/ndlc.c 		r = ndlc->ops->write(ndlc->phy_id, skb);
r                 102 drivers/nfc/st-nci/ndlc.c 		if (r < 0) {
r                 103 drivers/nfc/st-nci/ndlc.c 			ndlc->hard_fault = r;
r                 135 drivers/nfc/st-nci/se.c 	int r;
r                 138 drivers/nfc/st-nci/se.c 	r = nci_hci_get_param(ndev, ST_NCI_APDU_READER_GATE,
r                 140 drivers/nfc/st-nci/se.c 	if (r < 0)
r                 154 drivers/nfc/st-nci/se.c 	int i, j, r;
r                 178 drivers/nfc/st-nci/se.c 	r = nci_hci_connect_gate(ndev, ST_NCI_HOST_CONTROLLER_ID,
r                 181 drivers/nfc/st-nci/se.c 	if (r < 0)
r                 182 drivers/nfc/st-nci/se.c 		return r;
r                 185 drivers/nfc/st-nci/se.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE,
r                 188 drivers/nfc/st-nci/se.c 	if (r < 0)
r                 189 drivers/nfc/st-nci/se.c 		return r;
r                 194 drivers/nfc/st-nci/se.c 		r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE,
r                 198 drivers/nfc/st-nci/se.c 		if (r)
r                 242 drivers/nfc/st-nci/se.c 	r = nci_hci_connect_gate(ndev, ST_NCI_HOST_CONTROLLER_ID,
r                 247 drivers/nfc/st-nci/se.c 	return r;
r                 279 drivers/nfc/st-nci/se.c 	int r = 0;
r                 301 drivers/nfc/st-nci/se.c 	return r;
r                 313 drivers/nfc/st-nci/se.c 	int r = 0;
r                 321 drivers/nfc/st-nci/se.c 		r = nfc_se_connectivity(ndev->nfc_dev, host);
r                 351 drivers/nfc/st-nci/se.c 		r = nfc_se_transaction(ndev->nfc_dev, host, transaction);
r                 358 drivers/nfc/st-nci/se.c 	return r;
r                 411 drivers/nfc/st-nci/se.c 	int r, i;
r                 433 drivers/nfc/st-nci/se.c 	r = nci_nfcee_mode_set(ndev, se_idx, state);
r                 434 drivers/nfc/st-nci/se.c 	if (r != NCI_STATUS_OK)
r                 435 drivers/nfc/st-nci/se.c 		return r;
r                 453 drivers/nfc/st-nci/se.c 	r = nci_hci_get_param(ndev, NCI_HCI_ADMIN_GATE,
r                 455 drivers/nfc/st-nci/se.c 	if (r != NCI_HCI_ANY_OK)
r                 456 drivers/nfc/st-nci/se.c 		return r;
r                 473 drivers/nfc/st-nci/se.c 	int r;
r                 482 drivers/nfc/st-nci/se.c 	r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_OFF);
r                 483 drivers/nfc/st-nci/se.c 	if (r < 0) {
r                 486 drivers/nfc/st-nci/se.c 			r = nci_hci_send_event(ndev, ST_NCI_APDU_READER_GATE,
r                 490 drivers/nfc/st-nci/se.c 		return r;
r                 499 drivers/nfc/st-nci/se.c 	int r;
r                 508 drivers/nfc/st-nci/se.c 	r = st_nci_control_se(ndev, se_idx, ST_NCI_SE_MODE_ON);
r                 509 drivers/nfc/st-nci/se.c 	if (r == ST_NCI_ESE_HOST_ID) {
r                 511 drivers/nfc/st-nci/se.c 		r = nci_hci_send_event(ndev, ST_NCI_APDU_READER_GATE,
r                 515 drivers/nfc/st-nci/se.c 	if (r < 0) {
r                 521 drivers/nfc/st-nci/se.c 		return r;
r                 534 drivers/nfc/st-nci/se.c 	int r, dev_num;
r                 540 drivers/nfc/st-nci/se.c 		r = -ENOMEM;
r                 550 drivers/nfc/st-nci/se.c 	r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCEE, 1,
r                 554 drivers/nfc/st-nci/se.c 	if (r != NCI_STATUS_OK)
r                 571 drivers/nfc/st-nci/se.c 		r = -ENODEV;
r                 579 drivers/nfc/st-nci/se.c 	r = nci_hci_dev_session_init(ndev);
r                 580 drivers/nfc/st-nci/se.c 	if (r != NCI_HCI_ANY_OK)
r                 589 drivers/nfc/st-nci/se.c 		r = nci_nfcee_mode_set(ndev,
r                 593 drivers/nfc/st-nci/se.c 		r = nci_nfcee_mode_set(ndev,
r                 601 drivers/nfc/st-nci/se.c 	return r;
r                 607 drivers/nfc/st-nci/se.c 	int r, wl_size = 0;
r                 613 drivers/nfc/st-nci/se.c 	r = st_nci_hci_network_init(ndev);
r                 614 drivers/nfc/st-nci/se.c 	if (r != 0)
r                 615 drivers/nfc/st-nci/se.c 		return r;
r                 626 drivers/nfc/st-nci/se.c 		r = nci_hci_set_param(ndev, NCI_HCI_ADMIN_GATE,
r                 629 drivers/nfc/st-nci/se.c 		if (r != NCI_HCI_ANY_OK)
r                 630 drivers/nfc/st-nci/se.c 			return r;
r                  76 drivers/nfc/st-nci/spi.c 	int r;
r                  91 drivers/nfc/st-nci/spi.c 	r = spi_sync_transfer(dev, &spi_xfer, 1);
r                  96 drivers/nfc/st-nci/spi.c 	if (!r) {
r                  99 drivers/nfc/st-nci/spi.c 			r = -ENOMEM;
r                 109 drivers/nfc/st-nci/spi.c 	return r;
r                 123 drivers/nfc/st-nci/spi.c 	int r;
r                 132 drivers/nfc/st-nci/spi.c 	r = spi_sync_transfer(dev, &spi_xfer, 1);
r                 133 drivers/nfc/st-nci/spi.c 	if (r < 0)
r                 155 drivers/nfc/st-nci/spi.c 	r = spi_sync_transfer(dev, &spi_xfer, 1);
r                 156 drivers/nfc/st-nci/spi.c 	if (r < 0) {
r                 177 drivers/nfc/st-nci/spi.c 	int r;
r                 195 drivers/nfc/st-nci/spi.c 	r = st_nci_spi_read(phy, &skb);
r                 196 drivers/nfc/st-nci/spi.c 	if (r == -EREMOTEIO || r == -ENOMEM || r == -EBADMSG)
r                 220 drivers/nfc/st-nci/spi.c 	int r;
r                 241 drivers/nfc/st-nci/spi.c 	r = devm_acpi_dev_add_driver_gpios(&dev->dev, acpi_st_nci_gpios);
r                 242 drivers/nfc/st-nci/spi.c 	if (r)
r                 257 drivers/nfc/st-nci/spi.c 	r = ndlc_probe(phy, &spi_phy_ops, &dev->dev,
r                 260 drivers/nfc/st-nci/spi.c 	if (r < 0) {
r                 262 drivers/nfc/st-nci/spi.c 		return r;
r                 266 drivers/nfc/st-nci/spi.c 	r = devm_request_threaded_irq(&dev->dev, dev->irq, NULL,
r                 270 drivers/nfc/st-nci/spi.c 	if (r < 0)
r                 273 drivers/nfc/st-nci/spi.c 	return r;
r                  94 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                  98 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ST_NCI_HCI_DM_GETINFO,
r                 100 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 106 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 112 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 116 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 121 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 127 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 131 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE, ST_NCI_HCI_DM_GETDATA,
r                 133 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 139 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 145 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 149 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 154 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 160 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 164 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE,
r                 166 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 169 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 209 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 217 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_get_param(ndev, param->gate, param->data, &skb);
r                 218 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 224 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 230 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 234 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 239 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 254 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 261 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE,
r                 264 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 270 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 276 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 280 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 285 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 291 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 298 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_hci_send_cmd(ndev, ST_NCI_DEVICE_MGNT_GATE,
r                 301 drivers/nfc/st-nci/vendor_cmds.c 	if (r)
r                 307 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 313 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 317 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 322 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 328 drivers/nfc/st-nci/vendor_cmds.c 	int r;
r                 335 drivers/nfc/st-nci/vendor_cmds.c 	r = nci_nfcc_loopback(ndev, data, data_len, &skb);
r                 336 drivers/nfc/st-nci/vendor_cmds.c 	if (r < 0)
r                 337 drivers/nfc/st-nci/vendor_cmds.c 		return r;
r                 342 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOMEM;
r                 348 drivers/nfc/st-nci/vendor_cmds.c 		r = -ENOBUFS;
r                 352 drivers/nfc/st-nci/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 355 drivers/nfc/st-nci/vendor_cmds.c 	return r;
r                 107 drivers/nfc/st21nfca/core.c 	int i, j, r;
r                 135 drivers/nfc/st21nfca/core.c 	r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID,
r                 138 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 139 drivers/nfc/st21nfca/core.c 		return r;
r                 142 drivers/nfc/st21nfca/core.c 	r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 145 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 146 drivers/nfc/st21nfca/core.c 		return r;
r                 151 drivers/nfc/st21nfca/core.c 		r = nfc_hci_send_cmd(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 154 drivers/nfc/st21nfca/core.c 		if (r)
r                 198 drivers/nfc/st21nfca/core.c 	r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID,
r                 203 drivers/nfc/st21nfca/core.c 	return r;
r                 209 drivers/nfc/st21nfca/core.c 	int r;
r                 214 drivers/nfc/st21nfca/core.c 		r = -EBUSY;
r                 218 drivers/nfc/st21nfca/core.c 	r = info->phy_ops->enable(info->phy_id);
r                 220 drivers/nfc/st21nfca/core.c 	if (r == 0)
r                 225 drivers/nfc/st21nfca/core.c 	return r;
r                 252 drivers/nfc/st21nfca/core.c 	int r;
r                 260 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE,
r                 263 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 264 drivers/nfc/st21nfca/core.c 			return r;
r                 268 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 270 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 271 drivers/nfc/st21nfca/core.c 		return r;
r                 278 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 280 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 281 drivers/nfc/st21nfca/core.c 			return r;
r                 284 drivers/nfc/st21nfca/core.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 286 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 287 drivers/nfc/st21nfca/core.c 		return r;
r                 289 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ID_MGMT_GATE,
r                 291 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 292 drivers/nfc/st21nfca/core.c 		return r;
r                 318 drivers/nfc/st21nfca/core.c 	int r;
r                 326 drivers/nfc/st21nfca/core.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 328 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 329 drivers/nfc/st21nfca/core.c 		return r;
r                 336 drivers/nfc/st21nfca/core.c 			r = nfc_hci_disconnect_gate(hdev,
r                 338 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 339 drivers/nfc/st21nfca/core.c 				return r;
r                 343 drivers/nfc/st21nfca/core.c 			r = nfc_hci_disconnect_gate(hdev,
r                 345 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 346 drivers/nfc/st21nfca/core.c 				return r;
r                 350 drivers/nfc/st21nfca/core.c 			r = nfc_hci_disconnect_gate(hdev,
r                 352 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 353 drivers/nfc/st21nfca/core.c 				return r;
r                 366 drivers/nfc/st21nfca/core.c 			r = nfc_hci_set_param(hdev, ST21NFCA_RF_READER_F_GATE,
r                 369 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 370 drivers/nfc/st21nfca/core.c 				return r;
r                 374 drivers/nfc/st21nfca/core.c 			r = nfc_hci_set_param(hdev, ST21NFCA_RF_READER_F_GATE,
r                 377 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 378 drivers/nfc/st21nfca/core.c 				return r;
r                 382 drivers/nfc/st21nfca/core.c 			r = nfc_hci_disconnect_gate(hdev,
r                 384 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 385 drivers/nfc/st21nfca/core.c 				return r;
r                 389 drivers/nfc/st21nfca/core.c 			r = nfc_hci_disconnect_gate(hdev,
r                 391 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 392 drivers/nfc/st21nfca/core.c 				return r;
r                 395 drivers/nfc/st21nfca/core.c 		r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 397 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 403 drivers/nfc/st21nfca/core.c 		r = nfc_hci_get_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 406 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 407 drivers/nfc/st21nfca/core.c 			return r;
r                 414 drivers/nfc/st21nfca/core.c 			r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 417 drivers/nfc/st21nfca/core.c 			if (r < 0) {
r                 419 drivers/nfc/st21nfca/core.c 				return r;
r                 432 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 434 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 435 drivers/nfc/st21nfca/core.c 			return r;
r                 445 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 447 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 448 drivers/nfc/st21nfca/core.c 			return r;
r                 451 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 453 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 454 drivers/nfc/st21nfca/core.c 			return r;
r                 482 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 485 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 486 drivers/nfc/st21nfca/core.c 			return r;
r                 489 drivers/nfc/st21nfca/core.c 		r = nfc_hci_set_param(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 493 drivers/nfc/st21nfca/core.c 	return r;
r                 504 drivers/nfc/st21nfca/core.c 	int r;
r                 507 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_14443_3_A_GATE,
r                 509 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 513 drivers/nfc/st21nfca/core.c 		r = -EPROTO;
r                 521 drivers/nfc/st21nfca/core.c 	return r;
r                 526 drivers/nfc/st21nfca/core.c 	int r;
r                 529 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_14443_3_A_GATE,
r                 531 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 535 drivers/nfc/st21nfca/core.c 		r = -EPROTO;
r                 543 drivers/nfc/st21nfca/core.c 	return r;
r                 549 drivers/nfc/st21nfca/core.c 	int r;
r                 552 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_14443_3_A_GATE,
r                 554 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 558 drivers/nfc/st21nfca/core.c 		r = -EPROTO;
r                 566 drivers/nfc/st21nfca/core.c 	return r;
r                 572 drivers/nfc/st21nfca/core.c 	int r;
r                 575 drivers/nfc/st21nfca/core.c 	r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_ISO15693_GATE,
r                 578 drivers/nfc/st21nfca/core.c 	if (r < 0)
r                 585 drivers/nfc/st21nfca/core.c 		r = -EPROTO;
r                 594 drivers/nfc/st21nfca/core.c 	return r;
r                 620 drivers/nfc/st21nfca/core.c 	int r, len;
r                 631 drivers/nfc/st21nfca/core.c 		r = st21nfca_get_iso14443_3_atqa(hdev, &atqa);
r                 632 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 633 drivers/nfc/st21nfca/core.c 			return r;
r                 638 drivers/nfc/st21nfca/core.c 			r = st21nfca_get_iso14443_3_sak(hdev, &sak);
r                 639 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 640 drivers/nfc/st21nfca/core.c 				return r;
r                 642 drivers/nfc/st21nfca/core.c 			r = st21nfca_get_iso14443_3_uid(hdev, uid, &len);
r                 643 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 644 drivers/nfc/st21nfca/core.c 				return r;
r                 660 drivers/nfc/st21nfca/core.c 		r = st21nfca_get_iso15693_inventory(hdev, target);
r                 661 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 662 drivers/nfc/st21nfca/core.c 			return r;
r                 675 drivers/nfc/st21nfca/core.c 	int r;
r                 679 drivers/nfc/st21nfca/core.c 		r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_F_GATE,
r                 681 drivers/nfc/st21nfca/core.c 		if (r < 0)
r                 685 drivers/nfc/st21nfca/core.c 			r = -EPROTO;
r                 713 drivers/nfc/st21nfca/core.c 			r = nfc_hci_get_param(hdev, ST21NFCA_RF_READER_F_GATE,
r                 716 drivers/nfc/st21nfca/core.c 			if (r < 0)
r                 720 drivers/nfc/st21nfca/core.c 				r = -EPROTO;
r                 730 drivers/nfc/st21nfca/core.c 	r = 1;
r                 733 drivers/nfc/st21nfca/core.c 	return r;
r                 945 drivers/nfc/st21nfca/core.c 	int r = 0;
r                 970 drivers/nfc/st21nfca/core.c 		r = -ENODEV;
r                 997 drivers/nfc/st21nfca/core.c 		r = -ENOMEM;
r                1005 drivers/nfc/st21nfca/core.c 	r = nfc_hci_register_device(info->hdev);
r                1006 drivers/nfc/st21nfca/core.c 	if (r)
r                1022 drivers/nfc/st21nfca/core.c 	return r;
r                 146 drivers/nfc/st21nfca/dep.c 	int r;
r                 174 drivers/nfc/st21nfca/dep.c 		r = nfc_set_remote_general_bytes(hdev->ndev, atr_res->gbi,
r                 176 drivers/nfc/st21nfca/dep.c 		if (r < 0) {
r                 178 drivers/nfc/st21nfca/dep.c 			return r;
r                 184 drivers/nfc/st21nfca/dep.c 	r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 187 drivers/nfc/st21nfca/dep.c 	return r;
r                 195 drivers/nfc/st21nfca/dep.c 	int r;
r                 200 drivers/nfc/st21nfca/dep.c 		r = -EIO;
r                 205 drivers/nfc/st21nfca/dep.c 		r = -EPROTO;
r                 212 drivers/nfc/st21nfca/dep.c 		r = -EPROTO;
r                 216 drivers/nfc/st21nfca/dep.c 	r = st21nfca_tm_send_atr_res(hdev, atr_req);
r                 217 drivers/nfc/st21nfca/dep.c 	if (r)
r                 222 drivers/nfc/st21nfca/dep.c 	r = nfc_tm_activated(hdev->ndev, NFC_PROTO_NFC_DEP_MASK,
r                 224 drivers/nfc/st21nfca/dep.c 	if (r)
r                 227 drivers/nfc/st21nfca/dep.c 	r = 0;
r                 230 drivers/nfc/st21nfca/dep.c 	return r;
r                 239 drivers/nfc/st21nfca/dep.c 	int r;
r                 253 drivers/nfc/st21nfca/dep.c 	r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 255 drivers/nfc/st21nfca/dep.c 	if (r < 0)
r                 272 drivers/nfc/st21nfca/dep.c 	r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 276 drivers/nfc/st21nfca/dep.c 	return r;
r                 283 drivers/nfc/st21nfca/dep.c 	int r;
r                 288 drivers/nfc/st21nfca/dep.c 		r = -EIO;
r                 295 drivers/nfc/st21nfca/dep.c 		r = -EIO;
r                 299 drivers/nfc/st21nfca/dep.c 	r = st21nfca_tm_send_psl_res(hdev, psl_req);
r                 301 drivers/nfc/st21nfca/dep.c 	return r;
r                 306 drivers/nfc/st21nfca/dep.c 	int r;
r                 314 drivers/nfc/st21nfca/dep.c 	r = nfc_hci_send_event(hdev, ST21NFCA_RF_CARD_F_GATE,
r                 318 drivers/nfc/st21nfca/dep.c 	return r;
r                 327 drivers/nfc/st21nfca/dep.c 	int r;
r                 336 drivers/nfc/st21nfca/dep.c 		r = -EIO;
r                 346 drivers/nfc/st21nfca/dep.c 		r = -EIO;
r                 368 drivers/nfc/st21nfca/dep.c 	return r;
r                 375 drivers/nfc/st21nfca/dep.c 	int r;
r                 383 drivers/nfc/st21nfca/dep.c 			r = st21nfca_tm_recv_atr_req(hdev, skb);
r                 386 drivers/nfc/st21nfca/dep.c 			r = st21nfca_tm_recv_psl_req(hdev, skb);
r                 389 drivers/nfc/st21nfca/dep.c 			r = st21nfca_tm_recv_dep_req(hdev, skb);
r                 398 drivers/nfc/st21nfca/dep.c 	return r;
r                 409 drivers/nfc/st21nfca/dep.c 	int r = 0;
r                 425 drivers/nfc/st21nfca/dep.c 		r = st21nfca_tm_event_send_data(hdev, skb);
r                 426 drivers/nfc/st21nfca/dep.c 		if (r < 0)
r                 427 drivers/nfc/st21nfca/dep.c 			return r;
r                 434 drivers/nfc/st21nfca/dep.c 	return r;
r                 472 drivers/nfc/st21nfca/dep.c 	int r;
r                 484 drivers/nfc/st21nfca/dep.c 		r = nfc_set_remote_general_bytes(info->hdev->ndev,
r                 487 drivers/nfc/st21nfca/dep.c 		if (r < 0)
r                 497 drivers/nfc/st21nfca/dep.c 		r = nfc_dep_link_is_up(info->hdev->ndev, info->dep_info.idx,
r                 499 drivers/nfc/st21nfca/dep.c 		if (r < 0)
r                 100 drivers/nfc/st21nfca/i2c.c 	int i, r = -1;
r                 102 drivers/nfc/st21nfca/i2c.c 	for (i = 0; i < ARRAY_SIZE(wait_reboot) && r < 0; i++) {
r                 103 drivers/nfc/st21nfca/i2c.c 		r = i2c_master_send(phy->i2c_dev, reboot_cmd,
r                 105 drivers/nfc/st21nfca/i2c.c 		if (r < 0)
r                 108 drivers/nfc/st21nfca/i2c.c 	if (r < 0)
r                 109 drivers/nfc/st21nfca/i2c.c 		return r;
r                 113 drivers/nfc/st21nfca/i2c.c 	r = -1;
r                 114 drivers/nfc/st21nfca/i2c.c 	for (i = 0; i < ARRAY_SIZE(wait_reboot) && r < 0; i++) {
r                 115 drivers/nfc/st21nfca/i2c.c 		r = i2c_master_recv(phy->i2c_dev, tmp,
r                 117 drivers/nfc/st21nfca/i2c.c 		if (r < 0)
r                 120 drivers/nfc/st21nfca/i2c.c 	if (r < 0)
r                 121 drivers/nfc/st21nfca/i2c.c 		return r;
r                 127 drivers/nfc/st21nfca/i2c.c 	if (r != ST21NFCA_HCI_LLC_MAX_SIZE)
r                 186 drivers/nfc/st21nfca/i2c.c 	int r = -1, i, j;
r                 233 drivers/nfc/st21nfca/i2c.c 	for (i = 0; i < ARRAY_SIZE(wait_tab) && r < 0; i++) {
r                 234 drivers/nfc/st21nfca/i2c.c 		r = i2c_master_send(client, tmp, j);
r                 235 drivers/nfc/st21nfca/i2c.c 		if (r < 0)
r                 240 drivers/nfc/st21nfca/i2c.c 	if (r >= 0) {
r                 241 drivers/nfc/st21nfca/i2c.c 		if (r != j)
r                 242 drivers/nfc/st21nfca/i2c.c 			r = -EREMOTEIO;
r                 244 drivers/nfc/st21nfca/i2c.c 			r = 0;
r                 249 drivers/nfc/st21nfca/i2c.c 	return r;
r                 295 drivers/nfc/st21nfca/i2c.c 	int i, j, r, size;
r                 319 drivers/nfc/st21nfca/i2c.c 		r = check_crc(skb->data, skb->len);
r                 320 drivers/nfc/st21nfca/i2c.c 		if (r != 0) {
r                 352 drivers/nfc/st21nfca/i2c.c 	int r, i;
r                 365 drivers/nfc/st21nfca/i2c.c 		r = 0;
r                 367 drivers/nfc/st21nfca/i2c.c 		for (i = 0; i < ARRAY_SIZE(wait_tab) && r <= 0; i++) {
r                 368 drivers/nfc/st21nfca/i2c.c 			r = i2c_master_recv(client, buf, len);
r                 369 drivers/nfc/st21nfca/i2c.c 			if (r < 0)
r                 374 drivers/nfc/st21nfca/i2c.c 		if (r != len) {
r                 428 drivers/nfc/st21nfca/i2c.c 	int r;
r                 441 drivers/nfc/st21nfca/i2c.c 	r = st21nfca_hci_i2c_read(phy, phy->pending_skb);
r                 442 drivers/nfc/st21nfca/i2c.c 	if (r == -EREMOTEIO) {
r                 443 drivers/nfc/st21nfca/i2c.c 		phy->hard_fault = r;
r                 448 drivers/nfc/st21nfca/i2c.c 	} else if (r == -EAGAIN || r == -EIO) {
r                 450 drivers/nfc/st21nfca/i2c.c 	} else if (r == -EBADMSG && phy->crc_trials < ARRAY_SIZE(wait_tab)) {
r                 464 drivers/nfc/st21nfca/i2c.c 	} else if (r > 0) {
r                 503 drivers/nfc/st21nfca/i2c.c 	int r;
r                 528 drivers/nfc/st21nfca/i2c.c 	r = devm_acpi_dev_add_driver_gpios(dev, acpi_st21nfca_gpios);
r                 529 drivers/nfc/st21nfca/i2c.c 	if (r)
r                 544 drivers/nfc/st21nfca/i2c.c 	r = st21nfca_hci_platform_init(phy);
r                 545 drivers/nfc/st21nfca/i2c.c 	if (r < 0) {
r                 547 drivers/nfc/st21nfca/i2c.c 		return r;
r                 550 drivers/nfc/st21nfca/i2c.c 	r = devm_request_threaded_irq(&client->dev, client->irq, NULL,
r                 554 drivers/nfc/st21nfca/i2c.c 	if (r < 0) {
r                 556 drivers/nfc/st21nfca/i2c.c 		return r;
r                  69 drivers/nfc/st21nfca/se.c 	int r;
r                  73 drivers/nfc/st21nfca/se.c 	r = nfc_hci_get_param(hdev, ST21NFCA_APDU_READER_GATE,
r                  75 drivers/nfc/st21nfca/se.c 	if (r < 0)
r                  90 drivers/nfc/st21nfca/se.c 	int r, i;
r                 120 drivers/nfc/st21nfca/se.c 	r = nfc_hci_send_event(hdev, ST21NFCA_DEVICE_MGNT_GATE, se_event,
r                 122 drivers/nfc/st21nfca/se.c 	if (r < 0)
r                 123 drivers/nfc/st21nfca/se.c 		return r;
r                 132 drivers/nfc/st21nfca/se.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ADMIN_GATE,
r                 135 drivers/nfc/st21nfca/se.c 	if (r < 0)
r                 136 drivers/nfc/st21nfca/se.c 		return r;
r                 176 drivers/nfc/st21nfca/se.c 	int r;
r                 183 drivers/nfc/st21nfca/se.c 	r = st21nfca_hci_control_se(hdev, se_idx, ST21NFCA_SE_MODE_ON);
r                 184 drivers/nfc/st21nfca/se.c 	if (r == ST21NFCA_ESE_HOST_ID) {
r                 186 drivers/nfc/st21nfca/se.c 		r = nfc_hci_send_event(hdev, ST21NFCA_APDU_READER_GATE,
r                 188 drivers/nfc/st21nfca/se.c 		if (r < 0)
r                 189 drivers/nfc/st21nfca/se.c 			return r;
r                 190 drivers/nfc/st21nfca/se.c 	} else if (r < 0) {
r                 196 drivers/nfc/st21nfca/se.c 		return r;
r                 205 drivers/nfc/st21nfca/se.c 	int r;
r                 212 drivers/nfc/st21nfca/se.c 	r = st21nfca_hci_control_se(hdev, se_idx, ST21NFCA_SE_MODE_OFF);
r                 213 drivers/nfc/st21nfca/se.c 	if (r < 0)
r                 214 drivers/nfc/st21nfca/se.c 		return r;
r                 296 drivers/nfc/st21nfca/se.c 	int r = 0;
r                 304 drivers/nfc/st21nfca/se.c 		r = nfc_se_connectivity(hdev->ndev, host);
r                 336 drivers/nfc/st21nfca/se.c 		r = nfc_se_transaction(hdev->ndev, host, transaction);
r                 343 drivers/nfc/st21nfca/se.c 	return r;
r                 350 drivers/nfc/st21nfca/se.c 	int r = 0;
r                 359 drivers/nfc/st21nfca/se.c 		r = nfc_hci_send_event(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 361 drivers/nfc/st21nfca/se.c 		if (r < 0)
r                 378 drivers/nfc/st21nfca/se.c 	return r;
r                  89 drivers/nfc/st21nfca/vendor_cmds.c 	int r;
r                  93 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_send_cmd(hdev,
r                  97 drivers/nfc/st21nfca/vendor_cmds.c 	if (r)
r                 103 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOMEM;
r                 109 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOBUFS;
r                 113 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 118 drivers/nfc/st21nfca/vendor_cmds.c 	return r;
r                 124 drivers/nfc/st21nfca/vendor_cmds.c 	int r;
r                 128 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_send_cmd(hdev,
r                 132 drivers/nfc/st21nfca/vendor_cmds.c 	if (r)
r                 138 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOMEM;
r                 144 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOBUFS;
r                 148 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 153 drivers/nfc/st21nfca/vendor_cmds.c 	return r;
r                 168 drivers/nfc/st21nfca/vendor_cmds.c 	int r;
r                 171 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_send_cmd_async(hdev, ST21NFCA_DEVICE_MGNT_GATE,
r                 173 drivers/nfc/st21nfca/vendor_cmds.c 	if (r < 0)
r                 174 drivers/nfc/st21nfca/vendor_cmds.c 		return r;
r                 176 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_llc_stop(hdev->llc);
r                 177 drivers/nfc/st21nfca/vendor_cmds.c 	if (r < 0)
r                 178 drivers/nfc/st21nfca/vendor_cmds.c 		return r;
r                 186 drivers/nfc/st21nfca/vendor_cmds.c 	int r;
r                 194 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_get_param(hdev, param->gate, param->data, &skb);
r                 195 drivers/nfc/st21nfca/vendor_cmds.c 	if (r)
r                 201 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOMEM;
r                 207 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOBUFS;
r                 211 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 216 drivers/nfc/st21nfca/vendor_cmds.c 	return r;
r                 250 drivers/nfc/st21nfca/vendor_cmds.c 	int r;
r                 261 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_hci_send_event(hdev, NFC_HCI_LOOPBACK_GATE,
r                 263 drivers/nfc/st21nfca/vendor_cmds.c 	if (r < 0) {
r                 264 drivers/nfc/st21nfca/vendor_cmds.c 		r = -EPROTO;
r                 271 drivers/nfc/st21nfca/vendor_cmds.c 		r = -EPROTO;
r                 280 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOMEM;
r                 287 drivers/nfc/st21nfca/vendor_cmds.c 		r = -ENOBUFS;
r                 291 drivers/nfc/st21nfca/vendor_cmds.c 	r = nfc_vendor_cmd_reply(msg);
r                 295 drivers/nfc/st21nfca/vendor_cmds.c 	return r;
r                1192 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		u32 r = ioread32(&ctrl->bar_entry[i].ctl);
r                1194 drivers/ntb/hw/mscc/ntb_hw_switchtec.c 		if (r & NTB_CTRL_BAR_VALID)
r                  90 drivers/nvdimm/nd.h #define nd_dbg_dpa(r, d, res, fmt, arg...) \
r                  91 drivers/nvdimm/nd.h 	dev_dbg((r) ? &(r)->dev : (d)->dev, "%s: %.13s: %#llx @ %#llx " fmt, \
r                  92 drivers/nvdimm/nd.h 		(r) ? dev_name((d)->dev) : "", res ? res->name : "null", \
r                 147 drivers/nvme/target/discovery.c 	struct nvmet_port *r;
r                 155 drivers/nvme/target/discovery.c 	list_for_each_entry(r, &req->port->referrals, entry)
r                 169 drivers/nvme/target/discovery.c 	struct nvmet_port *r;
r                 208 drivers/nvme/target/discovery.c 	list_for_each_entry(r, &req->port->referrals, entry) {
r                 209 drivers/nvme/target/discovery.c 		nvmet_format_discovery_entry(hdr, r,
r                 211 drivers/nvme/target/discovery.c 				r->disc_addr.traddr,
r                 135 drivers/nvme/target/rdma.c 				struct nvmet_rdma_rsp *r);
r                 137 drivers/nvme/target/rdma.c 				struct nvmet_rdma_rsp *r);
r                 364 drivers/nvme/target/rdma.c 		struct nvmet_rdma_rsp *r)
r                 367 drivers/nvme/target/rdma.c 	r->req.cqe = kmalloc(sizeof(*r->req.cqe), GFP_KERNEL);
r                 368 drivers/nvme/target/rdma.c 	if (!r->req.cqe)
r                 371 drivers/nvme/target/rdma.c 	r->send_sge.addr = ib_dma_map_single(ndev->device, r->req.cqe,
r                 372 drivers/nvme/target/rdma.c 			sizeof(*r->req.cqe), DMA_TO_DEVICE);
r                 373 drivers/nvme/target/rdma.c 	if (ib_dma_mapping_error(ndev->device, r->send_sge.addr))
r                 376 drivers/nvme/target/rdma.c 	r->req.p2p_client = &ndev->device->dev;
r                 377 drivers/nvme/target/rdma.c 	r->send_sge.length = sizeof(*r->req.cqe);
r                 378 drivers/nvme/target/rdma.c 	r->send_sge.lkey = ndev->pd->local_dma_lkey;
r                 380 drivers/nvme/target/rdma.c 	r->send_cqe.done = nvmet_rdma_send_done;
r                 382 drivers/nvme/target/rdma.c 	r->send_wr.wr_cqe = &r->send_cqe;
r                 383 drivers/nvme/target/rdma.c 	r->send_wr.sg_list = &r->send_sge;
r                 384 drivers/nvme/target/rdma.c 	r->send_wr.num_sge = 1;
r                 385 drivers/nvme/target/rdma.c 	r->send_wr.send_flags = IB_SEND_SIGNALED;
r                 388 drivers/nvme/target/rdma.c 	r->read_cqe.done = nvmet_rdma_read_data_done;
r                 392 drivers/nvme/target/rdma.c 	kfree(r->req.cqe);
r                 398 drivers/nvme/target/rdma.c 		struct nvmet_rdma_rsp *r)
r                 400 drivers/nvme/target/rdma.c 	ib_dma_unmap_single(ndev->device, r->send_sge.addr,
r                 401 drivers/nvme/target/rdma.c 				sizeof(*r->req.cqe), DMA_TO_DEVICE);
r                 402 drivers/nvme/target/rdma.c 	kfree(r->req.cqe);
r                 517 drivers/nvmem/core.c 	struct nvmem_device **r = res;
r                 519 drivers/nvmem/core.c 	return *r == data;
r                  25 drivers/of/address.c 		const char *name, struct resource *r);
r                 222 drivers/of/address.c 			       struct resource *r)
r                 231 drivers/of/address.c 	return __of_address_to_resource(dev, addrp, size, flags, NULL, r);
r                 779 drivers/of/address.c 		const char *name, struct resource *r)
r                 792 drivers/of/address.c 	memset(r, 0, sizeof(struct resource));
r                 794 drivers/of/address.c 	r->start = taddr;
r                 795 drivers/of/address.c 	r->end = taddr + size - 1;
r                 796 drivers/of/address.c 	r->flags = flags;
r                 797 drivers/of/address.c 	r->name = name ? name : dev->full_name;
r                 811 drivers/of/address.c 			   struct resource *r)
r                 825 drivers/of/address.c 	return __of_address_to_resource(dev, addrp, size, flags, name, r);
r                 349 drivers/of/irq.c int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
r                 358 drivers/of/irq.c 	if (r && irq) {
r                 361 drivers/of/irq.c 		memset(r, 0, sizeof(*r));
r                 369 drivers/of/irq.c 		r->start = r->end = irq;
r                 370 drivers/of/irq.c 		r->flags = IORESOURCE_IRQ | irqd_get_trigger_type(irq_get_irq_data(irq));
r                 371 drivers/of/irq.c 		r->name = name ? name : of_node_full_name(dev);
r                  26 drivers/of/of_numa.c 	int r;
r                  30 drivers/of/of_numa.c 		r = of_property_read_u32(np, "numa-node-id", &nid);
r                  31 drivers/of/of_numa.c 		if (r)
r                  47 drivers/of/of_numa.c 	int i, r;
r                  50 drivers/of/of_numa.c 		r = of_property_read_u32(np, "numa-node-id", &nid);
r                  51 drivers/of/of_numa.c 		if (r == -EINVAL)
r                  61 drivers/of/of_numa.c 			r = -EINVAL;
r                  64 drivers/of/of_numa.c 		for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++)
r                  65 drivers/of/of_numa.c 			r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1);
r                  67 drivers/of/of_numa.c 		if (!i || r) {
r                  70 drivers/of/of_numa.c 			return r ? : -EINVAL;
r                 142 drivers/of/of_numa.c 	int r = -ENODATA;
r                 147 drivers/of/of_numa.c 		r = of_property_read_u32(np, "numa-node-id", &nid);
r                 154 drivers/of/of_numa.c 		if (r != -EINVAL)
r                 159 drivers/of/of_numa.c 	if (np && r)
r                 169 drivers/of/of_numa.c 	if (!r && nid < MAX_NUMNODES && node_possible(nid))
r                 177 drivers/of/of_numa.c 	int r;
r                 180 drivers/of/of_numa.c 	r = of_numa_parse_memory_nodes();
r                 181 drivers/of/of_numa.c 	if (r)
r                 182 drivers/of/of_numa.c 		return r;
r                 378 drivers/opp/core.c 		int r = PTR_ERR(opp_table);
r                 380 drivers/opp/core.c 		dev_err(dev, "%s: OPP table not found (%d)\n", __func__, r);
r                 381 drivers/opp/core.c 		return ERR_PTR(r);
r                 427 drivers/opp/core.c 		int r = PTR_ERR(opp_table);
r                 429 drivers/opp/core.c 		dev_err(dev, "%s: OPP table not found (%d)\n", __func__, r);
r                 430 drivers/opp/core.c 		return ERR_PTR(r);
r                2053 drivers/opp/core.c 	int r = 0;
r                2058 drivers/opp/core.c 		r = PTR_ERR(opp_table);
r                2059 drivers/opp/core.c 		dev_warn(dev, "%s: Device OPP not found (%d)\n", __func__, r);
r                2060 drivers/opp/core.c 		return r;
r                2074 drivers/opp/core.c 		r = PTR_ERR(opp);
r                2102 drivers/opp/core.c 	return r;
r                 159 drivers/parisc/lba_pci.c lba_dump_res(struct resource *r, int d)
r                 163 drivers/parisc/lba_pci.c 	if (NULL == r)
r                 166 drivers/parisc/lba_pci.c 	printk(KERN_DEBUG "(%p)", r->parent);
r                 168 drivers/parisc/lba_pci.c 	printk(KERN_DEBUG "%p [%lx,%lx]/%lx\n", r,
r                 169 drivers/parisc/lba_pci.c 		(long)r->start, (long)r->end, r->flags);
r                 170 drivers/parisc/lba_pci.c 	lba_dump_res(r->child, d+2);
r                 171 drivers/parisc/lba_pci.c 	lba_dump_res(r->sibling, d);
r                 664 drivers/parisc/lba_pci.c #define truncate_pat_collision(r,n)  (0)
r                 670 drivers/parisc/lba_pci.c 	struct resource *r;
r                 673 drivers/parisc/lba_pci.c 		r = &dev->resource[idx];
r                 674 drivers/parisc/lba_pci.c 		if (!r->flags)
r                 676 drivers/parisc/lba_pci.c 		if (r->parent)	/* Already allocated */
r                 678 drivers/parisc/lba_pci.c 		if (!r->start || pci_claim_bridge_resource(dev, idx) < 0) {
r                 685 drivers/parisc/lba_pci.c 			r->start = r->end = 0;
r                 686 drivers/parisc/lba_pci.c 			r->flags = 0;
r                1065 drivers/parisc/lba_pci.c 		struct resource *r;
r                1094 drivers/parisc/lba_pci.c 				r = &lba_dev->hba.lmmio_space;
r                1095 drivers/parisc/lba_pci.c 				r->name = lba_dev->hba.lmmio_name;
r                1100 drivers/parisc/lba_pci.c 				r = &lba_dev->hba.elmmio_space;
r                1101 drivers/parisc/lba_pci.c 				r->name = lba_dev->hba.elmmio_name;
r                1108 drivers/parisc/lba_pci.c 			r->start  = p->start;
r                1109 drivers/parisc/lba_pci.c 			r->end    = p->end;
r                1110 drivers/parisc/lba_pci.c 			r->flags  = IORESOURCE_MEM;
r                1111 drivers/parisc/lba_pci.c 			r->parent = r->sibling = r->child = NULL;
r                1118 drivers/parisc/lba_pci.c 			r = &lba_dev->hba.gmmio_space;
r                1119 drivers/parisc/lba_pci.c 			r->name  = lba_dev->hba.gmmio_name;
r                1120 drivers/parisc/lba_pci.c 			r->start  = p->start;
r                1121 drivers/parisc/lba_pci.c 			r->end    = p->end;
r                1122 drivers/parisc/lba_pci.c 			r->flags  = IORESOURCE_MEM;
r                1123 drivers/parisc/lba_pci.c 			r->parent = r->sibling = r->child = NULL;
r                1141 drivers/parisc/lba_pci.c 			r = &lba_dev->hba.io_space;
r                1142 drivers/parisc/lba_pci.c 			r->name  = lba_dev->hba.io_name;
r                1143 drivers/parisc/lba_pci.c 			r->start  = HBA_PORT_BASE(lba_dev->hba.hba_num);
r                1144 drivers/parisc/lba_pci.c 			r->end    = r->start + HBA_PORT_SPACE_SIZE - 1;
r                1145 drivers/parisc/lba_pci.c 			r->flags  = IORESOURCE_IO;
r                1146 drivers/parisc/lba_pci.c 			r->parent = r->sibling = r->child = NULL;
r                1174 drivers/parisc/lba_pci.c 	struct resource *r;
r                1187 drivers/parisc/lba_pci.c 	r = &(lba_dev->hba.bus_num);
r                1188 drivers/parisc/lba_pci.c 	r->name = "LBA PCI Busses";
r                1189 drivers/parisc/lba_pci.c 	r->start = lba_num & 0xff;
r                1190 drivers/parisc/lba_pci.c 	r->end = (lba_num>>8) & 0xff;
r                1191 drivers/parisc/lba_pci.c 	r->flags = IORESOURCE_BUS;
r                1196 drivers/parisc/lba_pci.c 	r = &(lba_dev->hba.lmmio_space);
r                1199 drivers/parisc/lba_pci.c 	r->name  = lba_dev->hba.lmmio_name;
r                1206 drivers/parisc/lba_pci.c 	sba_distributed_lmmio(pa_dev, r);
r                1268 drivers/parisc/lba_pci.c 	r->start = READ_REG32(lba_dev->hba.base_addr + LBA_LMMIO_BASE);
r                1269 drivers/parisc/lba_pci.c 	if (r->start & 1) {
r                1272 drivers/parisc/lba_pci.c 		r->flags = IORESOURCE_MEM;
r                1274 drivers/parisc/lba_pci.c 		r->start &= mmio_mask;
r                1275 drivers/parisc/lba_pci.c 		r->start = PCI_HOST_ADDR(&lba_dev->hba, r->start);
r                1283 drivers/parisc/lba_pci.c 		r->start += (rsize + 1) * LBA_NUM(pa_dev->hpa.start);
r                1284 drivers/parisc/lba_pci.c 		r->end = r->start + rsize;
r                1286 drivers/parisc/lba_pci.c 		r->end = r->start = 0;	/* Not enabled. */
r                1305 drivers/parisc/lba_pci.c 	r = &(lba_dev->hba.elmmio_space);
r                1308 drivers/parisc/lba_pci.c 	r->name  = lba_dev->hba.elmmio_name;
r                1312 drivers/parisc/lba_pci.c 	sba_directed_lmmio(pa_dev, r);
r                1314 drivers/parisc/lba_pci.c 	r->start = READ_REG32(lba_dev->hba.base_addr + LBA_ELMMIO_BASE);
r                1316 drivers/parisc/lba_pci.c 	if (r->start & 1) {
r                1318 drivers/parisc/lba_pci.c 		r->flags = IORESOURCE_MEM;
r                1320 drivers/parisc/lba_pci.c 		r->start &= mmio_mask;
r                1321 drivers/parisc/lba_pci.c 		r->start = PCI_HOST_ADDR(&lba_dev->hba, r->start);
r                1323 drivers/parisc/lba_pci.c 		r->end = r->start + ~rsize;
r                1327 drivers/parisc/lba_pci.c 	r = &(lba_dev->hba.io_space);
r                1330 drivers/parisc/lba_pci.c 	r->name  = lba_dev->hba.io_name;
r                1331 drivers/parisc/lba_pci.c 	r->flags = IORESOURCE_IO;
r                1332 drivers/parisc/lba_pci.c 	r->start = READ_REG32(lba_dev->hba.base_addr + LBA_IOS_BASE) & ~1L;
r                1333 drivers/parisc/lba_pci.c 	r->end   = r->start + (READ_REG32(lba_dev->hba.base_addr + LBA_IOS_MASK) ^ (HBA_PORT_SPACE_SIZE - 1));
r                1337 drivers/parisc/lba_pci.c 	r->start |= lba_num;
r                1338 drivers/parisc/lba_pci.c 	r->end   |= lba_num;
r                2012 drivers/parisc/sba_iommu.c void sba_directed_lmmio(struct parisc_device *pci_hba, struct resource *r)
r                2022 drivers/parisc/sba_iommu.c 	r->start = r->end = 0;
r                2038 drivers/parisc/sba_iommu.c 		r->start = (base & ~1UL) | PCI_F_EXTEND;
r                2040 drivers/parisc/sba_iommu.c 		r->end = r->start + size;
r                2041 drivers/parisc/sba_iommu.c 		r->flags = IORESOURCE_MEM;
r                2055 drivers/parisc/sba_iommu.c void sba_distributed_lmmio(struct parisc_device *pci_hba, struct resource *r )
r                2065 drivers/parisc/sba_iommu.c 	r->start = r->end = 0;
r                2073 drivers/parisc/sba_iommu.c 	r->start = (base & ~1UL) | PCI_F_EXTEND;
r                2076 drivers/parisc/sba_iommu.c 	r->start += rope * (size + 1);	/* adjust base for this rope */
r                2077 drivers/parisc/sba_iommu.c 	r->end = r->start + size;
r                2078 drivers/parisc/sba_iommu.c 	r->flags = IORESOURCE_MEM;
r                 222 drivers/parport/ieee1284.c 	int r;
r                 257 drivers/parport/ieee1284.c 			r = parport_wait_peripheral (port,
r                 260 drivers/parport/ieee1284.c 			if (r)
r                 282 drivers/parport/ieee1284.c 		r = parport_wait_peripheral (port, PARPORT_STATUS_ACK, 0);
r                 283 drivers/parport/ieee1284.c 		if (r)
r                 293 drivers/parport/ieee1284.c 		r = parport_wait_peripheral (port,
r                 296 drivers/parport/ieee1284.c 		if (r)
r                 336 drivers/parport/ieee1284.c 	int r;
r                 521 drivers/parport/ieee1284.c 		r = parport_wait_peripheral (port,
r                 524 drivers/parport/ieee1284.c 		if (r) {
r                  55 drivers/parport/parport_gsc.c 	unsigned char r;
r                  62 drivers/parport/parport_gsc.c 	r = parport_gsc_read_status(pb);
r                  63 drivers/parport/parport_gsc.c 	parport_writeb (r | 0x01, STATUS (pb)); /* Some reset by writing 1 */
r                  64 drivers/parport/parport_gsc.c 	parport_writeb (r & 0xfe, STATUS (pb)); /* Others by writing 0 */
r                  65 drivers/parport/parport_gsc.c 	r = parport_gsc_read_status(pb);
r                  67 drivers/parport/parport_gsc.c 	return !(r & 0x01);
r                 137 drivers/parport/parport_gsc.c 	unsigned char r, w;
r                 156 drivers/parport/parport_gsc.c 	r = parport_readb (CONTROL (pb));
r                 157 drivers/parport/parport_gsc.c 	if ((r & 0xf) == w) {
r                 160 drivers/parport/parport_gsc.c 		r = parport_readb (CONTROL (pb));
r                 162 drivers/parport/parport_gsc.c 		if ((r & 0xf) == w)
r                 170 drivers/parport/parport_gsc.c 	r = parport_gsc_read_data (pb);
r                 171 drivers/parport/parport_gsc.c 	if (r == w) {
r                 174 drivers/parport/parport_gsc.c 		r = parport_gsc_read_data (pb);
r                 175 drivers/parport/parport_gsc.c 		if (r == w)
r                1073 drivers/parport/parport_ip32.c 		unsigned int r;
r                1076 drivers/parport/parport_ip32.c 		r = parport_ip32_read_status(p);
r                1078 drivers/parport/parport_ip32.c 		writeb(r | DSR_TIMEOUT, priv->regs.dsr);
r                1080 drivers/parport/parport_ip32.c 		writeb(r & ~DSR_TIMEOUT, priv->regs.dsr);
r                1082 drivers/parport/parport_ip32.c 		r = parport_ip32_read_status(p);
r                1083 drivers/parport/parport_ip32.c 		cleared = !(r & DSR_TIMEOUT);
r                 210 drivers/parport/parport_pc.c 	unsigned char r;
r                 217 drivers/parport/parport_pc.c 	r = parport_pc_read_status(pb);
r                 218 drivers/parport/parport_pc.c 	outb(r | 0x01, STATUS(pb)); /* Some reset by writing 1 */
r                 219 drivers/parport/parport_pc.c 	outb(r & 0xfe, STATUS(pb)); /* Others by writing 0 */
r                 220 drivers/parport/parport_pc.c 	r = parport_pc_read_status(pb);
r                 222 drivers/parport/parport_pc.c 	return !(r & 0x01);
r                 714 drivers/parport/parport_pc.c 	int r;
r                 727 drivers/parport/parport_pc.c 	r = change_mode(port, ECR_PPF); /* Parallel port FIFO */
r                 728 drivers/parport/parport_pc.c 	if (r)
r                 745 drivers/parport/parport_pc.c 		r = change_mode(port, ECR_PS2);
r                 746 drivers/parport/parport_pc.c 		if (r != -EBUSY)
r                 749 drivers/parport/parport_pc.c 	if (r == -EBUSY) {
r                 769 drivers/parport/parport_pc.c 	r = parport_wait_peripheral(port,
r                 772 drivers/parport/parport_pc.c 	if (r)
r                 775 drivers/parport/parport_pc.c 			port->name, r);
r                 789 drivers/parport/parport_pc.c 	int r;
r                 809 drivers/parport/parport_pc.c 		r = parport_wait_peripheral(port,
r                 812 drivers/parport/parport_pc.c 		if (r) {
r                 814 drivers/parport/parport_pc.c 				"in ecp_write_block_pio\n", port->name, r);
r                 824 drivers/parport/parport_pc.c 	r = change_mode(port, ECR_ECP); /* ECP FIFO */
r                 825 drivers/parport/parport_pc.c 	if (r)
r                 841 drivers/parport/parport_pc.c 		r = change_mode(port, ECR_PS2);
r                 842 drivers/parport/parport_pc.c 		if (r != -EBUSY)
r                 845 drivers/parport/parport_pc.c 	if (r == -EBUSY) {
r                 868 drivers/parport/parport_pc.c 		r = parport_wait_peripheral(port, PARPORT_STATUS_PAPEROUT, 0);
r                 869 drivers/parport/parport_pc.c 		if (r)
r                 871 drivers/parport/parport_pc.c 				"in ecp_write_block_pio\n", port->name, r);
r                 876 drivers/parport/parport_pc.c 		r = parport_wait_peripheral(port,
r                 879 drivers/parport/parport_pc.c 		if (r)
r                 881 drivers/parport/parport_pc.c 				"in ecp_write_block_pio\n", port->name, r);
r                 884 drivers/parport/parport_pc.c 	r = parport_wait_peripheral(port,
r                 887 drivers/parport/parport_pc.c 	if (r)
r                 890 drivers/parport/parport_pc.c 			port->name, r);
r                1345 drivers/parport/parport_pc.c 	u8 origval, r;
r                1365 drivers/parport/parport_pc.c 		r = inb(0x2f);
r                1367 drivers/parport/parport_pc.c 		outb(r | 8, 0x2F);
r                1416 drivers/parport/parport_pc.c 	unsigned char r, w;
r                1435 drivers/parport/parport_pc.c 	r = inb(CONTROL(pb));
r                1436 drivers/parport/parport_pc.c 	if ((r & 0xf) == w) {
r                1439 drivers/parport/parport_pc.c 		r = inb(CONTROL(pb));
r                1441 drivers/parport/parport_pc.c 		if ((r & 0xf) == w)
r                1449 drivers/parport/parport_pc.c 			"wrote 0x%02x, read 0x%02x\n", pb->base, w, r);
r                1455 drivers/parport/parport_pc.c 	r = parport_pc_read_data(pb);
r                1456 drivers/parport/parport_pc.c 	if (r == w) {
r                1459 drivers/parport/parport_pc.c 		r = parport_pc_read_data(pb);
r                1460 drivers/parport/parport_pc.c 		if (r == w)
r                1468 drivers/parport/parport_pc.c 			"wrote 0x%02x, read 0x%02x\n", pb->base, w, r);
r                1498 drivers/parport/parport_pc.c 	unsigned char r = 0xc;
r                1500 drivers/parport/parport_pc.c 	outb(r, CONTROL(pb));
r                1501 drivers/parport/parport_pc.c 	if ((inb(ECONTROL(pb)) & 0x3) == (r & 0x3)) {
r                1502 drivers/parport/parport_pc.c 		outb(r ^ 0x2, CONTROL(pb)); /* Toggle bit 1 */
r                1504 drivers/parport/parport_pc.c 		r = inb(CONTROL(pb));
r                1505 drivers/parport/parport_pc.c 		if ((inb(ECONTROL(pb)) & 0x2) == (r & 0x2))
r                3110 drivers/parport/parport_pc.c 		unsigned long r = simple_strtoul(s, &ep, 0);
r                3112 drivers/parport/parport_pc.c 			*val = r;
r                1252 drivers/parport/share.c 	int r;
r                1261 drivers/parport/share.c 	r = parport_claim(dev);
r                1262 drivers/parport/share.c 	if (r == -EAGAIN) {
r                1284 drivers/parport/share.c 			r = 1;
r                1286 drivers/parport/share.c 			r = 0;
r                1301 drivers/parport/share.c 	return r;
r                 140 drivers/pci/bus.c 	struct pci_bus_region r;
r                 142 drivers/pci/bus.c 	pcibios_resource_to_bus(bus, &r, res);
r                 143 drivers/pci/bus.c 	if (r.start < region->start)
r                 144 drivers/pci/bus.c 		r.start = region->start;
r                 145 drivers/pci/bus.c 	if (r.end > region->end)
r                 146 drivers/pci/bus.c 		r.end = region->end;
r                 148 drivers/pci/bus.c 	if (r.end < r.start)
r                 151 drivers/pci/bus.c 		pcibios_bus_to_resource(bus, res, &r);
r                 165 drivers/pci/bus.c 	struct resource *r, avail;
r                 170 drivers/pci/bus.c 	pci_bus_for_each_resource(bus, r, i) {
r                 173 drivers/pci/bus.c 		if (!r)
r                 177 drivers/pci/bus.c 		if ((res->flags ^ r->flags) & type_mask)
r                 182 drivers/pci/bus.c 		if ((r->flags & IORESOURCE_PREFETCH) &&
r                 186 drivers/pci/bus.c 		avail = *r;
r                 201 drivers/pci/bus.c 		ret = allocate_resource(r, res, size, min_used, max,
r                 266 drivers/pci/bus.c 	struct resource *r;
r                 269 drivers/pci/bus.c 	pci_bus_for_each_resource(bus, r, i) {
r                 272 drivers/pci/bus.c 		if (!r)
r                 275 drivers/pci/bus.c 		if (resource_type(res) != resource_type(r))
r                 278 drivers/pci/bus.c 		start = max(r->start, res->start);
r                 279 drivers/pci/bus.c 		end = min(r->end, res->end);
r                 108 drivers/pci/controller/pci-ftpci100.c #define PCI_CONF_WHERE(r)	((r) & 0xFC)
r                  46 drivers/pci/controller/pci-mvebu.c #define  PCIE_CONF_REG(r)		((((r) & 0xf00) << 16) | ((r) & 0xfc))
r                 334 drivers/pci/controller/pci-thunder-pem.c 				      struct resource *r)
r                 336 drivers/pci/controller/pci-thunder-pem.c 	resource_size_t start = r->start, end = r->end;
r                 350 drivers/pci/controller/pci-thunder-pem.c 	dev_info(dev, "%pR %s reserved\n", r,
r                 179 drivers/pci/controller/pcie-cadence-ep.c 	u32 r;
r                 181 drivers/pci/controller/pcie-cadence-ep.c 	r = find_first_zero_bit(&ep->ob_region_map,
r                 183 drivers/pci/controller/pcie-cadence-ep.c 	if (r >= ep->max_regions - 1) {
r                 188 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_set_outbound_region(pcie, fn, r, false, addr, pci_addr, size);
r                 190 drivers/pci/controller/pcie-cadence-ep.c 	set_bit(r, &ep->ob_region_map);
r                 191 drivers/pci/controller/pcie-cadence-ep.c 	ep->ob_addr[r] = addr;
r                 201 drivers/pci/controller/pcie-cadence-ep.c 	u32 r;
r                 203 drivers/pci/controller/pcie-cadence-ep.c 	for (r = 0; r < ep->max_regions - 1; r++)
r                 204 drivers/pci/controller/pcie-cadence-ep.c 		if (ep->ob_addr[r] == addr)
r                 207 drivers/pci/controller/pcie-cadence-ep.c 	if (r == ep->max_regions - 1)
r                 210 drivers/pci/controller/pcie-cadence-ep.c 	cdns_pcie_reset_outbound_region(pcie, r);
r                 212 drivers/pci/controller/pcie-cadence-ep.c 	ep->ob_addr[r] = 0;
r                 213 drivers/pci/controller/pcie-cadence-ep.c 	clear_bit(r, &ep->ob_region_map);
r                 148 drivers/pci/controller/pcie-cadence-host.c 	int r, err;
r                 171 drivers/pci/controller/pcie-cadence-host.c 	r = 1;
r                 175 drivers/pci/controller/pcie-cadence-host.c 		if (r >= rc->max_regions)
r                 185 drivers/pci/controller/pcie-cadence-host.c 		cdns_pcie_set_outbound_region(pcie, 0, r, is_io,
r                 189 drivers/pci/controller/pcie-cadence-host.c 		r++;
r                  11 drivers/pci/controller/pcie-cadence.c 				   u32 r, bool is_io,
r                  30 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR0(r), addr0);
r                  31 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(r), addr1);
r                  72 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC0(r), desc0);
r                  73 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC1(r), desc1);
r                  81 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR0(r), addr0);
r                  82 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(r), addr1);
r                  86 drivers/pci/controller/pcie-cadence.c 						  u32 r, u64 cpu_addr)
r                 108 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR0(r), 0);
r                 109 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(r), 0);
r                 110 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC0(r), desc0);
r                 111 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC1(r), desc1);
r                 112 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR0(r), addr0);
r                 113 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(r), addr1);
r                 116 drivers/pci/controller/pcie-cadence.c void cdns_pcie_reset_outbound_region(struct cdns_pcie *pcie, u32 r)
r                 118 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR0(r), 0);
r                 119 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(r), 0);
r                 121 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC0(r), 0);
r                 122 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_DESC1(r), 0);
r                 124 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR0(r), 0);
r                 125 drivers/pci/controller/pcie-cadence.c 	cdns_pcie_writel(pcie, CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(r), 0);
r                 110 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0(r) \
r                 111 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0000 + ((r) & 0x1f) * 0x0020)
r                 123 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR1(r) \
r                 124 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0004 + ((r) & 0x1f) * 0x0020)
r                 127 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_DESC0(r) \
r                 128 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0008 + ((r) & 0x1f) * 0x0020)
r                 143 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_DESC1(r)	\
r                 144 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x000c + ((r) & 0x1f) * 0x0020)
r                 150 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_CPU_ADDR0(r) \
r                 151 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x0018 + ((r) & 0x1f) * 0x0020)
r                 157 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_CPU_ADDR1(r) \
r                 158 drivers/pci/controller/pcie-cadence.h 	(CDNS_PCIE_AT_BASE + 0x001c + ((r) & 0x1f) * 0x0020)
r                 310 drivers/pci/controller/pcie-cadence.h 				   u32 r, bool is_io,
r                 314 drivers/pci/controller/pcie-cadence.h 						  u32 r, u64 cpu_addr);
r                 316 drivers/pci/controller/pcie-cadence.h void cdns_pcie_reset_outbound_region(struct cdns_pcie *pcie, u32 r);
r                  70 drivers/pci/controller/pcie-rockchip-ep.c 					 u32 r, u32 type, u64 cpu_addr,
r                  92 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0(r));
r                  94 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR1(r));
r                  96 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_DESC0(r));
r                  98 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_DESC1(r));
r                 102 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0(r));
r                 104 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR1(r));
r                 106 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_DESC0(r));
r                 108 drivers/pci/controller/pcie-rockchip-ep.c 				    ROCKCHIP_PCIE_AT_OB_REGION_DESC1(r));
r                 119 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_OB_REGION_CPU_ADDR0(r));
r                 121 drivers/pci/controller/pcie-rockchip-ep.c 			    ROCKCHIP_PCIE_AT_OB_REGION_CPU_ADDR1(r));
r                 264 drivers/pci/controller/pcie-rockchip-ep.c 	u32 r;
r                 266 drivers/pci/controller/pcie-rockchip-ep.c 	r = find_first_zero_bit(&ep->ob_region_map,
r                 272 drivers/pci/controller/pcie-rockchip-ep.c 	if (r >= ep->max_regions - 1) {
r                 277 drivers/pci/controller/pcie-rockchip-ep.c 	rockchip_pcie_prog_ep_ob_atu(pcie, fn, r, AXI_WRAPPER_MEM_WRITE, addr,
r                 280 drivers/pci/controller/pcie-rockchip-ep.c 	set_bit(r, &ep->ob_region_map);
r                 281 drivers/pci/controller/pcie-rockchip-ep.c 	ep->ob_addr[r] = addr;
r                 291 drivers/pci/controller/pcie-rockchip-ep.c 	u32 r;
r                 293 drivers/pci/controller/pcie-rockchip-ep.c 	for (r = 0; r < ep->max_regions - 1; r++)
r                 294 drivers/pci/controller/pcie-rockchip-ep.c 		if (ep->ob_addr[r] == addr)
r                 301 drivers/pci/controller/pcie-rockchip-ep.c 	if (r == ep->max_regions - 1)
r                 304 drivers/pci/controller/pcie-rockchip-ep.c 	rockchip_pcie_clear_ep_ob_atu(rockchip, r);
r                 306 drivers/pci/controller/pcie-rockchip-ep.c 	ep->ob_addr[r] = 0;
r                 307 drivers/pci/controller/pcie-rockchip-ep.c 	clear_bit(r, &ep->ob_region_map);
r                 351 drivers/pci/controller/pcie-rockchip-ep.c 	u32 r = ep->max_regions - 1;
r                 358 drivers/pci/controller/pcie-rockchip-ep.c 		rockchip_pcie_prog_ep_ob_atu(rockchip, fn, r,
r                 239 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0(r) \
r                 240 drivers/pci/controller/pcie-rockchip.h 	(PCIE_RC_RP_ATS_BASE + 0x0000 + ((r) & 0x1f) * 0x0020)
r                 248 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR1(r) \
r                 249 drivers/pci/controller/pcie-rockchip.h 		(PCIE_RC_RP_ATS_BASE + 0x0004 + ((r) & 0x1f) * 0x0020)
r                 254 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_DESC0(r) \
r                 255 drivers/pci/controller/pcie-rockchip.h 		(PCIE_RC_RP_ATS_BASE + 0x0008 + ((r) & 0x1f) * 0x0020)
r                 256 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_DESC1(r)	\
r                 257 drivers/pci/controller/pcie-rockchip.h 		(PCIE_RC_RP_ATS_BASE + 0x000c + ((r) & 0x1f) * 0x0020)
r                 258 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_CPU_ADDR0(r) \
r                 259 drivers/pci/controller/pcie-rockchip.h 		(PCIE_RC_RP_ATS_BASE + 0x0018 + ((r) & 0x1f) * 0x0020)
r                 260 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_CPU_ADDR1(r) \
r                 261 drivers/pci/controller/pcie-rockchip.h 		(PCIE_RC_RP_ATS_BASE + 0x001c + ((r) & 0x1f) * 0x0020)
r                 579 drivers/pci/endpoint/pci-epc-core.c 	int r;
r                 581 drivers/pci/endpoint/pci-epc-core.c 	r = devres_destroy(dev, devm_pci_epc_release, devm_pci_epc_match,
r                 583 drivers/pci/endpoint/pci-epc-core.c 	dev_WARN_ONCE(dev, r, "couldn't find PCI EPC resource\n");
r                 126 drivers/pci/hotplug/cpcihp_generic.c 	struct resource *r;
r                 134 drivers/pci/hotplug/cpcihp_generic.c 	r = request_region(port, 1, "#ENUM hotswap signal register");
r                 135 drivers/pci/hotplug/cpcihp_generic.c 	if (!r)
r                 279 drivers/pci/hotplug/cpcihp_zt5550.c 	struct resource *r;
r                 283 drivers/pci/hotplug/cpcihp_zt5550.c 	r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register");
r                 284 drivers/pci/hotplug/cpcihp_zt5550.c 	if (!r)
r                 633 drivers/pci/pci.c 	struct resource *r;
r                 636 drivers/pci/pci.c 	pci_bus_for_each_resource(bus, r, i) {
r                 637 drivers/pci/pci.c 		if (!r)
r                 639 drivers/pci/pci.c 		if (resource_contains(r, res)) {
r                 645 drivers/pci/pci.c 			if (r->flags & IORESOURCE_PREFETCH &&
r                 657 drivers/pci/pci.c 			return r;
r                 678 drivers/pci/pci.c 		struct resource *r = &dev->resource[i];
r                 680 drivers/pci/pci.c 		if (r->start && resource_contains(r, res))
r                 681 drivers/pci/pci.c 			return r;
r                6164 drivers/pci/pci.c 	struct resource *r = &dev->resource[bar];
r                6167 drivers/pci/pci.c 	if (!(r->flags & IORESOURCE_MEM))
r                6170 drivers/pci/pci.c 	if (r->flags & IORESOURCE_PCI_FIXED) {
r                6172 drivers/pci/pci.c 			 bar, r, (unsigned long long)align);
r                6176 drivers/pci/pci.c 	size = resource_size(r);
r                6209 drivers/pci/pci.c 		 bar, r, (unsigned long long)align);
r                6212 drivers/pci/pci.c 		r->start = 0;
r                6213 drivers/pci/pci.c 		r->end = align - 1;
r                6215 drivers/pci/pci.c 		r->flags &= ~IORESOURCE_SIZEALIGN;
r                6216 drivers/pci/pci.c 		r->flags |= IORESOURCE_STARTALIGN;
r                6217 drivers/pci/pci.c 		r->start = align;
r                6218 drivers/pci/pci.c 		r->end = r->start + size - 1;
r                6220 drivers/pci/pci.c 	r->flags |= IORESOURCE_UNSET;
r                6233 drivers/pci/pci.c 	struct resource *r;
r                6272 drivers/pci/pci.c 			r = &dev->resource[i];
r                6273 drivers/pci/pci.c 			if (!(r->flags & IORESOURCE_MEM))
r                6275 drivers/pci/pci.c 			r->flags |= IORESOURCE_UNSET;
r                6276 drivers/pci/pci.c 			r->end = resource_size(r) - 1;
r                6277 drivers/pci/pci.c 			r->start = 0;
r                  47 drivers/pci/probe.c 	struct pci_domain_busn_res *r;
r                  49 drivers/pci/probe.c 	list_for_each_entry(r, &pci_domain_busn_res_list, list)
r                  50 drivers/pci/probe.c 		if (r->domain_nr == domain_nr)
r                  51 drivers/pci/probe.c 			return &r->res;
r                  53 drivers/pci/probe.c 	r = kzalloc(sizeof(*r), GFP_KERNEL);
r                  54 drivers/pci/probe.c 	if (!r)
r                  57 drivers/pci/probe.c 	r->domain_nr = domain_nr;
r                  58 drivers/pci/probe.c 	r->res.start = 0;
r                  59 drivers/pci/probe.c 	r->res.end = 0xff;
r                  60 drivers/pci/probe.c 	r->res.flags = IORESOURCE_BUS | IORESOURCE_PCI_FIXED;
r                  62 drivers/pci/probe.c 	list_add_tail(&r->list, &pci_domain_busn_res_list);
r                  64 drivers/pci/probe.c 	return &r->res;
r                 478 drivers/pci/quirks.c 		struct resource *r = &dev->resource[i];
r                 480 drivers/pci/quirks.c 		if (r->flags & IORESOURCE_MEM && resource_size(r) < PAGE_SIZE) {
r                 481 drivers/pci/quirks.c 			r->end = PAGE_SIZE - 1;
r                 482 drivers/pci/quirks.c 			r->start = 0;
r                 483 drivers/pci/quirks.c 			r->flags |= IORESOURCE_UNSET;
r                 485 drivers/pci/quirks.c 				 i, r);
r                 497 drivers/pci/quirks.c 	struct resource *r = &dev->resource[0];
r                 499 drivers/pci/quirks.c 	if ((r->start & 0x3ffffff) || r->end != r->start + 0x3ffffff) {
r                 500 drivers/pci/quirks.c 		r->flags |= IORESOURCE_UNSET;
r                 501 drivers/pci/quirks.c 		r->start = 0;
r                 502 drivers/pci/quirks.c 		r->end = 0x3ffffff;
r                1223 drivers/pci/quirks.c 	struct resource *r = &dev->resource[1];
r                1225 drivers/pci/quirks.c 	r->flags |= IORESOURCE_UNSET;
r                1226 drivers/pci/quirks.c 	r->start = 0;
r                1227 drivers/pci/quirks.c 	r->end = 0xffffff;
r                2155 drivers/pci/quirks.c 	struct resource *r = &dev->resource[0];
r                2157 drivers/pci/quirks.c 	if (r->start & 0x8) {
r                2158 drivers/pci/quirks.c 		r->flags |= IORESOURCE_UNSET;
r                2159 drivers/pci/quirks.c 		r->start = 0;
r                2160 drivers/pci/quirks.c 		r->end = 0xf;
r                2184 drivers/pci/quirks.c 			struct resource *r = &dev->resource[bar];
r                2187 drivers/pci/quirks.c 			r->flags |= IORESOURCE_UNSET;
r                2188 drivers/pci/quirks.c 			r->start = 0;
r                2189 drivers/pci/quirks.c 			r->end = 0xff;
r                 132 drivers/pci/setup-bus.c 		struct resource *r;
r                 137 drivers/pci/setup-bus.c 		r = &dev->resource[i];
r                 139 drivers/pci/setup-bus.c 		if (r->flags & IORESOURCE_PCI_FIXED)
r                 142 drivers/pci/setup-bus.c 		if (!(r->flags) || r->parent)
r                 145 drivers/pci/setup-bus.c 		r_align = pci_resource_alignment(dev, r);
r                 148 drivers/pci/setup-bus.c 				 i, r);
r                 155 drivers/pci/setup-bus.c 		tmp->res = r;
r                 764 drivers/pci/setup-bus.c 	struct resource *r;
r                 766 drivers/pci/setup-bus.c 	pci_bus_for_each_resource(bus, r, i) {
r                 767 drivers/pci/setup-bus.c 		if (r == &ioport_resource || r == &iomem_resource)
r                 769 drivers/pci/setup-bus.c 		if (r && (r->flags & type_mask) == type && !r->parent)
r                 770 drivers/pci/setup-bus.c 			return r;
r                 883 drivers/pci/setup-bus.c 			struct resource *r = &dev->resource[i];
r                 886 drivers/pci/setup-bus.c 			if (r->parent || !(r->flags & IORESOURCE_IO))
r                 888 drivers/pci/setup-bus.c 			r_size = resource_size(r);
r                 896 drivers/pci/setup-bus.c 			align = pci_resource_alignment(dev, r);
r                 901 drivers/pci/setup-bus.c 				children_add_size += get_res_add_size(realloc_head, r);
r                 998 drivers/pci/setup-bus.c 			struct resource *r = &dev->resource[i];
r                1001 drivers/pci/setup-bus.c 			if (r->parent || (r->flags & IORESOURCE_PCI_FIXED) ||
r                1002 drivers/pci/setup-bus.c 			    ((r->flags & mask) != type &&
r                1003 drivers/pci/setup-bus.c 			     (r->flags & mask) != type2 &&
r                1004 drivers/pci/setup-bus.c 			     (r->flags & mask) != type3))
r                1006 drivers/pci/setup-bus.c 			r_size = resource_size(r);
r                1011 drivers/pci/setup-bus.c 				add_align = max(pci_resource_alignment(dev, r), add_align);
r                1012 drivers/pci/setup-bus.c 				r->end = r->start - 1;
r                1013 drivers/pci/setup-bus.c 				add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */);
r                1024 drivers/pci/setup-bus.c 			align = pci_resource_alignment(dev, r);
r                1030 drivers/pci/setup-bus.c 					 i, r, (unsigned long long) align);
r                1031 drivers/pci/setup-bus.c 				r->flags = 0;
r                1045 drivers/pci/setup-bus.c 				children_add_size += get_res_add_size(realloc_head, r);
r                1046 drivers/pci/setup-bus.c 				children_add_align = get_res_add_align(realloc_head, r);
r                1300 drivers/pci/setup-bus.c static void assign_fixed_resource_on_bus(struct pci_bus *b, struct resource *r)
r                1311 drivers/pci/setup-bus.c 		if ((r->flags & mask) == (parent_r->flags & mask) &&
r                1312 drivers/pci/setup-bus.c 		    resource_contains(parent_r, r))
r                1313 drivers/pci/setup-bus.c 			request_resource(parent_r, r);
r                1327 drivers/pci/setup-bus.c 		struct resource *r = &dev->resource[i];
r                1329 drivers/pci/setup-bus.c 		if (r->parent || !(r->flags & IORESOURCE_PCI_FIXED) ||
r                1330 drivers/pci/setup-bus.c 		    !(r->flags & (IORESOURCE_IO | IORESOURCE_MEM)))
r                1334 drivers/pci/setup-bus.c 		while (b && !r->parent) {
r                1335 drivers/pci/setup-bus.c 			assign_fixed_resource_on_bus(b, r);
r                1388 drivers/pci/setup-bus.c 		struct resource *r = &dev->resource[i];
r                1390 drivers/pci/setup-bus.c 		if (!r->flags || r->parent)
r                1402 drivers/pci/setup-bus.c 		struct resource *r = &dev->resource[i];
r                1404 drivers/pci/setup-bus.c 		if (!r->flags || r->parent)
r                1489 drivers/pci/setup-bus.c 	struct resource *r;
r                1519 drivers/pci/setup-bus.c 	r = &b_res[idx];
r                1521 drivers/pci/setup-bus.c 	if (!r->parent)
r                1525 drivers/pci/setup-bus.c 	release_child_resources(r);
r                1526 drivers/pci/setup-bus.c 	if (!release_resource(r)) {
r                1527 drivers/pci/setup-bus.c 		type = old_flags = r->flags & PCI_RES_TYPE_MASK;
r                1529 drivers/pci/setup-bus.c 			 PCI_BRIDGE_RESOURCES + idx, r);
r                1531 drivers/pci/setup-bus.c 		r->end = resource_size(r) - 1;
r                1532 drivers/pci/setup-bus.c 		r->start = 0;
r                1533 drivers/pci/setup-bus.c 		r->flags = 0;
r                1540 drivers/pci/setup-bus.c 		r->flags = old_flags;
r                1666 drivers/pci/setup-bus.c 		struct resource *r = &dev->resource[i + PCI_IOV_RESOURCES];
r                1670 drivers/pci/setup-bus.c 		if (!r->flags)
r                1673 drivers/pci/setup-bus.c 		pcibios_resource_to_bus(dev->bus, &region, r);
r                 459 drivers/pci/setup-res.c 	struct resource *r;
r                 468 drivers/pci/setup-res.c 		r = &dev->resource[i];
r                 470 drivers/pci/setup-res.c 		if (!(r->flags & (IORESOURCE_IO | IORESOURCE_MEM)))
r                 473 drivers/pci/setup-res.c 				(!(r->flags & IORESOURCE_ROM_ENABLE)))
r                 476 drivers/pci/setup-res.c 		if (r->flags & IORESOURCE_UNSET) {
r                 478 drivers/pci/setup-res.c 				i, r);
r                 482 drivers/pci/setup-res.c 		if (!r->parent) {
r                 484 drivers/pci/setup-res.c 				i, r);
r                 488 drivers/pci/setup-res.c 		if (r->flags & IORESOURCE_IO)
r                 490 drivers/pci/setup-res.c 		if (r->flags & IORESOURCE_MEM)
r                 725 drivers/pci/switch/switchtec.c #define EV_GLB(i, r)[i] = {offsetof(struct sw_event_regs, r), global_ev_reg}
r                 726 drivers/pci/switch/switchtec.c #define EV_PAR(i, r)[i] = {offsetof(struct part_cfg_regs, r), part_ev_reg}
r                 727 drivers/pci/switch/switchtec.c #define EV_PFF(i, r)[i] = {offsetof(struct pff_csr_regs, r), pff_ev_reg}
r                 397 drivers/pci/xen-pcifront.c 	struct resource *r;
r                 400 drivers/pci/xen-pcifront.c 		r = &dev->resource[i];
r                 402 drivers/pci/xen-pcifront.c 		if (!r->parent && r->start && r->flags) {
r                 426 drivers/pcmcia/db1xxx_ss.c 	struct resource *r;
r                 468 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "card");
r                 469 drivers/pcmcia/db1xxx_ss.c 	sock->card_irq = r ? r->start : 0;
r                 474 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "insert");
r                 475 drivers/pcmcia/db1xxx_ss.c 	sock->insert_irq = r ? r->start : -1;
r                 477 drivers/pcmcia/db1xxx_ss.c 		sock->insert_gpio = r ? r->start : -1;
r                 478 drivers/pcmcia/db1xxx_ss.c 		sock->insert_irq = r ? gpio_to_irq(r->start) : -1;
r                 482 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "stschg");
r                 483 drivers/pcmcia/db1xxx_ss.c 	sock->stschg_irq = r ? r->start : -1;
r                 486 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "eject");
r                 487 drivers/pcmcia/db1xxx_ss.c 	sock->eject_irq = r ? r->start : -1;
r                 492 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-attr");
r                 493 drivers/pcmcia/db1xxx_ss.c 	if (!r) {
r                 498 drivers/pcmcia/db1xxx_ss.c 	sock->phys_attr = r->start;
r                 501 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-mem");
r                 502 drivers/pcmcia/db1xxx_ss.c 	if (!r) {
r                 507 drivers/pcmcia/db1xxx_ss.c 	sock->phys_mem = r->start;
r                 510 drivers/pcmcia/db1xxx_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-io");
r                 511 drivers/pcmcia/db1xxx_ss.c 	if (!r) {
r                 516 drivers/pcmcia/db1xxx_ss.c 	sock->phys_io = r->start;
r                  85 drivers/pcmcia/soc_common.c 	struct soc_pcmcia_regulator *r, int v)
r                  90 drivers/pcmcia/soc_common.c 	if (!r->reg)
r                  94 drivers/pcmcia/soc_common.c 	if (r->on == on)
r                  98 drivers/pcmcia/soc_common.c 		ret = regulator_set_voltage(r->reg, v * 100000, v * 100000);
r                 100 drivers/pcmcia/soc_common.c 			int vout = regulator_get_voltage(r->reg) / 100000;
r                 104 drivers/pcmcia/soc_common.c 				 r == &skt->vcc ? "Vcc" : "Vpp",
r                 108 drivers/pcmcia/soc_common.c 		ret = regulator_enable(r->reg);
r                 110 drivers/pcmcia/soc_common.c 		ret = regulator_disable(r->reg);
r                 113 drivers/pcmcia/soc_common.c 		r->on = on;
r                 165 drivers/pcmcia/soc_common.h 	struct soc_pcmcia_regulator *r, int v);
r                 212 drivers/pcmcia/xxs1500_ss.c 	struct resource *r;
r                 222 drivers/pcmcia/xxs1500_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-attr");
r                 223 drivers/pcmcia/xxs1500_ss.c 	if (!r) {
r                 227 drivers/pcmcia/xxs1500_ss.c 	sock->phys_attr = r->start;
r                 230 drivers/pcmcia/xxs1500_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-mem");
r                 231 drivers/pcmcia/xxs1500_ss.c 	if (!r) {
r                 235 drivers/pcmcia/xxs1500_ss.c 	sock->phys_mem = r->start;
r                 238 drivers/pcmcia/xxs1500_ss.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pcmcia-io");
r                 239 drivers/pcmcia/xxs1500_ss.c 	if (!r) {
r                 243 drivers/pcmcia/xxs1500_ss.c 	sock->phys_io = r->start;
r                 413 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(sip-insertions-r-set,		0x16),
r                 414 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(sip-insertions-r-clear,		0x17),
r                 415 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(dip-insertions-r-set,		0x18),
r                 416 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(dip-insertions-r-clear,		0x19),
r                 417 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(dip-insertions-force-r-set,	0x1a),
r                 422 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(r-set-replacement,			0x1f),
r                 423 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(r-clear-replacement,		0x20),
r                 424 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(old-r-replacement,			0x21),
r                 426 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(young-r-replacement,		0x23),
r                 385 drivers/phy/allwinner/phy-sun4i-usb.c 		int r;
r                 387 drivers/phy/allwinner/phy-sun4i-usb.c 		r = power_supply_get_property(data->vbus_power_supply,
r                 389 drivers/phy/allwinner/phy-sun4i-usb.c 		if (r == 0)
r                 165 drivers/phy/marvell/phy-pxa-28nm-hsic.c 	struct resource *r;
r                 179 drivers/phy/marvell/phy-pxa-28nm-hsic.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 180 drivers/phy/marvell/phy-pxa-28nm-hsic.c 	mv_phy->base = devm_ioremap_resource(&pdev->dev, r);
r                 300 drivers/phy/marvell/phy-pxa-28nm-usb2.c 	struct resource *r;
r                 314 drivers/phy/marvell/phy-pxa-28nm-usb2.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 315 drivers/phy/marvell/phy-pxa-28nm-usb2.c 	mv_phy->base = devm_ioremap_resource(&pdev->dev, r);
r                 599 drivers/phy/phy-core.c 	int r;
r                 604 drivers/phy/phy-core.c 	r = devres_destroy(dev, devm_phy_release, devm_phy_match, phy);
r                 605 drivers/phy/phy-core.c 	dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n");
r                 954 drivers/phy/phy-core.c 	int r;
r                 956 drivers/phy/phy-core.c 	r = devres_destroy(dev, devm_phy_consume, devm_phy_match, phy);
r                 957 drivers/phy/phy-core.c 	dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n");
r                1093 drivers/phy/phy-core.c 	int r;
r                1095 drivers/phy/phy-core.c 	r = devres_destroy(dev, devm_phy_provider_release, devm_phy_match,
r                1097 drivers/phy/phy-core.c 	dev_WARN_ONCE(dev, r, "couldn't find PHY provider device resource\n");
r                  57 drivers/phy/renesas/phy-rcar-gen3-usb3.c static void write_clkset1_for_usb_extal(struct rcar_gen3_usb3 *r, bool reset)
r                  65 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	writew(val, r->base + USB30_CLKSET1);
r                  68 drivers/phy/renesas/phy-rcar-gen3-usb3.c static void rcar_gen3_phy_usb3_enable_ssc(struct rcar_gen3_usb3 *r)
r                  72 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	switch (r->ssc_range) {
r                  83 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		dev_err(&r->phy->dev, "%s: unsupported range (%x)\n", __func__,
r                  84 drivers/phy/renesas/phy-rcar-gen3-usb3.c 			r->ssc_range);
r                  88 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	writew(val, r->base + USB30_SSC_SET);
r                  91 drivers/phy/renesas/phy-rcar-gen3-usb3.c static void rcar_gen3_phy_usb3_select_usb_extal(struct rcar_gen3_usb3 *r)
r                  93 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	write_clkset1_for_usb_extal(r, false);
r                  94 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (r->ssc_range)
r                  95 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		rcar_gen3_phy_usb3_enable_ssc(r);
r                  97 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	       r->base + USB30_CLKSET0);
r                  98 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	writew(PHY_ENABLE_RESET_EN, r->base + USB30_PHY_ENABLE);
r                  99 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	write_clkset1_for_usb_extal(r, true);
r                 101 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	write_clkset1_for_usb_extal(r, false);
r                 106 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	struct rcar_gen3_usb3 *r = phy_get_drvdata(p);
r                 108 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	dev_vdbg(&r->phy->dev, "%s: enter (%d, %d, %d)\n", __func__,
r                 109 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		 r->usb3s_clk, r->usb_extal, r->ssc_range);
r                 111 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (!r->usb3s_clk && r->usb_extal)
r                 112 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		rcar_gen3_phy_usb3_select_usb_extal(r);
r                 115 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	writew(VBUS_EN_VBUS_EN, r->base + USB30_VBUS_EN);
r                 134 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	struct rcar_gen3_usb3 *r;
r                 145 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	r = devm_kzalloc(dev, sizeof(*r), GFP_KERNEL);
r                 146 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (!r)
r                 150 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	r->base = devm_ioremap_resource(dev, res);
r                 151 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (IS_ERR(r->base))
r                 152 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		return PTR_ERR(r->base);
r                 156 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		r->usb3s_clk = !!clk_get_rate(clk);
r                 161 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		r->usb_extal = !!clk_get_rate(clk);
r                 165 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (!r->usb3s_clk && !r->usb_extal) {
r                 177 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	r->phy = devm_phy_create(dev, NULL, &rcar_gen3_phy_usb3_ops);
r                 178 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	if (IS_ERR(r->phy)) {
r                 180 drivers/phy/renesas/phy-rcar-gen3-usb3.c 		ret = PTR_ERR(r->phy);
r                 184 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	of_property_read_u32(dev->of_node, "renesas,ssc-range", &r->ssc_range);
r                 186 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	platform_set_drvdata(pdev, r);
r                 187 drivers/phy/renesas/phy-rcar-gen3-usb3.c 	phy_set_drvdata(r->phy, r);
r                2185 drivers/pinctrl/core.c 	struct pctldev **r = res;
r                2187 drivers/pinctrl/core.c 	if (WARN_ON(!r || !*r))
r                2190 drivers/pinctrl/core.c 	return *r == data;
r                  25 drivers/pinctrl/intel/pinctrl-cannonlake.c #define CNL_GPP(r, s, e, g)				\
r                  27 drivers/pinctrl/intel/pinctrl-cannonlake.c 		.reg_num = (r),				\
r                  23 drivers/pinctrl/intel/pinctrl-cedarfork.c #define CDF_GPP(r, s, e)				\
r                  25 drivers/pinctrl/intel/pinctrl-cedarfork.c 		.reg_num = (r),				\
r                  24 drivers/pinctrl/intel/pinctrl-icelake.c #define ICL_GPP(r, s, e, g)				\
r                  26 drivers/pinctrl/intel/pinctrl-icelake.c 		.reg_num = (r),				\
r                  39 drivers/pinctrl/intel/pinctrl-sunrisepoint.c #define SPTH_GPP(r, s, e, g)				\
r                  41 drivers/pinctrl/intel/pinctrl-sunrisepoint.c 		.reg_num = (r),				\
r                  24 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h #define BANK_PMX(n, f, l, r, o)				\
r                  29 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h 		.reg	= r,					\
r                  15 drivers/pinctrl/meson/pinctrl-meson8-pmx.h #define PMX_DATA(r, b, g)						\
r                  17 drivers/pinctrl/meson/pinctrl-meson8-pmx.h 		.reg = r,						\
r                  22 drivers/pinctrl/meson/pinctrl-meson8-pmx.h #define GROUP(grp, r, b)						\
r                  28 drivers/pinctrl/meson/pinctrl-meson8-pmx.h 			PMX_DATA(r, b, false),				\
r                 273 drivers/pinctrl/pinctrl-digicolor.c 	struct resource *r;
r                 284 drivers/pinctrl/pinctrl-digicolor.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 285 drivers/pinctrl/pinctrl-digicolor.c 	pmap->regs = devm_ioremap_resource(&pdev->dev, r);
r                  44 drivers/pinctrl/pinctrl-falcon.c #define pad_getbit(m, r, p)	(!!(ltq_r32(m + r) & (1 << p)))
r                 428 drivers/pinctrl/pinctrl-ocelot.c #define REG(r, info, p) ((r) * (info)->stride + (4 * ((p) / 32)))
r                  59 drivers/pinctrl/pinctrl-xway.c #define gpio_getbit(m, r, p)	(!!(ltq_r32(m + r) & BIT(p)))
r                  60 drivers/pinctrl/pinctrl-xway.c #define gpio_setbit(m, r, p)	ltq_w32_mask(0, BIT(p), m + r)
r                  61 drivers/pinctrl/pinctrl-xway.c #define gpio_clearbit(m, r, p)	ltq_w32_mask(BIT(p), 0, m + r)
r                 128 drivers/pinctrl/sh-pfc/core.c static int sh_pfc_enum_in_range(u16 enum_id, const struct pinmux_range *r)
r                 130 drivers/pinctrl/sh-pfc/core.c 	if (enum_id < r->begin)
r                 133 drivers/pinctrl/sh-pfc/core.c 	if (enum_id > r->end)
r                 141 drivers/pinctrl/sh-pfc/sh_pfc.h #define PINMUX_CFG_REG(name, r, r_width, f_width, ids)			\
r                 142 drivers/pinctrl/sh-pfc/sh_pfc.h 	.reg = r, .reg_width = r_width,					\
r                 161 drivers/pinctrl/sh-pfc/sh_pfc.h #define PINMUX_CFG_REG_VAR(name, r, r_width, f_widths, ids)		\
r                 162 drivers/pinctrl/sh-pfc/sh_pfc.h 	.reg = r, .reg_width = r_width,					\
r                 178 drivers/pinctrl/sh-pfc/sh_pfc.h #define PINMUX_DRIVE_REG(name, r) \
r                 179 drivers/pinctrl/sh-pfc/sh_pfc.h 	.reg = r, \
r                 211 drivers/pinctrl/sh-pfc/sh_pfc.h #define PINMUX_DATA_REG(name, r, r_width, ids)				\
r                 212 drivers/pinctrl/sh-pfc/sh_pfc.h 	.reg = r, .reg_width = r_width +				\
r                  36 drivers/pinctrl/sirf/pinctrl-atlas7.c #define CLR_REG(r)	((r) + 0x04)
r                1544 drivers/pinctrl/tegra/pinctrl-tegra114.c #define DRV_PINGROUP_REG(r)		((r) - DRV_PINGROUP_REG_A)
r                1545 drivers/pinctrl/tegra/pinctrl-tegra114.c #define PINGROUP_REG(r)			((r) - PINGROUP_REG_A)
r                1550 drivers/pinctrl/tegra/pinctrl-tegra114.c #define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel)		\
r                1561 drivers/pinctrl/tegra/pinctrl-tegra114.c 		.mux_reg = PINGROUP_REG(r),				\
r                1564 drivers/pinctrl/tegra/pinctrl-tegra114.c 		.pupd_reg = PINGROUP_REG(r),				\
r                1567 drivers/pinctrl/tegra/pinctrl-tegra114.c 		.tri_reg = PINGROUP_REG(r),				\
r                1579 drivers/pinctrl/tegra/pinctrl-tegra114.c #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b,	\
r                1594 drivers/pinctrl/tegra/pinctrl-tegra114.c 		.drv_reg = DRV_PINGROUP_REG(r),				\
r                1712 drivers/pinctrl/tegra/pinctrl-tegra124.c #define DRV_PINGROUP_REG(r)		((r) - DRV_PINGROUP_REG_A)
r                1713 drivers/pinctrl/tegra/pinctrl-tegra124.c #define PINGROUP_REG(r)			((r) - PINGROUP_REG_A)
r                1714 drivers/pinctrl/tegra/pinctrl-tegra124.c #define MIPI_PAD_CTRL_PINGROUP_REG_Y(r)	((r) - MIPI_PAD_CTRL_PINGROUP_REG_A)
r                1719 drivers/pinctrl/tegra/pinctrl-tegra124.c #define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior, rcv_sel)		\
r                1730 drivers/pinctrl/tegra/pinctrl-tegra124.c 		.mux_reg = PINGROUP_REG(r),				\
r                1733 drivers/pinctrl/tegra/pinctrl-tegra124.c 		.pupd_reg = PINGROUP_REG(r),				\
r                1736 drivers/pinctrl/tegra/pinctrl-tegra124.c 		.tri_reg = PINGROUP_REG(r),				\
r                1748 drivers/pinctrl/tegra/pinctrl-tegra124.c #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b,	\
r                1763 drivers/pinctrl/tegra/pinctrl-tegra124.c 		.drv_reg = DRV_PINGROUP_REG(r),				\
r                1780 drivers/pinctrl/tegra/pinctrl-tegra124.c #define MIPI_PAD_CTRL_PINGROUP(pg_name, r, b, f0, f1)			\
r                1791 drivers/pinctrl/tegra/pinctrl-tegra124.c 		.mux_reg = MIPI_PAD_CTRL_PINGROUP_REG_Y(r),		\
r                  70 drivers/pinctrl/tegra/pinctrl-tegra194.c #define DRV_PINGROUP_ENTRY_Y(r, drvdn_b, drvdn_w, drvup_b,	\
r                  73 drivers/pinctrl/tegra/pinctrl-tegra194.c 		.drv_reg = ((r)),			\
r                  84 drivers/pinctrl/tegra/pinctrl-tegra194.c #define PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_lpbk, e_input,	\
r                  86 drivers/pinctrl/tegra/pinctrl-tegra194.c 		.mux_reg = ((r)),				\
r                  92 drivers/pinctrl/tegra/pinctrl-tegra194.c 		.pupd_reg = ((r)),		\
r                  95 drivers/pinctrl/tegra/pinctrl-tegra194.c 		.tri_reg = ((r)),				\
r                 110 drivers/pinctrl/tegra/pinctrl-tegra194.c #define PINGROUP(pg_name, f0, f1, f2, f3, r, bank, pupd, e_lpbk,	\
r                 122 drivers/pinctrl/tegra/pinctrl-tegra194.c 		PIN_PINGROUP_ENTRY_Y(r, bank, pupd, e_lpbk,	\
r                2016 drivers/pinctrl/tegra/pinctrl-tegra20.c #define DRV_PG_EXT(pg_name, r, hsm_b, schmitt_b, lpmd_b,	\
r                2026 drivers/pinctrl/tegra/pinctrl-tegra20.c 		.drv_reg = ((r) - PINGROUP_REG_A),		\
r                2044 drivers/pinctrl/tegra/pinctrl-tegra20.c #define DRV_PG(pg_name, r) \
r                2045 drivers/pinctrl/tegra/pinctrl-tegra20.c 	DRV_PG_EXT(pg_name, r, 2,  3,  4, 12, 20, 28, 2, 30, 2)
r                1272 drivers/pinctrl/tegra/pinctrl-tegra210.c #define DRV_PINGROUP_REG(r)		((r) - DRV_PINGROUP_REG_A)
r                1273 drivers/pinctrl/tegra/pinctrl-tegra210.c #define PINGROUP_REG(r)			((r) - PINGROUP_REG_A)
r                1278 drivers/pinctrl/tegra/pinctrl-tegra210.c #define PINGROUP(pg_name, f0, f1, f2, f3, r, hsm, drvtype, e_io_hv,	\
r                1291 drivers/pinctrl/tegra/pinctrl-tegra210.c 		.mux_reg = PINGROUP_REG(r),				\
r                1294 drivers/pinctrl/tegra/pinctrl-tegra210.c 		.pupd_reg = PINGROUP_REG(r),				\
r                1297 drivers/pinctrl/tegra/pinctrl-tegra210.c 		.tri_reg = PINGROUP_REG(r),				\
r                1322 drivers/pinctrl/tegra/pinctrl-tegra210.c #define DRV_PINGROUP(pg_name, r, prk_mask, drvdn_b, drvdn_w, drvup_b,	\
r                1336 drivers/pinctrl/tegra/pinctrl-tegra210.c 		.drv_reg = DRV_PINGROUP_REG(r),				\
r                2105 drivers/pinctrl/tegra/pinctrl-tegra30.c #define DRV_PINGROUP_REG(r)		((r) - DRV_PINGROUP_REG_A)
r                2106 drivers/pinctrl/tegra/pinctrl-tegra30.c #define PINGROUP_REG(r)			((r) - PINGROUP_REG_A)
r                2111 drivers/pinctrl/tegra/pinctrl-tegra30.c #define PINGROUP(pg_name, f0, f1, f2, f3, r, od, ior)			\
r                2122 drivers/pinctrl/tegra/pinctrl-tegra30.c 		.mux_reg = PINGROUP_REG(r),				\
r                2125 drivers/pinctrl/tegra/pinctrl-tegra30.c 		.pupd_reg = PINGROUP_REG(r),				\
r                2128 drivers/pinctrl/tegra/pinctrl-tegra30.c 		.tri_reg = PINGROUP_REG(r),				\
r                2140 drivers/pinctrl/tegra/pinctrl-tegra30.c #define DRV_PINGROUP(pg_name, r, hsm_b, schmitt_b, lpmd_b, drvdn_b,	\
r                2155 drivers/pinctrl/tegra/pinctrl-tegra30.c 		.drv_reg = DRV_PINGROUP_REG(r),				\
r                 217 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	int r;
r                 264 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = regmap_update_bits(iod->regmap, cfg->offset, reg_mask, reg_val);
r                 270 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	return r;
r                 287 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	int r;
r                 290 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = regmap_update_bits(iod->regmap, reg->reg_global_lock_offset,
r                 292 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (r)
r                 293 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 		return r;
r                 296 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = regmap_read(iod->regmap, reg->reg_refclk_offset, &val);
r                 297 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (r)
r                 298 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 		return r;
r                 302 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = regmap_read(iod->regmap, reg->reg_coarse_offset, &val);
r                 303 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (r)
r                 304 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 		return r;
r                 326 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = regmap_read(iod->regmap, reg->reg_fine_offset, &val);
r                 327 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (r)
r                 328 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 		return r;
r                 399 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	const struct ti_iodelay_reg_data *r = iod->reg_data;
r                 402 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (offset > r->regmap_config->max_register) {
r                 404 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 			offset, r->regmap_config->max_register);
r                 408 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	index = (offset - r->reg_start_offset) / r->regmap_config->reg_stride;
r                 409 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	index /= r->reg_nr_per_pin;
r                 431 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	const struct ti_iodelay_reg_data *r;
r                 439 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = iod->reg_data;
r                 441 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	if (pinctrl_spec->args_count < r->reg_nr_per_pin) {
r                 641 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	const struct ti_iodelay_reg_data *r = iod->reg_data;
r                 644 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	offset = selector * r->regmap_config->reg_stride;
r                 645 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	offset *= r->reg_nr_per_pin;
r                 646 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	offset += r->reg_start_offset;
r                 658 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	const struct ti_iodelay_reg_data *r;
r                 663 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	r = iod->reg_data;
r                 670 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	regmap_read(iod->regmap, offset + r->regmap_config->reg_stride, &oen);
r                 671 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	regmap_read(iod->regmap, offset + r->regmap_config->reg_stride * 2,
r                 744 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	const struct ti_iodelay_reg_data *r = iod->reg_data;
r                 749 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	nr_pins = ti_iodelay_offset_to_pin(iod, r->regmap_config->max_register);
r                 759 drivers/pinctrl/ti/pinctrl-ti-iodelay.c 	phy_reg = r->reg_start_offset + base_phy;
r                 702 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 	struct uniphier_pinctrl_reg_region *r;
r                 705 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 	list_for_each_entry(r, &priv->reg_regions, node) {
r                 706 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 		ret = regmap_bulk_read(priv->regmap, r->base, r->vals,
r                 707 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 				       r->nregs);
r                 718 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 	struct uniphier_pinctrl_reg_region *r;
r                 721 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 	list_for_each_entry(r, &priv->reg_regions, node) {
r                 722 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 		ret = regmap_bulk_write(priv->regmap, r->base, r->vals,
r                 723 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c 					r->nregs);
r                 179 drivers/platform/chrome/cros_ec_proto.c 	struct ec_response_host_event_mask *r;
r                 185 drivers/platform/chrome/cros_ec_proto.c 	msg->insize = sizeof(*r);
r                 189 drivers/platform/chrome/cros_ec_proto.c 		r = (struct ec_response_host_event_mask *)msg->data;
r                 190 drivers/platform/chrome/cros_ec_proto.c 		*mask = r->mask;
r                  80 drivers/platform/chrome/cros_usbpd_logger.c static void cros_usbpd_print_log_entry(struct ec_response_pd_log *r,
r                  94 drivers/platform/chrome/cros_usbpd_logger.c 	tstamp = ktime_sub_us(tstamp, r->timestamp << PD_LOG_TIMESTAMP_SHIFT);
r                  97 drivers/platform/chrome/cros_usbpd_logger.c 	switch (r->type) {
r                  99 drivers/platform/chrome/cros_usbpd_logger.c 		if (r->data & CHARGE_FLAGS_OVERRIDE)
r                 102 drivers/platform/chrome/cros_usbpd_logger.c 		if (r->data & CHARGE_FLAGS_DELAYED_OVERRIDE)
r                 105 drivers/platform/chrome/cros_usbpd_logger.c 		role_idx = r->data & CHARGE_FLAGS_ROLE_MASK;
r                 109 drivers/platform/chrome/cros_usbpd_logger.c 		type_idx = (r->data & CHARGE_FLAGS_TYPE_MASK)
r                 121 drivers/platform/chrome/cros_usbpd_logger.c 		meas = (struct usb_chg_measures *)r->payload;
r                 123 drivers/platform/chrome/cros_usbpd_logger.c 				  role,	r->data & CHARGE_FLAGS_DUAL_ROLE ?
r                 132 drivers/platform/chrome/cros_usbpd_logger.c 		fault = r->data < ARRAY_SIZE(fault_names) ? fault_names[r->data]
r                 137 drivers/platform/chrome/cros_usbpd_logger.c 		len += append_str(buf, len, "DP mode %sabled", r->data == 1 ?
r                 141 drivers/platform/chrome/cros_usbpd_logger.c 		minfo = (struct mcdp_info *)r->payload;
r                 151 drivers/platform/chrome/cros_usbpd_logger.c 		len += append_str(buf, len, "Event %02x (%04x) [", r->type,
r                 152 drivers/platform/chrome/cros_usbpd_logger.c 				  r->data);
r                 154 drivers/platform/chrome/cros_usbpd_logger.c 		for (i = 0; i < PD_LOG_SIZE(r->size_port); i++)
r                 155 drivers/platform/chrome/cros_usbpd_logger.c 			len += append_str(buf, len, "%02x ", r->payload[i]);
r                 165 drivers/platform/chrome/cros_usbpd_logger.c 		PD_LOG_PORT(r->size_port), buf);
r                 174 drivers/platform/chrome/cros_usbpd_logger.c 	struct ec_response_pd_log *r;
r                 179 drivers/platform/chrome/cros_usbpd_logger.c 		r = ec_get_log_entry(logger);
r                 181 drivers/platform/chrome/cros_usbpd_logger.c 		if (IS_ERR(r)) {
r                 182 drivers/platform/chrome/cros_usbpd_logger.c 			dev_dbg(dev, "Cannot get PD log %ld\n", PTR_ERR(r));
r                 185 drivers/platform/chrome/cros_usbpd_logger.c 		if (r->type == PD_EVENT_NO_ENTRY)
r                 188 drivers/platform/chrome/cros_usbpd_logger.c 		cros_usbpd_print_log_entry(r, now);
r                 895 drivers/platform/goldfish/goldfish_pipe.c 	struct resource *r;
r                 905 drivers/platform/goldfish/goldfish_pipe.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 906 drivers/platform/goldfish/goldfish_pipe.c 	if (!r || resource_size(r) < PAGE_SIZE) {
r                 910 drivers/platform/goldfish/goldfish_pipe.c 	dev->base = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE);
r                 916 drivers/platform/goldfish/goldfish_pipe.c 	r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 917 drivers/platform/goldfish/goldfish_pipe.c 	if (!r)
r                 920 drivers/platform/goldfish/goldfish_pipe.c 	dev->irq = r->start;
r                 310 drivers/platform/olpc/olpc-ec.c 	unsigned int i, r;
r                 322 drivers/platform/olpc/olpc-ec.c 	r = rp - respbuf;
r                 323 drivers/platform/olpc/olpc-ec.c 	return simple_read_from_buffer(buf, size, ppos, respbuf, r);
r                 688 drivers/platform/x86/asus-laptop.c 	int r = 0;
r                 708 drivers/platform/x86/asus-laptop.c 		r = asus_led_register(asus, &asus->wled, "asus::wlan",
r                 710 drivers/platform/x86/asus-laptop.c 	if (r)
r                 713 drivers/platform/x86/asus-laptop.c 		r = asus_led_register(asus, &asus->bled, "asus::bluetooth",
r                 715 drivers/platform/x86/asus-laptop.c 	if (r)
r                 717 drivers/platform/x86/asus-laptop.c 	r = asus_led_register(asus, &asus->mled, "asus::mail", METHOD_MLED);
r                 718 drivers/platform/x86/asus-laptop.c 	if (r)
r                 720 drivers/platform/x86/asus-laptop.c 	r = asus_led_register(asus, &asus->tled, "asus::touchpad", METHOD_TLED);
r                 721 drivers/platform/x86/asus-laptop.c 	if (r)
r                 723 drivers/platform/x86/asus-laptop.c 	r = asus_led_register(asus, &asus->rled, "asus::record", METHOD_RLED);
r                 724 drivers/platform/x86/asus-laptop.c 	if (r)
r                 726 drivers/platform/x86/asus-laptop.c 	r = asus_led_register(asus, &asus->pled, "asus::phone", METHOD_PLED);
r                 727 drivers/platform/x86/asus-laptop.c 	if (r)
r                 729 drivers/platform/x86/asus-laptop.c 	r = asus_led_register(asus, &asus->gled, "asus::gaming", METHOD_GLED);
r                 730 drivers/platform/x86/asus-laptop.c 	if (r)
r                 744 drivers/platform/x86/asus-laptop.c 		r = led_classdev_register(&asus->platform_device->dev, cdev);
r                 747 drivers/platform/x86/asus-laptop.c 	if (r)
r                 749 drivers/platform/x86/asus-laptop.c 	return r;
r                 224 drivers/platform/x86/classmate-laptop.c 	int r;
r                 230 drivers/platform/x86/classmate-laptop.c 	r = kstrtoul(buf, 0, &sensitivity);
r                 231 drivers/platform/x86/classmate-laptop.c 	if (r)
r                 232 drivers/platform/x86/classmate-laptop.c 		return r;
r                 273 drivers/platform/x86/classmate-laptop.c 	int r;
r                 279 drivers/platform/x86/classmate-laptop.c 	r = kstrtoul(buf, 0, &g_select);
r                 280 drivers/platform/x86/classmate-laptop.c 	if (r)
r                 281 drivers/platform/x86/classmate-laptop.c 		return r;
r                 567 drivers/platform/x86/classmate-laptop.c 	int r;
r                 573 drivers/platform/x86/classmate-laptop.c 	r = kstrtoul(buf, 0, &sensitivity);
r                 574 drivers/platform/x86/classmate-laptop.c 	if (r)
r                 575 drivers/platform/x86/classmate-laptop.c 		return r;
r                1085 drivers/platform/x86/classmate-laptop.c 	int r;
r                1087 drivers/platform/x86/classmate-laptop.c 	r = acpi_bus_register_driver(&cmpc_keys_acpi_driver);
r                1088 drivers/platform/x86/classmate-laptop.c 	if (r)
r                1091 drivers/platform/x86/classmate-laptop.c 	r = acpi_bus_register_driver(&cmpc_ipml_acpi_driver);
r                1092 drivers/platform/x86/classmate-laptop.c 	if (r)
r                1095 drivers/platform/x86/classmate-laptop.c 	r = acpi_bus_register_driver(&cmpc_tablet_acpi_driver);
r                1096 drivers/platform/x86/classmate-laptop.c 	if (r)
r                1099 drivers/platform/x86/classmate-laptop.c 	r = acpi_bus_register_driver(&cmpc_accel_acpi_driver);
r                1100 drivers/platform/x86/classmate-laptop.c 	if (r)
r                1103 drivers/platform/x86/classmate-laptop.c 	r = acpi_bus_register_driver(&cmpc_accel_acpi_driver_v4);
r                1104 drivers/platform/x86/classmate-laptop.c 	if (r)
r                1107 drivers/platform/x86/classmate-laptop.c 	return r;
r                1122 drivers/platform/x86/classmate-laptop.c 	return r;
r                 323 drivers/platform/x86/hp-wmi.c 	enum hp_wmi_radio r = (enum hp_wmi_radio) data;
r                 324 drivers/platform/x86/hp-wmi.c 	int query = BIT(r + 8) | ((!blocked) << r);
r                 337 drivers/platform/x86/hp-wmi.c static bool hp_wmi_get_sw_state(enum hp_wmi_radio r)
r                 339 drivers/platform/x86/hp-wmi.c 	int mask = 0x200 << (r * 8);
r                 349 drivers/platform/x86/hp-wmi.c static bool hp_wmi_get_hw_state(enum hp_wmi_radio r)
r                 351 drivers/platform/x86/hp-wmi.c 	int mask = 0x800 << (r * 8);
r                  47 drivers/platform/x86/i2c-multi-instantiate.c 	LIST_HEAD(r);
r                  51 drivers/platform/x86/i2c-multi-instantiate.c 	ret = acpi_dev_get_resources(adev, &r, i2c_multi_inst_count, &count);
r                  55 drivers/platform/x86/i2c-multi-instantiate.c 	acpi_dev_free_resource_list(&r);
r                  89 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 114 drivers/platform/x86/lg-laptop.c 	r = buffer.pointer;
r                 115 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_INTEGER) {
r                 116 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 120 drivers/platform/x86/lg-laptop.c 	res = r->integer.value;
r                 121 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 279 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 287 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FAN_MODE, WM_GET, 0);
r                 288 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 291 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_INTEGER) {
r                 292 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 296 drivers/platform/x86/lg-laptop.c 	m = r->integer.value;
r                 297 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 298 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FAN_MODE, WM_SET, (m & 0xffffff0f) | (value << 4));
r                 299 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 300 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FAN_MODE, WM_SET, (m & 0xfffffff0) | value);
r                 301 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 310 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 312 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FAN_MODE, WM_GET, 0);
r                 313 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 316 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_INTEGER) {
r                 317 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 321 drivers/platform/x86/lg-laptop.c 	status = r->integer.value & 0x01;
r                 322 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 332 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 339 drivers/platform/x86/lg-laptop.c 	r = lg_wmbb(WMBB_USB_CHARGE, WM_SET, value);
r                 340 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 343 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 351 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 353 drivers/platform/x86/lg-laptop.c 	r = lg_wmbb(WMBB_USB_CHARGE, WM_GET, 0);
r                 354 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 357 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_BUFFER) {
r                 358 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 362 drivers/platform/x86/lg-laptop.c 	status = !!r->buffer.pointer[0x10];
r                 364 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 374 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 381 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_READER_MODE, WM_SET, value);
r                 382 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 385 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 393 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 395 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_READER_MODE, WM_GET, 0);
r                 396 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 399 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_INTEGER) {
r                 400 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 404 drivers/platform/x86/lg-laptop.c 	status = !!r->integer.value;
r                 406 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 416 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 423 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FN_LOCK, WM_SET, value);
r                 424 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 427 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 435 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 437 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_FN_LOCK, WM_GET, 0);
r                 438 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 441 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_BUFFER) {
r                 442 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 446 drivers/platform/x86/lg-laptop.c 	status = !!r->buffer.pointer[0];
r                 447 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 464 drivers/platform/x86/lg-laptop.c 		union acpi_object *r;
r                 466 drivers/platform/x86/lg-laptop.c 		r = lg_wmab(WM_BATT_LIMIT, WM_SET, value);
r                 467 drivers/platform/x86/lg-laptop.c 		if (!r)
r                 470 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 482 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 484 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_BATT_LIMIT, WM_GET, 0);
r                 485 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 488 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_INTEGER) {
r                 489 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 493 drivers/platform/x86/lg-laptop.c 	status = r->integer.value;
r                 494 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 523 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 525 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_TLED, WM_SET, brightness > LED_OFF);
r                 526 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 540 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 547 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_KEY_LIGHT, WM_SET, val);
r                 548 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 553 drivers/platform/x86/lg-laptop.c 	union acpi_object *r;
r                 556 drivers/platform/x86/lg-laptop.c 	r = lg_wmab(WM_KEY_LIGHT, WM_GET, 0);
r                 558 drivers/platform/x86/lg-laptop.c 	if (!r)
r                 561 drivers/platform/x86/lg-laptop.c 	if (r->type != ACPI_TYPE_BUFFER || r->buffer.pointer[1] != 0x05) {
r                 562 drivers/platform/x86/lg-laptop.c 		kfree(r);
r                 566 drivers/platform/x86/lg-laptop.c 	switch (r->buffer.pointer[0] & 0x27) {
r                 577 drivers/platform/x86/lg-laptop.c 	kfree(r);
r                 840 drivers/platform/x86/sony-laptop.c 	int i, r, result, arg;
r                 848 drivers/platform/x86/sony-laptop.c 		r = sony_nc_int_call(sony_nc_acpi_handle, "SN00", &arg,
r                 850 drivers/platform/x86/sony-laptop.c 		if (!r) {
r                7469 drivers/platform/x86/thinkpad_acpi.c 	int r;
r                7471 drivers/platform/x86/thinkpad_acpi.c 	if (!acpi_evalf(ec_handle, &r, "SAUM", "qdd", software_mute_orig_mode)
r                7472 drivers/platform/x86/thinkpad_acpi.c 	    || r != software_mute_orig_mode)
r                  18 drivers/platform/x86/xo1-rfkill.c 	int r;
r                  28 drivers/platform/x86/xo1-rfkill.c 	r = olpc_ec_cmd(cmd, NULL, 0, NULL, 0);
r                  29 drivers/platform/x86/xo1-rfkill.c 	if (r == 0)
r                  32 drivers/platform/x86/xo1-rfkill.c 	return r;
r                  42 drivers/platform/x86/xo1-rfkill.c 	int r;
r                  49 drivers/platform/x86/xo1-rfkill.c 	r = rfkill_register(rfk);
r                  50 drivers/platform/x86/xo1-rfkill.c 	if (r) {
r                  52 drivers/platform/x86/xo1-rfkill.c 		return r;
r                 101 drivers/pnp/pnpacpi/rsparser.c static void pnpacpi_add_irqresource(struct pnp_dev *dev, struct resource *r)
r                 103 drivers/pnp/pnpacpi/rsparser.c 	if (!(r->flags & IORESOURCE_DISABLED))
r                 104 drivers/pnp/pnpacpi/rsparser.c 		pcibios_penalize_isa_irq(r->start, 1);
r                 106 drivers/pnp/pnpacpi/rsparser.c 	pnp_add_resource(dev, r);
r                 172 drivers/pnp/pnpacpi/rsparser.c 	struct resource *r = &win.res;
r                 181 drivers/pnp/pnpacpi/rsparser.c 	r->flags = 0;
r                 182 drivers/pnp/pnpacpi/rsparser.c 	if (acpi_dev_resource_interrupt(res, 0, r)) {
r                 183 drivers/pnp/pnpacpi/rsparser.c 		pnpacpi_add_irqresource(dev, r);
r                 184 drivers/pnp/pnpacpi/rsparser.c 		for (i = 1; acpi_dev_resource_interrupt(res, i, r); i++)
r                 185 drivers/pnp/pnpacpi/rsparser.c 			pnpacpi_add_irqresource(dev, r);
r                 215 drivers/pnp/pnpacpi/rsparser.c 	} else if (r->flags & IORESOURCE_DISABLED) {
r                 224 drivers/pnp/pnpacpi/rsparser.c 		if (acpi_dev_resource_memory(res, r))
r                 225 drivers/pnp/pnpacpi/rsparser.c 			pnp_add_resource(dev, r);
r                 229 drivers/pnp/pnpacpi/rsparser.c 		if (acpi_dev_resource_io(res, r))
r                 230 drivers/pnp/pnpacpi/rsparser.c 			pnp_add_resource(dev, r);
r                 404 drivers/pnp/pnpacpi/rsparser.c 						struct acpi_resource *r)
r                 410 drivers/pnp/pnpacpi/rsparser.c 	status = acpi_resource_to_address64(r, p);
r                 413 drivers/pnp/pnpacpi/rsparser.c 			 r->type);
r                 431 drivers/pnp/pnpacpi/rsparser.c 						    struct acpi_resource *r)
r                 433 drivers/pnp/pnpacpi/rsparser.c 	struct acpi_resource_extended_address64 *p = &r->data.ext_address64;
r                  26 drivers/pnp/system.c static void reserve_range(struct pnp_dev *dev, struct resource *r, int port)
r                  30 drivers/pnp/system.c 	resource_size_t start = r->start, end = r->end;
r                  52 drivers/pnp/system.c 	dev_info(&dev->dev, "%pR %s reserved\n", r,
r                 401 drivers/power/supply/bd70528-charger.c static int find_value_for_selector_low(const struct linear_range *r,
r                 408 drivers/power/supply/bd70528-charger.c 		if (r[i].low_sel <= sel && r[i].low_sel + r[i].vals >= sel) {
r                 409 drivers/power/supply/bd70528-charger.c 			*val = r[i].min + (sel - r[i].low_sel) * r[i].step;
r                 423 drivers/power/supply/bd70528-charger.c static int find_selector_for_value_low(const struct linear_range *r,
r                 432 drivers/power/supply/bd70528-charger.c 		if (r[i].min <= val) {
r                 433 drivers/power/supply/bd70528-charger.c 			if (r[i].min + r[i].step * r[i].vals >= val) {
r                 435 drivers/power/supply/bd70528-charger.c 				*sel = r[i].low_sel + (val - r[i].min) /
r                 436 drivers/power/supply/bd70528-charger.c 				       r[i].step;
r                 444 drivers/power/supply/bd70528-charger.c 			*sel = r[i].low_sel + r[i].vals;
r                 331 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD(_name, r, f, m, store)			\
r                 334 drivers/power/supply/bq24190_charger.c 	.reg	= BQ24190_REG_##r,					\
r                 335 drivers/power/supply/bq24190_charger.c 	.mask	= BQ24190_REG_##r##_##f##_MASK,				\
r                 336 drivers/power/supply/bq24190_charger.c 	.shift	= BQ24190_REG_##r##_##f##_SHIFT,			\
r                 339 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD_RW(_name, r, f)				\
r                 340 drivers/power/supply/bq24190_charger.c 		BQ24190_SYSFS_FIELD(_name, r, f, S_IWUSR | S_IRUGO,	\
r                 343 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD_RO(_name, r, f)				\
r                 344 drivers/power/supply/bq24190_charger.c 		BQ24190_SYSFS_FIELD(_name, r, f, S_IRUGO, NULL)
r                 201 drivers/power/supply/goldfish_battery.c 	struct resource *r;
r                 211 drivers/power/supply/goldfish_battery.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 212 drivers/power/supply/goldfish_battery.c 	if (r == NULL) {
r                 217 drivers/power/supply/goldfish_battery.c 	data->reg_base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 126 drivers/power/supply/isp1704_charger.c 	u8	r;
r                 129 drivers/power/supply/isp1704_charger.c 	r = isp1704_read(isp, ULPI_FUNC_CTRL);
r                 130 drivers/power/supply/isp1704_charger.c 	r |= ULPI_FUNC_CTRL_RESET;
r                 131 drivers/power/supply/isp1704_charger.c 	isp1704_write(isp, ULPI_FUNC_CTRL, r);
r                 135 drivers/power/supply/isp1704_charger.c 	r &= ~(ULPI_FUNC_CTRL_RESET | ULPI_FUNC_CTRL_OPMODE_MASK);
r                 136 drivers/power/supply/isp1704_charger.c 	isp1704_write(isp, ULPI_FUNC_CTRL, r);
r                 139 drivers/power/supply/isp1704_charger.c 	r = ULPI_OTG_CTRL_DP_PULLDOWN | ULPI_OTG_CTRL_DM_PULLDOWN;
r                 140 drivers/power/supply/isp1704_charger.c 	isp1704_write(isp, ULPI_CLR(ULPI_OTG_CTRL), r);
r                 143 drivers/power/supply/isp1704_charger.c 	r = ULPI_FUNC_CTRL_TERMSELECT | ULPI_FUNC_CTRL_RESET;
r                 144 drivers/power/supply/isp1704_charger.c 	isp1704_write(isp, ULPI_SET(ULPI_FUNC_CTRL), r);
r                 477 drivers/power/supply/lp8788-charger.c 	struct resource *r;
r                 487 drivers/power/supply/lp8788-charger.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, name);
r                 488 drivers/power/supply/lp8788-charger.c 	if (!r)
r                 491 drivers/power/supply/lp8788-charger.c 	irq_start = r->start;
r                 492 drivers/power/supply/lp8788-charger.c 	irq_end = r->end;
r                 987 drivers/power/supply/qcom_smbb.c 		const struct reg_off_mask_default *r = &smbb_charger_setup[i];
r                 989 drivers/power/supply/qcom_smbb.c 		if (r->rev_mask & BIT(chg->revision))
r                 992 drivers/power/supply/qcom_smbb.c 		rc = regmap_update_bits(chg->regmap, chg->addr + r->offset,
r                 993 drivers/power/supply/qcom_smbb.c 				r->mask, r->value);
r                 139 drivers/pwm/pwm-imx1.c 	struct resource *r;
r                 171 drivers/pwm/pwm-imx1.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 172 drivers/pwm/pwm-imx1.c 	imx->mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                  46 drivers/pwm/pwm-lpss-platform.c 	struct resource *r;
r                  53 drivers/pwm/pwm-lpss-platform.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                  55 drivers/pwm/pwm-lpss-platform.c 	lpwm = pwm_lpss_probe(&pdev->dev, r, info);
r                 200 drivers/pwm/pwm-lpss.c struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, struct resource *r,
r                 214 drivers/pwm/pwm-lpss.c 	lpwm->regs = devm_ioremap_resource(dev, r);
r                  37 drivers/pwm/pwm-lpss.h struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, struct resource *r,
r                 175 drivers/pwm/pwm-mtk-disp.c 	struct resource *r;
r                 184 drivers/pwm/pwm-mtk-disp.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 185 drivers/pwm/pwm-mtk-disp.c 	mdp->base = devm_ioremap_resource(&pdev->dev, r);
r                 103 drivers/pwm/pwm-puv3.c 	struct resource *r;
r                 114 drivers/pwm/pwm-puv3.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 115 drivers/pwm/pwm-puv3.c 	puv3->base = devm_ioremap_resource(&pdev->dev, r);
r                 169 drivers/pwm/pwm-pxa.c 	struct resource *r;
r                 196 drivers/pwm/pwm-pxa.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 197 drivers/pwm/pwm-pxa.c 	pwm->mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                 295 drivers/pwm/pwm-rockchip.c 	struct resource *r;
r                 306 drivers/pwm/pwm-rockchip.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 307 drivers/pwm/pwm-rockchip.c 	pc->base = devm_ioremap_resource(&pdev->dev, r);
r                 177 drivers/pwm/pwm-spear.c 	struct resource *r;
r                 185 drivers/pwm/pwm-spear.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 186 drivers/pwm/pwm-spear.c 	pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                 173 drivers/pwm/pwm-tegra.c 	struct resource *r;
r                 183 drivers/pwm/pwm-tegra.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 184 drivers/pwm/pwm-tegra.c 	pwm->regs = devm_ioremap_resource(&pdev->dev, r);
r                 199 drivers/pwm/pwm-tiecap.c 	struct resource *r;
r                 233 drivers/pwm/pwm-tiecap.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 234 drivers/pwm/pwm-tiecap.c 	pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                 424 drivers/pwm/pwm-tiehrpwm.c 	struct resource *r;
r                 458 drivers/pwm/pwm-tiehrpwm.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 459 drivers/pwm/pwm-tiehrpwm.c 	pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                 196 drivers/pwm/pwm-vt8500.c 	struct resource *r;
r                 222 drivers/pwm/pwm-vt8500.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 223 drivers/pwm/pwm-vt8500.c 	chip->base = devm_ioremap_resource(&pdev->dev, r);
r                1222 drivers/regulator/bd718x7-regulator.c 		const struct bd718xx_regulator_data *r;
r                1224 drivers/regulator/bd718x7-regulator.c 		r = &pmic_regulators[mfd->chip.chip_type].r_datas[i];
r                1225 drivers/regulator/bd718x7-regulator.c 		desc = &r->desc;
r                1257 drivers/regulator/bd718x7-regulator.c 			err = regmap_update_bits(mfd->chip.regmap, r->init.reg,
r                1258 drivers/regulator/bd718x7-regulator.c 						 r->init.mask, r->init.val);
r                1266 drivers/regulator/bd718x7-regulator.c 		for (j = 0; j < r->additional_init_amnt; j++) {
r                1268 drivers/regulator/bd718x7-regulator.c 						 r->additional_inits[j].reg,
r                1269 drivers/regulator/bd718x7-regulator.c 						 r->additional_inits[j].mask,
r                1270 drivers/regulator/bd718x7-regulator.c 						 r->additional_inits[j].val);
r                1686 drivers/regulator/core.c 	struct regulator_dev *r = dev_to_rdev(dev);
r                1688 drivers/regulator/core.c 	return strcmp(rdev_get_name(r), data) == 0;
r                1715 drivers/regulator/core.c 	struct regulator_dev *r = NULL;
r                1726 drivers/regulator/core.c 			r = of_find_regulator_by_node(node);
r                1727 drivers/regulator/core.c 			if (r)
r                1728 drivers/regulator/core.c 				return r;
r                1751 drivers/regulator/core.c 			r = map->regulator;
r                1757 drivers/regulator/core.c 	if (r)
r                1758 drivers/regulator/core.c 		return r;
r                1760 drivers/regulator/core.c 	r = regulator_lookup_by_name(supply);
r                1761 drivers/regulator/core.c 	if (r)
r                1762 drivers/regulator/core.c 		return r;
r                1769 drivers/regulator/core.c 	struct regulator_dev *r;
r                1781 drivers/regulator/core.c 	r = regulator_dev_lookup(dev, rdev->supply_name);
r                1782 drivers/regulator/core.c 	if (IS_ERR(r)) {
r                1783 drivers/regulator/core.c 		ret = PTR_ERR(r);
r                1790 drivers/regulator/core.c 			r = dummy_regulator_rdev;
r                1791 drivers/regulator/core.c 			get_device(&r->dev);
r                1805 drivers/regulator/core.c 	if (r->dev.parent && r->dev.parent != rdev->dev.parent) {
r                1806 drivers/regulator/core.c 		if (!device_is_bound(r->dev.parent)) {
r                1807 drivers/regulator/core.c 			put_device(&r->dev);
r                1813 drivers/regulator/core.c 	ret = regulator_resolve_supply(r);
r                1815 drivers/regulator/core.c 		put_device(&r->dev);
r                1819 drivers/regulator/core.c 	ret = set_supply(rdev, r);
r                1821 drivers/regulator/core.c 		put_device(&r->dev);
r                4510 drivers/regulator/core.c 	int ret, r;
r                4523 drivers/regulator/core.c 		r = regulator_enable(consumers[i].consumer);
r                4524 drivers/regulator/core.c 		if (r != 0)
r                4526 drivers/regulator/core.c 			       consumers[i].supply, r);
r                  91 drivers/regulator/devres.c 	struct regulator **r = res;
r                  92 drivers/regulator/devres.c 	if (!r || !*r) {
r                  93 drivers/regulator/devres.c 		WARN_ON(!r || !*r);
r                  96 drivers/regulator/devres.c 	return *r == data;
r                 209 drivers/regulator/devres.c 	struct regulator_dev **r = res;
r                 210 drivers/regulator/devres.c 	if (!r || !*r) {
r                 211 drivers/regulator/devres.c 		WARN_ON(!r || !*r);
r                 214 drivers/regulator/devres.c 	return *r == data;
r                 197 drivers/regulator/ltc3589.c 	u32 r[2];
r                 204 drivers/regulator/ltc3589.c 	ret = of_property_read_u32_array(np, "lltc,fb-voltage-divider", r, 2);
r                 211 drivers/regulator/ltc3589.c 	if (!r[0] || !r[1])
r                 214 drivers/regulator/ltc3589.c 	rdesc->min_uV = ltc3589_scale(desc->min_uV, r[0], r[1]);
r                 215 drivers/regulator/ltc3589.c 	rdesc->uV_step = ltc3589_scale(desc->uV_step, r[0], r[1]);
r                 216 drivers/regulator/ltc3589.c 	rdesc->fixed_uV = ltc3589_scale(desc->fixed_uV, r[0], r[1]);
r                 151 drivers/regulator/ltc3676.c 	u32 r[2];
r                 158 drivers/regulator/ltc3676.c 	ret = of_property_read_u32_array(np, "lltc,fb-voltage-divider", r, 2);
r                 165 drivers/regulator/ltc3676.c 	rdesc->min_uV = ltc3676_scale(desc->min_uV, r[0], r[1]);
r                 166 drivers/regulator/ltc3676.c 	rdesc->uV_step = ltc3676_scale(desc->uV_step, r[0], r[1]);
r                 167 drivers/regulator/ltc3676.c 	rdesc->fixed_uV = ltc3676_scale(desc->fixed_uV, r[0], r[1]);
r                 663 drivers/regulator/qcom_spmi-regulator.c 	const struct spmi_voltage_range *r = vreg->set_points->range;
r                 664 drivers/regulator/qcom_spmi-regulator.c 	const struct spmi_voltage_range *end = r + vreg->set_points->count;
r                 666 drivers/regulator/qcom_spmi-regulator.c 	for (; r < end; r++) {
r                 667 drivers/regulator/qcom_spmi-regulator.c 		if (r == range && range->n_voltages) {
r                 686 drivers/regulator/qcom_spmi-regulator.c 		sw_sel += r->n_voltages;
r                 383 drivers/remoteproc/qcom_q6v5_adsp.c 	struct resource r;
r                 392 drivers/remoteproc/qcom_q6v5_adsp.c 	ret = of_address_to_resource(node, 0, &r);
r                 396 drivers/remoteproc/qcom_q6v5_adsp.c 	adsp->mem_phys = adsp->mem_reloc = r.start;
r                 397 drivers/remoteproc/qcom_q6v5_adsp.c 	adsp->mem_size = resource_size(&r);
r                 402 drivers/remoteproc/qcom_q6v5_adsp.c 			&r.start, adsp->mem_size);
r                1364 drivers/remoteproc/qcom_q6v5_mss.c 	struct resource r;
r                1369 drivers/remoteproc/qcom_q6v5_mss.c 	ret = of_address_to_resource(node, 0, &r);
r                1376 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->mba_phys = r.start;
r                1377 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->mba_size = resource_size(&r);
r                1381 drivers/remoteproc/qcom_q6v5_mss.c 			&r.start, qproc->mba_size);
r                1387 drivers/remoteproc/qcom_q6v5_mss.c 	ret = of_address_to_resource(node, 0, &r);
r                1394 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->mpss_phys = qproc->mpss_reloc = r.start;
r                1395 drivers/remoteproc/qcom_q6v5_mss.c 	qproc->mpss_size = resource_size(&r);
r                1399 drivers/remoteproc/qcom_q6v5_mss.c 			&r.start, qproc->mpss_size);
r                 223 drivers/remoteproc/qcom_q6v5_pas.c 	struct resource r;
r                 232 drivers/remoteproc/qcom_q6v5_pas.c 	ret = of_address_to_resource(node, 0, &r);
r                 236 drivers/remoteproc/qcom_q6v5_pas.c 	adsp->mem_phys = adsp->mem_reloc = r.start;
r                 237 drivers/remoteproc/qcom_q6v5_pas.c 	adsp->mem_size = resource_size(&r);
r                 241 drivers/remoteproc/qcom_q6v5_pas.c 			&r.start, adsp->mem_size);
r                 433 drivers/remoteproc/qcom_wcnss.c 	struct resource r;
r                 442 drivers/remoteproc/qcom_wcnss.c 	ret = of_address_to_resource(node, 0, &r);
r                 446 drivers/remoteproc/qcom_wcnss.c 	wcnss->mem_phys = wcnss->mem_reloc = r.start;
r                 447 drivers/remoteproc/qcom_wcnss.c 	wcnss->mem_size = resource_size(&r);
r                 451 drivers/remoteproc/qcom_wcnss.c 			&r.start, wcnss->mem_size);
r                1851 drivers/remoteproc/remoteproc_core.c 	struct rproc *rproc = NULL, *r;
r                1859 drivers/remoteproc/remoteproc_core.c 	list_for_each_entry(r, &rproc_list, node) {
r                1860 drivers/remoteproc/remoteproc_core.c 		if (r->dev.parent && r->dev.parent->of_node == np) {
r                1862 drivers/remoteproc/remoteproc_core.c 			if (!try_module_get(r->dev.parent->driver->owner)) {
r                1863 drivers/remoteproc/remoteproc_core.c 				dev_err(&r->dev, "can't get owner\n");
r                1867 drivers/remoteproc/remoteproc_core.c 			rproc = r;
r                 605 drivers/reset/core.c 	struct reset_controller_dev *r, *rcdev;
r                 631 drivers/reset/core.c 	list_for_each_entry(r, &reset_controller_list, list) {
r                 632 drivers/reset/core.c 		if (args.np == r->of_node) {
r                 633 drivers/reset/core.c 			rcdev = r;
r                 266 drivers/rpmsg/qcom_glink_rpm.c 	struct resource r;
r                 275 drivers/rpmsg/qcom_glink_rpm.c 	ret = of_address_to_resource(np, 0, &r);
r                 280 drivers/rpmsg/qcom_glink_rpm.c 	msg_ram = devm_ioremap(dev, r.start, resource_size(&r));
r                 281 drivers/rpmsg/qcom_glink_rpm.c 	msg_ram_size = resource_size(&r);
r                 172 drivers/rpmsg/qcom_smd.c #define to_smd_device(r)	container_of(r, struct qcom_smd_device, rpdev)
r                 962 drivers/rtc/interface.c void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
r                 337 drivers/rtc/rtc-at91sam9.c 	struct resource	*r;
r                 361 drivers/rtc/rtc-at91sam9.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 362 drivers/rtc/rtc-at91sam9.c 	rtc->rtt = devm_ioremap_resource(&pdev->dev, r);
r                 121 drivers/rtc/rtc-bd70528.c static int bd70528_set_rtc_based_timers(struct bd70528_rtc *r, int new_state,
r                 126 drivers/rtc/rtc-bd70528.c 	ret = bd70528_wdt_set(r->mfd, new_state & BD70528_WDT_STATE_BIT,
r                 129 drivers/rtc/rtc-bd70528.c 		dev_err(r->dev,
r                 133 drivers/rtc/rtc-bd70528.c 	ret = bd70528_set_elapsed_tmr(r->mfd,
r                 137 drivers/rtc/rtc-bd70528.c 		dev_err(r->dev,
r                 141 drivers/rtc/rtc-bd70528.c 	ret = bd70528_set_wake(r->mfd, new_state & BD70528_WAKE_STATE_BIT,
r                 144 drivers/rtc/rtc-bd70528.c 		dev_err(r->dev,
r                 152 drivers/rtc/rtc-bd70528.c static int bd70528_re_enable_rtc_based_timers(struct bd70528_rtc *r,
r                 155 drivers/rtc/rtc-bd70528.c 	return bd70528_set_rtc_based_timers(r, old_state, NULL);
r                 158 drivers/rtc/rtc-bd70528.c static int bd70528_disable_rtc_based_timers(struct bd70528_rtc *r,
r                 161 drivers/rtc/rtc-bd70528.c 	return bd70528_set_rtc_based_timers(r, 0, old_state);
r                 174 drivers/rtc/rtc-bd70528.c static inline void tm2rtc(struct rtc_time *t, struct bd70528_rtc_data *r)
r                 176 drivers/rtc/rtc-bd70528.c 	r->day &= ~BD70528_MASK_RTC_DAY;
r                 177 drivers/rtc/rtc-bd70528.c 	r->week &= ~BD70528_MASK_RTC_WEEK;
r                 178 drivers/rtc/rtc-bd70528.c 	r->month &= ~BD70528_MASK_RTC_MONTH;
r                 183 drivers/rtc/rtc-bd70528.c 	r->time.hour &= ~(BD70528_MASK_RTC_HOUR_PM | BD70528_MASK_RTC_HOUR_24H);
r                 185 drivers/rtc/rtc-bd70528.c 	tmday2rtc(t, &r->time);
r                 189 drivers/rtc/rtc-bd70528.c 	r->time.hour |= BD70528_MASK_RTC_HOUR_24H;
r                 190 drivers/rtc/rtc-bd70528.c 	r->day |= bin2bcd(t->tm_mday);
r                 191 drivers/rtc/rtc-bd70528.c 	r->week |= bin2bcd(t->tm_wday);
r                 192 drivers/rtc/rtc-bd70528.c 	r->month |= bin2bcd(t->tm_mon + 1);
r                 193 drivers/rtc/rtc-bd70528.c 	r->year = bin2bcd(t->tm_year - 100);
r                 196 drivers/rtc/rtc-bd70528.c static inline void rtc2tm(struct bd70528_rtc_data *r, struct rtc_time *t)
r                 198 drivers/rtc/rtc-bd70528.c 	t->tm_sec = bcd2bin(r->time.sec & BD70528_MASK_RTC_SEC);
r                 199 drivers/rtc/rtc-bd70528.c 	t->tm_min = bcd2bin(r->time.min & BD70528_MASK_RTC_MINUTE);
r                 200 drivers/rtc/rtc-bd70528.c 	t->tm_hour = bcd2bin(r->time.hour & BD70528_MASK_RTC_HOUR);
r                 205 drivers/rtc/rtc-bd70528.c 	if (!(r->time.hour & BD70528_MASK_RTC_HOUR_24H)) {
r                 207 drivers/rtc/rtc-bd70528.c 		if (r->time.hour & BD70528_MASK_RTC_HOUR_PM)
r                 210 drivers/rtc/rtc-bd70528.c 	t->tm_mday = bcd2bin(r->day & BD70528_MASK_RTC_DAY);
r                 211 drivers/rtc/rtc-bd70528.c 	t->tm_mon = bcd2bin(r->month & BD70528_MASK_RTC_MONTH) - 1;
r                 212 drivers/rtc/rtc-bd70528.c 	t->tm_year = 100 + bcd2bin(r->year & BD70528_MASK_RTC_YEAR);
r                 213 drivers/rtc/rtc-bd70528.c 	t->tm_wday = bcd2bin(r->week & BD70528_MASK_RTC_WEEK);
r                 221 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 222 drivers/rtc/rtc-bd70528.c 	struct rohm_regmap_dev *bd70528 = r->mfd;
r                 268 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 269 drivers/rtc/rtc-bd70528.c 	struct rohm_regmap_dev *bd70528 = r->mfd;
r                 292 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 293 drivers/rtc/rtc-bd70528.c 	struct rohm_regmap_dev *bd70528 = r->mfd;
r                 295 drivers/rtc/rtc-bd70528.c 	ret = bd70528_disable_rtc_based_timers(r, &old_states);
r                 317 drivers/rtc/rtc-bd70528.c 	ret = bd70528_re_enable_rtc_based_timers(r, old_states);
r                 327 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 329 drivers/rtc/rtc-bd70528.c 	bd70528_wdt_lock(r->mfd);
r                 331 drivers/rtc/rtc-bd70528.c 	bd70528_wdt_unlock(r->mfd);
r                 337 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 338 drivers/rtc/rtc-bd70528.c 	struct rohm_regmap_dev *bd70528 = r->mfd;
r                 360 drivers/rtc/rtc-bd70528.c 	struct bd70528_rtc *r = dev_get_drvdata(dev);
r                 365 drivers/rtc/rtc-bd70528.c 	bd70528_wdt_lock(r->mfd);
r                 366 drivers/rtc/rtc-bd70528.c 	ret = bd70528_set_wake(r->mfd, enabled, NULL);
r                 371 drivers/rtc/rtc-bd70528.c 	ret = regmap_update_bits(r->mfd->regmap, BD70528_REG_RTC_ALM_MASK,
r                 377 drivers/rtc/rtc-bd70528.c 	bd70528_wdt_unlock(r->mfd);
r                  25 drivers/rtc/rtc-bq4802.c 	struct resource		*r;
r                 152 drivers/rtc/rtc-bq4802.c 	p->r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 153 drivers/rtc/rtc-bq4802.c 	if (!p->r) {
r                 154 drivers/rtc/rtc-bq4802.c 		p->r = platform_get_resource(pdev, IORESOURCE_IO, 0);
r                 156 drivers/rtc/rtc-bq4802.c 		if (!p->r)
r                 159 drivers/rtc/rtc-bq4802.c 	if (p->r->flags & IORESOURCE_IO) {
r                 160 drivers/rtc/rtc-bq4802.c 		p->ioport = p->r->start;
r                 163 drivers/rtc/rtc-bq4802.c 	} else if (p->r->flags & IORESOURCE_MEM) {
r                 164 drivers/rtc/rtc-bq4802.c 		p->regs = devm_ioremap(&pdev->dev, p->r->start,
r                 165 drivers/rtc/rtc-bq4802.c 					resource_size(p->r));
r                  59 drivers/rtc/rtc-ds1305.c #define DS1305_ALM0(r)		(0x07 + (r))	/* register addresses */
r                  60 drivers/rtc/rtc-ds1305.c #define DS1305_ALM1(r)		(0x0b + (r))
r                 251 drivers/rtc/rtc-fsl-ftm-alarm.c 	struct resource *r;
r                 268 drivers/rtc/rtc-fsl-ftm-alarm.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 269 drivers/rtc/rtc-fsl-ftm-alarm.c 	if (!r) {
r                 274 drivers/rtc/rtc-fsl-ftm-alarm.c 	rtc->base = devm_ioremap_resource(&pdev->dev, r);
r                 168 drivers/rtc/rtc-goldfish.c 	struct resource *r;
r                 177 drivers/rtc/rtc-goldfish.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 178 drivers/rtc/rtc-goldfish.c 	if (!r)
r                 181 drivers/rtc/rtc-goldfish.c 	rtcdrv->base = devm_ioremap_resource(&pdev->dev, r);
r                 258 drivers/rtc/rtc-lp8788.c 	struct resource *r;
r                 266 drivers/rtc/rtc-lp8788.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IRQ, LP8788_ALM_IRQ);
r                 267 drivers/rtc/rtc-lp8788.c 	if (!r)
r                 271 drivers/rtc/rtc-lp8788.c 		irq = r->start;
r                 273 drivers/rtc/rtc-lp8788.c 		irq = r->end;
r                 580 drivers/rtc/rtc-rv3029c2.c 	u32 r;		/* resistance in ohms */
r                 584 drivers/rtc/rtc-rv3029c2.c 		.r	= 1076,
r                 588 drivers/rtc/rtc-rv3029c2.c 		.r	= 1091,
r                 592 drivers/rtc/rtc-rv3029c2.c 		.r	= 1137,
r                 596 drivers/rtc/rtc-rv3029c2.c 		.r	= 1154,
r                 599 drivers/rtc/rtc-rv3029c2.c 		.r	= 1371,
r                 603 drivers/rtc/rtc-rv3029c2.c 		.r	= 1395,
r                 606 drivers/rtc/rtc-rv3029c2.c 		.r	= 1472,
r                 609 drivers/rtc/rtc-rv3029c2.c 		.r	= 1500,
r                 612 drivers/rtc/rtc-rv3029c2.c 		.r	= 3810,
r                 616 drivers/rtc/rtc-rv3029c2.c 		.r	= 4000,
r                 619 drivers/rtc/rtc-rv3029c2.c 		.r	= 4706,
r                 622 drivers/rtc/rtc-rv3029c2.c 		.r	= 5000,
r                 625 drivers/rtc/rtc-rv3029c2.c 		.r	= 16000,
r                 628 drivers/rtc/rtc-rv3029c2.c 		.r	= 20000,
r                 631 drivers/rtc/rtc-rv3029c2.c 		.r	= 80000,
r                 656 drivers/rtc/rtc-rv3029c2.c 			if (elem->r >= ohms)
r                 662 drivers/rtc/rtc-rv3029c2.c 			 elem->r);
r                  40 drivers/rtc/rtc-sh.c #define RTC_REG(r)	((r) * rtc_reg_size)
r                 249 drivers/rtc/rtc-stmp3xxx.c 	struct resource *r;
r                 259 drivers/rtc/rtc-stmp3xxx.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 260 drivers/rtc/rtc-stmp3xxx.c 	if (!r) {
r                 265 drivers/rtc/rtc-stmp3xxx.c 	rtc_data->io = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 638 drivers/s390/char/sclp_vt220.c 	struct sclp_vt220_request *r;
r                 646 drivers/s390/char/sclp_vt220.c 		r = list_entry(l, struct sclp_vt220_request, list);
r                 647 drivers/s390/char/sclp_vt220.c 		count += sclp_vt220_chars_stored(r);
r                  37 drivers/s390/cio/chsc.h 	u8 r:1;
r                 179 drivers/s390/cio/chsc.h 	u32 r:1;
r                 667 drivers/s390/cio/device_ops.c 		if (!chp->desc_fmt1.r)
r                 140 drivers/s390/cio/eadm_sch.c 	    && scsw->eswf == 1 && irb->esw.eadm.erw.r)
r                  41 drivers/s390/cio/fcx.c 	if (tcw->r)
r                  82 drivers/s390/cio/fcx.c void tcw_init(struct tcw *tcw, int r, int w)
r                  87 drivers/s390/cio/fcx.c 	if (r)
r                  88 drivers/s390/cio/fcx.c 		tcw->r = 1;
r                 172 drivers/s390/cio/fcx.c 	if (tcw->r)
r                 209 drivers/s390/cio/fcx.c 	if (tcw->r) {
r                 145 drivers/s390/cio/scm.c 	scmdev->attrs.release = sale->r;
r                 146 drivers/s390/net/fsm.h 	fsm_function_t r;
r                 159 drivers/s390/net/fsm.h 	r = fi->f->jumpmatrix[fi->f->nr_states * event + state];
r                 160 drivers/s390/net/fsm.h 	if (r) {
r                 169 drivers/s390/net/fsm.h 		r(fi, event, arg);
r                 823 drivers/s390/net/lcs.c 	struct lcs_reply *list_reply, *r;
r                 828 drivers/s390/net/lcs.c 	list_for_each_entry_safe(list_reply, r,
r                 243 drivers/scsi/aacraid/linit.c 	int r = 0;
r                 245 drivers/scsi/aacraid/linit.c 	r = (aac_scsi_cmd(cmd) ? FAILED : 0);
r                 246 drivers/scsi/aacraid/linit.c 	return r;
r                1892 drivers/scsi/aacraid/linit.c 	int r;
r                1897 drivers/scsi/aacraid/linit.c 	r = pci_enable_device(pdev);
r                1899 drivers/scsi/aacraid/linit.c 	if (r)
r                 586 drivers/scsi/aic7xxx/aic79xx_core.c 	uint16_t r = ahd_inb(ahd, port+1) << 8;
r                 587 drivers/scsi/aic7xxx/aic79xx_core.c 	return r | ahd_inb(ahd, port);
r                 461 drivers/scsi/aic7xxx/aic7xxx_core.c 	uint16_t r = ahc_inb(ahc, port+1) << 8;
r                 462 drivers/scsi/aic7xxx/aic7xxx_core.c 	return r | ahc_inb(ahc, port);
r                 157 drivers/scsi/aic94xx/aic94xx_task.c 	void *r;
r                 171 drivers/scsi/aic94xx/aic94xx_task.c 	r = edb->vaddr;
r                 174 drivers/scsi/aic94xx/aic94xx_task.c 			r + 16 + sizeof(struct ssp_frame_hdr);
r                 176 drivers/scsi/aic94xx/aic94xx_task.c 		ts->residual = le32_to_cpu(*(__le32 *)r);
r                 182 drivers/scsi/aic94xx/aic94xx_task.c 		ts->residual = le32_to_cpu(*(__le32 *)r);
r                 185 drivers/scsi/aic94xx/aic94xx_task.c 			resp->frame_len = le16_to_cpu(*(__le16 *)(r+6));
r                 186 drivers/scsi/aic94xx/aic94xx_task.c 			memcpy(&resp->ending_fis[0], r+16, ATA_RESP_FIS_SIZE);
r                1247 drivers/scsi/bfa/bfa_core.c 	struct bfa_iocfc_regs_s *r = &bfa->iocfc.bfa_regs;
r                1252 drivers/scsi/bfa/bfa_core.c 		r->cpe_q_ci[i] = kva + be32_to_cpu(qreg->cpe_q_ci_off[i]);
r                1253 drivers/scsi/bfa/bfa_core.c 		r->cpe_q_pi[i] = kva + be32_to_cpu(qreg->cpe_q_pi_off[i]);
r                1254 drivers/scsi/bfa/bfa_core.c 		r->cpe_q_ctrl[i] = kva + be32_to_cpu(qreg->cpe_qctl_off[i]);
r                1255 drivers/scsi/bfa/bfa_core.c 		r->rme_q_ci[i] = kva + be32_to_cpu(qreg->rme_q_ci_off[i]);
r                1256 drivers/scsi/bfa/bfa_core.c 		r->rme_q_pi[i] = kva + be32_to_cpu(qreg->rme_q_pi_off[i]);
r                1257 drivers/scsi/bfa/bfa_core.c 		r->rme_q_ctrl[i] = kva + be32_to_cpu(qreg->rme_qctl_off[i]);
r                1003 drivers/scsi/bfa/bfa_defs.h 	} r;
r                1013 drivers/scsi/bfa/bfa_defs.h 	} r;
r                1023 drivers/scsi/bfa/bfa_defs.h 	} r;
r                1037 drivers/scsi/bfa/bfa_defs.h 	} r;
r                1058 drivers/scsi/bfa/bfa_defs.h 	} r;
r                1083 drivers/scsi/bfa/bfa_defs.h 	} r;
r                3944 drivers/scsi/bfa/bfa_ioc.c 		else if (e10g.r.e10g_sr)
r                3946 drivers/scsi/bfa/bfa_ioc.c 		else if (e10g.r.e10g_lrm && e10g.r.e10g_lr)
r                3948 drivers/scsi/bfa/bfa_ioc.c 		else if (e10g.r.e10g_unall)
r                3965 drivers/scsi/bfa/bfa_ioc.c 		if (e10g.r.e10g_sr || e10g.r.e10g_lr)
r                3972 drivers/scsi/bfa/bfa_ioc.c 	if (((portspeed & BFA_PORT_SPEED_16GBPS) && fc3.r.mb1600) ||
r                3973 drivers/scsi/bfa/bfa_ioc.c 	    ((portspeed & BFA_PORT_SPEED_8GBPS) && fc3.r.mb800) ||
r                3974 drivers/scsi/bfa/bfa_ioc.c 	    ((portspeed & BFA_PORT_SPEED_4GBPS) && fc3.r.mb400) ||
r                3975 drivers/scsi/bfa/bfa_ioc.c 	    ((portspeed & BFA_PORT_SPEED_2GBPS) && fc3.r.mb200) ||
r                3976 drivers/scsi/bfa/bfa_ioc.c 	    ((portspeed & BFA_PORT_SPEED_1GBPS) && fc3.r.mb100))
r                6687 drivers/scsi/bfa/bfa_ioc.c 	} r;
r                6713 drivers/scsi/bfa/bfa_ioc.c 	} r;
r                6729 drivers/scsi/bfa/bfa_ioc.c 	} r;
r                6743 drivers/scsi/bfa/bfa_ioc.c 	cmd.r.act = 1;
r                6744 drivers/scsi/bfa/bfa_ioc.c 	cmd.r.write_cnt = wr_cnt;
r                6745 drivers/scsi/bfa/bfa_ioc.c 	cmd.r.read_cnt = rd_cnt;
r                6746 drivers/scsi/bfa/bfa_ioc.c 	cmd.r.addr_cnt = ad_cnt;
r                6747 drivers/scsi/bfa/bfa_ioc.c 	cmd.r.cmd = op;
r                6756 drivers/scsi/bfa/bfa_ioc.c 	addr.r.addr = address & 0x00ffffff;
r                6757 drivers/scsi/bfa/bfa_ioc.c 	addr.r.dummy = 0;
r                6768 drivers/scsi/bfa/bfa_ioc.c 	if (cmd.r.act)
r                6792 drivers/scsi/bfa/bfa_ioc.c 	if (!dev_status.r.fifo_cnt)
r                6796 drivers/scsi/bfa/bfa_ioc.c 	for (i = 0; i < dev_status.r.fifo_cnt; i++)
r                6804 drivers/scsi/bfa/bfa_ioc.c 		if (!dev_status.r.fifo_cnt)
r                6808 drivers/scsi/bfa/bfa_ioc.c 	if (dev_status.r.fifo_cnt)
r                6846 drivers/scsi/bfa/bfa_ioc.c 	if (!dev_status.r.fifo_cnt)
r                 282 drivers/scsi/csiostor/csio_mb.c 	ldst_cmd->u.pcie.r = (uint8_t)reg;
r                 329 drivers/scsi/cxlflash/common.h int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t c, res_hndl_t r, u8 mode);
r                1176 drivers/scsi/device_handler/scsi_dh_alua.c 	int r;
r                1182 drivers/scsi/device_handler/scsi_dh_alua.c 	r = scsi_register_device_handler(&alua_dh);
r                1183 drivers/scsi/device_handler/scsi_dh_alua.c 	if (r != 0) {
r                1188 drivers/scsi/device_handler/scsi_dh_alua.c 	return r;
r                 526 drivers/scsi/device_handler/scsi_dh_emc.c 	int r;
r                 528 drivers/scsi/device_handler/scsi_dh_emc.c 	r = scsi_register_device_handler(&clariion_dh);
r                 529 drivers/scsi/device_handler/scsi_dh_emc.c 	if (r != 0)
r                 532 drivers/scsi/device_handler/scsi_dh_emc.c 	return r;
r                 801 drivers/scsi/device_handler/scsi_dh_rdac.c 	int r;
r                 803 drivers/scsi/device_handler/scsi_dh_rdac.c 	r = scsi_register_device_handler(&rdac_dh);
r                 804 drivers/scsi/device_handler/scsi_dh_rdac.c 	if (r != 0) {
r                 817 drivers/scsi/device_handler/scsi_dh_rdac.c 		r = -EINVAL;
r                 820 drivers/scsi/device_handler/scsi_dh_rdac.c 	return r;
r                 147 drivers/scsi/esas2r/esas2r.h #define esas2r_flush_register_dword(a, r) esas2r_read_register_dword(a, r)
r                1448 drivers/scsi/esas2r/esas2r_main.c 	struct atto_vda_ae_raid *r = &ae->raid;
r                1454 drivers/scsi/esas2r/esas2r_main.c 		r->dwflags = le32_to_cpu(r->dwflags);
r                 983 drivers/scsi/fnic/fnic_fcs.c 	int r;
r                 998 drivers/scsi/fnic/fnic_fcs.c 		r = -ENOMEM;
r                 999 drivers/scsi/fnic/fnic_fcs.c 		printk(KERN_ERR "PCI mapping failed with error %d\n", r);
r                1008 drivers/scsi/fnic/fnic_fcs.c 	return r;
r                  91 drivers/scsi/fnic/vnic_dev.c 	struct vnic_resource __iomem *r;
r                 114 drivers/scsi/fnic/vnic_dev.c 	r = (struct vnic_resource __iomem *)(rh + 1);
r                 116 drivers/scsi/fnic/vnic_dev.c 	while ((type = ioread8(&r->type)) != RES_TYPE_EOL) {
r                 118 drivers/scsi/fnic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
r                 119 drivers/scsi/fnic/vnic_dev.c 		u32 bar_offset = ioread32(&r->bar_offset);
r                 120 drivers/scsi/fnic/vnic_dev.c 		u32 count = ioread32(&r->count);
r                 123 drivers/scsi/fnic/vnic_dev.c 		r++;
r                 127 drivers/scsi/hisi_sas/hisi_sas.h #define HISI_SAS_RST_WORK_INIT(r, c) \
r                 130 drivers/scsi/hisi_sas/hisi_sas.h 		.work = __WORK_INITIALIZER(r.work, \
r                 135 drivers/scsi/hisi_sas/hisi_sas.h #define HISI_SAS_DECLARE_RST_WORK_ON_STACK(r) \
r                 137 drivers/scsi/hisi_sas/hisi_sas.h 	struct hisi_sas_rst r = HISI_SAS_RST_WORK_INIT(r, c)
r                1083 drivers/scsi/hisi_sas/hisi_sas_main.c 			struct sas_phy_linkrates *r)
r                1091 drivers/scsi/hisi_sas/hisi_sas_main.c 	if (r->minimum_linkrate > SAS_LINK_RATE_1_5_GBPS)
r                1094 drivers/scsi/hisi_sas/hisi_sas_main.c 	if (r->maximum_linkrate == SAS_LINK_RATE_UNKNOWN) {
r                1096 drivers/scsi/hisi_sas/hisi_sas_main.c 		min = r->minimum_linkrate;
r                1097 drivers/scsi/hisi_sas/hisi_sas_main.c 	} else if (r->minimum_linkrate == SAS_LINK_RATE_UNKNOWN) {
r                1098 drivers/scsi/hisi_sas/hisi_sas_main.c 		max = r->maximum_linkrate;
r                1871 drivers/scsi/hisi_sas/hisi_sas_main.c 	HISI_SAS_DECLARE_RST_WORK_ON_STACK(r);
r                1874 drivers/scsi/hisi_sas/hisi_sas_main.c 	queue_work(hisi_hba->wq, &r.work);
r                1875 drivers/scsi/hisi_sas/hisi_sas_main.c 	wait_for_completion(r.completion);
r                1876 drivers/scsi/hisi_sas/hisi_sas_main.c 	if (!r.done)
r                 838 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 		struct sas_phy_linkrates *r)
r                 840 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 	enum sas_linkrate max = r->maximum_linkrate;
r                1607 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		struct sas_phy_linkrates *r)
r                1609 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 	enum sas_linkrate max = r->maximum_linkrate;
r                2478 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		struct sas_phy_linkrates *r)
r                2480 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 	enum sas_linkrate max = r->maximum_linkrate;
r                 177 drivers/scsi/imm.c 	unsigned char r;
r                 183 drivers/scsi/imm.c 		r = r_str(ppb);
r                 187 drivers/scsi/imm.c 	while (!(r & 0x80) && (k));
r                 210 drivers/scsi/imm.c 		return (r & 0xb8);
r                 351 drivers/scsi/imm.c 	int r = imm_wait(dev);
r                 358 drivers/scsi/imm.c 	if ((r & 0x18) != 0x08) {
r                 360 drivers/scsi/imm.c 		printk("IMM: returned SCSI status %2x\n", r);
r                 379 drivers/scsi/imm.c 		r = !(r_str(ppb) & 0x01);
r                 387 drivers/scsi/imm.c 		r = imm_byte_out(ppb, buffer, len);
r                 392 drivers/scsi/imm.c 		r = 0;
r                 394 drivers/scsi/imm.c 	return r;
r                 400 drivers/scsi/imm.c 	int r = imm_wait(dev);
r                 407 drivers/scsi/imm.c 	if ((r & 0x18) != 0x18) {
r                 414 drivers/scsi/imm.c 		r = imm_nibble_in(ppb, buffer, len);
r                 420 drivers/scsi/imm.c 		r = imm_byte_in(ppb, buffer, len);
r                 439 drivers/scsi/imm.c 		r = !(r_str(ppb) & 0x01);
r                 446 drivers/scsi/imm.c 		r = 0;
r                 449 drivers/scsi/imm.c 	return r;
r                 632 drivers/scsi/imm.c 	unsigned char r, v;
r                 644 drivers/scsi/imm.c 	r = (r_str(ppb) & 0xb8);
r                 650 drivers/scsi/imm.c 	while (r != (unsigned char) 0xb8) {
r                 663 drivers/scsi/imm.c 		if (((r & 0x88) != 0x88) || (cmd->SCp.this_residual <= 0)) {
r                 705 drivers/scsi/imm.c 		r = (r_str(ppb) & 0xb8);
r                 708 drivers/scsi/imm.c 		if (!(r & 0x80))
r                2147 drivers/scsi/initio.c 		u8 r;
r                2160 drivers/scsi/initio.c 		r = inb(host->addr + TUL_SSignal);
r                2161 drivers/scsi/initio.c 		outb((r & (TSC_SET_ACK | 7)) | TSC_SET_ATN,
r                2509 drivers/scsi/initio.c 	int r;
r                2512 drivers/scsi/initio.c 	r = initio_isr((struct initio_host *)dev->hostdata);
r                2514 drivers/scsi/initio.c 	if (r)
r                1469 drivers/scsi/isci/phy.c 		struct scu_link_layer_registers __iomem *r;
r                1472 drivers/scsi/isci/phy.c 		r = iphy->link_layer_registers;
r                1473 drivers/scsi/isci/phy.c 		phy->running_disparity_error_count = readl(&r->running_disparity_error_count);
r                1474 drivers/scsi/isci/phy.c 		phy->loss_of_dword_sync_count = readl(&r->loss_of_sync_error_count);
r                1475 drivers/scsi/isci/phy.c 		phy->phy_reset_problem_count = readl(&r->phy_reset_problem_count);
r                1476 drivers/scsi/isci/phy.c 		phy->invalid_dword_count = readl(&r->invalid_dword_counter);
r                 265 drivers/scsi/iscsi_tcp.c 	int r = 0;
r                 267 drivers/scsi/iscsi_tcp.c 	while (!iscsi_tcp_segment_done(tcp_conn, segment, 0, r)) {
r                 272 drivers/scsi/iscsi_tcp.c 		r = 0;
r                 283 drivers/scsi/iscsi_tcp.c 			r = tcp_sw_conn->sendpage(sk, sg_page(sg), offset,
r                 292 drivers/scsi/iscsi_tcp.c 			r = kernel_sendmsg(sk, &msg, &iov, 1, copy);
r                 295 drivers/scsi/iscsi_tcp.c 		if (r < 0) {
r                 297 drivers/scsi/iscsi_tcp.c 			return r;
r                 299 drivers/scsi/iscsi_tcp.c 		copied += r;
r                 356 drivers/scsi/libsas/sas_ata.c 	int r;
r                 363 drivers/scsi/libsas/sas_ata.c 	r = printk("%s" SAS_FMT "ata%u: %s: %pV",
r                 368 drivers/scsi/libsas/sas_ata.c 	return r;
r                  74 drivers/scsi/libsas/sas_init.c 	u32 r = 0;
r                  81 drivers/scsi/libsas/sas_init.c 			r <<= 1;
r                  83 drivers/scsi/libsas/sas_init.c 				if (!(r & 0x01000000))
r                  84 drivers/scsi/libsas/sas_init.c 					r ^= poly;
r                  85 drivers/scsi/libsas/sas_init.c 			} else if (r & 0x01000000) {
r                  86 drivers/scsi/libsas/sas_init.c 				r ^= poly;
r                  91 drivers/scsi/libsas/sas_init.c 	hashed[0] = (r >> 16) & 0xFF;
r                  92 drivers/scsi/libsas/sas_init.c 	hashed[1] = (r >> 8) & 0xFF;
r                  93 drivers/scsi/libsas/sas_init.c 	hashed[2] = r & 0xFF;
r                2844 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r;
r                2862 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = request_irq(pci_irq_vector(pdev, index), _base_interrupt,
r                2864 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                3064 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r;
r                3116 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_alloc_irq_vectors(ioc);
r                3117 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r < 0) {
r                3120 drivers/scsi/mpt3sas/mpt3sas_base.c 				     r));
r                3125 drivers/scsi/mpt3sas/mpt3sas_base.c 	ioc->reply_queue_count = r;
r                3127 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = _base_request_irq(ioc, i);
r                3128 drivers/scsi/mpt3sas/mpt3sas_base.c 		if (r) {
r                3145 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = pci_alloc_irq_vectors(ioc->pdev, 1, 1, PCI_IRQ_LEGACY);
r                3146 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r < 0) {
r                3149 drivers/scsi/mpt3sas/mpt3sas_base.c 				     r));
r                3151 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = _base_request_irq(ioc, 0);
r                3153 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                3229 drivers/scsi/mpt3sas/mpt3sas_base.c 	int i, r = 0, rc;
r                3248 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENODEV;
r                3260 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENODEV;
r                3283 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EINVAL;
r                3289 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_get_ioc_facts(ioc);
r                3290 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                3301 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_enable_msix(ioc);
r                3302 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                3323 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -ENOMEM;
r                3363 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                4248 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r = 0;
r                4273 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EAGAIN;
r                4296 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ETIME;
r                4324 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                5597 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r = 0;
r                5613 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EFAULT;
r                5620 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EFAULT;
r                5625 drivers/scsi/mpt3sas/mpt3sas_base.c 		 r == 0 ? "SUCCESS" : "FAILED");
r                5626 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                5952 drivers/scsi/mpt3sas/mpt3sas_base.c 	int mpi_reply_sz, mpi_request_sz, r;
r                5961 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_handshake_req_reply_wait(ioc, mpi_request_sz,
r                5964 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r != 0) {
r                5965 drivers/scsi/mpt3sas/mpt3sas_base.c 		ioc_err(ioc, "%s: handshake failed (r=%d)\n", __func__, r);
r                5966 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6047 drivers/scsi/mpt3sas/mpt3sas_base.c 	int mpi_reply_sz, mpi_request_sz, r;
r                6051 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_wait_for_iocstate(ioc, 10);
r                6052 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                6056 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6062 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_handshake_req_reply_wait(ioc, mpi_request_sz,
r                6065 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r != 0) {
r                6066 drivers/scsi/mpt3sas/mpt3sas_base.c 		ioc_err(ioc, "%s: handshake failed (r=%d)\n", __func__, r);
r                6067 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6149 drivers/scsi/mpt3sas/mpt3sas_base.c 	int i, r = 0;
r                6215 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_handshake_req_reply_wait(ioc,
r                6219 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r != 0) {
r                6220 drivers/scsi/mpt3sas/mpt3sas_base.c 		ioc_err(ioc, "%s: handshake failed (r=%d)\n", __func__, r);
r                6221 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6228 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EIO;
r                6231 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                6294 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r = 0;
r                6325 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -EFAULT;
r                6327 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -ETIME;
r                6336 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EFAULT;
r                6342 drivers/scsi/mpt3sas/mpt3sas_base.c 	ioc_info(ioc, "port enable: %s\n", r == 0 ? "SUCCESS" : "FAILED");
r                6343 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                6467 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r = 0;
r                6500 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -EFAULT;
r                6502 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -ETIME;
r                6506 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                6727 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r, i, index, rc;
r                6829 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_send_ioc_init(ioc);
r                6830 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                6837 drivers/scsi/mpt3sas/mpt3sas_base.c 			return r;
r                6841 drivers/scsi/mpt3sas/mpt3sas_base.c 			return r;
r                6868 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = _base_display_fwpkg_version(ioc);
r                6869 drivers/scsi/mpt3sas/mpt3sas_base.c 		if (r)
r                6870 drivers/scsi/mpt3sas/mpt3sas_base.c 			return r;
r                6874 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_event_notification(ioc);
r                6875 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                6876 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6892 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r; /* scan_start and scan_finished support */
r                6895 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_send_port_enable(ioc);
r                6896 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                6897 drivers/scsi/mpt3sas/mpt3sas_base.c 		return r;
r                6899 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                6934 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r, i, rc;
r                6949 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENOMEM;
r                6959 drivers/scsi/mpt3sas/mpt3sas_base.c 			r = -ENOMEM;
r                6972 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = mpt3sas_base_map_resources(ioc);
r                6973 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                6977 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_get_ioc_facts(ioc);
r                6978 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                7037 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_make_ioc_ready(ioc, SOFT_RESET);
r                7038 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                7044 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENOMEM;
r                7049 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = _base_get_port_facts(ioc, i);
r                7050 drivers/scsi/mpt3sas/mpt3sas_base.c 		if (r) {
r                7057 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_allocate_memory_pools(ioc);
r                7058 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                7076 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENOMEM;
r                7082 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENOMEM;
r                7142 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -ENOMEM;
r                7172 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_make_ioc_operational(ioc);
r                7173 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                7217 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                7434 drivers/scsi/mpt3sas/mpt3sas_base.c 	int r;
r                7443 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = 0;
r                7469 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_make_ioc_ready(ioc, type);
r                7470 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                7479 drivers/scsi/mpt3sas/mpt3sas_base.c 		r = -EFAULT;
r                7482 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_get_ioc_facts(ioc);
r                7483 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r)
r                7486 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_check_ioc_facts_changes(ioc);
r                7487 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (r) {
r                7498 drivers/scsi/mpt3sas/mpt3sas_base.c 	r = _base_make_ioc_operational(ioc);
r                7499 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (!r)
r                7505 drivers/scsi/mpt3sas/mpt3sas_base.c 			   __func__, r == 0 ? "SUCCESS" : "FAILED"));
r                7514 drivers/scsi/mpt3sas/mpt3sas_base.c 	if ((r == 0) && is_trigger) {
r                7522 drivers/scsi/mpt3sas/mpt3sas_base.c 	return r;
r                 556 drivers/scsi/mpt3sas/mpt3sas_base.h static inline void sas_device_free(struct kref *r)
r                 558 drivers/scsi/mpt3sas/mpt3sas_base.h 	kfree(container_of(r, struct _sas_device, refcount));
r                 632 drivers/scsi/mpt3sas/mpt3sas_base.h static inline void pcie_device_free(struct kref *r)
r                 634 drivers/scsi/mpt3sas/mpt3sas_base.h 	kfree(container_of(r, struct _pcie_device, refcount));
r                 205 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r = 0;
r                 213 drivers/scsi/mpt3sas/mpt3sas_config.c 			r = -ENOMEM;
r                 220 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 304 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 333 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = _config_alloc_config_dma_memory(ioc, &mem);
r                 334 drivers/scsi/mpt3sas/mpt3sas_config.c 		if (r != 0)
r                 356 drivers/scsi/mpt3sas/mpt3sas_config.c 			r = -EFAULT;
r                 363 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = mpt3sas_wait_for_ioc(ioc, MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT);
r                 364 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 371 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = -EAGAIN;
r                 375 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = 0;
r                 396 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = -EFAULT;
r                 477 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 494 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 503 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 505 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 509 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 513 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 532 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 541 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 543 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 547 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 551 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 569 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 578 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 580 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 584 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 588 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 606 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 615 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 617 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 621 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 625 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 643 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 652 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 654 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 658 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 662 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 679 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 688 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 690 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 694 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 698 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 715 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 724 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 726 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 730 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 734 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 751 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 760 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 762 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 766 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 770 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 787 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 796 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 798 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 802 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 806 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 823 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 832 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 834 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 838 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 842 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 860 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 869 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 871 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 875 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 878 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 895 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 904 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 906 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 910 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 914 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 931 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 940 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 942 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 946 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 950 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 966 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                 975 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 977 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                 981 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                 985 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1002 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1011 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1013 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1017 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1021 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1041 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1051 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1053 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1058 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1062 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1082 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1092 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1094 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1099 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1103 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1123 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1133 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1135 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1140 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1144 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1164 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1174 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1176 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1181 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1185 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1200 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1214 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1216 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1220 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1223 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (!r) {
r                1230 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1252 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1262 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1264 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1268 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1271 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1293 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1303 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1305 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1309 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1312 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1334 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1344 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1346 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1353 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1356 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1375 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1385 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1387 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1392 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1396 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1416 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1426 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1428 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1435 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1439 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1458 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1468 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1470 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1475 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1479 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1497 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1507 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1509 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1515 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1519 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1537 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1547 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1549 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1555 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1559 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1579 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1588 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1590 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1595 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1599 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1618 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1629 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1631 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1637 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1640 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (!r) {
r                1648 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1669 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1678 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1680 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1685 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1688 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1708 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r;
r                1717 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1719 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1724 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, mpi_reply,
r                1728 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                1748 drivers/scsi/mpt3sas/mpt3sas_config.c 	int r, i, config_page_sz;
r                1763 drivers/scsi/mpt3sas/mpt3sas_config.c 	r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1765 drivers/scsi/mpt3sas/mpt3sas_config.c 	if (r)
r                1772 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = -1;
r                1780 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = _config_request(ioc, &mpi_request, &mpi_reply,
r                1783 drivers/scsi/mpt3sas/mpt3sas_config.c 		if (r)
r                1785 drivers/scsi/mpt3sas/mpt3sas_config.c 		r = -1;
r                1805 drivers/scsi/mpt3sas/mpt3sas_config.c 					r = 0;
r                1811 drivers/scsi/mpt3sas/mpt3sas_config.c 				r = 0;
r                1819 drivers/scsi/mpt3sas/mpt3sas_config.c 	return r;
r                 213 drivers/scsi/mpt3sas/mpt3sas_scsih.c static void fw_event_work_free(struct kref *r)
r                 215 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	kfree(container_of(r, struct fw_event_work, refcount));
r                1225 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _raid_device *raid_device, *r;
r                1227 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1230 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			r = raid_device;
r                1236 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                1251 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _raid_device *raid_device, *r;
r                1253 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1257 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = raid_device;
r                1262 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                1277 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _raid_device *raid_device, *r;
r                1279 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1283 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = raid_device;
r                1288 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                1344 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _sas_node *sas_expander, *r;
r                1346 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1350 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = sas_expander;
r                1354 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                1369 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _enclosure_node *enclosure_dev, *r;
r                1371 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1375 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = enclosure_dev;
r                1379 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                1394 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	struct _sas_node *sas_expander, *r;
r                1396 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = NULL;
r                1400 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = sas_expander;
r                1404 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                2874 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r;
r                2889 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = SUCCESS;
r                2896 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = SUCCESS;
r                2905 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                2916 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun,
r                2920 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r == SUCCESS && st->cb_idx != 0xFF)
r                2921 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                2924 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd);
r                2927 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                2946 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r;
r                2962 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = SUCCESS;
r                2979 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                2992 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun,
r                2996 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r == SUCCESS && atomic_read(&scmd->device->device_busy))
r                2997 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                3000 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd);
r                3007 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                3026 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r;
r                3041 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = SUCCESS;
r                3058 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                3070 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = mpt3sas_scsih_issue_locked_tm(ioc, handle, 0,
r                3074 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r == SUCCESS && atomic_read(&starget->target_busy))
r                3075 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                3078 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	    ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd);
r                3084 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                3098 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r, retval;
r                3105 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = FAILED;
r                3110 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = (retval < 0) ? FAILED : SUCCESS;
r                3113 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		 r == SUCCESS ? "SUCCESS" : "FAILED", scmd);
r                3115 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	return r;
r                3291 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r = 0;
r                3297 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = scsi_internal_device_block_nowait(sdev);
r                3298 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r == -EINVAL)
r                3301 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		    r, sas_device_priv_data->sas_target->handle);
r                3316 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r = 0;
r                3321 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
r                3322 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r == -EINVAL) {
r                3331 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		    r, sas_device_priv_data->sas_target->handle);
r                3333 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = scsi_internal_device_block_nowait(sdev);
r                3334 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		if (r)
r                3337 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			    r, sas_device_priv_data->sas_target->handle);
r                3340 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
r                3341 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		if (r)
r                3344 drivers/scsi/mpt3sas/mpt3sas_scsih.c 			    r, sas_device_priv_data->sas_target->handle);
r                7383 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r;
r                7440 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = mpt3sas_scsih_issue_tm(ioc, handle, lun,
r                7443 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		if (r == FAILED) {
r                7481 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->lun,
r                7484 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		if (r == FAILED || st->cb_idx != 0xFF) {
r                10704 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	int r;
r                10713 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	r = mpt3sas_base_map_resources(ioc);
r                10714 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (r)
r                10715 drivers/scsi/mpt3sas/mpt3sas_scsih.c 		return r;
r                7301 drivers/scsi/ncr53c8xx.c #define ncr_reg_bus_addr(r) (np->paddr + offsetof (struct ncr_reg, r))
r                 418 drivers/scsi/ncr53c8xx.h #define INB(r)		INB_OFF (offsetof(struct ncr_reg,r))
r                 419 drivers/scsi/ncr53c8xx.h #define INW(r)		INW_OFF (offsetof(struct ncr_reg,r))
r                 420 drivers/scsi/ncr53c8xx.h #define INL(r)		INL_OFF (offsetof(struct ncr_reg,r))
r                 422 drivers/scsi/ncr53c8xx.h #define OUTB(r, val)	OUTB_OFF (offsetof(struct ncr_reg,r), (val))
r                 423 drivers/scsi/ncr53c8xx.h #define OUTW(r, val)	OUTW_OFF (offsetof(struct ncr_reg,r), (val))
r                 424 drivers/scsi/ncr53c8xx.h #define OUTL(r, val)	OUTL_OFF (offsetof(struct ncr_reg,r), (val))
r                 430 drivers/scsi/ncr53c8xx.h #define OUTONB(r, m)	OUTB(r, INB(r) | (m))
r                 431 drivers/scsi/ncr53c8xx.h #define OUTOFFB(r, m)	OUTB(r, INB(r) & ~(m))
r                 432 drivers/scsi/ncr53c8xx.h #define OUTONW(r, m)	OUTW(r, INW(r) | (m))
r                 433 drivers/scsi/ncr53c8xx.h #define OUTOFFW(r, m)	OUTW(r, INW(r) & ~(m))
r                 434 drivers/scsi/ncr53c8xx.h #define OUTONL(r, m)	OUTL(r, INL(r) | (m))
r                 435 drivers/scsi/ncr53c8xx.h #define OUTOFFL(r, m)	OUTL(r, INL(r) & ~(m))
r                 898 drivers/scsi/ncr53c8xx.h #define REGJ(p,r) (offsetof(struct ncr_reg, p ## r))
r                 899 drivers/scsi/ncr53c8xx.h #define REG(r) REGJ (nc_, r)
r                 341 drivers/scsi/pm8001/pm8001_ctl.c #define AAP1_MEMMAP(r, c) \
r                 342 drivers/scsi/pm8001/pm8001_ctl.c 	(*(u32 *)((u8*)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) * 32 \
r                 183 drivers/scsi/ppa.c 	unsigned char r;
r                 187 drivers/scsi/ppa.c 	for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) {
r                 189 drivers/scsi/ppa.c 		r = r_str(ppb);
r                 200 drivers/scsi/ppa.c 		return (r & 0xf0);
r                 279 drivers/scsi/ppa.c 	int r;
r                 282 drivers/scsi/ppa.c 	r = ppa_wait(dev);
r                 284 drivers/scsi/ppa.c 	if ((r & 0x50) != 0x40) {
r                 292 drivers/scsi/ppa.c 		r = ppa_byte_out(ppb, buffer, len);
r                 310 drivers/scsi/ppa.c 		r = !(r_str(ppb) & 0x01);
r                 317 drivers/scsi/ppa.c 		r = 0;
r                 319 drivers/scsi/ppa.c 	return r;
r                 324 drivers/scsi/ppa.c 	int r;
r                 327 drivers/scsi/ppa.c 	r = ppa_wait(dev);
r                 329 drivers/scsi/ppa.c 	if ((r & 0x50) != 0x50) {
r                 336 drivers/scsi/ppa.c 		r = ppa_nibble_in(ppb, buffer, len);
r                 343 drivers/scsi/ppa.c 		r = ppa_byte_in(ppb, buffer, len);
r                 363 drivers/scsi/ppa.c 		r = !(r_str(ppb) & 0x01);
r                 370 drivers/scsi/ppa.c 		r = 0;
r                 373 drivers/scsi/ppa.c 	return r;
r                 525 drivers/scsi/ppa.c 	unsigned char r, v;
r                 536 drivers/scsi/ppa.c 	r = (r_str(ppb) & 0xf0);
r                 538 drivers/scsi/ppa.c 	while (r != (unsigned char) 0xf0) {
r                 561 drivers/scsi/ppa.c 		if ((r & 0xc0) != 0xc0) {
r                 566 drivers/scsi/ppa.c 			for (; k && ((r = (r_str(ppb) & 0xf0)) & 0xc0) != 0xc0;
r                 578 drivers/scsi/ppa.c 		if (r == (unsigned char) 0xc0)
r                 600 drivers/scsi/ppa.c 		r = (r_str(ppb) & 0xf0);
r                 602 drivers/scsi/ppa.c 		if (!(r & 0x80))
r                1569 drivers/scsi/qla2xxx/qla_sup.c #define PIO_REG(h, r) ((h)->pio_address + offsetof(struct device_reg_2xxx, r))
r                  23 drivers/scsi/raid_class.c 	struct raid_template r;
r                  38 drivers/scsi/raid_class.c #define to_raid_internal(tmpl)	container_of(tmpl, struct raid_internal, r)
r                  41 drivers/scsi/raid_class.c 	struct raid_template *r =					\
r                  43 drivers/scsi/raid_class.c 	to_raid_internal(r);						\
r                 221 drivers/scsi/raid_class.c int raid_component_add(struct raid_template *r,struct device *raid_dev,
r                 225 drivers/scsi/raid_class.c 		attribute_container_find_class_device(&r->raid_attrs.ac,
r                 271 drivers/scsi/raid_class.c 	i->r.raid_attrs.ac.class = &raid_class.class;
r                 272 drivers/scsi/raid_class.c 	i->r.raid_attrs.ac.match = raid_match;
r                 273 drivers/scsi/raid_class.c 	i->r.raid_attrs.ac.attrs = &i->attrs[0];
r                 275 drivers/scsi/raid_class.c 	attribute_container_register(&i->r.raid_attrs.ac);
r                 284 drivers/scsi/raid_class.c 	return &i->r;
r                 289 drivers/scsi/raid_class.c raid_class_release(struct raid_template *r)
r                 291 drivers/scsi/raid_class.c 	struct raid_internal *i = to_raid_internal(r);
r                 293 drivers/scsi/raid_class.c 	BUG_ON(attribute_container_unregister(&i->r.raid_attrs.ac));
r                2367 drivers/scsi/scsi_transport_iscsi.c 	ev->r.recv_req.cid = conn->cid;
r                2368 drivers/scsi/scsi_transport_iscsi.c 	ev->r.recv_req.sid = iscsi_conn_get_sid(conn);
r                2399 drivers/scsi/scsi_transport_iscsi.c 		ev->r.req_path.host_no = shost->host_no;
r                2402 drivers/scsi/scsi_transport_iscsi.c 		ev->r.notify_if_down.host_no = shost->host_no;
r                2435 drivers/scsi/scsi_transport_iscsi.c 	ev->r.connerror.error = error;
r                2436 drivers/scsi/scsi_transport_iscsi.c 	ev->r.connerror.cid = conn->cid;
r                2437 drivers/scsi/scsi_transport_iscsi.c 	ev->r.connerror.sid = iscsi_conn_get_sid(conn);
r                2470 drivers/scsi/scsi_transport_iscsi.c 	ev->r.conn_login.state = state;
r                2471 drivers/scsi/scsi_transport_iscsi.c 	ev->r.conn_login.cid = conn->cid;
r                2472 drivers/scsi/scsi_transport_iscsi.c 	ev->r.conn_login.sid = iscsi_conn_get_sid(conn);
r                2500 drivers/scsi/scsi_transport_iscsi.c 	ev->r.host_event.host_no = host_no;
r                2501 drivers/scsi/scsi_transport_iscsi.c 	ev->r.host_event.code = code;
r                2502 drivers/scsi/scsi_transport_iscsi.c 	ev->r.host_event.data_size = data_size;
r                2530 drivers/scsi/scsi_transport_iscsi.c 	ev->r.ping_comp.host_no = host_no;
r                2531 drivers/scsi/scsi_transport_iscsi.c 	ev->r.ping_comp.status = status;
r                2532 drivers/scsi/scsi_transport_iscsi.c 	ev->r.ping_comp.pid = pid;
r                2533 drivers/scsi/scsi_transport_iscsi.c 	ev->r.ping_comp.data_size = data_size;
r                2658 drivers/scsi/scsi_transport_iscsi.c 		ev->r.d_session.host_no = shost->host_no;
r                2659 drivers/scsi/scsi_transport_iscsi.c 		ev->r.d_session.sid = session->sid;
r                2662 drivers/scsi/scsi_transport_iscsi.c 		ev->r.c_session_ret.host_no = shost->host_no;
r                2663 drivers/scsi/scsi_transport_iscsi.c 		ev->r.c_session_ret.sid = session->sid;
r                2666 drivers/scsi/scsi_transport_iscsi.c 		ev->r.unbind_session.host_no = shost->host_no;
r                2667 drivers/scsi/scsi_transport_iscsi.c 		ev->r.unbind_session.sid = session->sid;
r                2710 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_session_ret.host_no = shost->host_no;
r                2711 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_session_ret.sid = session->sid;
r                2737 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_conn_ret.sid = session->sid;
r                2738 drivers/scsi/scsi_transport_iscsi.c 	ev->r.c_conn_ret.cid = conn->cid;
r                2817 drivers/scsi/scsi_transport_iscsi.c 	ev->r.ep_connect_ret.handle = ep->id;
r                2867 drivers/scsi/scsi_transport_iscsi.c 		ev->r.retcode = transport->ep_poll(ep,
r                3233 drivers/scsi/scsi_transport_iscsi.c 		ev->r.new_flashnode_ret.flashnode_idx = index;
r                3580 drivers/scsi/scsi_transport_iscsi.c 		ev->r.retcode =	transport->bind_conn(session, conn,
r                3583 drivers/scsi/scsi_transport_iscsi.c 		if (ev->r.retcode || !transport->ep_connect)
r                3604 drivers/scsi/scsi_transport_iscsi.c 			ev->r.retcode = transport->start_conn(conn);
r                3618 drivers/scsi/scsi_transport_iscsi.c 			ev->r.retcode =	transport->send_pdu(conn,
r                 627 drivers/scsi/scsi_transport_spi.c 	int j, k, r, result;
r                 673 drivers/scsi/scsi_transport_spi.c 	for (r = 0; r < retries; r++) {
r                 712 drivers/scsi/scsi_transport_spi.c 	int r, result;
r                 718 drivers/scsi/scsi_transport_spi.c 	for (r = 0; r < retries; r++) {
r                 733 drivers/scsi/scsi_transport_spi.c 			--r;
r                  46 drivers/scsi/scsi_transport_srp.c static inline struct Scsi_Host *rport_to_shost(struct srp_rport *r)
r                  48 drivers/scsi/scsi_transport_srp.c 	return dev_to_shost(r->dev.parent);
r                  86 drivers/scsi/snic/vnic_dev.c 	struct vnic_resource __iomem *r;
r                 114 drivers/scsi/snic/vnic_dev.c 	r = (struct vnic_resource __iomem *)(rh + 1);
r                 116 drivers/scsi/snic/vnic_dev.c 	while ((type = ioread8(&r->type)) != RES_TYPE_EOL) {
r                 118 drivers/scsi/snic/vnic_dev.c 		u8 bar_num = ioread8(&r->bar);
r                 119 drivers/scsi/snic/vnic_dev.c 		u32 bar_offset = ioread32(&r->bar_offset);
r                 120 drivers/scsi/snic/vnic_dev.c 		u32 count = ioread32(&r->count);
r                 123 drivers/scsi/snic/vnic_dev.c 		r++;
r                 371 drivers/scsi/sym53c8xx_2/sym_defs.h #define REGJ(p,r) (offsetof(struct sym_reg, p ## r))
r                 372 drivers/scsi/sym53c8xx_2/sym_defs.h #define REG(r) REGJ (nc_, r)
r                 192 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INB(np, r)		INB_OFF(np, offsetof(struct sym_reg, r))
r                 193 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INW(np, r)		INW_OFF(np, offsetof(struct sym_reg, r))
r                 194 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INL(np, r)		INL_OFF(np, offsetof(struct sym_reg, r))
r                 196 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTB(np, r, v)		OUTB_OFF(np, offsetof(struct sym_reg, r), (v))
r                 197 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTW(np, r, v)		OUTW_OFF(np, offsetof(struct sym_reg, r), (v))
r                 198 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTL(np, r, v)		OUTL_OFF(np, offsetof(struct sym_reg, r), (v))
r                 200 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTONB(np, r, m)	OUTB(np, r, INB(np, r) | (m))
r                 201 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTOFFB(np, r, m)	OUTB(np, r, INB(np, r) & ~(m))
r                 202 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTONW(np, r, m)	OUTW(np, r, INW(np, r) | (m))
r                 203 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTOFFW(np, r, m)	OUTW(np, r, INW(np, r) & ~(m))
r                 204 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTONL(np, r, m)	OUTL(np, r, INL(np, r) | (m))
r                 205 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTOFFL(np, r, m)	OUTL(np, r, INL(np, r) & ~(m))
r                  84 drivers/sh/clk/core.c #define for_each_frequency(pos, r, freq)			\
r                  85 drivers/sh/clk/core.c 	for (pos = r->min, freq = r->func(pos, r);		\
r                  86 drivers/sh/clk/core.c 	     pos <= r->max; pos++, freq = r->func(pos, r))	\
r                  76 drivers/slimbus/qcom-ctrl.c #define CFG_PORT(r, v) ((v) ? CFG_PORT_V2(r) : CFG_PORT_V1(r))
r                  79 drivers/slimbus/qcom-ctrl.c #define CFG_PORT_V2(r) ((r ## _V2))
r                  84 drivers/slimbus/qcom-ctrl.c #define CFG_PORT_V1(r) ((r ## _V1))
r                 955 drivers/soc/fsl/dpio/qbman-portal.c 	struct qbman_acquire_rslt *r;
r                 972 drivers/soc/fsl/dpio/qbman-portal.c 	r = qbman_swp_mc_complete(s, p, QBMAN_MC_ACQUIRE);
r                 973 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(!r)) {
r                 980 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON((r->verb & 0x7f) != QBMAN_MC_ACQUIRE);
r                 983 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {
r                 985 drivers/soc/fsl/dpio/qbman-portal.c 		       bpid, r->rslt);
r                 989 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON(r->num > num_buffers);
r                 992 drivers/soc/fsl/dpio/qbman-portal.c 	for (i = 0; i < r->num; i++)
r                 993 drivers/soc/fsl/dpio/qbman-portal.c 		buffers[i] = le64_to_cpu(r->buf[i]);
r                 995 drivers/soc/fsl/dpio/qbman-portal.c 	return (int)r->num;
r                1017 drivers/soc/fsl/dpio/qbman-portal.c 	struct qbman_alt_fq_state_rslt *r;
r                1027 drivers/soc/fsl/dpio/qbman-portal.c 	r = qbman_swp_mc_complete(s, p, alt_fq_verb);
r                1028 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(!r)) {
r                1035 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON((r->verb & QBMAN_RESULT_MASK) != alt_fq_verb);
r                1038 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {
r                1040 drivers/soc/fsl/dpio/qbman-portal.c 		       fqid, r->verb, r->rslt);
r                1071 drivers/soc/fsl/dpio/qbman-portal.c 	struct qbman_cdan_ctrl_rslt *r = NULL;
r                1088 drivers/soc/fsl/dpio/qbman-portal.c 	r = qbman_swp_mc_complete(s, p, QBMAN_WQCHAN_CONFIGURE);
r                1089 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(!r)) {
r                1094 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON((r->verb & 0x7f) != QBMAN_WQCHAN_CONFIGURE);
r                1097 drivers/soc/fsl/dpio/qbman-portal.c 	if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {
r                1099 drivers/soc/fsl/dpio/qbman-portal.c 		       channelid, r->rslt);
r                1118 drivers/soc/fsl/dpio/qbman-portal.c 			 struct qbman_fq_query_np_rslt *r)
r                1135 drivers/soc/fsl/dpio/qbman-portal.c 	*r = *(struct qbman_fq_query_np_rslt *)resp;
r                1137 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON((r->verb & QBMAN_RESPONSE_VERB_MASK) != QBMAN_FQ_QUERY_NP);
r                1140 drivers/soc/fsl/dpio/qbman-portal.c 	if (r->rslt != QBMAN_MC_RSLT_OK) {
r                1142 drivers/soc/fsl/dpio/qbman-portal.c 		       p->fqid, r->rslt);
r                1149 drivers/soc/fsl/dpio/qbman-portal.c u32 qbman_fq_state_frame_count(const struct qbman_fq_query_np_rslt *r)
r                1151 drivers/soc/fsl/dpio/qbman-portal.c 	return (le32_to_cpu(r->frm_cnt) & 0x00FFFFFF);
r                1154 drivers/soc/fsl/dpio/qbman-portal.c u32 qbman_fq_state_byte_count(const struct qbman_fq_query_np_rslt *r)
r                1156 drivers/soc/fsl/dpio/qbman-portal.c 	return le32_to_cpu(r->byte_cnt);
r                1167 drivers/soc/fsl/dpio/qbman-portal.c 		   struct qbman_bp_query_rslt *r)
r                1183 drivers/soc/fsl/dpio/qbman-portal.c 	*r = *(struct qbman_bp_query_rslt *)resp;
r                1185 drivers/soc/fsl/dpio/qbman-portal.c 	WARN_ON((r->verb & QBMAN_RESPONSE_VERB_MASK) != QBMAN_BP_QUERY);
r                1188 drivers/soc/fsl/dpio/qbman-portal.c 	if (r->rslt != QBMAN_MC_RSLT_OK) {
r                1190 drivers/soc/fsl/dpio/qbman-portal.c 		       bpid, r->rslt);
r                 471 drivers/soc/fsl/dpio/qbman-portal.h 			 struct qbman_fq_query_np_rslt *r);
r                 472 drivers/soc/fsl/dpio/qbman-portal.h u32 qbman_fq_state_frame_count(const struct qbman_fq_query_np_rslt *r);
r                 473 drivers/soc/fsl/dpio/qbman-portal.h u32 qbman_fq_state_byte_count(const struct qbman_fq_query_np_rslt *r);
r                 503 drivers/soc/fsl/dpio/qbman-portal.h 		   struct qbman_bp_query_rslt *r);
r                 742 drivers/soc/fsl/qbman/bman.c 	struct bm_rcr_entry *r;
r                 755 drivers/soc/fsl/qbman/bman.c 		r = bm_rcr_start(&p->p);
r                 758 drivers/soc/fsl/qbman/bman.c 		if (likely(r))
r                 773 drivers/soc/fsl/qbman/bman.c 	bm_buffer_set64(r->bufs, bm_buffer_get64(bufs));
r                 774 drivers/soc/fsl/qbman/bman.c 	bm_buffer_set_bpid(r->bufs, pool->bpid);
r                 776 drivers/soc/fsl/qbman/bman.c 		memcpy(&r->bufs[1], &bufs[1], i * sizeof(bufs[0]));
r                  95 drivers/soc/fsl/qbman/qman_ccsr.c #define MCR_rslt_idle(r)	(!(r) || ((r) >= 0xf0))
r                  96 drivers/soc/fsl/qbman/qman_ccsr.c #define MCR_rslt_ok(r)		((r) == 0xf0)
r                  97 drivers/soc/fsl/qbman/qman_ccsr.c #define MCR_rslt_eaccess(r)	((r) == 0xf8)
r                  98 drivers/soc/fsl/qbman/qman_ccsr.c #define MCR_rslt_inval(r)	((r) == 0xff)
r                  48 drivers/soc/fsl/qe/qe_common.c 	struct resource r;
r                  82 drivers/soc/fsl/qe/qe_common.c 	while (of_address_to_resource(np, i++, &r) == 0) {
r                  83 drivers/soc/fsl/qe/qe_common.c 		if (r.end > max)
r                  84 drivers/soc/fsl/qe/qe_common.c 			max = r.end;
r                  85 drivers/soc/fsl/qe/qe_common.c 		ret = gen_pool_add(muram_pool, r.start - muram_pbase +
r                  86 drivers/soc/fsl/qe/qe_common.c 				   GENPOOL_OFFSET, resource_size(&r), -1);
r                 112 drivers/soc/qcom/rpmh-internal.h void rpmh_tx_done(const struct tcs_request *msg, int r);
r                  78 drivers/soc/qcom/rpmh.c void rpmh_tx_done(const struct tcs_request *msg, int r)
r                  85 drivers/soc/qcom/rpmh.c 	rpm_msg->err = r;
r                  87 drivers/soc/qcom/rpmh.c 	if (r)
r                  89 drivers/soc/qcom/rpmh.c 			rpm_msg->msg.cmds[0].addr, r);
r                 871 drivers/soc/qcom/smem.c 	struct resource r;
r                 881 drivers/soc/qcom/smem.c 	ret = of_address_to_resource(np, 0, &r);
r                 885 drivers/soc/qcom/smem.c 	size = resource_size(&r);
r                 887 drivers/soc/qcom/smem.c 	smem->regions[i].virt_base = devm_ioremap_wc(dev, r.start, size);
r                 890 drivers/soc/qcom/smem.c 	smem->regions[i].aux_base = (u32)r.start;
r                  17 drivers/soc/qcom/trace-rpmh.h 	TP_PROTO(struct rsc_drv *d, int m, const struct tcs_request *r, int e),
r                  19 drivers/soc/qcom/trace-rpmh.h 	TP_ARGS(d, m, r, e),
r                  32 drivers/soc/qcom/trace-rpmh.h 		       __entry->addr = r->cmds[0].addr;
r                  33 drivers/soc/qcom/trace-rpmh.h 		       __entry->data = r->cmds[0].data;
r                 928 drivers/soundwire/cadence_master.c 	int r;
r                 930 drivers/soundwire/cadence_master.c 	r = sdw_find_row_index(n_rows);
r                 933 drivers/soundwire/cadence_master.c 	val = (r << CDNS_MCP_FRAME_SHAPE_ROW_OFFSET) | c;
r                 726 drivers/spi/spi-au1550.c 	struct resource *r;
r                 752 drivers/spi/spi-au1550.c 	r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 753 drivers/spi/spi-au1550.c 	if (!r) {
r                 758 drivers/spi/spi-au1550.c 	hw->irq = r->start;
r                 761 drivers/spi/spi-au1550.c 	r = platform_get_resource(pdev, IORESOURCE_DMA, 0);
r                 762 drivers/spi/spi-au1550.c 	if (r) {
r                 763 drivers/spi/spi-au1550.c 		hw->dma_tx_id = r->start;
r                 764 drivers/spi/spi-au1550.c 		r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
r                 765 drivers/spi/spi-au1550.c 		if (r) {
r                 766 drivers/spi/spi-au1550.c 			hw->dma_rx_id = r->start;
r                 776 drivers/spi/spi-au1550.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 777 drivers/spi/spi-au1550.c 	if (!r) {
r                 783 drivers/spi/spi-au1550.c 	hw->ioarea = request_mem_region(r->start, sizeof(psc_spi_t),
r                 791 drivers/spi/spi-au1550.c 	hw->regs = (psc_spi_t __iomem *)ioremap(r->start, sizeof(psc_spi_t));
r                 914 drivers/spi/spi-au1550.c 	release_mem_region(r->start, sizeof(psc_spi_t));
r                 487 drivers/spi/spi-bcm63xx.c 	struct resource *r;
r                 544 drivers/spi/spi-bcm63xx.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 545 drivers/spi/spi-bcm63xx.c 	bs->regs = devm_ioremap_resource(&pdev->dev, r);
r                 592 drivers/spi/spi-bcm63xx.c 		 r, irq, bs->fifo_size);
r                 139 drivers/spi/spi-cavium.c 		int r = octeon_spi_do_transfer(p, msg, xfer, last_xfer);
r                 140 drivers/spi/spi-cavium.c 		if (r < 0) {
r                 141 drivers/spi/spi-cavium.c 			status = r;
r                 144 drivers/spi/spi-cavium.c 		total_len += r;
r                 873 drivers/spi/spi-davinci.c 	struct resource *r;
r                 909 drivers/spi/spi-davinci.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 910 drivers/spi/spi-davinci.c 	if (r == NULL) {
r                 915 drivers/spi/spi-davinci.c 	dspi->pbase = r->start;
r                 917 drivers/spi/spi-davinci.c 	dspi->base = devm_ioremap_resource(&pdev->dev, r);
r                 468 drivers/spi/spi-loopback-test.c 	struct rx_ranges ranges[SPI_TEST_MAX_TRANSFERS], *r;
r                 505 drivers/spi/spi-loopback-test.c 		list_for_each_entry(r, &ranges_list, list) {
r                 507 drivers/spi/spi-loopback-test.c 			if ((addr >= r->start) && (addr < r->end))
r                 508 drivers/spi/spi-loopback-test.c 				addr = r->end;
r                1396 drivers/spi/spi-omap2-mcspi.c 	struct resource		*r;
r                1445 drivers/spi/spi-omap2-mcspi.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1446 drivers/spi/spi-omap2-mcspi.c 	mcspi->base = devm_ioremap_resource(&pdev->dev, r);
r                1451 drivers/spi/spi-omap2-mcspi.c 	mcspi->phys = r->start + regs_offset;
r                 598 drivers/spi/spi-orion.c 	struct resource *r;
r                 679 drivers/spi/spi-orion.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 680 drivers/spi/spi-orion.c 	spi->base = devm_ioremap_resource(&pdev->dev, r);
r                 745 drivers/spi/spi-orion.c 		status = of_address_to_resource(pdev->dev.of_node, cs + 1, r);
r                 756 drivers/spi/spi-orion.c 		dir_acc->vaddr = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE);
r                  66 drivers/spi/spi-pl022.c #define SSP_CR0(r)	(r + 0x000)
r                  67 drivers/spi/spi-pl022.c #define SSP_CR1(r)	(r + 0x004)
r                  68 drivers/spi/spi-pl022.c #define SSP_DR(r)	(r + 0x008)
r                  69 drivers/spi/spi-pl022.c #define SSP_SR(r)	(r + 0x00C)
r                  70 drivers/spi/spi-pl022.c #define SSP_CPSR(r)	(r + 0x010)
r                  71 drivers/spi/spi-pl022.c #define SSP_IMSC(r)	(r + 0x014)
r                  72 drivers/spi/spi-pl022.c #define SSP_RIS(r)	(r + 0x018)
r                  73 drivers/spi/spi-pl022.c #define SSP_MIS(r)	(r + 0x01C)
r                  74 drivers/spi/spi-pl022.c #define SSP_ICR(r)	(r + 0x020)
r                  75 drivers/spi/spi-pl022.c #define SSP_DMACR(r)	(r + 0x024)
r                  76 drivers/spi/spi-pl022.c #define SSP_CSR(r)	(r + 0x030) /* vendor extension */
r                  77 drivers/spi/spi-pl022.c #define SSP_ITCR(r)	(r + 0x080)
r                  78 drivers/spi/spi-pl022.c #define SSP_ITIP(r)	(r + 0x084)
r                  79 drivers/spi/spi-pl022.c #define SSP_ITOP(r)	(r + 0x088)
r                  80 drivers/spi/spi-pl022.c #define SSP_TDR(r)	(r + 0x08C)
r                  82 drivers/spi/spi-pl022.c #define SSP_PID0(r)	(r + 0xFE0)
r                  83 drivers/spi/spi-pl022.c #define SSP_PID1(r)	(r + 0xFE4)
r                  84 drivers/spi/spi-pl022.c #define SSP_PID2(r)	(r + 0xFE8)
r                  85 drivers/spi/spi-pl022.c #define SSP_PID3(r)	(r + 0xFEC)
r                  87 drivers/spi/spi-pl022.c #define SSP_CID0(r)	(r + 0xFF0)
r                  88 drivers/spi/spi-pl022.c #define SSP_CID1(r)	(r + 0xFF4)
r                  89 drivers/spi/spi-pl022.c #define SSP_CID2(r)	(r + 0xFF8)
r                  90 drivers/spi/spi-pl022.c #define SSP_CID3(r)	(r + 0xFFC)
r                 815 drivers/spi/spi-pxa2xx.c 	long r, r1, r2;
r                 859 drivers/spi/spi-pxa2xx.c 		r = r1;
r                 863 drivers/spi/spi-pxa2xx.c 		r = r2;
r                 883 drivers/spi/spi-pxa2xx.c 		if (r1 < r) {
r                  13 drivers/spi/spi-s3c24xx-fiq.h #define __REG_NR(x)     r##x
r                 116 drivers/spi/spi-sh-sci.c 	struct resource	*r;
r                 149 drivers/spi/spi-sh-sci.c 	r = platform_get_resource(dev, IORESOURCE_MEM, 0);
r                 150 drivers/spi/spi-sh-sci.c 	if (r == NULL) {
r                 154 drivers/spi/spi-sh-sci.c 	sp->membase = ioremap(r->start, resource_size(r));
r                1303 drivers/spi/spi-tegra114.c 	struct resource		*r;
r                1345 drivers/spi/spi-tegra114.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1346 drivers/spi/spi-tegra114.c 	tspi->base = devm_ioremap_resource(&pdev->dev, r);
r                1351 drivers/spi/spi-tegra114.c 	tspi->phys = r->start;
r                1010 drivers/spi/spi-tegra20-slink.c 	struct resource		*r;
r                1048 drivers/spi/spi-tegra20-slink.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1049 drivers/spi/spi-tegra20-slink.c 	if (!r) {
r                1054 drivers/spi/spi-tegra20-slink.c 	tspi->phys = r->start;
r                1055 drivers/spi/spi-tegra20-slink.c 	tspi->base = devm_ioremap_resource(&pdev->dev, r);
r                 669 drivers/spi/spi-ti-qspi.c 	struct resource         *r, *res_mmap;
r                 698 drivers/spi/spi-ti-qspi.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "qspi_base");
r                 699 drivers/spi/spi-ti-qspi.c 	if (r == NULL) {
r                 700 drivers/spi/spi-ti-qspi.c 		r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 701 drivers/spi/spi-ti-qspi.c 		if (r == NULL) {
r                 729 drivers/spi/spi-ti-qspi.c 	qspi->base = devm_ioremap_resource(&pdev->dev, r);
r                1962 drivers/spi/spi.c 		struct resource r;
r                1964 drivers/spi/spi.c 		if (acpi_dev_resource_interrupt(ares, 0, &r))
r                1965 drivers/spi/spi.c 			lookup->irq = r.start;
r                 217 drivers/staging/android/vsoc.c static inline uint32_t vsoc_device_region_size(struct vsoc_device_region *r)
r                 219 drivers/staging/android/vsoc.c 	return r->region_end_offset - r->region_begin_offset;
r                  49 drivers/staging/board/board.c 		const struct resource *r = resource + i;
r                  51 drivers/staging/board/board.c 		if (resource_type(r) == IORESOURCE_MEM)
r                  52 drivers/staging/board/board.c 			if (find_by_address(r->start))
r                  69 drivers/staging/comedi/drivers/adv_pci1710.c #define PCI171X_DAREF(c, r)	(((r) & 0x3) << ((c) * 2))
r                  54 drivers/staging/comedi/drivers/adv_pci1720.c #define PCI1720_AO_RANGE(c, r)		(((r) & 0x3) << ((c) * 2))
r                 145 drivers/staging/comedi/drivers/cb_pcidas.c #define PCIDAS_AO_RANGE(c, r)	(((r) & 0x3) << (8 + 2 * ((c) & 0x1)))
r                 524 drivers/staging/comedi/drivers/jr3_pci.c 			union jr3_pci_single_range *r = spriv->range;
r                 527 drivers/staging/comedi/drivers/jr3_pci.c 			r[0].l.range[0].min = -get_s16(&fs->fx) * 1000;
r                 528 drivers/staging/comedi/drivers/jr3_pci.c 			r[0].l.range[0].max = get_s16(&fs->fx) * 1000;
r                 529 drivers/staging/comedi/drivers/jr3_pci.c 			r[1].l.range[0].min = -get_s16(&fs->fy) * 1000;
r                 530 drivers/staging/comedi/drivers/jr3_pci.c 			r[1].l.range[0].max = get_s16(&fs->fy) * 1000;
r                 531 drivers/staging/comedi/drivers/jr3_pci.c 			r[2].l.range[0].min = -get_s16(&fs->fz) * 1000;
r                 532 drivers/staging/comedi/drivers/jr3_pci.c 			r[2].l.range[0].max = get_s16(&fs->fz) * 1000;
r                 533 drivers/staging/comedi/drivers/jr3_pci.c 			r[3].l.range[0].min = -get_s16(&fs->mx) * 100;
r                 534 drivers/staging/comedi/drivers/jr3_pci.c 			r[3].l.range[0].max = get_s16(&fs->mx) * 100;
r                 535 drivers/staging/comedi/drivers/jr3_pci.c 			r[4].l.range[0].min = -get_s16(&fs->my) * 100;
r                 536 drivers/staging/comedi/drivers/jr3_pci.c 			r[4].l.range[0].max = get_s16(&fs->my) * 100;
r                 537 drivers/staging/comedi/drivers/jr3_pci.c 			r[5].l.range[0].min = -get_s16(&fs->mz) * 100;
r                 539 drivers/staging/comedi/drivers/jr3_pci.c 			r[5].l.range[0].max = get_s16(&fs->mz) * 100;
r                 540 drivers/staging/comedi/drivers/jr3_pci.c 			r[6].l.range[0].min = -get_s16(&fs->v1) * 100;
r                 541 drivers/staging/comedi/drivers/jr3_pci.c 			r[6].l.range[0].max = get_s16(&fs->v1) * 100;
r                 542 drivers/staging/comedi/drivers/jr3_pci.c 			r[7].l.range[0].min = -get_s16(&fs->v2) * 100;
r                 543 drivers/staging/comedi/drivers/jr3_pci.c 			r[7].l.range[0].max = get_s16(&fs->v2) * 100;
r                 544 drivers/staging/comedi/drivers/jr3_pci.c 			r[8].l.range[0].min = 0;
r                 545 drivers/staging/comedi/drivers/jr3_pci.c 			r[8].l.range[0].max = 65535;
r                  58 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 			register_type r = RVij(rv, B(src), B(dest));
r                  61 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 			if (r == 0) {
r                  63 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 			} else if (MARKED_V(r)) {
r                  65 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 			} else if (MARKED_I(r)) {
r                  67 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 			} else if (MARKED_U(r)) {
r                  72 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 					rv->family, dest, src, r);
r                  77 drivers/staging/comedi/drivers/ni_routing/tools/convert_c_to_py.c 				src, M, UNMARK(r));
r                  88 drivers/staging/comedi/drivers/plx9080.h #define PLX_MARBR_TO_LT(r)	((r) & PLX_MARBR_LT_MASK)
r                  92 drivers/staging/comedi/drivers/plx9080.h #define PLX_MARBR_TO_PT(r)	(((r) & PLX_MARBR_PT_MASK) >> 8)
r                 173 drivers/staging/comedi/drivers/plx9080.h #define PLX_LBRD_TO_MSIWS(r)	(((r) & PLS_LBRD_MSIWS_MASK) >> 2)
r                 191 drivers/staging/comedi/drivers/plx9080.h #define PLX_LBRD_TO_PFCOUNT(r)	(((r) & PLX_LBRD_PFCOUNT_MASK) >> 11)
r                 201 drivers/staging/comedi/drivers/plx9080.h #define PLX_LBRD0_TO_EROMIWS(r)	(((r) & PLX_LBRD0_EROMIWS_MASK) >> 18)
r                 217 drivers/staging/comedi/drivers/plx9080.h #define PLX_LBRD0_TO_TRDELAY(r)	(((r) & PLX_LBRD0_TRDELAY_MASK) >> 28)
r                 276 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMCFGA_TO_REGNUM(r)	(((r) & PLX_DMCFGA_REGNUM_MASK) >> 2)
r                 280 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMCFGA_TO_FUNCNUM(r) (((r) & PLX_DMCFGA_FUNCNUM_MASK) >> 8)
r                 284 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMCFGA_TO_DEVNUM(r)	(((r) & PLX_DMCFGA_DEVNUM_MASK) >> 11)
r                 288 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMCFGA_TO_BUSNUM(r)	(((r) & PLX_DMCFGA_BUSNUM_MASK) >> 16)
r                 399 drivers/staging/comedi/drivers/plx9080.h #define PLX_CNTRL_TO_CCRDMA(r)	((r) & PLX_CNTRL_CCRDMA_MASK)
r                 404 drivers/staging/comedi/drivers/plx9080.h #define PLX_CNTRL_TO_CCWDMA(r)	(((r) & PLX_CNTRL_CCWDMA_MASK) >> 4)
r                 409 drivers/staging/comedi/drivers/plx9080.h #define PLX_CNTRL_TO_CCRDM(r)	(((r) & PLX_CNTRL_CCRDM_MASK) >> 8)
r                 414 drivers/staging/comedi/drivers/plx9080.h #define PLX_CNTRL_TO_CCWDM(r)	(((r) & PLX_CNTRL_CCWDM_MASK) >> 12)
r                 469 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMAMODE_TO_IWS(r)	(((r) & PLX_DMAMODE_IWS_MASK) >> 2)
r                 556 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C0PLAF(r)	((r) & PLX_DMATHR_C0PLAF_MASK)
r                 560 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C0LPAE(r)	(((r) & PLX_DMATHR_C0LPAE_MASK) >> 4)
r                 564 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C0LPAF(r)	(((r) & PLX_DMATHR_C0LPAF_MASK) >> 8)
r                 568 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C0PLAE(r)	(((r) & PLX_DMATHR_C0PLAE_MASK) >> 12)
r                 572 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C1PLAF(r)	(((r) & PLX_DMATHR_C1PLAF_MASK) >> 16)
r                 576 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C1LPAE(r)	(((r) & PLX_DMATHR_C1LPAE_MASK) >> 20)
r                 580 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C1LPAF(r)	(((r) & PLX_DMATHR_C1LPAF_MASK) >> 24)
r                 584 drivers/staging/comedi/drivers/plx9080.h #define PLX_DMATHR_TO_C1PLAE(r)	(((r) & PLX_DMATHR_C1PLAE_MASK) >> 28)
r                 421 drivers/staging/comedi/drivers/rtd520.c 	unsigned short r = 0;
r                 423 drivers/staging/comedi/drivers/rtd520.c 	r |= chan & 0xf;
r                 428 drivers/staging/comedi/drivers/rtd520.c 		r |= 0x000;
r                 429 drivers/staging/comedi/drivers/rtd520.c 		r |= (range & 0x7) << 4;
r                 432 drivers/staging/comedi/drivers/rtd520.c 		r |= 0x100;
r                 433 drivers/staging/comedi/drivers/rtd520.c 		r |= ((range - board->range_bip10) & 0x7) << 4;
r                 436 drivers/staging/comedi/drivers/rtd520.c 		r |= 0x200;
r                 437 drivers/staging/comedi/drivers/rtd520.c 		r |= ((range - board->range_uni10) & 0x7) << 4;
r                 445 drivers/staging/comedi/drivers/rtd520.c 		r |= 0x80;	/* ref external analog common */
r                 449 drivers/staging/comedi/drivers/rtd520.c 		r |= 0x400;	/* differential inputs */
r                 455 drivers/staging/comedi/drivers/rtd520.c 	return r;
r                 590 drivers/staging/comedi/drivers/usbdux.c 	u8 r = ((range % 2) == 0);
r                 592 drivers/staging/comedi/drivers/usbdux.c 	return (chan << 4) | ((p == 1) << 2) | ((r == 1) << 3);
r                3081 drivers/staging/emxx_udc/emxx_udc.c 	struct resource *r;
r                3091 drivers/staging/emxx_udc/emxx_udc.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                3092 drivers/staging/emxx_udc/emxx_udc.c 	mmio_base = devm_ioremap_resource(&pdev->dev, r);
r                2569 drivers/staging/exfat/exfat_core.c 	char **r;
r                2584 drivers/staging/exfat/exfat_core.c 			for (r = reserved_names; *r; r++) {
r                2585 drivers/staging/exfat/exfat_core.c 				if (!strncmp((void *)p_dosname->name, *r, 8))
r                 311 drivers/staging/fbtft/fb_agm1264k-fl.c 			u16 r = (pixel & (0x1f << (5 + 6))) >> (5 + 6);
r                 313 drivers/staging/fbtft/fb_agm1264k-fl.c 			pixel = (299 * r + 587 * g + 114 * b) / 200;
r                  67 drivers/staging/fbtft/fb_ssd1325.c 	u16 r = (pixel & (0x1f << (5 + 6))) >> (5 + 6);
r                  69 drivers/staging/fbtft/fb_ssd1325.c 	pixel = (299 * r + 587 * g + 114 * b) / 195;
r                  84 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r;
r                  86 drivers/staging/gdm724x/gdm_mux.c 	r = kzalloc(sizeof(*r), GFP_KERNEL);
r                  87 drivers/staging/gdm724x/gdm_mux.c 	if (!r)
r                  90 drivers/staging/gdm724x/gdm_mux.c 	r->urb = usb_alloc_urb(0, GFP_KERNEL);
r                  91 drivers/staging/gdm724x/gdm_mux.c 	r->buf = kmalloc(MUX_RX_MAX_SIZE, GFP_KERNEL);
r                  92 drivers/staging/gdm724x/gdm_mux.c 	if (!r->urb || !r->buf) {
r                  93 drivers/staging/gdm724x/gdm_mux.c 		usb_free_urb(r->urb);
r                  94 drivers/staging/gdm724x/gdm_mux.c 		kfree(r->buf);
r                  95 drivers/staging/gdm724x/gdm_mux.c 		kfree(r);
r                  99 drivers/staging/gdm724x/gdm_mux.c 	return r;
r                 102 drivers/staging/gdm724x/gdm_mux.c static void free_mux_rx(struct mux_rx *r)
r                 104 drivers/staging/gdm724x/gdm_mux.c 	if (r) {
r                 105 drivers/staging/gdm724x/gdm_mux.c 		usb_free_urb(r->urb);
r                 106 drivers/staging/gdm724x/gdm_mux.c 		kfree(r->buf);
r                 107 drivers/staging/gdm724x/gdm_mux.c 		kfree(r);
r                 113 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r;
r                 123 drivers/staging/gdm724x/gdm_mux.c 	r = list_entry(rx->rx_free_list.prev, struct mux_rx, free_list);
r                 124 drivers/staging/gdm724x/gdm_mux.c 	list_del(&r->free_list);
r                 128 drivers/staging/gdm724x/gdm_mux.c 	return r;
r                 131 drivers/staging/gdm724x/gdm_mux.c static void put_rx_struct(struct rx_cxt *rx, struct mux_rx *r)
r                 136 drivers/staging/gdm724x/gdm_mux.c 	list_add_tail(&r->free_list, &rx->rx_free_list);
r                 140 drivers/staging/gdm724x/gdm_mux.c static int up_to_host(struct mux_rx *r)
r                 142 drivers/staging/gdm724x/gdm_mux.c 	struct mux_dev *mux_dev = r->mux_dev;
r                 148 drivers/staging/gdm724x/gdm_mux.c 	u32 packet_size_sum = r->offset;
r                 151 drivers/staging/gdm724x/gdm_mux.c 	int len = r->len;
r                 154 drivers/staging/gdm724x/gdm_mux.c 		mux_header = (struct mux_pkt_header *)(r->buf +
r                 179 drivers/staging/gdm724x/gdm_mux.c 		ret = r->callback(mux_header->data,
r                 186 drivers/staging/gdm724x/gdm_mux.c 			r->offset += packet_size_sum;
r                 192 drivers/staging/gdm724x/gdm_mux.c 			ret = r->callback(NULL,
r                 209 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r;
r                 220 drivers/staging/gdm724x/gdm_mux.c 		r = list_entry(rx->to_host_list.next, struct mux_rx,
r                 222 drivers/staging/gdm724x/gdm_mux.c 		list_del(&r->to_host_list);
r                 225 drivers/staging/gdm724x/gdm_mux.c 		ret = up_to_host(r);
r                 229 drivers/staging/gdm724x/gdm_mux.c 			put_rx_struct(rx, r);
r                 233 drivers/staging/gdm724x/gdm_mux.c static void remove_rx_submit_list(struct mux_rx *r, struct rx_cxt *rx)
r                 241 drivers/staging/gdm724x/gdm_mux.c 		if (r == r_remove)
r                 242 drivers/staging/gdm724x/gdm_mux.c 			list_del(&r->rx_submit_list);
r                 249 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r = urb->context;
r                 250 drivers/staging/gdm724x/gdm_mux.c 	struct mux_dev *mux_dev = r->mux_dev;
r                 254 drivers/staging/gdm724x/gdm_mux.c 	remove_rx_submit_list(r, rx);
r                 260 drivers/staging/gdm724x/gdm_mux.c 		put_rx_struct(rx, r);
r                 262 drivers/staging/gdm724x/gdm_mux.c 		r->len = r->urb->actual_length;
r                 264 drivers/staging/gdm724x/gdm_mux.c 		list_add_tail(&r->to_host_list, &rx->to_host_list);
r                 276 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r;
r                 286 drivers/staging/gdm724x/gdm_mux.c 	r = get_rx_struct(rx);
r                 287 drivers/staging/gdm724x/gdm_mux.c 	if (!r) {
r                 292 drivers/staging/gdm724x/gdm_mux.c 	r->offset = 0;
r                 293 drivers/staging/gdm724x/gdm_mux.c 	r->mux_dev = (void *)mux_dev;
r                 294 drivers/staging/gdm724x/gdm_mux.c 	r->callback = cb;
r                 297 drivers/staging/gdm724x/gdm_mux.c 	usb_fill_bulk_urb(r->urb,
r                 300 drivers/staging/gdm724x/gdm_mux.c 			  r->buf,
r                 303 drivers/staging/gdm724x/gdm_mux.c 			  r);
r                 306 drivers/staging/gdm724x/gdm_mux.c 	list_add_tail(&r->rx_submit_list, &rx->rx_submit_list);
r                 309 drivers/staging/gdm724x/gdm_mux.c 	ret = usb_submit_urb(r->urb, GFP_KERNEL);
r                 313 drivers/staging/gdm724x/gdm_mux.c 		list_del(&r->rx_submit_list);
r                 316 drivers/staging/gdm724x/gdm_mux.c 		put_rx_struct(rx, r);
r                 432 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx		*r, *r_next;
r                 438 drivers/staging/gdm724x/gdm_mux.c 	list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
r                 441 drivers/staging/gdm724x/gdm_mux.c 		usb_kill_urb(r->urb);
r                 447 drivers/staging/gdm724x/gdm_mux.c 	list_for_each_entry_safe(r, r_next, &rx->rx_free_list, free_list) {
r                 448 drivers/staging/gdm724x/gdm_mux.c 		list_del(&r->free_list);
r                 449 drivers/staging/gdm724x/gdm_mux.c 		free_mux_rx(r);
r                 454 drivers/staging/gdm724x/gdm_mux.c 	list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list) {
r                 455 drivers/staging/gdm724x/gdm_mux.c 		if (r->mux_dev == (void *)mux_dev) {
r                 456 drivers/staging/gdm724x/gdm_mux.c 			list_del(&r->to_host_list);
r                 457 drivers/staging/gdm724x/gdm_mux.c 			free_mux_rx(r);
r                 465 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r;
r                 479 drivers/staging/gdm724x/gdm_mux.c 		r = alloc_mux_rx();
r                 480 drivers/staging/gdm724x/gdm_mux.c 		if (!r) {
r                 485 drivers/staging/gdm724x/gdm_mux.c 		list_add(&r->free_list, &rx->rx_free_list);
r                 586 drivers/staging/gdm724x/gdm_mux.c 	struct mux_rx *r, *r_next;
r                 603 drivers/staging/gdm724x/gdm_mux.c 	list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
r                 606 drivers/staging/gdm724x/gdm_mux.c 		usb_kill_urb(r->urb);
r                 170 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r = NULL;
r                 173 drivers/staging/gdm724x/gdm_usb.c 	r = kmalloc(sizeof(*r), GFP_KERNEL);
r                 174 drivers/staging/gdm724x/gdm_usb.c 	if (!r) {
r                 179 drivers/staging/gdm724x/gdm_usb.c 	r->urb = usb_alloc_urb(0, GFP_KERNEL);
r                 180 drivers/staging/gdm724x/gdm_usb.c 	r->buf = kmalloc(RX_BUF_SIZE, GFP_KERNEL);
r                 181 drivers/staging/gdm724x/gdm_usb.c 	if (!r->urb || !r->buf) {
r                 188 drivers/staging/gdm724x/gdm_usb.c 		if (r) {
r                 189 drivers/staging/gdm724x/gdm_usb.c 			usb_free_urb(r->urb);
r                 190 drivers/staging/gdm724x/gdm_usb.c 			kfree(r->buf);
r                 191 drivers/staging/gdm724x/gdm_usb.c 			kfree(r);
r                 196 drivers/staging/gdm724x/gdm_usb.c 	return r;
r                 199 drivers/staging/gdm724x/gdm_usb.c static void free_rx_struct(struct usb_rx *r)
r                 201 drivers/staging/gdm724x/gdm_usb.c 	if (r) {
r                 202 drivers/staging/gdm724x/gdm_usb.c 		usb_free_urb(r->urb);
r                 203 drivers/staging/gdm724x/gdm_usb.c 		kfree(r->buf);
r                 204 drivers/staging/gdm724x/gdm_usb.c 		kfree(r);
r                 210 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r;
r                 220 drivers/staging/gdm724x/gdm_usb.c 	r = list_entry(rx->free_list.next, struct usb_rx, free_list);
r                 221 drivers/staging/gdm724x/gdm_usb.c 	list_del(&r->free_list);
r                 229 drivers/staging/gdm724x/gdm_usb.c 	return r;
r                 232 drivers/staging/gdm724x/gdm_usb.c static void put_rx_struct(struct rx_cxt *rx, struct usb_rx *r)
r                 238 drivers/staging/gdm724x/gdm_usb.c 	list_add_tail(&r->free_list, &rx->free_list);
r                 249 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx	*r, *r_next;
r                 271 drivers/staging/gdm724x/gdm_usb.c 	list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
r                 274 drivers/staging/gdm724x/gdm_usb.c 		usb_kill_urb(r->urb);
r                 280 drivers/staging/gdm724x/gdm_usb.c 	list_for_each_entry_safe(r, r_next, &rx->free_list, free_list) {
r                 281 drivers/staging/gdm724x/gdm_usb.c 		list_del(&r->free_list);
r                 282 drivers/staging/gdm724x/gdm_usb.c 		free_rx_struct(r);
r                 287 drivers/staging/gdm724x/gdm_usb.c 	list_for_each_entry_safe(r, r_next, &rx->to_host_list, to_host_list) {
r                 288 drivers/staging/gdm724x/gdm_usb.c 		if (r->index == (void *)udev) {
r                 289 drivers/staging/gdm724x/gdm_usb.c 			list_del(&r->to_host_list);
r                 290 drivers/staging/gdm724x/gdm_usb.c 			free_rx_struct(r);
r                 303 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r = NULL;
r                 338 drivers/staging/gdm724x/gdm_usb.c 		r = alloc_rx_struct();
r                 339 drivers/staging/gdm724x/gdm_usb.c 		if (!r) {
r                 344 drivers/staging/gdm724x/gdm_usb.c 		list_add(&r->free_list, &rx->free_list);
r                 382 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r;
r                 395 drivers/staging/gdm724x/gdm_usb.c 		r = list_entry(rx->to_host_list.next,
r                 397 drivers/staging/gdm724x/gdm_usb.c 		list_del(&r->to_host_list);
r                 400 drivers/staging/gdm724x/gdm_usb.c 		phy_dev = r->cb_data;
r                 402 drivers/staging/gdm724x/gdm_usb.c 		hci = (struct hci_packet *)r->buf;
r                 407 drivers/staging/gdm724x/gdm_usb.c 			if (set_mac_address(hci->data, r->cb_data) == 0) {
r                 408 drivers/staging/gdm724x/gdm_usb.c 				r->callback(r->cb_data,
r                 409 drivers/staging/gdm724x/gdm_usb.c 					    r->buf,
r                 410 drivers/staging/gdm724x/gdm_usb.c 					    r->urb->actual_length,
r                 416 drivers/staging/gdm724x/gdm_usb.c 			if (r->callback) {
r                 417 drivers/staging/gdm724x/gdm_usb.c 				ret = r->callback(r->cb_data,
r                 418 drivers/staging/gdm724x/gdm_usb.c 						  r->buf,
r                 419 drivers/staging/gdm724x/gdm_usb.c 						  r->urb->actual_length,
r                 428 drivers/staging/gdm724x/gdm_usb.c 		put_rx_struct(rx, r);
r                 431 drivers/staging/gdm724x/gdm_usb.c 			     r->callback,
r                 432 drivers/staging/gdm724x/gdm_usb.c 			     r->cb_data,
r                 437 drivers/staging/gdm724x/gdm_usb.c static void remove_rx_submit_list(struct usb_rx *r, struct rx_cxt *rx)
r                 445 drivers/staging/gdm724x/gdm_usb.c 		if (r == r_remove) {
r                 446 drivers/staging/gdm724x/gdm_usb.c 			list_del(&r->rx_submit_list);
r                 455 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r = urb->context;
r                 456 drivers/staging/gdm724x/gdm_usb.c 	struct rx_cxt *rx = r->rx;
r                 458 drivers/staging/gdm724x/gdm_usb.c 	struct lte_udev *udev = container_of(r->rx, struct lte_udev, rx);
r                 461 drivers/staging/gdm724x/gdm_usb.c 	remove_rx_submit_list(r, rx);
r                 463 drivers/staging/gdm724x/gdm_usb.c 	if (!urb->status && r->callback) {
r                 465 drivers/staging/gdm724x/gdm_usb.c 		list_add_tail(&r->to_host_list, &rx->to_host_list);
r                 473 drivers/staging/gdm724x/gdm_usb.c 		put_rx_struct(rx, r);
r                 488 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r;
r                 498 drivers/staging/gdm724x/gdm_usb.c 	r = get_rx_struct(rx, &no_spc);
r                 499 drivers/staging/gdm724x/gdm_usb.c 	if (!r) {
r                 505 drivers/staging/gdm724x/gdm_usb.c 	r->callback = cb;
r                 506 drivers/staging/gdm724x/gdm_usb.c 	r->cb_data = cb_data;
r                 507 drivers/staging/gdm724x/gdm_usb.c 	r->index = (void *)udev;
r                 508 drivers/staging/gdm724x/gdm_usb.c 	r->rx = rx;
r                 510 drivers/staging/gdm724x/gdm_usb.c 	usb_fill_bulk_urb(r->urb,
r                 513 drivers/staging/gdm724x/gdm_usb.c 			  r->buf,
r                 516 drivers/staging/gdm724x/gdm_usb.c 			  r);
r                 519 drivers/staging/gdm724x/gdm_usb.c 	list_add_tail(&r->rx_submit_list, &rx->rx_submit_list);
r                 523 drivers/staging/gdm724x/gdm_usb.c 		ret = usb_submit_urb(r->urb, GFP_KERNEL);
r                 525 drivers/staging/gdm724x/gdm_usb.c 		ret = usb_submit_urb(r->urb, GFP_ATOMIC);
r                 529 drivers/staging/gdm724x/gdm_usb.c 		list_del(&r->rx_submit_list);
r                 532 drivers/staging/gdm724x/gdm_usb.c 		pr_err("usb_submit_urb failed (%p)\n", r);
r                 533 drivers/staging/gdm724x/gdm_usb.c 		put_rx_struct(rx, r);
r                 906 drivers/staging/gdm724x/gdm_usb.c 	struct usb_rx *r;
r                 921 drivers/staging/gdm724x/gdm_usb.c 	list_for_each_entry_safe(r, r_next, &rx->rx_submit_list,
r                 924 drivers/staging/gdm724x/gdm_usb.c 		usb_kill_urb(r->urb);
r                 284 drivers/staging/goldfish/goldfish_audio.c 	struct resource *r;
r                 295 drivers/staging/goldfish/goldfish_audio.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 296 drivers/staging/goldfish/goldfish_audio.c 	if (!r) {
r                 300 drivers/staging/goldfish/goldfish_audio.c 	data->reg_base = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE);
r                 515 drivers/staging/greybus/power_supply.c 	int i, r = 0;
r                 566 drivers/staging/greybus/power_supply.c 			r++;
r                 569 drivers/staging/greybus/power_supply.c 		gbpsy->props[i - r].prop = psp;
r                 570 drivers/staging/greybus/power_supply.c 		gbpsy->props[i - r].gb_prop = resp->props[i].property;
r                 571 drivers/staging/greybus/power_supply.c 		gbpsy->props_raw[i - r] = psp;
r                 573 drivers/staging/greybus/power_supply.c 			gbpsy->props[i - r].is_writeable = true;
r                  60 drivers/staging/greybus/sdio.c static void _gb_sdio_set_host_caps(struct gb_sdio_host *host, u32 r)
r                  65 drivers/staging/greybus/sdio.c 	caps = ((r & GB_SDIO_CAP_NONREMOVABLE) ? MMC_CAP_NONREMOVABLE : 0) |
r                  66 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_4_BIT_DATA) ? MMC_CAP_4_BIT_DATA : 0) |
r                  67 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_8_BIT_DATA) ? MMC_CAP_8_BIT_DATA : 0) |
r                  68 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_MMC_HS) ? MMC_CAP_MMC_HIGHSPEED : 0) |
r                  69 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_SD_HS) ? MMC_CAP_SD_HIGHSPEED : 0) |
r                  70 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_ERASE) ? MMC_CAP_ERASE : 0) |
r                  71 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_1_2V_DDR) ? MMC_CAP_1_2V_DDR : 0) |
r                  72 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_1_8V_DDR) ? MMC_CAP_1_8V_DDR : 0) |
r                  73 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_POWER_OFF_CARD) ? MMC_CAP_POWER_OFF_CARD : 0) |
r                  74 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_UHS_SDR12) ? MMC_CAP_UHS_SDR12 : 0) |
r                  75 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_UHS_SDR25) ? MMC_CAP_UHS_SDR25 : 0) |
r                  76 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_UHS_SDR50) ? MMC_CAP_UHS_SDR50 : 0) |
r                  77 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_UHS_SDR104) ? MMC_CAP_UHS_SDR104 : 0) |
r                  78 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_UHS_DDR50) ? MMC_CAP_UHS_DDR50 : 0) |
r                  79 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_DRIVER_TYPE_A) ? MMC_CAP_DRIVER_TYPE_A : 0) |
r                  80 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_DRIVER_TYPE_C) ? MMC_CAP_DRIVER_TYPE_C : 0) |
r                  81 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_DRIVER_TYPE_D) ? MMC_CAP_DRIVER_TYPE_D : 0);
r                  83 drivers/staging/greybus/sdio.c 	caps2 = ((r & GB_SDIO_CAP_HS200_1_2V) ? MMC_CAP2_HS200_1_2V_SDR : 0) |
r                  84 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_HS400_1_2V) ? MMC_CAP2_HS400_1_2V : 0) |
r                  85 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_HS400_1_8V) ? MMC_CAP2_HS400_1_8V : 0) |
r                  86 drivers/staging/greybus/sdio.c 		((r & GB_SDIO_CAP_HS200_1_8V) ? MMC_CAP2_HS200_1_8V_SDR : 0);
r                 124 drivers/staging/greybus/sdio.c 	u32 r;
r                 131 drivers/staging/greybus/sdio.c 	r = le32_to_cpu(response.caps);
r                 133 drivers/staging/greybus/sdio.c 	_gb_sdio_set_host_caps(host, r);
r                 326 drivers/staging/greybus/tools/loopback_test.c 	struct loopback_results *r;
r                 334 drivers/staging/greybus/tools/loopback_test.c 		r = &d->results;
r                 336 drivers/staging/greybus/tools/loopback_test.c 		r->error = read_sysfs_int(d->sysfs_entry, "error");
r                 337 drivers/staging/greybus/tools/loopback_test.c 		r->request_min = read_sysfs_int(d->sysfs_entry, "requests_per_second_min");
r                 338 drivers/staging/greybus/tools/loopback_test.c 		r->request_max = read_sysfs_int(d->sysfs_entry, "requests_per_second_max");
r                 339 drivers/staging/greybus/tools/loopback_test.c 		r->request_avg = read_sysfs_float(d->sysfs_entry, "requests_per_second_avg");
r                 341 drivers/staging/greybus/tools/loopback_test.c 		r->latency_min = read_sysfs_int(d->sysfs_entry, "latency_min");
r                 342 drivers/staging/greybus/tools/loopback_test.c 		r->latency_max = read_sysfs_int(d->sysfs_entry, "latency_max");
r                 343 drivers/staging/greybus/tools/loopback_test.c 		r->latency_avg = read_sysfs_float(d->sysfs_entry, "latency_avg");
r                 345 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_min = read_sysfs_int(d->sysfs_entry, "throughput_min");
r                 346 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_max = read_sysfs_int(d->sysfs_entry, "throughput_max");
r                 347 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_avg = read_sysfs_float(d->sysfs_entry, "throughput_avg");
r                 349 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_min =
r                 351 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_max =
r                 353 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_avg =
r                 356 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_min =
r                 358 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_max =
r                 360 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_avg =
r                 363 drivers/staging/greybus/tools/loopback_test.c 		r->request_jitter = r->request_max - r->request_min;
r                 364 drivers/staging/greybus/tools/loopback_test.c 		r->latency_jitter = r->latency_max - r->latency_min;
r                 365 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_jitter = r->throughput_max - r->throughput_min;
r                 366 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_jitter =
r                 367 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_max - r->apbridge_unipro_latency_min;
r                 368 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_jitter =
r                 369 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_max - r->gbphy_firmware_latency_min;
r                 375 drivers/staging/greybus/tools/loopback_test.c 		r = &t->aggregate_results;
r                 377 drivers/staging/greybus/tools/loopback_test.c 		r->request_min = get_request_min_aggregate(t);
r                 378 drivers/staging/greybus/tools/loopback_test.c 		r->request_max = get_request_max_aggregate(t);
r                 379 drivers/staging/greybus/tools/loopback_test.c 		r->request_avg = get_request_avg_aggregate(t);
r                 381 drivers/staging/greybus/tools/loopback_test.c 		r->latency_min = get_latency_min_aggregate(t);
r                 382 drivers/staging/greybus/tools/loopback_test.c 		r->latency_max = get_latency_max_aggregate(t);
r                 383 drivers/staging/greybus/tools/loopback_test.c 		r->latency_avg = get_latency_avg_aggregate(t);
r                 385 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_min = get_throughput_min_aggregate(t);
r                 386 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_max = get_throughput_max_aggregate(t);
r                 387 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_avg = get_throughput_avg_aggregate(t);
r                 389 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_min =
r                 391 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_max =
r                 393 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_avg =
r                 396 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_min =
r                 398 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_max =
r                 400 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_avg =
r                 403 drivers/staging/greybus/tools/loopback_test.c 		r->request_jitter = r->request_max - r->request_min;
r                 404 drivers/staging/greybus/tools/loopback_test.c 		r->latency_jitter = r->latency_max - r->latency_min;
r                 405 drivers/staging/greybus/tools/loopback_test.c 		r->throughput_jitter = r->throughput_max - r->throughput_min;
r                 406 drivers/staging/greybus/tools/loopback_test.c 		r->apbridge_unipro_latency_jitter =
r                 407 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_max - r->apbridge_unipro_latency_min;
r                 408 drivers/staging/greybus/tools/loopback_test.c 		r->gbphy_firmware_latency_jitter =
r                 409 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_max - r->gbphy_firmware_latency_min;
r                 417 drivers/staging/greybus/tools/loopback_test.c 		  struct loopback_results *r,
r                 436 drivers/staging/greybus/tools/loopback_test.c 			r->error,
r                 441 drivers/staging/greybus/tools/loopback_test.c 			r->request_min,
r                 442 drivers/staging/greybus/tools/loopback_test.c 			r->request_max,
r                 443 drivers/staging/greybus/tools/loopback_test.c 			r->request_avg,
r                 444 drivers/staging/greybus/tools/loopback_test.c 			r->request_jitter);
r                 448 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_min,
r                 449 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_max,
r                 450 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_avg,
r                 451 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_jitter);
r                 454 drivers/staging/greybus/tools/loopback_test.c 			r->latency_min,
r                 455 drivers/staging/greybus/tools/loopback_test.c 			r->latency_max,
r                 456 drivers/staging/greybus/tools/loopback_test.c 			r->latency_avg,
r                 457 drivers/staging/greybus/tools/loopback_test.c 			r->latency_jitter);
r                 460 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_min,
r                 461 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_max,
r                 462 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_avg,
r                 463 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_jitter);
r                 467 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_min,
r                 468 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_max,
r                 469 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_avg,
r                 470 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_jitter);
r                 475 drivers/staging/greybus/tools/loopback_test.c 			r->error);
r                 478 drivers/staging/greybus/tools/loopback_test.c 			r->request_min,
r                 479 drivers/staging/greybus/tools/loopback_test.c 			r->request_max,
r                 480 drivers/staging/greybus/tools/loopback_test.c 			r->request_avg,
r                 481 drivers/staging/greybus/tools/loopback_test.c 			r->request_jitter);
r                 484 drivers/staging/greybus/tools/loopback_test.c 			r->latency_min,
r                 485 drivers/staging/greybus/tools/loopback_test.c 			r->latency_max,
r                 486 drivers/staging/greybus/tools/loopback_test.c 			r->latency_avg,
r                 487 drivers/staging/greybus/tools/loopback_test.c 			r->latency_jitter);
r                 490 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_min,
r                 491 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_max,
r                 492 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_avg,
r                 493 drivers/staging/greybus/tools/loopback_test.c 			r->throughput_jitter);
r                 496 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_min,
r                 497 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_max,
r                 498 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_avg,
r                 499 drivers/staging/greybus/tools/loopback_test.c 			r->apbridge_unipro_latency_jitter);
r                 502 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_min,
r                 503 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_max,
r                 504 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_avg,
r                 505 drivers/staging/greybus/tools/loopback_test.c 			r->gbphy_firmware_latency_jitter);
r                  94 drivers/staging/gs_fpgaboot/gs_fpgaboot.c 	int r;
r                  97 drivers/staging/gs_fpgaboot/gs_fpgaboot.c 	r = memcmp(buf, bits_magic, 13);
r                  98 drivers/staging/gs_fpgaboot/gs_fpgaboot.c 	if (r) {
r                  58 drivers/staging/gs_fpgaboot/io.h 	void __iomem *r[4];
r                  88 drivers/staging/isdn/gigaset/common.c 	int r;
r                  90 drivers/staging/isdn/gigaset/common.c 	r = cs->ops->set_modem_ctrl(cs, cs->control_state, flags);
r                  92 drivers/staging/isdn/gigaset/common.c 	if (r < 0)
r                  93 drivers/staging/isdn/gigaset/common.c 		return r;
r                 105 drivers/staging/isdn/gigaset/common.c 	int i, r;
r                 109 drivers/staging/isdn/gigaset/common.c 	r = setflags(cs, TIOCM_DTR, 200);
r                 110 drivers/staging/isdn/gigaset/common.c 	if (r < 0)
r                 112 drivers/staging/isdn/gigaset/common.c 	r = setflags(cs, 0, 200);
r                 113 drivers/staging/isdn/gigaset/common.c 	if (r < 0)
r                 116 drivers/staging/isdn/gigaset/common.c 		r = setflags(cs, TIOCM_RTS, 100);
r                 117 drivers/staging/isdn/gigaset/common.c 		if (r < 0)
r                 119 drivers/staging/isdn/gigaset/common.c 		r = setflags(cs, 0, 100);
r                 120 drivers/staging/isdn/gigaset/common.c 		if (r < 0)
r                 123 drivers/staging/isdn/gigaset/common.c 	r = setflags(cs, TIOCM_RTS | TIOCM_DTR, 800);
r                 124 drivers/staging/isdn/gigaset/common.c 	if (r < 0)
r                 130 drivers/staging/isdn/gigaset/common.c 	dev_err(cs->dev, "error %d on setuartbits\n", -r);
r                 156 drivers/staging/isdn/gigaset/usb-gigaset.c 	int r;
r                 162 drivers/staging/isdn/gigaset/usb-gigaset.c 	r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 7, 0x41,
r                 165 drivers/staging/isdn/gigaset/usb-gigaset.c 	if (r < 0)
r                 166 drivers/staging/isdn/gigaset/usb-gigaset.c 		return r;
r                 178 drivers/staging/isdn/gigaset/usb-gigaset.c 	int r, r2;
r                 182 drivers/staging/isdn/gigaset/usb-gigaset.c 	r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x12, 0x41,
r                 185 drivers/staging/isdn/gigaset/usb-gigaset.c 	if (r < 0) {
r                 186 drivers/staging/isdn/gigaset/usb-gigaset.c 		dev_err(&udev->dev, "error %d on request 0x12\n", -r);
r                 187 drivers/staging/isdn/gigaset/usb-gigaset.c 		return r;
r                 190 drivers/staging/isdn/gigaset/usb-gigaset.c 	r = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), req, 0x41,
r                 192 drivers/staging/isdn/gigaset/usb-gigaset.c 	if (r < 0)
r                 194 drivers/staging/isdn/gigaset/usb-gigaset.c 			-r, (unsigned)req);
r                 201 drivers/staging/isdn/gigaset/usb-gigaset.c 	return r < 0 ? r : (r2 < 0 ? r2 : 0);
r                 347 drivers/staging/isdn/gigaset/usb-gigaset.c 	int r;
r                 385 drivers/staging/isdn/gigaset/usb-gigaset.c 	r = usb_submit_urb(urb, GFP_ATOMIC);
r                 387 drivers/staging/isdn/gigaset/usb-gigaset.c 	if (r)
r                 388 drivers/staging/isdn/gigaset/usb-gigaset.c 		dev_err(cs->dev, "error %d resubmitting URB\n", -r);
r                 427 drivers/staging/kpc2000/kpc2000_spi.c 	struct resource *r;
r                 461 drivers/staging/kpc2000/kpc2000_spi.c 	r = platform_get_resource(pldev, IORESOURCE_MEM, 0);
r                 462 drivers/staging/kpc2000/kpc2000_spi.c 	if (!r) {
r                 469 drivers/staging/kpc2000/kpc2000_spi.c 	kpspi->base = devm_ioremap_nocache(&pldev->dev, r->start,
r                 470 drivers/staging/kpc2000/kpc2000_spi.c 					   resource_size(r));
r                  97 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	struct resource *r = NULL;
r                 119 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	r = platform_get_resource(pldev, IORESOURCE_MEM, 0);
r                 120 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	if (!r) {
r                 125 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	ldev->eng_regs = ioremap_nocache(r->start, resource_size(r));
r                 132 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	r = platform_get_resource(pldev, IORESOURCE_IRQ, 0);
r                 133 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	if (!r) {
r                 138 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c 	ldev->irq = r->start;
r                 341 drivers/staging/media/imx/imx-media-capture.c 		s->r = priv->vdev.compose;
r                 349 drivers/staging/media/imx/imx-media-capture.c 		s->r.left = 0;
r                 350 drivers/staging/media/imx/imx-media-capture.c 		s->r.top = 0;
r                 351 drivers/staging/media/imx/imx-media-capture.c 		s->r.width = priv->vdev.fmt.fmt.pix.width;
r                 352 drivers/staging/media/imx/imx-media-capture.c 		s->r.height = priv->vdev.fmt.fmt.pix.height;
r                 320 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r = q_data->rect;
r                 322 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.left = 0;
r                 323 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.top = 0;
r                 324 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.width = q_data->cur_fmt.width;
r                 325 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.height = q_data->cur_fmt.height;
r                 361 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.width = round_up(s->r.width, 8);
r                 363 drivers/staging/media/imx/imx-media-csc-scaler.c 		s->r.width = round_down(s->r.width, 8);
r                 364 drivers/staging/media/imx/imx-media-csc-scaler.c 	s->r.width = clamp_t(unsigned int, s->r.width, 8,
r                 366 drivers/staging/media/imx/imx-media-csc-scaler.c 	s->r.height = clamp_t(unsigned int, s->r.height, 1,
r                 368 drivers/staging/media/imx/imx-media-csc-scaler.c 	s->r.left = clamp_t(unsigned int, s->r.left, 0,
r                 369 drivers/staging/media/imx/imx-media-csc-scaler.c 			    q_data->cur_fmt.width - s->r.width);
r                 370 drivers/staging/media/imx/imx-media-csc-scaler.c 	s->r.top = clamp_t(unsigned int, s->r.top, 0,
r                 371 drivers/staging/media/imx/imx-media-csc-scaler.c 			   q_data->cur_fmt.height - s->r.height);
r                 374 drivers/staging/media/imx/imx-media-csc-scaler.c 	q_data->rect = s->r;
r                1587 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
r                1588 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
r                1589 drivers/staging/media/imx/imx-media-csi.c 		sel->r.width = infmt->width;
r                1590 drivers/staging/media/imx/imx-media-csi.c 		sel->r.height = infmt->height;
r                1592 drivers/staging/media/imx/imx-media-csi.c 			sel->r.height *= 2;
r                1595 drivers/staging/media/imx/imx-media-csi.c 		sel->r = *crop;
r                1598 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
r                1599 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
r                1600 drivers/staging/media/imx/imx-media-csi.c 		sel->r.width = crop->width;
r                1601 drivers/staging/media/imx/imx-media-csi.c 		sel->r.height = crop->height;
r                1604 drivers/staging/media/imx/imx-media-csi.c 		sel->r = *compose;
r                1669 drivers/staging/media/imx/imx-media-csi.c 			sel->r = priv->crop;
r                1671 drivers/staging/media/imx/imx-media-csi.c 				*crop = sel->r;
r                1675 drivers/staging/media/imx/imx-media-csi.c 		csi_try_crop(priv, &sel->r, cfg, infmt, &upstream_ep);
r                1677 drivers/staging/media/imx/imx-media-csi.c 		*crop = sel->r;
r                1690 drivers/staging/media/imx/imx-media-csi.c 			sel->r = priv->compose;
r                1692 drivers/staging/media/imx/imx-media-csi.c 				*compose = sel->r;
r                1696 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
r                1697 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
r                1698 drivers/staging/media/imx/imx-media-csi.c 		ret = csi_set_scale(&sel->r.width, crop->width, sel->flags);
r                1701 drivers/staging/media/imx/imx-media-csi.c 		ret = csi_set_scale(&sel->r.height, crop->height, sel->flags);
r                1705 drivers/staging/media/imx/imx-media-csi.c 		*compose = sel->r;
r                 600 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u16 r;
r                 619 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u8 r;
r                 666 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u8 r;
r                1179 drivers/staging/media/ipu3/include/intel-ipu3.h 			__u16 r;
r                2276 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u16 r;
r                2647 drivers/staging/media/ipu3/include/intel-ipu3.h 	__u16 r;
r                1380 drivers/staging/media/ipu3/ipu3-abi.h 	struct imgu_abi_frame_sp_plane r;
r                1397 drivers/staging/media/ipu3/ipu3-abi.h 	struct imgu_abi_frame_sp_plane r;
r                 118 drivers/staging/media/ipu3/ipu3-css-fw.c 	int r;
r                 120 drivers/staging/media/ipu3/ipu3-css-fw.c 	r = request_firmware(&css->fw, IMGU_FW_NAME, css->dev);
r                 121 drivers/staging/media/ipu3/ipu3-css-fw.c 	if (r)
r                 122 drivers/staging/media/ipu3/ipu3-css-fw.c 		return r;
r                 238 drivers/staging/media/ipu3/ipu3-css-fw.c 		r = -ENOMEM;
r                 248 drivers/staging/media/ipu3/ipu3-css-fw.c 			r = -ENOMEM;
r                 258 drivers/staging/media/ipu3/ipu3-css-fw.c 	r = -ENODEV;
r                 262 drivers/staging/media/ipu3/ipu3-css-fw.c 	return r;
r                1185 drivers/staging/media/ipu3/ipu3-css.c 		int r;
r                1191 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_queue_data(css, queue, 0,
r                1193 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1194 drivers/staging/media/ipu3/ipu3-css.c 			return r;
r                1332 drivers/staging/media/ipu3/ipu3-css.c 	int r, pipe;
r                1338 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_binary_setup(css, pipe);
r                1339 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1340 drivers/staging/media/ipu3/ipu3-css.c 			return r;
r                1343 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_hw_init(css);
r                1344 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                1345 drivers/staging/media/ipu3/ipu3-css.c 		return r;
r                1347 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_hw_start(css);
r                1348 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                1352 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_pipeline_init(css, pipe);
r                1353 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1363 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_set_parameters(css, pipe, NULL);
r                1364 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1368 drivers/staging/media/ipu3/ipu3-css.c 	while (!(r = imgu_css_dequeue_data(css, IMGU_ABI_QUEUE_A_ID, &data)))
r                1370 drivers/staging/media/ipu3/ipu3-css.c 	if (r != -EBUSY)
r                1373 drivers/staging/media/ipu3/ipu3-css.c 	while (!(r = imgu_css_dequeue_data(css, IMGU_ABI_QUEUE_B_ID, &data)))
r                1375 drivers/staging/media/ipu3/ipu3-css.c 	if (r != -EBUSY)
r                1379 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe,
r                1382 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1396 drivers/staging/media/ipu3/ipu3-css.c 	return r;
r                1402 drivers/staging/media/ipu3/ipu3-css.c 	int q, r, pipe;
r                1405 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe,
r                1407 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                1551 drivers/staging/media/ipu3/ipu3-css.c 	int r, q, pipe;
r                1566 drivers/staging/media/ipu3/ipu3-css.c 			r = imgu_css_queue_init(&css_pipe->queue[q], NULL, 0);
r                1567 drivers/staging/media/ipu3/ipu3-css.c 			if (r)
r                1568 drivers/staging/media/ipu3/ipu3-css.c 				return r;
r                1570 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_map_init(css, pipe);
r                1571 drivers/staging/media/ipu3/ipu3-css.c 		if (r) {
r                1573 drivers/staging/media/ipu3/ipu3-css.c 			return r;
r                1580 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_fw_init(css);
r                1581 drivers/staging/media/ipu3/ipu3-css.c 	if (r)
r                1582 drivers/staging/media/ipu3/ipu3-css.c 		return r;
r                1742 drivers/staging/media/ipu3/ipu3-css.c 	struct v4l2_rect r[IPU3_CSS_RECTS] = { };
r                1743 drivers/staging/media/ipu3/ipu3-css.c 	struct v4l2_rect *const eff = &r[IPU3_CSS_RECT_EFFECTIVE];
r                1744 drivers/staging/media/ipu3/ipu3-css.c 	struct v4l2_rect *const bds = &r[IPU3_CSS_RECT_BDS];
r                1745 drivers/staging/media/ipu3/ipu3-css.c 	struct v4l2_rect *const env = &r[IPU3_CSS_RECT_ENVELOPE];
r                1746 drivers/staging/media/ipu3/ipu3-css.c 	struct v4l2_rect *const gdc = &r[IPU3_CSS_RECT_GDC];
r                1780 drivers/staging/media/ipu3/ipu3-css.c 			r[i].width  = rects[i]->width;
r                1781 drivers/staging/media/ipu3/ipu3-css.c 			r[i].height = rects[i]->height;
r                1787 drivers/staging/media/ipu3/ipu3-css.c 		r[i].left = 0;
r                1788 drivers/staging/media/ipu3/ipu3-css.c 		r[i].top  = 0;
r                1834 drivers/staging/media/ipu3/ipu3-css.c 	ret = imgu_css_find_binary(css, pipe, q, r);
r                1861 drivers/staging/media/ipu3/ipu3-css.c 			*rects[i] = r[i];
r                1882 drivers/staging/media/ipu3/ipu3-css.c 	int i, r;
r                1892 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_fmt_try(css, fmts, all_rects, pipe);
r                1893 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                1894 drivers/staging/media/ipu3/ipu3-css.c 		return r;
r                1937 drivers/staging/media/ipu3/ipu3-css.c 	int r;
r                1976 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_queue_data(css, imgu_css_queues[b->queue].qid,
r                1978 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                1983 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe, data);
r                1984 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                1993 drivers/staging/media/ipu3/ipu3-css.c 	b->state = (r == -EBUSY || r == -EAGAIN) ?
r                1997 drivers/staging/media/ipu3/ipu3-css.c 	return r;
r                2015 drivers/staging/media/ipu3/ipu3-css.c 	int evtype, pipe, pipeid, queue, qid, r;
r                2021 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_dequeue_data(css, IMGU_ABI_QUEUE_EVENT_ID, &event);
r                2022 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                2023 drivers/staging/media/ipu3/ipu3-css.c 		return ERR_PTR(r);
r                2054 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_dequeue_data(css, qid, &daddr);
r                2055 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0) {
r                2061 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe,
r                2063 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0) {
r                2103 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_dequeue_data(css, IMGU_ABI_QUEUE_EVENT_ID, &event);
r                2104 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                2105 drivers/staging/media/ipu3/ipu3-css.c 			return ERR_PTR(r);
r                2162 drivers/staging/media/ipu3/ipu3-css.c 	int r = -EBUSY;
r                2211 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_cfg_acc(css, pipe, use, acc, map->vaddr,
r                2213 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                2221 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_cfg_vmem0(css, pipe, use, vmem0,
r                2223 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                2230 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_cfg_dmem0(css, pipe, use, dmem0,
r                2232 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0)
r                2295 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_queue_data(css, queue_id, pipe, map->daddr);
r                2296 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                2299 drivers/staging/media/ipu3/ipu3-css.c 	r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe,
r                2302 drivers/staging/media/ipu3/ipu3-css.c 	if (r < 0)
r                2310 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_dequeue_data(css, queue_id, &daddr);
r                2311 drivers/staging/media/ipu3/ipu3-css.c 		if (r == -EBUSY)
r                2313 drivers/staging/media/ipu3/ipu3-css.c 		if (r)
r                2315 drivers/staging/media/ipu3/ipu3-css.c 		r = imgu_css_queue_data(css, IMGU_ABI_QUEUE_EVENT_ID, pipe,
r                2318 drivers/staging/media/ipu3/ipu3-css.c 		if (r < 0) {
r                2350 drivers/staging/media/ipu3/ipu3-css.c 	return r;
r                  57 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r = 0;
r                 110 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = imgu_css_fmt_set(&imgu->css, fmts, rects, pipe);
r                 111 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                 113 drivers/staging/media/ipu3/ipu3-v4l2.c 			pipe, r);
r                 114 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                 196 drivers/staging/media/ipu3/ipu3-v4l2.c 	struct v4l2_rect *try_sel, *r;
r                 207 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = &imgu_sd->rect.eff;
r                 211 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = &imgu_sd->rect.bds;
r                 218 drivers/staging/media/ipu3/ipu3-v4l2.c 		sel->r = *try_sel;
r                 220 drivers/staging/media/ipu3/ipu3-v4l2.c 		sel->r = *r;
r                 238 drivers/staging/media/ipu3/ipu3-v4l2.c 		 sel->r.width, sel->r.height);
r                 257 drivers/staging/media/ipu3/ipu3-v4l2.c 		*try_sel = sel->r;
r                 259 drivers/staging/media/ipu3/ipu3-v4l2.c 		*rect = sel->r;
r                 465 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                 472 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = -EBUSY;
r                 478 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = -EINVAL;
r                 484 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = media_pipeline_start(&node->vdev.entity, &imgu_pipe->pipeline);
r                 485 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r < 0)
r                 493 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = v4l2_subdev_call(&imgu->imgu_pipe[pipe].imgu_sd.subdev,
r                 495 drivers/staging/media/ipu3/ipu3-v4l2.c 		if (r < 0)
r                 501 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = imgu_s_stream(imgu, true);
r                 502 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (!r)
r                 512 drivers/staging/media/ipu3/ipu3-v4l2.c 	return r;
r                 522 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                 530 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = v4l2_subdev_call(&imgu_pipe->imgu_sd.subdev, video, s_stream, 0);
r                 531 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r)
r                 539 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = imgu_s_stream(imgu, false);
r                 540 drivers/staging/media/ipu3/ipu3-v4l2.c 		if (!r)
r                 778 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                 783 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = imgu_try_fmt(file, fh, f);
r                 784 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r)
r                 785 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                 796 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                 801 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = imgu_try_fmt(file, fh, f);
r                 802 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r)
r                 803 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1096 drivers/staging/media/ipu3/ipu3-v4l2.c 	int i, r;
r                1101 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = media_entity_pads_init(&imgu_sd->subdev.entity, IMGU_NODE_NUM,
r                1103 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1105 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed initialize subdev media entity (%d)\n", r);
r                1106 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1128 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = hdl->error;
r                1130 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed to create subdev v4l2 ctrl with err %d", r);
r                1133 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = v4l2_device_register_subdev(&imgu->v4l2_dev, &imgu_sd->subdev);
r                1134 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1136 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed initialize subdev (%d)\n", r);
r                1147 drivers/staging/media/ipu3/ipu3-v4l2.c 	return r;
r                1153 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                1207 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = media_entity_pads_init(&vdev->entity, 1, &node->vdev_pad);
r                1208 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1209 drivers/staging/media/ipu3/ipu3-v4l2.c 		dev_err(dev, "failed initialize media entity (%d)\n", r);
r                1211 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1231 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = vb2_queue_init(vbq);
r                1232 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1233 drivers/staging/media/ipu3/ipu3-v4l2.c 		dev_err(dev, "failed to initialize video queue (%d)", r);
r                1235 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1248 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = video_register_device(vdev, VFL_TYPE_GRABBER, -1);
r                1249 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1250 drivers/staging/media/ipu3/ipu3-v4l2.c 		dev_err(dev, "failed to register video device (%d)", r);
r                1252 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1260 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = media_create_pad_link(&vdev->entity, 0, &sd->entity,
r                1263 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = media_create_pad_link(&sd->entity, node_num, &vdev->entity,
r                1266 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1267 drivers/staging/media/ipu3/ipu3-v4l2.c 		dev_err(dev, "failed to create pad link (%d)", r);
r                1269 drivers/staging/media/ipu3/ipu3-v4l2.c 		return r;
r                1290 drivers/staging/media/ipu3/ipu3-v4l2.c 	int i, r;
r                1293 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = imgu_v4l2_node_setup(imgu, pipe, i);
r                1294 drivers/staging/media/ipu3/ipu3-v4l2.c 		if (r)
r                1302 drivers/staging/media/ipu3/ipu3-v4l2.c 	return r;
r                1327 drivers/staging/media/ipu3/ipu3-v4l2.c 	int i, r;
r                1331 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = imgu_v4l2_subdev_register(imgu, &imgu_pipe->imgu_sd, i);
r                1332 drivers/staging/media/ipu3/ipu3-v4l2.c 		if (r) {
r                1334 drivers/staging/media/ipu3/ipu3-v4l2.c 				"failed to register subdev%u ret (%d)\n", i, r);
r                1337 drivers/staging/media/ipu3/ipu3-v4l2.c 		r = imgu_v4l2_nodes_setup_pipe(imgu, i);
r                1338 drivers/staging/media/ipu3/ipu3-v4l2.c 		if (r) {
r                1348 drivers/staging/media/ipu3/ipu3-v4l2.c 	return r;
r                1353 drivers/staging/media/ipu3/ipu3-v4l2.c 	int r;
r                1364 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = v4l2_device_register(&imgu->pci_dev->dev, &imgu->v4l2_dev);
r                1365 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1367 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed to register V4L2 device (%d)\n", r);
r                1371 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = imgu_v4l2_register_pipes(imgu);
r                1372 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1374 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed to register pipes (%d)\n", r);
r                1378 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = v4l2_device_register_subdev_nodes(&imgu->v4l2_dev);
r                1379 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1381 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed to register subdevs (%d)\n", r);
r                1385 drivers/staging/media/ipu3/ipu3-v4l2.c 	r = media_device_register(&imgu->media_dev);
r                1386 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (r) {
r                1388 drivers/staging/media/ipu3/ipu3-v4l2.c 			"failed to register media device (%d)\n", r);
r                1401 drivers/staging/media/ipu3/ipu3-v4l2.c 	return r;
r                 230 drivers/staging/media/ipu3/ipu3.c 	int r = 0;
r                 265 drivers/staging/media/ipu3/ipu3.c 			r = imgu_css_set_parameters(&imgu->css, pipe,
r                 267 drivers/staging/media/ipu3/ipu3.c 			if (r) {
r                 287 drivers/staging/media/ipu3/ipu3.c 			r = imgu_css_buf_queue(&imgu->css, pipe, buf);
r                 288 drivers/staging/media/ipu3/ipu3.c 			if (r)
r                 304 drivers/staging/media/ipu3/ipu3.c 	if (r && r != -EBUSY)
r                 316 drivers/staging/media/ipu3/ipu3.c 		node, r);
r                 320 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 342 drivers/staging/media/ipu3/ipu3.c 	return r;
r                 347 drivers/staging/media/ipu3/ipu3.c 	int r;
r                 349 drivers/staging/media/ipu3/ipu3.c 	r = imgu_css_set_powerup(&imgu->pci_dev->dev, imgu->base);
r                 350 drivers/staging/media/ipu3/ipu3.c 	if (r)
r                 351 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 366 drivers/staging/media/ipu3/ipu3.c 	int r, pipe;
r                 383 drivers/staging/media/ipu3/ipu3.c 	r = pm_runtime_get_sync(dev);
r                 384 drivers/staging/media/ipu3/ipu3.c 	if (r < 0) {
r                 387 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 390 drivers/staging/media/ipu3/ipu3.c 	r = imgu_powerup(imgu);
r                 391 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 394 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 398 drivers/staging/media/ipu3/ipu3.c 	r = imgu_css_start_streaming(&imgu->css);
r                 399 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 400 drivers/staging/media/ipu3/ipu3.c 		dev_err(dev, "failed to start css streaming (%d)", r);
r                 406 drivers/staging/media/ipu3/ipu3.c 		r = imgu_dummybufs_init(imgu, pipe);
r                 407 drivers/staging/media/ipu3/ipu3.c 		if (r) {
r                 408 drivers/staging/media/ipu3/ipu3.c 			dev_err(dev, "failed to initialize dummy buffers (%d)", r);
r                 413 drivers/staging/media/ipu3/ipu3.c 		r = imgu_queue_buffers(imgu, true, pipe);
r                 414 drivers/staging/media/ipu3/ipu3.c 		if (r) {
r                 415 drivers/staging/media/ipu3/ipu3.c 			dev_err(dev, "failed to queue initial buffers (%d)", r);
r                 429 drivers/staging/media/ipu3/ipu3.c 	return r;
r                 438 drivers/staging/media/ipu3/ipu3.c 	int r;
r                 457 drivers/staging/media/ipu3/ipu3.c 	r = imgu_v4l2_register(imgu);
r                 458 drivers/staging/media/ipu3/ipu3.c 	if (r)
r                 459 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 470 drivers/staging/media/ipu3/ipu3.c 		r = imgu_dummybufs_preallocate(imgu, j);
r                 471 drivers/staging/media/ipu3/ipu3.c 		if (r) {
r                 473 drivers/staging/media/ipu3/ipu3.c 				"failed to pre-allocate dummy buffers (%d)", r);
r                 486 drivers/staging/media/ipu3/ipu3.c 	return r;
r                 593 drivers/staging/media/ipu3/ipu3.c 	int r = pci_enable_msi(dev);
r                 595 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 596 drivers/staging/media/ipu3/ipu3.c 		dev_err(&dev->dev, "failed to enable MSI (%d)\n", r);
r                 597 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 615 drivers/staging/media/ipu3/ipu3.c 	int r;
r                 623 drivers/staging/media/ipu3/ipu3.c 	r = pcim_enable_device(pci_dev);
r                 624 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 625 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to enable device (%d)\n", r);
r                 626 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 635 drivers/staging/media/ipu3/ipu3.c 	r = pcim_iomap_regions(pci_dev, 1 << IMGU_PCI_BAR, pci_name(pci_dev));
r                 636 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 637 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to remap I/O memory (%d)\n", r);
r                 638 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 655 drivers/staging/media/ipu3/ipu3.c 	r = dma_coerce_mask_and_coherent(&pci_dev->dev, IMGU_DMA_MASK);
r                 656 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 657 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to set DMA mask (%d)\n", r);
r                 661 drivers/staging/media/ipu3/ipu3.c 	r = imgu_pci_config_setup(pci_dev);
r                 662 drivers/staging/media/ipu3/ipu3.c 	if (r)
r                 663 drivers/staging/media/ipu3/ipu3.c 		return r;
r                 669 drivers/staging/media/ipu3/ipu3.c 	r = imgu_css_set_powerup(&pci_dev->dev, imgu->base);
r                 670 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 672 drivers/staging/media/ipu3/ipu3.c 			"failed to power up CSS (%d)\n", r);
r                 678 drivers/staging/media/ipu3/ipu3.c 		r = PTR_ERR(imgu->mmu);
r                 679 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to initialize MMU (%d)\n", r);
r                 683 drivers/staging/media/ipu3/ipu3.c 	r = imgu_dmamap_init(imgu);
r                 684 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 686 drivers/staging/media/ipu3/ipu3.c 			"failed to initialize DMA mapping (%d)\n", r);
r                 691 drivers/staging/media/ipu3/ipu3.c 	r = imgu_css_init(&pci_dev->dev, &imgu->css, imgu->base, phys_len);
r                 692 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 693 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to initialize CSS (%d)\n", r);
r                 698 drivers/staging/media/ipu3/ipu3.c 	r = imgu_video_nodes_init(imgu);
r                 699 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 701 drivers/staging/media/ipu3/ipu3.c 			r);
r                 705 drivers/staging/media/ipu3/ipu3.c 	r = devm_request_threaded_irq(&pci_dev->dev, pci_dev->irq,
r                 708 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 709 drivers/staging/media/ipu3/ipu3.c 		dev_err(&pci_dev->dev, "failed to request IRQ (%d)\n", r);
r                 731 drivers/staging/media/ipu3/ipu3.c 	return r;
r                 782 drivers/staging/media/ipu3/ipu3.c 	int r = 0;
r                 792 drivers/staging/media/ipu3/ipu3.c 	r = imgu_powerup(imgu);
r                 793 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 799 drivers/staging/media/ipu3/ipu3.c 	r = imgu_css_start_streaming(&imgu->css);
r                 800 drivers/staging/media/ipu3/ipu3.c 	if (r) {
r                 801 drivers/staging/media/ipu3/ipu3.c 		dev_err(dev, "failed to resume css streaming (%d)", r);
r                 806 drivers/staging/media/ipu3/ipu3.c 		r = imgu_queue_buffers(imgu, true, pipe);
r                 807 drivers/staging/media/ipu3/ipu3.c 		if (r)
r                 809 drivers/staging/media/ipu3/ipu3.c 				pipe, r);
r                 815 drivers/staging/media/ipu3/ipu3.c 	return r;
r                 970 drivers/staging/media/meson/vdec/vdec.c 	struct resource *r;
r                 982 drivers/staging/media/meson/vdec/vdec.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dos");
r                 983 drivers/staging/media/meson/vdec/vdec.c 	core->dos_base = devm_ioremap_resource(dev, r);
r                 989 drivers/staging/media/meson/vdec/vdec.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "esparser");
r                 990 drivers/staging/media/meson/vdec/vdec.c 	core->esparser_base = devm_ioremap_resource(dev, r);
r                 684 drivers/staging/media/omap4iss/iss_video.c 		sel->r = sdsel.r;
r                 694 drivers/staging/media/omap4iss/iss_video.c 	sel->r.left = 0;
r                 695 drivers/staging/media/omap4iss/iss_video.c 	sel->r.top = 0;
r                 696 drivers/staging/media/omap4iss/iss_video.c 	sel->r.width = format.format.width;
r                 697 drivers/staging/media/omap4iss/iss_video.c 	sel->r.height = format.format.height;
r                 711 drivers/staging/media/omap4iss/iss_video.c 		.r = sel->r,
r                 737 drivers/staging/media/omap4iss/iss_video.c 		sel->r = sdsel.r;
r                 215 drivers/staging/media/soc_camera/imx074.c 	sel->r.left = 0;
r                 216 drivers/staging/media/soc_camera/imx074.c 	sel->r.top = 0;
r                 217 drivers/staging/media/soc_camera/imx074.c 	sel->r.width = IMX074_WIDTH;
r                 218 drivers/staging/media/soc_camera/imx074.c 	sel->r.height = IMX074_HEIGHT;
r                 299 drivers/staging/media/soc_camera/mt9t031.c 	struct v4l2_rect rect = sel->r;
r                 329 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.left = MT9T031_COLUMN_SKIP;
r                 330 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.top = MT9T031_ROW_SKIP;
r                 331 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.width = MT9T031_MAX_WIDTH;
r                 332 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.height = MT9T031_MAX_HEIGHT;
r                 335 drivers/staging/media/soc_camera/mt9t031.c 		sel->r = mt9t031->rect;
r                 989 drivers/staging/media/soc_camera/soc_camera.c 		    (icd->user_width != s->r.width ||
r                 990 drivers/staging/media/soc_camera/soc_camera.c 		     icd->user_height != s->r.height))
r                1009 drivers/staging/media/soc_camera/soc_camera.c 		icd->user_width = s->r.width;
r                1010 drivers/staging/media/soc_camera/soc_camera.c 		icd->user_height = s->r.height;
r                1777 drivers/staging/media/soc_camera/soc_camera.c 	sel->r = sdsel.r;
r                1789 drivers/staging/media/soc_camera/soc_camera.c 		.r = sel->r,
r                1796 drivers/staging/media/soc_camera/soc_camera.c 	sel->r = sdsel.r;
r                 281 drivers/staging/media/soc_camera/soc_mt9v022.c 	struct v4l2_rect rect = sel->r;
r                 367 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.left = MT9V022_COLUMN_SKIP;
r                 368 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.top = MT9V022_ROW_SKIP;
r                 369 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.width = MT9V022_MAX_WIDTH;
r                 370 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.height = MT9V022_MAX_HEIGHT;
r                 373 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r = mt9v022->rect;
r                 409 drivers/staging/media/soc_camera/soc_mt9v022.c 		.r.left = mt9v022->rect.left,
r                 410 drivers/staging/media/soc_camera/soc_mt9v022.c 		.r.top = mt9v022->rect.top,
r                 411 drivers/staging/media/soc_camera/soc_mt9v022.c 		.r.width = mf->width,
r                 412 drivers/staging/media/soc_camera/soc_mt9v022.c 		.r.height = mf->height,
r                 857 drivers/staging/media/soc_camera/soc_ov5642.c 	struct v4l2_rect rect = sel->r;
r                 897 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.left = 0;
r                 898 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.top = 0;
r                 899 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.width = OV5642_MAX_WIDTH;
r                 900 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.height = OV5642_MAX_HEIGHT;
r                 903 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r = priv->crop_rect;
r                 730 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.left = 0;
r                 731 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.top = 0;
r                 732 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.width = OV9740_MAX_WIDTH;
r                 733 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.height = OV9740_MAX_HEIGHT;
r                 194 drivers/staging/octeon/ethernet-spi.c 	int r;
r                 198 drivers/staging/octeon/ethernet-spi.c 		r = request_irq(OCTEON_IRQ_RML, cvm_oct_spi_rml_interrupt,
r                 200 drivers/staging/octeon/ethernet-spi.c 		if (r)
r                 201 drivers/staging/octeon/ethernet-spi.c 			return r;
r                 393 drivers/staging/octeon/ethernet.c 	int r = eth_mac_addr(dev, addr);
r                 395 drivers/staging/octeon/ethernet.c 	if (r)
r                 396 drivers/staging/octeon/ethernet.c 		return r;
r                 480 drivers/staging/octeon/ethernet.c 		int r = phy_read_status(dev->phydev);
r                 482 drivers/staging/octeon/ethernet.c 		if (r == 0 && dev->phydev->link == 0)
r                1375 drivers/staging/octeon/octeon-stubs.h 	union cvmx_gmxx_rxx_rx_inbnd r;
r                1376 drivers/staging/octeon/octeon-stubs.h 	r.u64 = 0;
r                1377 drivers/staging/octeon/octeon-stubs.h 	return r;
r                  78 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
r                  80 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		if (r == 2 || r == 4 || r == 11 || r == 22)
r                  91 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
r                  93 drivers/staging/rtl8188eu/core/rtw_ieee80211.c 		if (r != 2 && r != 4 && r != 11 && r != 22)
r                  61 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		u8 r = rate[i] & 0x7f;
r                  63 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		if (r == 2 || r == 4 || r == 11 || r == 22)
r                  74 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		u8 r = rate[i] & 0x7f;
r                  76 drivers/staging/rtl8188eu/core/rtw_wlan_util.c 		if (r != 2 && r != 4 && r != 11 && r != 22)
r                  72 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
r                  74 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		if (r == 2 || r == 4 || r == 11 || r == 22)
r                  85 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		u8 r = *rate & 0x7f;
r                  87 drivers/staging/rtl8723bs/core/rtw_ieee80211.c 		if (r != 2 && r != 4 && r != 11 && r != 22)
r                2217 drivers/staging/rtl8723bs/core/rtw_security.c 	int r;
r                2235 drivers/staging/rtl8723bs/core/rtw_security.c 	r = Nr >> 1;
r                2239 drivers/staging/rtl8723bs/core/rtw_security.c 		if (--r == 0)
r                 136 drivers/staging/rtl8723bs/include/osdep_service.h #define _RND(sz, r) ((((sz)+((r)-1))/(r))*(r))
r                 222 drivers/staging/speakup/synth.c 	int r;
r                 225 drivers/staging/speakup/synth.c 	r = vsnprintf(buf, sizeof(buf), fmt, args);
r                 227 drivers/staging/speakup/synth.c 	if (r > sizeof(buf) - 1)
r                 228 drivers/staging/speakup/synth.c 		r = sizeof(buf) - 1;
r                 231 drivers/staging/speakup/synth.c 	while (r--)
r                 604 drivers/staging/unisys/visorinput/visorinput.c 	struct visor_inputreport r;
r                 616 drivers/staging/unisys/visorinput/visorinput.c 	while (!visorchannel_signalremove(dev->visorchannel, 0, &r)) {
r                 617 drivers/staging/unisys/visorinput/visorinput.c 		scancode = r.activity.arg1;
r                 619 drivers/staging/unisys/visorinput/visorinput.c 		switch (r.activity.action) {
r                 636 drivers/staging/unisys/visorinput/visorinput.c 					   r.activity.arg2);
r                 639 drivers/staging/unisys/visorinput/visorinput.c 			xmotion = r.activity.arg1;
r                 640 drivers/staging/unisys/visorinput/visorinput.c 			ymotion = r.activity.arg2;
r                 646 drivers/staging/unisys/visorinput/visorinput.c 			button = calc_button(r.activity.arg1);
r                 653 drivers/staging/unisys/visorinput/visorinput.c 			button = calc_button(r.activity.arg1);
r                 660 drivers/staging/unisys/visorinput/visorinput.c 			button = calc_button(r.activity.arg1);
r                 669 drivers/staging/unisys/visorinput/visorinput.c 			button = calc_button(r.activity.arg1);
r                  50 drivers/staging/uwb/drp.c 	struct uwb_rc_evt_set_drp_ie *r = (struct uwb_rc_evt_set_drp_ie *)reply;
r                  53 drivers/staging/uwb/drp.c 	if (r != NULL) {
r                  54 drivers/staging/uwb/drp.c 		if (r->bResultCode != UWB_RC_RES_SUCCESS)
r                  56 drivers/staging/uwb/drp.c 				uwb_rc_strerror(r->bResultCode), r->bResultCode);
r                  63 drivers/staging/uwb/ie.c 	int r = 0;
r                  72 drivers/staging/uwb/ie.c 		r += scnprintf(buf + r, size - r, "%02x %02x",
r                  76 drivers/staging/uwb/ie.c 		while (d != ptr && r < size)
r                  77 drivers/staging/uwb/ie.c 			r += scnprintf(buf + r, size - r, " %02x", (unsigned)*d++);
r                  78 drivers/staging/uwb/ie.c 		if (r < size)
r                  79 drivers/staging/uwb/ie.c 			buf[r++] = '\n';
r                  82 drivers/staging/uwb/ie.c 	return r;
r                  36 drivers/staging/vt6655/dpc.c 	int ii, r;
r                  56 drivers/staging/vt6655/dpc.c 	for (r = RATE_1M; r < MAX_RATE; r++) {
r                  57 drivers/staging/vt6655/dpc.c 		if (*rx_rate == rate[r])
r                  61 drivers/staging/vt6655/dpc.c 	priv->rx_rate = r;
r                  64 drivers/staging/vt6655/dpc.c 		if (sband->bitrates[ii].hw_value == r) {
r                  38 drivers/staging/vt6656/dpc.c 	int ii, r;
r                  88 drivers/staging/vt6656/dpc.c 	for (r = RATE_1M; r < MAX_RATE; r++) {
r                  89 drivers/staging/vt6656/dpc.c 		if (*rx_rate == rate[r])
r                  93 drivers/staging/vt6656/dpc.c 	priv->rx_rate = r;
r                  96 drivers/staging/vt6656/dpc.c 		if (sband->bitrates[ii].hw_value == r) {
r                 147 drivers/staging/wlan-ng/p80211hdr.h #define DOT11_RATE5_ISBASIC_GET(r)     (((u8)(r)) & BIT(7))
r                 157 drivers/staging/wusbcore/host/whci/whci-hc.h #define QH_INFO2_MAX_RETRY(r)    ((r) << 16) /* maximum transaction retries */
r                 162 drivers/staging/wusbcore/host/whci/whci-hc.h #define QH_INFO3_TX_RATE(r)      ((r) << 24) /* PHY rate (see [ECMA-368] section 10.3.1.1) */
r                3216 drivers/target/target_core_transport.c 	int r = (__force int)reason;
r                3220 drivers/target/target_core_transport.c 	if (r < ARRAY_SIZE(sense_info_table) && sense_info_table[r].key)
r                3221 drivers/target/target_core_transport.c 		si = &sense_info_table[r];
r                 159 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	unsigned long long r;
r                 162 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	status = acpi_evaluate_integer(handle, name, NULL, &r);
r                 166 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c 	*temp = DECI_KELVIN_TO_MILLICELSIUS(r);
r                  87 drivers/thermal/intel/intel_pch_thermal.c 		unsigned long long r;
r                  91 drivers/thermal/intel/intel_pch_thermal.c 					       &r);
r                  95 drivers/thermal/intel/intel_pch_thermal.c 			trip_temp = DECI_KELVIN_TO_MILLICELSIUS(r);
r                 590 drivers/thermal/of-thermal.c 	struct thermal_zone_device **r = res;
r                 592 drivers/thermal/of-thermal.c 	if (WARN_ON(!r || !*r))
r                 595 drivers/thermal/of-thermal.c 	return *r == data;
r                 142 drivers/thermal/rcar_thermal.c #define rcar_thermal_common_read(c, r) \
r                 143 drivers/thermal/rcar_thermal.c 	_rcar_thermal_common_read(c, COMMON_ ##r)
r                 150 drivers/thermal/rcar_thermal.c #define rcar_thermal_common_write(c, r, d) \
r                 151 drivers/thermal/rcar_thermal.c 	_rcar_thermal_common_write(c, COMMON_ ##r, d)
r                 158 drivers/thermal/rcar_thermal.c #define rcar_thermal_common_bset(c, r, m, d) \
r                 159 drivers/thermal/rcar_thermal.c 	_rcar_thermal_common_bset(c, COMMON_ ##r, m, d)
r                 171 drivers/thermal/rcar_thermal.c #define rcar_thermal_read(p, r) _rcar_thermal_read(p, REG_ ##r)
r                 177 drivers/thermal/rcar_thermal.c #define rcar_thermal_write(p, r, d) _rcar_thermal_write(p, REG_ ##r, d)
r                 184 drivers/thermal/rcar_thermal.c #define rcar_thermal_bset(p, r, m, d) _rcar_thermal_bset(p, REG_ ##r, m, d)
r                  64 drivers/thermal/tegra/soctherm-fuse.c 	s64 r, al;
r                  69 drivers/thermal/tegra/soctherm-fuse.c 	r = div64_s64(al * 2 + 1, 2 * b);
r                  70 drivers/thermal/tegra/soctherm-fuse.c 	return r >> 16;
r                 197 drivers/thermal/tegra/soctherm.c #define REG_GET_MASK(r, m)	(((r) & (m)) >> (ffs(m) - 1))
r                 199 drivers/thermal/tegra/soctherm.c #define REG_SET_MASK(r, m, v)	(((r) & ~(m)) | \
r                 479 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 486 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THERMCTL_THERMTRIP_CTL);
r                 487 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, sg->thermtrip_threshold_mask, temp);
r                 488 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, sg->thermtrip_enable_mask, 1);
r                 489 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, sg->thermtrip_any_en_mask, 0);
r                 490 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THERMCTL_THERMTRIP_CTL);
r                 520 drivers/thermal/tegra/soctherm.c 	u32 r, reg_off;
r                 543 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + reg_off);
r                 544 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, sg->thermctl_lvl0_up_thresh_mask, temp);
r                 545 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, sg->thermctl_lvl0_dn_thresh_mask, temp);
r                 546 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THERMCTL_LVL0_CPU0_CPU_THROT_MASK, cpu_throt);
r                 547 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THERMCTL_LVL0_CPU0_GPU_THROT_MASK, gpu_throt);
r                 548 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THERMCTL_LVL0_CPU0_EN_MASK, 1);
r                 549 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + reg_off);
r                 668 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 672 drivers/thermal/tegra/soctherm.c 	r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE);
r                 673 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, TH_INTR_UP_DN_EN);
r                 674 drivers/thermal/tegra/soctherm.c 	writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE);
r                 680 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 684 drivers/thermal/tegra/soctherm.c 	r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE);
r                 685 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, 0);
r                 686 drivers/thermal/tegra/soctherm.c 	writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE);
r                 693 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 697 drivers/thermal/tegra/soctherm.c 	r = readl(zone->ts->regs + zone->sg->thermctl_lvl0_offset);
r                 698 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THERMCTL_LVL0_CPU0_EN_MASK, 0);
r                 699 drivers/thermal/tegra/soctherm.c 	writel(r, zone->ts->regs + zone->sg->thermctl_lvl0_offset);
r                 705 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, zone->sg->thermctl_lvl0_up_thresh_mask, hi);
r                 706 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, zone->sg->thermctl_lvl0_dn_thresh_mask, lo);
r                 707 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THERMCTL_LVL0_CPU0_EN_MASK, 1);
r                 708 drivers/thermal/tegra/soctherm.c 	writel(r, zone->ts->regs + zone->sg->thermctl_lvl0_offset);
r                 834 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 845 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THERMCTL_INTR_STATUS);
r                 846 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THERMCTL_INTR_DISABLE);
r                 945 drivers/thermal/tegra/soctherm.c 	u32 r;
r                 950 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + OC_INTR_ENABLE);
r                 953 drivers/thermal/tegra/soctherm.c 		r = REG_SET_MASK(r, OC_INTR_OC1_MASK, 1);
r                 956 drivers/thermal/tegra/soctherm.c 		r = REG_SET_MASK(r, OC_INTR_OC2_MASK, 1);
r                 959 drivers/thermal/tegra/soctherm.c 		r = REG_SET_MASK(r, OC_INTR_OC3_MASK, 1);
r                 962 drivers/thermal/tegra/soctherm.c 		r = REG_SET_MASK(r, OC_INTR_OC4_MASK, 1);
r                 965 drivers/thermal/tegra/soctherm.c 		r = 0;
r                 968 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + OC_INTR_ENABLE);
r                1103 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1108 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + OC_INTR_STATUS);
r                1109 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + OC_INTR_DISABLE);
r                1293 drivers/thermal/tegra/soctherm.c 	u32 r, state;
r                1299 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG1);
r                1300 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG1_TEMP_ENABLE);
r                1310 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG1_TIDDQ_EN_MASK);
r                1312 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG1_TEN_COUNT_MASK);
r                1314 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG1_TSAMPLE_MASK);
r                1317 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + tsensors[i].base + SENSOR_STATUS1);
r                1318 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_STATUS1_TEMP_VALID_MASK);
r                1320 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_STATUS1_TEMP_MASK);
r                1323 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + tsensors[i].base + SENSOR_STATUS0);
r                1324 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_STATUS0_VALID_MASK);
r                1326 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_STATUS0_CAPTURE_MASK);
r                1329 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG0);
r                1330 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG0_STOP);
r                1332 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG0_TALL_MASK);
r                1334 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG0_TCALC_OVER);
r                1336 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG0_OVER);
r                1338 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG0_CPTR_OVER);
r                1341 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG2);
r                1342 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG2_THERMA_MASK);
r                1344 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, SENSOR_CONFIG2_THERMB_MASK);
r                1348 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + SENSOR_PDIV);
r                1349 drivers/thermal/tegra/soctherm.c 	seq_printf(s, "PDIV: 0x%x\n", r);
r                1351 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + SENSOR_HOTSPOT_OFF);
r                1352 drivers/thermal/tegra/soctherm.c 	seq_printf(s, "HOTSPOT: 0x%x\n", r);
r                1357 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + SENSOR_TEMP1);
r                1358 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, SENSOR_TEMP1_CPU_TEMP_MASK);
r                1360 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, SENSOR_TEMP1_GPU_TEMP_MASK);
r                1362 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + SENSOR_TEMP2);
r                1363 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, SENSOR_TEMP2_PLLX_TEMP_MASK);
r                1365 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, SENSOR_TEMP2_MEM_TEMP_MASK);
r                1375 drivers/thermal/tegra/soctherm.c 			r = readl(ts->regs + THERMCTL_LVL_REG(off, level));
r                1378 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1384 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1390 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1394 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1406 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1418 drivers/thermal/tegra/soctherm.c 			state = REG_GET_MASK(r, mask);
r                1426 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THERMCTL_STATS_CTL);
r                1428 drivers/thermal/tegra/soctherm.c 		   r & STATS_CTL_EN_UP ? "En" : "--",
r                1429 drivers/thermal/tegra/soctherm.c 		   r & STATS_CTL_EN_DN ? "En" : "--");
r                1435 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + THERMCTL_LVL_REG(off, level));
r                1436 drivers/thermal/tegra/soctherm.c 		seq_printf(s, "  Level_%d Up(%d) ", level, r);
r                1439 drivers/thermal/tegra/soctherm.c 		r = readl(ts->regs + THERMCTL_LVL_REG(off, level));
r                1440 drivers/thermal/tegra/soctherm.c 		seq_printf(s, "Dn(%d)\n", r);
r                1443 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THERMCTL_THERMTRIP_CTL);
r                1444 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, ttgs[0]->thermtrip_any_en_mask);
r                1447 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, ttgs[i]->thermtrip_enable_mask);
r                1449 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, ttgs[i]->thermtrip_threshold_mask);
r                1454 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_GLOBAL_CFG);
r                1456 drivers/thermal/tegra/soctherm.c 	seq_printf(s, "GLOBAL THROTTLE CONFIG: 0x%08x\n", r);
r                1459 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_STATUS);
r                1460 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, THROT_STATUS_BREACH_MASK);
r                1462 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, THROT_STATUS_STATE_MASK);
r                1464 drivers/thermal/tegra/soctherm.c 	state = REG_GET_MASK(r, THROT_STATUS_ENABLED_MASK);
r                1467 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + CPU_PSKIP_STATUS);
r                1469 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, XPU_PSKIP_STATUS_ENABLED_MASK);
r                1472 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, XPU_PSKIP_STATUS_M_MASK);
r                1474 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, XPU_PSKIP_STATUS_N_MASK);
r                1476 drivers/thermal/tegra/soctherm.c 		state = REG_GET_MASK(r, XPU_PSKIP_STATUS_ENABLED_MASK);
r                1544 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1546 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_STATUS);
r                1547 drivers/thermal/tegra/soctherm.c 	if (REG_GET_MASK(r, THROT_STATUS_STATE_MASK))
r                1766 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1787 drivers/thermal/tegra/soctherm.c 	r = ccroc_readl(ts, CCROC_THROT_PSKIP_RAMP_CPU_REG(level));
r                1788 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, CCROC_THROT_PSKIP_RAMP_DURATION_MASK, 0xff);
r                1789 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, CCROC_THROT_PSKIP_RAMP_STEP_MASK, 0xf);
r                1790 drivers/thermal/tegra/soctherm.c 	ccroc_writel(ts, r, CCROC_THROT_PSKIP_RAMP_CPU_REG(level));
r                1792 drivers/thermal/tegra/soctherm.c 	r = ccroc_readl(ts, CCROC_THROT_PSKIP_CTRL_CPU_REG(level));
r                1793 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, CCROC_THROT_PSKIP_CTRL_ENB_MASK, 1);
r                1794 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, CCROC_THROT_PSKIP_CTRL_DIVIDEND_MASK, dividend);
r                1795 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, CCROC_THROT_PSKIP_CTRL_DIVISOR_MASK, 0xff);
r                1796 drivers/thermal/tegra/soctherm.c 	ccroc_writel(ts, r, CCROC_THROT_PSKIP_CTRL_CPU_REG(level));
r                1813 drivers/thermal/tegra/soctherm.c 	u32 r, throt_vect;
r                1831 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU));
r                1832 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_ENABLE_MASK, 1);
r                1833 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_VECT_CPU_MASK, throt_vect);
r                1834 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_VECT2_CPU_MASK, throt_vect);
r                1835 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU));
r                1838 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(0, THROT_PSKIP_RAMP_SEQ_BYPASS_MODE_MASK, 1);
r                1839 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU));
r                1856 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1863 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU));
r                1864 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_ENABLE_MASK, 1);
r                1865 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_DIVIDEND_MASK, dividend);
r                1866 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_DIVISOR_MASK, 0xff);
r                1867 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_CPU));
r                1869 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU));
r                1870 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_RAMP_DURATION_MASK, 0xff);
r                1871 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_RAMP_STEP_MASK, 0xf);
r                1872 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PSKIP_RAMP(throt, THROTTLE_DEV_CPU));
r                1887 drivers/thermal/tegra/soctherm.c 	u32 r, level, throt_vect;
r                1891 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU));
r                1892 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_ENABLE_MASK, 1);
r                1893 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, THROT_PSKIP_CTRL_VECT_GPU_MASK, throt_vect);
r                1894 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PSKIP_CTRL(throt, THROTTLE_DEV_GPU));
r                1900 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1906 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(0, OC1_CFG_HW_RESTORE_MASK, 1);
r                1907 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, OC1_CFG_THROTTLE_MODE_MASK, oc->mode);
r                1908 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, OC1_CFG_ALARM_POLARITY_MASK, oc->active_low);
r                1909 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(r, OC1_CFG_EN_THROTTLE_MASK, 1);
r                1910 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + ALARM_CFG(throt));
r                1929 drivers/thermal/tegra/soctherm.c 	u32 r;
r                1946 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(0, THROT_PRIORITY_LITE_PRIO_MASK, stc.priority);
r                1947 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PRIORITY_CTRL(throt));
r                1949 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(0, THROT_DELAY_LITE_DELAY_MASK, 0);
r                1950 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_DELAY_CTRL(throt));
r                1952 drivers/thermal/tegra/soctherm.c 	r = readl(ts->regs + THROT_PRIORITY_LOCK);
r                1953 drivers/thermal/tegra/soctherm.c 	r = REG_GET_MASK(r, THROT_PRIORITY_LOCK_PRIORITY_MASK);
r                1954 drivers/thermal/tegra/soctherm.c 	if (r >= stc.priority)
r                1956 drivers/thermal/tegra/soctherm.c 	r = REG_SET_MASK(0, THROT_PRIORITY_LOCK_PRIORITY_MASK,
r                1958 drivers/thermal/tegra/soctherm.c 	writel(r, ts->regs + THROT_PRIORITY_LOCK);
r                  71 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	u32 r;							\
r                  74 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	r = ti_bandgap_readl(bgp, t->reg);			\
r                  75 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	r &= ~t->mask;						\
r                  76 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	r |= (val) << __ffs(t->mask);				\
r                  77 drivers/thermal/ti-soc-thermal/ti-bandgap.c 	ti_bandgap_writel(bgp, r, t->reg);			\
r                 298 drivers/tty/goldfish.c 	struct resource *r;
r                 304 drivers/tty/goldfish.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 305 drivers/tty/goldfish.c 	if (!r) {
r                 310 drivers/tty/goldfish.c 	base = ioremap(r->start, 0x1000);
r                 316 drivers/tty/goldfish.c 	r = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
r                 317 drivers/tty/goldfish.c 	if (!r) {
r                 322 drivers/tty/goldfish.c 	irq = r->start;
r                 156 drivers/tty/hvc/hvc_console.c 	int r, donecr = 0, index = co->index;
r                 177 drivers/tty/hvc/hvc_console.c 			r = cons_ops[index]->put_chars(vtermnos[index], c, i);
r                 178 drivers/tty/hvc/hvc_console.c 			if (r <= 0) {
r                 181 drivers/tty/hvc/hvc_console.c 				if (r != -EAGAIN) {
r                 187 drivers/tty/hvc/hvc_console.c 			} else if (r > 0) {
r                 188 drivers/tty/hvc/hvc_console.c 				i -= r;
r                 190 drivers/tty/hvc/hvc_console.c 					memmove(c, c+r, i);
r                 189 drivers/tty/hvc/hvc_xen.c 	int r;
r                 212 drivers/tty/hvc/hvc_xen.c 	r = hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN, &v);
r                 213 drivers/tty/hvc/hvc_xen.c 	if (r < 0 || v == 0)
r                 217 drivers/tty/hvc/hvc_xen.c 	r = hvm_get_parameter(HVM_PARAM_CONSOLE_PFN, &v);
r                 218 drivers/tty/hvc/hvc_xen.c 	if (r < 0 || v == 0)
r                 519 drivers/tty/hvc/hvc_xen.c 	int r;
r                 528 drivers/tty/hvc/hvc_xen.c 		r = xen_initial_domain_console_init();
r                 529 drivers/tty/hvc/hvc_xen.c 		if (r < 0)
r                 530 drivers/tty/hvc/hvc_xen.c 			return r;
r                 535 drivers/tty/hvc/hvc_xen.c 			r = xen_hvm_console_init();
r                 537 drivers/tty/hvc/hvc_xen.c 			r = xen_pv_console_init();
r                 538 drivers/tty/hvc/hvc_xen.c 		if (r < 0)
r                 539 drivers/tty/hvc/hvc_xen.c 			return r;
r                 551 drivers/tty/hvc/hvc_xen.c 		r = PTR_ERR(info->hvc);
r                 558 drivers/tty/hvc/hvc_xen.c 		return r;
r                 561 drivers/tty/hvc/hvc_xen.c 	r = 0;
r                 563 drivers/tty/hvc/hvc_xen.c 	r = xenbus_register_frontend(&xencons_driver);
r                 565 drivers/tty/hvc/hvc_xen.c 	return r;
r                 579 drivers/tty/hvc/hvc_xen.c 		int r;
r                 583 drivers/tty/hvc/hvc_xen.c 			r = xen_hvm_console_init();
r                 585 drivers/tty/hvc/hvc_xen.c 			r = xen_pv_console_init();
r                 586 drivers/tty/hvc/hvc_xen.c 		if (r < 0)
r                 587 drivers/tty/hvc/hvc_xen.c 			return r;
r                  87 drivers/tty/hvc/hvsi_lib.c 	struct hvsi_query_response r;
r                  97 drivers/tty/hvc/hvsi_lib.c 	r.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER;
r                  98 drivers/tty/hvc/hvsi_lib.c 	r.hdr.len = sizeof(struct hvsi_query_response);
r                  99 drivers/tty/hvc/hvsi_lib.c 	r.verb = cpu_to_be16(VSV_SEND_VERSION_NUMBER);
r                 100 drivers/tty/hvc/hvsi_lib.c 	r.u.version = HVSI_VERSION;
r                 101 drivers/tty/hvc/hvsi_lib.c 	r.query_seqno = pkt->hdr.seqno;
r                 102 drivers/tty/hvc/hvsi_lib.c 	hvsi_send_packet(pv, &r.hdr);
r                 110 drivers/tty/hvc/hvsi_lib.c 	struct hvsi_query_response *r =
r                 113 drivers/tty/hvc/hvsi_lib.c 	switch(r->verb) {
r                 115 drivers/tty/hvc/hvsi_lib.c 		hvsi_cd_change(pv, be32_to_cpu(r->u.mctrl_word) & HVSI_TSCD);
r                2691 drivers/tty/serial/amba-pl011.c 	struct resource *r;
r                2739 drivers/tty/serial/amba-pl011.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                2741 drivers/tty/serial/amba-pl011.c 	ret = pl011_setup_port(&pdev->dev, uap, r, portnr);
r                  73 drivers/tty/serial/arc_uart.c #define UART_REG_SET(u, r, v) writeb((v), RBASE(u, r))
r                  74 drivers/tty/serial/arc_uart.c #define UART_REG_GET(u, r)    readb(RBASE(u, r))
r                  76 drivers/tty/serial/arc_uart.c #define UART_REG_OR(u, r, v)  UART_REG_SET(u, r, UART_REG_GET(u, r) | (v))
r                  77 drivers/tty/serial/arc_uart.c #define UART_REG_CLR(u, r, v) UART_REG_SET(u, r, UART_REG_GET(u, r) & ~(v))
r                1651 drivers/tty/serial/mxs-auart.c 	struct resource *r;
r                1679 drivers/tty/serial/mxs-auart.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                1680 drivers/tty/serial/mxs-auart.c 	if (!r) {
r                1685 drivers/tty/serial/mxs-auart.c 	s->port.mapbase = r->start;
r                1686 drivers/tty/serial/mxs-auart.c 	s->port.membase = ioremap(r->start, resource_size(r));
r                1786 drivers/tty/serial/mxs-auart.c 	int r;
r                1788 drivers/tty/serial/mxs-auart.c 	r = uart_register_driver(&auart_driver);
r                1789 drivers/tty/serial/mxs-auart.c 	if (r)
r                1792 drivers/tty/serial/mxs-auart.c 	r = platform_driver_register(&mxs_auart_driver);
r                1793 drivers/tty/serial/mxs-auart.c 	if (r)
r                1800 drivers/tty/serial/mxs-auart.c 	return r;
r                1118 drivers/tty/serial/sh-sci.c 	long r;
r                1120 drivers/tty/serial/sh-sci.c 	ret = kstrtol(buf, 0, &r);
r                1124 drivers/tty/serial/sh-sci.c 	sci->rx_trigger = scif_set_rtrg(port, r);
r                1157 drivers/tty/serial/sh-sci.c 	long r;
r                1159 drivers/tty/serial/sh-sci.c 	ret = kstrtol(buf, 0, &r);
r                1164 drivers/tty/serial/sh-sci.c 		if (r < 0 || r > 3)
r                1166 drivers/tty/serial/sh-sci.c 		sci->hscif_tot = r << HSSCR_TOT_SHIFT;
r                1168 drivers/tty/serial/sh-sci.c 		sci->rx_fifo_timeout = r;
r                1170 drivers/tty/serial/sh-sci.c 		if (r > 0)
r                 897 drivers/tty/serial/sifive.c 	int irq, id, r;
r                 946 drivers/tty/serial/sifive.c 	r = clk_notifier_register(ssp->clk, &ssp->clk_notifier);
r                 947 drivers/tty/serial/sifive.c 	if (r) {
r                 949 drivers/tty/serial/sifive.c 			r);
r                 970 drivers/tty/serial/sifive.c 	r = request_irq(ssp->port.irq, sifive_serial_irq, ssp->port.irqflags,
r                 972 drivers/tty/serial/sifive.c 	if (r) {
r                 973 drivers/tty/serial/sifive.c 		dev_err(&pdev->dev, "could not attach interrupt: %d\n", r);
r                 979 drivers/tty/serial/sifive.c 	r = uart_add_one_port(&sifive_serial_uart_driver, &ssp->port);
r                 980 drivers/tty/serial/sifive.c 	if (r != 0) {
r                 981 drivers/tty/serial/sifive.c 		dev_err(&pdev->dev, "could not add uart: %d\n", r);
r                 993 drivers/tty/serial/sifive.c 	return r;
r                1026 drivers/tty/serial/sifive.c 	int r;
r                1028 drivers/tty/serial/sifive.c 	r = uart_register_driver(&sifive_serial_uart_driver);
r                1029 drivers/tty/serial/sifive.c 	if (r)
r                1032 drivers/tty/serial/sifive.c 	r = platform_driver_register(&sifive_serial_platform_driver);
r                1033 drivers/tty/serial/sifive.c 	if (r)
r                1041 drivers/tty/serial/sifive.c 	return r;
r                  99 drivers/tty/serial/sunsab.c 	while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout)
r                 107 drivers/tty/serial/sunsab.c 	while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout)
r                 132 drivers/tty/serial/sunsab.c 		count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1);
r                 148 drivers/tty/serial/sunsab.c 		buf[i] = readb(&up->regs->r.rfifo[i]);
r                 252 drivers/tty/serial/sunsab.c 	if (!(readb(&up->regs->r.star) & SAB82532_STAR_XFW))
r                 295 drivers/tty/serial/sunsab.c 				       !(readb(&up->regs->r.vstr) & SAB82532_VSTR_CD));
r                 299 drivers/tty/serial/sunsab.c 				       (readb(&up->regs->r.star) & SAB82532_STAR_CTS));
r                 301 drivers/tty/serial/sunsab.c 	if ((readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ^ up->dsr) {
r                 302 drivers/tty/serial/sunsab.c 		up->dsr = (readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ? 0 : 1;
r                 320 drivers/tty/serial/sunsab.c 	gis = readb(&up->regs->r.gis) >> up->gis_shift;
r                 322 drivers/tty/serial/sunsab.c 		status.sreg.isr0 = readb(&up->regs->r.isr0);
r                 324 drivers/tty/serial/sunsab.c 		status.sreg.isr1 = readb(&up->regs->r.isr1);
r                 396 drivers/tty/serial/sunsab.c 	val = readb(&up->regs->r.pvr);
r                 399 drivers/tty/serial/sunsab.c 	val = readb(&up->regs->r.vstr);
r                 402 drivers/tty/serial/sunsab.c 	val = readb(&up->regs->r.star);
r                 553 drivers/tty/serial/sunsab.c 	(void) readb(&up->regs->r.isr0);
r                 554 drivers/tty/serial/sunsab.c 	(void) readb(&up->regs->r.isr1);
r                 995 drivers/tty/serial/sunsab.c 	up->type = readb(&up->regs->r.vstr) & 0x0f;
r                 114 drivers/tty/serial/sunsab.h 	__volatile__ struct sab82532_async_rd_regs	r;
r                 510 drivers/tty/tty_ldisc.c 	int r;
r                 517 drivers/tty/tty_ldisc.c 	if ((r = tty_ldisc_open(tty, disc)) < 0)
r                 519 drivers/tty/tty_ldisc.c 	return r;
r                1619 drivers/tty/vt/vt.c struct rgb { u8 r; u8 g; u8 b; };
r                1624 drivers/tty/vt/vt.c 		c->r = i&1 ? 0xaa : 0x00;
r                1628 drivers/tty/vt/vt.c 		c->r = i&1 ? 0xff : 0x55;
r                1632 drivers/tty/vt/vt.c 		c->r = (i - 16) / 36 * 85 / 2;
r                1636 drivers/tty/vt/vt.c 		c->r = c->g = c->b = i * 10 - 2312;
r                1641 drivers/tty/vt/vt.c 	u8 hue = 0, max = max3(c->r, c->g, c->b);
r                1643 drivers/tty/vt/vt.c 	if (c->r > max / 2)
r                1665 drivers/tty/vt/vt.c 		| (c->r&0x80) >> 1 | (c->g&0x80) >> 2 | (c->b&0x80) >> 3;
r                1692 drivers/tty/vt/vt.c 		c.r = vc->vc_par[i + 1];
r                 212 drivers/uio/uio_dmem_genirq.c 		struct resource *r = &pdev->resource[i];
r                 214 drivers/uio/uio_dmem_genirq.c 		if (r->flags != IORESOURCE_MEM)
r                 225 drivers/uio/uio_dmem_genirq.c 		uiomem->addr = r->start;
r                 226 drivers/uio/uio_dmem_genirq.c 		uiomem->size = resource_size(r);
r                 168 drivers/uio/uio_pdrv_genirq.c 		struct resource *r = &pdev->resource[i];
r                 170 drivers/uio/uio_pdrv_genirq.c 		if (r->flags != IORESOURCE_MEM)
r                 181 drivers/uio/uio_pdrv_genirq.c 		uiomem->addr = r->start;
r                 182 drivers/uio/uio_pdrv_genirq.c 		uiomem->size = resource_size(r);
r                 183 drivers/uio/uio_pdrv_genirq.c 		uiomem->name = r->name;
r                1214 drivers/usb/cdns3/gadget.h #define to_cdns3_request(r) (container_of(r, struct cdns3_request, request))
r                  49 drivers/usb/chipidea/ci_hdrc_msm.c ci_hdrc_msm_por_reset(struct reset_controller_dev *r, unsigned long id)
r                  51 drivers/usb/chipidea/ci_hdrc_msm.c 	struct ci_hdrc_msm *ci_msm = container_of(r, struct ci_hdrc_msm, rcdev);
r                 351 drivers/usb/class/cdc-wdm.c 	int rv = -EMSGSIZE, r, we;
r                 370 drivers/usb/class/cdc-wdm.c 	r = mutex_lock_interruptible(&desc->wlock);
r                 372 drivers/usb/class/cdc-wdm.c 	if (r)
r                 380 drivers/usb/class/cdc-wdm.c 	r = usb_autopm_get_interface(desc->intf);
r                 381 drivers/usb/class/cdc-wdm.c 	if (r < 0) {
r                 382 drivers/usb/class/cdc-wdm.c 		rv = usb_translate_errors(r);
r                 387 drivers/usb/class/cdc-wdm.c 		r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE,
r                 391 drivers/usb/class/cdc-wdm.c 			r = -EAGAIN;
r                 394 drivers/usb/class/cdc-wdm.c 		r = -EIO;
r                 396 drivers/usb/class/cdc-wdm.c 	if (r < 0) {
r                 397 drivers/usb/class/cdc-wdm.c 		rv = r;
r                1304 drivers/usb/class/usblp.c 	int r, alts;
r                1312 drivers/usb/class/usblp.c 	r = usb_set_interface(usblp->dev, usblp->ifnum, alts);
r                1313 drivers/usb/class/usblp.c 	if (r < 0) {
r                1316 drivers/usb/class/usblp.c 		return r;
r                1401 drivers/usb/class/usblp.c 	int r;
r                1403 drivers/usb/class/usblp.c 	r = handle_bidir(usblp);
r                1405 drivers/usb/class/usblp.c 	return r;
r                2389 drivers/usb/core/devio.c 	int r;
r                2391 drivers/usb/core/devio.c 	r = parse_usbdevfs_streams(ps, arg, &num_streams, &num_eps,
r                2393 drivers/usb/core/devio.c 	if (r)
r                2394 drivers/usb/core/devio.c 		return r;
r                2399 drivers/usb/core/devio.c 	r = usb_alloc_streams(intf, eps, num_eps, num_streams, GFP_KERNEL);
r                2401 drivers/usb/core/devio.c 	return r;
r                2409 drivers/usb/core/devio.c 	int r;
r                2411 drivers/usb/core/devio.c 	r = parse_usbdevfs_streams(ps, arg, NULL, &num_eps, &eps, &intf);
r                2412 drivers/usb/core/devio.c 	if (r)
r                2413 drivers/usb/core/devio.c 		return r;
r                2418 drivers/usb/core/devio.c 	r = usb_free_streams(intf, eps, num_eps, GFP_KERNEL);
r                2420 drivers/usb/core/devio.c 	return r;
r                 399 drivers/usb/core/driver.c 	int i, j, error, r;
r                 455 drivers/usb/core/driver.c 		r = usb_set_interface(udev, intf->altsetting[0].
r                 457 drivers/usb/core/driver.c 		if (r < 0)
r                1458 drivers/usb/core/driver.c 	int r;
r                1467 drivers/usb/core/driver.c 	r = usb_suspend_both(udev, msg);
r                1468 drivers/usb/core/driver.c 	if (r)
r                1469 drivers/usb/core/driver.c 		return r;
r                4664 drivers/usb/core/hub.c 			int r = 0;
r                4688 drivers/usb/core/hub.c 				r = usb_control_msg(udev, usb_rcvaddr0pipe(),
r                4697 drivers/usb/core/hub.c 						r = 0;
r                4702 drivers/usb/core/hub.c 					if (r == 0)
r                4703 drivers/usb/core/hub.c 						r = -EPROTO;
r                4712 drivers/usb/core/hub.c 				if (r == 0 || (r == -ETIMEDOUT &&
r                4730 drivers/usb/core/hub.c 			if (r) {
r                4731 drivers/usb/core/hub.c 				if (r != -ENODEV)
r                4733 drivers/usb/core/hub.c 							r);
r                 822 drivers/usb/dwc3/ep0.c 	struct dwc3_request	*r;
r                 838 drivers/usb/dwc3/ep0.c 	r = next_request(&ep0->pending_list);
r                 839 drivers/usb/dwc3/ep0.c 	if (!r)
r                 845 drivers/usb/dwc3/ep0.c 		if (r)
r                 846 drivers/usb/dwc3/ep0.c 			dwc3_gadget_giveback(ep0, r, -ECONNRESET);
r                 851 drivers/usb/dwc3/ep0.c 	ur = &r->request;
r                 863 drivers/usb/dwc3/ep0.c 		if (r->direction)
r                 874 drivers/usb/dwc3/ep0.c 		dwc3_gadget_giveback(ep0, r, 0);
r                 880 drivers/usb/dwc3/ep0.c 	struct dwc3_request	*r;
r                 891 drivers/usb/dwc3/ep0.c 		r = next_request(&dep->pending_list);
r                 893 drivers/usb/dwc3/ep0.c 		dwc3_gadget_giveback(dep, r, 0);
r                1544 drivers/usb/dwc3/gadget.c 	struct dwc3_request		*r = NULL;
r                1556 drivers/usb/dwc3/gadget.c 	list_for_each_entry(r, &dep->pending_list, list) {
r                1557 drivers/usb/dwc3/gadget.c 		if (r == req)
r                1561 drivers/usb/dwc3/gadget.c 	if (r != req) {
r                1562 drivers/usb/dwc3/gadget.c 		list_for_each_entry(r, &dep->started_list, list) {
r                1563 drivers/usb/dwc3/gadget.c 			if (r == req)
r                1566 drivers/usb/dwc3/gadget.c 		if (r == req) {
r                1570 drivers/usb/dwc3/gadget.c 			if (!r->trb)
r                  59 drivers/usb/dwc3/gadget.h #define to_dwc3_request(r)	(container_of(r, struct dwc3_request, request))
r                 863 drivers/usb/gadget/function/f_uac2.c 	struct cntrl_range_lay3 r;
r                 873 drivers/usb/gadget/function/f_uac2.c 			r.dMIN = cpu_to_le32(p_srate);
r                 875 drivers/usb/gadget/function/f_uac2.c 			r.dMIN = cpu_to_le32(c_srate);
r                 879 drivers/usb/gadget/function/f_uac2.c 		r.dMAX = r.dMIN;
r                 880 drivers/usb/gadget/function/f_uac2.c 		r.dRES = 0;
r                 881 drivers/usb/gadget/function/f_uac2.c 		r.wNumSubRanges = cpu_to_le16(1);
r                 883 drivers/usb/gadget/function/f_uac2.c 		value = min_t(unsigned, w_length, sizeof r);
r                 884 drivers/usb/gadget/function/f_uac2.c 		memcpy(req->buf, &r, value);
r                 170 drivers/usb/gadget/function/rndis.c 			       unsigned buf_len, rndis_resp_t *r)
r                 181 drivers/usb/gadget/function/rndis.c 	if (!r) return -ENOMEM;
r                 182 drivers/usb/gadget/function/rndis.c 	resp = (rndis_query_cmplt_type *)r->buf;
r                 479 drivers/usb/gadget/function/rndis.c 	r->length = length + sizeof(*resp);
r                 480 drivers/usb/gadget/function/rndis.c 	resp->MessageLength = cpu_to_le32(r->length);
r                 485 drivers/usb/gadget/function/rndis.c 			     u8 *buf, u32 buf_len, rndis_resp_t *r)
r                 490 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 492 drivers/usb/gadget/function/rndis.c 	resp = (rndis_set_cmplt_type *)r->buf;
r                 559 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 564 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params, sizeof(rndis_init_cmplt_type));
r                 565 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 567 drivers/usb/gadget/function/rndis.c 	resp = (rndis_init_cmplt_type *)r->buf;
r                 595 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 607 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params,
r                 609 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 611 drivers/usb/gadget/function/rndis.c 	resp = (rndis_query_cmplt_type *)r->buf;
r                 620 drivers/usb/gadget/function/rndis.c 			r)) {
r                 638 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 640 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params, sizeof(rndis_set_cmplt_type));
r                 641 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 643 drivers/usb/gadget/function/rndis.c 	resp = (rndis_set_cmplt_type *)r->buf;
r                 664 drivers/usb/gadget/function/rndis.c 			((u8 *)buf) + 8 + BufOffset, BufLength, r))
r                 677 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 685 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params, sizeof(rndis_reset_cmplt_type));
r                 686 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 688 drivers/usb/gadget/function/rndis.c 	resp = (rndis_reset_cmplt_type *)r->buf;
r                 704 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 708 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params, sizeof(rndis_keepalive_cmplt_type));
r                 709 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 711 drivers/usb/gadget/function/rndis.c 	resp = (rndis_keepalive_cmplt_type *)r->buf;
r                 729 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                 734 drivers/usb/gadget/function/rndis.c 	r = rndis_add_response(params, sizeof(rndis_indicate_status_msg_type));
r                 735 drivers/usb/gadget/function/rndis.c 	if (!r)
r                 737 drivers/usb/gadget/function/rndis.c 	resp = (rndis_indicate_status_msg_type *)r->buf;
r                1013 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r, *n;
r                1015 drivers/usb/gadget/function/rndis.c 	list_for_each_entry_safe(r, n, &params->resp_queue, list) {
r                1016 drivers/usb/gadget/function/rndis.c 		if (r->buf == buf) {
r                1017 drivers/usb/gadget/function/rndis.c 			list_del(&r->list);
r                1018 drivers/usb/gadget/function/rndis.c 			kfree(r);
r                1026 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r, *n;
r                1030 drivers/usb/gadget/function/rndis.c 	list_for_each_entry_safe(r, n, &params->resp_queue, list) {
r                1031 drivers/usb/gadget/function/rndis.c 		if (!r->send) {
r                1032 drivers/usb/gadget/function/rndis.c 			r->send = 1;
r                1033 drivers/usb/gadget/function/rndis.c 			*length = r->length;
r                1034 drivers/usb/gadget/function/rndis.c 			return r->buf;
r                1044 drivers/usb/gadget/function/rndis.c 	rndis_resp_t *r;
r                1047 drivers/usb/gadget/function/rndis.c 	r = kmalloc(sizeof(rndis_resp_t) + length, GFP_ATOMIC);
r                1048 drivers/usb/gadget/function/rndis.c 	if (!r) return NULL;
r                1050 drivers/usb/gadget/function/rndis.c 	r->buf = (u8 *)(r + 1);
r                1051 drivers/usb/gadget/function/rndis.c 	r->length = length;
r                1052 drivers/usb/gadget/function/rndis.c 	r->send = 0;
r                1054 drivers/usb/gadget/function/rndis.c 	list_add_tail(&r->list, &params->resp_queue);
r                1055 drivers/usb/gadget/function/rndis.c 	return r;
r                  44 drivers/usb/gadget/function/uvc_configfs.c static int uvcg_config_compare_u32(const void *l, const void *r)
r                  47 drivers/usb/gadget/function/uvc_configfs.c 	u32 ri = *(const u32 *)r;
r                1042 drivers/usb/gadget/udc/at91_udc.c 	struct usb_ctrlrequest	r;
r                1059 drivers/usb/gadget/udc/at91_udc.c 		if (pkt.r.bRequestType & USB_DIR_IN) {
r                1080 drivers/usb/gadget/udc/at91_udc.c #define w_index		le16_to_cpu(pkt.r.wIndex)
r                1081 drivers/usb/gadget/udc/at91_udc.c #define w_value		le16_to_cpu(pkt.r.wValue)
r                1082 drivers/usb/gadget/udc/at91_udc.c #define w_length	le16_to_cpu(pkt.r.wLength)
r                1085 drivers/usb/gadget/udc/at91_udc.c 			pkt.r.bRequestType, pkt.r.bRequest,
r                1096 drivers/usb/gadget/udc/at91_udc.c 	switch ((pkt.r.bRequestType << 8) | pkt.r.bRequest) {
r                1110 drivers/usb/gadget/udc/at91_udc.c 		if (pkt.r.wValue)
r                1247 drivers/usb/gadget/udc/at91_udc.c 		status = udc->driver->setup(&udc->gadget, &pkt.r);
r                1255 drivers/usb/gadget/udc/at91_udc.c 				pkt.r.bRequestType, pkt.r.bRequest, status);
r                1694 drivers/usb/gadget/udc/bcm63xx_udc.c 		struct usb_request *r = udc->ep0_reply;
r                1696 drivers/usb/gadget/udc/bcm63xx_udc.c 		if (!r) {
r                1702 drivers/usb/gadget/udc/bcm63xx_udc.c 		bcm63xx_ep0_complete(udc, r, 0);
r                 263 drivers/usb/gadget/udc/bdc/bdc.h #define to_bdc_req(r)		container_of(r, struct bdc_req, usb_req)
r                 207 drivers/usb/gadget/udc/goku_udc.c 			struct goku_udc_regs __iomem	*r = ep->dev->regs;
r                 210 drivers/usb/gadget/udc/goku_udc.c 			tmp = readl(&r->EPxSingle);
r                 212 drivers/usb/gadget/udc/goku_udc.c 			writel(tmp, &r->EPxSingle);
r                 214 drivers/usb/gadget/udc/goku_udc.c 			tmp = readl(&r->EPxBCS);
r                 216 drivers/usb/gadget/udc/goku_udc.c 			writel(tmp, &r->EPxBCS);
r                1534 drivers/usb/gadget/udc/m66592-udc.c static void nop_completion(struct usb_ep *ep, struct usb_request *r)
r                1787 drivers/usb/gadget/udc/mv_u3d_core.c 	struct resource *r;
r                1815 drivers/usb/gadget/udc/mv_u3d_core.c 	r = platform_get_resource_byname(dev, IORESOURCE_MEM, "capregs");
r                1816 drivers/usb/gadget/udc/mv_u3d_core.c 	if (!r) {
r                1823 drivers/usb/gadget/udc/mv_u3d_core.c 		ioremap(r->start, resource_size(r));
r                1830 drivers/usb/gadget/udc/mv_u3d_core.c 			(unsigned long) r->start,
r                1918 drivers/usb/gadget/udc/mv_u3d_core.c 	r = platform_get_resource(dev, IORESOURCE_IRQ, 0);
r                1919 drivers/usb/gadget/udc/mv_u3d_core.c 	if (!r) {
r                1924 drivers/usb/gadget/udc/mv_u3d_core.c 	u3d->irq = r->start;
r                2113 drivers/usb/gadget/udc/mv_udc_core.c 	struct resource *r;
r                2150 drivers/usb/gadget/udc/mv_udc_core.c 	r = platform_get_resource_byname(udc->dev, IORESOURCE_MEM, "capregs");
r                2151 drivers/usb/gadget/udc/mv_udc_core.c 	if (r == NULL) {
r                2157 drivers/usb/gadget/udc/mv_udc_core.c 		devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                2163 drivers/usb/gadget/udc/mv_udc_core.c 	r = platform_get_resource_byname(udc->dev, IORESOURCE_MEM, "phyregs");
r                2164 drivers/usb/gadget/udc/mv_udc_core.c 	if (r == NULL) {
r                2169 drivers/usb/gadget/udc/mv_udc_core.c 	udc->phy_regs = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                2242 drivers/usb/gadget/udc/mv_udc_core.c 	r = platform_get_resource(udc->dev, IORESOURCE_IRQ, 0);
r                2243 drivers/usb/gadget/udc/mv_udc_core.c 	if (r == NULL) {
r                2248 drivers/usb/gadget/udc/mv_udc_core.c 	udc->irq = r->start;
r                1714 drivers/usb/gadget/udc/net2272.c 			struct usb_ctrlrequest	r;
r                1782 drivers/usb/gadget/udc/net2272.c 		le16_to_cpus(&u.r.wValue);
r                1783 drivers/usb/gadget/udc/net2272.c 		le16_to_cpus(&u.r.wIndex);
r                1784 drivers/usb/gadget/udc/net2272.c 		le16_to_cpus(&u.r.wLength);
r                1793 drivers/usb/gadget/udc/net2272.c 		ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0;
r                1805 drivers/usb/gadget/udc/net2272.c 		if ((u.r.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD)
r                1807 drivers/usb/gadget/udc/net2272.c 		switch (u.r.bRequest) {
r                1812 drivers/usb/gadget/udc/net2272.c 			switch (u.r.bRequestType & USB_RECIP_MASK) {
r                1814 drivers/usb/gadget/udc/net2272.c 				e = net2272_get_ep_by_addr(dev, u.r.wIndex);
r                1815 drivers/usb/gadget/udc/net2272.c 				if (!e || u.r.wLength > 2)
r                1831 drivers/usb/gadget/udc/net2272.c 				if (u.r.wLength > 2)
r                1844 drivers/usb/gadget/udc/net2272.c 				if (u.r.wLength > 2)
r                1861 drivers/usb/gadget/udc/net2272.c 			if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                1863 drivers/usb/gadget/udc/net2272.c 			if (u.r.wValue != USB_ENDPOINT_HALT ||
r                1864 drivers/usb/gadget/udc/net2272.c 			    u.r.wLength != 0)
r                1866 drivers/usb/gadget/udc/net2272.c 			e = net2272_get_ep_by_addr(dev, u.r.wIndex);
r                1882 drivers/usb/gadget/udc/net2272.c 			if (u.r.bRequestType == USB_RECIP_DEVICE) {
r                1883 drivers/usb/gadget/udc/net2272.c 				if (u.r.wIndex != NORMAL_OPERATION)
r                1884 drivers/usb/gadget/udc/net2272.c 					net2272_set_test_mode(dev, (u.r.wIndex >> 8));
r                1886 drivers/usb/gadget/udc/net2272.c 				dev_vdbg(dev->dev, "test mode: %d\n", u.r.wIndex);
r                1888 drivers/usb/gadget/udc/net2272.c 			} else if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                1890 drivers/usb/gadget/udc/net2272.c 			if (u.r.wValue != USB_ENDPOINT_HALT ||
r                1891 drivers/usb/gadget/udc/net2272.c 			    u.r.wLength != 0)
r                1893 drivers/usb/gadget/udc/net2272.c 			e = net2272_get_ep_by_addr(dev, u.r.wIndex);
r                1902 drivers/usb/gadget/udc/net2272.c 			net2272_write(dev, OURADDR, u.r.wValue & 0xff);
r                1910 drivers/usb/gadget/udc/net2272.c 				u.r.bRequestType, u.r.bRequest,
r                1911 drivers/usb/gadget/udc/net2272.c 				u.r.wValue, u.r.wIndex,
r                1914 drivers/usb/gadget/udc/net2272.c 			tmp = dev->driver->setup(&dev->gadget, &u.r);
r                1922 drivers/usb/gadget/udc/net2272.c 				u.r.bRequestType, u.r.bRequest, tmp);
r                2772 drivers/usb/gadget/udc/net2280.c static void defect7374_workaround(struct net2280 *dev, struct usb_ctrlrequest r)
r                2783 drivers/usb/gadget/udc/net2280.c 				(r.bRequestType & USB_DIR_IN)))
r                2862 drivers/usb/gadget/udc/net2280.c 		struct net2280_ep *ep, struct usb_ctrlrequest r)
r                2866 drivers/usb/gadget/udc/net2280.c #define	w_value		le16_to_cpu(r.wValue)
r                2867 drivers/usb/gadget/udc/net2280.c #define	w_index		le16_to_cpu(r.wIndex)
r                2868 drivers/usb/gadget/udc/net2280.c #define	w_length	le16_to_cpu(r.wLength)
r                2870 drivers/usb/gadget/udc/net2280.c 	switch (r.bRequest) {
r                2879 drivers/usb/gadget/udc/net2280.c 		switch (r.bRequestType) {
r                2910 drivers/usb/gadget/udc/net2280.c 		switch (r.bRequestType) {
r                2976 drivers/usb/gadget/udc/net2280.c 		switch (r.bRequestType) {
r                3042 drivers/usb/gadget/udc/net2280.c 				r.bRequestType, r.bRequest,
r                3048 drivers/usb/gadget/udc/net2280.c 		tmp = dev->driver->setup(&dev->gadget, &r);
r                3054 drivers/usb/gadget/udc/net2280.c 				r.bRequestType, r.bRequest, tmp);
r                3104 drivers/usb/gadget/udc/net2280.c 			struct usb_ctrlrequest	r;
r                3170 drivers/usb/gadget/udc/net2280.c 			defect7374_workaround(dev, u.r);
r                3174 drivers/usb/gadget/udc/net2280.c #define	w_value		le16_to_cpu(u.r.wValue)
r                3175 drivers/usb/gadget/udc/net2280.c #define	w_index		le16_to_cpu(u.r.wIndex)
r                3176 drivers/usb/gadget/udc/net2280.c #define	w_length	le16_to_cpu(u.r.wLength)
r                3187 drivers/usb/gadget/udc/net2280.c 		ep->is_in = (u.r.bRequestType & USB_DIR_IN) != 0;
r                3205 drivers/usb/gadget/udc/net2280.c 			handle_stat0_irqs_superspeed(dev, ep, u.r);
r                3209 drivers/usb/gadget/udc/net2280.c 		switch (u.r.bRequest) {
r                3215 drivers/usb/gadget/udc/net2280.c 			if (u.r.bRequestType != (USB_DIR_IN|USB_RECIP_ENDPOINT))
r                3239 drivers/usb/gadget/udc/net2280.c 			if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                3264 drivers/usb/gadget/udc/net2280.c 			if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                3285 drivers/usb/gadget/udc/net2280.c 				u.r.bRequestType, u.r.bRequest,
r                3290 drivers/usb/gadget/udc/net2280.c 			tmp = dev->driver->setup(&dev->gadget, &u.r);
r                3298 drivers/usb/gadget/udc/net2280.c 					u.r.bRequestType, u.r.bRequest, tmp);
r                1508 drivers/usb/gadget/udc/omap_udc.c 			struct usb_ctrlrequest	r;
r                1524 drivers/usb/gadget/udc/omap_udc.c #define	w_value		le16_to_cpu(u.r.wValue)
r                1525 drivers/usb/gadget/udc/omap_udc.c #define	w_index		le16_to_cpu(u.r.wIndex)
r                1526 drivers/usb/gadget/udc/omap_udc.c #define	w_length	le16_to_cpu(u.r.wLength)
r                1532 drivers/usb/gadget/udc/omap_udc.c 		udc->ep0_in = (u.r.bRequestType & USB_DIR_IN) != 0;
r                1537 drivers/usb/gadget/udc/omap_udc.c 		switch (u.r.bRequest) {
r                1540 drivers/usb/gadget/udc/omap_udc.c 			if (u.r.bRequestType != USB_RECIP_DEVICE)
r                1560 drivers/usb/gadget/udc/omap_udc.c 			if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                1589 drivers/usb/gadget/udc/omap_udc.c 			if (u.r.bRequestType != USB_RECIP_ENDPOINT)
r                1622 drivers/usb/gadget/udc/omap_udc.c 			if (u.r.bRequestType != (USB_DIR_IN|USB_RECIP_ENDPOINT))
r                1648 drivers/usb/gadget/udc/omap_udc.c 			if (u.r.bRequestType
r                1675 drivers/usb/gadget/udc/omap_udc.c 				u.r.bRequestType, u.r.bRequest,
r                1695 drivers/usb/gadget/udc/omap_udc.c 			status = udc->driver->setup(&udc->gadget, &u.r);
r                1703 drivers/usb/gadget/udc/omap_udc.c 					u.r.bRequestType, u.r.bRequest, status);
r                1634 drivers/usb/gadget/udc/pxa25x_udc.c 		struct usb_ctrlrequest	r;
r                1685 drivers/usb/gadget/udc/pxa25x_udc.c 				u.r.bRequestType, u.r.bRequest,
r                1686 drivers/usb/gadget/udc/pxa25x_udc.c 				le16_to_cpu(u.r.wValue),
r                1687 drivers/usb/gadget/udc/pxa25x_udc.c 				le16_to_cpu(u.r.wIndex),
r                1688 drivers/usb/gadget/udc/pxa25x_udc.c 				le16_to_cpu(u.r.wLength));
r                1691 drivers/usb/gadget/udc/pxa25x_udc.c 			dev->req_std = (u.r.bRequestType & USB_TYPE_MASK)
r                1695 drivers/usb/gadget/udc/pxa25x_udc.c 			switch (u.r.bRequest) {
r                1698 drivers/usb/gadget/udc/pxa25x_udc.c 				if (u.r.bRequestType == USB_RECIP_DEVICE) {
r                1713 drivers/usb/gadget/udc/pxa25x_udc.c 				if (u.r.bRequestType == USB_RECIP_INTERFACE) {
r                1720 drivers/usb/gadget/udc/pxa25x_udc.c 						le16_to_cpu(u.r.wIndex),
r                1721 drivers/usb/gadget/udc/pxa25x_udc.c 						le16_to_cpu(u.r.wValue));
r                1727 drivers/usb/gadget/udc/pxa25x_udc.c 				if (u.r.bRequestType == USB_RECIP_DEVICE) {
r                1734 drivers/usb/gadget/udc/pxa25x_udc.c 			if (u.r.bRequestType & USB_DIR_IN)
r                1739 drivers/usb/gadget/udc/pxa25x_udc.c 			i = dev->driver->setup(&dev->gadget, &u.r);
r                1748 drivers/usb/gadget/udc/pxa25x_udc.c 						u.r.bRequest, i);
r                1769 drivers/usb/gadget/udc/pxa25x_udc.c 						|| dev->req_std || u.r.wLength))
r                1791 drivers/usb/gadget/udc/pxa25x_udc.c 			if ((u.r.bRequestType & USB_RECIP_MASK)
r                1823 drivers/usb/gadget/udc/pxa27x_udc.c 		struct usb_ctrlrequest	r;
r                1856 drivers/usb/gadget/udc/pxa27x_udc.c 		u.r.bRequestType, u.r.bRequest,
r                1857 drivers/usb/gadget/udc/pxa27x_udc.c 		le16_to_cpu(u.r.wValue), le16_to_cpu(u.r.wIndex),
r                1858 drivers/usb/gadget/udc/pxa27x_udc.c 		le16_to_cpu(u.r.wLength));
r                1862 drivers/usb/gadget/udc/pxa27x_udc.c 	if (u.r.bRequestType & USB_DIR_IN)
r                1871 drivers/usb/gadget/udc/pxa27x_udc.c 	i = udc->driver->setup(&udc->gadget, &u.r);
r                1823 drivers/usb/gadget/udc/r8a66597-udc.c static void nop_completion(struct usb_ep *ep, struct usb_request *r)
r                  99 drivers/usb/host/ehci-mv.c 	struct resource *r;
r                 136 drivers/usb/host/ehci-mv.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 137 drivers/usb/host/ehci-mv.c 	ehci_mv->base = devm_ioremap_resource(&pdev->dev, r);
r                 155 drivers/usb/host/ehci-mv.c 	hcd->rsrc_start = r->start;
r                 156 drivers/usb/host/ehci-mv.c 	hcd->rsrc_len = resource_size(r);
r                 442 drivers/usb/host/isp116x.h #define isp116x_show_reg_log(d,r,s) {				\
r                 443 drivers/usb/host/isp116x.h 	if ((r) < 0x20) {			                \
r                 444 drivers/usb/host/isp116x.h 		DBG("%-12s[%02x]: %08x\n", #r,			\
r                 445 drivers/usb/host/isp116x.h 			r, isp116x_read_reg32(d, r));		\
r                 447 drivers/usb/host/isp116x.h 		DBG("%-12s[%02x]:     %04x\n", #r,		\
r                 448 drivers/usb/host/isp116x.h 			r, isp116x_read_reg16(d, r));	    	\
r                 451 drivers/usb/host/isp116x.h #define isp116x_show_reg_seq(d,r,s) {				\
r                 452 drivers/usb/host/isp116x.h 	if ((r) < 0x20) {					\
r                 453 drivers/usb/host/isp116x.h 		seq_printf(s, "%-12s[%02x]: %08x\n", #r,	\
r                 454 drivers/usb/host/isp116x.h 			r, isp116x_read_reg32(d, r));		\
r                 456 drivers/usb/host/isp116x.h 		seq_printf(s, "%-12s[%02x]:     %04x\n", #r,	\
r                 457 drivers/usb/host/isp116x.h 			r, isp116x_read_reg16(d, r));		\
r                  47 drivers/usb/host/isp1362.h #define ISP1362_REG_NO(r)		((r) & REG_NO_MASK)
r                  52 drivers/usb/host/isp1362.h #define REG_ACCESS_TEST(r)   BUG_ON(((r) & ISP1362_REG_WRITE_OFFSET) && !((r) & REG_ACCESS_W))
r                  53 drivers/usb/host/isp1362.h #define REG_WIDTH_TEST(r, w) BUG_ON(((r) & REG_WIDTH_MASK) != (w))
r                  56 drivers/usb/host/isp1362.h #define ISP1362_REG_NO(r)		(r)
r                  61 drivers/usb/host/isp1362.h #define REG_ACCESS_TEST(r)		do {} while (0)
r                  62 drivers/usb/host/isp1362.h #define REG_WIDTH_TEST(r, w)		do {} while (0)
r                 723 drivers/usb/host/isp1362.h #define isp1362_read_reg16(d, r)		({			\
r                 725 drivers/usb/host/isp1362.h 	REG_WIDTH_TEST(ISP1362_REG_##r, REG_WIDTH_16);			\
r                 726 drivers/usb/host/isp1362.h 	isp1362_write_addr(d, ISP1362_REG_##r);				\
r                 728 drivers/usb/host/isp1362.h 	RDBG("%s: Read %04x from %s[%02x]\n", __func__, __v, #r,	\
r                 729 drivers/usb/host/isp1362.h 	     ISP1362_REG_NO(ISP1362_REG_##r));				\
r                 733 drivers/usb/host/isp1362.h #define isp1362_read_reg32(d, r)		({			\
r                 735 drivers/usb/host/isp1362.h 	REG_WIDTH_TEST(ISP1362_REG_##r, REG_WIDTH_32);			\
r                 736 drivers/usb/host/isp1362.h 	isp1362_write_addr(d, ISP1362_REG_##r);				\
r                 738 drivers/usb/host/isp1362.h 	RDBG("%s: Read %08x from %s[%02x]\n", __func__, __v, #r,	\
r                 739 drivers/usb/host/isp1362.h 	     ISP1362_REG_NO(ISP1362_REG_##r));				\
r                 743 drivers/usb/host/isp1362.h #define isp1362_write_reg16(d, r, v)	{					\
r                 744 drivers/usb/host/isp1362.h 	REG_WIDTH_TEST(ISP1362_REG_##r, REG_WIDTH_16);				\
r                 745 drivers/usb/host/isp1362.h 	isp1362_write_addr(d, (ISP1362_REG_##r) | ISP1362_REG_WRITE_OFFSET);	\
r                 747 drivers/usb/host/isp1362.h 	RDBG("%s: Wrote %04x to %s[%02x]\n", __func__, (u16)(v), #r,	\
r                 748 drivers/usb/host/isp1362.h 	     ISP1362_REG_NO(ISP1362_REG_##r));					\
r                 751 drivers/usb/host/isp1362.h #define isp1362_write_reg32(d, r, v)	{					\
r                 752 drivers/usb/host/isp1362.h 	REG_WIDTH_TEST(ISP1362_REG_##r, REG_WIDTH_32);				\
r                 753 drivers/usb/host/isp1362.h 	isp1362_write_addr(d, (ISP1362_REG_##r) | ISP1362_REG_WRITE_OFFSET);	\
r                 755 drivers/usb/host/isp1362.h 	RDBG("%s: Wrote %08x to %s[%02x]\n", __func__, (u32)(v), #r,	\
r                 756 drivers/usb/host/isp1362.h 	     ISP1362_REG_NO(ISP1362_REG_##r));					\
r                 759 drivers/usb/host/isp1362.h #define isp1362_set_mask16(d, r, m) {			\
r                 761 drivers/usb/host/isp1362.h 	__v = isp1362_read_reg16(d, r);			\
r                 763 drivers/usb/host/isp1362.h 		isp1362_write_reg16(d, r, __v | m);	\
r                 766 drivers/usb/host/isp1362.h #define isp1362_clr_mask16(d, r, m) {			\
r                 768 drivers/usb/host/isp1362.h 	__v = isp1362_read_reg16(d, r);			\
r                 770 drivers/usb/host/isp1362.h 		isp1362_write_reg16(d, r, __v & ~m);	\
r                 773 drivers/usb/host/isp1362.h #define isp1362_set_mask32(d, r, m) {			\
r                 775 drivers/usb/host/isp1362.h 	__v = isp1362_read_reg32(d, r);			\
r                 777 drivers/usb/host/isp1362.h 		isp1362_write_reg32(d, r, __v | m);	\
r                 780 drivers/usb/host/isp1362.h #define isp1362_clr_mask32(d, r, m) {			\
r                 782 drivers/usb/host/isp1362.h 	__v = isp1362_read_reg32(d, r);			\
r                 784 drivers/usb/host/isp1362.h 		isp1362_write_reg32(d, r, __v & ~m);	\
r                 787 drivers/usb/host/isp1362.h #define isp1362_show_reg(d, r) {								\
r                 788 drivers/usb/host/isp1362.h 	if ((ISP1362_REG_##r & REG_WIDTH_MASK) == REG_WIDTH_32)			\
r                 789 drivers/usb/host/isp1362.h 		DBG(0, "%-12s[%02x]: %08x\n", #r,					\
r                 790 drivers/usb/host/isp1362.h 			ISP1362_REG_NO(ISP1362_REG_##r), isp1362_read_reg32(d, r));	\
r                 792 drivers/usb/host/isp1362.h 		DBG(0, "%-12s[%02x]:     %04x\n", #r,					\
r                 793 drivers/usb/host/isp1362.h 			ISP1362_REG_NO(ISP1362_REG_##r), isp1362_read_reg16(d, r));	\
r                 427 drivers/usb/host/ohci-pxa27x.c 	struct resource *r;
r                 454 drivers/usb/host/ohci-pxa27x.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 455 drivers/usb/host/ohci-pxa27x.c 	hcd->regs = devm_ioremap_resource(&pdev->dev, r);
r                 460 drivers/usb/host/ohci-pxa27x.c 	hcd->rsrc_start = r->start;
r                 461 drivers/usb/host/ohci-pxa27x.c 	hcd->rsrc_len = resource_size(r);
r                 585 drivers/usb/host/ohci.h #define ohci_readl(o,r)		_ohci_readl(o,r)
r                 586 drivers/usb/host/ohci.h #define ohci_writel(o,v,r)	_ohci_writel(o,v,r)
r                 598 drivers/usb/host/xhci-dbgcap.c 	struct dbc_request	*req = NULL, *r;
r                 628 drivers/usb/host/xhci-dbgcap.c 	list_for_each_entry(r, &dep->list_pending, list_pending) {
r                 629 drivers/usb/host/xhci-dbgcap.c 		if (r->trb_dma == event->trans_event.buffer) {
r                 630 drivers/usb/host/xhci-dbgcap.c 			req = r;
r                 645 drivers/usb/isp1760/isp1760-udc.c 		struct usb_ctrlrequest r;
r                 676 drivers/usb/isp1760/isp1760-udc.c 	if (!req.r.wLength)
r                 678 drivers/usb/isp1760/isp1760-udc.c 	else if (req.r.bRequestType & USB_DIR_IN)
r                 683 drivers/usb/isp1760/isp1760-udc.c 	udc->ep0_dir = req.r.bRequestType & USB_DIR_IN;
r                 684 drivers/usb/isp1760/isp1760-udc.c 	udc->ep0_length = le16_to_cpu(req.r.wLength);
r                 690 drivers/usb/isp1760/isp1760-udc.c 		__func__, req.r.bRequestType, req.r.bRequest,
r                 691 drivers/usb/isp1760/isp1760-udc.c 		le16_to_cpu(req.r.wValue), le16_to_cpu(req.r.wIndex),
r                 692 drivers/usb/isp1760/isp1760-udc.c 		le16_to_cpu(req.r.wLength));
r                 694 drivers/usb/isp1760/isp1760-udc.c 	if ((req.r.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD)
r                 695 drivers/usb/isp1760/isp1760-udc.c 		stall = isp1760_ep0_setup_standard(udc, &req.r);
r                 697 drivers/usb/isp1760/isp1760-udc.c 		stall = udc->driver->setup(&udc->gadget, &req.r) < 0;
r                 307 drivers/usb/misc/iowarrior.c 				int r = wait_event_interruptible(dev->read_wait,
r                 313 drivers/usb/misc/iowarrior.c 				if (r) {
r                1398 drivers/usb/misc/sisusbvga/sisusb.c #define GETREG(r, d) sisusb_read_memio_byte(sisusb, SISUSB_TYPE_IO, r, d)
r                1399 drivers/usb/misc/sisusbvga/sisusb.c #define SETREG(r, d) sisusb_write_memio_byte(sisusb, SISUSB_TYPE_IO, r, d)
r                1400 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREG(r, i, d) sisusb_setidxreg(sisusb, r, i, d)
r                1401 drivers/usb/misc/sisusbvga/sisusb.c #define GETIREG(r, i, d) sisusb_getidxreg(sisusb, r, i, d)
r                1402 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREGOR(r, i, o) sisusb_setidxregor(sisusb, r, i, o)
r                1403 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREGAND(r, i, a) sisusb_setidxregand(sisusb, r, i, a)
r                1404 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREGANDOR(r, i, a, o) sisusb_setidxregandor(sisusb, r, i, a, o)
r                  81 drivers/usb/misc/usblcd.c 	int subminor, r;
r                  98 drivers/usb/misc/usblcd.c 	r = usb_autopm_get_interface(interface);
r                  99 drivers/usb/misc/usblcd.c 	if (r < 0) {
r                 101 drivers/usb/misc/usblcd.c 		return r;
r                 222 drivers/usb/misc/usblcd.c 	int retval = 0, r;
r                 232 drivers/usb/misc/usblcd.c 	r = down_interruptible(&dev->limit_sem);
r                 233 drivers/usb/misc/usblcd.c 	if (r < 0)
r                 197 drivers/usb/mon/mon_bin.c 	struct mon_reader r;
r                 711 drivers/usb/mon/mon_bin.c 	rp->r.m_bus = mbus;
r                 712 drivers/usb/mon/mon_bin.c 	rp->r.r_data = rp;
r                 713 drivers/usb/mon/mon_bin.c 	rp->r.rnf_submit = mon_bin_submit;
r                 714 drivers/usb/mon/mon_bin.c 	rp->r.rnf_error = mon_bin_error;
r                 715 drivers/usb/mon/mon_bin.c 	rp->r.rnf_complete = mon_bin_complete;
r                 717 drivers/usb/mon/mon_bin.c 	mon_reader_add(mbus, &rp->r);
r                 781 drivers/usb/mon/mon_bin.c 	struct mon_bus* mbus = rp->r.m_bus;
r                 790 drivers/usb/mon/mon_bin.c 	mon_reader_del(mbus, &rp->r);
r                  23 drivers/usb/mon/mon_main.c static void mon_bus_drop(struct kref *r);
r                  36 drivers/usb/mon/mon_main.c void mon_reader_add(struct mon_bus *mbus, struct mon_reader *r)
r                  54 drivers/usb/mon/mon_main.c 	list_add_tail(&r->r_link, &mbus->r_list);
r                  65 drivers/usb/mon/mon_main.c void mon_reader_del(struct mon_bus *mbus, struct mon_reader *r)
r                  70 drivers/usb/mon/mon_main.c 	list_del(&r->r_link);
r                  85 drivers/usb/mon/mon_main.c 	struct mon_reader *r;
r                  90 drivers/usb/mon/mon_main.c 		r = list_entry(pos, struct mon_reader, r_link);
r                  91 drivers/usb/mon/mon_main.c 		r->rnf_submit(r->r_data, urb);
r                 112 drivers/usb/mon/mon_main.c 	struct mon_reader *r;
r                 117 drivers/usb/mon/mon_main.c 		r = list_entry(pos, struct mon_reader, r_link);
r                 118 drivers/usb/mon/mon_main.c 		r->rnf_error(r->r_data, urb, error);
r                 139 drivers/usb/mon/mon_main.c 	struct mon_reader *r;
r                 144 drivers/usb/mon/mon_main.c 		r = list_entry(pos, struct mon_reader, r_link);
r                 145 drivers/usb/mon/mon_main.c 		r->rnf_complete(r->r_data, urb, status);
r                 271 drivers/usb/mon/mon_main.c static void mon_bus_drop(struct kref *r)
r                 273 drivers/usb/mon/mon_main.c 	struct mon_bus *mbus = container_of(r, struct mon_bus, ref);
r                  84 drivers/usb/mon/mon_text.c 	struct mon_reader r;	/* In C, parent class can be placed anywhere */
r                 206 drivers/usb/mon/mon_text.c 		rp->r.m_bus->cnt_text_lost++;
r                 250 drivers/usb/mon/mon_text.c 	ep->setup_flag = mon_text_get_setup(ep, urb, ev_type, rp->r.m_bus);
r                 252 drivers/usb/mon/mon_text.c 			rp->r.m_bus);
r                 278 drivers/usb/mon/mon_text.c 		rp->r.m_bus->cnt_text_lost++;
r                 349 drivers/usb/mon/mon_text.c 	rp->r.m_bus = mbus;
r                 350 drivers/usb/mon/mon_text.c 	rp->r.r_data = rp;
r                 351 drivers/usb/mon/mon_text.c 	rp->r.rnf_submit = mon_text_submit;
r                 352 drivers/usb/mon/mon_text.c 	rp->r.rnf_error = mon_text_error;
r                 353 drivers/usb/mon/mon_text.c 	rp->r.rnf_complete = mon_text_complete;
r                 364 drivers/usb/mon/mon_text.c 	mon_reader_add(mbus, &rp->r);
r                 483 drivers/usb/mon/mon_text.c 	struct mon_bus *mbus = rp->r.m_bus;
r                 658 drivers/usb/mon/mon_text.c 	mon_reader_del(mbus, &rp->r);
r                  53 drivers/usb/mon/usb_mon.h void mon_reader_add(struct mon_bus *mbus, struct mon_reader *r);
r                  54 drivers/usb/mon/usb_mon.h void mon_reader_del(struct mon_bus *mbus, struct mon_reader *r);
r                 337 drivers/usb/mtu3/mtu3_gadget.c 	struct mtu3_request *r;
r                 350 drivers/usb/mtu3/mtu3_gadget.c 	list_for_each_entry(r, &mep->req_list, list) {
r                 351 drivers/usb/mtu3/mtu3_gadget.c 		if (r == mreq)
r                 354 drivers/usb/mtu3/mtu3_gadget.c 	if (r != mreq) {
r                 133 drivers/usb/musb/musb_core.c 	u8	r;
r                 161 drivers/usb/musb/musb_core.c 	r = musb_readb(addr, MUSB_ULPI_REG_CONTROL);
r                 162 drivers/usb/musb/musb_core.c 	r &= ~MUSB_ULPI_REG_CMPLT;
r                 163 drivers/usb/musb/musb_core.c 	musb_writeb(addr, MUSB_ULPI_REG_CONTROL, r);
r                 177 drivers/usb/musb/musb_core.c 	u8	r = 0;
r                 201 drivers/usb/musb/musb_core.c 	r = musb_readb(addr, MUSB_ULPI_REG_CONTROL);
r                 202 drivers/usb/musb/musb_core.c 	r &= ~MUSB_ULPI_REG_CMPLT;
r                 203 drivers/usb/musb/musb_core.c 	musb_writeb(addr, MUSB_ULPI_REG_CONTROL, r);
r                 432 drivers/usb/musb/musb_dsps.c 	struct resource *r;
r                 436 drivers/usb/musb/musb_dsps.c 	r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
r                 437 drivers/usb/musb/musb_dsps.c 	reg_base = devm_ioremap_resource(dev, r);
r                1268 drivers/usb/musb/musb_gadget.c 	struct musb_request	*r;
r                1280 drivers/usb/musb/musb_gadget.c 	list_for_each_entry(r, &musb_ep->req_list, list) {
r                1281 drivers/usb/musb/musb_gadget.c 		if (r == req)
r                1284 drivers/usb/musb/musb_gadget.c 	if (r != req) {
r                  63 drivers/usb/musb/musb_gadget.h #define to_musb_request(r)	container_of((r), struct musb_request, request)
r                 581 drivers/usb/musb/musb_gadget_ep0.c 	struct musb_request	*r;
r                 597 drivers/usb/musb/musb_gadget_ep0.c 	r = next_ep0_request(musb);
r                 598 drivers/usb/musb/musb_gadget_ep0.c 	if (r)
r                 599 drivers/usb/musb/musb_gadget_ep0.c 		musb_g_ep0_giveback(musb, &r->request);
r                 907 drivers/usb/musb/musb_gadget_ep0.c musb_g_ep0_queue(struct usb_ep *e, struct usb_request *r, gfp_t gfp_flags)
r                 916 drivers/usb/musb/musb_gadget_ep0.c 	if (!e || !r)
r                 923 drivers/usb/musb/musb_gadget_ep0.c 	req = to_musb_request(r);
r                 971 drivers/usb/musb/musb_gadget_ep0.c 			musb_g_ep0_giveback(ep->musb, r);
r                 670 drivers/usb/phy/phy-mv-usb.c 	struct resource *r;
r                 719 drivers/usb/phy/phy-mv-usb.c 	r = platform_get_resource_byname(mvotg->pdev,
r                 721 drivers/usb/phy/phy-mv-usb.c 	if (r == NULL) {
r                 727 drivers/usb/phy/phy-mv-usb.c 	mvotg->phy_regs = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 734 drivers/usb/phy/phy-mv-usb.c 	r = platform_get_resource_byname(mvotg->pdev,
r                 736 drivers/usb/phy/phy-mv-usb.c 	if (r == NULL) {
r                 742 drivers/usb/phy/phy-mv-usb.c 	mvotg->cap_regs = devm_ioremap(&pdev->dev, r->start, resource_size(r));
r                 791 drivers/usb/phy/phy-mv-usb.c 	r = platform_get_resource(mvotg->pdev, IORESOURCE_IRQ, 0);
r                 792 drivers/usb/phy/phy-mv-usb.c 	if (r == NULL) {
r                 798 drivers/usb/phy/phy-mv-usb.c 	mvotg->irq = r->start;
r                 279 drivers/usb/phy/phy-tahvo.c 	int r;
r                 293 drivers/usb/phy/phy-tahvo.c 		r = strlen(buf);
r                 305 drivers/usb/phy/phy-tahvo.c 		r = strlen(buf);
r                 307 drivers/usb/phy/phy-tahvo.c 		r = -EINVAL;
r                 311 drivers/usb/phy/phy-tahvo.c 	return r;
r                 580 drivers/usb/phy/phy.c 	int r;
r                 582 drivers/usb/phy/phy.c 	r = devres_destroy(dev, devm_usb_phy_release, devm_usb_phy_match, phy);
r                 583 drivers/usb/phy/phy.c 	dev_WARN_ONCE(dev, r, "couldn't find PHY resource\n");
r                  90 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_req_to_ureq(r)\
r                  91 drivers/usb/renesas_usbhs/mod_gadget.c 	container_of(r, struct usbhsg_request, req)
r                 106 drivers/usb/serial/ch341.c 	int r;
r                 111 drivers/usb/serial/ch341.c 	r = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request,
r                 114 drivers/usb/serial/ch341.c 	if (r < 0)
r                 115 drivers/usb/serial/ch341.c 		dev_err(&dev->dev, "failed to send control message: %d\n", r);
r                 117 drivers/usb/serial/ch341.c 	return r;
r                 124 drivers/usb/serial/ch341.c 	int r;
r                 129 drivers/usb/serial/ch341.c 	r = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), request,
r                 132 drivers/usb/serial/ch341.c 	if (r < (int)bufsize) {
r                 133 drivers/usb/serial/ch341.c 		if (r >= 0) {
r                 136 drivers/usb/serial/ch341.c 				r, bufsize);
r                 137 drivers/usb/serial/ch341.c 			r = -EIO;
r                 141 drivers/usb/serial/ch341.c 			r);
r                 142 drivers/usb/serial/ch341.c 		return r;
r                 152 drivers/usb/serial/ch341.c 	int r;
r                 178 drivers/usb/serial/ch341.c 	r = ch341_control_out(dev, CH341_REQ_WRITE_REG, 0x1312, a);
r                 179 drivers/usb/serial/ch341.c 	if (r)
r                 180 drivers/usb/serial/ch341.c 		return r;
r                 182 drivers/usb/serial/ch341.c 	r = ch341_control_out(dev, CH341_REQ_WRITE_REG, 0x2518, lcr);
r                 183 drivers/usb/serial/ch341.c 	if (r)
r                 184 drivers/usb/serial/ch341.c 		return r;
r                 186 drivers/usb/serial/ch341.c 	return r;
r                 198 drivers/usb/serial/ch341.c 	int r;
r                 205 drivers/usb/serial/ch341.c 	r = ch341_control_in(dev, CH341_REQ_READ_REG, 0x0706, 0, buffer, size);
r                 206 drivers/usb/serial/ch341.c 	if (r < 0)
r                 214 drivers/usb/serial/ch341.c 	return r;
r                 223 drivers/usb/serial/ch341.c 	int r;
r                 230 drivers/usb/serial/ch341.c 	r = ch341_control_in(dev, CH341_REQ_READ_VERSION, 0, 0, buffer, size);
r                 231 drivers/usb/serial/ch341.c 	if (r < 0)
r                 235 drivers/usb/serial/ch341.c 	r = ch341_control_out(dev, CH341_REQ_SERIAL_INIT, 0, 0);
r                 236 drivers/usb/serial/ch341.c 	if (r < 0)
r                 239 drivers/usb/serial/ch341.c 	r = ch341_set_baudrate_lcr(dev, priv, priv->lcr);
r                 240 drivers/usb/serial/ch341.c 	if (r < 0)
r                 243 drivers/usb/serial/ch341.c 	r = ch341_set_handshake(dev, priv->mcr);
r                 246 drivers/usb/serial/ch341.c 	return r;
r                 256 drivers/usb/serial/ch341.c 	int r;
r                 268 drivers/usb/serial/ch341.c 	r = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), CH341_REQ_READ_REG,
r                 271 drivers/usb/serial/ch341.c 	if (r == -EPIPE) {
r                 273 drivers/usb/serial/ch341.c 		r = 0;
r                 277 drivers/usb/serial/ch341.c 	if (r != size) {
r                 278 drivers/usb/serial/ch341.c 		if (r >= 0)
r                 279 drivers/usb/serial/ch341.c 			r = -EIO;
r                 280 drivers/usb/serial/ch341.c 		dev_err(&port->dev, "failed to read break control: %d\n", r);
r                 284 drivers/usb/serial/ch341.c 	r = 0;
r                 293 drivers/usb/serial/ch341.c 	return r;
r                 299 drivers/usb/serial/ch341.c 	int r;
r                 313 drivers/usb/serial/ch341.c 	r = ch341_configure(port->serial->dev, priv);
r                 314 drivers/usb/serial/ch341.c 	if (r < 0)
r                 319 drivers/usb/serial/ch341.c 	r = ch341_detect_quirks(port);
r                 320 drivers/usb/serial/ch341.c 	if (r < 0)
r                 326 drivers/usb/serial/ch341.c 	return r;
r                 373 drivers/usb/serial/ch341.c 	int r;
r                 379 drivers/usb/serial/ch341.c 	r = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL);
r                 380 drivers/usb/serial/ch341.c 	if (r) {
r                 382 drivers/usb/serial/ch341.c 			__func__, r);
r                 383 drivers/usb/serial/ch341.c 		return r;
r                 386 drivers/usb/serial/ch341.c 	r = ch341_get_status(port->serial->dev, priv);
r                 387 drivers/usb/serial/ch341.c 	if (r < 0) {
r                 388 drivers/usb/serial/ch341.c 		dev_err(&port->dev, "failed to read modem status: %d\n", r);
r                 392 drivers/usb/serial/ch341.c 	r = usb_serial_generic_open(tty, port);
r                 393 drivers/usb/serial/ch341.c 	if (r)
r                 401 drivers/usb/serial/ch341.c 	return r;
r                 414 drivers/usb/serial/ch341.c 	int r;
r                 453 drivers/usb/serial/ch341.c 		r = ch341_set_baudrate_lcr(port->serial->dev, priv, lcr);
r                 454 drivers/usb/serial/ch341.c 		if (r < 0 && old_termios) {
r                 457 drivers/usb/serial/ch341.c 		} else if (r == 0) {
r                 477 drivers/usb/serial/ch341.c 	int r;
r                 485 drivers/usb/serial/ch341.c 	r = ch341_control_in(port->serial->dev, CH341_REQ_READ_REG,
r                 487 drivers/usb/serial/ch341.c 	if (r < 0) {
r                 489 drivers/usb/serial/ch341.c 				__func__, r);
r                 506 drivers/usb/serial/ch341.c 	r = ch341_control_out(port->serial->dev, CH341_REQ_WRITE_REG,
r                 508 drivers/usb/serial/ch341.c 	if (r < 0)
r                 510 drivers/usb/serial/ch341.c 				__func__, r);
r                  64 drivers/usb/serial/empeg.c 	int r;
r                  72 drivers/usb/serial/empeg.c 	r = usb_reset_configuration(serial->dev);
r                  75 drivers/usb/serial/empeg.c 	return r;
r                 603 drivers/usb/serial/f81232.c 	int r;
r                 616 drivers/usb/serial/f81232.c 	r = (mcr & UART_MCR_DTR ? TIOCM_DTR : 0) |
r                 623 drivers/usb/serial/f81232.c 	return r;
r                1448 drivers/usb/serial/f81534.c 	int r;
r                1461 drivers/usb/serial/f81534.c 	r = (mcr & UART_MCR_DTR ? TIOCM_DTR : 0) |
r                1468 drivers/usb/serial/f81534.c 	return r;
r                 639 drivers/usb/serial/generic.c 	int i, c = 0, r;
r                 647 drivers/usb/serial/generic.c 			r = usb_serial_generic_submit_read_urbs(port,
r                 649 drivers/usb/serial/generic.c 			if (r < 0)
r                 654 drivers/usb/serial/generic.c 			r = usb_serial_generic_write_start(port, GFP_NOIO);
r                 655 drivers/usb/serial/generic.c 			if (r < 0)
r                1263 drivers/usb/serial/mxuport.c 	int r;
r                1268 drivers/usb/serial/mxuport.c 		r = usb_serial_generic_submit_read_urbs(port, GFP_NOIO);
r                1269 drivers/usb/serial/mxuport.c 		if (r < 0)
r                1278 drivers/usb/serial/mxuport.c 		r = usb_serial_generic_write_start(port, GFP_NOIO);
r                1279 drivers/usb/serial/mxuport.c 		if (r < 0)
r                 764 drivers/usb/serial/quatech2.c 	int r;
r                 770 drivers/usb/serial/quatech2.c 	r = qt2_getregister(dev, port_priv->device_port, UART_MCR, d);
r                 771 drivers/usb/serial/quatech2.c 	if (r < 0)
r                 774 drivers/usb/serial/quatech2.c 	r = qt2_getregister(dev, port_priv->device_port, UART_MSR, d + 1);
r                 775 drivers/usb/serial/quatech2.c 	if (r < 0)
r                 778 drivers/usb/serial/quatech2.c 	r = (d[0] & UART_MCR_DTR ? TIOCM_DTR : 0) |
r                 787 drivers/usb/serial/quatech2.c 	return r;
r                 911 drivers/usb/serial/quatech2.c 	int r;
r                 918 drivers/usb/serial/quatech2.c 		r = 0;
r                 920 drivers/usb/serial/quatech2.c 		r = QT2_WRITE_BUFFER_SIZE - QT2_WRITE_CONTROL_SIZE;
r                 924 drivers/usb/serial/quatech2.c 	return r;
r                 384 drivers/usb/serial/ssu100.c 	int r;
r                 390 drivers/usb/serial/ssu100.c 	r = ssu100_getregister(dev, 0, UART_MCR, d);
r                 391 drivers/usb/serial/ssu100.c 	if (r < 0)
r                 394 drivers/usb/serial/ssu100.c 	r = ssu100_getregister(dev, 0, UART_MSR, d+1);
r                 395 drivers/usb/serial/ssu100.c 	if (r < 0)
r                 398 drivers/usb/serial/ssu100.c 	r = (d[0] & UART_MCR_DTR ? TIOCM_DTR : 0) |
r                 407 drivers/usb/serial/ssu100.c 	return r;
r                1115 drivers/usb/serial/usb-serial.c 	int i, r = 0;
r                1125 drivers/usb/serial/usb-serial.c 		r = serial->type->suspend(serial, message);
r                1126 drivers/usb/serial/usb-serial.c 		if (r < 0) {
r                1135 drivers/usb/serial/usb-serial.c 	return r;
r                  64 drivers/usb/storage/uas-detect.h 	int r;
r                  70 drivers/usb/storage/uas-detect.h 	r = uas_find_endpoints(alt, eps);
r                  71 drivers/usb/storage/uas-detect.h 	if (r < 0)
r                 938 drivers/usb/storage/uas.c 	int r;
r                 940 drivers/usb/storage/uas.c 	r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps);
r                 941 drivers/usb/storage/uas.c 	if (r)
r                 942 drivers/usb/storage/uas.c 		return r;
r                1049 drivers/usb/storage/uas.c 	int i, r = 1;
r                1055 drivers/usb/storage/uas.c 			r = 0; /* Not empty */
r                1062 drivers/usb/storage/uas.c 	return r;
r                1073 drivers/usb/storage/uas.c 	int r;
r                1079 drivers/usb/storage/uas.c 		r = usb_wait_anchor_empty_timeout(&devinfo->sense_urbs, 5000);
r                1080 drivers/usb/storage/uas.c 		if (r == 0)
r                1083 drivers/usb/storage/uas.c 		r = usb_wait_anchor_empty_timeout(&devinfo->data_urbs, 500);
r                1084 drivers/usb/storage/uas.c 		if (r == 0)
r                  80 drivers/usb/typec/tcpm/wcove.c #define USBC_STATUS1_RSLT(r)		((r) & 0xf)
r                  89 drivers/usb/typec/tcpm/wcove.c #define USBC_STATUS1_ORIENT(r)		(((r) >> 4) & 0x3)
r                 100 drivers/usb/typec/tcpm/wcove.c #define UCSC_CC_STATUS_RX(r)		(((r) >> 5) & 0x3)
r                  31 drivers/vfio/platform/vfio_platform.c 		struct resource *r = &dev->resource[i];
r                  33 drivers/vfio/platform/vfio_platform.c 		if (resource_type(r) & (IORESOURCE_MEM|IORESOURCE_IO)) {
r                  35 drivers/vfio/platform/vfio_platform.c 				return r;
r                 251 drivers/vhost/net.c 	int r = atomic_sub_return(1, &ubufs->refcount);
r                 252 drivers/vhost/net.c 	if (unlikely(!r))
r                 254 drivers/vhost/net.c 	return r;
r                 568 drivers/vhost/net.c 	int r = vhost_get_vq_desc(tvq, tvq->iov, ARRAY_SIZE(tvq->iov),
r                 571 drivers/vhost/net.c 	if (r == tvq->num && tvq->busyloop_timeout) {
r                 578 drivers/vhost/net.c 		r = vhost_get_vq_desc(tvq, tvq->iov, ARRAY_SIZE(tvq->iov),
r                 582 drivers/vhost/net.c 	return r;
r                1038 drivers/vhost/net.c 	int r, nlogs = 0;
r                1046 drivers/vhost/net.c 			r = -ENOBUFS;
r                1049 drivers/vhost/net.c 		r = vhost_get_vq_desc(vq, vq->iov + seg,
r                1052 drivers/vhost/net.c 		if (unlikely(r < 0))
r                1055 drivers/vhost/net.c 		d = r;
r                1057 drivers/vhost/net.c 			r = 0;
r                1063 drivers/vhost/net.c 			r = -EINVAL;
r                1084 drivers/vhost/net.c 		r = UIO_MAXIOV + 1;
r                1090 drivers/vhost/net.c 	return r;
r                1417 drivers/vhost/net.c 	int r;
r                1418 drivers/vhost/net.c 	struct socket *sock = sockfd_lookup(fd, &r);
r                1425 drivers/vhost/net.c 		r = -ESOCKTNOSUPPORT;
r                1430 drivers/vhost/net.c 		r = -EPFNOSUPPORT;
r                1436 drivers/vhost/net.c 	return ERR_PTR(r);
r                1496 drivers/vhost/net.c 	int r;
r                1499 drivers/vhost/net.c 	r = vhost_dev_check_owner(&n->dev);
r                1500 drivers/vhost/net.c 	if (r)
r                1504 drivers/vhost/net.c 		r = -ENOBUFS;
r                1513 drivers/vhost/net.c 		r = -EFAULT;
r                1518 drivers/vhost/net.c 		r = PTR_ERR(sock);
r                1528 drivers/vhost/net.c 			r = PTR_ERR(ubufs);
r                1535 drivers/vhost/net.c 		r = vhost_vq_init_access(vq);
r                1536 drivers/vhost/net.c 		if (r)
r                1538 drivers/vhost/net.c 		r = vhost_net_enable_vq(n, vq);
r                1539 drivers/vhost/net.c 		if (r)
r                1581 drivers/vhost/net.c 	return r;
r                1674 drivers/vhost/net.c 	int r;
r                1678 drivers/vhost/net.c 		r = -EBUSY;
r                1681 drivers/vhost/net.c 	r = vhost_net_set_ubuf_info(n);
r                1682 drivers/vhost/net.c 	if (r)
r                1684 drivers/vhost/net.c 	r = vhost_dev_set_owner(&n->dev);
r                1685 drivers/vhost/net.c 	if (r)
r                1690 drivers/vhost/net.c 	return r;
r                1701 drivers/vhost/net.c 	int r;
r                1736 drivers/vhost/net.c 		r = vhost_dev_ioctl(&n->dev, ioctl, argp);
r                1737 drivers/vhost/net.c 		if (r == -ENOIOCTLCMD)
r                1738 drivers/vhost/net.c 			r = vhost_vring_ioctl(&n->dev, ioctl, argp);
r                1742 drivers/vhost/net.c 		return r;
r                1603 drivers/vhost/scsi.c 	int r = -ENOMEM, i;
r                1641 drivers/vhost/scsi.c 	return r;
r                1674 drivers/vhost/scsi.c 	int r, abi_version = VHOST_SCSI_ABI_VERSION;
r                1721 drivers/vhost/scsi.c 		r = vhost_dev_ioctl(&vs->dev, ioctl, argp);
r                1723 drivers/vhost/scsi.c 		if (r == -ENOIOCTLCMD)
r                1724 drivers/vhost/scsi.c 			r = vhost_vring_ioctl(&vs->dev, ioctl, argp);
r                1726 drivers/vhost/scsi.c 		return r;
r                 177 drivers/vhost/test.c 	int r, index;
r                 183 drivers/vhost/test.c 	r = vhost_dev_check_owner(&n->dev);
r                 184 drivers/vhost/test.c 	if (r)
r                 190 drivers/vhost/test.c 			r = -EFAULT;
r                 204 drivers/vhost/test.c 		r = vhost_vq_init_access(&n->vqs[index]);
r                 208 drivers/vhost/test.c 		if (r)
r                 221 drivers/vhost/test.c 	return r;
r                 274 drivers/vhost/test.c 	int r;
r                 298 drivers/vhost/test.c 		r = vhost_dev_ioctl(&n->dev, ioctl, argp);
r                 299 drivers/vhost/test.c                 if (r == -ENOIOCTLCMD)
r                 300 drivers/vhost/test.c                         r = vhost_vring_ioctl(&n->dev, ioctl, argp);
r                 303 drivers/vhost/test.c 		return r;
r                1566 drivers/vhost/vhost.c 	long r;
r                1572 drivers/vhost/vhost.c 		r = vhost_vring_set_num(d, vq, argp);
r                1575 drivers/vhost/vhost.c 		r = vhost_vring_set_addr(d, vq, argp);
r                1583 drivers/vhost/vhost.c 	return r;
r                1595 drivers/vhost/vhost.c 	long r;
r                1597 drivers/vhost/vhost.c 	r = get_user(idx, idxp);
r                1598 drivers/vhost/vhost.c 	if (r < 0)
r                1599 drivers/vhost/vhost.c 		return r;
r                1618 drivers/vhost/vhost.c 			r = -EBUSY;
r                1622 drivers/vhost/vhost.c 			r = -EFAULT;
r                1626 drivers/vhost/vhost.c 			r = -EINVAL;
r                1637 drivers/vhost/vhost.c 			r = -EFAULT;
r                1641 drivers/vhost/vhost.c 			r = -EFAULT;
r                1646 drivers/vhost/vhost.c 			r = PTR_ERR(eventfp);
r                1657 drivers/vhost/vhost.c 			r = -EFAULT;
r                1662 drivers/vhost/vhost.c 			r = PTR_ERR(ctx);
r                1669 drivers/vhost/vhost.c 			r = -EFAULT;
r                1674 drivers/vhost/vhost.c 			r = PTR_ERR(ctx);
r                1680 drivers/vhost/vhost.c 		r = vhost_set_vring_endian(vq, argp);
r                1683 drivers/vhost/vhost.c 		r = vhost_get_vring_endian(vq, idx, argp);
r                1687 drivers/vhost/vhost.c 			r = -EFAULT;
r                1696 drivers/vhost/vhost.c 			r = -EFAULT;
r                1699 drivers/vhost/vhost.c 		r = -ENOIOCTLCMD;
r                1711 drivers/vhost/vhost.c 		r = vhost_poll_start(&vq->poll, vq->kick);
r                1717 drivers/vhost/vhost.c 	return r;
r                1753 drivers/vhost/vhost.c 	long r;
r                1758 drivers/vhost/vhost.c 		r = vhost_dev_set_owner(d);
r                1763 drivers/vhost/vhost.c 	r = vhost_dev_check_owner(d);
r                1764 drivers/vhost/vhost.c 	if (r)
r                1769 drivers/vhost/vhost.c 		r = vhost_set_memory(d, argp);
r                1773 drivers/vhost/vhost.c 			r = -EFAULT;
r                1777 drivers/vhost/vhost.c 			r = -EFAULT;
r                1787 drivers/vhost/vhost.c 				r = -EFAULT;
r                1794 drivers/vhost/vhost.c 		r = get_user(fd, (int __user *)argp);
r                1795 drivers/vhost/vhost.c 		if (r < 0)
r                1799 drivers/vhost/vhost.c 			r = PTR_ERR(ctx);
r                1812 drivers/vhost/vhost.c 		r = -ENOIOCTLCMD;
r                1816 drivers/vhost/vhost.c 	return r;
r                1830 drivers/vhost/vhost.c 	int r;
r                1832 drivers/vhost/vhost.c 	r = get_user_pages_fast(log, 1, FOLL_WRITE, &page);
r                1833 drivers/vhost/vhost.c 	if (r < 0)
r                1834 drivers/vhost/vhost.c 		return r;
r                1835 drivers/vhost/vhost.c 	BUG_ON(r != 1);
r                1848 drivers/vhost/vhost.c 	int r;
r                1859 drivers/vhost/vhost.c 		r = set_bit_to_user(bit, (void __user *)(unsigned long)log);
r                1860 drivers/vhost/vhost.c 		if (r < 0)
r                1861 drivers/vhost/vhost.c 			return r;
r                1867 drivers/vhost/vhost.c 	return r;
r                1875 drivers/vhost/vhost.c 	int r;
r                1891 drivers/vhost/vhost.c 			r = log_write(vq->log_base,
r                1894 drivers/vhost/vhost.c 			if (r < 0)
r                1895 drivers/vhost/vhost.c 				return r;
r                1936 drivers/vhost/vhost.c 	int i, r;
r                1943 drivers/vhost/vhost.c 			r = log_write_hva(vq, (uintptr_t)iov[i].iov_base,
r                1945 drivers/vhost/vhost.c 			if (r < 0)
r                1946 drivers/vhost/vhost.c 				return r;
r                1953 drivers/vhost/vhost.c 		r = log_write(vq->log_base, log[i].addr, l);
r                1954 drivers/vhost/vhost.c 		if (r < 0)
r                1955 drivers/vhost/vhost.c 			return r;
r                2008 drivers/vhost/vhost.c 	int r;
r                2016 drivers/vhost/vhost.c 	r = vhost_update_used_flags(vq);
r                2017 drivers/vhost/vhost.c 	if (r)
r                2022 drivers/vhost/vhost.c 		r = -EFAULT;
r                2025 drivers/vhost/vhost.c 	r = vhost_get_used_idx(vq, &last_used_idx);
r                2026 drivers/vhost/vhost.c 	if (r) {
r                2036 drivers/vhost/vhost.c 	return r;
r                2406 drivers/vhost/vhost.c 	int start, n, r;
r                2411 drivers/vhost/vhost.c 		r = __vhost_add_used_n(vq, heads, n);
r                2412 drivers/vhost/vhost.c 		if (r < 0)
r                2413 drivers/vhost/vhost.c 			return r;
r                2417 drivers/vhost/vhost.c 	r = __vhost_add_used_n(vq, heads, count);
r                2434 drivers/vhost/vhost.c 	return r;
r                2508 drivers/vhost/vhost.c 	int r;
r                2513 drivers/vhost/vhost.c 	r = vhost_get_avail_idx(vq, &avail_idx);
r                2514 drivers/vhost/vhost.c 	if (unlikely(r))
r                2526 drivers/vhost/vhost.c 	int r;
r                2532 drivers/vhost/vhost.c 		r = vhost_update_used_flags(vq);
r                2533 drivers/vhost/vhost.c 		if (r) {
r                2535 drivers/vhost/vhost.c 			       &vq->used->flags, r);
r                2539 drivers/vhost/vhost.c 		r = vhost_update_avail_event(vq, vq->avail_idx);
r                2540 drivers/vhost/vhost.c 		if (r) {
r                2542 drivers/vhost/vhost.c 			       vhost_avail_event(vq), r);
r                2549 drivers/vhost/vhost.c 	r = vhost_get_avail_idx(vq, &avail_idx);
r                2550 drivers/vhost/vhost.c 	if (r) {
r                2552 drivers/vhost/vhost.c 		       &vq->avail->idx, r);
r                2563 drivers/vhost/vhost.c 	int r;
r                2569 drivers/vhost/vhost.c 		r = vhost_update_used_flags(vq);
r                2570 drivers/vhost/vhost.c 		if (r)
r                2572 drivers/vhost/vhost.c 			       &vq->used->flags, r);
r                 228 drivers/vhost/vringh.c 				      struct vringh_range *r),
r                 654 drivers/vhost/vringh.c 					 u64 addr, struct vringh_range *r),
r                 736 drivers/vhost/vsock.c 	int r;
r                 761 drivers/vhost/vsock.c 		r = vhost_dev_ioctl(&vsock->dev, ioctl, argp);
r                 762 drivers/vhost/vsock.c 		if (r == -ENOIOCTLCMD)
r                 763 drivers/vhost/vsock.c 			r = vhost_vring_ioctl(&vsock->dev, ioctl, argp);
r                 767 drivers/vhost/vsock.c 		return r;
r                 479 drivers/video/backlight/backlight.c 	struct backlight_device **r = res;
r                 481 drivers/video/backlight/backlight.c 	return *r == data;
r                 257 drivers/video/backlight/lcd.c 	struct lcd_device **r = res;
r                 259 drivers/video/backlight/lcd.c 	return *r == data;
r                  44 drivers/video/backlight/pandora_bl.c 	u8 r;
r                  61 drivers/video/backlight/pandora_bl.c 		twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_GPBR1);
r                  62 drivers/video/backlight/pandora_bl.c 		r &= ~PWM0_ENABLE;
r                  63 drivers/video/backlight/pandora_bl.c 		twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1);
r                  64 drivers/video/backlight/pandora_bl.c 		r &= ~PWM0_CLK_ENABLE;
r                  65 drivers/video/backlight/pandora_bl.c 		twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1);
r                  78 drivers/video/backlight/pandora_bl.c 		twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_GPBR1);
r                  79 drivers/video/backlight/pandora_bl.c 		r &= ~PWM0_ENABLE;
r                  80 drivers/video/backlight/pandora_bl.c 		r |= PWM0_CLK_ENABLE;
r                  81 drivers/video/backlight/pandora_bl.c 		twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1);
r                  82 drivers/video/backlight/pandora_bl.c 		r |= PWM0_ENABLE;
r                  83 drivers/video/backlight/pandora_bl.c 		twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1);
r                 114 drivers/video/backlight/pandora_bl.c 	u8 r;
r                 142 drivers/video/backlight/pandora_bl.c 	twl_i2c_read_u8(TWL4030_MODULE_INTBR, &r, TWL_INTBR_PMBR1);
r                 143 drivers/video/backlight/pandora_bl.c 	r &= ~TWL_PMBR1_PWM0_MUXMASK;
r                 144 drivers/video/backlight/pandora_bl.c 	r |= TWL_PMBR1_PWM0;
r                 145 drivers/video/backlight/pandora_bl.c 	twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_PMBR1);
r                 410 drivers/video/fbdev/arkfb.c 	u16 m, n, r;
r                 415 drivers/video/fbdev/arkfb.c 				  freq, &m, &n, &r, 0);
r                 420 drivers/video/fbdev/arkfb.c 		u8 code[6] = {4, 3, 5, m-2, 5, (n-2) | (r << 5)};
r                  80 drivers/video/fbdev/atafb.c #define up(x, r) (((x) + (r) - 1) & ~((r)-1))
r                 824 drivers/video/fbdev/au1200fb.c 		long r, pc = panel->lcdclk * 1000000;
r                 827 drivers/video/fbdev/au1200fb.c 			r = clk_round_rate(c, pc);
r                 828 drivers/video/fbdev/au1200fb.c 			if ((pc - r) < (pc / 10)) {	/* 10% slack */
r                 829 drivers/video/fbdev/au1200fb.c 				clk_set_rate(c, r);
r                  98 drivers/video/fbdev/bt431.h 	volatile u16 *r = &(regs->addr_reg);
r                 101 drivers/video/fbdev/bt431.h 	return bt431_get_value(*r);
r                 110 drivers/video/fbdev/bt431.h 	volatile u16 *r = &(regs->addr_reg);
r                 113 drivers/video/fbdev/bt431.h 	*r = bt431_set_value(value);
r                 135 drivers/video/fbdev/bt431.h 	volatile u16 *r = &(regs->addr_cmap);
r                 138 drivers/video/fbdev/bt431.h 	return *r;
r                 147 drivers/video/fbdev/bt431.h 	volatile u16 *r = &(regs->addr_cmap);
r                 150 drivers/video/fbdev/bt431.h 	*r = value;
r                 117 drivers/video/fbdev/controlfb.c #define CNTRL_REG(INFO,REG) (&(((INFO)->control_regs->REG).r))
r                 348 drivers/video/fbdev/controlfb.c 	__u8 r, g, b;
r                 353 drivers/video/fbdev/controlfb.c 	r = red >> 8;
r                 358 drivers/video/fbdev/controlfb.c 	out_8(&p->cmap_regs->lut, r);		/* send one color channel at	*/
r                 478 drivers/video/fbdev/controlfb.c 	struct control_regvals	*r;
r                 496 drivers/video/fbdev/controlfb.c 	r = &par->regvals;
r                 501 drivers/video/fbdev/controlfb.c 	set_control_clock(r->clock_params);
r                 503 drivers/video/fbdev/controlfb.c 	RADACAL_WRITE(0x20, r->radacal_ctrl);
r                 510 drivers/video/fbdev/controlfb.c 		out_le32(&rp->r, r->regs[i]);
r                 513 drivers/video/fbdev/controlfb.c 	out_le32(CNTRL_REG(p,mode), r->mode);
r                 827 drivers/video/fbdev/controlfb.c 	struct control_regvals *r = &par->regvals;
r                 833 drivers/video/fbdev/controlfb.c 			r->mode = 3;
r                 834 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x20;
r                 837 drivers/video/fbdev/controlfb.c 			r->mode = 2;
r                 838 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x10;
r                 846 drivers/video/fbdev/controlfb.c 			r->mode = 2;
r                 847 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x24;
r                 850 drivers/video/fbdev/controlfb.c 			r->mode = 1;
r                 851 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x14;
r                 858 drivers/video/fbdev/controlfb.c 			r->mode = 1;
r                 859 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x28;
r                 861 drivers/video/fbdev/controlfb.c 			r->mode = 0;
r                 862 drivers/video/fbdev/controlfb.c 			r->radacal_ctrl = 0x18;
r                 900 drivers/video/fbdev/controlfb.c 	if (calc_clock_params(pixclock, r->clock_params))
r                 922 drivers/video/fbdev/controlfb.c 	r->regs[0] = vswin;
r                 923 drivers/video/fbdev/controlfb.c 	r->regs[1] = vsblank;
r                 924 drivers/video/fbdev/controlfb.c 	r->regs[2] = veblank;
r                 925 drivers/video/fbdev/controlfb.c 	r->regs[3] = vewin;
r                 926 drivers/video/fbdev/controlfb.c 	r->regs[4] = vesync;
r                 927 drivers/video/fbdev/controlfb.c 	r->regs[5] = vssync;
r                 928 drivers/video/fbdev/controlfb.c 	r->regs[6] = vperiod;
r                 929 drivers/video/fbdev/controlfb.c 	r->regs[7] = piped;
r                 930 drivers/video/fbdev/controlfb.c 	r->regs[8] = hperiod;
r                 931 drivers/video/fbdev/controlfb.c 	r->regs[9] = hsblank;
r                 932 drivers/video/fbdev/controlfb.c 	r->regs[10] = heblank;
r                 933 drivers/video/fbdev/controlfb.c 	r->regs[11] = hesync;
r                 934 drivers/video/fbdev/controlfb.c 	r->regs[12] = hssync;
r                 935 drivers/video/fbdev/controlfb.c 	r->regs[13] = heq;
r                 936 drivers/video/fbdev/controlfb.c 	r->regs[14] = hlfln;
r                 937 drivers/video/fbdev/controlfb.c 	r->regs[15] = hserr;
r                  36 drivers/video/fbdev/controlfb.h 	unsigned r;
r                 332 drivers/video/fbdev/core/cfbfillrect.c 		int right, r;
r                 357 drivers/video/fbdev/core/cfbfillrect.c 			r = dst_idx % bpp;
r                 359 drivers/video/fbdev/core/cfbfillrect.c 			pat2 = le_long_to_cpu(rolx(cpu_to_le_long(pat), r, bpp));
r                 608 drivers/video/fbdev/core/fbcon.c 	unsigned short *save = NULL, *r, *q;
r                 627 drivers/video/fbdev/core/fbcon.c 	for (r = q - logo_lines * cols; r < q; r++)
r                 628 drivers/video/fbdev/core/fbcon.c 		if (scr_readw(r) != vc->vc_video_erase_char)
r                 630 drivers/video/fbdev/core/fbcon.c 	if (r != q && new_rows >= rows + logo_lines) {
r                 636 drivers/video/fbdev/core/fbcon.c 			r = q - step;
r                 637 drivers/video/fbdev/core/fbcon.c 			for (cnt = 0; cnt < logo_lines; cnt++, r += i)
r                 638 drivers/video/fbdev/core/fbcon.c 				scr_memcpyw(save + cnt * new_cols, r, 2 * i);
r                 639 drivers/video/fbdev/core/fbcon.c 			r = q;
r                 642 drivers/video/fbdev/core/fbcon.c 	if (r == q) {
r                 644 drivers/video/fbdev/core/fbcon.c 		r = q - step - cols;
r                 646 drivers/video/fbdev/core/fbcon.c 			scr_memcpyw(r + step, r, vc->vc_size_row);
r                 647 drivers/video/fbdev/core/fbcon.c 			r -= cols;
r                 253 drivers/video/fbdev/core/fbcon.h #define FBCON_SWAP(i,r,v) ({ \
r                 254 drivers/video/fbdev/core/fbcon.h         typeof(r) _r = (r);  \
r                 381 drivers/video/fbdev/core/svgalib.c int svga_compute_pll(const struct svga_pll *pll, u32 f_wanted, u16 *m, u16 *n, u16 *r, int node)
r                 410 drivers/video/fbdev/core/svgalib.c 	*r = ar;
r                 434 drivers/video/fbdev/core/svgalib.c 	pr_debug("fb%d: m = %d n = %d r = %d\n", node, (unsigned int) *m, (unsigned int) *n, (unsigned int) *r);
r                 295 drivers/video/fbdev/core/sysfillrect.c 		int right, r;
r                 321 drivers/video/fbdev/core/sysfillrect.c 			r = dst_idx % bpp;
r                 323 drivers/video/fbdev/core/sysfillrect.c 			pat2 = le_long_to_cpu(rolx(cpu_to_le_long(pat), r, bpp));
r                 103 drivers/video/fbdev/efifb.c 	u8 r, g, b;
r                 108 drivers/video/fbdev/efifb.c 		r = *src++;
r                 109 drivers/video/fbdev/efifb.c 		*dst++ = (r << si->red_pos)   |
r                 179 drivers/video/fbdev/goldfishfb.c 	struct resource *r;
r                 194 drivers/video/fbdev/goldfishfb.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 195 drivers/video/fbdev/goldfishfb.c 	if (r == NULL) {
r                 199 drivers/video/fbdev/goldfishfb.c 	fb->reg_base = ioremap(r->start, PAGE_SIZE);
r                 864 drivers/video/fbdev/i740fb.c 	u32 r, g, b;
r                 881 drivers/video/fbdev/i740fb.c 		r = (red >> (16 - info->var.red.length))
r                 887 drivers/video/fbdev/i740fb.c 		((u32 *) info->pseudo_palette)[regno] = r | g | b;
r                1312 drivers/video/fbdev/i810/i810_main.c 		u8 r, g, b;
r                1320 drivers/video/fbdev/i810/i810_main.c 		i810_read_dac((u8) (regno*4), &r, &g, &b, mmio);
r                1322 drivers/video/fbdev/i810/i810_main.c 			i810_write_dac((u8) (regno*4) + i, r, (u8) green, 
r                 216 drivers/video/fbdev/matrox/g450_pll.c 			unsigned int r = 0;
r                 220 drivers/video/fbdev/matrox/g450_pll.c 				r += matroxfb_DAC_in(minfo, regidx) & 0x40;
r                 222 drivers/video/fbdev/matrox/g450_pll.c 			return r >= (90 * 0x40);
r                 523 drivers/video/fbdev/matrox/g450_pll.c 		int r;
r                 525 drivers/video/fbdev/matrox/g450_pll.c 		r = __g450_setclk(minfo, fout, pll, arr, arr + MNP_TABLE_SIZE);
r                 527 drivers/video/fbdev/matrox/g450_pll.c 		return r;
r                1089 drivers/video/fbdev/matrox/matroxfb_base.c 				struct v4l2_capability r;
r                1091 drivers/video/fbdev/matrox/matroxfb_base.c 				memset(&r, 0, sizeof(r));
r                1092 drivers/video/fbdev/matrox/matroxfb_base.c 				strcpy(r.driver, "matroxfb");
r                1093 drivers/video/fbdev/matrox/matroxfb_base.c 				strcpy(r.card, "Matrox");
r                1094 drivers/video/fbdev/matrox/matroxfb_base.c 				sprintf(r.bus_info, "PCI:%s", pci_name(minfo->pcidev));
r                1095 drivers/video/fbdev/matrox/matroxfb_base.c 				r.version = KERNEL_VERSION(1,0,0);
r                1096 drivers/video/fbdev/matrox/matroxfb_base.c 				r.capabilities = V4L2_CAP_VIDEO_OUTPUT;
r                1097 drivers/video/fbdev/matrox/matroxfb_base.c 				if (copy_to_user(argp, &r, sizeof(r)))
r                 237 drivers/video/fbdev/matrox/matroxfb_g450.c static void computeRegs(struct matrox_fb_info *minfo, struct mavenregs *r,
r                 251 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x80] = 0x03;	/* | 0x40 for SCART */
r                 281 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0] = piic >> 24;
r                 282 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[1] = piic >> 16;
r                 283 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[2] = piic >>  8;
r                 284 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[3] = piic >>  0;
r                 307 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x08] = hsl;
r                 308 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x09] = (outd->burst + pixclock - 1) / pixclock;	/* burst length */
r                 309 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x0A] = hbp;
r                 310 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x2C] = hfp;
r                 311 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x31] = hvis / 8;
r                 312 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x32] = hvis & 7;
r                 316 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x84] = 1;	/* x sync point */
r                 317 drivers/video/fbdev/matrox/matroxfb_g450.c 	r->regs[0x85] = 0;
r                 348 drivers/video/fbdev/matrox/matroxfb_g450.c 		r->regs[0x17] = outd->v_total / 4;
r                 349 drivers/video/fbdev/matrox/matroxfb_g450.c 		r->regs[0x18] = outd->v_total & 3;
r                 350 drivers/video/fbdev/matrox/matroxfb_g450.c 		r->regs[0x33] = upper - 1;	/* upper blanking */
r                 351 drivers/video/fbdev/matrox/matroxfb_g450.c 		r->regs[0x82] = upper;		/* y sync point */
r                 352 drivers/video/fbdev/matrox/matroxfb_g450.c 		r->regs[0x83] = upper >> 8;
r                 143 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 		int r;
r                 148 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 			r = d_pitch(&fbi->var) % GC_L0M_L0W_UNIT;
r                 149 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c 		} while (r && var->bits_per_pixel <= 32);
r                 732 drivers/video/fbdev/nvidia/nvidia.c 			u8 r, g, b;
r                 742 drivers/video/fbdev/nvidia/nvidia.c 			nvidia_read_clut(par, regno * 4, &r, &g, &b);
r                 745 drivers/video/fbdev/nvidia/nvidia.c 				nvidia_write_clut(par, regno * 4 + i, r,
r                 485 drivers/video/fbdev/omap/hwa742.c 	int r = 0;
r                 489 drivers/video/fbdev/omap/hwa742.c 		r = -EINVAL;
r                 496 drivers/video/fbdev/omap/hwa742.c 		r = -EINVAL;
r                 509 drivers/video/fbdev/omap/hwa742.c 	return r;
r                 924 drivers/video/fbdev/omap/hwa742.c 	int r = 0, i;
r                 943 drivers/video/fbdev/omap/hwa742.c 	if ((r = hwa742.int_ctrl->init(fbdev, 1, req_vram)) < 0)
r                 946 drivers/video/fbdev/omap/hwa742.c 	if ((r = hwa742.extif->init(fbdev)) < 0)
r                 950 drivers/video/fbdev/omap/hwa742.c 	if ((r = calc_extif_timings(ext_clk, &extif_mem_div)) < 0)
r                 956 drivers/video/fbdev/omap/hwa742.c 	if ((r = calc_extif_timings(sys_clk, &extif_mem_div)) < 0)
r                 963 drivers/video/fbdev/omap/hwa742.c 		r = -ENODEV;
r                 971 drivers/video/fbdev/omap/hwa742.c 		r = -ENODEV;
r                 975 drivers/video/fbdev/omap/hwa742.c 	if ((r = setup_tearsync(pix_clk, extif_mem_div)) < 0) {
r                1018 drivers/video/fbdev/omap/hwa742.c 	return r;
r                  20 drivers/video/fbdev/omap/lcd_h3.c 	int r = 0;
r                  23 drivers/video/fbdev/omap/lcd_h3.c 	r = tps65010_set_gpio_out_value(GPIO1, HIGH);
r                  24 drivers/video/fbdev/omap/lcd_h3.c 	if (!r)
r                  25 drivers/video/fbdev/omap/lcd_h3.c 		r = tps65010_set_gpio_out_value(GPIO2, HIGH);
r                  26 drivers/video/fbdev/omap/lcd_h3.c 	if (r)
r                  29 drivers/video/fbdev/omap/lcd_h3.c 	return r;
r                  34 drivers/video/fbdev/omap/lcd_h3.c 	int r = 0;
r                  37 drivers/video/fbdev/omap/lcd_h3.c 	r = tps65010_set_gpio_out_value(GPIO1, LOW);
r                  38 drivers/video/fbdev/omap/lcd_h3.c 	if (!r)
r                  40 drivers/video/fbdev/omap/lcd_h3.c 	if (r)
r                  20 drivers/video/fbdev/omap/lcd_inn1610.c 	int r = 0;
r                  25 drivers/video/fbdev/omap/lcd_inn1610.c 		r = -1;
r                  31 drivers/video/fbdev/omap/lcd_inn1610.c 		r = -1;
r                  35 drivers/video/fbdev/omap/lcd_inn1610.c 	return r;
r                  60 drivers/video/fbdev/omap/lcd_mipid.c 	int			r;
r                 103 drivers/video/fbdev/omap/lcd_mipid.c 	r = spi_sync(md->spi, &m);
r                 104 drivers/video/fbdev/omap/lcd_mipid.c 	if (r < 0)
r                 105 drivers/video/fbdev/omap/lcd_mipid.c 		dev_dbg(&md->spi->dev, "spi_sync %d\n", r);
r                 551 drivers/video/fbdev/omap/lcd_mipid.c 	int r;
r                 564 drivers/video/fbdev/omap/lcd_mipid.c 	r = mipid_detect(md);
r                 565 drivers/video/fbdev/omap/lcd_mipid.c 	if (r < 0)
r                 566 drivers/video/fbdev/omap/lcd_mipid.c 		return r;
r                 523 drivers/video/fbdev/omap/lcdc.c 	int r = 0;
r                 546 drivers/video/fbdev/omap/lcdc.c 			r = -EINVAL;
r                 550 drivers/video/fbdev/omap/lcdc.c 	return r;
r                 672 drivers/video/fbdev/omap/lcdc.c 	int r;
r                 691 drivers/video/fbdev/omap/lcdc.c 		r = PTR_ERR(lcdc.lcd_ck);
r                 698 drivers/video/fbdev/omap/lcdc.c 		r = PTR_ERR(tc_ck);
r                 709 drivers/video/fbdev/omap/lcdc.c 	r = clk_set_rate(lcdc.lcd_ck, rate);
r                 710 drivers/video/fbdev/omap/lcdc.c 	if (r) {
r                 716 drivers/video/fbdev/omap/lcdc.c 	r = request_irq(OMAP_LCDC_IRQ, lcdc_irq_handler, 0, MODULE_NAME, fbdev);
r                 717 drivers/video/fbdev/omap/lcdc.c 	if (r) {
r                 722 drivers/video/fbdev/omap/lcdc.c 	r = omap_request_lcd_dma(lcdc_dma_handler, NULL);
r                 723 drivers/video/fbdev/omap/lcdc.c 	if (r) {
r                 732 drivers/video/fbdev/omap/lcdc.c 		if ((r = alloc_palette_ram()) < 0)
r                 735 drivers/video/fbdev/omap/lcdc.c 	if ((r = setup_fbmem(req_vram)) < 0)
r                 753 drivers/video/fbdev/omap/lcdc.c 	return r;
r                 131 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 154 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->init(fbdev, 0, &fbdev->mem_desc);
r                 155 drivers/video/fbdev/omap/omapfb_main.c 	if (r < 0) {
r                 157 drivers/video/fbdev/omap/omapfb_main.c 			r);
r                 158 drivers/video/fbdev/omap/omapfb_main.c 		return r;
r                 181 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 192 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->setup_plane(plane->idx, plane->info.channel_out,
r                 196 drivers/video/fbdev/omap/omapfb_main.c 	if (r < 0)
r                 197 drivers/video/fbdev/omap/omapfb_main.c 		return r;
r                 200 drivers/video/fbdev/omap/omapfb_main.c 		r = fbdev->ctrl->set_rotate(var->rotate);
r                 201 drivers/video/fbdev/omap/omapfb_main.c 		if (r < 0)
r                 202 drivers/video/fbdev/omap/omapfb_main.c 			return r;
r                 206 drivers/video/fbdev/omap/omapfb_main.c 		r = fbdev->ctrl->set_scale(plane->idx,
r                 211 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 245 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 251 drivers/video/fbdev/omap/omapfb_main.c 		r = -EINVAL;
r                 258 drivers/video/fbdev/omap/omapfb_main.c 			r = fbdev->ctrl->setcolreg(regno, red, green, blue,
r                 263 drivers/video/fbdev/omap/omapfb_main.c 		if (r != 0)
r                 279 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 290 drivers/video/fbdev/omap/omapfb_main.c 	int count, index, r;
r                 303 drivers/video/fbdev/omap/omapfb_main.c 		r = _setcolreg(info, index++, *red++, *green++, *blue++, trans,
r                 305 drivers/video/fbdev/omap/omapfb_main.c 		if (r != 0)
r                 306 drivers/video/fbdev/omap/omapfb_main.c 			return r;
r                 319 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 345 drivers/video/fbdev/omap/omapfb_main.c 		r = -EINVAL;
r                 349 drivers/video/fbdev/omap/omapfb_main.c 	if (r == 0 && do_update)
r                 350 drivers/video/fbdev/omap/omapfb_main.c 		r = omapfb_update_full_screen(fbi);
r                 352 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 596 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 607 drivers/video/fbdev/omap/omapfb_main.c 			r = -EINVAL;
r                 615 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 623 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 628 drivers/video/fbdev/omap/omapfb_main.c 		r = -EINVAL;
r                 631 drivers/video/fbdev/omap/omapfb_main.c 		r = ctrl_change_mode(fbi);
r                 635 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 646 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 651 drivers/video/fbdev/omap/omapfb_main.c 	r = set_fb_var(fbi, var);
r                 654 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 665 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 669 drivers/video/fbdev/omap/omapfb_main.c 	r = ctrl_change_mode(fbi);
r                 672 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 741 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 758 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->update_window(fbi, &win, NULL, NULL);
r                 761 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 770 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 782 drivers/video/fbdev/omap/omapfb_main.c 		r = -EINVAL;
r                 788 drivers/video/fbdev/omap/omapfb_main.c 		r = ctrl_change_mode(fbi);
r                 789 drivers/video/fbdev/omap/omapfb_main.c 		if (r < 0) {
r                 794 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->enable_plane(plane->idx, pi->enabled);
r                 795 drivers/video/fbdev/omap/omapfb_main.c 	if (r < 0) {
r                 801 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 818 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                 828 drivers/video/fbdev/omap/omapfb_main.c 		r = -EBUSY;
r                 848 drivers/video/fbdev/omap/omapfb_main.c 				r = set_fb_var(fbi, new_var);
r                 849 drivers/video/fbdev/omap/omapfb_main.c 				if (r < 0)
r                 856 drivers/video/fbdev/omap/omapfb_main.c 		r = fbdev->ctrl->setup_mem(plane->idx, size, mi->type, &paddr);
r                 857 drivers/video/fbdev/omap/omapfb_main.c 		if (r < 0) {
r                 885 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 905 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 911 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->set_color_key(ck);
r                 914 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 920 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 926 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->get_color_key(ck);
r                 929 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 947 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                 960 drivers/video/fbdev/omap/omapfb_main.c 	r = blocking_notifier_chain_register(
r                 963 drivers/video/fbdev/omap/omapfb_main.c 	if (r)
r                 964 drivers/video/fbdev/omap/omapfb_main.c 		return r;
r                 998 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1001 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->set_update_mode(mode);
r                1004 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1009 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1012 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->get_update_mode();
r                1015 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1067 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                1073 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1084 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1086 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_set_update_mode(fbdev, p.update_mode);
r                1092 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1097 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1105 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_update_win(fbi, u);
r                1111 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1113 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_update_win(fbi, &p.update_window);
r                1118 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1120 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_setup_plane(fbi, &p.plane_info);
r                1123 drivers/video/fbdev/omap/omapfb_main.c 		if ((r = omapfb_query_plane(fbi, &p.plane_info)) < 0)
r                1127 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1132 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1134 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_setup_mem(fbi, &p.mem_info);
r                1137 drivers/video/fbdev/omap/omapfb_main.c 		if ((r = omapfb_query_mem(fbi, &p.mem_info)) < 0)
r                1141 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1146 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1148 drivers/video/fbdev/omap/omapfb_main.c 			r = omapfb_set_color_key(fbdev, &p.color_key);
r                1151 drivers/video/fbdev/omap/omapfb_main.c 		if ((r = omapfb_get_color_key(fbdev, &p.color_key)) < 0)
r                1155 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1160 drivers/video/fbdev/omap/omapfb_main.c 			r = -EFAULT;
r                1167 drivers/video/fbdev/omap/omapfb_main.c 				r = -EFAULT;
r                1171 drivers/video/fbdev/omap/omapfb_main.c 				r = -EINVAL;
r                1174 drivers/video/fbdev/omap/omapfb_main.c 			r = fbdev->panel->run_test(fbdev->panel, test_num);
r                1182 drivers/video/fbdev/omap/omapfb_main.c 				r = -EFAULT;
r                1186 drivers/video/fbdev/omap/omapfb_main.c 				r = -EINVAL;
r                1189 drivers/video/fbdev/omap/omapfb_main.c 			r = fbdev->ctrl->run_test(test_num);
r                1193 drivers/video/fbdev/omap/omapfb_main.c 		r = -EINVAL;
r                1196 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1203 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1206 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->mmap(info, vma);
r                1209 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1318 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1321 drivers/video/fbdev/omap/omapfb_main.c 		r = snprintf(buf, PAGE_SIZE, "%d\n",
r                1324 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENODEV;
r                1325 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1333 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1339 drivers/video/fbdev/omap/omapfb_main.c 			r = fbdev->panel->set_bklight_level(fbdev->panel,
r                1342 drivers/video/fbdev/omap/omapfb_main.c 			r = -EINVAL;
r                1344 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENODEV;
r                1345 drivers/video/fbdev/omap/omapfb_main.c 	return r ? r : size;
r                1352 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1355 drivers/video/fbdev/omap/omapfb_main.c 		r = snprintf(buf, PAGE_SIZE, "%d\n",
r                1358 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENODEV;
r                1359 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1404 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1406 drivers/video/fbdev/omap/omapfb_main.c 	if ((r = device_create_file(fbdev->dev, &dev_attr_caps_num)))
r                1409 drivers/video/fbdev/omap/omapfb_main.c 	if ((r = device_create_file(fbdev->dev, &dev_attr_caps_text)))
r                1412 drivers/video/fbdev/omap/omapfb_main.c 	if ((r = sysfs_create_group(&fbdev->dev->kobj, &panel_attr_grp)))
r                1415 drivers/video/fbdev/omap/omapfb_main.c 	if ((r = sysfs_create_group(&fbdev->dev->kobj, &ctrl_attr_grp)))
r                1427 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1450 drivers/video/fbdev/omap/omapfb_main.c 	int				r = 0;
r                1470 drivers/video/fbdev/omap/omapfb_main.c 	r = fb_alloc_cmap(&info->cmap, 16, 0);
r                1471 drivers/video/fbdev/omap/omapfb_main.c 	if (r != 0)
r                1474 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1499 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1515 drivers/video/fbdev/omap/omapfb_main.c 		if ((r = fbinfo_init(fbdev, fbi)) < 0) {
r                1518 drivers/video/fbdev/omap/omapfb_main.c 			return r;
r                1625 drivers/video/fbdev/omap/omapfb_main.c 	int			r = 0;
r                1631 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENODEV;
r                1637 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENOENT;
r                1645 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENOMEM;
r                1664 drivers/video/fbdev/omap/omapfb_main.c 		r = -ENODEV;
r                1669 drivers/video/fbdev/omap/omapfb_main.c 		r = fbdev->panel->init(fbdev->panel, fbdev);
r                1670 drivers/video/fbdev/omap/omapfb_main.c 		if (r)
r                1681 drivers/video/fbdev/omap/omapfb_main.c 	r = ctrl_init(fbdev);
r                1682 drivers/video/fbdev/omap/omapfb_main.c 	if (r)
r                1688 drivers/video/fbdev/omap/omapfb_main.c 	r = planes_init(fbdev);
r                1689 drivers/video/fbdev/omap/omapfb_main.c 	if (r)
r                1698 drivers/video/fbdev/omap/omapfb_main.c 	r = ctrl_change_mode(fbdev->fb_info[0]);
r                1699 drivers/video/fbdev/omap/omapfb_main.c 	if (r) {
r                1705 drivers/video/fbdev/omap/omapfb_main.c 	r = fbdev->ctrl->enable_plane(OMAPFB_PLANE_GFX, 1);
r                1706 drivers/video/fbdev/omap/omapfb_main.c 	if (r)
r                1714 drivers/video/fbdev/omap/omapfb_main.c 		r = fbdev->panel->enable(fbdev->panel);
r                1715 drivers/video/fbdev/omap/omapfb_main.c 		if (r)
r                1720 drivers/video/fbdev/omap/omapfb_main.c 	r = omapfb_register_sysfs(fbdev);
r                1721 drivers/video/fbdev/omap/omapfb_main.c 	if (r)
r                1727 drivers/video/fbdev/omap/omapfb_main.c 		r = register_framebuffer(fbdev->fb_info[i]);
r                1728 drivers/video/fbdev/omap/omapfb_main.c 		if (r != 0) {
r                1756 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                1761 drivers/video/fbdev/omap/omapfb_main.c 	int r;
r                1765 drivers/video/fbdev/omap/omapfb_main.c 	r = platform_device_register(&omapdss_device);
r                1766 drivers/video/fbdev/omap/omapfb_main.c 	if (r) {
r                1768 drivers/video/fbdev/omap/omapfb_main.c 		return r;
r                1841 drivers/video/fbdev/omap/omapfb_main.c 	int r = 0;
r                1848 drivers/video/fbdev/omap/omapfb_main.c 	while (!r && (this_opt = strsep(&options, ",")) != NULL) {
r                1869 drivers/video/fbdev/omap/omapfb_main.c 				r = -1;
r                1885 drivers/video/fbdev/omap/omapfb_main.c 			r = -1;
r                1889 drivers/video/fbdev/omap/omapfb_main.c 	return r;
r                 314 drivers/video/fbdev/omap/sossi.c 	int r = 0;
r                 323 drivers/video/fbdev/omap/sossi.c 	if ((r = calc_rd_timings(t)) < 0)
r                 324 drivers/video/fbdev/omap/sossi.c 		return r;
r                 326 drivers/video/fbdev/omap/sossi.c 	if ((r = calc_wr_timings(t)) < 0)
r                 327 drivers/video/fbdev/omap/sossi.c 		return r;
r                 563 drivers/video/fbdev/omap/sossi.c 	int r;
r                 621 drivers/video/fbdev/omap/sossi.c 		r = -ENODEV;
r                 625 drivers/video/fbdev/omap/sossi.c 	if ((r = omap_lcdc_set_dma_callback(sossi_dma_callback, NULL)) < 0) {
r                 627 drivers/video/fbdev/omap/sossi.c 		r = -ENODEV;
r                 641 drivers/video/fbdev/omap/sossi.c 	if ((r = request_irq(INT_1610_SoSSI_MATCH, sossi_match_irq,
r                 654 drivers/video/fbdev/omap/sossi.c 	return r;
r                  50 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	int r;
r                  57 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	r = in->ops.atv->connect(in, dssdev);
r                  58 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	if (r)
r                  59 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		return r;
r                  81 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	int r;
r                 100 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	r = in->ops.atv->enable(in);
r                 101 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	if (r)
r                 102 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		return r;
r                 106 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	return r;
r                 231 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	int r;
r                 241 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		r = tvc_probe_pdata(pdev);
r                 242 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		if (r)
r                 243 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 			return r;
r                 245 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		r = tvc_probe_of(pdev);
r                 246 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 		if (r)
r                 247 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 			return r;
r                 261 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	r = omapdss_register_display(dssdev);
r                 262 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	if (r) {
r                 270 drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c 	return r;
r                  54 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r;
r                  59 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = in->ops.dvi->connect(in, dssdev);
r                  60 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	if (r)
r                  61 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		return r;
r                  81 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r;
r                  91 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = in->ops.dvi->enable(in);
r                  92 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	if (r)
r                  93 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		return r;
r                 145 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r, retries;
r                 162 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		r = i2c_transfer(adapter, msgs, 2);
r                 163 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		if (r == 2)
r                 166 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		if (r != -EAGAIN)
r                 170 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	return r < 0 ? r : -EIO;
r                 177 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r, l, bytes_read;
r                 183 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = dvic_ddc_read(ddata->i2c_adapter, edid, l, 0);
r                 184 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	if (r)
r                 185 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		return r;
r                 193 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		r = dvic_ddc_read(ddata->i2c_adapter, edid + EDID_LENGTH,
r                 195 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		if (r)
r                 196 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 			return r;
r                 208 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r;
r                 213 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = dvic_ddc_read(ddata->i2c_adapter, &out, 1, 0);
r                 215 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	return r == 0;
r                 270 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	int r;
r                 281 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = dvic_probe_of(pdev);
r                 282 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	if (r)
r                 283 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 		return r;
r                 294 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	r = omapdss_register_display(dssdev);
r                 295 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	if (r) {
r                 307 drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c 	return r;
r                  53 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	int r;
r                  60 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	r = in->ops.hdmi->connect(in, dssdev);
r                  61 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	if (r)
r                  62 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 		return r;
r                  84 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	int r;
r                  96 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	r = in->ops.hdmi->enable(in);
r                  97 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	if (r)
r                  98 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 		return r;
r                 102 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	return r;
r                 234 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	int r;
r                 246 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	r = hdmic_probe_of(pdev);
r                 247 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	if (r)
r                 248 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 		return r;
r                 251 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 		r = devm_gpio_request_one(&pdev->dev, ddata->hpd_gpio,
r                 253 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 		if (r)
r                 266 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	r = omapdss_register_display(dssdev);
r                 267 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	if (r) {
r                 275 drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c 	return r;
r                  38 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	int r;
r                  45 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	r = in->ops.atv->connect(in, dssdev);
r                  46 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	if (r)
r                  47 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 		return r;
r                  81 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	int r;
r                  93 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	r = in->ops.atv->enable(in);
r                  94 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	if (r)
r                  95 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 		return r;
r                 186 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	int r;
r                 222 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	r = omapdss_register_output(dssdev);
r                 223 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	if (r) {
r                 231 drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c 	return r;
r                  34 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	int r;
r                  39 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	r = in->ops.dpi->connect(in, dssdev);
r                  40 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	if (r)
r                  41 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 		return r;
r                  73 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	int r;
r                  85 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	r = in->ops.dpi->enable(in);
r                  86 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	if (r)
r                  87 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 		return r;
r                 196 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	int r;
r                 207 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	r = tfp410_probe_of(pdev);
r                 208 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	if (r)
r                 209 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 		return r;
r                 212 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 		r = devm_gpio_request_one(&pdev->dev, ddata->pd_gpio,
r                 214 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 		if (r) {
r                 230 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	r = omapdss_register_output(dssdev);
r                 231 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	if (r) {
r                 240 drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c 	return r;
r                  37 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	int r;
r                  39 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	r = in->ops.hdmi->connect(in, dssdev);
r                  40 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	if (r)
r                  41 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		return r;
r                  78 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	int r;
r                  85 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	r = in->ops.hdmi->enable(in);
r                  86 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	if (r)
r                  87 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		return r;
r                  91 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	return r;
r                 132 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	int r;
r                 134 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	r = in->ops.hdmi->check_timings(in, timings);
r                 136 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	return r;
r                 144 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	int r;
r                 151 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	r = in->ops.hdmi->read_edid(in, edid, len);
r                 155 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	return r;
r                 221 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	int r;
r                 231 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		r = tpd_probe_of(pdev);
r                 232 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		if (r)
r                 233 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 			return r;
r                 241 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		r = PTR_ERR(gpio);
r                 250 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		r = PTR_ERR(gpio);
r                 259 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 		r = PTR_ERR(gpio);
r                 273 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	r = omapdss_register_output(dssdev);
r                 274 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	if (r) {
r                 283 drivers/video/fbdev/omap2/omapfb/displays/encoder-tpd12s015.c 	return r;
r                  40 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	int r;
r                  45 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	r = in->ops.dpi->connect(in, dssdev);
r                  46 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	if (r)
r                  47 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		return r;
r                  67 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	int r;
r                  79 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	r = in->ops.dpi->enable(in);
r                  80 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	if (r)
r                  81 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		return r;
r                 160 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	int r;
r                 181 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	r = devm_gpio_request_one(&pdev->dev, pdata->enable_gpio,
r                 183 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	if (r)
r                 194 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	return r;
r                 202 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	int r;
r                 215 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	r = of_get_display_timing(node, "panel-timing", &timing);
r                 216 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	if (r) {
r                 218 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		return r;
r                 239 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	int r;
r                 248 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		r = panel_dpi_probe_pdata(pdev);
r                 249 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		if (r)
r                 250 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 			return r;
r                 252 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		r = panel_dpi_probe_of(pdev);
r                 253 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		if (r)
r                 254 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 			return r;
r                 260 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		r = devm_gpio_request_one(&pdev->dev, ddata->backlight_gpio,
r                 262 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 		if (r)
r                 274 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	r = omapdss_register_display(dssdev);
r                 275 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	if (r) {
r                 285 drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c 	return r;
r                 109 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 112 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1);
r                 114 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r < 0)
r                 115 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 141 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 146 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1);
r                 147 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 148 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 159 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 163 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_EXIT_SLEEP_MODE);
r                 164 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 165 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 176 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 178 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID1, id1);
r                 179 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 180 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 181 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID2, id2);
r                 182 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 183 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 184 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_read_1(ddata, DCS_GET_ID3, id3);
r                 185 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 186 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 195 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 208 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf));
r                 209 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 210 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 218 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, buf, sizeof(buf));
r                 219 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 220 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 224 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 242 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 249 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, false);
r                 250 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 270 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 276 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 281 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->enable(in);
r                 282 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 289 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, true);
r                 290 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 307 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_panel_reset(ddata);
r                 308 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (!r) {
r                 316 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 333 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 349 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 350 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (!r)
r                 351 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, level);
r                 355 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = 0;
r                 360 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 390 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 397 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 398 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (!r)
r                 399 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = dsicm_dcs_read_1(ddata, DCS_READ_NUM_ERRORS,
r                 404 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = -ENODEV;
r                 409 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 410 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 421 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 428 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 429 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (!r)
r                 430 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = dsicm_get_id(ddata, &id1, &id2, &id3);
r                 434 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = -ENODEV;
r                 439 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 440 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 452 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 454 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = kstrtoul(buf, 0, &t);
r                 455 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 456 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 464 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = dsicm_enter_ulps(ddata);
r                 466 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = dsicm_wake_up(ddata);
r                 473 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 474 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 500 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 502 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = kstrtoul(buf, 0, &t);
r                 503 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 504 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 512 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 518 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 519 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 577 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 589 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = in->ops.dsi->configure_pins(in, &ddata->pin_config);
r                 590 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r) {
r                 597 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->set_config(in, &dsi_config);
r                 598 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 603 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->enable(in);
r                 604 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 613 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_sleep_out(ddata);
r                 614 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 617 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_get_id(ddata, &id1, &id2, &id3);
r                 618 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 621 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, DCS_BRIGHTNESS, 0xff);
r                 622 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 625 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, DCS_CTRL_DISPLAY,
r                 627 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 630 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_PIXEL_FORMAT,
r                 632 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 635 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_ON);
r                 636 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 639 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = _dsicm_enable_te(ddata, ddata->te_enabled);
r                 640 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 643 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->enable_video_output(in, ddata->channel);
r                 644 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 665 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 671 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 675 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_DISPLAY_OFF);
r                 676 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (!r)
r                 677 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_sleep_in(ddata);
r                 679 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 704 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 709 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->connect(in, dssdev);
r                 710 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 712 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                 715 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->request_vc(ddata->in, &ddata->channel);
r                 716 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 721 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->set_vc_id(ddata->in, ddata->channel, TCH);
r                 722 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                 733 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 752 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 759 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = -ENODEV;
r                 764 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = 0;
r                 770 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_power_on(ddata);
r                 774 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 785 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 792 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 803 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 804 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (!r)
r                 829 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 836 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = in->ops.dsi->update(in, ddata->channel, dsicm_framedone_cb,
r                 838 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r)
r                 866 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 873 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_wake_up(ddata);
r                 874 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 878 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = 0;
r                 883 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_set_update_window(ddata, 0, 0,
r                 886 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                 894 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = in->ops.dsi->update(in, ddata->channel, dsicm_framedone_cb,
r                 896 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r)
r                 906 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 929 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 932 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_dcs_write_1(ddata, MIPI_DCS_SET_TEAR_ON, 0);
r                 934 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_dcs_write_0(ddata, MIPI_DCS_SET_TEAR_OFF);
r                 942 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 949 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 959 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = dsicm_wake_up(ddata);
r                 960 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r)
r                 963 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = _dsicm_enable_te(ddata, enable);
r                 964 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r)
r                 979 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 985 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                 988 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = ddata->te_enabled;
r                 991 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                1000 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                1011 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = -ENODEV;
r                1021 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_wake_up(ddata);
r                1022 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                1035 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = in->ops.dsi->set_max_rx_packet_size(in, ddata->channel, plen);
r                1036 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                1043 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd,
r                1046 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r < 0) {
r                1051 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		buf_used += r;
r                1053 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r < plen) {
r                1061 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = -ERESTARTSYS;
r                1066 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = buf_used;
r                1074 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                1160 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	int r;
r                1174 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = dsicm_probe_of(pdev);
r                1175 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r)
r                1176 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		return r;
r                1193 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = omapdss_register_display(dssdev);
r                1194 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                1204 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = devm_gpio_request_one(dev, ddata->reset_gpio,
r                1206 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r) {
r                1208 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			return r;
r                1213 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = devm_gpio_request_one(dev, ddata->ext_te_gpio,
r                1215 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r) {
r                1217 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			return r;
r                1220 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		r = devm_request_irq(dev, gpio_to_irq(ddata->ext_te_gpio),
r                1225 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 		if (r) {
r                1227 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			return r;
r                1248 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 			r = PTR_ERR(bldev);
r                1261 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	r = sysfs_create_group(&dev->kobj, &dsicm_attr_group);
r                1262 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	if (r) {
r                1273 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c 	return r;
r                 121 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	int r;
r                 126 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	r = in->ops.dpi->connect(in, dssdev);
r                 127 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	if (r)
r                 128 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 		return r;
r                 150 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	int r;
r                 162 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	r = in->ops.dpi->enable(in);
r                 163 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	if (r)
r                 164 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 		return r;
r                 271 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	int r;
r                 284 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	r = lb035q02_probe_of(spi);
r                 285 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	if (r)
r                 286 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 		return r;
r                 289 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 		r = devm_gpio_request_one(&spi->dev, ddata->backlight_gpio,
r                 291 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 		if (r)
r                 305 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	r = omapdss_register_display(dssdev);
r                 306 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	if (r) {
r                 316 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c 	return r;
r                 120 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	int r;
r                 125 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	r = in->ops.dpi->connect(in, dssdev);
r                 126 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	if (r)
r                 127 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		return r;
r                 147 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	int r;
r                 159 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	r = in->ops.dpi->enable(in);
r                 160 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	if (r)
r                 161 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		return r;
r                 263 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	int r;
r                 273 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	r = spi_setup(spi);
r                 274 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	if (r < 0) {
r                 275 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		dev_err(&spi->dev, "spi_setup failed: %d\n", r);
r                 276 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		return r;
r                 289 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	r = nec_8048_probe_of(spi);
r                 290 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	if (r)
r                 291 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		return r;
r                 294 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		r = devm_gpio_request_one(&spi->dev, ddata->qvga_gpio,
r                 296 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		if (r)
r                 301 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		r = devm_gpio_request_one(&spi->dev, ddata->res_gpio,
r                 303 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 		if (r)
r                 316 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	r = omapdss_register_display(dssdev);
r                 317 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	if (r) {
r                 327 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c 	return r;
r                  62 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	int r;
r                  67 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = in->ops.dpi->connect(in, dssdev);
r                  68 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                  69 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                  89 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	int r;
r                 102 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		r = regulator_enable(ddata->vcc);
r                 103 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		if (r != 0)
r                 104 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 			return r;
r                 107 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = in->ops.dpi->enable(in);
r                 108 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r) {
r                 110 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 216 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	int r;
r                 225 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "enable", &ddata->ini_gpio);
r                 226 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 227 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 230 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "reset", &ddata->resb_gpio);
r                 231 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 232 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 235 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_get_gpio_of(&pdev->dev, 0, 0, "mode", &ddata->mo_gpio);
r                 236 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 237 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 240 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_get_gpio_of(&pdev->dev, 1, 1, "mode", &ddata->lr_gpio);
r                 241 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 242 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 245 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_get_gpio_of(&pdev->dev, 2, 1, "mode", &ddata->ud_gpio);
r                 246 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 247 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 264 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	int r;
r                 275 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = sharp_ls_probe_of(pdev);
r                 276 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r)
r                 277 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 		return r;
r                 289 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	r = omapdss_register_display(dssdev);
r                 290 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	if (r) {
r                 299 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c 	return r;
r                 110 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int			r;
r                 150 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = spi_sync(ddata->spi, &m);
r                 151 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r < 0)
r                 152 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		dev_dbg(&ddata->spi->dev, "spi_sync %d\n", r);
r                 381 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 384 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = acx565akm_bl_update_status(dev);
r                 387 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	return r;
r                 393 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 396 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = acx565akm_bl_get_intensity(dev);
r                 399 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	return r;
r                 509 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 514 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = in->ops.sdi->connect(in, dssdev);
r                 515 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r)
r                 516 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		return r;
r                 536 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 545 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = in->ops.sdi->enable(in);
r                 546 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r) {
r                 548 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		return r;
r                 616 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 627 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = acx565akm_panel_power_on(dssdev);
r                 629 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r)
r                 630 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		return r;
r                 745 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	int r;
r                 762 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		r = acx565akm_probe_pdata(spi);
r                 763 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		if (r)
r                 764 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 			return r;
r                 766 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		r = acx565akm_probe_of(spi);
r                 767 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		if (r)
r                 768 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 			return r;
r                 775 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		r = devm_gpio_request_one(&spi->dev, ddata->reset_gpio,
r                 777 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		if (r)
r                 792 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = panel_detect(ddata);
r                 797 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r) {
r                 810 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		r = PTR_ERR(bldev);
r                 815 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		r = sysfs_create_group(&bldev->dev.kobj, &bldev_attr_group);
r                 816 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 		if (r) {
r                 846 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	r = omapdss_register_display(dssdev);
r                 847 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	if (r) {
r                 862 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	return r;
r                 162 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	int r;
r                 167 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r = in->ops.dpi->connect(in, dssdev);
r                 168 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r)
r                 169 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 		return r;
r                 189 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	int r;
r                 201 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r = in->ops.dpi->enable(in);
r                 202 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r)
r                 203 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 		return r;
r                 209 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_ret_write_0(ddata, 0x00);
r                 211 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_ret_write_0(ddata, 0x00);
r                 213 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_ret_write_0(ddata, 0x00);
r                 216 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r) {
r                 222 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_POWER_ON_OFF, 0x17);
r                 225 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE, 0x80);
r                 228 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_QUAD_RATE, 0x00);
r                 231 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_POWER_ON_OFF, 0x16);
r                 234 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_OUTPUT_CONTROL, 0xfff9);
r                 237 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_ret_write_0(ddata, JBT_REG_SLEEP_OUT);
r                 242 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE1, 0x01);
r                 243 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DISPLAY_MODE2, 0x00);
r                 244 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_RGB_FORMAT, 0x60);
r                 245 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DRIVE_SYSTEM, 0x10);
r                 246 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_OP, 0x56);
r                 247 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_MODE, 0x33);
r                 248 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_FREQ, 0x11);
r                 249 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_BOOSTER_FREQ, 0x11);
r                 250 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_OPAMP_SYSCLK, 0x02);
r                 251 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_VSC_VOLTAGE, 0x2b);
r                 252 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_VCOM_VOLTAGE, 0x40);
r                 253 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_EXT_DISPL, 0x03);
r                 254 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DCCLK_DCEV, 0x04);
r                 259 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_ASW_SLEW, 0x04);
r                 260 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_DUMMY_DISPLAY, 0x00);
r                 262 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_A, 0x11);
r                 263 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_B, 0x11);
r                 264 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_SLEEP_OUT_FR_C, 0x11);
r                 265 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_D, 0x2040);
r                 266 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_E, 0x60c0);
r                 267 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_F, 0x1020);
r                 268 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_SLEEP_IN_LCCNT_G, 0x60c0);
r                 270 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_GAMMA1_FINE_1, 0x5533);
r                 271 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_FINE_2, 0x00);
r                 272 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_INCLINATION, 0x00);
r                 273 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_GAMMA1_BLUE_OFFSET, 0x00);
r                 275 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_HCLOCK_VGA, 0x1f0);
r                 276 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_BLANK_CONTROL, 0x02);
r                 277 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_BLANK_TH_TV, 0x0804);
r                 279 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_CKV_ON_OFF, 0x01);
r                 280 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_CKV_1_2, 0x0000);
r                 282 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_OEV_TIMING, 0x0d0e);
r                 283 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_2(ddata, JBT_REG_ASW_TIMING_1, 0x11a4);
r                 284 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_reg_write_1(ddata, JBT_REG_ASW_TIMING_2, 0x0e);
r                 286 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r |= jbt_ret_write_0(ddata, JBT_REG_DISPLAY_ON);
r                 292 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	return r ? -EIO : 0;
r                 377 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	int r;
r                 387 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r = spi_setup(spi);
r                 388 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r < 0) {
r                 389 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 		dev_err(&spi->dev, "spi_setup failed: %d\n", r);
r                 390 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 		return r;
r                 401 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r = td028ttec1_probe_of(spi);
r                 402 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r)
r                 403 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 		return r;
r                 415 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	r = omapdss_register_display(dssdev);
r                 416 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	if (r) {
r                 425 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c 	return r;
r                  99 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	int			r;
r                 111 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = spi_sync(spi, &m);
r                 112 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r < 0)
r                 113 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		dev_warn(&spi->dev, "failed to write to LCD reg (%d)\n", r);
r                 114 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	return r;
r                 287 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	int r;
r                 292 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = regulator_enable(ddata->vcc_reg);
r                 293 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r != 0)
r                 294 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		return r;
r                 340 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	int r;
r                 345 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = in->ops.dpi->connect(in, dssdev);
r                 346 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r)
r                 347 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		return r;
r                 367 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	int r;
r                 379 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = in->ops.dpi->enable(in);
r                 380 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r)
r                 381 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		return r;
r                 388 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		r = tpo_td043_power_on(ddata);
r                 389 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		if (r) {
r                 391 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 			return r;
r                 492 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	int r;
r                 502 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = spi_setup(spi);
r                 503 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r < 0) {
r                 504 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		dev_err(&spi->dev, "spi_setup failed: %d\n", r);
r                 505 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		return r;
r                 516 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = tpo_td043_probe_of(spi);
r                 517 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r)
r                 518 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		return r;
r                 526 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		r = PTR_ERR(ddata->vcc_reg);
r                 531 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		r = devm_gpio_request_one(&spi->dev,
r                 534 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 		if (r < 0) {
r                 540 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = sysfs_create_group(&spi->dev.kobj, &tpo_td043_attr_group);
r                 541 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r) {
r                 555 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	r = omapdss_register_display(dssdev);
r                 556 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	if (r) {
r                 569 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	return r;
r                 394 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 410 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = wait_for_completion_timeout(&extra_updated_completion, t);
r                 411 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r == 0)
r                 441 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 446 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_runtime_get();
r                 447 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                 448 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                 462 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);
r                 466 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                 475 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 492 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_runtime_get();
r                 493 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                 494 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                 508 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			r = 0;
r                 520 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			r = 0;
r                 524 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);
r                 525 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (r == -ERESTARTSYS)
r                 528 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (r) {
r                 536 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                 546 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 568 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_runtime_get();
r                 569 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                 570 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                 585 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			r = 0;
r                 597 drivers/video/fbdev/omap2/omapfb/dss/apply.c 			r = 0;
r                 601 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = omap_dispc_wait_for_irq_interruptible_timeout(irq, timeout);
r                 602 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (r == -ERESTARTSYS)
r                 605 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (r) {
r                 613 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                 622 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 635 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_ovl_setup(ovl->id, oi, replication, &mp->timings, false);
r                 636 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r) {
r                 732 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		int r;
r                 740 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = dss_check_settings(mgr);
r                 741 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		if (r) {
r                 813 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 819 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_check_settings(mgr);
r                 820 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r) {
r                 845 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r, i;
r                 854 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = omap_dispc_register_isr(dss_apply_irq_handler, NULL, mask);
r                 855 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	WARN_ON(r);
r                 864 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r, i;
r                 873 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = omap_dispc_unregister_isr(dss_apply_irq_handler, NULL, mask);
r                 874 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	WARN_ON(r);
r                 969 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                 975 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_check_settings_apply(mgr);
r                 976 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r) {
r                 979 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                1068 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1079 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_check_settings(mgr);
r                1080 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r) {
r                1111 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1145 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1147 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_mgr_simple_check(mgr, info);
r                1148 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1149 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                1177 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1184 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1191 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1203 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1208 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1216 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1224 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1241 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1305 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1307 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_ovl_simple_check(ovl, info);
r                1308 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1309 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		return r;
r                1339 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1349 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1353 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dispc_runtime_get();
r                1354 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1362 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1383 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1390 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1396 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1405 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1429 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1443 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1465 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1470 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = 0;
r                1475 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1483 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_check_settings(ovl->manager);
r                1484 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r) {
r                1508 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1515 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int r;
r                1520 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = 0;
r                1525 drivers/video/fbdev/omap2/omapfb/dss/apply.c 		r = -EINVAL;
r                1543 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                1590 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	int i, r;
r                1631 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_install_mgr_ops(&apply_mgr_ops);
r                1632 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1635 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = display_init_sysfs(pdev);
r                1636 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1641 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	r = dss_dispc_initialize_irq();
r                1642 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	if (r)
r                1667 drivers/video/fbdev/omap2/omapfb/dss/apply.c 	return r;
r                 246 drivers/video/fbdev/omap2/omapfb/dss/core.c 	int r;
r                 249 drivers/video/fbdev/omap2/omapfb/dss/core.c 	r = platform_driver_probe(&omap_dss_driver, omap_dss_probe);
r                 250 drivers/video/fbdev/omap2/omapfb/dss/core.c 	if (r)
r                 251 drivers/video/fbdev/omap2/omapfb/dss/core.c 		return r;
r                 254 drivers/video/fbdev/omap2/omapfb/dss/core.c 		r = dss_output_drv_reg_funcs[i]();
r                 255 drivers/video/fbdev/omap2/omapfb/dss/core.c 		if (r)
r                 269 drivers/video/fbdev/omap2/omapfb/dss/core.c 	return r;
r                 406 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	int r;
r                 437 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = dispc_request_irq(omap_dispc_irq_handler, &dispc_compat);
r                 438 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r) {
r                 440 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 		return r;
r                 465 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	int r;
r                 478 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_register_isr(dispc_mgr_disable_isr, &framedone_compl,
r                 480 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 486 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r) {
r                 495 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_unregister_isr(dispc_mgr_disable_isr, &framedone_compl,
r                 497 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 513 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	int r;
r                 528 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_register_isr(dispc_digit_out_enable_isr, &vsync_compl,
r                 530 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r) {
r                 541 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_unregister_isr(dispc_digit_out_enable_isr, &vsync_compl,
r                 543 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 550 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	int r, i;
r                 581 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_register_isr(dispc_mgr_disable_isr, &framedone_compl,
r                 583 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 589 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r) {
r                 600 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_unregister_isr(dispc_mgr_disable_isr, &framedone_compl,
r                 602 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 635 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	int r;
r                 639 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	r = omap_dispc_register_isr(dispc_irq_wait_handler, &completion,
r                 642 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 	if (r)
r                 643 drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c 		return r;
r                 518 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r;
r                 522 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = pm_runtime_get_sync(&dispc.pdev->dev);
r                 523 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	WARN_ON(r < 0);
r                 524 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r < 0 ? r : 0;
r                 530 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r;
r                 534 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = pm_runtime_put_sync(&dispc.pdev->dev);
r                 535 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                2598 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r, cconv = 0;
r                2649 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = dispc_ovl_calc_scaling(pclk, lclk, caps, mgr_timings, in_width,
r                2653 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	if (r)
r                2654 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		return r;
r                2786 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r;
r                2798 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = dispc_ovl_setup_common(plane, caps, oi->paddr, oi->p_uv_addr,
r                2804 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r;
r                2811 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r;
r                2828 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = dispc_ovl_setup_common(plane, caps, wi->paddr, wi->p_uv_addr,
r                2873 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r;
r                3313 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	unsigned long r = 0;
r                3317 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		r = dss_get_dispc_clk_rate();
r                3324 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		r = pll->cinfo.clkout[0];
r                3331 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		r = pll->cinfo.clkout[0];
r                3338 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r;
r                3345 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	unsigned long r;
r                3355 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 			r = dss_get_dispc_clk_rate();
r                3362 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 			r = pll->cinfo.clkout[0];
r                3369 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 			r = pll->cinfo.clkout[0];
r                3376 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		return r / lcd;
r                3384 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	unsigned long r;
r                3394 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		r = dispc_mgr_lclk_rate(channel);
r                3396 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 		return r / pcd;
r                3511 drivers/video/fbdev/omap2/omapfb/dss/dispc.c #define DUMPREG(r) seq_printf(s, "%-50s %08x\n", #r, dispc_read_reg(r))
r                3544 drivers/video/fbdev/omap2/omapfb/dss/dispc.c #define DUMPREG(i, r) seq_printf(s, "%s(%s)%*s %08x\n", #r, p_names[i], \
r                3545 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	(int)(48 - strlen(#r) - strlen(p_names[i])), " ", \
r                3546 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	dispc_read_reg(DISPC_REG(i, r)))
r                4009 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r;
r                4020 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = devm_request_irq(&dispc.pdev->dev, dispc.irq, dispc_irq_handler,
r                4022 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	if (r) {
r                4027 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r;
r                4045 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	int r = 0;
r                4092 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	r = dispc_runtime_get();
r                4093 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	if (r)
r                4112 drivers/video/fbdev/omap2/omapfb/dss/dispc.c 	return r;
r                  36 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r;
r                  39 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = strtobool(buf, &enable);
r                  40 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                  41 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                  50 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		r = dssdev->driver->enable(dssdev);
r                  51 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		if (r)
r                  52 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 			return r;
r                  70 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r;
r                  76 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = strtobool(buf, &te);
r                  77 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                  78 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                  80 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->enable_te(dssdev, te);
r                  81 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                  82 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 106 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r, found;
r                 127 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->check_timings(dssdev, &t);
r                 128 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 129 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 133 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->enable(dssdev);
r                 134 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 135 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 152 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int rot, r;
r                 157 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = kstrtoint(buf, 0, &rot);
r                 158 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 159 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 161 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->set_rotate(dssdev, rot);
r                 162 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 163 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 180 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r;
r                 186 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = strtobool(buf, &mirror);
r                 187 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 188 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 190 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->set_mirror(dssdev, mirror);
r                 191 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 192 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 213 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r;
r                 218 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = kstrtou32(buf, 0, &wss);
r                 219 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 220 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 225 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	r = dssdev->driver->set_wss(dssdev, wss);
r                 226 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	if (r)
r                 227 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		return r;
r                 312 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	int r;
r                 315 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		r = kobject_init_and_add(&dssdev->kobj, &display_ktype,
r                 317 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 		if (r) {
r                 329 drivers/video/fbdev/omap2/omapfb/dss/display-sysfs.c 	return r;
r                 276 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 283 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_pll_set_config(dpi->pll, &ctx.dsi_cinfo);
r                 284 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 285 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 303 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 310 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_set_fck_rate(ctx.fck);
r                 311 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 312 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 331 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r = 0;
r                 334 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = dpi_set_dsi_clk(dpi, mgr->id, t->pixelclock, &fck,
r                 337 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = dpi_set_dispc_clk(dpi, t->pixelclock, &fck,
r                 339 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 340 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 377 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 383 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = -ENODEV;
r                 389 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = -ENODEV;
r                 394 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = regulator_enable(dpi->vdds_dsi_reg);
r                 395 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		if (r)
r                 399 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dispc_runtime_get();
r                 400 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 403 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_dpi_select_source(out->port_num, out->manager->id);
r                 404 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 408 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		r = dss_pll_enable(dpi->pll);
r                 409 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		if (r)
r                 413 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dpi_set_mode(dpi);
r                 414 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 421 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_mgr_enable(out->manager);
r                 422 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 443 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	return r;
r                 548 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 552 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_pll_enable(pll);
r                 553 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 554 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 653 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 655 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dpi_init_regulator(dpi);
r                 656 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 657 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 665 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = dss_mgr_connect(mgr, dssdev);
r                 666 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 667 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 669 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = omapdss_output_set_device(dssdev, dst);
r                 670 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r) {
r                 674 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 		return r;
r                 737 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 740 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = of_property_read_u32(port, "reg", &port_num);
r                 741 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r)
r                 843 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	int r;
r                 853 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	r = of_property_read_u32(ep, "data-lines", &datalines);
r                 854 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	if (r) {
r                 877 drivers/video/fbdev/omap2/omapfb/dss/dpi.c 	return r;
r                1003 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1007 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask, dsi->isr_tables.isr_table,
r                1010 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1015 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1023 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1027 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask, dsi->isr_tables.isr_table,
r                1030 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1035 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1043 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1047 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask,
r                1051 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1056 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1064 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1068 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask,
r                1072 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1077 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1085 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1089 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_register_isr(isr, arg, mask, dsi->isr_tables.isr_table_cio,
r                1092 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1097 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1105 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1109 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = _dsi_unregister_isr(isr, arg, mask, dsi->isr_tables.isr_table_cio,
r                1112 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r == 0)
r                1117 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1134 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1139 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = pm_runtime_get_sync(&dsi->pdev->dev);
r                1140 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	WARN_ON(r < 0);
r                1141 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r < 0 ? r : 0;
r                1147 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                1151 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = pm_runtime_put_sync(&dsi->pdev->dev);
r                1152 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                1250 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	unsigned long r;
r                1255 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = clk_get_rate(dsi->dss_clk);
r                1258 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_get_pll_hsdiv_dsi_rate(dsidev);
r                1261 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1379 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                1383 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_regulator_init(dsidev);
r                1384 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                1385 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                1387 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_runtime_get(dsidev);
r                1388 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                1389 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                1397 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = regulator_enable(dsi->vdds_dsi_reg);
r                1398 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (r)
r                1408 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -ENODEV;
r                1417 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_pll_power(dsidev, DSI_PLL_POWER_ON_ALL);
r                1419 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                1433 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                1641 drivers/video/fbdev/omap2/omapfb/dss/dsi.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, dsi_read_reg(dsidev, r))
r                1809 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                1812 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_COMPLEXIO_CFG1);
r                1829 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, lane_number + 1, offset + 2, offset);
r                1830 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, polarity, offset + 3, offset + 3);
r                1837 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 0, offset + 2, offset);
r                1838 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 0, offset + 3, offset + 3);
r                1841 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_COMPLEXIO_CFG1, r);
r                1865 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                1915 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG0);
r                1916 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ths_prepare, 31, 24);
r                1917 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ths_prepare_ths_zero, 23, 16);
r                1918 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ths_trail, 15, 8);
r                1919 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ths_exit, 7, 0);
r                1920 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_DSIPHY_CFG0, r);
r                1922 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG1);
r                1923 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, tlpx_half, 20, 16);
r                1924 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, tclk_trail, 15, 8);
r                1925 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, tclk_zero, 7, 0);
r                1928 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 0, 21, 21);	/* DCCEN = disable */
r                1929 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 1, 22, 22);	/* CLKINP_DIVBY2EN = enable */
r                1930 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 1, 23, 23);	/* CLKINP_SEL = enable */
r                1933 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_DSIPHY_CFG1, r);
r                1935 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG2);
r                1936 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, tclk_prepare, 7, 0);
r                1937 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_DSIPHY_CFG2, r);
r                2056 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2061 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_dsi_enable_pads(dsi->module_id, dsi_get_lane_mask(dsidev));
r                2062 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2063 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                2074 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2078 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_set_lane_config(dsidev);
r                2079 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2116 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_cio_power(dsidev, DSI_COMPLEXIO_POWER_ON);
r                2117 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2122 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -ENODEV;
r                2130 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_cio_wait_tx_clk_esc_reset(dsidev);
r                2131 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2172 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2192 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r = 0;
r                2212 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r |= v << (8 * i);
r                2217 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TX_FIFO_VC_SIZE, r);
r                2225 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r = 0;
r                2245 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r |= v << (8 * i);
r                2250 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_RX_FIFO_VC_SIZE, r);
r                2255 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                2257 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_TIMING1);
r                2258 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* FORCE_TX_STOP_MODE_IO */
r                2259 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TIMING1, r);
r                2294 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                2299 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_register_isr_vc(dsidev, channel, dsi_packet_sent_handler_vp,
r                2301 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2309 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EIO;
r                2322 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2343 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                2345 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_register_isr_vc(dsidev, channel, dsi_packet_sent_handler_l4,
r                2347 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2355 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EIO;
r                2368 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2415 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                2419 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VC_CTRL(channel));
r                2421 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (FLD_GET(r, 15, 15)) /* VC_BUSY */
r                2425 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 1, 1); /* SOURCE, 0 = L4 */
r                2426 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 2, 2); /* BTA_SHORT_EN  */
r                2427 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 3, 3); /* BTA_LONG_EN */
r                2428 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 4, 4); /* MODE, 0 = command */
r                2429 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 7, 7); /* CS_TX_EN */
r                2430 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 8, 8); /* ECC_TX_EN */
r                2431 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 9, 9); /* MODE_SPEED, high speed on/off */
r                2433 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 3, 11, 10);	/* OCP_WIDTH = 32 bit */
r                2435 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 4, 29, 27); /* DMA_RX_REQ_NB = no dma */
r                2436 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 4, 23, 21); /* DMA_TX_REQ_NB = no dma */
r                2438 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VC_CTRL(channel), r);
r                2611 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                2614 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_register_isr_vc(dsidev, channel, dsi_completion_handler,
r                2616 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2619 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_register_isr(dsidev, dsi_completion_handler, &completion,
r                2621 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2624 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_bta(dsidev, channel);
r                2625 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2631 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2638 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2648 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2688 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                2742 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2749 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                2768 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = (data_id << 0) | (data << 8) | (ecc << 24);
r                2770 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VC_SHORT_PACKET_HEADER(channel), r);
r                2786 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2790 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_vc_send_short(dsidev, channel,
r                2793 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_vc_send_short(dsidev, channel,
r                2798 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_vc_send_short(dsidev, channel,
r                2804 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_vc_send_long(dsidev, channel,
r                2810 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2835 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2837 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_write_nosync_common(dsidev, channel, data, len, type);
r                2838 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2841 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                2842 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                2849 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2857 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                2878 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2884 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_short(dsidev, channel, MIPI_DSI_DCS_READ, dcs_cmd, 0);
r                2885 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                2888 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                2900 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2920 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_short(dsidev, channel, data_type, data, 0);
r                2921 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                2924 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                2936 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                2941 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2952 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                2965 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EIO;
r                2982 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EIO;
r                3001 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EIO;
r                3028 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                3036 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                3043 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                3045 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_dcs_send_read_request(dsidev, channel, dcs_cmd);
r                3046 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3049 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                3050 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3053 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_read_rx_fifo(dsidev, channel, buf, buflen,
r                3055 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r < 0)
r                3058 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r != buflen) {
r                3059 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                3066 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                3073 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                3075 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_generic_send_read_request(dsidev, channel, reqdata, reqlen);
r                3076 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3077 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                3079 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_send_bta_sync(dssdev, channel);
r                3080 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3081 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                3083 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_vc_read_rx_fifo(dsidev, channel, buf, buflen,
r                3085 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r < 0)
r                3086 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                3088 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r != buflen) {
r                3089 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                3090 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                3109 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r, i;
r                3150 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_register_isr_cio(dsidev, dsi_completion_handler, &completion,
r                3152 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3153 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                3172 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EIO;
r                3196 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                3204 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3211 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_TIMING2);
r                3212 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* LP_RX_TO */
r                3213 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 14, 14);	/* LP_RX_TO_X16 */
r                3214 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 13, 13);	/* LP_RX_TO_X4 */
r                3215 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ticks, 12, 0);	/* LP_RX_COUNTER */
r                3216 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TIMING2, r);
r                3231 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3238 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_TIMING1);
r                3239 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 31, 31);	/* TA_TO */
r                3240 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 30, 30);	/* TA_TO_X16 */
r                3241 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x8 ? 1 : 0, 29, 29);	/* TA_TO_X8 */
r                3242 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ticks, 28, 16);	/* TA_TO_COUNTER */
r                3243 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TIMING1, r);
r                3258 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3265 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_TIMING1);
r                3266 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);	/* FORCE_TX_STOP_MODE_IO */
r                3267 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 14, 14);	/* STOP_STATE_X16_IO */
r                3268 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 13, 13);	/* STOP_STATE_X4_IO */
r                3269 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ticks, 12, 0);	/* STOP_STATE_COUNTER_IO */
r                3270 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TIMING1, r);
r                3285 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3292 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_TIMING2);
r                3293 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 31, 31);	/* HS_TX_TO */
r                3294 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x16 ? 1 : 0, 30, 30);	/* HS_TX_TO_X16 */
r                3295 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, x4 ? 1 : 0, 29, 29);	/* HS_TX_TO_X8 (4 really) */
r                3296 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ticks, 28, 16);	/* HS_TX_TO_COUNTER */
r                3297 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_TIMING2, r);
r                3336 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3343 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CTRL);
r                3344 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 9, 9);		/* VP_DE_POL */
r                3345 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 10, 10);		/* VP_HSYNC_POL */
r                3346 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 11, 11);		/* VP_VSYNC_POL */
r                3347 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 15, 15);		/* VP_VSYNC_START */
r                3348 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, sync_end, 16, 16);	/* VP_VSYNC_END */
r                3349 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 17, 17);		/* VP_HSYNC_START */
r                3350 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, sync_end, 18, 18);	/* VP_HSYNC_END */
r                3351 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_CTRL, r);
r                3361 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3367 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CTRL);
r                3368 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, blanking_mode, 20, 20);		/* BLANKING_MODE */
r                3369 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hfp_blanking_mode, 21, 21);	/* HFP_BLANKING */
r                3370 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hbp_blanking_mode, 22, 22);	/* HBP_BLANKING */
r                3371 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hsa_blanking_mode, 23, 23);	/* HSA_BLANKING */
r                3372 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_CTRL, r);
r                3454 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3456 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CTRL);
r                3457 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	blanking_mode = FLD_GET(r, 20, 20);
r                3458 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hfp_blanking_mode = FLD_GET(r, 21, 21);
r                3459 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hbp_blanking_mode = FLD_GET(r, 22, 22);
r                3460 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hsa_blanking_mode = FLD_GET(r, 23, 23);
r                3462 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VM_TIMING1);
r                3463 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hbp = FLD_GET(r, 11, 0);
r                3464 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hfp = FLD_GET(r, 23, 12);
r                3465 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	hsa = FLD_GET(r, 31, 24);
r                3467 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CLK_TIMING);
r                3468 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ddr_clk_post = FLD_GET(r, 7, 0);
r                3469 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ddr_clk_pre = FLD_GET(r, 15, 8);
r                3471 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VM_TIMING7);
r                3472 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	exit_hs_mode_lat = FLD_GET(r, 15, 0);
r                3473 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	enter_hs_mode_lat = FLD_GET(r, 31, 16);
r                3475 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CLK_CTRL);
r                3476 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	lp_clk_div = FLD_GET(r, 12, 0);
r                3477 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ddr_alwon = FLD_GET(r, 13, 13);
r                3479 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG0);
r                3480 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ths_exit = FLD_GET(r, 7, 0);
r                3482 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG1);
r                3483 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	tclk_trail = FLD_GET(r, 15, 8);
r                3536 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VM_TIMING4);
r                3537 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hsa_interleave_hs, 23, 16);
r                3538 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hfp_interleave_hs, 15, 8);
r                3539 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hbp_interleave_hs, 7, 0);
r                3540 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VM_TIMING4, r);
r                3542 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VM_TIMING5);
r                3543 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hsa_interleave_lp, 23, 16);
r                3544 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hfp_interleave_lp, 15, 8);
r                3545 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, hbp_interleave_lp, 7, 0);
r                3546 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VM_TIMING5, r);
r                3548 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_VM_TIMING6);
r                3549 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, bl_interleave_hs, 31, 15);
r                3550 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, bl_interleave_lp, 16, 0);
r                3551 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VM_TIMING6, r);
r                3557 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3591 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CTRL);
r                3592 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 1, 1);	/* CS_RX_EN */
r                3593 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 2, 2);	/* ECC_RX_EN */
r                3594 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 3, 3);	/* TX_FIFO_ARBITRATION */
r                3595 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 4, 4);	/* VP_CLK_RATIO, always 1, see errata*/
r                3596 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, buswidth, 7, 6); /* VP_DATA_BUS_WIDTH */
r                3597 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 0, 8, 8);	/* VP_CLK_POL */
r                3598 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 14, 14);	/* TRIGGER_RESET_MODE */
r                3599 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, 1, 19, 19);	/* EOT_ENABLE */
r                3601 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 1, 24, 24);	/* DCS_CMD_ENABLE */
r                3603 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, 0, 25, 25);
r                3606 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_CTRL, r);
r                3635 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	u32 r;
r                3637 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG0);
r                3638 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ths_prepare = FLD_GET(r, 31, 24);
r                3639 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ths_prepare_ths_zero = FLD_GET(r, 23, 16);
r                3641 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ths_trail = FLD_GET(r, 15, 8);
r                3642 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	ths_exit = FLD_GET(r, 7, 0);
r                3644 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG1);
r                3645 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	tlpx = FLD_GET(r, 20, 16) * 2;
r                3646 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	tclk_trail = FLD_GET(r, 15, 8);
r                3647 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	tclk_zero = FLD_GET(r, 7, 0);
r                3649 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_DSIPHY_CFG2);
r                3650 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	tclk_prepare = FLD_GET(r, 7, 0);
r                3666 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_read_reg(dsidev, DSI_CLK_TIMING);
r                3667 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ddr_clk_pre, 15, 8);
r                3668 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_MOD(r, ddr_clk_post, 7, 0);
r                3669 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_CLK_TIMING, r);
r                3681 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = FLD_VAL(enter_hs_mode_lat, 31, 16) |
r                3683 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	dsi_write_reg(dsidev, DSI_VM_TIMING7, r);
r                3717 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_read_reg(dsidev, DSI_VM_TIMING1);
r                3718 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, hbp, 11, 0);	/* HBP */
r                3719 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, hfp, 23, 12);	/* HFP */
r                3720 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, hsync_end ? hsa : 0, 31, 24);	/* HSA */
r                3721 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		dsi_write_reg(dsidev, DSI_VM_TIMING1, r);
r                3723 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_read_reg(dsidev, DSI_VM_TIMING2);
r                3724 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, vbp, 7, 0);	/* VBP */
r                3725 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, vfp, 15, 8);	/* VFP */
r                3726 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, vsa, 23, 16);	/* VSA */
r                3727 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, window_sync, 27, 24);	/* WINDOW_SYNC */
r                3728 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		dsi_write_reg(dsidev, DSI_VM_TIMING2, r);
r                3730 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_read_reg(dsidev, DSI_VM_TIMING3);
r                3731 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, timings->y_res, 14, 0);	/* VACT */
r                3732 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = FLD_MOD(r, tl, 31, 16);		/* TL */
r                3733 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		dsi_write_reg(dsidev, DSI_VM_TIMING3, r);
r                3813 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                3820 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_display_init_dispc(dsidev, mgr);
r                3821 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3839 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			r = -EINVAL;
r                3858 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_mgr_enable(mgr);
r                3859 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                3872 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                3908 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                3958 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = schedule_delayed_work(&dsi->framedone_timeout_work,
r                3960 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	BUG_ON(r == 0);
r                4067 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4075 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dispc_calc_clock_rates(fck, &dispc_cinfo);
r                4076 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                4078 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                4090 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4097 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dss_mgr_register_framedone_handler(mgr,
r                4099 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (r) {
r                4124 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_configure_dispc_clocks(dsidev);
r                4125 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4142 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                4161 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4165 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_pll_set_config(&dsi->pll, &cinfo);
r                4166 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                4168 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                4177 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4179 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_pll_enable(&dsi->pll);
r                4180 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4183 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_configure_dsi_clocks(dsidev);
r                4184 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4193 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_cio_init(dsidev);
r                4194 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4205 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_proto_config(dsidev);
r                4206 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4225 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                4252 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r = 0;
r                4260 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_runtime_get(dsidev);
r                4261 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4266 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_display_init_dsi(dsidev);
r                4267 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4279 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                4796 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4810 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EINVAL;
r                4816 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_lp_clock_calc(ctx.dsi_cinfo.clkout[HSDIV_DSI],
r                4818 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                4835 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                4966 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                4968 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_regulator_init(dsidev);
r                4969 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4970 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                4976 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_mgr_connect(mgr, dssdev);
r                4977 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                4978 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                4980 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = omapdss_output_set_device(dssdev, dst);
r                4981 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                4985 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                5077 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r, i;
r                5088 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EINVAL;
r                5097 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = -EINVAL;
r                5101 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = of_property_read_u32_array(ep, "lanes", lane_arr, num_pins);
r                5102 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                5111 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_configure_pins(&dsi->output, &pin_cfg);
r                5112 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r) {
r                5123 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                5212 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                5249 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dss_pll_register(pll);
r                5250 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                5251 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                5261 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r, i;
r                5361 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = devm_request_irq(&dsidev->dev, dsi->irq, omap_dsi_irq_handler,
r                5363 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r < 0) {
r                5365 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                5400 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_get_clocks(dsidev);
r                5401 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                5402 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                5408 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dsi_runtime_get(dsidev);
r                5409 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                5429 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = dsi_probe_of(dsidev);
r                5430 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (r) {
r                5435 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		r = of_platform_populate(dsidev->dev.of_node, NULL, NULL,
r                5437 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		if (r)
r                5438 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 			DSSERR("Failed to populate DSI child devices: %d\n", r);
r                5463 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	return r;
r                5523 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	int r;
r                5525 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	r = dispc_runtime_get();
r                5526 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 	if (r)
r                5527 drivers/video/fbdev/omap2/omapfb/dss/dsi.c 		return r;
r                 110 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c 	int r;
r                 113 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c 	r = of_property_read_u32(port, "reg", &reg);
r                 114 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c 	if (r)
r                 374 drivers/video/fbdev/omap2/omapfb/dss/dss.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, dss_read_reg(r))
r                 556 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                 560 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = clk_set_rate(dss.dss_clk, rate);
r                 561 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                 562 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		return r;
r                 583 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                 597 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_set_fck_rate(fck);
r                 598 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                 599 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		return r;
r                 766 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                 770 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = pm_runtime_get_sync(&dss.pdev->dev);
r                 771 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	WARN_ON(r < 0);
r                 772 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	return r < 0 ? r : 0;
r                 777 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                 781 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = pm_runtime_put_sync(&dss.pdev->dev);
r                 782 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	WARN_ON(r < 0 && r != -ENOSYS && r != -EBUSY);
r                 919 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r, ret = 0;
r                 935 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		r = of_property_read_u32(port, "reg", &reg);
r                 936 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		if (r)
r                 981 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		int r;
r                 983 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		r = of_property_read_u32(port, "reg", &reg);
r                 984 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		if (r)
r                1009 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                1033 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		r = PTR_ERR(pll_regulator);
r                1035 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		switch (r) {
r                1045 drivers/video/fbdev/omap2/omapfb/dss/dss.c 			return r;
r                1072 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                1093 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_get_clocks();
r                1094 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1095 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		return r;
r                1097 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_setup_default_clock();
r                1098 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1101 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_video_pll_probe(pdev);
r                1102 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1105 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_init_ports(pdev);
r                1106 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1111 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_runtime_get();
r                1112 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1139 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = component_bind_all(&pdev->dev, NULL);
r                1140 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1164 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	return r;
r                1220 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                1225 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = component_master_add_with_match(&pdev->dev, &dss_component_ops, match);
r                1226 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1227 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		return r;
r                1250 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	int r;
r                1261 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	r = dss_set_min_bus_tput(dev, 1000000000);
r                1262 drivers/video/fbdev/omap2/omapfb/dss/dss.c 	if (r)
r                1263 drivers/video/fbdev/omap2/omapfb/dss/dss.c 		return r;
r                  37 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                  41 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = pm_runtime_get_sync(&hdmi.pdev->dev);
r                  42 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	WARN_ON(r < 0);
r                  43 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r < 0)
r                  44 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                  51 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                  55 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = pm_runtime_put_sync(&hdmi.pdev->dev);
r                  56 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 112 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 114 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = regulator_enable(hdmi.vdda_reg);
r                 115 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 116 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 118 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_runtime_get();
r                 119 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 132 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 145 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 151 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_power_on_core(dssdev);
r                 152 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 153 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 165 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = dss_pll_enable(&hdmi.pll.pll);
r                 166 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 171 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo);
r                 172 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 177 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco,
r                 179 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 184 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON);
r                 185 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 196 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_wp_video_start(&hdmi.wp);
r                 197 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 200 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = dss_mgr_enable(mgr);
r                 201 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 288 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 292 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_runtime_get();
r                 293 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	BUG_ON(r);
r                 295 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi4_read_edid(&hdmi.core,  buf, len);
r                 300 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 319 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r = 0;
r                 327 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = -ENODEV;
r                 331 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_power_on_full(dssdev);
r                 332 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 338 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = hdmi4_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config,
r                 340 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		if (r) {
r                 341 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 			DSSERR("Error restoring audio configuration: %d", r);
r                 358 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 381 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r = 0;
r                 387 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_power_on_core(dssdev);
r                 388 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 398 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 416 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 418 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_init_regulator();
r                 419 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 420 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 426 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = dss_mgr_connect(mgr, dssdev);
r                 427 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 428 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 430 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = omapdss_output_set_device(dssdev, dst);
r                 431 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 435 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 459 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 464 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = hdmi_core_enable(dssdev);
r                 465 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		if (r)
r                 466 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 			return r;
r                 469 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = read_edid(edid, len);
r                 474 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 533 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 539 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy);
r                 540 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 548 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 672 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 682 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = hdmi_probe_of(pdev);
r                 683 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		if (r)
r                 684 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 			return r;
r                 687 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_wp_init(pdev, &hdmi.wp);
r                 688 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 689 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 691 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp);
r                 692 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 693 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 695 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_phy_init(pdev, &hdmi.phy);
r                 696 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 699 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi4_core_init(pdev, &hdmi.core);
r                 700 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r)
r                 706 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		r = -ENODEV;
r                 710 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = devm_request_threaded_irq(&pdev->dev, irq,
r                 713 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 722 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = hdmi_audio_register(&pdev->dev);
r                 723 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r) {
r                 727 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 735 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	return r;
r                 777 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	int r;
r                 779 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	r = dispc_runtime_get();
r                 780 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 	if (r < 0)
r                 781 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c 		return r;
r                 162 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	int r, l;
r                 167 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_core_ddc_init(core);
r                 168 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	if (r)
r                 169 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		return r;
r                 171 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
r                 172 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	if (r)
r                 173 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		return r;
r                 178 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = hdmi_core_ddc_edid(core, edid + 0x80, 1);
r                 179 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		if (r)
r                 180 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 			return r;
r                 222 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	u32 r = 0;
r                 227 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(core_sys_base, HDMI_CORE_SYS_SYS_CTRL1);
r                 228 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_VEN_FOLLOWVSYNC, 5, 5);
r                 229 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_HEN_FOLLOWHSYNC, 4, 4);
r                 230 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_BSEL_24BITBUS, 2, 2);
r                 231 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, HDMI_CORE_SYS_SYS_CTRL1_EDGE_RISINGEDGE, 1, 1);
r                 232 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(core_sys_base, HDMI_CORE_SYS_SYS_CTRL1, r);
r                 238 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(core_sys_base, HDMI_CORE_SYS_VID_MODE);
r                 242 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = FLD_MOD(r, cfg->op_dither_truc - 3, 7, 6);
r                 243 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = FLD_MOD(r, 1, 5, 5);
r                 245 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = FLD_MOD(r, cfg->op_dither_truc, 7, 6);
r                 246 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		r = FLD_MOD(r, 0, 5, 5);
r                 248 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(core_sys_base, HDMI_CORE_SYS_VID_MODE, r);
r                 251 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(core_av_base, HDMI_CORE_AV_HDMI_CTRL);
r                 252 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->deep_color_pkt, 6, 6);
r                 253 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->pkt_mode, 5, 3);
r                 254 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->hdmi_dvi, 0, 0);
r                 255 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(core_av_base, HDMI_CORE_AV_HDMI_CTRL, r);
r                 357 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c #define DUMPCORE(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 358 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(core->base, r))
r                 359 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c #define DUMPCOREAV(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 360 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), r))
r                 361 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c #define DUMPCOREAV2(i, r) seq_printf(s, "%s[%d]%*s %08x\n", #r, i, \
r                 362 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		(i < 10) ? 32 - (int)strlen(#r) : 31 - (int)strlen(#r), " ", \
r                 363 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 		hdmi_read_reg(hdmi_av_base(core), CORE_REG(i, r)))
r                 523 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	u32 r;
r                 552 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_ACR_CTRL);
r                 557 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, 0, 2, 2);
r                 559 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_acr_pkt, 1, 1);
r                 560 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->cts_mode, 0, 0);
r                 561 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_ACR_CTRL, r);
r                 590 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_I2S_IN_CTRL);
r                 591 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.sck_edge_mode, 6, 6);
r                 592 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.vbit, 4, 4);
r                 593 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.justification, 2, 2);
r                 594 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.direction, 1, 1);
r                 595 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.shift, 0, 0);
r                 596 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_I2S_IN_CTRL, r);
r                 603 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = hdmi_read_reg(av_base, HDMI_CORE_AV_AUD_MODE);
r                 604 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->i2s_cfg.active_sds, 7, 4);
r                 605 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_dsd_audio, 3, 3);
r                 606 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_parallel_aud_input, 2, 2);
r                 607 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	r = FLD_MOD(r, cfg->en_spdif, 1, 1);
r                 608 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c 	hdmi_write_reg(av_base, HDMI_CORE_AV_AUD_MODE, r);
r                  41 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                  45 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = pm_runtime_get_sync(&hdmi.pdev->dev);
r                  46 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	WARN_ON(r < 0);
r                  47 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r < 0)
r                  48 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                  55 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                  59 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = pm_runtime_put_sync(&hdmi.pdev->dev);
r                  60 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 129 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 131 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = regulator_enable(hdmi.vdda_reg);
r                 132 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 133 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 135 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_runtime_get();
r                 136 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 149 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 162 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 167 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_power_on_core(dssdev);
r                 168 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 169 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 182 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = dss_pll_enable(&hdmi.pll.pll);
r                 183 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 188 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo);
r                 189 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 194 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco,
r                 196 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 201 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_LDOON);
r                 202 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 213 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_wp_video_start(&hdmi.wp);
r                 214 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 217 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = dss_mgr_enable(mgr);
r                 218 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 309 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 314 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_runtime_get();
r                 315 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	BUG_ON(r);
r                 321 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi5_read_edid(&hdmi.core,  buf, len);
r                 328 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 349 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r = 0;
r                 357 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = -ENODEV;
r                 361 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_power_on_full(dssdev);
r                 362 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 368 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = hdmi5_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config,
r                 370 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		if (r) {
r                 371 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 			DSSERR("Error restoring audio configuration: %d", r);
r                 388 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 411 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r = 0;
r                 417 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_power_on_core(dssdev);
r                 418 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 428 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 446 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 448 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_init_regulator();
r                 449 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 450 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 456 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = dss_mgr_connect(mgr, dssdev);
r                 457 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 458 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 460 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = omapdss_output_set_device(dssdev, dst);
r                 461 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 465 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 489 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 494 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = hdmi_core_enable(dssdev);
r                 495 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		if (r)
r                 496 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 			return r;
r                 499 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = read_edid(edid, len);
r                 504 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 563 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 569 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy);
r                 570 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 578 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 711 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 721 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = hdmi_probe_of(pdev);
r                 722 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		if (r)
r                 723 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 			return r;
r                 726 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_wp_init(pdev, &hdmi.wp);
r                 727 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 728 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 730 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp);
r                 731 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 732 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 734 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_phy_init(pdev, &hdmi.phy);
r                 735 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 738 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi5_core_init(pdev, &hdmi.core);
r                 739 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r)
r                 745 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		r = -ENODEV;
r                 749 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = devm_request_threaded_irq(&pdev->dev, irq,
r                 752 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 761 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = hdmi_audio_register(&pdev->dev);
r                 762 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r) {
r                 763 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		DSSERR("Registering HDMI audio failed %d\n", r);
r                 766 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 774 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	return r;
r                 816 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	int r;
r                 818 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	r = dispc_runtime_get();
r                 819 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 	if (r < 0)
r                 820 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c 		return r;
r                 190 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	int r, n, i;
r                 198 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = hdmi_core_ddc_edid(core, edid, 0);
r                 199 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	if (r)
r                 208 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		r = hdmi_core_ddc_edid(core, edid + i * EDID_LENGTH, i);
r                 209 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		if (r)
r                 216 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	return r ? r : len;
r                 222 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c #define DUMPCORE(r) seq_printf(s, "%-35s %08x\n", #r,\
r                 223 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		hdmi_read_reg(core->base, r))
r                 310 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	unsigned char r = 0;
r                 319 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = hdmi_read_reg(base, HDMI_CORE_FC_INVIDCONF);
r                 320 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = FLD_MOD(r, vsync_pol, 6, 6);
r                 321 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = FLD_MOD(r, hsync_pol, 5, 5);
r                 322 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = FLD_MOD(r, cfg->data_enable_pol, 4, 4);
r                 323 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = FLD_MOD(r, cfg->vblank_osc, 1, 1);
r                 324 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = FLD_MOD(r, cfg->v_fc_config.timings.interlace, 0, 0);
r                 325 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	hdmi_write_reg(base, HDMI_CORE_FC_INVIDCONF, r);
r                 415 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	unsigned c, m, r;
r                 434 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 	r = (ptr[1] >> 0) & 0xf;
r                 451 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c 		(c << 6) | (m << 4) | (r << 0));
r                  16 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 	int r, len;
r                  27 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		r = of_property_read_u32_array(ep, "lanes", lanes,
r                  29 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		if (r) {
r                  31 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 			return r;
r                  34 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		r = hdmi_phy_parse_lanes(phy, lanes);
r                  35 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		if (r) {
r                  37 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 			return r;
r                  42 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		r = hdmi_phy_parse_lanes(phy, default_lanes);
r                  43 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 		if (WARN_ON(r)) {
r                  45 drivers/video/fbdev/omap2/omapfb/dss/hdmi_common.c 			return r;
r                  30 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c #define DUMPPHY(r) seq_printf(s, "%-35s %08x\n", #r,\
r                  31 drivers/video/fbdev/omap2/omapfb/dss/hdmi_phy.c 		hdmi_read_reg(phy->base, r))
r                  25 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c #define DUMPPLL(r) seq_printf(s, "%-35s %08x\n", #r,\
r                  26 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 		hdmi_read_reg(pll->base, r))
r                 103 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	u16 r = 0;
r                 107 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	r = hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
r                 108 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	if (r)
r                 109 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 		return r;
r                 181 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	int r;
r                 212 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	r = dss_pll_register(pll);
r                 213 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	if (r)
r                 214 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 		return r;
r                 222 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	int r;
r                 239 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	r = dsi_init_pll_data(pdev, pll);
r                 240 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 	if (r) {
r                 242 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c 		return r;
r                  23 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, hdmi_read_reg(wp->base, r))
r                 147 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	u32 r;
r                 154 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_VIDEO_CFG);
r                 155 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, vsync_pol, 7, 7);
r                 156 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, hsync_pol, 6, 6);
r                 157 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, timings->interlace, 3, 3);
r                 158 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, 1, 1, 0); /* HDMI_TIMING_MASTER_24BIT */
r                 159 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_VIDEO_CFG, r);
r                 206 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	u32 r;
r                 210 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CFG);
r                 214 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 		r = FLD_MOD(r, aud_fmt->stereo_channels, 26, 24);
r                 215 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 		r = FLD_MOD(r, aud_fmt->active_chnnls_msk, 23, 16);
r                 217 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->en_sig_blk_strt_end, 5, 5);
r                 218 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->type, 4, 4);
r                 219 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->justification, 3, 3);
r                 220 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->sample_order, 2, 2);
r                 221 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->samples_per_word, 1, 1);
r                 222 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_fmt->sample_size, 0, 0);
r                 223 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CFG, r);
r                 229 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	u32 r;
r                 233 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CFG2);
r                 234 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->transfer_size, 15, 8);
r                 235 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->block_size, 7, 0);
r                 236 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CFG2, r);
r                 238 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = hdmi_read_reg(wp->base, HDMI_WP_AUDIO_CTRL);
r                 239 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->mode, 9, 9);
r                 240 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	r = FLD_MOD(r, aud_dma->fifo_threshold, 8, 0);
r                 241 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c 	hdmi_write_reg(wp->base, HDMI_WP_AUDIO_CTRL, r);
r                  46 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r = 0;
r                  66 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 			r = -EINVAL;
r                  72 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 			r = -EINVAL;
r                  81 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 			r = -EINVAL;
r                  89 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		r = dssdev->driver->connect(dssdev);
r                  90 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		if (r) {
r                 102 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		r = mgr->apply(mgr);
r                 103 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		if (r) {
r                 113 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	return r ? r : size;
r                 131 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 133 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = kstrtouint(buf, 0, &color);
r                 134 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 135 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 141 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 142 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 143 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 145 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 146 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 147 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 175 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 177 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = sysfs_match_string(trans_key_type_str, buf);
r                 178 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r < 0)
r                 179 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 183 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	info.trans_key_type = r;
r                 185 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 186 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 187 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 189 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 190 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 191 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 211 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 213 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = kstrtouint(buf, 0, &key_value);
r                 214 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 215 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 221 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 222 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 223 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 225 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 226 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 227 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 247 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 249 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = strtobool(buf, &enable);
r                 250 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 251 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 257 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 258 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 259 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 261 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 262 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 263 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 288 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 293 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = strtobool(buf, &enable);
r                 294 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 295 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 301 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 302 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 303 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 305 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 306 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 307 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 326 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r;
r                 332 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = strtobool(buf, &enable);
r                 333 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 334 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 343 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 344 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 345 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 347 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 348 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 349 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 379 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	int r, i;
r                 404 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->set_manager_info(mgr, &info);
r                 405 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 406 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                 408 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	r = mgr->apply(mgr);
r                 409 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 	if (r)
r                 410 drivers/video/fbdev/omap2/omapfb/dss/manager-sysfs.c 		return r;
r                  74 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	int i, r;
r                  79 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		r = dss_manager_kobj_init(mgr, pdev);
r                  80 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		if (r)
r                 220 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	int r;
r                 223 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		r = dss_mgr_check_zorder(mgr, overlay_infos);
r                 224 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		if (r)
r                 225 drivers/video/fbdev/omap2/omapfb/dss/manager.c 			return r;
r                 228 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	r = dss_mgr_check_timings(mgr, mgr_timings);
r                 229 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	if (r)
r                 230 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		return r;
r                 232 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	r = dss_mgr_check_lcd_config(mgr, lcd_config);
r                 233 drivers/video/fbdev/omap2/omapfb/dss/manager.c 	if (r)
r                 234 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		return r;
r                 238 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		int r;
r                 245 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		r = dss_ovl_check(ovl, oi, mgr_timings);
r                 246 drivers/video/fbdev/omap2/omapfb/dss/manager.c 		if (r)
r                 247 drivers/video/fbdev/omap2/omapfb/dss/manager.c 			return r;
r                  23 drivers/video/fbdev/omap2/omapfb/dss/output.c 	int r;
r                  30 drivers/video/fbdev/omap2/omapfb/dss/output.c 		r = -EINVAL;
r                  36 drivers/video/fbdev/omap2/omapfb/dss/output.c 		r = -EINVAL;
r                  49 drivers/video/fbdev/omap2/omapfb/dss/output.c 	return r;
r                  55 drivers/video/fbdev/omap2/omapfb/dss/output.c 	int r;
r                  61 drivers/video/fbdev/omap2/omapfb/dss/output.c 		r = -EINVAL;
r                  68 drivers/video/fbdev/omap2/omapfb/dss/output.c 		r = -EINVAL;
r                  81 drivers/video/fbdev/omap2/omapfb/dss/output.c 	return r;
r                  37 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int i, r;
r                  67 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = dispc_runtime_get();
r                  68 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                  69 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                  73 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->unset_manager(ovl);
r                  74 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r) {
r                  79 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = old_mgr->apply(old_mgr);
r                  80 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                  85 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->set_manager(ovl, mgr);
r                  86 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r) {
r                  91 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = mgr->apply(mgr);
r                  92 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 102 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	return r;
r                 137 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 150 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = ovl->set_overlay_info(ovl, &info);
r                 151 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 152 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 155 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->manager->apply(ovl->manager);
r                 156 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 157 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 			return r;
r                 176 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 189 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = ovl->set_overlay_info(ovl, &info);
r                 190 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 191 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 194 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->manager->apply(ovl->manager);
r                 195 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 196 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 			return r;
r                 210 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 213 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = strtobool(buf, &enable);
r                 214 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 215 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 218 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->enable(ovl);
r                 220 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->disable(ovl);
r                 222 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 223 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 241 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 248 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = kstrtou8(buf, 0, &alpha);
r                 249 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 250 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 256 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = ovl->set_overlay_info(ovl, &info);
r                 257 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 258 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 261 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->manager->apply(ovl->manager);
r                 262 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 263 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 			return r;
r                 283 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 290 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = kstrtou8(buf, 0, &alpha);
r                 291 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 292 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 298 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = ovl->set_overlay_info(ovl, &info);
r                 299 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 300 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 303 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->manager->apply(ovl->manager);
r                 304 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 305 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 			return r;
r                 323 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	int r;
r                 330 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = kstrtou8(buf, 0, &zorder);
r                 331 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 332 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 338 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	r = ovl->set_overlay_info(ovl, &info);
r                 339 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 	if (r)
r                 340 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		return r;
r                 343 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		r = ovl->manager->apply(ovl->manager);
r                 344 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 		if (r)
r                 345 drivers/video/fbdev/omap2/omapfb/dss/overlay-sysfs.c 			return r;
r                  47 drivers/video/fbdev/omap2/omapfb/dss/overlay.c 	int i, r;
r                  82 drivers/video/fbdev/omap2/omapfb/dss/overlay.c 		r = dss_overlay_kobj_init(ovl, pdev);
r                  83 drivers/video/fbdev/omap2/omapfb/dss/overlay.c 		if (r)
r                  70 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	int r;
r                  72 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	r = clk_prepare_enable(pll->clkin);
r                  73 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	if (r)
r                  74 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		return r;
r                  77 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		r = regulator_enable(pll->regulator);
r                  78 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		if (r)
r                  82 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	r = pll->ops->enable(pll);
r                  83 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	if (r)
r                  93 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	return r;
r                 110 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	int r;
r                 112 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	r = pll->ops->set_config(pll, cinfo);
r                 113 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	if (r)
r                 114 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		return r;
r                 243 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	int r = 0;
r                 297 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		r = -EIO;
r                 303 drivers/video/fbdev/omap2/omapfb/dss/pll.c 		r = -EIO;
r                 316 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	r = dss_wait_hsdiv_ack(pll,
r                 321 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	if (r) {
r                 327 drivers/video/fbdev/omap2/omapfb/dss/pll.c 	return r;
r                 126 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	int r;
r                 133 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = regulator_enable(sdi.vdds_sdi_reg);
r                 134 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 137 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = dispc_runtime_get();
r                 138 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 145 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = sdi_calc_clock_div(t->pixelclock, &fck, &dispc_cinfo);
r                 146 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 163 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = dss_set_fck_rate(fck);
r                 164 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 183 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = dss_sdi_enable();
r                 184 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 188 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = dss_mgr_enable(out->manager);
r                 189 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 203 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	return r;
r                 273 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	int r;
r                 275 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = sdi_init_regulator();
r                 276 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 277 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 		return r;
r                 283 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = dss_mgr_connect(mgr, dssdev);
r                 284 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r)
r                 285 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 		return r;
r                 287 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = omapdss_output_set_device(dssdev, dst);
r                 288 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r) {
r                 292 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 		return r;
r                 407 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	int r;
r                 413 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	r = of_property_read_u32(ep, "datapairs", &datapairs);
r                 414 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	if (r) {
r                 434 drivers/video/fbdev/omap2/omapfb/dss/sdi.c 	return r;
r                 389 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 393 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = pm_runtime_get_sync(&venc.pdev->dev);
r                 394 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	WARN_ON(r < 0);
r                 395 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	return r < 0 ? r : 0;
r                 400 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 404 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = pm_runtime_put_sync(&venc.pdev->dev);
r                 405 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	WARN_ON(r < 0 && r != -ENOSYS);
r                 425 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 427 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_runtime_get();
r                 428 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 451 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = regulator_enable(venc.vdda_dac_reg);
r                 452 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 455 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = dss_mgr_enable(mgr);
r                 456 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 469 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	return r;
r                 489 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 497 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		r = -ENODEV;
r                 501 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_power_on(dssdev);
r                 502 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 512 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	return r;
r                 577 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 588 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_runtime_get();
r                 589 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 600 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	return r;
r                 648 drivers/video/fbdev/omap2/omapfb/dss/venc.c #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r))
r                 723 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 725 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_init_regulator();
r                 726 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 727 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		return r;
r                 733 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = dss_mgr_connect(mgr, dssdev);
r                 734 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 735 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		return r;
r                 737 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = omapdss_output_set_device(dssdev, dst);
r                 738 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r) {
r                 742 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		return r;
r                 807 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 815 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = of_property_read_u32(ep, "ti,channels", &channels);
r                 816 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r) {
r                 818 drivers/video/fbdev/omap2/omapfb/dss/venc.c 			"failed to read property 'ti,channels': %d\n", r);
r                 831 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		r = -EINVAL;
r                 850 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 871 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_get_clocks(pdev);
r                 872 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 873 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		return r;
r                 877 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = venc_runtime_get();
r                 878 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r)
r                 887 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		r = venc_probe_of(pdev);
r                 888 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		if (r) {
r                 903 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	return r;
r                 943 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	int r;
r                 945 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	r = dispc_runtime_get();
r                 946 drivers/video/fbdev/omap2/omapfb/dss/venc.c 	if (r < 0)
r                 947 drivers/video/fbdev/omap2/omapfb/dss/venc.c 		return r;
r                  59 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	int r;
r                  61 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	r = dss_runtime_get();
r                  62 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	if (r)
r                  63 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 		return r;
r                  69 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	r = dss_pll_wait_reset_done(pll);
r                  70 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	if (r)
r                  82 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	return r;
r                 137 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	int r;
r                 195 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	r = dss_pll_register(pll);
r                 196 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 	if (r)
r                 197 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c 		return ERR_PTR(r);
r                  58 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r = 0;
r                  63 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                  73 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                  92 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                 104 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = ovl->disable(ovl);
r                 105 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 110 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_setup_overlay(fbi, ovl, pi->pos_x, pi->pos_y,
r                 112 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 124 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = ovl->set_overlay_info(ovl, &info);
r                 125 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 130 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = ovl->manager->apply(ovl->manager);
r                 131 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 136 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = ovl->enable(ovl);
r                 137 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 173 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 208 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r = 0, i;
r                 228 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EBUSY;
r                 243 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 				r = -EBUSY;
r                 249 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = omapfb_realloc_fbmem(fbi, size, mi->type);
r                 250 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	if (r) {
r                 259 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 305 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r;
r                 322 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = 0;
r                 333 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 338 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 371 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r;
r                 379 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = mgr->set_manager_info(mgr, &info);
r                 380 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 381 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			return r;
r                 383 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = mgr->apply(mgr);
r                 385 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		return r;
r                 406 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = mgr->set_manager_info(mgr, &info);
r                 407 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	if (r)
r                 408 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		return r;
r                 410 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = mgr->apply(mgr);
r                 412 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 420 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r;
r                 434 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                 438 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = _omapfb_set_color_key(mgr, ck);
r                 442 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 451 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r = 0;
r                 464 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                 472 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 480 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r;
r                 500 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	r = display->driver->memory_read(display, buf, mr->buffer_size,
r                 503 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	if (r > 0) {
r                 504 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (copy_to_user(mr->buffer, buf, r))
r                 505 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 510 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 562 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r = 0;
r                 567 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = ovl->wait_for_go(ovl);
r                 568 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 572 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                 599 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	int r = 0;
r                 612 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = display->driver->sync(display);
r                 618 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 625 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 629 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_update_window(fbi, p.uwnd_o.x, p.uwnd_o.y,
r                 636 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 642 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 646 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_update_window(fbi, p.uwnd.x, p.uwnd.y,
r                 654 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 656 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = omapfb_setup_plane(fbi, &p.plane_info);
r                 661 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_query_plane(fbi, &p.plane_info);
r                 662 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r < 0)
r                 666 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 673 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 675 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = omapfb_setup_mem(fbi, &p.mem_info);
r                 680 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_query_mem(fbi, &p.mem_info);
r                 681 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r < 0)
r                 685 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 691 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 702 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 709 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 712 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_get_ovl_colormode(fbdev, &p.ovl_colormode);
r                 713 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r < 0)
r                 717 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 723 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 725 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = omapfb_set_update_mode(fbi, p.update_mode);
r                 730 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_get_update_mode(fbi, &p.update_mode);
r                 731 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 735 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 742 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 744 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = omapfb_set_color_key(fbi, &p.color_key);
r                 749 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_get_color_key(fbi, &p.color_key);
r                 750 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		if (r)
r                 754 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 759 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 763 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -ENODEV;
r                 772 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 778 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 782 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = mgr->wait_for_vsync(mgr);
r                 788 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 792 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_wait_for_go(fbi);
r                 800 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 804 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 808 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = display->driver->run_test(display, p.test_num);
r                 815 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 819 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EINVAL;
r                 823 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = display->driver->run_test(display, p.test_num);
r                 832 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 836 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = omapfb_memory_read(fbi, &p.memory_read);
r                 853 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 862 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 867 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -ENODEV;
r                 871 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = display->driver->enable_te(display,
r                 883 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -ENODEV;
r                 904 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 			r = -EFAULT;
r                 910 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		r = -EINVAL;
r                 913 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	if (r < 0)
r                 914 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 		DBG("ioctl failed: %d\n", r);
r                 916 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c 	return r;
r                  62 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = (color >> 16) & 0xff;
r                  70 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = r * 32 / 256;
r                  74 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		__raw_writew((r << 11) | (g << 5) | (b << 0), p);
r                  81 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		__raw_writeb(r, p + 2);
r                 123 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				unsigned r = 0, g = 0, b = 0;
r                 131 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 						r = (y % 32) * 256 / 32;
r                 138 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 						r = (y % 256);
r                 140 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				c = (r << 16) | (g << 8) | (b << 0);
r                 500 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                 508 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_mode_to_dss_mode(var, &mode);
r                 509 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                 510 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                 549 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omap_vrfb_map_angle(vrfb, var->yres_virtual, 0);
r                 550 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                 551 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                 660 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                 666 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_mode_to_dss_mode(var, &mode);
r                 667 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                 669 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                 834 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                 871 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_mode_to_dss_mode(var, &mode);
r                 872 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                 912 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = ovl->set_overlay_info(ovl, &info);
r                 913 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                 922 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                 928 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                 983 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_setup_overlay(fbi, ovl, posx, posy, outw, outh);
r                 984 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                 993 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1001 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1007 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = check_fb_var(fbi, var);
r                1011 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1018 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1026 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = setup_vrfb_rotation(fbi);
r                1027 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                1030 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_apply_changes(fbi, 0);
r                1035 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1043 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1059 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_apply_changes(fbi, 0);
r                1063 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1096 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1110 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = vm_iomap_memory(vma, start, len);
r                1111 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                1124 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1137 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                1146 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EINVAL;
r                1158 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EINVAL;
r                1164 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r != 0)
r                1180 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1193 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int count, index, r;
r                1208 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = _setcolreg(info, index++, *red++, *green++, *blue++, trans,
r                1210 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r != 0)
r                1211 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                1223 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                1237 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = display->driver->enable(display);
r                1263 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EINVAL;
r                1269 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1365 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1398 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omap_vrfb_request_ctx(&rg->vrfb);
r                1399 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                1403 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                1528 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int i, r;
r                1547 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			r = omapfb_alloc_fbmem_display(fbdev->fbs[i],
r                1550 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			if (r)
r                1551 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				return r;
r                1592 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                1609 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_alloc_fbmem(fbi, size, 0);
r                1611 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                1618 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                1626 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_fb_init(fbdev, fbi);
r                1627 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                1631 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_apply_changes(fbi, 1);
r                1632 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                1639 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = check_fb_var(fbi, &new_var);
r                1640 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                1644 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = setup_vrfb_rotation(fbi);
r                1645 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                1655 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1736 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                1794 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = check_fb_var(fbi, var);
r                1795 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                1799 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = setup_vrfb_rotation(fbi);
r                1800 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                1803 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_alloc_cmap(&fbi->cmap, 256, 0);
r                1804 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                1808 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                1871 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r, i;
r                1918 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_allocate_all_fbs(fbdev);
r                1919 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                1921 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                1932 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_fb_init(fbdev, fbi);
r                1935 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                1937 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                1954 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = register_framebuffer(fbdev->fbs[i]);
r                1955 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r != 0) {
r                1958 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                1969 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_apply_changes(fbi, 1);
r                1972 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                1974 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                1987 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			r = omapfb_overlay_enable(ovl, 1);
r                1989 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			if (r) {
r                1992 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				return r;
r                2009 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                2033 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOMEM;
r                2039 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOMEM;
r                2045 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOMEM;
r                2051 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = fb_find_mode(var, fbi, mode_str, NULL, 0, NULL, 24);
r                2052 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r == 0) {
r                2053 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EINVAL;
r                2093 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = 0;
r                2100 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                2106 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                2111 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_mode_to_timings(mode_str, display, &timings, &bpp);
r                2112 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                2113 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                2119 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = display->driver->check_timings(display, &timings);
r                2120 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                2121 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                2157 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                2164 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	while (!r && (this_opt = strsep(&options, ",")) != NULL) {
r                2171 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			r = -EINVAL;
r                2189 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			r = -EINVAL;
r                2193 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_set_def_mode(fbdev, display, mode_str);
r                2194 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                2200 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                2238 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r, i, best_idx, len;
r                2248 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = display->driver->read_edid(display, edid, len);
r                2249 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r < 0)
r                2254 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOMEM;
r                2281 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = display->driver->check_timings(display, &t);
r                2282 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r == 0) {
r                2289 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOENT;
r                2296 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = 0;
r                2304 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                2312 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r;
r                2314 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = dssdrv->enable(dssdev);
r                2315 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                2318 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                2336 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			r = dssdrv->enable_te(dssdev, 1);
r                2337 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			if (r) {
r                2339 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 				return r;
r                2344 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = dssdrv->update(dssdev, 0, 0, w, h);
r                2345 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                2348 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 			return r;
r                2360 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int i, r;
r                2363 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = def_dssdev->driver->connect(def_dssdev);
r                2364 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                2366 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		return r;
r                2395 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = ovl->set_manager(ovl, mgr);
r                2396 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                2457 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	int r = 0;
r                2469 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENODEV;
r                2476 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -ENOMEM;
r                2486 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapdss_compat_init();
r                2487 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                2519 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EPROBE_DEFER;
r                2534 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = -EPROBE_DEFER;
r                2538 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_init_connections(fbdev, def_display);
r                2539 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                2551 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_find_best_mode(def_display, &t);
r                2553 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r == 0)
r                2557 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_create_framebuffers(fbdev);
r                2558 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r)
r                2564 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = mgr->apply(mgr);
r                2565 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r)
r                2572 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		r = omapfb_init_display(fbdev, def_display);
r                2573 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		if (r) {
r                2582 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	r = omapfb_create_sysfs(fbdev);
r                2583 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	if (r) {
r                2604 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 	return r;
r                  43 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                  45 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = kstrtoint(buf, 0, &rot_type);
r                  46 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                  47 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                  54 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = 0;
r                  61 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = -EBUSY;
r                  76 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	return r ? r : count;
r                  96 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                  99 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = strtobool(buf, &mirror);
r                 100 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 101 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                 110 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = check_fb_var(fbi, &new_var);
r                 111 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 117 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = omapfb_apply_changes(fbi, 0);
r                 118 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 121 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = count;
r                 127 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	return r;
r                 187 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int num_ovls, r, i;
r                 207 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				r = -EINVAL;
r                 213 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				r = -EINVAL;
r                 236 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 			r = -EINVAL;
r                 304 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = omapfb_apply_changes(fbi, 0);
r                 308 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		if (r)
r                 312 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = count;
r                 317 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	return r;
r                 347 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int num_ovls = 0, r, i;
r                 365 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				r = -EINVAL;
r                 371 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				r = -EINVAL;
r                 385 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = -EINVAL;
r                 395 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = omapfb_apply_changes(fbi, 0);
r                 399 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		if (r)
r                 405 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = count;
r                 409 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	return r;
r                 430 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                 433 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = kstrtoul(buf, 0, &size);
r                 434 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 435 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                 450 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = -EBUSY;
r                 465 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				r = -EBUSY;
r                 472 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		r = omapfb_realloc_fbmem(fbi, size, ofbi->region->type);
r                 473 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		if (r) {
r                 479 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = count;
r                 486 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	return r;
r                 512 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                 514 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = omapfb_get_update_mode(fbi, &mode);
r                 516 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 517 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                 527 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                 529 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = kstrtouint(buf, 0, &mode);
r                 530 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 531 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                 533 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	r = omapfb_set_update_mode(fbi, mode);
r                 534 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	if (r)
r                 535 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 		return r;
r                 556 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 	int r;
r                 562 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 			r = device_create_file(fbdev->fbs[i]->dev,
r                 565 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 			if (r) {
r                 568 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c 				return r;
r                 283 drivers/video/fbdev/omap2/omapfb/vrfb.c 	int r;
r                 295 drivers/video/fbdev/omap2/omapfb/vrfb.c 		r = -EBUSY;
r                 314 drivers/video/fbdev/omap2/omapfb/vrfb.c 			r = -ENOMEM;
r                 323 drivers/video/fbdev/omap2/omapfb/vrfb.c 	r = 0;
r                 326 drivers/video/fbdev/omap2/omapfb/vrfb.c 	return r;
r                 279 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[24].r, 7);	/* turn display off */
r                 282 drivers/video/fbdev/platinumfb.c 		out_be32(&platinum_regs->reg[i+32].r, init->regs[i]);
r                 284 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[26+32].r, (pinfo->total_vram == 0x100000 ?
r                 287 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[16].r, (unsigned) pinfo->frame_buffer_phys+init->fb_offset+0x10);
r                 288 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[18].r, init->pitch[cmode]);
r                 289 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[19].r, (pinfo->total_vram == 0x100000 ?
r                 292 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[20].r, (pinfo->total_vram == 0x100000 ? 0x11 : 0x1011));
r                 293 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[21].r, 0x100);
r                 294 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[22].r, 1);
r                 295 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 1);
r                 296 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[26].r, 0xc00);
r                 297 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[27].r, 0x235);
r                 308 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[24].r, 0);	/* turn display on */
r                 414 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 7);	/* turn off drivers */
r                 416 drivers/video/fbdev/platinumfb.c 	sense = (~in_be32(&platinum_regs->reg[23].r) & 7) << 8;
r                 419 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 3);	/* drive A low */
r                 421 drivers/video/fbdev/platinumfb.c 	sense |= (~in_be32(&platinum_regs->reg[23].r) & 3) << 4;
r                 422 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 5);	/* drive B low */
r                 424 drivers/video/fbdev/platinumfb.c 	sense |= (~in_be32(&platinum_regs->reg[23].r) & 4) << 1;
r                 425 drivers/video/fbdev/platinumfb.c 	sense |= (~in_be32(&platinum_regs->reg[23].r) & 1) << 2;
r                 426 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 6);	/* drive C low */
r                 428 drivers/video/fbdev/platinumfb.c 	sense |= (~in_be32(&platinum_regs->reg[23].r) & 6) >> 1;
r                 430 drivers/video/fbdev/platinumfb.c 	out_be32(&platinum_regs->reg[23].r, 7);	/* turn off drivers */
r                 584 drivers/video/fbdev/platinumfb.c 	out_be32(&pinfo->platinum_regs->reg[16].r, (unsigned)pinfo->frame_buffer_phys);
r                 585 drivers/video/fbdev/platinumfb.c 	out_be32(&pinfo->platinum_regs->reg[20].r, 0x1011);	/* select max vram */
r                 586 drivers/video/fbdev/platinumfb.c 	out_be32(&pinfo->platinum_regs->reg[24].r, 0);	/* switch in vram */
r                  40 drivers/video/fbdev/platinumfb.h 	unsigned r;			/* notice this is 32 bits. */
r                 434 drivers/video/fbdev/pm2fb.c 		      unsigned char r, unsigned char g, unsigned char b)
r                 439 drivers/video/fbdev/pm2fb.c 	pm2_WR(p, PM2R_RD_PALETTE_DATA, r);
r                 110 drivers/video/fbdev/pm3fb.c static inline void PM3_WRITE_DAC_REG(struct pm3_par *par, unsigned r, u8 v)
r                 113 drivers/video/fbdev/pm3fb.c 	PM3_WRITE_REG(par, PM3RD_IndexHigh, (r >> 8) & 0xff);
r                 114 drivers/video/fbdev/pm3fb.c 	PM3_WRITE_REG(par, PM3RD_IndexLow, r & 0xff);
r                 121 drivers/video/fbdev/pm3fb.c 			unsigned char r, unsigned char g, unsigned char b)
r                 126 drivers/video/fbdev/pm3fb.c 	PM3_WRITE_REG(par, PM3RD_PaletteData, r);
r                 135 drivers/video/fbdev/pm3fb.c 			unsigned char r, unsigned char g, unsigned char b)
r                 140 drivers/video/fbdev/pm3fb.c 		pm3fb_set_color(par, i, r, g, b);
r                 708 drivers/video/fbdev/ps3fb.c 	int r;
r                 710 drivers/video/fbdev/ps3fb.c 	r = vm_iomap_memory(vma, info->fix.smem_start, info->fix.smem_len);
r                 716 drivers/video/fbdev/ps3fb.c 	return r;
r                 581 drivers/video/fbdev/pxa3xx-gcu.c 	struct resource *r;
r                 603 drivers/video/fbdev/pxa3xx-gcu.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 604 drivers/video/fbdev/pxa3xx-gcu.c 	priv->mmio_base = devm_ioremap_resource(dev, r);
r                 660 drivers/video/fbdev/pxa3xx-gcu.c 	priv->resource_mem = r;
r                 666 drivers/video/fbdev/pxa3xx-gcu.c 			(void *) r->start, (void *) priv->shared_phys,
r                 309 drivers/video/fbdev/pxafb.c #define SET_PIXFMT(v, r, g, b, t)				\
r                 311 drivers/video/fbdev/pxafb.c 	(v)->transp.offset = (t) ? (r) + (g) + (b) : 0;		\
r                 315 drivers/video/fbdev/pxafb.c 	(v)->red.length    = (r); (v)->red.offset = (b) + (g);	\
r                2240 drivers/video/fbdev/pxafb.c 	struct resource *r;
r                2306 drivers/video/fbdev/pxafb.c 	r = platform_get_resource(dev, IORESOURCE_MEM, 0);
r                2307 drivers/video/fbdev/pxafb.c 	if (r == NULL) {
r                2313 drivers/video/fbdev/pxafb.c 	fbi->mmio_base = devm_ioremap_resource(&dev->dev, r);
r                1353 drivers/video/fbdev/riva/fbdev.c 			u8 r, g, b;
r                1362 drivers/video/fbdev/riva/fbdev.c 			riva_rclut(chip, regno*4, &r, &g, &b);
r                1364 drivers/video/fbdev/riva/fbdev.c 				riva_wclut(chip, regno*4+i, r,
r                  45 drivers/video/fbdev/s3c-fb.c #define writel(v, r) do { \
r                  46 drivers/video/fbdev/s3c-fb.c 	pr_debug("%s: %08x => %p\n", __func__, (unsigned int)v, r); \
r                  47 drivers/video/fbdev/s3c-fb.c 	__raw_writel(v, r); \
r                 147 drivers/video/fbdev/s3c-fb.c 	struct fb_bitfield	r;
r                 769 drivers/video/fbdev/s3c-fb.c 			val  = chan_to_field(red, &win->palette.r);
r                1218 drivers/video/fbdev/s3c-fb.c 		win->palette.r.offset = 11;
r                1219 drivers/video/fbdev/s3c-fb.c 		win->palette.r.length = 5;
r                1227 drivers/video/fbdev/s3c-fb.c 		win->palette.r.offset = 16;
r                1228 drivers/video/fbdev/s3c-fb.c 		win->palette.r.length = 8;
r                 461 drivers/video/fbdev/s3fb.c 	u16 m, n, r;
r                 466 drivers/video/fbdev/s3fb.c 			      1000000000 / pixclock, &m, &n, &r, info->node);
r                 483 drivers/video/fbdev/s3fb.c 		vga_wseq(par->state.vgabase, 0x12, (n - 2) | ((r & 3) << 6));	/* n and two bits of r */
r                 484 drivers/video/fbdev/s3fb.c 		vga_wseq(par->state.vgabase, 0x29, r >> 2); /* remaining highest bit of r */
r                 486 drivers/video/fbdev/s3fb.c 		vga_wseq(par->state.vgabase, 0x12, (n - 2) | (r << 5));
r                 550 drivers/video/fbdev/s3fb.c 	u16 m, n, r;
r                 590 drivers/video/fbdev/s3fb.c 	rv = svga_compute_pll(&s3_pll, PICOS2KHZ(var->pixclock), &m, &n, &r,
r                  48 drivers/video/fbdev/savage/savagefb-i2c.c 	unsigned int r;
r                  50 drivers/video/fbdev/savage/savagefb-i2c.c 	r = readl(chan->ioaddr + chan->reg);
r                  52 drivers/video/fbdev/savage/savagefb-i2c.c 		r |= SAVAGE4_I2C_SCL_OUT;
r                  54 drivers/video/fbdev/savage/savagefb-i2c.c 		r &= ~SAVAGE4_I2C_SCL_OUT;
r                  55 drivers/video/fbdev/savage/savagefb-i2c.c 	writel(r, chan->ioaddr + chan->reg);
r                  63 drivers/video/fbdev/savage/savagefb-i2c.c 	unsigned int r;
r                  64 drivers/video/fbdev/savage/savagefb-i2c.c 	r = readl(chan->ioaddr + chan->reg);
r                  66 drivers/video/fbdev/savage/savagefb-i2c.c 		r |= SAVAGE4_I2C_SDA_OUT;
r                  68 drivers/video/fbdev/savage/savagefb-i2c.c 		r &= ~SAVAGE4_I2C_SDA_OUT;
r                  69 drivers/video/fbdev/savage/savagefb-i2c.c 	writel(r, chan->ioaddr + chan->reg);
r                  90 drivers/video/fbdev/savage/savagefb-i2c.c 	u32			  r;
r                  92 drivers/video/fbdev/savage/savagefb-i2c.c 	r = VGArCR(chan->reg, chan->par);
r                  93 drivers/video/fbdev/savage/savagefb-i2c.c 	r |= PROSAVAGE_I2C_ENAB;
r                  95 drivers/video/fbdev/savage/savagefb-i2c.c 		r |= PROSAVAGE_I2C_SCL_OUT;
r                  97 drivers/video/fbdev/savage/savagefb-i2c.c 		r &= ~PROSAVAGE_I2C_SCL_OUT;
r                 100 drivers/video/fbdev/savage/savagefb-i2c.c 	VGAwCR(chan->reg, r, chan->par);
r                 106 drivers/video/fbdev/savage/savagefb-i2c.c 	unsigned int r;
r                 108 drivers/video/fbdev/savage/savagefb-i2c.c 	r = VGArCR(chan->reg, chan->par);
r                 109 drivers/video/fbdev/savage/savagefb-i2c.c 	r |= PROSAVAGE_I2C_ENAB;
r                 111 drivers/video/fbdev/savage/savagefb-i2c.c 		r |= PROSAVAGE_I2C_SDA_OUT;
r                 113 drivers/video/fbdev/savage/savagefb-i2c.c 		r &= ~PROSAVAGE_I2C_SDA_OUT;
r                 116 drivers/video/fbdev/savage/savagefb-i2c.c 	VGAwCR(chan->reg, r, chan->par);
r                 115 drivers/video/fbdev/savage/savagefb.h #define BCI_CLIP_LR(l, r)            ((((r) << 16) | (l)) & 0x0FFF0FFF)
r                 117 drivers/video/fbdev/savage/savagefb.h #define BCI_CLIP_BR(b, r)            ((((b) << 16) | (r)) & 0x0FFF0FFF)
r                 418 drivers/video/fbdev/savage/savagefb_driver.c 			    unsigned int *ndiv, unsigned int *r)
r                 458 drivers/video/fbdev/savage/savagefb_driver.c 	*r = best_n2;
r                 975 drivers/video/fbdev/savage/savagefb_driver.c 	unsigned int m, n, r;
r                1081 drivers/video/fbdev/savage/savagefb_driver.c 	SavageCalcClock(dclk, 1, 1, 127, 0, 4, 180000, 360000, &m, &n, &r);
r                1094 drivers/video/fbdev/savage/savagefb_driver.c 	reg->SR12 = (r << 6) | (n & 0x3f);
r                1096 drivers/video/fbdev/savage/savagefb_driver.c 	reg->SR29 = (r & 4) | (m & 0x100) >> 5 | (n & 0x40) >> 2;
r                  47 drivers/video/fbdev/sbuslib.c 	unsigned int size, page, r, map_size;
r                  85 drivers/video/fbdev/sbuslib.c 		r = io_remap_pfn_range(vma,
r                  91 drivers/video/fbdev/sbuslib.c 		if (r)
r                  96 drivers/video/fbdev/sm712.h #define pal_rgb(r, g, b, val)	(((r & 0xf800) >> 8) | \
r                 106 drivers/video/fbdev/sm712.h #define pal_rgb(r, g, b, val)	val
r                1172 drivers/video/fbdev/tdfxfb.c 	unsigned int r;
r                1174 drivers/video/fbdev/tdfxfb.c 	r = tdfx_inl(par, VIDSERPARPORT);
r                1176 drivers/video/fbdev/tdfxfb.c 		r |= I2C_SCL_OUT;
r                1178 drivers/video/fbdev/tdfxfb.c 		r &= ~I2C_SCL_OUT;
r                1179 drivers/video/fbdev/tdfxfb.c 	tdfx_outl(par, VIDSERPARPORT, r);
r                1187 drivers/video/fbdev/tdfxfb.c 	unsigned int r;
r                1189 drivers/video/fbdev/tdfxfb.c 	r = tdfx_inl(par, VIDSERPARPORT);
r                1191 drivers/video/fbdev/tdfxfb.c 		r |= I2C_SDA_OUT;
r                1193 drivers/video/fbdev/tdfxfb.c 		r &= ~I2C_SDA_OUT;
r                1194 drivers/video/fbdev/tdfxfb.c 	tdfx_outl(par, VIDSERPARPORT, r);
r                1222 drivers/video/fbdev/tdfxfb.c 	unsigned int r;
r                1224 drivers/video/fbdev/tdfxfb.c 	r = tdfx_inl(par, VIDSERPARPORT);
r                1226 drivers/video/fbdev/tdfxfb.c 		r |= DDC_SCL_OUT;
r                1228 drivers/video/fbdev/tdfxfb.c 		r &= ~DDC_SCL_OUT;
r                1229 drivers/video/fbdev/tdfxfb.c 	tdfx_outl(par, VIDSERPARPORT, r);
r                1237 drivers/video/fbdev/tdfxfb.c 	unsigned int r;
r                1239 drivers/video/fbdev/tdfxfb.c 	r = tdfx_inl(par, VIDSERPARPORT);
r                1241 drivers/video/fbdev/tdfxfb.c 		r |= DDC_SDA_OUT;
r                1243 drivers/video/fbdev/tdfxfb.c 		r &= ~DDC_SDA_OUT;
r                1244 drivers/video/fbdev/tdfxfb.c 	tdfx_outl(par, VIDSERPARPORT, r);
r                 418 drivers/video/fbdev/tgafb.c 		int delta = f - (TGA_PLL_BASE_FREQ * (X)) / (r << shift); \
r                 422 drivers/video/fbdev/tgafb.c 			min_diff = delta, vm = m, va = a, vr = r;	  \
r                 430 drivers/video/fbdev/tgafb.c 	int r,a,m,vm = 34, va = 1, vr = 30;
r                 432 drivers/video/fbdev/tgafb.c 	for (r = 0 ; r < 12 ; r++)
r                 433 drivers/video/fbdev/tgafb.c 		TGA_WRITE_REG(par, !r, TGA_CLOCK_REG);
r                 448 drivers/video/fbdev/tgafb.c 	for (r = 0 ; r < 10 ; r++)
r                 474 drivers/video/fbdev/tgafb.c 	r = 7 / target;
r                 475 drivers/video/fbdev/tgafb.c 	if (!r) r = 1;
r                 477 drivers/video/fbdev/tgafb.c 	base = target * r;
r                 489 drivers/video/fbdev/tgafb.c 		r++;
r                 495 drivers/video/fbdev/tgafb.c 	for (r = 0; r < 8; r++)
r                 496 drivers/video/fbdev/tgafb.c 		TGA_WRITE_REG(par, (vm >> r) & 1, TGA_CLOCK_REG);
r                 497 drivers/video/fbdev/tgafb.c 	for (r = 0; r < 8 ; r++)
r                 498 drivers/video/fbdev/tgafb.c 		TGA_WRITE_REG(par, (va >> r) & 1, TGA_CLOCK_REG);
r                 499 drivers/video/fbdev/tgafb.c 	for (r = 0; r < 7 ; r++)
r                 500 drivers/video/fbdev/tgafb.c 		TGA_WRITE_REG(par, (vr >> r) & 1, TGA_CLOCK_REG);
r                 174 drivers/video/fbdev/tridentfb.c static inline void writemmr(struct tridentfb_par *par, u16 r, u32 v)
r                 176 drivers/video/fbdev/tridentfb.c 	fb_writel(v, par->io_virt + r);
r                 179 drivers/video/fbdev/tridentfb.c static inline u32 readmmr(struct tridentfb_par *par, u16 r)
r                 181 drivers/video/fbdev/tridentfb.c 	return fb_readl(par->io_virt + r);
r                 143 drivers/video/fbdev/valkyriefb.c 	out_8(&valkyrie_regs->status.r, 0);
r                 148 drivers/video/fbdev/valkyriefb.c 	out_8(&valkyrie_regs->mode.r, init->mode | 0x80);
r                 149 drivers/video/fbdev/valkyriefb.c 	out_8(&valkyrie_regs->depth.r, par->cmode + 3);
r                 154 drivers/video/fbdev/valkyriefb.c 	out_8(&valkyrie_regs->mode.r, init->mode);
r                 199 drivers/video/fbdev/valkyriefb.c 		out_8(&p->valkyrie_regs->mode.r, init->mode);
r                 210 drivers/video/fbdev/valkyriefb.c 		out_8(&p->valkyrie_regs->mode.r, init->mode | 0x40);
r                 213 drivers/video/fbdev/valkyriefb.c 		out_8(&p->valkyrie_regs->mode.r, 0x66);
r                 331 drivers/video/fbdev/valkyriefb.c 		struct resource r;
r                 337 drivers/video/fbdev/valkyriefb.c 		if (of_address_to_resource(dp, 0, &r)) {
r                 342 drivers/video/fbdev/valkyriefb.c 		frame_buffer_phys = r.start;
r                 343 drivers/video/fbdev/valkyriefb.c 		cmap_regs_phys = r.start + 0x304000;
r                 410 drivers/video/fbdev/valkyriefb.c 	out_8(&p->valkyrie_regs->msense.r, 0);   /* release all lines */
r                 412 drivers/video/fbdev/valkyriefb.c 	sense = ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x70) << 4;
r                 414 drivers/video/fbdev/valkyriefb.c 	out_8(&p->valkyrie_regs->msense.r, 4);   /* drive A low */
r                 416 drivers/video/fbdev/valkyriefb.c 	sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x30);
r                 417 drivers/video/fbdev/valkyriefb.c 	out_8(&p->valkyrie_regs->msense.r, 2);   /* drive B low */
r                 419 drivers/video/fbdev/valkyriefb.c 	sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x40) >> 3;
r                 421 drivers/video/fbdev/valkyriefb.c 	out_8(&p->valkyrie_regs->msense.r, 1);   /* drive C low */
r                 423 drivers/video/fbdev/valkyriefb.c 	sense |= ((in = in_8(&p->valkyrie_regs->msense.r)) & 0x60) >> 5;
r                 425 drivers/video/fbdev/valkyriefb.c 	out_8(&p->valkyrie_regs->msense.r, 7);
r                  59 drivers/video/fbdev/valkyriefb.h 	unsigned char r;
r                 475 drivers/video/fbdev/via/hw.c static void write_dac_reg(u8 index, u8 r, u8 g, u8 b)
r                 478 drivers/video/fbdev/via/hw.c 	outb(r, LUT_DATA);
r                 300 drivers/video/fbdev/via/viafbdev.c 	u32 r, g, b;
r                 317 drivers/video/fbdev/via/viafbdev.c 		r = (red >> (16 - info->var.red.length))
r                 323 drivers/video/fbdev/via/viafbdev.c 		((u32 *) info->pseudo_palette)[regno] = r | g | b;
r                2019 drivers/video/fbdev/via/viafbdev.c 	int r = 0;
r                2026 drivers/video/fbdev/via/viafbdev.c 	r = viafb_setup();
r                2027 drivers/video/fbdev/via/viafbdev.c 	if (r < 0)
r                2028 drivers/video/fbdev/via/viafbdev.c 		return r;
r                2042 drivers/video/fbdev/via/viafbdev.c 	return r;
r                 253 drivers/video/fbdev/vt8623fb.c 	u16 m, n, r;
r                 257 drivers/video/fbdev/vt8623fb.c 	rv = svga_compute_pll(&vt8623_pll, 1000000000 / pixclock, &m, &n, &r, info->node);
r                 268 drivers/video/fbdev/vt8623fb.c 	vga_wseq(par->state.vgabase, 0x46, (n  | (r << 6)));
r                 199 drivers/video/of_display_timing.c 		int r;
r                 208 drivers/video/of_display_timing.c 		r = of_parse_display_timing(entry, dt);
r                 209 drivers/video/of_display_timing.c 		if (r) {
r                 377 drivers/w1/masters/ds1wm.c 	u64 r = 0; /* holds the progress of the search */
r                 400 drivers/w1/masters/ds1wm.c 			"pass: %d r : %0#18llx writing SEARCH_ROM\n", pass, r);
r                 416 drivers/w1/masters/ds1wm.c 			_r = (r >> (4*i)) & 0xf;
r                 478 drivers/w1/masters/ds1wm.c 		d &= ~r;
r                 490 drivers/w1/masters/ds1wm.c 		r = (r &  ~(~0ull << (ms_discrep_bit))) | 1 << ms_discrep_bit;
r                 238 drivers/watchdog/bcm63xx_wdt.c 	struct resource *r;
r                 242 drivers/watchdog/bcm63xx_wdt.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 243 drivers/watchdog/bcm63xx_wdt.c 	if (!r) {
r                 248 drivers/watchdog/bcm63xx_wdt.c 	bcm63xx_wdt_device.regs = devm_ioremap_nocache(&pdev->dev, r->start,
r                 249 drivers/watchdog/bcm63xx_wdt.c 							resource_size(r));
r                 173 drivers/watchdog/ibmasr.c 		u32 r;
r                 178 drivers/watchdog/ibmasr.c 		pci_read_config_dword(pdev, 0x58, &r);
r                 179 drivers/watchdog/ibmasr.c 		asr_base = r & 0xFFFE;
r                 257 drivers/watchdog/mv64x60_wdt.c 	struct resource *r;
r                 273 drivers/watchdog/mv64x60_wdt.c 	r = platform_get_resource(dev, IORESOURCE_MEM, 0);
r                 274 drivers/watchdog/mv64x60_wdt.c 	if (!r)
r                 277 drivers/watchdog/mv64x60_wdt.c 	mv64x60_wdt_regs = devm_ioremap(&dev->dev, r->start, resource_size(r));
r                 785 drivers/watchdog/pcwd.c 	int r = PCWD_REVISION_C;
r                 792 drivers/watchdog/pcwd.c 		r = PCWD_REVISION_A;
r                 795 drivers/watchdog/pcwd.c 	return r;
r                 261 drivers/watchdog/rc32434_wdt.c 	struct resource *r;
r                 263 drivers/watchdog/rc32434_wdt.c 	r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rb532_wdt_res");
r                 264 drivers/watchdog/rc32434_wdt.c 	if (!r) {
r                 269 drivers/watchdog/rc32434_wdt.c 	wdt_reg = devm_ioremap_nocache(&pdev->dev, r->start, resource_size(r));
r                 216 drivers/watchdog/rdc321x_wdt.c 	struct resource *r;
r                 225 drivers/watchdog/rdc321x_wdt.c 	r = platform_get_resource_byname(pdev, IORESOURCE_IO, "wdt-reg");
r                 226 drivers/watchdog/rdc321x_wdt.c 	if (!r) {
r                 232 drivers/watchdog/rdc321x_wdt.c 	rdc321x_wdt_device.base_reg = r->start;
r                 216 drivers/watchdog/scx200_wdt.c 	int r;
r                 234 drivers/watchdog/scx200_wdt.c 	r = register_reboot_notifier(&scx200_wdt_notifier);
r                 235 drivers/watchdog/scx200_wdt.c 	if (r) {
r                 239 drivers/watchdog/scx200_wdt.c 		return r;
r                 242 drivers/watchdog/scx200_wdt.c 	r = misc_register(&scx200_wdt_miscdev);
r                 243 drivers/watchdog/scx200_wdt.c 	if (r) {
r                 247 drivers/watchdog/scx200_wdt.c 		return r;
r                 379 drivers/watchdog/wdat_wdt.c 		struct resource r;
r                 397 drivers/watchdog/wdat_wdt.c 		memset(&r, 0, sizeof(r));
r                 398 drivers/watchdog/wdat_wdt.c 		r.start = gas->address;
r                 399 drivers/watchdog/wdat_wdt.c 		r.end = r.start + ACPI_ACCESS_BYTE_WIDTH(gas->access_width) - 1;
r                 401 drivers/watchdog/wdat_wdt.c 			r.flags = IORESOURCE_MEM;
r                 403 drivers/watchdog/wdat_wdt.c 			r.flags = IORESOURCE_IO;
r                 413 drivers/watchdog/wdat_wdt.c 			if (resource_contains(res, &r)) {
r                 414 drivers/watchdog/wdat_wdt.c 				instr->reg = regs[j] + r.start - res->start;
r                  19 drivers/xen/arm-device.c 	const struct resource *r;
r                  23 drivers/xen/arm-device.c 		r = &resources[i];
r                  24 drivers/xen/arm-device.c 		nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE);
r                  25 drivers/xen/arm-device.c 		if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0))
r                  30 drivers/xen/arm-device.c 			xrp.gpfn = XEN_PFN_DOWN(r->start) + j;
r                  46 drivers/xen/arm-device.c 	const struct resource *r;
r                  57 drivers/xen/arm-device.c 		r = &resources[i];
r                  58 drivers/xen/arm-device.c 		nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE);
r                  59 drivers/xen/arm-device.c 		if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0))
r                  79 drivers/xen/arm-device.c 			gpfns[j] = XEN_PFN_DOWN(r->start) + j;
r                  80 drivers/xen/arm-device.c 			idxs[j] = XEN_PFN_DOWN(r->start) + j;
r                 108 drivers/xen/arm-device.c 	int r = 0;
r                 115 drivers/xen/arm-device.c 		r = xen_map_device_mmio(pdev->resource, pdev->num_resources);
r                 118 drivers/xen/arm-device.c 		r = xen_unmap_device_mmio(pdev->resource, pdev->num_resources);
r                 123 drivers/xen/arm-device.c 	if (r)
r                 153 drivers/xen/arm-device.c 	int r = 0;
r                 157 drivers/xen/arm-device.c 		r = xen_map_device_mmio(&adev->res, 1);
r                 160 drivers/xen/arm-device.c 		r = xen_unmap_device_mmio(&adev->res, 1);
r                 165 drivers/xen/arm-device.c 	if (r)
r                  28 drivers/xen/pci.c 	int r;
r                 106 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_pci_device_add, add);
r                 107 drivers/xen/pci.c 		if (r != -ENOSYS)
r                 108 drivers/xen/pci.c 			return r;
r                 113 drivers/xen/pci.c 		r = -ENOSYS;
r                 124 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add_ext,
r                 135 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add_ext,
r                 143 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_add,
r                 147 drivers/xen/pci.c 	return r;
r                 152 drivers/xen/pci.c 	int r;
r                 162 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_pci_device_remove,
r                 165 drivers/xen/pci.c 		r = -ENOSYS;
r                 172 drivers/xen/pci.c 		r = HYPERVISOR_physdev_op(PHYSDEVOP_manage_pci_remove,
r                 176 drivers/xen/pci.c 	return r;
r                 183 drivers/xen/pci.c 	int r = 0;
r                 187 drivers/xen/pci.c 		r = xen_add_device(dev);
r                 190 drivers/xen/pci.c 		r = xen_remove_device(dev);
r                 195 drivers/xen/pci.c 	if (r)
r                 233 drivers/xen/pci.c 		struct physdev_pci_mmcfg_reserved r;
r                 235 drivers/xen/pci.c 		r.address = cfg->address;
r                 236 drivers/xen/pci.c 		r.segment = cfg->segment;
r                 237 drivers/xen/pci.c 		r.start_bus = cfg->start_bus;
r                 238 drivers/xen/pci.c 		r.end_bus = cfg->end_bus;
r                 239 drivers/xen/pci.c 		r.flags = XEN_PCI_MMCFG_RESERVED;
r                 241 drivers/xen/pci.c 		rc = HYPERVISOR_physdev_op(PHYSDEVOP_pci_mmcfg_reserved, &r);
r                  59 drivers/xen/xen-pciback/vpci.c static inline int match_slot(struct pci_dev *l, struct pci_dev *r)
r                  61 drivers/xen/xen-pciback/vpci.c 	if (pci_domain_nr(l->bus) == pci_domain_nr(r->bus)
r                  62 drivers/xen/xen-pciback/vpci.c 	    && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn))
r                 275 drivers/xen/xlate_mmu.c 	struct remap_pfn *r = data;
r                 276 drivers/xen/xlate_mmu.c 	struct page *page = r->pages[r->i];
r                 277 drivers/xen/xlate_mmu.c 	pte_t pte = pte_mkspecial(pfn_pte(page_to_pfn(page), r->prot));
r                 279 drivers/xen/xlate_mmu.c 	set_pte_at(r->mm, addr, ptep, pte);
r                 280 drivers/xen/xlate_mmu.c 	r->i++;
r                 288 drivers/xen/xlate_mmu.c 	struct remap_pfn r = {
r                 294 drivers/xen/xlate_mmu.c 	return apply_to_page_range(vma->vm_mm, addr, len, remap_pfn_fn, &r);
r                 120 drivers/zorro/zorro.c 		struct resource *r = &bridge->resource[i];
r                 122 drivers/zorro/zorro.c 		if (zorro_resource_start(z) >= r->start &&
r                 123 drivers/zorro/zorro.c 		    zorro_resource_end(z) <= r->end)
r                 124 drivers/zorro/zorro.c 			return r;
r                 136 drivers/zorro/zorro.c 	struct resource *r;
r                 182 drivers/zorro/zorro.c 		r = zorro_find_parent_resource(pdev, z);
r                 183 drivers/zorro/zorro.c 		error = request_resource(r, &z->resource);
r                 191 fs/9p/v9fs.c   		int token, r;
r                 197 fs/9p/v9fs.c   			r = match_int(&args[0], &option);
r                 198 fs/9p/v9fs.c   			if (r < 0) {
r                 201 fs/9p/v9fs.c   				ret = r;
r                 211 fs/9p/v9fs.c   			r = match_int(&args[0], &option);
r                 212 fs/9p/v9fs.c   			if (r < 0) {
r                 215 fs/9p/v9fs.c   				ret = r;
r                 226 fs/9p/v9fs.c   			r = match_int(&args[0], &option);
r                 227 fs/9p/v9fs.c   			if (r < 0) {
r                 230 fs/9p/v9fs.c   				ret = r;
r                 241 fs/9p/v9fs.c   			r = match_int(&args[0], &option);
r                 242 fs/9p/v9fs.c   			if (r < 0) {
r                 245 fs/9p/v9fs.c   				ret = r;
r                 296 fs/9p/v9fs.c   			r = get_cache_mode(s);
r                 297 fs/9p/v9fs.c   			if (r < 0)
r                 298 fs/9p/v9fs.c   				ret = r;
r                 300 fs/9p/v9fs.c   				v9ses->cache = r;
r                 352 fs/9p/v9fs.c   			r = match_int(&args[0], &option);
r                 353 fs/9p/v9fs.c   			if (r < 0) {
r                 356 fs/9p/v9fs.c   				ret = r;
r                 422 fs/afs/cmservice.c 	struct afs_uuid *r;
r                 455 fs/afs/cmservice.c 		r = call->request;
r                 456 fs/afs/cmservice.c 		r->time_low			= b[0];
r                 457 fs/afs/cmservice.c 		r->time_mid			= htons(ntohl(b[1]));
r                 458 fs/afs/cmservice.c 		r->time_hi_and_version		= htons(ntohl(b[2]));
r                 459 fs/afs/cmservice.c 		r->clock_seq_hi_and_reserved 	= ntohl(b[3]);
r                 460 fs/afs/cmservice.c 		r->clock_seq_low		= ntohl(b[4]);
r                 463 fs/afs/cmservice.c 			r->node[loop] = ntohl(b[loop + 5]);
r                 517 fs/afs/cmservice.c 	struct afs_uuid *r = call->request;
r                 521 fs/afs/cmservice.c 	if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0)
r                 535 fs/afs/cmservice.c 	struct afs_uuid *r;
r                 566 fs/afs/cmservice.c 		r = call->request;
r                 567 fs/afs/cmservice.c 		r->time_low			= b[0];
r                 568 fs/afs/cmservice.c 		r->time_mid			= htons(ntohl(b[1]));
r                 569 fs/afs/cmservice.c 		r->time_hi_and_version		= htons(ntohl(b[2]));
r                 570 fs/afs/cmservice.c 		r->clock_seq_hi_and_reserved 	= ntohl(b[3]);
r                 571 fs/afs/cmservice.c 		r->clock_seq_low		= ntohl(b[4]);
r                 574 fs/afs/cmservice.c 			r->node[loop] = ntohl(b[loop + 5]);
r                 270 fs/afs/vlclient.c 	struct afs_ListAddrByAttributes__xdr *r;
r                 292 fs/afs/vlclient.c 	r = (struct afs_ListAddrByAttributes__xdr *)bp;
r                 293 fs/afs/vlclient.c 	r->Mask		= htonl(AFS_VLADDR_UUID);
r                 294 fs/afs/vlclient.c 	r->ipaddr	= 0;
r                 295 fs/afs/vlclient.c 	r->index	= 0;
r                 296 fs/afs/vlclient.c 	r->spare	= 0;
r                 297 fs/afs/vlclient.c 	r->uuid.time_low			= u->time_low;
r                 298 fs/afs/vlclient.c 	r->uuid.time_mid			= htonl(ntohs(u->time_mid));
r                 299 fs/afs/vlclient.c 	r->uuid.time_hi_and_version		= htonl(ntohs(u->time_hi_and_version));
r                 300 fs/afs/vlclient.c 	r->uuid.clock_seq_hi_and_reserved 	= htonl(u->clock_seq_hi_and_reserved);
r                 301 fs/afs/vlclient.c 	r->uuid.clock_seq_low			= htonl(u->clock_seq_low);
r                 303 fs/afs/vlclient.c 		r->uuid.node[i] = htonl(u->node[i]);
r                 722 fs/autofs/dev-ioctl.c 	int r;
r                 724 fs/autofs/dev-ioctl.c 	r = misc_register(&_autofs_dev_ioctl_misc);
r                 725 fs/autofs/dev-ioctl.c 	if (r) {
r                 727 fs/autofs/dev-ioctl.c 		return r;
r                 314 fs/binfmt_flat.c calc_reloc(unsigned long r, struct lib_info *p, int curid, int internalp)
r                 324 fs/binfmt_flat.c 	if (r == 0)
r                 327 fs/binfmt_flat.c 		id = (r >> 24) & 0xff;	/* Find ID for this reloc */
r                 328 fs/binfmt_flat.c 		r &= 0x00ffffff;	/* Trim ID off here */
r                 331 fs/binfmt_flat.c 		pr_err("reference 0x%lx to shared library %d", r, id);
r                 337 fs/binfmt_flat.c 			       "(%d != %d)", r, curid, id);
r                 360 fs/binfmt_flat.c 	if (r > start_brk - start_data + text_len) {
r                 362 fs/binfmt_flat.c 		       r, start_brk-start_data+text_len, text_len);
r                 366 fs/binfmt_flat.c 	if (r < text_len)			/* In text segment */
r                 367 fs/binfmt_flat.c 		addr = r + start_code;
r                 369 fs/binfmt_flat.c 		addr = r - text_len + start_data;
r                 387 fs/binfmt_flat.c 	flat_v2_reloc_t	r;
r                 391 fs/binfmt_flat.c 	r.value = rl;
r                 393 fs/binfmt_flat.c 	ptr = (unsigned long __user *)(current->mm->start_code + r.reloc.offset);
r                 395 fs/binfmt_flat.c 	ptr = (unsigned long __user *)(current->mm->start_data + r.reloc.offset);
r                 401 fs/binfmt_flat.c 		 r.reloc.offset, ptr, val, segment[r.reloc.type]);
r                 403 fs/binfmt_flat.c 	switch (r.reloc.type) {
r                 414 fs/binfmt_flat.c 		pr_err("Unknown relocation type=%x\n", r.reloc.type);
r                 394 fs/binfmt_misc.c 			int r = kstrtoint(p, 10, &e->offset);
r                 395 fs/binfmt_misc.c 			if (r != 0 || e->offset < 0)
r                 367 fs/btrfs/ctree.h #define BTRFS_MAX_EXTENT_ITEM_SIZE(r) ((BTRFS_LEAF_DATA_SIZE(r->fs_info) >> 4) - \
r                  19 fs/btrfs/file-item.c #define __MAX_CSUM_ITEMS(r, size) ((unsigned long)(((BTRFS_LEAF_DATA_SIZE(r) - \
r                  23 fs/btrfs/file-item.c #define MAX_CSUM_ITEMS(r, size) (min_t(u32, __MAX_CSUM_ITEMS(r, size), \
r                1034 fs/btrfs/scrub.c 			struct scrub_recover *r = sblock_bad->pagev[0]->recover;
r                1035 fs/btrfs/scrub.c 			int max_allowed = r->bbio->num_stripes -
r                1036 fs/btrfs/scrub.c 						r->bbio->num_tgtdevs;
r                1441 fs/btrfs/tree-log.c 		struct btrfs_inode_extref *r;
r                1445 fs/btrfs/tree-log.c 		r = (struct btrfs_inode_extref *)ref_ptr;
r                1446 fs/btrfs/tree-log.c 		parent_objectid = btrfs_inode_extref_parent(eb, r);
r                 249 fs/ceph/addr.c 	int r = ceph_do_readpage(filp, page);
r                 250 fs/ceph/addr.c 	if (r != -EINPROGRESS)
r                 253 fs/ceph/addr.c 		r = 0;
r                 254 fs/ceph/addr.c 	return r;
r                1226 fs/ceph/addr.c 	int r;
r                1257 fs/ceph/addr.c 			r = wait_event_killable(ci->i_cap_wq,
r                1260 fs/ceph/addr.c 			if (r == -ERESTARTSYS)
r                1261 fs/ceph/addr.c 				return r;
r                1271 fs/ceph/addr.c 		r = writepage_nounlock(page, NULL);
r                1272 fs/ceph/addr.c 		if (r < 0)
r                1301 fs/ceph/addr.c 	r = ceph_do_readpage(file, page);
r                1302 fs/ceph/addr.c 	if (r < 0) {
r                1303 fs/ceph/addr.c 		if (r == -EINPROGRESS)
r                1310 fs/ceph/addr.c 	return r;
r                1324 fs/ceph/addr.c 	int r;
r                1335 fs/ceph/addr.c 		r = ceph_update_writeable_page(file, pos, len, page);
r                1336 fs/ceph/addr.c 		if (r < 0)
r                1340 fs/ceph/addr.c 	} while (r == -EAGAIN);
r                1342 fs/ceph/addr.c 	return r;
r                  93 fs/ceph/dir.c  static int fpos_cmp(loff_t l, loff_t r)
r                  95 fs/ceph/dir.c  	int v = ceph_frag_compare(fpos_frag(l), fpos_frag(r));
r                  98 fs/ceph/dir.c  	return (int)(fpos_off(l) - fpos_off(r));
r                 302 fs/ceph/inode.c static int frag_tree_split_cmp(const void *l, const void *r)
r                 305 fs/ceph/inode.c 	struct ceph_frag_tree_split *rs = (struct ceph_frag_tree_split*)r;
r                 191 fs/ceph/ioctl.c 	int r;
r                 215 fs/ceph/ioctl.c 	r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid);
r                 218 fs/ceph/ioctl.c 	if (r < 0) {
r                 220 fs/ceph/ioctl.c 		return r;
r                 965 fs/ceph/mds_client.c 				u8 r;
r                 968 fs/ceph/mds_client.c 				get_random_bytes(&r, 1);
r                 969 fs/ceph/mds_client.c 				r %= frag.ndist;
r                 970 fs/ceph/mds_client.c 				mds = frag.dist[r];
r                 975 fs/ceph/mds_client.c 				     (int)r, frag.ndist);
r                2260 fs/ceph/mds_client.c 	int r = 0;
r                2263 fs/ceph/mds_client.c 		r = build_inode_path(rinode, ppath, pathlen, ino, freepath);
r                2267 fs/ceph/mds_client.c 		r = build_dentry_path(rdentry, rdiri, ppath, pathlen, ino,
r                2278 fs/ceph/mds_client.c 	return r;
r                  88 fs/ceph/snap.c 	struct ceph_snap_realm *r = NULL;
r                  92 fs/ceph/snap.c 		r = rb_entry(parent, struct ceph_snap_realm, node);
r                  93 fs/ceph/snap.c 		if (new->ino < r->ino)
r                  95 fs/ceph/snap.c 		else if (new->ino > r->ino)
r                 144 fs/ceph/snap.c 	struct ceph_snap_realm *r;
r                 147 fs/ceph/snap.c 		r = rb_entry(n, struct ceph_snap_realm, node);
r                 148 fs/ceph/snap.c 		if (ino < r->ino)
r                 150 fs/ceph/snap.c 		else if (ino > r->ino)
r                 153 fs/ceph/snap.c 			dout("lookup_snap_realm %llx %p\n", r->ino, r);
r                 154 fs/ceph/snap.c 			return r;
r                 163 fs/ceph/snap.c 	struct ceph_snap_realm *r;
r                 164 fs/ceph/snap.c 	r = __lookup_snap_realm(mdsc, ino);
r                 165 fs/ceph/snap.c 	if (r)
r                 166 fs/ceph/snap.c 		ceph_get_snap_realm(mdsc, r);
r                 167 fs/ceph/snap.c 	return r;
r                 651 fs/ceph/super.h 	int r;
r                 653 fs/ceph/super.h 	r = __ceph_caps_issued_mask(ci, mask, touch);
r                 655 fs/ceph/super.h 	return r;
r                 277 fs/cifs/dfs_cache.c #define dump_refs(r, n)
r                 644 fs/coda/upcall.c #define CODA_INTERRUPTIBLE(r) (!coda_hard && \
r                 645 fs/coda/upcall.c 			       (((r)->uc_opcode != CODA_CLOSE && \
r                 646 fs/coda/upcall.c 				 (r)->uc_opcode != CODA_STORE && \
r                 647 fs/coda/upcall.c 				 (r)->uc_opcode != CODA_ACCESS_INTENT && \
r                 648 fs/coda/upcall.c 				 (r)->uc_opcode != CODA_RELEASE) || \
r                 649 fs/coda/upcall.c 				(r)->uc_flags & CODA_REQ_READ))
r                 254 fs/compat_ioctl.c 	sg_req_info_t __user *r;
r                 255 fs/compat_ioctl.c 	r = compat_alloc_user_space(sizeof(sg_req_info_t)*SG_MAX_QUEUE);
r                 256 fs/compat_ioctl.c 	err = do_ioctl(file, cmd, (unsigned long)r);
r                 263 fs/compat_ioctl.c 		if (copy_in_user(o + i, r + i, offsetof(sg_req_info_t, usr_ptr)) ||
r                 264 fs/compat_ioctl.c 		    get_user(ptr, &r[i].usr_ptr) ||
r                 265 fs/compat_ioctl.c 		    get_user(d, &r[i].duration) ||
r                 166 fs/debugfs/file.c 	int r;
r                 168 fs/debugfs/file.c 	r = debugfs_file_get(dentry);
r                 169 fs/debugfs/file.c 	if (r)
r                 170 fs/debugfs/file.c 		return r == -EIO ? -ENOENT : r;
r                 174 fs/debugfs/file.c 	r = debugfs_locked_down(inode, filp, real_fops);
r                 175 fs/debugfs/file.c 	if (r)
r                 188 fs/debugfs/file.c 		r = -ENXIO;
r                 194 fs/debugfs/file.c 		r = real_fops->open(inode, filp);
r                 198 fs/debugfs/file.c 	return r;
r                 213 fs/debugfs/file.c 	ret_type r;							\
r                 215 fs/debugfs/file.c 	r = debugfs_file_get(dentry);					\
r                 216 fs/debugfs/file.c 	if (unlikely(r))						\
r                 217 fs/debugfs/file.c 		return r;						\
r                 219 fs/debugfs/file.c 	r = real_fops->name(args);					\
r                 221 fs/debugfs/file.c 	return r;							\
r                 246 fs/debugfs/file.c 	__poll_t r = 0;
r                 253 fs/debugfs/file.c 	r = real_fops->poll(filp, wait);
r                 255 fs/debugfs/file.c 	return r;
r                 263 fs/debugfs/file.c 	int r = 0;
r                 272 fs/debugfs/file.c 		r = real_fops->release(inode, filp);
r                 277 fs/debugfs/file.c 	return r;
r                 301 fs/debugfs/file.c 	int r;
r                 303 fs/debugfs/file.c 	r = debugfs_file_get(dentry);
r                 304 fs/debugfs/file.c 	if (r)
r                 305 fs/debugfs/file.c 		return r == -EIO ? -ENOENT : r;
r                 309 fs/debugfs/file.c 	r = debugfs_locked_down(inode, filp, real_fops);
r                 310 fs/debugfs/file.c 	if (r)
r                 323 fs/debugfs/file.c 		r = -ENXIO;
r                 329 fs/debugfs/file.c 		r = -ENOMEM;
r                 336 fs/debugfs/file.c 		r = real_fops->open(inode, filp);
r                 337 fs/debugfs/file.c 		if (r) {
r                 354 fs/debugfs/file.c 	return r;
r                 815 fs/debugfs/file.c 	int r;
r                 818 fs/debugfs/file.c 	r = debugfs_file_get(dentry);
r                 819 fs/debugfs/file.c 	if (unlikely(r))
r                 820 fs/debugfs/file.c 		return r;
r                 838 fs/debugfs/file.c 	int r;
r                 842 fs/debugfs/file.c 	r = kstrtobool_from_user(user_buf, count, &bv);
r                 843 fs/debugfs/file.c 	if (!r) {
r                 844 fs/debugfs/file.c 		r = debugfs_file_get(dentry);
r                 845 fs/debugfs/file.c 		if (unlikely(r))
r                 846 fs/debugfs/file.c 			return r;
r                 910 fs/debugfs/file.c 	ssize_t r;
r                 912 fs/debugfs/file.c 	r = debugfs_file_get(dentry);
r                 913 fs/debugfs/file.c 	if (unlikely(r))
r                 914 fs/debugfs/file.c 		return r;
r                 915 fs/debugfs/file.c 	r = simple_read_from_buffer(user_buf, count, ppos, blob->data,
r                 918 fs/debugfs/file.c 	return r;
r                 166 fs/dlm/debug_fs.c 			       struct dlm_rsb *r)
r                 194 fs/dlm/debug_fs.c 		   r->res_nodeid,
r                 195 fs/dlm/debug_fs.c 		   r->res_length,
r                 196 fs/dlm/debug_fs.c 		   r->res_name);
r                 199 fs/dlm/debug_fs.c static void print_format2(struct dlm_rsb *r, struct seq_file *s)
r                 203 fs/dlm/debug_fs.c 	lock_rsb(r);
r                 205 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) {
r                 206 fs/dlm/debug_fs.c 		print_format2_lock(s, lkb, r);
r                 211 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) {
r                 212 fs/dlm/debug_fs.c 		print_format2_lock(s, lkb, r);
r                 217 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) {
r                 218 fs/dlm/debug_fs.c 		print_format2_lock(s, lkb, r);
r                 223 fs/dlm/debug_fs.c 	unlock_rsb(r);
r                 255 fs/dlm/debug_fs.c static void print_format3(struct dlm_rsb *r, struct seq_file *s)
r                 258 fs/dlm/debug_fs.c 	int i, lvblen = r->res_ls->ls_lvblen;
r                 261 fs/dlm/debug_fs.c 	lock_rsb(r);
r                 264 fs/dlm/debug_fs.c 		   r,
r                 265 fs/dlm/debug_fs.c 		   r->res_nodeid,
r                 266 fs/dlm/debug_fs.c 		   r->res_first_lkid,
r                 267 fs/dlm/debug_fs.c 		   r->res_flags,
r                 268 fs/dlm/debug_fs.c 		   !list_empty(&r->res_root_list),
r                 269 fs/dlm/debug_fs.c 		   !list_empty(&r->res_recover_list),
r                 270 fs/dlm/debug_fs.c 		   r->res_recover_locks_count,
r                 271 fs/dlm/debug_fs.c 		   r->res_length);
r                 275 fs/dlm/debug_fs.c 	for (i = 0; i < r->res_length; i++) {
r                 276 fs/dlm/debug_fs.c 		if (!isascii(r->res_name[i]) || !isprint(r->res_name[i]))
r                 282 fs/dlm/debug_fs.c 	for (i = 0; i < r->res_length; i++) {
r                 284 fs/dlm/debug_fs.c 			seq_printf(s, "%c", r->res_name[i]);
r                 286 fs/dlm/debug_fs.c 			seq_printf(s, " %02x", (unsigned char)r->res_name[i]);
r                 292 fs/dlm/debug_fs.c 	if (!r->res_lvbptr)
r                 295 fs/dlm/debug_fs.c 	seq_printf(s, "lvb %u %d", r->res_lvbseq, lvblen);
r                 298 fs/dlm/debug_fs.c 		seq_printf(s, " %02x", (unsigned char)r->res_lvbptr[i]);
r                 304 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) {
r                 310 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) {
r                 316 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue) {
r                 322 fs/dlm/debug_fs.c 	list_for_each_entry(lkb, &r->res_lookup, lkb_rsb_lookup) {
r                 328 fs/dlm/debug_fs.c 	unlock_rsb(r);
r                 331 fs/dlm/debug_fs.c static void print_format4(struct dlm_rsb *r, struct seq_file *s)
r                 337 fs/dlm/debug_fs.c 	lock_rsb(r);
r                 340 fs/dlm/debug_fs.c 		   r,
r                 341 fs/dlm/debug_fs.c 		   r->res_nodeid,
r                 342 fs/dlm/debug_fs.c 		   r->res_master_nodeid,
r                 343 fs/dlm/debug_fs.c 		   r->res_dir_nodeid,
r                 345 fs/dlm/debug_fs.c 		   r->res_toss_time,
r                 346 fs/dlm/debug_fs.c 		   r->res_flags,
r                 347 fs/dlm/debug_fs.c 		   r->res_length);
r                 349 fs/dlm/debug_fs.c 	for (i = 0; i < r->res_length; i++) {
r                 350 fs/dlm/debug_fs.c 		if (!isascii(r->res_name[i]) || !isprint(r->res_name[i]))
r                 356 fs/dlm/debug_fs.c 	for (i = 0; i < r->res_length; i++) {
r                 358 fs/dlm/debug_fs.c 			seq_printf(s, "%c", r->res_name[i]);
r                 360 fs/dlm/debug_fs.c 			seq_printf(s, " %02x", (unsigned char)r->res_name[i]);
r                 363 fs/dlm/debug_fs.c 	unlock_rsb(r);
r                 425 fs/dlm/debug_fs.c 	struct dlm_rsb *r;
r                 455 fs/dlm/debug_fs.c 			r = rb_entry(node, struct dlm_rsb, res_hashnode);
r                 457 fs/dlm/debug_fs.c 				dlm_hold_rsb(r);
r                 458 fs/dlm/debug_fs.c 				ri->rsb = r;
r                 487 fs/dlm/debug_fs.c 			r = rb_entry(node, struct dlm_rsb, res_hashnode);
r                 488 fs/dlm/debug_fs.c 			dlm_hold_rsb(r);
r                 489 fs/dlm/debug_fs.c 			ri->rsb = r;
r                 505 fs/dlm/debug_fs.c 	struct dlm_rsb *r, *rp;
r                 521 fs/dlm/debug_fs.c 		r = rb_entry(next, struct dlm_rsb, res_hashnode);
r                 522 fs/dlm/debug_fs.c 		dlm_hold_rsb(r);
r                 523 fs/dlm/debug_fs.c 		ri->rsb = r;
r                 552 fs/dlm/debug_fs.c 			r = rb_entry(next, struct dlm_rsb, res_hashnode);
r                 553 fs/dlm/debug_fs.c 			dlm_hold_rsb(r);
r                 554 fs/dlm/debug_fs.c 			ri->rsb = r;
r                  45 fs/dlm/dir.c   int dlm_dir_nodeid(struct dlm_rsb *r)
r                  47 fs/dlm/dir.c   	return r->res_dir_nodeid;
r                  52 fs/dlm/dir.c   	struct dlm_rsb *r;
r                  55 fs/dlm/dir.c   	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                  56 fs/dlm/dir.c   		r->res_dir_nodeid = dlm_hash2nodeid(ls, r->res_hash);
r                 200 fs/dlm/dir.c   	struct dlm_rsb *r;
r                 208 fs/dlm/dir.c   	rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[bucket].keep, name, len, &r);
r                 211 fs/dlm/dir.c   					 name, len, &r);
r                 215 fs/dlm/dir.c   		return r;
r                 218 fs/dlm/dir.c   	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                 219 fs/dlm/dir.c   		if (len == r->res_length && !memcmp(name, r->res_name, len)) {
r                 222 fs/dlm/dir.c   				  r->res_name);
r                 223 fs/dlm/dir.c   			return r;
r                 238 fs/dlm/dir.c   	struct dlm_rsb *r;
r                 245 fs/dlm/dir.c   		r = find_rsb_root(ls, inbuf, inlen);
r                 246 fs/dlm/dir.c   		if (!r) {
r                 252 fs/dlm/dir.c   		list = r->res_root_list.next;
r                 258 fs/dlm/dir.c   		r = list_entry(list, struct dlm_rsb, res_root_list);
r                 259 fs/dlm/dir.c   		if (r->res_nodeid)
r                 262 fs/dlm/dir.c   		dir_nodeid = dlm_dir_nodeid(r);
r                 274 fs/dlm/dir.c   		if (offset + sizeof(uint16_t)*2 + r->res_length > outlen) {
r                 283 fs/dlm/dir.c   		be_namelen = cpu_to_be16(r->res_length);
r                 286 fs/dlm/dir.c   		memcpy(outbuf + offset, r->res_name, r->res_length);
r                 287 fs/dlm/dir.c   		offset += r->res_length;
r                 353 fs/dlm/dlm_internal.h static inline void rsb_set_flag(struct dlm_rsb *r, enum rsb_flags flag)
r                 355 fs/dlm/dlm_internal.h 	__set_bit(flag, &r->res_flags);
r                 358 fs/dlm/dlm_internal.h static inline void rsb_clear_flag(struct dlm_rsb *r, enum rsb_flags flag)
r                 360 fs/dlm/dlm_internal.h 	__clear_bit(flag, &r->res_flags);
r                 363 fs/dlm/dlm_internal.h static inline int rsb_flag(struct dlm_rsb *r, enum rsb_flags flag)
r                 365 fs/dlm/dlm_internal.h 	return test_bit(flag, &r->res_flags);
r                  76 fs/dlm/lock.c  static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  77 fs/dlm/lock.c  static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  78 fs/dlm/lock.c  static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  79 fs/dlm/lock.c  static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  80 fs/dlm/lock.c  static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  81 fs/dlm/lock.c  static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode);
r                  82 fs/dlm/lock.c  static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  83 fs/dlm/lock.c  static int send_remove(struct dlm_rsb *r);
r                  84 fs/dlm/lock.c  static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  85 fs/dlm/lock.c  static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                  86 fs/dlm/lock.c  static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                 170 fs/dlm/lock.c  static void dlm_print_rsb(struct dlm_rsb *r)
r                 174 fs/dlm/lock.c  	       r->res_nodeid, r->res_master_nodeid, r->res_dir_nodeid,
r                 175 fs/dlm/lock.c  	       r->res_flags, r->res_first_lkid, r->res_recover_locks_count,
r                 176 fs/dlm/lock.c  	       r->res_name);
r                 179 fs/dlm/lock.c  void dlm_dump_rsb(struct dlm_rsb *r)
r                 183 fs/dlm/lock.c  	dlm_print_rsb(r);
r                 186 fs/dlm/lock.c  	       list_empty(&r->res_root_list), list_empty(&r->res_recover_list));
r                 188 fs/dlm/lock.c  	list_for_each_entry(lkb, &r->res_lookup, lkb_rsb_lookup)
r                 191 fs/dlm/lock.c  	list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue)
r                 194 fs/dlm/lock.c  	list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue)
r                 197 fs/dlm/lock.c  	list_for_each_entry(lkb, &r->res_waitqueue, lkb_statequeue)
r                 243 fs/dlm/lock.c  static inline int is_remote(struct dlm_rsb *r)
r                 245 fs/dlm/lock.c  	DLM_ASSERT(r->res_nodeid >= 0, dlm_print_rsb(r););
r                 246 fs/dlm/lock.c  	return !!r->res_nodeid;
r                 288 fs/dlm/lock.c  static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)
r                 312 fs/dlm/lock.c  static inline void queue_cast_overlap(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                 314 fs/dlm/lock.c  	queue_cast(r, lkb,
r                 318 fs/dlm/lock.c  static void queue_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rqmode)
r                 321 fs/dlm/lock.c  		send_bast(r, lkb, rqmode);
r                 334 fs/dlm/lock.c  static inline void hold_rsb(struct dlm_rsb *r)
r                 336 fs/dlm/lock.c  	kref_get(&r->res_ref);
r                 339 fs/dlm/lock.c  void dlm_hold_rsb(struct dlm_rsb *r)
r                 341 fs/dlm/lock.c  	hold_rsb(r);
r                 347 fs/dlm/lock.c  static void put_rsb(struct dlm_rsb *r)
r                 349 fs/dlm/lock.c  	struct dlm_ls *ls = r->res_ls;
r                 350 fs/dlm/lock.c  	uint32_t bucket = r->res_bucket;
r                 353 fs/dlm/lock.c  	kref_put(&r->res_ref, toss_rsb);
r                 357 fs/dlm/lock.c  void dlm_put_rsb(struct dlm_rsb *r)
r                 359 fs/dlm/lock.c  	put_rsb(r);
r                 401 fs/dlm/lock.c  	struct dlm_rsb *r;
r                 413 fs/dlm/lock.c  	r = list_first_entry(&ls->ls_new_rsb, struct dlm_rsb, res_hashchain);
r                 414 fs/dlm/lock.c  	list_del(&r->res_hashchain);
r                 416 fs/dlm/lock.c  	memset(&r->res_hashnode, 0, sizeof(struct rb_node));
r                 420 fs/dlm/lock.c  	r->res_ls = ls;
r                 421 fs/dlm/lock.c  	r->res_length = len;
r                 422 fs/dlm/lock.c  	memcpy(r->res_name, name, len);
r                 423 fs/dlm/lock.c  	mutex_init(&r->res_mutex);
r                 425 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_lookup);
r                 426 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_grantqueue);
r                 427 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_convertqueue);
r                 428 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_waitqueue);
r                 429 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_root_list);
r                 430 fs/dlm/lock.c  	INIT_LIST_HEAD(&r->res_recover_list);
r                 432 fs/dlm/lock.c  	*r_ret = r;
r                 436 fs/dlm/lock.c  static int rsb_cmp(struct dlm_rsb *r, const char *name, int nlen)
r                 442 fs/dlm/lock.c  	return memcmp(r->res_name, maxname, DLM_RESNAME_MAXLEN);
r                 449 fs/dlm/lock.c  	struct dlm_rsb *r;
r                 453 fs/dlm/lock.c  		r = rb_entry(node, struct dlm_rsb, res_hashnode);
r                 454 fs/dlm/lock.c  		rc = rsb_cmp(r, name, len);
r                 466 fs/dlm/lock.c  	*r_ret = r;
r                 548 fs/dlm/lock.c  	struct dlm_rsb *r = NULL;
r                 594 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                 602 fs/dlm/lock.c  	kref_get(&r->res_ref);
r                 608 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                 619 fs/dlm/lock.c  	if ((r->res_master_nodeid != our_nodeid) && from_other) {
r                 623 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid, dir_nodeid,
r                 624 fs/dlm/lock.c  			  r->res_name);
r                 629 fs/dlm/lock.c  	if ((r->res_master_nodeid != our_nodeid) && from_dir) {
r                 632 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid);
r                 633 fs/dlm/lock.c  		dlm_print_rsb(r);
r                 635 fs/dlm/lock.c  		r->res_master_nodeid = our_nodeid;
r                 636 fs/dlm/lock.c  		r->res_nodeid = 0;
r                 637 fs/dlm/lock.c  		rsb_clear_flag(r, RSB_MASTER_UNCERTAIN);
r                 638 fs/dlm/lock.c  		r->res_first_lkid = 0;
r                 641 fs/dlm/lock.c  	if (from_local && (r->res_master_nodeid != our_nodeid)) {
r                 644 fs/dlm/lock.c  		rsb_set_flag(r, RSB_MASTER_UNCERTAIN);
r                 645 fs/dlm/lock.c  		r->res_first_lkid = 0;
r                 648 fs/dlm/lock.c  	rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
r                 649 fs/dlm/lock.c  	error = rsb_insert(r, &ls->ls_rsbtbl[b].keep);
r                 661 fs/dlm/lock.c  	error = get_rsb_struct(ls, name, len, &r);
r                 669 fs/dlm/lock.c  	r->res_hash = hash;
r                 670 fs/dlm/lock.c  	r->res_bucket = b;
r                 671 fs/dlm/lock.c  	r->res_dir_nodeid = dir_nodeid;
r                 672 fs/dlm/lock.c  	kref_init(&r->res_ref);
r                 677 fs/dlm/lock.c  			  from_nodeid, r->res_name);
r                 678 fs/dlm/lock.c  		r->res_master_nodeid = our_nodeid;
r                 679 fs/dlm/lock.c  		r->res_nodeid = 0;
r                 686 fs/dlm/lock.c  			  from_nodeid, dir_nodeid, our_nodeid, r->res_name);
r                 687 fs/dlm/lock.c  		dlm_free_rsb(r);
r                 688 fs/dlm/lock.c  		r = NULL;
r                 695 fs/dlm/lock.c  			  from_nodeid, dir_nodeid, r->res_name);
r                 701 fs/dlm/lock.c  		r->res_master_nodeid = our_nodeid;
r                 702 fs/dlm/lock.c  		r->res_nodeid = 0;
r                 705 fs/dlm/lock.c  		r->res_master_nodeid = 0;
r                 706 fs/dlm/lock.c  		r->res_nodeid = -1;
r                 710 fs/dlm/lock.c  	error = rsb_insert(r, &ls->ls_rsbtbl[b].keep);
r                 714 fs/dlm/lock.c  	*r_ret = r;
r                 727 fs/dlm/lock.c  	struct dlm_rsb *r = NULL;
r                 739 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                 747 fs/dlm/lock.c  	kref_get(&r->res_ref);
r                 752 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                 762 fs/dlm/lock.c  	if (!recover && (r->res_master_nodeid != our_nodeid) && from_nodeid) {
r                 766 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid, dir_nodeid);
r                 767 fs/dlm/lock.c  		dlm_print_rsb(r);
r                 772 fs/dlm/lock.c  	if (!recover && (r->res_master_nodeid != our_nodeid) &&
r                 777 fs/dlm/lock.c  			  our_nodeid, r->res_master_nodeid, dir_nodeid);
r                 778 fs/dlm/lock.c  		dlm_print_rsb(r);
r                 779 fs/dlm/lock.c  		r->res_master_nodeid = our_nodeid;
r                 780 fs/dlm/lock.c  		r->res_nodeid = 0;
r                 783 fs/dlm/lock.c  	rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
r                 784 fs/dlm/lock.c  	error = rsb_insert(r, &ls->ls_rsbtbl[b].keep);
r                 793 fs/dlm/lock.c  	error = get_rsb_struct(ls, name, len, &r);
r                 801 fs/dlm/lock.c  	r->res_hash = hash;
r                 802 fs/dlm/lock.c  	r->res_bucket = b;
r                 803 fs/dlm/lock.c  	r->res_dir_nodeid = dir_nodeid;
r                 804 fs/dlm/lock.c  	r->res_master_nodeid = dir_nodeid;
r                 805 fs/dlm/lock.c  	r->res_nodeid = (dir_nodeid == our_nodeid) ? 0 : dir_nodeid;
r                 806 fs/dlm/lock.c  	kref_init(&r->res_ref);
r                 808 fs/dlm/lock.c  	error = rsb_insert(r, &ls->ls_rsbtbl[b].keep);
r                 812 fs/dlm/lock.c  	*r_ret = r;
r                 841 fs/dlm/lock.c  static int validate_master_nodeid(struct dlm_ls *ls, struct dlm_rsb *r,
r                 846 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid,
r                 847 fs/dlm/lock.c  			  r->res_dir_nodeid);
r                 848 fs/dlm/lock.c  		dlm_print_rsb(r);
r                 852 fs/dlm/lock.c  	if (from_nodeid != r->res_dir_nodeid) {
r                 857 fs/dlm/lock.c  		if (r->res_master_nodeid) {
r                 860 fs/dlm/lock.c  				  r->res_master_nodeid, r->res_dir_nodeid,
r                 861 fs/dlm/lock.c  				  r->res_first_lkid, r->res_name);
r                 868 fs/dlm/lock.c  		if (r->res_master_nodeid) {
r                 871 fs/dlm/lock.c  				  from_nodeid, r->res_master_nodeid,
r                 872 fs/dlm/lock.c  				  r->res_first_lkid, r->res_name);
r                 875 fs/dlm/lock.c  		r->res_master_nodeid = dlm_our_nodeid();
r                 876 fs/dlm/lock.c  		r->res_nodeid = 0;
r                 913 fs/dlm/lock.c  	struct dlm_rsb *r = NULL;
r                 947 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                 952 fs/dlm/lock.c  		hold_rsb(r);
r                 954 fs/dlm/lock.c  		lock_rsb(r);
r                 958 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                 967 fs/dlm/lock.c  	if (r->res_dir_nodeid != our_nodeid) {
r                 970 fs/dlm/lock.c  			  r->res_dir_nodeid, our_nodeid, r->res_name);
r                 971 fs/dlm/lock.c  		r->res_dir_nodeid = our_nodeid;
r                 974 fs/dlm/lock.c  	if (fix_master && dlm_is_removed(ls, r->res_master_nodeid)) {
r                 980 fs/dlm/lock.c  		r->res_master_nodeid = from_nodeid;
r                 981 fs/dlm/lock.c  		r->res_nodeid = from_nodeid;
r                 982 fs/dlm/lock.c  		rsb_set_flag(r, RSB_NEW_MASTER);
r                 987 fs/dlm/lock.c  			dlm_dump_rsb(r);
r                 991 fs/dlm/lock.c  	if (from_master && (r->res_master_nodeid != from_nodeid)) {
r                 998 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid, r->res_nodeid,
r                 999 fs/dlm/lock.c  			  r->res_first_lkid, r->res_name);
r                1001 fs/dlm/lock.c  		if (r->res_master_nodeid == our_nodeid) {
r                1003 fs/dlm/lock.c  			dlm_dump_rsb(r);
r                1007 fs/dlm/lock.c  		r->res_master_nodeid = from_nodeid;
r                1008 fs/dlm/lock.c  		r->res_nodeid = from_nodeid;
r                1009 fs/dlm/lock.c  		rsb_set_flag(r, RSB_NEW_MASTER);
r                1012 fs/dlm/lock.c  	if (!r->res_master_nodeid) {
r                1017 fs/dlm/lock.c  			  from_nodeid, r->res_first_lkid, r->res_name);
r                1018 fs/dlm/lock.c  		r->res_master_nodeid = from_nodeid;
r                1019 fs/dlm/lock.c  		r->res_nodeid = from_nodeid;
r                1023 fs/dlm/lock.c  	    (r->res_master_nodeid == from_nodeid)) {
r                1030 fs/dlm/lock.c  			  r->res_first_lkid, r->res_name);
r                1034 fs/dlm/lock.c  	*r_nodeid = r->res_master_nodeid;
r                1039 fs/dlm/lock.c  		r->res_toss_time = jiffies;
r                1044 fs/dlm/lock.c  		unlock_rsb(r);
r                1045 fs/dlm/lock.c  		put_rsb(r);
r                1050 fs/dlm/lock.c  	error = get_rsb_struct(ls, name, len, &r);
r                1058 fs/dlm/lock.c  	r->res_hash = hash;
r                1059 fs/dlm/lock.c  	r->res_bucket = b;
r                1060 fs/dlm/lock.c  	r->res_dir_nodeid = our_nodeid;
r                1061 fs/dlm/lock.c  	r->res_master_nodeid = from_nodeid;
r                1062 fs/dlm/lock.c  	r->res_nodeid = from_nodeid;
r                1063 fs/dlm/lock.c  	kref_init(&r->res_ref);
r                1064 fs/dlm/lock.c  	r->res_toss_time = jiffies;
r                1066 fs/dlm/lock.c  	error = rsb_insert(r, &ls->ls_rsbtbl[b].toss);
r                1069 fs/dlm/lock.c  		dlm_free_rsb(r);
r                1086 fs/dlm/lock.c  	struct dlm_rsb *r;
r                1092 fs/dlm/lock.c  			r = rb_entry(n, struct dlm_rsb, res_hashnode);
r                1093 fs/dlm/lock.c  			if (r->res_hash == hash)
r                1094 fs/dlm/lock.c  				dlm_dump_rsb(r);
r                1102 fs/dlm/lock.c  	struct dlm_rsb *r = NULL;
r                1110 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                1114 fs/dlm/lock.c  	error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                1118 fs/dlm/lock.c  	dlm_dump_rsb(r);
r                1125 fs/dlm/lock.c  	struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref);
r                1126 fs/dlm/lock.c  	struct dlm_ls *ls = r->res_ls;
r                1128 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_root_list), dlm_print_rsb(r););
r                1129 fs/dlm/lock.c  	kref_init(&r->res_ref);
r                1130 fs/dlm/lock.c  	rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[r->res_bucket].keep);
r                1131 fs/dlm/lock.c  	rsb_insert(r, &ls->ls_rsbtbl[r->res_bucket].toss);
r                1132 fs/dlm/lock.c  	r->res_toss_time = jiffies;
r                1133 fs/dlm/lock.c  	ls->ls_rsbtbl[r->res_bucket].flags |= DLM_RTF_SHRINK;
r                1134 fs/dlm/lock.c  	if (r->res_lvbptr) {
r                1135 fs/dlm/lock.c  		dlm_free_lvb(r->res_lvbptr);
r                1136 fs/dlm/lock.c  		r->res_lvbptr = NULL;
r                1142 fs/dlm/lock.c  static void unhold_rsb(struct dlm_rsb *r)
r                1145 fs/dlm/lock.c  	rv = kref_put(&r->res_ref, toss_rsb);
r                1146 fs/dlm/lock.c  	DLM_ASSERT(!rv, dlm_dump_rsb(r););
r                1151 fs/dlm/lock.c  	struct dlm_rsb *r = container_of(kref, struct dlm_rsb, res_ref);
r                1156 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_lookup), dlm_dump_rsb(r););
r                1157 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_grantqueue), dlm_dump_rsb(r););
r                1158 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_convertqueue), dlm_dump_rsb(r););
r                1159 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_waitqueue), dlm_dump_rsb(r););
r                1160 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_root_list), dlm_dump_rsb(r););
r                1161 fs/dlm/lock.c  	DLM_ASSERT(list_empty(&r->res_recover_list), dlm_dump_rsb(r););
r                1167 fs/dlm/lock.c  static void attach_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                1169 fs/dlm/lock.c  	hold_rsb(r);
r                1170 fs/dlm/lock.c  	lkb->lkb_resource = r;
r                1312 fs/dlm/lock.c  static void add_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int status)
r                1325 fs/dlm/lock.c  			list_add(&lkb->lkb_statequeue, &r->res_waitqueue);
r                1327 fs/dlm/lock.c  			list_add_tail(&lkb->lkb_statequeue, &r->res_waitqueue);
r                1331 fs/dlm/lock.c  		lkb_add_ordered(&lkb->lkb_statequeue, &r->res_grantqueue,
r                1336 fs/dlm/lock.c  			list_add(&lkb->lkb_statequeue, &r->res_convertqueue);
r                1339 fs/dlm/lock.c  				      &r->res_convertqueue);
r                1346 fs/dlm/lock.c  static void del_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                1353 fs/dlm/lock.c  static void move_lkb(struct dlm_rsb *r, struct dlm_lkb *lkb, int sts)
r                1356 fs/dlm/lock.c  	del_lkb(r, lkb);
r                1357 fs/dlm/lock.c  	add_lkb(r, lkb, sts);
r                1625 fs/dlm/lock.c  static void wait_pending_remove(struct dlm_rsb *r)
r                1627 fs/dlm/lock.c  	struct dlm_ls *ls = r->res_ls;
r                1631 fs/dlm/lock.c  	    !rsb_cmp(r, ls->ls_remove_name, ls->ls_remove_len)) {
r                1633 fs/dlm/lock.c  		  	  r->res_dir_nodeid, r->res_name);
r                1651 fs/dlm/lock.c  	struct dlm_rsb *r;
r                1669 fs/dlm/lock.c  		r = rb_entry(n, struct dlm_rsb, res_hashnode);
r                1677 fs/dlm/lock.c  		    (r->res_master_nodeid != our_nodeid) &&
r                1678 fs/dlm/lock.c  		    (dlm_dir_nodeid(r) == our_nodeid)) {
r                1684 fs/dlm/lock.c  		if (!time_after_eq(jiffies, r->res_toss_time +
r                1690 fs/dlm/lock.c  		    (r->res_master_nodeid == our_nodeid) &&
r                1691 fs/dlm/lock.c  		    (dlm_dir_nodeid(r) != our_nodeid)) {
r                1697 fs/dlm/lock.c  			ls->ls_remove_lens[remote_count] = r->res_length;
r                1698 fs/dlm/lock.c  			memcpy(ls->ls_remove_names[remote_count], r->res_name,
r                1707 fs/dlm/lock.c  		if (!kref_put(&r->res_ref, kill_rsb)) {
r                1708 fs/dlm/lock.c  			log_error(ls, "tossed rsb in use %s", r->res_name);
r                1712 fs/dlm/lock.c  		rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
r                1713 fs/dlm/lock.c  		dlm_free_rsb(r);
r                1741 fs/dlm/lock.c  		rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                1748 fs/dlm/lock.c  		if (r->res_master_nodeid != our_nodeid) {
r                1751 fs/dlm/lock.c  				  r->res_master_nodeid, r->res_dir_nodeid,
r                1756 fs/dlm/lock.c  		if (r->res_dir_nodeid == our_nodeid) {
r                1760 fs/dlm/lock.c  				  r->res_dir_nodeid, r->res_master_nodeid,
r                1765 fs/dlm/lock.c  		if (!time_after_eq(jiffies, r->res_toss_time +
r                1769 fs/dlm/lock.c  				  r->res_toss_time, jiffies, name);
r                1773 fs/dlm/lock.c  		if (!kref_put(&r->res_ref, kill_rsb)) {
r                1779 fs/dlm/lock.c  		rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
r                1788 fs/dlm/lock.c  		send_remove(r);
r                1796 fs/dlm/lock.c  		dlm_free_rsb(r);
r                1856 fs/dlm/lock.c  	struct dlm_rsb *r;
r                1891 fs/dlm/lock.c  		r = lkb->lkb_resource;
r                1892 fs/dlm/lock.c  		hold_rsb(r);
r                1893 fs/dlm/lock.c  		lock_rsb(r);
r                1905 fs/dlm/lock.c  				  lkb->lkb_id, lkb->lkb_nodeid, r->res_name);
r                1909 fs/dlm/lock.c  			_cancel_lock(r, lkb);
r                1912 fs/dlm/lock.c  		unlock_rsb(r);
r                1913 fs/dlm/lock.c  		unhold_rsb(r);
r                1945 fs/dlm/lock.c  static void set_lvb_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                1947 fs/dlm/lock.c  	int b, len = r->res_ls->ls_lvblen;
r                1962 fs/dlm/lock.c  		if (!r->res_lvbptr)
r                1965 fs/dlm/lock.c  		memcpy(lkb->lkb_lvbptr, r->res_lvbptr, len);
r                1966 fs/dlm/lock.c  		lkb->lkb_lvbseq = r->res_lvbseq;
r                1970 fs/dlm/lock.c  			rsb_set_flag(r, RSB_VALNOTVALID);
r                1980 fs/dlm/lock.c  		if (!r->res_lvbptr)
r                1981 fs/dlm/lock.c  			r->res_lvbptr = dlm_allocate_lvb(r->res_ls);
r                1983 fs/dlm/lock.c  		if (!r->res_lvbptr)
r                1986 fs/dlm/lock.c  		memcpy(r->res_lvbptr, lkb->lkb_lvbptr, len);
r                1987 fs/dlm/lock.c  		r->res_lvbseq++;
r                1988 fs/dlm/lock.c  		lkb->lkb_lvbseq = r->res_lvbseq;
r                1989 fs/dlm/lock.c  		rsb_clear_flag(r, RSB_VALNOTVALID);
r                1992 fs/dlm/lock.c  	if (rsb_flag(r, RSB_VALNOTVALID))
r                1996 fs/dlm/lock.c  static void set_lvb_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2002 fs/dlm/lock.c  		rsb_set_flag(r, RSB_VALNOTVALID);
r                2012 fs/dlm/lock.c  	if (!r->res_lvbptr)
r                2013 fs/dlm/lock.c  		r->res_lvbptr = dlm_allocate_lvb(r->res_ls);
r                2015 fs/dlm/lock.c  	if (!r->res_lvbptr)
r                2018 fs/dlm/lock.c  	memcpy(r->res_lvbptr, lkb->lkb_lvbptr, r->res_ls->ls_lvblen);
r                2019 fs/dlm/lock.c  	r->res_lvbseq++;
r                2020 fs/dlm/lock.c  	rsb_clear_flag(r, RSB_VALNOTVALID);
r                2025 fs/dlm/lock.c  static void set_lvb_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                2039 fs/dlm/lock.c  		if (len > r->res_ls->ls_lvblen)
r                2040 fs/dlm/lock.c  			len = r->res_ls->ls_lvblen;
r                2056 fs/dlm/lock.c  static void _remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2058 fs/dlm/lock.c  	del_lkb(r, lkb);
r                2065 fs/dlm/lock.c  static void remove_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2067 fs/dlm/lock.c  	set_lvb_unlock(r, lkb);
r                2068 fs/dlm/lock.c  	_remove_lock(r, lkb);
r                2071 fs/dlm/lock.c  static void remove_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2073 fs/dlm/lock.c  	_remove_lock(r, lkb);
r                2080 fs/dlm/lock.c  static int revert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2090 fs/dlm/lock.c  		move_lkb(r, lkb, DLM_LKSTS_GRANTED);
r                2094 fs/dlm/lock.c  		del_lkb(r, lkb);
r                2107 fs/dlm/lock.c  static int revert_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2109 fs/dlm/lock.c  	return revert_lock(r, lkb);
r                2112 fs/dlm/lock.c  static void _grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2117 fs/dlm/lock.c  			move_lkb(r, lkb, DLM_LKSTS_GRANTED);
r                2119 fs/dlm/lock.c  			add_lkb(r, lkb, DLM_LKSTS_GRANTED);
r                2126 fs/dlm/lock.c  static void grant_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2128 fs/dlm/lock.c  	set_lvb_lock(r, lkb);
r                2129 fs/dlm/lock.c  	_grant_lock(r, lkb);
r                2132 fs/dlm/lock.c  static void grant_lock_pc(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                2135 fs/dlm/lock.c  	set_lvb_lock_pc(r, lkb, ms);
r                2136 fs/dlm/lock.c  	_grant_lock(r, lkb);
r                2143 fs/dlm/lock.c  static void grant_lock_pending(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2145 fs/dlm/lock.c  	grant_lock(r, lkb);
r                2147 fs/dlm/lock.c  		send_grant(r, lkb);
r                2149 fs/dlm/lock.c  		queue_cast(r, lkb, 0);
r                2256 fs/dlm/lock.c  static int conversion_deadlock_detect(struct dlm_rsb *r, struct dlm_lkb *lkb2)
r                2261 fs/dlm/lock.c  	list_for_each_entry(lkb1, &r->res_convertqueue, lkb_statequeue) {
r                2295 fs/dlm/lock.c  static int _can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now,
r                2327 fs/dlm/lock.c  	if (queue_conflict(&r->res_grantqueue, lkb))
r                2336 fs/dlm/lock.c  	if (queue_conflict(&r->res_convertqueue, lkb))
r                2388 fs/dlm/lock.c  		if (list_empty(&r->res_convertqueue))
r                2408 fs/dlm/lock.c  	if (!now && conv && first_in_list(lkb, &r->res_convertqueue))
r                2422 fs/dlm/lock.c  	if (now && !conv && list_empty(&r->res_convertqueue) &&
r                2423 fs/dlm/lock.c  	    list_empty(&r->res_waitqueue))
r                2434 fs/dlm/lock.c  	if (!now && !conv && list_empty(&r->res_convertqueue) &&
r                2435 fs/dlm/lock.c  	    first_in_list(lkb, &r->res_waitqueue))
r                2441 fs/dlm/lock.c  static int can_be_granted(struct dlm_rsb *r, struct dlm_lkb *lkb, int now,
r                2451 fs/dlm/lock.c  	rv = _can_be_granted(r, lkb, now, recover);
r                2462 fs/dlm/lock.c  	    conversion_deadlock_detect(r, lkb)) {
r                2471 fs/dlm/lock.c  			dlm_dump_rsb(r);
r                2490 fs/dlm/lock.c  		rv = _can_be_granted(r, lkb, now, 0);
r                2503 fs/dlm/lock.c  static int grant_pending_convert(struct dlm_rsb *r, int high, int *cw,
r                2507 fs/dlm/lock.c  	int recover = rsb_flag(r, RSB_RECOVER_GRANT);
r                2517 fs/dlm/lock.c  	list_for_each_entry_safe(lkb, s, &r->res_convertqueue, lkb_statequeue) {
r                2521 fs/dlm/lock.c  		if (can_be_granted(r, lkb, 0, recover, &deadlk)) {
r                2522 fs/dlm/lock.c  			grant_lock_pending(r, lkb);
r                2531 fs/dlm/lock.c  				  lkb->lkb_id, lkb->lkb_nodeid, r->res_name);
r                2544 fs/dlm/lock.c  					queue_bast(r, lkb, lkb->lkb_rqmode);
r                2550 fs/dlm/lock.c  					  r->res_name);
r                2551 fs/dlm/lock.c  				dlm_dump_rsb(r);
r                2572 fs/dlm/lock.c  static int grant_pending_wait(struct dlm_rsb *r, int high, int *cw,
r                2577 fs/dlm/lock.c  	list_for_each_entry_safe(lkb, s, &r->res_waitqueue, lkb_statequeue) {
r                2578 fs/dlm/lock.c  		if (can_be_granted(r, lkb, 0, 0, NULL)) {
r                2579 fs/dlm/lock.c  			grant_lock_pending(r, lkb);
r                2611 fs/dlm/lock.c  static void grant_pending_locks(struct dlm_rsb *r, unsigned int *count)
r                2617 fs/dlm/lock.c  	if (!is_master(r)) {
r                2618 fs/dlm/lock.c  		log_print("grant_pending_locks r nodeid %d", r->res_nodeid);
r                2619 fs/dlm/lock.c  		dlm_dump_rsb(r);
r                2623 fs/dlm/lock.c  	high = grant_pending_convert(r, high, &cw, count);
r                2624 fs/dlm/lock.c  	high = grant_pending_wait(r, high, &cw, count);
r                2635 fs/dlm/lock.c  	list_for_each_entry_safe(lkb, s, &r->res_grantqueue, lkb_statequeue) {
r                2639 fs/dlm/lock.c  				queue_bast(r, lkb, DLM_LOCK_CW);
r                2641 fs/dlm/lock.c  				queue_bast(r, lkb, high);
r                2661 fs/dlm/lock.c  static void send_bast_queue(struct dlm_rsb *r, struct list_head *head,
r                2671 fs/dlm/lock.c  			queue_bast(r, gr, lkb->lkb_rqmode);
r                2677 fs/dlm/lock.c  static void send_blocking_asts(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2679 fs/dlm/lock.c  	send_bast_queue(r, &r->res_grantqueue, lkb);
r                2682 fs/dlm/lock.c  static void send_blocking_asts_all(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2684 fs/dlm/lock.c  	send_bast_queue(r, &r->res_grantqueue, lkb);
r                2685 fs/dlm/lock.c  	send_bast_queue(r, &r->res_convertqueue, lkb);
r                2707 fs/dlm/lock.c  static int set_master(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                2711 fs/dlm/lock.c  	if (rsb_flag(r, RSB_MASTER_UNCERTAIN)) {
r                2712 fs/dlm/lock.c  		rsb_clear_flag(r, RSB_MASTER_UNCERTAIN);
r                2713 fs/dlm/lock.c  		r->res_first_lkid = lkb->lkb_id;
r                2714 fs/dlm/lock.c  		lkb->lkb_nodeid = r->res_nodeid;
r                2718 fs/dlm/lock.c  	if (r->res_first_lkid && r->res_first_lkid != lkb->lkb_id) {
r                2719 fs/dlm/lock.c  		list_add_tail(&lkb->lkb_rsb_lookup, &r->res_lookup);
r                2723 fs/dlm/lock.c  	if (r->res_master_nodeid == our_nodeid) {
r                2728 fs/dlm/lock.c  	if (r->res_master_nodeid) {
r                2729 fs/dlm/lock.c  		lkb->lkb_nodeid = r->res_master_nodeid;
r                2733 fs/dlm/lock.c  	if (dlm_dir_nodeid(r) == our_nodeid) {
r                2740 fs/dlm/lock.c  		log_debug(r->res_ls, "set_master %x self master %d dir %d %s",
r                2741 fs/dlm/lock.c  			  lkb->lkb_id, r->res_master_nodeid, r->res_dir_nodeid,
r                2742 fs/dlm/lock.c  			  r->res_name);
r                2743 fs/dlm/lock.c  		r->res_master_nodeid = our_nodeid;
r                2744 fs/dlm/lock.c  		r->res_nodeid = 0;
r                2749 fs/dlm/lock.c  	wait_pending_remove(r);
r                2751 fs/dlm/lock.c  	r->res_first_lkid = lkb->lkb_id;
r                2752 fs/dlm/lock.c  	send_lookup(r, lkb);
r                2756 fs/dlm/lock.c  static void process_lookup_list(struct dlm_rsb *r)
r                2760 fs/dlm/lock.c  	list_for_each_entry_safe(lkb, safe, &r->res_lookup, lkb_rsb_lookup) {
r                2762 fs/dlm/lock.c  		_request_lock(r, lkb);
r                2769 fs/dlm/lock.c  static void confirm_master(struct dlm_rsb *r, int error)
r                2773 fs/dlm/lock.c  	if (!r->res_first_lkid)
r                2779 fs/dlm/lock.c  		r->res_first_lkid = 0;
r                2780 fs/dlm/lock.c  		process_lookup_list(r);
r                2790 fs/dlm/lock.c  		r->res_first_lkid = 0;
r                2792 fs/dlm/lock.c  		if (!list_empty(&r->res_lookup)) {
r                2793 fs/dlm/lock.c  			lkb = list_entry(r->res_lookup.next, struct dlm_lkb,
r                2796 fs/dlm/lock.c  			r->res_first_lkid = lkb->lkb_id;
r                2797 fs/dlm/lock.c  			_request_lock(r, lkb);
r                2802 fs/dlm/lock.c  		log_error(r->res_ls, "confirm_master unknown error %d", error);
r                3074 fs/dlm/lock.c  static int do_request(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3078 fs/dlm/lock.c  	if (can_be_granted(r, lkb, 1, 0, NULL)) {
r                3079 fs/dlm/lock.c  		grant_lock(r, lkb);
r                3080 fs/dlm/lock.c  		queue_cast(r, lkb, 0);
r                3086 fs/dlm/lock.c  		add_lkb(r, lkb, DLM_LKSTS_WAITING);
r                3092 fs/dlm/lock.c  	queue_cast(r, lkb, -EAGAIN);
r                3097 fs/dlm/lock.c  static void do_request_effects(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3103 fs/dlm/lock.c  			send_blocking_asts_all(r, lkb);
r                3106 fs/dlm/lock.c  		send_blocking_asts(r, lkb);
r                3111 fs/dlm/lock.c  static int do_convert(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3118 fs/dlm/lock.c  	if (can_be_granted(r, lkb, 1, 0, &deadlk)) {
r                3119 fs/dlm/lock.c  		grant_lock(r, lkb);
r                3120 fs/dlm/lock.c  		queue_cast(r, lkb, 0);
r                3130 fs/dlm/lock.c  		revert_lock(r, lkb);
r                3131 fs/dlm/lock.c  		queue_cast(r, lkb, -EDEADLK);
r                3143 fs/dlm/lock.c  		grant_pending_convert(r, DLM_LOCK_IV, NULL, NULL);
r                3144 fs/dlm/lock.c  		if (_can_be_granted(r, lkb, 1, 0)) {
r                3145 fs/dlm/lock.c  			grant_lock(r, lkb);
r                3146 fs/dlm/lock.c  			queue_cast(r, lkb, 0);
r                3154 fs/dlm/lock.c  		del_lkb(r, lkb);
r                3155 fs/dlm/lock.c  		add_lkb(r, lkb, DLM_LKSTS_CONVERT);
r                3161 fs/dlm/lock.c  	queue_cast(r, lkb, -EAGAIN);
r                3166 fs/dlm/lock.c  static void do_convert_effects(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3171 fs/dlm/lock.c  		grant_pending_locks(r, NULL);
r                3176 fs/dlm/lock.c  			send_blocking_asts_all(r, lkb);
r                3179 fs/dlm/lock.c  		send_blocking_asts(r, lkb);
r                3184 fs/dlm/lock.c  static int do_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3186 fs/dlm/lock.c  	remove_lock(r, lkb);
r                3187 fs/dlm/lock.c  	queue_cast(r, lkb, -DLM_EUNLOCK);
r                3191 fs/dlm/lock.c  static void do_unlock_effects(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3194 fs/dlm/lock.c  	grant_pending_locks(r, NULL);
r                3199 fs/dlm/lock.c  static int do_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3203 fs/dlm/lock.c  	error = revert_lock(r, lkb);
r                3205 fs/dlm/lock.c  		queue_cast(r, lkb, -DLM_ECANCEL);
r                3211 fs/dlm/lock.c  static void do_cancel_effects(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3215 fs/dlm/lock.c  		grant_pending_locks(r, NULL);
r                3225 fs/dlm/lock.c  static int _request_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3231 fs/dlm/lock.c  	error = set_master(r, lkb);
r                3239 fs/dlm/lock.c  	if (is_remote(r)) {
r                3241 fs/dlm/lock.c  		error = send_request(r, lkb);
r                3243 fs/dlm/lock.c  		error = do_request(r, lkb);
r                3246 fs/dlm/lock.c  		do_request_effects(r, lkb, error);
r                3254 fs/dlm/lock.c  static int _convert_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3258 fs/dlm/lock.c  	if (is_remote(r)) {
r                3260 fs/dlm/lock.c  		error = send_convert(r, lkb);
r                3262 fs/dlm/lock.c  		error = do_convert(r, lkb);
r                3265 fs/dlm/lock.c  		do_convert_effects(r, lkb, error);
r                3273 fs/dlm/lock.c  static int _unlock_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3277 fs/dlm/lock.c  	if (is_remote(r)) {
r                3279 fs/dlm/lock.c  		error = send_unlock(r, lkb);
r                3281 fs/dlm/lock.c  		error = do_unlock(r, lkb);
r                3284 fs/dlm/lock.c  		do_unlock_effects(r, lkb, error);
r                3292 fs/dlm/lock.c  static int _cancel_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3296 fs/dlm/lock.c  	if (is_remote(r)) {
r                3298 fs/dlm/lock.c  		error = send_cancel(r, lkb);
r                3300 fs/dlm/lock.c  		error = do_cancel(r, lkb);
r                3303 fs/dlm/lock.c  		do_cancel_effects(r, lkb, error);
r                3317 fs/dlm/lock.c  	struct dlm_rsb *r;
r                3324 fs/dlm/lock.c  	error = find_rsb(ls, name, len, 0, R_REQUEST, &r);
r                3328 fs/dlm/lock.c  	lock_rsb(r);
r                3330 fs/dlm/lock.c  	attach_lkb(r, lkb);
r                3333 fs/dlm/lock.c  	error = _request_lock(r, lkb);
r                3335 fs/dlm/lock.c  	unlock_rsb(r);
r                3336 fs/dlm/lock.c  	put_rsb(r);
r                3343 fs/dlm/lock.c  	struct dlm_rsb *r;
r                3346 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                3348 fs/dlm/lock.c  	hold_rsb(r);
r                3349 fs/dlm/lock.c  	lock_rsb(r);
r                3355 fs/dlm/lock.c  	error = _convert_lock(r, lkb);
r                3357 fs/dlm/lock.c  	unlock_rsb(r);
r                3358 fs/dlm/lock.c  	put_rsb(r);
r                3365 fs/dlm/lock.c  	struct dlm_rsb *r;
r                3368 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                3370 fs/dlm/lock.c  	hold_rsb(r);
r                3371 fs/dlm/lock.c  	lock_rsb(r);
r                3377 fs/dlm/lock.c  	error = _unlock_lock(r, lkb);
r                3379 fs/dlm/lock.c  	unlock_rsb(r);
r                3380 fs/dlm/lock.c  	put_rsb(r);
r                3387 fs/dlm/lock.c  	struct dlm_rsb *r;
r                3390 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                3392 fs/dlm/lock.c  	hold_rsb(r);
r                3393 fs/dlm/lock.c  	lock_rsb(r);
r                3399 fs/dlm/lock.c  	error = _cancel_lock(r, lkb);
r                3401 fs/dlm/lock.c  	unlock_rsb(r);
r                3402 fs/dlm/lock.c  	put_rsb(r);
r                3561 fs/dlm/lock.c  static int create_message(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3572 fs/dlm/lock.c  		mb_len += r->res_length;
r                3580 fs/dlm/lock.c  			mb_len += r->res_ls->ls_lvblen;
r                3584 fs/dlm/lock.c  	return _create_message(r->res_ls, mb_len, to_nodeid, mstype,
r                3598 fs/dlm/lock.c  static void send_args(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3612 fs/dlm/lock.c  	ms->m_hash     = r->res_hash;
r                3628 fs/dlm/lock.c  		memcpy(ms->m_extra, r->res_name, r->res_length);
r                3637 fs/dlm/lock.c  		memcpy(ms->m_extra, lkb->lkb_lvbptr, r->res_ls->ls_lvblen);
r                3642 fs/dlm/lock.c  static int send_common(struct dlm_rsb *r, struct dlm_lkb *lkb, int mstype)
r                3648 fs/dlm/lock.c  	to_nodeid = r->res_nodeid;
r                3654 fs/dlm/lock.c  	error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh);
r                3658 fs/dlm/lock.c  	send_args(r, lkb, ms);
r                3670 fs/dlm/lock.c  static int send_request(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3672 fs/dlm/lock.c  	return send_common(r, lkb, DLM_MSG_REQUEST);
r                3675 fs/dlm/lock.c  static int send_convert(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3679 fs/dlm/lock.c  	error = send_common(r, lkb, DLM_MSG_CONVERT);
r                3684 fs/dlm/lock.c  		r->res_ls->ls_stub_ms.m_flags = DLM_IFL_STUB_MS;
r                3685 fs/dlm/lock.c  		r->res_ls->ls_stub_ms.m_type = DLM_MSG_CONVERT_REPLY;
r                3686 fs/dlm/lock.c  		r->res_ls->ls_stub_ms.m_result = 0;
r                3687 fs/dlm/lock.c  		__receive_convert_reply(r, lkb, &r->res_ls->ls_stub_ms);
r                3697 fs/dlm/lock.c  static int send_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3699 fs/dlm/lock.c  	return send_common(r, lkb, DLM_MSG_UNLOCK);
r                3702 fs/dlm/lock.c  static int send_cancel(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3704 fs/dlm/lock.c  	return send_common(r, lkb, DLM_MSG_CANCEL);
r                3707 fs/dlm/lock.c  static int send_grant(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3715 fs/dlm/lock.c  	error = create_message(r, lkb, to_nodeid, DLM_MSG_GRANT, &ms, &mh);
r                3719 fs/dlm/lock.c  	send_args(r, lkb, ms);
r                3728 fs/dlm/lock.c  static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode)
r                3736 fs/dlm/lock.c  	error = create_message(r, NULL, to_nodeid, DLM_MSG_BAST, &ms, &mh);
r                3740 fs/dlm/lock.c  	send_args(r, lkb, ms);
r                3749 fs/dlm/lock.c  static int send_lookup(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                3755 fs/dlm/lock.c  	to_nodeid = dlm_dir_nodeid(r);
r                3761 fs/dlm/lock.c  	error = create_message(r, NULL, to_nodeid, DLM_MSG_LOOKUP, &ms, &mh);
r                3765 fs/dlm/lock.c  	send_args(r, lkb, ms);
r                3777 fs/dlm/lock.c  static int send_remove(struct dlm_rsb *r)
r                3783 fs/dlm/lock.c  	to_nodeid = dlm_dir_nodeid(r);
r                3785 fs/dlm/lock.c  	error = create_message(r, NULL, to_nodeid, DLM_MSG_REMOVE, &ms, &mh);
r                3789 fs/dlm/lock.c  	memcpy(ms->m_extra, r->res_name, r->res_length);
r                3790 fs/dlm/lock.c  	ms->m_hash = r->res_hash;
r                3797 fs/dlm/lock.c  static int send_common_reply(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                3806 fs/dlm/lock.c  	error = create_message(r, lkb, to_nodeid, mstype, &ms, &mh);
r                3810 fs/dlm/lock.c  	send_args(r, lkb, ms);
r                3819 fs/dlm/lock.c  static int send_request_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)
r                3821 fs/dlm/lock.c  	return send_common_reply(r, lkb, DLM_MSG_REQUEST_REPLY, rv);
r                3824 fs/dlm/lock.c  static int send_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)
r                3826 fs/dlm/lock.c  	return send_common_reply(r, lkb, DLM_MSG_CONVERT_REPLY, rv);
r                3829 fs/dlm/lock.c  static int send_unlock_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)
r                3831 fs/dlm/lock.c  	return send_common_reply(r, lkb, DLM_MSG_UNLOCK_REPLY, rv);
r                3834 fs/dlm/lock.c  static int send_cancel_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)
r                3836 fs/dlm/lock.c  	return send_common_reply(r, lkb, DLM_MSG_CANCEL_REPLY, rv);
r                3842 fs/dlm/lock.c  	struct dlm_rsb *r = &ls->ls_stub_rsb;
r                3847 fs/dlm/lock.c  	error = create_message(r, NULL, nodeid, DLM_MSG_LOOKUP_REPLY, &ms, &mh);
r                4019 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4034 fs/dlm/lock.c  	rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                4041 fs/dlm/lock.c  	rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                4075 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4102 fs/dlm/lock.c  			 R_RECEIVE_REQUEST, &r);
r                4108 fs/dlm/lock.c  	lock_rsb(r);
r                4110 fs/dlm/lock.c  	if (r->res_master_nodeid != dlm_our_nodeid()) {
r                4111 fs/dlm/lock.c  		error = validate_master_nodeid(ls, r, from_nodeid);
r                4113 fs/dlm/lock.c  			unlock_rsb(r);
r                4114 fs/dlm/lock.c  			put_rsb(r);
r                4120 fs/dlm/lock.c  	attach_lkb(r, lkb);
r                4121 fs/dlm/lock.c  	error = do_request(r, lkb);
r                4122 fs/dlm/lock.c  	send_request_reply(r, lkb, error);
r                4123 fs/dlm/lock.c  	do_request_effects(r, lkb, error);
r                4125 fs/dlm/lock.c  	unlock_rsb(r);
r                4126 fs/dlm/lock.c  	put_rsb(r);
r                4168 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4185 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4187 fs/dlm/lock.c  	hold_rsb(r);
r                4188 fs/dlm/lock.c  	lock_rsb(r);
r                4198 fs/dlm/lock.c  		send_convert_reply(r, lkb, error);
r                4204 fs/dlm/lock.c  	error = do_convert(r, lkb);
r                4206 fs/dlm/lock.c  		send_convert_reply(r, lkb, error);
r                4207 fs/dlm/lock.c  	do_convert_effects(r, lkb, error);
r                4209 fs/dlm/lock.c  	unlock_rsb(r);
r                4210 fs/dlm/lock.c  	put_rsb(r);
r                4223 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4239 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4241 fs/dlm/lock.c  	hold_rsb(r);
r                4242 fs/dlm/lock.c  	lock_rsb(r);
r                4252 fs/dlm/lock.c  		send_unlock_reply(r, lkb, error);
r                4256 fs/dlm/lock.c  	error = do_unlock(r, lkb);
r                4257 fs/dlm/lock.c  	send_unlock_reply(r, lkb, error);
r                4258 fs/dlm/lock.c  	do_unlock_effects(r, lkb, error);
r                4260 fs/dlm/lock.c  	unlock_rsb(r);
r                4261 fs/dlm/lock.c  	put_rsb(r);
r                4274 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4283 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4285 fs/dlm/lock.c  	hold_rsb(r);
r                4286 fs/dlm/lock.c  	lock_rsb(r);
r                4292 fs/dlm/lock.c  	error = do_cancel(r, lkb);
r                4293 fs/dlm/lock.c  	send_cancel_reply(r, lkb, error);
r                4294 fs/dlm/lock.c  	do_cancel_effects(r, lkb, error);
r                4296 fs/dlm/lock.c  	unlock_rsb(r);
r                4297 fs/dlm/lock.c  	put_rsb(r);
r                4310 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4317 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4319 fs/dlm/lock.c  	hold_rsb(r);
r                4320 fs/dlm/lock.c  	lock_rsb(r);
r                4329 fs/dlm/lock.c  	grant_lock_pc(r, lkb, ms);
r                4330 fs/dlm/lock.c  	queue_cast(r, lkb, 0);
r                4332 fs/dlm/lock.c  	unlock_rsb(r);
r                4333 fs/dlm/lock.c  	put_rsb(r);
r                4341 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4348 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4350 fs/dlm/lock.c  	hold_rsb(r);
r                4351 fs/dlm/lock.c  	lock_rsb(r);
r                4357 fs/dlm/lock.c  	queue_bast(r, lkb, ms->m_bastmode);
r                4360 fs/dlm/lock.c  	unlock_rsb(r);
r                4361 fs/dlm/lock.c  	put_rsb(r);
r                4389 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4427 fs/dlm/lock.c  	rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r);
r                4430 fs/dlm/lock.c  		rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r);
r                4438 fs/dlm/lock.c  		if (r->res_master_nodeid != from_nodeid) {
r                4441 fs/dlm/lock.c  				  from_nodeid, r->res_master_nodeid);
r                4442 fs/dlm/lock.c  			dlm_print_rsb(r);
r                4448 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid, r->res_first_lkid,
r                4454 fs/dlm/lock.c  	if (r->res_master_nodeid != from_nodeid) {
r                4456 fs/dlm/lock.c  			  from_nodeid, r->res_master_nodeid);
r                4457 fs/dlm/lock.c  		dlm_print_rsb(r);
r                4462 fs/dlm/lock.c  	if (kref_put(&r->res_ref, kill_rsb)) {
r                4463 fs/dlm/lock.c  		rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss);
r                4465 fs/dlm/lock.c  		dlm_free_rsb(r);
r                4469 fs/dlm/lock.c  		dlm_print_rsb(r);
r                4482 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4490 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4491 fs/dlm/lock.c  	hold_rsb(r);
r                4492 fs/dlm/lock.c  	lock_rsb(r);
r                4503 fs/dlm/lock.c  		dlm_dump_rsb(r);
r                4510 fs/dlm/lock.c  		r->res_master_nodeid = from_nodeid;
r                4511 fs/dlm/lock.c  		r->res_nodeid = from_nodeid;
r                4521 fs/dlm/lock.c  		queue_cast(r, lkb, -EAGAIN);
r                4522 fs/dlm/lock.c  		confirm_master(r, -EAGAIN);
r                4534 fs/dlm/lock.c  			add_lkb(r, lkb, DLM_LKSTS_WAITING);
r                4537 fs/dlm/lock.c  			grant_lock_pc(r, lkb, ms);
r                4538 fs/dlm/lock.c  			queue_cast(r, lkb, 0);
r                4540 fs/dlm/lock.c  		confirm_master(r, result);
r                4548 fs/dlm/lock.c  			  from_nodeid, result, r->res_master_nodeid,
r                4549 fs/dlm/lock.c  			  r->res_dir_nodeid, r->res_first_lkid, r->res_name);
r                4551 fs/dlm/lock.c  		if (r->res_dir_nodeid != dlm_our_nodeid() &&
r                4552 fs/dlm/lock.c  		    r->res_master_nodeid != dlm_our_nodeid()) {
r                4554 fs/dlm/lock.c  			r->res_master_nodeid = 0;
r                4555 fs/dlm/lock.c  			r->res_nodeid = -1;
r                4561 fs/dlm/lock.c  			queue_cast_overlap(r, lkb);
r                4562 fs/dlm/lock.c  			confirm_master(r, result);
r                4565 fs/dlm/lock.c  			_request_lock(r, lkb);
r                4567 fs/dlm/lock.c  			if (r->res_master_nodeid == dlm_our_nodeid())
r                4568 fs/dlm/lock.c  				confirm_master(r, 0);
r                4582 fs/dlm/lock.c  		send_unlock(r, lkb);
r                4587 fs/dlm/lock.c  		send_cancel(r, lkb);
r                4593 fs/dlm/lock.c  	unlock_rsb(r);
r                4594 fs/dlm/lock.c  	put_rsb(r);
r                4599 fs/dlm/lock.c  static void __receive_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                4606 fs/dlm/lock.c  		queue_cast(r, lkb, -EAGAIN);
r                4611 fs/dlm/lock.c  		revert_lock_pc(r, lkb);
r                4612 fs/dlm/lock.c  		queue_cast(r, lkb, -EDEADLK);
r                4620 fs/dlm/lock.c  		del_lkb(r, lkb);
r                4621 fs/dlm/lock.c  		add_lkb(r, lkb, DLM_LKSTS_CONVERT);
r                4630 fs/dlm/lock.c  		grant_lock_pc(r, lkb, ms);
r                4631 fs/dlm/lock.c  		queue_cast(r, lkb, 0);
r                4635 fs/dlm/lock.c  		log_error(r->res_ls, "receive_convert_reply %x remote %d %x %d",
r                4638 fs/dlm/lock.c  		dlm_print_rsb(r);
r                4645 fs/dlm/lock.c  	struct dlm_rsb *r = lkb->lkb_resource;
r                4648 fs/dlm/lock.c  	hold_rsb(r);
r                4649 fs/dlm/lock.c  	lock_rsb(r);
r                4660 fs/dlm/lock.c  	__receive_convert_reply(r, lkb, ms);
r                4662 fs/dlm/lock.c  	unlock_rsb(r);
r                4663 fs/dlm/lock.c  	put_rsb(r);
r                4682 fs/dlm/lock.c  	struct dlm_rsb *r = lkb->lkb_resource;
r                4685 fs/dlm/lock.c  	hold_rsb(r);
r                4686 fs/dlm/lock.c  	lock_rsb(r);
r                4702 fs/dlm/lock.c  		remove_lock_pc(r, lkb);
r                4703 fs/dlm/lock.c  		queue_cast(r, lkb, -DLM_EUNLOCK);
r                4708 fs/dlm/lock.c  		log_error(r->res_ls, "receive_unlock_reply %x error %d",
r                4712 fs/dlm/lock.c  	unlock_rsb(r);
r                4713 fs/dlm/lock.c  	put_rsb(r);
r                4732 fs/dlm/lock.c  	struct dlm_rsb *r = lkb->lkb_resource;
r                4735 fs/dlm/lock.c  	hold_rsb(r);
r                4736 fs/dlm/lock.c  	lock_rsb(r);
r                4752 fs/dlm/lock.c  		revert_lock_pc(r, lkb);
r                4753 fs/dlm/lock.c  		queue_cast(r, lkb, -DLM_ECANCEL);
r                4758 fs/dlm/lock.c  		log_error(r->res_ls, "receive_cancel_reply %x error %d",
r                4762 fs/dlm/lock.c  	unlock_rsb(r);
r                4763 fs/dlm/lock.c  	put_rsb(r);
r                4783 fs/dlm/lock.c  	struct dlm_rsb *r;
r                4796 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                4797 fs/dlm/lock.c  	hold_rsb(r);
r                4798 fs/dlm/lock.c  	lock_rsb(r);
r                4812 fs/dlm/lock.c  	if (r->res_master_nodeid && (r->res_master_nodeid != ret_nodeid)) {
r                4817 fs/dlm/lock.c  			  r->res_master_nodeid, r->res_dir_nodeid,
r                4818 fs/dlm/lock.c  			  dlm_our_nodeid(), r->res_first_lkid, r->res_name);
r                4822 fs/dlm/lock.c  		r->res_master_nodeid = ret_nodeid;
r                4823 fs/dlm/lock.c  		r->res_nodeid = 0;
r                4825 fs/dlm/lock.c  		r->res_first_lkid = 0;
r                4830 fs/dlm/lock.c  		r->res_master_nodeid = 0;
r                4831 fs/dlm/lock.c  		r->res_nodeid = -1;
r                4835 fs/dlm/lock.c  		r->res_master_nodeid = ret_nodeid;
r                4836 fs/dlm/lock.c  		r->res_nodeid = ret_nodeid;
r                4842 fs/dlm/lock.c  		queue_cast_overlap(r, lkb);
r                4847 fs/dlm/lock.c  	_request_lock(r, lkb);
r                4851 fs/dlm/lock.c  		process_lookup_list(r);
r                4853 fs/dlm/lock.c  	unlock_rsb(r);
r                4854 fs/dlm/lock.c  	put_rsb(r);
r                5269 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5283 fs/dlm/lock.c  		r = lkb->lkb_resource;
r                5284 fs/dlm/lock.c  		hold_rsb(r);
r                5285 fs/dlm/lock.c  		lock_rsb(r);
r                5295 fs/dlm/lock.c  			  r->res_nodeid, lkb->lkb_nodeid, lkb->lkb_wait_nodeid,
r                5296 fs/dlm/lock.c  			  dlm_dir_nodeid(r), oc, ou);
r                5317 fs/dlm/lock.c  				queue_cast(r, lkb, ou ? -DLM_EUNLOCK :
r                5323 fs/dlm/lock.c  					queue_cast(r, lkb, -DLM_ECANCEL);
r                5326 fs/dlm/lock.c  					_unlock_lock(r, lkb);
r                5336 fs/dlm/lock.c  				_request_lock(r, lkb);
r                5337 fs/dlm/lock.c  				if (is_master(r))
r                5338 fs/dlm/lock.c  					confirm_master(r, 0);
r                5341 fs/dlm/lock.c  				_convert_lock(r, lkb);
r                5351 fs/dlm/lock.c  				  lkb->lkb_id, mstype, r->res_nodeid,
r                5352 fs/dlm/lock.c  				  dlm_dir_nodeid(r), oc, ou);
r                5354 fs/dlm/lock.c  		unlock_rsb(r);
r                5355 fs/dlm/lock.c  		put_rsb(r);
r                5362 fs/dlm/lock.c  static void purge_mstcpy_list(struct dlm_ls *ls, struct dlm_rsb *r,
r                5377 fs/dlm/lock.c  		del_lkb(r, lkb);
r                5385 fs/dlm/lock.c  void dlm_purge_mstcpy_locks(struct dlm_rsb *r)
r                5387 fs/dlm/lock.c  	struct dlm_ls *ls = r->res_ls;
r                5389 fs/dlm/lock.c  	purge_mstcpy_list(ls, r, &r->res_grantqueue);
r                5390 fs/dlm/lock.c  	purge_mstcpy_list(ls, r, &r->res_convertqueue);
r                5391 fs/dlm/lock.c  	purge_mstcpy_list(ls, r, &r->res_waitqueue);
r                5394 fs/dlm/lock.c  static void purge_dead_list(struct dlm_ls *ls, struct dlm_rsb *r,
r                5411 fs/dlm/lock.c  				rsb_set_flag(r, RSB_RECOVER_LVB_INVAL);
r                5414 fs/dlm/lock.c  			del_lkb(r, lkb);
r                5420 fs/dlm/lock.c  			rsb_set_flag(r, RSB_RECOVER_GRANT);
r                5431 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5449 fs/dlm/lock.c  	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                5450 fs/dlm/lock.c  		hold_rsb(r);
r                5451 fs/dlm/lock.c  		lock_rsb(r);
r                5452 fs/dlm/lock.c  		if (is_master(r)) {
r                5453 fs/dlm/lock.c  			purge_dead_list(ls, r, &r->res_grantqueue,
r                5455 fs/dlm/lock.c  			purge_dead_list(ls, r, &r->res_convertqueue,
r                5457 fs/dlm/lock.c  			purge_dead_list(ls, r, &r->res_waitqueue,
r                5460 fs/dlm/lock.c  		unlock_rsb(r);
r                5461 fs/dlm/lock.c  		unhold_rsb(r);
r                5474 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5478 fs/dlm/lock.c  		r = rb_entry(n, struct dlm_rsb, res_hashnode);
r                5480 fs/dlm/lock.c  		if (!rsb_flag(r, RSB_RECOVER_GRANT))
r                5482 fs/dlm/lock.c  		if (!is_master(r)) {
r                5483 fs/dlm/lock.c  			rsb_clear_flag(r, RSB_RECOVER_GRANT);
r                5486 fs/dlm/lock.c  		hold_rsb(r);
r                5488 fs/dlm/lock.c  		return r;
r                5513 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5520 fs/dlm/lock.c  		r = find_grant_rsb(ls, bucket);
r                5521 fs/dlm/lock.c  		if (!r) {
r                5529 fs/dlm/lock.c  		lock_rsb(r);
r                5531 fs/dlm/lock.c  		grant_pending_locks(r, &count);
r                5532 fs/dlm/lock.c  		rsb_clear_flag(r, RSB_RECOVER_GRANT);
r                5534 fs/dlm/lock.c  		confirm_master(r, 0);
r                5535 fs/dlm/lock.c  		unlock_rsb(r);
r                5536 fs/dlm/lock.c  		put_rsb(r);
r                5557 fs/dlm/lock.c  static struct dlm_lkb *search_remid(struct dlm_rsb *r, int nodeid,
r                5562 fs/dlm/lock.c  	lkb = search_remid_list(&r->res_grantqueue, nodeid, remid);
r                5565 fs/dlm/lock.c  	lkb = search_remid_list(&r->res_convertqueue, nodeid, remid);
r                5568 fs/dlm/lock.c  	lkb = search_remid_list(&r->res_waitqueue, nodeid, remid);
r                5576 fs/dlm/lock.c  				  struct dlm_rsb *r, struct dlm_rcom *rc)
r                5613 fs/dlm/lock.c  		rsb_set_flag(r, RSB_RECOVER_CONVERT);
r                5629 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5651 fs/dlm/lock.c  			 from_nodeid, R_RECEIVE_RECOVER, &r);
r                5655 fs/dlm/lock.c  	lock_rsb(r);
r                5657 fs/dlm/lock.c  	if (dlm_no_directory(ls) && (dlm_dir_nodeid(r) != dlm_our_nodeid())) {
r                5664 fs/dlm/lock.c  	lkb = search_remid(r, from_nodeid, remid);
r                5674 fs/dlm/lock.c  	error = receive_rcom_lock_args(ls, lkb, r, rc);
r                5680 fs/dlm/lock.c  	attach_lkb(r, lkb);
r                5681 fs/dlm/lock.c  	add_lkb(r, lkb, rl->rl_status);
r                5685 fs/dlm/lock.c  	if (!list_empty(&r->res_waitqueue) || !list_empty(&r->res_convertqueue))
r                5686 fs/dlm/lock.c  		rsb_set_flag(r, RSB_RECOVER_GRANT);
r                5696 fs/dlm/lock.c  	unlock_rsb(r);
r                5697 fs/dlm/lock.c  	put_rsb(r);
r                5710 fs/dlm/lock.c  	struct dlm_rsb *r;
r                5726 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                5727 fs/dlm/lock.c  	hold_rsb(r);
r                5728 fs/dlm/lock.c  	lock_rsb(r);
r                5733 fs/dlm/lock.c  		dlm_dump_rsb(r);
r                5734 fs/dlm/lock.c  		unlock_rsb(r);
r                5735 fs/dlm/lock.c  		put_rsb(r);
r                5749 fs/dlm/lock.c  		dlm_send_rcom_lock(r, lkb);
r                5762 fs/dlm/lock.c  	dlm_recovered_lock(r);
r                5764 fs/dlm/lock.c  	unlock_rsb(r);
r                5765 fs/dlm/lock.c  	put_rsb(r);
r                6054 fs/dlm/lock.c  	struct dlm_rsb *r;
r                6071 fs/dlm/lock.c  	r = lkb->lkb_resource;
r                6072 fs/dlm/lock.c  	hold_rsb(r);
r                6073 fs/dlm/lock.c  	lock_rsb(r);
r                6080 fs/dlm/lock.c  	error = _cancel_lock(r, lkb);
r                6082 fs/dlm/lock.c  	unlock_rsb(r);
r                6083 fs/dlm/lock.c  	put_rsb(r);
r                  14 fs/dlm/lock.h  void dlm_dump_rsb(struct dlm_rsb *r);
r                  21 fs/dlm/lock.h  void dlm_put_rsb(struct dlm_rsb *r);
r                  22 fs/dlm/lock.h  void dlm_hold_rsb(struct dlm_rsb *r);
r                  37 fs/dlm/lock.h  void dlm_purge_mstcpy_locks(struct dlm_rsb *r);
r                  62 fs/dlm/lock.h  static inline int is_master(struct dlm_rsb *r)
r                  64 fs/dlm/lock.h  	return !r->res_nodeid;
r                  67 fs/dlm/lock.h  static inline void lock_rsb(struct dlm_rsb *r)
r                  69 fs/dlm/lock.h  	mutex_lock(&r->res_mutex);
r                  72 fs/dlm/lock.h  static inline void unlock_rsb(struct dlm_rsb *r)
r                  74 fs/dlm/lock.h  	mutex_unlock(&r->res_mutex);
r                 183 fs/dlm/lowcomms.c 	int r;
r                 186 fs/dlm/lowcomms.c 	r = nodeid_hash(nodeid);
r                 188 fs/dlm/lowcomms.c 	hlist_for_each_entry(con, &connection_hash[r], list) {
r                 202 fs/dlm/lowcomms.c 	int r;
r                 212 fs/dlm/lowcomms.c 	r = nodeid_hash(nodeid);
r                 213 fs/dlm/lowcomms.c 	hlist_add_head(&con->list, &connection_hash[r]);
r                 629 fs/dlm/lowcomms.c 	int r;
r                 677 fs/dlm/lowcomms.c 	r = ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT | MSG_NOSIGNAL);
r                 691 fs/dlm/lowcomms.c 			  con->cb.len, r);
r                  58 fs/dlm/memory.c 	struct dlm_rsb *r;
r                  60 fs/dlm/memory.c 	r = kmem_cache_zalloc(rsb_cache, GFP_NOFS);
r                  61 fs/dlm/memory.c 	return r;
r                  64 fs/dlm/memory.c void dlm_free_rsb(struct dlm_rsb *r)
r                  66 fs/dlm/memory.c 	if (r->res_lvbptr)
r                  67 fs/dlm/memory.c 		dlm_free_lvb(r->res_lvbptr);
r                  68 fs/dlm/memory.c 	kmem_cache_free(rsb_cache, r);
r                  18 fs/dlm/memory.h void dlm_free_rsb(struct dlm_rsb *r);
r                  93 fs/dlm/netlink.c 	struct dlm_rsb *r = lkb->lkb_resource;
r                 107 fs/dlm/netlink.c 	if (r) {
r                 108 fs/dlm/netlink.c 		data->lockspace_id = r->res_ls->ls_global_id;
r                 109 fs/dlm/netlink.c 		data->resource_namelen = r->res_length;
r                 110 fs/dlm/netlink.c 		memcpy(data->resource_name, r->res_name, r->res_length);
r                 320 fs/dlm/rcom.c  int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid)
r                 324 fs/dlm/rcom.c  	struct dlm_ls *ls = r->res_ls;
r                 327 fs/dlm/rcom.c  	error = create_rcom(ls, dir_nodeid, DLM_RCOM_LOOKUP, r->res_length,
r                 331 fs/dlm/rcom.c  	memcpy(rc->rc_buf, r->res_name, r->res_length);
r                 332 fs/dlm/rcom.c  	rc->rc_id = (unsigned long) r->res_id;
r                 373 fs/dlm/rcom.c  static void pack_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb,
r                 393 fs/dlm/rcom.c  	rl->rl_namelen = cpu_to_le16(r->res_length);
r                 394 fs/dlm/rcom.c  	memcpy(rl->rl_name, r->res_name, r->res_length);
r                 400 fs/dlm/rcom.c  		memcpy(rl->rl_lvb, lkb->lkb_lvbptr, r->res_ls->ls_lvblen);
r                 403 fs/dlm/rcom.c  int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
r                 405 fs/dlm/rcom.c  	struct dlm_ls *ls = r->res_ls;
r                 414 fs/dlm/rcom.c  	error = create_rcom(ls, r->res_nodeid, DLM_RCOM_LOCK, len, &rc, &mh);
r                 419 fs/dlm/rcom.c  	pack_rcom_lock(r, lkb, rl);
r                 420 fs/dlm/rcom.c  	rc->rc_id = (unsigned long) r;
r                  17 fs/dlm/rcom.h  int dlm_send_rcom_lookup(struct dlm_rsb *r, int dir_nodeid);
r                  18 fs/dlm/rcom.h  int dlm_send_rcom_lock(struct dlm_rsb *r, struct dlm_lkb *lkb);
r                 250 fs/dlm/recover.c static void recover_list_add(struct dlm_rsb *r)
r                 252 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 255 fs/dlm/recover.c 	if (list_empty(&r->res_recover_list)) {
r                 256 fs/dlm/recover.c 		list_add_tail(&r->res_recover_list, &ls->ls_recover_list);
r                 258 fs/dlm/recover.c 		dlm_hold_rsb(r);
r                 263 fs/dlm/recover.c static void recover_list_del(struct dlm_rsb *r)
r                 265 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 268 fs/dlm/recover.c 	list_del_init(&r->res_recover_list);
r                 272 fs/dlm/recover.c 	dlm_put_rsb(r);
r                 277 fs/dlm/recover.c 	struct dlm_rsb *r, *s;
r                 280 fs/dlm/recover.c 	list_for_each_entry_safe(r, s, &ls->ls_recover_list, res_recover_list) {
r                 281 fs/dlm/recover.c 		list_del_init(&r->res_recover_list);
r                 282 fs/dlm/recover.c 		r->res_recover_locks_count = 0;
r                 283 fs/dlm/recover.c 		dlm_put_rsb(r);
r                 307 fs/dlm/recover.c static int recover_idr_add(struct dlm_rsb *r)
r                 309 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 314 fs/dlm/recover.c 	if (r->res_id) {
r                 318 fs/dlm/recover.c 	rv = idr_alloc(&ls->ls_recover_idr, r, 1, 0, GFP_NOWAIT);
r                 322 fs/dlm/recover.c 	r->res_id = rv;
r                 324 fs/dlm/recover.c 	dlm_hold_rsb(r);
r                 332 fs/dlm/recover.c static void recover_idr_del(struct dlm_rsb *r)
r                 334 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 337 fs/dlm/recover.c 	idr_remove(&ls->ls_recover_idr, r->res_id);
r                 338 fs/dlm/recover.c 	r->res_id = 0;
r                 342 fs/dlm/recover.c 	dlm_put_rsb(r);
r                 347 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 350 fs/dlm/recover.c 	r = idr_find(&ls->ls_recover_idr, (int)id);
r                 352 fs/dlm/recover.c 	return r;
r                 357 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 362 fs/dlm/recover.c 	idr_for_each_entry(&ls->ls_recover_idr, r, id) {
r                 364 fs/dlm/recover.c 		r->res_id = 0;
r                 365 fs/dlm/recover.c 		r->res_recover_locks_count = 0;
r                 368 fs/dlm/recover.c 		dlm_put_rsb(r);
r                 413 fs/dlm/recover.c static void set_master_lkbs(struct dlm_rsb *r)
r                 415 fs/dlm/recover.c 	set_lock_master(&r->res_grantqueue, r->res_nodeid);
r                 416 fs/dlm/recover.c 	set_lock_master(&r->res_convertqueue, r->res_nodeid);
r                 417 fs/dlm/recover.c 	set_lock_master(&r->res_waitqueue, r->res_nodeid);
r                 427 fs/dlm/recover.c static void set_new_master(struct dlm_rsb *r)
r                 429 fs/dlm/recover.c 	set_master_lkbs(r);
r                 430 fs/dlm/recover.c 	rsb_set_flag(r, RSB_NEW_MASTER);
r                 431 fs/dlm/recover.c 	rsb_set_flag(r, RSB_NEW_MASTER2);
r                 444 fs/dlm/recover.c static int recover_master(struct dlm_rsb *r, unsigned int *count)
r                 446 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 451 fs/dlm/recover.c 	if (is_master(r))
r                 454 fs/dlm/recover.c 	is_removed = dlm_is_removed(ls, r->res_nodeid);
r                 456 fs/dlm/recover.c 	if (!is_removed && !rsb_flag(r, RSB_NEW_MASTER))
r                 460 fs/dlm/recover.c 	dir_nodeid = dlm_dir_nodeid(r);
r                 464 fs/dlm/recover.c 			r->res_master_nodeid = our_nodeid;
r                 465 fs/dlm/recover.c 			r->res_nodeid = 0;
r                 471 fs/dlm/recover.c 		set_new_master(r);
r                 474 fs/dlm/recover.c 		recover_idr_add(r);
r                 475 fs/dlm/recover.c 		error = dlm_send_rcom_lookup(r, dir_nodeid);
r                 497 fs/dlm/recover.c static int recover_master_static(struct dlm_rsb *r, unsigned int *count)
r                 499 fs/dlm/recover.c 	int dir_nodeid = dlm_dir_nodeid(r);
r                 505 fs/dlm/recover.c 	dlm_purge_mstcpy_locks(r);
r                 506 fs/dlm/recover.c 	r->res_master_nodeid = dir_nodeid;
r                 507 fs/dlm/recover.c 	r->res_nodeid = new_master;
r                 508 fs/dlm/recover.c 	set_new_master(r);
r                 525 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 534 fs/dlm/recover.c 	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                 541 fs/dlm/recover.c 		lock_rsb(r);
r                 543 fs/dlm/recover.c 			error = recover_master_static(r, &count);
r                 545 fs/dlm/recover.c 			error = recover_master(r, &count);
r                 546 fs/dlm/recover.c 		unlock_rsb(r);
r                 568 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 571 fs/dlm/recover.c 	r = recover_idr_find(ls, rc->rc_id);
r                 572 fs/dlm/recover.c 	if (!r) {
r                 585 fs/dlm/recover.c 	lock_rsb(r);
r                 586 fs/dlm/recover.c 	r->res_master_nodeid = ret_nodeid;
r                 587 fs/dlm/recover.c 	r->res_nodeid = new_master;
r                 588 fs/dlm/recover.c 	set_new_master(r);
r                 589 fs/dlm/recover.c 	unlock_rsb(r);
r                 590 fs/dlm/recover.c 	recover_idr_del(r);
r                 617 fs/dlm/recover.c static int recover_locks_queue(struct dlm_rsb *r, struct list_head *head)
r                 623 fs/dlm/recover.c 	   	error = dlm_send_rcom_lock(r, lkb);
r                 626 fs/dlm/recover.c 		r->res_recover_locks_count++;
r                 632 fs/dlm/recover.c static int recover_locks(struct dlm_rsb *r)
r                 636 fs/dlm/recover.c 	lock_rsb(r);
r                 638 fs/dlm/recover.c 	DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r););
r                 640 fs/dlm/recover.c 	error = recover_locks_queue(r, &r->res_grantqueue);
r                 643 fs/dlm/recover.c 	error = recover_locks_queue(r, &r->res_convertqueue);
r                 646 fs/dlm/recover.c 	error = recover_locks_queue(r, &r->res_waitqueue);
r                 650 fs/dlm/recover.c 	if (r->res_recover_locks_count)
r                 651 fs/dlm/recover.c 		recover_list_add(r);
r                 653 fs/dlm/recover.c 		rsb_clear_flag(r, RSB_NEW_MASTER);
r                 655 fs/dlm/recover.c 	unlock_rsb(r);
r                 661 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 665 fs/dlm/recover.c 	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                 666 fs/dlm/recover.c 		if (is_master(r)) {
r                 667 fs/dlm/recover.c 			rsb_clear_flag(r, RSB_NEW_MASTER);
r                 671 fs/dlm/recover.c 		if (!rsb_flag(r, RSB_NEW_MASTER))
r                 680 fs/dlm/recover.c 		error = recover_locks(r);
r                 686 fs/dlm/recover.c 		count += r->res_recover_locks_count;
r                 699 fs/dlm/recover.c void dlm_recovered_lock(struct dlm_rsb *r)
r                 701 fs/dlm/recover.c 	DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_dump_rsb(r););
r                 703 fs/dlm/recover.c 	r->res_recover_locks_count--;
r                 704 fs/dlm/recover.c 	if (!r->res_recover_locks_count) {
r                 705 fs/dlm/recover.c 		rsb_clear_flag(r, RSB_NEW_MASTER);
r                 706 fs/dlm/recover.c 		recover_list_del(r);
r                 709 fs/dlm/recover.c 	if (recover_list_empty(r->res_ls))
r                 710 fs/dlm/recover.c 		wake_up(&r->res_ls->ls_wait_general);
r                 733 fs/dlm/recover.c static void recover_lvb(struct dlm_rsb *r)
r                 739 fs/dlm/recover.c 	int lvblen = r->res_ls->ls_lvblen;
r                 741 fs/dlm/recover.c 	if (!rsb_flag(r, RSB_NEW_MASTER2) &&
r                 742 fs/dlm/recover.c 	    rsb_flag(r, RSB_RECOVER_LVB_INVAL)) {
r                 744 fs/dlm/recover.c 		rsb_set_flag(r, RSB_VALNOTVALID);
r                 748 fs/dlm/recover.c 	if (!rsb_flag(r, RSB_NEW_MASTER2))
r                 754 fs/dlm/recover.c 	list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) {
r                 771 fs/dlm/recover.c 	list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) {
r                 794 fs/dlm/recover.c 		rsb_set_flag(r, RSB_VALNOTVALID);
r                 796 fs/dlm/recover.c 	if (!r->res_lvbptr) {
r                 797 fs/dlm/recover.c 		r->res_lvbptr = dlm_allocate_lvb(r->res_ls);
r                 798 fs/dlm/recover.c 		if (!r->res_lvbptr)
r                 803 fs/dlm/recover.c 		r->res_lvbseq = lkb->lkb_lvbseq;
r                 804 fs/dlm/recover.c 		memcpy(r->res_lvbptr, lkb->lkb_lvbptr, lvblen);
r                 806 fs/dlm/recover.c 		r->res_lvbseq = high_lkb->lkb_lvbseq;
r                 807 fs/dlm/recover.c 		memcpy(r->res_lvbptr, high_lkb->lkb_lvbptr, lvblen);
r                 809 fs/dlm/recover.c 		r->res_lvbseq = 0;
r                 810 fs/dlm/recover.c 		memset(r->res_lvbptr, 0, lvblen);
r                 819 fs/dlm/recover.c static void recover_conversion(struct dlm_rsb *r)
r                 821 fs/dlm/recover.c 	struct dlm_ls *ls = r->res_ls;
r                 825 fs/dlm/recover.c 	list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) {
r                 833 fs/dlm/recover.c 	list_for_each_entry(lkb, &r->res_convertqueue, lkb_statequeue) {
r                 852 fs/dlm/recover.c static void recover_grant(struct dlm_rsb *r)
r                 854 fs/dlm/recover.c 	if (!list_empty(&r->res_waitqueue) || !list_empty(&r->res_convertqueue))
r                 855 fs/dlm/recover.c 		rsb_set_flag(r, RSB_RECOVER_GRANT);
r                 860 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 864 fs/dlm/recover.c 	list_for_each_entry(r, &ls->ls_root_list, res_root_list) {
r                 865 fs/dlm/recover.c 		lock_rsb(r);
r                 866 fs/dlm/recover.c 		if (is_master(r)) {
r                 867 fs/dlm/recover.c 			if (rsb_flag(r, RSB_RECOVER_CONVERT))
r                 868 fs/dlm/recover.c 				recover_conversion(r);
r                 872 fs/dlm/recover.c 			recover_lvb(r);
r                 874 fs/dlm/recover.c 			if (rsb_flag(r, RSB_NEW_MASTER2))
r                 875 fs/dlm/recover.c 				recover_grant(r);
r                 878 fs/dlm/recover.c 			rsb_clear_flag(r, RSB_VALNOTVALID);
r                 880 fs/dlm/recover.c 		rsb_clear_flag(r, RSB_RECOVER_CONVERT);
r                 881 fs/dlm/recover.c 		rsb_clear_flag(r, RSB_RECOVER_LVB_INVAL);
r                 882 fs/dlm/recover.c 		rsb_clear_flag(r, RSB_NEW_MASTER2);
r                 883 fs/dlm/recover.c 		unlock_rsb(r);
r                 896 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 909 fs/dlm/recover.c 			r = rb_entry(n, struct dlm_rsb, res_hashnode);
r                 910 fs/dlm/recover.c 			list_add(&r->res_root_list, &ls->ls_root_list);
r                 911 fs/dlm/recover.c 			dlm_hold_rsb(r);
r                 925 fs/dlm/recover.c 	struct dlm_rsb *r, *safe;
r                 928 fs/dlm/recover.c 	list_for_each_entry_safe(r, safe, &ls->ls_root_list, res_root_list) {
r                 929 fs/dlm/recover.c 		list_del_init(&r->res_root_list);
r                 930 fs/dlm/recover.c 		dlm_put_rsb(r);
r                 938 fs/dlm/recover.c 	struct dlm_rsb *r;
r                 946 fs/dlm/recover.c 			r = rb_entry(n, struct dlm_rsb, res_hashnode);
r                 948 fs/dlm/recover.c 			dlm_free_rsb(r);
r                  25 fs/dlm/recover.h void dlm_recovered_lock(struct dlm_rsb *r);
r                 598 fs/exec.c      	int r;
r                 605 fs/exec.c      	r = copy_strings(argc, argv, bprm);
r                 608 fs/exec.c      	return r;
r                 606 fs/ext2/balloc.c 	char *p, *r;
r                 631 fs/ext2/balloc.c 	r = memscan(p, 0, ((maxblocks + 7) >> 3) - (here >> 3));
r                 632 fs/ext2/balloc.c 	next = (r - ((char *)bh->b_data)) << 3;
r                 744 fs/ext4/extents.c 	struct ext4_extent_idx *r, *l, *m;
r                 750 fs/ext4/extents.c 	r = EXT_LAST_INDEX(eh);
r                 751 fs/ext4/extents.c 	while (l <= r) {
r                 752 fs/ext4/extents.c 		m = l + (r - l) / 2;
r                 754 fs/ext4/extents.c 			r = m - 1;
r                 759 fs/ext4/extents.c 				r, le32_to_cpu(r->ei_block));
r                 804 fs/ext4/extents.c 	struct ext4_extent *r, *l, *m;
r                 817 fs/ext4/extents.c 	r = EXT_LAST_EXTENT(eh);
r                 819 fs/ext4/extents.c 	while (l <= r) {
r                 820 fs/ext4/extents.c 		m = l + (r - l) / 2;
r                 822 fs/ext4/extents.c 			r = m - 1;
r                 827 fs/ext4/extents.c 				r, le32_to_cpu(r->ee_block));
r                 279 fs/ext4/hash.c 	int r, dlen;
r                 294 fs/ext4/hash.c 		r = __ext4fs_dirhash(buff, dlen, hinfo);
r                 297 fs/ext4/hash.c 		return r;
r                 114 fs/f2fs/hash.c 	int r, dlen;
r                 132 fs/f2fs/hash.c 	r = __f2fs_dentry_hash(&folded, fname);
r                 135 fs/f2fs/hash.c 	return r;
r                1402 fs/gfs2/rgrp.c 	struct fstrim_range r;
r                1416 fs/gfs2/rgrp.c 	if (copy_from_user(&r, argp, sizeof(r)))
r                1423 fs/gfs2/rgrp.c 	start = r.start >> bs_shift;
r                1424 fs/gfs2/rgrp.c 	end = start + (r.len >> bs_shift);
r                1425 fs/gfs2/rgrp.c 	minlen = max_t(u64, r.minlen,
r                1477 fs/gfs2/rgrp.c 	r.len = trimmed << bs_shift;
r                1478 fs/gfs2/rgrp.c 	if (copy_to_user(argp, &r, sizeof(r)))
r                  67 fs/hostfs/hostfs.h extern int access_file(char *path, int r, int w, int x);
r                  68 fs/hostfs/hostfs.h extern int open_file(char *path, int r, int w, int append);
r                 304 fs/hostfs/hostfs_kern.c 	int r, w, fd;
r                 313 fs/hostfs/hostfs_kern.c 	r = w = 0;
r                 316 fs/hostfs/hostfs_kern.c 		r = 1;
r                 318 fs/hostfs/hostfs_kern.c 		r = w = 1;
r                 324 fs/hostfs/hostfs_kern.c 	fd = open_file(name, r, w, append);
r                 765 fs/hostfs/hostfs_kern.c 	int r = 0, w = 0, x = 0, err;
r                 770 fs/hostfs/hostfs_kern.c 	if (desired & MAY_READ) r = 1;
r                 781 fs/hostfs/hostfs_kern.c 		err = access_file(name, r, w, x);
r                  55 fs/hostfs/hostfs_user.c int access_file(char *path, int r, int w, int x)
r                  59 fs/hostfs/hostfs_user.c 	if (r)
r                  70 fs/hostfs/hostfs_user.c int open_file(char *path, int r, int w, int append)
r                  74 fs/hostfs/hostfs_user.c 	if (r && !w)
r                  76 fs/hostfs/hostfs_user.c 	else if (!r && w)
r                  78 fs/hostfs/hostfs_user.c 	else if (r && w)
r                  79 fs/hpfs/file.c 	int r;
r                  99 fs/hpfs/file.c 		r = -EIO;
r                 104 fs/hpfs/file.c 		r = -ENOSPC;
r                 112 fs/hpfs/file.c 	r = 0;
r                 115 fs/hpfs/file.c 	return r;
r                  35 fs/hpfs/namei.c 	int r;
r                  75 fs/hpfs/namei.c 	r = hpfs_add_dirent(dir, name, len, &dee);
r                  76 fs/hpfs/namei.c 	if (r == 1)
r                  78 fs/hpfs/namei.c 	if (r == -1) {
r                 139 fs/hpfs/namei.c 	int r;
r                 180 fs/hpfs/namei.c 	r = hpfs_add_dirent(dir, name, len, &dee);
r                 181 fs/hpfs/namei.c 	if (r == 1)
r                 183 fs/hpfs/namei.c 	if (r == -1) {
r                 225 fs/hpfs/namei.c 	int r;
r                 262 fs/hpfs/namei.c 	r = hpfs_add_dirent(dir, name, len, &dee);
r                 263 fs/hpfs/namei.c 	if (r == 1)
r                 265 fs/hpfs/namei.c 	if (r == -1) {
r                 299 fs/hpfs/namei.c 	int r;
r                 340 fs/hpfs/namei.c 	r = hpfs_add_dirent(dir, name, len, &dee);
r                 341 fs/hpfs/namei.c 	if (r == 1)
r                 343 fs/hpfs/namei.c 	if (r == -1) {
r                 379 fs/hpfs/namei.c 	int r;
r                 398 fs/hpfs/namei.c 	r = hpfs_remove_dirent(dir, dno, de, &qbh, 1);
r                 399 fs/hpfs/namei.c 	switch (r) {
r                 432 fs/hpfs/namei.c 	int r;
r                 454 fs/hpfs/namei.c 	r = hpfs_remove_dirent(dir, dno, de, &qbh, 1);
r                 455 fs/hpfs/namei.c 	switch (r) {
r                 524 fs/hpfs/namei.c 	int r;
r                 554 fs/hpfs/namei.c 		int r;
r                 555 fs/hpfs/namei.c 		if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) {
r                 574 fs/hpfs/namei.c 	if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) {
r                 575 fs/hpfs/namei.c 		if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!");
r                 576 fs/hpfs/namei.c 		err = r == 1 ? -ENOSPC : -EFSERROR;
r                 588 fs/hpfs/namei.c 	if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) {
r                 590 fs/hpfs/namei.c 		err = r == 2 ? -ENOSPC : -EFSERROR;
r                 211 fs/hpfs/super.c 			int r;
r                 216 fs/hpfs/super.c 			r = hpfs_trim_fs(file_inode(file)->i_sb, range.start >> 9, (range.start + range.len) >> 9, (range.minlen + 511) >> 9, &n_trimmed);
r                 217 fs/hpfs/super.c 			if (r)
r                 218 fs/hpfs/super.c 				return r;
r                 335 fs/jffs2/summary.c 			temp->nodetype = node->r.nodetype;
r                 773 fs/jffs2/summary.c 				sxref_ptr->nodetype = temp->r.nodetype;
r                 774 fs/jffs2/summary.c 				sxref_ptr->offset = temp->r.offset;
r                  88 fs/jffs2/summary.h 	struct jffs2_sum_xref_flash r;
r                 146 fs/jffs2/summary.h 	struct jffs2_sum_xref_mem r;
r                  35 fs/jfs/jfs_discard.c 	int r = 0;
r                  37 fs/jfs/jfs_discard.c 	r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0);
r                  38 fs/jfs/jfs_discard.c 	if (unlikely(r != 0)) {
r                  41 fs/jfs/jfs_discard.c 			(unsigned long long)nblocks, r);
r                  46 fs/jfs/jfs_discard.c 		(unsigned long long)nblocks, r);
r                3736 fs/jfs/jfs_dmap.c 	int blkno, w, b, r, nw, nb, i;
r                3763 fs/jfs/jfs_dmap.c 	for (r = nblocks; r > 0; r -= nb, blkno += nb) {
r                3767 fs/jfs/jfs_dmap.c 		nb = min(r, DBWORD - b);
r                3781 fs/jfs/jfs_dmap.c 			nw = r >> L2DBWORD;
r                1287 fs/namespace.c 	struct mount *r = list_entry(v, struct mount, mnt_list);
r                1288 fs/namespace.c 	return p->show(m, &r->mnt);
r                1752 fs/namespace.c 	struct mount *res, *p, *q, *r, *parent;
r                1767 fs/namespace.c 	list_for_each_entry(r, &mnt->mnt_mounts, mnt_child) {
r                1769 fs/namespace.c 		if (!is_subdir(r->mnt_mountpoint, dentry))
r                1772 fs/namespace.c 		for (s = r; s; s = next_mnt(s, r)) {
r                3448 fs/nfsd/nfs4state.c nfsd4_destroy_session(struct svc_rqst *r, struct nfsd4_compound_state *cstate,
r                3455 fs/nfsd/nfs4state.c 	struct net *net = SVC_NET(r);
r                3460 fs/nfsd/nfs4state.c 		if (!nfsd4_last_compound_op(r))
r                3470 fs/nfsd/nfs4state.c 	if (!nfsd4_mach_creds_match(ses->se_client, r))
r                 120 fs/ntfs/layout.h static inline bool __ntfs_is_magic(le32 x, NTFS_RECORD_TYPE r)
r                 122 fs/ntfs/layout.h 	return (x == r);
r                 126 fs/ntfs/layout.h static inline bool __ntfs_is_magicp(le32 *p, NTFS_RECORD_TYPE r)
r                 128 fs/ntfs/layout.h 	return (*p == r);
r                 123 fs/ntfs/ntfs.h 	int r = 1;
r                 129 fs/ntfs/ntfs.h 		r += 16;
r                 133 fs/ntfs/ntfs.h 		r += 8;
r                 137 fs/ntfs/ntfs.h 		r += 4;
r                 141 fs/ntfs/ntfs.h 		r += 2;
r                 145 fs/ntfs/ntfs.h 		r += 1;
r                 147 fs/ntfs/ntfs.h 	return r;
r                  54 fs/ntfs/upcase.c 	int i, r;
r                  64 fs/ntfs/upcase.c 	for (r = 0; uc_run_table[r][0]; r++)
r                  65 fs/ntfs/upcase.c 		for (i = uc_run_table[r][0]; i < uc_run_table[r][1]; i++)
r                  66 fs/ntfs/upcase.c 			le16_add_cpu(&uc[i], uc_run_table[r][2]);
r                  67 fs/ntfs/upcase.c 	for (r = 0; uc_dup_table[r][0]; r++)
r                  68 fs/ntfs/upcase.c 		for (i = uc_dup_table[r][0]; i < uc_dup_table[r][1]; i += 2)
r                  70 fs/ntfs/upcase.c 	for (r = 0; uc_word_table[r][0]; r++)
r                  71 fs/ntfs/upcase.c 		uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]);
r                 963 fs/ocfs2/dlm/dlmdomain.c 	char *l, *r;
r                 985 fs/ocfs2/dlm/dlmdomain.c 	r = remote;
r                 987 fs/ocfs2/dlm/dlmdomain.c 		mlog(0, "Region %.*s\n", O2HB_MAX_REGION_NAME_LEN, r);
r                 988 fs/ocfs2/dlm/dlmdomain.c 		r += O2HB_MAX_REGION_NAME_LEN;
r                 998 fs/ocfs2/dlm/dlmdomain.c 		r = remote;
r                1000 fs/ocfs2/dlm/dlmdomain.c 			if (!memcmp(l, r, O2HB_MAX_REGION_NAME_LEN)) {
r                1004 fs/ocfs2/dlm/dlmdomain.c 			r += O2HB_MAX_REGION_NAME_LEN;
r                1018 fs/ocfs2/dlm/dlmdomain.c 	r = remote;
r                1023 fs/ocfs2/dlm/dlmdomain.c 			if (!memcmp(r, l, O2HB_MAX_REGION_NAME_LEN)) {
r                1033 fs/ocfs2/dlm/dlmdomain.c 			     qr->qr_domain, O2HB_MAX_REGION_NAME_LEN, r,
r                1037 fs/ocfs2/dlm/dlmdomain.c 		r += O2HB_MAX_REGION_NAME_LEN;
r                1676 fs/ocfs2/dlm/dlmmaster.c 		int r = 0;
r                1688 fs/ocfs2/dlm/dlmmaster.c 					    &assert, sizeof(assert), to, &r);
r                1701 fs/ocfs2/dlm/dlmmaster.c 			r = 0;
r                1702 fs/ocfs2/dlm/dlmmaster.c 		} else if (r < 0) {
r                1705 fs/ocfs2/dlm/dlmmaster.c 			     "got %d.\n", namelen, lockname, to, r);
r                1718 fs/ocfs2/dlm/dlmmaster.c 		if (r & DLM_ASSERT_RESPONSE_REASSERT &&
r                1719 fs/ocfs2/dlm/dlmmaster.c 		    !(r & DLM_ASSERT_RESPONSE_MASTERY_REF)) {
r                1725 fs/ocfs2/dlm/dlmmaster.c 		if (r & DLM_ASSERT_RESPONSE_REASSERT) {
r                1731 fs/ocfs2/dlm/dlmmaster.c 		if (r & DLM_ASSERT_RESPONSE_MASTERY_REF) {
r                2220 fs/ocfs2/dlm/dlmmaster.c 	int ret = 0, r;
r                2234 fs/ocfs2/dlm/dlmmaster.c 				 &deref, sizeof(deref), res->owner, &r);
r                2238 fs/ocfs2/dlm/dlmmaster.c 	else if (r < 0) {
r                2241 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, namelen, lockname, res->owner, r);
r                2243 fs/ocfs2/dlm/dlmmaster.c 		if (r == -ENOMEM)
r                2246 fs/ocfs2/dlm/dlmmaster.c 		ret = r;
r                2414 fs/ocfs2/dlm/dlmmaster.c 	int ret = 0, r;
r                2428 fs/ocfs2/dlm/dlmmaster.c 				 &deref, sizeof(deref), node, &r);
r                2433 fs/ocfs2/dlm/dlmmaster.c 	} else if (r < 0) {
r                2436 fs/ocfs2/dlm/dlmmaster.c 		     dlm->name, namelen, lockname, node, r);
r                 147 fs/ocfs2/dlmglue.h #define ocfs2_inode_lock_full(i, r, e, f)\
r                 148 fs/ocfs2/dlmglue.h 		ocfs2_inode_lock_full_nested(i, r, e, f, OI_LS_NORMAL)
r                 831 fs/ocfs2/localalloc.c 	struct ocfs2_alloc_reservation r;
r                 842 fs/ocfs2/localalloc.c 		ocfs2_resv_init_once(&r);
r                 843 fs/ocfs2/localalloc.c 		ocfs2_resv_set_type(&r, OCFS2_RESV_FLAG_TMP);
r                 844 fs/ocfs2/localalloc.c 		resv = &r;
r                1371 fs/ocfs2/refcounttree.c 	const struct ocfs2_refcount_rec *l = a, *r = b;
r                1373 fs/ocfs2/refcounttree.c 	u32 r_cpos = ocfs2_get_ref_rec_low_cpos(r);
r                1384 fs/ocfs2/refcounttree.c 	const struct ocfs2_refcount_rec *l = a, *r = b;
r                1386 fs/ocfs2/refcounttree.c 	u64 r_cpos = le64_to_cpu(r->r_cpos);
r                1397 fs/ocfs2/refcounttree.c 	struct ocfs2_refcount_rec *l = a, *r = b;
r                1399 fs/ocfs2/refcounttree.c 	swap(*l, *r);
r                4156 fs/ocfs2/xattr.c 	const struct ocfs2_xattr_entry *l = a, *r = b;
r                4158 fs/ocfs2/xattr.c 	u32 r_hash = le32_to_cpu(r->xe_name_hash);
r                4169 fs/ocfs2/xattr.c 	struct ocfs2_xattr_entry *l = a, *r = b, tmp;
r                4172 fs/ocfs2/xattr.c 	memcpy(l, r, sizeof(struct ocfs2_xattr_entry));
r                4173 fs/ocfs2/xattr.c 	memcpy(r, &tmp, sizeof(struct ocfs2_xattr_entry));
r                4368 fs/ocfs2/xattr.c 	const struct ocfs2_xattr_entry *l = a, *r = b;
r                4370 fs/ocfs2/xattr.c 	u32 r_name_offset = le16_to_cpu(r->xe_name_offset);
r                  66 fs/orangefs/dir.c 	int bufi, r;
r                  89 fs/orangefs/dir.c 	r = service_operation(op, "orangefs_readdir",
r                  95 fs/orangefs/dir.c 		if (r == -EAGAIN) {
r                  98 fs/orangefs/dir.c 		} else if (r == -EIO) {
r                 100 fs/orangefs/dir.c 			od->error = r;
r                 101 fs/orangefs/dir.c 			return r;
r                 105 fs/orangefs/dir.c 	if (r < 0) {
r                 107 fs/orangefs/dir.c 		od->error = r;
r                 108 fs/orangefs/dir.c 		return r;
r                 165 fs/orangefs/dir.c 	int r;
r                 172 fs/orangefs/dir.c 	r = do_readdir(oi, od, dentry, op);
r                 173 fs/orangefs/dir.c 	if (r) {
r                 174 fs/orangefs/dir.c 		od->error = r;
r                 177 fs/orangefs/dir.c 	r = parse_readdir(od, op);
r                 178 fs/orangefs/dir.c 	if (r) {
r                 179 fs/orangefs/dir.c 		od->error = r;
r                 262 fs/orangefs/dir.c 		int r;
r                 263 fs/orangefs/dir.c 		r = fill_from_part(part, ctx);
r                 264 fs/orangefs/dir.c 		if (r < 0) {
r                 265 fs/orangefs/dir.c 			od->error = r;
r                 266 fs/orangefs/dir.c 			return r;
r                 267 fs/orangefs/dir.c 		} else if (r == 0) {
r                 310 fs/orangefs/dir.c 	int r;
r                 337 fs/orangefs/dir.c 	r = 0;
r                 345 fs/orangefs/dir.c 		r = orangefs_dir_more(oi, od, dentry);
r                 346 fs/orangefs/dir.c 		if (r)
r                 347 fs/orangefs/dir.c 			return r;
r                 354 fs/orangefs/dir.c 		r = orangefs_dir_fill(oi, od, dentry, ctx);
r                 355 fs/orangefs/dir.c 		if (r)
r                 356 fs/orangefs/dir.c 			return r;
r                 361 fs/orangefs/dir.c 		r = orangefs_dir_more(oi, od, dentry);
r                 362 fs/orangefs/dir.c 		if (r)
r                 363 fs/orangefs/dir.c 			return r;
r                 364 fs/orangefs/dir.c 		r = orangefs_dir_fill(oi, od, dentry, ctx);
r                 367 fs/orangefs/dir.c 	return r;
r                 635 fs/orangefs/file.c 	int r;
r                 647 fs/orangefs/file.c 	r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX);
r                 648 fs/orangefs/file.c 	if (r > 0)
r                 651 fs/orangefs/file.c 		return r;
r                 575 fs/orangefs/inode.c 	int r = 0;
r                 582 fs/orangefs/inode.c 		r = orangefs_writepage_locked(page, &wbc);
r                 585 fs/orangefs/inode.c 	return r;
r                 396 fs/orangefs/super.c 	int r;
r                 404 fs/orangefs/super.c 	r = service_operation(op, "orangefs_fs_umount", 0);
r                 406 fs/orangefs/super.c 	if (r)
r                 407 fs/orangefs/super.c 		gossip_err("orangefs_unmount: service_operation %d\n", r);
r                 409 fs/orangefs/super.c 	return r;
r                 600 fs/orangefs/super.c 	int r;
r                 615 fs/orangefs/super.c 	r = orangefs_unmount(ORANGEFS_SB(sb)->id, ORANGEFS_SB(sb)->fs_id,
r                 617 fs/orangefs/super.c 	if (!r)
r                 100 fs/proc_namespace.c 	struct mount *r = real_mount(mnt);
r                 110 fs/proc_namespace.c 		mangle(m, r->mnt_devname ? r->mnt_devname : "none");
r                 134 fs/proc_namespace.c 	struct mount *r = real_mount(mnt);
r                 139 fs/proc_namespace.c 	seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id,
r                 159 fs/proc_namespace.c 	if (IS_MNT_SHARED(r))
r                 160 fs/proc_namespace.c 		seq_printf(m, " shared:%i", r->mnt_group_id);
r                 161 fs/proc_namespace.c 	if (IS_MNT_SLAVE(r)) {
r                 162 fs/proc_namespace.c 		int master = r->mnt_master->mnt_group_id;
r                 163 fs/proc_namespace.c 		int dom = get_dominating_id(r, &p->root);
r                 168 fs/proc_namespace.c 	if (IS_MNT_UNBINDABLE(r))
r                 180 fs/proc_namespace.c 		mangle(m, r->mnt_devname ? r->mnt_devname : "none");
r                 196 fs/proc_namespace.c 	struct mount *r = real_mount(mnt);
r                 208 fs/proc_namespace.c 		if (r->mnt_devname) {
r                 210 fs/proc_namespace.c 			mangle(m, r->mnt_devname);
r                 940 fs/reiserfs/fix_node.c 	struct buffer_head *r, *f;
r                 944 fs/reiserfs/fix_node.c 	    (r = tb->FR[h]) == NULL)
r                 947 fs/reiserfs/fix_node.c 	if (f == r)
r                 951 fs/reiserfs/fix_node.c 		f = r;
r                  49 fs/reiserfs/procfs.c #define SF( x ) ( r -> x )
r                  68 fs/reiserfs/procfs.c #define JF( x ) ( r -> s_journal -> x )
r                  73 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
r                 117 fs/reiserfs/procfs.c 		   atomic_read(&r->s_generation_counter),
r                 136 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
r                 195 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
r                 310 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
r                 311 fs/reiserfs/procfs.c 	struct reiserfs_super_block *rs = r->s_rs;
r                 372 fs/reiserfs/procfs.c 		   atomic_read(&r->s_journal->j_wcount),
r                 181 fs/ubifs/replay.c static int trun_remove_range(struct ubifs_info *c, struct replay_entry *r)
r                 187 fs/ubifs/replay.c 	min_blk = r->new_size / UBIFS_BLOCK_SIZE;
r                 188 fs/ubifs/replay.c 	if (r->new_size & (UBIFS_BLOCK_SIZE - 1))
r                 191 fs/ubifs/replay.c 	max_blk = r->old_size / UBIFS_BLOCK_SIZE;
r                 192 fs/ubifs/replay.c 	if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0)
r                 195 fs/ubifs/replay.c 	ino = key_inum(c, &r->key);
r                 215 fs/ubifs/replay.c 	struct replay_entry *r;
r                 224 fs/ubifs/replay.c 	list_for_each_entry_reverse(r, &c->replay_list, list) {
r                 225 fs/ubifs/replay.c 		ubifs_assert(c, r->sqnum >= rino->sqnum);
r                 226 fs/ubifs/replay.c 		if (key_inum(c, &r->key) == key_inum(c, &rino->key))
r                 227 fs/ubifs/replay.c 			return r->deletion == 0;
r                 242 fs/ubifs/replay.c static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r)
r                 246 fs/ubifs/replay.c 	dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ",
r                 247 fs/ubifs/replay.c 		 r->lnum, r->offs, r->len, r->deletion, r->sqnum);
r                 249 fs/ubifs/replay.c 	if (is_hash_key(c, &r->key)) {
r                 250 fs/ubifs/replay.c 		if (r->deletion)
r                 251 fs/ubifs/replay.c 			err = ubifs_tnc_remove_nm(c, &r->key, &r->nm);
r                 253 fs/ubifs/replay.c 			err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
r                 254 fs/ubifs/replay.c 					       r->len, r->hash, &r->nm);
r                 256 fs/ubifs/replay.c 		if (r->deletion)
r                 257 fs/ubifs/replay.c 			switch (key_type(c, &r->key)) {
r                 260 fs/ubifs/replay.c 				ino_t inum = key_inum(c, &r->key);
r                 262 fs/ubifs/replay.c 				if (inode_still_linked(c, r)) {
r                 271 fs/ubifs/replay.c 				err = trun_remove_range(c, r);
r                 274 fs/ubifs/replay.c 				err = ubifs_tnc_remove(c, &r->key);
r                 278 fs/ubifs/replay.c 			err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs,
r                 279 fs/ubifs/replay.c 					    r->len, r->hash);
r                 284 fs/ubifs/replay.c 			err = ubifs_recover_size_accum(c, &r->key, r->deletion,
r                 285 fs/ubifs/replay.c 						       r->new_size);
r                 328 fs/ubifs/replay.c 	struct replay_entry *r;
r                 333 fs/ubifs/replay.c 	list_for_each_entry(r, &c->replay_list, list) {
r                 336 fs/ubifs/replay.c 		err = apply_replay_entry(c, r);
r                 352 fs/ubifs/replay.c 	struct replay_entry *r, *tmp;
r                 354 fs/ubifs/replay.c 	list_for_each_entry_safe(r, tmp, &c->replay_list, list) {
r                 355 fs/ubifs/replay.c 		if (is_hash_key(c, &r->key))
r                 356 fs/ubifs/replay.c 			kfree(fname_name(&r->nm));
r                 357 fs/ubifs/replay.c 		list_del(&r->list);
r                 358 fs/ubifs/replay.c 		kfree(r);
r                 387 fs/ubifs/replay.c 	struct replay_entry *r;
r                 394 fs/ubifs/replay.c 	r = kzalloc(sizeof(struct replay_entry), GFP_KERNEL);
r                 395 fs/ubifs/replay.c 	if (!r)
r                 400 fs/ubifs/replay.c 	r->lnum = lnum;
r                 401 fs/ubifs/replay.c 	r->offs = offs;
r                 402 fs/ubifs/replay.c 	r->len = len;
r                 403 fs/ubifs/replay.c 	ubifs_copy_hash(c, hash, r->hash);
r                 404 fs/ubifs/replay.c 	r->deletion = !!deletion;
r                 405 fs/ubifs/replay.c 	r->sqnum = sqnum;
r                 406 fs/ubifs/replay.c 	key_copy(c, key, &r->key);
r                 407 fs/ubifs/replay.c 	r->old_size = old_size;
r                 408 fs/ubifs/replay.c 	r->new_size = new_size;
r                 410 fs/ubifs/replay.c 	list_add_tail(&r->list, &c->replay_list);
r                 436 fs/ubifs/replay.c 	struct replay_entry *r;
r                 443 fs/ubifs/replay.c 	r = kzalloc(sizeof(struct replay_entry), GFP_KERNEL);
r                 444 fs/ubifs/replay.c 	if (!r)
r                 449 fs/ubifs/replay.c 		kfree(r);
r                 455 fs/ubifs/replay.c 	r->lnum = lnum;
r                 456 fs/ubifs/replay.c 	r->offs = offs;
r                 457 fs/ubifs/replay.c 	r->len = len;
r                 458 fs/ubifs/replay.c 	ubifs_copy_hash(c, hash, r->hash);
r                 459 fs/ubifs/replay.c 	r->deletion = !!deletion;
r                 460 fs/ubifs/replay.c 	r->sqnum = sqnum;
r                 461 fs/ubifs/replay.c 	key_copy(c, key, &r->key);
r                 462 fs/ubifs/replay.c 	fname_len(&r->nm) = nlen;
r                 465 fs/ubifs/replay.c 	fname_name(&r->nm) = nbuf;
r                 467 fs/ubifs/replay.c 	list_add_tail(&r->list, &c->replay_list);
r                1374 fs/unicode/mkutf8data.c static int nfdi_equal(void *l, void *r)
r                1377 fs/unicode/mkutf8data.c 	struct unicode_data *right = r;
r                1391 fs/unicode/mkutf8data.c static int nfdicf_equal(void *l, void *r)
r                1394 fs/unicode/mkutf8data.c 	struct unicode_data *right = r;
r                1538 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmbt_irec_t		r[3];	/* neighbor extent entries */
r                1562 fs/xfs/libxfs/xfs_bmap.c #define	LEFT		r[0]
r                1563 fs/xfs/libxfs/xfs_bmap.c #define	RIGHT		r[1]
r                1564 fs/xfs/libxfs/xfs_bmap.c #define	PREV		r[2]
r                2049 fs/xfs/libxfs/xfs_bmap.c 	xfs_bmbt_irec_t		r[3];	/* neighbor extent entries */
r                2065 fs/xfs/libxfs/xfs_bmap.c #define	LEFT		r[0]
r                2066 fs/xfs/libxfs/xfs_bmap.c #define	RIGHT		r[1]
r                2067 fs/xfs/libxfs/xfs_bmap.c #define	PREV		r[2]
r                2412 fs/xfs/libxfs/xfs_bmap.c 		r[0] = *new;
r                2413 fs/xfs/libxfs/xfs_bmap.c 		r[1].br_startoff = new_endoff;
r                2414 fs/xfs/libxfs/xfs_bmap.c 		r[1].br_blockcount =
r                2416 fs/xfs/libxfs/xfs_bmap.c 		r[1].br_startblock = new->br_startblock + new->br_blockcount;
r                2417 fs/xfs/libxfs/xfs_bmap.c 		r[1].br_state = PREV.br_state;
r                2421 fs/xfs/libxfs/xfs_bmap.c 		xfs_iext_insert(ip, icur, &r[1], state);
r                2422 fs/xfs/libxfs/xfs_bmap.c 		xfs_iext_insert(ip, icur, &r[0], state);
r                2435 fs/xfs/libxfs/xfs_bmap.c 			error = xfs_bmbt_update(cur, &r[1]);
r                  81 fs/xfs/libxfs/xfs_bmap_btree.c 	xfs_bmbt_rec_t	*r)
r                  83 fs/xfs/libxfs/xfs_bmap_btree.c 	return (xfs_filblks_t)(be64_to_cpu(r->l1) & xfs_mask64lo(21));
r                  91 fs/xfs/libxfs/xfs_bmap_btree.c 	xfs_bmbt_rec_t	*r)
r                  93 fs/xfs/libxfs/xfs_bmap_btree.c 	return ((xfs_fileoff_t)be64_to_cpu(r->l0) &
r                 102 fs/xfs/libxfs/xfs_bmap_btree.c 	struct xfs_bmbt_rec	*r,
r                 115 fs/xfs/libxfs/xfs_bmap_btree.c 		 ((xfs_bmbt_rec_base_t)s->br_startblock >> 43), &r->l0);
r                 119 fs/xfs/libxfs/xfs_bmap_btree.c 		  (xfs_bmbt_rec_base_t)xfs_mask64lo(21)), &r->l1);
r                  90 fs/xfs/libxfs/xfs_bmap_btree.h void xfs_bmbt_disk_set_all(struct xfs_bmbt_rec *r, struct xfs_bmbt_irec *s);
r                  91 fs/xfs/libxfs/xfs_bmap_btree.h extern xfs_filblks_t xfs_bmbt_disk_get_blockcount(xfs_bmbt_rec_t *r);
r                  92 fs/xfs/libxfs/xfs_bmap_btree.h extern xfs_fileoff_t xfs_bmbt_disk_get_startoff(xfs_bmbt_rec_t *r);
r                  93 fs/xfs/libxfs/xfs_bmap_btree.h extern void xfs_bmbt_disk_get_all(xfs_bmbt_rec_t *r, xfs_bmbt_irec_t *s);
r                 176 fs/xfs/libxfs/xfs_btree.h 	struct xfs_rmap_irec		r;
r                 141 fs/xfs/libxfs/xfs_dir2.h extern int xfs_dir2_isblock(struct xfs_da_args *args, int *r);
r                 142 fs/xfs/libxfs/xfs_dir2.h extern int xfs_dir2_isleaf(struct xfs_da_args *args, int *r);
r                  39 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_startblock = bno;
r                  40 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_blockcount = len;
r                  41 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_owner = owner;
r                  42 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_offset = offset;
r                  43 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_flags = flags;
r                  61 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_startblock = bno;
r                  62 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_blockcount = len;
r                  63 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_owner = owner;
r                  64 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_offset = offset;
r                  65 fs/xfs/libxfs/xfs_rmap.c 	cur->bc_rec.r.rm_flags = flags;
r                 118 fs/xfs/libxfs/xfs_rmap.c 	rcur->bc_rec.r.rm_startblock = agbno;
r                 119 fs/xfs/libxfs/xfs_rmap.c 	rcur->bc_rec.r.rm_blockcount = len;
r                 120 fs/xfs/libxfs/xfs_rmap.c 	rcur->bc_rec.r.rm_owner = owner;
r                 121 fs/xfs/libxfs/xfs_rmap.c 	rcur->bc_rec.r.rm_offset = offset;
r                 122 fs/xfs/libxfs/xfs_rmap.c 	rcur->bc_rec.r.rm_flags = flags;
r                 613 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_startblock = bno + len;
r                 614 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_blockcount = orig_len - len -
r                 616 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_owner = ltrec.rm_owner;
r                 618 fs/xfs/libxfs/xfs_rmap.c 			cur->bc_rec.r.rm_offset = 0;
r                 620 fs/xfs/libxfs/xfs_rmap.c 			cur->bc_rec.r.rm_offset = offset + len;
r                 621 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_flags = flags;
r                 623 fs/xfs/libxfs/xfs_rmap.c 				cur->bc_rec.r.rm_startblock,
r                 624 fs/xfs/libxfs/xfs_rmap.c 				cur->bc_rec.r.rm_blockcount,
r                 625 fs/xfs/libxfs/xfs_rmap.c 				cur->bc_rec.r.rm_owner,
r                 626 fs/xfs/libxfs/xfs_rmap.c 				cur->bc_rec.r.rm_offset,
r                 627 fs/xfs/libxfs/xfs_rmap.c 				cur->bc_rec.r.rm_flags);
r                 858 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_startblock = bno;
r                 859 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_blockcount = len;
r                 860 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_owner = owner;
r                 861 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_offset = offset;
r                 862 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_flags = flags;
r                 913 fs/xfs/libxfs/xfs_rmap.c #define LEFT		r[0]
r                 914 fs/xfs/libxfs/xfs_rmap.c #define RIGHT		r[1]
r                 915 fs/xfs/libxfs/xfs_rmap.c #define PREV		r[2]
r                 916 fs/xfs/libxfs/xfs_rmap.c #define NEW		r[3]
r                 931 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_rmap_irec		r[4];	/* neighbor extent entries */
r                1211 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r = NEW;
r                1262 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r = NEW;
r                1290 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r = NEW;
r                1310 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_flags &= ~XFS_RMAP_UNWRITTEN;
r                1311 fs/xfs/libxfs/xfs_rmap.c 		cur->bc_rec.r.rm_flags |= newext;
r                1356 fs/xfs/libxfs/xfs_rmap.c 	struct xfs_rmap_irec		r[4];	/* neighbor extent entries */
r                2105 fs/xfs/libxfs/xfs_rmap.c 	low_brec.r = *low_rec;
r                2106 fs/xfs/libxfs/xfs_rmap.c 	high_brec.r = *high_rec;
r                2437 fs/xfs/libxfs/xfs_rmap.c 	low.r.rm_startblock = bno;
r                2439 fs/xfs/libxfs/xfs_rmap.c 	high.r.rm_startblock = bno + len - 1;
r                  88 fs/xfs/libxfs/xfs_rmap.h 	unsigned int			r = 0;
r                  93 fs/xfs/libxfs/xfs_rmap.h 		r |= XFS_RMAP_ATTR_FORK;
r                  95 fs/xfs/libxfs/xfs_rmap.h 		r |= XFS_RMAP_BMBT_BLOCK;
r                  96 fs/xfs/libxfs/xfs_rmap.h 	*flags = r;
r                 206 fs/xfs/libxfs/xfs_rmap_btree.c 	rec->rmap.rm_startblock = cpu_to_be32(cur->bc_rec.r.rm_startblock);
r                 207 fs/xfs/libxfs/xfs_rmap_btree.c 	rec->rmap.rm_blockcount = cpu_to_be32(cur->bc_rec.r.rm_blockcount);
r                 208 fs/xfs/libxfs/xfs_rmap_btree.c 	rec->rmap.rm_owner = cpu_to_be64(cur->bc_rec.r.rm_owner);
r                 210 fs/xfs/libxfs/xfs_rmap_btree.c 			xfs_rmap_irec_offset_pack(&cur->bc_rec.r));
r                 230 fs/xfs/libxfs/xfs_rmap_btree.c 	struct xfs_rmap_irec	*rec = &cur->bc_rec.r;
r                 436 fs/xfs/xfs_rtalloc.c 	xfs_rtblock_t	r;		/* result block */
r                 449 fs/xfs/xfs_rtalloc.c 		rbpp, rsb, prod, &r);
r                 456 fs/xfs/xfs_rtalloc.c 	if (r != NULLRTBLOCK) {
r                 457 fs/xfs/xfs_rtalloc.c 		*rtblock = r;
r                 492 fs/xfs/xfs_rtalloc.c 					rsb, prod, &r);
r                 499 fs/xfs/xfs_rtalloc.c 				if (r != NULLRTBLOCK) {
r                 500 fs/xfs/xfs_rtalloc.c 					*rtblock = r;
r                 537 fs/xfs/xfs_rtalloc.c 						len, &n, rbpp, rsb, prod, &r);
r                 544 fs/xfs/xfs_rtalloc.c 					if (r != NULLRTBLOCK) {
r                 545 fs/xfs/xfs_rtalloc.c 						*rtblock = r;
r                 559 fs/xfs/xfs_rtalloc.c 					rsb, prod, &r);
r                 566 fs/xfs/xfs_rtalloc.c 				if (r != NULLRTBLOCK) {
r                 567 fs/xfs/xfs_rtalloc.c 					*rtblock = r;
r                 627 fs/xfs/xfs_rtalloc.c 	xfs_rtblock_t	r;		/* result block number */
r                 662 fs/xfs/xfs_rtalloc.c 				maxlen, len, &n, rbpp, rsb, prod, &r);
r                 669 fs/xfs/xfs_rtalloc.c 			if (r != NULLRTBLOCK) {
r                 670 fs/xfs/xfs_rtalloc.c 				*rtblock = r;
r                 725 fs/xfs/xfs_rtalloc.c 					len, &n, rbpp, rsb, prod, &r);
r                 732 fs/xfs/xfs_rtalloc.c 			if (r != NULLRTBLOCK) {
r                 733 fs/xfs/xfs_rtalloc.c 				*rtblock = r;
r                1123 fs/xfs/xfs_rtalloc.c 	xfs_rtblock_t	r;		/* result allocated block */
r                1150 fs/xfs/xfs_rtalloc.c 				&sumbp,	&sb, prod, &r);
r                1153 fs/xfs/xfs_rtalloc.c 				len, &sumbp, &sb, prod, &r);
r                1162 fs/xfs/xfs_rtalloc.c 	if (r != NULLRTBLOCK) {
r                1175 fs/xfs/xfs_rtalloc.c 	*rtblock = r;
r                 146 fs/xfs/xfs_rtalloc.h # define xfs_verify_rtbno(m, r)			(false)
r                 232 fs/xfs/xfs_trace.h 		struct xfs_bmbt_irec	r;
r                 235 fs/xfs/xfs_trace.h 		xfs_iext_get_extent(ifp, cur, &r);
r                 240 fs/xfs/xfs_trace.h 		__entry->startoff = r.br_startoff;
r                 241 fs/xfs/xfs_trace.h 		__entry->startblock = r.br_startblock;
r                 242 fs/xfs/xfs_trace.h 		__entry->blockcount = r.br_blockcount;
r                 243 fs/xfs/xfs_trace.h 		__entry->state = r.br_state;
r                2591 fs/xfs/xfs_trace.h 		struct xfs_ag_resv	*r = xfs_perag_resv(pag, resv);
r                2598 fs/xfs/xfs_trace.h 		__entry->reserved = r ? r->ar_reserved : 0;
r                2599 fs/xfs/xfs_trace.h 		__entry->asked = r ? r->ar_asked : 0;
r                  15 include/asm-generic/bitops/ffs.h 	int r = 1;
r                  21 include/asm-generic/bitops/ffs.h 		r += 16;
r                  25 include/asm-generic/bitops/ffs.h 		r += 8;
r                  29 include/asm-generic/bitops/ffs.h 		r += 4;
r                  33 include/asm-generic/bitops/ffs.h 		r += 2;
r                  37 include/asm-generic/bitops/ffs.h 		r += 1;
r                  39 include/asm-generic/bitops/ffs.h 	return r;
r                  15 include/asm-generic/bitops/fls.h 	int r = 32;
r                  21 include/asm-generic/bitops/fls.h 		r -= 16;
r                  25 include/asm-generic/bitops/fls.h 		r -= 8;
r                  29 include/asm-generic/bitops/fls.h 		r -= 4;
r                  33 include/asm-generic/bitops/fls.h 		r -= 2;
r                  37 include/asm-generic/bitops/fls.h 		r -= 1;
r                  39 include/asm-generic/bitops/fls.h 	return r;
r                  67 include/asm-generic/pgtable.h 	int r = 1;
r                  69 include/asm-generic/pgtable.h 		r = 0;
r                  72 include/asm-generic/pgtable.h 	return r;
r                  83 include/asm-generic/pgtable.h 	int r = 1;
r                  85 include/asm-generic/pgtable.h 		r = 0;
r                  88 include/asm-generic/pgtable.h 	return r;
r                  64 include/crypto/b128ops.h static inline void u128_xor(u128 *r, const u128 *p, const u128 *q)
r                  66 include/crypto/b128ops.h 	r->a = p->a ^ q->a;
r                  67 include/crypto/b128ops.h 	r->b = p->b ^ q->b;
r                  70 include/crypto/b128ops.h static inline void be128_xor(be128 *r, const be128 *p, const be128 *q)
r                  72 include/crypto/b128ops.h 	u128_xor((u128 *)r, (u128 *)p, (u128 *)q);
r                  75 include/crypto/b128ops.h static inline void le128_xor(le128 *r, const le128 *p, const le128 *q)
r                  77 include/crypto/b128ops.h 	u128_xor((u128 *)r, (u128 *)p, (u128 *)q);
r                 182 include/crypto/gf128mul.h static inline void gf128mul_x_lle(be128 *r, const be128 *x)
r                 191 include/crypto/gf128mul.h 	r->b = cpu_to_be64((b >> 1) | (a << 63));
r                 192 include/crypto/gf128mul.h 	r->a = cpu_to_be64((a >> 1) ^ _tt);
r                 195 include/crypto/gf128mul.h static inline void gf128mul_x_bbe(be128 *r, const be128 *x)
r                 203 include/crypto/gf128mul.h 	r->a = cpu_to_be64((a << 1) | (b >> 63));
r                 204 include/crypto/gf128mul.h 	r->b = cpu_to_be64((b << 1) ^ _tt);
r                 208 include/crypto/gf128mul.h static inline void gf128mul_x_ble(le128 *r, const le128 *x)
r                 216 include/crypto/gf128mul.h 	r->a = cpu_to_le64((a << 1) | (b >> 63));
r                 217 include/crypto/gf128mul.h 	r->b = cpu_to_le64((b << 1) ^ _tt);
r                 230 include/crypto/gf128mul.h void gf128mul_x8_ble(le128 *r, const le128 *x);
r                  17 include/crypto/poly1305.h 	u32 r[5];	/* key, base 2^26 */
r                  26 include/crypto/poly1305.h 	struct poly1305_key r;
r                 481 include/drm/drm_crtc.h 	int (*gamma_set)(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,
r                  53 include/drm/drm_rect.h #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1
r                  66 include/drm/drm_rect.h #define DRM_RECT_FP_ARG(r) \
r                  67 include/drm/drm_rect.h 		drm_rect_width(r) >> 16, ((drm_rect_width(r) & 0xffff) * 15625) >> 10, \
r                  68 include/drm/drm_rect.h 		drm_rect_height(r) >> 16, ((drm_rect_height(r) & 0xffff) * 15625) >> 10, \
r                  69 include/drm/drm_rect.h 		(r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \
r                  70 include/drm/drm_rect.h 		(r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10
r                  84 include/drm/drm_rect.h static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh)
r                  86 include/drm/drm_rect.h 	r->x1 -= dw >> 1;
r                  87 include/drm/drm_rect.h 	r->y1 -= dh >> 1;
r                  88 include/drm/drm_rect.h 	r->x2 += (dw + 1) >> 1;
r                  89 include/drm/drm_rect.h 	r->y2 += (dh + 1) >> 1;
r                 101 include/drm/drm_rect.h static inline void drm_rect_translate(struct drm_rect *r, int dx, int dy)
r                 103 include/drm/drm_rect.h 	r->x1 += dx;
r                 104 include/drm/drm_rect.h 	r->y1 += dy;
r                 105 include/drm/drm_rect.h 	r->x2 += dx;
r                 106 include/drm/drm_rect.h 	r->y2 += dy;
r                 117 include/drm/drm_rect.h static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert)
r                 119 include/drm/drm_rect.h 	r->x1 /= horz;
r                 120 include/drm/drm_rect.h 	r->y1 /= vert;
r                 121 include/drm/drm_rect.h 	r->x2 /= horz;
r                 122 include/drm/drm_rect.h 	r->y2 /= vert;
r                 132 include/drm/drm_rect.h static inline int drm_rect_width(const struct drm_rect *r)
r                 134 include/drm/drm_rect.h 	return r->x2 - r->x1;
r                 144 include/drm/drm_rect.h static inline int drm_rect_height(const struct drm_rect *r)
r                 146 include/drm/drm_rect.h 	return r->y2 - r->y1;
r                 156 include/drm/drm_rect.h static inline bool drm_rect_visible(const struct drm_rect *r)
r                 158 include/drm/drm_rect.h 	return drm_rect_width(r) > 0 && drm_rect_height(r) > 0;
r                 176 include/drm/drm_rect.h bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
r                 186 include/drm/drm_rect.h 			  const struct drm_rect *r, bool fixed_point);
r                 187 include/drm/drm_rect.h void drm_rect_rotate(struct drm_rect *r,
r                 190 include/drm/drm_rect.h void drm_rect_rotate_inv(struct drm_rect *r,
r                 917 include/linux/atomic-fallback.h 	int r, o = *old;
r                 918 include/linux/atomic-fallback.h 	r = atomic_cmpxchg(v, o, new);
r                 919 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                 920 include/linux/atomic-fallback.h 		*old = r;
r                 921 include/linux/atomic-fallback.h 	return likely(r == o);
r                 930 include/linux/atomic-fallback.h 	int r, o = *old;
r                 931 include/linux/atomic-fallback.h 	r = atomic_cmpxchg_acquire(v, o, new);
r                 932 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                 933 include/linux/atomic-fallback.h 		*old = r;
r                 934 include/linux/atomic-fallback.h 	return likely(r == o);
r                 943 include/linux/atomic-fallback.h 	int r, o = *old;
r                 944 include/linux/atomic-fallback.h 	r = atomic_cmpxchg_release(v, o, new);
r                 945 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                 946 include/linux/atomic-fallback.h 		*old = r;
r                 947 include/linux/atomic-fallback.h 	return likely(r == o);
r                 956 include/linux/atomic-fallback.h 	int r, o = *old;
r                 957 include/linux/atomic-fallback.h 	r = atomic_cmpxchg_relaxed(v, o, new);
r                 958 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                 959 include/linux/atomic-fallback.h 		*old = r;
r                 960 include/linux/atomic-fallback.h 	return likely(r == o);
r                2027 include/linux/atomic-fallback.h 	s64 r, o = *old;
r                2028 include/linux/atomic-fallback.h 	r = atomic64_cmpxchg(v, o, new);
r                2029 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                2030 include/linux/atomic-fallback.h 		*old = r;
r                2031 include/linux/atomic-fallback.h 	return likely(r == o);
r                2040 include/linux/atomic-fallback.h 	s64 r, o = *old;
r                2041 include/linux/atomic-fallback.h 	r = atomic64_cmpxchg_acquire(v, o, new);
r                2042 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                2043 include/linux/atomic-fallback.h 		*old = r;
r                2044 include/linux/atomic-fallback.h 	return likely(r == o);
r                2053 include/linux/atomic-fallback.h 	s64 r, o = *old;
r                2054 include/linux/atomic-fallback.h 	r = atomic64_cmpxchg_release(v, o, new);
r                2055 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                2056 include/linux/atomic-fallback.h 		*old = r;
r                2057 include/linux/atomic-fallback.h 	return likely(r == o);
r                2066 include/linux/atomic-fallback.h 	s64 r, o = *old;
r                2067 include/linux/atomic-fallback.h 	r = atomic64_cmpxchg_relaxed(v, o, new);
r                2068 include/linux/atomic-fallback.h 	if (unlikely(r != o))
r                2069 include/linux/atomic-fallback.h 		*old = r;
r                2070 include/linux/atomic-fallback.h 	return likely(r == o);
r                1671 include/linux/blkdev.h 					   struct request *r,
r                  34 include/linux/ccp.h #define	CCP_VERSION(v, r)	((unsigned int)((v << CCP_VSIZE) \
r                  35 include/linux/ccp.h 					       | (r & CCP_VMASK)))
r                 318 include/linux/crush/crush.h extern void crush_destroy_rule(struct crush_rule *r);
r                 615 include/linux/dma-mapping.h #define dma_map_single(d, a, s, r) dma_map_single_attrs(d, a, s, r, 0)
r                 616 include/linux/dma-mapping.h #define dma_unmap_single(d, a, s, r) dma_unmap_single_attrs(d, a, s, r, 0)
r                 617 include/linux/dma-mapping.h #define dma_map_sg(d, s, n, r) dma_map_sg_attrs(d, s, n, r, 0)
r                 618 include/linux/dma-mapping.h #define dma_unmap_sg(d, s, n, r) dma_unmap_sg_attrs(d, s, n, r, 0)
r                 619 include/linux/dma-mapping.h #define dma_map_page(d, p, o, s, r) dma_map_page_attrs(d, p, o, s, r, 0)
r                 620 include/linux/dma-mapping.h #define dma_unmap_page(d, a, s, r) dma_unmap_page_attrs(d, a, s, r, 0)
r                   9 include/linux/iio/kfifo_buf.h void iio_kfifo_free(struct iio_buffer *r);
r                  12 include/linux/iio/kfifo_buf.h void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r);
r                  13 include/linux/inet_diag.h 				const struct inet_diag_req_v2 *r,
r                  21 include/linux/inet_diag.h 					  struct inet_diag_msg *r,
r                  46 include/linux/inet_diag.h 			 const struct inet_diag_req_v2 *r,
r                  58 include/linux/inet_diag.h void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk);
r                  72 include/linux/inet_diag.h 			     struct inet_diag_msg *r, int ext,
r                 125 include/linux/irqchip/arm-gic-v3.h #define GICR_TYPER_CPU_NUMBER(r)	(((r) >> 8) & 0xffff)
r                 129 include/linux/irqchip/arm-gic-v3.h #define GICR_TYPER_NR_PPIS(r)						\
r                 131 include/linux/irqchip/arm-gic-v3.h 		unsigned int __ppinum = ((r) >> 27) & 0x1f;		\
r                 337 include/linux/irqchip/arm-gic-v3.h #define GITS_TYPER_ITT_ENTRY_SIZE(r)	((((r) >> GITS_TYPER_ITT_ENTRY_SIZE_SHIFT) & 0xf) + 1)
r                 340 include/linux/irqchip/arm-gic-v3.h #define GITS_TYPER_DEVBITS(r)		((((r) >> GITS_TYPER_DEVBITS_SHIFT) & 0x1f) + 1)
r                 343 include/linux/irqchip/arm-gic-v3.h #define GITS_TYPER_HCC(r)		(((r) >> GITS_TYPER_HCC_SHIFT) & 0xff)
r                 348 include/linux/irqchip/arm-gic-v3.h #define GITS_IIDR_REV(r)		(((r) >> GITS_IIDR_REV_SHIFT) & 0xf)
r                 402 include/linux/irqchip/arm-gic-v3.h #define GITS_BASER_TYPE(r)		(((r) >> GITS_BASER_TYPE_SHIFT) & 7)
r                 404 include/linux/irqchip/arm-gic-v3.h #define GITS_BASER_ENTRY_SIZE(r)	((((r) >> GITS_BASER_ENTRY_SIZE_SHIFT) & 0x1f) + 1)
r                 421 include/linux/irqchip/arm-gic-v3.h #define GITS_BASER_NR_PAGES(r)		(((r) & 0xff) + 1)
r                 105 include/linux/leds-lp3952.h 			u16 r:3;
r                 441 include/linux/lightnvm.h 						  struct ppa_addr r)
r                 449 include/linux/lightnvm.h 		l.ppa = ((u64)r.g.ch) << ppaf->ch_offset;
r                 450 include/linux/lightnvm.h 		l.ppa |= ((u64)r.g.lun) << ppaf->lun_offset;
r                 451 include/linux/lightnvm.h 		l.ppa |= ((u64)r.g.blk) << ppaf->blk_offset;
r                 452 include/linux/lightnvm.h 		l.ppa |= ((u64)r.g.pg) << ppaf->pg_offset;
r                 453 include/linux/lightnvm.h 		l.ppa |= ((u64)r.g.pl) << ppaf->pln_offset;
r                 454 include/linux/lightnvm.h 		l.ppa |= ((u64)r.g.sec) << ppaf->sec_offset;
r                 458 include/linux/lightnvm.h 		l.ppa = ((u64)r.m.grp) << lbaf->ch_offset;
r                 459 include/linux/lightnvm.h 		l.ppa |= ((u64)r.m.pu) << lbaf->lun_offset;
r                 460 include/linux/lightnvm.h 		l.ppa |= ((u64)r.m.chk) << lbaf->chk_offset;
r                 461 include/linux/lightnvm.h 		l.ppa |= ((u64)r.m.sec) << lbaf->sec_offset;
r                 468 include/linux/lightnvm.h 						  struct ppa_addr r)
r                 478 include/linux/lightnvm.h 		l.g.ch = (r.ppa & ppaf->ch_mask) >> ppaf->ch_offset;
r                 479 include/linux/lightnvm.h 		l.g.lun = (r.ppa & ppaf->lun_mask) >> ppaf->lun_offset;
r                 480 include/linux/lightnvm.h 		l.g.blk = (r.ppa & ppaf->blk_mask) >> ppaf->blk_offset;
r                 481 include/linux/lightnvm.h 		l.g.pg = (r.ppa & ppaf->pg_mask) >> ppaf->pg_offset;
r                 482 include/linux/lightnvm.h 		l.g.pl = (r.ppa & ppaf->pln_mask) >> ppaf->pln_offset;
r                 483 include/linux/lightnvm.h 		l.g.sec = (r.ppa & ppaf->sec_mask) >> ppaf->sec_offset;
r                 487 include/linux/lightnvm.h 		l.m.grp = (r.ppa & lbaf->ch_mask) >> lbaf->ch_offset;
r                 488 include/linux/lightnvm.h 		l.m.pu = (r.ppa & lbaf->lun_mask) >> lbaf->lun_offset;
r                 489 include/linux/lightnvm.h 		l.m.chk = (r.ppa & lbaf->chk_mask) >> lbaf->chk_offset;
r                 490 include/linux/lightnvm.h 		l.m.sec = (r.ppa & lbaf->sec_mask) >> lbaf->sec_offset;
r                 366 include/linux/lockdep.h #define lockdep_is_held_type(lock, r)	lock_is_held_type(&(lock)->dep_map, (r))
r                 430 include/linux/lockdep.h # define lock_acquire(l, s, t, r, c, n, i)	do { } while (0)
r                 476 include/linux/lockdep.h #define lockdep_is_held_type(l, r)		(1)
r                  37 include/linux/mailbox_client.h 	void (*tx_done)(struct mbox_client *cl, void *mssg, int r);
r                  45 include/linux/mailbox_client.h void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */
r                 132 include/linux/mailbox_controller.h void mbox_chan_txdone(struct mbox_chan *chan, int r); /* atomic */
r                 318 include/linux/memblock.h static inline void memblock_set_region_node(struct memblock_region *r, int nid)
r                 320 include/linux/memblock.h 	r->nid = nid;
r                 323 include/linux/memblock.h static inline int memblock_get_region_node(const struct memblock_region *r)
r                 325 include/linux/memblock.h 	return r->nid;
r                 328 include/linux/memblock.h static inline void memblock_set_region_node(struct memblock_region *r, int nid)
r                 332 include/linux/memblock.h static inline int memblock_get_region_node(const struct memblock_region *r)
r                  20 include/linux/mfd/motorola-cpcap.h #define CPCAP_REVISION_MAJOR(r)	(((r) >> 4) + 1)
r                  21 include/linux/mfd/motorola-cpcap.h #define CPCAP_REVISION_MINOR(r)	((r) & 0xf)
r                  15 include/linux/mfd/tmio.h #define tmio_ioread16_rep(r, b, l) readsw(r, b, l)
r                  21 include/linux/mfd/tmio.h #define tmio_iowrite16_rep(r, b, l) writesw(r, b, l)
r                 605 include/linux/mfd/twl.h #define PERSISTENT_KEY(r, c)	KEY((r), (c), KEY_RESERVED)
r                9580 include/linux/mlx5/mlx5_ifc.h 	u8         r[0x1];
r                9594 include/linux/mlx5/mlx5_ifc.h 	u8         r[0x1];
r                 290 include/linux/mmu_notifier.h extern int __mmu_notifier_invalidate_range_start(struct mmu_notifier_range *r);
r                 291 include/linux/mmu_notifier.h extern void __mmu_notifier_invalidate_range_end(struct mmu_notifier_range *r,
r                 614 include/linux/mmu_notifier.h #define mmu_notifier_range_update_to_read_only(r) false
r                 272 include/linux/mtd/map.h 	map_word r;							\
r                 275 include/linux/mtd/map.h 		r.x[i] = (val1).x[i] & (val2).x[i];			\
r                 276 include/linux/mtd/map.h 	r;								\
r                 281 include/linux/mtd/map.h 	map_word r;							\
r                 284 include/linux/mtd/map.h 		r.x[i] = (val1).x[i] & ~(val2).x[i];			\
r                 285 include/linux/mtd/map.h 	r;								\
r                 290 include/linux/mtd/map.h 	map_word r;							\
r                 293 include/linux/mtd/map.h 		r.x[i] = (val1).x[i] | (val2).x[i];			\
r                 294 include/linux/mtd/map.h 	r;								\
r                 323 include/linux/mtd/map.h 	map_word r;
r                 326 include/linux/mtd/map.h 		r.x[0] = *(unsigned char *)ptr;
r                 328 include/linux/mtd/map.h 		r.x[0] = get_unaligned((uint16_t *)ptr);
r                 330 include/linux/mtd/map.h 		r.x[0] = get_unaligned((uint32_t *)ptr);
r                 333 include/linux/mtd/map.h 		r.x[0] = get_unaligned((uint64_t *)ptr);
r                 336 include/linux/mtd/map.h 		memcpy(r.x, ptr, map->bankwidth);
r                 340 include/linux/mtd/map.h 	return r;
r                 375 include/linux/mtd/map.h 	map_word r;
r                 381 include/linux/mtd/map.h 		r.x[0] = (1UL << bw) - 1;
r                 384 include/linux/mtd/map.h 			r.x[i] = ~0UL;
r                 386 include/linux/mtd/map.h 	return r;
r                 391 include/linux/mtd/map.h 	map_word r;
r                 394 include/linux/mtd/map.h 		r.x[0] = __raw_readb(map->virt + ofs);
r                 396 include/linux/mtd/map.h 		r.x[0] = __raw_readw(map->virt + ofs);
r                 398 include/linux/mtd/map.h 		r.x[0] = __raw_readl(map->virt + ofs);
r                 401 include/linux/mtd/map.h 		r.x[0] = __raw_readq(map->virt + ofs);
r                 404 include/linux/mtd/map.h 		memcpy_fromio(r.x, map->virt + ofs, map->bankwidth);
r                 408 include/linux/mtd/map.h 	return r;
r                 236 include/linux/of.h 	u64 r = 0;
r                 238 include/linux/of.h 		r = (r << 32) | be32_to_cpu(*cell);
r                 239 include/linux/of.h 	return r;
r                  35 include/linux/of_address.h 				  struct resource *r);
r                 121 include/linux/of_address.h 				  struct resource *r);
r                 125 include/linux/of_address.h 					 struct resource *r)
r                 140 include/linux/of_address.h 				      struct resource *r);
r                 146 include/linux/of_address.h 				             struct resource *r)
r                  40 include/linux/of_irq.h 			      struct resource *r);
r                1777 include/linux/platform_data/cros_ec_commands.h 	uint8_t r, g, b;
r                  29 include/linux/platform_data/leds-lp55xx.h 	const u8 *r;
r                  28 include/linux/platform_data/omapdss.h 	int (*set_min_bus_tput)(struct device *dev, unsigned long r);
r                  48 include/linux/ptr_ring.h static inline bool __ptr_ring_full(struct ptr_ring *r)
r                  50 include/linux/ptr_ring.h 	return r->queue[r->producer];
r                  53 include/linux/ptr_ring.h static inline bool ptr_ring_full(struct ptr_ring *r)
r                  57 include/linux/ptr_ring.h 	spin_lock(&r->producer_lock);
r                  58 include/linux/ptr_ring.h 	ret = __ptr_ring_full(r);
r                  59 include/linux/ptr_ring.h 	spin_unlock(&r->producer_lock);
r                  64 include/linux/ptr_ring.h static inline bool ptr_ring_full_irq(struct ptr_ring *r)
r                  68 include/linux/ptr_ring.h 	spin_lock_irq(&r->producer_lock);
r                  69 include/linux/ptr_ring.h 	ret = __ptr_ring_full(r);
r                  70 include/linux/ptr_ring.h 	spin_unlock_irq(&r->producer_lock);
r                  75 include/linux/ptr_ring.h static inline bool ptr_ring_full_any(struct ptr_ring *r)
r                  80 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->producer_lock, flags);
r                  81 include/linux/ptr_ring.h 	ret = __ptr_ring_full(r);
r                  82 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->producer_lock, flags);
r                  87 include/linux/ptr_ring.h static inline bool ptr_ring_full_bh(struct ptr_ring *r)
r                  91 include/linux/ptr_ring.h 	spin_lock_bh(&r->producer_lock);
r                  92 include/linux/ptr_ring.h 	ret = __ptr_ring_full(r);
r                  93 include/linux/ptr_ring.h 	spin_unlock_bh(&r->producer_lock);
r                 103 include/linux/ptr_ring.h static inline int __ptr_ring_produce(struct ptr_ring *r, void *ptr)
r                 105 include/linux/ptr_ring.h 	if (unlikely(!r->size) || r->queue[r->producer])
r                 112 include/linux/ptr_ring.h 	WRITE_ONCE(r->queue[r->producer++], ptr);
r                 113 include/linux/ptr_ring.h 	if (unlikely(r->producer >= r->size))
r                 114 include/linux/ptr_ring.h 		r->producer = 0;
r                 123 include/linux/ptr_ring.h static inline int ptr_ring_produce(struct ptr_ring *r, void *ptr)
r                 127 include/linux/ptr_ring.h 	spin_lock(&r->producer_lock);
r                 128 include/linux/ptr_ring.h 	ret = __ptr_ring_produce(r, ptr);
r                 129 include/linux/ptr_ring.h 	spin_unlock(&r->producer_lock);
r                 134 include/linux/ptr_ring.h static inline int ptr_ring_produce_irq(struct ptr_ring *r, void *ptr)
r                 138 include/linux/ptr_ring.h 	spin_lock_irq(&r->producer_lock);
r                 139 include/linux/ptr_ring.h 	ret = __ptr_ring_produce(r, ptr);
r                 140 include/linux/ptr_ring.h 	spin_unlock_irq(&r->producer_lock);
r                 145 include/linux/ptr_ring.h static inline int ptr_ring_produce_any(struct ptr_ring *r, void *ptr)
r                 150 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->producer_lock, flags);
r                 151 include/linux/ptr_ring.h 	ret = __ptr_ring_produce(r, ptr);
r                 152 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->producer_lock, flags);
r                 157 include/linux/ptr_ring.h static inline int ptr_ring_produce_bh(struct ptr_ring *r, void *ptr)
r                 161 include/linux/ptr_ring.h 	spin_lock_bh(&r->producer_lock);
r                 162 include/linux/ptr_ring.h 	ret = __ptr_ring_produce(r, ptr);
r                 163 include/linux/ptr_ring.h 	spin_unlock_bh(&r->producer_lock);
r                 168 include/linux/ptr_ring.h static inline void *__ptr_ring_peek(struct ptr_ring *r)
r                 170 include/linux/ptr_ring.h 	if (likely(r->size))
r                 171 include/linux/ptr_ring.h 		return READ_ONCE(r->queue[r->consumer_head]);
r                 193 include/linux/ptr_ring.h static inline bool __ptr_ring_empty(struct ptr_ring *r)
r                 195 include/linux/ptr_ring.h 	if (likely(r->size))
r                 196 include/linux/ptr_ring.h 		return !r->queue[READ_ONCE(r->consumer_head)];
r                 200 include/linux/ptr_ring.h static inline bool ptr_ring_empty(struct ptr_ring *r)
r                 204 include/linux/ptr_ring.h 	spin_lock(&r->consumer_lock);
r                 205 include/linux/ptr_ring.h 	ret = __ptr_ring_empty(r);
r                 206 include/linux/ptr_ring.h 	spin_unlock(&r->consumer_lock);
r                 211 include/linux/ptr_ring.h static inline bool ptr_ring_empty_irq(struct ptr_ring *r)
r                 215 include/linux/ptr_ring.h 	spin_lock_irq(&r->consumer_lock);
r                 216 include/linux/ptr_ring.h 	ret = __ptr_ring_empty(r);
r                 217 include/linux/ptr_ring.h 	spin_unlock_irq(&r->consumer_lock);
r                 222 include/linux/ptr_ring.h static inline bool ptr_ring_empty_any(struct ptr_ring *r)
r                 227 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->consumer_lock, flags);
r                 228 include/linux/ptr_ring.h 	ret = __ptr_ring_empty(r);
r                 229 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->consumer_lock, flags);
r                 234 include/linux/ptr_ring.h static inline bool ptr_ring_empty_bh(struct ptr_ring *r)
r                 238 include/linux/ptr_ring.h 	spin_lock_bh(&r->consumer_lock);
r                 239 include/linux/ptr_ring.h 	ret = __ptr_ring_empty(r);
r                 240 include/linux/ptr_ring.h 	spin_unlock_bh(&r->consumer_lock);
r                 246 include/linux/ptr_ring.h static inline void __ptr_ring_discard_one(struct ptr_ring *r)
r                 263 include/linux/ptr_ring.h 	int consumer_head = r->consumer_head;
r                 271 include/linux/ptr_ring.h 	if (unlikely(consumer_head - r->consumer_tail >= r->batch ||
r                 272 include/linux/ptr_ring.h 		     consumer_head >= r->size)) {
r                 278 include/linux/ptr_ring.h 		while (likely(head >= r->consumer_tail))
r                 279 include/linux/ptr_ring.h 			r->queue[head--] = NULL;
r                 280 include/linux/ptr_ring.h 		r->consumer_tail = consumer_head;
r                 282 include/linux/ptr_ring.h 	if (unlikely(consumer_head >= r->size)) {
r                 284 include/linux/ptr_ring.h 		r->consumer_tail = 0;
r                 287 include/linux/ptr_ring.h 	WRITE_ONCE(r->consumer_head, consumer_head);
r                 290 include/linux/ptr_ring.h static inline void *__ptr_ring_consume(struct ptr_ring *r)
r                 298 include/linux/ptr_ring.h 	ptr = __ptr_ring_peek(r);
r                 300 include/linux/ptr_ring.h 		__ptr_ring_discard_one(r);
r                 305 include/linux/ptr_ring.h static inline int __ptr_ring_consume_batched(struct ptr_ring *r,
r                 312 include/linux/ptr_ring.h 		ptr = __ptr_ring_consume(r);
r                 326 include/linux/ptr_ring.h static inline void *ptr_ring_consume(struct ptr_ring *r)
r                 330 include/linux/ptr_ring.h 	spin_lock(&r->consumer_lock);
r                 331 include/linux/ptr_ring.h 	ptr = __ptr_ring_consume(r);
r                 332 include/linux/ptr_ring.h 	spin_unlock(&r->consumer_lock);
r                 337 include/linux/ptr_ring.h static inline void *ptr_ring_consume_irq(struct ptr_ring *r)
r                 341 include/linux/ptr_ring.h 	spin_lock_irq(&r->consumer_lock);
r                 342 include/linux/ptr_ring.h 	ptr = __ptr_ring_consume(r);
r                 343 include/linux/ptr_ring.h 	spin_unlock_irq(&r->consumer_lock);
r                 348 include/linux/ptr_ring.h static inline void *ptr_ring_consume_any(struct ptr_ring *r)
r                 353 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->consumer_lock, flags);
r                 354 include/linux/ptr_ring.h 	ptr = __ptr_ring_consume(r);
r                 355 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->consumer_lock, flags);
r                 360 include/linux/ptr_ring.h static inline void *ptr_ring_consume_bh(struct ptr_ring *r)
r                 364 include/linux/ptr_ring.h 	spin_lock_bh(&r->consumer_lock);
r                 365 include/linux/ptr_ring.h 	ptr = __ptr_ring_consume(r);
r                 366 include/linux/ptr_ring.h 	spin_unlock_bh(&r->consumer_lock);
r                 371 include/linux/ptr_ring.h static inline int ptr_ring_consume_batched(struct ptr_ring *r,
r                 376 include/linux/ptr_ring.h 	spin_lock(&r->consumer_lock);
r                 377 include/linux/ptr_ring.h 	ret = __ptr_ring_consume_batched(r, array, n);
r                 378 include/linux/ptr_ring.h 	spin_unlock(&r->consumer_lock);
r                 383 include/linux/ptr_ring.h static inline int ptr_ring_consume_batched_irq(struct ptr_ring *r,
r                 388 include/linux/ptr_ring.h 	spin_lock_irq(&r->consumer_lock);
r                 389 include/linux/ptr_ring.h 	ret = __ptr_ring_consume_batched(r, array, n);
r                 390 include/linux/ptr_ring.h 	spin_unlock_irq(&r->consumer_lock);
r                 395 include/linux/ptr_ring.h static inline int ptr_ring_consume_batched_any(struct ptr_ring *r,
r                 401 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->consumer_lock, flags);
r                 402 include/linux/ptr_ring.h 	ret = __ptr_ring_consume_batched(r, array, n);
r                 403 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->consumer_lock, flags);
r                 408 include/linux/ptr_ring.h static inline int ptr_ring_consume_batched_bh(struct ptr_ring *r,
r                 413 include/linux/ptr_ring.h 	spin_lock_bh(&r->consumer_lock);
r                 414 include/linux/ptr_ring.h 	ret = __ptr_ring_consume_batched(r, array, n);
r                 415 include/linux/ptr_ring.h 	spin_unlock_bh(&r->consumer_lock);
r                 424 include/linux/ptr_ring.h #define __PTR_RING_PEEK_CALL(r, f) ((f)(__ptr_ring_peek(r)))
r                 426 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL(r, f) ({ \
r                 429 include/linux/ptr_ring.h 	spin_lock(&(r)->consumer_lock); \
r                 430 include/linux/ptr_ring.h 	__PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \
r                 431 include/linux/ptr_ring.h 	spin_unlock(&(r)->consumer_lock); \
r                 435 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_IRQ(r, f) ({ \
r                 438 include/linux/ptr_ring.h 	spin_lock_irq(&(r)->consumer_lock); \
r                 439 include/linux/ptr_ring.h 	__PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \
r                 440 include/linux/ptr_ring.h 	spin_unlock_irq(&(r)->consumer_lock); \
r                 444 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_BH(r, f) ({ \
r                 447 include/linux/ptr_ring.h 	spin_lock_bh(&(r)->consumer_lock); \
r                 448 include/linux/ptr_ring.h 	__PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \
r                 449 include/linux/ptr_ring.h 	spin_unlock_bh(&(r)->consumer_lock); \
r                 453 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_ANY(r, f) ({ \
r                 457 include/linux/ptr_ring.h 	spin_lock_irqsave(&(r)->consumer_lock, __PTR_RING_PEEK_CALL_f); \
r                 458 include/linux/ptr_ring.h 	__PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \
r                 459 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&(r)->consumer_lock, __PTR_RING_PEEK_CALL_f); \
r                 473 include/linux/ptr_ring.h static inline void __ptr_ring_set_size(struct ptr_ring *r, int size)
r                 475 include/linux/ptr_ring.h 	r->size = size;
r                 476 include/linux/ptr_ring.h 	r->batch = SMP_CACHE_BYTES * 2 / sizeof(*(r->queue));
r                 482 include/linux/ptr_ring.h 	if (r->batch > r->size / 2 || !r->batch)
r                 483 include/linux/ptr_ring.h 		r->batch = 1;
r                 486 include/linux/ptr_ring.h static inline int ptr_ring_init(struct ptr_ring *r, int size, gfp_t gfp)
r                 488 include/linux/ptr_ring.h 	r->queue = __ptr_ring_init_queue_alloc(size, gfp);
r                 489 include/linux/ptr_ring.h 	if (!r->queue)
r                 492 include/linux/ptr_ring.h 	__ptr_ring_set_size(r, size);
r                 493 include/linux/ptr_ring.h 	r->producer = r->consumer_head = r->consumer_tail = 0;
r                 494 include/linux/ptr_ring.h 	spin_lock_init(&r->producer_lock);
r                 495 include/linux/ptr_ring.h 	spin_lock_init(&r->consumer_lock);
r                 510 include/linux/ptr_ring.h static inline void ptr_ring_unconsume(struct ptr_ring *r, void **batch, int n,
r                 516 include/linux/ptr_ring.h 	spin_lock_irqsave(&r->consumer_lock, flags);
r                 517 include/linux/ptr_ring.h 	spin_lock(&r->producer_lock);
r                 519 include/linux/ptr_ring.h 	if (!r->size)
r                 526 include/linux/ptr_ring.h 	head = r->consumer_head - 1;
r                 527 include/linux/ptr_ring.h 	while (likely(head >= r->consumer_tail))
r                 528 include/linux/ptr_ring.h 		r->queue[head--] = NULL;
r                 529 include/linux/ptr_ring.h 	r->consumer_tail = r->consumer_head;
r                 536 include/linux/ptr_ring.h 		head = r->consumer_head - 1;
r                 538 include/linux/ptr_ring.h 			head = r->size - 1;
r                 539 include/linux/ptr_ring.h 		if (r->queue[head]) {
r                 543 include/linux/ptr_ring.h 		r->queue[head] = batch[--n];
r                 544 include/linux/ptr_ring.h 		r->consumer_tail = head;
r                 546 include/linux/ptr_ring.h 		WRITE_ONCE(r->consumer_head, head);
r                 553 include/linux/ptr_ring.h 	spin_unlock(&r->producer_lock);
r                 554 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&r->consumer_lock, flags);
r                 557 include/linux/ptr_ring.h static inline void **__ptr_ring_swap_queue(struct ptr_ring *r, void **queue,
r                 565 include/linux/ptr_ring.h 	while ((ptr = __ptr_ring_consume(r)))
r                 573 include/linux/ptr_ring.h 	__ptr_ring_set_size(r, size);
r                 574 include/linux/ptr_ring.h 	r->producer = producer;
r                 575 include/linux/ptr_ring.h 	r->consumer_head = 0;
r                 576 include/linux/ptr_ring.h 	r->consumer_tail = 0;
r                 577 include/linux/ptr_ring.h 	old = r->queue;
r                 578 include/linux/ptr_ring.h 	r->queue = queue;
r                 589 include/linux/ptr_ring.h static inline int ptr_ring_resize(struct ptr_ring *r, int size, gfp_t gfp,
r                 599 include/linux/ptr_ring.h 	spin_lock_irqsave(&(r)->consumer_lock, flags);
r                 600 include/linux/ptr_ring.h 	spin_lock(&(r)->producer_lock);
r                 602 include/linux/ptr_ring.h 	old = __ptr_ring_swap_queue(r, queue, size, gfp, destroy);
r                 604 include/linux/ptr_ring.h 	spin_unlock(&(r)->producer_lock);
r                 605 include/linux/ptr_ring.h 	spin_unlock_irqrestore(&(r)->consumer_lock, flags);
r                 663 include/linux/ptr_ring.h static inline void ptr_ring_cleanup(struct ptr_ring *r, void (*destroy)(void *))
r                 668 include/linux/ptr_ring.h 		while ((ptr = ptr_ring_consume(r)))
r                 670 include/linux/ptr_ring.h 	kvfree(r->queue);
r                  56 include/linux/raid_class.h raid_set_##attr(struct raid_template *r, struct device *dev, type value) {    \
r                  58 include/linux/raid_class.h 		attribute_container_find_class_device(&r->raid_attrs.ac, dev);\
r                  65 include/linux/raid_class.h raid_get_##attr(struct raid_template *r, struct device *dev) {		      \
r                  67 include/linux/raid_class.h 		attribute_container_find_class_device(&r->raid_attrs.ac, dev);\
r                  35 include/linux/rbtree.h #define rb_parent(r)   ((struct rb_node *)((r)->__rb_parent_color & ~3))
r                  30 include/linux/refcount.h static inline void refcount_set(refcount_t *r, unsigned int n)
r                  32 include/linux/refcount.h 	atomic_set(&r->refs, n);
r                  41 include/linux/refcount.h static inline unsigned int refcount_read(const refcount_t *r)
r                  43 include/linux/refcount.h 	return atomic_read(&r->refs);
r                  46 include/linux/refcount.h extern __must_check bool refcount_add_not_zero_checked(unsigned int i, refcount_t *r);
r                  47 include/linux/refcount.h extern void refcount_add_checked(unsigned int i, refcount_t *r);
r                  49 include/linux/refcount.h extern __must_check bool refcount_inc_not_zero_checked(refcount_t *r);
r                  50 include/linux/refcount.h extern void refcount_inc_checked(refcount_t *r);
r                  52 include/linux/refcount.h extern __must_check bool refcount_sub_and_test_checked(unsigned int i, refcount_t *r);
r                  54 include/linux/refcount.h extern __must_check bool refcount_dec_and_test_checked(refcount_t *r);
r                  55 include/linux/refcount.h extern void refcount_dec_checked(refcount_t *r);
r                  74 include/linux/refcount.h static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)
r                  76 include/linux/refcount.h 	return atomic_add_unless(&r->refs, i, 0);
r                  79 include/linux/refcount.h static inline void refcount_add(unsigned int i, refcount_t *r)
r                  81 include/linux/refcount.h 	atomic_add(i, &r->refs);
r                  84 include/linux/refcount.h static inline __must_check bool refcount_inc_not_zero(refcount_t *r)
r                  86 include/linux/refcount.h 	return atomic_add_unless(&r->refs, 1, 0);
r                  89 include/linux/refcount.h static inline void refcount_inc(refcount_t *r)
r                  91 include/linux/refcount.h 	atomic_inc(&r->refs);
r                  94 include/linux/refcount.h static inline __must_check bool refcount_sub_and_test(unsigned int i, refcount_t *r)
r                  96 include/linux/refcount.h 	return atomic_sub_and_test(i, &r->refs);
r                  99 include/linux/refcount.h static inline __must_check bool refcount_dec_and_test(refcount_t *r)
r                 101 include/linux/refcount.h 	return atomic_dec_and_test(&r->refs);
r                 104 include/linux/refcount.h static inline void refcount_dec(refcount_t *r)
r                 106 include/linux/refcount.h 	atomic_dec(&r->refs);
r                 111 include/linux/refcount.h extern __must_check bool refcount_dec_if_one(refcount_t *r);
r                 112 include/linux/refcount.h extern __must_check bool refcount_dec_not_one(refcount_t *r);
r                 113 include/linux/refcount.h extern __must_check bool refcount_dec_and_mutex_lock(refcount_t *r, struct mutex *lock);
r                 114 include/linux/refcount.h extern __must_check bool refcount_dec_and_lock(refcount_t *r, spinlock_t *lock);
r                 115 include/linux/refcount.h extern __must_check bool refcount_dec_and_lock_irqsave(refcount_t *r,
r                 204 include/linux/rtc.h void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r),
r                  38 include/linux/rtnetlink.h extern bool refcount_dec_and_rtnl_lock(refcount_t *r);
r                 122 include/linux/signal.h static inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \
r                 130 include/linux/signal.h 		r->sig[3] = op(a3, b3);					\
r                 131 include/linux/signal.h 		r->sig[2] = op(a2, b2);					\
r                 135 include/linux/signal.h 		r->sig[1] = op(a1, b1);					\
r                 139 include/linux/signal.h 		r->sig[0] = op(a0, b0);					\
r                 118 include/linux/svga.h int svga_compute_pll(const struct svga_pll *pll, u32 f_wanted, u16 *m, u16 *n, u16 *r, int node);
r                 330 include/linux/usb.h #define	ref_to_usb_interface_cache(r) \
r                 331 include/linux/usb.h 		container_of(r, struct usb_interface_cache, ref)
r                 135 include/linux/vringh.h 					 u64 addr, struct vringh_range *r),
r                 117 include/math-emu/double.h #define FP_CMP_D(r,X,Y,un)	_FP_CMP(D,2,r,X,Y,un)
r                 118 include/math-emu/double.h #define FP_CMP_EQ_D(r,X,Y)	_FP_CMP_EQ(D,2,r,X,Y)
r                 120 include/math-emu/double.h #define FP_TO_INT_D(r,X,rsz,rsg)	_FP_TO_INT(D,2,r,X,rsz,rsg)
r                 121 include/math-emu/double.h #define FP_TO_INT_ROUND_D(r,X,rsz,rsg)	_FP_TO_INT_ROUND(D,2,r,X,rsz,rsg)
r                 122 include/math-emu/double.h #define FP_FROM_INT_D(X,r,rs,rt)	_FP_FROM_INT(D,2,X,r,rs,rt)
r                 192 include/math-emu/double.h #define FP_CMP_D(r,X,Y,un)	_FP_CMP(D,1,r,X,Y,un)
r                 193 include/math-emu/double.h #define FP_CMP_EQ_D(r,X,Y)	_FP_CMP_EQ(D,1,r,X,Y)
r                 195 include/math-emu/double.h #define FP_TO_INT_D(r,X,rsz,rsg)	_FP_TO_INT(D,1,r,X,rsz,rsg)
r                 196 include/math-emu/double.h #define FP_TO_INT_ROUND_D(r,X,rsz,rsg)	_FP_TO_INT_ROUND(D,1,r,X,rsz,rsg)
r                 197 include/math-emu/double.h #define FP_FROM_INT_D(X,r,rs,rt)	_FP_FROM_INT(D,1,X,r,rs,rt)
r                 280 include/math-emu/op-1.h #define _FP_FRAC_ASSEMBLE_1(r, X, rsize)	(r = X##_f)
r                 281 include/math-emu/op-1.h #define _FP_FRAC_DISASSEMBLE_1(X, r, rsize)	(X##_f = r)
r                 569 include/math-emu/op-2.h #define _FP_FRAC_ASSEMBLE_2(r, X, rsize)	\
r                 571 include/math-emu/op-2.h 		? ({ (r) = X##_f0; })		\
r                 573 include/math-emu/op-2.h 		     (r) = X##_f1;		\
r                 574 include/math-emu/op-2.h 		     (r) <<= _FP_W_TYPE_SIZE;	\
r                 575 include/math-emu/op-2.h 		     (r) += X##_f0;		\
r                 578 include/math-emu/op-2.h #define _FP_FRAC_DISASSEMBLE_2(X, r, rsize)				\
r                 580 include/math-emu/op-2.h     X##_f0 = r;								\
r                 581 include/math-emu/op-2.h     X##_f1 = (rsize <= _FP_W_TYPE_SIZE ? 0 : r >> _FP_W_TYPE_SIZE);	\
r                 640 include/math-emu/op-4.h #define _FP_FRAC_ASSEMBLE_4(r, X, rsize)				\
r                 643 include/math-emu/op-4.h       r = X##_f[0];							\
r                 646 include/math-emu/op-4.h       r = X##_f[1];							\
r                 647 include/math-emu/op-4.h       r <<= _FP_W_TYPE_SIZE;						\
r                 648 include/math-emu/op-4.h       r += X##_f[0];							\
r                 654 include/math-emu/op-4.h       r = X##_f[3];							\
r                 655 include/math-emu/op-4.h       r <<= _FP_W_TYPE_SIZE;						\
r                 656 include/math-emu/op-4.h       r += X##_f[2];							\
r                 657 include/math-emu/op-4.h       r <<= _FP_W_TYPE_SIZE;						\
r                 658 include/math-emu/op-4.h       r += X##_f[1];							\
r                 659 include/math-emu/op-4.h       r <<= _FP_W_TYPE_SIZE;						\
r                 660 include/math-emu/op-4.h       r += X##_f[0];							\
r                 669 include/math-emu/op-4.h #define _FP_FRAC_DISASSEMBLE_4(X, r, rsize)				\
r                 671 include/math-emu/op-4.h     X##_f[0] = r;							\
r                 672 include/math-emu/op-4.h     X##_f[1] = (rsize <= _FP_W_TYPE_SIZE ? 0 : r >> _FP_W_TYPE_SIZE);	\
r                 673 include/math-emu/op-4.h     X##_f[2] = (rsize <= 2*_FP_W_TYPE_SIZE ? 0 : r >> 2*_FP_W_TYPE_SIZE); \
r                 674 include/math-emu/op-4.h     X##_f[3] = (rsize <= 3*_FP_W_TYPE_SIZE ? 0 : r >> 3*_FP_W_TYPE_SIZE); \
r                 657 include/math-emu/op-common.h #define _FP_TO_INT(fs, wc, r, X, rsize, rsigned)				\
r                 666 include/math-emu/op-common.h 	    r = 0;								\
r                 677 include/math-emu/op-common.h 		  r = 0;							\
r                 681 include/math-emu/op-common.h 		    _FP_FRAC_ASSEMBLE_##wc(r, X, rsize);			\
r                 686 include/math-emu/op-common.h 		r = 1;								\
r                 687 include/math-emu/op-common.h 		r <<= rsize - 1;						\
r                 688 include/math-emu/op-common.h 		r -= 1 - X##_s;							\
r                 692 include/math-emu/op-common.h 		r = 0;								\
r                 694 include/math-emu/op-common.h 		  r = ~r;							\
r                 702 include/math-emu/op-common.h 		_FP_FRAC_ASSEMBLE_##wc(r, X, rsize);				\
r                 703 include/math-emu/op-common.h 		r <<= X##_e - _FP_WFRACBITS_##fs;				\
r                 717 include/math-emu/op-common.h 		_FP_FRAC_ASSEMBLE_##wc(r, X, rsize);				\
r                 720 include/math-emu/op-common.h 	      r = -r;								\
r                 726 include/math-emu/op-common.h #define _FP_TO_INT_ROUND(fs, wc, r, X, rsize, rsigned)				\
r                 728 include/math-emu/op-common.h     r = 0;									\
r                 738 include/math-emu/op-common.h 		    _FP_FRAC_ASSEMBLE_##wc(r, X, rsize);			\
r                 739 include/math-emu/op-common.h 		    r <<= X##_e - _FP_WFRACBITS_##fs + 1;			\
r                 745 include/math-emu/op-common.h 		    _FP_FRAC_ASSEMBLE_##wc(r, X, rsize);			\
r                 763 include/math-emu/op-common.h 	    _FP_FRAC_ASSEMBLE_##wc(r, X, rsize);				\
r                 766 include/math-emu/op-common.h 	  r = -r;								\
r                 774 include/math-emu/op-common.h 		r = 0;								\
r                 776 include/math-emu/op-common.h 		  r = ~r;							\
r                 780 include/math-emu/op-common.h 		r = 1;								\
r                 781 include/math-emu/op-common.h 		r <<= rsize - 1;						\
r                 782 include/math-emu/op-common.h 		r -= 1 - X##_s;							\
r                 792 include/math-emu/op-common.h #define _FP_FROM_INT(fs, wc, X, r, rsize, rtype)			\
r                 794 include/math-emu/op-common.h     if (r)								\
r                 799 include/math-emu/op-common.h 	if ((X##_s = (r < 0)))						\
r                 800 include/math-emu/op-common.h 	  ur_ = (unsigned rtype) -r;					\
r                 802 include/math-emu/op-common.h 	  ur_ = (unsigned rtype) r;					\
r                 843 include/math-emu/op-common.h #define __FP_CLZ(r, x)				\
r                 846 include/math-emu/op-common.h     r = _FP_W_TYPE_SIZE - 1;			\
r                 847 include/math-emu/op-common.h     if (_t > 0xffff) r -= 16;			\
r                 849 include/math-emu/op-common.h     if (_t > 0xff) r -= 8;			\
r                 851 include/math-emu/op-common.h     if (_t & 0xf0) r -= 4;			\
r                 853 include/math-emu/op-common.h     if (_t & 0xc) r -= 2;			\
r                 855 include/math-emu/op-common.h     if (_t & 0x2) r -= 1;			\
r                 858 include/math-emu/op-common.h #define __FP_CLZ(r, x)				\
r                 861 include/math-emu/op-common.h     r = _FP_W_TYPE_SIZE - 1;			\
r                 862 include/math-emu/op-common.h     if (_t > 0xffffffff) r -= 32;		\
r                 864 include/math-emu/op-common.h     if (_t > 0xffff) r -= 16;			\
r                 866 include/math-emu/op-common.h     if (_t > 0xff) r -= 8;			\
r                 868 include/math-emu/op-common.h     if (_t & 0xf0) r -= 4;			\
r                 870 include/math-emu/op-common.h     if (_t & 0xc) r -= 2;			\
r                 872 include/math-emu/op-common.h     if (_t & 0x2) r -= 1;			\
r                 877 include/math-emu/op-common.h #define _FP_DIV_HELP_imm(q, r, n, d)		\
r                 879 include/math-emu/op-common.h     q = n / d, r = n % d;			\
r                 123 include/math-emu/quad.h #define FP_CMP_Q(r,X,Y,un)	_FP_CMP(Q,4,r,X,Y,un)
r                 124 include/math-emu/quad.h #define FP_CMP_EQ_Q(r,X,Y)	_FP_CMP_EQ(Q,4,r,X,Y)
r                 126 include/math-emu/quad.h #define FP_TO_INT_Q(r,X,rsz,rsg)	_FP_TO_INT(Q,4,r,X,rsz,rsg)
r                 127 include/math-emu/quad.h #define FP_TO_INT_ROUND_Q(r,X,rsz,rsg)	_FP_TO_INT_ROUND(Q,4,r,X,rsz,rsg)
r                 128 include/math-emu/quad.h #define FP_FROM_INT_Q(X,r,rs,rt)	_FP_FROM_INT(Q,4,X,r,rs,rt)
r                 196 include/math-emu/quad.h #define FP_CMP_Q(r,X,Y,un)	_FP_CMP(Q,2,r,X,Y,un)
r                 197 include/math-emu/quad.h #define FP_CMP_EQ_Q(r,X,Y)	_FP_CMP_EQ(Q,2,r,X,Y)
r                 199 include/math-emu/quad.h #define FP_TO_INT_Q(r,X,rsz,rsg)	_FP_TO_INT(Q,2,r,X,rsz,rsg)
r                 200 include/math-emu/quad.h #define FP_TO_INT_ROUND_Q(r,X,rsz,rsg)	_FP_TO_INT_ROUND(Q,2,r,X,rsz,rsg)
r                 201 include/math-emu/quad.h #define FP_FROM_INT_Q(X,r,rs,rt)	_FP_FROM_INT(Q,2,X,r,rs,rt)
r                 106 include/math-emu/single.h #define FP_CMP_S(r,X,Y,un)	_FP_CMP(S,1,r,X,Y,un)
r                 107 include/math-emu/single.h #define FP_CMP_EQ_S(r,X,Y)	_FP_CMP_EQ(S,1,r,X,Y)
r                 109 include/math-emu/single.h #define FP_TO_INT_S(r,X,rsz,rsg)	_FP_TO_INT(S,1,r,X,rsz,rsg)
r                 110 include/math-emu/single.h #define FP_TO_INT_ROUND_S(r,X,rsz,rsg)	_FP_TO_INT_ROUND(S,1,r,X,rsz,rsg)
r                 111 include/math-emu/single.h #define FP_FROM_INT_S(X,r,rs,rt)	_FP_FROM_INT(S,1,X,r,rs,rt)
r                 109 include/media/davinci/dm355_ccdc.h 	unsigned char r;
r                  88 include/media/davinci/dm644x_ccdc.h 	char r;
r                  19 include/media/tpg/v4l2-tpg.h 	unsigned char r, g, b;
r                  23 include/media/tpg/v4l2-tpg.h 	__u16 r, g, b;
r                  18 include/media/v4l2-rect.h static inline void v4l2_rect_set_size_to(struct v4l2_rect *r,
r                  21 include/media/v4l2-rect.h 	r->width = size->width;
r                  22 include/media/v4l2-rect.h 	r->height = size->height;
r                  30 include/media/v4l2-rect.h static inline void v4l2_rect_set_min_size(struct v4l2_rect *r,
r                  33 include/media/v4l2-rect.h 	if (r->width < min_size->width)
r                  34 include/media/v4l2-rect.h 		r->width = min_size->width;
r                  35 include/media/v4l2-rect.h 	if (r->height < min_size->height)
r                  36 include/media/v4l2-rect.h 		r->height = min_size->height;
r                  44 include/media/v4l2-rect.h static inline void v4l2_rect_set_max_size(struct v4l2_rect *r,
r                  47 include/media/v4l2-rect.h 	if (r->width > max_size->width)
r                  48 include/media/v4l2-rect.h 		r->width = max_size->width;
r                  49 include/media/v4l2-rect.h 	if (r->height > max_size->height)
r                  50 include/media/v4l2-rect.h 		r->height = max_size->height;
r                  58 include/media/v4l2-rect.h static inline void v4l2_rect_map_inside(struct v4l2_rect *r,
r                  61 include/media/v4l2-rect.h 	v4l2_rect_set_max_size(r, boundary);
r                  62 include/media/v4l2-rect.h 	if (r->left < boundary->left)
r                  63 include/media/v4l2-rect.h 		r->left = boundary->left;
r                  64 include/media/v4l2-rect.h 	if (r->top < boundary->top)
r                  65 include/media/v4l2-rect.h 		r->top = boundary->top;
r                  66 include/media/v4l2-rect.h 	if (r->left + r->width > boundary->left + boundary->width)
r                  67 include/media/v4l2-rect.h 		r->left = boundary->left + boundary->width - r->width;
r                  68 include/media/v4l2-rect.h 	if (r->top + r->height > boundary->top + boundary->height)
r                  69 include/media/v4l2-rect.h 		r->top = boundary->top + boundary->height - r->height;
r                 117 include/media/v4l2-rect.h static inline void v4l2_rect_intersect(struct v4l2_rect *r,
r                 123 include/media/v4l2-rect.h 	r->top = max(r1->top, r2->top);
r                 124 include/media/v4l2-rect.h 	r->left = max(r1->left, r2->left);
r                 127 include/media/v4l2-rect.h 	r->height = max(0, bottom - r->top);
r                 128 include/media/v4l2-rect.h 	r->width = max(0, right - r->left);
r                 144 include/media/v4l2-rect.h static inline void v4l2_rect_scale(struct v4l2_rect *r,
r                 149 include/media/v4l2-rect.h 		r->left = r->top = r->width = r->height = 0;
r                 152 include/media/v4l2-rect.h 	r->left = (((r->left - from->left) * to->width) / from->width) & ~1;
r                 153 include/media/v4l2-rect.h 	r->width = ((r->width * to->width) / from->width) & ~1;
r                 154 include/media/v4l2-rect.h 	r->top = ((r->top - from->top) * to->height) / from->height;
r                 155 include/media/v4l2-rect.h 	r->height = (r->height * to->height) / from->height;
r                 223 include/net/9p/client.h static inline void p9_req_get(struct p9_req_t *r)
r                 225 include/net/9p/client.h 	kref_get(&r->refcount);
r                 228 include/net/9p/client.h static inline int p9_req_try_get(struct p9_req_t *r)
r                 230 include/net/9p/client.h 	return kref_get_unless_zero(&r->refcount);
r                 233 include/net/9p/client.h int p9_req_put(struct p9_req_t *r);
r                  11 include/net/dn_fib.h 	struct fib_rule *r;
r                  82 include/net/dn_fib.h 	int (*insert)(struct dn_fib_table *t, struct rtmsg *r, 
r                  85 include/net/dn_fib.h 	int (*delete)(struct dn_fib_table *t, struct rtmsg *r,
r                 104 include/net/dn_fib.h struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r,
r                 143 include/net/dn_fib.h 	if (res->r)
r                 144 include/net/dn_fib.h 		fib_rule_put(res->r);
r                 145 include/net/pkt_cls.h __tcf_bind_filter(struct Qdisc *q, struct tcf_result *r, unsigned long base)
r                 149 include/net/pkt_cls.h 	cl = q->ops->cl_ops->bind_tcf(q, base, r->classid);
r                 150 include/net/pkt_cls.h 	cl = __cls_set_class(&r->class, cl);
r                 156 include/net/pkt_cls.h tcf_bind_filter(struct tcf_proto *tp, struct tcf_result *r, unsigned long base)
r                 166 include/net/pkt_cls.h 	__tcf_bind_filter(q, r, base);
r                 171 include/net/pkt_cls.h __tcf_unbind_filter(struct Qdisc *q, struct tcf_result *r)
r                 175 include/net/pkt_cls.h 	if ((cl = __cls_set_class(&r->class, 0)) != 0)
r                 180 include/net/pkt_cls.h tcf_unbind_filter(struct tcf_proto *tp, struct tcf_result *r)
r                 186 include/net/pkt_cls.h 	__tcf_unbind_filter(q, r);
r                 106 include/net/pkt_sched.h struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r,
r                1222 include/net/sch_generic.h static inline u64 psched_l2t_ns(const struct psched_ratecfg *r,
r                1225 include/net/sch_generic.h 	len += r->overhead;
r                1227 include/net/sch_generic.h 	if (unlikely(r->linklayer == TC_LINKLAYER_ATM))
r                1228 include/net/sch_generic.h 		return ((u64)(DIV_ROUND_UP(len,48)*53) * r->mult) >> r->shift;
r                1230 include/net/sch_generic.h 	return ((u64)len * r->mult) >> r->shift;
r                1233 include/net/sch_generic.h void psched_ratecfg_precompute(struct psched_ratecfg *r,
r                1238 include/net/sch_generic.h 					  const struct psched_ratecfg *r)
r                1246 include/net/sch_generic.h 	res->rate = min_t(u64, r->rate_bytes_ps, ~0U);
r                1248 include/net/sch_generic.h 	res->overhead = r->overhead;
r                1249 include/net/sch_generic.h 	res->linklayer = (r->linklayer & TC_LINKLAYER_MASK);
r                 298 include/scsi/iscsi_if.h 	} r;
r                 365 include/scsi/scsi_transport_fc.h #define rport_to_shost(r)			\
r                 366 include/scsi/scsi_transport_fc.h 	dev_to_shost(r->dev.parent)
r                 122 include/scsi/scsi_transport_sas.h #define rphy_to_end_device(r) \
r                 123 include/scsi/scsi_transport_sas.h 	container_of((r), struct sas_end_device, rphy)
r                 143 include/scsi/scsi_transport_sas.h #define rphy_to_expander_device(r) \
r                 144 include/scsi/scsi_transport_sas.h 	container_of((r), struct sas_expander_device, rphy)
r                  11 include/soc/arc/aux.h #define read_aux_reg(r)		__builtin_arc_lr(r)
r                  14 include/soc/arc/aux.h #define write_aux_reg(r, v)	__builtin_arc_sr((unsigned int)(v), r)
r                  18 include/soc/arc/aux.h static inline int read_aux_reg(u32 r)
r                  27 include/soc/arc/aux.h static inline void write_aux_reg(u32 r, u32 v)
r                  62 include/soc/nps/common.h #define write_aux_reg(r, v)
r                  63 include/soc/nps/common.h #define read_aux_reg(r) 0
r                 396 include/sound/ac97_codec.h 	} r[2];				   /* 0 = standard rates, 1 = double rates */
r                  15 include/sound/ad1816a.h #define AD1816A_REG(r)			(chip->port + r)
r                 382 include/sound/core.h #define gameport_set_port_data(gp,r) ((gp)->port_data = (r))
r                 984 include/sound/pcm.h 				 const struct snd_pcm_hw_constraint_ranges *r);
r                 988 include/sound/pcm.h 				  const struct snd_pcm_hw_constraint_ratnums *r);
r                 992 include/sound/pcm.h 				  const struct snd_pcm_hw_constraint_ratdens *r);
r                  93 include/uapi/linux/am437x-vpfe.h 	char r;
r                  91 include/uapi/linux/cn_proc.h 			} r;
r                  68 include/uapi/linux/if_addr.h #define IFA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
r                 178 include/uapi/linux/if_link.h #define IFLA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
r                 207 include/uapi/linux/jffs2.h 	struct jffs2_raw_xref r;
r                  53 include/uapi/linux/netfilter_decnet.h #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
r                 652 include/uapi/linux/pkt_sched.h 	__u32 r;
r                 358 include/uapi/linux/rtnetlink.h #define RTM_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
r                 601 include/uapi/linux/rtnetlink.h #define TCA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
r                 740 include/uapi/linux/rtnetlink.h #define TA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
r                 154 include/uapi/linux/v4l2-subdev.h 	struct v4l2_rect r;
r                1200 include/uapi/linux/videodev2.h 	struct v4l2_rect        r;
r                 157 include/uapi/linux/virtio_gpu.h 	struct virtio_gpu_rect r;
r                 165 include/uapi/linux/virtio_gpu.h 	struct virtio_gpu_rect r;
r                 173 include/uapi/linux/virtio_gpu.h 	struct virtio_gpu_rect r;
r                 204 include/uapi/linux/virtio_gpu.h 		struct virtio_gpu_rect r;
r                  19 include/video/permedia2.h #define PM2TAG(r) (u32 )(((r)-0x8000)>>3)
r                 502 include/video/pm3fb.h 	#define PM3ConstantColorDDA_R(r)		((r) & 0xff)
r                 569 include/video/pm3fb.h 	#define PM3FBDestReadEnables_R(r)		(((r) & 0xff) << 8)
r                 228 include/video/tgafb.h TGA_WRITE_REG(struct tga_par *par, u32 v, u32 r)
r                 230 include/video/tgafb.h 	writel(v, par->tga_regs_base +r);
r                 234 include/video/tgafb.h TGA_READ_REG(struct tga_par *par, u32 r)
r                 236 include/video/tgafb.h 	return readl(par->tga_regs_base +r);
r                 240 include/video/tgafb.h BT485_WRITE(struct tga_par *par, u8 v, u8 r)
r                 242 include/video/tgafb.h 	TGA_WRITE_REG(par, r, TGA_RAMDAC_SETUP_REG);
r                 243 include/video/tgafb.h 	TGA_WRITE_REG(par, v | (r << 8), TGA_RAMDAC_REG);
r                 167 include/video/vga.h #define VGA_OUT16VAL(v, r)       (((v) << 8) | (r))
r                  71 include/xen/arm/hypercall.h 	struct sched_shutdown r = { .reason = SHUTDOWN_suspend };
r                  74 include/xen/arm/hypercall.h 	return HYPERVISOR_sched_op(SCHEDOP_shutdown, &r);
r                  42 include/xen/hvm.h 	int r;
r                  46 include/xen/hvm.h 	r = HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
r                  47 include/xen/hvm.h 	if (r < 0) {
r                  49 include/xen/hvm.h 		       param_name(idx), idx, r);
r                  50 include/xen/hvm.h 		return r;
r                  53 include/xen/hvm.h 	return r;
r                 300 init/do_mounts_rd.c 	long r = ksys_read(crd_infd, buf, len);
r                 301 init/do_mounts_rd.c 	if (r < 0)
r                 303 init/do_mounts_rd.c 	else if (r == 0)
r                 305 init/do_mounts_rd.c 	return r;
r                 226 kernel/audit_watch.c static void audit_watch_log_rule_change(struct audit_krule *r, struct audit_watch *w, char *op)
r                 238 kernel/audit_watch.c 	audit_log_key(ab, r->filterkey);
r                 239 kernel/audit_watch.c 	audit_log_format(ab, " list=%d res=1", r->listnr);
r                 249 kernel/audit_watch.c 	struct audit_krule *r, *nextr;
r                 276 kernel/audit_watch.c 		list_for_each_entry_safe(r, nextr, &owatch->rules, rlist) {
r                 278 kernel/audit_watch.c 			oentry = container_of(r, struct audit_entry, rule);
r                 305 kernel/audit_watch.c 			audit_watch_log_rule_change(r, owatch, "updated_rules");
r                 326 kernel/audit_watch.c 	struct audit_krule *r, *nextr;
r                 331 kernel/audit_watch.c 		list_for_each_entry_safe(r, nextr, &w->rules, rlist) {
r                 332 kernel/audit_watch.c 			e = container_of(r, struct audit_entry, rule);
r                 333 kernel/audit_watch.c 			audit_watch_log_rule_change(r, w, "remove_rule");
r                 336 kernel/audit_watch.c 			list_del(&r->rlist);
r                 337 kernel/audit_watch.c 			list_del(&r->list);
r                1072 kernel/auditfilter.c 	struct audit_krule *r;
r                1078 kernel/auditfilter.c 		list_for_each_entry(r, &audit_rules_list[i], list) {
r                1081 kernel/auditfilter.c 			data = audit_krule_to_data(r);
r                1393 kernel/auditfilter.c static int update_lsm_rule(struct audit_krule *r)
r                1395 kernel/auditfilter.c 	struct audit_entry *entry = container_of(r, struct audit_entry, rule);
r                1399 kernel/auditfilter.c 	if (!security_audit_rule_known(r))
r                1402 kernel/auditfilter.c 	nentry = audit_dupe_rule(r);
r                1410 kernel/auditfilter.c 		if (r->watch)
r                1411 kernel/auditfilter.c 			list_del(&r->rlist);
r                1413 kernel/auditfilter.c 		list_del(&r->list);
r                1415 kernel/auditfilter.c 		if (r->watch || r->tree)
r                1416 kernel/auditfilter.c 			list_replace_init(&r->rlist, &nentry->rule.rlist);
r                1418 kernel/auditfilter.c 		list_replace(&r->list, &nentry->rule.list);
r                1432 kernel/auditfilter.c 	struct audit_krule *r, *n;
r                1439 kernel/auditfilter.c 		list_for_each_entry_safe(r, n, &audit_rules_list[i], list) {
r                1440 kernel/auditfilter.c 			int res = update_lsm_rule(r);
r                 171 kernel/compat.c int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru)
r                 175 kernel/compat.c 	r32.ru_utime.tv_sec = r->ru_utime.tv_sec;
r                 176 kernel/compat.c 	r32.ru_utime.tv_usec = r->ru_utime.tv_usec;
r                 177 kernel/compat.c 	r32.ru_stime.tv_sec = r->ru_stime.tv_sec;
r                 178 kernel/compat.c 	r32.ru_stime.tv_usec = r->ru_stime.tv_usec;
r                 179 kernel/compat.c 	r32.ru_maxrss = r->ru_maxrss;
r                 180 kernel/compat.c 	r32.ru_ixrss = r->ru_ixrss;
r                 181 kernel/compat.c 	r32.ru_idrss = r->ru_idrss;
r                 182 kernel/compat.c 	r32.ru_isrss = r->ru_isrss;
r                 183 kernel/compat.c 	r32.ru_minflt = r->ru_minflt;
r                 184 kernel/compat.c 	r32.ru_majflt = r->ru_majflt;
r                 185 kernel/compat.c 	r32.ru_nswap = r->ru_nswap;
r                 186 kernel/compat.c 	r32.ru_inblock = r->ru_inblock;
r                 187 kernel/compat.c 	r32.ru_oublock = r->ru_oublock;
r                 188 kernel/compat.c 	r32.ru_msgsnd = r->ru_msgsnd;
r                 189 kernel/compat.c 	r32.ru_msgrcv = r->ru_msgrcv;
r                 190 kernel/compat.c 	r32.ru_nsignals = r->ru_nsignals;
r                 191 kernel/compat.c 	r32.ru_nvcsw = r->ru_nvcsw;
r                 192 kernel/compat.c 	r32.ru_nivcsw = r->ru_nivcsw;
r                 353 kernel/crash_core.c 	size_t r;
r                 356 kernel/crash_core.c 	r = vscnprintf(buf, sizeof(buf), fmt, args);
r                 359 kernel/crash_core.c 	r = min(r, (size_t)VMCOREINFO_BYTES - vmcoreinfo_size);
r                 361 kernel/crash_core.c 	memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r);
r                 363 kernel/crash_core.c 	vmcoreinfo_size += r;
r                 858 kernel/debug/kdb/kdb_io.c 	int r;
r                 861 kernel/debug/kdb/kdb_io.c 	r = vkdb_printf(KDB_MSGSRC_INTERNAL, fmt, ap);
r                 864 kernel/debug/kdb/kdb_io.c 	return r;
r                 622 kernel/events/uprobes.c static int match_uprobe(struct uprobe *l, struct uprobe *r)
r                 624 kernel/events/uprobes.c 	if (l->inode < r->inode)
r                 627 kernel/events/uprobes.c 	if (l->inode > r->inode)
r                 630 kernel/events/uprobes.c 	if (l->offset < r->offset)
r                 633 kernel/events/uprobes.c 	if (l->offset > r->offset)
r                1552 kernel/exit.c  	struct rusage r;
r                1554 kernel/exit.c  	long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);
r                1560 kernel/exit.c  		if (ru && copy_to_user(ru, &r, sizeof(struct rusage)))
r                1628 kernel/exit.c  	struct rusage r;
r                1629 kernel/exit.c  	long err = kernel_wait4(upid, stat_addr, options, ru ? &r : NULL);
r                1632 kernel/exit.c  		if (ru && copy_to_user(ru, &r, sizeof(struct rusage)))
r                1658 kernel/exit.c  	struct rusage r;
r                1659 kernel/exit.c  	long err = kernel_wait4(pid, stat_addr, options, ru ? &r : NULL);
r                1661 kernel/exit.c  		if (ru && put_compat_rusage(&r, ru))
r                 107 kernel/irq/affinity.c static int ncpus_cmp_func(const void *l, const void *r)
r                 110 kernel/irq/affinity.c 	const struct node_vectors *rn = r;
r                 176 kernel/irq/spurious.c 	unsigned int r = action_ret;
r                 178 kernel/irq/spurious.c 	if (likely(r <= (IRQ_HANDLED | IRQ_WAKE_THREAD)))
r                 357 kernel/locking/lockdep_proc.c static int lock_stat_cmp(const void *l, const void *r)
r                 359 kernel/locking/lockdep_proc.c 	const struct lock_stat_data *dl = l, *dr = r;
r                 352 kernel/locking/test-ww_mutex.c 	int n, r, tmp;
r                 362 kernel/locking/test-ww_mutex.c 		r = get_random_int() % (n + 1);
r                 363 kernel/locking/test-ww_mutex.c 		if (r != n) {
r                 365 kernel/locking/test-ww_mutex.c 			order[n] = order[r];
r                 366 kernel/locking/test-ww_mutex.c 			order[r] = tmp;
r                 808 kernel/printk/printk.c 	int r;
r                 811 kernel/printk/printk.c 	r = vprintk_emit(facility, level, NULL, 0, fmt, args);
r                 814 kernel/printk/printk.c 	return r;
r                2042 kernel/printk/printk.c 	int r;
r                2047 kernel/printk/printk.c 		r = vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args);
r                2048 kernel/printk/printk.c 		return r;
r                2051 kernel/printk/printk.c 	r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
r                2053 kernel/printk/printk.c 	return r;
r                2081 kernel/printk/printk.c 	int r;
r                2084 kernel/printk/printk.c 	r = vprintk_func(fmt, args);
r                2087 kernel/printk/printk.c 	return r;
r                3021 kernel/printk/printk.c 	int r;
r                3023 kernel/printk/printk.c 	r = vprintk_emit(0, LOGLEVEL_SCHED, NULL, 0, fmt, args);
r                3026 kernel/printk/printk.c 	return r;
r                3032 kernel/printk/printk.c 	int r;
r                3035 kernel/printk/printk.c 	r = vprintk_deferred(fmt, args);
r                3038 kernel/printk/printk.c 	return r;
r                 848 kernel/rcu/update.c static void test_callback(struct rcu_head *r)
r                 108 kernel/resource.c 	struct resource *r = v, *p;
r                 113 kernel/resource.c 	for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent)
r                 118 kernel/resource.c 		start = r->start;
r                 119 kernel/resource.c 		end = r->end;
r                 128 kernel/resource.c 			r->name ? r->name : "<BAD>");
r                 242 kernel/resource.c static void __release_child_resources(struct resource *r)
r                 247 kernel/resource.c 	p = r->child;
r                 248 kernel/resource.c 	r->child = NULL;
r                 265 kernel/resource.c void release_child_resources(struct resource *r)
r                 268 kernel/resource.c 	__release_child_resources(r);
r                1356 kernel/resource.c 	struct resource **r = ptr;
r                1358 kernel/resource.c 	release_resource(*r);
r                  28 kernel/sched/cpudeadline.c 	int l, r, largest;
r                  41 kernel/sched/cpudeadline.c 		r = right_child(idx);
r                  50 kernel/sched/cpudeadline.c 		if ((r < cp->size) && dl_time_before(largest_dl,
r                  51 kernel/sched/cpudeadline.c 						cp->elements[r].dl))
r                  52 kernel/sched/cpudeadline.c 			largest = r;
r                3477 kernel/sched/fair.c 		unsigned long r;
r                3487 kernel/sched/fair.c 		r = removed_load;
r                3488 kernel/sched/fair.c 		sub_positive(&sa->load_avg, r);
r                3489 kernel/sched/fair.c 		sub_positive(&sa->load_sum, r * divider);
r                3491 kernel/sched/fair.c 		r = removed_util;
r                3492 kernel/sched/fair.c 		sub_positive(&sa->util_avg, r);
r                3493 kernel/sched/fair.c 		sub_positive(&sa->util_sum, r * divider);
r                1400 kernel/sys.c   	struct rlimit r;
r                1407 kernel/sys.c   		r.rlim_cur = RLIM_INFINITY;
r                1409 kernel/sys.c   		r.rlim_cur = r32.rlim_cur;
r                1411 kernel/sys.c   		r.rlim_max = RLIM_INFINITY;
r                1413 kernel/sys.c   		r.rlim_max = r32.rlim_max;
r                1414 kernel/sys.c   	return do_prlimit(current, resource, &r, NULL);
r                1420 kernel/sys.c   	struct rlimit r;
r                1423 kernel/sys.c   	ret = do_prlimit(current, resource, NULL, &r);
r                1426 kernel/sys.c   		if (r.rlim_cur > COMPAT_RLIM_INFINITY)
r                1429 kernel/sys.c   			r32.rlim_cur = r.rlim_cur;
r                1430 kernel/sys.c   		if (r.rlim_max > COMPAT_RLIM_INFINITY)
r                1433 kernel/sys.c   			r32.rlim_max = r.rlim_max;
r                1470 kernel/sys.c   	struct rlimit r;
r                1477 kernel/sys.c   	r = current->signal->rlim[resource];
r                1479 kernel/sys.c   	if (r.rlim_cur > 0x7FFFFFFF)
r                1480 kernel/sys.c   		r.rlim_cur = 0x7FFFFFFF;
r                1481 kernel/sys.c   	if (r.rlim_max > 0x7FFFFFFF)
r                1482 kernel/sys.c   		r.rlim_max = 0x7FFFFFFF;
r                1484 kernel/sys.c   	if (put_user(r.rlim_cur, &rlim->rlim_cur) ||
r                1485 kernel/sys.c   	    put_user(r.rlim_max, &rlim->rlim_max))
r                1695 kernel/sys.c   static void accumulate_thread_rusage(struct task_struct *t, struct rusage *r)
r                1697 kernel/sys.c   	r->ru_nvcsw += t->nvcsw;
r                1698 kernel/sys.c   	r->ru_nivcsw += t->nivcsw;
r                1699 kernel/sys.c   	r->ru_minflt += t->min_flt;
r                1700 kernel/sys.c   	r->ru_majflt += t->maj_flt;
r                1701 kernel/sys.c   	r->ru_inblock += task_io_get_inblock(t);
r                1702 kernel/sys.c   	r->ru_oublock += task_io_get_oublock(t);
r                1705 kernel/sys.c   void getrusage(struct task_struct *p, int who, struct rusage *r)
r                1712 kernel/sys.c   	memset((char *)r, 0, sizeof (*r));
r                1717 kernel/sys.c   		accumulate_thread_rusage(p, r);
r                1730 kernel/sys.c   		r->ru_nvcsw = p->signal->cnvcsw;
r                1731 kernel/sys.c   		r->ru_nivcsw = p->signal->cnivcsw;
r                1732 kernel/sys.c   		r->ru_minflt = p->signal->cmin_flt;
r                1733 kernel/sys.c   		r->ru_majflt = p->signal->cmaj_flt;
r                1734 kernel/sys.c   		r->ru_inblock = p->signal->cinblock;
r                1735 kernel/sys.c   		r->ru_oublock = p->signal->coublock;
r                1746 kernel/sys.c   		r->ru_nvcsw += p->signal->nvcsw;
r                1747 kernel/sys.c   		r->ru_nivcsw += p->signal->nivcsw;
r                1748 kernel/sys.c   		r->ru_minflt += p->signal->min_flt;
r                1749 kernel/sys.c   		r->ru_majflt += p->signal->maj_flt;
r                1750 kernel/sys.c   		r->ru_inblock += p->signal->inblock;
r                1751 kernel/sys.c   		r->ru_oublock += p->signal->oublock;
r                1756 kernel/sys.c   			accumulate_thread_rusage(t, r);
r                1766 kernel/sys.c   	r->ru_utime = ns_to_timeval(utime);
r                1767 kernel/sys.c   	r->ru_stime = ns_to_timeval(stime);
r                1777 kernel/sys.c   	r->ru_maxrss = maxrss * (PAGE_SIZE / 1024); /* convert pages to KBs */
r                1782 kernel/sys.c   	struct rusage r;
r                1788 kernel/sys.c   	getrusage(current, who, &r);
r                1789 kernel/sys.c   	return copy_to_user(ru, &r, sizeof(r)) ? -EFAULT : 0;
r                1795 kernel/sys.c   	struct rusage r;
r                1801 kernel/sys.c   	getrusage(current, who, &r);
r                1802 kernel/sys.c   	return put_compat_rusage(&r, ru);
r                3132 kernel/sysctl.c 	int r;
r                3136 kernel/sysctl.c 	r = __do_proc_dointvec(&tmp, table, write, buffer,
r                3138 kernel/sysctl.c 	if (r || !write)
r                3139 kernel/sysctl.c 		return r;
r                 172 kernel/time/sched_clock.c 	unsigned long r;
r                 214 kernel/time/sched_clock.c 	r = rate;
r                 215 kernel/time/sched_clock.c 	if (r >= 4000000) {
r                 216 kernel/time/sched_clock.c 		r /= 1000000;
r                 219 kernel/time/sched_clock.c 		if (r >= 1000) {
r                 220 kernel/time/sched_clock.c 			r /= 1000;
r                 231 kernel/time/sched_clock.c 		bits, r, r_unit, res, wrap);
r                1026 kernel/trace/blktrace.c 	struct blk_io_trace_remap r;
r                1035 kernel/trace/blktrace.c 	r.device_from = cpu_to_be32(dev);
r                1036 kernel/trace/blktrace.c 	r.device_to   = cpu_to_be32(bio_dev(bio));
r                1037 kernel/trace/blktrace.c 	r.sector_from = cpu_to_be64(from);
r                1041 kernel/trace/blktrace.c 			sizeof(r), &r, blk_trace_bio_get_cgid(q, bio));
r                1064 kernel/trace/blktrace.c 	struct blk_io_trace_remap r;
r                1073 kernel/trace/blktrace.c 	r.device_from = cpu_to_be32(dev);
r                1074 kernel/trace/blktrace.c 	r.device_to   = cpu_to_be32(disk_devt(rq->rq_disk));
r                1075 kernel/trace/blktrace.c 	r.sector_from = cpu_to_be64(from);
r                1079 kernel/trace/blktrace.c 			sizeof(r), &r, blk_trace_request_get_cgid(q, rq));
r                1267 kernel/trace/blktrace.c 			  struct blk_io_trace_remap *r, bool has_cg)
r                1272 kernel/trace/blktrace.c 	r->device_from = be32_to_cpu(__r->device_from);
r                1273 kernel/trace/blktrace.c 	r->device_to   = be32_to_cpu(__r->device_to);
r                1274 kernel/trace/blktrace.c 	r->sector_from = be64_to_cpu(sector_from);
r                1402 kernel/trace/blktrace.c 	struct blk_io_trace_remap r = { .device_from = 0, };
r                1404 kernel/trace/blktrace.c 	get_pdu_remap(ent, &r, has_cg);
r                1407 kernel/trace/blktrace.c 			 MAJOR(r.device_from), MINOR(r.device_from),
r                1408 kernel/trace/blktrace.c 			 (unsigned long long)r.sector_from);
r                 938 kernel/trace/ftrace.c 	int r;
r                 940 kernel/trace/ftrace.c 	r = sprintf(buf, "%u\n", ftrace_profile_enabled);
r                 941 kernel/trace/ftrace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                1630 kernel/trace/ring_buffer.c 		struct list_head *head_page, *prev_page, *r;
r                1648 kernel/trace/ring_buffer.c 		r = cmpxchg(&prev_page->next, head_page_with_bit, first_page);
r                1650 kernel/trace/ring_buffer.c 		if (r == head_page_with_bit) {
r                5186 kernel/trace/trace.c 	int r;
r                5189 kernel/trace/trace.c 	r = scnprintf(buf, sizeof(buf), "%u\n", savedcmd->cmdline_num);
r                5192 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                5439 kernel/trace/trace.c 	int r;
r                5442 kernel/trace/trace.c 	r = sprintf(buf, "%s\n", tr->current_trace->name);
r                5445 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                5517 kernel/trace/trace.c 		int r = resize_buffer_duplicate_size(&tr->trace_buffer,
r                5519 kernel/trace/trace.c 		if (r < 0) {
r                5781 kernel/trace/trace.c 	int r;
r                5783 kernel/trace/trace.c 	r = snprintf(buf, sizeof(buf), "%ld\n",
r                5785 kernel/trace/trace.c 	if (r > sizeof(buf))
r                5786 kernel/trace/trace.c 		r = sizeof(buf);
r                5787 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                6257 kernel/trace/trace.c 	int r = 0;
r                6281 kernel/trace/trace.c 				r = sprintf(buf, "%lu (expanded: %lu)\n",
r                6285 kernel/trace/trace.c 				r = sprintf(buf, "%lu\n", size >> 10);
r                6287 kernel/trace/trace.c 			r = sprintf(buf, "X\n");
r                6289 kernel/trace/trace.c 		r = sprintf(buf, "%lu\n", per_cpu_ptr(tr->trace_buffer.data, cpu)->entries >> 10);
r                6293 kernel/trace/trace.c 	ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                6331 kernel/trace/trace.c 	int r, cpu;
r                6341 kernel/trace/trace.c 		r = sprintf(buf, "%lu\n", size);
r                6343 kernel/trace/trace.c 		r = sprintf(buf, "%lu (expanded: %lu)\n", size, expanded_size);
r                6346 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                7448 kernel/trace/trace.c 		int r;
r                7467 kernel/trace/trace.c 		r = ring_buffer_read_page(ref->buffer, &ref->page,
r                7469 kernel/trace/trace.c 		if (r < 0) {
r                7602 kernel/trace/trace.c 	int r;
r                7604 kernel/trace/trace.c 	r = scnprintf(buf, 63, "%ld", *p);
r                7605 kernel/trace/trace.c 	buf[r++] = '\n';
r                7607 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                8166 kernel/trace/trace.c 	int r;
r                8168 kernel/trace/trace.c 	r = tracer_tracing_is_on(tr);
r                8169 kernel/trace/trace.c 	r = sprintf(buf, "%d\n", r);
r                8171 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                8222 kernel/trace/trace.c 	int r;
r                8224 kernel/trace/trace.c 	r = tr->buffer_percent;
r                8225 kernel/trace/trace.c 	r = sprintf(buf, "%d\n", r);
r                8227 kernel/trace/trace.c 	return simple_read_from_buffer(ubuf, cnt, ppos, buf, r);
r                1519 kernel/trace/trace.h typedef int (*regex_match_func)(char *str, struct regex *r, int len);
r                1331 kernel/trace/trace_events.c 	int r = -ENODEV;
r                1350 kernel/trace/trace_events.c 		r = simple_read_from_buffer(ubuf, cnt, ppos,
r                1355 kernel/trace/trace_events.c 	return r;
r                1488 kernel/trace/trace_events.c 	int r;
r                1500 kernel/trace/trace_events.c 	r = simple_read_from_buffer(ubuf, cnt, ppos,
r                1505 kernel/trace/trace_events.c 	return r;
r                1538 kernel/trace/trace_events.c 	int r;
r                1550 kernel/trace/trace_events.c 	r = simple_read_from_buffer(ubuf, cnt, ppos,
r                1555 kernel/trace/trace_events.c 	return r;
r                 762 kernel/trace/trace_events_filter.c static int regex_match_full(char *str, struct regex *r, int len)
r                 766 kernel/trace/trace_events_filter.c 		return strcmp(str, r->pattern) == 0;
r                 768 kernel/trace/trace_events_filter.c 	return strncmp(str, r->pattern, len) == 0;
r                 771 kernel/trace/trace_events_filter.c static int regex_match_front(char *str, struct regex *r, int len)
r                 773 kernel/trace/trace_events_filter.c 	if (len && len < r->len)
r                 776 kernel/trace/trace_events_filter.c 	return strncmp(str, r->pattern, r->len) == 0;
r                 779 kernel/trace/trace_events_filter.c static int regex_match_middle(char *str, struct regex *r, int len)
r                 782 kernel/trace/trace_events_filter.c 		return strstr(str, r->pattern) != NULL;
r                 784 kernel/trace/trace_events_filter.c 	return strnstr(str, r->pattern, len) != NULL;
r                 787 kernel/trace/trace_events_filter.c static int regex_match_end(char *str, struct regex *r, int len)
r                 791 kernel/trace/trace_events_filter.c 	if (strlen >= r->len &&
r                 792 kernel/trace/trace_events_filter.c 	    memcmp(str + strlen - r->len, r->pattern, r->len) == 0)
r                 797 kernel/trace/trace_events_filter.c static int regex_match_glob(char *str, struct regex *r, int len __maybe_unused)
r                 799 kernel/trace/trace_events_filter.c 	if (glob_match(r->pattern, str))
r                 864 kernel/trace/trace_events_filter.c 	struct regex *r = &pred->regex;
r                 869 kernel/trace/trace_events_filter.c 		type = filter_parse_regex(r->pattern, r->len, &search, &pred->not);
r                 870 kernel/trace/trace_events_filter.c 		r->len = strlen(search);
r                 871 kernel/trace/trace_events_filter.c 		memmove(r->pattern, search, r->len+1);
r                 878 kernel/trace/trace_events_filter.c 		r->match = regex_match_full;
r                 881 kernel/trace/trace_events_filter.c 		r->match = regex_match_front;
r                 884 kernel/trace/trace_events_filter.c 		r->match = regex_match_middle;
r                 887 kernel/trace/trace_events_filter.c 		r->match = regex_match_end;
r                 890 kernel/trace/trace_events_filter.c 		r->match = regex_match_glob;
r                 330 kernel/trace/trace_stack.c 	int r;
r                 332 kernel/trace/trace_stack.c 	r = snprintf(buf, sizeof(buf), "%ld\n", *ptr);
r                 333 kernel/trace/trace_stack.c 	if (r > sizeof(buf))
r                 334 kernel/trace/trace_stack.c 		r = sizeof(buf);
r                 335 kernel/trace/trace_stack.c 	return simple_read_from_buffer(ubuf, count, ppos, buf, r);
r                  36 kernel/utsname_sysctl.c 	int r;
r                  51 kernel/utsname_sysctl.c 	r = proc_dostring(&uts_table, write, buffer, lenp, ppos);
r                  66 kernel/utsname_sysctl.c 	return r;
r                 305 lib/842/842_compress.c static int add_repeat_template(struct sw842_param *p, u8 r)
r                 310 lib/842/842_compress.c 	if (!r || --r > REPEAT_BITS_MAX)
r                 317 lib/842/842_compress.c 	ret = add_bits(p, r, REPEAT_BITS);
r                  23 lib/atomic64_test.c 	r = v0;							\
r                  25 lib/atomic64_test.c 	r c_op val;						\
r                  26 lib/atomic64_test.c 	WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n",	\
r                  28 lib/atomic64_test.c 		(unsigned long long)r);				\
r                  47 lib/atomic64_test.c 	r = v0;							\
r                  48 lib/atomic64_test.c 	r c_op val;						\
r                  49 lib/atomic64_test.c 	BUG_ON(atomic##bit##_##op(val, &v) != r);		\
r                  50 lib/atomic64_test.c 	BUG_ON(atomic##bit##_read(&v) != r);			\
r                  56 lib/atomic64_test.c 	r = v0;							\
r                  57 lib/atomic64_test.c 	r c_op val;						\
r                  59 lib/atomic64_test.c 	BUG_ON(atomic##bit##_read(&v) != r);			\
r                 112 lib/atomic64_test.c 	int r;
r                 146 lib/atomic64_test.c #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
r                 158 lib/atomic64_test.c 	long long r = v0;
r                 159 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 162 lib/atomic64_test.c 	r = v1;
r                 163 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 164 lib/atomic64_test.c 	BUG_ON(atomic64_read(&v) != r);
r                 192 lib/atomic64_test.c 	r += one;
r                 193 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 197 lib/atomic64_test.c 	r -= one;
r                 198 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 208 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 212 lib/atomic64_test.c 	r += one;
r                 213 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 217 lib/atomic64_test.c 	r -= one;
r                 218 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 222 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 226 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 230 lib/atomic64_test.c 	r += one;
r                 231 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 235 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 239 lib/atomic64_test.c 	r += one;
r                 240 lib/atomic64_test.c 	BUG_ON(v.counter != r);
r                 196 lib/bch.c      	uint32_t w, r[BCH_ECC_MAX_WORDS];
r                 197 lib/bch.c      	const size_t r_bytes = BCH_ECC_WORDS(bch) * sizeof(*r);
r                 204 lib/bch.c      	if (WARN_ON(r_bytes > sizeof(r)))
r                 228 lib/bch.c      	memcpy(r, bch->ecc_buf, r_bytes);
r                 243 lib/bch.c      		w = r[0]^cpu_to_be32(*pdata++);
r                 250 lib/bch.c      			r[i] = r[i+1]^p0[i]^p1[i]^p2[i]^p3[i];
r                 252 lib/bch.c      		r[l] = p0[l]^p1[l]^p2[l]^p3[l];
r                 254 lib/bch.c      	memcpy(bch->ecc_buf, r, r_bytes);
r                 447 lib/bch.c      	int rem, c, r, p, k, param[BCH_MAX_M];
r                 457 lib/bch.c      		for (r = p; r < m; r++) {
r                 458 lib/bch.c      			if (rows[r] & mask) {
r                 459 lib/bch.c      				if (r != p) {
r                 460 lib/bch.c      					tmp = rows[r];
r                 461 lib/bch.c      					rows[r] = rows[p];
r                 464 lib/bch.c      				rem = r+1;
r                 471 lib/bch.c      			for (r = rem; r < m; r++) {
r                 472 lib/bch.c      				if (rows[r] & mask)
r                 473 lib/bch.c      					rows[r] ^= tmp;
r                 484 lib/bch.c      		for (r = m-1; r >= 0; r--) {
r                 485 lib/bch.c      			if ((r > m-1-k) && rows[r])
r                 489 lib/bch.c      			rows[r] = (p && (r == param[p-1])) ?
r                 490 lib/bch.c      				p--, 1u << (m-r) : rows[r-p];
r                 505 lib/bch.c      		for (r = m-1; r >= 0; r--) {
r                 506 lib/bch.c      			mask = rows[r] & (tmp|1);
r                 507 lib/bch.c      			tmp |= parity(mask) << (m-r);
r                 574 lib/bch.c      	unsigned int u, v, r;
r                 590 lib/bch.c      		r = 0;
r                 594 lib/bch.c      			r ^= bch->xi_tab[i];
r                 598 lib/bch.c      		if ((gf_sqr(bch, r)^r) == u) {
r                 601 lib/bch.c      					    bch->a_log_tab[r]+l2);
r                 603 lib/bch.c      					    bch->a_log_tab[r^1]+l2);
r                1126 lib/bch.c      	int i, j, r;
r                1146 lib/bch.c      			r = a_log(bch, y);
r                1147 lib/bch.c      			if (y && (r < m) && !xi[r]) {
r                1148 lib/bch.c      				bch->xi_tab[r] = x;
r                1149 lib/bch.c      				xi[r] = 1;
r                1151 lib/bch.c      				dbg("x%d = %x\n", r, x);
r                1179 lib/bch.c      	unsigned int i, j, nbits, r, word, *roots;
r                1196 lib/bch.c      		for (j = 0, r = 2*i+1; j < m; j++) {
r                1197 lib/bch.c      			roots[r] = 1;
r                1198 lib/bch.c      			r = mod_s(bch, 2*r);
r                1207 lib/bch.c      			r = bch->a_pow_tab[i];
r                1210 lib/bch.c      				g->c[j] = gf_mul(bch, g->c[j], r)^g->c[j-1];
r                1212 lib/bch.c      			g->c[0] = gf_mul(bch, g->c[0], r);
r                 514 lib/bitmap.c   static int bitmap_set_region(const struct region *r,
r                 519 lib/bitmap.c   	if (r->end >= nbits)
r                 522 lib/bitmap.c   	for (start = r->start; start <= r->end; start += r->group_len)
r                 523 lib/bitmap.c   		bitmap_set(bitmap, start, min(r->end - start + 1, r->off));
r                 528 lib/bitmap.c   static int bitmap_check_region(const struct region *r)
r                 530 lib/bitmap.c   	if (r->start > r->end || r->group_len == 0 || r->off > r->group_len)
r                 578 lib/bitmap.c   static const char *bitmap_parse_region(const char *str, struct region *r)
r                 580 lib/bitmap.c   	str = bitmap_getnum(str, &r->start);
r                 590 lib/bitmap.c   	str = bitmap_getnum(str + 1, &r->end);
r                 600 lib/bitmap.c   	str = bitmap_getnum(str + 1, &r->off);
r                 607 lib/bitmap.c   	return bitmap_getnum(str + 1, &r->group_len);
r                 610 lib/bitmap.c   	r->end = r->start;
r                 612 lib/bitmap.c   	r->off = r->end + 1;
r                 613 lib/bitmap.c   	r->group_len = r->end + 1;
r                 644 lib/bitmap.c   	struct region r;
r                 654 lib/bitmap.c   		buf = bitmap_parse_region(buf, &r);
r                 658 lib/bitmap.c   		ret = bitmap_check_region(&r);
r                 662 lib/bitmap.c   		ret = bitmap_set_region(&r, maskp, nmaskbits);
r                  25 lib/crypto/des.c #define ROL(x, r) ((x) = rol32((x), (r)))
r                  26 lib/crypto/des.c #define ROR(x, r) ((x) = ror32((x), (r)))
r                 104 lib/decompress_unlzo.c 	u8 r = 0;
r                 235 lib/decompress_unlzo.c 			r = lzo1x_decompress_safe((u8 *) in_buf, src_len,
r                 238 lib/decompress_unlzo.c 			if (r != LZO_E_OK || dst_len != tmp) {
r                  40 lib/generic-radix-tree.c static inline unsigned genradix_root_to_depth(struct genradix_root *r)
r                  42 lib/generic-radix-tree.c 	return (unsigned long) r & GENRADIX_DEPTH_MASK;
r                  45 lib/generic-radix-tree.c static inline struct genradix_node *genradix_root_to_node(struct genradix_root *r)
r                  47 lib/generic-radix-tree.c 	return (void *) ((unsigned long) r & ~GENRADIX_DEPTH_MASK);
r                  56 lib/generic-radix-tree.c 	struct genradix_root *r = READ_ONCE(radix->root);
r                  57 lib/generic-radix-tree.c 	struct genradix_node *n = genradix_root_to_node(r);
r                  58 lib/generic-radix-tree.c 	unsigned level		= genradix_root_to_depth(r);
r                 113 lib/generic-radix-tree.c 		struct genradix_root *r = v, *new_root;
r                 115 lib/generic-radix-tree.c 		n	= genradix_root_to_node(r);
r                 116 lib/generic-radix-tree.c 		level	= genradix_root_to_depth(r);
r                 131 lib/generic-radix-tree.c 		if ((v = cmpxchg_release(&radix->root, r, new_root)) == r) {
r                 166 lib/generic-radix-tree.c 	struct genradix_root *r;
r                 170 lib/generic-radix-tree.c 	r = READ_ONCE(radix->root);
r                 171 lib/generic-radix-tree.c 	if (!r)
r                 174 lib/generic-radix-tree.c 	n	= genradix_root_to_node(r);
r                 175 lib/generic-radix-tree.c 	level	= genradix_root_to_depth(r);
r                 232 lib/generic-radix-tree.c 	struct genradix_root *r = xchg(&radix->root, NULL);
r                 234 lib/generic-radix-tree.c 	genradix_free_recurse(genradix_root_to_node(r),
r                 235 lib/generic-radix-tree.c 			      genradix_root_to_depth(r));
r                 347 lib/inflate.c    struct huft r;                /* table entry for structure assignment */
r                 507 lib/inflate.c            r.b = (uch)l;         /* bits to dump before this table */
r                 508 lib/inflate.c            r.e = (uch)(16 + j);  /* bits in this table */
r                 509 lib/inflate.c            r.v.t = q;            /* pointer to this table */
r                 511 lib/inflate.c            u[h-1][j] = r;        /* connect to last table */
r                 518 lib/inflate.c        r.b = (uch)(k - w);
r                 520 lib/inflate.c          r.e = 99;               /* out of values--invalid code */
r                 523 lib/inflate.c          r.e = (uch)(*p < 256 ? 16 : 15);    /* 256 is end-of-block code */
r                 524 lib/inflate.c          r.v.n = (ush)(*p);             /* simple code is just the value */
r                 529 lib/inflate.c          r.e = (uch)e[*p - s];   /* non-simple--look up in lists */
r                 530 lib/inflate.c          r.v.n = d[*p++ - s];
r                 537 lib/inflate.c          q[j] = r;
r                1089 lib/inflate.c    int r;                /* result code */
r                1105 lib/inflate.c      r = inflate_block(&e);
r                1106 lib/inflate.c      if (r)
r                1107 lib/inflate.c  	    return r;
r                 576 lib/iov_iter.c 	size_t n, r;
r                 584 lib/iov_iter.c 	bytes = n = push_pipe(i, bytes, &idx, &r);
r                 587 lib/iov_iter.c 	for ( ; n; idx = next_idx(idx, pipe), r = 0) {
r                 588 lib/iov_iter.c 		size_t chunk = min_t(size_t, n, PAGE_SIZE - r);
r                 590 lib/iov_iter.c 		sum = csum_and_memcpy(p + r, addr, chunk, sum, off);
r                 593 lib/iov_iter.c 		i->iov_offset = r + chunk;
r                 120 lib/kobject_uevent.c 	int r = -EINVAL;
r                 173 lib/kobject_uevent.c 	r = 0;
r                 175 lib/kobject_uevent.c 	if (r)
r                 179 lib/kobject_uevent.c 	return r;
r                 199 lib/kobject_uevent.c 	int r;
r                 201 lib/kobject_uevent.c 	r = kobject_action_type(buf, count, &action, &action_args);
r                 202 lib/kobject_uevent.c 	if (r) {
r                 208 lib/kobject_uevent.c 		r = kobject_uevent_env(kobj, action, no_uuid_envp);
r                 212 lib/kobject_uevent.c 	r = kobject_action_args(action_args,
r                 214 lib/kobject_uevent.c 	if (r == -EINVAL) {
r                 219 lib/kobject_uevent.c 	if (r)
r                 222 lib/kobject_uevent.c 	r = kobject_uevent_env(kobj, action, env->envp);
r                 225 lib/kobject_uevent.c 	if (r) {
r                 232 lib/kobject_uevent.c 	return r;
r                  25 lib/math/gcd.c 	unsigned long r = a | b;
r                  28 lib/math/gcd.c 		return r;
r                  32 lib/math/gcd.c 		return r & -r;
r                  37 lib/math/gcd.c 			return r & -r;
r                  39 lib/math/gcd.c 			return a << __ffs(r);
r                  52 lib/math/gcd.c 	unsigned long r = a | b;
r                  55 lib/math/gcd.c 		return r;
r                  58 lib/math/gcd.c 	r &= -r;
r                  60 lib/math/gcd.c 	while (!(b & r))
r                  62 lib/math/gcd.c 	if (b == r)
r                  63 lib/math/gcd.c 		return r;
r                  66 lib/math/gcd.c 		while (!(a & r))
r                  68 lib/math/gcd.c 		if (a == r)
r                  69 lib/math/gcd.c 			return r;
r                  77 lib/math/gcd.c 		if (a & r)
r                 144 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 147 lib/mpi/longlong.h 		"=q" ((USItype)(r)) \
r                 162 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 165 lib/mpi/longlong.h 	(r) = __r; \
r                 287 lib/mpi/longlong.h #define udiv_qrnnd(q, r, nh, nl, d) \
r                 290 lib/mpi/longlong.h 		"=r" ((USItype)(r)) \
r                 339 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 342 lib/mpi/longlong.h 	(r) = __r; \
r                 379 lib/mpi/longlong.h #define sdiv_qrnnd(q, r, n1, n0, d) \
r                 388 lib/mpi/longlong.h 	(q) = __xx.__i.__l; (r) = __xx.__i.__h; \
r                 421 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 424 lib/mpi/longlong.h 	     "=d" (r) \
r                 440 lib/mpi/longlong.h #define rshift_rhlc(r, h, l, c) \
r                 443 lib/mpi/longlong.h 	   "=r" (r) : "r" (h), "r" (l), "rn" (c))
r                 486 lib/mpi/longlong.h #define udiv_qrnnd(q, r, nh, nl, d) \
r                 496 lib/mpi/longlong.h 	(r) = __rq.__i.__l; (q) = __rq.__i.__h; \
r                 499 lib/mpi/longlong.h #define rshift_rhlc(r, h, l, c) \
r                 506 lib/mpi/longlong.h 	: "=d" (r) : "dI" (__nn.__ll), "dI" (c)); \
r                 541 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 544 lib/mpi/longlong.h 	     "=d" ((USItype)(r)) \
r                 549 lib/mpi/longlong.h #define sdiv_qrnnd(q, r, n1, n0, d) \
r                 552 lib/mpi/longlong.h 	     "=d" ((USItype)(r)) \
r                 622 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 629 lib/mpi/longlong.h 	(r) = (n0) - __q.__l * (d); (q) = __q.__l; })
r                 705 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 714 lib/mpi/longlong.h 	(r) = __xx.__i.__l; (q) = __xx.__i.__h; })
r                 827 lib/mpi/longlong.h #define sdiv_qrnnd(q, r, nh, nl, d) \
r                 829 lib/mpi/longlong.h 	: "=r" ((SItype)(q)), "=q" ((SItype)(r)) \
r                 983 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                 991 lib/mpi/longlong.h 	(r) = (n0) - __q * (d); \
r                1007 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                1048 lib/mpi/longlong.h 	"=r" ((USItype)(r)) \
r                1107 lib/mpi/longlong.h #define udiv_qrnnd(q, r, n1, n0, d) \
r                1133 lib/mpi/longlong.h 	     "=&r" ((USItype)(r))					\
r                1177 lib/mpi/longlong.h #define sdiv_qrnnd(q, r, n1, n0, d) \
r                1184 lib/mpi/longlong.h 	: "=g" (q), "=g" (r) \
r                1308 lib/mpi/longlong.h #define __udiv_qrnnd_c(q, r, n1, n0, d) \
r                1339 lib/mpi/longlong.h 	(r) = __r0; \
r                1345 lib/mpi/longlong.h #define udiv_qrnnd(q, r, nh, nl, d) \
r                1349 lib/mpi/longlong.h 	(r) = __r; \
r                 105 lib/mpi/mpih-div.c 				mpi_limb_t r;
r                 118 lib/mpi/mpih-div.c 					r = n0 + d1;
r                 119 lib/mpi/mpih-div.c 					if (r < d1) {	/* Carry in the addition? */
r                 120 lib/mpi/mpih-div.c 						add_ssaaaa(n1, n0, r - d0,
r                 128 lib/mpi/mpih-div.c 					udiv_qrnnd(q, r, n1, n0, d1);
r                 134 lib/mpi/mpih-div.c 				if (n1 > r || (n1 == r && n0 > n2)) {
r                 138 lib/mpi/mpih-div.c 					r += d1;
r                 139 lib/mpi/mpih-div.c 					if (r >= d1)	/* If not carry, test Q again.  */
r                 144 lib/mpi/mpih-div.c 				sub_ddmmss(n1, n0, r, n2, n1, n0);
r                 189 lib/mpi/mpih-div.c 					mpi_limb_t r;
r                 191 lib/mpi/mpih-div.c 					udiv_qrnnd(q, r, n0, np[dsize - 1], dX);
r                 194 lib/mpi/mpih-div.c 					while (n1 > r
r                 195 lib/mpi/mpih-div.c 					       || (n1 == r
r                 198 lib/mpi/mpih-div.c 						r += dX;
r                 199 lib/mpi/mpih-div.c 						if (r < dX)	/* I.e. "carry in previous addition?" */
r                 223 lib/plist.c    	unsigned int r = local_clock();
r                 231 lib/plist.c    		r = r * 193939 % 47629;
r                 232 lib/plist.c    		i = r % ARRAY_SIZE(test_node);
r                 234 lib/plist.c    			r = r * 193939 % 47629;
r                 235 lib/plist.c    			test_node[i].prio = r % 99;
r                  15 lib/reed_solomon/decode_rs.c 	int i, j, r, k, pad;
r                 132 lib/reed_solomon/decode_rs.c 	r = no_eras;
r                 134 lib/reed_solomon/decode_rs.c 	while (++r <= nroots) {	/* r is the step number */
r                 137 lib/reed_solomon/decode_rs.c 		for (i = 0; i < r; i++) {
r                 138 lib/reed_solomon/decode_rs.c 			if ((lambda[i] != 0) && (s[r - i - 1] != nn)) {
r                 142 lib/reed_solomon/decode_rs.c 							  s[r - i - 1])];
r                 161 lib/reed_solomon/decode_rs.c 			if (2 * el <= r + no_eras - 1) {
r                 162 lib/reed_solomon/decode_rs.c 				el = r + no_eras - el;
r                  78 lib/reed_solomon/test_rslib.c 	uint16_t	*r;		/* received word */
r                 123 lib/reed_solomon/test_rslib.c 	ws->r = ws->c + nn;
r                 124 lib/reed_solomon/test_rslib.c 	ws->s = ws->r + nn;
r                 160 lib/reed_solomon/test_rslib.c 	uint16_t *r = ws->r;
r                 173 lib/reed_solomon/test_rslib.c 	memcpy(r, c, len * sizeof(*r));
r                 190 lib/reed_solomon/test_rslib.c 		r[errloc] ^= errval;
r                 213 lib/reed_solomon/test_rslib.c 			r[errloc] ^= errval;
r                 269 lib/reed_solomon/test_rslib.c 	uint16_t *r = ws->r;
r                 279 lib/reed_solomon/test_rslib.c 			derrs = decode_rs16(rs, r, r + dlen, dlen,
r                 281 lib/reed_solomon/test_rslib.c 			fix_err(r, derrs, corr, derrlocs);
r                 284 lib/reed_solomon/test_rslib.c 			compute_syndrome(rs, r, len, s);
r                 287 lib/reed_solomon/test_rslib.c 			fix_err(r, derrs, corr, derrlocs);
r                 290 lib/reed_solomon/test_rslib.c 			derrs = decode_rs16(rs, r, r + dlen, dlen,
r                 307 lib/reed_solomon/test_rslib.c 		if (memcmp(r, c, len * sizeof(*r)))
r                 374 lib/reed_solomon/test_rslib.c 	uint16_t *r = ws->r;
r                 379 lib/reed_solomon/test_rslib.c 		derrs = decode_rs16(rs, r, r + dlen, dlen,
r                 381 lib/reed_solomon/test_rslib.c 		fix_err(r, derrs, corr, derrlocs);
r                 396 lib/reed_solomon/test_rslib.c 			encode_rs16(rs, r, dlen, corr, 0);
r                 398 lib/reed_solomon/test_rslib.c 			if (memcmp(r + dlen, corr, nroots * sizeof(*corr)))
r                  64 lib/refcount.c bool refcount_add_not_zero_checked(unsigned int i, refcount_t *r)
r                  66 lib/refcount.c 	unsigned int new, val = atomic_read(&r->refs);
r                  79 lib/refcount.c 	} while (!atomic_try_cmpxchg_relaxed(&r->refs, &val, new));
r                 103 lib/refcount.c void refcount_add_checked(unsigned int i, refcount_t *r)
r                 105 lib/refcount.c 	WARN_ONCE(!refcount_add_not_zero_checked(i, r), "refcount_t: addition on 0; use-after-free.\n");
r                 121 lib/refcount.c bool refcount_inc_not_zero_checked(refcount_t *r)
r                 123 lib/refcount.c 	unsigned int new, val = atomic_read(&r->refs);
r                 134 lib/refcount.c 	} while (!atomic_try_cmpxchg_relaxed(&r->refs, &val, new));
r                 154 lib/refcount.c void refcount_inc_checked(refcount_t *r)
r                 156 lib/refcount.c 	WARN_ONCE(!refcount_inc_not_zero_checked(r), "refcount_t: increment on 0; use-after-free.\n");
r                 180 lib/refcount.c bool refcount_sub_and_test_checked(unsigned int i, refcount_t *r)
r                 182 lib/refcount.c 	unsigned int new, val = atomic_read(&r->refs);
r                 194 lib/refcount.c 	} while (!atomic_try_cmpxchg_release(&r->refs, &val, new));
r                 218 lib/refcount.c bool refcount_dec_and_test_checked(refcount_t *r)
r                 220 lib/refcount.c 	return refcount_sub_and_test_checked(1, r);
r                 234 lib/refcount.c void refcount_dec_checked(refcount_t *r)
r                 236 lib/refcount.c 	WARN_ONCE(refcount_dec_and_test_checked(r), "refcount_t: decrement hit 0; leaking memory.\n");
r                 256 lib/refcount.c bool refcount_dec_if_one(refcount_t *r)
r                 260 lib/refcount.c 	return atomic_try_cmpxchg_release(&r->refs, &val, 0);
r                 275 lib/refcount.c bool refcount_dec_not_one(refcount_t *r)
r                 277 lib/refcount.c 	unsigned int new, val = atomic_read(&r->refs);
r                 292 lib/refcount.c 	} while (!atomic_try_cmpxchg_release(&r->refs, &val, new));
r                 314 lib/refcount.c bool refcount_dec_and_mutex_lock(refcount_t *r, struct mutex *lock)
r                 316 lib/refcount.c 	if (refcount_dec_not_one(r))
r                 320 lib/refcount.c 	if (!refcount_dec_and_test(r)) {
r                 345 lib/refcount.c bool refcount_dec_and_lock(refcount_t *r, spinlock_t *lock)
r                 347 lib/refcount.c 	if (refcount_dec_not_one(r))
r                 351 lib/refcount.c 	if (!refcount_dec_and_test(r)) {
r                 373 lib/refcount.c bool refcount_dec_and_lock_irqsave(refcount_t *r, spinlock_t *lock,
r                 376 lib/refcount.c 	if (refcount_dec_not_one(r))
r                 380 lib/refcount.c 	if (!refcount_dec_and_test(r)) {
r                 587 lib/string.c   	const char *r;
r                 591 lib/string.c   		for (r = reject; *r != '\0'; ++r) {
r                 592 lib/string.c   			if (*p == *r)
r                1053 lib/string.c   		u8 *r;
r                1056 lib/string.c   		r = check_bytes8(start, value, prefix);
r                1057 lib/string.c   		if (r)
r                1058 lib/string.c   			return r;
r                 167 lib/test_hexdump.c 	int ae, he, e, f, r;
r                 174 lib/test_hexdump.c 	r = hex_dump_to_buffer(data_b, len, rs, gs, buf, buflen, ascii);
r                 195 lib/test_hexdump.c 	a = r == e && !memcmp(test, buf, TEST_HEXDUMP_BUF_SIZE);
r                 202 lib/test_hexdump.c 		pr_err("Result: %d '%s'\n", r, buf);
r                  25 lib/test_memcat_p.c 	int err = -ENOMEM, i, r, total = 0;
r                  35 lib/test_memcat_p.c 	for (i = 0, r = 1; i < INPUT_MAX - 1; i++) {
r                  47 lib/test_memcat_p.c 		r = (r * 725861) % 6599;
r                  48 lib/test_memcat_p.c 		in0[i]->num = r;
r                  49 lib/test_memcat_p.c 		in1[i]->num = -r;
r                 218 lib/test_overflow.c #define check_one_op(t, fmt, op, sym, a, b, r, of) do {		\
r                 229 lib/test_overflow.c 	if (_r != r) {						\
r                 232 lib/test_overflow.c 			a, b, r, _r, #t);			\
r                  17 lib/test_sort.c 	int *a, i, r = 1, err = -ENOMEM;
r                  24 lib/test_sort.c 		r = (r * 725861) % 6599;
r                  25 lib/test_sort.c 		a[i] = r;
r                 307 lib/test_vmalloc.c 		unsigned int r;
r                 309 lib/test_vmalloc.c 		get_random_bytes(&r, sizeof(i));
r                 310 lib/test_vmalloc.c 		size = (r % (PAGE_SIZE / 4)) + 1;
r                 315 lib/test_vmalloc.c 		get_random_bytes(&r, sizeof(i));
r                 185 lib/vsprintf.c char *put_dec_trunc8(char *buf, unsigned r)
r                 190 lib/vsprintf.c 	if (r < 100)
r                 194 lib/vsprintf.c 	q = (r * (u64)0x28f5c29) >> 32;
r                 195 lib/vsprintf.c 	*((u16 *)buf) = decpair[r - 100*q];
r                 203 lib/vsprintf.c 	r = (q * (u64)0x28f5c29) >> 32;
r                 204 lib/vsprintf.c 	*((u16 *)buf) = decpair[q - 100*r];
r                 208 lib/vsprintf.c 	if (r < 100)
r                 212 lib/vsprintf.c 	q = (r * 0x147b) >> 19;
r                 213 lib/vsprintf.c 	*((u16 *)buf) = decpair[r - 100*q];
r                 217 lib/vsprintf.c 	r = q;
r                 220 lib/vsprintf.c 	*((u16 *)buf) = decpair[r];
r                 221 lib/vsprintf.c 	buf += r < 10 ? 1 : 2;
r                 227 lib/vsprintf.c char *put_dec_full8(char *buf, unsigned r)
r                 232 lib/vsprintf.c 	q = (r * (u64)0x28f5c29) >> 32;
r                 233 lib/vsprintf.c 	*((u16 *)buf) = decpair[r - 100*q];
r                 237 lib/vsprintf.c 	r = (q * (u64)0x28f5c29) >> 32;
r                 238 lib/vsprintf.c 	*((u16 *)buf) = decpair[q - 100*r];
r                 242 lib/vsprintf.c 	q = (r * 0x147b) >> 19;
r                 243 lib/vsprintf.c 	*((u16 *)buf) = decpair[r - 100*q];
r                 267 lib/vsprintf.c put_dec_full4(char *buf, unsigned r)
r                 272 lib/vsprintf.c 	q = (r * 0x147b) >> 19;
r                 273 lib/vsprintf.c 	*((u16 *)buf) = decpair[r - 100*q];
r                1718 lib/vsprintf.c char *date_str(char *buf, char *end, const struct rtc_time *tm, bool r)
r                1720 lib/vsprintf.c 	int year = tm->tm_year + (r ? 0 : 1900);
r                1721 lib/vsprintf.c 	int mon = tm->tm_mon + (r ? 0 : 1);
r                1737 lib/vsprintf.c char *time_str(char *buf, char *end, const struct rtc_time *tm, bool r)
r                  52 lib/xxhash.c   #define xxh_rotl32(x, r) ((x << r) | (x >> (32 - r)))
r                  53 lib/xxhash.c   #define xxh_rotl64(x, r) ((x << r) | (x >> (64 - r)))
r                  36 lib/xz/xz_crc32.c 	uint32_t r;
r                  39 lib/xz/xz_crc32.c 		r = i;
r                  41 lib/xz/xz_crc32.c 			r = (r >> 1) ^ (poly & ~((r & 1) - 1));
r                  43 lib/xz/xz_crc32.c 		xz_crc32_table[i] = r;
r                 396 lib/zstd/huf_compress.c 		U32 r = BIT_highbit32(count[n] + 1);
r                 397 lib/zstd/huf_compress.c 		rank[r].base++;
r                 405 lib/zstd/huf_compress.c 		U32 const r = BIT_highbit32(c + 1) + 1;
r                 406 lib/zstd/huf_compress.c 		U32 pos = rank[r].curr++;
r                 407 lib/zstd/huf_compress.c 		while ((pos > rank[r].base) && (c > huffNode[pos - 1].count))
r                 554 lib/zstd/huf_decompress.c 			U32 const r = rankStart[w]++;
r                 555 lib/zstd/huf_decompress.c 			sortedSymbol[r].symbol = (BYTE)s;
r                 556 lib/zstd/huf_decompress.c 			sortedSymbol[r].weight = (BYTE)w;
r                 620 mm/hmm.c       		int r;
r                 622 mm/hmm.c       		r = hmm_vma_handle_pte(walk, addr, end, pmdp, ptep, &pfns[i]);
r                 623 mm/hmm.c       		if (r) {
r                 626 mm/hmm.c       			return r;
r                 356 mm/memblock.c  static void __init_memblock memblock_remove_region(struct memblock_type *type, unsigned long r)
r                 358 mm/memblock.c  	type->total_size -= type->regions[r].size;
r                 359 mm/memblock.c  	memmove(&type->regions[r], &type->regions[r + 1],
r                 360 mm/memblock.c  		(type->cnt - (r + 1)) * sizeof(type->regions[r]));
r                 859 mm/memblock.c  		struct memblock_region *r = &type->regions[i];
r                 862 mm/memblock.c  			r->flags |= flag;
r                 864 mm/memblock.c  			r->flags &= ~flag;
r                 948 mm/memblock.c  		struct memblock_region *r = &type->regions[*idx];
r                 949 mm/memblock.c  		phys_addr_t base = r->base;
r                 950 mm/memblock.c  		phys_addr_t size = r->size;
r                1052 mm/memblock.c  			struct memblock_region *r;
r                1056 mm/memblock.c  			r = &type_b->regions[idx_b];
r                1057 mm/memblock.c  			r_start = idx_b ? r[-1].base + r[-1].size : 0;
r                1059 mm/memblock.c  				r->base : PHYS_ADDR_MAX;
r                1156 mm/memblock.c  			struct memblock_region *r;
r                1160 mm/memblock.c  			r = &type_b->regions[idx_b];
r                1161 mm/memblock.c  			r_start = idx_b ? r[-1].base + r[-1].size : 0;
r                1163 mm/memblock.c  				r->base : PHYS_ADDR_MAX;
r                1201 mm/memblock.c  	struct memblock_region *r;
r                1204 mm/memblock.c  		r = &type->regions[*idx];
r                1206 mm/memblock.c  		if (PFN_UP(r->base) >= PFN_DOWN(r->base + r->size))
r                1208 mm/memblock.c  		if (nid == MAX_NUMNODES || nid == r->nid)
r                1217 mm/memblock.c  		*out_start_pfn = PFN_UP(r->base);
r                1219 mm/memblock.c  		*out_end_pfn = PFN_DOWN(r->base + r->size);
r                1221 mm/memblock.c  		*out_nid = r->nid;
r                1600 mm/memblock.c  	struct memblock_region *r;
r                1603 mm/memblock.c  	for_each_memblock(memory, r) {
r                1604 mm/memblock.c  		start_pfn = memblock_region_memory_base_pfn(r);
r                1605 mm/memblock.c  		end_pfn = memblock_region_memory_end_pfn(r);
r                1630 mm/memblock.c  	struct memblock_region *r;
r                1637 mm/memblock.c  	for_each_memblock(memory, r) {
r                1638 mm/memblock.c  		if (limit <= r->size) {
r                1639 mm/memblock.c  			max_addr = r->base + limit;
r                1642 mm/memblock.c  		limit -= r->size;
r                1807 mm/memblock.c  	struct memblock_region *r;
r                1809 mm/memblock.c  	for_each_memblock(memory, r) {
r                1810 mm/memblock.c  		orig_start = r->base;
r                1811 mm/memblock.c  		orig_end = r->base + r->size;
r                1819 mm/memblock.c  			r->base = start;
r                1820 mm/memblock.c  			r->size = end - start;
r                1823 mm/memblock.c  					       r - memblock.memory.regions);
r                1824 mm/memblock.c  			r--;
r                2854 mm/migrate.c   		int r;
r                2903 mm/migrate.c   		r = migrate_page(mapping, newpage, page, MIGRATE_SYNC_NO_COPY);
r                2904 mm/migrate.c   		if (r != MIGRATEPAGE_SUCCESS)
r                5853 mm/page_alloc.c 	static struct memblock_region *r;
r                5856 mm/page_alloc.c 		if (!r || *pfn >= memblock_region_memory_end_pfn(r)) {
r                5857 mm/page_alloc.c 			for_each_memblock(memory, r) {
r                5858 mm/page_alloc.c 				if (*pfn < memblock_region_memory_end_pfn(r))
r                5862 mm/page_alloc.c 		if (*pfn >= memblock_region_memory_base_pfn(r) &&
r                5863 mm/page_alloc.c 		    memblock_is_mirror(r)) {
r                5864 mm/page_alloc.c 			*pfn = memblock_region_memory_end_pfn(r);
r                6484 mm/page_alloc.c 		struct memblock_region *r;
r                6486 mm/page_alloc.c 		for_each_memblock(memory, r) {
r                6487 mm/page_alloc.c 			start_pfn = clamp(memblock_region_memory_base_pfn(r),
r                6489 mm/page_alloc.c 			end_pfn = clamp(memblock_region_memory_end_pfn(r),
r                6493 mm/page_alloc.c 			    memblock_is_mirror(r))
r                6497 mm/page_alloc.c 			    !memblock_is_mirror(r))
r                7114 mm/page_alloc.c 	struct memblock_region *r;
r                7124 mm/page_alloc.c 		for_each_memblock(memory, r) {
r                7125 mm/page_alloc.c 			if (!memblock_is_hotpluggable(r))
r                7128 mm/page_alloc.c 			nid = r->nid;
r                7130 mm/page_alloc.c 			usable_startpfn = PFN_DOWN(r->base);
r                7145 mm/page_alloc.c 		for_each_memblock(memory, r) {
r                7146 mm/page_alloc.c 			if (memblock_is_mirror(r))
r                7149 mm/page_alloc.c 			nid = r->nid;
r                7151 mm/page_alloc.c 			usable_startpfn = memblock_region_memory_base_pfn(r);
r                 156 net/9p/client.c 		int token, r;
r                 162 net/9p/client.c 			r = match_int(&args[0], &option);
r                 163 net/9p/client.c 			if (r < 0) {
r                 166 net/9p/client.c 				ret = r;
r                 206 net/9p/client.c 			r = get_protocol_version(s);
r                 207 net/9p/client.c 			if (r < 0)
r                 208 net/9p/client.c 				ret = r;
r                 210 net/9p/client.c 				clnt->proto_version = r;
r                 365 net/9p/client.c static int p9_tag_remove(struct p9_client *c, struct p9_req_t *r)
r                 368 net/9p/client.c 	u16 tag = r->tc.tag;
r                 370 net/9p/client.c 	p9_debug(P9_DEBUG_MUX, "clnt %p req %p tag: %d\n", c, r, tag);
r                 374 net/9p/client.c 	return p9_req_put(r);
r                 379 net/9p/client.c 	struct p9_req_t *r = container_of(ref, struct p9_req_t, refcount);
r                 380 net/9p/client.c 	p9_fcall_fini(&r->tc);
r                 381 net/9p/client.c 	p9_fcall_fini(&r->rc);
r                 382 net/9p/client.c 	kmem_cache_free(p9_req_cache, r);
r                 385 net/9p/client.c int p9_req_put(struct p9_req_t *r)
r                 387 net/9p/client.c 	return kref_put(&r->refcount, p9_req_free);
r                 764 net/9p/trans_fd.c 		int r;
r                 769 net/9p/trans_fd.c 			r = match_int(&args[0], &option);
r                 770 net/9p/trans_fd.c 			if (r < 0) {
r                 200 net/9p/trans_rdma.c 		int r;
r                 205 net/9p/trans_rdma.c 			r = match_int(&args[0], &option);
r                 206 net/9p/trans_rdma.c 			if (r < 0) {
r                 253 net/9p/trans_xen.c static irqreturn_t xen_9pfs_front_event_handler(int irq, void *r)
r                 255 net/9p/trans_xen.c 	struct xen_9pfs_dataring *ring = r;
r                  80 net/appletalk/atalk_proc.c 	struct atalk_route *r;
r                  82 net/appletalk/atalk_proc.c 	for (r = atalk_routes; pos && r; r = r->next)
r                  85 net/appletalk/atalk_proc.c 	return r;
r                  99 net/appletalk/atalk_proc.c 	struct atalk_route *r;
r                 103 net/appletalk/atalk_proc.c 		r = NULL;
r                 105 net/appletalk/atalk_proc.c 			r = atalk_routes;
r                 108 net/appletalk/atalk_proc.c 	r = v;
r                 109 net/appletalk/atalk_proc.c 	r = r->next;
r                 111 net/appletalk/atalk_proc.c 	return r;
r                 431 net/appletalk/ddp.c 	struct atalk_route *r;
r                 434 net/appletalk/ddp.c 	for (r = atalk_routes; r; r = r->next) {
r                 435 net/appletalk/ddp.c 		if (!(r->flags & RTF_UP))
r                 438 net/appletalk/ddp.c 		if (r->target.s_net == target->s_net) {
r                 439 net/appletalk/ddp.c 			if (r->flags & RTF_HOST) {
r                 444 net/appletalk/ddp.c 				if (r->target.s_node == target->s_node)
r                 451 net/appletalk/ddp.c 				net_route = r;
r                 460 net/appletalk/ddp.c 		r = net_route;
r                 462 net/appletalk/ddp.c 		r = &atrtr_default;
r                 464 net/appletalk/ddp.c 		r = NULL;
r                 467 net/appletalk/ddp.c 	return r;
r                 495 net/appletalk/ddp.c static int atrtr_create(struct rtentry *r, struct net_device *devhint)
r                 497 net/appletalk/ddp.c 	struct sockaddr_at *ta = (struct sockaddr_at *)&r->rt_dst;
r                 498 net/appletalk/ddp.c 	struct sockaddr_at *ga = (struct sockaddr_at *)&r->rt_gateway;
r                 516 net/appletalk/ddp.c 		if (r->rt_flags != rt->flags)
r                 567 net/appletalk/ddp.c 	rt->flags   = r->rt_flags;
r                 580 net/appletalk/ddp.c 	struct atalk_route **r = &atalk_routes;
r                 585 net/appletalk/ddp.c 	while ((tmp = *r) != NULL) {
r                 589 net/appletalk/ddp.c 			*r = tmp->next;
r                 594 net/appletalk/ddp.c 		r = &tmp->next;
r                 608 net/appletalk/ddp.c 	struct atalk_route **r = &atalk_routes;
r                 612 net/appletalk/ddp.c 	while ((tmp = *r) != NULL) {
r                 614 net/appletalk/ddp.c 			*r = tmp->next;
r                 618 net/appletalk/ddp.c 			r = &tmp->next;
r                 580 net/batman-adv/tp_meter.c 	int r;
r                 609 net/batman-adv/tp_meter.c 	r = batadv_send_skb_to_orig(skb, orig_node, NULL);
r                 610 net/batman-adv/tp_meter.c 	if (r == NET_XMIT_SUCCESS)
r                1163 net/batman-adv/tp_meter.c 	int r, ret;
r                1199 net/batman-adv/tp_meter.c 	r = batadv_send_skb_to_orig(skb, orig_node, NULL);
r                1200 net/batman-adv/tp_meter.c 	if (unlikely(r < 0) || r == NET_XMIT_DROP) {
r                  55 net/bluetooth/bnep/netdev.c 	struct bnep_set_filter_req *r;
r                  61 net/bluetooth/bnep/netdev.c 	size = sizeof(*r) + (BNEP_MAX_MULTICAST_FILTERS + 1) * ETH_ALEN * 2;
r                  68 net/bluetooth/bnep/netdev.c 	r = (void *) skb->data;
r                  69 net/bluetooth/bnep/netdev.c 	__skb_put(skb, sizeof(*r));
r                  71 net/bluetooth/bnep/netdev.c 	r->type = BNEP_CONTROL;
r                  72 net/bluetooth/bnep/netdev.c 	r->ctrl = BNEP_FILTER_MULTI_ADDR_SET;
r                  80 net/bluetooth/bnep/netdev.c 		r->len = htons(ETH_ALEN * 2);
r                 101 net/bluetooth/bnep/netdev.c 		r->len = htons(skb->len - len);
r                 427 net/bluetooth/rfcomm/core.c 	int r;
r                 431 net/bluetooth/rfcomm/core.c 	r = __rfcomm_dlc_open(d, src, dst, channel);
r                 434 net/bluetooth/rfcomm/core.c 	return r;
r                 505 net/bluetooth/rfcomm/core.c 	int r = 0;
r                 524 net/bluetooth/rfcomm/core.c 					r = __rfcomm_dlc_close(d, err);
r                 534 net/bluetooth/rfcomm/core.c 	return r;
r                 290 net/bluetooth/smp.c 		  const u8 n1[16], const u8 n2[16], const u8 r[16],
r                 299 net/bluetooth/smp.c 	SMP_DBG("r %16phN io_cap %3phN a1 %7phN a2 %7phN", r, io_cap, a1, a2);
r                 304 net/bluetooth/smp.c 	memcpy(m + 17, r, 16);
r                 379 net/bluetooth/smp.c static int smp_e(const u8 *k, u8 *r)
r                 385 net/bluetooth/smp.c 	SMP_DBG("k %16phN r %16phN", k, r);
r                 397 net/bluetooth/smp.c 	swap_buf(r, data, 16);
r                 402 net/bluetooth/smp.c 	swap_buf(data, r, 16);
r                 404 net/bluetooth/smp.c 	SMP_DBG("r %16phN", r);
r                 411 net/bluetooth/smp.c 		  const u8 r[16], const u8 preq[7], const u8 pres[7], u8 _iat,
r                 417 net/bluetooth/smp.c 	SMP_DBG("k %16phN r %16phN", k, r);
r                 432 net/bluetooth/smp.c 	u128_xor((u128 *) res, (u128 *) r, (u128 *) p1);
r                 475 net/bluetooth/smp.c static int smp_ah(const u8 irk[16], const u8 r[3], u8 res[3])
r                 481 net/bluetooth/smp.c 	memcpy(_res, r, 3);
r                1439 net/bluetooth/smp.c 	u8 io_cap[3], r[16];
r                1456 net/bluetooth/smp.c 	memset(r, 0, sizeof(r));
r                1459 net/bluetooth/smp.c 		put_unaligned_le32(hcon->passkey_notify, r);
r                1462 net/bluetooth/smp.c 		memcpy(r, smp->rr, 16);
r                1464 net/bluetooth/smp.c 	smp_f6(smp->tfm_cmac, smp->mackey, smp->prnd, smp->rrnd, r, io_cap,
r                1475 net/bluetooth/smp.c 	u8 r;
r                1477 net/bluetooth/smp.c 	r = ((hcon->passkey_notify >> smp->passkey_round) & 0x01);
r                1478 net/bluetooth/smp.c 	r |= 0x80;
r                1482 net/bluetooth/smp.c 	if (smp_f4(smp->tfm_cmac, smp->local_pk, smp->remote_pk, smp->prnd, r,
r                1496 net/bluetooth/smp.c 	u8 cfm[16], r;
r                1504 net/bluetooth/smp.c 		r = ((hcon->passkey_notify >> smp->passkey_round) & 0x01);
r                1505 net/bluetooth/smp.c 		r |= 0x80;
r                1508 net/bluetooth/smp.c 			   smp->rrnd, r, cfm))
r                2810 net/bluetooth/smp.c 	u8 io_cap[3], r[16], e[16];
r                2833 net/bluetooth/smp.c 	memset(r, 0, sizeof(r));
r                2836 net/bluetooth/smp.c 		put_unaligned_le32(hcon->passkey_notify, r);
r                2838 net/bluetooth/smp.c 		memcpy(r, smp->lr, 16);
r                2840 net/bluetooth/smp.c 	err = smp_f6(smp->tfm_cmac, smp->mackey, smp->rrnd, smp->prnd, r,
r                3560 net/bluetooth/smp.c 	const u8 r[3] = { 0x94, 0x81, 0x70 };
r                3565 net/bluetooth/smp.c 	err = smp_ah(irk, r, res);
r                3580 net/bluetooth/smp.c 	const u8 r[16] = {
r                3595 net/bluetooth/smp.c 	err = smp_c1(k, r, preq, pres, _iat, &ia, _rat, &ra, res);
r                3710 net/bluetooth/smp.c 	const u8 r[16] = {
r                3722 net/bluetooth/smp.c 	err = smp_f6(tfm_cmac, w, n1, n2, r, io_cap, a1, a2, res);
r                 228 net/can/gw.c   static int cgw_chk_csum_parms(s8 fr, s8 to, s8 re, struct rtcanmsg *r)
r                 232 net/can/gw.c   	if (r->flags & CGW_FLAGS_CAN_FD)
r                 736 net/can/gw.c   	struct rtcanmsg *r = nlmsg_data(nlh);
r                 756 net/can/gw.c   	if (r->flags & CGW_FLAGS_CAN_FD) {
r                 908 net/can/gw.c   						 c->result_idx, r);
r                 931 net/can/gw.c   						 c->result_idx, r);
r                 992 net/can/gw.c   	struct rtcanmsg *r;
r                1002 net/can/gw.c   	if (nlmsg_len(nlh) < sizeof(*r))
r                1005 net/can/gw.c   	r = nlmsg_data(nlh);
r                1006 net/can/gw.c   	if (r->can_family != AF_CAN)
r                1010 net/can/gw.c   	if (r->gwtype != CGW_TYPE_CAN_CAN)
r                1048 net/can/gw.c   	gwj->flags = r->flags;
r                1049 net/can/gw.c   	gwj->gwtype = r->gwtype;
r                1106 net/can/gw.c   	struct rtcanmsg *r;
r                1115 net/can/gw.c   	if (nlmsg_len(nlh) < sizeof(*r))
r                1118 net/can/gw.c   	r = nlmsg_data(nlh);
r                1119 net/can/gw.c   	if (r->can_family != AF_CAN)
r                1123 net/can/gw.c   	if (r->gwtype != CGW_TYPE_CAN_CAN)
r                1142 net/can/gw.c   		if (gwj->flags != r->flags)
r                 191 net/can/proc.c 	struct receiver *r;
r                 193 net/can/proc.c 	hlist_for_each_entry_rcu(r, rx_list, list) {
r                 194 net/can/proc.c 		char *fmt = (r->can_id & CAN_EFF_FLAG)?
r                 198 net/can/proc.c 		seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask,
r                 199 net/can/proc.c 				r->func, r->data, r->matches, r->ident);
r                  76 net/ceph/crush/mapper.c 			      int x, int r)
r                  78 net/ceph/crush/mapper.c 	unsigned int pr = r % bucket->size;
r                 130 net/ceph/crush/mapper.c 		bucket->size, x, r, pr, s);
r                 136 net/ceph/crush/mapper.c 				 struct crush_work_bucket *work, int x, int r)
r                 138 net/ceph/crush/mapper.c 	return bucket_perm_choose(&bucket->h, work, x, r);
r                 143 net/ceph/crush/mapper.c 			      int x, int r)
r                 149 net/ceph/crush/mapper.c 					 r, bucket->h.id);
r                 153 net/ceph/crush/mapper.c 			i, x, r, bucket->h.items[i], bucket->item_weights[i],
r                 197 net/ceph/crush/mapper.c 			      int x, int r)
r                 210 net/ceph/crush/mapper.c 		t = (__u64)crush_hash32_4(bucket->h.hash, x, n, r,
r                 229 net/ceph/crush/mapper.c 			       int x, int r)
r                 237 net/ceph/crush/mapper.c 		draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r);
r                 327 net/ceph/crush/mapper.c 				int x, int r,
r                 340 net/ceph/crush/mapper.c 			u = crush_hash32_3(bucket->h.hash, x, ids[i], r);
r                 378 net/ceph/crush/mapper.c 			       int x, int r,
r                 382 net/ceph/crush/mapper.c 	dprintk(" crush_bucket_choose %d x=%d r=%d\n", in->id, x, r);
r                 388 net/ceph/crush/mapper.c 			work, x, r);
r                 391 net/ceph/crush/mapper.c 					  x, r);
r                 394 net/ceph/crush/mapper.c 					  x, r);
r                 398 net/ceph/crush/mapper.c 			x, r);
r                 402 net/ceph/crush/mapper.c 			x, r, arg, position);
r                 471 net/ceph/crush/mapper.c 	int r;
r                 497 net/ceph/crush/mapper.c 				r = rep + parent_r;
r                 499 net/ceph/crush/mapper.c 				r += ftotal;
r                 511 net/ceph/crush/mapper.c 						x, r);
r                 515 net/ceph/crush/mapper.c 						x, r,
r                 558 net/ceph/crush/mapper.c 							sub_r = r >> (vary_r-1);
r                 660 net/ceph/crush/mapper.c 	int r;
r                 707 net/ceph/crush/mapper.c 				r = rep + parent_r;
r                 713 net/ceph/crush/mapper.c 					r += (numrep+1) * ftotal;
r                 716 net/ceph/crush/mapper.c 					r += numrep * ftotal;
r                 726 net/ceph/crush/mapper.c 					x, r,
r                 783 net/ceph/crush/mapper.c 							0, NULL, r,
r                 514 net/ceph/messenger.c 	int r;
r                 520 net/ceph/messenger.c 	r = sock_recvmsg(sock, &msg, msg.msg_flags);
r                 521 net/ceph/messenger.c 	if (r == -EAGAIN)
r                 522 net/ceph/messenger.c 		r = 0;
r                 523 net/ceph/messenger.c 	return r;
r                 535 net/ceph/messenger.c 	int r;
r                 539 net/ceph/messenger.c 	r = sock_recvmsg(sock, &msg, msg.msg_flags);
r                 540 net/ceph/messenger.c 	if (r == -EAGAIN)
r                 541 net/ceph/messenger.c 		r = 0;
r                 542 net/ceph/messenger.c 	return r;
r                 553 net/ceph/messenger.c 	int r;
r                 560 net/ceph/messenger.c 	r = kernel_sendmsg(sock, &msg, iov, kvlen, len);
r                 561 net/ceph/messenger.c 	if (r == -EAGAIN)
r                 562 net/ceph/messenger.c 		r = 0;
r                 563 net/ceph/messenger.c 	return r;
r                1078 net/ceph/osd_client.c 	int r;
r                1087 net/ceph/osd_client.c 		r = -ENOMEM;
r                1092 net/ceph/osd_client.c 	r = calc_layout(layout, off, plen, &objnum, &objoff, &objlen);
r                1093 net/ceph/osd_client.c 	if (r)
r                1129 net/ceph/osd_client.c 		r = __ceph_osdc_alloc_messages(req, GFP_NOFS, num_ops, 0);
r                1131 net/ceph/osd_client.c 		r = ceph_osdc_alloc_messages(req, GFP_NOFS);
r                1132 net/ceph/osd_client.c 	if (r)
r                1139 net/ceph/osd_client.c 	return ERR_PTR(r);
r                 478 net/ceph/osdmap.c 		struct crush_rule *r;
r                 494 net/ceph/osdmap.c 		if (yes > (ULONG_MAX - sizeof(*r))
r                 498 net/ceph/osdmap.c 		r = kmalloc(struct_size(r, steps, yes), GFP_NOFS);
r                 499 net/ceph/osdmap.c 		c->rules[i] = r;
r                 500 net/ceph/osdmap.c 		if (r == NULL)
r                 502 net/ceph/osdmap.c 		dout(" rule %d is at %p\n", i, r);
r                 503 net/ceph/osdmap.c 		r->len = yes;
r                 504 net/ceph/osdmap.c 		ceph_decode_copy_safe(p, end, &r->mask, 4, bad); /* 4 u8's */
r                 505 net/ceph/osdmap.c 		ceph_decode_need(p, end, r->len*3*sizeof(u32), bad);
r                 506 net/ceph/osdmap.c 		for (j = 0; j < r->len; j++) {
r                 507 net/ceph/osdmap.c 			r->steps[j].op = ceph_decode_32(p);
r                 508 net/ceph/osdmap.c 			r->steps[j].arg1 = ceph_decode_32(p);
r                 509 net/ceph/osdmap.c 			r->steps[j].arg2 = ceph_decode_32(p);
r                2282 net/ceph/osdmap.c 	int r;
r                2293 net/ceph/osdmap.c 	r = crush_do_rule(map->crush, ruleno, x, result, result_max,
r                2298 net/ceph/osdmap.c 	return r;
r                  44 net/core/fib_rules.c 	struct fib_rule *r;
r                  46 net/core/fib_rules.c 	r = kzalloc(ops->rule_size, GFP_KERNEL);
r                  47 net/core/fib_rules.c 	if (r == NULL)
r                  50 net/core/fib_rules.c 	refcount_set(&r->refcnt, 1);
r                  51 net/core/fib_rules.c 	r->action = FR_ACT_TO_TBL;
r                  52 net/core/fib_rules.c 	r->pref = pref;
r                  53 net/core/fib_rules.c 	r->table = table;
r                  54 net/core/fib_rules.c 	r->flags = flags;
r                  55 net/core/fib_rules.c 	r->proto = RTPROT_KERNEL;
r                  56 net/core/fib_rules.c 	r->fr_net = ops->fro_net;
r                  57 net/core/fib_rules.c 	r->uid_range = fib_kuid_range_unset;
r                  59 net/core/fib_rules.c 	r->suppress_prefixlen = -1;
r                  60 net/core/fib_rules.c 	r->suppress_ifgroup = -1;
r                  64 net/core/fib_rules.c 	list_add_tail(&r->list, &ops->rules_list);
r                 393 net/core/fib_rules.c 	struct fib_rule *r;
r                 395 net/core/fib_rules.c 	list_for_each_entry(r, &ops->rules_list, list) {
r                 396 net/core/fib_rules.c 		if (rule->action && r->action != rule->action)
r                 399 net/core/fib_rules.c 		if (rule->table && r->table != rule->table)
r                 402 net/core/fib_rules.c 		if (user_priority && r->pref != rule->pref)
r                 406 net/core/fib_rules.c 		    memcmp(r->iifname, rule->iifname, IFNAMSIZ))
r                 410 net/core/fib_rules.c 		    memcmp(r->oifname, rule->oifname, IFNAMSIZ))
r                 413 net/core/fib_rules.c 		if (rule->mark && r->mark != rule->mark)
r                 417 net/core/fib_rules.c 		    r->suppress_ifgroup != rule->suppress_ifgroup)
r                 421 net/core/fib_rules.c 		    r->suppress_prefixlen != rule->suppress_prefixlen)
r                 424 net/core/fib_rules.c 		if (rule->mark_mask && r->mark_mask != rule->mark_mask)
r                 427 net/core/fib_rules.c 		if (rule->tun_id && r->tun_id != rule->tun_id)
r                 430 net/core/fib_rules.c 		if (r->fr_net != rule->fr_net)
r                 433 net/core/fib_rules.c 		if (rule->l3mdev && r->l3mdev != rule->l3mdev)
r                 437 net/core/fib_rules.c 		    (!uid_eq(r->uid_range.start, rule->uid_range.start) ||
r                 438 net/core/fib_rules.c 		    !uid_eq(r->uid_range.end, rule->uid_range.end)))
r                 441 net/core/fib_rules.c 		if (rule->ip_proto && r->ip_proto != rule->ip_proto)
r                 444 net/core/fib_rules.c 		if (rule->proto && r->proto != rule->proto)
r                 448 net/core/fib_rules.c 		    !fib_rule_port_range_compare(&r->sport_range,
r                 453 net/core/fib_rules.c 		    !fib_rule_port_range_compare(&r->dport_range,
r                 457 net/core/fib_rules.c 		if (!ops->compare(r, frh, tb))
r                 459 net/core/fib_rules.c 		return r;
r                 659 net/core/fib_rules.c 	struct fib_rule *r;
r                 661 net/core/fib_rules.c 	list_for_each_entry(r, &ops->rules_list, list) {
r                 662 net/core/fib_rules.c 		if (r->action != rule->action)
r                 665 net/core/fib_rules.c 		if (r->table != rule->table)
r                 668 net/core/fib_rules.c 		if (r->pref != rule->pref)
r                 671 net/core/fib_rules.c 		if (memcmp(r->iifname, rule->iifname, IFNAMSIZ))
r                 674 net/core/fib_rules.c 		if (memcmp(r->oifname, rule->oifname, IFNAMSIZ))
r                 677 net/core/fib_rules.c 		if (r->mark != rule->mark)
r                 680 net/core/fib_rules.c 		if (r->suppress_ifgroup != rule->suppress_ifgroup)
r                 683 net/core/fib_rules.c 		if (r->suppress_prefixlen != rule->suppress_prefixlen)
r                 686 net/core/fib_rules.c 		if (r->mark_mask != rule->mark_mask)
r                 689 net/core/fib_rules.c 		if (r->tun_id != rule->tun_id)
r                 692 net/core/fib_rules.c 		if (r->fr_net != rule->fr_net)
r                 695 net/core/fib_rules.c 		if (r->l3mdev != rule->l3mdev)
r                 698 net/core/fib_rules.c 		if (!uid_eq(r->uid_range.start, rule->uid_range.start) ||
r                 699 net/core/fib_rules.c 		    !uid_eq(r->uid_range.end, rule->uid_range.end))
r                 702 net/core/fib_rules.c 		if (r->ip_proto != rule->ip_proto)
r                 705 net/core/fib_rules.c 		if (r->proto != rule->proto)
r                 708 net/core/fib_rules.c 		if (!fib_rule_port_range_compare(&r->sport_range,
r                 712 net/core/fib_rules.c 		if (!fib_rule_port_range_compare(&r->dport_range,
r                 716 net/core/fib_rules.c 		if (!ops->compare(r, frh, tb))
r                 729 net/core/fib_rules.c 	struct fib_rule *rule = NULL, *r, *last = NULL;
r                 772 net/core/fib_rules.c 	list_for_each_entry(r, &ops->rules_list, list) {
r                 773 net/core/fib_rules.c 		if (r->pref == rule->target) {
r                 774 net/core/fib_rules.c 			RCU_INIT_POINTER(rule->ctarget, r);
r                 782 net/core/fib_rules.c 	list_for_each_entry(r, &ops->rules_list, list) {
r                 783 net/core/fib_rules.c 		if (r->pref > rule->pref)
r                 785 net/core/fib_rules.c 		last = r;
r                 798 net/core/fib_rules.c 		list_for_each_entry(r, &ops->rules_list, list) {
r                 799 net/core/fib_rules.c 			if (r->action == FR_ACT_GOTO &&
r                 800 net/core/fib_rules.c 			    r->target == rule->pref &&
r                 801 net/core/fib_rules.c 			    rtnl_dereference(r->ctarget) == NULL) {
r                 802 net/core/fib_rules.c 				rcu_assign_pointer(r->ctarget, rule);
r                 837 net/core/fib_rules.c 	struct fib_rule *rule = NULL, *r, *nlrule = NULL;
r                 906 net/core/fib_rules.c 		list_for_each_entry(r, &ops->rules_list, list) {
r                 907 net/core/fib_rules.c 			if (rtnl_dereference(r->ctarget) != rule)
r                 909 net/core/fib_rules.c 			rcu_assign_pointer(r->ctarget, n);
r                  87 net/core/page_pool.c 	struct ptr_ring *r = &pool->ring;
r                 102 net/core/page_pool.c 	if (__ptr_ring_empty(r))
r                 108 net/core/page_pool.c 	spin_lock(&r->consumer_lock);
r                 109 net/core/page_pool.c 	page = __ptr_ring_consume(r);
r                 111 net/core/page_pool.c 		pool->alloc.count = __ptr_ring_consume_batched(r,
r                 114 net/core/page_pool.c 	spin_unlock(&r->consumer_lock);
r                 128 net/core/rtnetlink.c bool refcount_dec_and_rtnl_lock(refcount_t *r)
r                 130 net/core/rtnetlink.c 	return refcount_dec_and_mutex_lock(r, &rtnl_mutex);
r                  39 net/dccp/diag.c static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                  42 net/dccp/diag.c 	r->idiag_rqueue = r->idiag_wqueue = 0;
r                  49 net/dccp/diag.c 			   const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                  51 net/dccp/diag.c 	inet_diag_dump_icsk(&dccp_hashinfo, skb, cb, r, bc);
r                 165 net/decnet/dn_fib.c 			  const struct rtmsg *r)
r                 176 net/decnet/dn_fib.c 		nh->nh_flags  = (r->rtm_flags&~0xFF) | nhp->rtnh_flags;
r                 195 net/decnet/dn_fib.c static int dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct dn_fib_nh *nh)
r                 206 net/decnet/dn_fib.c 			if (r->rtm_scope >= RT_SCOPE_LINK)
r                 223 net/decnet/dn_fib.c 		fld.flowidn_scope = r->rtm_scope + 1;
r                 267 net/decnet/dn_fib.c struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct nlattr *attrs[],
r                 275 net/decnet/dn_fib.c 	if (r->rtm_type > RTN_MAX)
r                 278 net/decnet/dn_fib.c 	if (dn_fib_props[r->rtm_type].scope > r->rtm_scope)
r                 290 net/decnet/dn_fib.c 	fi->fib_protocol = r->rtm_protocol;
r                 292 net/decnet/dn_fib.c 	fi->fib_flags = r->rtm_flags;
r                 318 net/decnet/dn_fib.c 		if ((err = dn_fib_get_nhs(fi, attrs[RTA_MULTIPATH], r)) != 0)
r                 337 net/decnet/dn_fib.c 		nh->nh_flags = r->rtm_flags;
r                 341 net/decnet/dn_fib.c 	if (r->rtm_type == RTN_NAT) {
r                 349 net/decnet/dn_fib.c 	if (dn_fib_props[r->rtm_type].error) {
r                 356 net/decnet/dn_fib.c 	if (r->rtm_scope > RT_SCOPE_HOST)
r                 359 net/decnet/dn_fib.c 	if (r->rtm_scope == RT_SCOPE_HOST) {
r                 372 net/decnet/dn_fib.c 			if ((err = dn_fib_check_nh(r, fi, nh)) != 0)
r                 378 net/decnet/dn_fib.c 		if (r->rtm_type != RTN_LOCAL || !attrs[RTA_DST] ||
r                 510 net/decnet/dn_fib.c 	struct rtmsg *r = nlmsg_data(nlh);
r                 520 net/decnet/dn_fib.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*r), attrs, RTA_MAX,
r                 525 net/decnet/dn_fib.c 	tb = dn_fib_get_table(rtm_get_table(attrs, r->rtm_table), 0);
r                 529 net/decnet/dn_fib.c 	return tb->delete(tb, r, attrs, nlh, &NETLINK_CB(skb));
r                 537 net/decnet/dn_fib.c 	struct rtmsg *r = nlmsg_data(nlh);
r                 547 net/decnet/dn_fib.c 	err = nlmsg_parse_deprecated(nlh, sizeof(*r), attrs, RTA_MAX,
r                 552 net/decnet/dn_fib.c 	tb = dn_fib_get_table(rtm_get_table(attrs, r->rtm_table), 1);
r                 556 net/decnet/dn_fib.c 	return tb->insert(tb, r, attrs, nlh, &NETLINK_CB(skb));
r                1365 net/decnet/dn_route.c 		if (res.r)
r                1549 net/decnet/dn_route.c 	struct rtmsg *r;
r                1553 net/decnet/dn_route.c 	nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags);
r                1557 net/decnet/dn_route.c 	r = nlmsg_data(nlh);
r                1558 net/decnet/dn_route.c 	r->rtm_family = AF_DECnet;
r                1559 net/decnet/dn_route.c 	r->rtm_dst_len = 16;
r                1560 net/decnet/dn_route.c 	r->rtm_src_len = 0;
r                1561 net/decnet/dn_route.c 	r->rtm_tos = 0;
r                1562 net/decnet/dn_route.c 	r->rtm_table = RT_TABLE_MAIN;
r                1563 net/decnet/dn_route.c 	r->rtm_type = rt->rt_type;
r                1564 net/decnet/dn_route.c 	r->rtm_flags = (rt->rt_flags & ~0xFFFF) | RTM_F_CLONED;
r                1565 net/decnet/dn_route.c 	r->rtm_scope = RT_SCOPE_UNIVERSE;
r                1566 net/decnet/dn_route.c 	r->rtm_protocol = RTPROT_UNSPEC;
r                1569 net/decnet/dn_route.c 		r->rtm_flags |= RTM_F_NOTIFY;
r                1576 net/decnet/dn_route.c 		r->rtm_src_len = 16;
r                  63 net/decnet/dn_rules.c 	res->r = arg.rule;
r                 110 net/decnet/dn_rules.c 	struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
r                 115 net/decnet/dn_rules.c 	if (((saddr ^ r->src) & r->srcmask) ||
r                 116 net/decnet/dn_rules.c 	    ((daddr ^ r->dst) & r->dstmask))
r                 128 net/decnet/dn_rules.c 	struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
r                 150 net/decnet/dn_rules.c 		r->src = nla_get_le16(tb[FRA_SRC]);
r                 153 net/decnet/dn_rules.c 		r->dst = nla_get_le16(tb[FRA_DST]);
r                 155 net/decnet/dn_rules.c 	r->src_len = frh->src_len;
r                 156 net/decnet/dn_rules.c 	r->srcmask = dnet_make_mask(r->src_len);
r                 157 net/decnet/dn_rules.c 	r->dst_len = frh->dst_len;
r                 158 net/decnet/dn_rules.c 	r->dstmask = dnet_make_mask(r->dst_len);
r                 167 net/decnet/dn_rules.c 	struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
r                 169 net/decnet/dn_rules.c 	if (frh->src_len && (r->src_len != frh->src_len))
r                 172 net/decnet/dn_rules.c 	if (frh->dst_len && (r->dst_len != frh->dst_len))
r                 175 net/decnet/dn_rules.c 	if (frh->src_len && (r->src != nla_get_le16(tb[FRA_SRC])))
r                 178 net/decnet/dn_rules.c 	if (frh->dst_len && (r->dst != nla_get_le16(tb[FRA_DST])))
r                 191 net/decnet/dn_rules.c 	res.r = NULL;
r                 205 net/decnet/dn_rules.c 	struct dn_fib_rule *r = (struct dn_fib_rule *)rule;
r                 207 net/decnet/dn_rules.c 	frh->dst_len = r->dst_len;
r                 208 net/decnet/dn_rules.c 	frh->src_len = r->src_len;
r                 211 net/decnet/dn_rules.c 	if ((r->dst_len &&
r                 212 net/decnet/dn_rules.c 	     nla_put_le16(skb, FRA_DST, r->dst)) ||
r                 213 net/decnet/dn_rules.c 	    (r->src_len &&
r                 214 net/decnet/dn_rules.c 	     nla_put_le16(skb, FRA_SRC, r->src)))
r                 229 net/decnet/dn_table.c static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct nlattr *attrs[], struct dn_fib_info *fi)
r                 529 net/decnet/dn_table.c static int dn_fib_table_insert(struct dn_fib_table *tb, struct rtmsg *r, struct nlattr *attrs[],
r                 536 net/decnet/dn_table.c 	int z = r->rtm_dst_len;
r                 537 net/decnet/dn_table.c 	int type = r->rtm_type;
r                 556 net/decnet/dn_table.c 	if ((fi = dn_fib_create_info(r, attrs, n, &err)) == NULL)
r                 608 net/decnet/dn_table.c 			    f->fn_scope == r->rtm_scope &&
r                 632 net/decnet/dn_table.c 	new_f->fn_scope = r->rtm_scope;
r                 666 net/decnet/dn_table.c static int dn_fib_table_delete(struct dn_fib_table *tb, struct rtmsg *r, struct nlattr *attrs[],
r                 671 net/decnet/dn_table.c 	int z = r->rtm_dst_len;
r                 711 net/decnet/dn_table.c 				(!r->rtm_type || f->fn_type == r->rtm_type) &&
r                 712 net/decnet/dn_table.c 				(r->rtm_scope == RT_SCOPE_NOWHERE || f->fn_scope == r->rtm_scope) &&
r                 713 net/decnet/dn_table.c 				(!r->rtm_protocol ||
r                 714 net/decnet/dn_table.c 					fi->fib_protocol == r->rtm_protocol) &&
r                 715 net/decnet/dn_table.c 				dn_fib_nh_match(r, n, attrs, fi) == 0)
r                1912 net/ipv4/af_inet.c 	struct list_head *r;
r                1959 net/ipv4/af_inet.c 	for (r = &inetsw[0]; r < &inetsw[SOCK_MAX]; ++r)
r                1960 net/ipv4/af_inet.c 		INIT_LIST_HEAD(r);
r                 995 net/ipv4/arp.c static int arp_req_set_public(struct net *net, struct arpreq *r,
r                 998 net/ipv4/arp.c 	__be32 ip = ((struct sockaddr_in *)&r->arp_pa)->sin_addr.s_addr;
r                 999 net/ipv4/arp.c 	__be32 mask = ((struct sockaddr_in *)&r->arp_netmask)->sin_addr.s_addr;
r                1003 net/ipv4/arp.c 	if (!dev && (r->arp_flags & ATF_COM)) {
r                1004 net/ipv4/arp.c 		dev = dev_getbyhwaddr_rcu(net, r->arp_ha.sa_family,
r                1005 net/ipv4/arp.c 				      r->arp_ha.sa_data);
r                1018 net/ipv4/arp.c static int arp_req_set(struct net *net, struct arpreq *r,
r                1025 net/ipv4/arp.c 	if (r->arp_flags & ATF_PUBL)
r                1026 net/ipv4/arp.c 		return arp_req_set_public(net, r, dev);
r                1028 net/ipv4/arp.c 	ip = ((struct sockaddr_in *)&r->arp_pa)->sin_addr.s_addr;
r                1029 net/ipv4/arp.c 	if (r->arp_flags & ATF_PERM)
r                1030 net/ipv4/arp.c 		r->arp_flags |= ATF_COM;
r                1050 net/ipv4/arp.c 		if (r->arp_ha.sa_family != ARPHRD_FDDI &&
r                1051 net/ipv4/arp.c 		    r->arp_ha.sa_family != ARPHRD_ETHER &&
r                1052 net/ipv4/arp.c 		    r->arp_ha.sa_family != ARPHRD_IEEE802)
r                1057 net/ipv4/arp.c 		if (r->arp_ha.sa_family != dev->type)
r                1066 net/ipv4/arp.c 		if (r->arp_flags & ATF_PERM)
r                1068 net/ipv4/arp.c 		err = neigh_update(neigh, (r->arp_flags & ATF_COM) ?
r                1069 net/ipv4/arp.c 				   r->arp_ha.sa_data : NULL, state,
r                1091 net/ipv4/arp.c static int arp_req_get(struct arpreq *r, struct net_device *dev)
r                1093 net/ipv4/arp.c 	__be32 ip = ((struct sockaddr_in *) &r->arp_pa)->sin_addr.s_addr;
r                1101 net/ipv4/arp.c 			memcpy(r->arp_ha.sa_data, neigh->ha, dev->addr_len);
r                1102 net/ipv4/arp.c 			r->arp_flags = arp_state_to_flags(neigh);
r                1104 net/ipv4/arp.c 			r->arp_ha.sa_family = dev->type;
r                1105 net/ipv4/arp.c 			strlcpy(r->arp_dev, dev->name, sizeof(r->arp_dev));
r                1133 net/ipv4/arp.c static int arp_req_delete_public(struct net *net, struct arpreq *r,
r                1136 net/ipv4/arp.c 	__be32 ip = ((struct sockaddr_in *) &r->arp_pa)->sin_addr.s_addr;
r                1137 net/ipv4/arp.c 	__be32 mask = ((struct sockaddr_in *)&r->arp_netmask)->sin_addr.s_addr;
r                1148 net/ipv4/arp.c static int arp_req_delete(struct net *net, struct arpreq *r,
r                1153 net/ipv4/arp.c 	if (r->arp_flags & ATF_PUBL)
r                1154 net/ipv4/arp.c 		return arp_req_delete_public(net, r, dev);
r                1156 net/ipv4/arp.c 	ip = ((struct sockaddr_in *)&r->arp_pa)->sin_addr.s_addr;
r                1176 net/ipv4/arp.c 	struct arpreq r;
r                1186 net/ipv4/arp.c 		err = copy_from_user(&r, arg, sizeof(struct arpreq));
r                1194 net/ipv4/arp.c 	if (r.arp_pa.sa_family != AF_INET)
r                1197 net/ipv4/arp.c 	if (!(r.arp_flags & ATF_PUBL) &&
r                1198 net/ipv4/arp.c 	    (r.arp_flags & (ATF_NETMASK | ATF_DONTPUB)))
r                1200 net/ipv4/arp.c 	if (!(r.arp_flags & ATF_NETMASK))
r                1201 net/ipv4/arp.c 		((struct sockaddr_in *)&r.arp_netmask)->sin_addr.s_addr =
r                1204 net/ipv4/arp.c 	if (r.arp_dev[0]) {
r                1206 net/ipv4/arp.c 		dev = __dev_get_by_name(net, r.arp_dev);
r                1211 net/ipv4/arp.c 		if (!r.arp_ha.sa_family)
r                1212 net/ipv4/arp.c 			r.arp_ha.sa_family = dev->type;
r                1214 net/ipv4/arp.c 		if ((r.arp_flags & ATF_COM) && r.arp_ha.sa_family != dev->type)
r                1223 net/ipv4/arp.c 		err = arp_req_delete(net, &r, dev);
r                1226 net/ipv4/arp.c 		err = arp_req_set(net, &r, dev);
r                1229 net/ipv4/arp.c 		err = arp_req_get(&r, dev);
r                1234 net/ipv4/arp.c 	if (cmd == SIOCGARP && !err && copy_to_user(arg, &r, sizeof(r)))
r                 432 net/ipv4/fib_frontend.c 	int r = secpath_exists(skb) ? 0 : IN_DEV_RPFILTER(idev);
r                 435 net/ipv4/fib_frontend.c 	if (!r && !fib_num_tclassid_users(net) &&
r                 455 net/ipv4/fib_frontend.c 	return __fib_validate_source(skb, src, dst, tos, oif, dev, r, idev, itag);
r                  49 net/ipv4/fib_rules.c 	struct fib4_rule *r = container_of(rule, struct fib4_rule, common);
r                  51 net/ipv4/fib_rules.c 	if (r->dst_len || r->src_len || r->tos)
r                 173 net/ipv4/fib_rules.c 	struct fib4_rule *r = (struct fib4_rule *) rule;
r                 178 net/ipv4/fib_rules.c 	if (((saddr ^ r->src) & r->srcmask) ||
r                 179 net/ipv4/fib_rules.c 	    ((daddr ^ r->dst) & r->dstmask))
r                 182 net/ipv4/fib_rules.c 	if (r->tos && (r->tos != fl4->flowi4_tos))
r                  66 net/ipv4/inet_diag.c void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk)
r                  68 net/ipv4/inet_diag.c 	r->idiag_family = sk->sk_family;
r                  70 net/ipv4/inet_diag.c 	r->id.idiag_sport = htons(sk->sk_num);
r                  71 net/ipv4/inet_diag.c 	r->id.idiag_dport = sk->sk_dport;
r                  72 net/ipv4/inet_diag.c 	r->id.idiag_if = sk->sk_bound_dev_if;
r                  73 net/ipv4/inet_diag.c 	sock_diag_save_cookie(sk, r->id.idiag_cookie);
r                  77 net/ipv4/inet_diag.c 		*(struct in6_addr *)r->id.idiag_src = sk->sk_v6_rcv_saddr;
r                  78 net/ipv4/inet_diag.c 		*(struct in6_addr *)r->id.idiag_dst = sk->sk_v6_daddr;
r                  82 net/ipv4/inet_diag.c 	memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src));
r                  83 net/ipv4/inet_diag.c 	memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst));
r                  85 net/ipv4/inet_diag.c 	r->id.idiag_src[0] = sk->sk_rcv_saddr;
r                  86 net/ipv4/inet_diag.c 	r->id.idiag_dst[0] = sk->sk_daddr;
r                 114 net/ipv4/inet_diag.c 			     struct inet_diag_msg *r, int ext,
r                 131 net/ipv4/inet_diag.c 	if (r->idiag_family == AF_INET6) {
r                 164 net/ipv4/inet_diag.c 	r->idiag_uid = from_kuid_munged(user_ns, sock_i_uid(sk));
r                 165 net/ipv4/inet_diag.c 	r->idiag_inode = sock_i_ino(sk);
r                 183 net/ipv4/inet_diag.c 	struct inet_diag_msg *r;
r                 191 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
r                 196 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
r                 199 net/ipv4/inet_diag.c 	inet_diag_msg_common_fill(r, sk);
r                 200 net/ipv4/inet_diag.c 	r->idiag_state = sk->sk_state;
r                 201 net/ipv4/inet_diag.c 	r->idiag_timer = 0;
r                 202 net/ipv4/inet_diag.c 	r->idiag_retrans = 0;
r                 204 net/ipv4/inet_diag.c 	if (inet_diag_msg_attrs_fill(sk, skb, r, ext, user_ns, net_admin))
r                 233 net/ipv4/inet_diag.c 		handler->idiag_get_info(sk, r, NULL);
r                 240 net/ipv4/inet_diag.c 		r->idiag_timer = 1;
r                 241 net/ipv4/inet_diag.c 		r->idiag_retrans = icsk->icsk_retransmits;
r                 242 net/ipv4/inet_diag.c 		r->idiag_expires =
r                 245 net/ipv4/inet_diag.c 		r->idiag_timer = 4;
r                 246 net/ipv4/inet_diag.c 		r->idiag_retrans = icsk->icsk_probes_out;
r                 247 net/ipv4/inet_diag.c 		r->idiag_expires =
r                 250 net/ipv4/inet_diag.c 		r->idiag_timer = 2;
r                 251 net/ipv4/inet_diag.c 		r->idiag_retrans = icsk->icsk_probes_out;
r                 252 net/ipv4/inet_diag.c 		r->idiag_expires =
r                 255 net/ipv4/inet_diag.c 		r->idiag_timer = 0;
r                 256 net/ipv4/inet_diag.c 		r->idiag_expires = 0;
r                 281 net/ipv4/inet_diag.c 	handler->idiag_get_info(sk, r, info);
r                 329 net/ipv4/inet_diag.c 	struct inet_diag_msg *r;
r                 333 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
r                 338 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
r                 345 net/ipv4/inet_diag.c 	inet_diag_msg_common_fill(r, sk);
r                 346 net/ipv4/inet_diag.c 	r->idiag_retrans      = 0;
r                 348 net/ipv4/inet_diag.c 	r->idiag_state	      = tw->tw_substate;
r                 349 net/ipv4/inet_diag.c 	r->idiag_timer	      = 3;
r                 350 net/ipv4/inet_diag.c 	r->idiag_expires      = jiffies_to_msecs(tmo);
r                 351 net/ipv4/inet_diag.c 	r->idiag_rqueue	      = 0;
r                 352 net/ipv4/inet_diag.c 	r->idiag_wqueue	      = 0;
r                 353 net/ipv4/inet_diag.c 	r->idiag_uid	      = 0;
r                 354 net/ipv4/inet_diag.c 	r->idiag_inode	      = 0;
r                 365 net/ipv4/inet_diag.c 	struct inet_diag_msg *r;
r                 369 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
r                 374 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
r                 375 net/ipv4/inet_diag.c 	inet_diag_msg_common_fill(r, sk);
r                 376 net/ipv4/inet_diag.c 	r->idiag_state = TCP_SYN_RECV;
r                 377 net/ipv4/inet_diag.c 	r->idiag_timer = 1;
r                 378 net/ipv4/inet_diag.c 	r->idiag_retrans = reqsk->num_retrans;
r                 384 net/ipv4/inet_diag.c 	r->idiag_expires = (tmo >= 0) ? jiffies_to_msecs(tmo) : 0;
r                 385 net/ipv4/inet_diag.c 	r->idiag_rqueue	= 0;
r                 386 net/ipv4/inet_diag.c 	r->idiag_wqueue	= 0;
r                 387 net/ipv4/inet_diag.c 	r->idiag_uid	= 0;
r                 388 net/ipv4/inet_diag.c 	r->idiag_inode	= 0;
r                 399 net/ipv4/inet_diag.c 			const struct inet_diag_req_v2 *r,
r                 412 net/ipv4/inet_diag.c 	return inet_csk_diag_fill(sk, skb, r, user_ns, portid, seq,
r                 852 net/ipv4/inet_diag.c 			      const struct inet_diag_req_v2 *r,
r                 859 net/ipv4/inet_diag.c 	return inet_csk_diag_fill(sk, skb, r,
r                 894 net/ipv4/inet_diag.c 			 const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 898 net/ipv4/inet_diag.c 	u32 idiag_states = r->idiag_states;
r                 908 net/ipv4/inet_diag.c 		if (!(idiag_states & TCPF_LISTEN) || r->id.idiag_dport)
r                 929 net/ipv4/inet_diag.c 				if (r->sdiag_family != AF_UNSPEC &&
r                 930 net/ipv4/inet_diag.c 				    sk->sk_family != r->sdiag_family)
r                 933 net/ipv4/inet_diag.c 				if (r->id.idiag_sport != inet->inet_sport &&
r                 934 net/ipv4/inet_diag.c 				    r->id.idiag_sport)
r                 937 net/ipv4/inet_diag.c 				if (inet_csk_diag_dump(sk, skb, cb, r,
r                 988 net/ipv4/inet_diag.c 			if (r->sdiag_family != AF_UNSPEC &&
r                 989 net/ipv4/inet_diag.c 			    sk->sk_family != r->sdiag_family)
r                 991 net/ipv4/inet_diag.c 			if (r->id.idiag_sport != htons(sk->sk_num) &&
r                 992 net/ipv4/inet_diag.c 			    r->id.idiag_sport)
r                 994 net/ipv4/inet_diag.c 			if (r->id.idiag_dport != sk->sk_dport &&
r                 995 net/ipv4/inet_diag.c 			    r->id.idiag_dport)
r                1016 net/ipv4/inet_diag.c 				res = sk_diag_fill(sk_arr[idx], skb, r,
r                1044 net/ipv4/inet_diag.c 			    const struct inet_diag_req_v2 *r,
r                1050 net/ipv4/inet_diag.c 	handler = inet_diag_lock_handler(r->sdiag_protocol);
r                1052 net/ipv4/inet_diag.c 		handler->dump(skb, cb, r, bc);
r                1186 net/ipv4/inet_diag.c 	struct inet_diag_msg *r;
r                1190 net/ipv4/inet_diag.c 	nlh = nlmsg_put(skb, 0, 0, SOCK_DIAG_BY_FAMILY, sizeof(*r), 0);
r                1194 net/ipv4/inet_diag.c 	r = nlmsg_data(nlh);
r                1195 net/ipv4/inet_diag.c 	memset(r, 0, sizeof(*r));
r                1196 net/ipv4/inet_diag.c 	inet_diag_msg_common_fill(r, sk);
r                1198 net/ipv4/inet_diag.c 		r->id.idiag_sport = inet_sk(sk)->inet_sport;
r                1199 net/ipv4/inet_diag.c 	r->idiag_state = sk->sk_state;
r                1221 net/ipv4/inet_diag.c 	handler->idiag_get_info(sk, r, info);
r                  22 net/ipv4/netfilter/ipt_ah.c 	bool r;
r                  25 net/ipv4/netfilter/ipt_ah.c 	r = (spi >= min && spi <= max) ^ invert;
r                  26 net/ipv4/netfilter/ipt_ah.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  27 net/ipv4/netfilter/ipt_ah.c 	return r;
r                  18 net/ipv4/raw_diag.c raw_get_hashinfo(const struct inet_diag_req_v2 *r)
r                  20 net/ipv4/raw_diag.c 	if (r->sdiag_family == AF_INET) {
r                  23 net/ipv4/raw_diag.c 	} else if (r->sdiag_family == AF_INET6) {
r                  40 net/ipv4/raw_diag.c 	struct inet_diag_req_raw *r = (void *)req;
r                  43 net/ipv4/raw_diag.c 	if (r->sdiag_family == AF_INET)
r                  44 net/ipv4/raw_diag.c 		sk = __raw_v4_lookup(net, from, r->sdiag_raw_protocol,
r                  45 net/ipv4/raw_diag.c 				     r->id.idiag_dst[0],
r                  46 net/ipv4/raw_diag.c 				     r->id.idiag_src[0],
r                  47 net/ipv4/raw_diag.c 				     r->id.idiag_if, 0);
r                  50 net/ipv4/raw_diag.c 		sk = __raw_v6_lookup(net, from, r->sdiag_raw_protocol,
r                  51 net/ipv4/raw_diag.c 				     (const struct in6_addr *)r->id.idiag_src,
r                  52 net/ipv4/raw_diag.c 				     (const struct in6_addr *)r->id.idiag_dst,
r                  53 net/ipv4/raw_diag.c 				     r->id.idiag_if, 0);
r                  58 net/ipv4/raw_diag.c static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r)
r                  60 net/ipv4/raw_diag.c 	struct raw_hashinfo *hashinfo = raw_get_hashinfo(r);
r                  70 net/ipv4/raw_diag.c 			sk = raw_lookup(net, s, r);
r                  92 net/ipv4/raw_diag.c 			     const struct inet_diag_req_v2 *r)
r                  99 net/ipv4/raw_diag.c 	sk = raw_sock_get(net, r);
r                 112 net/ipv4/raw_diag.c 	err = inet_sk_diag_fill(sk, NULL, rep, r,
r                 134 net/ipv4/raw_diag.c 			const struct inet_diag_req_v2 *r,
r                 140 net/ipv4/raw_diag.c 	return inet_sk_diag_fill(sk, NULL, skb, r,
r                 148 net/ipv4/raw_diag.c 			  const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 151 net/ipv4/raw_diag.c 	struct raw_hashinfo *hashinfo = raw_get_hashinfo(r);
r                 173 net/ipv4/raw_diag.c 			if (sk->sk_family != r->sdiag_family)
r                 175 net/ipv4/raw_diag.c 			if (r->id.idiag_sport != inet->inet_sport &&
r                 176 net/ipv4/raw_diag.c 			    r->id.idiag_sport)
r                 178 net/ipv4/raw_diag.c 			if (r->id.idiag_dport != inet->inet_dport &&
r                 179 net/ipv4/raw_diag.c 			    r->id.idiag_dport)
r                 181 net/ipv4/raw_diag.c 			if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0)
r                 195 net/ipv4/raw_diag.c static void raw_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                 198 net/ipv4/raw_diag.c 	r->idiag_rqueue = sk_rmem_alloc_get(sk);
r                 199 net/ipv4/raw_diag.c 	r->idiag_wqueue = sk_wmem_alloc_get(sk);
r                 204 net/ipv4/raw_diag.c 			    const struct inet_diag_req_v2 *r)
r                 210 net/ipv4/raw_diag.c 	sk = raw_sock_get(net, r);
r                2741 net/ipv4/route.c 	struct rtmsg *r;
r                2747 net/ipv4/route.c 	nlh = nlmsg_put(skb, portid, seq, RTM_NEWROUTE, sizeof(*r), flags);
r                2751 net/ipv4/route.c 	r = nlmsg_data(nlh);
r                2752 net/ipv4/route.c 	r->rtm_family	 = AF_INET;
r                2753 net/ipv4/route.c 	r->rtm_dst_len	= 32;
r                2754 net/ipv4/route.c 	r->rtm_src_len	= 0;
r                2755 net/ipv4/route.c 	r->rtm_tos	= fl4 ? fl4->flowi4_tos : 0;
r                2756 net/ipv4/route.c 	r->rtm_table	= table_id < 256 ? table_id : RT_TABLE_COMPAT;
r                2759 net/ipv4/route.c 	r->rtm_type	= rt->rt_type;
r                2760 net/ipv4/route.c 	r->rtm_scope	= RT_SCOPE_UNIVERSE;
r                2761 net/ipv4/route.c 	r->rtm_protocol = RTPROT_UNSPEC;
r                2762 net/ipv4/route.c 	r->rtm_flags	= (rt->rt_flags & ~0xFFFF) | RTM_F_CLONED;
r                2764 net/ipv4/route.c 		r->rtm_flags |= RTM_F_NOTIFY;
r                2766 net/ipv4/route.c 		r->rtm_flags |= RTCF_DOREDIRECT;
r                2771 net/ipv4/route.c 		r->rtm_src_len = 32;
r                2843 net/ipv4/route.c 							 r, portid);
r                  18 net/ipv4/tcp_diag.c static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                  24 net/ipv4/tcp_diag.c 		r->idiag_rqueue = sk->sk_ack_backlog;
r                  25 net/ipv4/tcp_diag.c 		r->idiag_wqueue = sk->sk_max_ack_backlog;
r                  29 net/ipv4/tcp_diag.c 		r->idiag_rqueue = max_t(int, READ_ONCE(tp->rcv_nxt) -
r                  31 net/ipv4/tcp_diag.c 		r->idiag_wqueue = READ_ONCE(tp->write_seq) - tp->snd_una;
r                 182 net/ipv4/tcp_diag.c 			  const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 184 net/ipv4/tcp_diag.c 	inet_diag_dump_icsk(&tcp_hashinfo, skb, cb, r, bc);
r                  97 net/ipv4/udp_diag.c 		     const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 123 net/ipv4/udp_diag.c 			if (!(r->idiag_states & (1 << sk->sk_state)))
r                 125 net/ipv4/udp_diag.c 			if (r->sdiag_family != AF_UNSPEC &&
r                 126 net/ipv4/udp_diag.c 					sk->sk_family != r->sdiag_family)
r                 128 net/ipv4/udp_diag.c 			if (r->id.idiag_sport != inet->inet_sport &&
r                 129 net/ipv4/udp_diag.c 			    r->id.idiag_sport)
r                 131 net/ipv4/udp_diag.c 			if (r->id.idiag_dport != inet->inet_dport &&
r                 132 net/ipv4/udp_diag.c 			    r->id.idiag_dport)
r                 135 net/ipv4/udp_diag.c 			if (sk_diag_dump(sk, skb, cb, r, bc, net_admin) < 0) {
r                 150 net/ipv4/udp_diag.c 			  const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 152 net/ipv4/udp_diag.c 	udp_dump(&udp_table, skb, cb, r, bc);
r                 161 net/ipv4/udp_diag.c static void udp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                 164 net/ipv4/udp_diag.c 	r->idiag_rqueue = udp_rqueue_get(sk);
r                 165 net/ipv4/udp_diag.c 	r->idiag_wqueue = sk_wmem_alloc_get(sk);
r                 253 net/ipv4/udp_diag.c 			      const struct inet_diag_req_v2 *r,
r                 256 net/ipv4/udp_diag.c 	udp_dump(&udplite_table, skb, cb, r, bc);
r                 973 net/ipv6/af_inet6.c 	struct list_head *r;
r                 979 net/ipv6/af_inet6.c 	for (r = &inetsw6[0]; r < &inetsw6[SOCK_MAX]; ++r)
r                 980 net/ipv6/af_inet6.c 		INIT_LIST_HEAD(r);
r                  32 net/ipv6/fib6_rules.c 	struct fib6_rule *r = container_of(rule, struct fib6_rule, common);
r                  34 net/ipv6/fib6_rules.c 	if (r->dst.plen || r->src.plen || r->tclass)
r                 131 net/ipv6/fib6_rules.c 	struct fib6_rule *r = (struct fib6_rule *)rule;
r                 137 net/ipv6/fib6_rules.c 	    r->src.plen && !(flags & RT6_LOOKUP_F_HAS_SADDR)) {
r                 144 net/ipv6/fib6_rules.c 		if (!ipv6_prefix_equal(&saddr, &r->src.addr, r->src.plen))
r                 297 net/ipv6/fib6_rules.c 	struct fib6_rule *r = (struct fib6_rule *) rule;
r                 300 net/ipv6/fib6_rules.c 	if (r->dst.plen &&
r                 301 net/ipv6/fib6_rules.c 	    !ipv6_prefix_equal(&fl6->daddr, &r->dst.addr, r->dst.plen))
r                 309 net/ipv6/fib6_rules.c 	if (r->src.plen) {
r                 311 net/ipv6/fib6_rules.c 			if (!ipv6_prefix_equal(&fl6->saddr, &r->src.addr,
r                 312 net/ipv6/fib6_rules.c 					       r->src.plen))
r                 314 net/ipv6/fib6_rules.c 		} else if (!(r->common.flags & FIB_RULE_FIND_SADDR))
r                 318 net/ipv6/fib6_rules.c 	if (r->tclass && r->tclass != ip6_tclass(fl6->flowlabel))
r                2472 net/ipv6/ip6_fib.c 	int r;
r                2489 net/ipv6/ip6_fib.c 	r = fib6_walk_continue(&iter->w);
r                2491 net/ipv6/ip6_fib.c 	if (r > 0) {
r                2495 net/ipv6/ip6_fib.c 	} else if (r < 0) {
r                  27 net/ipv6/netfilter/ip6t_ah.c 	bool r;
r                  31 net/ipv6/netfilter/ip6t_ah.c 	r = (spi >= min && spi <= max) ^ invert;
r                  32 net/ipv6/netfilter/ip6t_ah.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  33 net/ipv6/netfilter/ip6t_ah.c 	return r;
r                  26 net/ipv6/netfilter/ip6t_frag.c 	bool r;
r                  29 net/ipv6/netfilter/ip6t_frag.c 	r = (id >= min && id <= max) ^ invert;
r                  30 net/ipv6/netfilter/ip6t_frag.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  31 net/ipv6/netfilter/ip6t_frag.c 	return r;
r                  28 net/ipv6/netfilter/ip6t_rt.c 	bool r;
r                  31 net/ipv6/netfilter/ip6t_rt.c 	r = (id >= min && id <= max) ^ invert;
r                  32 net/ipv6/netfilter/ip6t_rt.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  33 net/ipv6/netfilter/ip6t_rt.c 	return r;
r                 737 net/mac80211/main.c 	int n_suites = 0, r = 0, w = 0;
r                 775 net/mac80211/main.c 		for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) {
r                 776 net/mac80211/main.c 			u32 suite = local->hw.wiphy->cipher_suites[r];
r                 846 net/mac80211/main.c 		for (r = 0; r < local->hw.n_cipher_schemes; r++) {
r                 847 net/mac80211/main.c 			suites[w++] = cs[r].cipher;
r                 848 net/mac80211/main.c 			if (WARN_ON(cs[r].pn_len > IEEE80211_MAX_PN_LEN)) {
r                  16 net/mac80211/michael.c 	mctx->r ^= rol32(mctx->l, 17);
r                  17 net/mac80211/michael.c 	mctx->l += mctx->r;
r                  18 net/mac80211/michael.c 	mctx->r ^= ((mctx->l & 0xff00ff00) >> 8) |
r                  20 net/mac80211/michael.c 	mctx->l += mctx->r;
r                  21 net/mac80211/michael.c 	mctx->r ^= rol32(mctx->l, 3);
r                  22 net/mac80211/michael.c 	mctx->l += mctx->r;
r                  23 net/mac80211/michael.c 	mctx->r ^= ror32(mctx->l, 2);
r                  24 net/mac80211/michael.c 	mctx->l += mctx->r;
r                  40 net/mac80211/michael.c 	mctx->r = get_unaligned_le32(key + 4);
r                  82 net/mac80211/michael.c 	put_unaligned_le32(mctx.r, mic + 4);
r                  16 net/mac80211/michael.h 	u32 l, r;
r                  67 net/mac80211/rc80211_minstrel.c 		if (mi->r[i].rix == rix)
r                  97 net/mac80211/rc80211_minstrel.c 	struct minstrel_rate_stats *cur_mrs = &mi->r[i].stats;
r                 100 net/mac80211/rc80211_minstrel.c 		tmp_mrs = &mi->r[tp_list[j - 1]].stats;
r                 101 net/mac80211/rc80211_minstrel.c 		if (minstrel_get_tp_avg(&mi->r[i], cur_mrs->prob_ewma) <=
r                 102 net/mac80211/rc80211_minstrel.c 		    minstrel_get_tp_avg(&mi->r[tp_list[j - 1]], tmp_mrs->prob_ewma))
r                 116 net/mac80211/rc80211_minstrel.c 	struct minstrel_rate *r = &mi->r[idx];
r                 118 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].idx = r->rix;
r                 119 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count = r->adjusted_retry_count;
r                 120 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count_cts = r->retry_count_cts;
r                 121 net/mac80211/rc80211_minstrel.c 	ratetbl->rate[offset].count_rts = r->stats.retry_count_rtscts;
r                 198 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate *mr = &mi->r[i];
r                 199 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate_stats *mrs = &mi->r[i].stats;
r                 200 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate_stats *tmp_mrs = &mi->r[tmp_prob_rate].stats;
r                 230 net/mac80211/rc80211_minstrel.c 			tmp_prob_tp = minstrel_get_tp_avg(&mi->r[tmp_prob_rate],
r                 280 net/mac80211/rc80211_minstrel.c 		mi->r[ndx].stats.attempts += ar[i].count;
r                 283 net/mac80211/rc80211_minstrel.c 			mi->r[ndx].stats.success += success;
r                 393 net/mac80211/rc80211_minstrel.c 	msr = &mi->r[ndx];
r                 394 net/mac80211/rc80211_minstrel.c 	mr = &mi->r[mi->max_tp_rate[0]];
r                 425 net/mac80211/rc80211_minstrel.c 	   (mi->r[ndx].stats.prob_ewma > MINSTREL_FRAC(95, 100)))
r                 430 net/mac80211/rc80211_minstrel.c 	rate->idx = mi->r[ndx].rix;
r                 431 net/mac80211/rc80211_minstrel.c 	rate->count = minstrel_get_retry_count(&mi->r[ndx], info);
r                 499 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate *mr = &mi->r[n];
r                 500 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate_stats *mrs = &mi->r[n].stats;
r                 554 net/mac80211/rc80211_minstrel.c 		struct minstrel_rate *mr = &mi->r[i];
r                 575 net/mac80211/rc80211_minstrel.c 	tmp_mrs = &mi->r[idx].stats;
r                 576 net/mac80211/rc80211_minstrel.c 	tmp_cur_tp = minstrel_get_tp_avg(&mi->r[idx], tmp_mrs->prob_ewma) * 10;
r                  88 net/mac80211/rc80211_minstrel.h 	struct minstrel_rate *r;
r                  78 net/mac80211/rc80211_minstrel_debugfs.c 		struct minstrel_rate *mr = &mi->r[i];
r                  79 net/mac80211/rc80211_minstrel_debugfs.c 		struct minstrel_rate_stats *mrs = &mi->r[i].stats;
r                 135 net/mac80211/rc80211_minstrel_debugfs.c 		struct minstrel_rate *mr = &mi->r[i];
r                 136 net/mac80211/rc80211_minstrel_debugfs.c 		struct minstrel_rate_stats *mrs = &mi->r[i].stats;
r                1532 net/mac80211/rc80211_minstrel_ht.c 	msp->legacy.r = msp->ratelist;
r                  87 net/mac80211/rc80211_minstrel_ht_debugfs.c 			int r = bitrates[j % 4];
r                  89 net/mac80211/rc80211_minstrel_ht_debugfs.c 			p += sprintf(p, "   %2u.%1uM", r / 10, r % 10);
r                 234 net/mac80211/rc80211_minstrel_ht_debugfs.c 			int r = bitrates[j % 4];
r                 235 net/mac80211/rc80211_minstrel_ht_debugfs.c 			p += sprintf(p, ",%2u.%1uM,", r / 10, r % 10);
r                 407 net/mac80211/sta_info.c 		int r;
r                 435 net/mac80211/sta_info.c 		for (r = 0; r < hw->wiphy->bands[i]->n_bitrates; r++) {
r                 438 net/mac80211/sta_info.c 			rate = &hw->wiphy->bands[i]->bitrates[r];
r                 442 net/mac80211/sta_info.c 			sta->sta.supp_rates[i] |= BIT(r);
r                 831 net/mac80211/sta_info.h 	u32 r;
r                 833 net/mac80211/sta_info.h 	r = STA_STATS_FIELD(BW, s->bw);
r                 836 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(SGI, 1);
r                 840 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_VHT);
r                 841 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(VHT_NSS, s->nss);
r                 842 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(VHT_MCS, s->rate_idx);
r                 845 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_HT);
r                 846 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HT_MCS, s->rate_idx);
r                 849 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_LEGACY);
r                 850 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(LEGACY_BAND, s->band);
r                 851 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(LEGACY_IDX, s->rate_idx);
r                 854 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(TYPE, STA_STATS_RATE_TYPE_HE);
r                 855 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HE_NSS, s->nss);
r                 856 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HE_MCS, s->rate_idx);
r                 857 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HE_GI, s->he_gi);
r                 858 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HE_RU, s->he_ru);
r                 859 net/mac80211/sta_info.h 		r |= STA_STATS_FIELD(HE_DCM, s->he_dcm);
r                 866 net/mac80211/sta_info.h 	return r;
r                 142 net/mac80211/tx.c 		struct ieee80211_rate *r = &sband->bitrates[i];
r                 144 net/mac80211/tx.c 		if (r->bitrate > txrate->bitrate)
r                 147 net/mac80211/tx.c 		if ((rate_flags & r->flags) != rate_flags)
r                 151 net/mac80211/tx.c 			rate = DIV_ROUND_UP(r->bitrate, 1 << shift);
r                 160 net/mac80211/tx.c 			if (r->flags & flag)
r                 161 net/mac80211/tx.c 				mrate = r->bitrate;
r                 166 net/mac80211/tx.c 			if (r->flags & IEEE80211_RATE_MANDATORY_A)
r                 167 net/mac80211/tx.c 				mrate = r->bitrate;
r                1849 net/mac80211/tx.c 	int r = invoke_tx_handlers_early(tx);
r                1851 net/mac80211/tx.c 	if (r)
r                1852 net/mac80211/tx.c 		return r;
r                3435 net/mac80211/tx.c 	ieee80211_tx_result r;
r                3525 net/mac80211/tx.c 		r = ieee80211_tx_h_rate_ctrl(&tx);
r                3529 net/mac80211/tx.c 		if (r != TX_CONTINUE) {
r                3530 net/mac80211/tx.c 			if (r != TX_QUEUED)
r                3562 net/mac80211/tx.c 	ieee80211_tx_result r;
r                3624 net/mac80211/tx.c 	r = ieee80211_tx_h_select_key(&tx);
r                3625 net/mac80211/tx.c 	if (r != TX_CONTINUE) {
r                2348 net/mpls/af_mpls.c 	struct rtmsg *rtm, *r;
r                2453 net/mpls/af_mpls.c 			RTM_NEWROUTE, sizeof(*r), 0);
r                2459 net/mpls/af_mpls.c 	r = nlmsg_data(nlh);
r                2460 net/mpls/af_mpls.c 	r->rtm_family	 = AF_MPLS;
r                2461 net/mpls/af_mpls.c 	r->rtm_dst_len	= 20;
r                2462 net/mpls/af_mpls.c 	r->rtm_src_len	= 0;
r                2463 net/mpls/af_mpls.c 	r->rtm_table	= RT_TABLE_MAIN;
r                2464 net/mpls/af_mpls.c 	r->rtm_type	= RTN_UNICAST;
r                2465 net/mpls/af_mpls.c 	r->rtm_scope	= RT_SCOPE_UNIVERSE;
r                2466 net/mpls/af_mpls.c 	r->rtm_protocol = rt->rt_protocol;
r                2467 net/mpls/af_mpls.c 	r->rtm_flags	= 0;
r                 428 net/netfilter/ipset/ip_set_hash_gen.h 	u32 r, i;
r                 431 net/netfilter/ipset/ip_set_hash_gen.h 	for (r = 0; r < ahash_numof_locks(t->htable_bits); r++) {
r                 432 net/netfilter/ipset/ip_set_hash_gen.h 		spin_lock_bh(&t->hregion[r].lock);
r                 433 net/netfilter/ipset/ip_set_hash_gen.h 		for (i = ahash_bucket_start(r, t->htable_bits);
r                 434 net/netfilter/ipset/ip_set_hash_gen.h 		     i < ahash_bucket_end(r, t->htable_bits); i++) {
r                 444 net/netfilter/ipset/ip_set_hash_gen.h 		t->hregion[r].ext_size = 0;
r                 445 net/netfilter/ipset/ip_set_hash_gen.h 		t->hregion[r].elements = 0;
r                 446 net/netfilter/ipset/ip_set_hash_gen.h 		spin_unlock_bh(&t->hregion[r].lock);
r                 513 net/netfilter/ipset/ip_set_hash_gen.h mtype_gc_do(struct ip_set *set, struct htype *h, struct htable *t, u32 r)
r                 524 net/netfilter/ipset/ip_set_hash_gen.h 	spin_lock_bh(&t->hregion[r].lock);
r                 525 net/netfilter/ipset/ip_set_hash_gen.h 	for (i = ahash_bucket_start(r, htable_bits);
r                 526 net/netfilter/ipset/ip_set_hash_gen.h 	     i < ahash_bucket_end(r, htable_bits); i++) {
r                 547 net/netfilter/ipset/ip_set_hash_gen.h 			t->hregion[r].elements--;
r                 553 net/netfilter/ipset/ip_set_hash_gen.h 				t->hregion[r].ext_size -=
r                 576 net/netfilter/ipset/ip_set_hash_gen.h 			t->hregion[r].ext_size -=
r                 582 net/netfilter/ipset/ip_set_hash_gen.h 	spin_unlock_bh(&t->hregion[r].lock);
r                 592 net/netfilter/ipset/ip_set_hash_gen.h 	u32 r, numof_locks;
r                 603 net/netfilter/ipset/ip_set_hash_gen.h 	r = gc->region++;
r                 604 net/netfilter/ipset/ip_set_hash_gen.h 	if (r >= numof_locks) {
r                 605 net/netfilter/ipset/ip_set_hash_gen.h 		r = gc->region = 0;
r                 612 net/netfilter/ipset/ip_set_hash_gen.h 	mtype_gc_do(set, h, t, r);
r                 657 net/netfilter/ipset/ip_set_hash_gen.h 	u32 i, j, r, nr, key;
r                 702 net/netfilter/ipset/ip_set_hash_gen.h 	for (r = 0; r < ahash_numof_locks(orig->htable_bits); r++) {
r                 705 net/netfilter/ipset/ip_set_hash_gen.h 		for (i = ahash_bucket_start(r, orig->htable_bits);
r                 706 net/netfilter/ipset/ip_set_hash_gen.h 		     i < ahash_bucket_end(r, orig->htable_bits); i++) {
r                 828 net/netfilter/ipset/ip_set_hash_gen.h 	u32 i, j, r;
r                 833 net/netfilter/ipset/ip_set_hash_gen.h 	for (r = 0; r < ahash_numof_locks(t->htable_bits); r++) {
r                 834 net/netfilter/ipset/ip_set_hash_gen.h 		for (i = ahash_bucket_start(r, t->htable_bits);
r                 835 net/netfilter/ipset/ip_set_hash_gen.h 		     i < ahash_bucket_end(r, t->htable_bits); i++) {
r                 847 net/netfilter/ipset/ip_set_hash_gen.h 		*ext_size += t->hregion[r].ext_size;
r                 866 net/netfilter/ipset/ip_set_hash_gen.h 	u32 r, key, multi = 0, elements, maxelem;
r                 871 net/netfilter/ipset/ip_set_hash_gen.h 	r = ahash_region(key, t->htable_bits);
r                 873 net/netfilter/ipset/ip_set_hash_gen.h 	elements = t->hregion[r].elements;
r                 879 net/netfilter/ipset/ip_set_hash_gen.h 			mtype_gc_do(set, h, t, r);
r                 891 net/netfilter/ipset/ip_set_hash_gen.h 	spin_lock_bh(&t->hregion[r].lock);
r                 904 net/netfilter/ipset/ip_set_hash_gen.h 		t->hregion[r].ext_size +=
r                 945 net/netfilter/ipset/ip_set_hash_gen.h 			t->hregion[r].elements--;
r                 971 net/netfilter/ipset/ip_set_hash_gen.h 		t->hregion[r].ext_size +=
r                 979 net/netfilter/ipset/ip_set_hash_gen.h 	t->hregion[r].elements++;
r                1007 net/netfilter/ipset/ip_set_hash_gen.h 	spin_unlock_bh(&t->hregion[r].lock);
r                1033 net/netfilter/ipset/ip_set_hash_gen.h 	spin_unlock_bh(&t->hregion[r].lock);
r                1054 net/netfilter/ipset/ip_set_hash_gen.h 	int i, j, k, r, ret = -IPSET_ERR_EXIST;
r                1064 net/netfilter/ipset/ip_set_hash_gen.h 	r = ahash_region(key, t->htable_bits);
r                1068 net/netfilter/ipset/ip_set_hash_gen.h 	spin_lock_bh(&t->hregion[r].lock);
r                1088 net/netfilter/ipset/ip_set_hash_gen.h 		t->hregion[r].elements--;
r                1114 net/netfilter/ipset/ip_set_hash_gen.h 			t->hregion[r].ext_size -= ext_size(n->size, dsize);
r                1133 net/netfilter/ipset/ip_set_hash_gen.h 			t->hregion[r].ext_size -=
r                1142 net/netfilter/ipset/ip_set_hash_gen.h 	spin_unlock_bh(&t->hregion[r].lock);
r                2219 net/netfilter/ipvs/ip_vs_core.c 	int r;
r                2229 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in_icmp(ipvs, skb, &r, state->hook);
r                2237 net/netfilter/ipvs/ip_vs_core.c 	int r;
r                2249 net/netfilter/ipvs/ip_vs_core.c 	return ip_vs_in_icmp_v6(ipvs, skb, &r, state->hook, &iphdr);
r                 559 net/netfilter/nf_conncount.c static void destroy_tree(struct rb_root *r)
r                 564 net/netfilter/nf_conncount.c 	while ((node = rb_first(r)) != NULL) {
r                 567 net/netfilter/nf_conncount.c 		rb_erase(node, r);
r                 421 net/netfilter/nf_log.c 	int r = 0;
r                 433 net/netfilter/nf_log.c 		r = proc_dostring(&tmp, write, buffer, lenp, ppos);
r                 434 net/netfilter/nf_log.c 		if (r)
r                 435 net/netfilter/nf_log.c 			return r;
r                 460 net/netfilter/nf_log.c 		r = proc_dostring(&tmp, write, buffer, lenp, ppos);
r                 463 net/netfilter/nf_log.c 	return r;
r                6663 net/netfilter/nf_tables_api.c 	struct nft_rule **r = rules;
r                6666 net/netfilter/nf_tables_api.c 	while (*r)
r                6667 net/netfilter/nf_tables_api.c 		r++;
r                6669 net/netfilter/nf_tables_api.c 	r++;	/* rcu_head is after end marker */
r                6670 net/netfilter/nf_tables_api.c 	old = (void *) r;
r                  28 net/netfilter/xt_esp.c 	bool r;
r                  31 net/netfilter/xt_esp.c 	r = (spi >= min && spi <= max) ^ invert;
r                  32 net/netfilter/xt_esp.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  33 net/netfilter/xt_esp.c 	return r;
r                 523 net/netfilter/xt_hashlimit.c 	u64 r;
r                 525 net/netfilter/xt_hashlimit.c 	r = user ? U32_MAX / user : U32_MAX;
r                 526 net/netfilter/xt_hashlimit.c 	return (r - 1) << XT_HASHLIMIT_BYTE_SHIFT;
r                  32 net/netfilter/xt_ipcomp.c 	bool r;
r                  35 net/netfilter/xt_ipcomp.c 	r = (spi >= min && spi <= max) ^ invert;
r                  36 net/netfilter/xt_ipcomp.c 	pr_debug(" result %s\n", r ? "PASS" : "FAILED");
r                  37 net/netfilter/xt_ipcomp.c 	return r;
r                  67 net/netfilter/xt_limit.c 	const struct xt_rateinfo *r = par->matchinfo;
r                  68 net/netfilter/xt_limit.c 	struct xt_limit_priv *priv = r->master;
r                  73 net/netfilter/xt_limit.c 	if (priv->credit > r->credit_cap)
r                  74 net/netfilter/xt_limit.c 		priv->credit = r->credit_cap;
r                  76 net/netfilter/xt_limit.c 	if (priv->credit >= r->cost) {
r                  78 net/netfilter/xt_limit.c 		priv->credit -= r->cost;
r                 100 net/netfilter/xt_limit.c 	struct xt_rateinfo *r = par->matchinfo;
r                 104 net/netfilter/xt_limit.c 	if (r->burst == 0
r                 105 net/netfilter/xt_limit.c 	    || user2credits(r->avg * r->burst) < user2credits(r->avg)) {
r                 107 net/netfilter/xt_limit.c 				    r->avg, r->burst);
r                 116 net/netfilter/xt_limit.c 	r->master = priv;
r                 120 net/netfilter/xt_limit.c 	priv->credit = user2credits(r->avg * r->burst); /* Credits full. */
r                 121 net/netfilter/xt_limit.c 	if (r->cost == 0) {
r                 122 net/netfilter/xt_limit.c 		r->credit_cap = priv->credit; /* Credits full. */
r                 123 net/netfilter/xt_limit.c 		r->cost = user2credits(r->avg);
r                  80 net/netfilter/xt_time.c static inline unsigned int localtime_1(struct xtm *r, time_t time)
r                  86 net/netfilter/xt_time.c 	r->second = v % 60;
r                  88 net/netfilter/xt_time.c 	r->minute = w % 60;
r                  89 net/netfilter/xt_time.c 	r->hour   = w / 60;
r                  93 net/netfilter/xt_time.c static inline void localtime_2(struct xtm *r, time_t time)
r                  99 net/netfilter/xt_time.c 	r->dse = time / 86400;
r                 105 net/netfilter/xt_time.c 	r->weekday = (4 + r->dse - 1) % 7 + 1;
r                 108 net/netfilter/xt_time.c static void localtime_3(struct xtm *r, time_t time)
r                 110 net/netfilter/xt_time.c 	unsigned int year, i, w = r->dse;
r                 146 net/netfilter/xt_time.c 		r->monthday = w - days_since_leapyear[i] + 1;
r                 151 net/netfilter/xt_time.c 		r->monthday = w - days_since_year[i] + 1;
r                 154 net/netfilter/xt_time.c 	r->month    = i + 1;
r                 147 net/nfc/hci/command.c 	int r;
r                 167 net/nfc/hci/command.c 	r = nfc_hci_send_cmd(hdev, gate, NFC_HCI_ANY_SET_PARAMETER,
r                 172 net/nfc/hci/command.c 	return r;
r                 189 net/nfc/hci/command.c 	int r;
r                 193 net/nfc/hci/command.c 	r = nfc_hci_execute_cmd(hdev, pipe, NFC_HCI_ANY_OPEN_PIPE,
r                 195 net/nfc/hci/command.c 	if (r == 0) {
r                 203 net/nfc/hci/command.c 	return r;
r                 271 net/nfc/hci/command.c 	int r;
r                 279 net/nfc/hci/command.c 	r = nfc_hci_close_pipe(hdev, pipe);
r                 280 net/nfc/hci/command.c 	if (r < 0)
r                 281 net/nfc/hci/command.c 		return r;
r                 284 net/nfc/hci/command.c 		r = nfc_hci_delete_pipe(hdev, pipe);
r                 285 net/nfc/hci/command.c 		if (r < 0)
r                 286 net/nfc/hci/command.c 			return r;
r                 297 net/nfc/hci/command.c 	int r;
r                 301 net/nfc/hci/command.c 	r = nfc_hci_clear_all_pipes(hdev);
r                 302 net/nfc/hci/command.c 	if (r < 0)
r                 303 net/nfc/hci/command.c 		return r;
r                 315 net/nfc/hci/command.c 	int r;
r                 336 net/nfc/hci/command.c 		pipe = nfc_hci_create_pipe(hdev, dest_host, dest_gate, &r);
r                 338 net/nfc/hci/command.c 			return r;
r                 344 net/nfc/hci/command.c 	r = nfc_hci_open_pipe(hdev, pipe);
r                 345 net/nfc/hci/command.c 	if (r < 0) {
r                 351 net/nfc/hci/command.c 		return r;
r                  69 net/nfc/hci/core.c 	int r = 0;
r                  99 net/nfc/hci/core.c 		r = nfc_llc_xmit_from_hci(hdev->llc, skb);
r                 100 net/nfc/hci/core.c 		if (r < 0) {
r                 104 net/nfc/hci/core.c 				msg->cb(msg->cb_context, NULL, r);
r                 110 net/nfc/hci/core.c 	if (r)
r                 290 net/nfc/hci/core.c 	int r;
r                 300 net/nfc/hci/core.c 		r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,
r                 302 net/nfc/hci/core.c 		if (r < 0)
r                 305 net/nfc/hci/core.c 		r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,
r                 307 net/nfc/hci/core.c 		if (r < 0)
r                 311 net/nfc/hci/core.c 			r = -EPROTO;
r                 318 net/nfc/hci/core.c 			r = -EPROTO;
r                 325 net/nfc/hci/core.c 		r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,
r                 327 net/nfc/hci/core.c 		if (r < 0)
r                 331 net/nfc/hci/core.c 			r = -EPROTO;
r                 339 net/nfc/hci/core.c 			r = hdev->ops->complete_target_discovered(hdev, gate,
r                 341 net/nfc/hci/core.c 			if (r < 0)
r                 350 net/nfc/hci/core.c 			r = hdev->ops->target_from_gate(hdev, gate, targets);
r                 352 net/nfc/hci/core.c 			r = -EPROTO;
r                 353 net/nfc/hci/core.c 		if (r < 0)
r                 357 net/nfc/hci/core.c 			r = hdev->ops->complete_target_discovered(hdev, gate,
r                 359 net/nfc/hci/core.c 			if (r < 0)
r                 369 net/nfc/hci/core.c 	r = nfc_targets_found(hdev->ndev, targets, 1);
r                 377 net/nfc/hci/core.c 	return r;
r                 384 net/nfc/hci/core.c 	int r = 0;
r                 399 net/nfc/hci/core.c 		r = hdev->ops->event_received(hdev, pipe, event, skb);
r                 400 net/nfc/hci/core.c 		if (r <= 0)
r                 407 net/nfc/hci/core.c 			r = -EPROTO;
r                 422 net/nfc/hci/core.c 			r = -EPROTO;
r                 426 net/nfc/hci/core.c 		r = nfc_hci_target_discovered(hdev, gate);
r                 430 net/nfc/hci/core.c 		r = -EINVAL;
r                 438 net/nfc/hci/core.c 	if (r)
r                 439 net/nfc/hci/core.c 		nfc_hci_driver_failure(hdev, r);
r                 452 net/nfc/hci/core.c 	int r;
r                 454 net/nfc/hci/core.c 		r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID,
r                 456 net/nfc/hci/core.c 		if (r < 0)
r                 457 net/nfc/hci/core.c 			return r;
r                 467 net/nfc/hci/core.c 	int r;
r                 472 net/nfc/hci/core.c 	r = nfc_hci_connect_gate(hdev, NFC_HCI_HOST_CONTROLLER_ID,
r                 475 net/nfc/hci/core.c 	if (r < 0)
r                 478 net/nfc/hci/core.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ADMIN_GATE,
r                 480 net/nfc/hci/core.c 	if (r < 0)
r                 488 net/nfc/hci/core.c 		r = hdev->ops->load_session(hdev);
r                 490 net/nfc/hci/core.c 		if (r < 0)
r                 494 net/nfc/hci/core.c 		r = nfc_hci_disconnect_all_gates(hdev);
r                 495 net/nfc/hci/core.c 		if (r < 0)
r                 498 net/nfc/hci/core.c 		r = hci_dev_connect_gates(hdev, hdev->init_data.gate_count,
r                 500 net/nfc/hci/core.c 		if (r < 0)
r                 503 net/nfc/hci/core.c 		r = nfc_hci_set_param(hdev, NFC_HCI_ADMIN_GATE,
r                 508 net/nfc/hci/core.c 	if (r == 0)
r                 517 net/nfc/hci/core.c 	return r;
r                 522 net/nfc/hci/core.c 	int r;
r                 525 net/nfc/hci/core.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ID_MGMT_GATE,
r                 527 net/nfc/hci/core.c 	if (r == -EOPNOTSUPP) {
r                 531 net/nfc/hci/core.c 	if (r < 0)
r                 532 net/nfc/hci/core.c 		return r;
r                 546 net/nfc/hci/core.c 	r = nfc_hci_get_param(hdev, NFC_HCI_ID_MGMT_GATE,
r                 548 net/nfc/hci/core.c 	if (r < 0)
r                 549 net/nfc/hci/core.c 		return r;
r                 582 net/nfc/hci/core.c 	int r = 0;
r                 585 net/nfc/hci/core.c 		r = hdev->ops->open(hdev);
r                 586 net/nfc/hci/core.c 		if (r < 0)
r                 587 net/nfc/hci/core.c 			return r;
r                 590 net/nfc/hci/core.c 	r = nfc_llc_start(hdev->llc);
r                 591 net/nfc/hci/core.c 	if (r < 0)
r                 594 net/nfc/hci/core.c 	r = hci_dev_session_init(hdev);
r                 595 net/nfc/hci/core.c 	if (r < 0)
r                 598 net/nfc/hci/core.c 	r = nfc_hci_send_event(hdev, NFC_HCI_RF_READER_A_GATE,
r                 600 net/nfc/hci/core.c 	if (r < 0)
r                 604 net/nfc/hci/core.c 		r = hdev->ops->hci_ready(hdev);
r                 605 net/nfc/hci/core.c 		if (r < 0)
r                 609 net/nfc/hci/core.c 	r = hci_dev_version(hdev);
r                 610 net/nfc/hci/core.c 	if (r < 0)
r                 622 net/nfc/hci/core.c 	return r;
r                 727 net/nfc/hci/core.c 	int r;
r                 735 net/nfc/hci/core.c 			r = hdev->ops->im_transceive(hdev, target, skb, cb,
r                 737 net/nfc/hci/core.c 			if (r <= 0)	/* handled */
r                 747 net/nfc/hci/core.c 		r = nfc_hci_send_cmd_async(hdev, target->hci_reader_gate,
r                 753 net/nfc/hci/core.c 			r = hdev->ops->im_transceive(hdev, target, skb, cb,
r                 755 net/nfc/hci/core.c 			if (r == 1)
r                 756 net/nfc/hci/core.c 				r = -ENOTSUPP;
r                 758 net/nfc/hci/core.c 			r = -ENOTSUPP;
r                 765 net/nfc/hci/core.c 	return r;
r                  16 net/nfc/hci/llc.c 	int r;
r                  18 net/nfc/hci/llc.c 	r = nfc_llc_nop_register();
r                  19 net/nfc/hci/llc.c 	if (r)
r                  22 net/nfc/hci/llc.c 	r = nfc_llc_shdlc_register();
r                  23 net/nfc/hci/llc.c 	if (r)
r                  30 net/nfc/hci/llc.c 	return r;
r                 143 net/nfc/hci/llc_shdlc.c 	int r;
r                 154 net/nfc/hci/llc_shdlc.c 	r = shdlc->xmit_to_drv(shdlc->hdev, skb);
r                 158 net/nfc/hci/llc_shdlc.c 	return r;
r                 166 net/nfc/hci/llc_shdlc.c 	int r;
r                 172 net/nfc/hci/llc_shdlc.c 	r = shdlc->xmit_to_drv(shdlc->hdev, skb);
r                 176 net/nfc/hci/llc_shdlc.c 	return r;
r                 343 net/nfc/hci/llc_shdlc.c static void llc_shdlc_connect_complete(struct llc_shdlc *shdlc, int r)
r                 345 net/nfc/hci/llc_shdlc.c 	pr_debug("result=%d\n", r);
r                 349 net/nfc/hci/llc_shdlc.c 	if (r == 0) {
r                 359 net/nfc/hci/llc_shdlc.c 	shdlc->connect_result = r;
r                 399 net/nfc/hci/llc_shdlc.c 	int r;
r                 423 net/nfc/hci/llc_shdlc.c 				r = llc_shdlc_connect_send_ua(shdlc);
r                 424 net/nfc/hci/llc_shdlc.c 				llc_shdlc_connect_complete(shdlc, r);
r                 521 net/nfc/hci/llc_shdlc.c 	int r;
r                 550 net/nfc/hci/llc_shdlc.c 		r = shdlc->xmit_to_drv(shdlc->hdev, skb);
r                 551 net/nfc/hci/llc_shdlc.c 		if (r < 0) {
r                 552 net/nfc/hci/llc_shdlc.c 			shdlc->hard_fault = r;
r                 602 net/nfc/hci/llc_shdlc.c 	int r;
r                 621 net/nfc/hci/llc_shdlc.c 			r = llc_shdlc_connect_initiate(shdlc);
r                 623 net/nfc/hci/llc_shdlc.c 			r = -ETIME;
r                 624 net/nfc/hci/llc_shdlc.c 		if (r < 0) {
r                 625 net/nfc/hci/llc_shdlc.c 			llc_shdlc_connect_complete(shdlc, r);
r                 656 net/nfc/hci/llc_shdlc.c 			r = llc_shdlc_send_s_frame(shdlc, S_FRAME_RR,
r                 658 net/nfc/hci/llc_shdlc.c 			if (r < 0)
r                 659 net/nfc/hci/llc_shdlc.c 				shdlc->hard_fault = r;
r                 421 net/nfc/nci/core.c 	int r;
r                 429 net/nfc/nci/core.c 		r = nci_core_conn_create(ndev, NCI_DESTINATION_NFCC_LOOPBACK,
r                 431 net/nfc/nci/core.c 		if (r != NCI_STATUS_OK)
r                 432 net/nfc/nci/core.c 			return r;
r                 458 net/nfc/nci/core.c 	r = nci_request(ndev, nci_send_data_req, (unsigned long)&loopback_data,
r                 460 net/nfc/nci/core.c 	if (r == NCI_STATUS_OK && resp)
r                 463 net/nfc/nci/core.c 	return r;
r                 681 net/nfc/nci/core.c 	int r;
r                 708 net/nfc/nci/core.c 	r = __nci_request(ndev, nci_core_conn_create_req, (unsigned long)&data,
r                 711 net/nfc/nci/core.c 	return r;
r                1054 net/nfc/nci/core.c 	int r;
r                1058 net/nfc/nci/core.c 		r = nci_nfcee_discover(ndev, NCI_NFCEE_DISCOVERY_ACTION_ENABLE);
r                1059 net/nfc/nci/core.c 		if (r != NCI_STATUS_OK)
r                 147 net/nfc/nci/hci.c 	int len, i, r;
r                 180 net/nfc/nci/hci.c 		r = nci_send_data(ndev, conn_info->conn_id, skb);
r                 181 net/nfc/nci/hci.c 		if (r < 0)
r                 182 net/nfc/nci/hci.c 			return r;
r                 229 net/nfc/nci/hci.c 	int r;
r                 245 net/nfc/nci/hci.c 	r = nci_request(ndev, nci_hci_send_data_req, (unsigned long)&data,
r                 247 net/nfc/nci/hci.c 	if (r == NCI_STATUS_OK) {
r                 249 net/nfc/nci/hci.c 		r = nci_hci_result_to_errno(
r                 253 net/nfc/nci/hci.c 		if (!r && skb)
r                 257 net/nfc/nci/hci.c 	return r;
r                 263 net/nfc/nci/hci.c 	int r;
r                 265 net/nfc/nci/hci.c 	r = nci_hci_send_cmd(ndev, NCI_HCI_ADMIN_GATE,
r                 267 net/nfc/nci/hci.c 	if (r < 0)
r                 268 net/nfc/nci/hci.c 		return r;
r                 271 net/nfc/nci/hci.c 	return r;
r                 568 net/nfc/nci/hci.c 	int r;
r                 595 net/nfc/nci/hci.c 	r = nci_request(ndev, nci_hci_send_data_req,
r                 598 net/nfc/nci/hci.c 	if (r == NCI_STATUS_OK) {
r                 600 net/nfc/nci/hci.c 		r = nci_hci_result_to_errno(
r                 606 net/nfc/nci/hci.c 	return r;
r                 616 net/nfc/nci/hci.c 	int r;
r                 635 net/nfc/nci/hci.c 	r = nci_request(ndev, nci_hci_send_data_req, (unsigned long)&data,
r                 638 net/nfc/nci/hci.c 	if (r == NCI_STATUS_OK) {
r                 640 net/nfc/nci/hci.c 		r = nci_hci_result_to_errno(
r                 644 net/nfc/nci/hci.c 		if (!r && skb)
r                 648 net/nfc/nci/hci.c 	return r;
r                 656 net/nfc/nci/hci.c 	int r;
r                 675 net/nfc/nci/hci.c 		pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r);
r                 677 net/nfc/nci/hci.c 			return r;
r                 683 net/nfc/nci/hci.c 	r = nci_hci_open_pipe(ndev, pipe);
r                 684 net/nfc/nci/hci.c 	if (r < 0) {
r                 692 net/nfc/nci/hci.c 		return r;
r                 707 net/nfc/nci/hci.c 	int r;
r                 710 net/nfc/nci/hci.c 		r = nci_hci_connect_gate(ndev, gates->dest_host,
r                 712 net/nfc/nci/hci.c 		if (r < 0)
r                 713 net/nfc/nci/hci.c 			return r;
r                 724 net/nfc/nci/hci.c 	int r;
r                 741 net/nfc/nci/hci.c 	r = nci_hci_connect_gate(ndev,
r                 745 net/nfc/nci/hci.c 	if (r < 0)
r                 746 net/nfc/nci/hci.c 		return r;
r                 748 net/nfc/nci/hci.c 	r = nci_hci_get_param(ndev, NCI_HCI_ADMIN_GATE,
r                 750 net/nfc/nci/hci.c 	if (r < 0)
r                 751 net/nfc/nci/hci.c 		return r;
r                 758 net/nfc/nci/hci.c 		r = ndev->ops->hci_load_session(ndev);
r                 760 net/nfc/nci/hci.c 		r = nci_hci_clear_all_pipes(ndev);
r                 761 net/nfc/nci/hci.c 		if (r < 0)
r                 764 net/nfc/nci/hci.c 		r = nci_hci_dev_connect_gates(ndev,
r                 767 net/nfc/nci/hci.c 		if (r < 0)
r                 770 net/nfc/nci/hci.c 		r = nci_hci_set_param(ndev, NCI_HCI_ADMIN_GATE,
r                 779 net/nfc/nci/hci.c 	return r;
r                  42 net/sched/cls_basic.c 	int r;
r                  52 net/sched/cls_basic.c 		r = tcf_exts_exec(skb, &f->exts, res);
r                  53 net/sched/cls_basic.c 		if (r < 0)
r                  55 net/sched/cls_basic.c 		return r;
r                 303 net/sched/cls_flow.c 	int r;
r                 336 net/sched/cls_flow.c 		r = tcf_exts_exec(skb, &f->exts, res);
r                 337 net/sched/cls_flow.c 		if (r < 0)
r                 339 net/sched/cls_flow.c 		return r;
r                  55 net/sched/cls_fw.c 	int r;
r                  67 net/sched/cls_fw.c 				r = tcf_exts_exec(skb, &f->exts, res);
r                  68 net/sched/cls_fw.c 				if (r < 0)
r                  71 net/sched/cls_fw.c 				return r;
r                 113 net/sched/cls_route.c 		int r = tcf_exts_exec(skb, &f->exts, res);	\
r                 114 net/sched/cls_route.c 		if (r < 0) {					\
r                 118 net/sched/cls_route.c 		return r;					\
r                 120 net/sched/cls_rsvp.h 	int r = tcf_exts_exec(skb, &f->exts, res);	\
r                 121 net/sched/cls_rsvp.h 	if (r < 0)					\
r                 123 net/sched/cls_rsvp.h 	else if (r > 0)					\
r                 124 net/sched/cls_rsvp.h 		return r;				\
r                  60 net/sched/cls_tcindex.c static inline int tcindex_filter_is_set(struct tcindex_filter_result *r)
r                  62 net/sched/cls_tcindex.c 	return tcf_exts_has_actions(&r->exts) || r->res.classid;
r                 133 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r;
r                 138 net/sched/cls_tcindex.c 	r = tcindex_lookup(p, handle);
r                 139 net/sched/cls_tcindex.c 	return r && tcindex_filter_is_set(r) ? r : NULL;
r                 160 net/sched/cls_tcindex.c static void __tcindex_destroy_rexts(struct tcindex_filter_result *r)
r                 162 net/sched/cls_tcindex.c 	tcf_exts_destroy(&r->exts);
r                 163 net/sched/cls_tcindex.c 	tcf_exts_put_net(&r->exts);
r                 164 net/sched/cls_tcindex.c 	tcindex_data_put(r->p);
r                 169 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r;
r                 171 net/sched/cls_tcindex.c 	r = container_of(to_rcu_work(work),
r                 175 net/sched/cls_tcindex.c 	__tcindex_destroy_rexts(r);
r                 201 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r = arg;
r                 207 net/sched/cls_tcindex.c 		if (!r->res.class)
r                 216 net/sched/cls_tcindex.c 				if (&f->result == r)
r                 225 net/sched/cls_tcindex.c 	tcf_unbind_filter(tp, &r->res);
r                 238 net/sched/cls_tcindex.c 		if (tcf_exts_get_net(&r->exts))
r                 239 net/sched/cls_tcindex.c 			tcf_queue_work(&r->rwork, tcindex_destroy_rexts_work);
r                 241 net/sched/cls_tcindex.c 			__tcindex_destroy_rexts(r);
r                 271 net/sched/cls_tcindex.c static int tcindex_filter_result_init(struct tcindex_filter_result *r,
r                 275 net/sched/cls_tcindex.c 	memset(r, 0, sizeof(*r));
r                 276 net/sched/cls_tcindex.c 	r->p = p;
r                 277 net/sched/cls_tcindex.c 	return tcf_exts_init(&r->exts, net, TCA_TCINDEX_ACT,
r                 329 net/sched/cls_tcindex.c 		  struct tcindex_filter_result *r, struct nlattr **tb,
r                 332 net/sched/cls_tcindex.c 	struct tcindex_filter_result new_filter_result, *old_r = r;
r                 398 net/sched/cls_tcindex.c 		cr = r->res;
r                 452 net/sched/cls_tcindex.c 		r = cp->perfect + handle;
r                 454 net/sched/cls_tcindex.c 		r = tcindex_lookup(cp, handle) ? : &new_filter_result;
r                 456 net/sched/cls_tcindex.c 	if (r == &new_filter_result) {
r                 474 net/sched/cls_tcindex.c 	if (old_r && old_r != r) {
r                 483 net/sched/cls_tcindex.c 	r->res = cr;
r                 484 net/sched/cls_tcindex.c 	tcf_exts_change(&r->exts, &e);
r                 488 net/sched/cls_tcindex.c 	if (r == &new_filter_result) {
r                 492 net/sched/cls_tcindex.c 		f->result.res = r->res;
r                 493 net/sched/cls_tcindex.c 		tcf_exts_change(&f->result.exts, &r->exts);
r                 531 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r = *arg;
r                 536 net/sched/cls_tcindex.c 	    tp, handle, tca, arg, opt, p, r, arg ? *arg : NULL);
r                 546 net/sched/cls_tcindex.c 	return tcindex_set_parms(net, tp, base, handle, p, r, tb,
r                 597 net/sched/cls_tcindex.c 			struct tcindex_filter_result *r = p->perfect + i;
r                 607 net/sched/cls_tcindex.c 			tcf_unbind_filter(tp, &r->res);
r                 608 net/sched/cls_tcindex.c 			if (tcf_exts_get_net(&r->exts))
r                 609 net/sched/cls_tcindex.c 				tcf_queue_work(&r->rwork,
r                 612 net/sched/cls_tcindex.c 				__tcindex_destroy_rexts(r);
r                 634 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r = fh;
r                 638 net/sched/cls_tcindex.c 		 tp, fh, skb, t, p, r);
r                 655 net/sched/cls_tcindex.c 			t->tcm_handle = r - p->perfect;
r                 667 net/sched/cls_tcindex.c 					if (&f->result == r)
r                 673 net/sched/cls_tcindex.c 		if (r->res.class &&
r                 674 net/sched/cls_tcindex.c 		    nla_put_u32(skb, TCA_TCINDEX_CLASSID, r->res.classid))
r                 677 net/sched/cls_tcindex.c 		if (tcf_exts_dump(skb, &r->exts) < 0)
r                 681 net/sched/cls_tcindex.c 		if (tcf_exts_dump_stats(skb, &r->exts) < 0)
r                 695 net/sched/cls_tcindex.c 	struct tcindex_filter_result *r = fh;
r                 697 net/sched/cls_tcindex.c 	if (r && r->res.classid == classid) {
r                 699 net/sched/cls_tcindex.c 			__tcf_bind_filter(q, &r->res, base);
r                 701 net/sched/cls_tcindex.c 			__tcf_unbind_filter(q, &r->res);
r                 120 net/sched/cls_u32.c 	int i, r;
r                 181 net/sched/cls_u32.c 				r = tcf_exts_exec(skb, &n->exts, res);
r                 182 net/sched/cls_u32.c 				if (r < 0) {
r                 187 net/sched/cls_u32.c 				return r;
r                 684 net/sched/em_meta.c 	int r = a->len - b->len;
r                 686 net/sched/em_meta.c 	if (r == 0)
r                 687 net/sched/em_meta.c 		r = memcmp((void *) a->value, (void *) b->value, a->len);
r                 689 net/sched/em_meta.c 	return r;
r                 846 net/sched/em_meta.c 	int r;
r                 854 net/sched/em_meta.c 	r = meta_type_ops(&meta->lvalue)->compare(&l_value, &r_value);
r                 858 net/sched/em_meta.c 		return !r;
r                 860 net/sched/em_meta.c 		return r < 0;
r                 862 net/sched/em_meta.c 		return r > 0;
r                 493 net/sched/ematch.c 	int r = em->ops->match(skb, em, info);
r                 495 net/sched/ematch.c 	return tcf_em_is_inverted(em) ? !r : r;
r                 382 net/sched/sch_api.c static __u8 __detect_linklayer(struct tc_ratespec *r, __u32 *rtab)
r                 384 net/sched/sch_api.c 	int low       = roundup(r->mpu, 48);
r                 386 net/sched/sch_api.c 	int cell_low  = low >> r->cell_log;
r                 387 net/sched/sch_api.c 	int cell_high = (high >> r->cell_log) - 1;
r                 390 net/sched/sch_api.c 	if ((r->rate > (100000000/8)) || (rtab[0] == 0)) {
r                 406 net/sched/sch_api.c struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r,
r                 412 net/sched/sch_api.c 	if (tab == NULL || r->rate == 0 || r->cell_log == 0 ||
r                 419 net/sched/sch_api.c 		if (!memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) &&
r                 428 net/sched/sch_api.c 		rtab->rate = *r;
r                 431 net/sched/sch_api.c 		if (r->linklayer == TC_LINKLAYER_UNAWARE)
r                 432 net/sched/sch_api.c 			r->linklayer = __detect_linklayer(r, rtab->data);
r                1383 net/sched/sch_cake.c 		u32 r = l + 1;
r                1394 net/sched/sch_cake.c 		if (r < a) {
r                1395 net/sched/sch_cake.c 			u32 rb = cake_heap_get_backlog(q, r);
r                1398 net/sched/sch_cake.c 				m  = r;
r                1162 net/sched/sch_cbq.c 	struct tc_ratespec *r;
r                1178 net/sched/sch_cbq.c 	r = nla_data(tb[TCA_CBQ_RATE]);
r                1180 net/sched/sch_cbq.c 	q->link.R_tab = qdisc_get_rtab(r, tb[TCA_CBQ_RTAB], extack);
r                1317 net/sched/sch_generic.c void psched_ratecfg_precompute(struct psched_ratecfg *r,
r                1321 net/sched/sch_generic.c 	memset(r, 0, sizeof(*r));
r                1322 net/sched/sch_generic.c 	r->overhead = conf->overhead;
r                1323 net/sched/sch_generic.c 	r->rate_bytes_ps = max_t(u64, conf->rate, rate64);
r                1324 net/sched/sch_generic.c 	r->linklayer = (conf->linklayer & TC_LINKLAYER_MASK);
r                1325 net/sched/sch_generic.c 	r->mult = 1;
r                1339 net/sched/sch_generic.c 	if (r->rate_bytes_ps > 0) {
r                1343 net/sched/sch_generic.c 			r->mult = div64_u64(factor, r->rate_bytes_ps);
r                1344 net/sched/sch_generic.c 			if (r->mult & (1U << 31) || factor & (1ULL << 63))
r                1347 net/sched/sch_generic.c 			r->shift++;
r                 744 net/sched/sch_htb.c 	struct rb_node *r = NULL;
r                 752 net/sched/sch_htb.c 			r = n;
r                 758 net/sched/sch_htb.c 	return r;
r                 835 net/sched/sch_netem.c 	const struct tc_netem_reorder *r = nla_data(attr);
r                 837 net/sched/sch_netem.c 	q->reorder = r->probability;
r                 838 net/sched/sch_netem.c 	init_crandom(&q->reorder_cor, r->correlation);
r                 843 net/sched/sch_netem.c 	const struct tc_netem_corrupt *r = nla_data(attr);
r                 845 net/sched/sch_netem.c 	q->corrupt = r->probability;
r                 846 net/sched/sch_netem.c 	init_crandom(&q->corrupt_cor, r->correlation);
r                 851 net/sched/sch_netem.c 	const struct tc_netem_rate *r = nla_data(attr);
r                 853 net/sched/sch_netem.c 	q->rate = r->rate;
r                 854 net/sched/sch_netem.c 	q->packet_overhead = r->packet_overhead;
r                 855 net/sched/sch_netem.c 	q->cell_size = r->cell_size;
r                 856 net/sched/sch_netem.c 	q->cell_overhead = r->cell_overhead;
r                 902 net/sched/sch_netem.c 			q->clg.a2 = ge->r;
r                1112 net/sched/sch_netem.c 			.r = q->clg.a2,
r                 289 net/sched/sch_sfb.c 	u32 r, sfbhash;
r                 380 net/sched/sch_sfb.c 	r = prandom_u32() & SFB_MAX_PROB;
r                 382 net/sched/sch_sfb.c 	if (unlikely(r < p_min)) {
r                 388 net/sched/sch_sfb.c 			if (r < (p_min - SFB_MAX_PROB / 2) * 2) {
r                 117 net/sched/sch_tbf.c static u64 psched_ns_t2l(const struct psched_ratecfg *r,
r                 123 net/sched/sch_tbf.c 	u64 len = time_in_ns * r->rate_bytes_ps;
r                 127 net/sched/sch_tbf.c 	if (unlikely(r->linklayer == TC_LINKLAYER_ATM)) {
r                 132 net/sched/sch_tbf.c 	if (len > r->overhead)
r                 133 net/sched/sch_tbf.c 		len -= r->overhead;
r                  22 net/sctp/diag.c static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                  26 net/sctp/diag.c static void inet_diag_msg_sctpasoc_fill(struct inet_diag_msg *r,
r                  39 net/sctp/diag.c 	r->idiag_family = sk->sk_family;
r                  40 net/sctp/diag.c 	r->id.idiag_sport = htons(asoc->base.bind_addr.port);
r                  41 net/sctp/diag.c 	r->id.idiag_dport = htons(asoc->peer.port);
r                  42 net/sctp/diag.c 	r->id.idiag_if = dst ? dst->dev->ifindex : 0;
r                  43 net/sctp/diag.c 	sock_diag_save_cookie(sk, r->id.idiag_cookie);
r                  47 net/sctp/diag.c 		*(struct in6_addr *)r->id.idiag_src = laddr.v6.sin6_addr;
r                  48 net/sctp/diag.c 		*(struct in6_addr *)r->id.idiag_dst = paddr.v6.sin6_addr;
r                  52 net/sctp/diag.c 		memset(&r->id.idiag_src, 0, sizeof(r->id.idiag_src));
r                  53 net/sctp/diag.c 		memset(&r->id.idiag_dst, 0, sizeof(r->id.idiag_dst));
r                  55 net/sctp/diag.c 		r->id.idiag_src[0] = laddr.v4.sin_addr.s_addr;
r                  56 net/sctp/diag.c 		r->id.idiag_dst[0] = paddr.v4.sin_addr.s_addr;
r                  59 net/sctp/diag.c 	r->idiag_state = asoc->state;
r                  61 net/sctp/diag.c 		r->idiag_timer = SCTP_EVENT_TIMEOUT_T3_RTX;
r                  62 net/sctp/diag.c 		r->idiag_retrans = asoc->rtx_data_chunks;
r                  63 net/sctp/diag.c 		r->idiag_expires = jiffies_to_msecs(t3_rtx->expires - jiffies);
r                  65 net/sctp/diag.c 		r->idiag_timer = 0;
r                  66 net/sctp/diag.c 		r->idiag_retrans = 0;
r                  67 net/sctp/diag.c 		r->idiag_expires = 0;
r                 133 net/sctp/diag.c 	struct inet_diag_msg *r;
r                 139 net/sctp/diag.c 	nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
r                 144 net/sctp/diag.c 	r = nlmsg_data(nlh);
r                 148 net/sctp/diag.c 		inet_diag_msg_sctpasoc_fill(r, sk, asoc);
r                 150 net/sctp/diag.c 		inet_diag_msg_common_fill(r, sk);
r                 151 net/sctp/diag.c 		r->idiag_state = sk->sk_state;
r                 152 net/sctp/diag.c 		r->idiag_timer = 0;
r                 153 net/sctp/diag.c 		r->idiag_retrans = 0;
r                 156 net/sctp/diag.c 	if (inet_diag_msg_attrs_fill(sk, skb, r, ext, user_ns, net_admin))
r                 198 net/sctp/diag.c 	sctp_diag_get_info(sk, r, &infox);
r                 224 net/sctp/diag.c 	const struct inet_diag_req_v2 *r;
r                 254 net/sctp/diag.c 	const struct inet_diag_req_v2 *req = commp->r;
r                 302 net/sctp/diag.c 	const struct inet_diag_req_v2 *r = commp->r;
r                 311 net/sctp/diag.c 		if (r->id.idiag_sport != htons(assoc->base.bind_addr.port) &&
r                 312 net/sctp/diag.c 		    r->id.idiag_sport)
r                 314 net/sctp/diag.c 		if (r->id.idiag_dport != htons(assoc->peer.port) &&
r                 315 net/sctp/diag.c 		    r->id.idiag_dport)
r                 319 net/sctp/diag.c 		    inet_sctp_diag_fill(sk, NULL, skb, r,
r                 330 net/sctp/diag.c 		if (inet_sctp_diag_fill(sk, assoc, skb, r,
r                 354 net/sctp/diag.c 	const struct inet_diag_req_v2 *r = commp->r;
r                 362 net/sctp/diag.c 	if (r->sdiag_family != AF_UNSPEC && sk->sk_family != r->sdiag_family)
r                 374 net/sctp/diag.c 	const struct inet_diag_req_v2 *r = commp->r;
r                 385 net/sctp/diag.c 	if (!(r->idiag_states & TCPF_LISTEN) && !list_empty(&ep->asocs))
r                 388 net/sctp/diag.c 	if (r->sdiag_family != AF_UNSPEC &&
r                 389 net/sctp/diag.c 	    sk->sk_family != r->sdiag_family)
r                 392 net/sctp/diag.c 	if (r->id.idiag_sport != inet->inet_sport &&
r                 393 net/sctp/diag.c 	    r->id.idiag_sport)
r                 396 net/sctp/diag.c 	if (r->id.idiag_dport != inet->inet_dport &&
r                 397 net/sctp/diag.c 	    r->id.idiag_dport)
r                 400 net/sctp/diag.c 	if (inet_sctp_diag_fill(sk, NULL, skb, r,
r                 415 net/sctp/diag.c static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
r                 421 net/sctp/diag.c 		r->idiag_rqueue = atomic_read(&infox->asoc->rmem_alloc);
r                 422 net/sctp/diag.c 		r->idiag_wqueue = infox->asoc->sndbuf_used;
r                 424 net/sctp/diag.c 		r->idiag_rqueue = sk->sk_ack_backlog;
r                 425 net/sctp/diag.c 		r->idiag_wqueue = sk->sk_max_ack_backlog;
r                 439 net/sctp/diag.c 		.r = req,
r                 469 net/sctp/diag.c 			   const struct inet_diag_req_v2 *r, struct nlattr *bc)
r                 471 net/sctp/diag.c 	u32 idiag_states = r->idiag_states;
r                 476 net/sctp/diag.c 		.r = r,
r                  38 net/smc/smc_diag.c static void smc_diag_msg_common_fill(struct smc_diag_msg *r, struct sock *sk)
r                  42 net/smc/smc_diag.c 	memset(r, 0, sizeof(*r));
r                  43 net/smc/smc_diag.c 	r->diag_family = sk->sk_family;
r                  44 net/smc/smc_diag.c 	sock_diag_save_cookie(sk, r->id.idiag_cookie);
r                  47 net/smc/smc_diag.c 	r->id.idiag_sport = htons(smc->clcsock->sk->sk_num);
r                  48 net/smc/smc_diag.c 	r->id.idiag_dport = smc->clcsock->sk->sk_dport;
r                  49 net/smc/smc_diag.c 	r->id.idiag_if = smc->clcsock->sk->sk_bound_dev_if;
r                  51 net/smc/smc_diag.c 		r->id.idiag_src[0] = smc->clcsock->sk->sk_rcv_saddr;
r                  52 net/smc/smc_diag.c 		r->id.idiag_dst[0] = smc->clcsock->sk->sk_daddr;
r                  55 net/smc/smc_diag.c 		memcpy(&r->id.idiag_src, &smc->clcsock->sk->sk_v6_rcv_saddr,
r                  57 net/smc/smc_diag.c 		memcpy(&r->id.idiag_dst, &smc->clcsock->sk->sk_v6_daddr,
r                  64 net/smc/smc_diag.c 				   struct smc_diag_msg *r,
r                  70 net/smc/smc_diag.c 	r->diag_uid = from_kuid_munged(user_ns, sock_i_uid(sk));
r                  71 net/smc/smc_diag.c 	r->diag_inode = sock_i_ino(sk);
r                  83 net/smc/smc_diag.c 	struct smc_diag_msg *r;
r                  87 net/smc/smc_diag.c 			cb->nlh->nlmsg_type, sizeof(*r), NLM_F_MULTI);
r                  91 net/smc/smc_diag.c 	r = nlmsg_data(nlh);
r                  92 net/smc/smc_diag.c 	smc_diag_msg_common_fill(r, sk);
r                  93 net/smc/smc_diag.c 	r->diag_state = sk->sk_state;
r                  95 net/smc/smc_diag.c 		r->diag_mode = SMC_DIAG_MODE_FALLBACK_TCP;
r                  97 net/smc/smc_diag.c 		r->diag_mode = SMC_DIAG_MODE_SMCD;
r                  99 net/smc/smc_diag.c 		r->diag_mode = SMC_DIAG_MODE_SMCR;
r                 101 net/smc/smc_diag.c 	if (smc_diag_msg_attrs_fill(sk, skb, r, user_ns))
r                3370 net/socket.c   	void *r = NULL;
r                3389 net/socket.c   		r = (void *) &r6;
r                3407 net/socket.c   		r = (void *) &r4;
r                3416 net/socket.c   	ret = sock_do_ioctl(net, sock, cmd, (unsigned long) r);
r                1074 net/tipc/link.c static bool link_retransmit_failure(struct tipc_link *l, struct tipc_link *r,
r                1087 net/tipc/link.c 			msecs_to_jiffies(r->tolerance * 10)))
r                1091 net/tipc/link.c 	if (link_is_bc_sndlink(l) && !less(r->acked, msg_seqno(hdr)))
r                1106 net/tipc/link.c 	trace_tipc_link_dump(r, TIPC_DUMP_NONE, "retrans failure!");
r                1109 net/tipc/link.c 		r->state = LINK_RESET;
r                1125 net/tipc/link.c static int tipc_link_bc_retrans(struct tipc_link *l, struct tipc_link *r,
r                1139 net/tipc/link.c 	trace_tipc_link_retrans(r, from, to, &l->transmq);
r                1141 net/tipc/link.c 	if (link_retransmit_failure(l, r, &rc))
r                 836 net/tipc/msg.h static inline void msg_set_redundant_link(struct tipc_msg *m, u32 r)
r                 838 net/tipc/msg.h 	msg_set_bits(m, 5, 12, 0x1, r);
r                 284 net/tipc/trace.h 	TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq),
r                 286 net/tipc/trace.h 	TP_ARGS(r, f, t, tq),
r                 298 net/tipc/trace.h 		tipc_link_name_ext(r, __entry->name);
r                 312 net/tipc/trace.h 	TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq),
r                 313 net/tipc/trace.h 	TP_ARGS(r, f, t, tq)
r                 317 net/tipc/trace.h 	TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq),
r                 318 net/tipc/trace.h 	TP_ARGS(r, f, t, tq),
r                 718 net/wireless/chan.c 	int r;
r                 727 net/wireless/chan.c 	r = cfg80211_get_chans_dfs_available(wiphy, chandef->center_freq1,
r                 731 net/wireless/chan.c 	if (!r)
r                 732 net/wireless/chan.c 		return r;
r                 737 net/wireless/chan.c 		r = cfg80211_get_chans_dfs_available(wiphy,
r                 746 net/wireless/chan.c 	return r;
r                 140 net/wireless/core.h 	u64 r = ++rdev->cookie_counter;
r                 142 net/wireless/core.h 	if (WARN_ON(r == 0))
r                 143 net/wireless/core.h 		r = ++rdev->cookie_counter;
r                 145 net/wireless/core.h 	return r;
r                 194 net/wireless/core.h 	int r = atomic_dec_return(&bss->hold);
r                 195 net/wireless/core.h 	WARN_ON(r < 0);
r                 199 net/wireless/core.h 		r = atomic_dec_return(&bss->hold);
r                 200 net/wireless/core.h 		WARN_ON(r < 0);
r                  68 net/wireless/debugfs.c 	unsigned int offset = 0, buf_size = PAGE_SIZE, i, r;
r                  89 net/wireless/debugfs.c 	r = simple_read_from_buffer(user_buf, count, ppos, buf, offset);
r                  93 net/wireless/debugfs.c 	return r;
r                7198 net/wireless/nl80211.c 	int rem_reg_rules, r;
r                7241 net/wireless/nl80211.c 		r = nla_parse_nested_deprecated(tb, NL80211_REG_RULE_ATTR_MAX,
r                7244 net/wireless/nl80211.c 		if (r)
r                7246 net/wireless/nl80211.c 		r = parse_reg_rule(tb, &rd->reg_rules[rule_idx]);
r                7247 net/wireless/nl80211.c 		if (r)
r                7253 net/wireless/nl80211.c 			r = -EINVAL;
r                7262 net/wireless/nl80211.c 	return r;
r                9097 net/wireless/nl80211.c 		int r = validate_pae_over_nl80211(rdev, info);
r                9099 net/wireless/nl80211.c 		if (r < 0)
r                9100 net/wireless/nl80211.c 			return r;
r                9561 net/wireless/nl80211.c 		int r = validate_pae_over_nl80211(rdev, info);
r                9563 net/wireless/nl80211.c 		if (r < 0) {
r                9565 net/wireless/nl80211.c 			return r;
r                11110 net/wireless/nl80211.c 		int r = validate_pae_over_nl80211(rdev, info);
r                11112 net/wireless/nl80211.c 		if (r < 0)
r                11113 net/wireless/nl80211.c 			return r;
r                 187 net/wireless/reg.c static void rcu_free_regdom(const struct ieee80211_regdomain *r)
r                 189 net/wireless/reg.c 	if (!r)
r                 191 net/wireless/reg.c 	kfree_rcu((struct ieee80211_regdomain *)r, rcu_head);
r                 304 net/wireless/reg.c 	const struct ieee80211_regdomain *r;
r                 308 net/wireless/reg.c 	r = get_cfg80211_regdom();
r                 311 net/wireless/reg.c 	if (r == cfg80211_world_regdom)
r                 312 net/wireless/reg.c 		r = NULL;
r                 315 net/wireless/reg.c 	if (r == &world_regdom)
r                 316 net/wireless/reg.c 		r = NULL;
r                 318 net/wireless/reg.c 	rcu_free_regdom(r);
r                 400 net/wireless/reg.c 	const struct ieee80211_regdomain *r = get_cfg80211_regdom();
r                 402 net/wireless/reg.c 	if (!r)
r                 404 net/wireless/reg.c 	return !alpha2_equal(r->alpha2, alpha2);
r                1486 net/wireless/reg.c 	int r;
r                1525 net/wireless/reg.c 			r = reg_rules_intersect(rd1, rd2, rule1, rule2,
r                1531 net/wireless/reg.c 			if (r)
r                3636 net/wireless/reg.c 	int r;
r                3654 net/wireless/reg.c 		r = reg_set_rd_core(rd);
r                3658 net/wireless/reg.c 		r = reg_set_rd_user(rd, lr);
r                3662 net/wireless/reg.c 		r = reg_set_rd_driver(rd, lr);
r                3665 net/wireless/reg.c 		r = reg_set_rd_country_ie(rd, lr);
r                3673 net/wireless/reg.c 	if (r) {
r                3674 net/wireless/reg.c 		switch (r) {
r                3684 net/wireless/reg.c 		return r;
r                 773 net/wireless/scan.c 	int i, r;
r                 812 net/wireless/scan.c 	r = memcmp(a->bssid, b->bssid, sizeof(a->bssid));
r                 813 net/wireless/scan.c 	if (r)
r                 814 net/wireless/scan.c 		return r;
r                 998 net/wireless/scan.c 	int r;
r                1002 net/wireless/scan.c 		r = cmp_bss(&res->pub, &bss->pub, mode);
r                1004 net/wireless/scan.c 		if (r == 0)
r                1006 net/wireless/scan.c 		else if (r < 0)
r                 421 net/wireless/wext-core.c 	struct ifinfomsg *r;
r                 424 net/wireless/wext-core.c 	nlh = nlmsg_put(skb, 0, 0, RTM_NEWLINK, sizeof(*r), 0);
r                 428 net/wireless/wext-core.c 	r = nlmsg_data(nlh);
r                 429 net/wireless/wext-core.c 	r->ifi_family = AF_UNSPEC;
r                 430 net/wireless/wext-core.c 	r->__ifi_pad = 0;
r                 431 net/wireless/wext-core.c 	r->ifi_type = dev->type;
r                 432 net/wireless/wext-core.c 	r->ifi_index = dev->ifindex;
r                 433 net/wireless/wext-core.c 	r->ifi_flags = dev_get_flags(dev);
r                 434 net/wireless/wext-core.c 	r->ifi_change = 0;	/* Wireless changes don't affect those flags */
r                1051 net/xfrm/xfrm_policy.c static void xfrm_policy_inexact_gc_tree(struct rb_root *r, bool rm)
r                1054 net/xfrm/xfrm_policy.c 	struct rb_node *rn = rb_first(r);
r                1067 net/xfrm/xfrm_policy.c 		rb_erase(&node->node, r);
r                1905 net/xfrm/xfrm_policy.c xfrm_policy_lookup_inexact_addr(const struct rb_root *r,
r                1915 net/xfrm/xfrm_policy.c 	parent = rcu_dereference_raw(r->rb_node);
r                 386 samples/bpf/bpf_load.c static int cmp_symbols(const void *l, const void *r)
r                 389 samples/bpf/bpf_load.c 	const GElf_Sym *rsym = (const GElf_Sym *)r;
r                  42 samples/bpf/lathist_kern.c 	unsigned int r;
r                  45 samples/bpf/lathist_kern.c 	r = (v > 0xFFFF) << 4; v >>= r;
r                  46 samples/bpf/lathist_kern.c 	shift = (v > 0xFF) << 3; v >>= shift; r |= shift;
r                  47 samples/bpf/lathist_kern.c 	shift = (v > 0xF) << 2; v >>= shift; r |= shift;
r                  48 samples/bpf/lathist_kern.c 	shift = (v > 0x3) << 1; v >>= shift; r |= shift;
r                  49 samples/bpf/lathist_kern.c 	r |= (v >> 1);
r                  51 samples/bpf/lathist_kern.c 	return r;
r                  46 samples/bpf/lwt_len_hist_kern.c 	unsigned int r;
r                  49 samples/bpf/lwt_len_hist_kern.c 	r = (v > 0xFFFF) << 4; v >>= r;
r                  50 samples/bpf/lwt_len_hist_kern.c 	shift = (v > 0xFF) << 3; v >>= shift; r |= shift;
r                  51 samples/bpf/lwt_len_hist_kern.c 	shift = (v > 0xF) << 2; v >>= shift; r |= shift;
r                  52 samples/bpf/lwt_len_hist_kern.c 	shift = (v > 0x3) << 1; v >>= shift; r |= shift;
r                  53 samples/bpf/lwt_len_hist_kern.c 	r |= (v >> 1);
r                  54 samples/bpf/lwt_len_hist_kern.c 	return r;
r                 369 samples/bpf/map_perf_test_user.c 	int r;
r                 380 samples/bpf/map_perf_test_user.c 		r = bpf_map_update_elem(map_fd[6], key, &value, 0);
r                 381 samples/bpf/map_perf_test_user.c 		assert(!r);
r                 391 samples/bpf/map_perf_test_user.c 	r = bpf_map_update_elem(map_fd[6], key, &value, 0);
r                 392 samples/bpf/map_perf_test_user.c 	assert(!r);
r                 432 samples/bpf/map_perf_test_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 437 samples/bpf/map_perf_test_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  98 samples/bpf/offwaketime_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 103 samples/bpf/offwaketime_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  19 samples/bpf/sockex2_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                  27 samples/bpf/sockex2_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  33 samples/bpf/sockex3_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                  41 samples/bpf/sockex3_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  14 samples/bpf/spintest_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                  21 samples/bpf/spintest_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  88 samples/bpf/syscall_tp_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 104 samples/bpf/syscall_tp_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                 293 samples/bpf/task_fd_query_user.c 	struct rlimit r = {1024*1024, RLIM_INFINITY};
r                 299 samples/bpf/task_fd_query_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 492 samples/bpf/test_lru_dist.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 511 samples/bpf/test_lru_dist.c 	assert(!setrlimit(RLIMIT_MEMLOCK, &r));
r                 115 samples/bpf/test_map_in_map_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 118 samples/bpf/test_map_in_map_user.c 	assert(!setrlimit(RLIMIT_MEMLOCK, &r));
r                 128 samples/bpf/test_overhead_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 133 samples/bpf/test_overhead_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                 284 samples/bpf/trace_event_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 288 samples/bpf/trace_event_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  45 samples/bpf/tracex2_kern.c 	unsigned int r;
r                  48 samples/bpf/tracex2_kern.c 	r = (v > 0xFFFF) << 4; v >>= r;
r                  49 samples/bpf/tracex2_kern.c 	shift = (v > 0xFF) << 3; v >>= shift; r |= shift;
r                  50 samples/bpf/tracex2_kern.c 	shift = (v > 0xF) << 2; v >>= shift; r |= shift;
r                  51 samples/bpf/tracex2_kern.c 	shift = (v > 0x3) << 1; v >>= shift; r |= shift;
r                  52 samples/bpf/tracex2_kern.c 	r |= (v >> 1);
r                  53 samples/bpf/tracex2_kern.c 	return r;
r                 117 samples/bpf/tracex2_user.c 	struct rlimit r = {1024*1024, RLIM_INFINITY};
r                 125 samples/bpf/tracex2_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 111 samples/bpf/tracex3_user.c 	struct rlimit r = {1024*1024, RLIM_INFINITY};
r                 117 samples/bpf/tracex3_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                  52 samples/bpf/tracex4_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                  58 samples/bpf/tracex4_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                  32 samples/bpf/tracex5_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                  35 samples/bpf/tracex5_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                 176 samples/bpf/tracex6_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 181 samples/bpf/tracex6_user.c 	setrlimit(RLIMIT_MEMLOCK, &r);
r                  82 samples/bpf/xdp1_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 117 samples/bpf/xdp1_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                  83 samples/bpf/xdp_adjust_tail_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 137 samples/bpf/xdp_adjust_tail_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 210 samples/bpf/xdp_monitor_user.c static double calc_period(struct record *r, struct record *p)
r                 215 samples/bpf/xdp_monitor_user.c 	period = r->timestamp - p->timestamp;
r                 222 samples/bpf/xdp_monitor_user.c static double calc_period_u64(struct record_u64 *r, struct record_u64 *p)
r                 227 samples/bpf/xdp_monitor_user.c 	period = r->timestamp - p->timestamp;
r                 234 samples/bpf/xdp_monitor_user.c static double calc_pps(struct datarec *r, struct datarec *p, double period)
r                 240 samples/bpf/xdp_monitor_user.c 		packets = r->processed - p->processed;
r                 246 samples/bpf/xdp_monitor_user.c static double calc_pps_u64(struct u64rec *r, struct u64rec *p, double period)
r                 252 samples/bpf/xdp_monitor_user.c 		packets = r->processed - p->processed;
r                 258 samples/bpf/xdp_monitor_user.c static double calc_drop(struct datarec *r, struct datarec *p, double period)
r                 264 samples/bpf/xdp_monitor_user.c 		packets = r->dropped - p->dropped;
r                 270 samples/bpf/xdp_monitor_user.c static double calc_info(struct datarec *r, struct datarec *p, double period)
r                 276 samples/bpf/xdp_monitor_user.c 		packets = r->info - p->info;
r                 282 samples/bpf/xdp_monitor_user.c static double calc_err(struct datarec *r, struct datarec *p, double period)
r                 288 samples/bpf/xdp_monitor_user.c 		packets = r->err - p->err;
r                 320 samples/bpf/xdp_monitor_user.c 			struct u64rec *r = &rec->cpu[i];
r                 323 samples/bpf/xdp_monitor_user.c 			pps = calc_pps_u64(r, p, t);
r                 345 samples/bpf/xdp_monitor_user.c 			struct u64rec *r = &rec->cpu[i];
r                 348 samples/bpf/xdp_monitor_user.c 			pps = calc_pps_u64(r, p, t);
r                 371 samples/bpf/xdp_monitor_user.c 			struct datarec *r = &rec->cpu[i];
r                 374 samples/bpf/xdp_monitor_user.c 			pps  = calc_pps(r, p, t);
r                 375 samples/bpf/xdp_monitor_user.c 			drop = calc_drop(r, p, t);
r                 376 samples/bpf/xdp_monitor_user.c 			info = calc_info(r, p, t);
r                 410 samples/bpf/xdp_monitor_user.c 			struct datarec *r = &rec->cpu[i];
r                 413 samples/bpf/xdp_monitor_user.c 			pps  = calc_pps(r, p, t);
r                 414 samples/bpf/xdp_monitor_user.c 			drop = calc_drop(r, p, t);
r                 415 samples/bpf/xdp_monitor_user.c 			info = calc_info(r, p, t);
r                 443 samples/bpf/xdp_monitor_user.c 			struct datarec *r = &rec->cpu[i];
r                 446 samples/bpf/xdp_monitor_user.c 			pps  = calc_pps(r, p, t);
r                 447 samples/bpf/xdp_monitor_user.c 			drop = calc_drop(r, p, t);
r                 448 samples/bpf/xdp_monitor_user.c 			info = calc_info(r, p, t);
r                 449 samples/bpf/xdp_monitor_user.c 			err  = calc_err(r, p, t);
r                 556 samples/bpf/xdp_monitor_user.c static void free_stats_record(struct stats_record *r)
r                 561 samples/bpf/xdp_monitor_user.c 		free(r->xdp_redirect[i].cpu);
r                 564 samples/bpf/xdp_monitor_user.c 		free(r->xdp_exception[i].cpu);
r                 566 samples/bpf/xdp_monitor_user.c 	free(r->xdp_cpumap_kthread.cpu);
r                 567 samples/bpf/xdp_monitor_user.c 	free(r->xdp_devmap_xmit.cpu);
r                 570 samples/bpf/xdp_monitor_user.c 		free(r->xdp_cpumap_enqueue[i].cpu);
r                 572 samples/bpf/xdp_monitor_user.c 	free(r);
r                 652 samples/bpf/xdp_monitor_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 683 samples/bpf/xdp_monitor_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 246 samples/bpf/xdp_redirect_cpu_user.c static void free_stats_record(struct stats_record *r)
r                 251 samples/bpf/xdp_redirect_cpu_user.c 		free(r->enq[i].cpu);
r                 252 samples/bpf/xdp_redirect_cpu_user.c 	free(r->exception.cpu);
r                 253 samples/bpf/xdp_redirect_cpu_user.c 	free(r->kthread.cpu);
r                 254 samples/bpf/xdp_redirect_cpu_user.c 	free(r->redir_err.cpu);
r                 255 samples/bpf/xdp_redirect_cpu_user.c 	free(r->rx_cnt.cpu);
r                 256 samples/bpf/xdp_redirect_cpu_user.c 	free(r);
r                 259 samples/bpf/xdp_redirect_cpu_user.c static double calc_period(struct record *r, struct record *p)
r                 264 samples/bpf/xdp_redirect_cpu_user.c 	period = r->timestamp - p->timestamp;
r                 271 samples/bpf/xdp_redirect_cpu_user.c static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_)
r                 277 samples/bpf/xdp_redirect_cpu_user.c 		packets = r->processed - p->processed;
r                 283 samples/bpf/xdp_redirect_cpu_user.c static __u64 calc_drop_pps(struct datarec *r, struct datarec *p, double period_)
r                 289 samples/bpf/xdp_redirect_cpu_user.c 		packets = r->dropped - p->dropped;
r                 295 samples/bpf/xdp_redirect_cpu_user.c static __u64 calc_errs_pps(struct datarec *r,
r                 302 samples/bpf/xdp_redirect_cpu_user.c 		packets = r->issue - p->issue;
r                 334 samples/bpf/xdp_redirect_cpu_user.c 			struct datarec *r = &rec->cpu[i];
r                 337 samples/bpf/xdp_redirect_cpu_user.c 			pps = calc_pps(r, p, t);
r                 338 samples/bpf/xdp_redirect_cpu_user.c 			drop = calc_drop_pps(r, p, t);
r                 339 samples/bpf/xdp_redirect_cpu_user.c 			err  = calc_errs_pps(r, p, t);
r                 362 samples/bpf/xdp_redirect_cpu_user.c 			struct datarec *r = &rec->cpu[i];
r                 365 samples/bpf/xdp_redirect_cpu_user.c 			pps  = calc_pps(r, p, t);
r                 366 samples/bpf/xdp_redirect_cpu_user.c 			drop = calc_drop_pps(r, p, t);
r                 367 samples/bpf/xdp_redirect_cpu_user.c 			err  = calc_errs_pps(r, p, t);
r                 399 samples/bpf/xdp_redirect_cpu_user.c 			struct datarec *r = &rec->cpu[i];
r                 402 samples/bpf/xdp_redirect_cpu_user.c 			pps  = calc_pps(r, p, t);
r                 403 samples/bpf/xdp_redirect_cpu_user.c 			drop = calc_drop_pps(r, p, t);
r                 404 samples/bpf/xdp_redirect_cpu_user.c 			err  = calc_errs_pps(r, p, t);
r                 428 samples/bpf/xdp_redirect_cpu_user.c 			struct datarec *r = &rec->cpu[i];
r                 431 samples/bpf/xdp_redirect_cpu_user.c 			pps  = calc_pps(r, p, t);
r                 432 samples/bpf/xdp_redirect_cpu_user.c 			drop = calc_drop_pps(r, p, t);
r                 450 samples/bpf/xdp_redirect_cpu_user.c 			struct datarec *r = &rec->cpu[i];
r                 453 samples/bpf/xdp_redirect_cpu_user.c 			pps  = calc_pps(r, p, t);
r                 454 samples/bpf/xdp_redirect_cpu_user.c 			drop = calc_drop_pps(r, p, t);
r                 671 samples/bpf/xdp_redirect_cpu_user.c 	struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY};
r                 702 samples/bpf/xdp_redirect_cpu_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                  99 samples/bpf/xdp_redirect_map_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 135 samples/bpf/xdp_redirect_map_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 100 samples/bpf/xdp_redirect_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 136 samples/bpf/xdp_redirect_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 628 samples/bpf/xdp_router_ipv4_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 670 samples/bpf/xdp_router_ipv4_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 249 samples/bpf/xdp_rxq_info_user.c static void free_stats_record(struct stats_record *r)
r                 255 samples/bpf/xdp_rxq_info_user.c 		free(r->rxq[i].cpu);
r                 257 samples/bpf/xdp_rxq_info_user.c 	free(r->rxq);
r                 258 samples/bpf/xdp_rxq_info_user.c 	free(r->stats.cpu);
r                 259 samples/bpf/xdp_rxq_info_user.c 	free(r);
r                 304 samples/bpf/xdp_rxq_info_user.c static double calc_period(struct record *r, struct record *p)
r                 309 samples/bpf/xdp_rxq_info_user.c 	period = r->timestamp - p->timestamp;
r                 316 samples/bpf/xdp_rxq_info_user.c static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_)
r                 322 samples/bpf/xdp_rxq_info_user.c 		packets = r->processed - p->processed;
r                 328 samples/bpf/xdp_rxq_info_user.c static __u64 calc_errs_pps(struct datarec *r,
r                 335 samples/bpf/xdp_rxq_info_user.c 		packets = r->issue - p->issue;
r                 370 samples/bpf/xdp_rxq_info_user.c 			struct datarec *r = &rec->cpu[i];
r                 373 samples/bpf/xdp_rxq_info_user.c 			pps = calc_pps     (r, p, t);
r                 374 samples/bpf/xdp_rxq_info_user.c 			err = calc_errs_pps(r, p, t);
r                 404 samples/bpf/xdp_rxq_info_user.c 			struct datarec *r = &rec->cpu[i];
r                 407 samples/bpf/xdp_rxq_info_user.c 			pps = calc_pps     (r, p, t);
r                 408 samples/bpf/xdp_rxq_info_user.c 			err = calc_errs_pps(r, p, t);
r                 460 samples/bpf/xdp_rxq_info_user.c 	struct rlimit r = {10 * 1024 * 1024, RLIM_INFINITY};
r                 484 samples/bpf/xdp_rxq_info_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 113 samples/bpf/xdp_sample_pkts_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 141 samples/bpf/xdp_sample_pkts_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 158 samples/bpf/xdp_tx_iptunnel_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 254 samples/bpf/xdp_tx_iptunnel_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 733 samples/bpf/xdpsock_user.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 741 samples/bpf/xdpsock_user.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                 244 scripts/basic/fixdep.c 	const char *q, *r;
r                 257 scripts/basic/fixdep.c 			r = q - 7;
r                 259 scripts/basic/fixdep.c 			r = q;
r                 260 scripts/basic/fixdep.c 		if (r > p)
r                 261 scripts/basic/fixdep.c 			use_config(p, r - p);
r                  69 scripts/genksyms/keywords.c 		struct resword *r = keywords + i;
r                  70 scripts/genksyms/keywords.c 		int l = strlen(r->name);
r                  71 scripts/genksyms/keywords.c 		if (len == l && !memcmp(str, r->name, len))
r                  72 scripts/genksyms/keywords.c 			return r->token;
r                  48 scripts/genksyms/parse.y 	struct string_list *b = *body, *i = *ident, *r;
r                  56 scripts/genksyms/parse.y 	r = copy_node(i); r->tag = type;
r                  57 scripts/genksyms/parse.y 	r->next = (*keyw)->next; *body = r; (*keyw)->next = NULL;
r                 288 scripts/kconfig/mconf.c static int show_textbox_ext(const char *title, char *text, int r, int c,
r                 291 scripts/kconfig/mconf.c static void show_textbox(const char *title, const char *text, int r, int c);
r                 754 scripts/kconfig/mconf.c static int show_textbox_ext(const char *title, char *text, int r, int c, int
r                 759 scripts/kconfig/mconf.c 	return dialog_textbox(title, text, r, c, keys, vscroll, hscroll,
r                 763 scripts/kconfig/mconf.c static void show_textbox(const char *title, const char *text, int r, int c)
r                 765 scripts/kconfig/mconf.c 	show_textbox_ext(title, (char *) text, r, c, (int []) {0}, NULL, NULL,
r                 701 scripts/kconfig/menu.c static void get_prompt_str(struct gstr *r, struct property *prop,
r                 708 scripts/kconfig/menu.c 	str_printf(r, "Prompt: %s\n", prop->text);
r                 741 scripts/kconfig/menu.c 		str_printf(r, "  Location:\n");
r                 745 scripts/kconfig/menu.c 				jump->offset = strlen(r->s);
r                 746 scripts/kconfig/menu.c 			str_printf(r, "%*c-> %s", j, ' ',
r                 749 scripts/kconfig/menu.c 				str_printf(r, " (%s [=%s])", menu->sym->name ?
r                 753 scripts/kconfig/menu.c 			str_append(r, "\n");
r                 770 scripts/kconfig/menu.c static void get_symbol_props_str(struct gstr *r, struct symbol *sym,
r                 778 scripts/kconfig/menu.c 			str_append(r, prefix);
r                 781 scripts/kconfig/menu.c 			str_printf(r, " && ");
r                 782 scripts/kconfig/menu.c 		expr_gstr_print(prop->expr, r);
r                 785 scripts/kconfig/menu.c 		str_append(r, "\n");
r                 791 scripts/kconfig/menu.c static void get_symbol_str(struct gstr *r, struct symbol *sym,
r                 797 scripts/kconfig/menu.c 		str_printf(r, "Symbol: %s [=%s]\n", sym->name,
r                 799 scripts/kconfig/menu.c 		str_printf(r, "Type  : %s\n", sym_type_name(sym->type));
r                 803 scripts/kconfig/menu.c 				str_printf(r, "Range : ");
r                 804 scripts/kconfig/menu.c 				expr_gstr_print(prop->expr, r);
r                 805 scripts/kconfig/menu.c 				str_append(r, "\n");
r                 810 scripts/kconfig/menu.c 		get_prompt_str(r, prop, head);
r                 814 scripts/kconfig/menu.c 		str_printf(r, "  Defined at %s:%d\n", prop->menu->file->name,
r                 817 scripts/kconfig/menu.c 			str_append(r, "  Depends on: ");
r                 818 scripts/kconfig/menu.c 			expr_gstr_print(prop->visible.expr, r);
r                 819 scripts/kconfig/menu.c 			str_append(r, "\n");
r                 823 scripts/kconfig/menu.c 	get_symbol_props_str(r, sym, P_SELECT, "  Selects: ");
r                 825 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->rev_dep.expr, r, yes, "  Selected by [y]:\n");
r                 826 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->rev_dep.expr, r, mod, "  Selected by [m]:\n");
r                 827 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->rev_dep.expr, r, no, "  Selected by [n]:\n");
r                 830 scripts/kconfig/menu.c 	get_symbol_props_str(r, sym, P_IMPLY, "  Implies: ");
r                 832 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->implied.expr, r, yes, "  Implied by [y]:\n");
r                 833 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->implied.expr, r, mod, "  Implied by [m]:\n");
r                 834 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->implied.expr, r, no, "  Implied by [n]:\n");
r                 837 scripts/kconfig/menu.c 	str_append(r, "\n\n");
r                1052 scripts/mod/modpost.c 			Elf_Rela *r, Elf_Sym *sym, const char *fromsec);
r                1058 scripts/mod/modpost.c 				     Elf_Rela *r, Elf_Sym *sym,
r                1401 scripts/mod/modpost.c 		char *r = p;
r                1418 scripts/mod/modpost.c 		return r;
r                1601 scripts/mod/modpost.c 				     Elf_Rela *r, Elf_Sym *sym, const char *fromsec)
r                1609 scripts/mod/modpost.c 	from = find_elf_symbol2(elf, r->r_offset, fromsec);
r                1616 scripts/mod/modpost.c 	to = find_elf_symbol(elf, r->r_addend, sym);
r                1623 scripts/mod/modpost.c 				    fromsec, r->r_offset, fromsym,
r                1642 scripts/mod/modpost.c static void find_extable_entry_size(const char* const sec, const Elf_Rela* r)
r                1654 scripts/mod/modpost.c 		extable_entry_size = r->r_offset * 2;
r                1657 scripts/mod/modpost.c static inline bool is_extable_fault_address(Elf_Rela *r)
r                1664 scripts/mod/modpost.c 	if (r->r_offset && extable_entry_size == 0)
r                1667 scripts/mod/modpost.c 	return ((r->r_offset == 0) ||
r                1668 scripts/mod/modpost.c 		(r->r_offset % extable_entry_size == 0));
r                1676 scripts/mod/modpost.c 				    Elf_Rela* r, Elf_Sym* sym,
r                1679 scripts/mod/modpost.c 	Elf_Sym* fromsym = find_elf_symbol2(elf, r->r_offset, fromsec);
r                1681 scripts/mod/modpost.c 	Elf_Sym* tosym = find_elf_symbol(elf, r->r_addend, sym);
r                1695 scripts/mod/modpost.c 	     modname, fromsec, (long)r->r_offset, from_pretty_name,
r                1709 scripts/mod/modpost.c 			fromsec, (long)r->r_offset, tosec, tosec, tosec);
r                1714 scripts/mod/modpost.c 				     Elf_Rela* r, Elf_Sym* sym,
r                1721 scripts/mod/modpost.c 	report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec);
r                1729 scripts/mod/modpost.c 		      fromsec, (long)r->r_offset, tosec, modname);
r                1731 scripts/mod/modpost.c 		if (is_extable_fault_address(r))
r                1737 scripts/mod/modpost.c 			      fromsec, (long)r->r_offset, tosec);
r                1744 scripts/mod/modpost.c 			      fromsec, (long)r->r_offset, tosec);
r                1749 scripts/mod/modpost.c 				   Elf_Rela *r, Elf_Sym *sym, const char *fromsec)
r                1757 scripts/mod/modpost.c 					  r, sym, fromsec);
r                1760 scripts/mod/modpost.c 						 r, sym, fromsec);
r                1765 scripts/mod/modpost.c 				    Elf_Shdr *sechdr, Elf_Rela *r)
r                1771 scripts/mod/modpost.c 		r->r_offset;
r                1774 scripts/mod/modpost.c static int addend_386_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
r                1776 scripts/mod/modpost.c 	unsigned int r_typ = ELF_R_TYPE(r->r_info);
r                1777 scripts/mod/modpost.c 	unsigned int *location = reloc_location(elf, sechdr, r);
r                1781 scripts/mod/modpost.c 		r->r_addend = TO_NATIVE(*location);
r                1784 scripts/mod/modpost.c 		r->r_addend = TO_NATIVE(*location) + 4;
r                1787 scripts/mod/modpost.c 			r->r_addend += r->r_offset;
r                1810 scripts/mod/modpost.c static int addend_arm_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
r                1812 scripts/mod/modpost.c 	unsigned int r_typ = ELF_R_TYPE(r->r_info);
r                1817 scripts/mod/modpost.c 		r->r_addend = (int)(long)
r                1818 scripts/mod/modpost.c 			      (elf->symtab_start + ELF_R_SYM(r->r_info));
r                1827 scripts/mod/modpost.c 		r->r_addend = (int)(long)(elf->hdr +
r                1829 scripts/mod/modpost.c 			      (r->r_offset - sechdr->sh_addr));
r                1837 scripts/mod/modpost.c static int addend_mips_rel(struct elf_info *elf, Elf_Shdr *sechdr, Elf_Rela *r)
r                1839 scripts/mod/modpost.c 	unsigned int r_typ = ELF_R_TYPE(r->r_info);
r                1840 scripts/mod/modpost.c 	unsigned int *location = reloc_location(elf, sechdr, r);
r                1848 scripts/mod/modpost.c 		r->r_addend = inst & 0xffff;
r                1851 scripts/mod/modpost.c 		r->r_addend = (inst & 0x03ffffff) << 2;
r                1854 scripts/mod/modpost.c 		r->r_addend = inst;
r                1865 scripts/mod/modpost.c 	Elf_Rela r;
r                1879 scripts/mod/modpost.c 		r.r_offset = TO_NATIVE(rela->r_offset);
r                1886 scripts/mod/modpost.c 			r.r_info = ELF64_R_INFO(r_sym, r_typ);
r                1888 scripts/mod/modpost.c 			r.r_info = TO_NATIVE(rela->r_info);
r                1889 scripts/mod/modpost.c 			r_sym = ELF_R_SYM(r.r_info);
r                1892 scripts/mod/modpost.c 		r.r_info = TO_NATIVE(rela->r_info);
r                1893 scripts/mod/modpost.c 		r_sym = ELF_R_SYM(r.r_info);
r                1895 scripts/mod/modpost.c 		r.r_addend = TO_NATIVE(rela->r_addend);
r                1901 scripts/mod/modpost.c 			find_extable_entry_size(fromsec, &r);
r                1902 scripts/mod/modpost.c 		check_section_mismatch(modname, elf, &r, sym, fromsec);
r                1911 scripts/mod/modpost.c 	Elf_Rela r;
r                1925 scripts/mod/modpost.c 		r.r_offset = TO_NATIVE(rel->r_offset);
r                1932 scripts/mod/modpost.c 			r.r_info = ELF64_R_INFO(r_sym, r_typ);
r                1934 scripts/mod/modpost.c 			r.r_info = TO_NATIVE(rel->r_info);
r                1935 scripts/mod/modpost.c 			r_sym = ELF_R_SYM(r.r_info);
r                1938 scripts/mod/modpost.c 		r.r_info = TO_NATIVE(rel->r_info);
r                1939 scripts/mod/modpost.c 		r_sym = ELF_R_SYM(r.r_info);
r                1941 scripts/mod/modpost.c 		r.r_addend = 0;
r                1944 scripts/mod/modpost.c 			if (addend_386_rel(elf, sechdr, &r))
r                1948 scripts/mod/modpost.c 			if (addend_arm_rel(elf, sechdr, &r))
r                1952 scripts/mod/modpost.c 			if (addend_mips_rel(elf, sechdr, &r))
r                1961 scripts/mod/modpost.c 			find_extable_entry_size(fromsec, &r);
r                1962 scripts/mod/modpost.c 		check_section_mismatch(modname, elf, &r, sym, fromsec);
r                 163 scripts/sortextable.c static uint32_t (*r)(const uint32_t *);
r                 192 scripts/sortextable.c 	return r(&symtab_shndx_start[sym_offs]);
r                 202 scripts/sortextable.c 	int32_t av = (int32_t)r(a);
r                 203 scripts/sortextable.c 	int32_t bv = (int32_t)r(b);
r                 220 scripts/sortextable.c 		w(r(loc) + i, loc);
r                 221 scripts/sortextable.c 		w(r(loc + 1) + i + 4, loc + 1);
r                 222 scripts/sortextable.c 		w(r(loc + 2) + i + 8, loc + 2);
r                 233 scripts/sortextable.c 		w(r(loc) - i, loc);
r                 234 scripts/sortextable.c 		w(r(loc + 1) - (i + 4), loc + 1);
r                 235 scripts/sortextable.c 		w(r(loc + 2) - (i + 8), loc + 2);
r                 252 scripts/sortextable.c 		w(r(loc) + i, loc);
r                 262 scripts/sortextable.c 		w(r(loc) - i, loc);
r                 281 scripts/sortextable.c 		r = rle;
r                 289 scripts/sortextable.c 		r = rbe;
r                  74 scripts/sortextable.h # define _r			r
r                 123 scripts/sortextable.h 		secindex_strings = r(&shdr[0].sh_link);
r                 128 scripts/sortextable.h 		idx = r(&shdr[i].sh_name);
r                 133 scripts/sortextable.h 		if ((r(&shdr[i].sh_type) == SHT_REL ||
r                 134 scripts/sortextable.h 		     r(&shdr[i].sh_type) == SHT_RELA) &&
r                 135 scripts/sortextable.h 		    r(&shdr[i].sh_info) == extab_index) {
r                 143 scripts/sortextable.h 		if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX)
r                 183 scripts/sortextable.h 		idx = r(&sym->st_name);
r                 112 security/apparmor/include/policy_unpack.h bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r);
r                 138 security/apparmor/policy_unpack.c bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r)
r                 140 security/apparmor/policy_unpack.c 	if (l->size != r->size)
r                 142 security/apparmor/policy_unpack.c 	if (aa_g_hash_policy && memcmp(l->hash, r->hash, aa_hash_size()) != 0)
r                 144 security/apparmor/policy_unpack.c 	return memcmp(l->data, r->data, r->size) == 0;
r                 268 security/keys/proc.c static struct rb_node *key_user_first(struct user_namespace *user_ns, struct rb_root *r)
r                 270 security/keys/proc.c 	struct rb_node *n = rb_first(r);
r                 910 security/selinux/selinuxfs.c 		char   *r, *w;
r                 913 security/selinux/selinuxfs.c 		r = w = namebuf;
r                 915 security/selinux/selinuxfs.c 			c1 = *r++;
r                 919 security/selinux/selinuxfs.c 				c1 = hex_to_bin(*r++);
r                 922 security/selinux/selinuxfs.c 				c2 = hex_to_bin(*r++);
r                 182 security/selinux/ss/mls.c int mls_range_isvalid(struct policydb *p, struct mls_range *r)
r                 184 security/selinux/ss/mls.c 	return (mls_level_isvalid(p, &r->level[0]) &&
r                 185 security/selinux/ss/mls.c 		mls_level_isvalid(p, &r->level[1]) &&
r                 186 security/selinux/ss/mls.c 		mls_level_dom(&r->level[1], &r->level[0]));
r                 496 security/selinux/ss/mls.c 	struct mls_range *r;
r                 509 security/selinux/ss/mls.c 		r = hashtab_search(p->range_tr, &rtr);
r                 510 security/selinux/ss/mls.c 		if (r)
r                 511 security/selinux/ss/mls.c 			return mls_range_set(newcontext, r);
r                  32 security/selinux/ss/mls.h int mls_range_isvalid(struct policydb *p, struct mls_range *r);
r                 960 security/selinux/ss/policydb.c static int mls_read_range_helper(struct mls_range *r, void *fp)
r                 983 security/selinux/ss/policydb.c 	r->level[0].sens = le32_to_cpu(buf[0]);
r                 985 security/selinux/ss/policydb.c 		r->level[1].sens = le32_to_cpu(buf[1]);
r                 987 security/selinux/ss/policydb.c 		r->level[1].sens = r->level[0].sens;
r                 989 security/selinux/ss/policydb.c 	rc = ebitmap_read(&r->level[0].cat, fp);
r                 995 security/selinux/ss/policydb.c 		rc = ebitmap_read(&r->level[1].cat, fp);
r                1001 security/selinux/ss/policydb.c 		rc = ebitmap_cpy(&r->level[1].cat, &r->level[0].cat);
r                1010 security/selinux/ss/policydb.c 	ebitmap_destroy(&r->level[0].cat);
r                1804 security/selinux/ss/policydb.c 	struct mls_range *r = NULL;
r                1844 security/selinux/ss/policydb.c 		r = kzalloc(sizeof(*r), GFP_KERNEL);
r                1845 security/selinux/ss/policydb.c 		if (!r)
r                1848 security/selinux/ss/policydb.c 		rc = mls_read_range_helper(r, fp);
r                1853 security/selinux/ss/policydb.c 		if (!mls_range_isvalid(p, r)) {
r                1858 security/selinux/ss/policydb.c 		rc = hashtab_insert(p->range_tr, rt, r);
r                1863 security/selinux/ss/policydb.c 		r = NULL;
r                1869 security/selinux/ss/policydb.c 	kfree(r);
r                2560 security/selinux/ss/policydb.c static int mls_write_range_helper(struct mls_range *r, void *fp)
r                2566 security/selinux/ss/policydb.c 	eq = mls_level_eq(&r->level[1], &r->level[0]);
r                2573 security/selinux/ss/policydb.c 	buf[1] = cpu_to_le32(r->level[0].sens);
r                2575 security/selinux/ss/policydb.c 		buf[2] = cpu_to_le32(r->level[1].sens);
r                2583 security/selinux/ss/policydb.c 	rc = ebitmap_write(&r->level[0].cat, fp);
r                2587 security/selinux/ss/policydb.c 		rc = ebitmap_write(&r->level[1].cat, fp);
r                2650 security/selinux/ss/policydb.c 	struct role_trans *r = p->role_tr;
r                2657 security/selinux/ss/policydb.c 	for (tr = r; tr; tr = tr->next)
r                2663 security/selinux/ss/policydb.c 	for (tr = r; tr; tr = tr->next) {
r                2681 security/selinux/ss/policydb.c static int role_allow_write(struct role_allow *r, void *fp)
r                2689 security/selinux/ss/policydb.c 	for (ra = r; ra; ra = ra->next)
r                2695 security/selinux/ss/policydb.c 	for (ra = r; ra; ra = ra->next) {
r                3269 security/selinux/ss/policydb.c 	struct mls_range *r = data;
r                3286 security/selinux/ss/policydb.c 	rc = mls_write_range_helper(r, fp);
r                 150 security/tomoyo/audit.c static char *tomoyo_print_header(struct tomoyo_request_info *r)
r                 154 security/tomoyo/audit.c 	struct tomoyo_obj_info *obj = r->obj;
r                 168 security/tomoyo/audit.c 		       stamp.min, stamp.sec, r->profile, tomoyo_mode[r->mode],
r                 169 security/tomoyo/audit.c 		       tomoyo_yesno(r->granted), gpid, tomoyo_sys_getpid(),
r                 244 security/tomoyo/audit.c char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt,
r                 253 security/tomoyo/audit.c 	const char *domainname = r->domain->domainname->name;
r                 255 security/tomoyo/audit.c 	header = tomoyo_print_header(r);
r                 260 security/tomoyo/audit.c 	if (r->ee) {
r                 261 security/tomoyo/audit.c 		struct file *file = r->ee->bprm->file;
r                 264 security/tomoyo/audit.c 		bprm_info = tomoyo_print_bprm(r->ee->bprm, &r->ee->dump);
r                 269 security/tomoyo/audit.c 	} else if (r->obj && r->obj->symlink_target) {
r                 270 security/tomoyo/audit.c 		symlink = r->obj->symlink_target->name;
r                 281 security/tomoyo/audit.c 		struct linux_binprm *bprm = r->ee->bprm;
r                 365 security/tomoyo/audit.c void tomoyo_write_log2(struct tomoyo_request_info *r, int len, const char *fmt,
r                 372 security/tomoyo/audit.c 	if (!tomoyo_get_audit(r->domain->ns, r->profile, r->type,
r                 373 security/tomoyo/audit.c 			      r->matched_acl, r->granted))
r                 375 security/tomoyo/audit.c 	buf = tomoyo_init_log(r, len, fmt, args);
r                 419 security/tomoyo/audit.c void tomoyo_write_log(struct tomoyo_request_info *r, const char *fmt, ...)
r                 428 security/tomoyo/audit.c 	tomoyo_write_log2(r, len, fmt, args);
r                 443 security/tomoyo/audit.c 	if (head->r.w_pos)
r                 457 security/tomoyo/audit.c 		head->r.w[head->r.w_pos++] = head->read_buf;
r                 215 security/tomoyo/common.c 	while (head->r.w_pos) {
r                 216 security/tomoyo/common.c 		const char *w = head->r.w[0];
r                 230 security/tomoyo/common.c 		head->r.w[0] = w;
r                 241 security/tomoyo/common.c 		head->r.w_pos--;
r                 242 security/tomoyo/common.c 		for (len = 0; len < head->r.w_pos; len++)
r                 243 security/tomoyo/common.c 			head->r.w[len] = head->r.w[len + 1];
r                 245 security/tomoyo/common.c 	head->r.avail = 0;
r                 261 security/tomoyo/common.c 	if (head->r.w_pos < TOMOYO_MAX_IO_READ_QUEUE) {
r                 262 security/tomoyo/common.c 		head->r.w[head->r.w_pos++] = string;
r                 282 security/tomoyo/common.c 	size_t pos = head->r.avail;
r                 294 security/tomoyo/common.c 	head->r.avail += len;
r                 320 security/tomoyo/common.c 	return !head->r.w_pos;
r                 374 security/tomoyo/common.c 			  container_of(head->r.ns,
r                 748 security/tomoyo/common.c 		container_of(head->r.ns, typeof(*ns), namespace_list);
r                 751 security/tomoyo/common.c 	if (head->r.eof)
r                 754 security/tomoyo/common.c 	index = head->r.index;
r                 756 security/tomoyo/common.c 	switch (head->r.step) {
r                 761 security/tomoyo/common.c 		head->r.step++;
r                 764 security/tomoyo/common.c 		for ( ; head->r.index < TOMOYO_MAX_PROFILES;
r                 765 security/tomoyo/common.c 		      head->r.index++)
r                 766 security/tomoyo/common.c 			if (ns->profile_ptr[head->r.index])
r                 768 security/tomoyo/common.c 		if (head->r.index == TOMOYO_MAX_PROFILES) {
r                 769 security/tomoyo/common.c 			head->r.eof = true;
r                 772 security/tomoyo/common.c 		head->r.step++;
r                 791 security/tomoyo/common.c 			head->r.step++;
r                 799 security/tomoyo/common.c 			head->r.bit = 0;
r                 800 security/tomoyo/common.c 			head->r.step++;
r                 804 security/tomoyo/common.c 		for ( ; head->r.bit < TOMOYO_MAX_MAC_INDEX
r                 805 security/tomoyo/common.c 			      + TOMOYO_MAX_MAC_CATEGORY_INDEX; head->r.bit++) {
r                 806 security/tomoyo/common.c 			const u8 i = head->r.bit;
r                 822 security/tomoyo/common.c 			head->r.bit++;
r                 825 security/tomoyo/common.c 		if (head->r.bit == TOMOYO_MAX_MAC_INDEX
r                 827 security/tomoyo/common.c 			head->r.index++;
r                 828 security/tomoyo/common.c 			head->r.step = 1;
r                 913 security/tomoyo/common.c 	if (head->r.eof)
r                 915 security/tomoyo/common.c 	list_for_each_cookie(head->r.acl, &tomoyo_kernel_namespace.policy_list[TOMOYO_ID_MANAGER]) {
r                 917 security/tomoyo/common.c 			list_entry(head->r.acl, typeof(*ptr), head.list);
r                 926 security/tomoyo/common.c 	head->r.eof = true;
r                1023 security/tomoyo/common.c 	memset(&head->r, 0, sizeof(head->r));
r                1024 security/tomoyo/common.c 	head->r.print_this_domain_only = true;
r                1026 security/tomoyo/common.c 		head->r.domain = &domain->list;
r                1028 security/tomoyo/common.c 		head->r.eof = 1;
r                1235 security/tomoyo/common.c 	switch (head->r.cond_step) {
r                1237 security/tomoyo/common.c 		head->r.cond_index = 0;
r                1238 security/tomoyo/common.c 		head->r.cond_step++;
r                1260 security/tomoyo/common.c 			for (skip = 0; skip < head->r.cond_index; skip++) {
r                1285 security/tomoyo/common.c 			while (head->r.cond_index < condc) {
r                1293 security/tomoyo/common.c 				head->r.cond_index++;
r                1347 security/tomoyo/common.c 		head->r.cond_step++;
r                1352 security/tomoyo/common.c 		head->r.cond_step++;
r                1379 security/tomoyo/common.c 				 head->r.acl_group_index);
r                1399 security/tomoyo/common.c 	if (head->r.print_cond_part)
r                1413 security/tomoyo/common.c 			if (head->r.print_transition_related_only &&
r                1434 security/tomoyo/common.c 	} else if (head->r.print_transition_related_only) {
r                1573 security/tomoyo/common.c 		head->r.print_cond_part = true;
r                1574 security/tomoyo/common.c 		head->r.cond_step = 0;
r                1580 security/tomoyo/common.c 		head->r.print_cond_part = false;
r                1600 security/tomoyo/common.c 	list_for_each_cookie(head->r.acl, list) {
r                1602 security/tomoyo/common.c 			list_entry(head->r.acl, typeof(*ptr), list);
r                1607 security/tomoyo/common.c 	head->r.acl = NULL;
r                1620 security/tomoyo/common.c 	if (head->r.eof)
r                1622 security/tomoyo/common.c 	list_for_each_cookie(head->r.domain, &tomoyo_domain_list) {
r                1624 security/tomoyo/common.c 			list_entry(head->r.domain, typeof(*domain), list);
r                1627 security/tomoyo/common.c 		switch (head->r.step) {
r                1630 security/tomoyo/common.c 			    !head->r.print_this_domain_only)
r                1640 security/tomoyo/common.c 			head->r.index = 0;
r                1641 security/tomoyo/common.c 			head->r.step++;
r                1644 security/tomoyo/common.c 			while (head->r.index < TOMOYO_MAX_ACL_GROUPS) {
r                1645 security/tomoyo/common.c 				i = head->r.index++;
r                1652 security/tomoyo/common.c 			head->r.index = 0;
r                1653 security/tomoyo/common.c 			head->r.step++;
r                1659 security/tomoyo/common.c 			head->r.step++;
r                1664 security/tomoyo/common.c 			head->r.step = 0;
r                1665 security/tomoyo/common.c 			if (head->r.print_this_domain_only)
r                1670 security/tomoyo/common.c 	head->r.eof = true;
r                1682 security/tomoyo/common.c 	head->r.eof = false;
r                1706 security/tomoyo/common.c 		head->r.eof = true;
r                1709 security/tomoyo/common.c 	if (head->r.w_pos || head->r.eof)
r                1711 security/tomoyo/common.c 	head->r.eof = true;
r                1800 security/tomoyo/common.c 		container_of(head->r.ns, typeof(*ns), namespace_list);
r                1803 security/tomoyo/common.c 	list_for_each_cookie(head->r.group, list) {
r                1805 security/tomoyo/common.c 			list_entry(head->r.group, typeof(*group), head.list);
r                1807 security/tomoyo/common.c 		list_for_each_cookie(head->r.acl, &group->member_list) {
r                1809 security/tomoyo/common.c 				list_entry(head->r.acl, typeof(*ptr), list);
r                1840 security/tomoyo/common.c 		head->r.acl = NULL;
r                1842 security/tomoyo/common.c 	head->r.group = NULL;
r                1859 security/tomoyo/common.c 		container_of(head->r.ns, typeof(*ns), namespace_list);
r                1862 security/tomoyo/common.c 	list_for_each_cookie(head->r.acl, list) {
r                1864 security/tomoyo/common.c 			container_of(head->r.acl, typeof(*acl), list);
r                1905 security/tomoyo/common.c 	head->r.acl = NULL;
r                1919 security/tomoyo/common.c 		container_of(head->r.ns, typeof(*ns), namespace_list);
r                1921 security/tomoyo/common.c 	if (head->r.eof)
r                1923 security/tomoyo/common.c 	while (head->r.step < TOMOYO_MAX_POLICY &&
r                1924 security/tomoyo/common.c 	       tomoyo_read_policy(head, head->r.step))
r                1925 security/tomoyo/common.c 		head->r.step++;
r                1926 security/tomoyo/common.c 	if (head->r.step < TOMOYO_MAX_POLICY)
r                1928 security/tomoyo/common.c 	while (head->r.step < TOMOYO_MAX_POLICY + TOMOYO_MAX_GROUP &&
r                1929 security/tomoyo/common.c 	       tomoyo_read_group(head, head->r.step - TOMOYO_MAX_POLICY))
r                1930 security/tomoyo/common.c 		head->r.step++;
r                1931 security/tomoyo/common.c 	if (head->r.step < TOMOYO_MAX_POLICY + TOMOYO_MAX_GROUP)
r                1933 security/tomoyo/common.c 	while (head->r.step < TOMOYO_MAX_POLICY + TOMOYO_MAX_GROUP
r                1935 security/tomoyo/common.c 		head->r.acl_group_index = head->r.step - TOMOYO_MAX_POLICY
r                1938 security/tomoyo/common.c 					 [head->r.acl_group_index]))
r                1940 security/tomoyo/common.c 		head->r.step++;
r                1942 security/tomoyo/common.c 	head->r.eof = true;
r                2059 security/tomoyo/common.c int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...)
r                2073 security/tomoyo/common.c 	tomoyo_write_log2(r, len, fmt, args);
r                2076 security/tomoyo/common.c 	if (r->granted)
r                2078 security/tomoyo/common.c 	if (r->mode)
r                2079 security/tomoyo/common.c 		tomoyo_update_stat(r->mode);
r                2080 security/tomoyo/common.c 	switch (r->mode) {
r                2089 security/tomoyo/common.c 		if (tomoyo_domain_quota_is_ok(r))
r                2097 security/tomoyo/common.c 	entry.query = tomoyo_init_log(r, len, fmt, args);
r                2103 security/tomoyo/common.c 		tomoyo_add_entry(r->domain, entry.query);
r                2107 security/tomoyo/common.c 	entry.domain = r->domain;
r                2115 security/tomoyo/common.c 		entry.retry = r->retry;
r                2138 security/tomoyo/common.c 		r->retry++;
r                2209 security/tomoyo/common.c 	if (head->r.w_pos)
r                2217 security/tomoyo/common.c 		if (pos++ != head->r.query_index)
r                2224 security/tomoyo/common.c 		head->r.query_index = 0;
r                2235 security/tomoyo/common.c 		if (pos++ != head->r.query_index)
r                2249 security/tomoyo/common.c 		head->r.w[head->r.w_pos++] = buf;
r                2250 security/tomoyo/common.c 		head->r.query_index++;
r                2304 security/tomoyo/common.c 	if (!head->r.eof) {
r                2306 security/tomoyo/common.c 		head->r.eof = true;
r                2355 security/tomoyo/common.c 	if (head->r.eof)
r                2384 security/tomoyo/common.c 	head->r.eof = true;
r                2551 security/tomoyo/common.c 	ns = head->r.ns;
r                2552 security/tomoyo/common.c 	if (!ns || (head->r.eof && ns->next != &tomoyo_namespace_list)) {
r                2554 security/tomoyo/common.c 		memset(&head->r, 0, sizeof(head->r));
r                2555 security/tomoyo/common.c 		head->r.ns = ns ? ns->next : tomoyo_namespace_list.next;
r                2569 security/tomoyo/common.c 		head->type == TOMOYO_PROFILE) && head->r.eof &&
r                2570 security/tomoyo/common.c 		head->r.ns->next != &tomoyo_namespace_list;
r                2704 security/tomoyo/common.c 			memset(&head->r, 0, sizeof(head->r));
r                2718 security/tomoyo/common.c 				head->r.print_transition_related_only = true;
r                 622 security/tomoyo/common.h 	struct tomoyo_request_info r;
r                 820 security/tomoyo/common.h 	} r;
r                 931 security/tomoyo/common.h bool tomoyo_condition(struct tomoyo_request_info *r,
r                 937 security/tomoyo/common.h bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r);
r                 956 security/tomoyo/common.h char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt,
r                 973 security/tomoyo/common.h int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env);
r                 974 security/tomoyo/common.h int tomoyo_execute_permission(struct tomoyo_request_info *r,
r                 979 security/tomoyo/common.h int tomoyo_init_request_info(struct tomoyo_request_info *r,
r                1003 security/tomoyo/common.h int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...)
r                1047 security/tomoyo/common.h void tomoyo_check_acl(struct tomoyo_request_info *r,
r                1068 security/tomoyo/common.h void tomoyo_write_log(struct tomoyo_request_info *r, const char *fmt, ...)
r                1070 security/tomoyo/common.h void tomoyo_write_log2(struct tomoyo_request_info *r, int len, const char *fmt,
r                 765 security/tomoyo/condition.c bool tomoyo_condition(struct tomoyo_request_info *r,
r                 787 security/tomoyo/condition.c 	obj = r->obj;
r                 788 security/tomoyo/condition.c 	if (r->ee)
r                 789 security/tomoyo/condition.c 		bprm = r->ee->bprm;
r                 825 security/tomoyo/condition.c 				ee = r->ee;
r                1119 security/tomoyo/condition.c 	if (r->ee && (argc || envc))
r                1120 security/tomoyo/condition.c 		return tomoyo_scan_bprm(r->ee, argc, argv, envc, envp);
r                 161 security/tomoyo/domain.c void tomoyo_check_acl(struct tomoyo_request_info *r,
r                 165 security/tomoyo/domain.c 	const struct tomoyo_domain_info *domain = r->domain;
r                 173 security/tomoyo/domain.c 		if (ptr->is_deleted || ptr->type != r->param_type)
r                 175 security/tomoyo/domain.c 		if (!check_entry(r, ptr))
r                 177 security/tomoyo/domain.c 		if (!tomoyo_condition(r, ptr->cond))
r                 179 security/tomoyo/domain.c 		r->matched_acl = ptr;
r                 180 security/tomoyo/domain.c 		r->granted = true;
r                 189 security/tomoyo/domain.c 	r->granted = false;
r                 590 security/tomoyo/domain.c 			struct tomoyo_request_info r;
r                 593 security/tomoyo/domain.c 			tomoyo_init_request_info(&r, entry,
r                 595 security/tomoyo/domain.c 			r.granted = false;
r                 596 security/tomoyo/domain.c 			tomoyo_write_log(&r, "use_profile %u\n",
r                 600 security/tomoyo/domain.c 					tomoyo_write_log(&r, "use_group %u\n",
r                 617 security/tomoyo/domain.c 	struct tomoyo_request_info *r = &ee->r;
r                 629 security/tomoyo/domain.c 	ee->r.type = TOMOYO_MAC_ENVIRON;
r                 630 security/tomoyo/domain.c 	ee->r.profile = r->domain->profile;
r                 631 security/tomoyo/domain.c 	ee->r.mode = tomoyo_get_mode(r->domain->ns, ee->r.profile,
r                 633 security/tomoyo/domain.c 	if (!r->mode || !envp_count)
r                 674 security/tomoyo/domain.c 			if (tomoyo_env_perm(r, arg_ptr)) {
r                 687 security/tomoyo/domain.c 	if (r->mode != TOMOYO_CONFIG_ENFORCING)
r                 722 security/tomoyo/domain.c 	tomoyo_init_request_info(&ee->r, NULL, TOMOYO_MAC_FILE_EXECUTE);
r                 723 security/tomoyo/domain.c 	ee->r.ee = ee;
r                 725 security/tomoyo/domain.c 	ee->r.obj = &ee->obj;
r                 754 security/tomoyo/domain.c 	retval = tomoyo_execute_permission(&ee->r, candidate);
r                 765 security/tomoyo/domain.c 	if (ee->r.param.path.matched_path)
r                 766 security/tomoyo/domain.c 		candidate = ee->r.param.path.matched_path;
r                 855 security/tomoyo/domain.c 	} else if (ee->r.mode == TOMOYO_CONFIG_ENFORCING)
r                 861 security/tomoyo/domain.c 			ee->r.granted = false;
r                 862 security/tomoyo/domain.c 			tomoyo_write_log(&ee->r, "%s", tomoyo_dif
r                 880 security/tomoyo/domain.c 		ee->r.domain = domain;
r                  18 security/tomoyo/environ.c static bool tomoyo_check_env_acl(struct tomoyo_request_info *r,
r                  24 security/tomoyo/environ.c 	return tomoyo_path_matches_pattern(r->param.environ.name, acl->env);
r                  34 security/tomoyo/environ.c static int tomoyo_audit_env_log(struct tomoyo_request_info *r)
r                  36 security/tomoyo/environ.c 	return tomoyo_supervisor(r, "misc env %s\n",
r                  37 security/tomoyo/environ.c 				 r->param.environ.name->name);
r                  50 security/tomoyo/environ.c int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env)
r                  59 security/tomoyo/environ.c 	r->param_type = TOMOYO_TYPE_ENV_ACL;
r                  60 security/tomoyo/environ.c 	r->param.environ.name = &environ;
r                  62 security/tomoyo/environ.c 		tomoyo_check_acl(r, tomoyo_check_env_acl);
r                  63 security/tomoyo/environ.c 		error = tomoyo_audit_env_log(r);
r                 166 security/tomoyo/file.c static int tomoyo_audit_path_log(struct tomoyo_request_info *r)
r                 168 security/tomoyo/file.c 	return tomoyo_supervisor(r, "file %s %s\n", tomoyo_path_keyword
r                 169 security/tomoyo/file.c 				 [r->param.path.operation],
r                 170 security/tomoyo/file.c 				 r->param.path.filename->name);
r                 180 security/tomoyo/file.c static int tomoyo_audit_path2_log(struct tomoyo_request_info *r)
r                 182 security/tomoyo/file.c 	return tomoyo_supervisor(r, "file %s %s %s\n", tomoyo_mac_keywords
r                 183 security/tomoyo/file.c 				 [tomoyo_pp2mac[r->param.path2.operation]],
r                 184 security/tomoyo/file.c 				 r->param.path2.filename1->name,
r                 185 security/tomoyo/file.c 				 r->param.path2.filename2->name);
r                 195 security/tomoyo/file.c static int tomoyo_audit_mkdev_log(struct tomoyo_request_info *r)
r                 197 security/tomoyo/file.c 	return tomoyo_supervisor(r, "file %s %s 0%o %u %u\n",
r                 199 security/tomoyo/file.c 				 [tomoyo_pnnn2mac[r->param.mkdev.operation]],
r                 200 security/tomoyo/file.c 				 r->param.mkdev.filename->name,
r                 201 security/tomoyo/file.c 				 r->param.mkdev.mode, r->param.mkdev.major,
r                 202 security/tomoyo/file.c 				 r->param.mkdev.minor);
r                 212 security/tomoyo/file.c static int tomoyo_audit_path_number_log(struct tomoyo_request_info *r)
r                 214 security/tomoyo/file.c 	const u8 type = r->param.path_number.operation;
r                 233 security/tomoyo/file.c 	tomoyo_print_ulong(buffer, sizeof(buffer), r->param.path_number.number,
r                 235 security/tomoyo/file.c 	return tomoyo_supervisor(r, "file %s %s %s\n", tomoyo_mac_keywords
r                 237 security/tomoyo/file.c 				 r->param.path_number.filename->name, buffer);
r                 252 security/tomoyo/file.c static bool tomoyo_check_path_acl(struct tomoyo_request_info *r,
r                 258 security/tomoyo/file.c 	if (acl->perm & (1 << r->param.path.operation)) {
r                 259 security/tomoyo/file.c 		r->param.path.matched_path =
r                 260 security/tomoyo/file.c 			tomoyo_compare_name_union(r->param.path.filename,
r                 262 security/tomoyo/file.c 		return r->param.path.matched_path != NULL;
r                 275 security/tomoyo/file.c static bool tomoyo_check_path_number_acl(struct tomoyo_request_info *r,
r                 281 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.path_number.operation)) &&
r                 282 security/tomoyo/file.c 		tomoyo_compare_number_union(r->param.path_number.number,
r                 284 security/tomoyo/file.c 		tomoyo_compare_name_union(r->param.path_number.filename,
r                 296 security/tomoyo/file.c static bool tomoyo_check_path2_acl(struct tomoyo_request_info *r,
r                 302 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.path2.operation)) &&
r                 303 security/tomoyo/file.c 		tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1)
r                 304 security/tomoyo/file.c 		&& tomoyo_compare_name_union(r->param.path2.filename2,
r                 316 security/tomoyo/file.c static bool tomoyo_check_mkdev_acl(struct tomoyo_request_info *r,
r                 322 security/tomoyo/file.c 	return (acl->perm & (1 << r->param.mkdev.operation)) &&
r                 323 security/tomoyo/file.c 		tomoyo_compare_number_union(r->param.mkdev.mode,
r                 325 security/tomoyo/file.c 		tomoyo_compare_number_union(r->param.mkdev.major,
r                 327 security/tomoyo/file.c 		tomoyo_compare_number_union(r->param.mkdev.minor,
r                 329 security/tomoyo/file.c 		tomoyo_compare_name_union(r->param.mkdev.filename,
r                 573 security/tomoyo/file.c static int tomoyo_path_permission(struct tomoyo_request_info *r, u8 operation,
r                 578 security/tomoyo/file.c 	r->type = tomoyo_p2mac[operation];
r                 579 security/tomoyo/file.c 	r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type);
r                 580 security/tomoyo/file.c 	if (r->mode == TOMOYO_CONFIG_DISABLED)
r                 582 security/tomoyo/file.c 	r->param_type = TOMOYO_TYPE_PATH_ACL;
r                 583 security/tomoyo/file.c 	r->param.path.filename = filename;
r                 584 security/tomoyo/file.c 	r->param.path.operation = operation;
r                 586 security/tomoyo/file.c 		tomoyo_check_acl(r, tomoyo_check_path_acl);
r                 587 security/tomoyo/file.c 		error = tomoyo_audit_path_log(r);
r                 602 security/tomoyo/file.c int tomoyo_execute_permission(struct tomoyo_request_info *r,
r                 610 security/tomoyo/file.c 	r->type = TOMOYO_MAC_FILE_EXECUTE;
r                 611 security/tomoyo/file.c 	r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type);
r                 612 security/tomoyo/file.c 	r->param_type = TOMOYO_TYPE_PATH_ACL;
r                 613 security/tomoyo/file.c 	r->param.path.filename = filename;
r                 614 security/tomoyo/file.c 	r->param.path.operation = TOMOYO_TYPE_EXECUTE;
r                 615 security/tomoyo/file.c 	tomoyo_check_acl(r, tomoyo_check_path_acl);
r                 616 security/tomoyo/file.c 	r->ee->transition = r->matched_acl && r->matched_acl->cond ?
r                 617 security/tomoyo/file.c 		r->matched_acl->cond->transit : NULL;
r                 618 security/tomoyo/file.c 	if (r->mode != TOMOYO_CONFIG_DISABLED)
r                 619 security/tomoyo/file.c 		return tomoyo_audit_path_log(r);
r                 711 security/tomoyo/file.c 	struct tomoyo_request_info r;
r                 719 security/tomoyo/file.c 	if (tomoyo_init_request_info(&r, NULL, tomoyo_pn2mac[type])
r                 725 security/tomoyo/file.c 	r.obj = &obj;
r                 728 security/tomoyo/file.c 	r.param_type = TOMOYO_TYPE_PATH_NUMBER_ACL;
r                 729 security/tomoyo/file.c 	r.param.path_number.operation = type;
r                 730 security/tomoyo/file.c 	r.param.path_number.filename = &buf;
r                 731 security/tomoyo/file.c 	r.param.path_number.number = number;
r                 733 security/tomoyo/file.c 		tomoyo_check_acl(&r, tomoyo_check_path_number_acl);
r                 734 security/tomoyo/file.c 		error = tomoyo_audit_path_number_log(&r);
r                 739 security/tomoyo/file.c 	if (r.mode != TOMOYO_CONFIG_ENFORCING)
r                 759 security/tomoyo/file.c 	struct tomoyo_request_info r;
r                 766 security/tomoyo/file.c 	r.mode = TOMOYO_CONFIG_DISABLED;
r                 769 security/tomoyo/file.c 	    tomoyo_init_request_info(&r, domain, TOMOYO_MAC_FILE_OPEN)
r                 775 security/tomoyo/file.c 		r.obj = &obj;
r                 777 security/tomoyo/file.c 			error = tomoyo_path_permission(&r, TOMOYO_TYPE_READ,
r                 780 security/tomoyo/file.c 			error = tomoyo_path_permission(&r, (flag & O_APPEND) ?
r                 788 security/tomoyo/file.c 	if (r.mode != TOMOYO_CONFIG_ENFORCING)
r                 805 security/tomoyo/file.c 	struct tomoyo_request_info r;
r                 815 security/tomoyo/file.c 	if (tomoyo_init_request_info(&r, NULL, tomoyo_p2mac[operation])
r                 818 security/tomoyo/file.c 	is_enforce = (r.mode == TOMOYO_CONFIG_ENFORCING);
r                 824 security/tomoyo/file.c 	r.obj = &obj;
r                 838 security/tomoyo/file.c 	error = tomoyo_path_permission(&r, operation, &buf);
r                 862 security/tomoyo/file.c 	struct tomoyo_request_info r;
r                 870 security/tomoyo/file.c 	if (tomoyo_init_request_info(&r, NULL, tomoyo_pnnn2mac[operation])
r                 876 security/tomoyo/file.c 		r.obj = &obj;
r                 878 security/tomoyo/file.c 		r.param_type = TOMOYO_TYPE_MKDEV_ACL;
r                 879 security/tomoyo/file.c 		r.param.mkdev.filename = &buf;
r                 880 security/tomoyo/file.c 		r.param.mkdev.operation = operation;
r                 881 security/tomoyo/file.c 		r.param.mkdev.mode = mode;
r                 882 security/tomoyo/file.c 		r.param.mkdev.major = MAJOR(dev);
r                 883 security/tomoyo/file.c 		r.param.mkdev.minor = MINOR(dev);
r                 884 security/tomoyo/file.c 		tomoyo_check_acl(&r, tomoyo_check_mkdev_acl);
r                 885 security/tomoyo/file.c 		error = tomoyo_audit_mkdev_log(&r);
r                 889 security/tomoyo/file.c 	if (r.mode != TOMOYO_CONFIG_ENFORCING)
r                 909 security/tomoyo/file.c 	struct tomoyo_request_info r;
r                 916 security/tomoyo/file.c 	if (tomoyo_init_request_info(&r, NULL, tomoyo_pp2mac[operation])
r                 936 security/tomoyo/file.c 	r.obj = &obj;
r                 937 security/tomoyo/file.c 	r.param_type = TOMOYO_TYPE_PATH2_ACL;
r                 938 security/tomoyo/file.c 	r.param.path2.operation = operation;
r                 939 security/tomoyo/file.c 	r.param.path2.filename1 = &buf1;
r                 940 security/tomoyo/file.c 	r.param.path2.filename2 = &buf2;
r                 942 security/tomoyo/file.c 		tomoyo_check_acl(&r, tomoyo_check_path2_acl);
r                 943 security/tomoyo/file.c 		error = tomoyo_audit_path2_log(&r);
r                 949 security/tomoyo/file.c 	if (r.mode != TOMOYO_CONFIG_ENFORCING)
r                  50 security/tomoyo/gc.c 		if (head->r.domain == element || head->r.group == element ||
r                  51 security/tomoyo/gc.c 		    head->r.acl == element || &head->w.domain->list == element)
r                  85 security/tomoyo/gc.c 			const char *w = head->r.w[i];
r                  30 security/tomoyo/mount.c static int tomoyo_audit_mount_log(struct tomoyo_request_info *r)
r                  32 security/tomoyo/mount.c 	return tomoyo_supervisor(r, "file mount %s %s %s 0x%lX\n",
r                  33 security/tomoyo/mount.c 				 r->param.mount.dev->name,
r                  34 security/tomoyo/mount.c 				 r->param.mount.dir->name,
r                  35 security/tomoyo/mount.c 				 r->param.mount.type->name,
r                  36 security/tomoyo/mount.c 				 r->param.mount.flags);
r                  47 security/tomoyo/mount.c static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r,
r                  53 security/tomoyo/mount.c 	return tomoyo_compare_number_union(r->param.mount.flags,
r                  55 security/tomoyo/mount.c 		tomoyo_compare_name_union(r->param.mount.type,
r                  57 security/tomoyo/mount.c 		tomoyo_compare_name_union(r->param.mount.dir,
r                  59 security/tomoyo/mount.c 		(!r->param.mount.need_dev ||
r                  60 security/tomoyo/mount.c 		 tomoyo_compare_name_union(r->param.mount.dev,
r                  77 security/tomoyo/mount.c static int tomoyo_mount_acl(struct tomoyo_request_info *r,
r                  94 security/tomoyo/mount.c 	r->obj = &obj;
r                 158 security/tomoyo/mount.c 	r->param_type = TOMOYO_TYPE_MOUNT_ACL;
r                 159 security/tomoyo/mount.c 	r->param.mount.need_dev = need_dev;
r                 160 security/tomoyo/mount.c 	r->param.mount.dev = &rdev;
r                 161 security/tomoyo/mount.c 	r->param.mount.dir = &rdir;
r                 162 security/tomoyo/mount.c 	r->param.mount.type = &rtype;
r                 163 security/tomoyo/mount.c 	r->param.mount.flags = flags;
r                 165 security/tomoyo/mount.c 		tomoyo_check_acl(r, tomoyo_check_mount_acl);
r                 166 security/tomoyo/mount.c 		error = tomoyo_audit_mount_log(r);
r                 195 security/tomoyo/mount.c 	struct tomoyo_request_info r;
r                 199 security/tomoyo/mount.c 	if (tomoyo_init_request_info(&r, NULL, TOMOYO_MAC_FILE_MOUNT)
r                 237 security/tomoyo/mount.c 	error = tomoyo_mount_acl(&r, dev_name, path, type, flags);
r                 363 security/tomoyo/network.c static int tomoyo_audit_net_log(struct tomoyo_request_info *r,
r                 367 security/tomoyo/network.c 	return tomoyo_supervisor(r, "network %s %s %s %s\n", family,
r                 379 security/tomoyo/network.c static int tomoyo_audit_inet_log(struct tomoyo_request_info *r)
r                 383 security/tomoyo/network.c 	const __be32 *address = r->param.inet_network.address;
r                 385 security/tomoyo/network.c 	if (r->param.inet_network.is_ipv6)
r                 392 security/tomoyo/network.c 		 r->param.inet_network.port);
r                 393 security/tomoyo/network.c 	return tomoyo_audit_net_log(r, "inet", r->param.inet_network.protocol,
r                 394 security/tomoyo/network.c 				    r->param.inet_network.operation, buf);
r                 404 security/tomoyo/network.c static int tomoyo_audit_unix_log(struct tomoyo_request_info *r)
r                 406 security/tomoyo/network.c 	return tomoyo_audit_net_log(r, "unix", r->param.unix_network.protocol,
r                 407 security/tomoyo/network.c 				    r->param.unix_network.operation,
r                 408 security/tomoyo/network.c 				    r->param.unix_network.address->name);
r                 419 security/tomoyo/network.c static bool tomoyo_check_inet_acl(struct tomoyo_request_info *r,
r                 424 security/tomoyo/network.c 	const u8 size = r->param.inet_network.is_ipv6 ? 16 : 4;
r                 426 security/tomoyo/network.c 	if (!(acl->perm & (1 << r->param.inet_network.operation)) ||
r                 427 security/tomoyo/network.c 	    !tomoyo_compare_number_union(r->param.inet_network.port,
r                 432 security/tomoyo/network.c 			(r->param.inet_network.is_ipv6,
r                 433 security/tomoyo/network.c 			 r->param.inet_network.address, acl->address.group);
r                 434 security/tomoyo/network.c 	return acl->address.is_ipv6 == r->param.inet_network.is_ipv6 &&
r                 436 security/tomoyo/network.c 		       r->param.inet_network.address, size) <= 0 &&
r                 437 security/tomoyo/network.c 		memcmp(r->param.inet_network.address,
r                 449 security/tomoyo/network.c static bool tomoyo_check_unix_acl(struct tomoyo_request_info *r,
r                 455 security/tomoyo/network.c 	return (acl->perm & (1 << r->param.unix_network.operation)) &&
r                 456 security/tomoyo/network.c 		tomoyo_compare_name_union(r->param.unix_network.address,
r                 470 security/tomoyo/network.c 	struct tomoyo_request_info r;
r                 474 security/tomoyo/network.c 	if (type && tomoyo_init_request_info(&r, NULL, type)
r                 476 security/tomoyo/network.c 		r.param_type = TOMOYO_TYPE_INET_ACL;
r                 477 security/tomoyo/network.c 		r.param.inet_network.protocol = address->protocol;
r                 478 security/tomoyo/network.c 		r.param.inet_network.operation = address->operation;
r                 479 security/tomoyo/network.c 		r.param.inet_network.is_ipv6 = address->inet.is_ipv6;
r                 480 security/tomoyo/network.c 		r.param.inet_network.address = address->inet.address;
r                 481 security/tomoyo/network.c 		r.param.inet_network.port = ntohs(address->inet.port);
r                 483 security/tomoyo/network.c 			tomoyo_check_acl(&r, tomoyo_check_inet_acl);
r                 484 security/tomoyo/network.c 			error = tomoyo_audit_inet_log(&r);
r                 547 security/tomoyo/network.c 	struct tomoyo_request_info r;
r                 551 security/tomoyo/network.c 	if (type && tomoyo_init_request_info(&r, NULL, type)
r                 568 security/tomoyo/network.c 			r.param_type = TOMOYO_TYPE_UNIX_ACL;
r                 569 security/tomoyo/network.c 			r.param.unix_network.protocol = address->protocol;
r                 570 security/tomoyo/network.c 			r.param.unix_network.operation = address->operation;
r                 571 security/tomoyo/network.c 			r.param.unix_network.address = &addr;
r                 573 security/tomoyo/network.c 				tomoyo_check_acl(&r, tomoyo_check_unix_acl);
r                 574 security/tomoyo/network.c 				error = tomoyo_audit_unix_log(&r);
r                  19 security/tomoyo/securityfs_if.c static bool tomoyo_check_task_acl(struct tomoyo_request_info *r,
r                  25 security/tomoyo/securityfs_if.c 	return !tomoyo_pathcmp(r->param.task.domainname, acl->domainname);
r                  56 security/tomoyo/securityfs_if.c 		struct tomoyo_request_info r;
r                  61 security/tomoyo/securityfs_if.c 		tomoyo_init_request_info(&r, NULL, TOMOYO_MAC_FILE_EXECUTE);
r                  62 security/tomoyo/securityfs_if.c 		r.param_type = TOMOYO_TYPE_MANUAL_TASK_ACL;
r                  63 security/tomoyo/securityfs_if.c 		r.param.task.domainname = &name;
r                  64 security/tomoyo/securityfs_if.c 		tomoyo_check_acl(&r, tomoyo_check_task_acl);
r                  65 security/tomoyo/securityfs_if.c 		if (!r.granted)
r                 997 security/tomoyo/util.c int tomoyo_init_request_info(struct tomoyo_request_info *r,
r                1002 security/tomoyo/util.c 	memset(r, 0, sizeof(*r));
r                1005 security/tomoyo/util.c 	r->domain = domain;
r                1007 security/tomoyo/util.c 	r->profile = profile;
r                1008 security/tomoyo/util.c 	r->type = index;
r                1009 security/tomoyo/util.c 	r->mode = tomoyo_get_mode(domain->ns, profile, index);
r                1010 security/tomoyo/util.c 	return r->mode;
r                1022 security/tomoyo/util.c bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r)
r                1025 security/tomoyo/util.c 	struct tomoyo_domain_info *domain = r->domain;
r                1028 security/tomoyo/util.c 	if (r->mode != TOMOYO_CONFIG_LEARNING)
r                1080 security/tomoyo/util.c 		tomoyo_write_log(r, "%s", tomoyo_dif[TOMOYO_DIF_QUOTA_WARNED]);
r                 122 sound/aoa/codecs/onyx.c 	s8 l, r;
r                 126 sound/aoa/codecs/onyx.c 	onyx_read_register(onyx, ONYX_REG_DAC_ATTEN_RIGHT, &r);
r                 130 sound/aoa/codecs/onyx.c 	ucontrol->value.integer.value[1] = r + VOLUME_RANGE_SHIFT;
r                 139 sound/aoa/codecs/onyx.c 	s8 l, r;
r                 150 sound/aoa/codecs/onyx.c 	onyx_read_register(onyx, ONYX_REG_DAC_ATTEN_RIGHT, &r);
r                 153 sound/aoa/codecs/onyx.c 	    r + VOLUME_RANGE_SHIFT == ucontrol->value.integer.value[1]) {
r                  41 sound/aoa/soundbus/i2sbus/core.c 				       struct dbdma_command_mem *r,
r                  45 sound/aoa/soundbus/i2sbus/core.c 	r->size = (numcmds + 3) * sizeof(struct dbdma_cmd);
r                  49 sound/aoa/soundbus/i2sbus/core.c 	r->space = dma_alloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev,
r                  50 sound/aoa/soundbus/i2sbus/core.c 				      r->size, &r->bus_addr, GFP_KERNEL);
r                  51 sound/aoa/soundbus/i2sbus/core.c 	if (!r->space)
r                  54 sound/aoa/soundbus/i2sbus/core.c 	r->cmds = (void*)DBDMA_ALIGN(r->space);
r                  55 sound/aoa/soundbus/i2sbus/core.c 	r->bus_cmd_start = r->bus_addr +
r                  56 sound/aoa/soundbus/i2sbus/core.c 			   (dma_addr_t)((char*)r->cmds - (char*)r->space);
r                  62 sound/aoa/soundbus/i2sbus/core.c 				       struct dbdma_command_mem *r)
r                  64 sound/aoa/soundbus/i2sbus/core.c 	if (!r->space) return;
r                  67 sound/aoa/soundbus/i2sbus/core.c 			    r->size, r->space, r->bus_addr);
r                 157 sound/aoa/soundbus/i2sbus/core.c 	struct resource *r;
r                 270 sound/aoa/soundbus/i2sbus/core.c 	r = &dev->resources[aoa_resource_i2smmio];
r                 271 sound/aoa/soundbus/i2sbus/core.c 	rlen = resource_size(r);
r                 274 sound/aoa/soundbus/i2sbus/core.c 	dev->intfregs = ioremap(r->start, rlen);
r                 276 sound/aoa/soundbus/i2sbus/core.c 	r = &dev->resources[aoa_resource_txdbdma];
r                 277 sound/aoa/soundbus/i2sbus/core.c 	rlen = resource_size(r);
r                 280 sound/aoa/soundbus/i2sbus/core.c 	dev->out.dbdma = ioremap(r->start, rlen);
r                 282 sound/aoa/soundbus/i2sbus/core.c 	r = &dev->resources[aoa_resource_rxdbdma];
r                 283 sound/aoa/soundbus/i2sbus/core.c 	rlen = resource_size(r);
r                 286 sound/aoa/soundbus/i2sbus/core.c 	dev->in.dbdma = ioremap(r->start, rlen);
r                 388 sound/arm/aaci.c 	slots = aaci->ac97_bus->pcms[0].r[0].slots;
r                 429 sound/arm/aaci.c 		if (aacirun->pcm->r[1].slots)
r                 526 sound/arm/aaci.c 					aacirun->pcm->r[dbl].slots);
r                 788 sound/arm/aaci.c 		.r = {
r                 808 sound/arm/aaci.c 		.r = {
r                 818 sound/arm/aaci.c 		.r = {
r                 560 sound/atmel/ac97c.c 		.r = { {
r                 569 sound/atmel/ac97c.c 		.r = { {
r                 578 sound/atmel/ac97c.c 		.r = { {
r                  37 sound/core/oss/mulaw.c 	int r = 0;
r                  41 sound/core/oss/mulaw.c 		r += 4;
r                  45 sound/core/oss/mulaw.c 		r += 2;
r                  48 sound/core/oss/mulaw.c 		r += 1;
r                  49 sound/core/oss/mulaw.c 	return r;
r                  28 sound/core/pcm_drm_eld.c 	struct snd_interval *r = hw_param_interval(params, rule->var);
r                  49 sound/core/pcm_drm_eld.c 	return snd_interval_list(r, ARRAY_SIZE(eld_rates), eld_rates,
r                  57 sound/core/pcm_drm_eld.c 	const struct snd_interval *r;
r                  67 sound/core/pcm_drm_eld.c 		r = hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_RATE);
r                  69 sound/core/pcm_drm_eld.c 			if (r->min <= eld_rates[i] && r->max >= eld_rates[i])
r                 504 sound/core/pcm_lib.c 				 unsigned int *r)
r                 507 sound/core/pcm_lib.c 		*r = 0;
r                 510 sound/core/pcm_lib.c 	*r = a % b;
r                 523 sound/core/pcm_lib.c 	unsigned int r;
r                 527 sound/core/pcm_lib.c 	q = div32(a, b, &r);
r                 528 sound/core/pcm_lib.c 	if (r)
r                 543 sound/core/pcm_lib.c 				    unsigned int c, unsigned int *r)
r                 547 sound/core/pcm_lib.c 		*r = 0;
r                 550 sound/core/pcm_lib.c 	n = div_u64_rem(n, c, r);
r                 552 sound/core/pcm_lib.c 		*r = 0;
r                 672 sound/core/pcm_lib.c 	unsigned int r;
r                 678 sound/core/pcm_lib.c 	c->min = div32(a->min, b->max, &r);
r                 679 sound/core/pcm_lib.c 	c->openmin = (r || a->openmin || b->openmax);
r                 681 sound/core/pcm_lib.c 		c->max = div32(a->max, b->min, &r);
r                 682 sound/core/pcm_lib.c 		if (r) {
r                 708 sound/core/pcm_lib.c 	unsigned int r;
r                 714 sound/core/pcm_lib.c 	c->min = muldiv32(a->min, b->min, k, &r);
r                 715 sound/core/pcm_lib.c 	c->openmin = (r || a->openmin || b->openmin);
r                 716 sound/core/pcm_lib.c 	c->max = muldiv32(a->max, b->max, k, &r);
r                 717 sound/core/pcm_lib.c 	if (r) {
r                 739 sound/core/pcm_lib.c 	unsigned int r;
r                 745 sound/core/pcm_lib.c 	c->min = muldiv32(a->min, k, b->max, &r);
r                 746 sound/core/pcm_lib.c 	c->openmin = (r || a->openmin || b->openmax);
r                 748 sound/core/pcm_lib.c 		c->max = muldiv32(a->max, k, b->min, &r);
r                 749 sound/core/pcm_lib.c 		if (r) {
r                 801 sound/core/pcm_lib.c 			unsigned int r;
r                 802 sound/core/pcm_lib.c 			r = (den - rats[k].den_min) % rats[k].den_step;
r                 803 sound/core/pcm_lib.c 			if (r != 0)
r                 804 sound/core/pcm_lib.c 				den -= r;
r                 842 sound/core/pcm_lib.c 			unsigned int r;
r                 843 sound/core/pcm_lib.c 			r = (den - rats[k].den_min) % rats[k].den_step;
r                 844 sound/core/pcm_lib.c 			if (r != 0)
r                 845 sound/core/pcm_lib.c 				den += rats[k].den_step - r;
r                 915 sound/core/pcm_lib.c 			unsigned int r;
r                 916 sound/core/pcm_lib.c 			r = (num - rats[k].num_min) % rats[k].num_step;
r                 917 sound/core/pcm_lib.c 			if (r != 0)
r                 918 sound/core/pcm_lib.c 				num += rats[k].num_step - r;
r                 947 sound/core/pcm_lib.c 			unsigned int r;
r                 948 sound/core/pcm_lib.c 			r = (num - rats[k].num_min) % rats[k].num_step;
r                 949 sound/core/pcm_lib.c 			if (r != 0)
r                 950 sound/core/pcm_lib.c 				num -= r;
r                1274 sound/core/pcm_lib.c 	struct snd_pcm_hw_constraint_ranges *r = rule->private;
r                1276 sound/core/pcm_lib.c 				   r->count, r->ranges, r->mask);
r                1294 sound/core/pcm_lib.c 				 const struct snd_pcm_hw_constraint_ranges *r)
r                1297 sound/core/pcm_lib.c 				   snd_pcm_hw_rule_ranges, (void *)r,
r                1305 sound/core/pcm_lib.c 	const struct snd_pcm_hw_constraint_ratnums *r = rule->private;
r                1309 sound/core/pcm_lib.c 				  r->nrats, r->rats, &num, &den);
r                1329 sound/core/pcm_lib.c 				  const struct snd_pcm_hw_constraint_ratnums *r)
r                1332 sound/core/pcm_lib.c 				   snd_pcm_hw_rule_ratnums, (void *)r,
r                1340 sound/core/pcm_lib.c 	const struct snd_pcm_hw_constraint_ratdens *r = rule->private;
r                1343 sound/core/pcm_lib.c 				  r->nrats, r->rats, &num, &den);
r                1363 sound/core/pcm_lib.c 				  const struct snd_pcm_hw_constraint_ratdens *r)
r                1366 sound/core/pcm_lib.c 				   snd_pcm_hw_rule_ratdens, (void *)r,
r                 323 sound/core/pcm_native.c 	struct snd_pcm_hw_rule *r;
r                 358 sound/core/pcm_native.c 		r = &constrs->rules[k];
r                 366 sound/core/pcm_native.c 		if (r->cond && !(r->cond & params->flags))
r                 379 sound/core/pcm_native.c 		for (d = 0; r->deps[d] >= 0; d++) {
r                 380 sound/core/pcm_native.c 			if (vstamps[r->deps[d]] > rstamps[k])
r                 383 sound/core/pcm_native.c 		if (r->deps[d] < 0)
r                 387 sound/core/pcm_native.c 			if (hw_is_mask(r->var))
r                 388 sound/core/pcm_native.c 				old_mask = *hw_param_mask(params, r->var);
r                 391 sound/core/pcm_native.c 			if (hw_is_interval(r->var))
r                 392 sound/core/pcm_native.c 				old_interval = *hw_param_interval(params, r->var);
r                 395 sound/core/pcm_native.c 		changed = r->func(params, r);
r                 406 sound/core/pcm_native.c 		if (changed && r->var >= 0) {
r                 407 sound/core/pcm_native.c 			if (hw_is_mask(r->var)) {
r                 408 sound/core/pcm_native.c 				trace_hw_mask_param(substream, r->var,
r                 410 sound/core/pcm_native.c 					hw_param_mask(params, r->var));
r                 412 sound/core/pcm_native.c 			if (hw_is_interval(r->var)) {
r                 413 sound/core/pcm_native.c 				trace_hw_interval_param(substream, r->var,
r                 415 sound/core/pcm_native.c 					hw_param_interval(params, r->var));
r                 418 sound/core/pcm_native.c 			params->cmask |= (1 << r->var);
r                 419 sound/core/pcm_native.c 			vstamps[r->var] = stamp;
r                 448 sound/core/seq/seq_ports.c static inline int addr_match(struct snd_seq_addr *r, struct snd_seq_addr *s)
r                 450 sound/core/seq/seq_ports.c 	return (r->client == s->client) && (r->port == s->port);
r                 455 sound/core/seq/seq_ports.c static int match_subs_info(struct snd_seq_port_subscribe *r,
r                 458 sound/core/seq/seq_ports.c 	if (addr_match(&r->sender, &s->sender) &&
r                 459 sound/core/seq/seq_ports.c 	    addr_match(&r->dest, &s->dest)) {
r                 460 sound/core/seq/seq_ports.c 		if (r->flags && r->flags == s->flags)
r                 461 sound/core/seq/seq_ports.c 			return r->queue == s->queue;
r                 462 sound/core/seq/seq_ports.c 		else if (! r->flags)
r                 359 sound/core/seq/seq_timer.c 		unsigned long r = snd_timer_resolution(tmr->timeri);
r                 360 sound/core/seq/seq_timer.c 		if (r) {
r                 361 sound/core/seq/seq_timer.c 			tmr->ticks = (unsigned int)(1000000000uL / (r * freq));
r                1297 sound/core/timer.c 	struct snd_timer_read *r;
r                1303 sound/core/timer.c 		r = &tu->queue[prev];
r                1304 sound/core/timer.c 		if (r->resolution == resolution) {
r                1305 sound/core/timer.c 			r->ticks += ticks;
r                1312 sound/core/timer.c 		r = &tu->queue[tu->qtail++];
r                1314 sound/core/timer.c 		r->resolution = resolution;
r                1315 sound/core/timer.c 		r->ticks = ticks;
r                1374 sound/core/timer.c 	struct snd_timer_tread *r, r1;
r                1407 sound/core/timer.c 		r = &tu->tqueue[prev];
r                1408 sound/core/timer.c 		if (r->event == SNDRV_TIMER_EVENT_TICK) {
r                1409 sound/core/timer.c 			r->tstamp = tstamp;
r                1410 sound/core/timer.c 			r->val += ticks;
r                1867 sound/core/timer.c 			struct snd_timer_read *r = &tu->queue[0];
r                1868 sound/core/timer.c 			r->resolution = 0;
r                1869 sound/core/timer.c 			r->ticks = 0;
r                  64 sound/drivers/vx/vx_mixer.c #define SET_CDC_DATA_REG(di,r)          ((di).b.ml = (u8) (r))
r                 156 sound/firewire/amdtp-stream.c 	const struct snd_interval *r =
r                 163 sound/firewire/amdtp-stream.c 		if (snd_interval_test(r, amdtp_rate_table[i]))
r                  14 sound/firewire/bebob/bebob_pcm.c 	struct snd_interval *r =
r                  35 sound/firewire/bebob/bebob_pcm.c 	return snd_interval_refine(r, &t);
r                  44 sound/firewire/bebob/bebob_pcm.c 	const struct snd_interval *r =
r                  57 sound/firewire/bebob/bebob_pcm.c 		if (!snd_interval_test(r, snd_bebob_rate_table[i]))
r                  20 sound/firewire/dice/dice-pcm.c 	struct snd_interval *r =
r                  46 sound/firewire/dice/dice-pcm.c 	return snd_interval_refine(r, &rates);
r                  56 sound/firewire/dice/dice-pcm.c 	const struct snd_interval *r =
r                  77 sound/firewire/dice/dice-pcm.c 		if (!snd_interval_test(r, rate))
r                  13 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_interval *r =
r                  31 sound/firewire/digi00x/digi00x-pcm.c 	return snd_interval_refine(r, &t);
r                  39 sound/firewire/digi00x/digi00x-pcm.c 	const struct snd_interval *r =
r                  47 sound/firewire/digi00x/digi00x-pcm.c 		if (!snd_interval_test(r, snd_dg00x_stream_rates[i]))
r                  14 sound/firewire/fireface/ff-pcm.c 	struct snd_interval *r =
r                  38 sound/firewire/fireface/ff-pcm.c 	return snd_interval_refine(r, &t);
r                  47 sound/firewire/fireface/ff-pcm.c 	const struct snd_interval *r =
r                  62 sound/firewire/fireface/ff-pcm.c 		if (!snd_interval_test(r, amdtp_rate_table[i]))
r                  67 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_interval *r =
r                  85 sound/firewire/fireworks/fireworks_pcm.c 	return snd_interval_refine(r, &t);
r                  94 sound/firewire/fireworks/fireworks_pcm.c 	const struct snd_interval *r =
r                 103 sound/firewire/fireworks/fireworks_pcm.c 		if (!snd_interval_test(r, freq_table[i]))
r                  26 sound/firewire/iso-resources.c int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit)
r                  28 sound/firewire/iso-resources.c 	r->channels_mask = ~0uLL;
r                  29 sound/firewire/iso-resources.c 	r->unit = unit;
r                  30 sound/firewire/iso-resources.c 	mutex_init(&r->mutex);
r                  31 sound/firewire/iso-resources.c 	r->allocated = false;
r                  41 sound/firewire/iso-resources.c void fw_iso_resources_destroy(struct fw_iso_resources *r)
r                  43 sound/firewire/iso-resources.c 	WARN_ON(r->allocated);
r                  44 sound/firewire/iso-resources.c 	mutex_destroy(&r->mutex);
r                 105 sound/firewire/iso-resources.c int fw_iso_resources_allocate(struct fw_iso_resources *r,
r                 108 sound/firewire/iso-resources.c 	struct fw_card *card = fw_parent_device(r->unit)->card;
r                 111 sound/firewire/iso-resources.c 	if (WARN_ON(r->allocated))
r                 114 sound/firewire/iso-resources.c 	r->bandwidth = packet_bandwidth(max_payload_bytes, speed);
r                 118 sound/firewire/iso-resources.c 	r->generation = card->generation;
r                 119 sound/firewire/iso-resources.c 	r->bandwidth_overhead = current_bandwidth_overhead(card);
r                 126 sound/firewire/iso-resources.c 	mutex_lock(&r->mutex);
r                 128 sound/firewire/iso-resources.c 	bandwidth = r->bandwidth + r->bandwidth_overhead;
r                 129 sound/firewire/iso-resources.c 	fw_iso_resource_manage(card, r->generation, r->channels_mask,
r                 132 sound/firewire/iso-resources.c 		mutex_unlock(&r->mutex);
r                 136 sound/firewire/iso-resources.c 		r->channel = channel;
r                 137 sound/firewire/iso-resources.c 		r->allocated = true;
r                 140 sound/firewire/iso-resources.c 			dev_err(&r->unit->device,
r                 143 sound/firewire/iso-resources.c 			dev_err(&r->unit->device,
r                 147 sound/firewire/iso-resources.c 	mutex_unlock(&r->mutex);
r                 164 sound/firewire/iso-resources.c int fw_iso_resources_update(struct fw_iso_resources *r)
r                 166 sound/firewire/iso-resources.c 	struct fw_card *card = fw_parent_device(r->unit)->card;
r                 169 sound/firewire/iso-resources.c 	mutex_lock(&r->mutex);
r                 171 sound/firewire/iso-resources.c 	if (!r->allocated) {
r                 172 sound/firewire/iso-resources.c 		mutex_unlock(&r->mutex);
r                 177 sound/firewire/iso-resources.c 	r->generation = card->generation;
r                 178 sound/firewire/iso-resources.c 	r->bandwidth_overhead = current_bandwidth_overhead(card);
r                 181 sound/firewire/iso-resources.c 	bandwidth = r->bandwidth + r->bandwidth_overhead;
r                 183 sound/firewire/iso-resources.c 	fw_iso_resource_manage(card, r->generation, 1uLL << r->channel,
r                 190 sound/firewire/iso-resources.c 		r->allocated = false;
r                 192 sound/firewire/iso-resources.c 			dev_err(&r->unit->device,
r                 195 sound/firewire/iso-resources.c 			dev_err(&r->unit->device,
r                 199 sound/firewire/iso-resources.c 	mutex_unlock(&r->mutex);
r                 211 sound/firewire/iso-resources.c void fw_iso_resources_free(struct fw_iso_resources *r)
r                 217 sound/firewire/iso-resources.c 	if (r->unit == NULL)
r                 219 sound/firewire/iso-resources.c 	card = fw_parent_device(r->unit)->card;
r                 221 sound/firewire/iso-resources.c 	mutex_lock(&r->mutex);
r                 223 sound/firewire/iso-resources.c 	if (r->allocated) {
r                 224 sound/firewire/iso-resources.c 		bandwidth = r->bandwidth + r->bandwidth_overhead;
r                 225 sound/firewire/iso-resources.c 		fw_iso_resource_manage(card, r->generation, 1uLL << r->channel,
r                 228 sound/firewire/iso-resources.c 			dev_err(&r->unit->device,
r                 231 sound/firewire/iso-resources.c 		r->allocated = false;
r                 234 sound/firewire/iso-resources.c 	mutex_unlock(&r->mutex);
r                  30 sound/firewire/iso-resources.h int fw_iso_resources_init(struct fw_iso_resources *r,
r                  32 sound/firewire/iso-resources.h void fw_iso_resources_destroy(struct fw_iso_resources *r);
r                  34 sound/firewire/iso-resources.h int fw_iso_resources_allocate(struct fw_iso_resources *r,
r                  36 sound/firewire/iso-resources.h int fw_iso_resources_update(struct fw_iso_resources *r);
r                  37 sound/firewire/iso-resources.h void fw_iso_resources_free(struct fw_iso_resources *r);
r                  18 sound/firewire/motu/motu-pcm.c 	struct snd_interval *r =
r                  38 sound/firewire/motu/motu-pcm.c 	return snd_interval_refine(r, &rates);
r                  46 sound/firewire/motu/motu-pcm.c 	const struct snd_interval *r =
r                  59 sound/firewire/motu/motu-pcm.c 		if (!snd_interval_test(r, rate))
r                  14 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_interval *r =
r                  38 sound/firewire/oxfw/oxfw-pcm.c 	return snd_interval_refine(r, &t);
r                  47 sound/firewire/oxfw/oxfw-pcm.c 	const struct snd_interval *r =
r                  61 sound/firewire/oxfw/oxfw-pcm.c 		if (!snd_interval_test(r, formation.rate))
r                 110 sound/isa/opti9xx/opti92x-ad1848.c #define OPTi93X_PORT(chip, r)		((chip)->port + OPTi93X_##r)
r                  82 sound/isa/sb/sb8_main.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                  83 sound/isa/sb/sb8_main.c 	if (r->min > SB8_RATE(22050) || r->max <= SB8_RATE(11025)) {
r                 159 sound/isa/wavefront/wavefront_fx.c 	wavefront_fx_info r;
r                 173 sound/isa/wavefront/wavefront_fx.c 	if (copy_from_user (&r, (void __user *)arg, sizeof (wavefront_fx_info)))
r                 176 sound/isa/wavefront/wavefront_fx.c 	switch (r.request) {
r                 178 sound/isa/wavefront/wavefront_fx.c 		wavefront_fx_mute (dev, r.data[0]);
r                 182 sound/isa/wavefront/wavefront_fx.c 		if (r.data[2] <= 0) {
r                 186 sound/isa/wavefront/wavefront_fx.c 		} else if (r.data[2] == 1) {
r                 187 sound/isa/wavefront/wavefront_fx.c 			pd = (unsigned short *) &r.data[3];
r                 189 sound/isa/wavefront/wavefront_fx.c 			if (r.data[2] > 256) {
r                 195 sound/isa/wavefront/wavefront_fx.c 						r.data[3],
r                 196 sound/isa/wavefront/wavefront_fx.c 						r.data[2] * sizeof(short));
r                 203 sound/isa/wavefront/wavefront_fx.c 			     r.data[0], /* page */
r                 204 sound/isa/wavefront/wavefront_fx.c 			     r.data[1], /* addr */
r                 205 sound/isa/wavefront/wavefront_fx.c 			     r.data[2], /* cnt */
r                 212 sound/isa/wavefront/wavefront_fx.c 			    r.request);
r                1170 sound/isa/wss/wss_lib.c 	unsigned char r;
r                1186 sound/isa/wss/wss_lib.c 	r = snd_wss_in(chip, CS4231_RIGHT_INPUT);
r                1187 sound/isa/wss/wss_lib.c 	if (r != 0x45) {
r                1189 sound/isa/wss/wss_lib.c 		if ((r & ~CS4231_ENABLE_MIC_GAIN) != 0x45) {
r                1196 sound/isa/wss/wss_lib.c 		r = snd_wss_in(chip, CS4231_LEFT_INPUT);
r                1198 sound/isa/wss/wss_lib.c 		if ((r | CS4231_ENABLE_MIC_GAIN) != 0xaa) {
r                1217 sound/isa/wss/wss_lib.c 	r = snd_wss_in(chip, CS4231_MISC_INFO);
r                1224 sound/isa/wss/wss_lib.c 			if ((r & 0xf) != 0xa)
r                1231 sound/isa/wss/wss_lib.c 			r = snd_wss_in(chip, CS4231_VERSION) & 0xe7;
r                1232 sound/isa/wss/wss_lib.c 			if (!r)
r                1237 sound/isa/wss/wss_lib.c 	if (r & 0x80)
r                 191 sound/mips/hal2.c 	int l, r;
r                 198 sound/mips/hal2.c 			r = 0;
r                 201 sound/mips/hal2.c 			r = 31 - ((tmp >> H2I_C2_R_ATT_SHIFT) & 31);
r                 207 sound/mips/hal2.c 		r = (tmp >> H2I_C2_R_GAIN_SHIFT) & 15;
r                 213 sound/mips/hal2.c 	ucontrol->value.integer.value[1] = r;
r                 223 sound/mips/hal2.c 	int l, r;
r                 226 sound/mips/hal2.c 	r = ucontrol->value.integer.value[1];
r                 232 sound/mips/hal2.c 		if (l | r) {
r                 234 sound/mips/hal2.c 			r = 31 - r;
r                 236 sound/mips/hal2.c 			new |= (r << H2I_C2_R_ATT_SHIFT);
r                 245 sound/mips/hal2.c 		new |= (r << H2I_C2_R_GAIN_SHIFT);
r                 396 sound/mips/sgio2audio.c 	s64 l, r;
r                 423 sound/mips/sgio2audio.c 		r = src[1]; /* sign extend */
r                 426 sound/mips/sgio2audio.c 			((r & 0x00ffffff) << CHANNEL_RIGHT_SHIFT);
r                  95 sound/parisc/harmony.c harmony_read(struct snd_harmony *h, unsigned r)
r                  97 sound/parisc/harmony.c 	return __raw_readl(h->iobase + r);
r                 101 sound/parisc/harmony.c harmony_write(struct snd_harmony *h, unsigned r, unsigned long v)
r                 103 sound/parisc/harmony.c 	__raw_writel(v, h->iobase + r);
r                 154 sound/pci/ac97/ac97_pcm.c 		return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3];
r                 411 sound/pci/ac97/ac97_pcm.c 		rates &= pcm->r[dbl].codec[cidx]->rates[idx];
r                 479 sound/pci/ac97/ac97_pcm.c 		slots = pcm->r[0].slots;
r                 493 sound/pci/ac97/ac97_pcm.c 						tmp &= ~rpcms[k].r[0].rslots[j];
r                 497 sound/pci/ac97/ac97_pcm.c 				tmp &= pcm->r[0].slots;
r                 500 sound/pci/ac97/ac97_pcm.c 				rpcm->r[0].rslots[j] = tmp;
r                 501 sound/pci/ac97/ac97_pcm.c 				rpcm->r[0].codec[j] = bus->codec[j];
r                 502 sound/pci/ac97/ac97_pcm.c 				rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j];
r                 511 sound/pci/ac97/ac97_pcm.c 			rpcm->r[0].slots |= tmp;
r                 520 sound/pci/ac97/ac97_pcm.c 			if ((tmp & pcm->r[1].slots) == tmp) {
r                 521 sound/pci/ac97/ac97_pcm.c 				rpcm->r[1].slots = tmp;
r                 522 sound/pci/ac97/ac97_pcm.c 				rpcm->r[1].rslots[0] = tmp;
r                 523 sound/pci/ac97/ac97_pcm.c 				rpcm->r[1].rate_table[0] = 0;
r                 524 sound/pci/ac97/ac97_pcm.c 				rpcm->r[1].codec[0] = bus->codec[0];
r                 559 sound/pci/ac97/ac97_pcm.c 	int i, cidx, r, ok_flag;
r                 564 sound/pci/ac97/ac97_pcm.c 	r = rate > 48000;
r                 585 sound/pci/ac97/ac97_pcm.c 			if (pcm->r[r].rslots[cidx] & (1 << i)) {
r                 599 sound/pci/ac97/ac97_pcm.c 	pcm->cur_dbl = r;
r                 605 sound/pci/ac97/ac97_pcm.c 			if (pcm->r[r].rslots[cidx] & (1 << i)) {
r                 606 sound/pci/ac97/ac97_pcm.c 				reg = get_slot_reg(pcm, cidx, i, r);
r                 617 sound/pci/ac97/ac97_pcm.c 				err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate);
r                 653 sound/pci/ac97/ac97_pcm.c 	int r = pcm->cur_dbl;
r                 658 sound/pci/ac97/ac97_pcm.c 			if (pcm->r[r].rslots[cidx] & (1 << i)) {
r                 659 sound/pci/ac97/ac97_pcm.c 				int reg = get_slot_reg(pcm, cidx, i, r);
r                 660 sound/pci/ac97/ac97_pcm.c 				snd_ac97_update_power(pcm->r[r].codec[cidx],
r                 762 sound/pci/als4000.c 	struct resource *r;
r                 770 sound/pci/als4000.c 			r = request_region(io_port, 8, "ALS4000 gameport");
r                 771 sound/pci/als4000.c 			if (r)
r                 776 sound/pci/als4000.c 		r = request_region(io_port, 8, "ALS4000 gameport");
r                 779 sound/pci/als4000.c 	if (!r) {
r                 787 sound/pci/als4000.c 		release_and_free_resource(r);
r                 795 sound/pci/als4000.c 	gameport_set_port_data(gp, r);
r                 808 sound/pci/als4000.c 		struct resource *r = gameport_get_port_data(acard->gameport);
r                 816 sound/pci/als4000.c 		release_and_free_resource(r);
r                 417 sound/pci/asihpi/hpi6000.c 	ao.pci = *phm->u.s.resource.r.pci;
r                 471 sound/pci/asihpi/hpi6205.c 	ao.pci = *phm->u.s.resource.r.pci;
r                2070 sound/pci/asihpi/hpi6205.c 	u32 r;
r                2075 sound/pci/asihpi/hpi6205.c 	r = ioread32(phw->prHDCR);
r                2076 sound/pci/asihpi/hpi6205.c 	r |= (u32)C6205_HDCR_DSPINT;
r                2077 sound/pci/asihpi/hpi6205.c 	iowrite32(r, phw->prHDCR);
r                2078 sound/pci/asihpi/hpi6205.c 	r &= ~(u32)C6205_HDCR_DSPINT;
r                2079 sound/pci/asihpi/hpi6205.c 	iowrite32(r, phw->prHDCR);
r                 558 sound/pci/asihpi/hpi_internal.h 	} r;
r                  24 sound/pci/asihpi/hpi_version.h #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r)
r                  92 sound/pci/asihpi/hpifunc.c 	struct hpi_response_header *r)
r                  94 sound/pci/asihpi/hpifunc.c 	hpi_send_recv((struct hpi_message *)m, (struct hpi_response *)r);
r                 707 sound/pci/asihpi/hpimsgx.c 		hpi_lookup_entry_point_function(phm->u.s.resource.r.pci);
r                 392 sound/pci/asihpi/hpioctl.c 	hm.u.s.resource.r.pci = &pci;
r                 978 sound/pci/atiixp.c 					pcm->r[0].slots);
r                1183 sound/pci/atiixp.c 		.r = {	{
r                1197 sound/pci/atiixp.c 		.r = {	{
r                1207 sound/pci/atiixp.c 		.r = {	{
r                1268 sound/pci/atiixp.c 	if (pbus->pcms[ATI_PCM_OUT].r[0].slots & (1 << AC97_SLOT_PCM_SLEFT)) {
r                1269 sound/pci/atiixp.c 		if (pbus->pcms[ATI_PCM_OUT].r[0].slots & (1 << AC97_SLOT_LFE))
r                 804 sound/pci/au88x0/au88x0_a3d.c 	int l, r;
r                 807 sound/pci/au88x0/au88x0_a3d.c 	r = ucontrol->value.integer.value[1];
r                 808 sound/pci/au88x0/au88x0_a3d.c 	vortex_a3d_coord2ild(a->ild, l, r);
r                 810 sound/pci/au88x0/au88x0_a3d.c 	a3dsrc_SetGainTarget(a, l, r);
r                 811 sound/pci/au88x0/au88x0_a3d.c 	a3dsrc_SetGainCurrent(a, l, r);
r                 869 sound/pci/azt3328.c static void snd_azf3328_mixer_reg_decode(struct azf3328_mixer_reg *r, unsigned long val)
r                 871 sound/pci/azt3328.c 	r->reg = val & 0xff;
r                 872 sound/pci/azt3328.c 	r->lchan_shift = (val >> 8) & 0x0f;
r                 873 sound/pci/azt3328.c 	r->rchan_shift = (val >> 12) & 0x0f;
r                 874 sound/pci/azt3328.c 	r->mask = (val >> 16) & 0xff;
r                 875 sound/pci/azt3328.c 	r->invert = (val >> 24) & 1;
r                 876 sound/pci/azt3328.c 	r->stereo = (val >> 25) & 1;
r                 877 sound/pci/azt3328.c 	r->enum_c = (val >> 26) & 0x0f;
r                 609 sound/pci/cmipci.c static int snd_cmipci_pll_rmn(unsigned int rate, unsigned int adcmult, int *r, int *m, int *n)
r                 614 sound/pci/cmipci.c 	for (*r = 0; rate < CM_MAXIMUM_RATE/adcmult; *r += (1<<5))
r                 617 sound/pci/cmipci.c 	if (*r > 0xff)
r                2011 sound/pci/cmipci.c static void cmipci_sb_reg_decode(struct cmipci_sb_reg *r, unsigned long val)
r                2013 sound/pci/cmipci.c 	r->left_reg = val & 0xff;
r                2014 sound/pci/cmipci.c 	r->right_reg = (val >> 8) & 0xff;
r                2015 sound/pci/cmipci.c 	r->left_shift = (val >> 16) & 0x07;
r                2016 sound/pci/cmipci.c 	r->right_shift = (val >> 19) & 0x07;
r                2017 sound/pci/cmipci.c 	r->invert = (val >> 22) & 1;
r                2018 sound/pci/cmipci.c 	r->stereo = (val >> 23) & 1;
r                2019 sound/pci/cmipci.c 	r->mask = (val >> 24) & 0xff;
r                2852 sound/pci/cmipci.c 	struct resource *r = NULL;
r                2861 sound/pci/cmipci.c 			r = request_region(io_port, 1, "CMIPCI gameport");
r                2862 sound/pci/cmipci.c 			if (r)
r                2867 sound/pci/cmipci.c 		r = request_region(io_port, 1, "CMIPCI gameport");
r                2870 sound/pci/cmipci.c 	if (!r) {
r                2878 sound/pci/cmipci.c 		release_and_free_resource(r);
r                2885 sound/pci/cmipci.c 	gameport_set_port_data(gp, r);
r                2897 sound/pci/cmipci.c 		struct resource *r = gameport_get_port_data(cm->gameport);
r                2903 sound/pci/cmipci.c 		release_and_free_resource(r);
r                 461 sound/pci/emu10k1/emufx.c 				 u32 op, u32 r, u32 a, u32 x, u32 y)
r                 469 sound/pci/emu10k1/emufx.c 	code[1] = ((op & 0x0f) << 20) | ((r & 0x3ff) << 10) | (a & 0x3ff);
r                 473 sound/pci/emu10k1/emufx.c #define OP(icode, ptr, op, r, a, x, y) \
r                 474 sound/pci/emu10k1/emufx.c 	snd_emu10k1_write_op(icode, ptr, op, r, a, x, y)
r                 478 sound/pci/emu10k1/emufx.c 					u32 op, u32 r, u32 a, u32 x, u32 y)
r                 486 sound/pci/emu10k1/emufx.c 	code[1] = ((op & 0x0f) << 24) | ((r & 0x7ff) << 12) | (a & 0x7ff);
r                 490 sound/pci/emu10k1/emufx.c #define A_OP(icode, ptr, op, r, a, x, y) \
r                 491 sound/pci/emu10k1/emufx.c 	snd_emu10k1_audigy_write_op(icode, ptr, op, r, a, x, y)
r                 506 sound/pci/ens1370.c 	unsigned int t, r = 0;
r                 509 sound/pci/ens1370.c 		r = inl(ES_REG(ensoniq, 1371_SMPRATE));
r                 510 sound/pci/ens1370.c 		if ((r & ES_1371_SRC_RAM_BUSY) == 0)
r                 511 sound/pci/ens1370.c 			return r;
r                 515 sound/pci/ens1370.c 		   ES_REG(ensoniq, 1371_SMPRATE), r);
r                 521 sound/pci/ens1370.c 	unsigned int temp, i, orig, r;
r                 527 sound/pci/ens1370.c 	r = temp & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 |
r                 529 sound/pci/ens1370.c 	r |= ES_1371_SRC_RAM_ADDRO(reg) | 0x10000;
r                 530 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                 545 sound/pci/ens1370.c 	r = orig & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 |
r                 547 sound/pci/ens1370.c 	r |= ES_1371_SRC_RAM_ADDRO(reg);
r                 548 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                 556 sound/pci/ens1370.c 	unsigned int r;
r                 558 sound/pci/ens1370.c 	r = snd_es1371_wait_src_ready(ensoniq) &
r                 561 sound/pci/ens1370.c 	r |= ES_1371_SRC_RAM_ADDRO(reg) | ES_1371_SRC_RAM_DATAO(data);
r                 562 sound/pci/ens1370.c 	outl(r | ES_1371_SRC_RAM_WE, ES_REG(ensoniq, 1371_SMPRATE));
r                 752 sound/pci/ens1370.c 	unsigned int freq, r;
r                 756 sound/pci/ens1370.c 	r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
r                 759 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                 765 sound/pci/ens1370.c 	r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
r                 767 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                 773 sound/pci/ens1370.c 	unsigned int freq, r;
r                 777 sound/pci/ens1370.c 	r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
r                 780 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                 787 sound/pci/ens1370.c 	r = (snd_es1371_wait_src_ready(ensoniq) & (ES_1371_SRC_DISABLE |
r                 789 sound/pci/ens1370.c 	outl(r, ES_REG(ensoniq, 1371_SMPRATE));
r                2439 sound/pci/es1968.c 	struct resource *r;
r                2445 sound/pci/es1968.c 	r = request_region(JOYSTICK_ADDR, 8, "ES1968 gameport");
r                2446 sound/pci/es1968.c 	if (!r)
r                2453 sound/pci/es1968.c 		release_and_free_resource(r);
r                2464 sound/pci/es1968.c 	gameport_set_port_data(gp, r);
r                2474 sound/pci/es1968.c 		struct resource *r = gameport_get_port_data(chip->gameport);
r                2479 sound/pci/es1968.c 		release_and_free_resource(r);
r                  30 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_0_BOX(r, x)	r[0] = ((r[0] & ~3) | ((x)&3))
r                  31 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_0_DAREAR(r, x)	r[0] = ((r[0] & ~4) | (((x)&1)<<2))
r                  32 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_1_CHN1(r, x)	r[1] = ((r[1] & ~1) | ((x)&1))
r                  33 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_1_CHN2(r, x)	r[1] = ((r[1] & ~2) | (((x)&1)<<1))
r                  34 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_1_CHN3(r, x)	r[1] = ((r[1] & ~4) | (((x)&1)<<2))
r                  35 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_2_CHN4(r, x)	r[2] = ((r[2] & ~1) | ((x)&1))
r                  36 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_2_MIDIIN(r, x)	r[2] = ((r[2] & ~2) | (((x)&1)<<1))
r                  37 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_2_MIDI1(r, x)	r[2] = ((r[2] & ~4) | (((x)&1)<<2))
r                  38 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_3_MIDI2(r, x)	r[3] = ((r[3] & ~1) | ((x)&1))
r                  39 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_3_MUTE(r, x)	r[3] = ((r[3] & ~2) | (((x)&1)<<1))
r                  40 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_3_INSEL(r, x)	r[3] = ((r[3] & ~4) | (((x)&1)<<2))
r                  41 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_SET_ADDR(r, a)	r[a&3] = ((r[a&3] & ~0x18) | (((a)&3)<<3))
r                  42 sound/pci/ice1712/hoontech.h #define ICE1712_STDSP24_CLOCK(r, a, c)	r[a&3] = ((r[a&3] & ~0x20) | (((c)&1)<<5))
r                 913 sound/pci/intel8x0.c 				ichdev->pcm->r[dbl].slots);
r                 918 sound/pci/intel8x0.c 			snd_ac97_set_rate(ichdev->pcm->r[0].codec[0], AC97_SPDIF,
r                1675 sound/pci/intel8x0.c 		.r = {	{
r                1695 sound/pci/intel8x0.c 		.r = {	{
r                1705 sound/pci/intel8x0.c 		.r = {	{
r                1714 sound/pci/intel8x0.c 		.r = {	{
r                1724 sound/pci/intel8x0.c 		.r = {	{
r                1734 sound/pci/intel8x0.c 		.r = {	{
r                2280 sound/pci/intel8x0.c 				if (pcm->r[0].codec[i]) {
r                2281 sound/pci/intel8x0.c 					tmp |= chip->ac97_sdin[pcm->r[0].codec[1]->num] << ICH_DI2L_SHIFT;
r                2290 sound/pci/intel8x0.c 	if (pbus->pcms[0].r[0].slots & (1 << AC97_SLOT_PCM_SLEFT)) {
r                2292 sound/pci/intel8x0.c 		if (pbus->pcms[0].r[0].slots & (1 << AC97_SLOT_LFE)) {
r                2298 sound/pci/intel8x0.c 	if (pbus->pcms[0].r[1].rslots[0]) {
r                 299 sound/pci/korg1212/korg1212.c    } r;
r                 939 sound/pci/korg1212/korg1212.c         sensVals.r.v.rightChanId  = SET_SENS_RIGHTCHANID;
r                 941 sound/pci/korg1212/korg1212.c         sensVals.r.v.rightChanVal = korg1212->rightADCInSens;
r                 964 sound/pci/korg1212/korg1212.c                                 if (sensVals.r.rightSensBits & (0x0001 << bitPosition))
r                4312 sound/pci/rme9652/hdsp.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                4313 sound/pci/rme9652/hdsp.c 	if (r->min > 96000 && hdsp->io_type == H9632) {
r                4320 sound/pci/rme9652/hdsp.c 	} else if (r->min > 48000 && r->max <= 96000) {
r                4327 sound/pci/rme9652/hdsp.c 	} else if (r->max < 64000) {
r                4343 sound/pci/rme9652/hdsp.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                4344 sound/pci/rme9652/hdsp.c 	if (r->min > 96000 && hdsp->io_type == H9632) {
r                4351 sound/pci/rme9652/hdsp.c 	} else if (r->min > 48000 && r->max <= 96000) {
r                4358 sound/pci/rme9652/hdsp.c 	} else if (r->max < 64000) {
r                4374 sound/pci/rme9652/hdsp.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                4381 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                4388 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                4395 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                4405 sound/pci/rme9652/hdsp.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                4412 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                4419 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                4426 sound/pci/rme9652/hdsp.c 		return snd_interval_refine(r, &t);
r                5879 sound/pci/rme9652/hdspm.c 	struct snd_interval *r =
r                5882 sound/pci/rme9652/hdspm.c 	if (r->min > 96000 && r->max <= 192000) {
r                5889 sound/pci/rme9652/hdspm.c 	} else if (r->min > 48000 && r->max <= 96000) {
r                5896 sound/pci/rme9652/hdspm.c 	} else if (r->max < 64000) {
r                5914 sound/pci/rme9652/hdspm.c 	struct snd_interval *r =
r                5917 sound/pci/rme9652/hdspm.c 	if (r->min > 96000 && r->max <= 192000) {
r                5924 sound/pci/rme9652/hdspm.c 	} else if (r->min > 48000 && r->max <= 96000) {
r                5931 sound/pci/rme9652/hdspm.c 	} else if (r->max < 64000) {
r                5949 sound/pci/rme9652/hdspm.c 	struct snd_interval *r =
r                5958 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                5965 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                5972 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                5983 sound/pci/rme9652/hdspm.c 	struct snd_interval *r =
r                5992 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                5999 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                6006 sound/pci/rme9652/hdspm.c 		return snd_interval_refine(r, &t);
r                2238 sound/pci/rme9652/rme9652.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                2239 sound/pci/rme9652/rme9652.c 	if (r->min > 48000) {
r                2246 sound/pci/rme9652/rme9652.c 	} else if (r->max < 88200) {
r                2262 sound/pci/rme9652/rme9652.c 	struct snd_interval *r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
r                2269 sound/pci/rme9652/rme9652.c 		return snd_interval_refine(r, &t);
r                2276 sound/pci/rme9652/rme9652.c 		return snd_interval_refine(r, &t);
r                 473 sound/pci/sonicvibes.c 	unsigned int r, m = 0, n = 0;
r                 481 sound/pci/sonicvibes.c 	for (r = 0; rate < 75000000 / SV_ADCMULT; r += 0x20, rate <<= 1);
r                 495 sound/pci/sonicvibes.c 	*res_r = r;
r                 502 sound/pci/sonicvibes.c 		"pll: m = 0x%x, r = 0x%x, n = 0x%x\n", reg, m, r, n);
r                 511 sound/pci/sonicvibes.c 	unsigned int r, m, n;
r                 513 sound/pci/sonicvibes.c 	snd_sonicvibes_pll(rate, &r, &m, &n);
r                 517 sound/pci/sonicvibes.c 		snd_sonicvibes_out1(sonic, reg + 1, r | n);
r                 546 sound/pci/sonicvibes.c 	unsigned int rate, div, r, m, n;
r                 558 sound/pci/sonicvibes.c 			snd_sonicvibes_pll(rate, &r, &m, &n);
r                 561 sound/pci/sonicvibes.c 			params->rate_num = (SV_REFFREQUENCY/16) * (n+2) * r;
r                3222 sound/pci/trident/trident_main.c 	int r;
r                3224 sound/pci/trident/trident_main.c 	r = trident->in_suspend ? 0 : 2;	/* count of retries */
r                3249 sound/pci/trident/trident_main.c 	if (r-- > 0) {
r                 445 sound/pci/via82xx.c 			unsigned int r;
r                 455 sound/pci/via82xx.c 			r = snd_pcm_sgbuf_get_chunk_size(substream, ofs, rest);
r                 456 sound/pci/via82xx.c 			rest -= r;
r                 469 sound/pci/via82xx.c 			((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag);
r                 471 sound/pci/via82xx.c 			dev->idx_table[idx].size = r;
r                 472 sound/pci/via82xx.c 			ofs += r;
r                1924 sound/pci/via82xx.c 	struct resource *r;
r                1929 sound/pci/via82xx.c 	r = request_region(JOYSTICK_ADDR, 8, "VIA686 gameport");
r                1930 sound/pci/via82xx.c 	if (!r) {
r                1940 sound/pci/via82xx.c 		release_and_free_resource(r);
r                1948 sound/pci/via82xx.c 	gameport_set_port_data(gp, r);
r                1962 sound/pci/via82xx.c 		struct resource *r = gameport_get_port_data(chip->gameport);
r                1966 sound/pci/via82xx.c 		release_and_free_resource(r);
r                 298 sound/pci/via82xx_modem.c 			unsigned int r;
r                 308 sound/pci/via82xx_modem.c 			r = PAGE_SIZE - (ofs % PAGE_SIZE);
r                 309 sound/pci/via82xx_modem.c 			if (rest < r)
r                 310 sound/pci/via82xx_modem.c 				r = rest;
r                 311 sound/pci/via82xx_modem.c 			rest -= r;
r                 324 sound/pci/via82xx_modem.c 			((u32 *)dev->table.area)[(idx<<1) + 1] = cpu_to_le32(r | flag);
r                 326 sound/pci/via82xx_modem.c 			dev->idx_table[idx].size = r;
r                 327 sound/pci/via82xx_modem.c 			ofs += r;
r                  71 sound/pci/ymfpci/ymfpci.c 	struct resource *r = NULL;
r                  90 sound/pci/ymfpci/ymfpci.c 				if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL)
r                  93 sound/pci/ymfpci/ymfpci.c 			if (!r) {
r                 111 sound/pci/ymfpci/ymfpci.c 	if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) {
r                 121 sound/pci/ymfpci/ymfpci.c 		release_and_free_resource(r);
r                 130 sound/pci/ymfpci/ymfpci.c 	gameport_set_port_data(gp, r);
r                 146 sound/pci/ymfpci/ymfpci.c 		struct resource *r = gameport_get_port_data(chip->gameport);
r                 151 sound/pci/ymfpci/ymfpci.c 		release_and_free_resource(r);
r                1075 sound/ppc/pmac.c 			unsigned int r = *prop++;
r                1077 sound/ppc/pmac.c 			if (r >= 0x10000)
r                1078 sound/ppc/pmac.c 				r >>= 16;
r                1080 sound/ppc/pmac.c 				if (r == chip->freq_table[i]) {
r                1304 sound/ppc/pmac.c 				struct resource r;
r                1305 sound/ppc/pmac.c 				if (of_address_to_resource(mio, 0, &r) == 0)
r                1307 sound/ppc/pmac.c 						ioremap(r.start, 0x40);
r                 198 sound/soc/atmel/atmel_ssc_dai.c 	struct snd_ratnum r = {
r                 237 sound/soc/atmel/atmel_ssc_dai.c 		r.num = ssc_p->mck_rate / mck_div / frame_size;
r                 239 sound/soc/atmel/atmel_ssc_dai.c 		ret = snd_interval_ratnum(i, 1, &r, &num, &den);
r                  84 sound/soc/au1x/ac97c.c 					  unsigned short r)
r                 103 sound/soc/au1x/ac97c.c 		WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ);
r                 120 sound/soc/au1x/ac97c.c 	pr_debug("AC97RD %04x %04lx %d\n", r, data, retry);
r                 125 sound/soc/au1x/ac97c.c static void au1xac97c_ac97_write(struct snd_ac97 *ac97, unsigned short r,
r                 142 sound/soc/au1x/ac97c.c 		WR(ctx, AC97_CMDRESP, CMD_WRITE | CMD_IDX(r) | CMD_SET_DATA(v));
r                 152 sound/soc/au1x/ac97c.c 	pr_debug("AC97WR %04x %04x %d\n", r, v, retry);
r                 212 sound/soc/au1x/psc-ac97.c 	unsigned long r, ro, stat;
r                 217 sound/soc/au1x/psc-ac97.c 	r = ro = __raw_readl(AC97_CFG(pscdata));
r                 223 sound/soc/au1x/psc-ac97.c 		if ((PSC_AC97CFG_GET_LEN(r) != params->msbits) ||
r                 229 sound/soc/au1x/psc-ac97.c 		r &= ~PSC_AC97CFG_LEN_MASK;
r                 230 sound/soc/au1x/psc-ac97.c 		r |= PSC_AC97CFG_SET_LEN(params->msbits);
r                 234 sound/soc/au1x/psc-ac97.c 			r &= ~PSC_AC97CFG_TXSLOT_MASK;
r                 235 sound/soc/au1x/psc-ac97.c 			r |= PSC_AC97CFG_TXSLOT_ENA(3);
r                 236 sound/soc/au1x/psc-ac97.c 			r |= PSC_AC97CFG_TXSLOT_ENA(4);
r                 238 sound/soc/au1x/psc-ac97.c 			r &= ~PSC_AC97CFG_RXSLOT_MASK;
r                 239 sound/soc/au1x/psc-ac97.c 			r |= PSC_AC97CFG_RXSLOT_ENA(3);
r                 240 sound/soc/au1x/psc-ac97.c 			r |= PSC_AC97CFG_RXSLOT_ENA(4);
r                 244 sound/soc/au1x/psc-ac97.c 		if (!(r ^ ro))
r                 251 sound/soc/au1x/psc-ac97.c 		__raw_writel(r & ~PSC_AC97CFG_DE_ENABLE, AC97_CFG(pscdata));
r                 263 sound/soc/au1x/psc-ac97.c 		__raw_writel(r, AC97_CFG(pscdata));
r                 267 sound/soc/au1x/psc-ac97.c 		__raw_writel(r | PSC_AC97CFG_DE_ENABLE, AC97_CFG(pscdata));
r                 280 sound/soc/au1x/psc-ac97.c 		pscdata->cfg = r;
r                  18 sound/soc/codecs/adau-utils.c 	unsigned int r, n, m, i, j;
r                  22 sound/soc/codecs/adau-utils.c 		r = 0;
r                  30 sound/soc/codecs/adau-utils.c 			r = freq_out / freq_in;
r                  37 sound/soc/codecs/adau-utils.c 			r = freq_out / freq_in;
r                  42 sound/soc/codecs/adau-utils.c 		if (n > 0xffff || m > 0xffff || div > 3 || r > 8 || r < 2)
r                  50 sound/soc/codecs/adau-utils.c 	regs[4] = (r << 3) | (div << 1);
r                 716 sound/soc/codecs/cx2072x.c 		reg2.r.tx_master = 1;
r                 717 sound/soc/codecs/cx2072x.c 		reg3.r.rx_master = 1;
r                 722 sound/soc/codecs/cx2072x.c 		reg2.r.tx_master = 0;
r                 723 sound/soc/codecs/cx2072x.c 		reg3.r.rx_master = 0;
r                 782 sound/soc/codecs/cx2072x.c 	reg1.r.rx_data_one_line = 1;
r                 783 sound/soc/codecs/cx2072x.c 	reg1.r.tx_data_one_line = 1;
r                 791 sound/soc/codecs/cx2072x.c 	reg1.r.rx_ws_pol = is_frame_inv;
r                 792 sound/soc/codecs/cx2072x.c 	reg1.r.rx_ws_wid = pulse_len - 1;
r                 794 sound/soc/codecs/cx2072x.c 	reg1.r.rx_frm_len = frame_len / BITS_PER_SLOT - 1;
r                 795 sound/soc/codecs/cx2072x.c 	reg1.r.rx_sa_size = (sample_size / BITS_PER_SLOT) - 1;
r                 797 sound/soc/codecs/cx2072x.c 	reg1.r.tx_ws_pol = reg1.r.rx_ws_pol;
r                 798 sound/soc/codecs/cx2072x.c 	reg1.r.tx_ws_wid = pulse_len - 1;
r                 799 sound/soc/codecs/cx2072x.c 	reg1.r.tx_frm_len = reg1.r.rx_frm_len;
r                 800 sound/soc/codecs/cx2072x.c 	reg1.r.tx_sa_size = reg1.r.rx_sa_size;
r                 802 sound/soc/codecs/cx2072x.c 	reg2.r.tx_endian_sel = !is_big_endian;
r                 803 sound/soc/codecs/cx2072x.c 	reg2.r.tx_dstart_dly = has_one_bit_delay;
r                 805 sound/soc/codecs/cx2072x.c 		reg2.r.tx_dstart_dly = 0;
r                 807 sound/soc/codecs/cx2072x.c 	reg3.r.rx_endian_sel = !is_big_endian;
r                 808 sound/soc/codecs/cx2072x.c 	reg3.r.rx_dstart_dly = has_one_bit_delay;
r                 813 sound/soc/codecs/cx2072x.c 		reg2.r.tx_slot_1 = 0;
r                 814 sound/soc/codecs/cx2072x.c 		reg2.r.tx_slot_2 = i2s_right_slot;
r                 815 sound/soc/codecs/cx2072x.c 		reg3.r.rx_slot_1 = 0;
r                 817 sound/soc/codecs/cx2072x.c 			reg3.r.rx_slot_2 = 0;
r                 819 sound/soc/codecs/cx2072x.c 			reg3.r.rx_slot_2 = i2s_right_slot;
r                 820 sound/soc/codecs/cx2072x.c 		reg6.r.rx_pause_start_pos = i2s_right_pause_pos;
r                 821 sound/soc/codecs/cx2072x.c 		reg6.r.rx_pause_cycles = i2s_right_pause_interval;
r                 822 sound/soc/codecs/cx2072x.c 		reg6.r.tx_pause_start_pos = i2s_right_pause_pos;
r                 823 sound/soc/codecs/cx2072x.c 		reg6.r.tx_pause_cycles = i2s_right_pause_interval;
r                 828 sound/soc/codecs/cx2072x.c 	regdbt2.r.i2s_bclk_invert = is_bclk_inv;
r                 830 sound/soc/codecs/cx2072x.c 	reg1.r.rx_data_one_line = 1;
r                 831 sound/soc/codecs/cx2072x.c 	reg1.r.tx_data_one_line = 1;
r                 835 sound/soc/codecs/cx2072x.c 	reg5.r.i2s_pcm_clk_div_chan_en = 0;
r                 840 sound/soc/codecs/cx2072x.c 	if (reg2.r.tx_master) {
r                 849 sound/soc/codecs/cx2072x.c 		reg5.r.i2s_pcm_clk_div = (u32)div - 1;
r                 850 sound/soc/codecs/cx2072x.c 		reg5.r.i2s_pcm_clk_div_chan_en = 1;
r                 204 sound/soc/codecs/cx2072x.h 	} r;
r                 226 sound/soc/codecs/cx2072x.h 	} r;
r                 248 sound/soc/codecs/cx2072x.h 	} r;
r                 268 sound/soc/codecs/cx2072x.h 	} r;
r                 281 sound/soc/codecs/cx2072x.h 	} r;
r                 293 sound/soc/codecs/cx2072x.h 	} r;
r                 310 sound/soc/codecs/cx2072x.h 	} r;
r                 546 sound/soc/codecs/sgtl5000.c 	int r;
r                 554 sound/soc/codecs/sgtl5000.c 	r = (reg & SGTL5000_DAC_VOL_RIGHT_MASK) >> SGTL5000_DAC_VOL_RIGHT_SHIFT;
r                 558 sound/soc/codecs/sgtl5000.c 	r = clamp(r, 0x3c, 0xfc);
r                 562 sound/soc/codecs/sgtl5000.c 	r = 0xfc - r;
r                 565 sound/soc/codecs/sgtl5000.c 	ucontrol->value.integer.value[1] = r;
r                 599 sound/soc/codecs/sgtl5000.c 	int r;
r                 602 sound/soc/codecs/sgtl5000.c 	r = ucontrol->value.integer.value[1];
r                 606 sound/soc/codecs/sgtl5000.c 	r = clamp(r, 0, 0xfc - 0x3c);
r                 610 sound/soc/codecs/sgtl5000.c 	r = 0xfc - r;
r                 614 sound/soc/codecs/sgtl5000.c 		r << SGTL5000_DAC_VOL_RIGHT_SHIFT;
r                  34 sound/soc/codecs/tlv320aic32x4-clk.c 	u16 r;
r                  87 sound/soc/codecs/tlv320aic32x4-clk.c 	settings->r = val & AIC32X4_PLL_R_MASK;
r                 115 sound/soc/codecs/tlv320aic32x4-clk.c 				AIC32X4_PLL_R_MASK, settings->r);
r                 148 sound/soc/codecs/tlv320aic32x4-clk.c 	rate = (u64) parent_rate * settings->r *
r                 175 sound/soc/codecs/tlv320aic32x4-clk.c 	settings->r = ((u32) multiplier / 640000) + 1;
r                 176 sound/soc/codecs/tlv320aic32x4-clk.c 	if (settings->r > 4)
r                 178 sound/soc/codecs/tlv320aic32x4-clk.c 	do_div(multiplier, settings->r);
r                1050 sound/soc/codecs/tlv320aic3x.c 	u8 data, j, r, p, pll_q, pll_p = 1, pll_r = 1, pll_j = 1;
r                1128 sound/soc/codecs/tlv320aic3x.c 	for (r = 1; r <= 16; r++)
r                1135 sound/soc/codecs/tlv320aic3x.c 				int tmp_clk = (1000 * j * r) / p;
r                1143 sound/soc/codecs/tlv320aic3x.c 					pll_r = r; pll_p = p;
r                  11 sound/soc/codecs/wcd9335.h #define WCD9335_REG(pg, r)	((pg << 12) | (r) | 0x800)
r                  12 sound/soc/codecs/wcd9335.h #define WCD9335_REG_OFFSET(r)	(r & 0xFF)
r                  13 sound/soc/codecs/wcd9335.h #define WCD9335_PAGE_OFFSET(r)	((r >> 12) & 0xFF)
r                  33 sound/soc/codecs/wl1273.c 	int r = 0;
r                  70 sound/soc/codecs/wl1273.c 		r = -EINVAL;
r                 104 sound/soc/codecs/wl1273.c 		r = -EINVAL;
r                 113 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode);
r                 114 sound/soc/codecs/wl1273.c 		if (r)
r                 118 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_AUDIO_ENABLE,
r                 120 sound/soc/codecs/wl1273.c 		if (r)
r                 126 sound/soc/codecs/wl1273.c 	return r;
r                 133 sound/soc/codecs/wl1273.c 	int r = 0;
r                 143 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO);
r                 145 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO);
r                 147 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO);
r                 149 sound/soc/codecs/wl1273.c 		r = core->write(core, WL1273_MONO_SET, WL1273_TX_STEREO);
r                 151 sound/soc/codecs/wl1273.c 		r = -EINVAL;
r                 155 sound/soc/codecs/wl1273.c 	return r;
r                 217 sound/soc/codecs/wl1273.c 	int val, r = 0;
r                 225 sound/soc/codecs/wl1273.c 	r = wl1273->core->set_audio(wl1273->core, val);
r                 226 sound/soc/codecs/wl1273.c 	if (r < 0)
r                 227 sound/soc/codecs/wl1273.c 		return r;
r                 254 sound/soc/codecs/wl1273.c 	int r;
r                 258 sound/soc/codecs/wl1273.c 	r = wl1273->core->set_volume(wl1273->core,
r                 260 sound/soc/codecs/wl1273.c 	if (r)
r                 261 sound/soc/codecs/wl1273.c 		return r;
r                 326 sound/soc/codecs/wl1273.c 	unsigned int rate, width, r;
r                 369 sound/soc/codecs/wl1273.c 	r = snd_wl1273_fm_set_i2s_mode(core, rate, width);
r                 370 sound/soc/codecs/wl1273.c 	if (r)
r                 371 sound/soc/codecs/wl1273.c 		return r;
r                 374 sound/soc/codecs/wl1273.c 	r = snd_wl1273_fm_set_channel_number(core, wl1273->channels);
r                 375 sound/soc/codecs/wl1273.c 	if (r)
r                 376 sound/soc/codecs/wl1273.c 		return r;
r                  60 sound/soc/dwc/local.h #define	COMP1_TX_WORDSIZE_3(r)	(((r) & GENMASK(27, 25)) >> 25)
r                  61 sound/soc/dwc/local.h #define	COMP1_TX_WORDSIZE_2(r)	(((r) & GENMASK(24, 22)) >> 22)
r                  62 sound/soc/dwc/local.h #define	COMP1_TX_WORDSIZE_1(r)	(((r) & GENMASK(21, 19)) >> 19)
r                  63 sound/soc/dwc/local.h #define	COMP1_TX_WORDSIZE_0(r)	(((r) & GENMASK(18, 16)) >> 16)
r                  64 sound/soc/dwc/local.h #define	COMP1_TX_CHANNELS(r)	(((r) & GENMASK(10, 9)) >> 9)
r                  65 sound/soc/dwc/local.h #define	COMP1_RX_CHANNELS(r)	(((r) & GENMASK(8, 7)) >> 7)
r                  66 sound/soc/dwc/local.h #define	COMP1_RX_ENABLED(r)	(((r) & BIT(6)) >> 6)
r                  67 sound/soc/dwc/local.h #define	COMP1_TX_ENABLED(r)	(((r) & BIT(5)) >> 5)
r                  68 sound/soc/dwc/local.h #define	COMP1_MODE_EN(r)	(((r) & BIT(4)) >> 4)
r                  69 sound/soc/dwc/local.h #define	COMP1_FIFO_DEPTH_GLOBAL(r)	(((r) & GENMASK(3, 2)) >> 2)
r                  70 sound/soc/dwc/local.h #define	COMP1_APB_DATA_WIDTH(r)	(((r) & GENMASK(1, 0)) >> 0)
r                  72 sound/soc/dwc/local.h #define	COMP2_RX_WORDSIZE_3(r)	(((r) & GENMASK(12, 10)) >> 10)
r                  73 sound/soc/dwc/local.h #define	COMP2_RX_WORDSIZE_2(r)	(((r) & GENMASK(9, 7)) >> 7)
r                  74 sound/soc/dwc/local.h #define	COMP2_RX_WORDSIZE_1(r)	(((r) & GENMASK(5, 3)) >> 3)
r                  75 sound/soc/dwc/local.h #define	COMP2_RX_WORDSIZE_0(r)	(((r) & GENMASK(2, 0)) >> 0)
r                 221 sound/soc/intel/atom/sst/sst_stream.c 			unsigned char *r = block->data;
r                 225 sound/soc/intel/atom/sst/sst_stream.c 			memcpy(bytes->bytes, r, bytes->len);
r                  30 sound/soc/intel/haswell/sst-haswell-pcm.c #define SST_OLD_POSITION(d, r, o) ((d) +		\
r                  31 sound/soc/intel/haswell/sst-haswell-pcm.c 			frames_to_bytes(r, o))
r                  32 sound/soc/intel/haswell/sst-haswell-pcm.c #define SST_SAMPLES(r, x) (bytes_to_samples(r,	\
r                  33 sound/soc/intel/haswell/sst-haswell-pcm.c 			frames_to_bytes(r, (x))))
r                  33 sound/soc/intel/skylake/skl-sst-utils.c 	} r;
r                 104 sound/soc/pxa/mmp-pcm.c 	struct resource *r;
r                 106 sound/soc/pxa/mmp-pcm.c 	r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream);
r                 107 sound/soc/pxa/mmp-pcm.c 	if (!r)
r                 113 sound/soc/pxa/mmp-pcm.c 	dma_data.dma_res = r;
r                 334 sound/soc/sh/fsi.c #define fsi_reg_write(p, r, d)\
r                 335 sound/soc/sh/fsi.c 	__fsi_reg_write((p->base + REG_##r), d)
r                 337 sound/soc/sh/fsi.c #define fsi_reg_read(p, r)\
r                 338 sound/soc/sh/fsi.c 	__fsi_reg_read((p->base + REG_##r))
r                 340 sound/soc/sh/fsi.c #define fsi_reg_mask_set(p, r, m, d)\
r                 341 sound/soc/sh/fsi.c 	__fsi_reg_mask_set((p->base + REG_##r), m, d)
r                 343 sound/soc/sh/fsi.c #define fsi_master_read(p, r) _fsi_master_read(p, MST_##r)
r                 344 sound/soc/sh/fsi.c #define fsi_core_read(p, r)   _fsi_master_read(p, p->core->r)
r                 357 sound/soc/sh/fsi.c #define fsi_master_mask_set(p, r, m, d) _fsi_master_mask_set(p, MST_##r, m, d)
r                 358 sound/soc/sh/fsi.c #define fsi_core_mask_set(p, r, m, d)  _fsi_master_mask_set(p, p->core->r, m, d)
r                  99 sound/soc/sh/hac.c static int hac_get_codec_data(struct hac_priv *hac, unsigned short r,
r                 125 sound/soc/sh/hac.c 		if (r == adr)
r                3071 sound/soc/soc-dapm.c 	int i, r, ret = 0;
r                3075 sound/soc/soc-dapm.c 		r = snd_soc_dapm_add_route(dapm, route);
r                3076 sound/soc/soc-dapm.c 		if (r < 0) {
r                3081 sound/soc/soc-dapm.c 			ret = r;
r                  74 sound/soc/sof/pm.c 		struct sof_ipc_comp_reply r;
r                  88 sound/soc/sof/pm.c 						 &r, sizeof(r));
r                  99 sound/soc/sof/pm.c 			ret = sof_load_pipeline_ipc(sdev, pipeline, &r);
r                 105 sound/soc/sof/pm.c 						 &r, sizeof(r));
r                 562 sound/soc/sof/sof-priv.h 			  struct sof_ipc_comp_reply *r);
r                1180 sound/soc/sof/topology.c 			       struct sof_ipc_comp_reply *r,
r                1220 sound/soc/sof/topology.c 				 &comp_dai, sizeof(comp_dai), r, sizeof(*r));
r                1237 sound/soc/sof/topology.c 				  struct sof_ipc_comp_reply *r)
r                1271 sound/soc/sof/topology.c 				 sizeof(*buffer), r, sizeof(*r));
r                1308 sound/soc/sof/topology.c 			       struct sof_ipc_comp_reply *r)
r                1352 sound/soc/sof/topology.c 				 sizeof(*host), r, sizeof(*r));
r                1365 sound/soc/sof/topology.c 			  struct sof_ipc_comp_reply *r)
r                1371 sound/soc/sof/topology.c 				 sizeof(*pipeline), r, sizeof(*r));
r                1412 sound/soc/sof/topology.c 				    struct sof_ipc_comp_reply *r)
r                1460 sound/soc/sof/topology.c 	ret = sof_load_pipeline_ipc(sdev, pipeline, r);
r                1475 sound/soc/sof/topology.c 				 struct sof_ipc_comp_reply *r)
r                1509 sound/soc/sof/topology.c 				 sizeof(*mixer), r, sizeof(*r));
r                1522 sound/soc/sof/topology.c 			       struct sof_ipc_comp_reply *r)
r                1556 sound/soc/sof/topology.c 				 sizeof(*mux), r, sizeof(*r));
r                1570 sound/soc/sof/topology.c 			       struct sof_ipc_comp_reply *r)
r                1632 sound/soc/sof/topology.c 				 sizeof(*volume), r, sizeof(*r));
r                1647 sound/soc/sof/topology.c 			       struct sof_ipc_comp_reply *r)
r                1691 sound/soc/sof/topology.c 				 sizeof(*src), r, sizeof(*r));
r                1706 sound/soc/sof/topology.c 				  struct sof_ipc_comp_reply *r)
r                1750 sound/soc/sof/topology.c 				 sizeof(*tone), r, sizeof(*r));
r                1833 sound/soc/sof/topology.c 			    struct sof_ipc_comp_reply *r,
r                1923 sound/soc/sof/topology.c 				 ipc_size, r, sizeof(*r));
r                1964 sound/soc/sof/topology.c 				   struct sof_ipc_comp_reply *r)
r                1990 sound/soc/sof/topology.c 	ret = sof_process_load(scomp, index, swidget, tw, r,
r                  62 sound/soc/ti/omap-mcbsp.c 	int r;
r                  79 sound/soc/ti/omap-mcbsp.c 	r = clk_set_parent(mcbsp->fclk, fck_src);
r                  80 sound/soc/ti/omap-mcbsp.c 	if (r) {
r                  84 sound/soc/ti/omap-mcbsp.c 		return r;
r                 175 sound/soc/txx9/txx9aclc-ac97.c 	struct resource *r;
r                 187 sound/soc/txx9/txx9aclc-ac97.c 	r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
r                 188 sound/soc/txx9/txx9aclc-ac97.c 	drvdata->base = devm_ioremap_resource(&pdev->dev, r);
r                 193 sound/soc/txx9/txx9aclc-ac97.c 	drvdata->physbase = r->start;
r                 194 sound/soc/txx9/txx9aclc-ac97.c 	if (sizeof(drvdata->physbase) > sizeof(r->start) &&
r                 195 sound/soc/txx9/txx9aclc-ac97.c 	    r->start >= TXX9_DIRECTMAP_BASE &&
r                 196 sound/soc/txx9/txx9aclc-ac97.c 	    r->start < TXX9_DIRECTMAP_BASE + 0x400000)
r                 293 sound/soc/txx9/txx9aclc.c 	struct resource *r;
r                 303 sound/soc/txx9/txx9aclc.c 		r = platform_get_resource(pdev, IORESOURCE_DMA, i);
r                 304 sound/soc/txx9/txx9aclc.c 		if (!r) {
r                 308 sound/soc/txx9/txx9aclc.c 		dev->dmadata[i].dma_res = r;
r                  86 sound/soc/uniphier/aio-core.c 	struct regmap *r = chip->regmap_sg;
r                  88 sound/soc/uniphier/aio-core.c 	if (!r)
r                  91 sound/soc/uniphier/aio-core.c 	regmap_write(r, SG_AOUTEN, (enable) ? ~0 : 0);
r                 109 sound/soc/uniphier/aio-core.c 	struct regmap *r = chip->regmap;
r                 148 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, A2APLLCTR1, A2APLLCTR1_APLLX_MASK << shift,
r                 167 sound/soc/uniphier/aio-core.c 	struct regmap *r = chip->regmap;
r                 169 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, A2APLLCTR0,
r                 173 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, A2EXMCLKSEL0,
r                 177 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, A2AIOINPUTSEL, A2AIOINPUTSEL_RXSEL_MASK,
r                 184 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_TEST, CDA2D_TEST_DDR_MODE_MASK,
r                 187 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_TEST, CDA2D_TEST_DDR_MODE_MASK,
r                 203 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 205 sound/soc/uniphier/aio-core.c 	regmap_write(r, A2RBNMAPCTR0(sub->swm->rb.hw),
r                 207 sound/soc/uniphier/aio-core.c 	regmap_write(r, A2CHNMAPCTR0(sub->swm->ch.hw),
r                 215 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw),
r                 217 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2IPORTNMAPCTR0(sub->swm->iport.hw),
r                 220 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw),
r                 222 sound/soc/uniphier/aio-core.c 			regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw),
r                 227 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2OIFNMAPCTR0(sub->swm->oif.hw),
r                 229 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2OPORTNMAPCTR0(sub->swm->oport.hw),
r                 231 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2CHNMAPCTR0(sub->swm->och.hw),
r                 233 sound/soc/uniphier/aio-core.c 		regmap_write(r, A2IIFNMAPCTR0(sub->swm->iif.hw),
r                 252 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 255 sound/soc/uniphier/aio-core.c 		regmap_write(r, AOUTRSTCTR0, BIT(sub->swm->oport.map));
r                 256 sound/soc/uniphier/aio-core.c 		regmap_write(r, AOUTRSTCTR1, BIT(sub->swm->oport.map));
r                 258 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map),
r                 261 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXRSTCTR(sub->swm->iport.map),
r                 280 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 309 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i),
r                 311 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYSLOTCTR(sub->swm->oport.map, i),
r                 332 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 382 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map),
r                 430 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map),
r                 451 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 473 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXCTR1(sub->swm->oport.map),
r                 495 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXCTR1(sub->swm->iport.map),
r                 518 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 589 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXCTR2(sub->swm->oport.map), v);
r                 595 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXCTR2(sub->swm->iport.map), v);
r                 616 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 657 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXCTR3(sub->swm->oport.map), v);
r                 659 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXACLKSEL0EX(sub->swm->iport.map),
r                 661 sound/soc/uniphier/aio-core.c 		regmap_write(r, IPORTMXEXNOE(sub->swm->iport.map),
r                 677 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 680 sound/soc/uniphier/aio-core.c 		regmap_write(r, OPORTMXPATH(sub->swm->oport.map),
r                 683 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXMASK(sub->swm->oport.map),
r                 694 sound/soc/uniphier/aio-core.c 			regmap_write(r, AOUTENCTR0, BIT(sub->swm->oport.map));
r                 696 sound/soc/uniphier/aio-core.c 			regmap_write(r, AOUTENCTR1, BIT(sub->swm->oport.map));
r                 698 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, IPORTMXMASK(sub->swm->iport.map),
r                 705 sound/soc/uniphier/aio-core.c 			regmap_update_bits(r,
r                 710 sound/soc/uniphier/aio-core.c 			regmap_update_bits(r,
r                 725 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 728 sound/soc/uniphier/aio-core.c 	regmap_read(r, OPORTMXTYVOLGAINSTATUS(sub->swm->oport.map, 0), &v);
r                 744 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 758 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, OPORTMXTYVOLPARA1(oport_map, 0),
r                 760 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, OPORTMXTYVOLPARA2(oport_map, 0),
r                 764 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYVOLPARA2(oport_map, 0),
r                 768 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, OPORTMXTYVOLPARA2(oport_map, 0),
r                 772 sound/soc/uniphier/aio-core.c 	regmap_write(r, AOUTFADECTR0, BIT(oport_map));
r                 788 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 812 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBOUTMXCTR0(sub->swm->oif.map), v);
r                 813 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBOUTMXCTR1(sub->swm->oif.map), 0);
r                 815 sound/soc/uniphier/aio-core.c 		regmap_write(r, PBINMXCTR(sub->swm->iif.map),
r                 839 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 883 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXREPET(sub->swm->oport.map), repet);
r                 884 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXPAUDAT(sub->swm->oport.map), pause);
r                 899 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 904 sound/soc/uniphier/aio-core.c 	regmap_write(r, AOUTSRCRSTCTR0, BIT(sub->swm->oport.map));
r                 905 sound/soc/uniphier/aio-core.c 	regmap_write(r, AOUTSRCRSTCTR1, BIT(sub->swm->oport.map));
r                 922 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 928 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXSRC1CTR(sub->swm->oport.map),
r                 954 sound/soc/uniphier/aio-core.c 	regmap_write(r, OPORTMXRATE_I(sub->swm->oport.map),
r                 957 sound/soc/uniphier/aio-core.c 	regmap_update_bits(r, OPORTMXRATE_I(sub->swm->oport.map),
r                 966 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 968 sound/soc/uniphier/aio-core.c 	regmap_write(r, PBINMXCTR(sub->swm->iif.map),
r                 980 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                 982 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->och.map),
r                 985 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->och.map),
r                 990 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->och.map),
r                1001 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1009 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_STRT0,
r                1015 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1018 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_CHMXCTRL1(sub->swm->ch.map),
r                1026 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXSRCAMODE(sub->swm->ch.map), v);
r                1028 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_CHMXDSTAMODE(sub->swm->ch.map), v);
r                1035 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1038 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_STRT0,
r                1041 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, INTRBIM(0),
r                1045 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_STRT0,
r                1048 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, INTRBIM(0),
r                1056 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1060 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RDPTRLOAD,
r                1064 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l);
r                1066 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &pos_l);
r                1067 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), &pos_u);
r                1075 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1079 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), (u32)pos);
r                1080 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRDPTRU(sub->swm->rb.map), (u32)(pos >> 32));
r                1081 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RDPTRLOAD, BIT(sub->swm->rb.map));
r                1084 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXRDPTR(sub->swm->rb.map), &tmp);
r                1089 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1093 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_WRPTRLOAD,
r                1097 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l);
r                1099 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &pos_l);
r                1100 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map), &pos_u);
r                1108 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1112 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXWRPTR(sub->swm->rb.map),
r                1114 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXWRPTRU(sub->swm->rb.map),
r                1116 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_WRPTRLOAD, BIT(sub->swm->rb.map));
r                1119 sound/soc/uniphier/aio-core.c 		regmap_read(r, CDA2D_RBMXWRPTR(sub->swm->rb.map), &tmp);
r                1124 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1129 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBTH(sub->swm->rb.map), th);
r                1130 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRTH(sub->swm->rb.map), th);
r                1138 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1145 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXCNFG(sub->swm->rb.map), 0);
r                1146 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBGNADRS(sub->swm->rb.map),
r                1148 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBGNADRSU(sub->swm->rb.map),
r                1150 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXENDADRS(sub->swm->rb.map),
r                1152 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXENDADRSU(sub->swm->rb.map),
r                1155 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBADRSLOAD, BIT(sub->swm->rb.map));
r                1165 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map),
r                1172 sound/soc/uniphier/aio-core.c 		regmap_update_bits(r, CDA2D_RBMXIE(sub->swm->rb.map),
r                1230 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1233 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXIR(sub->swm->rb.map), &ir);
r                1243 sound/soc/uniphier/aio-core.c 	struct regmap *r = sub->aio->chip->regmap;
r                1246 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map),
r                1249 sound/soc/uniphier/aio-core.c 		regmap_write(r, CDA2D_RBMXIR(sub->swm->rb.map),
r                 245 sound/sound_core.c 	int r;
r                 252 sound/sound_core.c 	r = __sound_insert_unit(s, list, fops, index, low, top);
r                 255 sound/sound_core.c 	if (r < 0)
r                 257 sound/sound_core.c 	else if (r < SOUND_STEP)
r                 260 sound/sound_core.c 		sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP);
r                 268 sound/sound_core.c 		r = __register_chrdev(SOUND_MAJOR, s->unit_minor, 1, s->name,
r                 270 sound/sound_core.c 		if (r < 0) {
r                 278 sound/sound_core.c 			r = -EBUSY;
r                 289 sound/sound_core.c 	return r;
r                  86 sound/sparc/amd7930.c 	__u16	r[8];
r                 843 sound/synth/emux/soundfont.c 	int r, p, t;
r                 844 sound/synth/emux/soundfont.c 	r = (3 - ((rate >> 6) & 3)) * 3;
r                 850 sound/synth/emux/soundfont.c 	if (13 > r)
r                 851 sound/synth/emux/soundfont.c 		t = t << (13 - r);
r                 853 sound/synth/emux/soundfont.c 		t = t >> (r - 13);
r                 181 sound/usb/format.c 		int r, idx;
r                 190 sound/usb/format.c 		for (r = 0, idx = offset + 1; r < nr_rates; r++, idx += 3) {
r                 239 sound/usb/usx2y/usb_stream.c 	bool r;
r                 246 sound/usb/usx2y/usb_stream.c 	r = sk->iso_frame_balance == 0;
r                 247 sound/usb/usx2y/usb_stream.c 	if (!r)
r                 249 sound/usb/usx2y/usb_stream.c 	return r;
r                 125 tools/accounting/getdelays.c 	int r, buflen;
r                 147 tools/accounting/getdelays.c 	while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *) &nladdr,
r                 149 tools/accounting/getdelays.c 		if (r > 0) {
r                 150 tools/accounting/getdelays.c 			buf += r;
r                 151 tools/accounting/getdelays.c 			buflen -= r;
r                 214 tools/arch/arm/include/uapi/asm/kvm.h #define KVM_REG_ARM_FW_REG(r)		(KVM_REG_ARM | KVM_REG_SIZE_U64 | \
r                 215 tools/arch/arm/include/uapi/asm/kvm.h 					 KVM_REG_ARM_FW | ((r) & 0xffff))
r                 229 tools/arch/arm64/include/uapi/asm/kvm.h #define KVM_REG_ARM_FW_REG(r)		(KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \
r                 230 tools/arch/arm64/include/uapi/asm/kvm.h 					 KVM_REG_ARM_FW | ((r) & 0xffff))
r                  21 tools/arch/x86/lib/insn.c 	({ t r = *(t*)insn->next_byte; insn->next_byte += sizeof(t); r; })
r                  24 tools/arch/x86/lib/insn.c 	({ t r = *(t*)((insn)->next_byte + n); r; })
r                 438 tools/bpf/bpf_dbg.c static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f)
r                 442 tools/bpf/bpf_dbg.c 	rl_printf("pc:       [%u]\n", r->Pc);
r                 446 tools/bpf/bpf_dbg.c 	bpf_disasm(*f, r->Pc);
r                 450 tools/bpf/bpf_dbg.c 		bpf_disasm(*(f + f->jt + 1), r->Pc + f->jt + 1);
r                 452 tools/bpf/bpf_dbg.c 		bpf_disasm(*(f + f->jf + 1), r->Pc + f->jf + 1);
r                 455 tools/bpf/bpf_dbg.c 	rl_printf("A:        [%#08x][%u]\n", r->A, r->A);
r                 456 tools/bpf/bpf_dbg.c 	rl_printf("X:        [%#08x][%u]\n", r->X, r->X);
r                 457 tools/bpf/bpf_dbg.c 	if (r->Rs)
r                 458 tools/bpf/bpf_dbg.c 		rl_printf("ret:      [%#08x][%u]!\n", r->R, r->R);
r                 461 tools/bpf/bpf_dbg.c 		if (r->M[i]) {
r                 463 tools/bpf/bpf_dbg.c 			rl_printf("M[%d]: [%#08x][%u]\n", i, r->M[i], r->M[i]);
r                 605 tools/bpf/bpf_dbg.c 	uint32_t r;
r                 607 tools/bpf/bpf_dbg.c 	memcpy(&r, &pkt[off], sizeof(r));
r                 609 tools/bpf/bpf_dbg.c 	return ntohl(r);
r                 614 tools/bpf/bpf_dbg.c 	uint16_t r;
r                 616 tools/bpf/bpf_dbg.c 	memcpy(&r, &pkt[off], sizeof(r));
r                 618 tools/bpf/bpf_dbg.c 	return ntohs(r);
r                 626 tools/bpf/bpf_dbg.c static void set_return(struct bpf_regs *r)
r                 628 tools/bpf/bpf_dbg.c 	r->R = 0;
r                 629 tools/bpf/bpf_dbg.c 	r->Rs = true;
r                 632 tools/bpf/bpf_dbg.c static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f,
r                 641 tools/bpf/bpf_dbg.c 		r->R = K;
r                 642 tools/bpf/bpf_dbg.c 		r->Rs = true;
r                 645 tools/bpf/bpf_dbg.c 		r->R = r->A;
r                 646 tools/bpf/bpf_dbg.c 		r->Rs = true;
r                 649 tools/bpf/bpf_dbg.c 		r->R = r->X;
r                 650 tools/bpf/bpf_dbg.c 		r->Rs = true;
r                 653 tools/bpf/bpf_dbg.c 		r->X = r->A;
r                 656 tools/bpf/bpf_dbg.c 		r->A = r->X;
r                 659 tools/bpf/bpf_dbg.c 		r->M[K] = r->A;
r                 662 tools/bpf/bpf_dbg.c 		r->M[K] = r->X;
r                 667 tools/bpf/bpf_dbg.c 			r->A = extract_u32(pkt, K);
r                 669 tools/bpf/bpf_dbg.c 			set_return(r);
r                 674 tools/bpf/bpf_dbg.c 			r->A = extract_u16(pkt, K);
r                 676 tools/bpf/bpf_dbg.c 			set_return(r);
r                 681 tools/bpf/bpf_dbg.c 			r->A = extract_u8(pkt, K);
r                 683 tools/bpf/bpf_dbg.c 			set_return(r);
r                 686 tools/bpf/bpf_dbg.c 		d = pkt_caplen - (r->X + K);
r                 688 tools/bpf/bpf_dbg.c 			r->A = extract_u32(pkt, r->X + K);
r                 691 tools/bpf/bpf_dbg.c 		d = pkt_caplen - (r->X + K);
r                 693 tools/bpf/bpf_dbg.c 			r->A = extract_u16(pkt, r->X + K);
r                 695 tools/bpf/bpf_dbg.c 			set_return(r);
r                 698 tools/bpf/bpf_dbg.c 		d = pkt_caplen - (r->X + K);
r                 700 tools/bpf/bpf_dbg.c 			r->A = extract_u8(pkt, r->X + K);
r                 702 tools/bpf/bpf_dbg.c 			set_return(r);
r                 707 tools/bpf/bpf_dbg.c 			r->X = extract_u8(pkt, K);
r                 708 tools/bpf/bpf_dbg.c 			r->X = (r->X & 0xf) << 2;
r                 710 tools/bpf/bpf_dbg.c 			set_return(r);
r                 713 tools/bpf/bpf_dbg.c 		r->A = pkt_len;
r                 716 tools/bpf/bpf_dbg.c 		r->A = pkt_len;
r                 719 tools/bpf/bpf_dbg.c 		r->A = K;
r                 722 tools/bpf/bpf_dbg.c 		r->X = K;
r                 725 tools/bpf/bpf_dbg.c 		r->A = r->M[K];
r                 728 tools/bpf/bpf_dbg.c 		r->X = r->M[K];
r                 731 tools/bpf/bpf_dbg.c 		r->Pc += K;
r                 734 tools/bpf/bpf_dbg.c 		r->Pc += r->A > r->X ? f->jt : f->jf;
r                 737 tools/bpf/bpf_dbg.c 		r->Pc += r->A > K ? f->jt : f->jf;
r                 740 tools/bpf/bpf_dbg.c 		r->Pc += r->A >= r->X ? f->jt : f->jf;
r                 743 tools/bpf/bpf_dbg.c 		r->Pc += r->A >= K ? f->jt : f->jf;
r                 746 tools/bpf/bpf_dbg.c 		r->Pc += r->A == r->X ? f->jt : f->jf;
r                 749 tools/bpf/bpf_dbg.c 		r->Pc += r->A == K ? f->jt : f->jf;
r                 752 tools/bpf/bpf_dbg.c 		r->Pc += r->A & r->X ? f->jt : f->jf;
r                 755 tools/bpf/bpf_dbg.c 		r->Pc += r->A & K ? f->jt : f->jf;
r                 758 tools/bpf/bpf_dbg.c 		r->A = -r->A;
r                 761 tools/bpf/bpf_dbg.c 		r->A <<= r->X;
r                 764 tools/bpf/bpf_dbg.c 		r->A <<= K;
r                 767 tools/bpf/bpf_dbg.c 		r->A >>= r->X;
r                 770 tools/bpf/bpf_dbg.c 		r->A >>= K;
r                 773 tools/bpf/bpf_dbg.c 		r->A += r->X;
r                 776 tools/bpf/bpf_dbg.c 		r->A += K;
r                 779 tools/bpf/bpf_dbg.c 		r->A -= r->X;
r                 782 tools/bpf/bpf_dbg.c 		r->A -= K;
r                 785 tools/bpf/bpf_dbg.c 		r->A *= r->X;
r                 788 tools/bpf/bpf_dbg.c 		r->A *= K;
r                 792 tools/bpf/bpf_dbg.c 		if (r->X == 0) {
r                 793 tools/bpf/bpf_dbg.c 			set_return(r);
r                 800 tools/bpf/bpf_dbg.c 			set_return(r);
r                 806 tools/bpf/bpf_dbg.c 			r->A /= r->X;
r                 809 tools/bpf/bpf_dbg.c 			r->A /= K;
r                 812 tools/bpf/bpf_dbg.c 			r->A %= r->X;
r                 815 tools/bpf/bpf_dbg.c 			r->A %= K;
r                 820 tools/bpf/bpf_dbg.c 		r->A &= r->X;
r                 823 tools/bpf/bpf_dbg.c 		r->A &= K;
r                 826 tools/bpf/bpf_dbg.c 		r->A |= r->X;
r                 829 tools/bpf/bpf_dbg.c 		r->A |= K;
r                 832 tools/bpf/bpf_dbg.c 		r->A ^= r->X;
r                 835 tools/bpf/bpf_dbg.c 		r->A ^= K;
r                 854 tools/bpf/bpf_dbg.c static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f,
r                 859 tools/bpf/bpf_dbg.c 	bpf_dump_curr(r, &f[r->Pc]);
r                  32 tools/iio/iio_utils.c 	char *w, *r;
r                  54 tools/iio/iio_utils.c 	r = working;
r                  56 tools/iio/iio_utils.c 	while (*r != '\0') {
r                  57 tools/iio/iio_utils.c 		if (!isdigit(*r)) {
r                  58 tools/iio/iio_utils.c 			*w = *r;
r                  62 tools/iio/iio_utils.c 		r++;
r                  15 tools/include/asm-generic/bitops/fls.h 	int r = 32;
r                  21 tools/include/asm-generic/bitops/fls.h 		r -= 16;
r                  25 tools/include/asm-generic/bitops/fls.h 		r -= 8;
r                  29 tools/include/asm-generic/bitops/fls.h 		r -= 4;
r                  33 tools/include/asm-generic/bitops/fls.h 		r -= 2;
r                  37 tools/include/asm-generic/bitops/fls.h 		r -= 1;
r                  39 tools/include/asm-generic/bitops/fls.h 	return r;
r                  34 tools/include/linux/rbtree.h #define rb_parent(r)   ((struct rb_node *)((r)->__rb_parent_color & ~3))
r                  58 tools/include/linux/refcount.h static inline void refcount_set(refcount_t *r, unsigned int n)
r                  60 tools/include/linux/refcount.h 	atomic_set(&r->refs, n);
r                  63 tools/include/linux/refcount.h static inline unsigned int refcount_read(const refcount_t *r)
r                  65 tools/include/linux/refcount.h 	return atomic_read(&r->refs);
r                  76 tools/include/linux/refcount.h bool refcount_inc_not_zero(refcount_t *r)
r                  78 tools/include/linux/refcount.h 	unsigned int old, new, val = atomic_read(&r->refs);
r                  89 tools/include/linux/refcount.h 		old = atomic_cmpxchg_relaxed(&r->refs, val, new);
r                 107 tools/include/linux/refcount.h static inline void refcount_inc(refcount_t *r)
r                 109 tools/include/linux/refcount.h 	REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n");
r                 121 tools/include/linux/refcount.h bool refcount_sub_and_test(unsigned int i, refcount_t *r)
r                 123 tools/include/linux/refcount.h 	unsigned int old, new, val = atomic_read(&r->refs);
r                 135 tools/include/linux/refcount.h 		old = atomic_cmpxchg_release(&r->refs, val, new);
r                 146 tools/include/linux/refcount.h bool refcount_dec_and_test(refcount_t *r)
r                 148 tools/include/linux/refcount.h 	return refcount_sub_and_test(1, r);
r                1654 tools/include/nolibc/nolibc.h 		fd_set *r, *w, *e;
r                1656 tools/include/nolibc/nolibc.h 	} arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout };
r                 178 tools/include/uapi/linux/if_link.h #define IFLA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
r                 651 tools/include/uapi/linux/pkt_sched.h 	__u32 r;
r                 148 tools/io_uring/io_uring-bench.c 	long r;
r                 168 tools/io_uring/io_uring-bench.c 	lrand48_r(&s->rand, &r);
r                 169 tools/io_uring/io_uring-bench.c 	offset = (r % (f->max_blocks - 1)) * BS;
r                 328 tools/io_uring/io_uring-bench.c 			int r;
r                 329 tools/io_uring/io_uring-bench.c 			r = reap_events(s);
r                 330 tools/io_uring/io_uring-bench.c 			if (r == -1) {
r                 333 tools/io_uring/io_uring-bench.c 			} else if (r > 0)
r                 334 tools/io_uring/io_uring-bench.c 				this_reap += r;
r                1453 tools/lib/bpf/btf.c 	int i, j, r, rec_size;
r                1458 tools/lib/bpf/btf.c 		r = fn(&t->name_off, ctx);
r                1459 tools/lib/bpf/btf.c 		if (r)
r                1460 tools/lib/bpf/btf.c 			return r;
r                1469 tools/lib/bpf/btf.c 				r = fn(&m->name_off, ctx);
r                1470 tools/lib/bpf/btf.c 				if (r)
r                1471 tools/lib/bpf/btf.c 					return r;
r                1481 tools/lib/bpf/btf.c 				r = fn(&m->name_off, ctx);
r                1482 tools/lib/bpf/btf.c 				if (r)
r                1483 tools/lib/bpf/btf.c 					return r;
r                1493 tools/lib/bpf/btf.c 				r = fn(&m->name_off, ctx);
r                1494 tools/lib/bpf/btf.c 				if (r)
r                1495 tools/lib/bpf/btf.c 					return r;
r                1517 tools/lib/bpf/btf.c 		r = fn(&sec->sec_name_off, ctx);
r                1518 tools/lib/bpf/btf.c 		if (r)
r                1519 tools/lib/bpf/btf.c 			return r;
r                1524 tools/lib/bpf/btf.c 			r = fn(&line_info->file_name_off, ctx);
r                1525 tools/lib/bpf/btf.c 			if (r)
r                1526 tools/lib/bpf/btf.c 				return r;
r                1527 tools/lib/bpf/btf.c 			r = fn(&line_info->line_off, ctx);
r                1528 tools/lib/bpf/btf.c 			if (r)
r                1529 tools/lib/bpf/btf.c 				return r;
r                2762 tools/lib/bpf/btf.c 	int i, r;
r                2777 tools/lib/bpf/btf.c 		r = btf_dedup_remap_type_id(d, t->type);
r                2778 tools/lib/bpf/btf.c 		if (r < 0)
r                2779 tools/lib/bpf/btf.c 			return r;
r                2780 tools/lib/bpf/btf.c 		t->type = r;
r                2786 tools/lib/bpf/btf.c 		r = btf_dedup_remap_type_id(d, arr_info->type);
r                2787 tools/lib/bpf/btf.c 		if (r < 0)
r                2788 tools/lib/bpf/btf.c 			return r;
r                2789 tools/lib/bpf/btf.c 		arr_info->type = r;
r                2790 tools/lib/bpf/btf.c 		r = btf_dedup_remap_type_id(d, arr_info->index_type);
r                2791 tools/lib/bpf/btf.c 		if (r < 0)
r                2792 tools/lib/bpf/btf.c 			return r;
r                2793 tools/lib/bpf/btf.c 		arr_info->index_type = r;
r                2803 tools/lib/bpf/btf.c 			r = btf_dedup_remap_type_id(d, member->type);
r                2804 tools/lib/bpf/btf.c 			if (r < 0)
r                2805 tools/lib/bpf/btf.c 				return r;
r                2806 tools/lib/bpf/btf.c 			member->type = r;
r                2816 tools/lib/bpf/btf.c 		r = btf_dedup_remap_type_id(d, t->type);
r                2817 tools/lib/bpf/btf.c 		if (r < 0)
r                2818 tools/lib/bpf/btf.c 			return r;
r                2819 tools/lib/bpf/btf.c 		t->type = r;
r                2822 tools/lib/bpf/btf.c 			r = btf_dedup_remap_type_id(d, param->type);
r                2823 tools/lib/bpf/btf.c 			if (r < 0)
r                2824 tools/lib/bpf/btf.c 				return r;
r                2825 tools/lib/bpf/btf.c 			param->type = r;
r                2836 tools/lib/bpf/btf.c 			r = btf_dedup_remap_type_id(d, var->type);
r                2837 tools/lib/bpf/btf.c 			if (r < 0)
r                2838 tools/lib/bpf/btf.c 				return r;
r                2839 tools/lib/bpf/btf.c 			var->type = r;
r                2854 tools/lib/bpf/btf.c 	int i, r;
r                2857 tools/lib/bpf/btf.c 		r = btf_dedup_remap_type(d, i);
r                2858 tools/lib/bpf/btf.c 		if (r < 0)
r                2859 tools/lib/bpf/btf.c 			return r;
r                  80 tools/lib/bpf/xsk.h static inline int xsk_ring_prod__needs_wakeup(const struct xsk_ring_prod *r)
r                  82 tools/lib/bpf/xsk.h 	return *r->flags & XDP_RING_NEED_WAKEUP;
r                  85 tools/lib/bpf/xsk.h static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb)
r                  87 tools/lib/bpf/xsk.h 	__u32 free_entries = r->cached_cons - r->cached_prod;
r                  99 tools/lib/bpf/xsk.h 	r->cached_cons = *r->consumer + r->size;
r                 101 tools/lib/bpf/xsk.h 	return r->cached_cons - r->cached_prod;
r                 104 tools/lib/bpf/xsk.h static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb)
r                 106 tools/lib/bpf/xsk.h 	__u32 entries = r->cached_prod - r->cached_cons;
r                 109 tools/lib/bpf/xsk.h 		r->cached_prod = *r->producer;
r                 110 tools/lib/bpf/xsk.h 		entries = r->cached_prod - r->cached_cons;
r                 223 tools/lib/lockdep/preload.c 	int r;
r                 237 tools/lib/lockdep/preload.c 	r = ll_pthread_mutex_init(mutex, attr);
r                 238 tools/lib/lockdep/preload.c 	if (r == 0)
r                 246 tools/lib/lockdep/preload.c 	return r;
r                 251 tools/lib/lockdep/preload.c 	int r;
r                 271 tools/lib/lockdep/preload.c 	r = ll_pthread_mutex_lock(mutex);
r                 272 tools/lib/lockdep/preload.c 	if (r)
r                 275 tools/lib/lockdep/preload.c 	return r;
r                 280 tools/lib/lockdep/preload.c 	int r;
r                 285 tools/lib/lockdep/preload.c 	r = ll_pthread_mutex_trylock(mutex);
r                 286 tools/lib/lockdep/preload.c 	if (r)
r                 289 tools/lib/lockdep/preload.c 	return r;
r                 294 tools/lib/lockdep/preload.c 	int r;
r                 304 tools/lib/lockdep/preload.c 	r = ll_pthread_mutex_unlock(mutex);
r                 305 tools/lib/lockdep/preload.c 	if (r)
r                 308 tools/lib/lockdep/preload.c 	return r;
r                 329 tools/lib/lockdep/preload.c 	int r;
r                 333 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_init(rwlock, attr);
r                 334 tools/lib/lockdep/preload.c 	if (r == 0)
r                 337 tools/lib/lockdep/preload.c 	return r;
r                 351 tools/lib/lockdep/preload.c 	int r;
r                 356 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_rdlock(rwlock);
r                 357 tools/lib/lockdep/preload.c 	if (r)
r                 360 tools/lib/lockdep/preload.c 	return r;
r                 365 tools/lib/lockdep/preload.c 	int r;
r                 370 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_tryrdlock(rwlock);
r                 371 tools/lib/lockdep/preload.c 	if (r)
r                 374 tools/lib/lockdep/preload.c 	return r;
r                 379 tools/lib/lockdep/preload.c 	int r;
r                 384 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_trywrlock(rwlock);
r                 385 tools/lib/lockdep/preload.c 	if (r)
r                 388 tools/lib/lockdep/preload.c 	return r;
r                 393 tools/lib/lockdep/preload.c 	int r;
r                 398 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_wrlock(rwlock);
r                 399 tools/lib/lockdep/preload.c 	if (r)
r                 402 tools/lib/lockdep/preload.c 	return r;
r                 407 tools/lib/lockdep/preload.c 	int r;
r                 412 tools/lib/lockdep/preload.c 	r = ll_pthread_rwlock_unlock(rwlock);
r                 413 tools/lib/lockdep/preload.c 	if (r)
r                 416 tools/lib/lockdep/preload.c 	return r;
r                  17 tools/perf/arch/arm/util/dwarf-regs.c #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num}
r                  19 tools/perf/arch/arm/util/dwarf-regs.c 	{.name = __stringify(%r##num), .dwarfnum = num}
r                  13 tools/perf/arch/arm/util/unwind-libdw.c #define REG(r) ({						\
r                  15 tools/perf/arch/arm/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_ARM_##r);	\
r                  20 tools/perf/arch/arm64/util/dwarf-regs.c #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num}
r                  13 tools/perf/arch/arm64/util/unwind-libdw.c #define REG(r) ({						\
r                  15 tools/perf/arch/arm64/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_ARM64_##r);	\
r                  15 tools/perf/arch/csky/util/unwind-libdw.c #define REG(r) ({						\
r                  17 tools/perf/arch/csky/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_CSKY_##r);	\
r                  22 tools/perf/arch/powerpc/util/dwarf-regs.c #define REG_DWARFNUM_NAME(r, num)					\
r                  23 tools/perf/arch/powerpc/util/dwarf-regs.c 		{.name = __stringify(%)__stringify(r), .dwarfnum = num,			\
r                  24 tools/perf/arch/powerpc/util/dwarf-regs.c 		.ptregs_offset = offsetof(struct pt_regs, r)}
r                  22 tools/perf/arch/powerpc/util/unwind-libdw.c #define REG(r) ({						\
r                  24 tools/perf/arch/powerpc/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_POWERPC_##r);	\
r                  17 tools/perf/arch/riscv/util/dwarf-regs.c #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num}
r                  15 tools/perf/arch/riscv/util/unwind-libdw.c #define REG(r) ({						\
r                  17 tools/perf/arch/riscv/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_RISCV_##r);	\
r                  15 tools/perf/arch/s390/util/unwind-libdw.c #define REG(r) ({						\
r                  17 tools/perf/arch/s390/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_S390_##r);	\
r                  45 tools/perf/arch/x86/util/dwarf-regs.c # define REG_OFFSET_NAME_64(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)}
r                  46 tools/perf/arch/x86/util/dwarf-regs.c # define REG_OFFSET_NAME_32(n, r) {.name = n, .offset = -1}
r                  48 tools/perf/arch/x86/util/dwarf-regs.c # define REG_OFFSET_NAME_64(n, r) {.name = n, .offset = -1}
r                  49 tools/perf/arch/x86/util/dwarf-regs.c # define REG_OFFSET_NAME_32(n, r) {.name = n, .offset = offsetof(struct pt_regs, r)}
r                  14 tools/perf/arch/x86/util/unwind-libdw.c #define REG(r) ({						\
r                  16 tools/perf/arch/x86/util/unwind-libdw.c 	perf_reg_value(&val, user_regs, PERF_REG_X86_##r);	\
r                 186 tools/perf/bench/epoll-wait.c 	int fd, ret, r;
r                 217 tools/perf/bench/epoll-wait.c 			r = read(fd, &val, sizeof(val));
r                 218 tools/perf/bench/epoll-wait.c 		} while (!done && (r < 0 && errno == EAGAIN));
r                 112 tools/perf/bench/mem-functions.c 	u64 (*do_cycles)(const struct function *r, size_t size, void *src, void *dst);
r                 113 tools/perf/bench/mem-functions.c 	double (*do_gettimeofday)(const struct function *r, size_t size, void *src, void *dst);
r                 120 tools/perf/bench/mem-functions.c 	const struct function *r = &info->functions[r_idx];
r                 125 tools/perf/bench/mem-functions.c 	printf("# function '%s' (%s)\n", r->name, r->desc);
r                 140 tools/perf/bench/mem-functions.c 		result_cycles = info->do_cycles(r, size, src, dst);
r                 142 tools/perf/bench/mem-functions.c 		result_bps = info->do_gettimeofday(r, size, src, dst);
r                 226 tools/perf/bench/mem-functions.c static u64 do_memcpy_cycles(const struct function *r, size_t size, void *src, void *dst)
r                 229 tools/perf/bench/mem-functions.c 	memcpy_t fn = r->fn.memcpy;
r                 249 tools/perf/bench/mem-functions.c static double do_memcpy_gettimeofday(const struct function *r, size_t size, void *src, void *dst)
r                 252 tools/perf/bench/mem-functions.c 	memcpy_t fn = r->fn.memcpy;
r                 303 tools/perf/bench/mem-functions.c static u64 do_memset_cycles(const struct function *r, size_t size, void *src __maybe_unused, void *dst)
r                 306 tools/perf/bench/mem-functions.c 	memset_t fn = r->fn.memset;
r                 323 tools/perf/bench/mem-functions.c static double do_memset_gettimeofday(const struct function *r, size_t size, void *src __maybe_unused, void *dst)
r                 326 tools/perf/bench/mem-functions.c 	memset_t fn = r->fn.memset;
r                 547 tools/perf/builtin-c2c.c 	uint64_t l = 0, r = 0;
r                 552 tools/perf/builtin-c2c.c 		r = cl_offset(right->mem_info->daddr.addr);
r                 554 tools/perf/builtin-c2c.c 	return (int64_t)(r - l);
r                 573 tools/perf/builtin-diff.c 	s64 l, r;
r                 579 tools/perf/builtin-diff.c 	r = llabs(right->diff.cycles);
r                 580 tools/perf/builtin-diff.c 	return r - l;
r                 789 tools/perf/builtin-diff.c static int64_t cmp_doubles(double l, double r)
r                 791 tools/perf/builtin-diff.c 	if (l > r)
r                 793 tools/perf/builtin-diff.c 	else if (l < r)
r                 807 tools/perf/builtin-diff.c 		double r = right->diff.period_ratio_delta;
r                 809 tools/perf/builtin-diff.c 		return cmp_doubles(l, r);
r                 814 tools/perf/builtin-diff.c 		double r = fabs(right->diff.period_ratio_delta);
r                 816 tools/perf/builtin-diff.c 		return cmp_doubles(l, r);
r                 821 tools/perf/builtin-diff.c 		double r = right->diff.period_ratio;
r                 823 tools/perf/builtin-diff.c 		return cmp_doubles(l, r);
r                 828 tools/perf/builtin-diff.c 		s64 r = right->diff.wdiff;
r                 830 tools/perf/builtin-diff.c 		return r - l;
r                1417 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1419 tools/perf/builtin-kmem.c 	if (l->ptr < r->ptr)
r                1421 tools/perf/builtin-kmem.c 	else if (l->ptr > r->ptr)
r                1434 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1436 tools/perf/builtin-kmem.c 	if (l->call_site < r->call_site)
r                1438 tools/perf/builtin-kmem.c 	else if (l->call_site > r->call_site)
r                1451 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1453 tools/perf/builtin-kmem.c 	if (l->hit < r->hit)
r                1455 tools/perf/builtin-kmem.c 	else if (l->hit > r->hit)
r                1468 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1470 tools/perf/builtin-kmem.c 	if (l->bytes_alloc < r->bytes_alloc)
r                1472 tools/perf/builtin-kmem.c 	else if (l->bytes_alloc > r->bytes_alloc)
r                1486 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1489 tools/perf/builtin-kmem.c 	y = fragmentation(r->bytes_req, r->bytes_alloc);
r                1506 tools/perf/builtin-kmem.c 	struct alloc_stat *r = b;
r                1508 tools/perf/builtin-kmem.c 	if (l->pingpong < r->pingpong)
r                1510 tools/perf/builtin-kmem.c 	else if (l->pingpong > r->pingpong)
r                1524 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1526 tools/perf/builtin-kmem.c 	if (l->page < r->page)
r                1528 tools/perf/builtin-kmem.c 	else if (l->page > r->page)
r                1541 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1543 tools/perf/builtin-kmem.c 	if (l->callsite < r->callsite)
r                1545 tools/perf/builtin-kmem.c 	else if (l->callsite > r->callsite)
r                1558 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1560 tools/perf/builtin-kmem.c 	if (l->nr_alloc < r->nr_alloc)
r                1562 tools/perf/builtin-kmem.c 	else if (l->nr_alloc > r->nr_alloc)
r                1575 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1577 tools/perf/builtin-kmem.c 	if (l->alloc_bytes < r->alloc_bytes)
r                1579 tools/perf/builtin-kmem.c 	else if (l->alloc_bytes > r->alloc_bytes)
r                1592 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1594 tools/perf/builtin-kmem.c 	if (l->order < r->order)
r                1596 tools/perf/builtin-kmem.c 	else if (l->order > r->order)
r                1609 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1615 tools/perf/builtin-kmem.c 	if (l->migrate_type < r->migrate_type)
r                1617 tools/perf/builtin-kmem.c 	else if (l->migrate_type > r->migrate_type)
r                1630 tools/perf/builtin-kmem.c 	struct page_stat *r = b;
r                1636 tools/perf/builtin-kmem.c 	if (l->gfp_flags < r->gfp_flags)
r                1638 tools/perf/builtin-kmem.c 	else if (l->gfp_flags > r->gfp_flags)
r                 916 tools/perf/builtin-sched.c 	struct thread_runtime *r;
r                 918 tools/perf/builtin-sched.c 	r = zalloc(sizeof(struct thread_runtime));
r                 919 tools/perf/builtin-sched.c 	if (!r)
r                 922 tools/perf/builtin-sched.c 	init_stats(&r->run_stats);
r                 923 tools/perf/builtin-sched.c 	thread__set_priv(thread, r);
r                 925 tools/perf/builtin-sched.c 	return r;
r                 943 tools/perf/builtin-sched.c thread_lat_cmp(struct list_head *list, struct work_atoms *l, struct work_atoms *r)
r                 951 tools/perf/builtin-sched.c 		ret = sort->cmp(l, r);
r                1353 tools/perf/builtin-sched.c static int pid_cmp(struct work_atoms *l, struct work_atoms *r)
r                1355 tools/perf/builtin-sched.c 	if (l->thread == r->thread)
r                1357 tools/perf/builtin-sched.c 	if (l->thread->tid < r->thread->tid)
r                1359 tools/perf/builtin-sched.c 	if (l->thread->tid > r->thread->tid)
r                1361 tools/perf/builtin-sched.c 	return (int)(l->thread - r->thread);
r                1364 tools/perf/builtin-sched.c static int avg_cmp(struct work_atoms *l, struct work_atoms *r)
r                1371 tools/perf/builtin-sched.c 	if (!r->nb_atoms)
r                1375 tools/perf/builtin-sched.c 	avgr = r->total_lat / r->nb_atoms;
r                1385 tools/perf/builtin-sched.c static int max_cmp(struct work_atoms *l, struct work_atoms *r)
r                1387 tools/perf/builtin-sched.c 	if (l->max_lat < r->max_lat)
r                1389 tools/perf/builtin-sched.c 	if (l->max_lat > r->max_lat)
r                1395 tools/perf/builtin-sched.c static int switch_cmp(struct work_atoms *l, struct work_atoms *r)
r                1397 tools/perf/builtin-sched.c 	if (l->nb_atoms < r->nb_atoms)
r                1399 tools/perf/builtin-sched.c 	if (l->nb_atoms > r->nb_atoms)
r                1405 tools/perf/builtin-sched.c static int runtime_cmp(struct work_atoms *l, struct work_atoms *r)
r                1407 tools/perf/builtin-sched.c 	if (l->total_runtime < r->total_runtime)
r                1409 tools/perf/builtin-sched.c 	if (l->total_runtime > r->total_runtime)
r                1850 tools/perf/builtin-sched.c 	struct evsel_runtime *r = evsel->priv;
r                1852 tools/perf/builtin-sched.c 	if (r == NULL) {
r                1853 tools/perf/builtin-sched.c 		r = zalloc(sizeof(struct evsel_runtime));
r                1854 tools/perf/builtin-sched.c 		evsel->priv = r;
r                1857 tools/perf/builtin-sched.c 	return r;
r                1866 tools/perf/builtin-sched.c 	struct evsel_runtime *r = perf_evsel__get_runtime(evsel);
r                1868 tools/perf/builtin-sched.c 	if (r == NULL)
r                1871 tools/perf/builtin-sched.c 	if ((cpu >= r->ncpu) || (r->last_time == NULL)) {
r                1873 tools/perf/builtin-sched.c 		void *p = r->last_time;
r                1875 tools/perf/builtin-sched.c 		p = realloc(r->last_time, n * sizeof(u64));
r                1879 tools/perf/builtin-sched.c 		r->last_time = p;
r                1880 tools/perf/builtin-sched.c 		for (i = r->ncpu; i < n; ++i)
r                1881 tools/perf/builtin-sched.c 			r->last_time[i] = (u64) 0;
r                1883 tools/perf/builtin-sched.c 		r->ncpu = n;
r                1886 tools/perf/builtin-sched.c 	r->last_time[cpu] = timestamp;
r                1892 tools/perf/builtin-sched.c 	struct evsel_runtime *r = perf_evsel__get_runtime(evsel);
r                1894 tools/perf/builtin-sched.c 	if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu))
r                1897 tools/perf/builtin-sched.c 	return r->last_time[cpu];
r                2088 tools/perf/builtin-sched.c static void timehist_update_runtime_stats(struct thread_runtime *r,
r                2091 tools/perf/builtin-sched.c 	r->dt_delay   = 0;
r                2092 tools/perf/builtin-sched.c 	r->dt_sleep   = 0;
r                2093 tools/perf/builtin-sched.c 	r->dt_iowait  = 0;
r                2094 tools/perf/builtin-sched.c 	r->dt_preempt = 0;
r                2095 tools/perf/builtin-sched.c 	r->dt_run     = 0;
r                2098 tools/perf/builtin-sched.c 		r->dt_run = t - tprev;
r                2099 tools/perf/builtin-sched.c 		if (r->ready_to_run) {
r                2100 tools/perf/builtin-sched.c 			if (r->ready_to_run > tprev)
r                2103 tools/perf/builtin-sched.c 				r->dt_delay = tprev - r->ready_to_run;
r                2106 tools/perf/builtin-sched.c 		if (r->last_time > tprev)
r                2108 tools/perf/builtin-sched.c 		else if (r->last_time) {
r                2109 tools/perf/builtin-sched.c 			u64 dt_wait = tprev - r->last_time;
r                2111 tools/perf/builtin-sched.c 			if (r->last_state == TASK_RUNNING)
r                2112 tools/perf/builtin-sched.c 				r->dt_preempt = dt_wait;
r                2113 tools/perf/builtin-sched.c 			else if (r->last_state == TASK_UNINTERRUPTIBLE)
r                2114 tools/perf/builtin-sched.c 				r->dt_iowait = dt_wait;
r                2116 tools/perf/builtin-sched.c 				r->dt_sleep = dt_wait;
r                2120 tools/perf/builtin-sched.c 	update_stats(&r->run_stats, r->dt_run);
r                2122 tools/perf/builtin-sched.c 	r->total_run_time     += r->dt_run;
r                2123 tools/perf/builtin-sched.c 	r->total_delay_time   += r->dt_delay;
r                2124 tools/perf/builtin-sched.c 	r->total_sleep_time   += r->dt_sleep;
r                2125 tools/perf/builtin-sched.c 	r->total_iowait_time  += r->dt_iowait;
r                2126 tools/perf/builtin-sched.c 	r->total_preempt_time += r->dt_preempt;
r                2659 tools/perf/builtin-sched.c 				 struct thread_runtime *r)
r                2661 tools/perf/builtin-sched.c 	double mean = avg_stats(&r->run_stats);
r                2666 tools/perf/builtin-sched.c 	       (u64) r->run_stats.n);
r                2668 tools/perf/builtin-sched.c 	print_sched_time(r->total_run_time, 8);
r                2669 tools/perf/builtin-sched.c 	stddev = rel_stddev_stats(stddev_stats(&r->run_stats), mean);
r                2670 tools/perf/builtin-sched.c 	print_sched_time(r->run_stats.min, 6);
r                2674 tools/perf/builtin-sched.c 	print_sched_time(r->run_stats.max, 6);
r                2677 tools/perf/builtin-sched.c 	printf("   %5" PRIu64, r->migrations);
r                2682 tools/perf/builtin-sched.c 				  struct thread_runtime *r)
r                2686 tools/perf/builtin-sched.c 	       (u64) r->run_stats.n);
r                2688 tools/perf/builtin-sched.c 	print_sched_time(r->total_run_time, 8);
r                2689 tools/perf/builtin-sched.c 	print_sched_time(r->total_sleep_time, 6);
r                2691 tools/perf/builtin-sched.c 	print_sched_time(r->total_iowait_time, 6);
r                2693 tools/perf/builtin-sched.c 	print_sched_time(r->total_preempt_time, 6);
r                2695 tools/perf/builtin-sched.c 	print_sched_time(r->total_delay_time, 6);
r                2709 tools/perf/builtin-sched.c 	struct thread_runtime *r;
r                2714 tools/perf/builtin-sched.c 	r = thread__priv(t);
r                2715 tools/perf/builtin-sched.c 	if (r && r->run_stats.n) {
r                2717 tools/perf/builtin-sched.c 		stats->sched_count += r->run_stats.n;
r                2718 tools/perf/builtin-sched.c 		stats->total_run_time += r->total_run_time;
r                2721 tools/perf/builtin-sched.c 			print_thread_waittime(t, r);
r                2723 tools/perf/builtin-sched.c 			print_thread_runtime(t, r);
r                2806 tools/perf/builtin-sched.c 	struct thread_runtime *r;
r                2851 tools/perf/builtin-sched.c 		r = thread__priv(t);
r                2852 tools/perf/builtin-sched.c 		if (r && r->run_stats.n) {
r                2853 tools/perf/builtin-sched.c 			totals.sched_count += r->run_stats.n;
r                2855 tools/perf/builtin-sched.c 			print_sched_time(r->total_run_time, 6);
r                2856 tools/perf/builtin-sched.c 			printf(" msec  (%6.2f%%)\n", 100.0 * r->total_run_time / hist_time);
r                 592 tools/perf/builtin-script.c 	unsigned i = 0, r;
r                 600 tools/perf/builtin-script.c 	for_each_set_bit(r, (unsigned long *) &mask, sizeof(mask) * 8) {
r                 602 tools/perf/builtin-script.c 		printed += fprintf(fp, "%5s:0x%"PRIx64" ", perf_reg_name(r), val);
r                 191 tools/perf/builtin-stat.c static inline void diff_timespec(struct timespec *r, struct timespec *a,
r                 194 tools/perf/builtin-stat.c 	r->tv_sec = a->tv_sec - b->tv_sec;
r                 196 tools/perf/builtin-stat.c 		r->tv_nsec = a->tv_nsec + NSEC_PER_SEC - b->tv_nsec;
r                 197 tools/perf/builtin-stat.c 		r->tv_sec--;
r                 199 tools/perf/builtin-stat.c 		r->tv_nsec = a->tv_nsec - b->tv_nsec ;
r                 176 tools/perf/pmu-events/jsmn.c 	jsmnerr_t r;
r                 222 tools/perf/pmu-events/jsmn.c 			r = jsmn_parse_string(parser, js, len, tokens,
r                 224 tools/perf/pmu-events/jsmn.c 			if (r < 0)
r                 225 tools/perf/pmu-events/jsmn.c 				return r;
r                 263 tools/perf/pmu-events/jsmn.c 			r = jsmn_parse_primitive(parser, js, len, tokens,
r                 265 tools/perf/pmu-events/jsmn.c 			if (r < 0)
r                 266 tools/perf/pmu-events/jsmn.c 				return r;
r                  41 tools/perf/ui/browsers/res_sample.c 	struct res_sample *r;
r                  66 tools/perf/ui/browsers/res_sample.c 	r = &res_samples[choice];
r                  68 tools/perf/ui/browsers/res_sample.c 	n = timestamp__scnprintf_nsec(r->time - context_len, trange, sizeof trange);
r                  70 tools/perf/ui/browsers/res_sample.c 	timestamp__scnprintf_nsec(r->time + context_len, trange + n, sizeof trange - n);
r                  72 tools/perf/ui/browsers/res_sample.c 	timestamp__scnprintf_nsec(r->time, tsample, sizeof tsample);
r                  81 tools/perf/ui/browsers/res_sample.c 		     r->cpu >= 0 ? "--cpu " : "",
r                  82 tools/perf/ui/browsers/res_sample.c 		     r->cpu >= 0 ? (sprintf(cpubuf, "%d", r->cpu), cpubuf) : "",
r                  83 tools/perf/ui/browsers/res_sample.c 		     r->tid ? "--tid " : "",
r                  84 tools/perf/ui/browsers/res_sample.c 		     r->tid ? (sprintf(tidbuf, "%d", r->tid), tidbuf) : "",
r                  90 tools/perf/ui/browsers/res_sample.c 		     r->tid ? "--show-switch-events --show-task-events " : "",
r                  16 tools/perf/util/color.c 	int r = 0;
r                  29 tools/perf/util/color.c 		r += scnprintf(bf, size, "%s", color);
r                  30 tools/perf/util/color.c 	r += vscnprintf(bf + r, size - r, fmt, args);
r                  32 tools/perf/util/color.c 		r += scnprintf(bf + r, size - r, "%s", PERF_COLOR_RESET);
r                  34 tools/perf/util/color.c 		r += scnprintf(bf + r, size - r, "%s", trail);
r                  35 tools/perf/util/color.c 	return r;
r                  42 tools/perf/util/color.c 	int r = 0;
r                  56 tools/perf/util/color.c 	r += vfprintf(fp, fmt, args);
r                  59 tools/perf/util/color.c 	return r;
r                  77 tools/perf/util/color.c 	int r;
r                  80 tools/perf/util/color.c 	r = color_vsnprintf(bf, size, color, fmt, args);
r                  82 tools/perf/util/color.c 	return r;
r                  88 tools/perf/util/color.c 	int r;
r                  91 tools/perf/util/color.c 	r = color_vfprintf(fp, color, fmt, args);
r                  93 tools/perf/util/color.c 	return r;
r                 144 tools/perf/util/color.c 	int r;
r                 148 tools/perf/util/color.c 	r = color_fprintf(fp, color, fmt, percent);
r                 150 tools/perf/util/color.c 	return r;
r                 924 tools/perf/util/dso.c 	ssize_t r = 0;
r                 940 tools/perf/util/dso.c 		r      += ret;
r                 947 tools/perf/util/dso.c 	return r;
r                 398 tools/perf/util/evsel.c 	int colon = 0, r = 0;
r                 404 tools/perf/util/evsel.c 			if (!colon) colon = ++r;			\
r                 405 tools/perf/util/evsel.c 			r += scnprintf(bf + r, size - r, "%c", mod);	\
r                 417 tools/perf/util/evsel.c 			colon = ++r;
r                 418 tools/perf/util/evsel.c 		r += scnprintf(bf + r, size - r, "%.*s", attr->precise_ip, "ppp");
r                 429 tools/perf/util/evsel.c 	return r;
r                 434 tools/perf/util/evsel.c 	int r = scnprintf(bf, size, "%s", __perf_evsel__hw_name(evsel->core.attr.config));
r                 435 tools/perf/util/evsel.c 	return r + perf_evsel__add_modifiers(evsel, bf + r, size - r);
r                 460 tools/perf/util/evsel.c 	int r = scnprintf(bf, size, "%s", __perf_evsel__sw_name(evsel->core.attr.config));
r                 461 tools/perf/util/evsel.c 	return r + perf_evsel__add_modifiers(evsel, bf + r, size - r);
r                 466 tools/perf/util/evsel.c 	int r;
r                 468 tools/perf/util/evsel.c 	r = scnprintf(bf, size, "mem:0x%" PRIx64 ":", addr);
r                 471 tools/perf/util/evsel.c 		r += scnprintf(bf + r, size - r, "r");
r                 474 tools/perf/util/evsel.c 		r += scnprintf(bf + r, size - r, "w");
r                 477 tools/perf/util/evsel.c 		r += scnprintf(bf + r, size - r, "x");
r                 479 tools/perf/util/evsel.c 	return r;
r                 485 tools/perf/util/evsel.c 	int r = __perf_evsel__bp_name(bf, size, attr->bp_addr, attr->bp_type);
r                 486 tools/perf/util/evsel.c 	return r + perf_evsel__add_modifiers(evsel, bf + r, size - r);
r                 414 tools/perf/util/header.c 			char *r = p + 1;
r                 415 tools/perf/util/header.c 			char *q = skip_spaces(r);
r                 418 tools/perf/util/header.c 				while ((*r++ = *q++));
r                1279 tools/perf/util/header.c 		int r;
r                1285 tools/perf/util/header.c 		r = sscanf(ent->d_name, "node%u", &idx);
r                1286 tools/perf/util/header.c 		if (r != 1)
r                 650 tools/perf/util/hist.c 		unsigned r = random();
r                 651 tools/perf/util/hist.c 		if (r >= thresh)
r                 652 tools/perf/util/hist.c 			return r % high;
r                 658 tools/perf/util/hist.c 	struct res_sample *r;
r                 666 tools/perf/util/hist.c 	r = &he->res_samples[j];
r                 667 tools/perf/util/hist.c 	r->time = sample->time;
r                 668 tools/perf/util/hist.c 	r->cpu = sample->cpu;
r                 669 tools/perf/util/hist.c 	r->tid = sample->tid;
r                3009 tools/perf/util/intel-pt.c 		struct range *r = &pt->time_ranges[i];
r                3017 tools/perf/util/intel-pt.c 		r->start = ts ? intel_pt_tsc_start(ts, pt) : 0;
r                3018 tools/perf/util/intel-pt.c 		r->end   = te ? intel_pt_tsc_end(te, pt) : 0;
r                3023 tools/perf/util/intel-pt.c 			     i, r->start, r->end);
r                1859 tools/perf/util/parse-events.c 	struct perf_pmu_event_symbol p, *r;
r                1873 tools/perf/util/parse-events.c 	r = bsearch(&p, perf_pmu_events_list,
r                1877 tools/perf/util/parse-events.c 	return r ? r->type : PMU_EVENT_SYMBOL_ERR;
r                  16 tools/perf/util/parse-regs-options.c 	const struct sample_reg *r;
r                  49 tools/perf/util/parse-regs-options.c 				for (r = sample_reg_masks; r->name; r++) {
r                  50 tools/perf/util/parse-regs-options.c 					if (r->mask & mask)
r                  51 tools/perf/util/parse-regs-options.c 						fprintf(stderr, "%s ", r->name);
r                  57 tools/perf/util/parse-regs-options.c 			for (r = sample_reg_masks; r->name; r++) {
r                  58 tools/perf/util/parse-regs-options.c 				if ((r->mask & mask) && !strcasecmp(s, r->name))
r                  61 tools/perf/util/parse-regs-options.c 			if (!r->name) {
r                  67 tools/perf/util/parse-regs-options.c 			*mode |= r->mask;
r                 690 tools/perf/util/scripting-engines/trace-event-python.c 	unsigned int i = 0, r;
r                 695 tools/perf/util/scripting-engines/trace-event-python.c 	for_each_set_bit(r, (unsigned long *) &mask, sizeof(mask) * 8) {
r                 700 tools/perf/util/scripting-engines/trace-event-python.c 				     perf_reg_name(r), val);
r                  79 tools/perf/util/sort.c static int64_t cmp_null(const void *l, const void *r)
r                  81 tools/perf/util/sort.c 	if (!l && !r)
r                1006 tools/perf/util/sort.c 	uint64_t l = 0, r = 0;
r                1011 tools/perf/util/sort.c 		r = right->mem_info->daddr.addr;
r                1013 tools/perf/util/sort.c 	return (int64_t)(r - l);
r                1035 tools/perf/util/sort.c 	uint64_t l = 0, r = 0;
r                1040 tools/perf/util/sort.c 		r = right->mem_info->iaddr.addr;
r                1042 tools/perf/util/sort.c 	return (int64_t)(r - l);
r                1201 tools/perf/util/sort.c 	u64 l, r;
r                1254 tools/perf/util/sort.c 	r = cl_address(right->mem_info->daddr.al_addr);
r                1256 tools/perf/util/sort.c 	if (l > r) return -1;
r                1257 tools/perf/util/sort.c 	if (l < r) return 1;
r                1399 tools/perf/util/sort.c 	uint64_t l = 0, r = 0;
r                1404 tools/perf/util/sort.c 		r = right->mem_info->daddr.phys_addr;
r                1406 tools/perf/util/sort.c 	return (int64_t)(r - l);
r                1938 tools/perf/util/sort.c 	int r;
r                1952 tools/perf/util/sort.c 		r = hse->se->se_filter(he, type, arg);
r                1953 tools/perf/util/sort.c 		if (r >= 0) {
r                1956 tools/perf/util/sort.c 			ret |= r;
r                  25 tools/perf/util/strfilter.c 		strfilter_node__delete(node->r);
r                  68 tools/perf/util/strfilter.c 						    struct strfilter_node *r)
r                  75 tools/perf/util/strfilter.c 		node->r = r;
r                  97 tools/perf/util/strfilter.c 			if (!cur->r || !last_op->r)
r                  99 tools/perf/util/strfilter.c 			cur = strfilter_node__alloc(OP_and, last_op->r, NULL);
r                 102 tools/perf/util/strfilter.c 			last_op->r = cur;
r                 106 tools/perf/util/strfilter.c 			if (!cur->r || !root.r)
r                 108 tools/perf/util/strfilter.c 			cur = strfilter_node__alloc(OP_or, root.r, NULL);
r                 111 tools/perf/util/strfilter.c 			root.r = cur;
r                 115 tools/perf/util/strfilter.c 			if (cur->r)
r                 117 tools/perf/util/strfilter.c 			cur->r = strfilter_node__alloc(OP_not, NULL, NULL);
r                 118 tools/perf/util/strfilter.c 			if (!cur->r)
r                 120 tools/perf/util/strfilter.c 			cur = cur->r;
r                 123 tools/perf/util/strfilter.c 			if (cur->r)
r                 125 tools/perf/util/strfilter.c 			cur->r = strfilter_node__new(s + 1, &s);
r                 128 tools/perf/util/strfilter.c 			if (!cur->r || *s != ')')
r                 133 tools/perf/util/strfilter.c 			if (cur->r)
r                 135 tools/perf/util/strfilter.c 			cur->r = strfilter_node__alloc(NULL, NULL, NULL);
r                 136 tools/perf/util/strfilter.c 			if (!cur->r)
r                 138 tools/perf/util/strfilter.c 			cur->r->p = strndup(s, e - s);
r                 139 tools/perf/util/strfilter.c 			if (!cur->r->p)
r                 144 tools/perf/util/strfilter.c 	if (!cur->r)
r                 147 tools/perf/util/strfilter.c 	return root.r;
r                 152 tools/perf/util/strfilter.c 	strfilter_node__delete(root.r);
r                 227 tools/perf/util/strfilter.c 			strfilter_node__compare(node->r, str);
r                 230 tools/perf/util/strfilter.c 			strfilter_node__compare(node->r, str);
r                 232 tools/perf/util/strfilter.c 		return !strfilter_node__compare(node->r, str);
r                 252 tools/perf/util/strfilter.c 	int pt = node->r ? 2 : 0;	/* don't need to check node->l */
r                 284 tools/perf/util/strfilter.c 		rlen = strfilter_node__sprint_pt(node->r, buf);
r                  12 tools/perf/util/strfilter.h 	struct strfilter_node *r;	/* Tree right branche (for !,&,|) */
r                1259 tools/perf/util/symbol-elf.c 	ssize_t r;
r                1278 tools/perf/util/symbol-elf.c 		r = read(from, buf, n);
r                1279 tools/perf/util/symbol-elf.c 		if (r < 0)
r                1281 tools/perf/util/symbol-elf.c 		if (!r)
r                1283 tools/perf/util/symbol-elf.c 		n = r;
r                1284 tools/perf/util/symbol-elf.c 		r = write(to, buf, n);
r                1285 tools/perf/util/symbol-elf.c 		if (r < 0)
r                1287 tools/perf/util/symbol-elf.c 		if ((size_t)r != n)
r                 907 tools/perf/util/symbol.c 		char *r = realpath(filename, NULL);
r                 909 tools/perf/util/symbol.c 		if (r != NULL) {
r                 910 tools/perf/util/symbol.c 			restricted = strcmp(r, restricted_filename) == 0;
r                 911 tools/perf/util/symbol.c 			free(r);
r                  19 tools/perf/util/top.c 	size_t r = snprintf(buf, size, fmt, ## args); \
r                  20 tools/perf/util/top.c 	r > size ?  size : r; \
r                  48 tools/perf/util/trace-event-info.c 	int r, fd;
r                  64 tools/perf/util/trace-event-info.c 		r = read(fd, buf, BUFSIZ);
r                  65 tools/perf/util/trace-event-info.c 		if (r > 0) {
r                  66 tools/perf/util/trace-event-info.c 			size += r;
r                  67 tools/perf/util/trace-event-info.c 			if (write(output_fd, buf, r) != r)
r                  70 tools/perf/util/trace-event-info.c 	} while (r > 0);
r                  54 tools/perf/util/trace-event-read.c 	int r;
r                  56 tools/perf/util/trace-event-read.c 	r = __do_read(input_fd, data, size);
r                  57 tools/perf/util/trace-event-read.c 	if (r <= 0) {
r                  59 tools/perf/util/trace-event-read.c 			 size, r);
r                  63 tools/perf/util/trace-event-read.c 	trace_data_size += r;
r                  65 tools/perf/util/trace-event-read.c 	return r;
r                  72 tools/perf/util/trace-event-read.c 	int r;
r                  75 tools/perf/util/trace-event-read.c 		r = size > BUFSIZ ? BUFSIZ : size;
r                  76 tools/perf/util/trace-event-read.c 		do_read(buf, r);
r                  77 tools/perf/util/trace-event-read.c 		size -= r;
r                 104 tools/perf/util/trace-event-read.c 	off_t r;
r                 108 tools/perf/util/trace-event-read.c 		r = read(input_fd, &c, 1);
r                 109 tools/perf/util/trace-event-read.c 		if (r < 0) {
r                 114 tools/perf/util/trace-event-read.c 		if (!r) {
r                 122 tools/perf/util/trace-event-read.c 			if (retw <= 0 || retw != r) {
r                 256 tools/perf/util/unwind-libunwind-local.c 	ssize_t r;
r                 258 tools/perf/util/unwind-libunwind-local.c 	r = dso__data_read_offset(dso, machine, offset,
r                 260 tools/perf/util/unwind-libunwind-local.c 	if (r != sizeof(hdr))
r                  17 tools/power/cpupower/debug/i386/intel_gsic.c 	struct LRMI_regs	r;
r                  23 tools/power/cpupower/debug/i386/intel_gsic.c 	memset(&r, 0, sizeof(r));
r                  25 tools/power/cpupower/debug/i386/intel_gsic.c 	r.eax = 0x0000E980;
r                  26 tools/power/cpupower/debug/i386/intel_gsic.c 	r.edx = 0x47534943;
r                  28 tools/power/cpupower/debug/i386/intel_gsic.c 	retval = LRMI_int(0x15, &r);
r                  34 tools/power/cpupower/debug/i386/intel_gsic.c 	if (r.eax == 0x47534943) {
r                  37 tools/power/cpupower/debug/i386/intel_gsic.c 		       (r.eax >> 24) & 0xff,
r                  38 tools/power/cpupower/debug/i386/intel_gsic.c 		       (r.eax >> 16) & 0xff,
r                  39 tools/power/cpupower/debug/i386/intel_gsic.c 		       (r.eax >> 8) & 0xff,
r                  40 tools/power/cpupower/debug/i386/intel_gsic.c 		       (r.eax) & 0xff);
r                  42 tools/power/cpupower/debug/i386/intel_gsic.c 		       r.ebx & 0xffff);
r                  44 tools/power/cpupower/debug/i386/intel_gsic.c 		       (r.ebx >> 16) & 0xffff);
r                  45 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("\tevent port =   0x%.8x\n", r.ecx);
r                  46 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("\tflags =        0x%.8x\n", r.edx);
r                  47 tools/power/cpupower/debug/i386/intel_gsic.c 		if (((r.ebx >> 16) & 0xffff) != 0x82) {
r                  54 tools/power/cpupower/debug/i386/intel_gsic.c 		if ((r.ebx & 0xffff) != 0xb2) {
r                  63 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("eax = 0x%.8x\n", r.eax);
r                  64 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("ebx = 0x%.8x\n", r.ebx);
r                  65 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("ecx = 0x%.8x\n", r.ecx);
r                  66 tools/power/cpupower/debug/i386/intel_gsic.c 		printf("edx = 0x%.8x\n", r.edx);
r                 203 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c 	} r[5];
r                  34 tools/testing/selftests/bpf/test_hashmap.c 	size_t r = 1;
r                  36 tools/testing/selftests/bpf/test_hashmap.c 	while (r < n)
r                  37 tools/testing/selftests/bpf/test_hashmap.c 		r <<= 1;
r                  38 tools/testing/selftests/bpf/test_hashmap.c 	return r;
r                  43 tools/testing/selftests/bpf/test_hashmap.c 	size_t r = next_pow_2(sz);
r                  45 tools/testing/selftests/bpf/test_hashmap.c 	if (sz * 4 / 3 > r)
r                  46 tools/testing/selftests/bpf/test_hashmap.c 		r <<= 1;
r                  47 tools/testing/selftests/bpf/test_hashmap.c 	return r;
r                 215 tools/testing/selftests/bpf/test_lpm_map.c 	int r, map;
r                 252 tools/testing/selftests/bpf/test_lpm_map.c 		r = bpf_map_update_elem(map, key, value, 0);
r                 253 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!r);
r                 264 tools/testing/selftests/bpf/test_lpm_map.c 		r = bpf_map_lookup_elem(map, key, value);
r                 265 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!r || errno == ENOENT);
r                 266 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!t == !!r);
r                 288 tools/testing/selftests/bpf/test_lpm_map.c 		r = bpf_map_delete_elem(map, key);
r                 289 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!r);
r                 301 tools/testing/selftests/bpf/test_lpm_map.c 		r = bpf_map_lookup_elem(map, key, value);
r                 302 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!r || errno == ENOENT);
r                 303 tools/testing/selftests/bpf/test_lpm_map.c 		assert(!t == !!r);
r                1200 tools/testing/selftests/bpf/test_sockmap.c 	int err, i, l, r;
r                1211 tools/testing/selftests/bpf/test_sockmap.c 	r = 1;
r                1214 tools/testing/selftests/bpf/test_sockmap.c 			opt.rate = r;
r                  91 tools/testing/selftests/bpf/xdping.c 	struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
r                 169 tools/testing/selftests/bpf/xdping.c 	if (setrlimit(RLIMIT_MEMLOCK, &r)) {
r                  66 tools/testing/selftests/ia64/aliasing-test.c 	int i, n, r, rc = 0, result = 0;
r                  99 tools/testing/selftests/ia64/aliasing-test.c 			r = lstat(path2, &buf);
r                 100 tools/testing/selftests/ia64/aliasing-test.c 			if (r == 0 && S_ISDIR(buf.st_mode)) {
r                 151 tools/testing/selftests/ia64/aliasing-test.c 	int i, n, r, rc = 0, result = 0;
r                 188 tools/testing/selftests/ia64/aliasing-test.c 			r = lstat(path2, &buf);
r                 189 tools/testing/selftests/ia64/aliasing-test.c 			if (r == 0 && S_ISDIR(buf.st_mode)) {
r                 860 tools/testing/selftests/kvm/lib/x86_64/processor.c 	int r;
r                 865 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_MSRS, &buffer.header);
r                 866 tools/testing/selftests/kvm/lib/x86_64/processor.c 	TEST_ASSERT(r == 1, "KVM_GET_MSRS IOCTL failed,\n"
r                 867 tools/testing/selftests/kvm/lib/x86_64/processor.c 		"  rc: %i errno: %i", r, errno);
r                 894 tools/testing/selftests/kvm/lib/x86_64/processor.c 	int r;
r                 901 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_MSRS, &buffer.header);
r                 902 tools/testing/selftests/kvm/lib/x86_64/processor.c 	TEST_ASSERT(r == 1, "KVM_SET_MSRS IOCTL failed,\n"
r                 903 tools/testing/selftests/kvm/lib/x86_64/processor.c 		"  rc: %i errno: %i", r, errno);
r                1006 tools/testing/selftests/kvm/lib/x86_64/processor.c 	int r;
r                1009 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs);
r                1010 tools/testing/selftests/kvm/lib/x86_64/processor.c 	TEST_ASSERT(r == -1 && errno == E2BIG, "Unexpected result from KVM_GET_MSR_INDEX_LIST probe, r: %i",
r                1011 tools/testing/selftests/kvm/lib/x86_64/processor.c 		r);
r                1021 tools/testing/selftests/kvm/lib/x86_64/processor.c 	int nmsrs, r, i;
r                1042 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, list);
r                1043 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_MSR_INDEX_LIST, r: %i",
r                1044 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1047 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_VCPU_EVENTS, &state->events);
r                1048 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_VCPU_EVENTS, r: %i",
r                1049 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1051 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_MP_STATE, &state->mp_state);
r                1052 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_MP_STATE, r: %i",
r                1053 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1055 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_REGS, &state->regs);
r                1056 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_REGS, r: %i",
r                1057 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1059 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_XSAVE, &state->xsave);
r                1060 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_XSAVE, r: %i",
r                1061 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1064 tools/testing/selftests/kvm/lib/x86_64/processor.c 		r = ioctl(vcpu->fd, KVM_GET_XCRS, &state->xcrs);
r                1065 tools/testing/selftests/kvm/lib/x86_64/processor.c 		TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_XCRS, r: %i",
r                1066 tools/testing/selftests/kvm/lib/x86_64/processor.c 			    r);
r                1069 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_SREGS, &state->sregs);
r                1070 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_SREGS, r: %i",
r                1071 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1075 tools/testing/selftests/kvm/lib/x86_64/processor.c 		r = ioctl(vcpu->fd, KVM_GET_NESTED_STATE, &state->nested);
r                1076 tools/testing/selftests/kvm/lib/x86_64/processor.c 		TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_NESTED_STATE, r: %i",
r                1077 tools/testing/selftests/kvm/lib/x86_64/processor.c 			r);
r                1087 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_MSRS, &state->msrs);
r                1088 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == nmsrs, "Unexpected result from KVM_GET_MSRS, r: %i (failed MSR was 0x%x)",
r                1089 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r, r == nmsrs ? -1 : list->indices[r]);
r                1091 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_GET_DEBUGREGS, &state->debugregs);
r                1092 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_GET_DEBUGREGS, r: %i",
r                1093 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1102 tools/testing/selftests/kvm/lib/x86_64/processor.c 	int r;
r                1104 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_XSAVE, &state->xsave);
r                1105 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_XSAVE, r: %i",
r                1106 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1109 tools/testing/selftests/kvm/lib/x86_64/processor.c 		r = ioctl(vcpu->fd, KVM_SET_XCRS, &state->xcrs);
r                1110 tools/testing/selftests/kvm/lib/x86_64/processor.c 		TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_XCRS, r: %i",
r                1111 tools/testing/selftests/kvm/lib/x86_64/processor.c 			    r);
r                1114 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_SREGS, &state->sregs);
r                1115 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_SREGS, r: %i",
r                1116 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1118 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_MSRS, &state->msrs);
r                1119 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == state->msrs.nmsrs, "Unexpected result from KVM_SET_MSRS, r: %i (failed at %x)",
r                1120 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r, r == state->msrs.nmsrs ? -1 : state->msrs.entries[r].index);
r                1122 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_VCPU_EVENTS, &state->events);
r                1123 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_VCPU_EVENTS, r: %i",
r                1124 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1126 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_MP_STATE, &state->mp_state);
r                1127 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_MP_STATE, r: %i",
r                1128 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1130 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_DEBUGREGS, &state->debugregs);
r                1131 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_DEBUGREGS, r: %i",
r                1132 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1134 tools/testing/selftests/kvm/lib/x86_64/processor.c 	r = ioctl(vcpu->fd, KVM_SET_REGS, &state->regs);
r                1135 tools/testing/selftests/kvm/lib/x86_64/processor.c         TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_REGS, r: %i",
r                1136 tools/testing/selftests/kvm/lib/x86_64/processor.c                 r);
r                1139 tools/testing/selftests/kvm/lib/x86_64/processor.c 		r = ioctl(vcpu->fd, KVM_SET_NESTED_STATE, &state->nested);
r                1140 tools/testing/selftests/kvm/lib/x86_64/processor.c 		TEST_ASSERT(r == 0, "Unexpected result from KVM_SET_NESTED_STATE, r: %i",
r                1141 tools/testing/selftests/kvm/lib/x86_64/processor.c 			r);
r                  45 tools/testing/selftests/memfd/fuse_test.c 	int r, fd;
r                  54 tools/testing/selftests/memfd/fuse_test.c 	r = ftruncate(fd, sz);
r                  55 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0) {
r                  65 tools/testing/selftests/memfd/fuse_test.c 	long r;
r                  67 tools/testing/selftests/memfd/fuse_test.c 	r = fcntl(fd, F_GET_SEALS);
r                  68 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0) {
r                  73 tools/testing/selftests/memfd/fuse_test.c 	return r;
r                  90 tools/testing/selftests/memfd/fuse_test.c 	long r;
r                  94 tools/testing/selftests/memfd/fuse_test.c 	r = fcntl(fd, F_ADD_SEALS, seals);
r                  95 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0) {
r                 104 tools/testing/selftests/memfd/fuse_test.c 	long r;
r                 107 tools/testing/selftests/memfd/fuse_test.c 	r = fcntl(fd, F_GET_SEALS);
r                 108 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0)
r                 111 tools/testing/selftests/memfd/fuse_test.c 		s = r;
r                 113 tools/testing/selftests/memfd/fuse_test.c 	r = fcntl(fd, F_ADD_SEALS, seals);
r                 114 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0 && errno != EBUSY) {
r                 120 tools/testing/selftests/memfd/fuse_test.c 	return r;
r                 164 tools/testing/selftests/memfd/fuse_test.c 	int sig, r;
r                 185 tools/testing/selftests/memfd/fuse_test.c 	r = mfd_busy_add_seals(global_mfd, F_SEAL_WRITE);
r                 186 tools/testing/selftests/memfd/fuse_test.c 	if (r >= 0) {
r                 230 tools/testing/selftests/memfd/fuse_test.c 	int fd, mfd, r;
r                 288 tools/testing/selftests/memfd/fuse_test.c 	r = read(fd, p, mfd_def_size);
r                 289 tools/testing/selftests/memfd/fuse_test.c 	if (r < 0) {
r                 292 tools/testing/selftests/memfd/fuse_test.c 	} else if (!r) {
r                  39 tools/testing/selftests/memfd/memfd_test.c 	int r, fd;
r                  48 tools/testing/selftests/memfd/memfd_test.c 	r = ftruncate(fd, sz);
r                  49 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                  59 tools/testing/selftests/memfd/memfd_test.c 	int r, fd;
r                  75 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                  77 tools/testing/selftests/memfd/memfd_test.c 	r = sys_memfd_create(name, flags);
r                  78 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                  81 tools/testing/selftests/memfd/memfd_test.c 		close(r);
r                  88 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                  90 tools/testing/selftests/memfd/memfd_test.c 	r = fcntl(fd, F_GET_SEALS);
r                  91 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                  96 tools/testing/selftests/memfd/memfd_test.c 	return (unsigned int)r;
r                 112 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 116 tools/testing/selftests/memfd/memfd_test.c 	r = fcntl(fd, F_ADD_SEALS, seals);
r                 117 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 125 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 128 tools/testing/selftests/memfd/memfd_test.c 	r = fcntl(fd, F_GET_SEALS);
r                 129 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0)
r                 132 tools/testing/selftests/memfd/memfd_test.c 		s = (unsigned int)r;
r                 134 tools/testing/selftests/memfd/memfd_test.c 	r = fcntl(fd, F_ADD_SEALS, seals);
r                 135 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                 145 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 147 tools/testing/selftests/memfd/memfd_test.c 	r = fstat(fd, &st);
r                 148 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 160 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 162 tools/testing/selftests/memfd/memfd_test.c 	r = dup(fd);
r                 163 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 168 tools/testing/selftests/memfd/memfd_test.c 	return r;
r                 210 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 213 tools/testing/selftests/memfd/memfd_test.c 	r = open(buf, flags, mode);
r                 214 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 219 tools/testing/selftests/memfd/memfd_test.c 	return r;
r                 225 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 228 tools/testing/selftests/memfd/memfd_test.c 	r = open(buf, flags, mode);
r                 229 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                 297 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 353 tools/testing/selftests/memfd/memfd_test.c 	r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
r                 354 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 363 tools/testing/selftests/memfd/memfd_test.c 	r = fallocate(fd,
r                 367 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 377 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 419 tools/testing/selftests/memfd/memfd_test.c 		r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
r                 420 tools/testing/selftests/memfd/memfd_test.c 		if (r >= 0) {
r                 427 tools/testing/selftests/memfd/memfd_test.c 	r = fallocate(fd,
r                 431 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                 439 tools/testing/selftests/memfd/memfd_test.c 	int r, fd2;
r                 441 tools/testing/selftests/memfd/memfd_test.c 	r = ftruncate(fd, mfd_def_size / 2);
r                 442 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 459 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 461 tools/testing/selftests/memfd/memfd_test.c 	r = ftruncate(fd, mfd_def_size / 2);
r                 462 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                 474 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 476 tools/testing/selftests/memfd/memfd_test.c 	r = ftruncate(fd, mfd_def_size * 2);
r                 477 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 484 tools/testing/selftests/memfd/memfd_test.c 	r = fallocate(fd,
r                 488 tools/testing/selftests/memfd/memfd_test.c 	if (r < 0) {
r                 498 tools/testing/selftests/memfd/memfd_test.c 	int r;
r                 500 tools/testing/selftests/memfd/memfd_test.c 	r = ftruncate(fd, mfd_def_size * 2);
r                 501 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                 506 tools/testing/selftests/memfd/memfd_test.c 	r = fallocate(fd,
r                 510 tools/testing/selftests/memfd/memfd_test.c 	if (r >= 0) {
r                  66 tools/testing/selftests/net/tcp_inq.c 	int r;
r                  77 tools/testing/selftests/net/tcp_inq.c 			r = send(fd, buf, BUF_SIZE, 0);
r                  78 tools/testing/selftests/net/tcp_inq.c 		} while (r < 0 && errno == EINTR);
r                  79 tools/testing/selftests/net/tcp_inq.c 		if (r < 0)
r                  81 tools/testing/selftests/net/tcp_inq.c 		if (r != BUF_SIZE)
r                  82 tools/testing/selftests/net/tcp_inq.c 			fprintf(stderr, "can only send %d bytes\n", r);
r                 160 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	int r;
r                 164 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	r = write(src, buf, op_size);
r                 165 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	if (r < 0)
r                 183 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	int r;
r                 194 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	r = recvmsg(rcv, &hdr, flags);
r                 195 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	if (r < 0)
r                 197 tools/testing/selftests/networking/timestamping/rxtimestamp.c 	if (r != read_size)
r                 198 tools/testing/selftests/networking/timestamping/rxtimestamp.c 		error(1, 0, "Only received %d bytes of payload.", r);
r                 193 tools/testing/selftests/powerpc/alignment/alignment_handler.c 	int offset, width, fd, rc, r;
r                 232 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		r = 0;
r                 243 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		r |= test_memcpy(ci1,  ci0,  width, offset, test_func);
r                 244 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		r |= test_memcpy(mem1, mem0, width, offset, test_func);
r                 245 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		if (r && !debug) {
r                 251 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		r |= test_memcmp(mem1, ci1, width, offset, test_name);
r                 252 tools/testing/selftests/powerpc/alignment/alignment_handler.c 		if (r && !debug) {
r                 320 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h .macro __LOAD_REG_IMMEDIATE_32 r, x
r                 331 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h .macro __LOAD_REG_IMMEDIATE r, x
r                 510 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define MTMSRD(r)	mtmsrd	r
r                 518 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define MTMSRD(r)	mtmsr	r
r                 114 tools/testing/selftests/timers/freq-step.c 	double x, y, r, x_sum, y_sum, xy_sum, x2_sum, r2_sum;
r                 137 tools/testing/selftests/timers/freq-step.c 		r = fabs(x * *slope + *intercept - y);
r                 138 tools/testing/selftests/timers/freq-step.c 		if (*r_max < r)
r                 139 tools/testing/selftests/timers/freq-step.c 			*r_max = r;
r                 140 tools/testing/selftests/timers/freq-step.c 		r2_sum += r * r;
r                 157 tools/testing/selftests/uevent/uevent_filtering.c 		ssize_t r;
r                 159 tools/testing/selftests/uevent/uevent_filtering.c 		r = recvmsg(sk_fd, &hdr, 0);
r                 160 tools/testing/selftests/uevent/uevent_filtering.c 		if (r <= 0) {
r                 181 tools/testing/selftests/uevent/uevent_filtering.c 			(void)write_nointr(STDERR_FILENO, buf, r);
r                 443 tools/testing/selftests/x86/fsgsbase.c #define USER_REGS_OFFSET(r) offsetof(struct user_regs_struct, r)
r                 346 tools/testing/selftests/x86/protection_keys.c 	int r, rs;
r                 365 tools/testing/selftests/x86/protection_keys.c 	r = sigaction(signum, &newact, &oldact);
r                 366 tools/testing/selftests/x86/protection_keys.c 	r = sigaction(SIGALRM, &newact, &oldact);
r                 367 tools/testing/selftests/x86/protection_keys.c 	pkey_assert(r == 0);
r                 201 tools/testing/selftests/x86/test_syscall_vdso.c static void print_flags(const char *name, unsigned long r)
r                 231 tools/testing/selftests/x86/test_syscall_vdso.c 	printf("%s=%016lx ", name, r);
r                 234 tools/testing/selftests/x86/test_syscall_vdso.c 	if ((r >> 22) != 0)
r                 237 tools/testing/selftests/x86/test_syscall_vdso.c 		if (bitstr[(r >> bit) & 1][0])
r                 238 tools/testing/selftests/x86/test_syscall_vdso.c 			fputs(bitstr[(r >> bit) & 1], stdout);
r                  60 tools/testing/selftests/x86/test_vdso.c 		char r, x;
r                  66 tools/testing/selftests/x86/test_vdso.c 			   &start, &end, &r, &x, name) != 5)
r                 116 tools/testing/selftests/x86/test_vsyscall.c 		char r, x;
r                 122 tools/testing/selftests/x86/test_vsyscall.c 			   &start, &end, &r, &x, name) != 5)
r                 136 tools/testing/selftests/x86/test_vsyscall.c 		printf("\tvsyscall permissions are %c-%c\n", r, x);
r                 137 tools/testing/selftests/x86/test_vsyscall.c 		vsyscall_map_r = (r == 'r');
r                 560 tools/usb/usbip/src/usbipd.c 		int r;
r                 562 tools/usb/usbip/src/usbipd.c 		r = ppoll(fds, nsockfd, &timeout, &sigmask);
r                 563 tools/usb/usbip/src/usbipd.c 		if (r < 0) {
r                 566 tools/usb/usbip/src/usbipd.c 		} else if (r) {
r                  37 tools/virtio/ringtest/main.c 	int r;
r                  40 tools/virtio/ringtest/main.c 	r = write(fd, &v, sizeof v);
r                  41 tools/virtio/ringtest/main.c 	assert(r == sizeof v);
r                  48 tools/virtio/ringtest/main.c 	int r;
r                  51 tools/virtio/ringtest/main.c 	r = read(fd, &v, sizeof v);
r                  52 tools/virtio/ringtest/main.c 	assert(r == sizeof v);
r                 113 tools/virtio/ringtest/main.c 	int r;
r                 125 tools/virtio/ringtest/main.c 				r = add_inbuf(0, "Buffer\n", "Hello, world!");
r                 126 tools/virtio/ringtest/main.c 				if (__builtin_expect(r == 0, true)) {
r                 136 tools/virtio/ringtest/main.c 				r = -1;
r                 143 tools/virtio/ringtest/main.c 				r = 0;
r                 145 tools/virtio/ringtest/main.c 		} while (r == 0);
r                  66 tools/virtio/ringtest/ptr_ring.c 	int r = pthread_spin_init(lock, 0);
r                  67 tools/virtio/ringtest/ptr_ring.c 	assert(!r);
r                  50 tools/virtio/virtio_test.c 	int r;
r                  51 tools/virtio/virtio_test.c 	r = write(info->kick, &v, sizeof v);
r                  52 tools/virtio/virtio_test.c 	assert(r == sizeof v);
r                  72 tools/virtio/virtio_test.c 	int r;
r                  73 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_FEATURES, &features);
r                  74 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  76 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state);
r                  77 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  79 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state);
r                  80 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  81 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr);
r                  82 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  84 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file);
r                  85 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  87 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file);
r                  88 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  94 tools/virtio/virtio_test.c 	int r;
r                  98 tools/virtio/virtio_test.c 	r = posix_memalign(&info->ring, 4096, vring_size(num, 4096));
r                  99 tools/virtio/virtio_test.c 	assert(r >= 0);
r                 116 tools/virtio/virtio_test.c 	int r;
r                 124 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_OWNER, NULL);
r                 125 tools/virtio/virtio_test.c 	assert(r >= 0);
r                 135 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_SET_MEM_TABLE, dev->mem);
r                 136 tools/virtio/virtio_test.c 	assert(r >= 0);
r                 160 tools/virtio/virtio_test.c 	int r, test = 1;
r                 163 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_TEST_RUN, &test);
r                 164 tools/virtio/virtio_test.c 	assert(r >= 0);
r                 171 tools/virtio/virtio_test.c 				r = virtqueue_add_outbuf(vq->vq, &sl, 1,
r                 174 tools/virtio/virtio_test.c 				if (likely(r == 0)) {
r                 177 tools/virtio/virtio_test.c 						r = -1;
r                 180 tools/virtio/virtio_test.c 				r = -1;
r                 185 tools/virtio/virtio_test.c 				r = 0;
r                 188 tools/virtio/virtio_test.c 		} while (r == 0);
r                 204 tools/virtio/virtio_test.c 	r = ioctl(dev->control, VHOST_TEST_RUN, &test);
r                 205 tools/virtio/virtio_test.c 	assert(r >= 0);
r                  37 tools/virtio/vringh_test.c static bool getrange_iov(struct vringh *vrh, u64 addr, struct vringh_range *r)
r                  44 tools/virtio/vringh_test.c 	r->start = (u64)(unsigned long)__user_addr_min - user_addr_offset;
r                  45 tools/virtio/vringh_test.c 	r->end_incl = (u64)(unsigned long)__user_addr_max - 1 - user_addr_offset;
r                  46 tools/virtio/vringh_test.c 	r->offset = user_addr_offset;
r                  51 tools/virtio/vringh_test.c static bool getrange_slow(struct vringh *vrh, u64 addr, struct vringh_range *r)
r                  58 tools/virtio/vringh_test.c 	r->start = addr;
r                  59 tools/virtio/vringh_test.c 	r->end_incl = r->start;
r                  60 tools/virtio/vringh_test.c 	r->offset = user_addr_offset;
r                 138 tools/virtio/vringh_test.c 					  u64 addr, struct vringh_range *r),
r                 451 tools/virtio/vringh_test.c 	bool (*getrange)(struct vringh *vrh, u64 addr, struct vringh_range *r);
r                 908 tools/vm/page-types.c 		char r, w, x, s;
r                 915 tools/vm/page-types.c 			   &r, &w, &x, &s,
r                 469 virt/kvm/arm/arch_timer.c 	int r;
r                 470 virt/kvm/arm/arch_timer.c 	r = irq_set_irqchip_state(ctx->host_timer_irq, IRQCHIP_STATE_ACTIVE, active);
r                 471 virt/kvm/arm/arch_timer.c 	WARN_ON(r);
r                 182 virt/kvm/arm/arm.c 	int r;
r                 185 virt/kvm/arm/arm.c 		r = vgic_present;
r                 200 virt/kvm/arm/arm.c 		r = 1;
r                 203 virt/kvm/arm/arm.c 		r = 1;
r                 206 virt/kvm/arm/arm.c 		r = num_online_cpus();
r                 209 virt/kvm/arm/arm.c 		r = KVM_MAX_VCPUS;
r                 212 virt/kvm/arm/arm.c 		r = KVM_MAX_VCPU_ID;
r                 216 virt/kvm/arm/arm.c 			r = -EINVAL;
r                 218 virt/kvm/arm/arm.c 			r = kvm->arch.vgic.msis_require_devid;
r                 225 virt/kvm/arm/arm.c 		r = 1;
r                 228 virt/kvm/arm/arm.c 		r = kvm_arch_vm_ioctl_check_extension(kvm, ext);
r                 231 virt/kvm/arm/arm.c 	return r;
r                1111 virt/kvm/arm/arm.c 	long r;
r                1117 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1121 virt/kvm/arm/arm.c 		r = kvm_arch_vcpu_ioctl_vcpu_init(vcpu, &init);
r                1128 virt/kvm/arm/arm.c 		r = -ENOEXEC;
r                1132 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1137 virt/kvm/arm/arm.c 			r = kvm_arm_set_reg(vcpu, &reg);
r                1139 virt/kvm/arm/arm.c 			r = kvm_arm_get_reg(vcpu, &reg);
r                1147 virt/kvm/arm/arm.c 		r = -ENOEXEC;
r                1151 virt/kvm/arm/arm.c 		r = -EPERM;
r                1155 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1162 virt/kvm/arm/arm.c 		r = -E2BIG;
r                1165 virt/kvm/arm/arm.c 		r = kvm_arm_copy_reg_indices(vcpu, user_list->reg);
r                1169 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1172 virt/kvm/arm/arm.c 		r = kvm_arm_vcpu_set_attr(vcpu, &attr);
r                1176 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1179 virt/kvm/arm/arm.c 		r = kvm_arm_vcpu_get_attr(vcpu, &attr);
r                1183 virt/kvm/arm/arm.c 		r = -EFAULT;
r                1186 virt/kvm/arm/arm.c 		r = kvm_arm_vcpu_has_attr(vcpu, &attr);
r                1220 virt/kvm/arm/arm.c 		r = -EINVAL;
r                1223 virt/kvm/arm/arm.c 	return r;
r                1248 virt/kvm/arm/arm.c 	int r;
r                1252 virt/kvm/arm/arm.c 	r = kvm_get_dirty_log_protect(kvm, log, &flush);
r                1258 virt/kvm/arm/arm.c 	return r;
r                1264 virt/kvm/arm/arm.c 	int r;
r                1268 virt/kvm/arm/arm.c 	r = kvm_clear_dirty_log_protect(kvm, log, &flush);
r                1274 virt/kvm/arm/arm.c 	return r;
r                  42 virt/kvm/arm/vgic/vgic-irqfd.c 	int r = -EINVAL;
r                  64 virt/kvm/arm/vgic/vgic-irqfd.c 	r = 0;
r                  66 virt/kvm/arm/vgic/vgic-irqfd.c 	return r;
r                  58 virt/kvm/arm/vgic/vgic-kvm-device.c 	int r = 0;
r                  66 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_type(kvm, KVM_DEV_TYPE_ARM_VGIC_V2);
r                  71 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_type(kvm, KVM_DEV_TYPE_ARM_VGIC_V2);
r                  76 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_type(kvm, KVM_DEV_TYPE_ARM_VGIC_V3);
r                  83 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_type(kvm, KVM_DEV_TYPE_ARM_VGIC_V3);
r                  84 virt/kvm/arm/vgic/vgic-kvm-device.c 		if (r)
r                  87 virt/kvm/arm/vgic/vgic-kvm-device.c 			r = vgic_v3_set_redist_base(kvm, 0, *addr, 0);
r                 103 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_type(kvm, KVM_DEV_TYPE_ARM_VGIC_V3);
r                 104 virt/kvm/arm/vgic/vgic-kvm-device.c 		if (r)
r                 117 virt/kvm/arm/vgic/vgic-kvm-device.c 				r = -EINVAL;
r                 119 virt/kvm/arm/vgic/vgic-kvm-device.c 				r = vgic_v3_set_redist_base(kvm, index,
r                 126 virt/kvm/arm/vgic/vgic-kvm-device.c 			r = -ENOENT;
r                 136 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = -ENODEV;
r                 139 virt/kvm/arm/vgic/vgic-kvm-device.c 	if (r)
r                 143 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = vgic_check_ioaddr(kvm, addr_ptr, *addr, alignment);
r                 144 virt/kvm/arm/vgic/vgic-kvm-device.c 		if (!r)
r                 152 virt/kvm/arm/vgic/vgic-kvm-device.c 	return r;
r                 158 virt/kvm/arm/vgic/vgic-kvm-device.c 	int r;
r                 169 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = kvm_vgic_addr(dev->kvm, type, &addr, true);
r                 170 virt/kvm/arm/vgic/vgic-kvm-device.c 		return (r == -ENODEV) ? -ENXIO : r;
r                 207 virt/kvm/arm/vgic/vgic-kvm-device.c 			r = vgic_init(dev->kvm);
r                 209 virt/kvm/arm/vgic/vgic-kvm-device.c 			return r;
r                 221 virt/kvm/arm/vgic/vgic-kvm-device.c 	int r = -ENXIO;
r                 229 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = kvm_vgic_addr(dev->kvm, type, &addr, false);
r                 230 virt/kvm/arm/vgic/vgic-kvm-device.c 		if (r)
r                 231 virt/kvm/arm/vgic/vgic-kvm-device.c 			return (r == -ENODEV) ? -ENXIO : r;
r                 240 virt/kvm/arm/vgic/vgic-kvm-device.c 		r = put_user(dev->kvm->arch.vgic.nr_spis +
r                 246 virt/kvm/arm/vgic/vgic-kvm-device.c 	return r;
r                  88 virt/kvm/irqchip.c 		int r;
r                  89 virt/kvm/irqchip.c 		r = irq_set[i].set(&irq_set[i], kvm, irq_source_id, level,
r                  91 virt/kvm/irqchip.c 		if (r < 0)
r                  94 virt/kvm/irqchip.c 		ret = r + ((ret < 0) ? 0 : ret);
r                 134 virt/kvm/irqchip.c 	int r;
r                 149 virt/kvm/irqchip.c 	r = kvm_set_routing_entry(kvm, e, ue);
r                 150 virt/kvm/irqchip.c 	if (r)
r                 151 virt/kvm/irqchip.c 		return r;
r                 177 virt/kvm/irqchip.c 	int r;
r                 197 virt/kvm/irqchip.c 		r = -ENOMEM;
r                 202 virt/kvm/irqchip.c 		r = -EINVAL;
r                 213 virt/kvm/irqchip.c 		r = setup_routing_entry(kvm, new, e, ue);
r                 214 virt/kvm/irqchip.c 		if (r)
r                 231 virt/kvm/irqchip.c 	r = 0;
r                 239 virt/kvm/irqchip.c 	return r;
r                 327 virt/kvm/kvm_main.c 	int r;
r                 342 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                 352 virt/kvm/kvm_main.c 	r = kvm_arch_vcpu_init(vcpu);
r                 353 virt/kvm/kvm_main.c 	if (r < 0)
r                 360 virt/kvm/kvm_main.c 	return r;
r                 688 virt/kvm/kvm_main.c 	int r = -ENOMEM;
r                 728 virt/kvm/kvm_main.c 	r = kvm_arch_init_vm(kvm, type);
r                 729 virt/kvm/kvm_main.c 	if (r)
r                 732 virt/kvm/kvm_main.c 	r = hardware_enable_all();
r                 733 virt/kvm/kvm_main.c 	if (r)
r                 740 virt/kvm/kvm_main.c 	r = kvm_init_mmu_notifier(kvm);
r                 741 virt/kvm/kvm_main.c 	if (r)
r                 744 virt/kvm/kvm_main.c 	r = kvm_arch_post_init_vm(kvm);
r                 745 virt/kvm/kvm_main.c 	if (r)
r                 777 virt/kvm/kvm_main.c 	return ERR_PTR(r);
r                 994 virt/kvm/kvm_main.c 	int r;
r                1003 virt/kvm/kvm_main.c 	r = check_memory_region_flags(mem);
r                1004 virt/kvm/kvm_main.c 	if (r)
r                1007 virt/kvm/kvm_main.c 	r = -EINVAL;
r                1055 virt/kvm/kvm_main.c 				r = 0;
r                1070 virt/kvm/kvm_main.c 		r = -EEXIST;
r                1084 virt/kvm/kvm_main.c 	r = -ENOMEM;
r                1126 virt/kvm/kvm_main.c 	r = kvm_arch_prepare_memory_region(kvm, &new, mem, change);
r                1127 virt/kvm/kvm_main.c 	if (r)
r                1150 virt/kvm/kvm_main.c 	return r;
r                1157 virt/kvm/kvm_main.c 	int r;
r                1160 virt/kvm/kvm_main.c 	r = __kvm_set_memory_region(kvm, mem);
r                1162 virt/kvm/kvm_main.c 	return r;
r                1600 virt/kvm/kvm_main.c 	int r;
r                1602 virt/kvm/kvm_main.c 	r = follow_pfn(vma, addr, &pfn);
r                1603 virt/kvm/kvm_main.c 	if (r) {
r                1609 virt/kvm/kvm_main.c 		r = fixup_user_fault(current, current->mm, addr,
r                1614 virt/kvm/kvm_main.c 		if (r)
r                1615 virt/kvm/kvm_main.c 			return r;
r                1617 virt/kvm/kvm_main.c 		r = follow_pfn(vma, addr, &pfn);
r                1618 virt/kvm/kvm_main.c 		if (r)
r                1619 virt/kvm/kvm_main.c 			return r;
r                1662 virt/kvm/kvm_main.c 	int npages, r;
r                1690 virt/kvm/kvm_main.c 		r = hva_to_pfn_remapped(vma, addr, async, write_fault, writable, &pfn);
r                1691 virt/kvm/kvm_main.c 		if (r == -EAGAIN)
r                1693 virt/kvm/kvm_main.c 		if (r < 0)
r                2040 virt/kvm/kvm_main.c 	int r;
r                2046 virt/kvm/kvm_main.c 	r = __copy_from_user(data, (void __user *)addr + offset, len);
r                2047 virt/kvm/kvm_main.c 	if (r)
r                2113 virt/kvm/kvm_main.c 	int r;
r                2120 virt/kvm/kvm_main.c 	r = __copy_from_user_inatomic(data, (void __user *)addr + offset, len);
r                2122 virt/kvm/kvm_main.c 	if (r)
r                2152 virt/kvm/kvm_main.c 	int r;
r                2158 virt/kvm/kvm_main.c 	r = __copy_to_user((void __user *)addr + offset, data, len);
r                2159 virt/kvm/kvm_main.c 	if (r)
r                2234 virt/kvm/kvm_main.c 	int r = start_gfn <= end_gfn ? 0 : -EINVAL;
r                2245 virt/kvm/kvm_main.c 	while (!r && start_gfn <= end_gfn) {
r                2250 virt/kvm/kvm_main.c 			r = -EFAULT;
r                2255 virt/kvm/kvm_main.c 	if (!r && nr_pages_needed == 1)
r                2260 virt/kvm/kvm_main.c 	return r;
r                2276 virt/kvm/kvm_main.c 	int r;
r                2290 virt/kvm/kvm_main.c 	r = __copy_to_user((void __user *)ghc->hva + offset, data, len);
r                2291 virt/kvm/kvm_main.c 	if (r)
r                2310 virt/kvm/kvm_main.c 	int r;
r                2323 virt/kvm/kvm_main.c 	r = __copy_from_user(data, (void __user *)ghc->hva, len);
r                2324 virt/kvm/kvm_main.c 	if (r)
r                2792 virt/kvm/kvm_main.c 	int r;
r                2809 virt/kvm/kvm_main.c 		r = PTR_ERR(vcpu);
r                2815 virt/kvm/kvm_main.c 	r = kvm_arch_vcpu_setup(vcpu);
r                2816 virt/kvm/kvm_main.c 	if (r)
r                2823 virt/kvm/kvm_main.c 		r = -EEXIST;
r                2831 virt/kvm/kvm_main.c 	r = create_vcpu_fd(vcpu);
r                2832 virt/kvm/kvm_main.c 	if (r < 0) {
r                2848 virt/kvm/kvm_main.c 	return r;
r                2859 virt/kvm/kvm_main.c 	return r;
r                2878 virt/kvm/kvm_main.c 	int r;
r                2892 virt/kvm/kvm_main.c 	r = kvm_arch_vcpu_async_ioctl(filp, ioctl, arg);
r                2893 virt/kvm/kvm_main.c 	if (r != -ENOIOCTLCMD)
r                2894 virt/kvm/kvm_main.c 		return r;
r                2901 virt/kvm/kvm_main.c 		r = -EINVAL;
r                2909 virt/kvm/kvm_main.c 			r = kvm_arch_vcpu_run_pid_change(vcpu);
r                2910 virt/kvm/kvm_main.c 			if (r)
r                2919 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_run(vcpu, vcpu->run);
r                2920 virt/kvm/kvm_main.c 		trace_kvm_userspace_exit(vcpu->run->exit_reason, r);
r                2926 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                2930 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_get_regs(vcpu, kvm_regs);
r                2931 virt/kvm/kvm_main.c 		if (r)
r                2933 virt/kvm/kvm_main.c 		r = -EFAULT;
r                2936 virt/kvm/kvm_main.c 		r = 0;
r                2944 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                2947 virt/kvm/kvm_main.c 			r = PTR_ERR(kvm_regs);
r                2950 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_set_regs(vcpu, kvm_regs);
r                2957 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                2960 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_get_sregs(vcpu, kvm_sregs);
r                2961 virt/kvm/kvm_main.c 		if (r)
r                2963 virt/kvm/kvm_main.c 		r = -EFAULT;
r                2966 virt/kvm/kvm_main.c 		r = 0;
r                2972 virt/kvm/kvm_main.c 			r = PTR_ERR(kvm_sregs);
r                2976 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_set_sregs(vcpu, kvm_sregs);
r                2982 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_get_mpstate(vcpu, &mp_state);
r                2983 virt/kvm/kvm_main.c 		if (r)
r                2985 virt/kvm/kvm_main.c 		r = -EFAULT;
r                2988 virt/kvm/kvm_main.c 		r = 0;
r                2994 virt/kvm/kvm_main.c 		r = -EFAULT;
r                2997 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_set_mpstate(vcpu, &mp_state);
r                3003 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3006 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_translate(vcpu, &tr);
r                3007 virt/kvm/kvm_main.c 		if (r)
r                3009 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3012 virt/kvm/kvm_main.c 		r = 0;
r                3018 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3021 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_set_guest_debug(vcpu, &dbg);
r                3031 virt/kvm/kvm_main.c 			r = -EFAULT;
r                3035 virt/kvm/kvm_main.c 			r = -EINVAL;
r                3038 virt/kvm/kvm_main.c 			r = -EFAULT;
r                3044 virt/kvm/kvm_main.c 		r = kvm_vcpu_ioctl_set_sigmask(vcpu, p);
r                3049 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                3052 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_get_fpu(vcpu, fpu);
r                3053 virt/kvm/kvm_main.c 		if (r)
r                3055 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3058 virt/kvm/kvm_main.c 		r = 0;
r                3064 virt/kvm/kvm_main.c 			r = PTR_ERR(fpu);
r                3068 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl_set_fpu(vcpu, fpu);
r                3072 virt/kvm/kvm_main.c 		r = kvm_arch_vcpu_ioctl(filp, ioctl, arg);
r                3078 virt/kvm/kvm_main.c 	return r;
r                3087 virt/kvm/kvm_main.c 	int r;
r                3099 virt/kvm/kvm_main.c 			r = -EFAULT;
r                3103 virt/kvm/kvm_main.c 			r = -EINVAL;
r                3106 virt/kvm/kvm_main.c 			r = -EFAULT;
r                3109 virt/kvm/kvm_main.c 			r = kvm_vcpu_ioctl_set_sigmask(vcpu, &sigset);
r                3111 virt/kvm/kvm_main.c 			r = kvm_vcpu_ioctl_set_sigmask(vcpu, NULL);
r                3115 virt/kvm/kvm_main.c 		r = kvm_vcpu_ioctl(filp, ioctl, arg);
r                3119 virt/kvm/kvm_main.c 	return r;
r                3353 virt/kvm/kvm_main.c 	int r;
r                3359 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_create_vcpu(kvm, arg);
r                3364 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3367 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_enable_cap_generic(kvm, &cap);
r                3373 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3378 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_set_memory_region(kvm, &kvm_userspace_mem);
r                3384 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3387 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_get_dirty_log(kvm, &log);
r                3394 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3397 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_clear_dirty_log(kvm, &log);
r                3405 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3408 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_register_coalesced_mmio(kvm, &zone);
r                3414 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3417 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_unregister_coalesced_mmio(kvm, &zone);
r                3424 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3427 virt/kvm/kvm_main.c 		r = kvm_irqfd(kvm, &data);
r                3433 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3436 virt/kvm/kvm_main.c 		r = kvm_ioeventfd(kvm, &data);
r                3443 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3446 virt/kvm/kvm_main.c 		r = kvm_send_userspace_msi(kvm, &msi);
r                3455 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3459 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_irq_line(kvm, &irq_event,
r                3461 virt/kvm/kvm_main.c 		if (r)
r                3464 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3470 virt/kvm/kvm_main.c 		r = 0;
r                3480 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3483 virt/kvm/kvm_main.c 		r = -EINVAL;
r                3491 virt/kvm/kvm_main.c 			r = -ENOMEM;
r                3496 virt/kvm/kvm_main.c 			r = -EFAULT;
r                3502 virt/kvm/kvm_main.c 		r = kvm_set_irq_routing(kvm, entries, routing.nr,
r                3512 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3516 virt/kvm/kvm_main.c 		r = kvm_ioctl_create_device(kvm, &cd);
r                3517 virt/kvm/kvm_main.c 		if (r)
r                3520 virt/kvm/kvm_main.c 		r = -EFAULT;
r                3524 virt/kvm/kvm_main.c 		r = 0;
r                3528 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_check_extension_generic(kvm, arg);
r                3531 virt/kvm/kvm_main.c 		r = kvm_arch_vm_ioctl(filp, ioctl, arg);
r                3534 virt/kvm/kvm_main.c 	return r;
r                3551 virt/kvm/kvm_main.c 	int r;
r                3568 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_get_dirty_log(kvm, &log);
r                3572 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl(filp, ioctl, arg);
r                3574 virt/kvm/kvm_main.c 	return r;
r                3587 virt/kvm/kvm_main.c 	int r;
r                3595 virt/kvm/kvm_main.c 	r = kvm_coalesced_mmio_init(kvm);
r                3596 virt/kvm/kvm_main.c 	if (r < 0)
r                3599 virt/kvm/kvm_main.c 	r = get_unused_fd_flags(O_CLOEXEC);
r                3600 virt/kvm/kvm_main.c 	if (r < 0)
r                3605 virt/kvm/kvm_main.c 		put_unused_fd(r);
r                3606 virt/kvm/kvm_main.c 		r = PTR_ERR(file);
r                3616 virt/kvm/kvm_main.c 	if (kvm_create_vm_debugfs(kvm, r) < 0) {
r                3617 virt/kvm/kvm_main.c 		put_unused_fd(r);
r                3623 virt/kvm/kvm_main.c 	fd_install(r, file);
r                3624 virt/kvm/kvm_main.c 	return r;
r                3628 virt/kvm/kvm_main.c 	return r;
r                3634 virt/kvm/kvm_main.c 	long r = -EINVAL;
r                3640 virt/kvm/kvm_main.c 		r = KVM_API_VERSION;
r                3643 virt/kvm/kvm_main.c 		r = kvm_dev_ioctl_create_vm(arg);
r                3646 virt/kvm/kvm_main.c 		r = kvm_vm_ioctl_check_extension_generic(NULL, arg);
r                3651 virt/kvm/kvm_main.c 		r = PAGE_SIZE;     /* struct kvm_run */
r                3653 virt/kvm/kvm_main.c 		r += PAGE_SIZE;    /* pio data page */
r                3656 virt/kvm/kvm_main.c 		r += PAGE_SIZE;    /* coalesced mmio ring page */
r                3662 virt/kvm/kvm_main.c 		r = -EOPNOTSUPP;
r                3668 virt/kvm/kvm_main.c 	return r;
r                3686 virt/kvm/kvm_main.c 	int r;
r                3693 virt/kvm/kvm_main.c 	r = kvm_arch_hardware_enable();
r                3695 virt/kvm/kvm_main.c 	if (r) {
r                3748 virt/kvm/kvm_main.c 	int r = 0;
r                3759 virt/kvm/kvm_main.c 			r = -EBUSY;
r                3765 virt/kvm/kvm_main.c 	return r;
r                3880 virt/kvm/kvm_main.c 	int r;
r                3890 virt/kvm/kvm_main.c 	r = __kvm_io_bus_write(vcpu, bus, &range, val);
r                3891 virt/kvm/kvm_main.c 	return r < 0 ? r : 0;
r                3951 virt/kvm/kvm_main.c 	int r;
r                3961 virt/kvm/kvm_main.c 	r = __kvm_io_bus_read(vcpu, bus, &range, val);
r                3962 virt/kvm/kvm_main.c 	return r < 0 ? r : 0;
r                4404 virt/kvm/kvm_main.c 	int r;
r                4407 virt/kvm/kvm_main.c 	r = kvm_arch_init(opaque);
r                4408 virt/kvm/kvm_main.c 	if (r)
r                4418 virt/kvm/kvm_main.c 	r = kvm_irqfd_init();
r                4419 virt/kvm/kvm_main.c 	if (r)
r                4423 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                4427 virt/kvm/kvm_main.c 	r = kvm_arch_hardware_setup();
r                4428 virt/kvm/kvm_main.c 	if (r < 0)
r                4432 virt/kvm/kvm_main.c 		smp_call_function_single(cpu, check_processor_compat, &r, 1);
r                4433 virt/kvm/kvm_main.c 		if (r < 0)
r                4437 virt/kvm/kvm_main.c 	r = cpuhp_setup_state_nocalls(CPUHP_AP_KVM_STARTING, "kvm/cpu:starting",
r                4439 virt/kvm/kvm_main.c 	if (r)
r                4453 virt/kvm/kvm_main.c 		r = -ENOMEM;
r                4457 virt/kvm/kvm_main.c 	r = kvm_async_pf_init();
r                4458 virt/kvm/kvm_main.c 	if (r)
r                4465 virt/kvm/kvm_main.c 	r = misc_register(&kvm_dev);
r                4466 virt/kvm/kvm_main.c 	if (r) {
r                4478 virt/kvm/kvm_main.c 	r = kvm_vfio_ops_init();
r                4479 virt/kvm/kvm_main.c 	WARN_ON(r);
r                4500 virt/kvm/kvm_main.c 	return r;